/* Barlow, self-hosted (SIL Open Font License, fonts/OFL.txt): Latin and Latin Extended subsets only. */
@font-face { font-family: 'Barlow'; font-style: italic; font-weight: 300; font-display: swap; src: url(fonts/barlow-300-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: italic; font-weight: 300; font-display: swap; src: url(fonts/barlow-300-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/barlow-300-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/barlow-300-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/barlow-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/barlow-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlow-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlow-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Tokens are proposals sampled from the screenshots, not an official palette (brief §7). */
:root {
  --bg-base: #07090c;
  --bg-shadow: #0c161a;
  --ink-primary: #ece6da;
  --ink-body: #bdb9b0;
  --ink-muted: #9a9d9b;
  --accent-crimson: #b3132b;
  --accent-crimson-hover: #c9172f;
  --accent-crimson-text: #d41a36;
  --line: rgba(236, 230, 218, .14);
  --font-sans: 'Barlow', system-ui, sans-serif;
  --section-gap: clamp(80px, 12vh, 140px);
  --gutter: 24px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg-base); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--ink-primary); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--ink-primary); outline-offset: 3px; }
figure, ul, ol, blockquote { margin: 0; padding: 0; }

@keyframes nf-drift {
  0%, 100% { transform: translate3d(-6%, 0, 0) scale(1.05); }
  50% { transform: translate3d(6%, 0, 0) scale(1.12); }
}
/* A failing tube: long steady stretches, then it nearly dies. */
/* The hero logo dims with the streetlamp, as if lit by it: opacity = 1 - .45 × nf-lamp's lamp-off opacity, same stops. */
@keyframes nf-lamp-logo {
  0%, 22% { opacity: 1; }
  22.5% { opacity: .55; }
  23% { opacity: .91; }
  24% { opacity: .6; }
  24.6%, 51% { opacity: 1; }
  51.4% { opacity: .69; }
  51.8%, 66% { opacity: 1; }
  66.5%, 80% { opacity: .55; }
  80.6% { opacity: .84; }
  81.2% { opacity: .55; }
  82.5%, 100% { opacity: 1; }
}
/* Keep in step with nf-lamp-logo. A dying streetlamp: long stretches on, a stutter, then a few seconds dead before it catches again. */
@keyframes nf-lamp {
  0%, 22% { opacity: 0; }
  22.5% { opacity: 1; }
  23% { opacity: .2; }
  24% { opacity: .9; }
  24.6%, 51% { opacity: 0; }
  51.4% { opacity: .7; }
  51.8%, 66% { opacity: 0; }
  66.5%, 80% { opacity: 1; }
  80.6% { opacity: .35; }
  81.2% { opacity: 1; }
  82.5%, 100% { opacity: 0; }
}
@keyframes nf-last-light {
  0%, 100% { box-shadow: 0 0 40px rgba(179, 19, 43, .25); }
  50% { box-shadow: 0 0 70px rgba(179, 19, 43, .45); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- type ---------- */
.label {
  margin: 0;
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.lede {
  margin: 0;
  font-weight: 300;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.25;
  text-wrap: balance;
}
.body {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--ink-body);
  text-wrap: pretty;
  max-width: 52ch;
}
.quote {
  margin: 0;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1.15;
  text-wrap: balance;
}
.display {
  margin: 0;
  font-weight: 500;
  font-size: clamp(44px, 8vw, 112px);
  line-height: .95;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.crimson { color: var(--accent-crimson-text); }

/* ---------- buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 360px);
  height: 56px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background .2s, border-color .2s;
}
.btn-crimson { background: var(--accent-crimson); color: #fff; box-shadow: 0 10px 40px rgba(179, 19, 43, .25); }
.btn-crimson:hover { background: var(--accent-crimson-hover); color: #fff; }
.btn-outline {
  display: inline-flex;
  width: auto;
  height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(236, 230, 218, .5);
  font-size: 13px;
  letter-spacing: .22em;
}
.btn-outline:hover { border-color: var(--ink-primary); }
.btn-small { width: auto; height: 44px; padding: 0 20px; font-size: 12px; box-shadow: none; }

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

/* ---------- health bar: drains as you scroll; the dim track shows what's been lost ---------- */
.health {
  position: fixed;
  top: env(safe-area-inset-top); left: 0; right: 0;
  z-index: 50;
  height: 4px;
  background: rgba(236, 230, 218, .12);
  pointer-events: none;
}
.health-fill {
  height: 100%;
  background: var(--ink-primary);
  box-shadow: 0 0 10px rgba(236, 230, 218, .5);
  transform-origin: left;
}

/* ---------- header + sticky CTA (shown once the hero CTA scrolls away) ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
/* Backdrop arrives with the header logo, so scrolling text never shows through it; the hero stays clear. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -28px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(rgba(7, 9, 12, .97) 0%, rgba(7, 9, 12, .94) 62%, rgba(7, 9, 12, 0));
  opacity: 0;
  transition: opacity .3s;
}
body.cta-away .site-header::before { opacity: 1; }
/* The hero already shows the big logo, so the header one appears only once the hero is gone. */
.header-logo { display: flex; align-items: center; min-height: 44px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
body.cta-away .header-logo { opacity: 1; visibility: visible; transition: opacity .3s; }
.header-logo img { height: 26px; width: auto; opacity: .95; }
@media (min-width: 900px) { .header-logo img { height: 34px; } }
.header-cta { display: none; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(7, 9, 12, 0), rgba(7, 9, 12, .92) 40%);
  transform: translateY(110%);
  transition: transform .35s ease;
}
.sticky-cta .btn { width: 100%; max-width: 480px; margin: 0 auto; height: 52px; font-size: 14px; box-shadow: none; }
body.cta-away .sticky-cta { transform: none; }
body:not(.cta-away) .sticky-cta { visibility: hidden; transition: transform .35s ease, visibility 0s .35s; }

@media (min-width: 900px) {
  .header-cta { display: flex; }
  body.cta-away:not(.last-light) .header-cta { opacity: 1; visibility: visible; transition: opacity .3s; }
  .sticky-cta { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #0a1014;
}
/* Extra room goes to the sides and bottom, and the drift zooms from the top, so the lamp head stays in frame. */
.hero-art { position: absolute; inset: -1% -8% -15%; overflow: hidden; }
/* Both lamp frames drift together, so the flicker never shifts the picture. */
.hero-drift { position: absolute; inset: 0; transform-origin: 50% 0; animation: nf-drift 48s ease-in-out infinite; }
.hero-drift img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 0; /* wide screens crop the bottom, never the lamp at the top */
  filter: saturate(.9) contrast(1.05);
}
/* Portrait crops tightly; shift right so the flickering lamp stays in frame. */
@media (max-aspect-ratio: 1/1) { .hero-drift img { object-position: 70% 0; } }
/* The lamp-off frame sits on top: opaque = lamp out. With reduced motion it stays hidden, lamp on. */
.hero-lamp-off { opacity: 0; animation: nf-lamp 13s linear infinite; }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero::before { background: linear-gradient(180deg, rgba(7, 9, 12, .15) 0%, rgba(7, 9, 12, 0) 20%, rgba(7, 9, 12, .55) 62%, var(--bg-base) 100%); }
.hero::after { background: radial-gradient(60% 50% at 50% 60%, rgba(12, 22, 26, 0) 0%, rgba(7, 9, 12, .5) 100%); }
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: 0 var(--gutter) clamp(64px, 10vh, 120px);
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.hero-logo { margin: 0; }
.hero-logo img { width: min(80vw, 560px, 70svh); height: auto; animation: nf-lamp-logo 13s linear infinite; }
@media (orientation: landscape) and (max-height: 500px) {
  .hero-content { gap: 14px; padding-bottom: 32px; }
  .hero-pitch { font-size: 17px; }
}
.hero-pitch {
  margin: 0;
  font-weight: 300;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.45;
  text-wrap: pretty;
  max-width: 34ch;
}
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }

/* ---------- shared sections ---------- */
.section { position: relative; padding-top: var(--section-gap); }
.section-padded { padding-left: var(--gutter); padding-right: var(--gutter); }
.prose {
  padding: 0 var(--gutter);
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.image-stack { display: grid; gap: 4px; margin-top: clamp(48px, 8vh, 96px); }
.image-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 4px;
}
.shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-shadow); }
.shot-feature { max-height: 84vh; width: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- combat ---------- */
.combat-intro {
  padding: 0 var(--gutter);
  max-width: 1200px;
  margin: 0 auto clamp(48px, 8vh, 96px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px 64px;
  align-items: end;
}
.combat-intro > div { display: flex; flex-direction: column; gap: 20px; }
.feature-list {
  list-style: none;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: var(--ink-body);
}
.feature-list li { padding: 18px 0; border-top: 1px solid var(--line); }

/* ---------- fragments ---------- */
.fragments { position: relative; height: 340vh; margin-top: var(--section-gap); }
.fragments-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--bg-base); }
.fragments-beneath, .fragments-glass { position: absolute; inset: 0; overflow: hidden; }
.fragments-glass { perspective: 900px; perspective-origin: 56% 42%; }
.fragments-beneath img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
  transform: scale(1.06);
  transform-origin: 56% 20%; /* zooming from near the top pushes the poster's baked-in logo down, out of view */
  filter: saturate(.6) brightness(.7);
  will-change: transform; /* scaled every frame by main.js; its own layer avoids repainting the poster */
}
/* Heavy bottom shade hides the logo baked into the poster until text-free key art arrives. */
.fragments-beneath .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 9, 12, .25), rgba(7, 9, 12, 0) 35%, rgba(7, 9, 12, .82) 68%, var(--bg-base) 88%); }
@media (min-aspect-ratio: 1/1) {
  .fragments-beneath .shade { background: linear-gradient(180deg, rgba(7, 9, 12, .25), rgba(7, 9, 12, 0) 30%, rgba(7, 9, 12, .92) 70%, var(--bg-base) 80%); }
}
.fragments-glass .shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7, 9, 12, .3), rgba(7, 9, 12, 0) 35%, rgba(7, 9, 12, .75) 100%); }
.ghost, .shard-image {
  position: absolute;
  background-image: url(img/5-1600.jpg);
  background-image: image-set(url(img/5-1600.avif) type("image/avif"), url(img/5-1600.jpg) type("image/jpeg"));
  background-size: cover;
  background-position: center;
}
.ghost { inset: 0; mix-blend-mode: screen; opacity: 0; visibility: hidden; will-change: transform, opacity; }
/* Each shard only spans its own bounding box, so 36 of them cost about one screen of layers, not 36. */
.shard { position: absolute; will-change: transform, opacity; }
.shard-piece { position: absolute; inset: 0; overflow: hidden; }
.shard-survivor { z-index: 1; }
.shard-near { z-index: 2; }
.mote { position: absolute; left: 0; top: 0; z-index: 2; border-radius: 50%; opacity: 0; background: rgba(245, 236, 224, .95); box-shadow: 0 0 8px 2px rgba(224, 29, 58, .75); will-change: transform, opacity; pointer-events: none; } /* the glass isn't depth-sorted, so pieces flying at the camera paint over everything */
.cracks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cracks path { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; stroke-linejoin: round; }
/* Crimson light from the other world leaks through each crack. */
.crack-glow { filter: blur(4px); }
.crack-glow path { stroke: #e01d3a; opacity: .5; }
.crack-core path { stroke: rgba(245, 236, 224, .8); }
.fragments-intro, .fragments-reveal {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 0 var(--gutter) clamp(72px, 12vh, 140px);
  margin: 0 auto;
}
.fragments-intro { max-width: calc(720px + 2 * var(--gutter)); }
.fragments-intro .label { margin-bottom: 20px; }
.fragments-intro .lede { max-width: 22ch; }
.fragments-intro .body { margin-top: 16px; max-width: 40ch; }
.fragments-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
}
.fragments-reveal .quote { font-size: clamp(30px, 4.4vw, 56px); max-width: 18ch; }
.fragments-reveal .body { margin: 20px auto 0; font-size: clamp(17px, 1.9vw, 21px); max-width: 38ch; }
.fragments-reveal .btn { margin-top: 30px; }
@media (max-width: 899px) { .fragments-reveal .btn { display: none; } } /* the sticky bar is already showing */
.scroll-hint {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: opacity .3s;
}

/* ---------- story ---------- */
.story { position: relative; padding: clamp(100px, 16vh, 180px) var(--gutter); overflow: hidden; }
.story-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: grayscale(1); }
.story::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--bg-base), rgba(7, 9, 12, .55) 30%, rgba(7, 9, 12, .55) 70%, var(--bg-base)); }
.story-content { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.story-arc {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  align-items: center;
  font-size: clamp(14px, 1.4vw, 16px);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
/* Unlit beats are faint and out of focus, like a memory that hasn't come back yet. */
.story-arc li { opacity: .25; filter: blur(1.5px); transition: opacity .8s, color .8s, text-shadow .8s, filter .8s; }
.story-arc li:not(:last-child)::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 40px;
  height: 1px;
  margin: 0 12px;
  /* The line draws toward the next beat with the scroll (--fill from main.js). */
  background: linear-gradient(var(--ink-primary), var(--ink-primary)) no-repeat rgba(236, 230, 218, .15);
  background-size: calc(var(--fill, 0) * 100%) 100%;
}
/* Each beat lights as the line reaches it; Hope ends in crimson. */
.story-arc li.lit { opacity: 1; filter: none; color: var(--ink-primary); }
.story-arc .arc-last.lit { color: var(--accent-crimson-text); text-shadow: 0 0 18px rgba(179, 19, 43, .7); }
@media (max-width: 599px) {
  .story-arc { flex-direction: column; align-items: flex-start; gap: 0; }
  .story-arc li:not(:last-child)::after { display: block; width: 1px; height: 32px; margin: 12px 0 12px 6px; background-size: 100% calc(var(--fill, 0) * 100%); }
}

/* ---------- gallery: swipe row on mobile, grid on desktop ---------- */
.gallery-head {
  padding: 0 var(--gutter);
  max-width: 1400px;
  margin: 0 auto 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.gallery-hint { letter-spacing: .2em; }
.hint-pointer { display: none; }
/* One feature image, then pairs on phones: all nine visible without swiping. */
.gallery {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 0 var(--gutter);
}
.gallery li:first-child { grid-column: span 2; }
.gallery li:first-child .gallery-item { aspect-ratio: 16 / 9; }
@media (max-width: 899px) { .gallery li:not(:first-child) .caption { left: 10px; bottom: 9px; font-size: 9px; letter-spacing: .16em; } }
.gallery-item {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  background: var(--bg-shadow);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  display: block;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover { outline: 1px solid rgba(236, 230, 218, .5); }
.gallery-item::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(rgba(7, 9, 12, 0), rgba(7, 9, 12, .75)); }
.caption {
  position: absolute;
  left: 14px;
  right: 10px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  bottom: 12px;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-primary);
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
  z-index: 1;
}
@media (min-width: 900px) {
  .hint-touch { display: none; }
  .hint-pointer { display: inline; }
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1400px;
    margin: 0 auto;
  }
  .gallery li:first-child { grid-row: span 2; }
  .gallery li:first-child .gallery-item { aspect-ratio: auto; height: 100%; }
}

/* ---------- gallery reel, "heavy eyes": one place at a time, seen through eyelids the scroll controls ---------- */
#gallery.has-reel .gallery, #gallery.has-reel .gallery-hint { display: none; }
#gallery.has-reel .gallery-head { margin-bottom: 0; }
.reel { position: relative; height: calc(9 * 110svh); }
.reel-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #000; }
/* Light through closed lids: a dim warm red, brighter in bright places. */
@property --glow { syntax: "<color>"; inherits: false; initial-value: #000; }
.reel-lids { position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 45%, var(--glow), #000); transition: --glow 1.6s ease; }
/* The eye: the image shows only through two huge circles, an upper and a lower lid. Each has a feather of
   fixed size, so the lid edge stays just as soft when the eye is a slit. */
@property --upper { syntax: "<percentage>"; inherits: false; initial-value: 45%; }
@property --lower { syntax: "<percentage>"; inherits: false; initial-value: 55%; }
@property --tilt { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
.reel-eye {
  position: absolute;
  inset: 0;
  --radius: 110vmax;
  --feather: 11vh;
  --upper-lid: radial-gradient(circle var(--radius) at var(--tilt) calc(var(--upper) + var(--radius)), #000 calc(var(--radius) - var(--feather)), transparent var(--radius));
  --lower-lid: radial-gradient(circle var(--radius) at calc(100% - var(--tilt)) calc(var(--lower) - var(--radius)), #000 calc(var(--radius) - var(--feather)), transparent var(--radius));
  -webkit-mask-image: var(--upper-lid), var(--lower-lid);
  -webkit-mask-composite: source-in;
  mask-image: var(--upper-lid), var(--lower-lid);
  mask-composite: intersect;
}
.reel-view, .reel-drift { position: absolute; inset: 0; } /* the view nods (main.js); the drift is a head not quite holding still */
.reel-drift { animation: reel-head-drift 26s ease-in-out infinite alternate; }
@keyframes reel-head-drift {
  0% { transform: scale(1.06) translate(-1.4%, .6%) rotate(-.3deg); }
  100% { transform: scale(1.1) translate(1.4%, -.6%) rotate(.4deg); }
}
.reel-drift img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* The place just left lingers as an afterimage while the eye opens on the next. */
.reel-current { will-change: filter; } /* blurred every frame; on its own layer the GPU does it */
.reel-ghost { mix-blend-mode: screen; filter: blur(6px) saturate(.6); opacity: 0; }
.reel-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(7, 9, 12, .3), rgba(7, 9, 12, 0) 22%, rgba(7, 9, 12, 0) 62%, rgba(7, 9, 12, .8)); pointer-events: none; }
.reel-hint { position: absolute; left: var(--gutter); right: var(--gutter); top: 56%; z-index: 2; margin: 0; text-align: center; opacity: 0; color: var(--ink-primary); }
.reel-hint small { display: block; margin-top: 10px; font-size: 13px; font-weight: 400; letter-spacing: .06em; text-transform: none; color: var(--ink-body); }
/* Phones: clear the sticky Wishlist bar. */
.reel-stamp, .reel-ticks { position: absolute; left: var(--gutter); right: var(--gutter); z-index: 2; }
.reel-stamp { bottom: calc(100px + env(safe-area-inset-bottom)); display: flex; align-items: flex-end; gap: 16px; }
.reel-ticks { bottom: calc(86px + env(safe-area-inset-bottom)); display: flex; gap: 4px; }
.reel-place { flex: 1; min-width: 0; font-size: clamp(20px, 3vw, 32px); font-weight: 300; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; color: var(--ink-primary); }
.reel-count { padding-bottom: 14px; font-size: 12px; letter-spacing: .3em; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.reel-open { appearance: none; background: none; border: 1px solid rgba(236, 230, 218, .4); color: var(--ink-primary); font: 500 10px/1 var(--font-sans); letter-spacing: .24em; text-transform: uppercase; min-height: 44px; padding: 0 14px; cursor: pointer; }
.reel-open:hover { border-color: var(--ink-primary); }
.reel-ticks span { flex: 1; height: 2px; background: rgba(236, 230, 218, .2); overflow: hidden; }
.reel-ticks i { display: block; height: 100%; background: var(--accent-crimson-text); transform-origin: left; transform: scaleX(0); }
@media (min-width: 900px) {
  .reel-stamp { bottom: 40px; }
  .reel-ticks { bottom: 26px; }
}

/* ---------- gallery viewer ---------- */
.viewer {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg-base);
  color: var(--ink-primary);
}
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: var(--bg-base); }
.viewer-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(rgba(7, 9, 12, .7), rgba(7, 9, 12, 0));
}
.viewer-close {
  appearance: none;
  border: 1px solid rgba(236, 230, 218, .4);
  background: rgba(7, 9, 12, .6);
  color: var(--ink-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.viewer-track {
  flex: 1;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.viewer-track figure {
  flex: none;
  width: 100vw;
  height: 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 64px 0 48px;
}
.viewer-track picture { min-height: 0; display: contents; }
.viewer-track img { max-width: 100%; max-height: calc(100% - 32px); object-fit: contain; }

/* ---------- trailer: a still until tapped, so nothing loads from YouTube until someone wants it ---------- */
.media-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.trailer { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-shadow); color: var(--ink-primary); text-decoration: none; }
.trailer > * { grid-area: 1 / 1; position: relative; } /* positioned, so the filtered still doesn't paint over the play button */
.trailer picture, .trailer img { width: 100%; height: 100%; object-fit: cover; }
.trailer img { filter: brightness(.65); transition: filter .3s; }
.trailer:hover img { filter: brightness(.8); }
.play-ring { width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(236, 230, 218, .7); background: rgba(7, 9, 12, .35); display: grid; place-items: center; }
.play-ring::after { content: ""; margin-left: 5px; border-left: 18px solid var(--ink-primary); border-block: 11px solid transparent; }
.trailer:hover .play-ring { border-color: var(--accent-crimson-text); background: rgba(179, 19, 43, .35); }
.trailer-label { align-self: end; margin-bottom: 16px; color: var(--ink-primary); }
.trailer iframe { width: 100%; height: 100%; border: 0; }
.trailer-alt { align-self: flex-end; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-muted); }
.trailer-alt:hover { color: var(--ink-primary); }

/* ---------- final CTA + footer ---------- */
.final-cta {
  position: relative;
  min-height: 100svh;
  justify-content: center;
  background: linear-gradient(var(--bg-base), #000 35%);
  padding: clamp(120px, 20vh, 220px) var(--gutter) clamp(100px, 16vh, 180px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  overflow: hidden;
}
.final-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 30% at 50% 60%, rgba(179, 19, 43, .2), rgba(0, 0, 0, 0) 100%); }
.final-cta > * { position: relative; }
.final-logo { width: min(78vw, 520px); height: auto; opacity: .45; }
.final-line { margin: 0; max-width: 30ch; font-weight: 300; font-style: italic; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.4; color: var(--ink-body); text-wrap: balance; }
body.last-light .final-cta .btn-crimson { animation: nf-last-light 6s ease-in-out infinite; } /* only once it's on screen */
.site-header, .health { transition: opacity .8s; }
body.last-light .site-header, body.last-light .health { opacity: 0; visibility: hidden; transition: opacity .8s, visibility 0s .8s; }
body.last-light .sticky-cta { transform: translateY(110%); visibility: hidden; transition: transform .35s ease, visibility 0s .35s; }
.final-cta .label { font-size: 12px; letter-spacing: .34em; }
.final-cta .label:last-child { font-size: 11px; letter-spacing: .32em; }

.site-footer {
  border-top: 1px solid rgba(236, 230, 218, .12);
  padding: 32px var(--gutter) 112px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 40px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.footer-studio { display: flex; flex-direction: column; gap: 8px; }
.footer-name { color: var(--ink-primary); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-links a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
