/* ============================================================
   SITEBYJONAH — ink / molten gold / bone
   Display: Big Shoulders Display · Body: Archivo · Utility: IBM Plex Mono
   ============================================================ */

:root {
  --ink: #0a0a0a;
  --ink-2: #12100a;
  --ink-3: #171308;
  --gold: #e3a444;
  --gold-hot: #ffd98a;
  --gold-deep: #7a5518;
  --bone: #ece2d0;
  --bone-dim: rgba(236, 226, 208, 0.56);
  --line: rgba(212, 160, 60, 0.18);
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
  --rail-w: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--ink); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- film grain ---------- */
body::after {
  content: "";
  position: fixed;
  inset: -100px;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%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)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-40px, 30px); }
  50% { transform: translate(30px, -45px); }
  75% { transform: translate(-25px, -20px); }
  100% { transform: translate(0, 0); }
}

/* ---------- preloader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 28px;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
#loader.done { opacity: 0; visibility: hidden; }
#loader .slate {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--gold);
}
#loader .pct {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(72px, 16vw, 160px);
  line-height: 1;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
#loader .bar {
  width: min(320px, 60vw); height: 1px;
  background: var(--line);
  position: relative; overflow: hidden;
}
#loader .bar i {
  position: absolute; inset: 0;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
  display: block;
}

/* ---------- custom cursor ---------- */
#cursor, #cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  #cursor {
    display: block; position: fixed; z-index: 2500;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold-hot);
    top: 0; left: 0; pointer-events: none;
    transform: translate(-50%, -50%);
  }
  #cursor-ring {
    display: block; position: fixed; z-index: 2499;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(227, 164, 68, 0.5);
    top: 0; left: 0; pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
      border-color 0.25s;
  }
  body.cursor-hover #cursor-ring {
    width: 56px; height: 56px;
    border-color: var(--gold-hot);
  }
}

/* ---------- header ---------- */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
  mix-blend-mode: normal;
  transition: transform 0.4s var(--ease-out);
}
#site-header.hidden { transform: translateY(-110%); }
.wordmark {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--bone);
  border: 1px solid var(--gold-deep);
  padding: 8px 12px 8px 16px;
}
.wordmark b { color: var(--gold); font-weight: 500; }
#site-header nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
#site-header nav a.navlink {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--bone-dim);
  transition: color 0.25s;
}
#site-header nav a.navlink:hover { color: var(--gold-hot); }
@media (max-width: 720px) {
  #site-header nav a.navlink { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--gold-deep);
  color: var(--bone);
  position: relative;
  overflow: hidden;
  transition: color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s var(--ease-out);
  z-index: -1;
}
.btn:hover { color: var(--ink); border-color: var(--gold); }
.btn:hover::before { transform: scaleY(1); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.primary::before { background: var(--gold-hot); }
.btn.primary:hover { border-color: var(--gold-hot); }

/* ---------- progress rail ---------- */
#rail {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 800;
  width: var(--rail-w);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 26px;
  pointer-events: none;
}
#rail .track {
  position: absolute; top: 12vh; bottom: 12vh; right: calc(var(--rail-w) / 2);
  width: 1px; background: var(--line);
}
#rail .track i {
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--gold);
  height: 0%;
  display: block;
}
#rail button {
  pointer-events: auto;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--bone-dim);
  background: var(--ink);
  padding: 4px 6px;
  border: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
  writing-mode: vertical-rl;
}
#rail button.active { color: var(--gold-hot); border-color: var(--gold-deep); }
@media (max-width: 1000px) { #rail { display: none; } }

/* ---------- generic section scaffolding ---------- */
.reel { position: relative; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold-deep); }
.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
  color: var(--bone);
}
.copy { color: var(--bone-dim); max-width: 54ch; }

.bg-video {
  position: absolute; inset: 0; overflow: hidden;
}
.bg-video video {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.bg-video::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--ink) 0%, transparent 18%, transparent 78%, var(--ink) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.25) 55%, rgba(10, 10, 10, 0.55) 100%);
}

/* ---------- REEL 01 · hero ---------- */
#hero { height: 100vh; height: 100svh; overflow: hidden; }
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  background: var(--ink);
}
#hero .scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, transparent 30%, transparent 62%, var(--ink) 100%);
}
#hero .hero-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(20px, 4vw, 48px) clamp(28px, 5vh, 56px);
  pointer-events: none;
}
#hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 14.5vw, 220px);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--bone);
  display: flex; flex-wrap: nowrap;
  white-space: nowrap;
}
#hero h1 .ch { display: inline-block; will-change: transform, opacity; }
#hero .hero-sub {
  margin-top: 20px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
#hero .hero-sub p {
  max-width: 44ch;
  color: var(--bone-dim);
  font-size: clamp(14px, 1.5vw, 17px);
}
#hero .hero-sub p b { color: var(--gold-hot); font-weight: 600; }
#orbit-readout {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.3em;
  color: var(--gold);
  white-space: nowrap;
}
#hero .scroll-hint {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--bone-dim);
  display: flex; align-items: center; gap: 12px;
}
#hero .scroll-hint::after {
  content: ""; width: 48px; height: 1px;
  background: var(--gold);
  animation: hint 1.6s var(--ease-out) infinite;
}
@keyframes hint {
  0% { transform: scaleX(0); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
  51% { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ---------- stats strip ---------- */
#stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  position: relative; z-index: 5;
}
#stats .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1400px; margin: 0 auto;
}
#stats .cell {
  padding: clamp(28px, 4vw, 52px) clamp(18px, 3vw, 40px);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
#stats .cell:first-child { border-left: 0; }
#stats .label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--bone-dim);
}
#stats .value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
#stats .value.gold { color: var(--gold-hot); }
#stats .foot {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--gold);
}
@media (max-width: 760px) {
  #stats .grid { grid-template-columns: 1fr; }
  #stats .cell { border-left: 0; border-top: 1px solid var(--line); }
  #stats .cell:first-child { border-top: 0; }
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  background: var(--ink);
  position: relative; z-index: 5;
}
.marquee .lane {
  display: flex; gap: 0;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-deep);
  padding-right: 42px;
  white-space: nowrap;
}
.marquee span b { color: var(--gold); -webkit-text-stroke: 0; font-weight: 700; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- REEL 02 · pillars ---------- */
#pillars { height: 100vh; overflow: hidden; }
#pillars .pillars-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(20px, 6vw, 90px);
  max-width: 1500px;
}
.pillar {
  position: absolute;
  left: clamp(20px, 6vw, 90px); right: clamp(20px, 6vw, 90px);
  top: 50%; transform: translateY(-50%);
  max-width: 900px;
  opacity: 0;
  visibility: hidden;
}
.pillar .idx {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.4em;
  color: var(--gold);
  display: block; margin-bottom: 18px;
}
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 130px);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 22px;
}
.pillar p { color: var(--bone-dim); max-width: 52ch; font-size: clamp(14px, 1.6vw, 18px); }
.pillar p b { color: var(--gold-hot); font-weight: 600; }
#pillars .steps {
  position: absolute; bottom: 40px; left: clamp(20px, 6vw, 90px);
  display: flex; gap: 10px;
}
#pillars .steps i {
  width: 44px; height: 2px; background: var(--line);
  position: relative; overflow: hidden; display: block;
}
#pillars .steps i b {
  position: absolute; inset: 0; background: var(--gold);
  transform: scaleX(0); transform-origin: left; display: block;
}

/* ---------- section headers ---------- */
.section-head {
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(70px, 12vh, 130px) clamp(20px, 6vw, 90px) clamp(30px, 5vh, 60px);
  position: relative; z-index: 6;
}
.section-head .display { font-size: clamp(44px, 8vw, 110px); }
.section-head .copy { font-size: clamp(14px, 1.6vw, 18px); }

/* ---------- REEL 03 · vault ---------- */
#vault { position: relative; background: var(--ink); }
#vault .bg-video { position: absolute; inset: 0; }
#vault .bg-video video { opacity: 0.5; }
.vault-grid {
  position: relative; z-index: 6;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  padding: 0 clamp(20px, 6vw, 90px) clamp(80px, 14vh, 150px);
  max-width: 1500px;
}
.vault-card {
  position: relative;
  border: 1px solid var(--gold-deep);
  background: rgba(14, 12, 6, 0.82);
  backdrop-filter: blur(6px);
  padding: 26px;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
  transform-style: preserve-3d;
  transition: border-color 0.3s;
  overflow: hidden;
  text-align: left;
}
.vault-card:hover { border-color: var(--gold); }
.vault-card .glare {
  position: absolute; inset: -40%;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 217, 138, 0.16), transparent 45%);
  pointer-events: none;
  opacity: 0; transition: opacity 0.3s;
}
.vault-card:hover .glare { opacity: 1; }
.vault-card .tag {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-deep);
  padding: 6px 10px;
  width: max-content;
}
.vault-card .tag.claimed { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.vault-card h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 46px);
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--bone);
  margin: 18px 0 8px;
}
.vault-card p { color: var(--bone-dim); font-size: 14px; }
.vault-card .lock {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-hot);
  display: flex; align-items: center; gap: 10px;
}
.vault-card .lock::before { content: "◈"; }

/* ---------- REEL 04 · designedbyjonah ---------- */
#dbj { position: relative; background: var(--ink); overflow: hidden; }
#dbj .bg-video video { opacity: 0.35; }
#dbj .chips {
  position: relative; z-index: 6;
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 0 clamp(20px, 6vw, 90px) 34px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid var(--gold-deep);
  color: var(--bone-dim);
  transition: all 0.25s;
}
.chip:hover { color: var(--gold-hot); }
.chip.active { background: var(--gold); color: var(--ink); border-color: var(--gold); }
#dbj .gallery {
  position: relative; z-index: 6;
  display: flex; gap: clamp(14px, 2vw, 24px);
  padding: 0 clamp(20px, 6vw, 90px) clamp(80px, 14vh, 150px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
#dbj .gallery::-webkit-scrollbar { display: none; }
.film-card {
  flex: 0 0 clamp(300px, 38vw, 560px);
  scroll-snap-align: start;
  border: 1px solid var(--gold-deep);
  background: var(--ink-2);
  transition: border-color 0.3s, opacity 0.35s, transform 0.35s;
}
.film-card.filtered-out { opacity: 0.15; }
.film-card:hover { border-color: var(--gold); }
.film-card .still {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}
.film-card .still img,
.film-card .still video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out);
}
.film-card:hover .still img { transform: scale(1.1); }
.film-card .still .runtime {
  position: absolute; bottom: 10px; right: 10px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em;
  background: rgba(10, 10, 10, 0.75);
  color: var(--gold-hot);
  padding: 5px 8px;
}
.film-card .meta { padding: 18px 20px 20px; }
.film-card .meta .cat {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
}
.film-card .meta h5 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 32px);
  text-transform: uppercase;
  color: var(--bone);
  margin: 8px 0 4px;
  line-height: 0.95;
}
.film-card .meta p { color: var(--bone-dim); font-size: 12.5px; font-family: var(--font-mono); letter-spacing: 0.08em; }

/* ---------- REEL 05 · escalator ---------- */
#escalator {
  position: relative;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-color: var(--ink);
  border-top: 1px solid var(--line);
}
#escalator .esc-inner {
  max-width: 1500px; margin: 0 auto;
  padding: clamp(80px, 14vh, 150px) clamp(20px, 6vw, 90px);
  display: flex; flex-direction: column; gap: 40px;
}
.ticker {
  display: flex; align-items: baseline; gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
}
.ticker .price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(68px, 12vw, 190px);
  line-height: 0.9;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.ticker .arrow {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 90px);
  color: var(--gold);
}
.ticker .price.next { color: transparent; -webkit-text-stroke: 2px var(--gold); }
.ticker .cap {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bone-dim);
  display: block; margin-bottom: 12px;
}
#countdown {
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: 0.24em;
  color: var(--gold-hot);
}
#countdown b { color: var(--bone-dim); font-weight: 400; }
.esc-cards {
  display: grid; gap: clamp(16px, 2.5vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.esc-card {
  border: 1px solid var(--gold-deep);
  background: rgba(14, 12, 6, 0.82);
  padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 16px;
}
.esc-card.featured { border-color: var(--gold); box-shadow: 0 0 60px rgba(227, 164, 68, 0.12); }
.esc-card .plan-name {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold);
}
.esc-card .plan-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1;
  color: var(--bone);
}
.esc-card .plan-price small {
  font-size: 0.35em; color: var(--bone-dim);
  font-family: var(--font-mono); letter-spacing: 0.2em;
}
.esc-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.esc-card li {
  color: var(--bone-dim); font-size: 14px;
  display: flex; gap: 12px; align-items: baseline;
}
.esc-card li::before { content: "◆"; font-size: 8px; color: var(--gold); }
.esc-card .btn { justify-content: center; margin-top: auto; }

/* ---------- finale ---------- */
#finale { min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
#finale .bg-video video { opacity: 0.6; }
#finale .finale-inner {
  position: relative; z-index: 6;
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  gap: 30px;
  padding: 120px clamp(20px, 5vw, 60px) 80px;
}
#finale h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(52px, 10.5vw, 170px);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--bone);
  max-width: 12ch;
}
#finale h2 em { font-style: normal; color: var(--gold-hot); }
#finale .cta-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ---------- footer ---------- */
footer {
  position: relative; z-index: 6;
  border-top: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.85);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding: 26px clamp(20px, 4vw, 48px);
}
footer .cols {
  display: flex; gap: 26px; flex-wrap: wrap;
}
footer a, footer span {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--bone-dim);
}
footer a:hover { color: var(--gold-hot); }

/* ---------- modals ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 2600;
  background: rgba(6, 5, 2, 0.82);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  width: min(560px, 100%);
  border: 1px solid var(--gold-deep);
  background: var(--ink-2);
  padding: clamp(28px, 4vw, 44px);
  position: relative;
  transform: translateY(14px);
  transition: transform 0.35s var(--ease-out);
  max-height: 88vh; overflow-y: auto;
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal .x {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--bone-dim); padding: 8px;
}
.modal .x:hover { color: var(--gold-hot); }
.modal .m-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.modal h3 {
  font-family: var(--font-display);
  font-weight: 800; font-size: clamp(30px, 4.5vw, 44px);
  text-transform: uppercase; line-height: 0.95;
  color: var(--bone); margin-bottom: 12px;
}
.modal p { color: var(--bone-dim); font-size: 14px; margin-bottom: 18px; }
.modal label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bone-dim);
  margin: 16px 0 8px;
}
.modal input {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--gold-deep);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.12em;
  padding: 14px 16px;
}
.modal input:focus { outline: none; border-color: var(--gold); }
.modal .choice-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: 8px 0 4px; }
.modal .choice {
  border: 1px solid var(--gold-deep);
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.25s, background 0.25s;
  text-align: left;
}
.modal .choice .cn { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.modal .choice .cv { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--bone); }
.modal .choice .cd { font-size: 11.5px; color: var(--bone-dim); font-family: var(--font-mono); }
.modal .choice.selected { border-color: var(--gold); background: rgba(227, 164, 68, 0.08); }
.modal .choice.addon { width: 100%; margin-top: 4px; }
.modal .choice.addon .cd { line-height: 1.55; }
.modal .btn { width: 100%; justify-content: center; margin-top: 22px; }
.modal .test-badge {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink);
  background: var(--gold-hot);
  padding: 8px 12px;
  display: inline-block;
}
.modal .error {
  color: #e07a4f;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  margin-top: 10px;
  display: none;
}
.modal.shake { animation: shake 0.4s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* ---------- reveal-on-scroll utility ---------- */
.rv { opacity: 0; transform: translateY(34px); }
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .marquee .lane { animation: none; }
  .rv { opacity: 1 !important; transform: none !important; }
  .pillar { position: relative; opacity: 1 !important; visibility: visible !important; transform: none; top: auto; left: auto; right: auto; margin-bottom: 60px; }
  #hero .scroll-hint::after { animation: none; }
}


/* ============================================================
   THE ESCALATOR CHART
   One measure, one hue. The split between what has already happened
   and what is scheduled is carried by a dash pattern, not by a second
   colour, so it survives colourblindness and greyscale printing.
   ============================================================ */
.esc-chart { margin: 26px 0 6px; border: 1px solid var(--line); background: rgba(14, 12, 6, 0.6); padding: clamp(16px, 2.4vw, 26px); }
.esc-chart figcaption { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.esc-chart .ec-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 2.6vw, 27px); text-transform: uppercase; color: var(--bone); line-height: 1; }
.esc-chart .ec-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim); }
.esc-chart .ec-plot { position: relative; }
.esc-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.esc-chart .grid { stroke: rgba(212, 160, 60, 0.13); stroke-width: 1; }
.esc-chart .axis { fill: rgba(236, 226, 208, 0.5); font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.1em; }
.esc-chart .lock-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.esc-chart .fore-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 7 6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.esc-chart .lock-fill { fill: var(--gold); opacity: 0.13; }
.esc-chart .fore-fill { fill: var(--gold); opacity: 0.05; }
.esc-chart .dot { fill: var(--ink); stroke: var(--gold); stroke-width: 2; }
.esc-chart .dot-now { fill: var(--gold-hot); stroke: var(--ink); stroke-width: 2.5; }
.esc-chart .lbl { font-family: "IBM Plex Mono", monospace; font-size: 11px; fill: var(--bone); letter-spacing: 0.06em; }
.esc-chart .lbl-now { fill: var(--gold-hot); font-weight: 500; }
.esc-chart .tagline { font-family: "IBM Plex Mono", monospace; font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; fill: rgba(236, 226, 208, 0.45); }
.esc-chart .hit { fill: transparent; cursor: crosshair; }
.esc-chart .cross { stroke: var(--gold-hot); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0; }
#ec-tip {
  position: absolute; pointer-events: none; opacity: 0; transition: opacity 0.12s;
  transform: translate(-50%, calc(-100% - 14px));
  background: var(--ink-2); border: 1px solid var(--gold);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--bone); padding: 7px 11px; white-space: nowrap; z-index: 5;
}
#ec-tip b { color: var(--gold-hot); font-weight: 500; }
.esc-chart .ec-data { margin-top: 14px; }
.esc-chart .ec-data summary { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bone-dim); cursor: pointer; }
.esc-chart .ec-data table { margin-top: 12px; border-collapse: collapse; width: 100%; font-size: 12.5px; color: var(--bone-dim); }
.esc-chart .ec-data th, .esc-chart .ec-data td { border: 1px solid var(--line); padding: 7px 11px; text-align: left; font-family: var(--font-mono); }
.esc-chart .ec-data th { color: var(--gold); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.esc-chart .ec-data tr.is-now td { color: var(--gold-hot); }

.rail-link {
  display: block; font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.24em; text-transform: uppercase; color: rgba(236, 226, 208, 0.45);
  padding: 6px 0; transition: color 0.2s;
}
.rail-link:hover { color: var(--gold-hot); }


/* ============================================================
   DESIGNEDBYJONAH DOORWAY
   The films live on their own page. The header link and the side rail
   are both hidden on a phone, so the footer link is the entry point
   that exists at every width -- it is navigation, not fine print,
   which is why it carries the gold rather than the dim body colour.
   ============================================================ */
.foot-dbj { color: var(--gold-hot) !important; }
.foot-dbj:hover { color: var(--bone) !important; }
}


/* Anchor targets must clear the fixed header, or /#vault drops the section
   underneath it and the cards are half hidden on arrival. */
section[id] { scroll-margin-top: 96px; }
html { scroll-behavior: smooth; }
