/* ============================================================
   Opract — v3 "ice-blue chrome"
   Black + metallic silver brand, electric ice-blue as the living
   accent, real depth + motion. Brand tokens in :root.
   ============================================================ */

:root {
  /* ---- LIGHT theme (default): silver background, black text, dark metal ---- */
  --bg: #C7CBD2;
  --bg-2: #D4D7DD;
  --panel: #E1E3E8;
  --panel-2: #EAECEF;

  --ink: #0D0F13;
  --ink-soft: #3C414A;
  --ink-faint: #6C717B;

  --line: rgba(13, 15, 19, 0.16);
  --line-soft: rgba(13, 15, 19, 0.09);

  /* metallic gradient for headings/wordmark/buttons — dark brushed steel on light */
  --chrome-grad: linear-gradient(180deg, #2C313A 0%, #0C0F14 62%, #05070B 100%);
  --btn-ink: #EDEFF4;

  /* ice-blue accent (deepened for readable contrast on silver) */
  --ice: #0C557F;
  --ice-bright: #12689B;
  --ice-deep: #08405F;
  --ice-glow: rgba(22, 131, 194, 0.40);
  --ice-wash: rgba(22, 131, 194, 0.12);
  --ice-line: rgba(22, 131, 194, 0.28); /* accent hairline/border — theme-aware */

  --aurora-bg:
    radial-gradient(1200px 800px at 72% -10%, rgba(150,175,205,0.34) 0%, transparent 60%),
    radial-gradient(900px 700px at 0% 100%, rgba(120,150,185,0.24) 0%, transparent 55%), var(--bg);
  --blob-op: 0.22;
  --nav-bg: rgba(199, 203, 210, 0.72);
  --nav-bg-2: rgba(199, 203, 210, 0.90);
  --scrim: radial-gradient(65% 60% at 30% 50%, rgba(199,203,210,0.92) 0%, rgba(199,203,210,0.55) 45%, transparent 72%);
  --chip-bg: rgba(13, 15, 19, 0.03);
  --price-bg: linear-gradient(180deg, #EAECEF, #DBDEE3);
  --price-shadow: 0 40px 80px -50px rgba(0,0,0,0.40), 0 0 60px -34px var(--ice-glow);
  --mobile-menu-bg: rgba(214, 217, 222, 0.97);

  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;

  --shell: 1160px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
}

html[data-theme="dark"] {
  /* ---- DARK theme: black background, chrome text (the original v3 look) ---- */
  --bg: #07080B;
  --bg-2: #0B0D12;
  --panel: #0E1118;
  --panel-2: #12161F;

  --ink: #EDEFF4;
  --ink-soft: #A7AEBC;
  --ink-faint: #6B7280;

  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.055);

  --chrome-grad: linear-gradient(180deg, #FFFFFF 0%, #C6CBD6 42%, #7E8493 100%);
  --btn-ink: #0A0C11;

  --ice: #6FD3FF;
  --ice-bright: #9EE4FF;
  --ice-deep: #2A8CD8;
  --ice-glow: rgba(111, 211, 255, 0.55);
  --ice-wash: rgba(111, 211, 255, 0.10);
  --ice-line: rgba(111, 211, 255, 0.28);

  --aurora-bg:
    radial-gradient(1200px 800px at 72% -10%, #0d1420 0%, transparent 60%),
    radial-gradient(900px 700px at 0% 100%, #0a1017 0%, transparent 55%), var(--bg);
  --blob-op: 0.5;
  --nav-bg: rgba(7, 8, 11, 0.6);
  --nav-bg-2: rgba(7, 8, 11, 0.82);
  --scrim: radial-gradient(65% 60% at 30% 50%, rgba(7,8,11,0.9) 0%, rgba(7,8,11,0.55) 45%, transparent 72%);
  --chip-bg: rgba(255, 255, 255, 0.02);
  --price-bg: linear-gradient(180deg, #0f141d, #0a0d13);
  --price-shadow: 0 40px 80px -50px #000, 0 0 60px -30px var(--ice-glow);
  --mobile-menu-bg: rgba(9, 11, 16, 0.97);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.03rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.intro-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ice); color: #04121C; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }

/* grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 0.6rem 1rem; background: var(--ice); color: #04121C; font-weight: 600; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.75rem); position: relative; }
.shell-narrow { max-width: 760px; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }

/* ---------- living backdrop ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--aurora-bg); }
.aurora-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--blob-op); }
.aurora-blob.a1 { width: 46vw; height: 46vw; left: 55%; top: -10%; background: radial-gradient(circle, rgba(60,150,220,0.30), transparent 68%); animation: drift1 26s var(--ease) infinite alternate; }
.aurora-blob.a2 { width: 40vw; height: 40vw; left: -10%; top: 40%; background: radial-gradient(circle, rgba(111,211,255,0.16), transparent 66%); animation: drift2 32s var(--ease) infinite alternate; }
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(-8%, 8%) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(10%, -6%) scale(1.08); } }

/* ---------- growth-arrow spine (scroll progress, desktop only) ---------- */
.spine { position: fixed; left: clamp(0.85rem, 2.4vw, 2.2rem); top: 5.4rem; bottom: 1.5rem; width: 14px; z-index: 40; pointer-events: none; display: block; }
.spine::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 0; width: 1px; background: repeating-linear-gradient(var(--line) 0 5px, transparent 5px 24px); }
.spine-fill { position: absolute; left: 5px; top: 12px; width: 3px; height: 0; border-radius: 2px; background: linear-gradient(var(--ice), var(--ice-deep)); box-shadow: 0 0 10px var(--ice-glow); transition: height 0.12s linear; }
.spine-arrow { position: absolute; left: 0.5px; top: 0; width: 0; height: 0; border-left: 6.5px solid transparent; border-right: 6.5px solid transparent; border-bottom: 11px solid var(--ice); filter: drop-shadow(0 0 6px var(--ice-glow)); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ice);
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--ice), transparent); }
.section-head { max-width: 40rem; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section-intro { color: var(--ink-soft); margin-top: 1rem; font-size: 1.05rem; }
.grad { background: linear-gradient(120deg, var(--ice-bright), var(--ice-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn {
  --glow: 0 0 0 transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.97rem;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), filter 0.25s var(--ease);
}
.btn-metal { background: var(--chrome-grad); color: var(--btn-ink); box-shadow: 0 8px 24px -12px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn-metal:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--ice-glow), inset 0 1px 0 #fff; filter: brightness(1.05); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.87rem; }
.btn-lg { padding: 1rem 2.1rem; font-size: 1.05rem; }
.btn-wide { width: 100%; }

.link-arrow { font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color 0.2s, border-color 0.2s; }
.link-arrow::after { content: " →"; color: var(--ice); transition: transform 0.2s; display: inline-block; }
.link-arrow:hover { color: var(--ice); border-color: var(--ice); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s; }
.nav.scrolled { border-bottom-color: var(--line); background: var(--nav-bg-2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; }
.wordmark-mark { width: 30px; height: 30px; color: var(--ink); filter: drop-shadow(0 0 6px var(--ice-glow)); transition: filter 0.3s var(--ease); }
.wordmark:hover .wordmark-mark { filter: drop-shadow(0 0 11px var(--ice-glow)); }
.wordmark-text { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.02em; background: var(--chrome-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 0.4rem; position: relative; }
.nav-link { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); padding: 0.5rem 0.9rem; border-radius: 999px; transition: color 0.2s; position: relative; z-index: 1; }
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-indicator { position: absolute; top: 0; left: 0; height: 100%; border-radius: 999px; background: var(--ice-wash); border: 1px solid var(--ice-line); box-shadow: 0 0 18px -4px var(--ice-glow); opacity: 0; transition: transform 0.35s var(--ease), width 0.35s var(--ease), opacity 0.3s; z-index: 0; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--chip-bg); color: var(--ink); cursor: pointer; transition: border-color 0.2s, color 0.2s, background 0.2s; flex-shrink: 0; }
.theme-toggle:hover { border-color: var(--ice); color: var(--ice); }
.theme-toggle svg { width: 17px; height: 17px; }
:root .theme-toggle .ic-sun { display: none; }
:root .theme-toggle .ic-moon { display: block; }
html[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
html[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-0px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; padding: clamp(4rem, 8vw, 6.5rem) 0 3rem; }
.hero > .shell { width: 100%; }
/* manifesto hero — one giant statement, minimal chrome */
.hero-tag { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice); display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: clamp(1.4rem, 3vw, 2.4rem); }
.hero-tag::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, var(--ice), transparent); }
.hero-manifesto { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.9rem, 8.6vw, 7.2rem); line-height: 0.98; letter-spacing: -0.035em; max-width: none; text-wrap: balance; position: relative; }
.hero-manifesto em { font-style: normal; background: linear-gradient(115deg, var(--ice-bright), var(--ice-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* typewriter: sizer reserves the full block (no layout shift); type-out overlays it */
.type-out { display: none; }
.hero-manifesto.js-typing .type-sizer { visibility: hidden; }
.hero-manifesto.js-typing .type-out { display: block; position: absolute; inset: 0; }
.caret { display: inline-block; width: 0.055em; height: 0.78em; margin-left: 0.05em; background: var(--ice); vertical-align: -0.02em; animation: caretBlink 1.05s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
.hero-say { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 40rem; margin-top: clamp(1.5rem, 3vw, 2.3rem); }
.hero-cta { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.4rem); margin-top: clamp(1.7rem, 3vw, 2.4rem); flex-wrap: wrap; }
.hero-meta { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.03em; color: var(--ink-faint); max-width: 34ch; line-height: 1.55; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.24rem); color: var(--ink-soft); max-width: 33rem; margin-top: 1.5rem; }

/* ---------- signature band ---------- */
.signband { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(111,211,255,0.04), transparent); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.signature-line { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2.35rem); line-height: 1.28; max-width: 26ch; letter-spacing: -0.015em; }
.signature-line em { font-style: normal; background: linear-gradient(120deg, var(--ice-bright), var(--ice-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- how it works — rising-line pathway, scroll-driven ---------- */
.pathway { position: relative; margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.pathway-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; pointer-events: none; }
.pathway-track { stroke: var(--line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pathway-flow { stroke: var(--ice); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--ice-glow)); }
.pathway-dot { fill: var(--ice); filter: drop-shadow(0 0 9px var(--ice-glow)); transition: opacity 0.2s; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.6rem); align-items: start; position: relative; z-index: 1; }
.pstep { position: relative; padding-top: 2.4rem; margin-top: calc((3 - var(--i)) * 2.4rem); }
html.js .pstep { opacity: 0.28; transform: translateY(10px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
html.js .pstep.lit { opacity: 1; transform: none; }
.pnode { position: absolute; top: 0; left: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); box-sizing: border-box; z-index: 2; transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }
html.js .pstep.lit .pnode { background: var(--ice); border-color: var(--ice); box-shadow: 0 0 14px var(--ice-glow); }
.pstep .step-num { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 600; color: var(--ice); display: block; line-height: 1; letter-spacing: -0.03em; margin-bottom: 1rem; }
.pstep h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.pstep p { font-size: 0.93rem; color: var(--ink-soft); }

/* ---------- what we build — "One Active Build" ship-queue console ---------- */
/* DEFAULT (no-JS / reduced-motion / mobile): a plain editorial index */
.buildconsole { margin-top: clamp(1rem, 3vw, 2rem); }
.bc-list { list-style: none; }
.bc-item { position: relative; display: grid; grid-template-columns: 4rem 1fr; gap: 0.2rem 1.4rem; align-items: baseline; padding: clamp(1.1rem, 2.2vw, 1.7rem) 0; border-top: 1px solid var(--line); }
.bc-item:last-child { border-bottom: 1px solid var(--line); }
.bc-idx { font-family: var(--font-mono); font-size: 0.9rem; color: var(--ice); grid-row: span 2; }
.bc-of, .bc-status, .bc-rail, .bc-live { display: none; }
.bc-item h3 { font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.02em; }
.bc-desc { font-size: 0.98rem; color: var(--ink-soft); max-width: 42ch; }
.bc-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* CONSOLE MODE (JS + desktop + motion allowed): one active build at a time */
.buildconsole.is-console { position: relative; margin-top: clamp(2rem, 4vw, 3.5rem); }
.buildconsole.is-console .bc-list { position: relative; height: clamp(270px, 33vh, 340px); display: block; overflow: hidden; }
.buildconsole.is-console .bc-item { position: absolute; inset: 0 auto auto 0; width: min(64%, 600px); display: block; border: none; padding: 0; grid-template-columns: none; transition: transform 0.45s var(--ease), opacity 0.45s var(--ease), filter 0.45s var(--ease); will-change: transform, opacity; }
.buildconsole.is-console .bc-idx { display: block; font-size: 0.78rem; letter-spacing: 0.12em; margin-bottom: 0.9rem; }
.buildconsole.is-console .bc-of { display: inline; color: var(--ink-faint); }
.buildconsole.is-console .bc-item h3 { font-family: var(--font-display); font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.02; margin: 0.3rem 0 0.8rem; background: var(--chrome-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.buildconsole.is-console .bc-desc { font-size: 1.05rem; max-width: 38ch; }
.buildconsole.is-console .bc-item.is-active .bc-status { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice); border: 1px solid var(--ice-line); background: var(--ice-wash); padding: 0.32rem 0.75rem; border-radius: 999px; margin-bottom: 1.2rem; }
.buildconsole.is-console .bc-item.is-active.stat-shipped .bc-status { color: var(--ink-faint); border-color: var(--line); background: transparent; }
.bc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 9px var(--ice-glow); flex-shrink: 0; }
.buildconsole.is-console .bc-item.is-active .bc-dot { animation: bcPulse 1.4s var(--ease) infinite; }
@keyframes bcPulse { 50% { opacity: 0.25; } }

/* roles */
.buildconsole.is-console .bc-item.is-active   { transform: translateX(0) scale(1); opacity: 1; filter: none; z-index: 3; }
.buildconsole.is-console .bc-item.is-next      { transform: translateX(82%) scale(0.72); opacity: 0.3; filter: blur(2px); z-index: 2; }
.buildconsole.is-console .bc-item.is-incoming  { transform: translateX(120%) scale(0.6); opacity: 0; z-index: 1; }
.buildconsole.is-console .bc-item.is-shipped   { transform: translateX(-18%) scale(0.96); opacity: 0; filter: blur(5px); z-index: 1; transition-timing-function: cubic-bezier(0.5, 0, 0.75, 0); }
.buildconsole.is-console .bc-item.is-parked    { transform: translateX(120%) scale(0.6); opacity: 0; transition: none; }

/* growth rail */
.buildconsole.is-console .bc-rail { display: block; position: relative; height: 16px; margin-top: clamp(1.6rem, 3vw, 2.6rem); }
.bc-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.bc-fill { position: absolute; left: 0; top: 6px; height: 3px; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--ice-deep), var(--ice)); box-shadow: 0 0 10px var(--ice-glow); transition: width 0.5s var(--ease); }
.bc-tick { position: absolute; top: 1px; width: 14px; height: 14px; transform: translateX(-50%); border-radius: 50%; background: var(--bg); border: 2px solid var(--line); box-sizing: border-box; padding: 0; cursor: pointer; transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; z-index: 1; }
.bc-tick:hover { border-color: var(--ice); }
.bc-tick.lit { background: var(--ice); border-color: var(--ice); box-shadow: 0 0 12px var(--ice-glow); }

/* ---------- offer (why + pricing) ---------- */
.offer-grid { display: grid; grid-template-columns: 1fr 0.82fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.compare { padding: 0; }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2.2rem); padding: clamp(0.9rem, 1.6vw, 1.15rem) 0; border-top: 1px solid var(--line); font-size: 1.02rem; align-items: baseline; }
.compare-row:first-child { border-top: none; }
.compare-row > :nth-child(2) { border-left: 1px solid var(--line); padding-left: clamp(1rem, 3vw, 2rem); }
.compare-head-row { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.compare-head-row span:last-child { color: var(--ice); }
.compare-row .hi { color: var(--ink); font-weight: 600; }
.compare-row span:first-child { color: var(--ink-faint); }
.compare-foot { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-soft); }

/* "The Settle" — comparison resolves once on scroll (JS-gated via .armed/.settling).
   Default (no-JS / reduced-motion): a neutral, unjudged table with ice check-marks. */
.compare-row.data span:first-child { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: transparent; transition: text-decoration-color 0.35s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.compare-row > :nth-child(2) { transition: border-color 0.45s var(--ease); }
.settle-tick { width: 15px; height: 15px; margin-right: 0.5rem; vertical-align: -0.16em; overflow: visible; }
.settle-tick path { fill: none; stroke: var(--ice); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 0; }
.compare.armed .settle-tick path { stroke-dashoffset: 22; }                 /* JS armed: hide ticks instantly (no draw-then-erase flash) */
.compare.settling .compare-row.data span:first-child { text-decoration-color: var(--ink-faint); opacity: 0.5; transform: translateX(-1px); transition-delay: calc(var(--i) * 110ms); }
.compare.settling .compare-row.data > :nth-child(2) { border-left-color: var(--ice); transition-delay: calc(var(--i) * 110ms); }
.compare.settling .settle-tick path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.4s var(--ease); transition-delay: calc(var(--i) * 110ms + 120ms); }

/* ---------- proof / in production (AdvisoryAce case study) ---------- */
.proof-metrics { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2.5rem); margin-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(1.8rem, 3vw, 2.6rem); border-bottom: 1px solid var(--line); }
.proof-metrics li { display: flex; flex-direction: column; gap: 0.5rem; }
.pm-num { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; color: var(--ice); line-height: 1; }
.pm-plus { font-size: 0.6em; vertical-align: 0.12em; }
.pm-arrow { color: var(--ink-faint); font-weight: 400; }
.pm-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.02em; color: var(--ink-soft); line-height: 1.45; }

.proof-cards { margin-top: clamp(1.8rem, 3vw, 2.8rem); }
.proof-card { border-top: 1px solid var(--line); }
.proof-card:last-of-type { border-bottom: 1px solid var(--line); }
.proof-card summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1.3rem; padding: clamp(1.1rem, 2vw, 1.5rem) 0; }
.proof-card summary::-webkit-details-marker { display: none; }
.pc-idx { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ice); }
.pc-title { font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; flex: 1; transition: color 0.2s var(--ease); }
.proof-card summary:hover .pc-title { color: var(--ice); }
.pc-plus { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.pc-plus::before, .pc-plus::after { content: ""; position: absolute; background: var(--ice); transition: transform 0.3s var(--ease); }
.pc-plus::before { left: 0; top: 6px; width: 14px; height: 2px; }
.pc-plus::after { left: 6px; top: 0; width: 2px; height: 14px; }
.proof-card[open] .pc-plus::after { transform: scaleY(0); }
.proof-card > p { padding: 0 0 clamp(1.1rem, 2vw, 1.5rem) 2.1rem; max-width: 62ch; color: var(--ink-soft); font-size: 0.98rem; }
.proof-card[open] > p { animation: fadein 0.4s var(--ease); }

.proof-quote { margin: clamp(2.2rem, 4vw, 3.5rem) 0 0; max-width: 48rem; }
.proof-quote blockquote { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.85rem); font-weight: 500; line-height: 1.35; letter-spacing: -0.015em; margin: 0; }
.proof-quote blockquote::before { content: ""; display: block; width: 2rem; height: 2px; background: var(--ice); box-shadow: 0 0 10px var(--ice-glow); margin-bottom: 1.3rem; }
.proof-quote figcaption { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.05em; color: var(--ink-soft); margin-top: 1.2rem; text-transform: uppercase; }
.proof-more { display: inline-block; margin-top: clamp(1.6rem, 3vw, 2.4rem); }

/* ---------- case-studies page ---------- */
.page-hero { padding: clamp(6.5rem, 13vw, 10rem) 0 clamp(2rem, 5vw, 3.5rem); }
.page-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.03em; line-height: 1.02; max-width: 20ch; margin: 0.5rem 0 0; }
.case { border-top: 1px solid var(--line); }
.case-note { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.03em; color: var(--ink-faint); margin-top: clamp(1.6rem, 3vw, 2.4rem); }

/* ---------- legal pages (privacy / terms / cookies) ---------- */
/* longhand so the sibling `.shell` class keeps supplying horizontal padding — shorthand `padding: X 0 Y` would zero it out on mobile */
.legal { max-width: 780px; margin: 0 auto; padding-top: clamp(6rem, 12vw, 9rem); padding-bottom: clamp(4rem, 8vw, 6rem); }
.legal .updated { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem; }
.legal h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 1.4rem; }
.legal .intro { font-size: 1.1rem; color: var(--ink-soft); max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2.4vw, 1.7rem); letter-spacing: -0.015em; margin: clamp(2.2rem, 4vw, 3rem) 0 0.8rem; padding-top: clamp(2rem, 3vw, 2.4rem); border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal p, .legal li { font-size: 1rem; line-height: 1.7; color: var(--ink); max-width: 68ch; }
.legal p { margin: 0.9rem 0; }
.legal p.muted { color: var(--ink-soft); }
.legal ul, .legal ol { margin: 0.9rem 0 0.9rem 1.4rem; }
.legal li { margin: 0.5rem 0; }
.legal strong { font-weight: 600; }
.legal a { color: var(--ice); border-bottom: 1px solid var(--ice-line); transition: border-color 0.2s var(--ease); }
.legal a:hover { border-bottom-color: var(--ice); }
.legal .contact { padding: 1.3rem 1.5rem; margin-top: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.9rem; }


.price-card { border: none; border-radius: 0; padding: 0; background: none; box-shadow: none; }
.price-badge { display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ice); background: var(--ice-wash); border: 1px solid var(--ice-line); padding: 0.32rem 0.75rem; border-radius: 999px; margin-bottom: 1.3rem; }
.price { font-family: var(--font-display); font-size: clamp(3rem, 5vw, 3.9rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; background: var(--chrome-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-currency { font-size: 0.5em; vertical-align: 0.5em; }
.price-period { font-family: var(--font-body); -webkit-text-fill-color: var(--ink-faint); font-size: 1rem; font-weight: 500; margin-left: 0.3rem; }
.price-note { margin-top: 0.8rem; font-size: 0.92rem; color: var(--ink-soft); }
.price-list { list-style: none; margin: 1.4rem 0; }
.price-list li { padding: 0.55rem 0 0.55rem 1.7rem; border-top: 1px solid var(--line-soft); font-size: 0.94rem; position: relative; }
.price-list li::before { content: "✓"; position: absolute; left: 0.1rem; color: var(--ice); font-family: var(--font-mono); }
.price-anchors { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.price-anchors-head { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.9rem; }
.anchor-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; font-size: 0.9rem; color: var(--ink-soft); }
.anchor-num { font-family: var(--font-mono); color: var(--ice); white-space: nowrap; }
.price-fineprint { margin-top: 1rem; font-size: 0.8rem; color: var(--ink-faint); line-height: 1.6; }

/* ---------- faq ---------- */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.2rem 0; font-weight: 600; font-size: 1.03rem; font-family: var(--font-display); transition: color 0.2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.3rem; color: var(--ice); transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--ice); }
.faq-item p { padding: 0 0 1.35rem; color: var(--ink-soft); max-width: 62ch; font-size: 0.96rem; }
.faq-item[open] p { animation: fadein 0.4s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- final ---------- */
.final { text-align: center; }
.final-statement { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; letter-spacing: -0.025em; }
.final-sub { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.2rem, 2.4vw, 1.8rem); margin-top: 0.6rem; background: linear-gradient(120deg, var(--ice-bright), var(--ice-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.final-actions { margin-top: 2.4rem; }
.final-note { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-top: 1.5rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 2.2rem 0; font-size: 0.87rem; color: var(--ink-soft); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.wordmark-foot { font-family: var(--font-display); font-weight: 700; background: var(--chrome-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-meta a { border-bottom: 1px solid var(--line); transition: color 0.2s, border-color 0.2s; }
.footer-meta a:hover { color: var(--ice); border-color: var(--ice); }

/* ---------- intro overlay ---------- */
/* IMPORTANT: use the #intro id, not .intro — because legal pages use <p class="intro">
   for their lead paragraph, and .intro alone collided with that (fixed+black overlay). */
#intro { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; align-items: center; justify-content: center; }
#intro.closing { opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none; }
.intro-video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .d-1 { transition-delay: 0.08s; }
html.js .d-2 { transition-delay: 0.16s; }
html.js .d-3 { transition-delay: 0.24s; }
html.js .d-4 { transition-delay: 0.32s; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { grid-template-columns: 1fr; }
  /* metrics 4-col is cramped under 960 → 2-col with room to breathe */
  .proof-metrics { grid-template-columns: repeat(2, 1fr); row-gap: 1.8rem; }

  /* -- Pathway (mobile): rotate to a vertical timeline. Line runs top→bottom
     down the left; a dot climbs it as you scroll. Same JS engine — it just
     builds the SVG path from wherever the .pnode elements actually sit. */
  .steps { grid-template-columns: 1fr; row-gap: 2.4rem; padding-left: 42px; position: relative; }
  .pstep { margin-top: 0; padding-top: 0.35rem; border-top: none; }
  .pnode { top: 0.85rem; left: -32px; }
  html.js .pstep { opacity: 0.28; transform: translateY(10px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
  html.js .pstep.lit { opacity: 1; transform: none; }

  /* -- Build console (mobile): items full-width, transitions become vertical
     fades (translateY) so the queue effect works on a narrow portrait screen. */
  .buildconsole.is-console .bc-list { height: clamp(240px, 42vh, 320px); }
  .buildconsole.is-console .bc-item { width: 100%; }
  .buildconsole.is-console .bc-item h3 { font-size: clamp(1.6rem, 5.5vw, 2.3rem); }
  .buildconsole.is-console .bc-item.is-next     { transform: translateY(30px) scale(0.98); opacity: 0; filter: none; }
  .buildconsole.is-console .bc-item.is-incoming { transform: translateY(30px) scale(0.98); opacity: 0; }
  .buildconsole.is-console .bc-item.is-shipped  { transform: translateY(-30px) scale(0.98); opacity: 0; filter: none; }
  .buildconsole.is-console .bc-item.is-parked   { transform: translateY(30px) scale(0.98); opacity: 0; }

  /* -- Spine (mobile+tablet): thinner, closer to the edge so it doesn't
     compete with content */
  .spine { left: 6px; width: 10px; top: 4.8rem; }
  .spine::before { left: 4px; }
  .spine-fill { left: 3.5px; width: 3px; }
  .spine-arrow { border-left-width: 5px; border-right-width: 5px; border-bottom-width: 9px; }
}
/* ---------- mobile menu system ---------- */
/* The theme row + scrim are injected into every page by the nav() script, so they
   exist in the DOM at all widths; these two base rules keep them invisible until
   the mobile menu opens. */
.nav-theme { display: none; }
.nav-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(6, 8, 12, 0.44); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.32s var(--ease), visibility 0s linear 0.32s; }
.nav-scrim.show { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.32s var(--ease); }
body.nav-open { overflow: hidden; }
/* theme icon swap for the in-menu control (mirrors the .theme-toggle rules) */
:root .nav-theme .ic-sun { display: none; }
:root .nav-theme .ic-moon { display: block; }
html[data-theme="dark"] .nav-theme .ic-sun { display: block; }
html[data-theme="dark"] .nav-theme .ic-moon { display: none; }

/* nav collapses at 900 so tablets get the mobile menu too */
@media (max-width: 900px) {
  .nav-indicator { display: none; }
  .nav-toggle { display: flex; }
  /* the bar theme toggle is hidden < 900px; the menu carries an .nav-theme row instead */
  .theme-toggle { display: none; }

  /* Menu = a floating panel that drops from under the header. Robust hidden state
     (visibility+opacity) — the old translateY(-120%) leaked because the panel is
     anchored at top:4.5rem, so -120% of its own height never fully cleared it,
     and the 97%-opaque panel sat on top of the wordmark. */
  .nav-links {
    position: fixed; top: 4.35rem; left: 0.6rem; right: 0.6rem;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.4rem 1.15rem 1.2rem;
    background: var(--mobile-menu-bg);
    -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 34px 66px -30px rgba(0,0,0,0.55), 0 0 0 1px var(--line-soft);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-12px) scale(0.985); transform-origin: 85% 0;
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.3s;
  }
  .nav-links.open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.44s var(--ease), visibility 0s;
  }

  .nav-link {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 1.05rem 0.4rem;
    border-radius: 0; border-bottom: 1px solid var(--line-soft);
    font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em;
    color: var(--ink);
    opacity: 0; transform: translateY(7px);
    transition: opacity 0.42s var(--ease), transform 0.42s var(--ease), color 0.2s;
  }
  .nav-link::after { content: "\2192"; margin-left: auto; color: var(--ice); opacity: 0.5; font-family: var(--font-mono); font-size: 0.95em; transition: transform 0.25s var(--ease), opacity 0.2s; }
  .nav-link:hover::after, .nav-link:active::after { opacity: 1; transform: translateX(3px); }
  .nav-link.active { color: var(--ice); }
  .nav-links.open .nav-link { opacity: 1; transform: none; }
  .nav-links.open .nav-link:nth-child(1) { transition-delay: 0.05s; }
  .nav-links.open .nav-link:nth-child(2) { transition-delay: 0.10s; }
  .nav-links.open .nav-link:nth-child(3) { transition-delay: 0.15s; }

  /* theme row inside the menu (injected by JS) */
  .nav-theme {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; margin-top: 0.5rem; padding: 0.95rem 0.4rem 0.3rem;
    background: none; border: 0; cursor: pointer; text-align: left;
    font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-soft);
    opacity: 0; transform: translateY(7px);
    transition: opacity 0.42s var(--ease) 0.18s, transform 0.42s var(--ease) 0.18s, color 0.2s;
  }
  .nav-links.open .nav-theme { opacity: 1; transform: none; }
  .nav-theme:hover { color: var(--ice); }
  .nav-theme-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 26px; border-radius: 999px; border: 1px solid var(--line); background: var(--chip-bg); color: var(--ice); flex-shrink: 0; transition: border-color 0.2s; }
  .nav-theme:hover .nav-theme-ic { border-color: var(--ice); }
  .nav-theme-ic svg { width: 15px; height: 15px; }
}
@media (max-width: 680px) {
  .steps { grid-template-columns: 1fr; }
  .build-row { grid-template-columns: 2.2rem 1fr; gap: 0.4rem 1rem; }
  .build-row p { grid-column: 1 / -1; }
  .compare-row { gap: 0.5rem 1rem; }
  .hero { min-height: auto; padding-top: 3rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  /* Readability on small screens — small mono labels were 11.5–12px, hard to read */
  .eyebrow, .hero-tag { font-size: 0.88rem; letter-spacing: 0.12em; }
  .hero-meta { font-size: 0.86rem; }
  .pm-label, .final-note, .price-anchors-head, .compare-head, .compare-foot, .footer-meta, .case-note { font-size: 0.85rem; }
  /* Intro video: 1920x1080 with cover crops ~555px each side on portrait phones.
     Contain shows the whole animation; letterboxes blend with the black overlay. */
  .intro-video { object-fit: contain; }
}
/* Tap targets — WCAG 2.5.5 minimum 44x44 for interactive controls.
   Applies on touch devices OR narrow viewports so real phones + resize both get it. */
@media (pointer: coarse), (max-width: 680px) {
  .theme-toggle { width: 44px; height: 44px; }
  .nav-toggle { min-width: 44px; min-height: 44px; padding: 10px 12px; justify-content: center; }
  .footer-meta a { display: inline-block; padding: 12px 6px; }
  .link-arrow { display: inline-block; padding: 10px 0; }
  .faq-item summary { padding: 1.4rem 0; }
  .proof-card summary { padding: 1.35rem 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .aurora-blob { animation: none; }
  * { scroll-behavior: auto; }
}
