/* ============================================================
   BIRO 404 — SIGNAL HOMEPAGE (R404_SIGNAL_VIDEO_HOME_R01)
   Core: near-black world, luminous gold signal, Archivo + IBM Plex Mono
   ============================================================ */

/* ---------- Fonts (self-hosted, latin + latin-ext) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/Archivo-100-900-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/Archivo-100-900-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/IBMPlexMono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/IBMPlexMono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/IBMPlexMono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/IBMPlexMono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #050505;
  --bg-2: #0a0a0b;
  --panel: #101011;
  --line: rgba(244, 240, 230, 0.09);
  --line-strong: rgba(244, 240, 230, 0.16);

  --ink: #f4f0e6;
  --muted: #b7b2a6;
  --dim: #8b877b;

  --gold: #e9b850;
  --gold-hi: #ffe2a0;
  --gold-deep: #9a712c;
  --yellow: #f2c230;

  --font-d: 'Archivo', 'Segoe UI', sans-serif;
  --font-m: 'IBM Plex Mono', 'Consolas', monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);

  --pad-x: clamp(20px, 5.2vw, 88px);
  --max-w: 1520px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #2e2c26 #0a0a0b;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-d);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: rgba(233, 184, 80, 0.28); color: var(--ink); }

.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* Mono utility label */
.tag {
  font-family: var(--font-m);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-m);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px 2px rgba(233, 184, 80, 0.55);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 999px;
  font-family: var(--font-d);
  font-weight: 640;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 17px 12px 17px 26px;
  transition: transform 180ms var(--ease-out), background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn .arr {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: transform 220ms var(--ease-out);
}
.btn .arr svg { width: 14px; height: 14px; }
.btn:active { transform: scale(0.97); }

.btn-gold {
  background: var(--yellow);
  color: #131208;
}
.btn-gold .arr { background: rgba(19, 18, 8, 0.12); }
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover { background: #ffd44d; }
  .btn:hover .arr { transform: translateX(2px); }
}

.btn-ghost {
  background: rgba(244, 240, 230, 0.02);
  border-color: var(--line-strong);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.btn-ghost .arr { background: rgba(244, 240, 230, 0.07); }
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { border-color: rgba(244, 240, 230, 0.34); background: rgba(244, 240, 230, 0.05); }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background-color 320ms ease, border-color 320ms ease, backdrop-filter 320ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-in {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}
.brand-word {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.045em;
}
.brand-word em {
  font-style: normal;
  color: var(--yellow);
}
.brand-sub {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.315em;
  text-transform: uppercase;
  color: #cdc8bb;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 520;
  color: var(--muted);
  transition: color 160ms ease;
  padding: 6px 2px;
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--ink); }
}

.nav-cta {
  padding: 13px 10px 13px 20px;
  font-size: 14px;
}
.nav-cta .arr { width: 26px; height: 26px; }
.nav-cta .arr svg { width: 12px; height: 12px; }

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 17px;
  height: 1.6px;
  background: var(--ink);
  transition: transform 320ms var(--ease-io), opacity 200ms ease;
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-x);
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 360ms var(--ease-out), visibility 0s 360ms;
}
.menu.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 360ms var(--ease-out);
}
.menu a {
  font-size: clamp(30px, 8.4vw, 40px);
  font-weight: 760;
  letter-spacing: -0.01em;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.menu.open a { opacity: 1; transform: none; }
.menu.open a:nth-child(1) { transition-delay: 60ms; }
.menu.open a:nth-child(2) { transition-delay: 110ms; }
.menu.open a:nth-child(3) { transition-delay: 160ms; }
.menu.open a:nth-child(4) { transition-delay: 210ms; }
.menu.open a:nth-child(5) { transition-delay: 260ms; }
.menu a .tag { display: block; margin-bottom: 4px; }

/* ============================================================
   HERO — full-viewport scroll-scrubbed 404 signal
   ============================================================ */
.hero-track {
  /* Scroll runway: ~2.6 viewport-heights of scrub distance */
  height: 360svh;
  position: relative;
}

.hero {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: clip;
  background: var(--bg);
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 46%;
}
/* Invisible legibility scrim: melts into the video's own darkness */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,5,0.78) 0%, rgba(5,5,5,0.42) 30%, rgba(5,5,5,0) 55%),
    linear-gradient(180deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0) 22%, rgba(5,5,5,0) 78%, rgba(5,5,5,0.5) 100%);
  pointer-events: none;
}

.hero-in {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy {
  max-width: 620px;
  display: grid;
  gap: 28px;
}

.hero h1 {
  font-size: clamp(42px, 4.7vw, 78px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.hero h1 .q { color: var(--muted); font-weight: 640; }
.hero h1 .found {
  color: var(--muted);
  font-weight: 640;
  transition: color 900ms ease, text-shadow 900ms ease;
}
.hero h1 .found.lit {
  color: var(--gold-hi);
  text-shadow: 0 0 26px rgba(233, 184, 80, 0.45);
}

.hero-sub {
  font-size: clamp(16.5px, 1.25vw, 19px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 480px;
}
.hero-sub strong { color: var(--ink); font-weight: 620; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* load-in choreography (not scroll-linked) */
.hero-copy > * {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 1100ms var(--ease-out) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: 300ms; }
.hero-copy > *:nth-child(2) { animation-delay: 480ms; }
.hero-copy > *:nth-child(3) { animation-delay: 680ms; }
.hero-copy > *:nth-child(4) { animation-delay: 880ms; }
@keyframes heroIn {
  to { opacity: 1; transform: none; }
}

/* Signal readout — bottom right */
.hero-signal {
  position: absolute;
  z-index: 3;
  right: var(--pad-x);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-m);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--dim);
  transition: color 500ms ease;
  text-shadow: 0 1px 10px rgba(5, 5, 5, 0.9), 0 0 22px rgba(5, 5, 5, 0.7);
}
.hero-signal .bar {
  width: 120px;
  height: 2px;
  background: rgba(244, 240, 230, 0.14);
  overflow: hidden;
}
.hero-signal .bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold);
  transform-origin: left center;
  transform: scaleX(0);
  box-shadow: 0 0 10px rgba(233, 184, 80, 0.8);
}
.hero-signal.done { color: var(--gold); }

/* Scroll hint — bottom left */
.hero-hint {
  position: absolute;
  z-index: 3;
  left: var(--pad-x);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-m);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity 600ms ease;
}
.hero-hint .line {
  width: 52px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.hero-hint .line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  animation: hintSweep 2.2s var(--ease-io) infinite;
}
@keyframes hintSweep {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}
.hero-hint.gone { opacity: 0; }

/* Reduced-motion / no-JS hero fallback poster */
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 46%;
  display: none;
}

/* ---------- Mobile hero: directed stage (16:9 source, portrait screen) ----------
   A portrait cover-crop would slice the 404 into fragments, so the phone
   composition is: copy on top of the darkness, the video as a right-anchored
   cinematic stage in the lower half showing the full 404 (crop x≈40–100%). */
@media (max-aspect-ratio: 1/1) {
  .hero-in {
    justify-content: flex-start;
    padding-top: max(96px, 13svh);
  }
  .hero-copy { gap: 20px; }
  .hero h1 { font-size: clamp(34px, 10vw, 54px); }
  .hero-sub { font-size: 15.5px; }

  .hero-media {
    inset: auto 0 0 0;
    height: auto;
    aspect-ratio: 1.067; /* shows the right ~60% of the 16:9 frame: the full 404 */
    max-height: min(52svh, calc(100svh - 450px));
    overflow: clip;
    /* top edge melts into the page black — invisible against the dark frame */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 16%);
  }
  .hero-video, .hero-poster {
    position: absolute;
    inset: 0 0 0 auto;
    height: 100%;
    width: auto;
    max-width: none;
  }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(5,5,5,0.62) 0%, rgba(5,5,5,0.1) 34%, rgba(5,5,5,0) 60%);
  }
  .hero-signal { bottom: 20px; left: var(--pad-x); right: auto; }
  .hero-signal .bar { width: 64px; }
  .hero-hint { display: none; }
}

/* Short portrait screens: compact the copy so the stage keeps presence */
@media (max-aspect-ratio: 1/1) and (max-height: 700px) {
  .hero-in { padding-top: 84px; }
  .hero-copy { gap: 14px; }
  .hero h1 { font-size: clamp(27px, 8.4vw, 38px); }
  .hero-sub { font-size: 14px; }
  .btn { padding: 13px 10px 13px 20px; font-size: 14px; }
  .btn .arr { width: 26px; height: 26px; }
}

/* ============================================================
   CHAPTERS (shared)
   ============================================================ */
.chapter {
  position: relative;
  padding: clamp(110px, 12vw, 180px) 0;
}
.chapter-head {
  display: grid;
  gap: 22px;
  max-width: 760px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.chapter-head h2 {
  font-size: clamp(32px, 3.4vw, 56px);
  font-weight: 780;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.chapter-head p {
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 18.5px);
  max-width: 560px;
}

/* Reveal system — one physics: power-up */
.rv {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(5px);
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out),
    filter 900ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.rv.on {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ============================================================
   CHAPTER 01 — THE PROBLEM (54%)
   ============================================================ */
.stat {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
}
.stat-num {
  font-weight: 860;
  font-size: clamp(120px, 17vw, 288px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: transparent;
  background-image: radial-gradient(circle, var(--gold) 1.35px, rgba(233, 184, 80, 0.06) 1.75px);
  background-size: 7px 7px;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 32px rgba(233, 184, 80, 0.16));
}
@supports not (background-clip: text) {
  .stat-num { color: var(--gold); background: none; }
}
.stat-copy { display: grid; gap: 24px; }
.stat-copy h2 {
  font-size: clamp(28px, 2.9vw, 46px);
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -0.018em;
}
.stat-copy p { color: var(--muted); max-width: 480px; }
.stat-src {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ============================================================
   CHAPTER 02 — SELECTED WORK
   ============================================================ */
.works-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.works-head .chapter-head { margin-bottom: 0; }
.works-nav { display: flex; gap: 10px; flex: none; }
.works-nav button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(244, 240, 230, 0.02);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 180ms ease, background-color 180ms ease, transform 160ms var(--ease-out), opacity 180ms ease;
}
.works-nav button svg { width: 17px; height: 17px; }
.works-nav button:active { transform: scale(0.94); }
.works-nav button:disabled { opacity: 0.32; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .works-nav button:not(:disabled):hover { border-color: var(--gold); background: rgba(233, 184, 80, 0.06); }
}

.works-strip {
  display: flex;
  gap: clamp(18px, 2vw, 30px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px var(--pad-x) 26px;
  scrollbar-width: none;
  max-width: var(--max-w);
  margin-inline: auto;
}
.works-strip::-webkit-scrollbar { display: none; }

.work {
  flex: none;
  width: min(72vw, 690px);
  scroll-snap-align: start;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  transition: border-color 260ms ease, transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .work:hover { border-color: rgba(233, 184, 80, 0.42); transform: translateY(-4px); }
}
.work-shot {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: #0d0d0e;
}
.work-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}
.work-meta > span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.work-meta .name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.005em;
}
.work-meta .kind {
  font-family: var(--font-m);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 3px;
}
.work-status {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.work-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.work-status.live { color: #9ecf8e; border-color: rgba(158, 207, 142, 0.32); }
.work-status.soon { color: var(--gold); border-color: rgba(233, 184, 80, 0.36); }

@media (max-width: 700px) {
  .work { width: 84vw; }
  .works-head { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   CHAPTER 03 — SYSTEM (equation)
   ============================================================ */
.system { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sys-eq {
  display: flex;
  align-items: stretch;
  gap: clamp(14px, 1.8vw, 26px);
  position: relative;
}
.sys-op {
  align-self: center;
  flex: none;
  font-family: var(--font-m);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 500;
  color: var(--gold);
  text-shadow: 0 0 16px rgba(233, 184, 80, 0.5);
}
.sys-node {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(244, 240, 230, 0.015);
  padding: clamp(24px, 2.6vw, 40px);
  display: grid;
  gap: 14px;
  align-content: start;
  transition: border-color 600ms ease, box-shadow 600ms ease;
}
.sys-node.on {
  border-color: rgba(233, 184, 80, 0.28);
  box-shadow: 0 0 44px rgba(233, 184, 80, 0.06), inset 0 0 30px rgba(233, 184, 80, 0.03);
}
.sys-node .idx {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.sys-node h3 {
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 740;
  letter-spacing: -0.01em;
}
.sys-node p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }

.sys-result {
  margin-top: clamp(36px, 4vw, 56px);
  display: flex;
  justify-content: center;
}
.sys-result-chip {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border-radius: 999px;
  border: 1px solid rgba(233, 184, 80, 0.4);
  background: linear-gradient(180deg, rgba(233, 184, 80, 0.1), rgba(233, 184, 80, 0.03));
  padding: 18px 34px;
  box-shadow: 0 0 60px rgba(233, 184, 80, 0.1);
}
.sys-result-chip .code {
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.sys-result-chip .label {
  font-weight: 760;
  font-size: clamp(19px, 1.9vw, 26px);
  letter-spacing: -0.01em;
  color: var(--gold-hi);
}

@media (max-width: 900px) {
  .sys-eq { flex-direction: column; align-items: stretch; }
  .sys-op { align-self: center; }
}

/* ============================================================
   CHAPTER 04 — PROOF / OFFER
   ============================================================ */
.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: stretch;
}
.quote-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(28px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: var(--panel);
}
.quote-card blockquote {
  margin: 0;
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.55;
  font-weight: 480;
  color: var(--ink);
  text-wrap: pretty;
}
.quote-card blockquote::before { content: '„'; color: var(--gold); }
.quote-card blockquote::after { content: '“'; color: var(--gold); }
.quote-who { display: grid; gap: 3px; margin-top: auto; }
.quote-who .who { font-weight: 700; font-size: 15.5px; }
.quote-who .role {
  font-family: var(--font-m);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.price-card {
  border: 1px solid rgba(233, 184, 80, 0.3);
  border-radius: 14px;
  padding: clamp(28px, 3vw, 48px);
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(233, 184, 80, 0.1), transparent 55%),
    var(--panel);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.price-card .lead { font-weight: 760; font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.015em; line-height: 1.15; }
.price-list { display: grid; gap: 0; margin: 4px 0; }
.price-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.price-item:last-child { border-bottom: 0; }
.price-item .n { font-weight: 620; font-size: 16px; }
.price-item .d {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
  text-align: right;
}
.price-note { color: var(--muted); font-size: 14.5px; }
.price-card .btn { align-self: flex-start; margin-top: 4px; }

@media (max-width: 900px) {
  .offer-grid { grid-template-columns: 1fr; }
}
.offer-grid > * { min-width: 0; }

/* Tiny screens: CTAs become full-width rows — nothing may overflow */
@media (max-width: 380px) {
  .hero-ctas .btn, .price-card .btn, .final-ctas .btn {
    width: 100%;
    justify-content: space-between;
    white-space: normal;
    text-align: left;
    font-size: 14px;
  }
  .hero-ctas, .final-ctas { width: 100%; }
}

/* ============================================================
   FINAL CTA — return of the signal
   ============================================================ */
.final {
  position: relative;
  overflow: clip;
  border-top: 1px solid var(--line);
  padding: clamp(130px, 15vw, 220px) 0;
  text-align: center;
}
.final-bg {
  position: absolute;
  inset: 0;
  background-image: url('../video/poster-final.jpg');
  background-size: cover;
  background-position: 62% 42%;
  opacity: 0.5;
}
.final-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(5,5,5,0.66) 30%, rgba(5,5,5,0.55) 62%, var(--bg) 100%);
}
.final-in {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 30px;
}
.final h2 {
  font-size: clamp(38px, 4.6vw, 76px);
  font-weight: 820;
  letter-spacing: -0.024em;
  line-height: 1.02;
  max-width: 820px;
  text-wrap: balance;
}
.final h2 em { font-style: normal; color: var(--gold-hi); text-shadow: 0 0 34px rgba(233,184,80,0.4); }
.final p { color: var(--muted); max-width: 520px; font-size: clamp(16px, 1.2vw, 18px); }
.final-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer mini ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}
.foot-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot .tag a { color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .foot .tag a:hover { color: var(--ink); }
}

/* ============================================================
   Responsive: nav collapse
   ============================================================ */
@media (max-width: 940px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ============================================================
   Reduced motion — motion is removed, the found state remains
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-track { height: 100svh; }
  .hero { position: relative; }
  .hero-video { display: none; }
  .hero-poster { display: block; }
  .hero-hint .line::after { animation: none; }
  .hero-copy > * { animation-duration: 1ms; animation-delay: 0ms; }
  .rv { transition-duration: 1ms; transition-delay: 0ms; transform: none; filter: none; }
  .btn, .work, .works-nav button { transition: none; }
}
