/* ════════════════════════════════════════════════════════════
   NOBIUM LABS — ROADMAP
   White / acid-lime. Hard edges, mono UI, survey details. Element 41.
   ════════════════════════════════════════════════════════════ */

:root {
  --paper: #f3f4ef;
  --panel: #ffffff;
  --ink: #0b0c0a;
  --ink-2: #3c3f3a;
  --ink-3: #7a7d76;
  --line: rgba(11, 12, 10, 0.16);
  --line-2: rgba(11, 12, 10, 0.08);
  --dot: rgba(11, 12, 10, 0.12);

  --lime: #c6f700;          /* flächen */
  --on-lime: #0b0c0a;       /* text auf lime */
  --acc: #8cc000;           /* linien / grafik auf hell */
  --acc-text: #4a6e00;      /* kleiner akzent-text auf hell */

  --side-bg: #0b0c0a;
  --side-fg: #c6f700;

  --grain-opacity: 0.08;
  --glow-opacity: 0.75;

  --f-display: "Archivo", "Geist", ui-sans-serif, system-ui, sans-serif;
  --f-sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad: clamp(16px, 2.2vw, 32px);
  --hdr: 50px;
  --side: clamp(200px, 15.5vw, 270px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #0a0b09;
  --panel: #121410;
  --ink: #f1f2ec;
  --ink-2: #b8bbb2;
  --ink-3: #7d8078;
  --line: rgba(241, 242, 236, 0.15);
  --line-2: rgba(241, 242, 236, 0.07);
  --dot: rgba(241, 242, 236, 0.09);
  --lime: #c8ff00;
  --on-lime: #0a0b09;
  --acc: #c8ff00;
  --acc-text: #c8ff00;
  --side-bg: #000000;
  --side-fg: #c8ff00;
  --grain-opacity: 0.07;
  --glow-opacity: 0.55;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: var(--hdr); }
html, body { margin: 0; padding: 0; }

body {
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: -11px -11px;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--on-lime); }

.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mono i { font-style: normal; color: var(--ink-3); letter-spacing: 0.08em; }
.lbl { display: block; color: var(--ink-2); }
.disp {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px var(--lime); }

/* ─── Grain ─────────────────────────────────────────── */
.grain {
  pointer-events: none;
  position: fixed;
  inset: -100%;
  z-index: 90;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(6) infinite;
  mix-blend-mode: multiply;
}
:root[data-theme="dark"] .grain { mix-blend-mode: screen; filter: invert(1); }
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
  100% { transform: translate(0, 0); }
}

/* ─── Cursor (Crosshair) ───────────────────────────── */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js body, .js a, .js button { cursor: none; }
  .cursor {
    display: block;
    position: fixed;
    left: 0; top: 0;
    z-index: 100;
    pointer-events: none;
    width: 0; height: 0;
    opacity: 0;
    transition: opacity 0.3s;
    mix-blend-mode: difference;
  }
  .cursor.is-on { opacity: 1; }
  .cursor__h, .cursor__v { position: absolute; background: #fff; }
  .cursor__h { width: 40px; height: 1px; left: -20px; top: 0; }
  .cursor__v { width: 1px; height: 40px; left: 0; top: -20px; }
  .cursor__ring {
    position: absolute;
    width: 44px; height: 44px;
    left: -22px; top: -22px;
    border: 1px solid #fff;
    transform: scale(0) rotate(45deg);
    transition: transform 0.35s var(--ease);
  }
  .cursor.is-hover .cursor__ring { transform: scale(1) rotate(45deg); }
  .cursor__label {
    position: absolute;
    left: 14px; top: 10px;
    white-space: nowrap;
    color: #fff;
    font-size: 10px;
  }
}

/* ─── Loader ───────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--lime);
  color: var(--on-lime);
  display: grid;
  place-items: center;
}
html:not(.js) .loader { display: none; }
.loader__inner { width: min(360px, 80vw); }
.loader__tile {
  position: relative;
  width: 132px; height: 132px;
  border: 2px solid var(--on-lime);
  margin-bottom: 22px;
}
.loader__no { position: absolute; left: 10px; top: 9px; font-size: 13px; font-weight: 500; }
.loader__mass { position: absolute; left: 10px; bottom: 9px; font-size: 10px; }
.loader__mark { position: absolute; width: 74px; height: 64px; right: 14px; top: 26px; color: var(--on-lime); }
.loader__meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.loader__bar { height: 6px; border: 1px solid var(--on-lime); }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--on-lime); transform-origin: left; transform: scaleX(0); }

/* ─── Header ───────────────────────────────────────── */
.hdr {
  position: fixed;
  z-index: 50;
  top: 0; left: 0; right: 0;
  height: var(--hdr);
  display: flex;
  align-items: stretch;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.5s var(--ease);
}
.hdr__logo {
  flex: 0 0 var(--hdr);
  display: grid; place-items: center;
  background: var(--lime);
  color: var(--on-lime);
}
.hdr__logo svg { width: 30px; height: 26px; transition: transform 0.5s var(--ease); }
.hdr__logo:hover svg { transform: rotate(-8deg) scale(1.08); }
.hdr__nav { display: flex; align-items: center; gap: 30px; padding: 0 34px; }
.hdr__nav a { position: relative; padding: 6px 0; color: var(--ink); transition: color 0.2s; white-space: nowrap; }
.hdr__nav a::after {
  content: ""; position: absolute; left: -6px; right: -6px; top: 1px; bottom: 1px;
  background: var(--lime); z-index: -1;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.hdr__nav a:hover::after, .hdr__nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.hdr__nav a:hover, .hdr__nav a.is-active { color: var(--on-lime); }
.hdr__nav a:hover i, .hdr__nav a.is-active i { color: var(--on-lime); }
.hdr__right { margin-left: auto; display: flex; align-items: center; gap: 20px; padding: 0 24px; }
.hdr__clock { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hdr__theme {
  display: inline-flex; align-items: center; gap: 8px;
  background: none;
  border: 1px solid var(--line);
  padding: 6px 10px;
  font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em;
  min-height: 30px;
  transition: border-color 0.2s, background-color 0.2s;
}
.hdr__theme i { font-style: normal; color: var(--ink-3); }
.hdr__theme:hover { border-color: var(--ink); }
.hdr__theme-dot { width: 9px; height: 9px; background: linear-gradient(90deg, var(--ink) 50%, var(--lime) 50%); border: 1px solid var(--ink); }
.hdr__cta {
  flex: 0 0 var(--side);
  display: flex; align-items: center; justify-content: center;
  background: var(--lime);
  color: var(--on-lime);
  font-size: 12px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hdr__cta b { font-weight: 500; font-variant-numeric: tabular-nums; }
.hdr__cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--on-lime);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
}
.hdr__cta:hover { color: var(--lime); }
.hdr__cta:hover::before { transform: translateY(0); }

/* ─── Rail ─────────────────────────────────────────── */
.rail {
  position: fixed;
  z-index: 40;
  right: calc(var(--side) + 8px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  transition: right 0.6s var(--ease);
}
.rail.is-free { right: 8px; }
.rail__ticks { display: flex; flex-direction: column; gap: 7px; }
.rail__ticks i { display: block; width: 8px; height: 1px; background: var(--ink-3); opacity: 0.45; transition: width 0.3s, background-color 0.3s, opacity 0.3s, height 0.3s; }
.rail__ticks i.on { width: 14px; height: 2px; background: var(--ink); opacity: 1; }
.rail__ticks i.on:last-of-type, .rail__ticks i.head { background: var(--acc); }
.rail__pct { background: var(--lime); color: var(--on-lime); padding: 1px 4px; font-variant-numeric: tabular-nums; font-size: 10px; }

/* ─── Section heads ────────────────────────────────── */
.sec-head {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.sec-head h2 { margin: 0; font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 18px; letter-spacing: 0; color: var(--ink); }
.sec-head > span:first-child { justify-self: start; background: var(--lime); color: var(--on-lime); padding: 3px 7px; }
.sec-head__r { color: var(--ink-3); }

/* ─── Rows / poster grid ───────────────────────────── */
.row { position: relative; padding: 0 var(--pad); }
.row::after {
  content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 1px;
  background: var(--line); transform-origin: left; transform: scaleX(var(--rule, 1));
}
.cell--r { text-align: right; }

/* ─── HERO ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--hdr);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side);
}
.hero__main { position: relative; overflow: hidden; isolation: isolate; }
.hero__contours {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  opacity: 0.9;
}
.hero__glow {
  position: absolute;
  z-index: -1;
  width: min(56vw, 820px);
  height: min(48vw, 700px);
  right: -6vw;
  top: 18vh;
  color: var(--lime);
  filter: blur(34px);
  opacity: var(--glow-opacity);
  pointer-events: none;
}
.hero__grid { display: flex; flex-direction: column; min-height: calc(100svh - var(--hdr)); }

.row--meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 12px;
}
.row--title { padding-top: 1.2vw; padding-bottom: 0.9vw; }
.hero__title {
  margin: 0;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(46px, 11.6vw, 210px);
  line-height: 0.82;
  letter-spacing: -0.035em;
  margin-left: -0.03em;
  white-space: nowrap;
}
.hero__title .ch { display: inline-block; will-change: transform, filter, opacity; }

.row--range {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.95fr);
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 18px;
  align-items: start;
}
.hero__range {
  margin: 10px 0 0;
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(26px, 3.3vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* next milestone — the lime "available now" block */
.next {
  background: var(--lime);
  color: var(--on-lime);
  display: grid;
  gap: 4px;
  padding: 14px 0 0;
  position: relative;
}
.next__h {
  margin: 0;
  padding: 0 14px;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(18px, 1.8vw, 28px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.next__code { padding: 6px 14px 0; opacity: 0.75; }
.next__title { margin: 0; padding: 2px 14px 12px; font-size: 13px; line-height: 1.35; }
.next__foot { display: flex; align-items: stretch; justify-content: space-between; border-top: 1px solid rgba(0, 0, 0, 0.25); }
.next__count { display: flex; gap: 6px; padding: 10px 14px; flex-wrap: wrap; }
.next__count span {
  display: inline-flex; align-items: baseline; gap: 3px;
  border: 1px solid var(--on-lime);
  padding: 4px 8px;
  font-variant-numeric: tabular-nums;
}
.next__count b { font-weight: 600; font-size: 13px; }
.next__btn {
  display: flex; align-items: center; justify-content: center;
  padding: 0 22px;
  background: var(--on-lime);
  color: var(--lime);
  white-space: nowrap;
  transition: letter-spacing 0.4s var(--ease);
}
.next__btn:hover { letter-spacing: 0.12em; }

.row--data {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto minmax(0, 1.5fr);
  align-items: end;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.row--data::after { display: none; }
.params { display: grid; gap: 12px; align-self: start; max-width: 300px; }
.param { border-bottom: 1px solid var(--line); padding-bottom: 6px; display: flex; justify-content: space-between; align-items: baseline; }
.param b { font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; }
.param--bar { display: grid; gap: 8px; }
.pbar { position: relative; display: block; height: 8px; border: 1px solid var(--ink); overflow: hidden; }
.pbar i {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--lime) 0 5px, var(--ink) 5px 6px);
  transform-origin: left; transform: scaleX(0);
}

.scope { width: 120px; height: 120px; align-self: center; fill: none; stroke: var(--ink); stroke-width: 0.6; opacity: 0.7; }
.scope__spin { transform-origin: 60px 60px; animation: spin 18s linear infinite; stroke: var(--acc); stroke-width: 2; }
@keyframes spin { to { transform: rotate(360deg); } }

.bignum { position: relative; justify-self: end; display: flex; align-items: flex-end; gap: 18px; }
.bignum__lbl { color: var(--ink-2); padding-bottom: 1.6vw; text-align: right; }
.bignum__val {
  font-family: var(--f-display);
  font-stretch: 62%;
  font-weight: 900;
  font-size: clamp(120px, 24vw, 420px);
  line-height: 0.74;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: -0.03em;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink-3);
}
.hero__scroll i { display: block; width: 1px; height: 38px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

/* ─── Aside (vertical wordmark column) ─────────────── */
.aside {
  position: relative;
  background: var(--side-bg);
  color: var(--side-fg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 16px 14px;
  overflow: hidden;
  border-left: 1px solid var(--line);
}
.aside__plus { font-family: var(--f-mono); font-size: 22px; line-height: 1; font-weight: 300; display: inline-block; }
.aside__body { flex: 1; display: flex; gap: 12px; width: 100%; justify-content: center; padding: 14px 0 10px; min-height: 0; }
.aside__strip { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 4px; }
.barcode {
  width: 16px; height: 62px;
  background: repeating-linear-gradient(180deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 5px, transparent 5px 7px);
}
.ico { width: 14px; height: 14px; position: relative; display: block; }
.ico--x::before, .ico--x::after { content: ""; position: absolute; left: 50%; top: 0; width: 1.5px; height: 100%; background: currentColor; transform: rotate(45deg); }
.ico--x::after { transform: rotate(-45deg); }
.ico--sq { border: 2px solid currentColor; }
.ico--sq::after { content: ""; position: absolute; inset: 3px; background: currentColor; }
.vnum { font-family: var(--f-display); font-stretch: 62%; font-weight: 800; font-size: 20px; line-height: 1; writing-mode: vertical-rl; letter-spacing: 0.04em; }
.vtext { writing-mode: vertical-rl; font-size: 8.5px; line-height: 1.5; letter-spacing: 0.08em; opacity: 0.9; white-space: nowrap; }
.aside__mark { height: 100%; max-height: 78vh; width: auto; fill: currentColor; overflow: visible; }
.aside__mark .glyph { transform-box: fill-box; transform-origin: 50% 50%; }
.aside__foot { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.aside__tm { font-size: 9px; writing-mode: vertical-rl; }
.aside__ring { width: 34px; height: 30px; color: var(--side-fg); }
.aside__base { width: 100%; display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 9px; line-height: 1.15; }
.checker {
  width: 18px; height: 18px; flex: 0 0 auto;
  background: conic-gradient(currentColor 25%, transparent 0 50%, currentColor 0 75%, transparent 0) 0 0 / 6px 6px;
}

/* ─── Marquee ─────────────────────────────────────── */
.marquee {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  user-select: none;
}
.marquee--lime { background: var(--lime); color: var(--on-lime); }
.marquee--ink { background: var(--side-bg); color: var(--side-fg); }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__track span {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 14px 0.6em 12px 0;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 34px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
}
.marquee__track span em { font-style: normal; font-family: var(--f-mono); font-weight: 400; font-size: 0.42em; letter-spacing: 0.06em; opacity: 0.8; }

/* ─── TIMELINE ─────────────────────────────────────── */
.tl { position: relative; }
.tl__viewport { position: relative; overflow: hidden; }
.tl__track { position: relative; }
.tl__svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.tl__path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tl__path--ghost { stroke: var(--line); stroke-width: 1.4; stroke-dasharray: 2 6; }
.tl__path--draw { stroke: var(--ink); stroke-width: 2.4; }

.tl__items { list-style: none; margin: 0; padding: 0; }
.ms { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.ms__node {
  position: absolute; left: -7px; top: -7px;
  width: 14px; height: 14px;
  background: var(--panel);
  border: 2px solid var(--ink);
  z-index: 2;
  transform: rotate(45deg);
  transition: background-color 0.3s;
}
.ms--done .ms__node { background: var(--ink); }
.ms--active .ms__node { background: var(--lime); border-color: var(--ink); }
.ms--active .ms__node::before,
.ms--active .ms__node::after {
  content: ""; position: absolute; inset: -2px;
  border: 1.5px solid var(--acc);
  animation: ping 2.4s var(--ease) infinite;
}
.ms--active .ms__node::after { animation-delay: 1.2s; }
@keyframes ping { from { transform: scale(1); opacity: 0.9; } to { transform: scale(4); opacity: 0; } }
.ms--classified .ms__node { border-style: dashed; }

.ms__elev {
  position: absolute; left: 14px;
  color: var(--acc-text);
  white-space: nowrap;
  font-size: 10px;
}
.ms--up .ms__elev { top: 8px; }
.ms--down .ms__elev { top: -22px; }

.ms__lead {
  position: absolute;
  left: 0;
  width: 1px;
  background-image: linear-gradient(var(--ink-3) 50%, transparent 50%);
  background-size: 1px 4px;
  transform-origin: top;
}
.ms--up .ms__lead { bottom: 10px; height: var(--lead, 64px); transform-origin: bottom; }
.ms--down .ms__lead { top: 10px; height: var(--lead, 64px); }

.ms__ghost {
  position: absolute;
  left: 50%;
  font-family: var(--f-display);
  font-stretch: 62%;
  font-weight: 900;
  font-size: clamp(160px, 19vw, 340px);
  letter-spacing: -0.02em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  pointer-events: none;
  white-space: nowrap;
  transform: translateX(-50%);
  z-index: -1;
}
.ms--active .ms__ghost { -webkit-text-stroke: 1.5px var(--acc); }
.ms--up .ms__ghost { top: 30px; }
.ms--down .ms__ghost { bottom: 30px; }

.card {
  position: absolute;
  left: -24px;
  width: 300px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s, transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.ms--up .card { bottom: calc(var(--lead, 64px) + 10px); }
.ms--down .card { top: calc(var(--lead, 64px) + 10px); }
.card:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--lime), 6px 6px 0 1px var(--ink); border-color: var(--ink); }

.card__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}
.card__bar > span { padding: 7px 10px; }
.card__no { background: var(--lime); color: var(--on-lime); }
.card__code { opacity: 0.7; }
.card__status { display: inline-flex; align-items: center; gap: 6px; }
.card__status::before { content: ""; width: 6px; height: 6px; background: currentColor; opacity: 0.5; }
.ms--active .card__status::before { background: var(--lime); opacity: 1; animation: blink 1.2s steps(2) infinite; }
.ms--classified .card__status::before { background: transparent; border: 1px dashed currentColor; }
@keyframes blink { 50% { opacity: 0; } }

.card__title {
  margin: 0;
  padding: 14px 12px 16px;
  font-family: var(--f-display);
  font-stretch: 118%;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-transform: uppercase;
  min-height: 3.6em;
}
.card__rows { margin: 0; border-top: 1px solid var(--line); }
.card__rows > div { display: flex; justify-content: space-between; padding: 7px 12px; border-bottom: 1px solid var(--line-2); }
.card__rows > div:last-child { border-bottom: 0; }
.card__rows dt { color: var(--ink-3); }
.card__rows dd { margin: 0; font-variant-numeric: tabular-nums; }
.card__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; }
.card__tag { display: inline-block; margin: 0 12px 12px; }
.card__tag::before { content: "["; color: var(--ink-3); margin-right: 2px; }
.card__tag::after { content: "]"; color: var(--ink-3); margin-left: 2px; }
.card__foot .card__date { margin-right: 12px; margin-bottom: 12px; color: var(--ink-3); }

.ms--active .card { background: var(--lime); color: var(--on-lime); border-color: var(--ink); }
.ms--active .card .card__bar { background: var(--on-lime); color: var(--lime); }
.ms--active .card .card__no { background: var(--lime); color: var(--on-lime); }
.ms--active .card .card__rows,
.ms--active .card .card__rows > div { border-color: rgba(0, 0, 0, 0.2); }
.ms--active .card .card__rows dt,
.ms--active .card .card__date,
.ms--active .card .card__tag::before,
.ms--active .card .card__tag::after { color: rgba(0, 0, 0, 0.6); }
.ms--active .card:hover { box-shadow: 6px 6px 0 var(--ink); }

.ms--done .card__title { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--acc); }
.ms--done .card { opacity: 0.75; }

.ms--classified .card { border-style: dashed; }
.ms--classified .card__title { font-family: var(--f-mono); font-stretch: 100%; letter-spacing: 0.2em; }

.tl__today {
  position: absolute;
  top: 0;
  width: 0;
  z-index: 3;
  pointer-events: none;
}
.tl__today span {
  position: absolute; left: 0; top: 8px;
  white-space: nowrap;
  background: var(--lime); color: var(--on-lime);
  border: 1px solid var(--ink);
  padding: 3px 7px;
  font-size: 10px;
}
.tl__today i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  height: var(--h, 100%);
  background-image: linear-gradient(var(--ink) 60%, transparent 60%);
  background-size: 1px 6px;
}

.tl__foot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 10px var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--panel);
}
.tl__ruler {
  position: relative; height: 10px;
  background-image: repeating-linear-gradient(90deg, var(--ink-3) 0 1px, transparent 1px 10px);
  background-size: 100% 5px; background-repeat: no-repeat; background-position: bottom;
}
.tl__ruler i { position: absolute; left: 0; bottom: 0; height: 10px; width: 100%; background: var(--lime); border-right: 2px solid var(--ink); transform-origin: left; transform: scaleX(0); }
.tl__foot [data-tl-step] { background: var(--ink); color: var(--paper); padding: 2px 6px; }

/* Desktop: horizontal pinned timeline (JS sets .tl-h) */
.tl.tl-h { height: 100vh; display: flex; flex-direction: column; padding-top: var(--hdr); }
.tl-h .tl__viewport { flex: 1; }
.tl-h .tl__track { height: 100%; }
@media (max-height: 760px) {
  .tl-h .card__title { font-size: 17px; min-height: 0; padding: 10px 12px 12px; }
  .tl-h .card__rows > div { padding: 5px 12px; }
  .tl-h .card__foot { padding-top: 6px; }
  .tl-h .card__tag { margin-bottom: 8px; }
  .tl-h .card__foot .card__date { margin-bottom: 8px; }
}

/* Vertical timeline (mobile, reduced motion, no JS) */
.tl:not(.tl-h) .tl__svg, .tl:not(.tl-h) .tl__today, .tl:not(.tl-h) .ms__ghost { display: none; }
.tl:not(.tl-h) .tl__viewport { padding: 28px var(--pad) 40px; }
.tl:not(.tl-h) .tl__items { position: relative; max-width: 760px; display: flex; flex-direction: column; gap: 22px; padding-left: 30px; }
.tl:not(.tl-h) .tl__items::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px;
  background: var(--ink);
  transform-origin: top;
  transform: scaleY(var(--fill, 1));
}
.tl:not(.tl-h) .tl__items::after {
  content: ""; position: absolute; left: 6.5px; top: 6px; bottom: 6px; width: 1px;
  background-image: linear-gradient(var(--line) 50%, transparent 50%); background-size: 1px 6px;
  z-index: -1;
}
.tl:not(.tl-h) .ms { position: relative; width: auto; height: auto; transform: none !important; }
.tl:not(.tl-h) .ms__node { left: -30px; top: 12px; }
.tl:not(.tl-h) .ms__lead { display: none; }
.tl:not(.tl-h) .ms__elev { left: -27px; top: 34px; writing-mode: vertical-rl; }
.tl:not(.tl-h) .ms--down .ms__elev, .tl:not(.tl-h) .ms--up .ms__elev { top: 34px; }
.tl:not(.tl-h) .card { position: relative; left: 0; top: auto !important; bottom: auto !important; width: 100%; }
.tl:not(.tl-h) .card__title { min-height: 0; font-size: 18px; }
.tl:not(.tl-h) .tl__foot { grid-template-columns: 1fr auto; }
.tl:not(.tl-h) .tl__foot > span:first-child { display: none; }

/* ─── INDEX ────────────────────────────────────────── */
.idx { padding-bottom: 8vh; }
.idx__table { padding: 0 var(--pad); }
.idx__row {
  position: relative;
  display: grid;
  grid-template-columns: 56px 90px minmax(0, 3fr) minmax(0, 1fr) 120px 90px 130px;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.idx__row--head { color: var(--ink-3); padding: 12px 0; }
.idx__row:not(.idx__row--head)::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--lime);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.idx__row:not(.idx__row--head):hover::before { transform: scaleX(1); transform-origin: left; }
.idx__row:not(.idx__row--head):hover,
.idx__row:not(.idx__row--head):hover .mono { color: var(--on-lime); }
.idx__row .t {
  font-family: var(--f-display);
  font-stretch: 118%;
  font-weight: 800;
  font-size: clamp(18px, 2vw, 32px);
  letter-spacing: -0.015em;
  text-transform: uppercase;
  line-height: 1.05;
  transition: transform 0.45s var(--ease);
}
.idx__row:not(.idx__row--head):hover .t { transform: translateX(12px); }
.idx__row .s { display: inline-flex; align-items: center; gap: 7px; justify-self: start; border: 1px solid currentColor; padding: 4px 9px; }
.idx__row.is-active .s { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.idx__row.is-done .t { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--acc); }
.idx__row .mono { color: var(--ink-2); transition: color 0.3s; }
.idx__row .n.mono { color: var(--acc-text); }
.idx__row.is-active { background: linear-gradient(90deg, var(--lime) 0 4px, transparent 4px); }
.idx__row.is-active .t { padding-left: 0; }

/* ─── CLASSIFIED ───────────────────────────────────── */
.cls { position: relative; }
.cls__stage {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 8vh var(--pad);
}
.cls__ascii { position: absolute; inset: 0; width: 100%; height: 100%; }
.cls__card {
  position: relative;
  width: min(460px, 100%);
  background: var(--side-bg);
  color: #f1f2ec;
  padding: 0 0 18px;
  border: 1px solid var(--side-fg);
  box-shadow: 10px 10px 0 var(--lime);
}
.cls__card-head {
  display: flex; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(241, 242, 236, 0.2);
}
.cls__card-head span:first-child { color: var(--on-lime); background: var(--lime); padding: 2px 8px; margin: -2px 0 -2px -8px; }
.cls__q {
  margin: 0; padding: 24px 14px 10px;
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(28px, 3vw, 42px); letter-spacing: -0.02em; line-height: 0.98; text-transform: uppercase;
  color: var(--side-fg);
}
.cls__txt { margin: 0; padding: 0 14px 18px; color: rgba(241, 242, 236, 0.62); text-transform: none; font-size: 12px; }
.cls__decrypt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 0 14px; }
.cls__decrypt .pbar { border-color: var(--side-fg); }
.cls__decrypt .pbar i { background: repeating-linear-gradient(90deg, var(--side-fg) 0 5px, transparent 5px 7px); }
.cls__decrypt [data-decrypt-pct] { font-variant-numeric: tabular-nums; min-width: 60px; text-align: right; }

/* ─── FOOTER ───────────────────────────────────────── */
.ftr { position: relative; padding: 0 var(--pad) 18px; overflow: hidden; }
.ftr__meta, .ftr__base { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 14px 0; color: var(--ink-2); }
.ftr__meta a { justify-self: end; color: var(--on-lime); background: var(--lime); padding: 2px 8px; }
.ftr__base { grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.ftr__base span:last-child { text-align: right; }
.ftr__base span:nth-child(2) { text-align: center; }
.ftr__mark { display: block; width: 100%; height: auto; margin: 4vw 0 0; fill: var(--ink); overflow: visible; }
.ftr__mark .glyph { transform-box: fill-box; transform-origin: 50% 100%; }
.ftr__mark--mirror {
  margin: 0.4vw 0 0;
  transform: scaleY(-1);
  fill: var(--lime);
  filter: blur(4px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 75%);
  mask-image: linear-gradient(to top, #000 0%, transparent 75%);
  margin-bottom: -6vw;
}

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 1180px) {
  .hdr__clock { display: none; }
}
@media (max-width: 899.98px) {
  :root { --hdr: 48px; }
  .hdr__nav { display: none; }
  .hdr__cta { flex-basis: auto; padding: 0 16px; }
  .hdr__right { padding: 0 12px; }
  .rail { display: none; }
  .hero { grid-template-columns: 1fr; }
  .aside { display: none; }
  .row--meta { grid-template-columns: 1fr 1fr; }
  .row--meta .cell:nth-child(2) { display: none; }
  .row--range { grid-template-columns: 1fr; }
  .row--data { grid-template-columns: 1fr; }
  .scope { display: none; }
  .params { max-width: none; }
  .bignum { justify-self: stretch; justify-content: space-between; }
  .bignum__lbl { text-align: left; order: -1; }
  .hero__title { font-size: clamp(40px, 14.2vw, 120px); }
  .hero__glow { width: 110vw; height: 90vw; right: -30vw; top: 22vh; }
  .next__foot { flex-direction: column; }
  .next__btn { padding: 12px; }
  .sec-head { grid-template-columns: auto 1fr auto; }
  .ftr__meta { grid-template-columns: 1fr 1fr; }
  .ftr__meta a { justify-self: start; }
  .ftr__base { grid-template-columns: 1fr 1fr; }
  .ftr__base span:nth-child(2) { display: none; }
  .hero__scroll { display: none; }
  .idx__row { grid-template-columns: 34px 1fr auto; row-gap: 6px; }
  .idx__row--head { display: none; }
  .idx__row > :nth-child(2), .idx__row > :nth-child(4) { display: none; }
  .idx__row .t { grid-column: 2 / 4; grid-row: 1; }
  .idx__row > :nth-child(5) { grid-column: 2; grid-row: 2; }
  .idx__row > :nth-child(6) { grid-column: 3; grid-row: 2; text-align: right; }
  .idx__row > :nth-child(7) { grid-column: 2 / 4; grid-row: 3; }
  .idx__row > :nth-child(1) { grid-row: 1; align-self: start; padding-top: 4px; }
}

/* ─── Reduced motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .grain { animation: none; }
}
