/* =========================================================================
   Ohne Gepäck Filmproduktion — theme stylesheet (Grav port)
   Ported from the Astro build: design system + all component styles merged
   into one global sheet (Grav has no scoped CSS). Fonts self-hosted (no
   Google Fonts CDN — GDPR).
   ========================================================================= */

/* ---- fonts (self-hosted, was @fontsource) ------------------------------- */
/* Fraunces Variable — full axis file (wght + opsz + SOFT + WONK) */
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/fraunces-latin-full-normal.woff2') format('woff2-variations');
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/fraunces-latin-ext-full-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: 'Fraunces Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/fraunces-latin-full-italic.woff2') format('woff2-variations');
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/fraunces-latin-ext-full-italic.woff2') format('woff2-variations');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono 400 / 500 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal; font-display: swap; font-weight: 400;
  src: url('../fonts/ibm-plex-mono-latin-400-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal; font-display: swap; font-weight: 400;
  src: url('../fonts/ibm-plex-mono-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: 'IBM Plex Mono';
  font-style: normal; font-display: swap; font-weight: 500;
  src: url('../fonts/ibm-plex-mono-latin-500-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal; font-display: swap; font-weight: 500;
  src: url('../fonts/ibm-plex-mono-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* --- colour: ink in a dark room --------------------------------------- */
  --ink:      #0a1230;   /* deep document-ink blue, the base */
  --ink-2:    #101a45;   /* raised surface */
  --ink-3:    #16225a;   /* deeper raise / gallery cells */
  --bone:     #ece5d8;   /* film-leader off-white, primary text (warm on ink) */
  --bone-dim: #9fa6bd;   /* muted text, mono labels — cooled to sit on blue */
  --bone-mute:#69708c;   /* faint / disabled */
  /* Brand accents — from the Ohne Gepäck rubber-stamp identity. */
  --amber:    #ffed02;   /* brand yellow — the stamp that lands on the ink */
  --amber-lo: #b9a70f;   /* muted yellow for tiny dividers / dots */
  --blue:     #4c63ff;   /* lifted brand blue — a stamp lighting up (interaction) */
  --line:     rgba(206, 216, 255, 0.14);
  --line-soft:rgba(206, 216, 255, 0.075);

  /* --- type ------------------------------------------------------------- */
  --serif: 'Fraunces Variable', 'Fraunces', Georgia, 'Times New Roman', serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* fluid scale */
  --step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.86rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
  --step-2:  clamp(1.9rem, 1.6rem + 1.4vw, 2.9rem);
  --step-3:  clamp(2.6rem, 2rem + 3vw, 4.6rem);
  --step-4:  clamp(2.6rem, 1.7rem + 3.9vw, 5rem);

  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1400px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- reset-ish ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  /* Deep ink base with the brand electric-blue promoted into the environment:
     a soft glow bleeding down from the top, like light on a wet stamp pad. */
  background:
    radial-gradient(135% 62% at 50% -8%, #1c2f7a 0%, rgba(28, 47, 122, 0) 58%),
    var(--ink);
  background-repeat: no-repeat;
  color: var(--bone);
  font-family: var(--serif);
  font-size: var(--step-0);
  font-weight: 380;
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--amber); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---- typography roles --------------------------------------------------- */
.display {
  font-family: var(--serif);
  font-weight: 340;
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
}
.serif-italic { font-style: italic; font-variation-settings: 'opsz' 40; }

/* mono = the record: years, runtimes, credits, festival ledgers, labels */
.mono {
  font-family: var(--mono);
  font-weight: 400;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--bone-dim);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* ---- layout helpers ----------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.stack > * + * { margin-top: 1rem; }

/* film-still frame: images sit in a matte, slightly desaturated, warmed */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--ink-3);
}
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.02) brightness(0.94);
  transition: transform 1.1s var(--ease), filter 0.8s var(--ease);
}

/* ---- utility ------------------------------------------------------------ */
.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;
}

/* ---- language toggle visibility ---------------------------------------- */
[data-lang='de'] .lang-en { display: none !important; }
[data-lang='en'] .lang-de { display: none !important; }

/* reveal-on-scroll (progressive: no-JS shows everything) */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.no-js .reveal, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---- skip link (was Base.astro) ---------------------------------------- */
.skip {
  position: fixed;
  left: 1rem; top: -4rem;
  z-index: 100;
  background: var(--amber);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  transition: top 0.2s ease;
}
.skip:focus { top: 1rem; }

/* ======================================================================== */
/* Header                                                                    */
/* ======================================================================== */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-head.is-scrolled {
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom-color: var(--line-soft);
}
.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  transform: scale(var(--wm-scale, 1));
  transform-origin: left top;
  will-change: transform;
}
.wm-stamp {
  height: 40px;
  width: auto;
  display: block;
  opacity: 0.92;
  transition: opacity 0.3s var(--ease), transform 0.5s var(--ease);
}
.wordmark:hover .wm-stamp { opacity: 1; transform: rotate(-1deg) scale(1.02); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav > a {
  color: var(--bone-dim);
  padding-block: 0.2rem;
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav > a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav > a:hover { color: var(--bone); }
.nav > a:hover::after { transform: scaleX(1); }

.lang-switch { display: inline-flex; align-items: center; gap: 0.35rem; }
.lang-btn {
  background: none; border: 0; cursor: pointer;
  font: inherit; color: var(--bone-mute);
  letter-spacing: 0.14em; padding: 0.2rem 0.1rem;
  transition: color 0.3s var(--ease);
}
.lang-btn:hover { color: var(--bone); }
.slash { color: var(--bone-mute); }
[data-lang='de'] .lang-de-btn { color: var(--amber); }
[data-lang='en'] .lang-en-btn { color: var(--amber); }

@media (max-width: 560px) {
  .nav { gap: 0.9rem; font-size: 0.7rem; }
  .nav > a { display: none; }
  .nav > a:first-child { display: inline; }
}

/* ======================================================================== */
/* Hero + About (was index.astro)                                            */
/* ======================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: clamp(7rem, 15vh, 11rem);
  padding-bottom: clamp(2rem, 5vh, 4rem);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }

.hero-eyebrow {
  color: var(--amber);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.1s forwards;
}
.hero-line {
  font-size: var(--step-4);
  margin: 1.4rem 0 0;
  max-width: 26ch;
}
@media (min-width: 700px) {
  .hero-line .hl { white-space: nowrap; }
}
.hero-line .hl {
  display: block;
  opacity: 0;
  transform: translateY(0.5em);
  animation: rise 1s var(--ease) forwards;
  animation-delay: calc(0.25s + var(--d));
}
.hero-line .lang-en .hl { animation: none; opacity: 1; transform: none; }

.hero-note {
  margin: 2rem 0 0;
  max-width: 52ch;
  color: var(--bone-dim);
  font-size: var(--step-1);
  line-height: 1.5;
  font-weight: 340;
  opacity: 0;
  animation: rise 1s var(--ease) 0.7s forwards;
}

.hero-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  margin-top: clamp(2rem, 5vh, 3.5rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: rise 1s var(--ease) 0.9s forwards;
}
.hero-count { color: var(--bone-dim); letter-spacing: 0.1em; }
.hero-count .dot { margin: 0 0.6em; color: var(--amber-lo); }
.hero-scroll {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--bone); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.74rem;
  transition: color 0.3s var(--ease);
}
.hero-scroll:hover { color: var(--amber); }
.scroll-arrow { animation: bob 2.4s var(--ease) infinite; color: var(--amber); }

.hero-frame {
  position: absolute; inset: 12vh var(--gutter) 12vh auto;
  left: var(--gutter);
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--line-soft), transparent 30%, transparent 70%, var(--line-soft));
  -webkit-mask: linear-gradient(90deg, #000 0 1px, transparent 1px 100%),
                linear-gradient(90deg, transparent calc(100% - 1px), #000 calc(100% - 1px));
  opacity: 0.6;
}

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-line .hl, .hero-note, .hero-foot { opacity: 1; transform: none; animation: none; }
  .scroll-arrow { animation: none; }
}

.about {
  margin-top: clamp(4rem, 12vh, 9rem);
  padding-top: clamp(3rem, 8vh, 6rem);
  border-top: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(120px, 168px) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}
.about-title { font-size: var(--step-2); margin: 0 0 1.6rem; max-width: 20ch; }
.about-text { max-width: var(--measure); }
.about-text p { margin: 0 0 1.1rem; color: var(--bone-dim); font-size: var(--step-1); line-height: 1.55; }
.about-text p:first-child { color: var(--bone); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* ======================================================================== */
/* Timeline (was Timeline.astro)                                             */
/* ======================================================================== */
.timeline { padding-top: clamp(3rem, 8vh, 7rem); }
.tl-grid {
  display: grid;
  grid-template-columns: [rail] minmax(120px, 168px) [films] minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: stretch;
}

.rail { position: relative; height: 100%; }
.rail-sticky {
  position: sticky;
  top: 22vh;
  max-height: 78vh;
}
.rail-now { margin-bottom: 2.5rem; }
.rail-year {
  display: block;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bone);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rail-count {
  display: block;
  margin-top: 0.5rem;
  color: var(--bone-mute);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}
.rail-sep { color: var(--amber-lo); margin: 0 0.15em; }

.rail-ticks {
  list-style: none;
  margin: 0; padding: 0 0 0 1rem;
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.55rem;
}
.tick {
  display: inline-block;
  color: var(--bone-mute);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  position: relative;
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
  font-variant-numeric: tabular-nums;
}
.tick::before {
  content: '';
  position: absolute;
  left: -1rem; top: 50%;
  width: 7px; height: 1px;
  background: var(--line);
  transform: translateY(-50%);
  transition: background 0.35s var(--ease), width 0.35s var(--ease);
}
.tick.is-active { color: var(--amber); transform: translateX(4px); }
.tick.is-active::before { background: var(--amber); width: 12px; }
.tick:hover { color: var(--bone); }

.stations { list-style: none; margin: 0; padding: 0; }
.station { margin-bottom: clamp(4.5rem, 11vh, 9rem); }
.station:last-child { margin-bottom: 2rem; }

.station-link { display: block; }

.station-meta {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.1rem;
}
.st-idx { color: var(--amber); letter-spacing: 0.1em; }
.st-year { color: var(--bone); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.st-line { flex: 1; height: 1px; background: var(--line); }
.st-run { color: var(--bone-dim); }
.st-trailer { color: var(--bone-dim); letter-spacing: 0.08em; }

.station-figure {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
}
.station-figure img {
  transform: scale(1.001);
  transition: transform 1.3s var(--ease), filter 1s var(--ease);
  will-change: transform;
}
.station.is-focus .station-figure img {
  transform: scale(1.05);
  filter: saturate(0.98) contrast(1.03) brightness(1);
}
.station-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--ink) 55%, transparent));
  opacity: 0.72;
  transition: opacity 1s var(--ease);
  pointer-events: none;
}
.station.is-focus .station-scrim { opacity: 0.42; }
.slate {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(0,0,0,0.18) 38px 40px),
    var(--ink-3);
}
.slate .mono { font-size: 2rem; color: var(--bone-mute); letter-spacing: 0.2em; }

.station-body { margin-top: 1.4rem; max-width: 44ch; }
.station-title {
  font-size: var(--step-2);
  margin: 0;
  transition: color 0.35s var(--ease);
}
.station-link:hover .station-title { color: var(--amber); }
.station-dir { margin: 0.5rem 0 0; color: var(--bone-dim); letter-spacing: 0.04em; }
.station-ex {
  margin: 0.9rem 0 0;
  color: var(--bone-dim);
  font-size: var(--step-0);
  line-height: 1.6;
}
.station-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.2rem;
  color: var(--bone);
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem;
}
.cta-arrow { color: var(--amber); transition: transform 0.4s var(--ease); }
.station-link:hover .cta-arrow { transform: translateX(6px); }

@media (min-width: 1180px) {
  .station-body { max-width: 52ch; }
}

@media (max-width: 860px) {
  .tl-grid { grid-template-columns: 1fr; gap: 0; }
  .rail { display: none; }
  .station-meta { margin-bottom: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .station-figure img,
  .station.is-focus .station-figure img { transform: none; }
}

/* ======================================================================== */
/* Film page (was film/[slug].astro)                                         */
/* ======================================================================== */
.film { padding-top: clamp(6rem, 12vh, 8rem); }

.film-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: clamp(2rem, 6vh, 4rem);
}
.back { display: inline-flex; gap: 0.5rem; color: var(--bone-dim); letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.3s var(--ease); }
.back:hover { color: var(--amber); }
.film-counter { color: var(--bone-mute); letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.film-counter .sep { color: var(--amber-lo); margin: 0 0.2em; }

.film-head { margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.fh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; color: var(--bone-dim); margin-bottom: 1.1rem; }
.fh-year { color: var(--amber); }
.fh-dot { color: var(--amber-lo); }
.fh-dir { color: var(--bone-dim); }
.film-title { font-size: var(--step-3); margin: 0; max-width: 18ch; }

.lead { aspect-ratio: 16 / 9; border: 1px solid var(--line-soft); }

.film-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4rem);
  margin-top: clamp(2.5rem, 7vh, 5rem);
}
.synopsis { max-width: var(--measure); }
.syn-text p { margin: 0 0 1.2rem; font-size: var(--step-1); line-height: 1.6; color: var(--bone-dim); }
.syn-text p:first-child { color: var(--bone); }

.trailer-poster {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line-soft); cursor: pointer;
  aspect-ratio: 16 / 9; position: relative; background: var(--ink-3);
}
.trailer-poster img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--ink) 30%, transparent);
  transition: background 0.4s var(--ease);
}
.trailer-poster:hover .play { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.play .tri {
  width: 0; height: 0;
  border-left: 20px solid var(--bone);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 6px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.6));
  transition: border-left-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.trailer-poster:hover .play .tri { border-left-color: var(--amber); transform: scale(1.08); }
.trailer-embed { aspect-ratio: 16 / 9; }
.trailer-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (min-width: 960px) {
  .film-body.has-trailer { grid-template-columns: 1.1fr 0.9fr; }
}

.gallery { margin-top: clamp(3rem, 8vh, 5.5rem); }
.gal-label { margin-bottom: 1.4rem; }
.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(0.5rem, 1.5vw, 1rem);
}
.gal-cell { aspect-ratio: 3 / 2; border: 1px solid var(--line-soft); }
.gal-cell img { width: 100%; height: 100%; object-fit: cover; }

.ledger {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  margin-top: clamp(3.5rem, 9vh, 6rem);
  padding-top: clamp(2.5rem, 6vh, 4rem);
  border-top: 1px solid var(--line);
}
.ledger.has-poster { grid-template-columns: minmax(180px, 260px) 1fr; align-items: start; }
.ledger-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.ledger .eyebrow { margin-bottom: 1.6rem; }

.poster-fig { margin: 0; }
.poster-img {
  width: 100%; height: auto;
  border: 1px solid var(--line-soft);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}
.poster-cap { margin-top: 0.9rem; }

@media (max-width: 720px) {
  .ledger.has-poster { grid-template-columns: 1fr; }
  .poster-img { max-width: 260px; }
}
.cred-list { margin: 0; }
.cred-row {
  display: grid;
  grid-template-columns: 13ch 1fr;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.cred-row dt { color: var(--bone-dim); font-size: 0.74rem; letter-spacing: 0.04em; margin: 0; }
.cred-row dd { margin: 0; color: var(--bone); font-size: var(--step-0); }

.fest-list { list-style: none; margin: 0; padding: 0; }
.fest-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--bone-dim);
  font-size: 0.78rem; letter-spacing: 0.02em; line-height: 1.5;
}

.reelnav {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  margin-top: clamp(3.5rem, 9vh, 6rem);
}
.reel {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding-block: clamp(2rem, 5vh, 3.2rem);
  transition: background 0.4s var(--ease);
}
.reel.prev { padding-left: var(--gutter); padding-right: clamp(1.5rem, 4vw, 3rem); }
.reel.next {
  text-align: right; align-items: flex-end;
  border-left: 1px solid var(--line);
  padding-right: var(--gutter); padding-left: clamp(1.5rem, 4vw, 3rem);
}
.reel-dir { color: var(--bone-mute); text-transform: uppercase; letter-spacing: 0.14em; transition: color 0.3s var(--ease); }
.reel-title { font-size: var(--step-1); color: var(--bone); transition: color 0.3s var(--ease); max-width: 20ch; }
.reel.next .reel-title { margin-left: auto; }
.reel-year { color: var(--bone-dim); }
.reel:hover { background: var(--blue); }
.reel:hover .reel-title { color: var(--amber); }
.reel:hover .reel-dir,
.reel:hover .reel-year { color: var(--bone); }

.press {
  margin-top: clamp(3rem, 8vh, 5.5rem);
  padding-top: clamp(2.5rem, 6vh, 4rem);
  border-top: 1px solid var(--line);
}
.press-label { margin-bottom: 2rem; }
.press-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 30ch), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 100ch;
}
.pquote { margin: 0; }
.pquote-text {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.42;
  color: var(--bone);
  text-wrap: pretty;
  position: relative;
  padding-left: 1.4rem;
}
.pquote-text::before {
  content: '\201C';
  position: absolute; left: -0.1rem; top: -0.2em;
  font-size: 2.2em; line-height: 1;
  color: var(--amber);
  font-style: normal;
}
.pquote-src {
  margin-top: 1rem;
  color: var(--bone-dim);
  letter-spacing: 0.06em;
}
.pquote-src::before { content: '— '; color: var(--amber-lo); }

@media (max-width: 760px) {
  .ledger-cols { grid-template-columns: 1fr; gap: 2.5rem; }
  .cred-row { grid-template-columns: 11ch 1fr; gap: 0.6rem; }
}

/* ======================================================================== */
/* Footer (was Footer.astro)                                                 */
/* ======================================================================== */
.site-foot {
  border-top: 1px solid var(--line);
  margin-top: clamp(4rem, 12vh, 9rem);
  padding-top: clamp(3rem, 7vh, 5.5rem);
  padding-bottom: 2.5rem;
  background:
    radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--amber) 5%, transparent), transparent 60%),
    var(--ink);
}
.foot-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 2.5rem;
  align-items: start;
}
.foot-mail {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: clamp(1.8rem, 1.2rem + 3vw, 3.4rem);
  font-weight: 340;
  letter-spacing: -0.01em;
  color: var(--bone);
  transition: color 0.3s var(--ease);
}
.foot-mail:hover { color: var(--amber); }
.foot-meta { line-height: 2; color: var(--bone-dim); }
.foot-meta p { margin: 0; }

.to-top {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--bone-dim); text-transform: uppercase; letter-spacing: 0.14em;
  transition: color 0.3s var(--ease);
  justify-self: end;
}
.to-top:hover { color: var(--bone); }
.to-top .arrow { transition: transform 0.4s var(--ease); }
.to-top:hover .arrow { transform: translateY(-3px); }

.foot-base {
  display: flex; justify-content: space-between;
  margin-top: clamp(3rem, 8vh, 6rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  color: var(--bone-mute);
  font-size: 0.72rem; letter-spacing: 0.1em;
}

@media (max-width: 720px) {
  .foot-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .to-top { justify-self: start; }
}
