/* ═══════════════════════════════════════════════════════════
   ANACK PHOTO — V2 CONCEPT · "ONE DAY"
   A scroll-driven story: one wedding, morning to night.
   Fraunces (display) · IBM Plex Mono (timecode HUD)
   ═══════════════════════════════════════════════════════════ */

:root {
  --serif: "Fraunces", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  /* theme tokens — swapped via body[data-theme], eased by transition */
  --bg: #14110c;
  --fg: #f5efe4;
  --muted: rgba(245, 239, 228, 0.55);
  --line: rgba(245, 239, 228, 0.16);
  --accent: #9fb2c6;
  --screen: #0e0d0b; /* projection-screen panel */

  --pad-x: clamp(1.25rem, 5vw, 4.5rem);
}

/* ── theme checkpoints ───────────────────────────────────── */
body[data-theme="night"]  { --bg:#14110c; --fg:#f5efe4; --muted:rgba(245,239,228,.55); --line:rgba(245,239,228,.16); --accent:#9fb2c6; }
body[data-theme="predawn"]{ --bg:#4b4a52; --fg:#f6f2ea; --muted:rgba(246,242,234,.6);  --line:rgba(246,242,234,.2);  --accent:#b9c6d6; }
body[data-theme="dawn"]   { --bg:#fbf8f3; --fg:#211d19; --muted:#6b6156; --line:rgba(33,29,25,.16); --accent:#4a5a6b; }
body[data-theme="warm"]   { --bg:#f4ede2; --fg:#211d19; --muted:#6b6156; --line:rgba(33,29,25,.16); --accent:#4a5a6b; }
body[data-theme="mono"]   { --bg:#e3ddd1; --fg:#161514; --muted:#6e6a64; --line:rgba(22,21,20,.18); --accent:#3c3a37; }
body[data-theme="golden"] { --bg:#eeddbe; --fg:#33240f; --muted:#8a7554; --line:rgba(51,36,15,.2);  --accent:#7a5c2e; }
body[data-theme="dusk"]   { --bg:#191510; --fg:#f5efe4; --muted:rgba(245,239,228,.55); --line:rgba(245,239,228,.16); --accent:#c8a96d; }
body[data-theme="ink"]    { --bg:#120f0b; --fg:#f5efe4; --muted:rgba(245,239,228,.5);  --line:rgba(245,239,228,.14); --accent:#9fb2c6; }

/* ── base ────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-weight: 340;
  font-variation-settings: "opsz" 18, "SOFT" 40, "WONK" 0;
  line-height: 1.55;
  transition: background-color 0.9s cubic-bezier(0.4, 0, 0.2, 1), color 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

.mono {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── grain + cursor ──────────────────────────────────────── */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 45;
  opacity: 0.06;
  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' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(2) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-1.5%, 1%); }
  100% { transform: translate(1%, -1.5%); }
}

.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 70; display: none; }
@media (hover: hover) and (pointer: fine) { html.js .cursor { display: block; } }
.cursor__dot, .cursor__ring {
  position: absolute; top: 0; left: 0;
  border-radius: 50%;
  mix-blend-mode: difference;
}
.cursor__dot { width: 6px; height: 6px; background: #fff; margin: -3px 0 0 -3px; }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  transition: transform 0.3s cubic-bezier(0.3, 1.2, 0.4, 1), opacity 0.3s;
}
.cursor.is-hover .cursor__ring { transform: scale(1.7); opacity: 0.55; }
@media (hover: hover) and (pointer: fine) { html.js body { cursor: none; } html.js a { cursor: none; } }

/* ── intro curtain ───────────────────────────────────────── */
.intro {
  position: fixed; inset: 0; z-index: 60;
  background: #0d0b08; color: #f5efe4;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.4rem; text-align: center;
}
html:not(.js) .intro { display: none; }
.intro__slate { opacity: 0.55; }
.intro__line {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 330; font-style: italic;
  font-variation-settings: "opsz" 100, "SOFT" 70, "WONK" 1;
}

/* ── HUD ─────────────────────────────────────────────────── */
.hud { position: fixed; z-index: 50; }
.hud--top {
  inset: 0 0 auto 0;
  z-index: 56; /* stays above the full-screen menu so Close is reachable */
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  mix-blend-mode: normal;
}
.hud__logo { position: relative; display: block; width: 42px; height: 34px; }
.hud__logo img { position: absolute; inset: 0; transition: opacity 0.6s; }
.hud__logo-light { opacity: 0; }
body[data-mode="dark"] .hud__logo-light { opacity: 1; }
body[data-mode="dark"] .hud__logo-dark { opacity: 0; }
.hud__right { display: flex; align-items: center; gap: 1.1rem; }
.hud__badge { opacity: 0.5; letter-spacing: 0.18em; }
.hud__cta {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.62em 1.5em;
  border: 1px solid var(--line); border-radius: 99px;
  color: var(--fg);
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.hud__cta:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.hud__menu {
  appearance: none; background: none; border: 0;
  color: var(--fg); cursor: pointer;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.62em 0.2em;
  opacity: 0.85; transition: opacity 0.3s;
}
.hud__menu:hover { opacity: 1; }

/* ── full-screen menu ────────────────────────────────────── */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: #0d0b08; color: #f5efe4;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad-x);
  visibility: hidden; opacity: 0;
  transition: opacity 0.5s, visibility 0s linear 0.5s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.5s; }
.menu__links { display: flex; flex-direction: column; gap: 0.35em; max-width: 62rem; margin: 0 auto; width: 100%; }
.menu__links a {
  display: flex; align-items: baseline; gap: 1.4rem;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  font-weight: 340; line-height: 1.22;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 0;
  color: rgba(245, 239, 228, 0.82);
  transition: color 0.3s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.menu__links a:hover { color: #f5efe4; transform: translateX(0.35em); }
.menu__links a em {
  font-size: 0.35em; font-style: italic;
  font-variation-settings: "opsz" 40, "SOFT" 80, "WONK" 1;
  color: rgba(245, 239, 228, 0.45);
}
.menu__links a .mono { font-size: 0.32em; opacity: 0.45; letter-spacing: 0.2em; }
.menu__meta {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  max-width: 62rem; margin: 3.5rem auto 0; width: 100%;
  color: rgba(245, 239, 228, 0.5); font-size: 0.58rem;
}
.menu__meta a { transition: color 0.3s; }
.menu__meta a:hover { color: #f5efe4; }
body.menu-open { overflow: hidden; }
body.menu-open .hud--clock, body.menu-open .hud--chapter,
body.menu-open .hud--rail, body.menu-open .hud--index { opacity: 0; pointer-events: none; }
body.menu-open .hud__logo-dark { opacity: 0 !important; }
body.menu-open .hud__logo-light { opacity: 1 !important; }
body.menu-open .hud__cta { color: #f5efe4; border-color: rgba(245, 239, 228, 0.25); }
body.menu-open .hud__menu { color: #f5efe4; }

.hud--clock {
  left: var(--pad-x); bottom: 1.2rem;
  font-size: 0.78rem; letter-spacing: 0.22em;
  opacity: 0.85;
}
.hud--chapter {
  right: var(--pad-x); bottom: 1.2rem;
  font-size: 0.62rem; letter-spacing: 0.22em;
  opacity: 0.6;
}
.hud--rail {
  right: 1.05rem; top: 50%;
  width: 1px; height: 26vh;
  transform: translateY(-50%);
  background: var(--line);
}
#railDot {
  position: absolute; left: 50%; top: 0;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--fg);
  transform: translate(-50%, -50%);
}

/* ── chapter index rail (Editions-style TOC) ─────────────── */
.hud--index {
  left: 1.15rem; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 0.6rem;
  width: 158px;
}
.hud--index a {
  display: flex; align-items: baseline; gap: 0.55rem;
  font-size: 0.55rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--fg); opacity: 0.42;
  transition: opacity 0.35s;
}
.hud--index a b { font-weight: 400; white-space: nowrap; }
.hud--index a i {
  flex: 1; height: 1px;
  border-bottom: 1px dotted currentColor;
  opacity: 0.5;
  transform: scaleX(0.35); transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.6, 0, 0.2, 1);
}
.hud--index a span { opacity: 0.8; }
.hud--index a:hover { opacity: 0.85; }
.hud--index a.is-active { opacity: 1; }
.hud--index a.is-active i { transform: scaleX(1); }
@media (max-width: 1199px) { .hud--index { display: none; } }

/* ── shared scene bits ───────────────────────────────────── */
.scene { position: relative; }

/* giant ghost chapter words */
.ghost {
  position: absolute; z-index: 0;
  left: -0.06em; top: 0.15em;
  font-size: clamp(7rem, 21vw, 24rem);
  line-height: 0.8;
  font-style: italic; font-weight: 320;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--fg); opacity: 0.05;
  white-space: nowrap;
  pointer-events: none; user-select: none;
}
.ghost--right { left: auto; right: -0.06em; }
.ghost--gold { opacity: 0.08; top: 0.05em; }
.ghost--night { opacity: 0.07; top: 0.1em; }
.chapter > :not(.ghost),
.golden__pin > :not(.ghost),
.night__after > :not(.ghost) { position: relative; z-index: 1; }

/* drop caps — illuminated-manuscript touch */
.dropcap::first-letter {
  float: left;
  font-size: 3.1em; line-height: 0.78;
  padding: 0.06em 0.12em 0 0;
  font-style: italic; font-weight: 380;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--accent);
}

.slate {
  display: inline-flex; align-items: center; gap: 1rem;
  color: var(--muted);
}
.slate i { display: block; width: clamp(3rem, 8vw, 7rem); height: 1px; background: currentColor; transform-origin: left center; }
.slate--center { justify-content: center; }
.slate--light { color: rgba(245, 239, 228, 0.75); }

.chapter__title {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  font-weight: 350; line-height: 1.04;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  margin: 1.6rem 0 0;
  max-width: 14ch;
}
.chapter__title em {
  font-style: italic; font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 85, "WONK" 1;
}
.chapter__title--right { margin-left: auto; text-align: right; }
.chapter__title--center { margin-left: auto; margin-right: auto; text-align: center; }
.chapter__title--light { color: #f5efe4; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.7; max-width: 34ch;
  font-variation-settings: "opsz" 30, "SOFT" 40, "WONK" 0;
}
.lead--light { color: rgba(245, 239, 228, 0.92); }
.fine { font-size: 0.92rem; color: var(--muted); max-width: 38ch; line-height: 1.75; margin-top: 1.2rem; }

/* photo block w/ wipe reveal */
.ph { position: relative; }
.ph__frame { overflow: hidden; background: color-mix(in srgb, var(--fg) 6%, transparent); }
.ph__frame img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.ph figcaption { margin-top: 0.8rem; color: var(--muted); font-size: 0.62rem; }

/* word-split masks — padded so descenders (g, y, italic f/l) never clip */
.w-mask {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding: 0.14em 0.12em 0.32em;
  margin: -0.14em -0.12em -0.32em;
}
.w-word { display: inline-block; will-change: transform; }

/* ── SCENE 00 · HERO ─────────────────────────────────────── */
.hero { height: 100svh; overflow: hidden; }
.hero__media, .hero__media picture { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 38%;
  will-change: transform;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(13, 11, 8, 0.82) 0%, rgba(13, 11, 8, 0.12) 38%, rgba(13, 11, 8, 0.25) 100%);
}
.hero__inner {
  position: absolute;
  left: var(--pad-x); right: var(--pad-x); bottom: 13vh;
  color: #f5efe4;
}
.hero__kicker { display: block; margin-bottom: 1.4rem; color: rgba(245, 239, 228, 0.7); }
.hero__line { display: block; }
.hero__title {
  font-size: clamp(2.7rem, 7.4vw, 7rem);
  font-weight: 340; line-height: 1.02;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 25, "WONK" 0;
  max-width: 16ch;
}
.hero__title em {
  font-style: italic; font-weight: 420;
  font-variation-settings: "opsz" 144, "SOFT" 90, "WONK" 1;
}
.hero__cue {
  position: absolute; right: var(--pad-x); bottom: 12vh;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  color: rgba(245, 239, 228, 0.65);
  font-size: 0.58rem; letter-spacing: 0.3em;
  writing-mode: vertical-rl;
}
.hero__cue i { width: 1px; height: 52px; background: currentColor; display: block; overflow: hidden; position: relative; }
.hero__cue i::after {
  content: ""; position: absolute; inset: 0;
  background: #f5efe4;
  animation: cue-drop 1.8s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}
@keyframes cue-drop { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ghosted authority strip above the title block */
.hero__proof {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(1.1rem, 2.4vw, 2.4rem);
  margin-bottom: clamp(1.5rem, 3.2vh, 2.4rem);
}
.hero__proof .mono {
  font-size: 0.58rem; letter-spacing: 0.28em;
  color: rgba(245, 239, 228, 0.55);
  margin-right: 0.7rem;
}
.hero__proof img {
  height: 26px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity 0.35s;
}
.hero__proof img:hover { opacity: 1; }

/* ── REWIND ──────────────────────────────────────────────── */
.rewind { height: 100svh; display: flex; align-items: center; overflow: hidden; }
.rewind__inner {
  width: 100%; padding: 0 var(--pad-x);
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(1.6rem, 4vh, 3rem);
  text-align: center;
}
.rewind__line {
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  max-width: 44ch; line-height: 1.55;
  font-variation-settings: "opsz" 40, "SOFT" 40, "WONK" 0;
}
.rewind__line em { font-style: italic; font-variation-settings: "opsz" 40, "SOFT" 80, "WONK" 1; }
.rewind__clock { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.rewind__time {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(3.4rem, 11vw, 9rem);
  letter-spacing: 0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
  will-change: contents;
}
.rewind__sub { color: var(--muted); letter-spacing: 0.3em; font-size: 0.6rem; }

/* rewinding photo frames flying past */
.rewind__frames { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.rewind__inner { position: relative; z-index: 1; }
.rframe {
  position: absolute; top: 110%;
  width: clamp(88px, 10vw, 168px); height: auto;
  background: #faf7f1; padding: 5px 5px 1.7rem;
  box-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.55);
  opacity: 0.92;
}

/* ── chapters (shared) ───────────────────────────────────── */
.chapter { padding: clamp(16vh, 20vh, 24vh) var(--pad-x); }

/* fanned deck of prints (midday) */
.deck {
  position: relative;
  height: clamp(430px, 66vh, 660px);
  margin-top: clamp(3rem, 8vh, 6rem);
}
.deck__card {
  position: absolute; left: 50%; top: 50%;
  width: clamp(230px, 23vw, 370px);
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  background: #fdfbf7;
  padding: 10px 10px 2.9rem;
  box-shadow: 0 26px 64px -20px rgba(25, 18, 8, 0.4);
}
.deck__card:nth-child(1) { --r: -2deg; }
.deck__card:nth-child(2) { --r: 1.5deg; }
.deck__card:nth-child(3) { --r: -1deg; }
.deck__card:nth-child(4) { --r: 2deg; }
.deck__card img { width: 100%; height: auto; } /* natural aspect — never crop people */
.deck__card figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 0.95rem;
  color: #756b5d; font-size: 0.52rem;
  letter-spacing: 0.13em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.midday__copy { max-width: 40rem; margin: clamp(3rem, 7vh, 5rem) 0 0 auto; }

/* CH 01 · MORNING */
.morning__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.2rem, 2.6vw, 2.6rem);
  margin-top: clamp(3rem, 7vh, 5.5rem);
  align-items: start;
}
.morning__grid .ph--tall { grid-column: 1 / span 5; }
.morning__grid .ph--tall .ph__frame { aspect-ratio: 3 / 5; }
.morning__copy { grid-column: 7 / span 5; padding-top: clamp(1rem, 6vh, 4rem); }
.morning__grid .ph--wide { grid-column: 8 / span 5; margin-top: clamp(-10rem, -12vh, -5rem); }
.morning__grid .ph--wide .ph__frame { aspect-ratio: 3 / 5.1; }

/* CH 03 · FILM / CEREMONY — a fine-art print torn into the page */
.film {
  background: #f6f4ef;
  --fg: #14120f; --muted: #756f60; --line: rgba(20, 18, 15, 0.16); --accent: #3c3a37;
  color: var(--fg);
  margin: 26px 0;
}
.film::before, .film::after {
  content: ""; position: absolute; left: 0; right: 0; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 26' preserveAspectRatio='none'%3E%3Cpath fill='%23f6f4ef' d='M0 26 L0 15 L18 9 L42 14 L60 5 L84 12 L105 4 L130 13 L152 7 L178 15 L200 6 L224 12 L250 3 L272 13 L296 8 L318 15 L340 5 L365 11 L390 4 L412 14 L436 7 L458 13 L480 4 L505 12 L528 6 L552 14 L575 8 L600 3 L622 12 L648 6 L672 14 L695 5 L718 11 L742 7 L764 13 L788 4 L812 12 L836 8 L858 14 L880 6 L900 12 L900 26 Z'/%3E%3C/svg%3E") repeat-x bottom / 900px 26px;
  pointer-events: none;
}
.film::before { top: -25px; }
.film::after { bottom: -25px; transform: scaleY(-1); }

.film__pin {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: clamp(1.4rem, 3.5vh, 2.6rem);
  padding: 10vh var(--pad-x) 12vh;
  text-align: center;
}
.film__head .chapter__title { margin-top: 1.4rem; }
.film__stage { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.film__frame {
  position: relative;
  width: min(78vw, 118vh, 900px);
  aspect-ratio: 3 / 2;
  background: var(--screen);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.45);
}
.film__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
}
.film__img.is-current { opacity: 1; }
.film__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  width: min(78vw, 118vh, 900px);
  color: var(--muted); font-size: 0.62rem;
}
.film__counter b { font-weight: 500; color: var(--fg); }
.film__note {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-style: italic; max-width: 44ch;
  font-variation-settings: "opsz" 40, "SOFT" 80, "WONK" 1;
  color: var(--muted);
}

/* CH 04 · GOLDEN (horizontal) */
.golden { overflow: hidden; }
.golden__pin {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(2rem, 6vh, 4rem);
  padding: 12vh 0;
}
.golden__head { padding: 0 var(--pad-x); }
.golden__hint { margin-top: 1.6rem; color: var(--muted); letter-spacing: 0.24em; font-size: 0.6rem; }
.golden__track {
  display: flex; align-items: flex-end;
  gap: clamp(2rem, 4vw, 4rem);
  padding: 0 var(--pad-x);
  width: max-content;
  will-change: transform;
}
.gcard { flex: 0 0 auto; }
.gcard img { height: 56vh; width: auto; max-width: none; }
.gcard--land img { height: 48vh; }
.gcard--tall img { height: 62vh; }
.gcard figcaption { margin-top: 0.8rem; color: var(--muted); font-size: 0.6rem; }
.gcard img { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.gcard:hover img { transform: scale(1.025); }

/* CH 05 · NIGHT */
.night__full { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.night__full picture, .night__full img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.night__veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18, 15, 11, 0.92) 0%, rgba(18, 15, 11, 0.15) 45%, rgba(18, 15, 11, 0.3) 100%);
}
.night__caption { position: relative; padding: 0 var(--pad-x) 14vh; max-width: 62rem; }
.night__caption .lead { margin-top: 1.6rem; }
.night__after {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  padding: clamp(12vh, 16vh, 20vh) var(--pad-x);
  align-items: start;
}
.night__after .ph:nth-of-type(1) { grid-column: 1 / span 5; }
.night__after .ph:nth-of-type(1) .ph__frame { aspect-ratio: 3 / 2; }
.night__after .ph:nth-of-type(2) { grid-column: 7 / span 6; margin-top: clamp(4rem, 14vh, 9rem); }
.night__after .ph:nth-of-type(2) .ph__frame { aspect-ratio: 3 / 2; }
.night__last { grid-column: 4 / span 7; margin-top: clamp(3rem, 10vh, 7rem); }
.night__last .ph__frame { aspect-ratio: 16 / 9.4; }

/* NUMBERS */
.numbers { padding: clamp(18vh, 24vh, 28vh) var(--pad-x); }
.numbers__inner { max-width: 72rem; margin: 0 auto; text-align: center; }
.numbers__lede {
  font-size: clamp(1.5rem, 3.2vw, 2.7rem);
  line-height: 1.35; font-weight: 340;
  font-variation-settings: "opsz" 90, "SOFT" 40, "WONK" 0;
}
.numbers__lede em { font-style: italic; font-variation-settings: "opsz" 90, "SOFT" 85, "WONK" 1; }
.numbers__row {
  display: flex; justify-content: center;
  gap: clamp(2.5rem, 9vw, 8rem);
  margin: clamp(3.5rem, 9vh, 6rem) 0;
  flex-wrap: wrap;
}
.num { display: flex; flex-direction: column; gap: 0.9rem; align-items: center; }
.num__val {
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 300; line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-variant-numeric: tabular-nums;
}
.num__label { color: var(--muted); font-size: 0.6rem; letter-spacing: 0.26em; }
.numbers__link {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4em;
  transition: border-color 0.3s;
}
.numbers__link:hover { border-color: var(--fg); }

/* OUTRO */
.outro {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 16vh var(--pad-x) 0;
}
.outro__inner { text-align: center; max-width: 60rem; margin: 0 auto; }
.outro__title {
  font-size: clamp(2.6rem, 6.4vw, 5.8rem);
  font-weight: 350; line-height: 1.05; letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  margin: 1.8rem 0 0;
}
.outro__title em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 85, "WONK" 1; }
.outro__sub { margin-top: 1.6rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.outro__actions {
  display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2.8rem;
}
.btn {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 1.05em 2.2em; border-radius: 99px;
  transition: background-color 0.35s, color 0.35s, border-color 0.35s, transform 0.35s;
  will-change: transform;
}
.btn--solid { background: var(--fg); color: var(--bg); border: 1px solid var(--fg); }
.btn--solid:hover { background: transparent; color: var(--fg); }
.btn--ghost { border: 1px solid var(--line); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); }
/* inquiry form — the story ends with starting yours */
[hidden] { display: none !important; }
.iform {
  max-width: 44rem; margin: 3rem auto 0;
  text-align: left;
  display: flex; flex-direction: column; gap: 1.9rem;
}
.iform__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.6rem); }
.iform__field { display: flex; flex-direction: column; gap: 0.45rem; }
.iform__field label { font-size: 0.55rem; letter-spacing: 0.22em; color: var(--muted); }
.iform__field input,
.iform__field textarea {
  appearance: none; background: transparent; border: 0; border-radius: 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--serif); font-size: 1.08rem; font-weight: 340;
  font-variation-settings: "opsz" 30, "SOFT" 40, "WONK" 0;
  padding: 0.45em 0 0.55em;
  transition: border-color 0.35s;
}
.iform__field input::placeholder,
.iform__field textarea::placeholder { color: color-mix(in srgb, var(--muted) 55%, transparent); font-style: italic; }
.iform__field input:focus,
.iform__field textarea:focus { outline: none; border-color: var(--fg); }
.iform__field textarea { resize: vertical; min-height: 5.5em; line-height: 1.6; }
.iform__field input:-webkit-autofill,
.iform__field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--fg);
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  transition: background-color 9999s;
}
.iform__actions { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; margin-top: 0.6rem; }
.iform__submit { cursor: pointer; font-family: var(--mono); }
.iform__submit:disabled { opacity: 0.55; cursor: default; }
.iform__note { text-align: center; color: var(--muted); font-size: 0.55rem; letter-spacing: 0.16em; line-height: 2; }
.iform__err { text-align: center; color: #d8a17a; font-size: 0.92rem; }
.iform__done { margin: 4rem auto 0; }
.iform__done-big {
  font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 350; font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 85, "WONK" 1;
  margin-bottom: 0.8rem;
}
.iform__done p:last-child { color: var(--muted); }

.outro__sig {
  width: clamp(150px, 16vw, 220px);
  margin: 3.5rem auto 0;
  opacity: 0.9;
}
body[data-mode="dark"] .outro__sig { filter: invert(0.92) brightness(1.15); }

/* THE FINE PRINT — paper back page */
.details { padding: clamp(12vh, 16vh, 20vh) var(--pad-x) 0; }
.details__inner { max-width: 72rem; margin: 0 auto; }
.details__label {
  color: var(--muted); font-size: 0.6rem; letter-spacing: 0.24em;
  margin-bottom: 1.4rem;
}
.details__cols {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  margin-top: clamp(3rem, 7vh, 5rem);
}
.details__col .fine { max-width: 46ch; }
.details__col .fine + .fine { margin-top: 1rem; }
.tlink { border-bottom: 1px solid var(--line); transition: border-color 0.3s; }
.tlink:hover { border-color: var(--fg); }
.details__places { list-style: none; margin-top: 0.4rem; }
.details__places li {
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  padding: 0.9rem 0; border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
}
.details__places li span { color: var(--muted); font-size: 0.82rem; }

.faq { margin-top: clamp(3.5rem, 8vh, 6rem); max-width: 46rem; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-of-type { border-bottom: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.1rem 0;
  font-size: 1.02rem; font-weight: 380;
  transition: color 0.3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-family: var(--mono); font-size: 0.9rem;
  color: var(--muted); transition: transform 0.35s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--accent); }
.faq__answer { padding: 0 0 1.3rem; color: var(--muted); font-size: 0.92rem; line-height: 1.75; max-width: 56ch; }

.foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  padding: clamp(3.5rem, 8vh, 6rem) 0 2rem;
  color: var(--muted); font-size: 0.6rem;
}
.foot a { transition: color 0.3s; }
.foot a:hover { color: var(--fg); }

/* ── golden native fallback (mobile / reduced motion) ────── */
.golden--native .golden__pin { min-height: 0; }
.golden--native .golden__track {
  width: auto;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: none;
}
.golden--native .golden__track::-webkit-scrollbar { display: none; }
.golden--native .gcard { scroll-snap-align: center; }

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 899px) {
  .hud--chapter { display: none; }
  .hud--rail { display: none; }
  .hud__badge { display: none; }
  .hud--clock { font-size: 0.66rem; bottom: 0.9rem; }

  .chapter { padding: 14vh var(--pad-x); }
  .chapter__title { max-width: 12ch; }
  .chapter__title--right { text-align: left; margin-left: 0; }

  .morning__grid, .night__after { display: block; }
  .morning__grid .ph, .night__after .ph { margin: 0 0 2.6rem; }
  .morning__grid .ph--wide { margin-top: 0; }
  .morning__copy { padding: 0 0 2.6rem; }
  .midday__copy { margin: 2.6rem 0 0; }
  .night__after .ph:nth-child(2), .night__last { margin-top: 0; }

  .details__cols { grid-template-columns: 1fr; gap: 2.5rem; }
  .iform__row { grid-template-columns: 1fr; gap: 1.9rem; }
  .iform { margin-top: 2.4rem; }
  .deck { height: clamp(340px, 52vh, 460px); }
  .deck__card { width: clamp(180px, 44vw, 260px); padding-bottom: 2.3rem; }
  .rframe { width: clamp(64px, 16vw, 110px); padding-bottom: 1.2rem; }
  .ghost { font-size: clamp(4.6rem, 26vw, 9rem); opacity: 0.06; }

  .film__frame, .film__meta { width: 88vw; }
  .film__frame { aspect-ratio: 4 / 3; }
  .film__meta { flex-direction: column; align-items: flex-start; gap: 0.45rem; }
  .film__caption { text-align: left; }

  .gcard img { height: 44vh; }
  .gcard--land img { height: 38vh; }
  .gcard--tall img { height: 48vh; }

  .hero__cue { display: none; }
  .hero__inner { bottom: 9vh; }
  .hero__proof { gap: 1rem; margin-bottom: 1.4rem; }
  .hero__proof img { height: 14px; opacity: 0.7; }
  .hero__proof .proof--wide { display: none; } /* script marks don't read this small */
  .hero__proof .mono { width: 100%; margin: 0 0 0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hero__cue i::after { animation: none; }
  html.js .cursor { display: none; }
  html.js body, html.js a { cursor: auto; }
}
