:root {
  --bg:        #07090b;
  --bg-1:      #0a0d11;
  --panel:     #0e1216;
  --panel-1:   #11161c;
  --rule:      #1c2128;
  --rule-1:    #262d36;
  --ink:       #e6edf3;
  --ink-1:     #b9c2cc;
  --dim:       #7d8590;
  --dim-1:     #5b626d;
  --muted:     #3f464f;
  --amber:     #d4a72c;
  --amber-soft:#7f6418;
  --up:        #2ea043;
  --down:      #cf222e;
  --reg:       #58a6ff;
  --hot:       #ff7b72;
  --ff-mono: "JetBrains Mono","Berkeley Mono","IBM Plex Mono","Fira Code",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --ff-sans: "IBM Plex Sans","Inter Tight",system-ui,-apple-system,sans-serif;
  --r-1: 2px;
  --statusbar-h: 28px;
  --plate-h: 36px;
  --explode-d: 850ms;
  --ease-shard: cubic-bezier(.18, .9, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  background: var(--bg);
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 1px 1px, rgba(125,133,144,.08) 1px, transparent 0);
  background-size: auto, 24px 24px;
  scroll-snap-type: y mandatory;
  scrollbar-width: thin;
  scrollbar-color: #262d36 transparent;
}
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: #0a0d11; }
html::-webkit-scrollbar-thumb { background: #262d36; border: 2px solid #0a0d11; }
html::-webkit-scrollbar-thumb:hover { background: #7f6418; }

body {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: var(--reg); text-decoration: none; border-bottom: 1px dotted rgba(88,166,255,.4); }
a:hover { color: var(--amber); border-bottom-color: var(--amber); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
em { font-style: italic; color: var(--amber); }
strong { color: var(--ink); font-weight: 700; }
::selection { background: var(--amber); color: #000; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─── status bars ───────────────────────────────────────────── */
.status {
  position: fixed;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--statusbar-h);
  padding: 0 24px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--rule);
  font: 600 11px/var(--statusbar-h) var(--ff-mono);
  letter-spacing: .14em;
  color: var(--dim);
  z-index: 60;
  white-space: nowrap;
  overflow: hidden;
  text-transform: uppercase;
}
.status--top { top: 0; }
.status--bottom { bottom: var(--plate-h); border-top: 1px solid var(--rule); border-bottom: 0; }
.status__dots { color: var(--amber); letter-spacing: 4px; font-size: 9px; }
.status__seg--brand { color: var(--ink); }
.status__seg--brand [data-brand-name] { color: var(--amber); }
.status__seg--amber { color: var(--amber); }
.status__time { margin-left: auto; color: var(--amber); }
@media (max-width: 880px) {
  .status { gap: 12px; font-size: 9px; padding: 0 12px; }
  .status .status__seg:nth-child(3),
  .status .status__seg:nth-child(4) { display: none; }
}

/* ─── reel (snap container) ─────────────────────────────────── */
.reel {
  display: block;
}

/* ─── scene ──────────────────────────────────────────────────── */
.scene {
  min-height: 100vh;
  padding: calc(var(--statusbar-h) + 48px) 32px calc(var(--statusbar-h) + var(--plate-h) + 48px);
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  align-content: center;
  border-bottom: 1px dashed var(--rule);
}
.scene__addr {
  position: absolute;
  top: calc(var(--statusbar-h) + 16px);
  right: 24px;
  font: 700 10px/1 var(--ff-mono);
  letter-spacing: .22em;
  color: var(--dim-1);
  text-transform: uppercase;
}
.scene__addr::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--amber); margin-right: 8px; vertical-align: middle; animation: addr-pulse 1.4s ease-in-out infinite; }
@keyframes addr-pulse { 0%,100%{opacity:.4;transform:scale(1)} 50%{opacity:1;transform:scale(1.3)} }
.scene__inner { max-width: 1280px; width: 100%; margin: 0 auto; }

.kicker {
  font: 600 11px/1 var(--ff-mono);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--amber);
  margin-bottom: 28px;
}

.big {
  font: 800 clamp(40px, 7vw, 88px)/.98 var(--ff-mono);
  letter-spacing: -.035em;
  margin-bottom: 28px;
  color: var(--ink);
}
.big .hot { color: var(--amber); }
.big--warn { color: var(--amber); max-width: 22ch; }

.lede, .prose, .iga {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-1);
  max-width: 60ch;
  margin-bottom: 24px;
}
.iga { font-size: 13px; color: var(--dim); margin-top: 24px; }

/* ─── scene 1: hero ──────────────────────────────────────────── */
.scene--hero {
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}
.scene--hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 380px at 25% 30%, rgba(212,167,44,.08), transparent 70%),
    radial-gradient(ellipse 500px 240px at 80% 65%, rgba(88,166,255,.05), transparent 70%);
  pointer-events: none;
}
.scene--hero .scene__inner { max-width: 720px; margin: 0; }

.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 700px; }
.kpi {
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--amber);
  border-radius: var(--r-1);
  display: grid;
  gap: 4px;
  font-family: var(--ff-mono);
}
.kpi span { font: 600 10px/1 var(--ff-mono); text-transform: uppercase; letter-spacing: .16em; color: var(--dim); }
.kpi strong { font: 800 26px/1 var(--ff-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi i { font-style: normal; font-size: 10px; color: var(--dim-1); text-transform: uppercase; letter-spacing: .12em; }

/* terminal card */
.terminal-card { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-1); font-family: var(--ff-mono); font-size: 13px; max-width: 520px; width: 100%; align-self: center; }
.terminal-card__head, .terminal-card__foot { padding: 10px 16px; font-size: 11px; color: var(--amber); letter-spacing: .08em; background: var(--bg-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.terminal-card__head { border-bottom: 1px solid var(--rule); }
.terminal-card__foot { border-top: 1px solid var(--rule); color: var(--dim); font-size: 10px; }
.terminal-card__body { padding: 8px 0; }
.terminal-card .row { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px dashed var(--rule); font-variant-numeric: tabular-nums; }
.terminal-card .row:last-child { border-bottom: 0; }
.terminal-card .row__tag { font-size: 10px; letter-spacing: .14em; color: var(--amber); font-weight: 700; }
.terminal-card .row__name { color: var(--ink); font-weight: 600; letter-spacing: .04em; }
.terminal-card .row__price { color: var(--amber); font-weight: 700; }
.terminal-card .row--dim .row__tag { color: var(--dim-1); }
.terminal-card .row--dim .row__name { color: var(--dim); }
.terminal-card .row--dim .row__price { color: var(--dim); }
.terminal-card .row.flash-up { background: rgba(46,160,67,.12); transition: background 600ms; }
.terminal-card .row.flash-down { background: rgba(207,34,46,.12); transition: background 600ms; }

@media (max-width: 980px) {
  .scene--hero { grid-template-columns: 1fr; }
  .terminal-card { max-width: 100%; }
  .kpi-row { grid-template-columns: 1fr; }
}

/* ─── scene 2: scope blocks ──────────────────────────────────── */
.block-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.block {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r-1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.block__head { font: 700 12px/1 var(--ff-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--amber); padding-bottom: 12px; border-bottom: 1px dashed var(--rule); }
.block__body p { font-family: var(--ff-sans); font-size: 14px; line-height: 1.65; color: var(--ink-1); margin-bottom: 14px; }
.block__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.block__chips .chip { display: inline-flex; padding: 4px 10px; background: var(--bg-1); border: 1px solid var(--rule); border-radius: var(--r-1); font: 700 10px/1 var(--ff-mono); letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
@media (max-width: 980px) { .block-grid { grid-template-columns: 1fr; } }

/* ─── scene 3: licence ───────────────────────────────────────── */
.licence-plate { display: inline-grid; gap: 2px; padding: 16px 22px; background: var(--bg-1); border: 1px solid var(--rule-1); border-left: 4px solid var(--amber); border-radius: var(--r-1); margin: 12px 0 28px; font-family: var(--ff-mono); }
.licence-plate__tag { font: 500 10px/1 var(--ff-mono); text-transform: uppercase; letter-spacing: .2em; color: var(--dim); }
.licence-plate__acr { font: 800 32px/1 var(--ff-mono); color: var(--amber); letter-spacing: -.02em; }
.licence-plate__no { font: 600 11px/1.2 var(--ff-mono); color: var(--ink-1); letter-spacing: .08em; }

.licence-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 28px; }
.licence-cell { padding: 14px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-1); }
.licence-cell__k { font: 600 10px/1 var(--ff-mono); text-transform: uppercase; letter-spacing: .16em; color: var(--dim); margin-bottom: 6px; }
.licence-cell__v { font: 700 13px/1.35 var(--ff-mono); color: var(--ink); }
@media (max-width: 1100px) { .licence-grid { grid-template-columns: repeat(2, 1fr); } }

/* ─── scene 4: rg ────────────────────────────────────────────── */
.rg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.final-cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .rg-grid { grid-template-columns: 1fr; } }

/* ─── buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  font: 700 12px/1 var(--ff-mono);
  text-transform: uppercase; letter-spacing: .14em;
  border: 1px solid var(--rule); border-radius: var(--r-1);
  color: var(--ink); background: transparent;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: background 150ms, border-color 150ms, color 150ms;
}
.btn::before { content: ">"; color: var(--dim-1); }
.btn:hover { border-color: var(--amber); color: var(--amber); }
.btn:hover::before { color: var(--amber); }
.btn-solid { background: var(--amber); color: #0b0b0b; border-color: var(--amber); }
.btn-solid::before { color: #0b0b0b; }
.btn-solid:hover { background: #f0ba30; border-color: #f0ba30; color: #000; }

/* ─── ncpf plate (fixed bottom black-on-white) ───────────────── */
.ncpf-plate {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--plate-h);
  background: #fff; color: #0a0a0a;
  font: 600 12px/var(--plate-h) var(--ff-mono);
  padding: 0 24px;
  text-align: center;
  border-top: 1px solid #000;
  z-index: 50;
  white-space: nowrap;
  overflow: hidden;
}
.ncpf-plate a { color: #000; border-bottom: 1px solid #000; }
.ncpf-plate a:hover { color: #6b1313; border-color: #6b1313; }

/* ─── age gate ───────────────────────────────────────────────── */
.gate { position: fixed; inset: 0; background: rgba(7, 9, 11, .94); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.gate__panel { width: min(540px, 100%); background: var(--panel); border: 1px solid var(--amber-soft); border-radius: var(--r-1); overflow: hidden; }
.gate__head { padding: 12px 18px; background: var(--bg-1); border-bottom: 1px solid var(--amber-soft); font: 700 11px/1 var(--ff-mono); letter-spacing: .14em; color: var(--amber); text-transform: uppercase; }
.gate__body { padding: 24px 24px 18px; }
.gate__body h2 { font: 800 22px/1.25 var(--ff-mono); letter-spacing: -.015em; margin-bottom: 14px; color: var(--ink); }
.gate__body p { font-family: var(--ff-sans); font-size: 14px; color: var(--ink-1); line-height: 1.65; margin-bottom: 22px; }
.gate__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.gate__foot { padding: 10px 18px; background: var(--bg-1); border-top: 1px solid var(--rule); font: 500 11px/1.4 var(--ff-mono); color: var(--dim); }

/* ─── cookie banner ──────────────────────────────────────────── */
.cookie-banner { position: fixed; right: 16px; bottom: calc(var(--plate-h) + var(--statusbar-h) + 16px); width: min(420px, calc(100% - 32px)); background: var(--panel); border: 1px solid var(--amber-soft); border-radius: var(--r-1); padding: 16px; z-index: 150; font-family: var(--ff-mono); }
.cookie-banner > * + * { margin-top: 12px; }
.cookie-banner__title { font: 700 11px/1 var(--ff-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--amber); }
.cookie-banner p { font-size: 13px; color: var(--ink-1); line-height: 1.5; }
.cookie-banner fieldset { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-banner label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-1); }
.cookie-banner input[type=checkbox] { width: 14px; height: 14px; accent-color: var(--amber); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.cookie-banner__actions .btn { flex: 1; padding: 8px 12px; font-size: 10px; }

/* ═══════════════════════════════════════════════════════════════
   EXPLOSION SHARDS — pieces translate/rotate to "exploded" state
   by default; when scene.is-active, they assemble to identity.
   ═══════════════════════════════════════════════════════════════ */
.shard {
  --dx: 0;
  --dy: 0;
  --rot: 0deg;
  --i: 0;
  opacity: 0;
  transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--rot)) scale(.72);
  transform-origin: center;
  filter: blur(2px);
  transition:
    transform var(--explode-d) var(--ease-shard),
    opacity   calc(var(--explode-d) * .8) ease-out,
    filter    calc(var(--explode-d) * .7) ease-out;
  transition-delay: calc(var(--i, 0) * 40ms);
  will-change: transform, opacity, filter;
}
.scene.is-active .shard {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* split letters: each char becomes a shard with random offset (set by JS) */
.big .char {
  display: inline-block;
  --dx: 0;
  --dy: 0;
  --rot: 0deg;
  --i: 0;
  opacity: 0;
  transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--rot)) scale(.4);
  filter: blur(3px);
  transition:
    transform var(--explode-d) var(--ease-shard),
    opacity   calc(var(--explode-d) * .7) ease-out,
    filter    calc(var(--explode-d) * .7) ease-out;
  transition-delay: calc(var(--i, 0) * 16ms);
  will-change: transform, opacity, filter;
}
.scene.is-active .big .char {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.big .char--space { display: inline; }

/* shockwave ring fires on activation */
.scene::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 12px;
  border: 1px solid var(--amber);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.scene.is-active::after {
  animation: shockwave 950ms cubic-bezier(.2, .7, .25, 1) 80ms;
}
@keyframes shockwave {
  0%   { opacity: .55; transform: translate(-50%, -50%) scale(0); border-width: 2px; }
  70%  { opacity: .12; border-width: 1px; }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(80); border-width: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
  .shard, .big .char { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .scene::after { display: none; }
  .scene__addr::before { animation: none; }
}

@media (max-width: 720px) {
  html { scroll-snap-type: none; }
  .scene { padding-left: 16px; padding-right: 16px; }
  .scene__addr { right: 16px; top: calc(var(--statusbar-h) + 12px); }
}
