:root {
  --paper: #0b0d10;
  --paper-2: #12161a;
  --paper-3: #1a1f24;
  --ink: #e6e8ea;
  --ink-2: #b9bfc5;
  --ink-3: #767d83;
  --rule: rgba(230, 232, 234, 0.14);
  --rule-soft: rgba(230, 232, 234, 0.07);
  --gold: #c9a23b;
  --gold-dim: #8a6e22;
  --teal: #72b5ad;
  --red: #ca5959;
  --blue: #5e8fe0;
  --amber: #d8a24f;
  --green: #518a63;
  --shadow: 0 36px 80px rgba(0, 0, 0, 0.65);
  --letterbox: 56px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SF Mono", Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); color: var(--ink); font-family: var(--font); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.92), rgba(11, 13, 16, 0.04)),
    radial-gradient(circle at 14% 26%, rgba(201, 162, 59, 0.32), transparent 22rem),
    radial-gradient(circle at 88% 18%, rgba(94, 143, 224, 0.18), transparent 20rem),
    radial-gradient(circle at 60% 76%, rgba(114, 181, 173, 0.12), transparent 18rem),
    var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--letterbox);
  padding-bottom: var(--letterbox);
}
body.panel-open { overflow: hidden; }

a { color: inherit; }
img, canvas, video { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 10px; }

.letterbox-top, .letterbox-bottom {
  position: fixed; left: 0; right: 0; height: var(--letterbox); background: #000; z-index: 40; pointer-events: none;
}
.letterbox-top { top: 0; }
.letterbox-bottom { bottom: 0; }

.film-grain {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 45; pointer-events: none; opacity: 0.08;
}

.skip-link {
  position: fixed; left: 1rem; top: calc(var(--letterbox) + 1rem); z-index: 50;
  transform: translateY(-160%); background: var(--gold); color: #050505;
  padding: 0.75rem 1rem; border-radius: 999px; font-weight: 800; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: var(--letterbox); z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(14px);
}
.site-header.compact { background: rgba(11, 13, 16, 0.78); }

.brand {
  display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; min-height: 44px;
}
.brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid rgba(201, 162, 59, 0.42); border-radius: 14px;
  background: rgba(201, 162, 59, 0.14); color: var(--gold);
  font-weight: 900; font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.08em;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 0.95rem; }
.brand small { color: var(--ink-3); font-size: 0.72rem; margin-top: 0.12rem; }

.nav {
  display: flex; align-items: center; gap: clamp(0.5rem, 2vw, 1.1rem);
  flex-wrap: wrap; justify-content: flex-end;
}
.nav a {
  min-height: 38px; display: inline-flex; align-items: center; padding: 0.5rem 0.8rem;
  border-radius: 999px; color: var(--ink-2); text-decoration: none;
  font-size: 0.86rem; font-weight: 600;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(230, 232, 234, 0.08); }

.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.6fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding: clamp(6rem, 12vw, 10rem) clamp(1.25rem, 5vw, 6rem) clamp(6rem, 10vw, 8rem);
  overflow: hidden;
}
.hero-strip {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 0;
  display: flex; gap: 14px; width: 220%; padding: 6px 0;
  animation: strip-drift 28s linear infinite;
}
@keyframes strip-drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.film-frame {
  flex: 0 0 auto; width: 28%; aspect-ratio: 2.39 / 1; border-radius: 6px;
  background: linear-gradient(135deg, rgba(201, 162, 59, 0.38), rgba(94, 143, 224, 0.52));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.frame-02 { background: linear-gradient(135deg, rgba(114, 181, 173, 0.64), rgba(201, 162, 59, 0.24)); }
.frame-03 { background: linear-gradient(135deg, rgba(94, 143, 224, 0.68), rgba(114, 181, 173, 0.22)); }
.frame-04 { background: linear-gradient(135deg, rgba(202, 88, 88, 0.56), rgba(201, 162, 59, 0.34)); }
.frame-05 { background: linear-gradient(135deg, rgba(114, 181, 173, 0.54), rgba(94, 143, 224, 0.52)); }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(11, 13, 16, 0.94), rgba(11, 13, 16, 0.72) 52%, rgba(11, 13, 16, 0.86)),
    linear-gradient(180deg, rgba(11, 13, 16, 0.24), var(--paper) 94%);
}
.hero-copy { position: relative; z-index: 2; }

.eyebrow, .section-kicker {
  color: var(--gold); font-family: var(--mono); font-size: 0.76rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
h1, h2, h3, p { margin-block-start: 0; }
h1 {
  max-width: 13ch; margin-block-end: 1.35rem;
  font-size: clamp(3.2rem, 7.8vw, 7.2rem); line-height: 0.91; letter-spacing: -0.052em;
}
h2 {
  margin: 0; font-size: clamp(2.2rem, 4.6vw, 5rem); line-height: 0.95; letter-spacing: -0.045em;
}
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.04; margin-block-end: 0.75rem; }

.lede {
  max-width: 68ch; color: var(--ink-2); font-size: clamp(1.05rem, 1.55vw, 1.3rem); line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

.button, .ghost-button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; padding: 0.85rem 1.05rem; font-weight: 800; text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.button:hover, .ghost-button:hover { transform: translateY(-2px); }
.button.primary { background: var(--gold); color: #050505; box-shadow: 0 0 40px rgba(201, 162, 59, 0.28); }
.button.secondary, .ghost-button { border: 1px solid var(--rule); color: var(--ink); background: rgba(230, 232, 234, 0.06); }
.ghost-button { cursor: pointer; font: inherit; font-size: 0.87rem; }

.section {
  padding: clamp(4rem, 9vw, 6rem) clamp(1.25rem, 5vw, 6rem);
}
.split-heading { max-width: 72ch; }
.split-heading p { color: var(--ink-2); line-height: 1.6; margin-block-start: 0.6rem; }

.proof-floor { background: linear-gradient(180deg, rgba(11, 13, 16, 0), rgba(18, 22, 26, 0.55)); }

.card-grid {
  margin-top: 2.5rem; display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.proof-card {
  border: 1px solid var(--rule); border-radius: 18px; padding: 1.1rem;
  background: rgba(11, 13, 16, 0.64); backdrop-filter: blur(10px);
}
.proof-card h3 { margin-block-start: 0.25rem; }
.proof-card p { color: var(--ink-2); line-height: 1.55; font-size: 0.94rem; }
.proof-card a { color: var(--gold); }
.proof-card .label { margin-inline-end: 0.4rem; }

.label {
  display: inline-block; font-size: 0.76rem; font-weight: 900; letter-spacing: 0.05em;
  padding: 0.28rem 0.55rem; border-radius: 999px; border: 1px solid transparent;
}
.real-label { color: var(--teal); border-color: rgba(114, 181, 173, 0.28); background: rgba(114, 181, 173, 0.1); }
.concept-label { color: var(--amber); border-color: rgba(216, 162, 79, 0.28); background: rgba(216, 162, 79, 0.1); }
.built-label { color: var(--blue); border-color: rgba(94, 143, 224, 0.28); background: rgba(94, 143, 224, 0.1); }

.filmstrip-wrapper { margin-top: 2.5rem; }
.filmstrip-track { display: flex; flex-direction: column; gap: 2.25rem; }

.scene-frame {
  display: grid; gap: 1.1rem;
  grid-template-columns: minmax(min(100%, 960px), 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  padding: 0.6rem 0 0.6rem;
  border-top: 1px solid var(--rule);
}
.scene-frame:last-child { border-bottom: 1px solid var(--rule); }

.frame-letterbox { position: relative; width: 100%; background: #000; border-radius: 8px; overflow: hidden; }
.frame-aspect { position: relative; width: 100%; aspect-ratio: 2.39 / 1; overflow: hidden; background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.03), transparent 14rem), linear-gradient(145deg, var(--paper-3), var(--paper)); }

.scene-visual {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(circle at 30% 46%, hsla(var(--scene-hue, 215) 70% 60% / 0.36), transparent 18rem),
    radial-gradient(circle at 72% 28%, hsla(calc(var(--scene-hue, 215) + 40) 68% 54% / 0.28), transparent 16rem),
    linear-gradient(150deg, var(--paper), var(--paper-2));
}

.scene-cian-element, .scene-geo-element, .scene-motion-element, .scene-type-element { position: absolute; border-radius: 10px; }
.scene-cian-element.element-01 { left: 14%; top: 20%; width: 28%; height: 56%; background: hsla(195 60% 74% / 0.14); transform: rotate(12deg); }
.scene-cian-element.element-02 { left: 44%; top: 22%; width: 24%; height: 42%; background: hsla(195 70% 80% / 0.10); transform: rotate(-8deg); }
.scene-cian-element.element-03 { left: 70%; top: 30%; width: 20%; height: 36%; background: hsla(210 62% 72% / 0.14); transform: rotate(5deg); }

.scene-geo-element.geo-01 { left: 16%; top: 24%; width: 28%; height: 52%; border: 1px solid hsla(215 76% 82% / 0.26); }
.scene-geo-element.geo-02 { left: 50%; top: 18%; width: 26%; height: 60%; border: 1px solid hsla(195 68% 78% / 0.22); border-radius: 50%; }
.scene-geo-element.geo-03 { left: 26%; top: 14%; width: 46%; height: 28%; background: hsla(200 58% 74% / 0.10); }

.scene-motion-element.motion-01 { left: 18%; top: 30%; width: 60%; height: 22%; background: hsla(145 56% 68% / 0.18); border-radius: 999px; }
.scene-motion-element.motion-02 { left: 30%; top: 50%; width: 44%; height: 18%; background: hsla(145 48% 64% / 0.14); border-radius: 999px; }
.scene-motion-element.motion-03 { left: 24%; top: 68%; width: 52%; height: 18%; background: hsla(145 60% 72% / 0.10); border-radius: 999px; }

.scene-type-element.type-01 { left: 12%; top: 22%; font-size: clamp(1.4rem, 3vw, 2.6rem); color: rgba(230, 232, 234, 0.08); letter-spacing: 0.08em; }
.scene-type-element.type-02 { left: 20%; top: 46%; font-size: clamp(1.2rem, 2.8vw, 2.2rem); color: rgba(201, 162, 59, 0.18); letter-spacing: 0.08em; }
.scene-type-element.type-03 { left: 28%; top: 70%; font-size: clamp(0.9rem, 2.4vw, 1.6rem); color: rgba(230, 232, 234, 0.07); letter-spacing: 0.12em; }

.scene-sprockets {
  position: absolute; left: 1%; top: 0; bottom: 0; width: 5%; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-evenly;
}
.scene-sprockets span { display: block; height: 22%; border-radius: 4px; background: rgba(255,255,255,0.06); }
.frame-letterbox:after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}

.scene-meta { padding-inline-start: 0.6rem; }
.scene-number { font-family: var(--mono); color: var(--gold); letter-spacing: 0.12em; font-size: 0.86rem; margin-block-end: 0.4rem; }
.scene-proof { margin-block-end: 0.4rem; }
.scene-meta h3 { margin-block-end: 0.6rem; }
.scene-meta p { color: var(--ink-2); line-height: 1.6; font-size: 0.96rem; }
.director-note { margin-block-start: 0.9rem; padding: 0.75rem 0.9rem; border-left: 2px solid var(--gold-dim); background: rgba(201, 162, 59, 0.08); color: var(--ink); border-radius: 0 10px 10px 0; }
.director-note strong { color: var(--gold); }

.timeline-scrub {
  position: relative; margin-top: 1.6rem; padding: 0.6rem 0.2rem 1rem;
  border-top: 1px solid var(--rule);
}
.timeline-track { position: relative; height: 8px; background: rgba(230, 232, 234, 0.08); border-radius: 999px; overflow: visible; }
.timeline-progress {
  position: absolute; left: 0; top: 0; height: 100%; width: 25%;
  background: linear-gradient(90deg, rgba(201, 162, 59, 0.55), rgba(201, 162, 59, 0.9)); border-radius: 999px;
}
.timeline-ticks { position: absolute; inset: 0; display: flex; justify-content: space-between; }
.tick {
  position: relative; top: -4px; width: 10px; height: 16px; border-radius: 999px;
  background: rgba(230, 232, 234, 0.14); cursor: pointer; transition: background 180ms var(--ease), transform 180ms var(--ease);
}
.tick.active { background: var(--gold); transform: scale(1.25); }

.scrub-handle {
  position: absolute; top: -14px; left: 0; z-index: 5;
  width: 28px; height: 28px; padding: 0; border: 0; background: transparent;
}
.scrub-knob {
  display: block; width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 5px rgba(201, 162, 59, 0.32);
  cursor: grab;
}

.timeline-labels {
  display: flex; justify-content: space-between; margin-top: 0.7rem;
}
.scene-indicator {
  font-size: 0.82rem; color: var(--ink-3); letter-spacing: 0.06em; font-family: var(--mono);
}
.scene-indicator.active { color: var(--gold); font-weight: 900; }

.commentary { background: linear-gradient(180deg, rgba(11, 13, 16, 0), rgba(18, 22, 26, 0.55)); }
.commentary-grid { margin-top: 2rem; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.commentary-card {
  border: 1px solid var(--rule); border-radius: 18px; padding: 1.1rem;
  background: rgba(11, 13, 16, 0.58); backdrop-filter: blur(8px);
}
.commentary-card h3 { margin-block-start: 0.35rem; }
.commentary-card p { color: var(--ink-2); line-height: 1.6; font-size: 0.96rem; }

.closing { background: linear-gradient(180deg, rgba(18, 22, 26, 0.55), rgba(11, 13, 16, 0.92)); }
.closing div > p { color: var(--ink-2); line-height: 1.65; }
.closing .hero-actions { margin-top: 1.25rem; }

.footer {
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 5vw, 6rem);
  border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 0.86rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; background: rgba(11, 13, 16, 0.96);
}
.footer a { color: var(--gold); text-decoration: none; }

.flare {
  position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: 0; background: radial-gradient(circle at 50% 44%, rgba(255,255,255,0.18), transparent 28rem);
  transition: opacity 140ms linear;
}

.guide-body .guide-main { padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 6rem); }
.guide-main h1 { max-width: 18ch; }
.guide-article > p { max-width: 72ch; color: var(--ink-2); line-height: 1.65; font-size: 1.02rem; }
.guide-grid { margin-top: 1.1rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.guide-grid > div { border: 1px solid var(--rule); border-radius: 14px; padding: 0.9rem; background: rgba(11, 13, 16, 0.58); }
.pass-list { line-height: 1.6; }
.pass-list li { margin-block-end: 0.6rem; }
.guide-body .site-header { top: var(--letterbox); }
.guide-body h2 { font-size: clamp(1.6rem, 3.4vw, 3rem); margin-block-end: 0.8rem; }
.guide-body h2 + p, .guide-body li { color: var(--ink-2); }
.guide-body section { margin-block-end: 2.5rem; }
.guide-body .footer { position: relative; background: transparent; }

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; }
  .scene-frame { grid-template-columns: 1fr; }
  .frame-aspect { aspect-ratio: 16 / 9; }
  .site-header { flex-wrap: wrap; }
  .letterbox-top, .letterbox-bottom { --letterbox: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-strip { animation-duration: 120s; }
  .timeline-progress { transition: none; }
  .scrub-knob { transition: none; }
}
