/* ============================================================
   KASAU — senior data science / AI / ML engineering
   DARK GAME-HUD SYSTEM
   Near-black ground, neon-green signal, panel cards, mono HUD,
   clean readable bold grotesque display.
   ============================================================ */

:root {
  /* SIGNAL — neon green is the system accent (tweakable) */
  --acc:      #38ec6b;        /* set by tweak */
  --acc-lime: #c2f53d;        /* fixed lime companion */

  /* ground + surfaces */
  --bg:       #0b0d0e;
  --panel:    #15191b;
  --panel-2:  #1b2023;
  --panel-3:  #232a2d;

  /* legacy aliases (kept so existing class rules resolve) */
  --paper:    var(--bg);
  --paper-2:  var(--panel);
  --paper-3:  var(--panel-2);
  --cream:    var(--acc);

  /* ink */
  --ink:      #e9efe9;
  --ink-2:    rgba(233,239,233,0.74);
  --ink-3:    rgba(233,239,233,0.50);
  --gray:     rgba(233,239,233,0.38);

  --accent:   var(--acc);
  --accent-2: var(--acc-lime);
  --accent-ink: #06210f;       /* dark text on green */

  --line:     rgba(233,239,233,0.10);
  --line-2:   rgba(233,239,233,0.20);

  /* dark band (cta / footer) — slightly lifted off ground */
  --dark:       #101415;
  --dark-2:     #161b1d;
  --dark-paper: #e9efe9;
  --dark-line:  rgba(233,239,233,0.12);

  /* type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", "SFMono-Regular", monospace;
  --body:    "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1480px;
  --gut:  clamp(18px, 4.5vw, 76px);

  --t-fast: 180ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* LIGHT SURFACE — in dark theme this is a lifted PANEL band, not white.
   Slightly translucent so the RightField backdrop ghosts through. */
.light {
  --paper:   var(--panel);
  --paper-2: var(--panel-2);
  --paper-3: var(--panel-3);
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 740px at 82% -12%, color-mix(in srgb, var(--acc) 9%, transparent), transparent 62%),
    radial-gradient(900px 700px at -8% 8%, rgba(120,160,255,0.05), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint HUD grid behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(233,239,233,0.020) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233,239,233,0.020) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 92%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 92%);
}
#root { position: relative; z-index: 1; }
/* content sits above the fixed RightField backdrop (z-index:0) */
main { position: relative; z-index: 1; }
.site-footer { position: relative; z-index: 1; }
.cta-band { position: relative; z-index: 1; }

/* ============================================================
   RIGHT FIELD — fixed full-page network backdrop
   ============================================================ */
.right-field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  color: var(--accent); opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, #000 80%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, #000 80%, #000 100%);
}
.right-field svg { width: 100%; height: 100%; display: block; }
.rf-ring  { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.10; }
.rf-sweep { fill: url(#rfSweep); }
.rf-edge  { stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.13; }
.rf-flow  { stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 3 14; opacity: 0.5; animation: rfflow 3s linear infinite; }
@keyframes rfflow { to { stroke-dashoffset: -34; } }
.rf-node  { fill: var(--bg); stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.4; animation: rfpulse 4.5s ease-in-out infinite; }
@keyframes rfpulse { 0%,100% { opacity: 0.22; } 50% { opacity: 0.62; } }
.rf-hub   { fill: currentColor; opacity: 0.55; }
.rf-stream { stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 2 9; opacity: 0.38; animation: rffall 2.6s linear infinite; }
@keyframes rffall { to { stroke-dashoffset: -22; } }
@media (prefers-reduced-motion: reduce) {
  .rf-flow, .rf-stream { animation: none; opacity: 0.32; }
  .rf-node { animation: none; opacity: 0.42; }
}
@media (max-width: 760px) { .right-field { opacity: 0.5; -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 12%, #000 70%); mask-image: linear-gradient(90deg, transparent 0%, transparent 12%, #000 70%); } }

/* hero window — transparent HUD frame revealing the backdrop */
.hero-window { position: relative; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--panel) 30%, transparent); min-height: 480px; overflow: hidden; }
.hero-window .tick { position: absolute; width: 14px; height: 14px; z-index: 2; }
.hero-window .tick::before, .hero-window .tick::after { content: ""; position: absolute; background: var(--accent); }
.hero-window .tick::before { width: 14px; height: 2px; top: 0; }
.hero-window .tick::after { width: 2px; height: 14px; left: 0; }
.hero-window .tick.tl { top: 9px; left: 9px; }
.hero-window .tick.tr { top: 9px; right: 9px; transform: scaleX(-1); }
.hero-window .tick.bl { bottom: 9px; left: 9px; transform: scaleY(-1); }
.hero-window .tick.br { bottom: 9px; right: 9px; transform: scale(-1); }
.hero-window .hw-id { position: absolute; top: 12px; right: 30px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: color-mix(in srgb, var(--acc) 85%, #fff); }
.hero-window .hw-tag { position: absolute; left: 14px; bottom: 14px; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; background: #0b0d0e; color: var(--accent); border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); padding: 5px 9px; }
.hero-window .hw-read { position: absolute; left: 14px; top: 14px; font-family: var(--mono); font-size: 9.5px; line-height: 1.7; letter-spacing: 0.08em; color: var(--ink-3); }

/* HeroNet — bold focal agent network */
.hero-net-wrap .heronet { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); }
.heronet { display: block; color: var(--accent); overflow: visible; }
.heronet .hn-ring { fill: none; stroke: currentColor; stroke-width: 0.35; opacity: 0.14; }
.heronet .hn-sweep { opacity: 0.9; }
.heronet .hn-edge { stroke: currentColor; stroke-width: 0.5; opacity: 0.42; }
.heronet .hn-edge.dim { stroke-width: 0.4; opacity: 0.2; stroke-dasharray: 1.4 2; }
.heronet .hn-flow { stroke: currentColor; stroke-width: 1; stroke-dasharray: 3 13; opacity: 0.95; animation: hnflow 2.3s linear infinite; }
@keyframes hnflow { to { stroke-dashoffset: -32; } }
.heronet .hn-node { fill: var(--bg); stroke: currentColor; stroke-width: 0.6; opacity: 0.85; }
.heronet .hn-node.lit { fill: currentColor; opacity: 1; }
.heronet .hn-hub { fill: currentColor; }
.heronet .hn-hubring { fill: none; stroke: currentColor; stroke-width: 0.5; transform-box: view-box; transform-origin: 75px 62px; animation: hnpulse 3s ease-out infinite; }
@keyframes hnpulse { 0% { transform: scale(0.7); opacity: 0.7; } 100% { transform: scale(2.6); opacity: 0; } }
.heronet .hn-xh { stroke: var(--bg); stroke-width: 0.8; opacity: 0.9; }
.heronet .hn-label { font-family: var(--mono); font-size: 3.5px; font-weight: 600; fill: currentColor; letter-spacing: 0.12px; }
@media (prefers-reduced-motion: reduce) { .heronet .hn-flow, .heronet .hn-hubring, .heronet .hn-sweep-g { animation: none; } }

/* inner page-head — two-column with network */
.page-head-grid { display: grid; grid-template-columns: 1fr 0.62fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.page-head-net { position: relative; min-height: clamp(230px, 24vw, 320px); align-self: stretch; }
.page-head-net .heronet { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); }
@media (max-width: 900px) { .page-head-grid { grid-template-columns: 1fr; } .page-head-net { display: none; } }

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- type helpers ---------- */
.display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
/* alternate display faces (Tweaks) */
html[data-disp="condensed"] .display { font-family: "Saira Condensed", system-ui, sans-serif; font-weight: 700; letter-spacing: 0.005em; line-height: 0.94; }
html[data-disp="mono"] .display { font-family: var(--mono); font-weight: 700; letter-spacing: -0.01em; line-height: 1.0; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mono-sm { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.serif-italic { font-family: var(--display); font-style: normal; font-weight: 600; }

.lead {
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.002em;
  text-wrap: pretty;
}

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.section { padding-block: clamp(58px, 7.5vw, 124px); position: relative; }
.rule { height: 1px; background: var(--line-2); border: 0; margin: 0; }
.rule-ink { height: 1px; background: var(--accent); border: 0; margin: 0; opacity: 0.6; }

/* ---------- HUD chevrons + sticker labels ---------- */
.chev { color: var(--accent); font-family: var(--mono); font-weight: 700; letter-spacing: 0.02em; }
.sticker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--panel-2); color: var(--ink); border: 1px solid var(--line-2);
  padding: 5px 9px 4px;
}
.sticker.acc { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.sticker .sq { width: 6px; height: 6px; background: currentColor; }

/* hazard stripe band — green/black */
.hazard {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg, var(--acc) 0 12px, #0b0d0e 12px 24px);
  opacity: 0.92;
}

/* ============================================================
   STATUS STRIP (top HUD)
   ============================================================ */
.statusbar {
  background: #090b0c; color: var(--ink-2);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.statusbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut);
  height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  white-space: nowrap; overflow: hidden;
}
.statusbar .sgrp { display: flex; align-items: center; gap: 9px; }
.statusbar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px 0 var(--accent); animation: pulse 2.4s var(--ease) infinite; }
.statusbar .mid { color: var(--ink-3); }
.statusbar .clk { color: var(--accent); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent);} 70%{ box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent);} 100%{ box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent);} }
@media (max-width: 720px) { .statusbar .hide-sm { display: none; } }

/* ============================================================
   HEADER / NAV — faction-tab styling
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, #0b0d0e 86%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gut);
  height: 66px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 8px; }
.nav-right { justify-content: flex-end; gap: 14px; }
.nav-link {
  font-family: var(--mono);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 7px 13px; border-radius: 4px;
  border: 1px solid transparent;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--panel-2); border-color: var(--line-2); }
.nav-link.active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.wordmark {
  font-family: var(--display); font-weight: 700;
  font-size: 19px; letter-spacing: 0.04em;
  text-align: center; line-height: 1; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; justify-self: center;
  white-space: nowrap; color: var(--ink);
}
.wordmark .wm-mark { width: 12px; height: 12px; background: var(--accent); flex: none; box-shadow: 0 0 10px 0 color-mix(in srgb, var(--accent) 70%, transparent); }
.nav-cta {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--accent); color: var(--accent); border-radius: 4px;
  padding: 8px 14px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav-cta:hover { background: var(--accent); color: var(--accent-ink); }

.burger { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-radius: 5px;
  border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  will-change: transform;
}
.btn .arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover { background: transparent; color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 24px -6px var(--accent); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--panel-2); color: var(--ink); border-color: var(--accent); box-shadow: none; }
.btn-lg { padding: 17px 26px; font-size: 13px; }

/* ============================================================
   PLACEHOLDER — dark HUD render frame
   ============================================================ */
.ph {
  position: relative;
  background-color: #0c1110;
  background-image:
    radial-gradient(color-mix(in srgb, var(--acc) 55%, transparent) 1px, transparent 1.6px),
    repeating-linear-gradient(0deg, rgba(56,236,107,0.05) 0 2px, transparent 2px 4px);
  background-size: 9px 9px, auto;
  border: 1px solid var(--line-2);
  overflow: hidden;
  display: grid; place-items: center;
}
.ph.accent {
  background-color: #0a1a12;
  background-image:
    radial-gradient(color-mix(in srgb, var(--acc) 75%, transparent) 1px, transparent 1.7px),
    repeating-linear-gradient(0deg, rgba(56,236,107,0.08) 0 2px, transparent 2px 4px);
  background-size: 9px 9px, auto;
  border-color: color-mix(in srgb, var(--acc) 36%, transparent);
}
.ph.dark {
  background-color: #0a0d0d;
  background-image:
    radial-gradient(rgba(233,239,233,0.16) 1px, transparent 1.6px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 4px);
  background-size: 9px 9px, auto;
  border-color: var(--line-2);
}
.ph .ph-cap {
  position: relative; z-index: 2;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink);
  padding: 5px 10px;
}
/* corner ticks — green L-brackets */
.ph .tick { position: absolute; width: 14px; height: 14px; z-index: 2; }
.ph .tick::before, .ph .tick::after { content: ""; position: absolute; background: var(--accent); }
.ph .tick::before { width: 14px; height: 2px; top: 0; }
.ph .tick::after { width: 2px; height: 14px; left: 0; }
.ph .tick.tl { top: 9px; left: 9px; }
.ph .tick.tr { top: 9px; right: 9px; transform: scaleX(-1); }
.ph .tick.bl { bottom: 9px; left: 9px; transform: scaleY(-1); }
.ph .tick.br { bottom: 9px; right: 9px; transform: scale(-1); }
/* corner readout */
.ph .ph-id { position: absolute; top: 10px; right: 28px; z-index: 2; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; color: color-mix(in srgb, var(--acc) 80%, #fff); }
.ph .art-tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  background: #0b0d0e; color: var(--accent); border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); padding: 5px 9px;
}

/* HUD agent-topology graphic */
.ph.hud { background-color: #081210; }
.hud-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; color: var(--acc); }
.hud-svg .rings circle { fill: none; stroke: var(--acc); stroke-width: 0.3; opacity: 0.15; }
.hud-svg .s0 { stop-color: var(--acc); stop-opacity: 0.22; }
.hud-svg .s1 { stop-color: var(--acc); stop-opacity: 0; }
.hud-svg .edge { stroke: var(--acc); stroke-width: 0.4; opacity: 0.30; }
.hud-svg .edge.dim { opacity: 0.13; stroke-dasharray: 1.4 2; }
.hud-svg .flow { stroke: var(--acc); stroke-width: 0.9; stroke-dasharray: 3 16; opacity: 0.92; animation: kxflow 2.4s linear infinite; }
@keyframes kxflow { to { stroke-dashoffset: -38; } }
.hud-svg .node { fill: #0b0d0e; stroke: var(--acc); stroke-width: 0.5; }
.hud-svg .hub { fill: var(--acc); }
.hud-svg .hub-ring { fill: none; stroke: var(--acc); stroke-width: 0.5; transform-origin: 60px 50px; transform-box: view-box; animation: kxring 3s ease-out infinite; }
@keyframes kxring { 0% { transform: scale(0.7); opacity: 0.7; } 100% { transform: scale(2.6); opacity: 0; } }
.hud-svg .xh { stroke: #081210; stroke-width: 0.7; opacity: 0.85; }
.hud-svg .nlabel { font-family: var(--mono); font-size: 2.7px; fill: var(--acc); letter-spacing: 0.1px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .hud-svg .flow, .hud-svg .hub-ring, .hud-svg .sweep { animation: none; }
}

/* ============================================================
   SITE GRAPH — page-spanning agent spine
   ============================================================ */
.sitegraph { position: absolute; top: 0; left: 0; z-index: 4; pointer-events: none; overflow: visible; }
.sitegraph .sg-spine  { stroke: rgba(233,239,233,0.12); stroke-width: 1.5; }
.sitegraph .sg-branch { stroke: rgba(233,239,233,0.09); stroke-width: 1; }
.sitegraph .sg-live   { stroke: var(--accent); stroke-width: 1.5; opacity: 0.5; }
.sitegraph .sg-flow   { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 2 9; opacity: 0.9; animation: sgflow 0.9s linear infinite; }
@keyframes sgflow { to { stroke-dashoffset: -11; } }
.sitegraph .sg-tick   { stroke: rgba(233,239,233,0.13); stroke-width: 1; }
.sitegraph .sg-ng.on .sg-tick { stroke: var(--accent); opacity: 0.5; }
.sitegraph .sg-dot { fill: var(--bg); stroke: rgba(233,239,233,0.40); stroke-width: 1.5; transition: r 200ms var(--ease); }
.sitegraph .sg-ng.passed .sg-dot { stroke: color-mix(in srgb, var(--accent) 65%, transparent); }
.sitegraph .sg-ng.on .sg-dot { fill: var(--accent); stroke: var(--accent); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 80%, transparent)); }
.sitegraph .sg-ring { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.sitegraph .sg-num  { fill: var(--ink-3); font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; }
.sitegraph .sg-ng.passed .sg-num { fill: var(--ink-2); }
.sitegraph .sg-ng.on .sg-num { fill: var(--accent); }
.sitegraph .sg-label { fill: var(--ink-3); font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.5; transition: fill 200ms var(--ease), opacity 200ms var(--ease); }
.sitegraph .sg-ng.on .sg-label { fill: var(--ink); opacity: 1; }
.sitegraph .sg-hit { fill: transparent; pointer-events: auto; cursor: pointer; }
.sitegraph .sg-ph-glow { fill: color-mix(in srgb, var(--accent) 28%, transparent); }
.sitegraph .sg-ph { fill: var(--accent); filter: drop-shadow(0 0 7px var(--accent)); }
@media (prefers-reduced-motion: reduce) { .sitegraph .sg-flow { animation: none; } .sitegraph .sg-ring { display: none; } }
@media (max-width: 900px) { .sitegraph { display: none; } }

/* ============================================================
   HERO (shared)
   ============================================================ */
.hero { position: relative; border-bottom: 1px solid var(--line-2); }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.hero-kicker .bar { width: 30px; height: 3px; background: var(--accent); box-shadow: 0 0 10px 0 color-mix(in srgb, var(--accent) 60%, transparent); }
.hero-h1 { font-size: clamp(44px, 8.4vw, 120px); letter-spacing: -0.02em; }
.hero-h1 .em { color: var(--accent); text-shadow: 0 0 38px color-mix(in srgb, var(--accent) 40%, transparent); }
.hero-sub { max-width: 38ch; }

/* variant: split */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.86fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding-top: clamp(40px, 5vw, 76px); padding-bottom: clamp(40px, 5vw, 76px); }
.hero-split .hero-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hero-split .hero-art { min-height: 0; height: clamp(360px, 38vw, 500px); position: relative; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* variant: centered */
.hero-centered { text-align: center; padding-top: clamp(64px, 8vw, 132px); padding-bottom: clamp(46px, 5vw, 84px); }
.hero-centered .hero-kicker { justify-content: center; }
.hero-centered .hero-h1 { font-size: clamp(46px, 9.5vw, 150px); }
.hero-centered .hero-sub { margin: 28px auto 0; max-width: 62ch; }
.hero-centered .hero-actions { justify-content: center; }
.hero-centered .hero-art { margin-top: 52px; min-height: clamp(280px, 38vw, 520px); }

/* variant: editorial */
.hero-editorial { padding-top: clamp(52px, 7vw, 108px); padding-bottom: 0; }
.hero-editorial .hero-h1 { font-size: clamp(46px, 9vw, 140px); }
.hero-editorial .hero-grid { display: grid; grid-template-columns: 1fr 0.6fr; gap: clamp(28px, 4vw, 66px); align-items: end; margin-top: clamp(34px, 4vw, 60px); padding-bottom: clamp(46px, 5vw, 84px); }
.hero-editorial .hero-statcol { display: flex; flex-direction: column; gap: 20px; padding-bottom: 8px; }
.hero-cap-t { font-size: clamp(23px, 2.7vw, 32px); line-height: 1.0; letter-spacing: -0.01em; }

/* ticker */
.ticker { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); overflow: hidden; background: #0a0c0d; color: var(--ink); }
.ticker-track { display: flex; gap: 0; white-space: nowrap; will-change: transform; backface-visibility: hidden; }
.ticker-set { display: flex; flex: none; white-space: nowrap; }
.ticker-item { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(19px, 2.4vw, 32px); padding: 13px 0; display: inline-flex; align-items: center; letter-spacing: 0.01em; }
.ticker-item .sep { color: var(--accent); margin: 0 26px; font-family: var(--mono); font-size: 18px; font-weight: 700; }


/* ============================================================
   STATEMENT
   ============================================================ */
.statement-grid { display: grid; grid-template-columns: 0.34fr 1fr; gap: clamp(24px, 4vw, 64px); }
.statement-grid .label-col { display: flex; flex-direction: column; gap: 10px; }
.statement-body { font-weight: 500; font-size: clamp(24px, 3.2vw, 43px); line-height: 1.22; letter-spacing: -0.015em; text-wrap: pretty; color: var(--ink); }
.statement-body .em { color: var(--accent); }

/* ============================================================
   SERVICES (numbered grid)
   ============================================================ */
.svc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 8px; flex-wrap: wrap; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.svc-cell {
  border-top: 1px solid var(--line-2);
  padding: 26px 0 34px;
  padding-right: clamp(16px, 2.4vw, 44px);
  position: relative;
  transition: background var(--t-fast) var(--ease);
}
.svc-grid .svc-cell { border-top: 1px solid var(--line-2); }
.svc-grid .svc-cell:not(:nth-child(3n)) { padding-right: clamp(20px, 2.6vw, 48px); }
.svc-cell::before { content: ""; position: absolute; top: -1px; left: 0; width: 26px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast) var(--ease); }
.svc-cell:hover::before { transform: scaleX(1); }
.svc-cell .svc-no { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 16px; display: flex; gap: 10px; }
.svc-cell .svc-no .nm { color: var(--ink-3); }
.svc-cell h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(23px, 2.4vw, 31px); line-height: 1.0; margin: 0 0 14px; letter-spacing: -0.012em; }
.svc-cell p { color: var(--ink-2); margin: 0; max-width: 38ch; font-size: 15.5px; }
.svc-cell .svc-art { margin: 22px 0 0; aspect-ratio: 16/10; }
.svc-link { margin-top: 20px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); display: inline-flex; gap: 8px; align-items: center; opacity: 0; transform: translateY(4px); transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.svc-cell:hover .svc-link { opacity: 1; transform: translateY(0); }

/* ============================================================
   ENGAGEMENT MODELS (home teaser cards)
   ============================================================ */
.engage-models { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); margin-bottom: clamp(40px, 5vw, 72px); }
.engage-card { padding: 32px 0 36px; }
.engage-card:first-child { border-right: 1px solid var(--line); padding-right: clamp(28px, 4vw, 64px); }
.engage-card:last-child { padding-left: clamp(28px, 4vw, 64px); }
.engage-card .ec-mode { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); display: flex; gap: 10px; }
.engage-card .ec-mode .k { color: var(--ink-3); }
.engage-card h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(25px, 2.9vw, 38px); line-height: 1.0; margin: 14px 0 14px; letter-spacing: -0.014em; }
.engage-card p { color: var(--ink-2); margin: 0 0 20px; max-width: 44ch; font-size: 15.5px; }
.engage-card .ec-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   STATS / PROOF
   ============================================================ */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.stat { padding: 32px 0 28px; padding-right: 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .n { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5vw, 66px); line-height: 0.9; letter-spacing: -0.02em; }
.stat .n .u { font-size: 0.42em; color: var(--accent); vertical-align: super; margin-left: 2px; }
.stat .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-top: 14px; max-width: 24ch; }

/* ============================================================
   APPROACH STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { border-top: 1px solid var(--line-2); padding: 24px 24px 32px 0; position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 22px; height: 2px; background: var(--accent); }
.step .sn { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: 0.12em; }
.step h4 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(21px, 2.4vw, 29px); margin: 14px 0 12px; letter-spacing: -0.01em; }
.step p { color: var(--ink-2); margin: 0; font-size: 15px; max-width: 30ch; }

/* ============================================================
   OPPORTUNITIES / OPEN ROLES
   ============================================================ */
.ops-count { color: var(--ink-3); white-space: nowrap; }
.ops-bar { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.ops-list { border-top: 1px solid var(--line-2); }
.op-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(230px, 0.52fr);
  gap: clamp(16px, 3vw, 52px);
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.op-row::before { content: ""; position: absolute; top: -1px; left: 0; width: 24px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast) var(--ease); }
.op-row:hover::before { transform: scaleX(1); }
.op-idx { padding-top: 5px; font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: 0.12em; }
.op-role { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 2.5vw, 33px); line-height: 1.0; margin: 0 0 13px; letter-spacing: -0.012em; }
.op-sum { color: var(--ink-2); margin: 0 0 17px; max-width: 54ch; font-size: 15.5px; line-height: 1.5; text-wrap: pretty; }
.op-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.op-side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.op-facts { display: flex; flex-direction: column; gap: 7px; color: var(--ink-3); line-height: 1.3; }
.op-facts .op-disc { color: var(--ink); }
.op-facts .op-posted { color: var(--gray); letter-spacing: 0.1em; }
.op-apply {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line-2); padding: 10px 16px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.op-apply .arrow { transition: transform var(--t-fast) var(--ease); }
.op-apply:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.op-apply:hover .arrow { transform: translateX(4px); }

.ops-note { padding: 30px 0 6px; color: var(--ink-2); font-size: 16px; max-width: 56ch; line-height: 1.5; }
.ops-note a { color: var(--accent); }

/* loading skeleton */
.op-skel { align-items: start; }
.sk { background: var(--panel-2); position: relative; overflow: hidden; border-radius: 3px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(233,239,233,0.07), transparent); animation: skshimmer 1.3s ease-in-out infinite; }
@keyframes skshimmer { to { transform: translateX(100%); } }
.sk-idx { width: 22px; height: 12px; margin-top: 6px; }
.sk-title { width: 52%; height: 28px; margin-bottom: 16px; }
.sk-line { width: 100%; height: 13px; margin-bottom: 9px; }
.sk-line.short { width: 38%; }
.sk-btn { width: 104px; height: 38px; }
@media (prefers-reduced-motion: reduce) { .sk::after { animation: none; } }

@media (max-width: 820px) {
  .op-row, .op-skel { grid-template-columns: 32px minmax(0, 1fr); }
  .op-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
  .op-facts { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
  .sk-btn { width: 100%; max-width: 140px; }
}

/* ============================================================
   CTA DARK BAND
   ============================================================ */
.cta-band { background: var(--dark); color: var(--dark-paper); position: relative; overflow: hidden; border-top: 1px solid var(--line-2); }
.cta-band::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(800px 420px at 88% 120%, color-mix(in srgb, var(--acc) 12%, transparent), transparent 60%); }
.cta-band .cta-inner { padding-block: clamp(64px, 9vw, 124px); position: relative; z-index: 2; }
.cta-band .kicker { color: var(--accent); }
.cta-h { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(38px, 6.5vw, 100px); line-height: 0.98; letter-spacing: -0.02em; margin: 22px 0 0; text-wrap: balance; }
.cta-band .btn { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cta-band .btn:hover { background: transparent; color: var(--accent); }
.cta-band .btn-ghost { background: transparent; color: var(--dark-paper); border-color: var(--dark-line); }
.cta-band .btn-ghost:hover { background: var(--panel-2); color: var(--dark-paper); border-color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--dark); color: var(--dark-paper); border-top: 1px solid var(--line-2); }
.footer-mark { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(54px, 15vw, 196px); line-height: 0.86; letter-spacing: -0.02em; padding-top: clamp(40px, 5vw, 76px); }
.footer-mark span { display: block; }
.footer-mark .dot { color: var(--accent); display: inline; text-shadow: 0 0 30px color-mix(in srgb, var(--accent) 50%, transparent); }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: clamp(40px, 5vw, 66px); border-top: 1px solid var(--dark-line); margin-top: 28px; }
.footer-col h5 { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.footer-col a, .footer-col p { display: block; color: var(--dark-paper); opacity: 0.72; margin: 0 0 11px; font-size: 14.5px; transition: opacity var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.footer-col a:hover { opacity: 1; color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-bottom: 32px; }
.footer-bottom .mono-sm { color: var(--ink-3); }

/* ============================================================
   PAGE: generic inner page header
   ============================================================ */
.page-head { padding-top: clamp(42px, 6vw, 84px); padding-bottom: clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line-2); }
.page-head .ph-kicker { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.page-head .ph-kicker .bar { width: 30px; height: 3px; background: var(--accent); box-shadow: 0 0 10px 0 color-mix(in srgb, var(--accent) 60%, transparent); }
.page-title { font-size: clamp(40px, 7.5vw, 112px); letter-spacing: -0.025em; }
.page-head-grid > div:first-child { min-width: 0; }
.page-intro { max-width: 56ch; margin-top: 26px; }

/* services page rows */
.svc-rowx { display: grid; grid-template-columns: 0.18fr 0.42fr 0.4fr; gap: clamp(20px, 3vw, 52px); padding: clamp(30px, 4vw, 54px) 0; border-top: 1px solid var(--line-2); align-items: start; position: relative; transition: background var(--t-fast) var(--ease); }
.svc-rowx::before { content: ""; position: absolute; top: -1px; left: 0; width: 30px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast) var(--ease); }
.svc-rowx:hover::before { transform: scaleX(1); }
.svc-rowx .rx-no { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; color: var(--accent); }
.svc-rowx h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(27px, 3.6vw, 48px); line-height: 0.98; margin: 0; letter-spacing: -0.02em; }
.svc-rowx .rx-body p { color: var(--ink-2); margin: 0 0 22px; }
.svc-rowx .rx-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line-2); border-radius: 3px; padding: 6px 10px; color: var(--ink-2); transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* domains grid */
.dom-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2); }
.dom-cell { border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 26px 24px 30px; min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; transition: background var(--t-fast) var(--ease); }
.dom-cell:hover { background: var(--panel); }
.dom-cell:hover .dn { color: var(--accent); }
.dom-cell .dn { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.1em; transition: color var(--t-fast) var(--ease); }
.dom-cell h4 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(21px, 2.3vw, 29px); margin: 0; letter-spacing: -0.012em; line-height: 1.0; }
.dom-cell p { color: var(--ink-2); font-size: 14px; margin: 8px 0 0; }

/* about values */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.value { border-top: 1px solid var(--line-2); padding: 30px 30px 38px 0; display: grid; grid-template-columns: 0.2fr 1fr; gap: 20px; }
.value .vn { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent); }
.value h4 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(23px, 2.9vw, 35px); margin: 0 0 10px; letter-spacing: -0.014em; }
.value p { color: var(--ink-2); margin: 0; font-size: 15px; max-width: 40ch; }

.about-split { display: grid; grid-template-columns: 1fr 0.8fr; gap: clamp(28px, 4vw, 64px); align-items: center; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(34px, 5vw, 80px); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea, .field select {
  font-family: var(--body); font-size: 16px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 5px;
  padding: 12px 14px; outline: none; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field textarea { resize: vertical; min-height: 110px; }
.field select option { background: var(--panel); color: var(--ink); }
.contact-aside .ca-block { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-aside .ca-block h5 { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.contact-aside .ca-block p { margin: 0 0 6px; color: var(--ink-2); }
.form-sent { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(27px,4vw,40px); color: var(--accent); line-height: 1.0; }

/* ============================================================
   PAGE TRANSITION
   ============================================================ */
.page { animation: pageIn 440ms var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vtOut 300ms var(--ease) both; }
  ::view-transition-new(root) { animation: vtIn 440ms var(--ease) both; }
}
[data-motion="slide"] ::view-transition-old(root) { animation: vtSlideOut 340ms var(--ease) both; }
[data-motion="slide"] ::view-transition-new(root) { animation: vtSlideIn 460ms var(--ease) both; }
[data-motion="cover"] ::view-transition-old(root) { animation: none; }
[data-motion="cover"] ::view-transition-new(root) { animation: vtCover 500ms var(--ease) both; }

@keyframes vtOut { to { opacity: 0; transform: translateY(-10px) scale(0.995); } }
@keyframes vtIn  { from { opacity: 0; transform: translateY(14px); } }
@keyframes vtSlideOut { to { opacity: 0; transform: translateX(-4%); } }
@keyframes vtSlideIn  { from { opacity: 0; transform: translateX(5%); } }
@keyframes vtCover { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .page { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .hero-art { min-height: 300px; order: -1; }
  .hero-editorial .hero-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .about-split, .contact-grid { grid-template-columns: 1fr; }
  .svc-rowx { grid-template-columns: 1fr; gap: 16px; }
  .dom-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
  .statement-grid { grid-template-columns: 1fr; }
  .engage-models { grid-template-columns: 1fr; }
  .engage-card:first-child { border-right: 0; padding-right: 0; padding-bottom: 30px; }
  .engage-card:last-child { border-top: 1px solid var(--line); padding-left: 0; padding-top: 30px; }
}
@media (max-width: 640px) {
  .nav-left { display: none; }
  .nav { grid-template-columns: auto 1fr auto; }
  .wordmark { text-align: left; justify-self: start; }
  .burger { display: inline-flex; }
  .svc-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .dom-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .nav-cta { padding: 7px 11px; font-size: 10px; }
}

/* mobile menu */
.mobile-menu { position: fixed; inset: 96px 0 0 0; background: var(--bg); z-index: 55; padding: var(--gut); display: flex; flex-direction: column; gap: 6px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 36px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }

/* ============================================================
   JOB DETAIL — single dynamic page (#/job/<id>)
   ============================================================ */
/* careers rows are now links into the detail page */
.op-row[role="link"] { cursor: pointer; outline: none; }
.op-row[role="link"]:hover .op-role { color: var(--accent); }
.op-row[role="link"]:focus-visible { box-shadow: inset 3px 0 0 var(--accent); }
.op-role { transition: color var(--t-fast) var(--ease); }

.job-back {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase;
  transition: color var(--t-fast) var(--ease);
}
.job-back:hover { color: var(--accent); }
.job-back .arrow.back { transition: transform var(--t-fast) var(--ease); }
.job-back:hover .arrow.back { transform: translateX(-4px); }

.job-head-grid { display: grid; grid-template-columns: 1fr 0.52fr; gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: 26px; }
.job-head-main .ph-kicker { margin-bottom: 20px; }
.job-title { font-size: clamp(34px, 5.6vw, 82px); letter-spacing: -0.025em; }
.job-head-main .page-intro { max-width: 46ch; margin-top: 20px; }
.job-head-net { min-height: clamp(210px, 22vw, 300px); }

.job-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.jm-chip {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 3px; padding: 6px 11px; background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.jm-loc { color: var(--ink-3); letter-spacing: 0.08em; margin-left: 4px; }

.job-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 30%, 360px); gap: clamp(36px, 5vw, 88px); align-items: start; }
.job-content { display: flex; flex-direction: column; gap: clamp(34px, 4vw, 56px); }
.job-sec { border-top: 1px solid var(--line-2); padding-top: 26px; position: relative; }
.job-sec::before { content: ""; position: absolute; top: -1px; left: 0; width: 24px; height: 2px; background: var(--accent); }
.job-sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.js-n { color: var(--accent); letter-spacing: 0.14em; }
.js-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 2.7vw, 34px); line-height: 1.0; letter-spacing: -0.015em; margin: 0; }
.job-prose p { color: var(--ink-2); margin: 0 0 16px; max-width: 64ch; font-size: 16.5px; line-height: 1.6; text-wrap: pretty; }
.job-prose p:last-child { margin-bottom: 0; }
.job-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 66ch; }
.job-list li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.job-list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }

/* sticky apply card */
.job-aside { position: sticky; top: 96px; }
.apply-card { border: 1px solid var(--line-2); border-radius: 7px; background: var(--panel); padding: 26px 24px 24px; }
.ac-eyebrow { color: var(--accent); letter-spacing: 0.16em; text-transform: uppercase; }
.ac-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.015em; line-height: 1.0; margin: 12px 0 12px; }
.ac-sub { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin: 0 0 22px; }
.ac-btn { width: 100%; justify-content: center; }
.ac-facts { display: flex; flex-direction: column; margin: 24px 0 6px; border-top: 1px solid var(--line); }
.jf-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.jf-k { color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.jf-v { color: var(--ink); font-size: 14px; text-align: right; text-wrap: pretty; }
.ac-alt { display: inline-block; margin-top: 16px; color: var(--ink-3); letter-spacing: 0.08em; transition: color var(--t-fast) var(--ease); }
.ac-alt:hover { color: var(--accent); }

.sk-kick { width: 120px; height: 13px; margin-bottom: 22px; }
.sk-jtitle { width: 66%; height: clamp(40px, 6vw, 76px); }

@media (max-width: 980px) {
  .job-body { grid-template-columns: 1fr; gap: 40px; }
  .job-aside { position: static; }
  .job-head-grid { grid-template-columns: 1fr; }
  .job-head-net { display: none; }
}

/* ── application form ── */
.apply-section { border-top: 1px solid var(--line-2); }
.apply-intro { margin-bottom: clamp(30px, 4vw, 48px); }
.apply-intro .ph-kicker { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.apply-intro .ph-kicker .bar { width: 30px; height: 3px; background: var(--accent); box-shadow: 0 0 10px 0 color-mix(in srgb, var(--accent) 60%, transparent); }
.apply-h { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(32px, 5vw, 68px); line-height: 0.98; letter-spacing: -0.022em; margin: 0; }

.apply-form { max-width: 760px; }
.af-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.af-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }

/* custom file field */
.af-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.af-file {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  font-family: var(--body); font-size: 15px; color: var(--ink-3);
  background: var(--panel); border: 1px dashed var(--line-2); border-radius: 5px;
  padding: 15px 16px; cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.af-file:hover { border-color: var(--accent); color: var(--ink-2); }
.af-file.has { color: var(--ink); border-style: solid; border-color: color-mix(in srgb, var(--accent) 50%, var(--line-2)); }
.aff-icon { font-family: var(--mono); color: var(--accent); font-size: 16px; line-height: 1; }
.aff-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aff-clear { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 3px; padding: 4px 8px; transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.aff-clear:hover { color: var(--accent); border-color: var(--accent); }

.af-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.af-actions .btn[disabled] { opacity: 0.55; cursor: progress; }
.af-note { color: var(--ink-3); letter-spacing: 0.06em; }
.af-error { color: #ff7a6b; margin: 0 0 18px; letter-spacing: 0.04em; }
.af-error a { color: var(--accent); }

.apply-foot { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }

/* success state */
.apply-done { max-width: 640px; padding: 8px 0 6px; }
.ad-mark { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 22px; font-weight: 700; margin-bottom: 22px; }
.ad-sub { color: var(--ink-2); font-size: 17px; line-height: 1.6; margin: 14px 0 22px; text-wrap: pretty; }
.ad-sub strong { color: var(--ink); }

@media (max-width: 720px) {
  .af-grid-2, .af-grid-3 { grid-template-columns: 1fr; gap: 0; }
}
