/* =========================================================
   HF-1 / ZEVOXION
   ========================================================= */
:root {
  --k: #000;
  --w: #f4f4f5;
  --g1: #9a9aa1;
  --g2: #5d5d64;
  --line: rgba(255,255,255,.12);
  --pad: clamp(20px, 4.5vw, 72px);
  --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--k); color: var(--w); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.booting { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
::selection { background: #fff; color: #000; }

/* ---------- BOOT ---------- */
.boot { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; transition: opacity .8s var(--ease), visibility .8s; }
.boot.done { opacity: 0; visibility: hidden; }
.boot-inner { width: min(520px, 84vw); }
.boot-logo { width: 100%; margin-bottom: 34px; opacity: .95; }
.boot-log { min-height: 150px; color: var(--g1); line-height: 1.9; font-size: 11px; }
.boot-log div:last-child { color: #fff; }
.boot-log .ok { float: right; color: #fff; }
.boot-bar { height: 1px; background: rgba(255,255,255,.15); margin-top: 18px; }
.boot-bar i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .15s linear; }

/* ---------- FIXED LAYERS ---------- */
.layer-traces { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.bg-word {
  position: fixed; z-index: 0; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-weight: 800; font-size: clamp(160px, 34vw, 560px); letter-spacing: -.06em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.09); pointer-events: none; user-select: none; white-space: nowrap;
}
.layer-gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; touch-action: pan-y; cursor: grab; }
.layer-gl:active { cursor: grabbing; }

/* viewfinder corners */
.frame { position: fixed; inset: 14px; z-index: 6; pointer-events: none; }
.frame i { position: absolute; width: 18px; height: 18px; border-color: rgba(255,255,255,.4); border-style: solid; border-width: 0; }
.frame i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.frame i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* ---------- TOP BAR ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 7; display: flex; justify-content: space-between; align-items: center; padding: 30px calc(var(--pad) + 4px) 40px; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,.9) 30%, rgba(0,0,0,0)); }
.top > * { pointer-events: auto; }
.logo img { height: 17px; display: block; }
.top-right { display: flex; gap: 26px; align-items: center; color: var(--g1); }
.live { display: flex; align-items: center; gap: 10px; }
.live b { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.count { color: #fff; }

/* ---------- RAIL ---------- */
.rail { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 7; display: flex; flex-direction: column; gap: 14px; }
.rail a { position: relative; display: block; width: 18px; height: 14px; }
.rail a::before { content: ""; position: absolute; right: 0; top: 50%; height: 1px; width: 10px; background: rgba(255,255,255,.35); transition: width .4s var(--ease), background .3s; }
.rail a.on::before, .rail a:hover::before { width: 28px; background: #fff; }
.rail a::after { content: attr(data-label); position: absolute; right: 40px; top: 50%; transform: translate(6px, -50%); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .3s, transform .3s; }
.rail a:hover::after { opacity: 1; transform: translate(0, -50%); }

/* ---------- SHARED ---------- */
main { position: relative; }
.kicker { color: var(--g1); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
h1, h2 { font-weight: 300; letter-spacing: -.045em; line-height: .98; }
h2 { font-size: clamp(34px, 4.6vw, 72px); max-width: 15ch; }
.lead { color: var(--g1); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; margin-top: 22px; max-width: 46ch; font-weight: 300; }
.fine { color: var(--g2); font-size: 10px; }
.cta { display: inline-flex; align-items: center; gap: 18px; padding: 15px 18px 15px 22px; background: #fff; color: #000; font-size: 14px; font-weight: 500; position: relative; overflow: hidden; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); transition: background .3s; }
.cta i { font-style: normal; font-family: var(--mono); font-size: 12px; transition: transform .35s var(--ease); }
.cta:hover i { transform: translateX(4px); }
.cta:hover { background: #d4d4d8; }
.cta.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.cta.ghost:hover { background: rgba(255,255,255,.08); }
.rv { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100vh; min-height: 680px; padding: 0 var(--pad); display: flex; align-items: center; pointer-events: none; }
.hero-copy { position: relative; z-index: 2; max-width: 600px; }
.hero h1 { font-size: clamp(52px, 7vw, 112px); white-space: nowrap; }
.outline { color: transparent; -webkit-text-stroke: 1.2px #fff; font-weight: 500; }
.hero-sub { margin-top: 26px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--g1); font-weight: 300; max-width: 42ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 38px; flex-wrap: wrap; pointer-events: auto; }
.hero-copy > * { opacity: 0; transform: translateY(24px); }
body.ready .hero-copy > * { animation: up 1.1s var(--ease) forwards; }
body.ready .hero-copy > *:nth-child(2) { animation-delay: .08s; }
body.ready .hero-copy > *:nth-child(3) { animation-delay: .16s; }
body.ready .hero-copy > *:nth-child(4) { animation-delay: .24s; }
@keyframes up { to { opacity: 1; transform: none; } }
.hud { position: absolute; z-index: 2; left: var(--pad); bottom: 44px; display: flex; gap: 34px; color: var(--g2); }
.hud div { display: flex; flex-direction: column; gap: 6px; }
.hud b { color: #fff; font-weight: 400; font-size: 12px; font-variant-numeric: tabular-nums; }
.hint { position: absolute; z-index: 2; right: calc(var(--pad) + 40px); bottom: 48px; color: var(--g2); }

/* ---------- ANATOMY ---------- */
.anatomy { position: relative; height: 420vh; pointer-events: none; }
.anat-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; z-index: 2; }
.anat-head { position: absolute; z-index: 2; left: var(--pad); top: 110px; }
.anat-head h2 { font-size: clamp(28px, 3.4vw, 52px); max-width: 12ch; }
.anat-steps { position: absolute; z-index: 2; left: var(--pad); bottom: 54px; list-style: none; display: grid; gap: 10px; color: var(--g2); }
.anat-steps li { display: flex; gap: 14px; transition: color .4s; }
.anat-steps li b { font-weight: 400; }
.anat-steps li.on { color: #fff; }
.anat-steps li.on::after { content: "◂"; margin-left: 4px; }
.anat-meter { position: absolute; z-index: 2; right: calc(var(--pad) + 40px); bottom: 54px; color: var(--g1); text-align: right; }
.anat-meter span { color: #fff; font-variant-numeric: tabular-nums; }
.meter { width: 180px; height: 1px; background: rgba(255,255,255,.18); margin-top: 12px; margin-left: auto; }
.meter i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.tags { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; will-change: transform, opacity; }
.tag-in { position: absolute; top: 0; transform: translateY(-50%); width: 230px; }
.tag.r .tag-in { left: 0; }
.tag.l .tag-in { right: 0; text-align: right; }
.tag-in i { display: none; }
.tag-in p { color: var(--g1); font-size: 10px; margin-bottom: 6px; }
.tag-in strong { display: block; font-weight: 500; font-size: 15px; letter-spacing: -.01em; }
.tag-in span { display: block; color: var(--g1); font-size: 13px; line-height: 1.4; margin-top: 4px; font-weight: 300; }

/* leader lines from each layer to its label */
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.leaders line { stroke: rgba(255,255,255,.55); stroke-width: 1; }
.leaders circle { fill: #fff; }
.leaders .halo { fill: none; stroke: rgba(255,255,255,.35); }
@media (min-width: 901px) { .anat-steps { display: none; } }

/* ---------- PANELS (cover the 3D layer) ---------- */
.panel { position: relative; z-index: 3; background: #000; padding: clamp(110px, 14vw, 190px) var(--pad); border-top: 1px solid var(--line); }
.panel-head { margin-bottom: clamp(50px, 6vw, 90px); }

/* ---------- DIE MAP ---------- */
.die-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.die-stage { position: relative; }
.die-svg { width: 100%; display: block; }
.die-edge { fill: #050506; stroke: rgba(255,255,255,.5); stroke-width: 1; }
.blk rect { fill: rgba(255,255,255,.025); stroke: rgba(255,255,255,.28); stroke-width: 1; transition: fill .3s, stroke .3s; }
.blk text { fill: var(--g1); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-anchor: middle; dominant-baseline: middle; transition: fill .3s; pointer-events: none; }
.blk text.vt { writing-mode: vertical-rl; }
.blk { cursor: pointer; }
.blk:hover rect, .blk.on rect { fill: rgba(255,255,255,.12); stroke: #fff; }
.blk:hover text, .blk.on text { fill: #fff; }
.blk .tensor-bg { fill: rgba(255,255,255,.01); }
.tile { fill: rgba(255,255,255,.05) !important; stroke: rgba(255,255,255,.22) !important; animation: flick 3.2s infinite; animation-delay: var(--dl); }
@keyframes flick { 0%, 86%, 100% { fill: rgba(255,255,255,.05); } 90% { fill: rgba(255,255,255,.55); } }
.blk.on .tile, .blk:hover .tile { stroke: rgba(255,255,255,.6) !important; }
.sweep { animation: sweep 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes sweep { 0% { transform: translateX(0); } 100% { transform: translateX(800px); } }
.corner-label { position: absolute; left: 0; bottom: -28px; color: var(--g2); }
.die-info { border-top: 1px solid rgba(255,255,255,.5); padding-top: 26px; }
.di-k { color: var(--g1); }
.die-info h3 { font-size: clamp(30px, 3vw, 46px); font-weight: 300; letter-spacing: -.04em; margin: 12px 0 14px; }
.die-info > p:not(.mono) { color: var(--g1); line-height: 1.6; font-weight: 300; max-width: 40ch; }
.di-stat { margin-top: 34px; display: flex; flex-direction: column; gap: 8px; }
.di-stat .mono { color: var(--g2); }
.di-stat b { font-size: clamp(36px, 4vw, 60px); font-weight: 200; letter-spacing: -.04em; }
.di-list { list-style: none; margin-top: 28px; display: grid; gap: 10px; color: var(--g1); }
.di-list li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.di-list li b { color: #fff; font-weight: 400; }

/* ---------- SPEED DEMO ---------- */
.race { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lane { border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; min-height: 330px; background: rgba(255,255,255,.015); }
.lane.hf { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.035); }
.lane-top { display: flex; justify-content: space-between; gap: 10px; color: var(--g1); padding-bottom: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.lane.hf .lane-top > span:first-child { color: #fff; }
.lane-stats b { color: #fff; font-weight: 400; font-variant-numeric: tabular-nums; }
.lane-out { flex: 1; padding: 20px 0; font-size: 17px; line-height: 1.6; font-weight: 300; color: #e4e4e7; }
.lane-out .caret { display: inline-block; width: 8px; height: 1.05em; background: #fff; vertical-align: text-bottom; margin-left: 2px; animation: pulse .9s infinite; }
.lane-bar { height: 2px; background: rgba(255,255,255,.08); }
.lane-bar i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.race-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 20px; flex-wrap: wrap; }

/* ---------- CARD DRAWING ---------- */
.draw-wrap { position: relative; }
.card-svg { width: 100%; display: block; overflow: visible; }
.card-svg .d, .card-svg .vents line, .card-svg .fins line, .card-svg .fingers rect { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1.2; }
.card-svg .d { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease); }
.card-svg .d.thick { stroke: #fff; stroke-width: 1.6; }
.card-svg .d.dash { stroke-dasharray: 1; }
.card-svg.in .d { stroke-dashoffset: 0; }
.card-svg .vents line, .card-svg .fins line { stroke: rgba(255,255,255,.25); opacity: 0; transition: opacity 1.2s 1s; }
.card-svg .fingers rect { stroke: rgba(255,255,255,.6); opacity: 0; transition: opacity .8s 1.4s; }
.card-svg.in .vents line, .card-svg.in .fins line, .card-svg.in .fingers rect { opacity: 1; }
.card-svg text { fill: var(--g1); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-anchor: middle; }
.card-svg text.vt { writing-mode: vertical-rl; }
.card-svg .chip-label { fill: #fff; font-size: 14px; dominant-baseline: middle; }
.card-svg .dim line { stroke: rgba(255,255,255,.45); }
.hot { position: absolute; width: 30px; height: 30px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; z-index: 2; }
.hot span { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #000; font-family: var(--mono); font-size: 14px; display: grid; place-items: center; transition: transform .3s var(--ease); }
.hot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); animation: ring 2.2s infinite; }
@keyframes ring { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.hot:hover span, .hot.open span { transform: rotate(45deg) scale(1.1); }
.tip { position: absolute; z-index: 3; padding: 14px 16px; background: #fff; color: #000; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 14px; line-height: 1.45; pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.tip.on { opacity: 1; transform: none; }

/* ---------- SPECS ---------- */
.big-specs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.5); }
.bs { padding: 30px 24px 34px 0; }
.bs + .bs { padding-left: 24px; border-left: 1px solid var(--line); }
.bs b { font-size: clamp(48px, 6vw, 96px); font-weight: 200; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.bs .u { font-family: var(--mono); font-size: 13px; margin-left: 8px; color: var(--g1); }
.bs p { color: var(--g2); margin-top: 10px; }
.sheet { margin-top: 70px; border-top: 1px solid var(--line); }
.sheet div { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: background .3s, padding .3s; }
.sheet div:hover { background: rgba(255,255,255,.03); padding-left: 12px; }
.sheet dt { color: var(--g1); padding-top: 3px; }
.sheet dd { font-size: 16px; font-weight: 300; }
#specs > .fine { margin-top: 22px; }

/* ---------- FOOTER ---------- */
.foot { position: relative; z-index: 3; background: #000; border-top: 1px solid var(--line); padding: 60px var(--pad) 40px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--g1); }
.foot-row.backed { justify-content: flex-start; gap: clamp(30px, 4vw, 60px); }
.backers { display: flex; align-items: center; gap: clamp(30px, 5vw, 80px); }
.backers img { display: block; width: auto; opacity: .85; transition: opacity .3s; }
.backers img:hover { opacity: 1; }
.b-onvexar { height: 15px; }
.b-halston { height: 32px; }
.foot-main { padding: clamp(60px, 7vw, 100px) 0 clamp(40px, 5vw, 64px); display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.foot-line { font-size: clamp(22px, 2.4vw, 36px); font-weight: 300; letter-spacing: -.03em; color: var(--g1); }
.foot-logo { height: clamp(16px, 1.6vw, 22px); width: auto; display: block; margin-bottom: 8px; }
.foot-row.small { padding-top: 24px; border-top: 1px solid var(--line); color: var(--g2); }
.foot-row.small a:hover { color: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .die-wrap, .race { grid-template-columns: 1fr; }
  .big-specs { grid-template-columns: 1fr 1fr; }
  .bs:nth-child(3) { padding-left: 0; border-left: 0; }
  .sheet div { grid-template-columns: 1fr; gap: 6px; }
  .tags { display: none; }
  .rail { display: none; }
}
@media (max-width: 700px) {
  .hero { align-items: flex-end; padding-bottom: 130px; }
  .hero h1 { font-size: 46px; }
  .anat-head { top: 96px; }
  .anat-steps { bottom: 40px; }
  .hud { gap: 18px; bottom: 36px; }
  .hint, .top-right .live { display: none; }
  .anat-meter { display: none; }
  .logo img { height: 13px; }
  .hot { width: 24px; height: 24px; }
  .hot span { width: 18px; height: 18px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .hero-copy > * { opacity: 1; transform: none; }
}
