/* Ask Compass homepage
   Layout: a 12-column editorial grid at 1200px; sections alternate between
   split headings, asymmetric product panels and full-width bands. */
:root {
  --navy: #10284C;
  --deep: #173F73;
  --blue: #2563EB;
  --blue-bright: #4C9AFF;
  --blue-soft: #E7F0FD;
  --gold: #EFB64A;
  --gold-deep: #B97A0E;     /* gold for text and thin strokes on light surfaces */
  --gold-soft: #FDF3DD;
  --bg: #FAFAF7;
  --bg-blue: #EEF5FC;
  --surface: #FFFFFF;
  --ink: #17263E;
  --ink-2: #5E6C82;
  --ink-3: #8592A6;
  --line: #E2EAF3;
  --line-strong: #CFD9E6;
  --success: #169B62;
  --success-soft: #E3F4EC;
  --warning: #B45F06;
  --warning-soft: #FDF0DD;
  --on-navy: #F3F6FB;
  --on-navy-2: #A9B8CF;
  --on-navy-faint: rgba(243, 246, 251, .22);
  --warm-white: #FCFCFA;

  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-1: 0 1px 2px rgba(16, 40, 76, .05), 0 4px 14px rgba(16, 40, 76, .05);
  --shadow-2: 0 2px 6px rgba(16, 40, 76, .06), 0 24px 60px rgba(16, 40, 76, .10);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spatial: cubic-bezier(.16, 1, .3, 1);

  /* Material hierarchy: solid architecture → glass overlays → chrome object →
     luminous accents → computational lines → tactile controls → brutal callouts */
  --glass-bg: rgba(255, 255, 255, .58);
  --glass-edge: rgba(255, 255, 255, .78);
  --glass-blur: 18px;
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(16, 40, 76, .06), 0 14px 40px rgba(16, 40, 76, .12);
  --glow-blue: 0 0 0 1px rgba(76, 154, 255, .35), 0 0 24px rgba(76, 154, 255, .35);
  --glow-gold: 0 0 0 4px rgba(239, 182, 74, .22), 0 0 22px rgba(239, 182, 74, .45);
  --neu-bg: #EDF2F8;
  --neu-raised: 5px 5px 12px rgba(16, 40, 76, .13), -5px -5px 12px rgba(255, 255, 255, .95);
  --neu-pressed: inset 3px 3px 7px rgba(16, 40, 76, .16), inset -3px -3px 7px rgba(255, 255, 255, .9);
  --brut-line: 2px solid var(--navy);
  --brut-shadow: 8px 8px 0 var(--navy);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--on-navy); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ── Type scale ── */
.eyebrow { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--deep); }
h1 { font-size: clamp(42px, 5.3vw, 76px); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.section-lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 36em; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent; font-weight: 600; font-size: 15.5px; letter-spacing: -.005em; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: var(--on-navy); box-shadow: 0 1px 2px rgba(16, 40, 76, .2), 0 8px 20px rgba(16, 40, 76, .14); }
.btn-primary:hover { background: var(--deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--deep); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #F7C463; }
.btn-ghost-dark { color: var(--on-navy); border-color: rgba(243, 246, 251, .35); background: transparent; }
.btn-ghost-dark:hover { border-color: var(--on-navy); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.text-link { color: var(--blue); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 252, 250, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s; padding-top: env(safe-area-inset-top, 0px); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { width: 46px; height: 46px; object-fit: contain; flex: none; }
.brand-word { font-weight: 750; font-size: 21px; letter-spacing: .08em; color: var(--navy); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.main-nav > a, .nav-drop-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; border: 0; background: none; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: color .2s, background .2s; }
.main-nav > a:hover { color: var(--ink); background: var(--bg-blue); }
.main-nav > a[aria-current="page"], .nav-drop-link.is-current { color: var(--ink); }
/* Platform, Solutions, Resources: the label opens the overview page, the arrow (or a mouse hover) the menu */
.nav-drop-top { display: inline-flex; align-items: center; border-radius: 8px; transition: background .2s; }
.nav-drop-top:hover, .nav-drop.is-open .nav-drop-top { background: var(--bg-blue); }
.nav-drop-top:hover .nav-drop-link, .nav-drop.is-open .nav-drop-link { color: var(--ink); }
.main-nav .nav-drop-link { padding-right: 3px; border-radius: 8px 0 0 8px; }
.nav-drop-btn { display: inline-grid; place-items: center; align-self: stretch; padding: 0 11px 0 5px; border: 0; border-radius: 0 8px 8px 0; background: none; color: var(--ink-2); cursor: pointer; }
.nav-drop-btn:hover, .nav-drop-btn[aria-expanded="true"] { color: var(--ink); }
.nav-drop-btn:focus-visible, .nav-drop-link:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.chev { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.nav-drop-btn[aria-expanded="true"] .chev { transform: translateY(2px) rotate(225deg); }
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-drop { position: relative; }
.nav-drop-menu { position: absolute; top: calc(100% + 8px); left: -8px; width: 280px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s var(--ease), visibility .18s; }
.nav-drop.is-open .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop-menu a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.nav-drop-menu a small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-2); margin-top: 1px; }
.nav-drop-menu a:hover { background: var(--bg-blue); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.main-nav > .nav-cta-mobile { display: none; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; background: radial-gradient(70% 60% at 78% 42%, var(--bg-blue) 0%, rgba(241, 246, 252, 0) 70%), var(--bg); }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: center; min-height: min(760px, calc(100vh - 68px)); padding-block: 48px 56px; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 24px; }
.hero h1 .hl { color: var(--deep); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: .04em; right: .1em; bottom: .02em; height: .07em; background: var(--gold); border-radius: 2px; transform-origin: left; animation: underline 1.1s .35s var(--ease) both; }
@keyframes underline { from { transform: scaleX(0); } }
.hero-lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 30em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-principles { display: flex; gap: 0; margin: 12px 0 0; border-top: 1px solid var(--line); padding-top: 18px; }
.hero-principles div { flex: 1; padding-right: 16px; }
.hero-principles div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.hero-principles dt { font-weight: 600; font-size: 15px; color: var(--ink); }
.hero-principles dd { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }

.compass-stage { position: relative; aspect-ratio: 1 / .92; width: 100%; max-width: 100%; margin-right: -32px; }
.compass-canvas, .compass-fallback, .stage-lines { position: absolute; inset: 0; }
.compass-canvas { opacity: 0; transition: opacity .9s ease; cursor: grab; }
.compass-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.compass-stage.is-3d .compass-canvas { opacity: 1; }
.compass-fallback { display: grid; place-items: center; perspective: 900px; transition: opacity .6s ease; }
.compass-fallback svg { width: 56%; transform: rotateX(28deg); filter: drop-shadow(0 30px 30px rgba(16, 40, 76, .16)); }
.compass-stage.is-3d .compass-fallback { opacity: 0; }
.stage-lines { pointer-events: none; overflow: visible; z-index: 1; }
.stage-lines path { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 4; transition: stroke .4s; }
.stage-lines path.is-active { stroke: var(--gold-deep); stroke-dasharray: none; }
.bearings { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.bearings li { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); transition: opacity .4s; opacity: 0; }
.compass-stage.has-bearings .bearings li { opacity: 1; }
.bearings button { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-1); font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; cursor: pointer; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.b-deg { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--ink-3); transition: color .3s; }
.bearings li.is-active button { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft), var(--shadow-1); transform: translateY(-1px); }
.bearings li.is-active .b-deg { color: var(--gold-deep); }

/* ── Sections ── */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.section-head.narrow { max-width: 820px; }
.split-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 48px; align-items: end; }
.split-head > div { display: flex; flex-direction: column; gap: 16px; }

/* ── Product demo ── */
.demo-section { background: var(--bg-blue); border-block: 1px solid var(--line); }
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FAFBFD; }
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.demo-title { font-weight: 600; font-size: 14px; color: var(--navy); }
.demo-badge { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--warning); background: var(--warning-soft); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.demo-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.demo-main { padding: 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ask-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.ask-row svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; }
.ask-q { font-size: 17px; font-weight: 500; color: var(--ink); }
.answer { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-left: 16px; border-left: 2px solid var(--gold); }
.answer-text { color: var(--ink); font-size: 15.5px; }
.src-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-blue); font-family: var(--mono); font-size: 12px; color: var(--deep); cursor: pointer; transition: border-color .2s, background .2s; }
.src-chip:hover, .src-chip[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); }
.src-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--blue); transform: rotate(45deg); }
.demo-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--bg-blue); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.progress { display: flex; align-items: center; gap: 12px; min-width: 0; }
.progress-label { font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress-track { width: 140px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--deep), var(--blue-bright)); border-radius: 99px; transition: width .5s var(--ease); }

/* step route */
.route { position: relative; display: flex; flex-direction: column; }
.r-step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; }
.r-step::before { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: -2px; width: 1.5px; background: var(--line-strong); }
.r-step:last-child::before { display: none; }
.r-step.is-done::before { background: var(--deep); }
.r-marker { position: relative; z-index: 1; width: 28px; height: 28px; margin-top: 10px; display: grid; place-items: center; }
.r-marker::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); transition: all .3s var(--ease); }
.r-step.is-decision .r-marker::before { border-radius: 3px; transform: rotate(45deg); width: 13px; height: 13px; }
.r-step.is-done .r-marker::before { background: var(--deep); border-color: var(--deep); }
.r-step.is-done .r-marker::after { content: ""; position: absolute; width: 6px; height: 3.5px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.r-step.is-current .r-marker::before { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); }
.r-step.is-pending .r-marker::before { border-style: dashed; }
.r-card { border: 1px solid transparent; border-radius: 12px; margin-bottom: 6px; transition: border-color .25s, background .25s, box-shadow .25s; }
.r-step.is-open .r-card { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow-1); }
.r-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 12px; }
.r-head:hover .r-title { color: var(--deep); }
.r-title { flex: 1; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.r-step.is-upcoming .r-title, .r-step.is-pending .r-title { color: var(--ink-2); font-weight: 500; }
.r-kind { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.r-step.is-decision .r-kind { color: var(--gold-deep); }
.r-choice { font-size: 13px; color: var(--deep); background: var(--blue-soft); padding: 2px 8px; border-radius: 6px; }
.r-body { padding: 0 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.r-detail { color: var(--ink-2); font-size: 15px; }
.r-inputs { display: flex; flex-direction: column; gap: 8px; }
.r-inputs p { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.r-inputs label { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.r-inputs input { width: 17px; height: 17px; accent-color: var(--deep); }
.r-exception { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--warning-soft); font-size: 14px; color: #6B3A04; }
.r-exception strong { color: #6B3A04; }
.r-exception svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--warning); stroke-width: 1.8; }
.r-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.r-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); text-align: left; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.opt small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.opt:hover { border-color: var(--blue); background: var(--blue-soft); }
.mini-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--navy); background: var(--navy); color: var(--on-navy); font-weight: 600; font-size: 14px; cursor: pointer; }
.mini-btn:hover { background: var(--deep); }
.mini-btn:disabled { opacity: .45; cursor: not-allowed; }
.link-btn { border: 0; background: none; padding: 6px 4px; font-size: 14px; font-weight: 600; color: var(--blue); cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* process map */
.map-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 20px 20px, var(--surface); }
.map { display: block; width: 100%; min-width: 480px; height: auto; }
.map .m-edge { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.map .m-edge.is-off { stroke-dasharray: 4 5; opacity: .6; }
.map .m-edge.is-done { stroke: var(--deep); }
.map .m-label { font-family: var(--mono); font-size: 11px; fill: var(--ink-3); }
.map .m-node rect, .map .m-node path { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.map .m-node text { font-family: var(--font); font-size: 13px; font-weight: 600; fill: var(--ink); pointer-events: none; }
.map .m-node { cursor: pointer; }
.map .m-node:hover rect, .map .m-node:hover path { stroke: var(--blue); }
.map .m-node.is-done rect, .map .m-node.is-done path { fill: var(--blue-soft); stroke: var(--deep); }
.map .m-node.is-current rect, .map .m-node.is-current path { fill: var(--gold-soft); stroke: var(--gold-deep); }
.map .m-node.is-off { opacity: .45; }
.map .m-node:focus-visible { outline: none; }
.map .m-node:focus-visible rect, .map .m-node:focus-visible path { stroke: var(--blue); stroke-width: 2.5; }
.map-hint { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }

/* demo side */
.demo-side { border-left: 1px solid var(--line); background: #FAFBFD; padding: 24px 20px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.mini-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.next-card { padding: 16px; border-radius: 12px; background: var(--navy); color: var(--on-navy); }
.next-card .mini-label { color: var(--on-navy-2); }
.next-title { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.next-text { margin-top: 6px; font-size: 14px; color: var(--on-navy-2); }
.source-panel { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); outline: none; }
.source-panel.flash { animation: flash 1s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 4px var(--blue-soft); } 100% { box-shadow: 0 0 0 0 transparent; } }
.s-doc { font-weight: 600; font-size: 15px; }
.s-sec { font-family: var(--mono); font-size: 12px; color: var(--deep); margin-top: 2px; }
.s-quote { margin: 12px 0; padding-left: 12px; border-left: 2px solid var(--blue); font-size: 14px; color: var(--ink-2); }
.s-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.s-meta dt { color: var(--ink-3); }
.s-meta dd { margin: 0; color: var(--ink); }
.s-empty { font-size: 14px; color: var(--ink-2); }
.reset-btn { align-self: flex-start; border: 0; background: none; padding: 4px 0; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.reset-btn:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.demo-note { margin-top: 16px; font-size: 14px; color: var(--ink-2); }

/* ── Capabilities ── */
.cap-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px 64px; align-items: start; }
.cap-head { position: sticky; top: 108px; margin: 0; }
.cap-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.cap-list li { display: flex; gap: 16px; padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
.cap-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.cap-list li:nth-child(even) { padding-left: 24px; }
.cap-list li > div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cap-list p { color: var(--ink-2); font-size: 15.5px; }
.glyph { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--deep); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.glyph .g-gold { fill: var(--gold); stroke: var(--gold-deep); }
.glyph .g-gold-fill { fill: var(--gold); stroke: var(--gold-deep); }
.glyph .g-gold-stroke { stroke: var(--gold-deep); }
.glyph .g-dash { stroke-dasharray: 3 3; stroke: var(--gold-deep); }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-3); border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; }
.tag-live { color: var(--success); border-color: #BFE3D0; background: var(--success-soft); }

/* ── Difference ── */
.diff-section { background: var(--surface); border-block: 1px solid var(--line); }
.diff { display: flex; flex-direction: column; }
.diff-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; border-bottom: 1px solid var(--line); }
.diff-row > span[role="cell"], .diff-row > span[role="columnheader"] { padding: 20px 0; font-size: 17px; }
.diff-row > span:first-child { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; }
.diff-row > span:last-child { color: var(--ink); font-weight: 500; }
.diff-head > span[role="columnheader"] { padding: 0 0 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none !important; font-weight: 500; }
.diff-head > span:first-child { color: var(--ink-3); }
.diff-head > span:last-child { color: var(--deep); }
.diff-mid { position: relative; align-self: stretch; }
.diff-mid::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; background: var(--deep); transform: translateX(-50%); }
.diff-head .diff-mid::before { top: auto; height: 50%; bottom: 0; }
.diff-mid i { position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--deep); transform: translate(-50%, -50%); }
.diff-mid i.d-branch { border-radius: 2px; transform: translate(-50%, -50%) rotate(45deg); border-color: var(--gold-deep); }
.diff-mid i.d-exception { border-style: dashed; }
.diff-mid i.d-end { background: var(--gold); border-color: var(--gold-deep); width: 13px; height: 13px; }
.diff-row:last-child .diff-mid::before { bottom: 50%; }

/* ── Journey ── */
.journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; position: relative; }
.journey::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 1.5px; background: linear-gradient(90deg, var(--deep) 0 66%, var(--line-strong) 66%); }
.j-step { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 34px; }
.j-node { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--deep); border: 3px solid var(--bg); box-shadow: 0 0 0 1.5px var(--deep); }
.j-node.is-current { background: var(--gold); box-shadow: 0 0 0 1.5px var(--gold-deep), 0 0 0 7px var(--gold-soft); }
.j-node.is-done { background: var(--surface); box-shadow: 0 0 0 1.5px var(--line-strong); }
.j-num { font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--deep); }
.j-step > p:not(.j-num) { color: var(--ink-2); }
.j-ui { margin-top: 10px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.j-input { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--ink); }
.j-path span { position: relative; padding: 6px 10px 6px 26px; }
.j-path span::before { content: ""; position: absolute; left: 6px; top: 50%; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--deep); transform: translateY(-50%); }
.j-path .j-dec::before { border-radius: 2px; transform: translateY(-50%) rotate(45deg); border-color: var(--gold-deep); background: var(--gold); }
.j-path .j-dec { color: var(--gold-deep); font-weight: 600; }
.j-check span { padding-left: 26px; position: relative; color: var(--ink-2); }
.j-check span::before { content: ""; position: absolute; left: 4px; top: 3px; width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid var(--line-strong); }
.j-check .ok { color: var(--ink); }
.j-check .ok::before { background: var(--success); border-color: var(--success); }
.j-check .ok::after { content: ""; position: absolute; left: 8px; top: 7px; width: 6px; height: 3px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg); }

/* ── Use cases ── */
.uses-section { background: var(--bg-blue); border-block: 1px solid var(--line); }
.uses { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 64px; align-items: start; }
.uses-intro { display: flex; flex-direction: column; gap: 16px; }
.uses-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.uses-tabs button { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.uses-tabs button:hover { color: var(--ink); border-color: var(--deep); }
.uses-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.uses-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); padding: 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.u-q { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.u-who { font-size: 14.5px; color: var(--ink-2); }
.u-route { display: flex; flex-direction: column; }
.u-route li { position: relative; padding: 0 0 18px 30px; }
.u-route li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--deep); background: var(--surface); }
.u-route li::after { content: ""; position: absolute; left: 11.5px; top: 19px; bottom: 2px; width: 1.5px; background: var(--line-strong); }
.u-route li:last-child { padding-bottom: 0; }
.u-route li:last-child::after { display: none; }
.u-route li.dec::before { border-radius: 2px; transform: rotate(45deg); border-color: var(--gold-deep); background: var(--gold); }
.u-route li.exc::before { border-style: dashed; border-color: var(--warning); }
.u-route b { font-weight: 600; }
.u-route small { display: block; font-size: 13.5px; color: var(--ink-2); }
.u-route li.exc small { color: var(--warning); }
.uses-panel.swap { animation: swap .4s var(--ease); }
@keyframes swap { from { opacity: .3; transform: translateY(6px); } }

/* ── Two sides ── */
.sides { display: grid; grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr); align-items: stretch; }
.side { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); display: flex; flex-direction: column; gap: 20px; }
.ticks { display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--deep); }
.ticks li::after { content: ""; position: absolute; left: 4.5px; top: 11.5px; width: 3px; height: 3px; border-radius: 50%; background: var(--deep); }
.spine { position: relative; display: grid; place-items: center; }
.spine-line { position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px; background: repeating-linear-gradient(90deg, var(--deep) 0 6px, transparent 6px 11px); }
.spine-doc { position: relative; z-index: 1; padding: 10px 12px; border-radius: 10px; background: var(--navy); color: var(--on-navy); font-family: var(--mono); font-size: 11.5px; text-align: center; line-height: 1.35; max-width: 110px; }
.spine-doc::before { content: ""; display: block; width: 8px; height: 8px; margin: 0 auto 6px; background: var(--gold); transform: rotate(45deg); border-radius: 1px; }

/* ── Trust ── */
.trust { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px 64px; align-items: start; }
.trust-copy { display: flex; flex-direction: column; gap: 16px; }
.direction-note { font-size: 14px; color: var(--warning); background: var(--warning-soft); padding: 10px 12px; border-radius: 8px; }
.anatomy { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.anatomy-card { padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: 12px; }
.a-step { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.a-mark { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); flex: none; }
.a-body { color: var(--ink-2); font-size: 15px; }
.a-exc { font-size: 14px; padding: 10px 12px; border-radius: 8px; background: var(--warning-soft); color: #6B3A04; }
.a-esc { font-size: 14px; color: var(--ink-2); padding-left: 12px; border-left: 2px dashed var(--line-strong); }
.a-meta { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.a-meta span { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); background: var(--bg-blue); padding: 4px 8px; border-radius: 6px; }
.a-meta .a-src { color: var(--deep); }
.callouts { counter-reset: c; display: flex; flex-direction: column; gap: 14px; }
.callouts li { counter-increment: c; position: relative; padding-left: 34px; font-size: 14.5px; color: var(--ink-2); }
.callouts li::before { content: counter(c); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--deep); }
.callouts b { display: block; color: var(--ink); font-weight: 600; }

/* ── Final CTA ── */
.final { background: var(--navy); color: var(--on-navy); overflow: hidden; }
.final-in { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 64px; align-items: center; padding-block: clamp(72px, 9vw, 120px); }
.final h2 { color: var(--on-navy); font-size: clamp(34px, 4.4vw, 58px); }
.final-copy { display: flex; flex-direction: column; gap: 20px; }
.final-copy p { font-size: 19px; color: var(--on-navy-2); max-width: 30em; }

/* ── Footer ── */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); }
.footer-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; padding-block: 48px 32px; }
.f-brand { display: flex; flex-direction: column; gap: 10px; }
.f-brand p { color: var(--ink-2); font-size: 15px; }
.f-cols { display: grid; grid-template-columns: repeat(3, minmax(130px, auto)); gap: 32px 48px; }
.f-cols h4 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.f-cols a { display: block; padding: 4px 0; text-decoration: none; color: var(--ink); font-size: 15px; }
.f-cols a:hover { color: var(--blue); }
.f-base { padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }

/* ── Reveal on scroll (content stays visible without JS) ── */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Tablet ── */
@media (max-width: 1080px) {
  .hero-in { gap: 8px; }
  .compass-stage { margin-right: -12px; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-side { border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .reset-btn { grid-column: 1 / -1; }
  .cap-layout, .uses, .trust { grid-template-columns: 1fr; }
  .cap-head { position: static; }
  .final-in { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 920px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; padding-block: 36px 16px; }
  .hero-copy { max-width: 680px; }
  .compass-stage { margin: 0 auto; max-width: 680px; aspect-ratio: 1 / .78; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 12px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(16, 40, 76, .08); }
  .main-nav.is-open { display: flex; }
  .main-nav > a, .nav-drop-link { padding: 14px 8px; font-size: 16px; width: 100%; justify-content: space-between; }
  .nav-drop-top { display: flex; width: 100%; }
  .main-nav .nav-drop-link { flex: 1; border-radius: 8px; }
  .nav-drop-btn { width: 48px; padding: 0; border-radius: 8px; border-left: 1px solid var(--line); }
  .nav-drop-top:hover { background: none; }
  .nav-drop-menu { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 0 8px; display: none; opacity: 1; visibility: visible; transform: none; }
  .nav-drop.is-open .nav-drop-menu { display: block; }
  .main-nav .nav-cta-mobile { display: inline-flex; margin-top: 10px; justify-content: center; color: var(--on-navy); }
  .main-nav .nav-cta-mobile:hover { background: var(--deep); }
  .header-actions .btn { display: none; }
  .menu-btn { display: block; }
  .split-head { grid-template-columns: 1fr; }
  .anatomy { grid-template-columns: 1fr; }
  .sides { grid-template-columns: 1fr; gap: 0; }
  .spine { height: 96px; }
  .spine-line { left: 50%; right: auto; top: 0; bottom: 0; width: 1.5px; height: auto; background: repeating-linear-gradient(180deg, var(--deep) 0 6px, transparent 6px 11px); }
  .spine-doc { max-width: none; }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 32px; }
  .hero-lead { font-size: 17px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-principles { flex-direction: column; gap: 10px; }
  .hero-principles div, .hero-principles div + div { padding: 0; border: 0; display: flex; gap: 6px; align-items: baseline; }
  .bearings button { padding: 6px 10px; font-size: 12.5px; }
  .b-deg { display: none; }
  .compass-stage { aspect-ratio: 1 / 1.08; }
  .demo-main { padding: 16px; }
  .demo-badge { font-size: 10.5px; }
  .demo-title { display: none; }
  .demo-side { grid-template-columns: 1fr; padding: 16px; }
  .r-options { grid-template-columns: 1fr; }
  .progress-track { width: 90px; }
  .cap-list { grid-template-columns: 1fr; }
  .cap-list li, .cap-list li:nth-child(even) { padding: 24px 0; border-right: 0; }
  .diff-row { grid-template-columns: 28px minmax(0, 1fr); grid-template-areas: "mid old" "mid new"; }
  .diff-row > span:first-child { grid-area: old; padding: 16px 0 2px; font-size: 15px; }
  .diff-row > span:last-child { grid-area: new; padding: 0 0 16px; font-size: 16px; }
  .diff-mid { grid-area: mid; }
  .diff-mid::before { left: 9px; }
  .diff-mid i { left: 9px; }
  .diff-head { display: none; }
  .diff-row:nth-child(2) .diff-mid::before { top: 50%; }
  .journey { grid-template-columns: 1fr; gap: 28px; }
  .journey::before { left: 7px; right: auto; top: 7px; bottom: 7px; width: 1.5px; height: auto; background: linear-gradient(180deg, var(--deep) 0 66%, var(--line-strong) 66%); }
  .j-step { padding: 0 0 0 36px; }
  .uses-panel { padding: 20px; }
  .side { padding: 24px; }
  .final-in { grid-template-columns: 1fr; gap: 28px; }
  .final-copy .btn { flex: 1 1 100%; }
  .footer-in { grid-template-columns: 1fr; }
  .f-cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ── Studio workflow ── */
.studio-section { background: var(--surface); border-top: 1px solid var(--line); }
.studio-section .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.studio-section .section-head { width: 100%; }
.flowline { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; margin-bottom: 40px; }
.flowline::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 1.5px; background: var(--deep); }
.flowline li { position: relative; padding-top: 32px; display: flex; flex-direction: column; gap: 6px; }
.flowline p { color: var(--ink-2); font-size: 15px; }
.fl-node { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--deep); }
.fl-node.is-gold { background: var(--gold); border-color: var(--gold-deep); box-shadow: 0 0 0 6px var(--gold-soft); }
.studio-extras { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); margin-bottom: 36px; }
.studio-extras li { padding: 20px 20px 20px 0; font-size: 14.5px; color: var(--ink-2); }
.studio-extras li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.studio-extras b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* ── Founder card ── */
.founder-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-blue) 100%); }
.founder-card { position: relative; max-width: 640px; margin: 0 auto; padding: 48px 40px 40px; border-radius: 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
.fc-photo { position: relative; width: 168px; aspect-ratio: 1; border-radius: 50%; padding: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(16, 40, 76, .14), 0 0 0 10px rgba(76, 154, 255, .08); margin-bottom: 10px; }
.fc-photo::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid transparent; border-top-color: var(--gold); border-right-color: var(--gold); transform: rotate(-20deg); pointer-events: none; }
.fc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.founder-card h2 { font-size: clamp(28px, 3.4vw, 38px); }
.fc-role { font-family: var(--mono); font-size: 13px; color: var(--deep); }
.fc-text { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 32em; }
.fc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.fc-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); text-decoration: none; font-weight: 600; font-size: 15px; box-shadow: 0 1px 2px rgba(16, 40, 76, .05); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.fc-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(16, 40, 76, .08); }
.fc-btn svg { width: 19px; height: 19px; flex: none; }
.fc-call, .fc-wa { color: #15803D; }
.fc-call:hover, .fc-wa:hover { border-color: #86C99B; }
.fc-call svg, .fc-wa svg { fill: currentColor; }
.fc-mail, .fc-in { color: var(--blue); }
.fc-mail:hover, .fc-in:hover { border-color: #9CBDF5; }
.fc-mail svg, .fc-in svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1080px) {
  .flowline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .flowline::before { display: none; }
  .studio-extras { grid-template-columns: 1fr 1fr; }
  .studio-extras li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .flowline { grid-template-columns: 1fr; gap: 22px; }
  .flowline::before { display: block; left: 7px; right: auto; top: 7px; bottom: 7px; width: 1.5px; height: auto; }
  .flowline li { padding: 0 0 0 34px; }
  .studio-extras { grid-template-columns: 1fr; }
  .studio-extras li, .studio-extras li + li { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .studio-section .btn { width: 100%; }
}


/* ═════════════ Future-forward layer ═════════════ */

/* Glass: precision translucent overlays only */
.glass { background: var(--glass-bg); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5); backdrop-filter: blur(var(--glass-blur)) saturate(1.5); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: rgba(255, 255, 255, .94); } }

/* Hero: luminous environment */
.hero-sub { font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.02em; color: var(--ink); margin-top: -6px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(38% 46% at 74% 44%, rgba(76, 154, 255, .16), transparent 70%),
  radial-gradient(18% 22% at 82% 30%, rgba(239, 182, 74, .10), transparent 70%),
  linear-gradient(180deg, rgba(238, 245, 252, 0) 60%, rgba(238, 245, 252, .7)); }
.compass-stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: 64%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: conic-gradient(from var(--sweep, 0deg), rgba(76, 154, 255, 0) 0deg, rgba(76, 154, 255, .22) 40deg, rgba(76, 154, 255, 0) 90deg, rgba(239, 182, 74, 0) 200deg, rgba(239, 182, 74, .16) 230deg, rgba(239, 182, 74, 0) 270deg);
  -webkit-mask: radial-gradient(closest-side, transparent 78%, #000 80%, #000 96%, transparent 100%); mask: radial-gradient(closest-side, transparent 78%, #000 80%, #000 96%, transparent 100%);
  animation: sweep 16s linear infinite; }
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes sweep { to { --sweep: 360deg; } }

/* Spatial layers: labels and panels sit at different depths and drift with the pointer */
.compass-stage { --px: 0; --py: 0; }
.bearings { transform: translate3d(calc(var(--px) * -6px), calc(var(--py) * -5px), 0); transition: transform .6s var(--ease-spatial); }
.bearings button { background: var(--glass-bg); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-color: var(--glass-edge); box-shadow: var(--glass-shadow); }
.bearings li.is-active button { border-color: var(--gold); box-shadow: var(--glow-gold); }
.stage-lines .waypoint { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; transition: fill .4s, stroke .4s; }
.stage-lines .waypoint.is-active { fill: var(--gold); stroke: var(--gold-deep); }
.stage-lines path.is-active { stroke: var(--gold-deep); stroke-width: 1.4; stroke-dasharray: 4 6; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.ctx-panel { position: absolute; z-index: 3; right: -2%; bottom: 15%; width: min(260px, 44%); padding: 14px 16px; border-radius: 14px; display: flex; flex-direction: column; gap: 3px; transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -10px), 0); transition: transform .6s var(--ease-spatial); }
.ctx-label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--deep); }
.ctx-title { font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--ink); }
.ctx-meta { font-size: 13px; color: var(--ink-2); }

/* Tactile compass controls (neumorphism, micro only) */
.compass-controls { position: absolute; z-index: 3; left: 50%; bottom: 1%; transform: translateX(-50%); display: flex; gap: 10px; padding: 7px; border-radius: 999px; background: var(--neu-bg); box-shadow: var(--neu-pressed); }
.neu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .8); background: linear-gradient(145deg, #ffffff, #e8eef6); box-shadow: var(--neu-raised); color: var(--navy); font-size: 13px; font-weight: 600; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.neu-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.neu-btn:hover { transform: translateY(-1px); }
.neu-btn:active, .neu-btn[aria-pressed="false"] { box-shadow: var(--neu-pressed); transform: none; }
.neu-wide { min-width: 92px; }
.cc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(239, 182, 74, .8); }
.neu-btn[aria-pressed="false"] .cc-dot { background: var(--ink-3); box-shadow: none; }

/* Liquid-chrome sheen on primary actions */
.btn-sheen { position: relative; overflow: hidden; }
.btn-sheen::after { content: ""; position: absolute; inset: -40% -60%; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .55) 48%, rgba(239, 182, 74, .35) 52%, transparent 60%); transform: translateX(-60%); transition: transform .8s var(--ease); pointer-events: none; }
.btn-sheen:hover::after { transform: translateX(60%); }
/* Warm gold for the main action, teal for the second (homepage hero, Platform page) */
.hx-btn-gold { background: linear-gradient(180deg, #F5C35E, #EBAA3C); color: var(--navy); border-color: rgba(185, 122, 14, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 24px rgba(212, 150, 40, .32); }
.hx-btn-gold:hover { background: linear-gradient(180deg, #F8CD72, #EFB24A); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 14px 30px rgba(212, 150, 40, .4); }
.hx-btn-teal { background: linear-gradient(180deg, #0F8F84, #0B7068); color: #fff; border-color: rgba(8, 92, 85, .4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 24px rgba(11, 112, 104, .28); }
.hx-btn-teal:hover { background: linear-gradient(180deg, #12A094, #0C7A71); }

/* Demo: tactile toggle and progress, luminous current step, spatial reveal */
.seg { background: var(--neu-bg); border: 0; box-shadow: var(--neu-pressed); padding: 4px; border-radius: 11px; }
.seg button[aria-selected="true"] { background: linear-gradient(145deg, #ffffff, #eef2f8); box-shadow: 3px 3px 8px rgba(16, 40, 76, .12), -3px -3px 8px rgba(255, 255, 255, .9); }
.progress-track { height: 8px; background: var(--neu-bg); box-shadow: var(--neu-pressed); }
.progress-fill { box-shadow: 0 0 12px rgba(76, 154, 255, .55); }
.r-step.is-current .r-marker::before { animation: halo 2.4s ease-in-out infinite; }
@keyframes halo { 50% { box-shadow: 0 0 0 7px var(--gold-soft), 0 0 18px rgba(239, 182, 74, .55); } }
.r-step.is-done::before { background: linear-gradient(180deg, var(--deep), var(--blue-bright)); }
.r-step.is-new { animation: depthIn .65s var(--ease-spatial) both; }
.r-step.is-new:nth-child(n+5) { animation-delay: .08s; }
.r-step.is-new:nth-child(n+6) { animation-delay: .16s; }
@keyframes depthIn { from { opacity: 0; transform: perspective(900px) translate3d(0, 14px, -70px) rotateX(8deg); filter: blur(2px); } }
.map .m-edge.is-done { stroke: var(--blue); stroke-width: 2; filter: drop-shadow(0 0 3px rgba(76, 154, 255, .6)); }
.map .m-node.is-current rect, .map .m-node.is-current path { filter: drop-shadow(0 0 6px rgba(239, 182, 74, .7)); }
.demo-side .next-card { box-shadow: 0 0 0 1px rgba(76, 154, 255, .3), 0 16px 34px rgba(16, 40, 76, .25); }

/* Neo-brutalist statement: one controlled moment of contrast */
.why-section { background: var(--bg); border-top: var(--brut-line); border-bottom: var(--brut-line); }
.why-head { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-bottom: 48px; }
.brut-label { display: inline-block; padding: 6px 12px; background: var(--gold); color: var(--navy); border: var(--brut-line); box-shadow: 4px 4px 0 var(--navy); font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.brut-title { font-size: clamp(40px, 6.4vw, 92px); line-height: .94; letter-spacing: -.05em; font-weight: 700; color: var(--navy); max-width: 14ch; }
.brut-title span { background: linear-gradient(transparent 64%, var(--gold) 64%, var(--gold) 90%, transparent 90%); }
.why-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; align-items: start; }
.brut-frame { border: var(--brut-line); box-shadow: var(--brut-shadow); background: var(--surface); }
.why-viz { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.why-toggle { align-self: flex-start; display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--neu-bg); box-shadow: var(--neu-pressed); }
.why-toggle button { border: 0; background: none; padding: 9px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.why-toggle button[aria-checked="true"] { color: var(--navy); background: linear-gradient(145deg, #ffffff, #eef2f8); box-shadow: 3px 3px 8px rgba(16, 40, 76, .12), -3px -3px 8px rgba(255, 255, 255, .9); }
.why-svg { width: 100%; height: auto; display: block; background: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 18px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-svg .w-edge { fill: none; stroke: var(--line-strong); stroke-width: 1.3; transition: opacity .5s, stroke .5s; }
.why-svg .w-edge.dead { stroke-dasharray: 3 4; }
.why-svg .w-edge.route { stroke: var(--deep); stroke-width: 2.2; }
.why-svg .w-edge.alt { stroke: var(--ink-3); stroke-dasharray: 5 5; }
.why-svg .w-edge.live { stroke: var(--gold-deep); stroke-width: 2.4; stroke-dasharray: 6 7; animation: flow 1.3s linear infinite; }
.why-svg .w-node { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.3; }
.why-svg .w-node.doc { fill: #F6F8FB; }
.why-svg .w-node.step { stroke: var(--deep); stroke-width: 1.8; }
.why-svg .w-node.dec { fill: var(--gold-soft); stroke: var(--gold-deep); stroke-width: 1.8; }
.why-svg .w-node.goal { fill: var(--gold); stroke: var(--navy); stroke-width: 2; }
.why-svg .w-node.x { fill: var(--surface); stroke: #D3A39D; }
.why-svg text { font: 500 11px var(--font); fill: var(--ink-2); }
.why-svg text.strong { font-weight: 600; fill: var(--ink); }
.why-svg g.enter { animation: wIn .7s var(--ease-spatial) both; }
@keyframes wIn { from { opacity: 0; transform: translateY(6px); } }
.why-caption { font-size: 14.5px; color: var(--ink-2); min-height: 3em; }
.why-section .diff { border-top: var(--brut-line); }
.why-section .diff-row > span:last-child { font-weight: 600; }
.why-fair { margin-top: 36px; font-size: 15px; color: var(--ink-2); max-width: 60ch; }

/* Trust: glass change notice floating over the solid record */
.anatomy-card { position: relative; }
.change-chip { position: absolute; top: -22px; right: -14px; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; font-size: 13px; color: var(--ink-2); max-width: 260px; }
.change-chip b { display: block; color: var(--ink); font-size: 13.5px; }
.cc-pulse { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--blue-bright); box-shadow: var(--glow-blue); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(76, 154, 255, .18), 0 0 18px rgba(76, 154, 255, .5); } }
.anatomy-card .a-step { margin-top: 18px; }

/* Final: dimensional, layered compass in liquid chrome */
.final { position: relative; }
.final::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 70% at 18% 50%, rgba(76, 154, 255, .22), transparent 70%); }
.final h2 span { color: var(--gold); }
.eyebrow-light { color: var(--on-navy-2); }
.dial3d { --tx: 0; --ty: 0; position: relative; width: 100%; max-width: 320px; aspect-ratio: 1; perspective: 900px; }
.d3-halo { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(76, 154, 255, .35), transparent 62%); filter: blur(10px); }
.d3-body { position: absolute; inset: 10%; transform-style: preserve-3d; transform: rotateX(calc(52deg + var(--ty) * 8deg)) rotateZ(calc(-14deg + var(--tx) * 10deg)); transition: transform .8s var(--ease-spatial); }
.d3-layer { position: absolute; inset: 0; border-radius: 50%; }
.d3-base { background: #061630; transform: translateZ(-26px); box-shadow: 0 40px 60px rgba(0, 0, 0, .45); }
.d3-rim { background: conic-gradient(from 210deg, #f6f8fb, #9aa7bb 12%, #ffffff 22%, #6f7d94 35%, #e9eef5 48%, #c7a35a 56%, #ffffff 62%, #8592a6 76%, #f2f5f9 90%, #f6f8fb); transform: translateZ(-6px); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6), inset 0 -6px 14px rgba(16, 40, 76, .35); }
.d3-face { inset: 9%; background: radial-gradient(circle at 50% 40%, #ffffff, #e8eef6 70%, #c9d5e5); transform: translateZ(2px); box-shadow: inset 0 0 0 2px #10284C, inset 0 0 0 7px #f3f6fb, inset 0 0 0 8px rgba(23, 63, 115, .4); }
.d3-face::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: repeating-conic-gradient(from -1deg, rgba(23, 38, 62, .55) 0 2deg, transparent 2deg 10deg); -webkit-mask: radial-gradient(closest-side, transparent 86%, #000 87%); mask: radial-gradient(closest-side, transparent 86%, #000 87%); }
.d3-face span { position: absolute; left: 50%; top: 17%; transform: translateX(-50%); font-weight: 700; font-size: 18px; color: var(--deep); }
.d3-needle { inset: 9%; transform: translateZ(14px); }
.d3-needle i { position: absolute; left: 50%; top: 14%; bottom: 14%; width: 12%; transform: translateX(-50%); animation: sway 9s ease-in-out infinite; transform-origin: 50% 50%;
  background: linear-gradient(90deg, #6aa8ff 0 50%, #2563eb 50% 100%) top / 100% 50% no-repeat, linear-gradient(90deg, #fafbfc 0 50%, #c7d1de 50% 100%) bottom / 100% 50% no-repeat;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25)); }
.d3-needle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 40% 35%, #2b4f86, #10284C); box-shadow: 0 0 0 2px #e9eef5; }
.d3-glass { inset: 9%; transform: translateZ(22px); background: radial-gradient(60% 40% at 35% 25%, rgba(255, 255, 255, .55), transparent 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
@keyframes sway { 0%, 100% { transform: translateX(-50%) rotate(-12deg); } 50% { transform: translateX(-50%) rotate(16deg); } }

/* Mobile menu as a glass sheet */
@media (max-width: 920px) {
  .main-nav { background: rgba(250, 250, 247, .82); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ctx-panel { width: 56%; right: 0; bottom: 30%; padding: 10px 12px; }
  .ctx-meta { display: none; }
  .ctx-title { font-size: 13.5px; }
  .compass-controls { bottom: 0; }
  .brut-frame { box-shadow: 5px 5px 0 var(--navy); }
  .why-viz { padding: 12px; }
  .change-chip { position: static; margin-bottom: 4px; max-width: none; }
  .anatomy-card .a-step { margin-top: 0; }
  .dial3d { max-width: 180px; }
  .founder-card { padding: 36px 20px 28px; border-radius: 24px; }
  .fc-photo { width: 140px; }
  .fc-text { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .compass-stage::before, .stage-lines path.is-active, .why-svg .w-edge.live { animation: none; }
  .bearings, .ctx-panel { transform: none; }
}

/* Sliding highlight behind the hovered navigation item (desktop) */
.nav-ind { display: none; }
@media (min-width: 921px) {
  .main-nav { position: relative; }
  .main-nav > a, .nav-drop-top { position: relative; z-index: 1; }
  .nav-ind { display: block; position: absolute; z-index: 0; left: 0; top: 50%; height: 38px; margin-top: -19px; width: var(--w, 0); border-radius: 8px; background: var(--bg-blue); opacity: 0; pointer-events: none;
    transform: translateX(var(--x, 0)); transition: transform .32s var(--ease-spatial), width .32s var(--ease-spatial), opacity .2s; }
  .main-nav.ind-on .nav-ind { opacity: 1; }
  .main-nav.ind-on > a:hover, .main-nav.ind-on .nav-drop-top:hover, .main-nav.ind-on .nav-drop.is-open .nav-drop-top { background: transparent; }
  .is-home .nav-ind { background: rgba(255, 255, 255, .1); }
}
@media (prefers-reduced-motion: reduce) { .nav-ind { transition: opacity .2s; } }

/* Header wordmark with its line underneath */
.brand-text { display: flex; flex-direction: column; gap: 3px; line-height: 1.05; }
.brand-sub { font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 921px) { .brand-sub { display: none; } }
@media (max-width: 359px) { .brand-sub { display: none; } }
@media (max-width: 640px) { .brand-word { font-size: 18px; } .brand-mark { width: 40px; height: 40px; } .brand-sub { font-size: 11px; } }
@media (max-width: 1180px) and (min-width: 921px) {
  .header-in { gap: 18px; }
  .brand-word { font-size: 18px; }
  .brand-mark { width: 40px; height: 40px; }
  .main-nav { margin-left: 4px; }
  .main-nav > a, .nav-drop-link { padding-inline: 9px; }
  .main-nav .nav-drop-link { padding-right: 2px; }
  .nav-drop-btn { padding: 0 8px 0 4px; }
}
@media (max-width: 1000px) and (min-width: 921px) {
  .header-in { gap: 12px; }
  /* Logo only: the link keeps its accessible name, "Ask Compass home". */
  .brand-text { display: none; }
  .main-nav > a, .nav-drop-link { padding-inline: 7px; font-size: 14.5px; }
  .main-nav .nav-drop-link { padding-right: 1px; }
  .nav-drop-btn { padding: 0 6px 0 3px; }
}

/* Header actions: animated Login and a gold Open Studio (every page) */
.hdr-studio { background: linear-gradient(180deg, #F5C35E, #EBAA3C); color: var(--navy); border: 1px solid rgba(185, 122, 14, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 20px rgba(212, 150, 40, .3); font-weight: 700; }
.hdr-studio:hover { background: linear-gradient(180deg, #F8CD72, #EFB24A); }
@property --la { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hdr-login { position: relative; gap: 8px; padding: 0 18px 0 14px; border: 1.5px solid transparent; border-radius: var(--radius); color: var(--navy); font-weight: 650; isolation: isolate;
  background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from var(--la), #2563EB, #0E8A80, #EFB64A, #7c5cff, #2563EB) border-box;
  animation: loginSpin 6s linear infinite; transition: box-shadow .3s, transform .2s; }
@keyframes loginSpin { to { --la: 360deg; } }
.hdr-login::after { content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit; background: conic-gradient(from var(--la), #2563EB, #0E8A80, #EFB64A, #7c5cff, #2563EB); filter: blur(10px); opacity: 0; transition: opacity .3s; }
.hdr-login:hover { box-shadow: 0 8px 22px rgba(37, 99, 235, .18); }
.hdr-login:hover::after { opacity: .45; }
.hdr-login .lk { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.hdr-login .lk-shackle { transition: transform .35s var(--ease-spatial); transform-origin: 16px 11px; }
.hdr-login:hover .lk-shackle, .hdr-login:focus-visible .lk-shackle { transform: translateY(-2.5px) rotate(18deg); }
.main-nav > a.nav-login-mobile { display: none; }
@media (max-width: 920px) {
  .main-nav > a.nav-login-mobile { display: inline-flex; justify-content: center; margin-top: 12px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--navy); }
  .main-nav > a.nav-login-mobile + .nav-cta-mobile { margin-top: 8px; }
}
.main-nav > a.nav-cta-mobile:not(.nav-login-mobile) { background: linear-gradient(180deg, #F5C35E, #EBAA3C); color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .hdr-login { animation: none; } .hdr-login .lk-shackle { transition: none; } }
