/* ==========================================================================
   Justin Anthony Long — "Classic with a wink"
   One grade: warm black-and-white film. One wink: marquee-bulb yellow.
   ========================================================================== */

:root {
  /* Color tokens */
  --ink: #0e0d0c;
  --ink-2: #161513;
  --ink-3: #201e1b;
  --bone: #f2ede4;
  --bone-2: #e6dfd2;
  --smoke: #a39d92;      /* secondary text on ink — 7.3:1 */
  --smoke-ink: #5c574f;  /* secondary text on bone — 6.4:1 */
  --line: rgba(242, 237, 228, 0.14);
  --line-ink: rgba(14, 13, 12, 0.16);
  --wink: #f4df4e;
  --wink-ink: #1a1700;

  /* Type */
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Space (spacious 8pt scale) */
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4.5rem; --s7: 7rem; --s8: 10rem;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 88rem;

  /* Motion tokens */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);       /* expo-out: arrivals */
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);        /* exits */
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 180ms;
  --t-med: 520ms;
  --t-slow: 1100ms;

  /* Layers */
  --z-grain: 60; --z-nav: 50; --z-menu: 45; --z-progress: 55; --z-slate: 100;

  color-scheme: dark;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; touch-action: manipulation; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-style: italic; }
::selection { background: var(--wink); color: var(--wink-ink); }

:focus-visible { outline: 2px solid var(--wink); outline-offset: 4px; border-radius: 2px; }

.mono { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--wink); color: var(--wink-ink); padding: .75rem 1rem; font-weight: 600; transition: top var(--t-fast); }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { color: var(--smoke); display: inline-flex; align-items: center; gap: .6rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wink); box-shadow: 0 0 0 0 rgba(244,223,78,.6); animation: pulse 2.4s var(--ease-io) infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(244,223,78,.55)} 70%{box-shadow:0 0 0 10px rgba(244,223,78,0)} 100%{box-shadow:0 0 0 0 rgba(244,223,78,0)} }

/* ---------- Film grain (static texture, gently stepped on large screens) ---------- */
.grain {
  position: fixed; inset: -50%; z-index: var(--z-grain); pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .grain { animation: grain 0.9s steps(5) infinite; }
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-4%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* ---------- Progress bar ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: var(--z-progress); pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--wink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Opening slate ---------- */
.slate { display: none; }
.slate-on .slate {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: var(--z-slate);
  background: var(--ink); color: var(--bone);
  animation: slateOut 700ms var(--ease-io) 1350ms forwards;
}
.slate__inner { display: grid; gap: .6rem; justify-items: center; text-align: center; padding: var(--gutter); }
.slate__row { color: var(--smoke); opacity: 0; animation: fadeUp 500ms var(--ease-out) forwards; }
.slate__row:nth-child(2) { animation-delay: 120ms; }
.slate__row b { color: var(--bone); font-weight: 500; }
.slate__title { font-family: var(--serif); font-size: clamp(2.4rem, 8vw, 5.5rem); line-height: 1; margin-top: .4rem; clip-path: inset(0 100% 0 0); animation: wipe 900ms var(--ease-out) 220ms forwards; }
.slate__title em { color: var(--wink); }
.slate__tc { color: var(--wink); margin-top: .4rem; font-variant-numeric: tabular-nums; }
.slate-done .slate { display: none; }
@keyframes slateOut { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: max(1rem, env(safe-area-inset-top)) var(--gutter) 1rem;
  transition: background-color var(--t-med) var(--ease-out), backdrop-filter var(--t-med), transform var(--t-med) var(--ease-out);
}
.nav.is-scrolled { background: rgba(14, 13, 12, 0.72); -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__mark { font-family: var(--serif); font-size: 1.75rem; line-height: 1; letter-spacing: -0.02em; min-height: 44px; display: inline-flex; align-items: center; }
.nav__mark em { color: var(--wink); font-size: .85em; margin: 0 .02em; }
.nav__now { color: var(--smoke); margin-right: auto; display: none; font-variant-numeric: tabular-nums; }
.nav__now [data-now-sc] { color: var(--wink); }
.nav__sep { opacity: .5; }
.nav__links { display: none; gap: clamp(1rem, 2vw, 2rem); align-items: center; }
.nav__links a { font-size: .9rem; position: relative; padding: .5rem 0; color: var(--bone); opacity: .78; transition: opacity var(--t-fast); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .25rem; height: 1px; background: var(--wink); transform: scaleX(0); transform-origin: right; transition: transform var(--t-med) var(--ease-out); }
.nav__links a:hover, .nav__links a[aria-current="true"] { opacity: 1; }
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem !important; opacity: 1 !important; transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast) !important; }
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--wink); color: var(--wink-ink) !important; border-color: var(--wink); }

.nav__toggle { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; min-width: 44px; padding: 0 .25rem; font-size: .9rem; position: relative; z-index: 2; }
.nav__toggle-lines { width: 26px; height: 10px; position: relative; display: block; }
.nav__toggle-lines i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform var(--t-med) var(--ease-out), top var(--t-med) var(--ease-out); }
.nav__toggle-lines i:first-child { top: 0; }
.nav__toggle-lines i:last-child { top: 8.5px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines i:first-child { top: 4.25px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines i:last-child { top: 4.25px; transform: rotate(-45deg); }

@media (min-width: 640px) { .nav__now { display: inline; } }
@media (min-width: 1080px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .nav__now { margin-right: 0; }
  .nav { display: grid; grid-template-columns: auto 1fr auto; }
  .nav__now { justify-self: start; padding-left: 1.5rem; }
}

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--ink);
  display: grid; align-items: center; padding: 6rem var(--gutter) max(2rem, env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0); transition: clip-path 600ms var(--ease-out), visibility 0s 600ms; visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 700ms var(--ease-out); }
.menu__list { display: grid; gap: .25rem; }
.menu__list a { display: flex; align-items: baseline; gap: 1rem; font-family: var(--serif); font-size: clamp(2.4rem, 11vw, 4.5rem); line-height: 1.08; min-height: 44px; opacity: 0; transform: translateY(24px); transition: opacity 400ms var(--ease-out), transform 600ms var(--ease-out), color var(--t-fast); }
.menu__list a:hover, .menu__list a:focus-visible { color: var(--wink); }
.menu__list .mono { color: var(--smoke); font-size: .75rem; transform: translateY(-1.1em); }
.menu.is-open .menu__list a { opacity: 1; transform: none; }
.menu.is-open li:nth-child(1) a { transition-delay: 120ms; }
.menu.is-open li:nth-child(2) a { transition-delay: 160ms; }
.menu.is-open li:nth-child(3) a { transition-delay: 200ms; }
.menu.is-open li:nth-child(4) a { transition-delay: 240ms; }
.menu.is-open li:nth-child(5) a { transition-delay: 280ms; }
.menu.is-open li:nth-child(6) a { transition-delay: 320ms; }
.menu.is-open li:nth-child(7) a { transition-delay: 360ms; }
.menu__list em { color: var(--wink); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  padding: 7rem var(--gutter) clamp(5rem, 10vh, 7rem); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(var(--hs, 1.04)) translate3d(0, var(--hy, 0px), 0); will-change: transform; filter: contrast(1.05); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,13,12,.55) 0%, rgba(14,13,12,0) 24%, rgba(14,13,12,0) 42%, rgba(14,13,12,.82) 74%, var(--ink) 100%);
}
.hero__copy { position: relative; max-width: 60rem; }
.hero__eyebrow { margin-bottom: var(--s3); }
.hero__name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(4.25rem, 19vw, 13.5rem); line-height: .84; letter-spacing: -0.035em;
}
.hero__name .line { display: block; overflow: hidden; padding: .04em .12em .26em; margin: -.04em -.12em -.26em; }
.hero__name .line > span { display: inline-block; }
.hero__name em { color: var(--wink); padding-right: .04em; }
.hero__name .line:nth-child(2) { padding-left: .55em; }
.hero__roles { margin-top: var(--s4); font-size: clamp(1.15rem, 2.4vw, 1.6rem); line-height: 1.3; display: flex; flex-wrap: wrap; gap: .35em; align-items: baseline; }
.hero__roles-lead { color: var(--smoke); }
.rotator { position: relative; display: inline-grid; font-family: var(--serif); font-style: italic; font-size: 1.3em; color: var(--bone); }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(.45em); transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out); white-space: nowrap; }
.rotator > span.is-on { opacity: 1; transform: none; }
.rotator > span.is-off { opacity: 0; transform: translateY(-.45em); transition-duration: 320ms; transition-timing-function: var(--ease-in); }
.hero__hats { display: none; }
.hero__scroll { position: absolute; left: var(--gutter); bottom: max(1.5rem, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: .75rem; color: var(--smoke); min-height: 44px; }
.hero__scroll i { display: block; width: 1px; height: 36px; background: linear-gradient(var(--wink), transparent); transform-origin: top; animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { 0%{transform:scaleY(0)} 50%{transform:scaleY(1)} 100%{transform:scaleY(1); opacity:0} }
.hero__tc { position: absolute; right: var(--gutter); bottom: max(1.85rem, env(safe-area-inset-bottom)); color: var(--smoke); font-variant-numeric: tabular-nums; }

@media (min-width: 900px) {
  .hero { align-items: center; padding-top: 6rem; padding-bottom: 6rem; }
  .hero__media { left: auto; width: 54vw; }
  .hero__media::after {
    background:
      linear-gradient(90deg, var(--ink) 0%, rgba(14,13,12,.55) 22%, rgba(14,13,12,0) 50%),
      linear-gradient(180deg, rgba(14,13,12,.4) 0%, rgba(14,13,12,0) 18%, rgba(14,13,12,0) 78%, var(--ink) 100%);
  }
  .hero__hats { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: var(--s5); color: var(--smoke); }
  .hero__hats li { position: relative; }
  .hero__hats li + li::before { content: ""; position: absolute; left: -.7rem; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--smoke); }
}

/* Hero entrance — runs after slate (or immediately) */
.js .hero__name .line > span { transform: translateY(105%); }
.js .hero__eyebrow, .js .hero__roles, .js .hero__hats, .js .hero__scroll, .js .hero__tc { opacity: 0; }
.js .hero__media img { clip-path: inset(0 0 100% 0); }
.is-ready .hero__name .line > span { transform: none; transition: transform 1200ms var(--ease-out); }
.is-ready .hero__name .line:nth-child(2) > span { transition-delay: 90ms; }
.is-ready .hero__name .line:nth-child(3) > span { transition-delay: 180ms; }
.is-ready .hero__eyebrow, .is-ready .hero__roles, .is-ready .hero__hats, .is-ready .hero__scroll, .is-ready .hero__tc { opacity: 1; transition: opacity 900ms var(--ease-out) 500ms; }
.is-ready .hero__roles { transition-delay: 650ms; }
.is-ready .hero__hats { transition-delay: 800ms; }
.is-ready .hero__media img { clip-path: inset(0 0 0 0); transition: clip-path 1500ms var(--ease-out), transform 1800ms var(--ease-out); }

/* ==========================================================================
   SHARED: reveals
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .24em; margin: 0 -.08em -.24em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(110%); transition: transform 1000ms var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
.js [data-split].is-in .w > span { transform: none; }

.js [data-reveal-img] { clip-path: inset(12% 6% 12% 6%); transition: clip-path 1400ms var(--ease-out); }
.js [data-reveal-img] img { transform: scale(1.18); transition: transform 1800ms var(--ease-out); }
.js [data-reveal-img].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal-img].is-in img { transform: scale(1); }

/* ==========================================================================
   PROLOGUE
   ========================================================================== */
.prologue { padding: var(--s7) 0 var(--s6); border-top: 1px solid var(--line); }
.prologue__quote {
  font-family: var(--serif); font-size: clamp(2rem, 5.4vw, 4.6rem); line-height: 1.06; letter-spacing: -0.02em;
  margin-top: var(--s4); max-width: 22ch; text-wrap: balance;
}
.prologue__quote em { color: var(--wink); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4) var(--s3); margin-top: var(--s6); border-top: 1px solid var(--line); padding-top: var(--s4); }
.facts dt { color: var(--smoke); margin-bottom: .35rem; }
.facts dd { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1; }
.facts dd em { color: var(--wink); }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, 1fr); } }

.marquee { display: flex; overflow: hidden; margin-top: var(--s6); border-block: 1px solid var(--line); padding: 1.1rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; flex-shrink: 0; gap: 3rem; padding-right: 3rem; animation: marquee 48s linear infinite; }
.marquee__track li { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.75rem); white-space: nowrap; color: var(--bone-2); display: flex; align-items: center; gap: 3rem; }
.marquee__track li::after { content: "✦"; font-style: normal; font-size: .6em; color: var(--wink); }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ==========================================================================
   CHAPTERS
   ========================================================================== */
.chapter { padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 9vw, 7rem); position: relative; }
@media (max-width: 899px) { .split__aside { order: 2; } .split__aside .photo { margin-inline: auto; } }
.chapter + .chapter { border-top: 1px solid var(--line); }
.chapter__head { margin-bottom: var(--s6); max-width: 48rem; }
.chapter__head--center { margin-inline: auto; text-align: center; }
.chapter__num { color: var(--wink); display: inline-flex; gap: .75rem; align-items: center; }
.chapter__num::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; }
.chapter__head--center .chapter__num::after { content: ""; width: 2.25rem; height: 1px; background: currentColor; }
.chapter__title { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 11vw, 9rem); line-height: .9; letter-spacing: -0.03em; margin-top: var(--s3); }
.chapter__title em { color: var(--wink); }
.chapter__lede { margin-top: var(--s4); color: var(--bone-2); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 38rem; }
.chapter__head--center .chapter__lede { margin-inline: auto; }
.sub { color: var(--smoke); margin: var(--s6) 0 var(--s3); display: block; }

.photo { overflow: hidden; background: var(--ink-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 2 / 3; }
.photo--color img { filter: none; }

/* --- Split layout --- */
.split { display: grid; gap: var(--s6); }
.split__aside .photo { aspect-ratio: 2 / 3; max-width: 32rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .photo--sticky { position: sticky; top: 7rem; }
}

/* --- Reel --- */
.reel { margin-bottom: var(--s7); }
.reel__frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink-2); overflow: hidden; }
.reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.reel__play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; overflow: hidden; }
.reel__play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.72); transform: scale(1.02); transition: filter 900ms var(--ease-out), transform 1400ms var(--ease-out); }
.reel__play:hover img, .reel__play:focus-visible img { filter: grayscale(0) brightness(.85); transform: scale(1.06); }
.reel__btn { position: relative; width: clamp(4.5rem, 9vw, 7rem); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--wink); color: var(--wink-ink); transition: transform var(--t-med) var(--ease-out); }
.reel__btn::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(244,223,78,.5); animation: ring 2.4s var(--ease-out) infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.reel__btn svg { width: 34%; fill: currentColor; margin-left: 6%; }
.reel__play:hover .reel__btn { transform: scale(1.08); }
.reel__play:active .reel__btn { transform: scale(.96); }
.reel__label { position: absolute; left: 1.25rem; bottom: 1.1rem; color: var(--bone); }
.reel__play.is-gone { opacity: 0; visibility: hidden; transition: opacity 400ms var(--ease-out), visibility 0s 400ms; }
.reel__cap { display: flex; justify-content: space-between; color: var(--smoke); margin-top: .9rem; }

/* --- Actor credits --- */
.actor__grid { display: grid; gap: var(--s6); }
.actor__grid .photo { max-width: 30rem; }
@media (min-width: 900px) {
  .actor__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .actor__grid .photo { position: sticky; top: 7rem; }
}
.credits__h { color: var(--smoke); display: block; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.credits__h:not(:first-child) { margin-top: var(--s5); }
.credits__list li {
  position: relative; display: grid; grid-template-columns: 1fr; gap: .1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.credits__list li::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--wink); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease-out); }
.credits__list li:hover::before { transform: scaleX(1); }
.credits__list .t { font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.15; transition: transform 500ms var(--ease-out), color var(--t-fast); }
.credits__list li:hover .t { transform: translateX(.35rem); }
.credits__list .r { color: var(--bone-2); }
.credits__list .v { color: var(--smoke); font-size: .9rem; }
@media (min-width: 640px) {
  .credits__list li { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 1.5rem; align-items: baseline; }
  .credits__list .r { grid-column: 2; grid-row: 1; }
  .credits__list .v { grid-column: 2; grid-row: 2; }
}

/* --- The wink frame --- */
.wink { position: relative; margin-top: var(--s7); aspect-ratio: 3 / 2; overflow: hidden; }
.wink img { width: 100%; height: 100%; object-fit: cover; }
.wink__cap { position: absolute; left: 1.25rem; bottom: 1rem; display: flex; gap: .75rem; align-items: baseline; color: var(--wink-ink); background: var(--wink); padding: .5rem .9rem; }
.wink__cap em { font-family: var(--serif); font-size: 1.35rem; line-height: 1; }
@media (min-width: 900px) { .wink { aspect-ratio: 21 / 9; } .wink img { object-position: 50% 30%; } }

/* --- Writer cards --- */
.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } .cards .card:first-child { grid-column: 1 / -1; } }
.card { background: var(--ink); padding: clamp(1.25rem, 2.6vw, 2rem); position: relative; transition: background-color var(--t-med) var(--ease-out); }
.card:hover { background: var(--ink-2); }
.card__fmt { color: var(--smoke); }
.card__t { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; margin-top: .6rem; }
.card:first-child .card__t { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.card__d { color: var(--bone-2); margin-top: .5rem; }
.laurels { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.laurels li { font-size: .82rem; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; color: var(--bone-2); transition: border-color var(--t-fast), color var(--t-fast); }
.card:hover .laurels li { border-color: rgba(244,223,78,.45); }

.shows li { display: grid; gap: .35rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.shows li:first-child { border-top: 1px solid var(--line); }
.shows__t { font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.1; }
.shows__d { color: var(--smoke); font-size: .95rem; }
.shows__d em { color: var(--bone-2); }

/* --- Songwriter --- */
.chapter--songs { background: radial-gradient(120% 70% at 50% 0%, var(--ink-3) 0%, var(--ink) 60%); }
.songs { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .songs { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); } }
.record { width: min(78vw, 30rem); aspect-ratio: 1; margin-inline: auto; position: relative; }
.record::before { content: ""; position: absolute; inset: 6% -14% 6% 30%; background: var(--wink); border-radius: 2px; z-index: -1; transform: translateX(-18%); transition: transform 1400ms var(--ease-out); }
.record.is-in::before { transform: none; }
.record__disc {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 50%, var(--ink) 0 2.2%, transparent 2.3%),
    radial-gradient(circle at 50% 50%, transparent 0 31%, rgba(255,255,255,.04) 31.3% 31.6%, transparent 32%),
    repeating-radial-gradient(circle at 50% 50%, #121110 0 2px, #1b1a18 2px 3px),
    #121110;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.04);
  position: relative;
}
.record__disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 12%, rgba(255,255,255,.07) 16%, transparent 22% 62%, rgba(255,255,255,.05) 66%, transparent 72%); }
.record__label { width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--bone); color: var(--ink); display: grid; place-items: center; font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 2.4rem); position: relative; z-index: 1; }
.record__label em { color: #a8921a; }
@media (prefers-reduced-motion: no-preference) {
  .record__disc { animation: spin 5.5s linear infinite; animation-play-state: paused; }
  .record.is-spinning .record__disc { animation-play-state: running; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.tracks { counter-reset: t; }
.track { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: start; padding: 1.4rem .25rem; border-bottom: 1px solid var(--line); transition: background-color var(--t-med) var(--ease-out); }
.track:first-child { border-top: 1px solid var(--line); }
.track:hover { background: rgba(244,223,78,.04); }
.track__n { color: var(--smoke); padding-top: .55rem; }
.track__t { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.05; }
.track__d { color: var(--bone-2); margin-top: .3rem; }
.track__badge { color: var(--wink); margin-top: .6rem; }
.eq { display: flex; gap: 3px; align-items: flex-end; height: 18px; margin-top: .75rem; opacity: .35; transition: opacity var(--t-fast); }
.eq i { width: 3px; height: 30%; background: var(--wink); border-radius: 1px; }
.track:hover .eq { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .track:hover .eq i { animation: eq 900ms var(--ease-io) infinite alternate; }
  .track:hover .eq i:nth-child(2) { animation-delay: -300ms; }
  .track:hover .eq i:nth-child(3) { animation-delay: -600ms; }
  .track:hover .eq i:nth-child(4) { animation-delay: -150ms; }
}
@keyframes eq { 0%{height:20%} 50%{height:100%} 100%{height:45%} }

.listen { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: var(--s6); }
.btn {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 1.4rem;
  border-radius: 999px; background: var(--wink); color: var(--wink-ink); font-weight: 500;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform var(--t-fast) var(--ease-out), color var(--t-med) var(--ease-out);
}
.btn svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-med) var(--ease-out); }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--bone); z-index: -1; transform: translateY(101%); transition: transform var(--t-med) var(--ease-out); }
.btn:hover::before { transform: none; }
.btn:hover svg { transform: translate(2px, -2px); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { color: var(--ink); }

/* --- Director --- */
.band { aspect-ratio: 16 / 9; max-height: 78vh; width: 100%; overflow: hidden; margin: calc(clamp(5rem, 12vw, 10rem) * -1) 0 var(--s7); }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 30%; }
@media (max-width: 899px) { .band { aspect-ratio: 4 / 5; } }
.timeline { position: relative; }
.timeline li { display: grid; grid-template-columns: 1fr; gap: .4rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__y { color: var(--wink); font-variant-numeric: tabular-nums; }
.timeline h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.05; }
.timeline p { color: var(--bone-2); max-width: 44rem; margin-top: .35rem; }
@media (min-width: 768px) { .timeline li { grid-template-columns: 9rem minmax(0, 1fr); gap: 2rem; align-items: baseline; } }

/* --- Producer --- */
.feature { border-top: 1px solid var(--line); padding: var(--s4) 0 var(--s5); }
.feature__t { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.02; margin: .6rem 0 .9rem; }
.feature > p:not(.card__fmt) { color: var(--bone-2); max-width: 40rem; }
.slate-card { display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--s4); border: 1px solid var(--line); background: var(--ink-2); }
.slate-card div { padding: .9rem 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.slate-card div:nth-child(2n) { border-right: 0; }
.slate-card div:nth-last-child(-n+2) { border-bottom: 0; }
.slate-card dt { color: var(--smoke); font-size: .68rem; }
.slate-card dd { color: var(--bone); margin-top: .25rem; text-transform: none; letter-spacing: 0; font-family: var(--serif); font-size: 1.35rem; }

/* --- Educator: lights up --- */
.chapter--educator { background: var(--bone); color: var(--ink); border-top: 0 !important; }
.chapter--educator .chapter__num { color: var(--ink); }
.chapter--educator .chapter__title em { color: var(--ink); background: linear-gradient(transparent 62%, var(--wink) 62% 90%, transparent 90%); padding: 0 .08em; }
.chapter--educator .sub, .chapter--educator .mono { color: var(--smoke-ink); }
.edu { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .edu { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; } .edu__big { position: sticky; top: 7rem; } }
.edu__n { display: block; font-family: var(--serif); font-size: clamp(8rem, 26vw, 18rem); line-height: .8; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.edu__l { display: block; max-width: 22rem; margin-top: var(--s3); font-size: 1.15rem; color: #2b2925; }
.edu__list li { padding: 1.5rem 0; border-top: 1px solid var(--line-ink); }
.edu__list li:last-child { border-bottom: 1px solid var(--line-ink); }
.edu__list h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.05; margin: .35rem 0 .4rem; }
.edu__list p { color: #3a3732; max-width: 40rem; }
.training { margin-top: var(--s7); border-top: 1px solid var(--line-ink); padding-top: var(--s3); }
.training .sub { margin-top: 0; }
.training p { max-width: 62rem; color: #2b2925; font-size: 1.05rem; }
.training strong { font-weight: 600; color: var(--ink); }
.training__aff { margin-top: var(--s3); }

/* --- Finale --- */
.finale { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 0; overflow: hidden; border-top: 1px solid var(--line); }
.finale__credits { position: relative; height: min(70svh, 34rem); overflow: hidden; margin-bottom: var(--s6); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); }
.finale__roll { display: grid; gap: 2.4rem; justify-items: center; text-align: center; padding-block: min(70svh, 34rem); }
.finale__roll p { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.1; display: grid; gap: .35rem; }
.finale__roll .mono { color: var(--wink); }
.finale__roll p:last-child em { color: var(--smoke); }
@media (prefers-reduced-motion: no-preference) {
  .finale__credits.is-in .finale__roll { animation: roll 22s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .finale__credits { height: auto; -webkit-mask-image: none; mask-image: none; }
  .finale__roll { padding-block: 0; }
}
@keyframes roll { from { transform: translateY(0); } to { transform: translateY(-100%); } }
.finale__wrap { position: relative; text-align: center; }
.finale__t { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 12vw, 10.5rem); line-height: .9; letter-spacing: -0.035em; max-width: 12ch; margin-inline: auto; text-wrap: balance; }
.finale__t em { color: var(--wink); }
.finale__lede { color: var(--bone-2); margin-top: var(--s5); }
.finale__mail {
  display: inline-block; margin-top: var(--s2); font-family: var(--serif); font-style: italic;
  font-size: clamp(1.6rem, 5.2vw, 3.6rem); line-height: 1.15; overflow-wrap: anywhere;
  background: linear-gradient(var(--wink), var(--wink)) 0 100% / 0% 2px no-repeat;
  transition: background-size 700ms var(--ease-out), color var(--t-fast); padding-bottom: .1em;
}
.finale__mail:hover, .finale__mail:focus-visible { background-size: 100% 2px; color: var(--wink); }
.reps { display: grid; gap: var(--s4); margin: var(--s6) auto 0; max-width: 46rem; text-align: left; }
.reps > div { border-top: 1px solid var(--line); padding-top: var(--s3); }
.reps .mono { color: var(--smoke); }
.reps h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; margin: .4rem 0 .4rem; }
.reps p:not(.mono) { color: var(--bone-2); }
.reps a { border-bottom: 1px solid var(--line); transition: border-color var(--t-fast), color var(--t-fast); display: inline-block; padding: .35rem 0; }
.reps a:hover { color: var(--wink); border-color: var(--wink); }
@media (min-width: 640px) { .reps { grid-template-columns: 1fr 1fr; } }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: var(--s7); padding-top: var(--s3); padding-bottom: max(var(--s4), env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--smoke); position: relative; }
.foot__top { min-height: 44px; display: inline-flex; align-items: center; margin-top: -.9rem; transition: color var(--t-fast); }
.foot__top:hover { color: var(--wink); }

/* ==========================================================================
   Reduced motion: final states, no movement
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; }
  .slate-on .slate { display: none; }
  .marquee__track { animation: none !important; }
  .marquee { overflow-x: auto; }
  .js [data-reveal], .js [data-split] .w > span, .js .hero__name .line > span { transform: none !important; opacity: 1 !important; }
  .js [data-reveal-img], .js .hero__media img { clip-path: none !important; }
  .js [data-reveal-img] img { transform: none !important; }
  .js .hero__eyebrow, .js .hero__roles, .js .hero__hats, .js .hero__scroll, .js .hero__tc { opacity: 1 !important; }
}

@media print {
  .grain, .progress, .nav, .menu, .slate, .marquee, .finale__credits, .reel { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   Watch / listen links, clips, 3-up cards
   ========================================================================== */
.go {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; margin-top: .6rem;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wink);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0% 1px no-repeat;
  transition: background-size var(--t-med) var(--ease-out);
}
.go svg { width: .9rem; height: .9rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-med) var(--ease-out); }
.go:hover, .go:focus-visible { background-size: 100% 1px; }
.go:hover svg, .go:focus-visible svg { transform: translate(2px, -2px); }
.track__links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.shows li .go { margin-top: 0; justify-self: start; }
.cards .card:last-child:nth-child(even) { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--3 .card:first-child, .cards--3 .card:last-child:nth-child(even) { grid-column: auto; }
  .cards--3 .card:first-child .card__t { font-size: clamp(1.7rem, 3vw, 2.4rem); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .cards--3 .card:first-child { grid-column: auto; }
  .cards--3 .card:first-child .card__t { font-size: clamp(1.7rem, 3vw, 2.4rem); }
}
.reel__cap a { color: var(--bone-2); transition: color var(--t-fast); }
.reel__cap a:hover { color: var(--wink); }
.reel__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.clips { margin-bottom: var(--s7); }
.clips__list { display: grid; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .clips__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .clips__list { grid-template-columns: repeat(4, 1fr); } }
.clips__list a { display: grid; gap: .35rem; height: 100%; padding: 1.25rem 1.1rem 1.1rem; background: var(--ink); position: relative; transition: background-color var(--t-med) var(--ease-out); }
.clips__list a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--wink); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease-out); }
.clips__list a:hover { background: var(--ink-2); }
.clips__list a:hover::after, .clips__list a:focus-visible::after { transform: scaleX(1); }
.clips__list .mono { color: var(--smoke); }
.clips__t { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.05; }
.clips__list .clips__s { color: var(--wink); margin-top: .4rem; }

/* Writer: Raindance + Tribeca stacked */
.split__aside--stack { display: grid; gap: var(--s3); }
@media (max-width: 899px) { .split__aside--stack { grid-template-columns: 1fr 1fr; gap: var(--s2); } .split__aside--stack .photo { max-width: none; } }
.photo--wide, .split__aside .photo--wide { aspect-ratio: 3 / 2; }
.photo__cap { color: var(--smoke); margin-top: calc(var(--s3) * -1 + .6rem); }
@media (max-width: 899px) {
  .split__aside--stack .photo--wide, .split__aside--stack .photo__cap { grid-column: 1 / -1; }
  .photo__cap { margin-top: calc(var(--s2) * -1 + .5rem); }
}
.split__aside .photo--34 { aspect-ratio: 3 / 4; }
@media (max-width: 899px) { .split__aside--stack .photo--34 { grid-column: 1 / -1; } }
/* Captions under Writer photos: readable, sentence case */
.photo__cap { font-family: var(--sans); font-size: .95rem; line-height: 1.45; color: var(--bone-2); padding-left: .9rem; position: relative; }
.photo__cap::before { content: ""; position: absolute; left: 0; top: .7em; width: .45rem; height: 1px; background: var(--wink); }
/* Songwriter: full-size record; side-by-side only when there's room, else record sits above the list */
@media (min-width: 900px) and (max-width: 1199px) { .songs { grid-template-columns: 1fr; } }
@media (min-width: 1200px) { .record { width: min(100%, 30rem); } }
/* Director grid: a lone last card spans the row instead of leaving a gap */
@media (min-width: 640px) and (max-width: 1023px) { .cards--3 .card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .cards--3 .card:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .cards--3 .card:last-child:nth-child(3n+2) { grid-column: span 2; }
}
/* Producer: duties list */
.duties__intro { color: var(--bone-2); max-width: 38rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.duties__list { margin-top: var(--s4); border-top: 1px solid var(--line); }
.duties__list li { display: flex; align-items: baseline; gap: 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.1; transition: transform 500ms var(--ease-out), color var(--t-fast); }
.duties__list .mono { color: var(--wink); min-width: 1.6rem; }
.duties__list li:hover { transform: translateX(.35rem); }

/* ==========================================================================
   STILLS gallery + lightbox
   ========================================================================== */
.stills { columns: 2; column-gap: .75rem; }
@media (min-width: 768px) { .stills { columns: 3; column-gap: 1rem; } }
.stills li { break-inside: avoid; margin-bottom: .75rem; }
@media (min-width: 768px) { .stills li { margin-bottom: 1rem; } }
.still { display: block; width: 100%; overflow: hidden; background: var(--ink-2); position: relative; cursor: zoom-in; }
.still img { width: 100%; height: auto; transition: transform 900ms var(--ease-out); }
.still::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--wink); transition: box-shadow 400ms var(--ease-out); pointer-events: none; }
.still:hover img, .still:focus-visible img { transform: scale(1.04); }
.still:hover::after, .still:focus-visible::after { box-shadow: inset 0 0 0 2px var(--wink); }
.still:focus-visible { outline-offset: 3px; }
.still__cap { display: block; color: var(--smoke); margin-top: .45rem; }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 9, 8, .96); color: var(--bone); overscroll-behavior: contain; }
.lightbox::backdrop { background: rgba(10, 9, 8, .96); }
.lightbox[open] { display: grid; place-items: center; animation: lbIn 380ms var(--ease-out); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__fig { display: grid; gap: .75rem; justify-items: center; padding: 4.5rem 1rem 1.5rem; max-width: 100%; }
.lightbox__img { max-width: min(92vw, 1600px); max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; touch-action: pan-y; user-select: none; }
.lightbox__img.is-swap { animation: lbSwap 420ms var(--ease-out); }
@keyframes lbSwap { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.lightbox__cap { display: flex; gap: 1rem; align-items: baseline; color: var(--bone-2); font-size: .95rem; }
.lightbox__cap .mono { color: var(--wink); }
.lightbox__btn { position: fixed; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--bone); background: rgba(242,237,228,.08); transition: background-color var(--t-fast), color var(--t-fast); }
.lightbox__btn:hover { background: var(--wink); color: var(--wink-ink); }
.lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: max(1rem, env(safe-area-inset-top)); right: 1rem; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
@media (max-width: 767px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: max(1rem, env(safe-area-inset-bottom)); transform: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
  .lightbox__fig { padding-bottom: 5rem; }
  .lightbox__img { max-height: calc(100dvh - 12rem); }
}

/* ==========================================================================
   THEATRE THEME — curtain, intermission, curtain call, stage light
   ========================================================================== */

/* Opening curtain: velvet folds that fly out upward */
.slate-on .slate {
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 18%, transparent 80%, rgba(0,0,0,.6) 100%),
    repeating-linear-gradient(90deg, #120e0d 0 2.2%, #1d1614 3.6%, #241b18 5%, #1a1412 6.4%, #120e0d 8%);
}
.slate-on .slate::after { /* valance fringe at the bottom edge of the curtain */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: radial-gradient(circle at 50% 0, var(--wink) 0 2px, transparent 2.5px) 0 0 / 18px 10px repeat-x;
  opacity: .55;
}
.slate__tc { letter-spacing: .14em; }

/* Softer grain, warm spotlight behind the opening portrait */
.grain { opacity: .045; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 72% 34%, rgba(255, 236, 170, .10), transparent 70%);
}
@media (max-width: 899px) { .hero::before { background: radial-gradient(90% 50% at 50% 30%, rgba(255, 236, 170, .10), transparent 70%); } }

/* Nav label can now be words ("Act I · Sc. 2") */
.nav__now { white-space: nowrap; }

/* Intermission */
.intermission { position: relative; padding: clamp(3.5rem, 8vw, 6rem) 0; text-align: center; background: var(--ink-2); border-top: 1px solid var(--line); overflow: hidden; }
.intermission__inner { display: grid; gap: .8rem; justify-items: center; }
.intermission__k { color: var(--smoke); }
.intermission__t { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 12vw, 9rem); line-height: .95; letter-spacing: -0.03em; }
.intermission__t em { color: var(--wink); }
.intermission__d { color: var(--bone-2); font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.bulbs { height: 14px; margin-inline: var(--gutter); background: radial-gradient(circle, var(--wink) 0 3px, rgba(244,223,78,.25) 3.5px 5px, transparent 5.5px) 0 50% / 26px 14px repeat-x; }
.bulbs:first-child { margin-bottom: clamp(2rem, 5vw, 3rem); }
.bulbs:last-child { margin-top: clamp(2rem, 5vw, 3rem); }
@media (prefers-reduced-motion: no-preference) {
  .bulbs { animation: chase 1.6s steps(2) infinite; }
}
@keyframes chase { 50% { background-position: 13px 50%; } }

/* Curtain call label above the rolling program */
.finale__k { text-align: center; color: var(--wink); margin-bottom: var(--s3); }
.menu__list .mono { display: inline-block; min-width: 2.6rem; }
.sub__tag { display: inline-block; margin-left: .75rem; padding: .2rem .65rem; border: 1px solid rgba(244,223,78,.45); border-radius: 999px; color: var(--wink); font-size: .68rem; vertical-align: .1em; }
.edu__photo { margin-top: 1.1rem; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bone-2); }
.edu__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Link thumbnails — show what a Watch / Listen link opens
   ========================================================================== */
.go--media { display: flex; align-items: center; gap: .9rem; width: fit-content; max-width: 100%; margin-top: .9rem; min-height: 0; background: none; }
.go--media .go__label { background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat; transition: background-size var(--t-med) var(--ease-out); padding-bottom: 2px; }
.go--media:hover .go__label, .go--media:focus-visible .go__label { background-size: 100% 1px; }
.go--media > svg { margin-left: -.35rem; }

.thumb { position: relative; flex: none; width: 7.5rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; background: var(--ink-3); box-shadow: 0 0 0 1px var(--line); transition: box-shadow 300ms var(--ease-out); }
.thumb--sq { width: 4.25rem; aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out), filter 400ms var(--ease-out); filter: saturate(.9) brightness(.92); }
a:hover .thumb, a:focus-visible .thumb { box-shadow: 0 0 0 2px var(--wink); }
a:hover .thumb img, a:focus-visible .thumb img { transform: scale(1.06); filter: none; }
.thumb__play { position: absolute; left: 50%; top: 50%; width: 1.9rem; height: 1.9rem; margin: -.95rem 0 0 -.95rem; border-radius: 50%; display: grid; place-items: center; background: rgba(14,13,12,.62); color: var(--bone); transition: background-color var(--t-fast), color var(--t-fast); }
.thumb__play svg { width: 45%; fill: currentColor; margin-left: 8%; }
a:hover .thumb__play { background: var(--wink); color: var(--wink-ink); }
.thumb__src { position: absolute; left: 4px; bottom: 4px; padding: 1px 5px; border-radius: 2px; background: rgba(14,13,12,.78); color: var(--bone); font-size: .56rem; letter-spacing: .06em; }
.thumb--sq .thumb__src { display: none; }

/* Instagram: no preview image available — a neutral "Reel" tile instead */
.thumb--ig { background: linear-gradient(135deg, #2a2320 0%, #1a1614 60%, #2b2418 100%); }
.thumb__ig { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .25rem; color: var(--bone-2); font-size: .58rem; }
.thumb__ig svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.thumb--ig .thumb__play { display: none; }

/* Big thumbnails on the "More clips" tiles */
.thumb--big { width: 100%; margin-bottom: .9rem; border-radius: 2px; }
.thumb--big .thumb__play { width: 2.6rem; height: 2.6rem; margin: -1.3rem 0 0 -1.3rem; }
.thumb--big .thumb__src { font-size: .62rem; left: 6px; bottom: 6px; }
.thumb--big .thumb__ig { font-size: .7rem; }
.thumb--big .thumb__ig svg { width: 2rem; height: 2rem; }

.track__links { gap: 0 1.75rem; }
.go--media > svg { display: none; }
.go--media .go__label::after { content: " \2197"; }
/* Vertical reel frames inside a wide tile: blurred fill behind, full frame in front */
.thumb--fit::before { content: ""; position: absolute; inset: -12px; background: var(--bg) center / cover; filter: blur(14px) brightness(.55); }
.thumb--fit img { position: relative; object-fit: contain; }

/* Rotating role word: slow, soft crossfade (old word drifts up and blurs out as the new one settles in) */
.rotator > span { transform: translateY(.28em); filter: blur(6px); transition: opacity 900ms cubic-bezier(.4, 0, .2, 1), transform 1100ms cubic-bezier(.22, 1, .36, 1), filter 900ms cubic-bezier(.4, 0, .2, 1); will-change: opacity, transform, filter; }
.rotator > span.is-on { opacity: 1; transform: none; filter: blur(0); transition-delay: 150ms; }
.rotator > span.is-off { opacity: 0; transform: translateY(-.28em); filter: blur(6px); transition-duration: 800ms, 900ms, 800ms; transition-timing-function: cubic-bezier(.4, 0, .2, 1); transition-delay: 0ms; }

/* Follow spot: warm stage light that trails the mouse (mouse devices only) */
.spot { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0; transition: opacity 600ms var(--ease-out); mix-blend-mode: screen; background: radial-gradient(circle 340px at var(--sx, 50%) var(--sy, 30%), rgba(255, 232, 160, .26) 0%, rgba(255, 232, 160, .11) 38%, rgba(255, 232, 160, .03) 60%, transparent 75%); }
.spot.is-on { opacity: 1; }
@media (hover: none), (pointer: coarse) { .spot { display: none; } }
@media (min-width: 900px) { .reps { grid-template-columns: repeat(3, 1fr); max-width: 66rem; } }

/* Follow along: social links under the contacts */
.follow { margin-top: var(--s6); display: grid; gap: var(--s2); justify-items: center; }
.follow__k { color: var(--smoke); }
.follow__links { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.follow__btn { display: inline-flex; align-items: center; gap: .65rem; min-height: 48px; padding: .4rem 1.25rem .4rem 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--bone); transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.follow__btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.follow__h { color: var(--smoke); font-size: .68rem; transition: color var(--t-fast); }
.follow__btn:hover, .follow__btn:focus-visible { background: var(--wink); color: var(--wink-ink); box-shadow: none; }
.follow__btn:hover .follow__h, .follow__btn:focus-visible .follow__h { color: var(--wink-ink); }

/* ==========================================================================
   POLISH PASS — one grade, quieter motion, typographic finish, disclosure
   ========================================================================== */

/* 1 · One photo grade: every photo reads as part of the same production.
   Slightly warmer, slightly softer colour, deeper shadows. */
:root { --grade: saturate(.82) sepia(.08) contrast(1.06) brightness(.96); }
.hero__media img,
.photo img,
.band img,
.wink img,
.still img,
.edu__photo img,
.lightbox__img,
.reel__play img,
.thumb img { filter: var(--grade); }
/* Hover states keep the grade (no jump back to raw colour) */
.reel__play:hover img, .reel__play:focus-visible img { filter: var(--grade) brightness(1.05); }
a:hover .thumb img, a:focus-visible .thumb img { filter: var(--grade) brightness(1.06); }

/* 2 · Quieter motion: no forever-loops except the slow honours strip
   and the record (which only spins while it's on screen). */
.grain { animation: none !important; }
.dot { animation: none; box-shadow: 0 0 0 4px rgba(244,223,78,.14); }
.hero__scroll i { animation: none; transform: none; opacity: .8; }
.reel__btn::before { animation: none; opacity: .5; transform: scale(1.12); }
.bulbs { animation: none !important; filter: drop-shadow(0 0 4px rgba(244,223,78,.35)); }
.marquee__track { animation-duration: 90s; }
@media (prefers-reduced-motion: no-preference) {
  .record__disc { animation-duration: 9s; }
}

/* 3 · Typographic finishing */
/* No label smaller than ~11.5px; one tracking value for small caps labels */
.mono { letter-spacing: .08em; }
.slate-card dt, .follow__h, .sub__tag { font-size: .72rem; }
.thumb__src { font-size: .7rem; letter-spacing: .06em; padding: 2px 6px; }
.thumb--big .thumb__src { font-size: .72rem; }
.thumb__ig { font-size: .72rem; }
.slate__tc { letter-spacing: .08em; }
/* Balanced headings, no lonely last words in paragraphs */
h1, h2, h3, h4, .chapter__title, .finale__t, .intermission__t, .prologue__quote { text-wrap: balance; }
p, .chapter__lede, .card__d, .shows__d, .timeline p, .edu__list p { text-wrap: pretty; }
/* Dates and numbers line up */
.timeline__y, .edu__list .mono, .card__fmt, .track__n, .edu__n, .lightbox__cap .mono, [data-now-sc] { font-variant-numeric: tabular-nums lining-nums; }
/* Real typographic quotes and ligatures in the serif */
.chapter__title, .card__t, .track__t, .feature__t, .shows__t, .timeline h3, .edu__list h3, .finale__t { font-feature-settings: "liga" 1, "kern" 1; }

/* 4 · "See full credits" disclosure — less on screen, same information */
.js [data-more-scope]:not(.is-open) .is-extra { display: none; }
[data-more-scope].is-open .is-extra { animation: moreIn 600ms var(--ease-out) both; }
@keyframes moreIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.more { display: none; }
.js .more {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: var(--s4); min-height: 44px; padding: 0 1.15rem;
  border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--bone); font-size: .9rem;
  transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.more .mono { color: var(--wink); transition: color var(--t-fast); }
.more svg { width: .85rem; height: .85rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: transform 400ms var(--ease-out); }
.more[aria-expanded="true"] svg { transform: rotate(45deg); }
.more:hover, .more:focus-visible { background: var(--wink); color: var(--wink-ink); box-shadow: none; }
.more:hover .mono, .more:focus-visible .mono { color: var(--wink-ink); }
@media (prefers-reduced-motion: reduce) { [data-more-scope].is-open .is-extra { animation: none; } }
.thumb--fit::before { content: none; }
.thumb__bg { position: absolute; inset: -12px; background-position: center; background-size: cover; filter: blur(14px) brightness(.55) saturate(.82); }
.thumb__src { font-size: .72rem; }

/* ==========================================================================
   PHONE-SPECIFIC LAYOUTS
   ========================================================================== */
.swipe-hint { display: none; }
.stack-item { display: grid; gap: .6rem; }
.split__aside--stack .photo__cap { margin-top: 0; }

@media (max-width: 899px) {
  /* Writer photos: a swipeable filmstrip instead of four stacked photos */
  .split__aside--stack {
    display: flex; gap: .85rem; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) .25rem; position: relative;
  }
  .split__aside--stack::-webkit-scrollbar { display: none; }
  .split__aside--stack .swipe-hint {
    display: block; position: absolute; top: -1.9rem; right: var(--gutter); color: var(--smoke);
  }
  .split__aside--stack .swipe-hint span { color: var(--wink); }
  .stack-item { flex: 0 0 72%; scroll-snap-align: start; align-content: start; }
  .stack-item .photo, .split__aside--stack .photo--wide, .split__aside--stack .photo--34 { grid-column: auto; aspect-ratio: 3 / 4; max-width: none; }
  .stack-item .photo img { height: 100%; object-fit: cover; }
  .split__aside { margin-top: 2.25rem; }

  /* Opening: the portrait owns the top of the screen, your name sits below the face */
  .hero__media { bottom: 30%; }
  .hero__media img { object-position: 50% 30%; }
  .hero__media::after { background: linear-gradient(180deg, rgba(14,13,12,.45) 0%, rgba(14,13,12,0) 22%, rgba(14,13,12,0) 55%, rgba(14,13,12,.85) 86%, var(--ink) 100%); }
  .hero__eyebrow { margin-bottom: 1rem; }
}

@media (max-width: 639px) {
  /* Credits: two tight lines — title, then role · venue */
  .credits__list li { display: block; padding: .9rem 0; }
  .credits__list .t { display: block; margin-bottom: .2rem; }
  .credits__list .r, .credits__list .v { display: inline; font-size: .92rem; }
  .credits__list .v::before { content: " · "; color: var(--smoke); }
  .credits__list .r { color: var(--bone-2); }
  /* Director timeline: year sits on the same line as the title */
  .timeline li { grid-template-columns: 4.25rem 1fr; column-gap: .75rem; }
  .timeline li > div { grid-column: 2; }
  .timeline__y { padding-top: .55rem; }
}
@media (max-width: 899px) { .swipe-hint { display: block; order: 2; justify-self: end; margin: 1.5rem 0 -1.25rem; color: var(--smoke); } .swipe-hint span { color: var(--wink); } .split__aside--stack .swipe-hint { display: none; } .split__aside { margin-top: 0; } }

/* Theatre program finish: double hairline rules between scenes, like a printed program */
.chapter + .chapter, .intermission, .finale, .prologue { border-top: 3px double rgba(242, 237, 228, .16); }
.chapter--educator { border-top: 0 !important; }
.wink__cap { letter-spacing: 0; }
@media (min-width: 900px) { .hero__media img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%); mask-image: linear-gradient(90deg, transparent 0, #000 8%); } }

/* Upcoming credit in the Director timeline */
.timeline__tag { display: inline-block; color: var(--wink-ink) !important; background: var(--wink); padding: .2rem .55rem; border-radius: 2px; margin: 0 0 .55rem !important; font-size: .72rem; }
.timeline h3 em { color: var(--wink); }
.timeline__cast { color: var(--bone-2); font-style: italic; }
.timeline__cast strong { font-style: normal; font-weight: 500; color: var(--bone); }
