/* Layout: cinematic full-bleed hero with a short intro curtain, giant condensed type, a pinned horizontal film strip
   for the best frames, a filterable archive, an oversize contact link and a cropped wordmark footer.
   One deliberate dark look: runway-night neutrals with a single amber accent (golden hour), light film grain on top. */

:root {
  color-scheme: dark;

  --bg: #07090c;
  --bg-2: #0d1116;
  --line: #1c232b;
  --text: #eef0f2;
  --soft: #c3c9d0;
  --muted: #8a939e;
  --accent: #ffb02e;
  --ink: #0a0a0a;

  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", Impact, sans-serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: 16px;
  --max: 1500px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t0: .55s; /* hero starts after the intro curtain */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.lb-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 120; background: var(--accent); color: var(--ink); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------- Intro curtain + film grain ---------- */
.intro {
  position: fixed; inset: 0; z-index: 110; pointer-events: none; background: var(--bg);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--gutter) var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
  font: 500 .72rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  animation: curtain .85s var(--ease) .5s both;
}
.intro-brand span { color: var(--accent); }
.intro-n b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
@keyframes curtain { to { transform: translateY(-101%); visibility: hidden; } }

.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  background: linear-gradient(to bottom, rgba(7,9,12,.8), rgba(7,9,12,0));
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, transform .5s var(--ease);
}
.site-header.scrolled {
  background: rgba(7,9,12,.88); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.site-header.hide { transform: translateY(-101%); }
.brand { font: 500 .9rem/1 var(--mono); letter-spacing: .04em; text-decoration: none; color: var(--text); }
.brand span { color: var(--accent); }
.site-header nav { display: flex; gap: 16px; }
.site-header nav a {
  position: relative; padding: 6px 0;
  font: 500 .66rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--text);
}
.site-header nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .4s var(--ease);
}
.site-header nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

/* ---------- Type pieces ---------- */
.eyebrow { margin: 0 0 18px; font: 500 .72rem/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
h1, h2 {
  margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  letter-spacing: -.005em; line-height: .9;
}
.line { display: block; overflow: hidden; padding-block: .05em; margin-block: -.05em; }
.line > span { display: block; }
.out > span { color: transparent; -webkit-text-stroke: 2px var(--text); }

.btn {
  position: relative; isolation: isolate; overflow: hidden; display: inline-block;
  padding: 16px 26px; border: 1px solid var(--text);
  font: 500 .74rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--text);
  transition: color .3s, border-color .3s, translate .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover { color: var(--ink); border-color: var(--accent); }
.btn:hover::before { transform: none; }

/* ---------- Progress + flight data ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress-bar { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.progress-dot {
  position: absolute; left: -3px; top: -2px; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px 2px rgba(255,255,255,.7);
  animation: strobe 1.6s steps(1, end) infinite; will-change: transform;
}
@keyframes strobe { 0%, 8% { opacity: 1; } 12%, 30% { opacity: .15; } 34%, 42% { opacity: 1; } 46%, 100% { opacity: .15; } }

.hud {
  position: fixed; left: var(--gutter); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 15;
  display: none; gap: 20px; pointer-events: none;
  font: 500 .66rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  text-shadow: 0 1px 10px rgba(0,0,0,.9);
}
.hud div { display: flex; gap: 8px; align-items: baseline; }
.hud b { min-width: 6ch; text-align: right; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.hud i { font-style: normal; }
.hud.cruise #h-alt { color: var(--accent); }

/* ---------- Custom cursor (mouse only) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 130; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .3s; }
  .cursor.on { opacity: 1; }
  .cursor::before {
    content: ""; position: absolute; left: -18px; top: -18px; width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,.75); border-radius: 50%;
    transition: transform .4s var(--ease), background .3s, border-color .3s;
  }
  .cursor span {
    position: absolute; left: -30px; top: -6px; width: 60px; text-align: center; opacity: 0;
    font: 500 .6rem/12px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); transition: opacity .2s;
  }
  .cursor.link::before { transform: scale(1.5); border-color: var(--accent); }
  .cursor.view::before { transform: scale(2.5); background: var(--accent); border-color: var(--accent); }
  .cursor.view span { opacity: 1; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 1; min-height: min(100svh, 62rem);
  display: flex; align-items: flex-end; overflow: hidden; background: var(--bg-2);
}
.hero-img {
  position: absolute; inset: -32px; width: calc(100% + 64px); height: calc(100% + 64px); max-width: none;
  object-fit: cover; opacity: 0; transform-origin: 50% 40%; will-change: transform;
  translate: calc(var(--mx, 0) * -22px) calc(var(--my, 0) * -14px);
  transition: opacity 1s ease, translate .9s ease-out;
}
.hero-img.loaded { opacity: 1; animation: focus 2.2s var(--ease) var(--t0) both; }
/* A lens pulling focus */
@keyframes focus { from { filter: blur(22px) brightness(.5); } to { filter: blur(0) brightness(1); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(7,9,12,.72) 30%, rgba(7,9,12,.08) 68%),
    linear-gradient(to bottom, rgba(7,9,12,.55), transparent 28%);
}
.hero-content { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 120px var(--gutter) 88px; will-change: transform, opacity; }
.hero h1 { font-size: clamp(4.4rem, 22vw, 9rem); line-height: .86; margin-bottom: 28px; }
.hero h1 .line > span { transform: translateY(108%); animation: lineup 1.05s var(--ease) both; animation-delay: calc(var(--t0) + .1s + var(--i) * .12s); }
@keyframes lineup { to { transform: none; } }
.hero-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-sub { max-width: 36ch; margin: 0; color: var(--soft); font-size: 1.05rem; }
.hero-sub strong { font-weight: 500; color: var(--text); }
.hero-content > .eyebrow, .hero-foot { animation: rise 1s var(--ease) both; }
.hero-content > .eyebrow { animation-delay: var(--t0); }
.hero-foot { animation-delay: calc(var(--t0) + .55s); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-caption {
  position: absolute; right: var(--gutter); bottom: 24px; margin: 0; display: none; text-align: right;
  font: .64rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.cue {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0; display: none; flex-direction: column; align-items: center; gap: 10px;
  font: .6rem/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
}
.cue i { display: block; width: 1px; height: 38px; background: linear-gradient(to bottom, var(--accent), transparent); transform-origin: 50% 0; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Contrail with a strobe light passing over the hero */
.contrail {
  position: absolute; z-index: 1; top: 20%; left: 0; display: flex; align-items: center; pointer-events: none;
  rotate: -6deg; transform: translateX(-80vw); animation: pass 9s linear 2.6s both;
}
.contrail .trail { display: block; width: 40vw; height: 1.5px; background: linear-gradient(to right, transparent, rgba(255,255,255,.6)); }
.contrail .strobe { display: block; width: 6px; height: 6px; margin-left: -1px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(255,255,255,.8); animation: strobe 1.4s steps(1, end) infinite; }
@keyframes pass { from { transform: translateX(-60vw); opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } to { transform: translateX(120vw); opacity: 0; } }

/* ---------- Marquee ---------- */
.band { position: relative; z-index: 1; overflow: hidden; padding: 26px 0 18px; border-bottom: 1px solid var(--line); display: grid; }
.band-track {
  display: flex; width: max-content; white-space: nowrap; will-change: transform;
  font: 900 clamp(3.4rem, 13vw, 10rem)/.95 var(--display); text-transform: uppercase; letter-spacing: -.005em;
  color: transparent; -webkit-text-stroke: 1px #3a434d;
}
.band-track.alt { -webkit-text-stroke: 1px rgba(255,176,46,.55); }
.band-track span { padding-right: .25em; }

/* ---------- Film strip (pinned, scroll moves it sideways) ---------- */
main { position: relative; }
.reel { position: relative; z-index: 1; }
.reel-stick { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.reel-title {
  position: absolute; left: var(--gutter); top: calc(92px + env(safe-area-inset-top, 0px)); margin: 0; z-index: 0;
  font-size: clamp(5rem, 17vw, 15rem); line-height: .82; white-space: nowrap; pointer-events: none;
  color: transparent; -webkit-text-stroke: 1px #2d3640; will-change: transform;
}
.reel-track {
  position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(22px, 4vw, 64px);
  padding: 0 var(--gutter) 0 var(--gutter); will-change: transform;
}
.frame { position: relative; flex: none; margin: 0; --h: min(58svh, 640px); }
.frame .ph {
  position: relative; display: block; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--bg-2);
  height: var(--h); width: calc(var(--h) * var(--ar, 1.5));
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.8);
}
.frame .ph img {
  position: absolute; top: 0; left: -9%; width: 118%; max-width: none; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s ease, filter .5s ease;
}
.frame .ph img.loaded { opacity: 1; }
.frame:hover .ph img { filter: brightness(1.06); }
.frame figcaption { display: flex; align-items: baseline; gap: 14px; margin-top: 16px; }
.frame .no { font: 900 2.2rem/1 var(--display); color: transparent; -webkit-text-stroke: 1px var(--accent); font-variant-numeric: tabular-nums; }
.frame .ttl { font: 800 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.frame .mt { margin-left: auto; font: .62rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: right; }
.reel-ui {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(46px + env(safe-area-inset-bottom, 0px)); z-index: 2;
  display: flex; align-items: center; gap: 18px; pointer-events: none;
  font: 500 .66rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.reel-ui #reel-count { color: var(--text); font-variant-numeric: tabular-nums; }
.reel-bar { position: relative; flex: 1; height: 1px; background: var(--line); }
.reel-bar b { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 88px var(--gutter) 24px; }
.head { margin-bottom: 36px; }
.section h2 { font-size: clamp(3rem, 11vw, 8.5rem); }
.section h2.statement { font-size: clamp(2.8rem, 10vw, 8rem); }

.js .head .line > span { transform: translateY(108%); }
.js .head.in .line > span { transform: none; transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * .1s); }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Filters ---------- */
.filters { display: grid; gap: 14px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.filters[hidden] { display: none; }
.selects { display: grid; grid-template-columns: 1fr; gap: 14px; }
.selects label { display: grid; gap: 8px; }
.selects label span { font: .62rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
select {
  width: 100%; padding: 12px 12px; border-radius: 0;
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line);
  font: .9rem var(--sans); transition: border-color .2s;
}
select:hover { border-color: var(--accent); }
select:disabled { opacity: .45; }
.reset {
  justify-self: start; background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: var(--accent); font: .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 4px;
}
.reset[hidden] { display: none; }
.count { margin: 0; font: .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Archive grid ---------- */
.grid { column-count: 1; column-gap: 12px; }
.card {
  position: relative; display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0;
  background: var(--bg-2); break-inside: avoid; cursor: zoom-in; overflow: hidden;
}
.card img {
  width: 100%; height: auto; background: var(--bg-2); opacity: 0; scale: 1.25;
  translate: 0 calc(var(--p, 0) * -3.5%);
  transition: opacity .6s ease, scale 1.3s var(--ease), filter .5s ease;
}
.card img.loaded { opacity: 1; }
.card.in img { scale: 1.1; }
.card:hover img.loaded { scale: 1.17; }

/* The reveal clips the image, not the card, so the observer still sees the card */
.js .card img { clip-path: inset(100% 0 0 0); }
.js .card.in img { clip-path: inset(0 0 0 0); transition: opacity .6s ease, scale 1.3s var(--ease), filter .5s ease, clip-path 1.1s var(--ease); transition-delay: 0s, 0s, 0s, var(--d, 0s); }
.js .card:not(.in) img { filter: blur(14px); }

@media (hover: hover) {
  .grid:has(.card:hover) .card:not(:hover) img.loaded { filter: brightness(.38) saturate(.6); }
}

.card-cap {
  position: absolute; inset: auto 0 0 0; padding: 44px 16px 14px; text-align: left; pointer-events: none;
  background: linear-gradient(to top, rgba(7,9,12,.9), transparent);
  opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .4s var(--ease);
}
.card:hover .card-cap, .card:focus-visible .card-cap { opacity: 1; transform: none; }
.card-cap b { display: block; font: 800 1.35rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--text); }
.card-cap i { font: normal .62rem/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
@media (hover: none) { .card-cap { opacity: 1; transform: none; } }

.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.empty[hidden] { display: none; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 36px; margin-top: 8px; }
.prose p { margin: 0 0 1.1em; max-width: 52ch; color: var(--soft); font-size: 1.08rem; }
.facts { margin: 0; display: grid; align-content: start; border-top: 1px solid var(--line); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { margin-bottom: 8px; font: .62rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font: 800 1.6rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat b { display: block; font: 900 clamp(3.2rem, 14vw, 9rem)/.9 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; font: .62rem/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding-bottom: 80px; }
.contact-text { max-width: 44ch; margin: 0 0 28px; color: var(--soft); font-size: 1.08rem; }
.mega {
  display: inline-block; max-width: 100%;
  font: 900 clamp(3rem, 13.5vw, 11rem)/1 var(--display); text-transform: uppercase; letter-spacing: -.005em;
  text-decoration: none; color: transparent; -webkit-text-stroke: 1.5px var(--text);
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0% 100%;
  -webkit-background-clip: text; background-clip: text;
  transition: background-size .7s var(--ease), -webkit-text-stroke-color .3s;
}
.mega:hover { color: transparent; background-size: 100% 100%; -webkit-text-stroke-color: var(--accent); }
.mega span { display: inline-block; transition: transform .5s var(--ease); }
.mega:hover span { transform: translate(.08em, -.08em); }

/* Cropped wordmark that sits on the footer line */
.wordmark {
  position: relative; z-index: 1; overflow: hidden; height: .56em; margin-top: 24px;
  font: 900 15vw/1 var(--display); text-transform: uppercase; white-space: nowrap; text-align: center;
  letter-spacing: -.005em; color: transparent; -webkit-text-stroke: 1.5px #2b333d; user-select: none;
}
.wordmark span {
  display: inline-block; transform: translateY(18%); transition: transform 1.4s var(--ease);
  background: linear-gradient(90deg, rgba(255,176,46,.22), rgba(255,176,46,.22)) no-repeat 0 0 / 0% 100%;
  -webkit-background-clip: text; background-clip: text;
}
.js .wordmark.in span { transform: none; background-size: 100% 100%; transition: transform 1.4s var(--ease), background-size 2s var(--ease) .3s; }
.js .wordmark:not(.in) span { transform: translateY(70%); }

.site-footer {
  position: relative; z-index: 1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 84px; border-top: 1px solid var(--line);
  font: .68rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.site-footer p { margin: 0; }

/* ---------- Flight path ---------- */
.flightpath { position: absolute; left: 0; z-index: 0; pointer-events: none; overflow: visible; opacity: .55; }
#fp-base { stroke: #28303a; stroke-width: 1.5; stroke-dasharray: 2 9; stroke-linecap: round; }
#fp-done { stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; opacity: .6; }
#fp-dot { opacity: 0; }
.fp-glow { fill: rgba(255,255,255,.28); transform-box: fill-box; transform-origin: center; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 105; background: #040507; display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lightbox:not([hidden]) { animation: lbin .4s ease; }
@keyframes lbin { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { position: relative; flex: 1; min-height: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 56px 8px 0; touch-action: pan-y pinch-zoom; }
.lb-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none;
  opacity: 0; transform: translateX(var(--dx, 0px)) scale(.97); filter: blur(10px);
  transition: opacity .4s ease, transform .6s var(--ease), filter .6s ease;
}
.lb-img.ready { opacity: 1; transform: none; filter: none; }
.lb-spinner { position: absolute; width: 28px; height: 28px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; opacity: 0; transition: opacity .2s; }
.lightbox.loading .lb-spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.lb-btn {
  position: absolute; z-index: 2; appearance: none; cursor: pointer; padding: 0; display: grid; place-items: center;
  width: 44px; height: 44px; background: rgba(7,9,12,.55); color: var(--text); border: 1px solid var(--line);
  font: 1.5rem/1 var(--sans); transition: background .2s, color .2s, border-color .2s;
}
.lb-btn:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.lb-close { top: calc(8px + env(safe-area-inset-top, 0px)); right: 8px; font-size: 1.1rem; }
.lb-prev, .lb-next { top: 50%; translate: 0 -50%; display: none; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-caption { padding: 14px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.lb-title { margin: 0 0 6px; font: 800 1.5rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.lb-meta { margin: 0; font: .66rem/1.7 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lb-count { margin: 6px 0 0; font: .62rem/1 var(--mono); letter-spacing: .2em; color: var(--accent); }

/* ---------- Breakpoints ---------- */
@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .site-header nav { gap: 24px; }
  .grid { column-count: 2; column-gap: 16px; }
  .card { margin-bottom: 16px; }
  .selects { grid-template-columns: repeat(3, 1fr); align-items: end; }
  .reset { grid-column: 1 / -1; }
  .lb-prev, .lb-next { display: grid; }
  .hero-caption { display: block; }
  .cue { display: flex; }
}
@media (min-width: 700px) { .hud { display: flex; } }
@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .site-header { padding-inline: var(--gutter); }
  .site-header nav { gap: 34px; }
  .site-header nav a { font-size: .7rem; letter-spacing: .16em; }
  /* Headline runs as one cinematic line, the photo stays visible above it */
  .hero h1 { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: .24em; font-size: clamp(4rem, 9.2vw, 10.5rem); margin-bottom: 36px; }
  .hero-foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
  .hero-sub { max-width: 40ch; }
  .section { padding-top: 130px; }
  .selects { grid-template-columns: repeat(3, minmax(0, 220px)) auto; }
  .reset { grid-column: auto; }
  .about-grid { grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: start; }
  .lb-stage { padding: 64px 72px 0; }
  .lb-btn { width: 52px; height: 52px; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; } .lb-close { right: 16px; }
  .reel-track { padding-left: 14vw; padding-right: 10vw; }
  .reel-title { top: calc(104px + env(safe-area-inset-top, 0px)); }
}
@media (min-width: 1100px) { .grid { column-count: 3; } }
@media (max-width: 599px) {
  .frame { --h: min(52svh, 460px); }
  .frame figcaption { flex-wrap: wrap; gap: 6px 12px; }
  .frame .mt { margin-left: 0; text-align: left; width: 100%; }
  .site-header nav a:nth-child(2) { display: none; }
}

/* ---------- Reduced motion: no pinning, the strip becomes a normal swipe row ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  .intro, .grain { display: none; }
  .js .reveal, .js .head .line > span { opacity: 1; transform: none; }
  .js .card img, .js .card:not(.in) img { clip-path: none; filter: none; }
  .hero h1 .line > span { transform: none; }
  .hero-img.loaded { filter: none; }
  .card img { scale: 1.05; translate: none; }
  .contrail, .flightpath, .cue { display: none; }
  .js .wordmark span, .js .wordmark:not(.in) span { transform: none; }
  .reel-stick { position: static; height: auto; overflow-x: auto; padding: 120px 0 80px; }
  .reel-track { padding-inline: var(--gutter); }
  .frame .ph img { left: 0; width: 100%; }
  .reel-ui { display: none; }
}
