/* ==========================================================================
   YY AI — Design System
   Ink, paper and ocean blue. Geist for words, Source Serif for claims,
   JetBrains Mono for labels and numbers. Square corners, 1px hairline frames
   that run the length of the page, one accent colour.
   ========================================================================== */

/* ---------- Fonts, self-hosted (Latin + Latin Extended) ---------- */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/geist-latin-ext-0.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/geist-latin-1.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 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-ext-2.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-3.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: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-serif-4-latin-ext-4.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-serif-4-latin-5.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 {
  /* Surfaces */
  --paper:      #FFFFFF;
  --paper-2:    #F4F8FC;
  --paper-3:    #EAF3FC;
  --ink:        #07182B;   /* dark sections, headlines */

  /* Text */
  --body:       #51677B;   /* 5.9:1 on white */
  --faint:      #6B8095;   /* 4.6:1 on white */

  /* Lines */
  --line:       #E1EAF3;               /* inner dividers */
  --rail:       rgba(7, 24, 43, 0.2);  /* frame rails on light */
  --rail-dark:  rgba(255, 255, 255, 0.14);

  /* Blue */
  --ocean:      #0B4F8A;
  --ocean-deep: #0A4576;
  --azure:      #2E9BFF;
  --azure-ink:  #0C69B8;   /* readable blue on white */
  --cta:        #1877CC;   /* white on this: 4.6:1 */

  /* Type */
  --sans:  'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --mono:  'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Layout */
  --max:    1320px;
  --gutter: clamp(16px, 4vw, 64px);
  --pad:    clamp(20px, 3vw, 44px);
  --nav-h:  72px;
  --sec-y:  clamp(64px, 11vh, 120px);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
strong { font-weight: 500; color: var(--ink); }

::selection { background: var(--azure); color: #fff; }

:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--cta);
  color: #fff;
  padding: 10px 16px;
}
.skip-link:focus { top: 12px; }

/* ---------- Type roles ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  line-height: 1.4;
}

.mono {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.claim {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 3vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 22ch;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------- Buttons: square, solid, one accent ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-lg { height: 54px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--ocean); }
.btn-white { background: #fff; color: var(--ocean-deep); }
.btn-white:hover { background: var(--paper-3); }
.btn-arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ==========================================================================
   Nav — re-inks itself for whatever section is underneath it
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  color: #fff;
  transition: color 0.35s ease;
}
.nav[data-theme='light'] { color: var(--ink); }

/* Blur layer that fades out downward instead of a hard bar */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: linear-gradient(rgba(7, 24, 43, 0.72), rgba(7, 24, 43, 0));
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
  transition: background 0.35s ease;
  pointer-events: none;
}
.nav[data-theme='light']::before {
  background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
}

.nav-inner {
  position: relative;
  height: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: calc(var(--gutter) + var(--pad));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 37px; height: 22px; fill: currentColor; }
.logo-accent { fill: var(--azure); }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  position: relative;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.26s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current='page']::after { transform: scaleX(1); }

.nav-cta { height: 40px; padding: 0 18px; font-size: 0.875rem; }

/* ==========================================================================
   Frames — every section sits in the same 1px-railed column
   ========================================================================== */
.sec { padding-inline: var(--gutter); position: relative; }
.sec-dark { background: var(--ink); color: rgba(255, 255, 255, 0.66); }

.frame {
  position: relative;
  max-width: var(--max);
  margin-inline: auto;
  border: 1px solid var(--rail);
  border-bottom: 0;
  padding: var(--sec-y) var(--pad) calc(var(--sec-y) * 1.1);
}
.sec-dark .frame { border-color: var(--rail-dark); }

.sec-dark .claim,
.sec-dark h3 { color: #fff; }
.sec-dark .eyebrow { color: rgba(255, 255, 255, 0.55); }

.frame-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: end;
}
.frame-head .eyebrow { margin-bottom: 24px; }
.deck { max-width: 46ch; color: var(--body); }
.deck p + p { margin-top: 14px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding-inline: var(--gutter);
  overflow: hidden;
  isolation: isolate;
}
.hero-matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 24, 43, 0.95) 0%, rgba(7, 24, 43, 0.7) 38%, rgba(7, 24, 43, 0) 66%),
    linear-gradient(0deg, var(--ink) 0%, rgba(7, 24, 43, 0) 30%),
    linear-gradient(180deg, rgba(7, 24, 43, 0.8) 0%, rgba(7, 24, 43, 0) 22%);
}

.hero-inner {
  max-width: var(--max);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: calc(var(--nav-h) + clamp(48px, 14vh, 150px)) var(--pad) clamp(40px, 7vh, 72px);
  display: flex;
  flex-direction: column;
  border-inline: 1px solid var(--rail-dark);
}

.eyebrow-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}
.live-sq {
  width: 7px;
  height: 7px;
  background: var(--azure);
  animation: live 2.4s ease-in-out infinite;
}
@keyframes live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.hero-title {
  font-weight: 300;
  font-size: clamp(2.4rem, 5.4vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 14.5ch;
  text-wrap: balance;
}
.hero-title .hl { color: var(--azure); }

.hero-foot {
  margin-top: auto;
  padding-top: clamp(48px, 9vh, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}
.hero-lead {
  max-width: 48ch;
  font-size: clamp(1rem, 1.15vw, 1.0625rem);
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 28px;
}
.hero-note { margin-top: 14px; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.5); }

.hero-trust {
  width: min(340px, 100%);
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
}
.hero-trust li + li { margin-top: 6px; }

/* Page-load rise */
.load {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ==========================================================================
   The audit — KPI readout
   ========================================================================== */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(56px, 9vh, 96px);
  border-top: 1px solid var(--line);
}
.kpi { padding: 30px 28px 0; }
.kpi:first-child { padding-left: 0; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi-val { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.kpi-num {
  font-weight: 300;
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.kpi-unit { font-weight: 300; font-size: clamp(1.2rem, 1.8vw, 1.6rem); color: var(--faint); letter-spacing: -0.02em; }
.kpi-cap { display: flex; align-items: center; gap: 10px; color: var(--faint); }
.kpi-cap i { width: 7px; height: 7px; background: var(--azure); flex: none; }

/* ==========================================================================
   What we build — consoles that light up one by one as you scroll
   ========================================================================== */
.consoles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(56px, 9vh, 96px);
  border-top: 1px solid var(--line);
}
.console {
  padding: 28px 22px 0;
  opacity: 0.32;
  transition: opacity 0.55s var(--ease);
}
.console:first-child { padding-left: 0; }
.console:last-child { padding-right: 0; }
.console + .console { border-left: 1px solid var(--line); }
.console.is-lit { opacity: 1; }
.console h3 { margin-bottom: 10px; }
.console > p:last-child { font-size: 0.875rem; line-height: 1.6; }

.viz {
  margin: 18px 0 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 8px;
}
.viz { height: clamp(128px, 11vw, 156px); }
.viz svg { width: 100%; height: 100%; overflow: visible; }

.v-box, .v-line, .v-tick { fill: none; stroke: #9DB0C3; stroke-width: 1; }
.v-faint { opacity: 0.6; }
.v-node { fill: #fff; stroke: #9DB0C3; stroke-width: 1; }
.v-hl { stroke: var(--azure); }
.v-hl-fill { fill: var(--azure); stroke: none; }
.v-rail { fill: none; stroke: #CFDBE7; stroke-width: 1; stroke-dasharray: 2 3; }
.v-tick { stroke-width: 1.5; stroke-linecap: square; }
.v-tick-on { stroke: #fff; }
.v-txt { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.06em; fill: var(--faint); }
.v-txt-hl { fill: var(--azure-ink); }
.v-draw {
  fill: none;
  stroke: var(--azure);
  stroke-width: 1.5;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  transition: stroke-dashoffset 1.1s var(--ease) 0.3s;
}
.console.is-lit .v-draw { stroke-dashoffset: 0; }

/* ==========================================================================
   How it works — pinned stage, driven by scroll
   ========================================================================== */
.pin-track { height: 320vh; padding: 0; }
.pin-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 16px) var(--pad) 40px;
}
.frame-head-tight { align-items: end; margin-bottom: clamp(28px, 6vh, 64px); }
.pin-count { justify-self: end; color: rgba(255, 255, 255, 0.5); }
.pin-count span { color: #fff; }

.pin-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}

.steps { position: relative; }
.steps::before,
.steps::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 30px;
  width: 1px;
  background: var(--rail-dark);
}
.steps::after {
  background: var(--azure);
  transform: scaleY(var(--p, 0));
  transform-origin: top;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 20px;
  padding: 18px 0;
  opacity: 0.32;
  transition: opacity 0.5s var(--ease);
}
.step.is-active { opacity: 1; }
.step-n {
  position: relative;
  z-index: 1;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease;
}
.step.is-active .step-n { background: #fff; color: var(--ink); border-color: #fff; }
.step h3 { margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: clamp(1.15rem, 1.5vw, 1.35rem); }
.step p { color: rgba(255, 255, 255, 0.62); max-width: 44ch; font-size: 0.9375rem; }

.chip {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 4px 7px;
}

/* Panels */
.panels { position: relative; height: min(470px, 58vh); }
.panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.panel.is-active { opacity: 1; transform: none; }

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
}
.panel-tag { color: var(--azure); }
.panel-live { display: inline-flex; align-items: center; gap: 8px; color: var(--azure); }
.panel-live::before { content: ''; width: 6px; height: 6px; background: var(--azure); animation: live 1.6s infinite; }

.panel-body { flex: 1; display: flex; flex-direction: column; padding: 20px 18px; min-height: 0; }
.panel-for { color: rgba(255, 255, 255, 0.45); margin-bottom: 14px; text-transform: none; letter-spacing: 0; font-size: 0.75rem; }

.panel-total { display: flex; align-items: flex-end; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.panel-total > span:last-child { font-size: 0.8125rem; line-height: 1.35; color: rgba(255, 255, 255, 0.55); }
.panel-big {
  font-weight: 300;
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.panel-total-sm { margin-top: auto; padding-top: 16px; padding-bottom: 0; border-bottom: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }

.bars li {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0 13px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}
.bars li:last-child { border-bottom: 0; }
.bars b { font-weight: 400; color: #fff; text-transform: none; }
.bars i {
  position: absolute;
  left: 0;
  bottom: 4px;
  height: 2px;
  width: calc(var(--w) * 100%);
  background: var(--azure);
  transform-origin: left;
  transform: scaleX(var(--fill, 0));
}

.panel-foot { display: grid; grid-template-columns: 1fr auto; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.panel-foot > div { display: grid; gap: 4px; padding: 12px 16px; }
.panel-foot > div + div { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.panel-foot span { color: rgba(255, 255, 255, 0.45); }
.panel-foot b { font-weight: 500; color: #fff; font-size: 0.9375rem; }

.flow { width: 100%; height: auto; margin-bottom: 18px; overflow: visible; }
.flow-line { fill: none; stroke: var(--azure); stroke-width: 1.5; stroke-dasharray: 170; stroke-dashoffset: 170; }
.flow-node { fill: none; stroke: rgba(255, 255, 255, 0.35); }
.flow-node-hl { stroke: var(--azure); fill: rgba(46, 155, 255, 0.12); }
.flow text { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; fill: rgba(255, 255, 255, 0.85); text-anchor: middle; }

.spec > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  opacity: 0.25;
  transition: opacity 0.4s ease;
}
.spec > div.is-on { opacity: 1; }
.spec dt { color: rgba(255, 255, 255, 0.45); padding-top: 3px; }
.spec dd { font-size: 0.9rem; color: #fff; }

.log { font-size: 0.75rem; line-height: 2.1; letter-spacing: 0.02em; text-transform: none; }
.log li { opacity: 0.15; transition: opacity 0.35s ease; }
.log li.is-on { opacity: 1; }
.log span { color: rgba(255, 255, 255, 0.4); margin-right: 16px; }
.log em { font-style: normal; color: var(--azure); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.faq-intro { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq-intro .eyebrow { margin-bottom: 24px; }
.faq-mail { margin-top: 24px; font-size: 0.875rem; }
.faq-mail a { color: var(--azure-ink); text-decoration: underline; text-underline-offset: 3px; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: clamp(1rem, 1.2vw, 1.0625rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.faq summary:hover { color: var(--azure-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 11px;
  height: 11px;
  flex: none;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 48px 26px 0; max-width: 62ch; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.frame-cta { padding: clamp(40px, 7vh, 80px) 0 clamp(56px, 10vh, 112px); }
.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 40px clamp(32px, 5vw, 80px);
  align-items: end;
  padding: clamp(44px, 7vw, 88px) var(--pad);
  background: var(--ocean);
  color: #fff;
}
/* Dot field, fading in from the right */
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1.5px);
  background-size: 12px 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
  mask-image: linear-gradient(90deg, transparent 30%, #000);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.eyebrow-blue { color: rgba(255, 255, 255, 0.7); margin-bottom: 22px; }
.cta-title {
  font-weight: 300;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 15ch;
  text-wrap: balance;
}
.cta-side p:first-child { color: rgba(255, 255, 255, 0.82); margin-bottom: 26px; max-width: 40ch; }
.cta-note { margin-top: 14px; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.65); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.6); padding-inline: var(--gutter); }
.footer-inner {
  max-width: var(--max);
  margin-inline: auto;
  border-inline: 1px solid var(--rail-dark);
  padding: clamp(56px, 8vw, 96px) var(--pad) 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; max-width: 34ch; }
.footer-col h3 {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.875rem; transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rail-dark);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   Scroll trace — a line that draws itself down the frame rails,
   carrying a marker that counts the hours found so far
   ========================================================================== */
.trace {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  pointer-events: none;
  overflow: visible;
}
.trace-line {
  fill: none;
  stroke: var(--azure);
  stroke-width: 1.5;
  stroke-linecap: square;
}
.trace-dot {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 7;
  width: 9px;
  height: 9px;
  margin: -4px 0 0 -4px;
  background: var(--ink);
  pointer-events: none;
  will-change: transform;
  transition: background 0.3s ease, opacity 0.3s ease;
}
.trace-label {
  /* A vertical tag riding the rail just behind the marker */
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 8px 3px;
  background: var(--ink);
  color: #fff;
  font-variant-numeric: tabular-nums;
  transition: background 0.3s ease, color 0.3s ease;
}
.trace-dot.on-dark { background: #fff; }
.trace-dot.on-dark .trace-label { background: #fff; color: var(--ink); }
.trace-dot.is-hidden { opacity: 0; }

/* ==========================================================================
   Inner pages (Book, Legal)
   ========================================================================== */
.page-head .frame { padding-top: calc(var(--nav-h) + clamp(56px, 10vh, 112px)); padding-bottom: clamp(56px, 9vh, 96px); border-top: 0; }
.page-head .eyebrow { margin-bottom: 24px; }
.page-title {
  font-weight: 300;
  font-size: clamp(2.3rem, 5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #fff;
  max-width: 16ch;
  text-wrap: balance;
}
.page-lead { margin-top: 24px; max-width: 52ch; font-size: 1.0625rem; color: rgba(255, 255, 255, 0.7); }
.page-meta { margin-top: 24px; color: rgba(255, 255, 255, 0.5); }

/* Legal body */
.legal-body { max-width: 70ch; }
.legal-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 52px 0 14px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1rem; margin: 28px 0 10px; }
.legal-body p, .legal-body li { font-size: 1rem; line-height: 1.75; }
.legal-body p { margin-bottom: 16px; }
.legal-body ul { display: grid; gap: 10px; margin: 0 0 20px; }
.legal-body li { display: flex; gap: 14px; }
.legal-body li::before { content: ''; width: 6px; height: 6px; background: var(--azure); margin-top: 11px; flex: none; }
.legal-body a { color: var(--azure-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Book */
.book-frame { padding: 0; }
.book-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.book-layout > * { padding: clamp(48px, 8vh, 88px) var(--pad); }
.book-layout > * + * { border-left: 1px solid var(--line); }

.next-steps h2, .form-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 28px;
}
.next-step {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.next-step:last-child { border-bottom: 1px solid var(--line); }
.next-step .idx {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  background: var(--ink);
  color: #fff;
}
.next-step strong { display: block; margin-bottom: 4px; letter-spacing: -0.01em; }
.next-step p { font-size: 0.9rem; }
.contact-aside { margin-top: 28px; font-size: 0.9rem; }
.contact-aside a { color: var(--azure-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Form */
.field { display: block; margin-bottom: 22px; }
.field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.optional { color: var(--faint); font-weight: 400; }
.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #C7D5E2;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea.input { height: auto; min-height: 132px; padding: 14px 16px; line-height: 1.6; resize: vertical; }
.input::placeholder { color: #98AABB; }
.input:hover { border-color: #9DB0C3; }
.input:focus { outline: none; border-color: var(--cta); box-shadow: 0 0 0 3px rgba(24, 119, 204, 0.16); }
.input[aria-invalid='true'] { border-color: #D93B3B; box-shadow: 0 0 0 3px rgba(217, 59, 59, 0.12); }
.hint { display: block; margin-top: 7px; font-size: 0.8125rem; color: var(--faint); }
.error { display: none; margin-top: 7px; font-size: 0.8125rem; color: #C22B2B; }
.error.is-shown { display: block; }
.form-footer { margin-top: 30px; }
.form-note { margin-top: 14px; font-size: 0.8125rem; color: var(--faint); }
.form-status { margin-top: 14px; font-size: 0.875rem; color: #C22B2B; min-height: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.success { display: none; padding: 20px 0; }
.success.is-shown { display: block; }
.success-mark { width: 48px; height: 48px; display: grid; place-items: center; background: var(--cta); color: #fff; margin-bottom: 24px; }
.success h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--ink); margin-bottom: 12px; }
.success p { max-width: 44ch; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .consoles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console { padding: 28px 24px 28px 0; border-top: 1px solid var(--line); }
  .console + .console { border-left: 0; }
  .console:nth-child(even) { border-left: 1px solid var(--line); padding: 28px 0 28px 24px; }
  .console:first-child, .console:nth-child(2) { border-top: 0; }
}

/* The pinned stage needs room; below this it becomes a normal stacked section */
@media (max-width: 960px), (max-height: 640px) {
  .pin-track { height: auto; padding: var(--sec-y) var(--pad); }
  .pin-stage { position: static; height: auto; padding: 0; display: block; }
  .pin-count, .steps::before, .steps::after { display: none; }
  .pin-body { grid-template-columns: 1fr; }
  .step { opacity: 1; }
  .step .step-n { background: #fff; color: var(--ink); }
  .panels { height: auto; display: grid; gap: 16px; }
  .panel { position: relative; opacity: 1; transform: none; min-height: 0; }
  .panel-total-sm { margin-top: 18px; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .frame-head, .faq-layout, .cta-band, .book-layout { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .book-layout > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .trace, .trace-dot { display: none; }
  .hero-foot { grid-template-columns: 1fr; }
  .hero-vignette {
    background: linear-gradient(180deg, rgba(7, 24, 43, 0.85) 0%, rgba(7, 24, 43, 0.55) 45%, var(--ink) 100%);
  }
}

@media (max-width: 640px) {
  :root { --gutter: 0px; --pad: 20px; --nav-h: 64px; }
  .frame, .hero-inner, .footer-inner { border-inline: 0; }
  .kpis { grid-template-columns: 1fr; }
  .kpi, .kpi:first-child { padding: 26px 0; }
  .kpi + .kpi { border-left: 0; border-top: 1px solid var(--line); }
  .consoles { grid-template-columns: 1fr; }
  .console, .console:nth-child(even) { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .console:first-child { border-top: 0; }
  .nav-cta { height: 36px; padding: 0 12px; font-size: 0.8125rem; }
  .hero-cta .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .faq .answer { padding-right: 0; }
  .spec > div { grid-template-columns: 1fr; gap: 2px; }
  .cta-side .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .reveal, .load { opacity: 1; transform: none; animation: none; }
  .console { opacity: 1; }
  .console .v-draw { stroke-dashoffset: 0; }
}
