:root {
  --bg: #0b0a07;
  --bg2: #14120c;
  --paper: #e9dfb8;
  --dim: #a59c7c;
  --yellow: #d9bf5c;
  --amber: #c9902e;
  --rec: #e0352b;
  --line: rgba(233, 223, 184, 0.14);
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --vhs: "VT323", "IBM Plex Mono", monospace;
  --head: "Archivo Narrow", "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font: 16px/1.65 var(--mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--yellow); }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); max-width: 22ch; }
h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
p { margin: 0 0 1em; max-width: 62ch; }
.kicker { font-family: var(--vhs); font-size: 1.35rem; color: var(--yellow); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.4em; }

/* film grain over everything */
.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 50; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* top bar */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.8rem clamp(16px, 4vw, 48px);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.bar.solid { background: rgba(11, 10, 7, 0.92); border-color: var(--line); backdrop-filter: blur(6px); }
.mark { font-family: var(--vhs); font-size: 1.6rem; color: var(--paper); text-decoration: none; letter-spacing: 0.12em; }
.bar nav { display: flex; gap: clamp(0.8rem, 2vw, 1.6rem); font-size: 0.85rem; }
.bar nav a { color: var(--paper); text-decoration: none; opacity: 0.8; }
.bar nav a:hover { opacity: 1; color: var(--yellow); }
@media (max-width: 640px) { .bar nav a:not(.gh) { display: none; } }

/* hero: camcorder viewfinder */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: #000; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.05); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(0, 0, 0, 0.75) 100%),
    linear-gradient(180deg, rgba(11, 10, 7, 0.2) 0%, rgba(11, 10, 7, 0) 40%, rgba(11, 10, 7, 0.92) 100%);
}
.vf { position: absolute; inset: clamp(16px, 4vw, 44px); z-index: 2; pointer-events: none; font-family: var(--vhs); font-size: clamp(1.1rem, 2vw, 1.6rem); color: #fff; text-shadow: 0 0 4px rgba(0, 0, 0, 0.8); }
.vf .c { position: absolute; width: 28px; height: 28px; border-color: rgba(255, 255, 255, 0.75); border-style: solid; border-width: 0; }
.vf .tl { top: 46px; left: 0; border-top-width: 2px; border-left-width: 2px; }
.vf .tr { top: 46px; right: 0; border-top-width: 2px; border-right-width: 2px; }
.vf .bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.vf .br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.vf .rec { position: absolute; top: 58px; left: 40px; display: flex; align-items: center; gap: 0.4em; }
.vf .rec i { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--rec); animation: blink 1.2s steps(1) infinite; }
.vf .batt { position: absolute; top: 58px; right: 40px; letter-spacing: -0.05em; }
.vf .stamp { position: absolute; right: 40px; bottom: 14px; text-align: right; line-height: 1.05; }
.vf .stamp b { font-weight: 400; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .vf .rec i { animation: none; } }
@media (max-width: 640px) { .vf .stamp { display: none; } }

.hero-copy { position: relative; z-index: 3; padding: 0 clamp(16px, 6vw, 96px) clamp(72px, 12vh, 130px); max-width: 980px; }
.wordmark {
  font-family: var(--head); font-weight: 700; font-size: clamp(4rem, 15vw, 11rem); line-height: 0.85; margin: 0.15em 0 0.2em;
  letter-spacing: 0.04em; color: var(--paper);
  text-shadow: 3px 0 rgba(224, 53, 43, 0.55), -3px 0 rgba(60, 140, 220, 0.45), 0 0 30px rgba(217, 191, 92, 0.25);
  animation: track 7s infinite;
}
@keyframes track { 0%, 92%, 100% { transform: none; clip-path: none; } 93% { transform: translateX(6px); clip-path: inset(30% 0 45% 0); } 94% { transform: translateX(-4px); clip-path: inset(60% 0 10% 0); } 95% { transform: none; clip-path: none; } }
@media (prefers-reduced-motion: reduce) { .wordmark { animation: none; } }
.pitch { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 48ch; color: var(--paper); }
.note { font-size: 0.8rem; color: var(--dim); margin-top: 1rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.5em; padding: 0.25em 0.8em; border: 1px solid rgba(210, 153, 34, 0.7);
  border-radius: 99px; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: #f0c25a; background: rgba(210, 153, 34, 0.12);
}
.pill i { width: 0.5em; height: 0.5em; border-radius: 50%; background: #d29922; box-shadow: 0 0 8px #d29922; }
.cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.btn {
  display: inline-block; padding: 0.75em 1.3em; border: 1px solid var(--paper); color: var(--paper); text-decoration: none;
  font-size: 0.9rem; letter-spacing: 0.04em; transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--paper); color: var(--bg); }
.btn.primary { background: var(--yellow); border-color: var(--yellow); color: #17140a; font-weight: 500; }
.btn.primary:hover { background: var(--paper); border-color: var(--paper); }
.cue { position: absolute; z-index: 3; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--dim); text-decoration: none; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* sections */
main > section { padding: clamp(64px, 11vw, 140px) clamp(16px, 6vw, 96px); }
.intro { max-width: 1100px; }
.intro h2 { max-width: 26ch; }
.intro p:last-child { color: var(--dim); font-size: 1.05rem; }

.beat { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; border-top: 1px solid var(--line); }
.beat.flip .clip { order: 2; }
.beat .text p:not(.kicker) { color: var(--dim); }
@media (max-width: 860px) { .beat { grid-template-columns: 1fr; } .beat.flip .clip { order: 0; } }

.clip { margin: 0; position: relative; }
.clip video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; border: 1px solid var(--line); }
.clip::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 3px);
}
.clip.wide::before { display: none; }
.clip figcaption { font-family: var(--vhs); font-size: 1.15rem; color: var(--dim); margin-top: 0.6rem; letter-spacing: 0.04em; }

.sound { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sound > p { color: var(--dim); }
.sound .clip { max-width: 1100px; margin-top: 1.5rem; }

.stills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-left: 6px !important; padding-right: 6px !important; }
.stills figure { margin: 0; overflow: hidden; background: #000; }
.stills img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s ease, filter 0.6s; filter: saturate(0.85); }
.stills figure:hover img { transform: scale(1.04); filter: none; }
@media (max-width: 760px) { .stills { grid-template-columns: 1fr 1fr; } }

.made { max-width: 1200px; }
.made .lead { color: var(--dim); font-size: 1.05rem; max-width: 70ch; }
.log { list-style: none; padding: 0; margin: 2.5rem 0; display: grid; gap: 28px; }
.log li { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 24px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.log img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); background: #000; }
.log b { font-family: var(--vhs); font-size: 1.35rem; font-weight: 400; color: var(--yellow); letter-spacing: 0.05em; }
.log p { color: var(--dim); margin: 0.3em 0 0; }
@media (max-width: 700px) { .log li { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts div { background: var(--bg); padding: 1.1rem 1.2rem; }
.facts b { display: block; font-family: var(--vhs); font-weight: 400; font-size: 1.25rem; color: var(--yellow); letter-spacing: 0.05em; }
.facts span { font-size: 0.86rem; color: var(--dim); }

.credits { border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--dim); }
.credits p { max-width: 80ch; }
.cc { list-style: none; padding: 0; margin: 1rem 0 0; columns: 3 260px; column-gap: 2rem; }
.cc li { break-inside: avoid; padding: 0.2em 0; }
.cc a { color: var(--paper); text-decoration-color: rgba(233, 223, 184, 0.3); }

.foot { padding: 48px clamp(16px, 6vw, 96px) 64px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--dim); }
.foot p { margin: 0.9em 0 0; }
