/* =========================================================
   Yellowstone International Film Festival — BASE (every page)
   Tokens, reset, intro, type, buttons, header/nav/menu, hero,
   shared sections (about teaser, stats, voices, gallery tile, CTA),
   footer, modal, reveal. Page-only styles live in <page>.css.
   Type: Geist (display + text) · Instrument Serif (italic accents) · Geist Mono (labels)
   ========================================================= */

/* ---------- Self-hosted fonts (assets/fonts, from Google Fonts; tools/self-host-fonts.ps1) ---------- */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/geist-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: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/geist-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(../fonts/geistmono-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: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(../fonts/geistmono-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrumentserif-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: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrumentserif-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrumentserif-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: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrumentserif-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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; }

:root {
  --bg: #0b0a09;
  --fg: #f3eee5;
  --fg-dim: rgba(243, 238, 229, .62);
  --line: rgba(243, 238, 229, .13);
  --cream: #f1ebdf;
  --cream-2: #e7dfcf;
  --ink: #100e0c;
  --ink-dim: rgba(16, 14, 12, .64);
  --ink-line: rgba(16, 14, 12, .14);
  --y: #ffe000;
  --y-soft: #ffd25a;
  --ember: #e4572e;

  --f-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-mono: "Geist Mono", ui-monospace, Consolas, monospace;

  --pad: clamp(20px, 3.2vw, 48px);
  --r: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sec: clamp(88px, 11vw, 168px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--bg); color: var(--fg);
  font: 400 17px/1.65 var(--f-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
svg { width: 1em; height: 1em; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
::selection { background: var(--y); color: var(--ink); }
:focus-visible { outline: 2px solid var(--y); outline-offset: 3px; border-radius: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--y); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 600; transition: top .3s; }
.skip:focus { top: 16px; }

.container { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--pad); }
.light { background: var(--cream); color: var(--ink); }
.dark { background: var(--bg); color: var(--fg); }

/* =========================================================
   FILM LEADER INTRO — 5 · 4 · 3 · 2 · 1 (shared by all pages)
   Shown only when <html> has .is-intro (set in <head>, once per session)
   ========================================================= */
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.leader { display: none; }
html.is-intro body { overflow: hidden; }
html.is-intro .leader {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; align-content: center; gap: 26px;
  background: radial-gradient(ellipse at center, #2a2824 0%, #121110 70%, #080807 100%); color: #d9d4ca;
  animation: leader-flicker .12s steps(2) infinite, leader-failsafe .01s 5s forwards;
}
.leader::before, .leader::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .18); pointer-events: none; }
.leader::before { left: 23%; animation: leader-scratch 1.3s steps(3) infinite; }
.leader::after { left: 71%; animation: leader-scratch 1.7s steps(4) infinite reverse; }
.leader__frame {
  position: relative; width: min(74vw, 520px); aspect-ratio: 4 / 3; overflow: hidden;
  border: 2px solid rgba(217, 212, 202, .35); border-radius: 18px; display: grid; place-items: center;
}
.leader__ring { position: absolute; height: 88%; width: auto; aspect-ratio: 1; overflow: visible; fill: none; stroke: rgba(217, 212, 202, .6); stroke-width: 1.4; }
.leader__sweep {
  position: absolute; height: 70%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(rgba(255, 224, 0, .42) var(--sweep), rgba(255, 255, 255, .06) 0);
  animation: leader-sweep .45s linear infinite;
}
.leader__num { position: relative; font: 600 clamp(120px, 20vw, 210px)/1 var(--f-sans); letter-spacing: -.06em; color: #f3eee5; text-shadow: 0 0 30px rgba(0, 0, 0, .6); }
.leader__cap { font: 500 11px/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: rgba(217, 212, 202, .6); text-align: center; padding: 0 20px; }
.leader__skip { position: absolute; right: 24px; bottom: 24px; padding: 10px 18px; border: 1px solid rgba(217, 212, 202, .3); border-radius: 999px; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(217, 212, 202, .8); transition: background .3s, color .3s; }
.leader__skip:hover { background: var(--y); color: var(--ink); border-color: var(--y); }
html.is-intro .leader.is-done { animation: leader-out .7s var(--ease) forwards; }
@keyframes leader-sweep { to { --sweep: 360deg; } }
@keyframes leader-flicker { 50% { filter: brightness(1.08); } }
@keyframes leader-scratch { 0% { transform: translateX(0); opacity: .6; } 50% { transform: translateX(40px); opacity: .1; } 100% { transform: translateX(-30px); opacity: .5; } }
@keyframes leader-out { 0% { background-color: #fff; filter: brightness(3); } 30% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes leader-failsafe { to { opacity: 0; visibility: hidden; } }

/* ---------- Type ---------- */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim);
}
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--y); }
.light .label { color: var(--ink-dim); }
.label--ink { color: var(--ink) !important; }
.label--ink::before { background: var(--ink); }

.title {
  margin-top: 20px;
  font: 600 clamp(42px, 6.2vw, 104px)/.98 var(--f-sans);
  letter-spacing: -.045em;
}
.display {
  margin-top: 20px;
  font: 500 clamp(30px, 3.6vw, 56px)/1.08 var(--f-sans);
  letter-spacing: -.035em;
}
.title em, .display em, .cta__title em, .footer__say em, .hero__title em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
}
.dark .title em, .footer__say em, .hero__title em { color: var(--y); }
.light .title em, .light .display em { color: #b07f00; }

/* ---------- Roll text (hover) ---------- */
.roll { display: inline-block; overflow: hidden; height: 1.25em; line-height: 1.25; vertical-align: top; }
.roll__in { display: block; transition: transform .5s var(--ease); }
.roll__in::after { content: attr(data-t); display: block; }
a:hover .roll__in, button:hover .roll__in { transform: translateY(-50%); }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; gap: 14px; height: var(--h);
  padding: 0 7px 0 24px; border-radius: 999px;
  font: 500 15px/1 var(--f-sans); white-space: nowrap;
  transition: background .35s, color .35s, border-color .35s;
}
.btn__ico {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--y); transition: transform .5s var(--ease);
}
.btn__ico svg { width: 18px; height: 18px; }
.btn:hover .btn__ico { transform: rotate(45deg); }
.btn:hover .btn__ico--play { transform: scale(1.1); }
.btn--y { background: var(--y); color: var(--ink); }
.btn--y:hover { background: #fff; }
.btn--ink { background: var(--ink); color: var(--y); }
.btn--ink .btn__ico { background: var(--y); color: var(--ink); }
.btn--glass { padding: 0 7px 0 24px; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); }
.btn--glass:has(> .btn__ico:first-child) { padding: 0 24px 0 7px; }   /* icon-first variant (e.g. "▶ Watch highlights") */
.btn--glass .btn__ico { background: #fff; color: var(--ink); }
.btn--glass .btn__ico svg { width: 16px; height: 16px; }
.btn--glass .btn__ico--play svg { margin-left: 2px; }   /* optical centring of the play triangle */
.btn--glass:hover { background: rgba(255, 255, 255, .22); }
.btn--sm { --h: 44px; padding-left: 20px; gap: 12px; font-size: 14px; }
.btn--sm .btn__ico { width: 32px; height: 32px; }

.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; padding-bottom: 6px; border-bottom: 1px solid currentColor; }
.link svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.link:hover svg { transform: rotate(45deg); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px calc(var(--pad) + 10px);
  transition: transform .5s var(--ease), padding .4s var(--ease);
}
.header.is-scrolled { padding-top: 12px; padding-bottom: 12px; }
.header.is-hidden { transform: translateY(-130%); }

.brand { display: flex; align-items: center; border-radius: 14px; padding: 0; transition: background .4s, padding .4s var(--ease); }
.header.is-scrolled .brand { background: rgba(14, 12, 10, .82); padding: 4px 10px; }
.brand__logo { display: block; width: auto; height: 68px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45)); transition: height .4s var(--ease), transform .5s var(--ease); }
.header.is-scrolled .brand__logo { height: 46px; filter: none; }
.brand:hover .brand__logo { transform: rotate(-3deg) scale(1.04); }

.nav {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: rgba(14, 12, 10, .55); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nav a { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.25; color: rgba(255, 255, 255, .82); transition: background .3s, color .3s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a.is-current, .nav a[aria-current="page"] { background: var(--y); color: var(--ink); }

/* Archive dropdown */
.nav__drop-wrap { position: relative; }
.nav__drop-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.25; color: rgba(255, 255, 255, .82); transition: background .3s, color .3s; }
.nav__drop-btn:hover, .nav__drop-wrap:focus-within .nav__drop-btn { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__drop-btn.is-current { background: var(--y); color: var(--ink); }
.nav__caret { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.nav__drop {
  position: absolute; top: calc(100% + 12px); left: 50%; min-width: 190px; padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  border-radius: 18px; background: rgba(14, 12, 10, .94); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}
.nav__drop::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__drop a { display: block; padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .85); transition: background .25s, color .25s; }
.nav__drop a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav__drop a[aria-current="page"] { background: var(--y); color: var(--ink); }
.nav__drop-wrap:hover .nav__drop, .nav__drop-wrap:focus-within .nav__drop, .nav__drop-wrap.is-open .nav__drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .25s, transform .3s var(--ease); }
.nav__drop-wrap:hover .nav__caret, .nav__drop-wrap.is-open .nav__caret { transform: rotate(180deg); }

.header__right { display: flex; align-items: center; gap: 10px; }
.header .btn--sm { transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s, background .35s, color .35s; }
html.js .header:not(.show-cta) .btn--sm { opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none; transition: opacity .3s, transform .3s, visibility 0s .3s; }

/* ---------- Social icons ---------- */
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: rgba(14, 12, 10, .55); border: 1px solid rgba(255, 255, 255, .16);
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.social a:hover { background: var(--y); border-color: var(--y); color: var(--ink); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }
.social--header { padding-right: 4px; }
.social--header a { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.social--menu a { background: var(--ink); color: var(--y); border-color: var(--ink); }
.social--menu a:hover { background: #fff; border-color: #fff; }
.social--hero a { width: 36px; height: 36px; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); }
.social--hero svg { width: 16px; height: 16px; }
.social--footer { flex-direction: column; gap: 8px; }
.social--footer a {
  width: auto; height: auto; justify-content: start; display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .04); border-color: var(--line);
  font-size: 15px; width: max-content;
}
.social--footer a svg { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--y); color: var(--ink); }
.social--footer a:hover { background: var(--y); color: var(--ink); transform: translateX(4px); }
.social--footer a:hover svg { background: var(--ink); color: var(--y); }
.burger { width: 44px; height: 44px; border-radius: 50%; display: none; place-items: center; background: rgba(14, 12, 10, .82); border: 1px solid rgba(255, 255, 255, .14); }
.burger__lines { position: relative; display: block; width: 18px; height: 10px; }
.burger__lines i { position: absolute; left: 0; right: 0; height: 1.5px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger__lines i:first-child { top: 0; }
.burger__lines i:last-child { top: 8.5px; }
.burger[aria-expanded="true"] i:first-child { top: 4.25px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 4.25px; transform: rotate(-45deg); }

/* ---------- Fullscreen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--y); color: var(--ink);
  opacity: 0; visibility: hidden; transform: translateY(-2%);
  transition: opacity .4s, transform .5s var(--ease), visibility 0s .5s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .4s, transform .5s var(--ease); }
.menu__inner { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 110px var(--pad) 36px; overflow-y: auto; }
.menu__nav a { display: flex; align-items: baseline; gap: 16px; padding: 8px 0; font: 600 clamp(40px, 10vw, 88px)/1 var(--f-sans); letter-spacing: -.045em; border-bottom: 1px solid rgba(16, 14, 12, .14); }
.menu__nav small { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; }
.menu__nav a[aria-current="page"] small::after { content: " ●"; }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; font-weight: 500; }
.menu__group { padding: 8px 0 14px; border-bottom: 1px solid rgba(16, 14, 12, .14); }
.menu__group-k { display: flex; align-items: baseline; gap: 16px; font: 600 clamp(40px, 10vw, 88px)/1 var(--f-sans); letter-spacing: -.045em; }
.menu__group-k small { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; }
.menu__sub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-left: 34px; }
.menu__sub a { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(16, 14, 12, .3); font: 500 15px/1 var(--f-sans); transition: background .3s, color .3s; }
.menu__sub a:hover, .menu__sub a[aria-current="page"] { background: var(--ink); color: var(--y); }

/* =========================================================
   HERO (home = full height; .hero--page = one common height on every inner page)
   ========================================================= */
.hero { padding: 10px; background: var(--bg); height: 100vh; height: 100svh; min-height: 620px; }
.hero__frame { position: relative; height: 100%; border-radius: 26px; overflow: hidden; background: #111; isolation: isolate; color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; background: top / cover no-repeat; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 7s ease-out; }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }   /* first slide = real <img> (srcset, LCP) */
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 26%),
    linear-gradient(90deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, .1) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, 0) 45%);
}

.hero__content { position: absolute; left: 0; right: 0; bottom: 96px; padding: 0 clamp(24px, 4vw, 64px); }
.hero__eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 26px; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.hero__title { font: 600 clamp(60px, 9.2vw, 164px)/.92 var(--f-sans); letter-spacing: -.048em; }
.hero__title em { padding-right: .05em; }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: block; }

/* Full festival name above the headline */
.hero__heading { font-weight: inherit; }
.hero__title { display: block; }
.hero__name { display: block; margin-bottom: 18px; font: 500 clamp(13px, 1.25vw, 18px)/1.3 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.hero__name > span, .hero__name.line > span { display: flex; align-items: center; gap: 14px; }
.hero__name > span::before { content: ""; flex: none; width: 34px; height: 2px; background: var(--y); }

/* FilmFreeway recognition badge */
.hero__badge {
  position: absolute; z-index: 2; top: clamp(104px, 14vh, 132px); right: clamp(24px, 4vw, 64px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transform: rotate(-4deg); transition: transform .5s var(--ease);
}
.hero__badge img { width: clamp(96px, 9vw, 136px); height: auto; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.hero__badge span { font: 500 10px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.hero__badge:hover { transform: rotate(0) scale(1.05); }
html.js .hero__badge { opacity: 0; transition: opacity .9s var(--ease) .6s, transform .5s var(--ease); }
html.is-ready .hero__badge { opacity: 1; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 30px; }
.hero__lede { max-width: 500px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; color: rgba(255, 255, 255, .82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero__foot {
  position: absolute; left: clamp(24px, 4vw, 64px); right: clamp(24px, 4vw, 64px); bottom: 0; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .65);
}
.hero__slides-ui { display: flex; align-items: center; gap: 16px; }
.hero__follow { display: flex; align-items: center; gap: 16px; }
.hero__count b { color: #fff; font-weight: 500; }
.hero__bars { display: flex; gap: 6px; }
.hero__bars button { width: 44px; height: 16px; display: flex; align-items: center; }
.hero__bars i { position: relative; display: block; width: 100%; height: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; border-radius: 2px; }
.hero__bars i::after { content: ""; position: absolute; inset: 0; background: var(--y); transform: scaleX(0); transform-origin: left; }
.hero__bars .is-active i::after { animation: bar 6s linear forwards; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue span { position: relative; width: 1px; height: 28px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--y); animation: drip 2s var(--ease) infinite; }

/* entrance */
html.js .hero .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
html.js .hero .line:nth-of-type(2) > span { transition-delay: .1s; }
html.js .hero__eyebrow, html.js .hero__bottom, html.js .hero__foot { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.is-ready .hero .line > span { transform: none; }
html.is-ready .hero__eyebrow, html.is-ready .hero__bottom, html.is-ready .hero__foot { opacity: 1; transform: none; }
html.is-ready .hero__bottom { transition-delay: .3s; }
html.is-ready .hero__foot { transition-delay: .45s; }

/* Inner-page hero — shorter version of the home hero */
/* Inner-page hero — ONE common height for every inner page (about, contact, press, editions…) */
.hero--page { height: 72vh; height: 72svh; min-height: 560px; max-height: 860px; }
.hero--page .hero__eyebrow a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.hero--page .hero__eyebrow a:hover { color: var(--y); }

/* =========================================================
   FILMSTRIP (yellow marquee — home, press)
   ========================================================= */
.strip { position: relative; overflow: hidden; background: var(--y); color: var(--ink); padding: 26px 0; }
.strip::before, .strip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 7px; z-index: 1;
  background: repeating-linear-gradient(90deg, var(--bg) 0 12px, transparent 12px 28px);
}
.strip::before { top: 7px; }
.strip::after { bottom: 7px; }
.strip__track { display: flex; align-items: center; width: max-content; animation: marquee 45s linear infinite; will-change: transform; }
.strip__track > * { margin-right: 32px; }
.strip__track span { font: italic 400 clamp(28px, 3.4vw, 50px)/1 var(--f-serif); }
.strip__track svg { width: 22px; height: 22px; }

/* =========================================================
   SECTIONS — shared
   ========================================================= */
.about, .voices, .gallery, .cta { padding-block: var(--sec); position: relative; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 28px 48px; margin-bottom: clamp(44px, 5.5vw, 80px); }
.sec-head__side { max-width: 420px; color: var(--fg-dim); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.light .sec-head__side { color: var(--ink-dim); }
.sec-head--center { flex-direction: column; align-items: center; text-align: center; }

/* ---------- About block (home teaser + about page) ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; border-radius: var(--r); }
.about__tag {
  position: absolute; right: -14px; bottom: 28px; padding: 14px 22px; border-radius: 999px;
  background: var(--ink); color: var(--y); font: italic 400 26px/1 var(--f-serif);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .2);
}
.about__text > p:not(.label) { margin-top: 20px; color: var(--ink-dim); font-size: 17.5px; }
.about__text .title { margin-bottom: 8px; font-size: clamp(40px, 4.6vw, 76px); }
.about__quote { margin: 34px 0 34px; padding: 26px 28px; border-radius: var(--r); background: var(--ink); color: var(--fg); }
.about__quote p { font: italic 400 clamp(22px, 2vw, 28px)/1.25 var(--f-serif); }
.about__quote em { color: var(--y); }
.about__laurel { width: 72px; height: 40px; color: var(--y); margin-bottom: 14px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--ink-line); }
.stat { padding: 34px 28px 6px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--ink-line); }
.stat strong { display: block; font: 600 clamp(48px, 5.4vw, 88px)/1 var(--f-sans); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 12px; color: var(--ink-dim); font-size: 15px; }

/* ---------- Voices (testimonial wall — home + about) ---------- */
.voices { overflow: hidden; }
.wall { display: flex; flex-direction: column; gap: 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.wall__track { display: flex; width: max-content; animation: marquee 80s linear infinite; will-change: transform; }
.wall__row--rev .wall__track { animation-direction: reverse; animation-duration: 90s; }
.wall:hover .wall__track { animation-play-state: paused; }
.quote {
  flex: none; width: clamp(290px, 28vw, 410px); margin-right: 12px; padding: 26px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  border-radius: var(--r); background: #faf6ee; border: 1px solid var(--ink-line);
}
.quote blockquote { font: 400 clamp(20px, 1.6vw, 24px)/1.28 var(--f-serif); }
.quote figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; font-weight: 600; font-size: 15px; }
.quote figcaption small { font: 500 11px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); }
.av { grid-row: span 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--y); font: 600 12px/1 var(--f-mono); }
.quote:nth-child(3n+2) .av { background: var(--ink); color: var(--y); }
.quote:nth-child(3n) .av { background: var(--ember); color: #fff; }

/* ---------- Photo tile (home gallery + edition galleries) ---------- */
.shot { position: relative; display: block; overflow: hidden; border-radius: 18px; background: #151311; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.shot:hover img { transform: scale(1.06); }

/* ---------- CTA ---------- */
.cta { background: var(--y); color: var(--ink); overflow: hidden; }
.cta__title { max-width: 1100px; margin: 24px 0 clamp(40px, 5vw, 60px); font: 600 clamp(46px, 7.4vw, 124px)/.96 var(--f-sans); letter-spacing: -.055em; }
.cta__row { display: grid; grid-template-columns: 1fr 1.25fr; align-items: end; gap: 40px; padding-top: 30px; border-top: 1.5px solid var(--ink); }
.cta__row > p { max-width: 430px; font-size: 18px; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; justify-content: flex-end; }

/* ---------- Footer ---------- */
.footer { padding-top: clamp(88px, 10vw, 140px); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 32px; padding-bottom: 52px; border-bottom: 1px solid var(--line); }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.footer__logo { width: auto; height: clamp(90px, 9vw, 130px); }
.footer__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer__badge img { width: 96px; height: auto; border-radius: 18px; border: 1px solid var(--line); transition: transform .5s var(--ease); }
.footer__badge:hover img { transform: rotate(-4deg) scale(1.05); }
.footer__say { font: 600 clamp(44px, 6vw, 100px)/.98 var(--f-sans); letter-spacing: -.055em; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr 1fr; gap: 28px; padding: 52px 0; }
.footer h4 { margin-bottom: 16px; font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-dim); }
.footer__grid > div > a { display: block; width: max-content; max-width: 100%; padding: 4px 0; overflow-wrap: anywhere; transition: color .3s; }
.footer__grid > div > a:hover { color: var(--y); }
.clock { display: block; font: 500 42px/1 var(--f-sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.footer__clock small { color: var(--fg-dim); font-size: 13px; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 24px 0 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-dim); }
.footer__base a:hover { color: var(--y); }

/* ---------- Modal (lightbox / video) ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 72px 90px; background: rgba(8, 7, 6, .95); animation: fade .3s ease; }
.modal[hidden] { display: none; }
.modal__stage { display: flex; flex-direction: column; align-items: center; max-width: min(1200px, 100%); max-height: 100%; }
.modal__stage img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 14px; }
.modal.is-video .modal__stage { width: min(1200px, 100%); }
.modal__stage iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000; }
.modal__alt { margin-top: 16px; color: #fff; font-size: 14px; opacity: .7; transition: opacity .3s, color .3s; }
.modal__alt:hover { opacity: 1; color: var(--y); }
.modal__close, .modal__nav { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 18px; transition: background .3s, color .3s; }
.modal__close:hover, .modal__nav:hover { background: var(--y); color: var(--ink); }
.modal__close { top: 20px; right: 20px; }
.modal__nav { top: 50%; transform: translateY(-50%); font-size: 20px; }
.modal__nav--prev { left: 20px; }
.modal__nav--next { right: 20px; }
.modal.is-video .modal__nav { display: none; }

/* ---------- Reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes bar { to { transform: scaleX(1); } }
@keyframes drip { to { top: 100%; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* =========================================================
   RESPONSIVE (shared parts only — each page CSS has its own)
   ========================================================= */
@media (max-width: 1500px) {
  .social--header { display: none; }
}

/* tighter nav pills so the 9-item nav clears the "Submit film" button on small laptops */
@media (max-width: 1320px) {
  .nav a { padding-inline: 12px; }
  .nav__drop-btn { padding-inline: 12px 10px; }
}

@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: grid; }
  .footer__grid { font-size: 15px; gap: 22px; }
}

@media (max-width: 900px) {
  .hero__content { bottom: 84px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero__foot-k { display: none; }

  .about__grid { grid-template-columns: 1fr; }
  .about__tag { right: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--ink-line); }

  .cta__row { grid-template-columns: 1fr; align-items: start; }
  .cta__actions { justify-content: flex-start; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .modal { padding: 72px 16px; }
  .modal__nav { top: auto; bottom: 16px; transform: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 8px; }
  .hero__frame { border-radius: 20px; }
  .header { padding: 16px 20px; }
  .brand__logo { height: 48px; }
  .header.is-scrolled .brand__logo { height: 40px; }
  .scroll-cue, .hero__count { display: none; }
  .hero__bars button { width: 26px; }
  .header .btn--sm { display: none; }
  .hero__content { padding: 0 22px; }
  .hero__title { font-size: 17vw; }
  .hero__name { font-size: 11.5px; letter-spacing: .12em; margin-bottom: 12px; }
  .hero__name > span::before { width: 22px; }
  .hero__badge { top: 84px; right: 16px; }
  .hero__eyebrow { max-width: calc(100% - 84px); }   /* keep clear of the badge */
  .hero__badge img { width: 72px; border-radius: 14px; }
  .hero__badge span { display: none; }
  .hero__lede { font-size: 15px; }
  .hero__foot { left: 22px; right: 22px; height: 64px; }
  .hero--page { min-height: 600px; }
  .btn { --h: 50px; }

  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__follow { grid-column: 1 / -1; }
  .social--footer { flex-direction: row; flex-wrap: wrap; }
  .social--footer a { font-size: 14px; padding-right: 14px; }
  .stat, .stat + .stat { padding: 26px 12px 4px 0; }
  .stat:nth-child(even) { padding-left: 16px; }
}

/* =========================================================
   FX — cinematic animation layer (every page; driven by base.js)
   Each effect is switched on by a class base.js adds, so without JS or with
   "reduce motion" the pages simply render without these animations.
   ========================================================= */
/* scroll progress: thin yellow "film running" line at the very top */
.fx-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 3px; background: var(--y); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* page change: a quick fade to black before the next page loads */
.fx-curtain { position: fixed; inset: 0; z-index: 390; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .32s var(--ease); }
html.fx-leave .fx-curtain { opacity: 1; }

/* hero: letters rise one by one (instead of the whole line) + parallax on scroll */
html.fx .hero__title .line > span { transform: none !important; }
.fx-c { display: inline-block; transform: translateY(105%) rotate(6deg); opacity: 0; transition: transform 1s var(--ease), opacity .6s; transition-delay: calc(var(--i) * 35ms + .1s); }
html.is-ready .fx-c { transform: none; opacity: 1; }
html.fx .hero__media { will-change: translate, scale; }
html.fx .hero__content { will-change: translate, opacity; }

/* section titles: words slide up out of a mask */
html.js .fx-split.reveal { opacity: 1; transform: none; }
.fx-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .1em 0; margin: 0 -.06em -.1em 0; }
.fx-w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.fx-split.fx-in .fx-w > span { transform: none; }

/* focus pull: photos come into focus as they enter */
.fx-focus { filter: blur(14px) saturate(.4); opacity: .35; scale: 1.06; transition: filter 1.3s var(--ease), opacity 1s, scale 1.6s var(--ease); transition-delay: var(--d, 0s); }
.fx-focus.fx-in { filter: none; opacity: 1; scale: 1; }

/* curtain wipe: big media opens top to bottom */
.fx-wipe { clip-path: inset(0 0 100% 0 round var(--wr, 26px)); transition: clip-path 1.3s var(--ease); transition-delay: var(--d, 0s); }
.fx-wipe.fx-in { clip-path: inset(0 0 0 0 round var(--wr, 26px)); }

/* parallax drift (uses `translate`, so hover `transform`s keep working) */
.fx-par { will-change: translate; }
.shot img.fx-par { height: 116%; margin-top: -8%; }   /* extra photo inside the tile to drift through */

/* spotlight that follows the pointer on cards */
.fx-spot { position: relative; isolation: isolate; }
.fx-spot::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--spot, rgba(255, 224, 0, .16)), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.light .fx-spot { --spot: rgba(255, 214, 0, .38); }
.fx-spot:hover::after { opacity: 1; }

/* yellow buttons: light sweep on hover */
html.fx .btn--y { position: relative; overflow: hidden; isolation: isolate; }
html.fx .btn--y::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .75) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
html.fx .btn--y:hover::after { transform: translateX(120%); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .strip__track, .wall__track { animation: none !important; }
  .wall__row { overflow-x: auto; }
}
