/* THE RESET · site styles
   Theme: dark, locked (the film insists). One accent: sodium amber.
   Cold cyan appears exactly once, at the reset flash, mirroring the film's grammar.
   Radius system: sharp (0) everywhere. Type: Archivo (variable width) + IBM Plex Mono. */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../assets/fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../assets/fonts/plexmono-500.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../assets/fonts/plexmono-600.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}

:root {
  --bg: #0B0D10;
  --bg-2: #10141A;
  --line: #222932;
  --text: #E9E4DA;
  --muted: #9AA3AB;
  --dim: #77828B;
  --amber: #E8A33D;
  --amber-bright: #F2B658;
  --amber-deep: #B87B22;
  --flash: #DFF3F7;
  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", monospace;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap-wide { max-width: 1500px; margin-inline: auto; padding-inline: 24px; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0 0 .5em; font-weight: 760; font-stretch: 116%; letter-spacing: .015em; line-height: 1.02; }
h1 { font-size: clamp(3.2rem, 8.4vw, 6.6rem); letter-spacing: .04em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--amber);
  margin: 0 0 1.1rem;
}
.lede { color: var(--muted); max-width: 58ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin: 0 0 2.2rem; }
.body-max { color: var(--muted); max-width: 62ch; }
.strip-title { margin-top: 0; }

/* ---------- reveal motion ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding-inline: 24px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav-wordmark {
  font-weight: 800; font-stretch: 120%; letter-spacing: .14em;
  text-decoration: none; font-size: .95rem;
}
.nav nav { display: flex; gap: clamp(14px, 3vw, 34px); }
.nav nav a {
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); text-decoration: none;
  padding: 6px 2px;
}
.nav nav a:hover, .nav nav a:focus-visible { color: var(--amber); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  /* plate is composed off-center for this hero: dial right third, text zone left */
  object-position: 72% 40%;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 4%, color-mix(in srgb, var(--bg) 55%, transparent) 38%, transparent 75%),
    linear-gradient(to right, color-mix(in srgb, var(--bg) 82%, transparent), transparent 62%);
}
.hero-inner {
  position: relative;
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 96px 24px 13vh;
}
.hero h1 { margin-bottom: .18em; }
.hero-sub { font-size: clamp(1.1rem, 2vw, 1.45rem); color: var(--text); margin: 0 0 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  padding: 15px 30px;
  font-family: var(--mono); font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  text-decoration: none;
  border: 1px solid var(--amber);
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--amber); color: #0B0D10; }
.btn-solid:hover, .btn-solid:focus-visible { background: var(--amber-bright); }
.btn-line { background: transparent; color: var(--amber); }
.btn-line:hover, .btn-line:focus-visible { background: color-mix(in srgb, var(--amber) 14%, transparent); }

/* the dial: functional motif, bottom right */
.dial {
  position: absolute; right: clamp(16px, 4vw, 56px); bottom: clamp(18px, 6vh, 64px);
  z-index: 2;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent);
  padding: 14px 22px 16px;
  text-align: right;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.dial:hover, .dial:focus-visible { border-color: var(--amber); }
.dial-label {
  display: block;
  font-family: var(--mono); font-size: .6rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 4px;
}
.dial-digits {
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 22px color-mix(in srgb, var(--amber) 40%, transparent);
}

/* reset flash: the one cyan moment */
#resetFlash {
  position: fixed; inset: 0; z-index: 90;
  background: var(--flash);
  opacity: 0; pointer-events: none;
}
#resetFlash.go { animation: flashout .9s ease-out; }
@keyframes flashout { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #resetFlash.go { animation: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(88px, 12vh, 150px) 0; }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- film ---------- */
.cinema { max-width: 1500px; margin: 0 auto; position: relative; }
.cinema video { width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* film = YouTube click-to-play facade (loads player JS only on click) */
.cinema.glass { padding: 0; border: 1px solid color-mix(in srgb, var(--amber) 22%, var(--line)); }
.yt-facade {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000 center / cover no-repeat;
  cursor: pointer; overflow: hidden;
}
.yt-facade::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.12), rgba(0,0,0,.5));
  transition: background .3s ease;
}
.yt-facade:hover::after, .yt-facade:focus-visible::after {
  background: radial-gradient(ellipse at center, rgba(0,0,0,.02), rgba(0,0,0,.38));
}
.yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 2; width: 86px; height: 86px;
  border: 1px solid var(--amber);
  background: color-mix(in srgb, var(--bg) 52%, transparent);
  backdrop-filter: blur(6px);
  transition: transform .2s ease, background-color .2s ease;
}
.yt-play::before {
  content: ""; position: absolute; top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid; border-width: 15px 0 15px 26px;
  border-color: transparent transparent transparent var(--amber);
  transition: border-color .2s ease;
}
.yt-facade:hover .yt-play, .yt-facade:focus-visible .yt-play {
  background: var(--amber); transform: translate(-50%, -50%) scale(1.06);
}
.yt-facade:hover .yt-play::before, .yt-facade:focus-visible .yt-play::before {
  border-left-color: #0B0D10;
}
.yt-facade.is-playing { cursor: default; }
.yt-facade.is-playing::after, .yt-facade.is-playing .yt-play { display: none; }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (prefers-reduced-motion: reduce) {
  .yt-facade:hover .yt-play, .yt-facade:focus-visible .yt-play { transform: translate(-50%, -50%); }
}
.slot-note {
  margin: 14px 2px 0;
  font-family: var(--mono); font-size: .78rem; color: var(--amber);
}
.slot-note code { color: var(--text); }

.teaser-row {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px;
  align-items: center; margin-top: 72px;
}
.teaser-copy h3 { margin-bottom: .4em; }
.teaser-copy p { color: var(--muted); margin: 0; }
.teaser-player video { width: 100%; aspect-ratio: 16 / 9; background: #000; }

.strip-title { margin-top: 84px; margin-bottom: 22px; }
.excerpts {
  display: flex; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 max(24px, calc((100vw - 1500px)/2 + 24px)) 8px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.excerpts figure {
  flex: 0 0 min(520px, 78vw);
  scroll-snap-align: start;
  margin: 0;
}
.excerpts video { width: 100%; aspect-ratio: 16/9; background: #000; cursor: pointer; border: 1px solid var(--line); }
.excerpts figcaption, .boards figcaption, .bible-grid figcaption {
  margin-top: 10px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim);
}

/* ---------- stills masonry ---------- */
/* stills: 5 across, 4 rows, reading in cut order */
.masonry {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.masonry img {
  width: 100%; margin: 0;
  aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s, filter .3s;
}
.masonry img:hover { transform: scale(1.012); filter: brightness(1.07); border-color: color-mix(in srgb, var(--amber) 50%, var(--line)); }
@media (prefers-reduced-motion: reduce) { .masonry img:hover { transform: none; } }

/* ---------- process ---------- */
.boards {
  display: flex; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 max(24px, calc((100vw - 1500px)/2 + 24px)) 8px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.boards figure { flex: 0 0 min(720px, 86vw); scroll-snap-align: start; margin: 0; }
.boards img { width: 100%; border: 1px solid var(--line); background: #fff; }

.bible { margin-top: 90px; }
.bible figure { margin: 0; }
.bible figcaption {
  margin-top: 10px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim);
}
/* the sheet shows whole: full width, natural aspect, never cropped */
.bible-sheet { margin-top: 30px; }
.bible-sheet img { width: 100%; height: auto; border: 1px solid var(--line); }
.bible-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 26px;
}
.bible-row img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.plates-note { margin-top: 44px; }
.plate-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  margin-top: 22px;
}
.plate-row img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.plate-row figcaption { font-variant-numeric: tabular-nums; letter-spacing: .14em; }

.compare-block { margin-top: 96px; }
.compare {
  position: relative; margin-top: 30px;
  aspect-ratio: 2688 / 1520;
  overflow: hidden;
  border: 1px solid var(--line);
  user-select: none;
}
.compare-under { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-over {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--cut, 50%)) 0 0);
}
.compare-over img {
  width: 100%; height: 100%; object-fit: cover;
}
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--cut, 50%);
  width: 2px; background: var(--amber);
  box-shadow: 0 0 18px color-mix(in srgb, var(--amber) 55%, transparent);
  pointer-events: none;
}
.compare-handle::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--amber);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
}
.compare input[type="range"] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize;
  margin: 0;
}

.notes { margin-top: 96px; }
.notes dl { margin: 26px 0 0; display: grid; gap: 34px; max-width: 760px; }
.notes dt { font-weight: 700; font-stretch: 112%; font-size: 1.22rem; margin-bottom: .35em; }
.notes dd { margin: 0; color: var(--muted); }

/* ---------- pack ---------- */
.section-pack { background: var(--bg-2); }
.docs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin-top: 46px;
}
.docs a {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  text-decoration: none;
  background: var(--bg);
  transition: border-color .2s, transform .2s;
}
.docs a:hover, .docs a:focus-visible { border-color: var(--amber); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .docs a:hover { transform: none; } }
.docs strong { font-weight: 700; font-stretch: 112%; }
.docs span { color: var(--dim); font-size: .92rem; line-height: 1.45; }
.pack-credit { margin-top: 40px; color: var(--dim); font-size: .95rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 80px; }
.footer-inner { display: grid; gap: 14px; }
.footer-mark { font-weight: 800; font-stretch: 120%; letter-spacing: .14em; }
.footer p { margin: 0; color: var(--muted); }
.footer nav { display: flex; gap: 24px; margin-top: 6px; }
.footer nav a {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--dim); text-decoration: none;
}
.footer nav a:hover { color: var(--amber); }
.footer-fine { font-size: .85rem; color: var(--dim); margin-top: 16px; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 5vmin;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border: 1px solid var(--line); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: transparent; border: 1px solid var(--amber);
  color: var(--amber); font-family: var(--mono); font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 18px; cursor: pointer;
}
.lightbox-close:hover { background: color-mix(in srgb, var(--amber) 14%, transparent); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .masonry { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .teaser-row { grid-template-columns: 1fr; gap: 22px; }
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .bible-row { grid-template-columns: 1fr; }
  .plate-row { grid-template-columns: repeat(2, 1fr); }
  .plate-row figure:last-child { grid-column: 1 / -1; }
  .docs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { justify-content: center; }
  .nav-wordmark { display: none; }
  .nav nav { gap: 18px; }
  .nav nav a { font-size: .68rem; padding: 16px 6px; }
  h1 { font-size: clamp(1.6rem, 12.5vw, 3.4rem); letter-spacing: .03em; }
  .nav nav { flex-wrap: wrap; justify-content: center; row-gap: 0; }
  .hero-inner { padding-bottom: 22vh; }
  .dial { right: 16px; bottom: 16px; padding: 10px 14px 12px; }
  .section { padding: 72px 0; }
}

/* ---------- polish pass (impeccable) ---------- */

html { color-scheme: dark; }

::selection { background: var(--amber); color: var(--bg); }

/* one visible focus system, everywhere */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
.nav nav a:focus-visible, .btn:focus-visible, .dial:focus-visible { outline-offset: 2px; }

/* balanced headings, no widowed lines */
h1, h2, h3 { text-wrap: balance; }
p, dd { text-wrap: pretty; }

/* hero arrival cascade: eyebrow, title, sub, ctas rise in sequence */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * {
    opacity: 0;
    transform: translateY(18px);
    animation: hero-rise .85s cubic-bezier(.16,1,.3,1) forwards;
  }
  .hero-inner .eyebrow { animation-delay: .1s; }
  .hero-inner h1      { animation-delay: .24s; }
  .hero-inner .hero-sub { animation-delay: .4s; }
  .hero-inner .hero-ctas { animation-delay: .56s; }
}
@keyframes hero-rise { to { opacity: 1; transform: none; } }

/* strips fade at their edges: the row visibly continues */
.excerpts, .boards {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 72px), transparent);
          mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 72px), transparent);
}


/* current section reads on the nav, waystation-signage style */
.nav nav a.active { color: var(--amber); }

/* film grain: fixed, non-interactive, whole page */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}
