:root {
  --bg: #070d1a;
  --bg2: #0a1224;
  --surface: #111c33;
  --surface2: #16233f;
  --line: #1c2b4a;
  --ink: #e6ecf5;
  --muted: #8aa0c0;
  --muted2: #5b7196;
  --accent: #2f9be0;
  --accent2: #7cc7ff;
  --gold: #c9962f;
  --good: #39d98a;
  --max: 1120px;
  --radius: 18px;
  --nav-h: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent2); }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav .wrap { display: flex; align-items: center; height: 100%; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -0.01em; font-size: 19px; }
.brand svg { width: 28px; height: 28px; }
.brand b { color: var(--accent); font-weight: 800; }
.nav ul { display: flex; gap: 2px; margin-left: auto; }
.nav li a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav li a:hover, .nav li a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.nav li a.cta { background: var(--accent); color: #041022; }
.nav li a.cta:hover { background: var(--accent2); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 8px 10px; font: inherit; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav ul { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; padding: 10px 16px 16px; background: var(--bg2); border-bottom: 1px solid var(--line); }
  .nav ul.open { display: flex; }
  .nav li a { padding: 12px 14px; font-size: 16px; }
}

/* ---------- type + blocks */
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.display { font-size: clamp(38px, 7vw, 84px); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
.h2 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
.h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.lede { font-size: clamp(18px, 2.1vw, 22px); color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted2); }
section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
section + section { border-top: 1px solid var(--line); }
.head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); justify-items: start; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px; font-weight: 700;
  text-decoration: none; background: var(--accent); color: #041022; border: 0; font: inherit; font-weight: 700; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent2); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--surface); }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent2); }
.pill.gold { background: color-mix(in srgb, var(--gold) 20%, transparent); color: #f0c36a; }

/* ---------- reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; } .reveal[data-delay="2"] { transition-delay: .2s; } .reveal[data-delay="3"] { transition-delay: .3s; }

/* ---------- pinned hero (index)
   One sticky stage, three statements absolutely positioned in the SAME slot, each shown only
   inside its own non-overlapping window of the scroll progress, so nothing collides. */
.pin { height: 340vh; position: relative; }
.pin .stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; display: grid; place-items: center; }
.pin .glow {
  position: absolute; inset: -20%; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 55%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  transform: scale(var(--glow, 1)); transition: transform .2s linear;
}
.pin .statement {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 22px;
  opacity: 0; transform: translateY(30px) scale(.97); will-change: opacity, transform; pointer-events: none;
}
.pin .statement > div { max-width: 900px; display: grid; gap: 18px; justify-items: center; }
.pin .statement .display { text-wrap: balance; }
.pin .statement .lede { text-align: center; }
.pin .progress { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; gap: 8px; }
.pin .progress i { width: 26px; height: 3px; border-radius: 3px; background: var(--line); display: block; }
.pin .progress i.on { background: var(--accent); }
.pin .hint { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); color: var(--muted2); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pin { height: auto; }
  .pin .stage { position: static; height: auto; display: grid; gap: 48px; padding: 120px 0 60px; }
  .pin .statement { position: static; opacity: 1; transform: none; pointer-events: auto; }
  .pin .progress, .pin .hint { display: none; }
}

/* ---------- stats */
.stats { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.stat { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); }
.stat .n { font-size: clamp(38px, 5vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: #fff; }
.stat .n span { color: var(--accent); }
.stat .l { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- problems */
.problems { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: p; }
.problem { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); position: relative; }
.problem::before { counter-increment: p; content: "0" counter(p); font-weight: 800; color: var(--accent); letter-spacing: .1em; font-size: 13px; }
.problem h3 { margin: 10px 0 8px; font-size: 20px; }
.problem p { color: var(--muted); font-size: 15px; }

/* ---------- feature rows */
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature { padding: 26px; border-radius: var(--radius); background: var(--bg2); border: 1px solid var(--line); }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent2); margin-bottom: 14px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- pillars (chapters: graded / slabbed / microchipped) */
.pillars { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.pillar { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface), var(--bg2)); min-height: 220px; display: grid; align-content: end; gap: 8px; }
.pillar .k { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.pillar h3 { font-size: 22px; }
.pillar p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- CTA band */
.band { border-radius: 24px; padding: clamp(32px, 5vw, 64px); background: radial-gradient(80% 120% at 10% 0%, color-mix(in srgb, var(--accent) 28%, transparent), var(--surface) 60%); border: 1px solid var(--line); display: grid; gap: 18px; justify-items: start; }

/* ---------- process (specgrade) */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.process .visual { position: sticky; top: calc(var(--nav-h) + 24px); aspect-ratio: 4 / 4.4; border-radius: 24px; border: 1px solid var(--line); background: var(--bg2); overflow: hidden; display: grid; place-items: center; }
.process .visual .frame { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .5s ease, transform .5s ease; transform: scale(.98); padding: 24px; }
.process .visual .frame.on { opacity: 1; transform: none; }
.process .visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.process .steps { display: grid; gap: 14vh; padding: 8vh 0 36vh; }   /* bottom room keeps the visual pinned while the last step is centred */
.process .step { opacity: .35; transition: opacity .4s ease; }
.process .step.on { opacity: 1; }
.process .step .num { color: var(--accent); font-weight: 800; letter-spacing: .12em; font-size: 13px; }
.process .step h3 { font-size: 28px; margin: 8px 0 10px; letter-spacing: -0.02em; }
.process .step p { color: var(--muted); }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; }
  .process .visual { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .process .steps { gap: 40px; padding: 24px 0 0; }
  .process .step { opacity: 1; }
}

/* real card inside the process visual */
.realcard { position: relative; height: 90%; aspect-ratio: 742 / 1024; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.55); }
.process .visual .realcard img { position: static; width: 100%; height: 100%; object-fit: cover; }
.legend { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 9px 12px; border-radius: 10px; background: rgba(7,13,26,.86); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.process .visual .slab img { position: static; }

/* mock card + scan + report + slab used inside the process visual */
.mockcard { width: min(58%, 250px); aspect-ratio: 2.5 / 3.5; border-radius: 12px; background: linear-gradient(160deg, #1f3a63, #0d1a33); border: 6px solid #dfe7f3; box-shadow: 0 30px 60px rgba(0,0,0,.5); position: relative; overflow: hidden; }
.mockcard::after { content: ""; position: absolute; inset: 12% 14% 30%; border-radius: 6px; background: linear-gradient(135deg, #2f9be0, #0b2b52); opacity: .9; }
.mockcard .name { position: absolute; left: 12%; right: 12%; bottom: 12%; height: 12%; border-radius: 4px; background: #e6ecf5; }
.scanline { position: absolute; left: 0; right: 0; height: 3px; background: var(--accent2); box-shadow: 0 0 18px var(--accent2); animation: scan 2.4s linear infinite; }
@keyframes scan { from { top: 0 } to { top: 100% } }
.lights i { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 22px 8px rgba(124,199,255,.6); animation: blink 2s ease-in-out infinite; }
.lights i:nth-child(1) { top: 12%; left: 12%; } .lights i:nth-child(2) { top: 12%; right: 12%; animation-delay: .5s; }
.lights i:nth-child(3) { bottom: 12%; left: 12%; animation-delay: 1s; } .lights i:nth-child(4) { bottom: 12%; right: 12%; animation-delay: 1.5s; }
@keyframes blink { 0%, 100% { opacity: .35 } 50% { opacity: 1 } }
.report { width: 100%; max-width: 360px; display: grid; gap: 12px; }
.report .row { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 12px; font-size: 14px; }
.report .bar { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; }
.report .bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 6px; transform-origin: left; animation: grow 1.2s ease both; }
@keyframes grow { from { transform: scaleX(0) } }
.report .g { font-weight: 800; text-align: right; }
.report .total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; font-weight: 800; }
.report .total b { color: var(--good); font-size: 22px; }
.slab { width: min(66%, 290px); aspect-ratio: 2.9 / 4.4; border-radius: 16px; background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.35); box-shadow: 0 30px 60px rgba(0,0,0,.5), inset 0 0 40px rgba(124,199,255,.15); position: relative; display: grid; grid-template-rows: 20% 1fr; padding: 6%; gap: 6%; }
.slab .label { background: #fff; color: #0b1a33; border-radius: 6px; padding: 6px 10px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 800; }
.slab .label b { font-size: 20px; color: var(--accent); }
.slab .label .chip { width: 22px; height: 16px; border-radius: 3px; background: linear-gradient(135deg, #c9962f, #f0c36a); box-shadow: 0 0 14px rgba(240,195,106,.8); animation: blink 1.6s ease-in-out infinite; }
.slab .mockcard { width: 100%; height: 100%; aspect-ratio: auto; border-width: 4px; }

/* ---------- team */
.team { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.member { text-align: center; padding: 26px 18px; border-radius: var(--radius); border: 1px dashed var(--line); background: var(--bg2); }
.member .avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; background: var(--surface2); display: grid; place-items: center; color: var(--muted2); font-weight: 800; }
.member h3 { font-size: 17px; } .member p { color: var(--muted2); font-size: 14px; }

/* ---------- vault (specvault) */
.vault-scene { height: 260vh; position: relative; }
.vault-scene .stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; display: grid; place-items: center; perspective: 1200px; }
.vault { position: relative; width: min(70vmin, 520px); aspect-ratio: 1; transform: rotateY(var(--ry, 0deg)) scale(var(--vs, 1)); transition: transform .12s linear; transform-style: preserve-3d; }
.vault .door { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #35507a, #0c1730 70%); border: 10px solid #24365b; box-shadow: 0 40px 100px rgba(0,0,0,.6), inset 0 0 60px rgba(0,0,0,.6); }
.vault .ring { position: absolute; inset: 14%; border-radius: 50%; border: 8px dashed #4a659a; animation: spin 24s linear infinite; }
.vault .ring2 { position: absolute; inset: 30%; border-radius: 50%; border: 6px solid #2f9be0; opacity: .6; animation: spin 14s linear infinite reverse; }
.vault .hub { position: absolute; inset: 42%; border-radius: 50%; background: radial-gradient(circle, #7cc7ff, #2f9be0 60%, #0b2b52); box-shadow: 0 0 40px rgba(47,155,224,.7); }
@keyframes spin { to { transform: rotate(360deg) } }
.vault .door, .vault .ring, .vault .ring2, .vault .hub { opacity: var(--door, 1); transition: opacity .2s linear; }
.vault .inside { position: absolute; inset: 0; display: grid; place-items: center; opacity: calc(1 - var(--door, 1)); }
.vault .inside .slab { width: 46%; transform: scale(var(--cs, 1)); }
.slabs { position: absolute; inset: 0; pointer-events: none; }
.slabs .s { position: absolute; width: 54px; height: 82px; border-radius: 7px; background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.35); animation: drift var(--d, 9s) linear infinite; opacity: var(--door, 1); }
@keyframes drift { from { transform: translate(var(--x, 0), 110vh) rotate(0deg) } to { transform: translate(var(--x, 0), -20vh) rotate(var(--r, 180deg)) } }
.vault-caption { position: absolute; bottom: 8vh; left: 0; right: 0; text-align: center; padding: 0 22px; opacity: var(--cap, 1); }
@media (prefers-reduced-motion: reduce) {
  .vault-scene { height: auto; } .vault-scene .stage { position: static; height: auto; padding: 120px 0 40px; }
  .vault { transform: none !important; } .vault .ring, .vault .ring2, .slabs .s, .scanline, .lights i, .slab .label .chip { animation: none; }
}

/* ---------- forms */
form.wl { display: grid; gap: 14px; }
form.wl label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
form.wl input, form.wl select, form.wl textarea { font: inherit; color: var(--ink); background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; }
form.wl input:focus, form.wl select:focus, form.wl textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); border-color: var(--accent); }
form.wl .two { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { form.wl .two { grid-template-columns: 1fr; } }
form.wl .hp { position: absolute; left: -9999px; }
.msg { border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.msg.ok { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.msg.err { background: color-mix(in srgb, #e05a5a 18%, transparent); color: #ff9c9c; }

/* ---------- footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted2); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
.foot-note { max-width: 70ch; }

/* SpecBox Pro film + loop (Oct 2026) */
.hero-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-loop { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.hero-loop video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .hero-split { grid-template-columns: 1fr; gap: 28px; } }
.film { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; box-shadow: 0 40px 100px rgba(0,0,0,.55); }
.film video { width: 100%; height: 100%; display: block; background: #000; }
.film-play { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(7,13,26,0) 40%, rgba(7,13,26,.55)); color: #fff; font: inherit; font-weight: 600; }
.film-play svg { width: clamp(64px, 9vw, 104px); height: auto; transition: transform .2s ease; }
.film-play:hover svg, .film-play:focus-visible svg { transform: scale(1.06); }
.film-play span { font-size: 14px; letter-spacing: .06em; color: var(--accent2); text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.film.playing .film-play { display: none; }
.process .visual .film-frame { padding: 0; }
.process .visual .film-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.process .visual .film-frame .legend { position: absolute; left: 16px; right: 16px; bottom: 14px; }
.measure { margin: 0 auto 24px; max-width: 620px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.measure img { width: 100%; display: block; height: auto; }
.measure figcaption { padding: 12px 18px; font-size: 13px; color: var(--muted); background: var(--bg2); border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .hero-loop video { display: none; } .hero-loop { background: #000 url(assets/film/loop-poster.jpg) center / cover; } }
