/* ============================================================================
   DotStudio — darkroom / terminal art-gallery
   Monospace-forward, halftone + scanline textures, CRT-green phosphor.
============================================================================ */

:root {
  --bg:        #06080f;
  --bg-1:      #0a0e1a;
  --bg-2:      #0e1424;
  --panel:     rgba(16,22,38,0.66);
  --ink:       #dbe7e3;
  --ink-soft:  #aab9b5;
  --mut:       #74867f;
  --mut-2:     #56655f;
  --line:      rgba(120,170,150,0.13);
  --line-2:    rgba(120,170,150,0.22);
  --green:     #46ffa0;
  --green-hot: #2eff5c;
  --green-dk:  #0a3a26;
  --cyan:      #33e6ff;
  --amber:     #ffb833;
  --paper:     #ece9df;

  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  --r: 4px;
  --r-lg: 8px;
  --glow: 0 0 0 1px rgba(70,255,160,0.35), 0 8px 40px -12px rgba(70,255,160,0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: clip;            /* clip horizontal overflow without breaking position:sticky */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.04; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
::selection { background: rgba(70,255,160,0.28); color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.btn:focus-visible { outline-offset: 4px; }

/* ----------------------------- backdrop -------------------------------- */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background:
  radial-gradient(120% 80% at 50% -10%, #0c1530 0%, var(--bg) 55%); }
.bd-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.bd-a { width: 60vw; height: 60vw; left: -16vw; top: -18vw;
  background: radial-gradient(circle, rgba(40,110,255,0.30), transparent 68%); animation: drift 26s ease-in-out infinite; }
.bd-b { width: 62vw; height: 62vw; right: -20vw; top: 32vh;
  background: radial-gradient(circle, rgba(70,255,160,0.18), transparent 70%); animation: drift 32s ease-in-out infinite reverse; }
.bd-halftone { position: absolute; inset: 0;
  background-image: radial-gradient(circle at center, rgba(80,255,170,0.5) 0, rgba(80,255,170,0.5) 1px, transparent 1.7px);
  background-size: 24px 24px; opacity: 0.06;
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 0%, transparent 72%); }
.bd-scan { position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px);
  opacity: 0.6; mix-blend-mode: overlay; }
.bd-grain { position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.04; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vw,3vh) scale(1.08); } }

/* ------------------------------- nav ----------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px var(--pad);
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled { background: rgba(6,8,15,0.72); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.brand-name { font-weight: 500; font-size: 1.06rem; letter-spacing: -0.01em; }
.brand-name b { font-weight: 700; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.02em;
  position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px;
  background: var(--green); transition: width .25s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; background: none; border: 1px solid var(--line-2); border-radius: var(--r);
  width: 34px; height: 30px; flex-direction: column; gap: 4px; align-items: center; justify-content: center; cursor: pointer; }
.nav-burger span { width: 15px; height: 1.6px; background: var(--ink); display: block; transition: .25s; }

/* ------------------------------ buttons -------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 0.85rem;
  font-weight: 500; padding: 11px 18px; border-radius: var(--r); border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #042417; font-weight: 700;
  box-shadow: 0 6px 26px -8px rgba(70,255,160,0.6), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn-primary:hover { background: #62ffb0; box-shadow: 0 10px 36px -8px rgba(70,255,160,0.75); }
.btn-ghost { background: rgba(255,255,255,0.02); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--green); color: #fff; box-shadow: 0 0 24px -8px rgba(70,255,160,0.5); }
.btn-sm { padding: 8px 13px; font-size: 0.78rem; }
.btn-lg { padding: 14px 26px; font-size: 0.96rem; }

/* ----------------------------- sections -------------------------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px,11vw,140px) var(--pad) 0; }
.section-head { max-width: 660px; margin-bottom: clamp(34px,5vw,56px); }
.kick { display: inline-block; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green); margin-bottom: 16px; }
.kick::before { content: "// "; color: var(--mut); }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; max-width: 60ch; }

/* ------------------------------- hero ---------------------------------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(116px,16vw,168px) var(--pad) 0;
  display: grid; grid-template-columns: 1fr 1.04fr; gap: clamp(28px,4vw,60px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.02em; color: var(--ink-soft); padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 100px; background: rgba(255,255,255,0.02); margin-bottom: 22px; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(70,255,160,0.6);
  animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(70,255,160,0.55); } 70% { box-shadow: 0 0 0 7px rgba(70,255,160,0); } 100% { box-shadow: 0 0 0 0 rgba(70,255,160,0); } }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 20px; letter-spacing: -0.035em; }
.grad-word { background: linear-gradient(105deg, #1d6cff 0%, var(--cyan) 38%, var(--green) 72%, #d7ffe9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; position: relative;
  filter: drop-shadow(0 2px 26px rgba(70,255,160,0.28)); }
.lede { color: var(--ink-soft); font-size: 1.08rem; max-width: 50ch; margin: 0 0 28px; }
.lede b { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-meta { font-family: var(--mono); font-size: 0.76rem; color: var(--mut); letter-spacing: 0.01em; }

/* ----- the framed live exhibit ----- */
.hero-stage { display: flex; flex-direction: column; gap: 14px; }
.frame { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg);
  padding: 12px; background: linear-gradient(150deg, #161d2e, #0a0e18);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.9), inset 0 0 0 1px rgba(255,255,255,0.03),
              inset 0 1px 0 rgba(255,255,255,0.06); }
.frame canvas { display: block; width: 100%; height: 100%; border-radius: 3px; background: #05080f;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(0,0,0,0.5); }
.frame-scan { position: absolute; inset: 12px; border-radius: 3px; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply; opacity: 0.5; }
.frame-tag { position: absolute; right: 18px; bottom: 18px; font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.05em; color: var(--green); background: rgba(4,8,14,0.7); border: 1px solid var(--line);
  padding: 4px 8px; border-radius: 3px; backdrop-filter: blur(4px); text-transform: lowercase; }
.placard { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: var(--r);
  border: 1px solid var(--line); background: rgba(10,14,24,0.5); }
.placard-no { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.22em; color: var(--mut); }
.placard-name { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }
.placard-sub { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft); }
.fx-switch { display: flex; flex-wrap: wrap; gap: 7px; }
.fx-chip { font-family: var(--mono); font-size: 0.74rem; padding: 6px 11px; border-radius: 100px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.02); color: var(--ink-soft); cursor: pointer;
  transition: .18s; }
.fx-chip:hover { color: #fff; border-color: var(--line-2); transform: translateY(-1px); }
.fx-chip.on { background: var(--green); color: #042417; border-color: var(--green); font-weight: 700; }

/* ------------------------------ feed strip ------------------------------ */
.feed { max-width: var(--maxw); margin: clamp(56px,8vw,90px) auto 0; padding: 22px var(--pad);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-family: var(--mono); }
.feed-lead { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut); }
.feed-items { display: flex; gap: 10px; flex-wrap: wrap; }
.feed-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ink);
  padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 100px; background: rgba(255,255,255,0.02); }
.feed-pill svg { color: var(--green); }
.feed-mut { color: var(--mut); border-style: dashed; }
.feed-arrow { color: var(--green); font-size: 1.1rem; }
.feed-out { font-size: 0.82rem; color: var(--green); letter-spacing: 0.02em; }

/* =============================== the flow =============================== */
/* one full-bleed field that morphs through effects as you scroll */
.flow { position: relative; }
.flow-head { max-width: 640px; margin: 0 auto; text-align: center;
  padding: clamp(72px,11vw,140px) var(--pad) clamp(22px,4vw,40px); }
.flow-head h2 { font-size: clamp(2rem,5vw,3.4rem); margin-bottom: 14px; }
.flow-head p { color: var(--ink-soft); font-size: 1.02rem; }

.flow-track { position: relative; height: 260vh; }
.flow-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: #04060d;
  box-shadow: inset 0 0 0 1px var(--line), inset 0 30px 60px -40px rgba(0,0,0,0.9); }
.flow-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.flow-front { will-change: opacity; }            /* crossfade opacity driven by JS */

.flow-vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(125% 105% at 50% 42%, transparent 52%, rgba(2,4,9,0.82) 100%); }
.flow-scan { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: overlay;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 3px); }

/* minimal caption HUD, lower-left — frosted plate so text stays legible over the field */
.flow-cap { position: absolute; left: clamp(16px,5vw,52px); bottom: clamp(22px,6vh,52px); margin: 0;
  display: flex; align-items: flex-end; gap: 16px; z-index: 3;
  padding: 13px 20px 12px; border-radius: 13px;
  background: linear-gradient(180deg, rgba(6,9,16,0.40), rgba(3,5,10,0.62));
  backdrop-filter: blur(18px) saturate(125%); -webkit-backdrop-filter: blur(18px) saturate(125%);
  border: 1px solid rgba(130,180,160,0.16);
  box-shadow: 0 18px 54px -20px rgba(0,0,0,0.9);
  text-shadow: 0 1px 12px rgba(0,0,0,0.7); }
.flow-count { font-family: var(--mono); font-size: 0.78rem; color: var(--mut); display: flex; align-items: baseline; gap: 5px; }
.flow-count b { font-size: clamp(2rem,7vw,2.7rem); font-weight: 700; line-height: 1; color: var(--green);
  letter-spacing: -0.02em; }
.flow-cap figcaption { display: flex; flex-direction: column; gap: 5px; padding-bottom: 5px; }
.flow-name { font-size: clamp(1.3rem,2.6vw,1.95rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.flow-medium { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green); opacity: 0.85; }

/* progress ticks, right edge */
.flow-ticks { position: absolute; right: clamp(16px,3.4vw,46px); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 9px; z-index: 3; }
.flow-ticks i { width: 2px; height: 26px; border-radius: 2px; background: rgba(255,255,255,0.14); transition: .3s; }
.flow-ticks i.on { background: var(--green); box-shadow: 0 0 10px rgba(70,255,160,0.7); height: 36px; }

.flow-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--mut);
  transition: opacity .4s ease; animation: hintPulse 2.4s ease-in-out infinite; }
.flow-hint.gone { opacity: 0; }
@keyframes hintPulse { 0%,100% { opacity: .35; } 50% { opacity: .85; } }

/* ----------------------------- collection ------------------------------- */
.section-collection { max-width: 100%; padding-left: 0; padding-right: 0; }
.section-collection .section-head { max-width: 660px; margin-left: auto; margin-right: auto;
  padding-left: var(--pad); padding-right: var(--pad); }
.filmstrip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px var(--pad) 20px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  counter-reset: plate; }
.filmstrip::-webkit-scrollbar { height: 8px; }
.filmstrip::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 100px; }
.print { flex: 0 0 auto; width: clamp(240px, 34vw, 360px); scroll-snap-align: center; counter-increment: plate;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #0a0e18;
  transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; }
.print:hover { transform: translateY(-4px) scale(1.012); border-color: var(--line-2);
  box-shadow: 0 24px 60px -26px rgba(0,0,0,0.9); }
.print img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%;
  filter: saturate(1.05) contrast(1.04); }
.print figcaption { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; position: relative;
  border-top: 1px solid var(--line); }
.print figcaption::after { content: "PL." counter(plate, decimal-leading-zero); position: absolute;
  top: 12px; right: 14px; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--mut-2); }
.print figcaption b { font-weight: 600; font-size: 0.94rem; }
.print figcaption span { font-family: var(--mono); font-size: 0.68rem; color: var(--mut); }
.strip-hint { text-align: right; max-width: var(--maxw); margin: 4px auto 0; padding: 0 var(--pad);
  font-family: var(--mono); font-size: 0.7rem; color: var(--mut); letter-spacing: 0.1em; }

/* -------------------------------- lab ----------------------------------- */
.lab { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(20px,3vw,36px); align-items: start; }
.lab-stage { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 84px; }
.frame-lab { aspect-ratio: 16 / 10; }
.lab-readout { font-family: var(--mono); font-size: 0.72rem; color: var(--green); background: rgba(4,8,14,0.6);
  border: 1px solid var(--line); border-radius: var(--r); padding: 9px 13px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.lab-readout::before { content: "› "; color: var(--mut); }
.lab-panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel);
  backdrop-filter: blur(10px); padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.lab-block { display: flex; flex-direction: column; gap: 11px; }
.lab-h { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mut); }
.lab-row { display: flex; flex-wrap: wrap; gap: 7px; }
.lab-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.lab-src, .lab-fx { font-family: var(--mono); font-size: 0.74rem; padding: 8px 10px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.02); color: var(--ink-soft); cursor: pointer;
  transition: .16s; text-align: center; }
.lab-src.on, .lab-fx.on { background: rgba(70,255,160,0.12); border-color: var(--green); color: var(--green); }
.lab-src:hover, .lab-fx:hover { color: #fff; border-color: var(--line-2); }
.lab-src.on:hover, .lab-fx.on:hover { color: var(--green); }
.lab-sliders { display: flex; flex-direction: column; gap: 14px; }
.lab-field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; }
.lab-field .lab-label { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-soft); }
.lab-field .lab-val { font-family: var(--mono); font-size: 0.76rem; color: var(--green); justify-self: end; }
.lab-field input[type=range] { grid-column: 1 / -1; -webkit-appearance: none; appearance: none; width: 100%;
  height: 3px; border-radius: 100px; background: linear-gradient(90deg, var(--green), var(--line-2)); outline: none; }
.lab-field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px;
  border-radius: 50%; background: var(--green); cursor: pointer; box-shadow: 0 0 0 4px rgba(70,255,160,0.18), 0 2px 6px rgba(0,0,0,.5); }
.lab-field input[type=range]::-moz-range-thumb { width: 15px; height: 15px; border: none; border-radius: 50%;
  background: var(--green); cursor: pointer; box-shadow: 0 0 0 4px rgba(70,255,160,0.18); }
.lab-field.is-toggle { grid-template-columns: 1fr auto; }
.lab-toggle { position: relative; display: inline-block; width: 38px; height: 21px; }
.lab-toggle input { opacity: 0; width: 0; height: 0; }
.lab-toggle .tk { position: absolute; inset: 0; border-radius: 100px; background: rgba(255,255,255,0.08);
  border: 1px solid var(--line-2); transition: .2s; cursor: pointer; }
.lab-toggle .tk::before { content: ""; position: absolute; width: 15px; height: 15px; left: 2px; top: 2px;
  border-radius: 50%; background: var(--mut); transition: .2s; }
.lab-toggle input:checked + .tk { background: rgba(70,255,160,0.2); border-color: var(--green); }
.lab-toggle input:checked + .tk::before { transform: translateX(17px); background: var(--green); }
.lab-cta { justify-content: center; margin-top: 2px; }

/* ------------------------------- how ------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px;
  background: linear-gradient(170deg, rgba(16,22,38,0.5), rgba(8,11,20,0.4)); position: relative; overflow: hidden; }
.step::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 100% 0%, rgba(70,255,160,0.07), transparent 50%); }
.step-no { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--green); opacity: 0.5;
  letter-spacing: 0.05em; }
.step h3 { font-size: 1.2rem; margin: 12px 0 8px; }
.step p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }
.step code { font-family: var(--mono); font-size: 0.84em; color: var(--cyan); background: rgba(51,230,255,0.08);
  padding: 1px 5px; border-radius: 3px; }

/* ----------------------------- catalog ---------------------------------- */
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 36px;
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px,4vw,40px);
  background: linear-gradient(170deg, rgba(14,20,36,0.4), rgba(8,11,20,0.3)); }
.cat-col h4 { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cat-col h4:not(:first-child) { margin-top: 24px; }
.cat-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-col li { font-family: var(--mono); font-size: 0.86rem; color: var(--ink-soft); padding: 3px 0 3px 16px;
  position: relative; transition: color .15s; }
.cat-col li::before { content: "·"; position: absolute; left: 3px; color: var(--mut); }
.cat-col li:hover { color: var(--green); }
.cat-col li:hover::before { color: var(--green); }

/* ------------------------------ download -------------------------------- */
.download { display: flex; justify-content: center; }
.dl-card { text-align: center; max-width: 560px; width: 100%; padding: clamp(32px,5vw,48px);
  border: 1px solid var(--line-2); border-radius: 14px;
  background: linear-gradient(170deg, rgba(18,26,44,0.7), rgba(8,11,20,0.7));
  box-shadow: 0 40px 100px -40px rgba(0,0,0,0.9); position: relative; overflow: hidden; }
.dl-card::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(70,255,160,0.12), transparent 60%); }
.dl-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(circle at center, rgba(80,255,170,0.4) 0, rgba(80,255,170,0.4) 1px, transparent 1.6px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 100%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 50% at 50% 100%, #000, transparent 70%); }
.dl-mark img { width: 76px; height: 76px; border-radius: 18px; margin: 0 auto 18px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.8), 0 0 0 1px var(--line); position: relative; }
.dl-card h2 { font-size: clamp(1.6rem,3vw,2.2rem); position: relative; }
.dl-sub { color: var(--ink-soft); margin: 10px auto 24px; max-width: 42ch; position: relative; }
.dl-card .btn { position: relative; }
.dl-meta { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px;
  font-family: var(--mono); font-size: 0.78rem; color: var(--mut); position: relative; }
.dl-meta a { color: var(--green); }
.dl-meta a:hover { text-decoration: underline; }
.dl-meta .sep { color: var(--mut-2); }
.dl-note { font-family: var(--mono); font-size: 0.72rem; color: var(--mut-2); margin: 18px auto 0; max-width: 44ch;
  line-height: 1.6; position: relative; }
.dl-note b { color: var(--ink-soft); }

/* ------------------------------- footer --------------------------------- */
.footer { max-width: var(--maxw); margin: clamp(80px,12vw,140px) auto 0; padding: 32px var(--pad);
  border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.f-brand { display: flex; align-items: center; gap: 12px; }
.f-brand img { width: 40px; height: 40px; border-radius: 10px; }
.f-name { font-weight: 600; }
.f-tag { font-family: var(--mono); font-size: 0.76rem; color: var(--mut); }
.f-links { display: flex; gap: 22px; flex-wrap: wrap; }
.f-links a { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); transition: color .2s; }
.f-links a:hover { color: var(--green); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px;
  padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.72rem; color: var(--mut-2); }

/* ------------------------------- reveal --------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ----------------------------- responsive ------------------------------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: clamp(104px,22vw,128px); }
  .hero-stage { order: -1; }
  .lab { grid-template-columns: 1fr; }
  .lab-stage { position: static; }
  .steps, .catalog { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { position: fixed; inset: 56px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(6,8,15,0.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px; transform: translateY(-130%); transition: transform .3s; }
  body.nav-open .nav-links { transform: none; }
  .nav-links a { padding: 13px 0; font-size: 0.92rem; border-bottom: 1px solid var(--line); }
  .nav-burger { display: flex; }
  body.nav-open .nav-burger span:first-child { transform: translateY(3px) rotate(45deg); }
  body.nav-open .nav-burger span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .flow-track { height: 220vh; }
  .flow-cap { gap: 13px; left: 18px; bottom: 22px; }
  .flow-ticks { right: 14px; gap: 7px; }
  .flow-ticks i { height: 20px; }
  .flow-ticks i.on { height: 27px; }
  .lab-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .catalog { grid-template-columns: 1fr; }
  .feed { gap: 10px; }
  .feed-arrow, .feed-out { display: none; }
  .footer-base { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  /* no sticky scroll-morph: show one static field at a normal height */
  .flow-track { height: auto; }
  .flow-stage { position: static; height: clamp(440px, 72vh, 680px); }
  .flow-hint { display: none; }
}
