/* =============================================================================
   Petra Pathway Consulting: design system
   Void-obsidian surfaces, sandstone-gold accents, deep terra-bronze depth.
   Telemetry colours (emerald, cyan, purple) are reserved for live system status.
   ============================================================================= */

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Self-hosted variable fonts (SIL Open Font License 1.1), latin subset. */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Void obsidian */
  --bg: #040608;
  --bg-2: #07090f;
  --surface: #0c1018;
  --surface-2: #0f131c;
  --surface-3: #121722;
  --glass: rgba(8, 11, 18, 0.75);
  --card-glass: rgba(14, 19, 30, 0.65);
  --line: rgba(var(--tint-rgb), 0.08);
  --line-2: rgba(var(--tint-rgb), 0.12);
  --line-3: rgba(var(--tint-rgb), 0.2);
  --line-gold: rgba(var(--gold-light-rgb), 0.55);

  /* Text & telemetry */
  --text: #f5f2eb;
  --text-2: rgba(245, 242, 235, 0.74);
  --text-3: #8b92a4;
  --text-4: #545b6d;
  --emerald: #10b981;
  --cyan: #38bdf8;
  --purple: #a855f7;

  /* Sandstone gold */
  --gold: #c89d66;
  --gold-light: #e5c497;
  --champagne: #f8e5cb;
  --gold-glow: rgba(var(--gold-rgb), 0.3);
  --gold-dim: rgba(var(--gold-rgb), 0.12);

  /* Deep terra bronze */
  --bronze: #7b4f28;
  --bronze-warm: #9e6433;
  --umber: #4d2e13;

  /* Accent aliases used across components */
  --ai-1: var(--gold-light);
  --ai-2: var(--gold);
  --ai-3: var(--bronze-warm);
  --ai-4: var(--champagne);
  --spectrum: linear-gradient(90deg, var(--bronze-warm) 0%, var(--gold) 32%, var(--gold-light) 66%, var(--champagne) 100%);
  --spectrum-v: linear-gradient(180deg, var(--champagne) 0%, var(--gold-light) 30%, var(--gold) 62%, var(--bronze-warm) 100%);
  --spectrum-conic: conic-gradient(from var(--angle), var(--bronze-warm), var(--gold), var(--champagne), var(--gold-light), var(--bronze-warm));

  --ok: var(--emerald);
  --warn: var(--gold-light);
  --err: #f87171;

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  /* viewport-fit=cover lets the page run under notches and the home indicator; these keep
     content inside the safe area (all resolve to 0 on devices without insets). */
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --pad-l: max(var(--gutter), var(--safe-l));
  --pad-r: max(var(--gutter), var(--safe-r));
  --header-h: 90px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-lg: 0 30px 80px -24px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 24px 50px -15px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(var(--gold-rgb), 0.3);
  --shadow-float: 0 50px 120px -20px rgba(0, 0, 0, 0.85);
  --shadow-toast: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
  --card-shadow-rest: none;

  /* Theme channels: alpha mixes are written rgba(var(--x-rgb), a) so both themes share one rule. */
  --tint-rgb: 255, 255, 255;
  --gold-rgb: 200, 157, 102;
  --gold-light-rgb: 229, 196, 151;
  --emerald-rgb: 16, 185, 129;
  --cyan-rgb: 56, 189, 248;

  /* Theme surfaces */
  --field: rgba(8, 11, 18, 0.95);
  --field-soft: rgba(4, 6, 8, 0.6);
  --field-focus: rgba(4, 6, 8, 0.85);
  --panel: rgba(12, 16, 24, 0.92);
  --glass-strong: rgba(7, 9, 15, 0.97);
  --card-solid: rgba(14, 19, 30, 0.94);
  --scrim: rgba(4, 6, 8, 0.62);

  /* Atmosphere (also read by the constellation canvas in main.js) */
  --grid-line: rgba(200, 157, 102, 0.035);
  --grid-minor: transparent;
  --glow: rgba(200, 157, 102, 0.09);
  --atmo-dot: 229, 196, 151;
  --atmo-line: 200, 157, 102;
  --atmo-strength: 1;

  /* SVG gradient stops (logo, AI spark, logo hovers, sparkline, gauges, orbit sun) */
  --gs-1: #f8e5cb;
  --gs-2: #e5c497;
  --gs-3: #c89d66;
  --gs-4: #9e6433;
  --sun: #f8e5cb;
  --sun-corona: #c89d66;
}

/* ----------------------------------------------------------------------------
   Alabaster: the light theme. The same brand at golden hour: warm ivory paper,
   obsidian ink and a sandstone ramp re-cut darker so accent text clears WCAG AA
   on ivory. Token roles are unchanged: --gold = UI accent, --gold-light =
   accent text, --champagne = strongest accent, --bg = the paper.
   ------------------------------------------------------------------------- */
:root[data-theme='light'] {
  color-scheme: light;

  /* Alabaster paper */
  --bg: #f5efe4;
  --bg-2: #ede5d6;
  --surface: #fbf8f2;
  --surface-2: #f8f3ea;
  --surface-3: #f1e9dc;
  --glass: rgba(247, 242, 233, 0.78);
  --card-glass: rgba(255, 252, 246, 0.62);
  --line: rgba(58, 38, 18, 0.1);
  --line-2: rgba(58, 38, 18, 0.16);
  --line-3: rgba(58, 38, 18, 0.26);
  --line-gold: rgba(var(--gold-light-rgb), 0.55);

  /* Obsidian ink & daylight telemetry */
  --text: #1a140d;
  --text-2: rgba(26, 20, 13, 0.78);
  --text-3: #6b6156;
  --text-4: #a39889;
  --emerald: #047857;
  --cyan: #0369a1;
  --purple: #7e22ce;
  --err: #b91c1c;

  /* Sandstone, re-cut for daylight (accent text >= 5:1 on ivory) */
  --gold: #a86e34;
  --gold-light: #8a5626;
  --champagne: #6b3f1a;

  --tint-rgb: 58, 38, 18;
  --gold-rgb: 176, 122, 64;
  --gold-light-rgb: 138, 86, 38;
  --emerald-rgb: 4, 120, 87;
  --cyan-rgb: 3, 105, 161;

  --field: rgba(255, 253, 248, 0.96);
  --field-soft: rgba(255, 253, 249, 0.78);
  --field-focus: #fffdf9;
  --panel: rgba(255, 252, 246, 0.95);
  --glass-strong: rgba(247, 242, 233, 0.97);
  --card-solid: rgba(255, 252, 246, 0.96);
  --scrim: rgba(60, 42, 22, 0.26);

  --shadow-lg: 0 30px 70px -30px rgba(74, 48, 20, 0.34);
  --shadow-card: 0 24px 50px -18px rgba(74, 48, 20, 0.3), 0 0 1px 1px rgba(var(--gold-rgb), 0.34);
  --shadow-float: 0 50px 110px -30px rgba(74, 48, 20, 0.4);
  --shadow-toast: 0 18px 40px -14px rgba(74, 48, 20, 0.45);
  --card-shadow-rest: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 14px 34px -26px rgba(74, 48, 20, 0.32);

  /* Drafting-paper grid, sunlit cursor and an ink-and-bronze star chart */
  --grid-line: rgba(120, 78, 36, 0.075);
  --grid-minor: rgba(120, 78, 36, 0.03);
  --glow: rgba(226, 170, 100, 0.2);
  --atmo-dot: 120, 78, 36;
  --atmo-line: 140, 92, 44;
  --atmo-strength: 0.85;

  --gs-1: #6b3f1a;
  --gs-2: #8a5626;
  --gs-3: #a86e34;
  --gs-4: #7b4f28;
  --sun: #d98f2b;
  --sun-corona: #e9a64a;
}

/* ----------------------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
  color-scheme: dark;
  /* Touch feedback in sandstone instead of the default grey flash. */
  -webkit-tap-highlight-color: rgba(var(--gold-rgb), 0.16);
}

/* The body stays transparent so the fixed atmosphere layers (z-index: -1) show through. */
body {
  min-height: 100vh;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  overflow-wrap: break-word;
}

img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--text); font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: rgba(var(--gold-rgb), 0.35); color: var(--champagne); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ----------------------------------------------------------------------------
   Utilities
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--pad-l) var(--pad-r);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
/* Gradient stops are themed through tokens (the sprite lives in the page, so it inherits them). */
.gs-1 { stop-color: var(--gs-1); }
.gs-2 { stop-color: var(--gs-2); }
.gs-3 { stop-color: var(--gs-3); }
.gs-4 { stop-color: var(--gs-4); }
.gs-sun { stop-color: var(--sun); }
.gs-corona { stop-color: var(--sun-corona); }
.logo-core { fill: var(--bg); }

.i {
  width: 1.15em; height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.18em;
}
/* The AI spark is always drawn in the spectrum. */
use[href="#i-spark"] { fill: url(#g-spectrum-24); stroke: none; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--champagne); color: var(--bg); font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; }

.scroll-progress { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 2px; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%;
  background: var(--spectrum);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

.grain {
  position: fixed; inset: 0; z-index: 70;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------------------------
   Background atmosphere: gold squares grid, ambient constellation, cursor glow.
   Fixed at z-index -1, so they paint above the html background and below all
   page content (the body is transparent). All three are purely decorative.
   ------------------------------------------------------------------------- */
.atmo-grid,
.ambient-canvas,
.cursor-glow { position: fixed; z-index: -1; pointer-events: none; }
.atmo-grid {
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 20%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 75% at 50% 20%, #000 30%, transparent 100%);
}
.ambient-canvas { inset: 0; width: 100%; height: 100%; }
.cursor-glow {
  top: 0; left: 0;
  width: 520px; height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, var(--glow), transparent);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }

/* ----------------------------------------------------------------------------
   Buttons & small primitives
   ------------------------------------------------------------------------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h);
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.94rem; font-weight: 500; letter-spacing: -0.005em;
  white-space: nowrap;
  user-select: none;
  transition: transform 0.2s var(--ease-out), background-color 0.2s, background-position 0.7s var(--ease-out), border-color 0.2s, color 0.2s, box-shadow 0.3s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .i { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease-out); }
.btn:hover > svg:last-child { transform: translateX(3px); }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 0.86rem; }
.btn-lg { --h: 52px; padding: 0 26px; font-size: 1rem; }
/* Sandstone gold. The champagne band sits off-canvas at rest and sweeps across on hover. */
.btn-primary {
  color: var(--bg);
  font-weight: 600;
  background: linear-gradient(110deg, var(--gold) 0%, var(--gold-light) 40%, var(--champagne) 50%, var(--gold-light) 60%, var(--gold) 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover { background-position: 0 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 34px -10px rgba(var(--gold-rgb), 0.75); }
.btn-ghost { background: rgba(var(--tint-rgb), 0.035); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--gold-dim); border-color: rgba(var(--gold-light-rgb), 0.45); }
.btn-ai {
  color: var(--text);
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--spectrum) border-box;
}
.btn-ai:hover { box-shadow: 0 0 0 4px var(--gold-dim), 0 10px 40px -10px rgba(var(--gold-light-rgb), 0.5); }
.btn[disabled], .btn[aria-busy='true'] { opacity: 0.65; cursor: progress; }
.btn[aria-busy='true'] .btn-label::after { content: '…'; }

.kbd {
  display: inline-block;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: rgba(var(--tint-rgb), 0.04);
  color: var(--text-3);
  font: 500 0.7rem/1 var(--font-mono);
  letter-spacing: 0.02em;
}

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; font-size: 0.94rem; white-space: nowrap; }
.link-arrow .i { transition: transform 0.25s var(--ease-out); }
.link-arrow:hover .i { transform: translateX(4px); }

/* Cursor-following light on cards */
.spotlight { position: relative; isolation: isolate; }
.spotlight::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--gold-rgb), 0.1), transparent 60%);
}
@media (hover: hover) { .spotlight:hover::after { opacity: 1; } }

/* ----------------------------------------------------------------------------
   Cards & boxes: card-glass surface, gold illumination, animated top hairline.
   Content cards also lift; large interactive panels illuminate in place so
   they never move under the pointer while someone is working inside them.
   ------------------------------------------------------------------------- */
:is(.pillar, .principle, .industry, .engage-card, .insight, .svc-stage, .agent, .form-card, .compare, .signal-board) {
  position: relative;
  border: 1px solid var(--line);
  background: var(--card-glass);
  box-shadow: var(--card-shadow-rest);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    opacity 0.35s var(--ease-out);
}
:is(.pillar, .principle, .industry, .engage-card, .insight, .svc-stage, .agent, .form-card, .compare, .signal-board)::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.6s var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) {
  :is(.pillar, .principle, .industry, .engage-card, .insight, .svc-stage, .agent, .form-card, .compare, .signal-board):hover {
    border-color: var(--line-gold);
    box-shadow: var(--shadow-card);
  }
  :is(.pillar, .principle, .industry, .engage-card, .insight):hover { transform: translateY(-5px); }
  :is(.pillar, .principle, .industry, .engage-card, .insight, .svc-stage, .agent, .form-card, .compare, .signal-board):hover::before { transform: scaleX(1); }
}
/* Keyboard users get the same illumination when focus lands inside a card. */
:is(.pillar, .principle, .industry, .engage-card, .insight, .svc-stage, .agent, .form-card, .compare, .signal-board):has(:focus-visible) {
  border-color: var(--line-gold);
  box-shadow: var(--shadow-card);
}
:is(.pillar, .principle, .industry, .engage-card, .insight, .svc-stage, .agent, .form-card, .compare, .signal-board):has(:focus-visible)::before { transform: scaleX(1); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :is(.pillar, .principle, .industry, .engage-card, .insight, .svc-stage, .agent, .form-card, .compare, .signal-board) { background: var(--card-solid); }
}

/* ----------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  backdrop-filter: saturate(140%) blur(20px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark {
  width: auto;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(var(--gold-rgb), 0.22));
  transform: none;
  transition: opacity 0.2s;
}
.brand-mark-footer { height: 118px; }
.brand:hover .brand-mark { transform: none; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.05em; }

.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav ul { display: flex; gap: 2px; }
.primary-nav a {
  position: relative;
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-2);
  transition: color 0.2s, background-color 0.2s;
}
.primary-nav a:hover { color: var(--text); background: rgba(var(--gold-rgb), 0.08); }
.primary-nav a.is-active { color: var(--text); }
.primary-nav a.is-active::after {
  content: '';
  position: absolute; left: 50%; bottom: 1px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ai-2);
  box-shadow: 0 0 8px var(--ai-2);
  transform: translateX(-50%);
}

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ask-btn .kbd { margin-left: 2px; padding: 3px 5px; }

/* Theme switch: an eclipse. Obsidian shows a crescent moon in a night sky; Alabaster slides
   the moon's shadow away to reveal the sun, and the track turns to dawn. */
.theme-toggle {
  position: relative;
  flex: none;
  width: 60px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  isolation: isolate;
  background: radial-gradient(120% 160% at 20% 50%, #1b2234 0%, #0b0f18 58%, #06080d 100%);
  transition: border-color 0.3s, box-shadow 0.3s;
}
@media (hover: hover) { .theme-toggle:hover { border-color: rgba(var(--gold-light-rgb), 0.5); box-shadow: 0 0 0 4px var(--gold-dim); } }
.tt-sky,
.tt-stars,
.tt-cloud { position: absolute; pointer-events: none; transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out); }
/* No overflow clip on the track (it would also clip the enlarged touch target), so the sky rounds itself. */
.tt-sky { inset: 0; z-index: -1; border-radius: inherit; opacity: 0; background: linear-gradient(180deg, #fff1d6 0%, #f8d9a4 55%, #f0bf7a 100%); }
.tt-stars {
  inset: 0;
  background:
    radial-gradient(1px 1px at 33px 9px, #fff 70%, transparent),
    radial-gradient(1px 1px at 45px 21px, rgba(255, 255, 255, 0.85) 70%, transparent),
    radial-gradient(1.5px 1.5px at 51px 10px, #f8e5cb 70%, transparent),
    radial-gradient(1px 1px at 39px 25px, rgba(255, 255, 255, 0.6) 70%, transparent),
    radial-gradient(1px 1px at 54px 22px, rgba(255, 255, 255, 0.7) 70%, transparent);
  animation: ttTwinkle 3.6s ease-in-out infinite;
}
.tt-cloud {
  left: 7px; top: 9px;
  width: 24px; height: 13px;
  opacity: 0;
  transform: translateX(-6px);
  background:
    radial-gradient(circle at 6px 9px, #fff 0 4px, transparent 4.5px),
    radial-gradient(circle at 12.5px 6px, #fff 0 5.5px, transparent 6px),
    radial-gradient(circle at 19px 9px, #fff 0 4px, transparent 4.5px);
}
.tt-thumb {
  position: absolute; top: 3px; left: 3px;
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #262f43, #10141e 70%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 14px -2px rgba(248, 229, 203, 0.5);
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), scale 0.2s var(--ease-out), background 0.6s, box-shadow 0.6s;
}
.theme-toggle:active .tt-thumb { scale: 0.9; }
.tt-orb { width: 18px; height: 18px; overflow: visible; }
.tt-disc { fill: #f3e3c6; transition: fill 0.6s; }
.tt-shade { transition: transform 0.75s var(--ease-out); }
.tt-rays {
  fill: none;
  stroke: #c9771f;
  stroke-width: 1.7;
  stroke-linecap: round;
  opacity: 0;
  transform-origin: 12px 12px;
  transform: rotate(-120deg) scale(0.3);
  transition: transform 0.8s var(--ease-out), opacity 0.4s;
}
[data-theme='light'] .theme-toggle { border-color: rgba(var(--gold-light-rgb), 0.32); }
[data-theme='light'] .tt-sky { opacity: 1; }
[data-theme='light'] .tt-stars { opacity: 0; transform: translateY(6px); animation: none; }
[data-theme='light'] .tt-cloud { opacity: 0.95; transform: none; }
[data-theme='light'] .tt-thumb {
  transform: translateX(28px);
  background: radial-gradient(circle at 35% 30%, #fffdf6, #fde7bd 75%);
  box-shadow: 0 0 0 1px rgba(168, 110, 52, 0.22), 0 0 16px 1px rgba(240, 168, 72, 0.65);
}
[data-theme='light'] .tt-disc { fill: #e7962f; }
[data-theme='light'] .tt-shade { transform: translate(11px, -11px); }
[data-theme='light'] .tt-rays { opacity: 1; transform: none; }
@keyframes ttTwinkle { 50% { opacity: 0.45; } }

.menu-toggle {
  display: none;
  position: relative;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px;
  height: 1.5px; border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 23px; }
.menu-toggle[aria-expanded='true'] span:first-child { top: 19px; transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { top: 19px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  animation: fadeIn 0.25s ease both;
}
.mobile-nav nav { display: flex; flex-direction: column; padding-top: 16px; padding-bottom: calc(40px + var(--safe-b)); }
.mobile-nav a:not(.btn) {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}
.mobile-nav .btn { margin-top: 28px; }

/* ----------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + clamp(28px, 6vh, 72px)) 0 clamp(28px, 4vh, 48px);
}
/* The aurora fades out through a mask (not a --bg overlay) so the fixed atmosphere stays visible. */
.hero-bg {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 200px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 200px), transparent);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  animation: drift 26s var(--ease-in-out) infinite alternate;
}
.a1 {
  width: 52vw; height: 52vw; max-width: 820px; max-height: 820px;
  top: -22vw; right: -10vw;
  background: radial-gradient(circle at 40% 40%, rgba(var(--gold-rgb), 0.3), transparent 62%);
}
.a2 {
  width: 40vw; height: 40vw; max-width: 640px; max-height: 640px;
  top: 10vh; right: 16vw;
  background: radial-gradient(circle, rgba(158, 100, 51, 0.26), transparent 62%);
  animation-duration: 32s; animation-delay: -8s;
}
.a3 {
  width: 46vw; height: 46vw; max-width: 700px; max-height: 700px;
  bottom: -26vw; left: -14vw;
  background: radial-gradient(circle, rgba(123, 79, 40, 0.24), transparent 62%);
  animation-duration: 38s;
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-4vw, 3vh, 0) scale(1.12); }
}

.hero-inner {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; max-width: 660px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(var(--gold-light-rgb), 0.22);
  border-radius: 999px;
  background: rgba(var(--gold-rgb), 0.06);
  font: 500 0.74rem/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  animation: fadeUp 0.8s var(--ease-out) both;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px rgba(var(--emerald-rgb), 0.8);
  animation: breathe 2.4s ease-in-out infinite;
}

.display {
  margin-top: 22px;
  font-size: clamp(2.55rem, 1.2rem + 4vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.display .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.display .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease-out) forwards; }
.display .line:nth-child(2) > span { animation-delay: 0.1s; }

/* Space Grotesk has no italic, so emphasis is carried by a slow sandstone shimmer. */
.ai-word {
  font-style: normal;
  font-weight: inherit;
  background: linear-gradient(100deg, var(--gold-light) 0%, var(--champagne) 24%, var(--gold) 52%, var(--bronze-warm) 78%, var(--gold-light) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 7s ease-in-out infinite alternate;
}

.lead {
  margin-top: 24px;
  max-width: 590px;
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.18rem);
  line-height: 1.6;
  color: var(--text-2);
  animation: fadeUp 0.9s 0.2s var(--ease-out) both;
}

/* AI navigator ------------------------------------------------------------ */
.navigator { margin-top: 32px; max-width: 620px; animation: fadeUp 0.9s 0.32s var(--ease-out) both; }
.navigator-label {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
  font: 500 0.72rem/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.prompt-shell {
  position: relative;
  isolation: isolate;
  padding: 1px;
  border-radius: 20px;
  background: var(--spectrum-conic);
  animation: spin 7s linear infinite;
  transition: box-shadow 0.3s;
}
.prompt-shell::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: var(--spectrum-conic);
  filter: blur(22px);
  opacity: 0.36;
  animation: spin 7s linear infinite;
  transition: opacity 0.4s;
}
.prompt-shell:focus-within { box-shadow: 0 0 0 4px rgba(var(--gold-rgb), 0.16); }
.prompt-shell:focus-within::before { opacity: 0.7; }
.prompt-box {
  display: flex; align-items: flex-end; gap: 10px;
  padding: 10px 10px 10px 18px;
  border-radius: 19px;
  background: var(--field);
}
.prompt-box textarea {
  flex: 1; min-width: 0;
  min-height: 44px; max-height: 168px;
  padding: 10px 0;
  border: 0; outline: 0; resize: none;
  background: transparent;
  color: var(--text);
  font-size: 1.03rem; line-height: 1.5;
}
.prompt-box textarea::placeholder { color: var(--text-3); opacity: 1; }
.prompt-submit {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--champagne), var(--gold-light) 45%, var(--gold));
  color: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.2s var(--ease-out), opacity 0.2s, box-shadow 0.3s;
}
.prompt-submit:hover { transform: scale(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 26px -8px rgba(var(--gold-rgb), 0.8); }
.prompt-submit .i { width: 20px; height: 20px; stroke-width: 2; }
.prompt-submit[aria-busy='true'] { opacity: 0.6; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(var(--tint-rgb), 0.025);
  color: var(--text-2);
  font-size: 0.85rem;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease-out);
}
@media (hover: hover) {
  .chip:hover { color: var(--text); border-color: rgba(var(--gold-light-rgb), 0.4); background: var(--gold-dim); transform: translateY(-1px); }
}
.chip:active { transform: scale(0.97); }
.chip-ai {
  border-color: transparent;
  color: var(--text);
  background: linear-gradient(var(--field), var(--field)) padding-box, var(--spectrum) border-box;
}
.prompt-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.8rem; color: var(--text-3); }
.prompt-note .i { width: 14px; height: 14px; }

/* Analysis output ------------------------------------------------------------ */
.analysis {
  position: relative;
  margin-top: 18px;
  max-width: 620px;
  max-height: min(54vh, 500px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--panel);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  scrollbar-width: thin;
  animation: fadeUp 0.5s var(--ease-out) both;
}
.analysis:focus { outline: none; }
.an-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.an-title { display: flex; align-items: center; gap: 8px; font: 500 0.76rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.an-badge { font: 500 0.66rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.an-signals { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.an-signals-label { margin-right: 4px; font-size: 0.78rem; color: var(--text-3); }
.an-signal {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  background: var(--gold-dim);
  color: var(--champagne);
  font: 500 0.72rem var(--font-mono);
  animation: pop 0.35s var(--ease-out) both;
}
.an-text { color: var(--text); font-size: 1rem; line-height: 1.55; }
.an-text strong { color: var(--champagne); font-weight: 600; }
.an-section { margin-top: 18px; }
.an-h { margin-bottom: 8px; font: 500 0.7rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.an-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(70px, 120px) 44px;
  align-items: center; gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  animation: fadeUp 0.4s var(--ease-out) both;
}
.an-match-name { color: var(--text); font-size: 0.92rem; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.an-match-name:hover { text-decoration-color: var(--line-3); }
.an-bar { height: 6px; border-radius: 99px; background: rgba(var(--tint-rgb), 0.07); overflow: hidden; }
.an-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--spectrum); transform-origin: left; animation: grow 1s var(--ease-out) both; }
.an-pct { font: 500 0.8rem var(--font-mono); color: var(--text); text-align: right; }
.an-step { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--tint-rgb), 0.03); color: var(--text-2); font-size: 0.94rem; line-height: 1.55; }
.an-step strong { color: var(--text); font-weight: 600; }
.an-list li { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; color: var(--text); font-size: 0.94rem; animation: fadeUp 0.35s var(--ease-out) both; }
.an-list .i { margin-top: 3px; color: var(--ok); }
.an-note { margin-top: 12px; font-size: 0.86rem; color: var(--text-3); }
.an-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; animation: fadeUp 0.4s var(--ease-out) both; }
.caret { display: inline-block; width: 0.5em; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: var(--ai-2); animation: blink 1s steps(1) infinite; }

/* Hero visual ---------------------------------------------------------------- */
.hero-visual {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  width: 100%; max-width: 600px;
  aspect-ratio: 1;
  justify-self: end;
  animation: fadeIn 1.4s 0.2s var(--ease-out) both;
}
.core-frame { position: absolute; inset: 0; }
.core-frame::before {
  content: '';
  position: absolute; inset: 16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--gold-rgb), 0.22), rgba(158, 100, 51, 0.1) 55%, transparent);
  filter: blur(12px);
  animation: breatheGlow 6s ease-in-out infinite;
}
.core-frame canvas { position: relative; width: 100%; height: 100%; }
.hud { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(var(--gold-light-rgb), 0.38); }
.hud-tl { top: 4%; left: 4%; border-top-width: 1px; border-left-width: 1px; }
.hud-tr { top: 4%; right: 4%; border-top-width: 1px; border-right-width: 1px; }
.hud-bl { bottom: 4%; left: 4%; border-bottom-width: 1px; border-left-width: 1px; }
.hud-br { bottom: 4%; right: 4%; border-bottom-width: 1px; border-right-width: 1px; }
.core-caption {
  position: absolute; left: 50%; bottom: 3%;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  font: 500 0.7rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
  transform: translateX(-50%);
}
.core-caption.is-swapping { animation: captionSwap 0.6s var(--ease-out); }
.core-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); animation: breathe 2s ease-in-out infinite; }

.float-card {
  position: absolute; z-index: 2;
  width: 232px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  font-size: 0.8rem;
  animation: float 8s ease-in-out infinite;
}
.fc-1 { top: 9%; left: -6%; }
.fc-2 { bottom: 13%; right: -4%; animation-delay: -4s; }
.fc-label { display: flex; align-items: center; gap: 6px; font: 500 0.66rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.fc-main { margin-top: 6px; color: var(--text); font-family: var(--font-display); font-weight: 500; font-size: 0.98rem; letter-spacing: -0.01em; }
.fc-muted { color: var(--text-3); font-family: var(--font-sans); font-weight: 400; font-size: 0.76rem; letter-spacing: 0; }
.fc-sub { margin-top: 3px; color: var(--text-3); font: 500 0.68rem/1.5 var(--font-mono); letter-spacing: 0.02em; }
.fc-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.fc-btn { flex: none; padding: 5px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--bg); font-weight: 600; font-size: 0.72rem; white-space: nowrap; }
.fc-ghost { color: var(--warn); font-size: 0.72rem; font-weight: 500; white-space: nowrap; }
.sparkline { width: 100%; height: 34px; margin-top: 8px; overflow: visible; }
.sparkline path { fill: none; stroke: url(#g-line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(32px, 5vh, 56px);
  border-top: 1px solid var(--line);
  animation: fadeUp 1s 0.5s var(--ease-out) both;
}
.hero-stats li { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px 4px 0; }
.hero-stats li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-stats strong { color: var(--text); font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; }
.hero-stats span { font-size: 0.86rem; color: var(--text-3); line-height: 1.4; }

.hero-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 20px; color: var(--text-3); font-size: 0.88rem; animation: fadeUp 0.9s 0.42s var(--ease-out) both; }
.hero-alt .link-arrow { font-size: 0.88rem; }
.analysis:not([hidden]) ~ .hero-alt { display: none; }

.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 26px; animation: fadeUp 1s 0.62s var(--ease-out) both; }
.platforms-label { color: var(--text-3); font: 500 0.68rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.platforms-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; }
.platforms-list li { display: inline-flex; align-items: center; color: var(--text-2); font-size: 0.92rem; font-weight: 500; letter-spacing: -0.01em; }
.platforms-list li + li::before { content: ''; width: 4px; height: 4px; margin: 0 16px; border-radius: 50%; background: rgba(var(--gold-rgb), 0.6); }

/* ----------------------------------------------------------------------------
   Marquee
   ------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 64s linear infinite; }
@media (hover: hover) { .marquee:hover .marquee-track { animation-play-state: paused; } }
.marquee ul { display: flex; flex: none; }
.marquee li {
  display: flex; align-items: center;
  white-space: nowrap;
  font: 400 0.8rem var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.marquee li::after { content: ''; width: 5px; height: 5px; margin: 0 28px; border-radius: 50%; background: var(--spectrum); opacity: 0.85; }

/* ----------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */
.section { position: relative; padding-block: clamp(88px, 11vw, 150px); }
.section-head { max-width: 860px; margin-bottom: clamp(40px, 5vw, 72px); }
.kicker {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  font: 500 0.74rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.kicker span { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-light); }
.kicker span::after { content: ''; width: 28px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

h2 { font-size: clamp(2.1rem, 1.2rem + 3vw, 3.75rem); line-height: 1.04; letter-spacing: -0.035em; }
/* Emphasis = lighter weight + static sandstone gradient (Space Grotesk ships no italic). */
h2 em, .value-statement em {
  font-style: normal;
  font-weight: 400;
  background: linear-gradient(100deg, var(--champagne) 0%, var(--gold-light) 45%, var(--gold) 100%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.section-lead { margin-top: 22px; max-width: 680px; font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.18rem); color: var(--text-2); }

/* Value -------------------------------------------------------------------- */
.value-statement { max-width: 1020px; font-size: clamp(2rem, 1.1rem + 3.3vw, 4.1rem); line-height: 1.06; letter-spacing: -0.038em; }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.pillar { padding: 28px 24px 26px; border-radius: var(--radius-lg); }
.pillar-icon { width: 28px; height: 28px; fill: none; stroke: var(--gold-light); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { margin-top: 40px; font-size: 1.5rem; letter-spacing: -0.03em; }
.pillar-tag { margin-top: 6px; color: var(--gold-light); font-size: 0.98rem; font-weight: 500; letter-spacing: -0.005em; }
.pillar p:last-child { margin-top: 14px; font-size: 0.93rem; color: var(--text-3); line-height: 1.6; }

.ai-band {
  position: relative;
  isolation: isolate;
  display: flex; align-items: center; gap: 18px;
  margin-top: 16px;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--spectrum) border-box;
}
.ai-band::before {
  content: '';
  position: absolute; inset: -1px; z-index: -1;
  border-radius: inherit;
  background: var(--spectrum);
  filter: blur(34px);
  opacity: 0.12;
}
.ai-band p { flex: 1; color: var(--text-2); }
.ai-band strong { color: var(--text); font-weight: 600; }
.ai-band-icon { width: 26px; height: 26px; }

/* Services ----------------------------------------------------------------- */
.svc { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 20px; align-items: start; }
.svc-tabs { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 4px; }
html:not(.js) .svc-tabs { display: none; }
html:not(.js) .svc { grid-template-columns: 1fr; }
html:not(.js) .svc-panel + .svc-panel { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }

.svc-tab {
  position: relative;
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-align: left;
  color: var(--text-2);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.svc-tab:hover { background: rgba(var(--gold-rgb), 0.05); color: var(--text); }
.svc-tab[aria-selected='true'] { background: var(--card-glass); border-color: rgba(var(--gold-light-rgb), 0.24); color: var(--text); }
.svc-tab[aria-selected='true']::before {
  content: '';
  position: absolute; left: -1px; top: 16px; bottom: 16px;
  width: 2px; border-radius: 2px;
  background: var(--spectrum-v);
  box-shadow: 0 0 12px rgba(var(--gold-rgb), 0.6);
}
.svc-num { font: 500 0.74rem/1.7 var(--font-mono); color: var(--text-3); transition: color 0.25s; }
.svc-tab[aria-selected='true'] .svc-num { color: var(--gold-light); }
.svc-tab-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.svc-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.98rem; font-weight: 500; line-height: 1.35; }
.svc-out { font-size: 0.84rem; color: var(--text-3); }
.flag { padding: 4px 7px; border-radius: 999px; background: var(--spectrum); color: var(--bg); font: 600 0.6rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }

.svc-stage {
  isolation: isolate;
  overflow: hidden;
  min-height: 600px;
  padding: clamp(24px, 3.6vw, 52px);
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 80% at 100% 0%, rgba(var(--gold-rgb), 0.08), transparent 50%), var(--card-glass);
}
/* The AI practice reads as "active": gold edge and a permanent top hairline. */
.svc-stage.is-ai {
  border-color: rgba(var(--gold-light-rgb), 0.4);
  background: radial-gradient(120% 80% at 100% 0%, rgba(var(--gold-rgb), 0.15), transparent 50%), var(--card-glass);
}
.svc-stage.is-ai::before { transform: scaleX(1); }
.svc-visual { position: absolute; top: -30px; right: -30px; z-index: 0; width: min(380px, 50%); aspect-ratio: 1; pointer-events: none; }
.svc-visual canvas { width: 100%; height: 100%; }
html:not(.js) .svc-visual { display: none; }
.svc-panel { position: relative; z-index: 1; }
.svc-panel:focus-visible { outline-offset: 10px; }
.svc-panel.is-entering { animation: panelIn 0.55s var(--ease-out) both; }
.svc-label { font: 500 0.72rem/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.svc-title { margin-top: 14px; max-width: 15ch; font-size: clamp(1.9rem, 1.2rem + 2vw, 3rem); line-height: 1.05; letter-spacing: -0.035em; }
.svc-desc { margin-top: 18px; max-width: 50ch; font-size: 1.05rem; color: var(--text-2); }
.svc-cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(20px, 3vw, 40px); margin-top: 36px; }
.mini-head { margin-bottom: 12px; font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.cap-list li { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 0.95rem; line-height: 1.45; }
.cap-list li:first-child { border-top: 1px solid var(--line); }
.cap-list .i { margin-top: 2px; color: var(--gold); }
.svc-side { display: flex; flex-direction: column; gap: 22px; }
.ai-callout {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--spectrum) border-box;
}
.ai-callout p:last-child { margin-top: 8px; color: var(--text-2); font-size: 0.92rem; line-height: 1.55; }
.ai-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 0.7rem/1.2 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.kpis { display: flex; flex-wrap: wrap; gap: 8px; }
.kpis li { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(var(--gold-light-rgb), 0.2); color: var(--text-2); font: 500 0.74rem var(--font-mono); }
.svc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* AI / Agent Studio ---------------------------------------------------------- */
.ai { isolation: isolate; overflow: clip; }
.ai-glow {
  position: absolute; left: 50%; top: 36%; z-index: -1;
  width: 1100px; height: 720px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--gold-rgb), 0.1), rgba(158, 100, 51, 0.05) 55%, transparent);
  pointer-events: none;
}
.agent {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
/* A live module: its top hairline stays lit. */
.agent::before { transform: scaleX(1); }
.agent-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.agent-title { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-display); font-weight: 500; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: ping 2s infinite; }
.badge { padding: 5px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-3); font: 500 0.64rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.agent-scenarios { display: flex; gap: 4px; max-width: 100%; padding: 4px; overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--tint-rgb), 0.02); scrollbar-width: none; }
.agent-scenarios::-webkit-scrollbar { display: none; }
.agent-scenarios button { flex: none; padding: 8px 12px; border-radius: 9px; color: var(--text-3); font-size: 0.84rem; white-space: nowrap; transition: color 0.2s, background-color 0.2s; }
.agent-scenarios button:hover { color: var(--text); }
.agent-scenarios button[aria-selected='true'] { background: var(--gold-dim); color: var(--champagne); box-shadow: inset 0 0 0 1px rgba(var(--gold-light-rgb), 0.32); }
.agent-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.agent-flow { position: relative; display: flex; flex-direction: column; padding: 22px; border-right: 1px solid var(--line); }
.flow-node { position: relative; display: flex; gap: 14px; padding: 10px 0; }
.flow-node:not(:last-child)::after {
  content: '';
  position: absolute; left: 19.5px; top: 54px; bottom: -8px;
  width: 1px;
  background: var(--line-2);
  transition: background 0.4s;
}
.flow-node[data-state='done']:not(:last-child)::after { background: linear-gradient(var(--ok), rgba(var(--emerald-rgb), 0.15)); }
.node-icon {
  position: relative;
  flex: none;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text-3);
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.node-icon .i { width: 18px; height: 18px; }
.node-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding-top: 1px; }
.node-text strong { color: var(--text); font-size: 0.95rem; font-weight: 500; }
.node-desc { font-size: 0.8rem; color: var(--text-3); }
.node-status { margin-top: 3px; color: var(--text-3); font: 500 0.66rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
/* Telemetry states: running = cyan, waiting on a human = gold, done = emerald. */
.flow-node[data-state='running'] .node-icon {
  color: var(--cyan);
  border-color: transparent;
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, conic-gradient(from var(--angle), rgba(var(--cyan-rgb), 0.12), var(--cyan), rgba(var(--cyan-rgb), 0.12)) border-box;
  box-shadow: 0 0 24px -4px rgba(var(--cyan-rgb), 0.6);
  animation: spin 2.5s linear infinite;
}
.flow-node[data-state='running'] .node-status { color: var(--cyan); }
.flow-node[data-state='waiting'] .node-icon { color: var(--warn); border-color: rgba(var(--gold-light-rgb), 0.5); animation: pulseWarn 1.6s ease-in-out infinite; }
.flow-node[data-state='waiting'] .node-status { color: var(--warn); }
.flow-node[data-state='done'] .node-icon { color: var(--ok); border-color: rgba(var(--emerald-rgb), 0.38); }
.flow-node[data-state='done'] .node-status { color: var(--ok); }

.agent-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px; }
.agent-console {
  height: 300px;
  overflow-y: auto;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(4, 6, 8, 0.82);
  color: var(--text-2);
  font: 400 0.8rem/1.7 var(--font-mono);
  scrollbar-width: thin;
}
.log-idle { max-width: 48ch; color: var(--text-3); font-family: var(--font-sans); font-size: 0.92rem; line-height: 1.6; }
.log-idle strong { color: var(--text); font-weight: 500; }
.log-line { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 12px; padding: 2px 0; animation: logIn 0.35s var(--ease-out) both; }
.log-time { color: var(--text-3); }
.log-tag { min-width: 64px; font-weight: 600; letter-spacing: 0.06em; }
/* Telemetry palette, one colour per loop stage. */
.log-tag[data-step='sense'] { color: var(--cyan); }
.log-tag[data-step='analyze'] { color: var(--purple); }
.log-tag[data-step='decide'] { color: var(--gold-light); }
.log-tag[data-step='act'] { color: var(--gold); }
.log-tag[data-step='learn'] { color: var(--emerald); }
.log-tag[data-step='human'] { color: var(--champagne); }
.log-tag[data-step='system'] { color: var(--text-3); }
.log-text b { color: var(--text); font-weight: 600; }
.log-line.is-latest .log-text::after {
  content: '';
  display: inline-block;
  width: 7px; height: 13px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--gold);
  animation: blink 1s steps(1) infinite;
}

.agent-approval {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(var(--gold-light-rgb), 0.42);
  background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.12), rgba(var(--gold-rgb), 0.03));
  animation: fadeUp 0.4s var(--ease-out) both;
}
.approval-kicker { display: flex; align-items: center; gap: 6px; color: var(--warn); font: 600 0.66rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.approval-title { margin-top: 4px; color: var(--text); font-weight: 500; }
.approval-detail { font-size: 0.85rem; color: var(--text-2); }
.approval-actions { display: flex; gap: 8px; }

.agent-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; animation: fadeUp 0.5s var(--ease-out) both; }
.result-item {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--spectrum) border-box;
}
.result-val { color: var(--text); font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.result-lbl { font-size: 0.8rem; color: var(--text-3); }
.agent-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.agent-hint { font-size: 0.8rem; color: var(--text-3); }
html:not(.js) .agent-controls,
html:not(.js) .agent-scenarios { display: none; }

.cite-line {
  display: flex; align-items: flex-start; gap: 12px;
  max-width: 920px;
  margin-top: 28px;
  padding: 14px 20px;
  border-left: 2px solid var(--gold);
  color: var(--text-2);
  font-size: 0.92rem;
}
.cite-line > .i { margin-top: 3px; color: var(--text-3); }
.cite-logo { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: var(--gold-light); }
.cite-line a {
  display: inline-flex; align-items: center; gap: 4px;
  flex: none;
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(var(--gold-light-rgb), 0.4);
  text-underline-offset: 3px;
}
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.principle { padding: 24px; border-radius: var(--radius); }
.principle-icon { width: 24px; height: 24px; fill: none; stroke: var(--gold-light); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.principle h3 { margin-top: 22px; font-size: 1.08rem; }
.principle p { margin-top: 8px; font-size: 0.9rem; color: var(--text-3); line-height: 1.6; }

/* Industries --------------------------------------------------------------- */
.industry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.industry {
  display: flex; flex-direction: column;
  padding: 28px 26px 24px;
  border-radius: var(--radius-lg);
}
.industry-icon { width: 28px; height: 28px; fill: none; stroke: var(--gold-light); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.industry h3 { margin-top: 30px; font-size: 1.3rem; letter-spacing: -0.03em; }
.industry > p { margin-top: 10px; color: var(--text-3); font-size: 0.93rem; line-height: 1.6; }
.industry-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; margin-bottom: 24px; }
.industry-tags li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font: 500 0.68rem var(--font-mono); letter-spacing: 0.02em; }
.industry-ask {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 15px 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--spectrum) border-box;
  color: var(--text);
  font-size: 0.84rem; font-weight: 500;
  transition: box-shadow 0.3s, transform 0.2s var(--ease-out);
}
.industry-ask:hover { box-shadow: 0 0 0 4px var(--gold-dim), 0 10px 30px -12px rgba(var(--gold-light-rgb), 0.5); }
.industry-ask:active { transform: translateY(1px); }
.industry-ask .i { width: 14px; height: 14px; }
html:not(.js) .industry-ask { display: none; }

/* Approach ----------------------------------------------------------------- */
.timeline { position: relative; --progress: 0; }
.timeline-track { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2); }
.timeline-fill {
  position: absolute; inset: 0;
  background: var(--spectrum);
  box-shadow: 0 0 12px rgba(var(--gold-rgb), 0.6);
  transform-origin: left center;
  transform: scaleX(var(--progress));
}
.stages { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.stage { position: relative; padding-top: 40px; }
.stage-dot {
  position: absolute; top: 0; left: 0;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1px solid var(--line-3);
  background: var(--bg);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.stage.is-active .stage-dot { border-color: transparent; background: var(--spectrum); box-shadow: 0 0 0 5px var(--gold-dim), 0 0 20px var(--gold-glow); }
.stage-num { font: 500 0.7rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.stage.is-active .stage-num { color: var(--gold-light); }
.stage h3 { margin-top: 12px; font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.03em; }
.stage-tag { margin-top: 6px; color: var(--gold-light); font-size: 0.98rem; font-weight: 500; line-height: 1.35; }
.stage > p:not([class]) { margin-top: 12px; color: var(--text-2); font-size: 0.92rem; line-height: 1.65; }
.stage-out { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.stage-out li { position: relative; padding-left: 16px; color: var(--text-3); font-size: 0.84rem; }
.stage-out li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: rgba(var(--gold-rgb), 0.6); }
.stage-time { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--text); font: 500 0.74rem var(--font-mono); }
.stage-time span { color: var(--text-3); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; }

.compare { margin-top: clamp(56px, 7vw, 96px); overflow: hidden; border-radius: var(--radius-lg); }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 0.95rem; line-height: 1.55; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { background: rgba(var(--tint-rgb), 0.02); color: var(--text-3); font: 500 0.7rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.compare tbody th { width: 20%; color: var(--text); font-weight: 500; }
.compare td:nth-of-type(1) { color: var(--text-3); }
.compare td:nth-of-type(2) { color: var(--text); background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.08), transparent); }
.compare-brand { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-light); }

/* Ways to engage */
.engage { margin-top: clamp(64px, 8vw, 112px); }
.engage-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 48px; margin-bottom: 28px; }
.engage-title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); letter-spacing: -0.03em; }
.engage-head p { max-width: 520px; color: var(--text-2); font-size: 0.98rem; }
.engage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.engage-card {
  display: flex; flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-lg);
}
.engage-step { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font: 500 0.7rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.engage-step .i { width: 16px; height: 16px; color: var(--gold-light); }
.engage-card h4 { margin-top: 22px; font-size: 1.15rem; letter-spacing: -0.03em; }
.engage-card p:not([class]) { margin-top: 10px; margin-bottom: 20px; color: var(--text-3); font-size: 0.9rem; line-height: 1.6; }
.engage-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.engage-meta li { padding: 4px 9px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--text-2); font: 500 0.68rem var(--font-mono); }
.engage-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 26px; color: var(--text-3); font-size: 0.94rem; }

/* Insights ----------------------------------------------------------------- */
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.insight {
  display: flex; flex-direction: column;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-lg);
}
/* Oversized company mark behind each card; lights up in sandstone gold on hover */
.insight-mark {
  position: absolute; right: -34px; bottom: -38px; z-index: -1;
  width: 210px; height: 210px;
  fill: var(--text);
  opacity: 0.035;
  transform: rotate(-10deg);
  transition: opacity 0.6s, transform 0.9s var(--ease-out);
  pointer-events: none;
}
.ins-ibm .insight-mark,
.ins-spacex .insight-mark { width: 270px; height: 270px; bottom: -84px; }
@media (hover: hover) { .insight:hover .insight-mark { fill: url(#g-spectrum-24); opacity: 0.16; transform: rotate(0deg) scale(1.06); } }
.insight-wide { grid-column: span 2; }
.insight-duo { grid-column: span 2; }
.insight-duo .insight-text { max-width: 64ch; margin-bottom: 4px; }
.insight-src { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.firm { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; }
.firm-logo { flex: none; width: 22px; height: 22px; fill: var(--text); transition: fill 0.3s; }
.ins-spacex .firm-logo { width: 30px; height: 30px; margin-block: -4px; }
.ins-ibm .firm-logo { width: 42px; height: 42px; margin-block: -10px; }
@media (hover: hover) { .insight:hover .firm-logo { fill: url(#g-spectrum-24); } }
.year { padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-3); font: 500 0.7rem var(--font-mono); }
.insight-stat { margin-top: 26px; color: var(--text); font-family: var(--font-display); font-size: clamp(2.5rem, 1.8rem + 2vw, 3.5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.insight-stat small { margin-left: 2px; font-size: 0.55em; letter-spacing: -0.02em; }
.insight-stat small.unit { margin-left: 0.2em; font-size: 0.42em; letter-spacing: -0.01em; color: var(--text-2); }
.insight-headline { max-width: 26ch; margin-top: 24px; color: var(--text); font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.insight-text { margin-top: 14px; margin-bottom: 22px; color: var(--text-2); font-size: 0.93rem; line-height: 1.65; }
.insight-response { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line-2); color: var(--text); font-size: 0.9rem; line-height: 1.55; }
.insight-response span { display: block; margin-bottom: 4px; color: var(--gold-light); font: 500 0.66rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.insight-link {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  color: var(--text-2);
  font-size: 0.84rem;
  text-decoration: underline;
  text-decoration-color: rgba(var(--gold-light-rgb), 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.insight-link:hover { color: var(--text); text-decoration-color: var(--gold-light); }

/* Logo index ("signal board") */
.signal-board {
  margin-bottom: 18px;
  padding: 20px clamp(16px, 2.4vw, 28px) 22px;
  border-radius: var(--radius-lg);
}
.signal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; color: var(--text-3); font: 500 0.68rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.signal-head > span:first-child { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); }
.signal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); animation: signalPing 2.4s ease-out infinite; }
.signal-list { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.signal-list::before,
.signal-list::after { content: ''; position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 27px; height: 1px; pointer-events: none; }
.signal-list::before { background: var(--line-2); }
.signal-list::after {
  top: 26px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--ai-3), var(--ai-2), var(--ai-1), var(--ai-4), transparent) no-repeat;
  background-size: 18% 100%;
  animation: busPulse 5.5s linear infinite;
}
.sig { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; border-radius: 14px; color: var(--text-3); text-align: center; }
.sig-node { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2); transition: border-color 0.3s, box-shadow 0.35s, transform 0.35s var(--ease-out); }
.sig-logo { width: 24px; height: 24px; fill: var(--text-2); transition: fill 0.3s; }
.sig-spacex .sig-logo { width: 32px; height: 32px; }
.sig-ibm .sig-logo { width: 34px; height: 34px; }
.sig-name { font: 500 0.64rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; transition: color 0.3s; }
/* Focusing (or, on devices that truly hover, pointing at) a logo lights it, dims the other cards
   and lights up its own, the same treatment as a direct card hover. Hover is gated: on touch
   screens a tap leaves :hover stuck, which kept every other card dimmed after jumping to one. */
.sig:focus-visible .sig-node {
  border-color: transparent;
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--spectrum) border-box;
  box-shadow: 0 0 0 5px var(--gold-dim), 0 14px 30px -12px rgba(var(--gold-rgb), 0.65);
  transform: translateY(-3px);
}
.sig:focus-visible .sig-logo { fill: url(#g-spectrum-24); }
.sig:focus-visible .sig-name { color: var(--gold-light); }
.insights:has(.sig:focus-visible) .insight:not([data-reveal]) { opacity: 0.4; }
.insights:has(.sig-nvidia:focus-visible) .insight.ins-nvidia,
.insights:has(.sig-spacex:focus-visible) .insight.ins-spacex,
.insights:has(.sig-microsoft:focus-visible) .insight.ins-microsoft,
.insights:has(.sig-google:focus-visible) .insight.ins-google,
.insights:has(.sig-amazon:focus-visible) .insight.ins-amazon,
.insights:has(.sig-ibm:focus-visible) .insight.ins-ibm,
.insights:has(.sig-meta:focus-visible) .insight.ins-meta {
  opacity: 1;
  border-color: var(--line-gold);
  box-shadow: var(--shadow-card);
  transform: translateY(-5px);
}
.insights:has(.sig-nvidia:focus-visible) .insight.ins-nvidia::before,
.insights:has(.sig-spacex:focus-visible) .insight.ins-spacex::before,
.insights:has(.sig-microsoft:focus-visible) .insight.ins-microsoft::before,
.insights:has(.sig-google:focus-visible) .insight.ins-google::before,
.insights:has(.sig-amazon:focus-visible) .insight.ins-amazon::before,
.insights:has(.sig-ibm:focus-visible) .insight.ins-ibm::before,
.insights:has(.sig-meta:focus-visible) .insight.ins-meta::before { transform: scaleX(1); }
@media (hover: hover) {
  .sig:hover .sig-node {
    border-color: transparent;
    background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--spectrum) border-box;
    box-shadow: 0 0 0 5px var(--gold-dim), 0 14px 30px -12px rgba(var(--gold-rgb), 0.65);
    transform: translateY(-3px);
  }
  .sig:hover .sig-logo { fill: url(#g-spectrum-24); }
  .sig:hover .sig-name { color: var(--gold-light); }
  .insights:has(.sig:hover) .insight:not([data-reveal]) { opacity: 0.4; }
  .insights:has(.sig-nvidia:hover) .insight.ins-nvidia,
  .insights:has(.sig-spacex:hover) .insight.ins-spacex,
  .insights:has(.sig-microsoft:hover) .insight.ins-microsoft,
  .insights:has(.sig-google:hover) .insight.ins-google,
  .insights:has(.sig-amazon:hover) .insight.ins-amazon,
  .insights:has(.sig-ibm:hover) .insight.ins-ibm,
  .insights:has(.sig-meta:hover) .insight.ins-meta {
    opacity: 1;
    border-color: var(--line-gold);
    box-shadow: var(--shadow-card);
    transform: translateY(-5px);
  }
  .insights:has(.sig-nvidia:hover) .insight.ins-nvidia::before,
  .insights:has(.sig-spacex:hover) .insight.ins-spacex::before,
  .insights:has(.sig-microsoft:hover) .insight.ins-microsoft::before,
  .insights:has(.sig-google:hover) .insight.ins-google::before,
  .insights:has(.sig-amazon:hover) .insight.ins-amazon::before,
  .insights:has(.sig-ibm:hover) .insight.ins-ibm::before,
  .insights:has(.sig-meta:hover) .insight.ins-meta::before { transform: scaleX(1); }
}
.insight:target { animation: targetPing 1.4s var(--ease-out) 0.3s 2; }

/* NVIDIA feature: quote + data center revenue chart */
.insight-feature .feature-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(22px, 3.2vw, 44px); align-items: end; margin-top: 26px; margin-bottom: 22px; }
.insight-feature .insight-text { margin-bottom: 0; }
.insight-quote p { color: var(--text); font-family: var(--font-display); font-size: clamp(1.32rem, 0.95rem + 1.1vw, 1.8rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; text-wrap: balance; }
.insight-quote p::before {
  content: '\201C';
  display: block;
  height: 0.62em;
  margin-bottom: 0.04em;
  font-family: var(--font-display);
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.insight-quote footer { margin-top: 14px; color: var(--text-3); font: 500 0.7rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.dc-chart { display: flex; flex-direction: column; gap: 12px; }
.dc-bars { --bar-max: 206px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1vw, 12px); align-items: end; height: calc(var(--bar-max) + 58px); }
.dc-bars li { display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; height: 100%; }
.dc-1 { --h: 0.462; }
.dc-2 { --h: 0.575; }
.dc-3 { --h: 0.7; }
.dc-4 { --h: 0.845; }
.dc-5 { --h: 1; }
.dc-val { color: var(--text-3); font: 500 0.7rem var(--font-mono); text-align: center; white-space: nowrap; }
.dc-bar { display: block; height: calc(var(--h) * var(--bar-max)); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.55), rgba(var(--gold-rgb), 0.06)); transform-origin: bottom center; transition: transform 1s var(--ease-out); }
.dc-2 .dc-bar { transition-delay: 0.08s; }
.dc-3 .dc-bar { transition-delay: 0.16s; }
.dc-4 .dc-bar { transition-delay: 0.24s; }
.dc-5 .dc-bar { transition-delay: 0.32s; background: var(--spectrum-v); box-shadow: 0 0 28px -4px rgba(var(--gold-light-rgb), 0.55); }
.dc-5 .dc-val { color: var(--champagne); }
.dc-q { color: var(--text-3); font: 500 0.62rem var(--font-mono); letter-spacing: 0.04em; text-align: center; white-space: nowrap; }
html.js .insight:not(.is-in):not(.was-in) .dc-bar { transform: scaleY(0); }
.dc-chart figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.8rem; }
.dc-chart figcaption b { color: var(--gold-light); font: 600 0.76rem var(--font-mono); letter-spacing: 0.02em; }
.feature-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 22px; border-top: 1px solid var(--line); }
.feature-stats li { display: flex; flex-direction: column; gap: 5px; padding: 16px 18px 0 0; }
.feature-stats li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.feature-stats b { color: var(--text); font-family: var(--font-display); font-size: clamp(1.15rem, 0.9rem + 0.8vw, 1.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.feature-stats span { color: var(--text-3); font: 500 0.64rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }

/* SpaceX orbital constellation (satellites move with SMIL; paused for reduced motion) */
.orbit { display: block; width: 100%; max-width: 380px; height: auto; margin: 16px auto 0; overflow: visible; }
.orbit-path { fill: none; stroke: rgba(var(--gold-light-rgb), 0.14); stroke-width: 1; }
.orbit-front .orbit-path { stroke: rgba(var(--gold-light-rgb), 0.26); }
.orbit-sun { fill: var(--sun); }
.orbit-atmo { fill: none; stroke: url(#g-ring); stroke-width: 1.2; opacity: 0.6; }
.sats { filter: drop-shadow(0 0 2.5px rgba(var(--gold-light-rgb), 0.9)); }
.sat { fill: var(--gold-light); }
.sat:nth-child(3n + 2) { fill: var(--gold); }
.sat:nth-child(3n) { fill: var(--champagne); }
.insight-stat small.pre { display: block; margin: 0 0 8px; color: var(--text-3); font: 500 0.7rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }

/* Google ring gauges */
.gauges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.gauge { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.gauge svg { width: min(100%, 112px); aspect-ratio: 1; transform: rotate(-90deg); overflow: visible; }
.gauge-track { fill: none; stroke: rgba(var(--tint-rgb), 0.07); stroke-width: 9; }
.gauge-fill { fill: none; stroke: url(#g-ring); stroke-width: 9; stroke-linecap: round; stroke-dasharray: var(--v) 100; transition: stroke-dasharray 1.4s var(--ease-out); filter: drop-shadow(0 0 6px rgba(var(--gold-rgb), 0.5)); }
.g-52 { --v: 52; }
.g-74 { --v: 74; }
.g-74 .gauge-fill { transition-delay: 0.15s; }
html.js .insight:not(.is-in):not(.was-in) .gauge-fill { stroke-dasharray: 0 100; }
.gauge-val { position: absolute; top: 0; left: 50%; display: grid; grid-auto-flow: column; place-content: center; align-items: baseline; width: min(100%, 112px); aspect-ratio: 1; transform: translateX(-50%); color: var(--text); font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; letter-spacing: -0.04em; }
.gauge-val small { font-size: 0.55em; color: var(--text-2); }
.gauge figcaption { max-width: 16ch; margin-top: 10px; color: var(--text-3); font-size: 0.8rem; line-height: 1.4; }

/* IBM threat radar: the sweep "finds" each blip as it passes (delays match each blip's angle) */
.radar {
  position: relative;
  width: 148px; aspect-ratio: 1;
  margin: 2px auto 26px;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(var(--emerald-rgb), 0.28);
  background:
    radial-gradient(circle, transparent 0 32%, rgba(var(--emerald-rgb), 0.16) 32.5% 33.2%, transparent 33.7% 65.5%, rgba(var(--emerald-rgb), 0.16) 66% 66.7%, transparent 67.2%),
    linear-gradient(transparent calc(50% - 0.5px), rgba(var(--emerald-rgb), 0.12) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(var(--emerald-rgb), 0.12) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    radial-gradient(circle, rgba(var(--emerald-rgb), 0.06), transparent 70%);
}
.radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 74%, rgba(var(--emerald-rgb), 0.05) 80%, rgba(var(--emerald-rgb), 0.42) 100%); animation: radarSweep 4s linear infinite; }
.blip { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--champagne); box-shadow: 0 0 10px var(--gold-light); opacity: 0; animation: blip 4s ease-out infinite; }
.b1 { top: 26%; left: 64%; animation-delay: 0.35s; }
.b2 { top: 70%; left: 72%; animation-delay: 1.47s; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.b3 { top: 66%; left: 28%; animation-delay: 2.6s; }
.b4 { top: 30%; left: 30%; animation-delay: 3.5s; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* Microsoft capacity-gap chart (also used for Amazon's time comparison) */
.gap-chart { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.gap-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--text-3); font-size: 0.82rem; line-height: 1.4; }
.gap-label b { flex: none; color: var(--text); font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.gap-track { position: relative; display: block; height: 8px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: rgba(var(--tint-rgb), 0.06); }
.gap-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; transform-origin: left center; transition: transform 1.2s var(--ease-out); }
.gap-53 { width: 53%; background: linear-gradient(90deg, var(--bronze-warm), var(--gold)); }
.gap-80 { width: 80%; background: linear-gradient(90deg, var(--gold), var(--champagne)); transition-delay: 0.15s; }
.time-chart { gap: 12px; margin-top: 2px; margin-bottom: 22px; }
.time-chart .gap-label b { font-size: 1.05rem; letter-spacing: -0.02em; }
.gap-year { width: 100%; background: rgba(var(--tint-rgb), 0.2); }
.gap-76d { width: 20.8%; background: linear-gradient(90deg, var(--gold), var(--champagne)); transition-delay: 0.2s; }
html.js .insight:not(.is-in):not(.was-in) .gap-fill { transform: scaleX(0); }
.imperatives { counter-reset: imp; display: flex; flex-direction: column; margin-top: 18px; }
.imperatives li { counter-increment: imp; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.imperatives li::before { content: counter(imp, decimal-leading-zero); color: var(--gold-light); font: 500 0.72rem var(--font-mono); }
.imp-name { color: var(--text); font-size: 0.95rem; }
.imp-map { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font: 500 0.7rem var(--font-mono); text-align: right; white-space: nowrap; }
.disclaimer { max-width: 760px; margin-top: 28px; color: var(--text-3); font-size: 0.8rem; }

/* Statement ---------------------------------------------------------------- */
.statement {
  position: relative;
  overflow: clip;
  padding-block: clamp(100px, 14vw, 190px);
  border-block: 1px solid var(--line);
  background: radial-gradient(60% 80% at 50% 100%, rgba(var(--gold-rgb), 0.09), transparent 70%);
}
.statement-text { margin-top: 8px; }
.statement-text p { max-width: 1120px; color: var(--text); font-family: var(--font-display); font-size: clamp(1.75rem, 1rem + 2.9vw, 3.55rem); font-weight: 500; line-height: 1.14; letter-spacing: -0.035em; }
.statement-text em,
html.js .statement-text em .w {
  font-style: normal;
  font-weight: 400;
  background: linear-gradient(100deg, var(--champagne), var(--gold-light) 45%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
/* Once JS has split the words, the gradient lives on each word so the scroll-lit fade applies to it too. */
html.js .statement-text em:has(.w) { background: none; }
html.js .statement-text .w { opacity: 0.16; transition: opacity 0.5s ease; }
html.js .statement-text .w.is-lit { opacity: 1; }
.statement-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }

/* FAQ ---------------------------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-intro .btn { margin-top: 28px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); transition: border-color 0.35s var(--ease-out); }
.faq-item[open] { border-bottom-color: rgba(var(--gold-light-rgb), 0.3); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 4px;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.98rem + 0.32vw, 1.22rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.faq-item summary:hover { color: var(--champagne); }
.faq-item summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color 0.25s, border-color 0.25s, box-shadow 0.3s; }
.plus::before, .plus::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 11px; height: 1.5px; border-radius: 2px;
  background: var(--text);
  transform: translate(-50%, -50%);
}
.plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.35s var(--ease-out); }
.faq-item summary:hover .plus { border-color: rgba(var(--gold-light-rgb), 0.5); }
.faq-item[open] .plus { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 18px -4px var(--gold-glow); }
.faq-item[open] .plus::before, .faq-item[open] .plus::after { background: var(--bg); }
.faq-item[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 56px 26px 4px; color: var(--text-2); line-height: 1.75; }
.faq-item[open] .faq-answer { animation: fadeUp 0.4s var(--ease-out) both; }

/* Contact ------------------------------------------------------------------ */
.contact { isolation: isolate; overflow: clip; }
.contact::before {
  content: '';
  position: absolute; right: -10%; top: 10%; z-index: -1;
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(158, 100, 51, 0.12), transparent);
  pointer-events: none;
}
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.next-steps { display: flex; flex-direction: column; gap: 22px; margin-top: 40px; }
.next-steps li { display: flex; gap: 16px; }
.ns-num { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(var(--gold-light-rgb), 0.35); background: var(--gold-dim); color: var(--gold-light); font: 500 0.8rem var(--font-mono); }
.next-steps strong { color: var(--text); font-weight: 500; }
.next-steps p { margin-top: 2px; color: var(--text-3); font-size: 0.9rem; }

.form-card {
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { padding: 0; color: var(--text); font-size: 0.86rem; font-weight: 500; }
fieldset.field > legend { margin-bottom: 10px; }
.req { margin-left: 2px; color: var(--text-3); }
.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--field-soft);
  color: var(--text);
  font-size: 0.96rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: rgba(var(--gold-light-rgb), 0.3); }
.input:focus { outline: none; border-color: var(--gold); background: var(--field-focus); box-shadow: 0 0 0 4px rgba(var(--gold-rgb), 0.16); }
textarea.input { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
select.input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c89d66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select.input option { background: var(--surface); color: var(--text); }
.input[aria-invalid='true'] { border-color: var(--err); box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.14); }
.field-error { color: var(--err); font-size: 0.8rem; }
.field-error:empty { display: none; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip-check span {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 0.86rem;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip-check span::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-3); transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.chip-check:hover span { border-color: rgba(var(--gold-light-rgb), 0.4); color: var(--text); }
.chip-check input:checked + span { background: var(--gold-light); border-color: var(--gold-light); color: var(--bg); font-weight: 500; }
.chip-check input:checked + span::before { border-color: var(--bg); background: var(--bg); box-shadow: inset 0 0 0 3px var(--gold-light); }
.chip-check input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.chip-check-ai input:checked + span { background: var(--spectrum); border-color: transparent; }
.chip-check-ai input:checked + span::before { box-shadow: inset 0 0 0 3px var(--gold); }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.form-note { max-width: 34ch; color: var(--text-3); font-size: 0.8rem; }
.form-note a { color: var(--text-2); text-decoration: underline; text-decoration-color: rgba(var(--gold-light-rgb), 0.35); text-underline-offset: 3px; }
.form-note a:hover { color: var(--text); text-decoration-color: var(--gold-light); }
.form-status { font-size: 0.88rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--err); }

.form-success { padding: clamp(28px, 5vw, 56px) 8px; text-align: center; animation: fadeUp 0.5s var(--ease-out) both; }
.form-success:focus { outline: none; }
.success-icon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid transparent;
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--spectrum) border-box;
  box-shadow: 0 0 40px -6px var(--gold-glow);
  color: var(--emerald);
}
.success-icon .i { width: 28px; height: 28px; stroke-width: 2; }
.form-success h3 { margin-top: 24px; font-size: 1.8rem; letter-spacing: -0.03em; }
.form-success p { max-width: 40ch; margin: 10px auto 0; color: var(--text-2); }
.form-success .success-ref { color: var(--text-3); font: 500 0.8rem var(--font-mono); }
.success-ref span { color: var(--gold-light); }
.form-success .btn { margin-top: 26px; }
.success-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; }
.success-actions .btn { margin-top: 0; }

/* Live Announcements & Site Control Overlays ------------------------------- */
html.has-ann-bar { --ann-bar-h: 44px; }
html.has-ann-bar .site-header { top: calc(var(--ann-bar-h, 0px) + var(--safe-t)); }
html.has-ann-bar .hero { padding-top: calc(var(--header-h) + var(--ann-bar-h, 0px) + clamp(28px, 4.5vw, 56px)); }

.petra-ann-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 95;
  min-height: 44px;
  padding-top: var(--safe-t);
  border-bottom: 1px solid rgba(var(--gold-light-rgb), 0.22);
  background: rgba(8, 12, 18, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: var(--text);
  font-size: 0.84rem;
  animation: fadeIn 0.35s ease both;
}
[data-theme='light'] .petra-ann-bar { background: rgba(251, 248, 242, 0.94); }
.petra-ann-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding-block: 6px;
}
.petra-ann-bar-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}
.petra-ann-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(var(--gold-light-rgb), 0.38);
  background: rgba(var(--gold-rgb), 0.16);
  color: var(--gold-light);
  font: 600 0.65rem var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.theme-emerald .petra-ann-badge { border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.15); color: #34d399; }
.theme-cyan .petra-ann-badge { border-color: rgba(56, 189, 248, 0.45); background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.theme-purple .petra-ann-badge { border-color: rgba(168, 85, 247, 0.45); background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.theme-amber .petra-ann-badge { border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.petra-ann-title { color: var(--text); font-weight: 600; }
.petra-ann-sep { color: var(--text-3); }
.petra-ann-text { color: var(--text-2); }
.petra-ann-bar-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.petra-ann-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--gold-light-rgb), 0.35);
  background: rgba(var(--gold-rgb), 0.14);
  color: var(--champagne);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s;
}
[data-theme='light'] .petra-ann-cta { color: var(--gold); }
.petra-ann-cta:hover { background: rgba(var(--gold-rgb), 0.26); border-color: var(--gold-light); }
.petra-ann-close {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: var(--text-3);
  transition: color 0.2s, background-color 0.2s;
}
.petra-ann-close:hover { color: var(--text); background: rgba(var(--tint-rgb), 0.08); }

.petra-ann-card {
  position: fixed;
  right: max(20px, var(--safe-r));
  bottom: calc(20px + var(--safe-b));
  z-index: 94;
  width: min(370px, calc(100vw - 32px));
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(var(--gold-light-rgb), 0.26);
  background: var(--panel);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-float), 0 0 36px -10px var(--gold-glow);
  animation: fadeUp 0.45s var(--ease-out) both;
}
.petra-ann-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.petra-ann-card-title { color: var(--text); font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; letter-spacing: -0.02em; }
.petra-ann-card-body { margin-top: 6px; color: var(--text-2); font-size: 0.86rem; line-height: 1.55; }
.petra-ann-card-cta { margin-top: 14px; width: 100%; }

.petra-ann-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease both;
}
.petra-ann-modal {
  width: min(520px, 100%);
  padding: clamp(24px, 4vw, 36px);
  border-radius: 22px;
  border: 1px solid rgba(var(--gold-light-rgb), 0.3);
  background: var(--surface);
  box-shadow: var(--shadow-float), 0 0 60px -12px var(--gold-glow);
  animation: cmdkIn 0.3s var(--ease-out) both;
}
.petra-ann-modal h3 { margin-top: 12px; font-size: 1.55rem; letter-spacing: -0.03em; }
.petra-ann-modal p { margin-top: 10px; color: var(--text-2); line-height: 1.65; }
.petra-ann-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.petra-maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 25%, rgba(200, 157, 102, 0.16), rgba(4, 6, 8, 0.96) 70%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  text-align: center;
}
.pm-card {
  max-width: 560px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 24px;
  border: 1px solid rgba(var(--gold-light-rgb), 0.26);
  background: rgba(11, 16, 23, 0.9);
  box-shadow: var(--shadow-float);
}
.pm-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--gold-light-rgb), 0.3);
  color: var(--gold-light);
  font: 500 0.7rem var(--font-mono);
  letter-spacing: 0.12em;
}
.pm-card h2 { margin-top: 20px; font-size: clamp(1.7rem, 3vw, 2.3rem); color: #f5f2eb; }
.pm-card p { margin-top: 12px; color: rgba(245, 242, 235, 0.74); line-height: 1.65; }
.pm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* Footer ------------------------------------------------------------------- */
.site-footer { position: relative; overflow: clip; padding-top: clamp(64px, 8vw, 100px); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { max-width: 34ch; margin-top: 16px; color: var(--text-3); font-size: 0.92rem; }
.footer-brand .btn { margin-top: 22px; }
.footer-head { margin-bottom: 16px; color: var(--text-3); font: 500 0.7rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-2); font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 64px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.82rem;
}
.footer-fine { max-width: 60ch; }
.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.to-top:hover { color: var(--gold-light); }

.footer-word {
  margin-top: 8px;
  margin-bottom: -0.14em;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(6rem, 26vw, 24rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.8;
  background: linear-gradient(180deg, rgba(var(--gold-light-rgb), 0.14), rgba(var(--gold-light-rgb), 0) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  user-select: none;
  pointer-events: none;
}

/* ----------------------------------------------------------------------------
   Command palette
   ------------------------------------------------------------------------- */
.cmdk {
  width: min(640px, calc(100vw - 24px - var(--safe-l) - var(--safe-r)));
  max-width: none;
  max-height: min(72vh, 580px);
  max-height: min(72dvh, 580px);
  margin: 12vh auto auto;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(var(--gold-light-rgb), 0.18);
  background: var(--panel);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: var(--text);
  box-shadow: var(--shadow-float), 0 0 1px 1px rgba(var(--gold-rgb), 0.12);
}
.cmdk[open] { display: flex; flex-direction: column; animation: cmdkIn 0.22s var(--ease-out); }
.cmdk::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cmdk-search { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cmdk-search .i { width: 20px; height: 20px; }
.cmdk-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 1.05rem; }
.cmdk-search input::placeholder { color: var(--text-3); }
/* Shows the Esc hint to keyboard users and becomes a plain close button on touch screens. */
.cmdk-close {
  flex: none;
  display: grid; place-items: center;
  min-width: 44px; height: 44px;
  margin: -10px -10px -10px 0;
  border-radius: 12px;
  color: var(--text-3);
  transition: color 0.2s, background-color 0.2s;
}
.cmdk-close:hover { color: var(--text); background: rgba(var(--tint-rgb), 0.05); }
.cmdk-search .cmdk-close .i { display: none; width: 18px; height: 18px; }
.cmdk-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px; }
.cmdk-group { padding: 12px 10px 6px; color: var(--text-3); font: 500 0.66rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; color: var(--text-2); cursor: pointer; }
.cmdk-item[aria-selected='true'] { background: var(--gold-dim); color: var(--text); box-shadow: inset 0 0 0 1px rgba(var(--gold-light-rgb), 0.16); }
.ci-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text-2); }
.ci-icon .i { width: 16px; height: 16px; }
.cmdk-item[aria-selected='true'] .ci-icon { color: var(--gold-light); }
.cmdk-item.is-ai .ci-icon { border-color: transparent; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--spectrum) border-box; }
.ci-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ci-label { overflow: hidden; color: inherit; font-size: 0.94rem; white-space: nowrap; text-overflow: ellipsis; }
.ci-hint { overflow: hidden; color: var(--text-3); font-size: 0.78rem; white-space: nowrap; text-overflow: ellipsis; }
.ci-enter { opacity: 0; color: var(--gold-light); font: 500 0.7rem var(--font-mono); }
.cmdk-item[aria-selected='true'] .ci-enter { opacity: 1; }
.cmdk-empty { padding: 28px 12px; text-align: center; color: var(--text-3); font-size: 0.9rem; }
.cmdk-foot { display: flex; align-items: center; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.74rem; }
.cmdk-foot .kbd { margin-right: 4px; }
.cmdk-foot-ai { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }

/* ----------------------------------------------------------------------------
   Toasts
   ------------------------------------------------------------------------- */
.toast-region {
  position: fixed; z-index: 120;
  left: max(12px, var(--safe-l)); right: max(12px, var(--safe-r)); bottom: calc(24px + var(--safe-b));
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.toast {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 100%;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--champagne);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: var(--shadow-toast), 0 0 30px -10px var(--gold-glow);
  animation: toastIn 0.35s var(--ease-out) both;
}
.toast .i { flex: none; width: 16px; height: 16px; stroke-width: 2; }
.toast.is-leaving { animation: toastOut 0.3s ease both; }

/* ----------------------------------------------------------------------------
   Simple pages (404, thank you)
   ------------------------------------------------------------------------- */
.simple-page {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 40px var(--gutter);
  text-align: center;
}
.simple-page .hero-bg { z-index: -1; }
.simple-page .brand { margin-bottom: 40px; }
.simple-code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 11rem); font-weight: 500; letter-spacing: -0.06em; line-height: 1; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.simple-page h1 { margin-top: 12px; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); letter-spacing: -0.03em; }
.simple-page p { max-width: 46ch; margin: 14px auto 0; }
.simple-page .btn { margin-top: 28px; }

/* Long-form pages (privacy notice) ------------------------------------------ */
.legal-page {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 100svh;
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(64px, 9vw, 120px);
}
.legal-page .hero-bg { z-index: -1; }
.legal { max-width: 760px; margin-inline: auto; }
.legal .brand { margin-bottom: clamp(40px, 6vw, 64px); }
.legal h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; }
.legal-updated { margin-top: 14px; color: var(--gold-light); font: 500 0.72rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.legal-lead { margin-top: 22px; color: var(--text); font-size: 1.12rem; line-height: 1.65; }
.legal h2 { margin-top: 44px; font-size: 1.3rem; letter-spacing: -0.03em; }
.legal p, .legal li { color: var(--text-2); line-height: 1.75; }
.legal p { margin-top: 12px; }
.legal ul { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.legal li { position: relative; padding-left: 20px; }
.legal li::before { content: ''; position: absolute; left: 0; top: 0.85em; width: 8px; height: 1px; background: var(--gold); }
.legal strong { color: var(--text); font-weight: 500; }
.legal code { padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--gold-light); font: 0.86em var(--font-mono); }
.legal a:not(.btn):not(.brand) { color: var(--text); text-decoration: underline; text-decoration-color: rgba(var(--gold-light-rgb), 0.4); text-underline-offset: 3px; }
.legal a:not(.btn):not(.brand):hover { text-decoration-color: var(--gold-light); }
.legal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }

/* ----------------------------------------------------------------------------
   Alabaster component layer: the few places where daylight needs more than
   re-tinted tokens.
   ------------------------------------------------------------------------- */
/* Primary actions turn to obsidian lacquer with gold-foil type; the hover sheen catches bronze light. */
[data-theme='light'] .btn-primary {
  color: #f3dcb4;
  background-image: linear-gradient(110deg, #10141d 0%, #1c2231 40%, #4a3824 50%, #1c2231 60%, #10141d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px -14px rgba(16, 20, 29, 0.6);
}
[data-theme='light'] .btn-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(var(--gold-rgb), 0.45), 0 16px 34px -14px rgba(16, 20, 29, 0.55);
}
[data-theme='light'] .prompt-submit,
[data-theme='light'] .fc-btn {
  color: #f3dcb4;
  background: linear-gradient(135deg, #1c2231, #10141d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
[data-theme='light'] .prompt-submit:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 22px -10px rgba(16, 20, 29, 0.6); }
[data-theme='light'] .prompt-shell::before { opacity: 0.22; }
[data-theme='light'] .prompt-shell:focus-within::before { opacity: 0.45; }

/* Dawn instead of aurora, and the intelligence core sits in front of a rising sun. */
[data-theme='light'] .a1 { background: radial-gradient(circle at 40% 40%, rgba(240, 180, 110, 0.45), transparent 62%); }
[data-theme='light'] .a2 { background: radial-gradient(circle, rgba(232, 150, 122, 0.24), transparent 62%); }
[data-theme='light'] .a3 { background: radial-gradient(circle, rgba(214, 178, 120, 0.3), transparent 62%); }
[data-theme='light'] .core-frame::before { background: radial-gradient(closest-side, rgba(246, 196, 120, 0.55), rgba(240, 176, 100, 0.16) 55%, transparent); }

/* The agent console stays an obsidian terminal in daylight: the page's engine room. */
[data-theme='light'] .agent-console {
  color-scheme: dark;
  --text: #f5f2eb;
  --text-2: rgba(245, 242, 235, 0.74);
  --text-3: #8b92a4;
  --gold: #c89d66;
  --gold-light: #e5c497;
  --champagne: #f8e5cb;
  --cyan: #38bdf8;
  --purple: #a855f7;
  --emerald: #10b981;
  background: #0b0f17;
  border-color: #0b0f17;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px -26px rgba(16, 20, 29, 0.7);
}

[data-theme='light'] select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a5626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
[data-theme='light'] .grain { opacity: 0.05; mix-blend-mode: multiply; }
[data-theme='light'] .brand-mark { filter: drop-shadow(0 2px 8px rgba(74, 48, 20, 0.1)); }
[data-theme='light'] .footer-word { background-image: linear-gradient(180deg, rgba(var(--gold-light-rgb), 0.2), rgba(var(--gold-light-rgb), 0) 82%); }

/* ----------------------------------------------------------------------------
   Theme transition (View Transitions API, driven by main.js): daylight rises
   out of the switch like a sunrise; night swallows the page like an eclipse.
   ------------------------------------------------------------------------- */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-eclipse::view-transition-old(root) { z-index: 2; }
html.theme-eclipse::view-transition-new(root) { z-index: 1; }

/* ----------------------------------------------------------------------------
   Reveal on scroll (only when JS is available)
   ------------------------------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ----------------------------------------------------------------------------
   Keyframes
   ------------------------------------------------------------------------- */
@keyframes spin { to { --angle: 360deg; } }
@keyframes rise { to { transform: translateY(0); } }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes breathe { 50% { transform: scale(0.7); opacity: 0.6; } }
@keyframes breatheGlow { 0%, 100% { opacity: 0.75; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes captionSwap { 0% { opacity: 0; transform: translate(-50%, 6px); } 100% { opacity: 1; transform: translate(-50%, 0); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(var(--emerald-rgb), 0.55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(var(--emerald-rgb), 0); } }
@keyframes pulseWarn { 50% { box-shadow: 0 0 0 6px rgba(var(--gold-light-rgb), 0.14); } }
@keyframes logIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes cmdkIn { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }
@keyframes signalPing { 0% { box-shadow: 0 0 0 0 rgba(var(--emerald-rgb), 0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(var(--emerald-rgb), 0); } }
@keyframes busPulse { from { background-position: -25% 0; } to { background-position: 125% 0; } }
@keyframes targetPing { 0% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0.55); } 100% { box-shadow: 0 0 0 22px rgba(var(--gold-rgb), 0); } }
@keyframes radarSweep { to { transform: rotate(1turn); } }
@keyframes blip { 0% { opacity: 1; transform: scale(1.6); } 12% { opacity: 1; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1); } }

/* ----------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .svc { grid-template-columns: 290px minmax(0, 1fr); }
  .fc-1 { left: 0; }
  .fc-2 { right: 0; }
}

/* Hamburger breakpoint. Keep in sync with initMobileMenu() in main.js (min-width: 1121px). */
@media (max-width: 1120px) {
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-block; }
}

@media (max-width: 1080px) {
  .pillars, .principles, .industry-grid, .engage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insight-wide { grid-column: 1 / -1; }
  /* SpaceX and Meta take full rows so the remaining cards pair evenly in two columns. */
  .insight-span-md, .insight-duo { grid-column: 1 / -1; }
  .radar { width: 118px; margin-bottom: 20px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }

  .timeline-track { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline-fill { transform-origin: center top; transform: scaleY(var(--progress)); }
  .stages { grid-template-columns: 1fr; gap: 44px; max-width: 720px; }
  .stage { padding-top: 0; padding-left: 44px; }
  .stage-dot { top: 2px; }
}

@media (max-width: 960px) {
  :root { --header-h: 74px; }
  .brand-mark { height: 54px; }
  .brand-mark-footer { height: 96px; }

  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: none; }
  .hero-visual {
    position: absolute;
    top: calc(var(--header-h) - 10px);
    right: -24%;
    z-index: 0;
    width: 88vw;
    max-width: 540px;
    opacity: 0.4;
    pointer-events: none;
  }
  .float-card, .core-caption, .hud { display: none; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .svc { grid-template-columns: 1fr; }
  .svc-tabs {
    position: static;
    flex-direction: row;
    gap: 8px;
    margin-inline: calc(var(--pad-l) * -1) calc(var(--pad-r) * -1);
    padding: 0 var(--pad-r) 6px var(--pad-l);
    scroll-padding-inline: var(--pad-l);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .svc-tabs::-webkit-scrollbar { display: none; }
  .svc-tab { flex: none; width: auto; min-width: 230px; scroll-snap-align: start; border-color: var(--line); }
  .svc-tab[aria-selected='true']::before { left: 16px; right: 16px; top: auto; bottom: -1px; width: auto; height: 2px; background: var(--spectrum); }
  .svc-stage { min-height: 0; }
  .svc-visual { top: -20px; right: -50px; width: 240px; opacity: 0.55; }
  .svc-cols { grid-template-columns: 1fr; }

  .agent-body { grid-template-columns: minmax(0, 1fr); }
  .agent-flow { flex-direction: row; justify-content: space-between; gap: 6px; padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-node { flex: 1; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 0; text-align: center; }
  .flow-node:not(:last-child)::after { left: calc(50% + 26px); right: calc(-50% + 26px); top: 20px; bottom: auto; width: auto; height: 1px; }
  .node-desc { display: none; }
  .node-status { font-size: 0.62rem; }

  .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
}

@media (max-width: 640px) {
  .ask-btn { width: var(--h); padding: 0; }
  .ask-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ask-btn .kbd { display: none; }

  .display { margin-top: 18px; }
  .prompt-box textarea { min-height: 72px; }
  .hero-stats strong { font-size: 1.35rem; }
  .hero-stats li { padding-right: 12px; }
  .hero-stats li + li { padding-left: 16px; }
  .hero-stats li:nth-child(3) { padding-left: 0; }
  .platforms { flex-direction: column; align-items: flex-start; gap: 10px; }
  .platforms-list { gap: 6px 22px; }
  .platforms-list li + li::before { display: none; }

  .pillars, .principles, .insight-grid, .industry-grid, .engage-grid { grid-template-columns: 1fr; }
  .ai-band { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .agent-result { grid-template-columns: 1fr; }
  .agent-approval { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .approval-actions { flex-wrap: wrap; }
  .approval-actions .btn { flex: 1; }
  .agent-console { height: 280px; font-size: 0.74rem; }
  .log-line { grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; }
  .log-time { display: none; }

  .compare thead { display: none; }
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare th, .compare td { padding: 4px 0; border: 0; }
  .compare tbody th { width: auto; margin-bottom: 6px; }
  .compare td::before { content: attr(data-label); display: block; margin-top: 8px; color: var(--text-3); font: 500 0.64rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
  .compare td:nth-of-type(2) { background: none; }

  .imperatives li { grid-template-columns: 30px minmax(0, 1fr); }
  .imp-map { grid-column: 2; justify-self: start; text-align: left; white-space: normal; }
  .insight { padding: 22px; }
  .insight-feature .feature-grid { grid-template-columns: 1fr; }
  .feature-stats { grid-template-columns: 1fr; }
  .feature-stats li { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0 0; }
  .feature-stats li + li { padding-left: 0; border-left: 0; }
  .dc-bars { --bar-max: 136px; }
  .insight-mark { width: 170px; height: 170px; }
  .signal-list { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; }
  .signal-list::before, .signal-list::after { display: none; }
  .sig-node { width: 50px; height: 50px; }
  .faq-answer { padding-right: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cmdk { margin-top: 8vh; }
  .cmdk-foot span:not(.cmdk-foot-ai) { display: none; }
  .cmdk-foot-ai { margin-left: 0; }
  .section { padding-block: clamp(72px, 18vw, 88px); }
}

/* Small phones: compact Agent Studio pipeline and a two-line chart axis. */
@media (max-width: 520px) {
  .agent-head { padding: 12px 14px; }
  .agent-title { flex-wrap: wrap; row-gap: 8px; }
  .agent-title > span { white-space: nowrap; }
  .agent-main { padding: 14px; }
  .agent-console { padding: 12px 14px; }
  .log-tag { min-width: 56px; }
  .agent-flow { gap: 4px; padding: 16px 10px 14px; }
  .flow-node { gap: 7px; }
  .flow-node:not(:last-child)::after { left: calc(50% + 22px); right: calc(-50% + 18px); top: 18px; }
  .node-icon { width: 36px; height: 36px; border-radius: 11px; }
  .node-icon .i { width: 16px; height: 16px; }
  .node-text strong { font-size: 0.72rem; letter-spacing: -0.01em; }
  /* Five status words don't fit across a phone, so each state becomes a badge on its icon
     (tick = complete, ! = needs approval, live dot = running). The words stay for screen readers. */
  .node-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .flow-node[data-state] .node-icon::after {
    content: '';
    position: absolute; top: -6px; right: -6px;
    display: grid; place-items: center;
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 2px solid var(--surface-2);
    color: var(--bg);
    font: 800 9px/1 var(--font-sans);
  }
  .flow-node[data-state='done'] .node-icon::after { content: '\2713'; content: '\2713' / ''; background: var(--ok); }
  .flow-node[data-state='waiting'] .node-icon::after { content: '!'; content: '!' / ''; background: var(--warn); }
  .flow-node[data-state='running'] .node-icon::after { background: var(--cyan); animation: breathe 1.4s ease-in-out infinite; }

  .dc-bars { height: calc(var(--bar-max) + 66px); }
  .dc-q { font-size: 0.66rem; line-height: 1.3; }
  .dc-fy { display: block; }
}

@media (max-width: 420px) {
  .feature-stats li { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* Landscape phones: the menu goes two-up so every link fits without scrolling. */
@media (orientation: landscape) and (max-height: 500px) {
  .mobile-nav nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; padding-top: 4px; }
  .mobile-nav a:not(.btn) { padding: 13px 0; font-size: 1.25rem; }
  .mobile-nav .btn { grid-column: 1 / -1; margin-top: 18px; }
}

/* ----------------------------------------------------------------------------
   Touch input. Controls get 44px hit areas: they grow where the layout allows,
   otherwise an invisible ::after extends the target past the visible shape. Form
   text is 16px so iOS doesn't zoom on focus; keyboard-shortcut hints are hidden.
   ------------------------------------------------------------------------- */
@media (pointer: coarse) {
  .input { font-size: 16px; }
  .kbd[data-kbd], .ci-enter, .cmdk-foot span:not(.cmdk-foot-ai), .cmdk-close .kbd { display: none; }
  .cmdk-foot-ai { margin-left: 0; }
  .cmdk-search .cmdk-close .i { display: block; }

  .btn-sm { --h: 40px; }
  .chip { height: 38px; }
  .chip-check span { height: 44px; }
  .footer-col ul { gap: 0; }
  .footer-col a { display: inline-block; min-width: 44px; padding-block: 10px; }

  :where(.btn-sm, .chip, .brand, .industry-ask, .link-arrow, .insight-link, .to-top, .agent-scenarios button) { position: relative; }
  :where(.btn-sm, .chip, .brand, .theme-toggle, .menu-toggle, .industry-ask, .link-arrow, .insight-link, .to-top, .agent-scenarios button)::after { content: ''; position: absolute; }
  .btn-sm::after, .menu-toggle::after, .industry-ask::after { inset: -2px; }
  .chip::after, .agent-scenarios button::after { inset: -3px 0; }
  .theme-toggle::after { inset: -7px -3px; }
  .brand::after { inset: -9px -6px; }
  .link-arrow::after { inset: -9px -4px; }
  .insight-link::after, .to-top::after { inset: -11px -6px; }
}

/* Touch screens keep :hover after a tap; undo the purely decorative hover motion there. */
@media (hover: none) {
  .brand:hover .brand-mark, .btn:hover > svg:last-child, .link-arrow:hover .i, .prompt-submit:hover { transform: none; }
}

/* ----------------------------------------------------------------------------
   Accessibility preferences
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .blip { animation: none; opacity: 1; }
}

@media (forced-colors: active) {
  .btn-ai, .ai-callout, .ai-band, .chip-ai, .result-item, .svc-stage.is-ai { border: 1px solid CanvasText; }
  .ai-word, .ai-tag, h2 em, .value-statement em, .statement-text em, .statement-text em .w, .insight-quote p::before, .simple-code, .footer-word { color: CanvasText; -webkit-text-fill-color: CanvasText; background: none; }
  .atmo-grid, .ambient-canvas, .cursor-glow { display: none; }
}

@media print {
  .site-header, .grain, .scroll-progress, .atmo-grid, .ambient-canvas, .cursor-glow, .theme-toggle, .hero-visual, .hero-bg, .marquee, .cmdk, .toast-region, .agent-controls, .footer-word { display: none !important; }
  body, html { background: #fff; color: #111; }
  h1, h2, h3, h4, .an-text, .statement-text p { color: #111; }
  html.js [data-reveal], .display .line > span { opacity: 1 !important; transform: none !important; }
}
