:root {
  /* palette — coral / cream default */
  --coral: #ff5849;
  --coral-deep: #D64A36;
  --cream: #F6ECDC;
  --cream-warm: #EFE3CF;
  --ink: #1A1814;
  --ink-soft: #3A342C;
  --ochre: #D4A84B;
  --paper: #FBF5E8;

  --bg: var(--cream);
  --fg: var(--ink);
  --accent: var(--coral);
  --accent-3: var(--ochre);

  --display: 'OIM Custom', 'Abril Fatface', 'DM Serif Display', Georgia, serif;
  --mid: 'Playfair Display', 'DM Serif Display', Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

@font-face {
  font-family: 'OIM Custom';
  src: url('assets/font.woff2') format('woff2'),
       url('assets/font.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Hide SEO fallback content in #root before React mounts (classless = fallback only) */
#root > h1:not([class]), #root > p:not([class]), #root > nav:not([class]), #root > section:not([class]), #root > ul:not([class]) { display: none; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 400; line-height: 0.95; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Layout ---------- */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 980px; margin: 0 auto; padding: 0 40px; }

section { position: relative; }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 20px; row-gap: 10px; margin-bottom: 48px; }
.section-head .num { flex: 0 0 100%; font-family: var(--mono); font-size: 16px; letter-spacing: 0.14em; opacity: 0.7; }
.section-head .title { font-family: var(--display); font-size: clamp(46px, 6vw, 88px); line-height: 0.9; }
.section-head .rule { flex: 1; height: 1px; background: currentColor; opacity: 0.25; align-self: center; }
.section-head > .mono { align-self: center; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in oklab, var(--fg) 10%, transparent);
  transition: background .3s, padding .3s;
}
.nav .brand {
  display: flex; align-items: center;
  color: var(--accent);
  line-height: 0;
}
.nav .brand img { height: 22px; width: auto; display: block; }
.nav .brand svg .cls-1 { fill: currentColor; }
.nav .brand em { color: var(--accent); font-style: normal; }
.nav ul { list-style: none; display: flex; gap: 28px; }
.nav ul a {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  opacity: 0.75;
  transition: opacity .2s;
}
.nav ul a:hover { opacity: 1; }
.nav ul a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: currentColor; transition: width .3s;
}
.nav ul a:hover::after { width: 100%; }
.nav ul a.nav-on { opacity: 1; }
.nav ul a.nav-on::after { width: 100%; }
.nav .lang {
  display: flex; gap: 0; border: 1px solid currentColor;
  border-radius: 999px; padding: 2px; font-family: var(--mono); font-size: 16px;
}
.nav .lang button {
  padding: 6px 12px; border-radius: 999px; letter-spacing: 0.1em; opacity: 0.6;
}
.nav .lang button.on { background: var(--fg); color: var(--bg); opacity: 1; }

/* ---------- Hero ---------- */


.hero {
  min-height: 100vh;
  padding: 120px 0 80px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
/* Chrome/Blink-only video color correction */
@supports (-webkit-app-region: none) {
  .hero-video { filter: brightness(1.12) saturate(1.05) contrast(0.95); }
}

/* Corner logo (top-right of hero) — OiM vaaka + slogan */
.hero-corner-logo {
  height: 160px;
  width: auto;
  display: block;
  position: absolute;
  top: clamp(120px, 16vh, 220px);
  right: clamp(80px, 9vw, 200px);
  z-index: 3;
  /* Turn black SVG paths to warm cream */
  filter: brightness(0) invert(1) sepia(0.12);
  animation: hero-corner-logo-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

@keyframes hero-corner-logo-in {
  from {
    opacity: 0;
    filter: brightness(0) invert(1) sepia(0.12) blur(8px);
  }
  to {
    opacity: 1;
    filter: brightness(0) invert(1) sepia(0.12) blur(0px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-corner-logo { animation: none; opacity: 1; }
}
.hero-meta {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; padding: 0 40px;
}
.hero-meta .badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid currentColor;
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.14em;
}
.hero-meta .badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cream);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--cream) 30%, transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--cream) 30%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--cream) 0%, transparent); }
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(72px, 15vw, 260px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  padding: 0 40px;
  margin-top: 40px;
}
.hero-title .row { display: block; }
.hero-title .row.right { text-align: right; }
.hero-title .coral { color: var(--accent); }
.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 2px currentColor;
}

.hero-logo {
  padding: 0 40px;
  margin-top: 40px;
  color: var(--accent);
}
.hero-logo img, .hero-logo svg { display: block; width: 100%; max-width: 1100px; height: auto; }
.hero-logo svg .cls-1 { fill: currentColor; }

.hero-footer {
  padding: 0 40px 0 40px;
  padding-right: clamp(40px, 8vw, 160px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 20px;
  text-align: right;
}
.hero-footer .tag { font-family: var(--mono); font-size: 16px; letter-spacing: 0.14em; opacity: 0.6; margin-bottom: 6px; }
.hero-footer .val { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 26px; line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; }
.hero-footer .desc { font-size: 18px; max-width: 42ch; line-height: 1.55; }

/* ============================================================
   SCROLL-TRIGGERED ENTRANCE ANIMATIONS
   All reversible: reveal-in / .in removed on scroll-up.
   ============================================================ */

/* Spring easing shared across all animations */

/* -- Word-split base (set by animations.js) ----------------- */
.w-outer {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.15;
}
.w-inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
/* Fire: parent gets reveal-in (from reveal.js) or .in (from Shell) */
.reveal-in .w-inner,
.in .w-inner { transform: translateY(0); }

/* -- Page head ------------------------------------------------ */
/* Eyebrow slides in from left */
.page-head .eyebrow {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-in .page-head .eyebrow,
.page-head.reveal-in .eyebrow { opacity: 1; transform: none; }

/* h1 words handle themselves; give the container no extra animation */
.page-head h1 { opacity: 1 !important; transform: none !important; }

/* Lede fades up gently behind the words */
.page-head .lede {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease 0.25s, transform 0.9s cubic-bezier(0.16,1,0.3,1) 0.25s;
}
.reveal-in .page-head .lede,
.page-head.reveal-in .lede { opacity: 1; transform: none; }

/* -- Section head -------------------------------------------- */
/* Number slides in from left */
.section-head .num {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Title rises in, delayed after num */
.section-head .title {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.0s ease 0.15s, transform 1.0s cubic-bezier(0.16,1,0.3,1) 0.15s;
}
/* Rule fades in last */
.section-head .rule {
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
}
.section-head .mono {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.7s ease 0.35s, transform 0.7s ease 0.35s;
}
.reveal-in .section-head .num,
.section-head.reveal-in .num { opacity: 1; transform: none; }
.reveal-in .section-head .title,
.section-head.reveal-in .title { opacity: 1; transform: none; }
.reveal-in .section-head .rule,
.section-head.reveal-in .rule { opacity: 0.2; }
.reveal-in .section-head .mono,
.section-head.reveal-in .mono { opacity: 0.7; transform: none; }

/* -- Home teaser heads (Selection, Program, Venues, etc.) ---- */
/* Don't animate the container itself — only the children */
.home-teaser .teaser-head.reveal-el { opacity: 1 !important; transform: none !important; }

.teaser-head .num {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.teaser-head .t {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.0s ease 0.15s, transform 1.0s cubic-bezier(0.16,1,0.3,1) 0.15s;
}
.teaser-head .cta {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.35s, transform 0.6s ease 0.35s;
}
.teaser-head.reveal-in .num { opacity: 1; transform: none; }
.teaser-head.reveal-in .t { opacity: 1; transform: none; }
.teaser-head.reveal-in .cta { opacity: 1; transform: none; }

/* -- General reveal (used by Shell.jsx) ---------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.0s cubic-bezier(0.16,1,0.3,1),
              transform 1.0s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in { opacity: 1; transform: none; }

/* -- Stagger children ---------------------------------------- */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1),
              transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 120ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 340ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 430ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 510ms; }
.reveal-stagger.in > * { opacity: 1; transform: none; }

/* -- Reduced motion ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .w-inner { transform: none !important; transition: none !important; }
  .reveal, .reveal-stagger > *, .section-head .num,
  .section-head .title, .section-head .rule, .section-head .mono,
  .teaser-head .num, .teaser-head .t, .teaser-head .cta,
  .page-head .eyebrow, .page-head .lede {
    opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important;
  }
}

/* footer separator — keep Program teaser on home visually distinct from footer */
.home-teaser.ink {
  box-shadow: inset 0 -1px 0 color-mix(in oklab, var(--cream) 15%, transparent);
}
.home-teaser.ink + .site-footer {
  border-top: 8px solid var(--accent);
}

/* program page dates */
.program .day-tab .dnum {
  color: var(--accent);
}

/* scroll train */
.train-scroll {
  position: relative;
  height: 140px;
  background: var(--accent);
  color: var(--cream);
  overflow: hidden;
  border-top: 1px solid color-mix(in oklab, var(--ink) 15%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 15%, transparent);
}
.train-scroll .tracks {
  position: absolute; left: 0; right: 0; bottom: 30px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 20px, transparent 20px 30px);
  opacity: 0.5;
}
.train-scroll .rail {
  position: absolute; left: 0; right: 0; height: 1px; background: var(--ink); opacity: 0.4;
}
.train-scroll .rail.top { bottom: 34px; }
.train-scroll .rail.bot { bottom: 24px; }
.train-scroll .train-svg {
  position: absolute; bottom: 24px; transform-origin: bottom left;
  will-change: transform;
}
.train-scroll .smoke {
  position: absolute; bottom: 60px; display: flex; gap: 14px; align-items: flex-end;
  pointer-events: none;
}
.train-scroll .smoke span {
  display: block; background: var(--cream); border-radius: 50%;
  opacity: 0.6;
}
.train-scroll .marquee {
  position: absolute; left: 0; right: 0; top: 18px;
  white-space: nowrap; overflow: hidden;
  font-family: var(--display);
  font-size: 42px;
  opacity: 0.22;
}
.train-scroll .marquee-inner {
  display: inline-block;
  animation: marquee 40s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- About ---------- */
.about {
  padding: 120px 0;
  background: var(--accent);
  color: var(--cream);
}
.about .lede {
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  max-width: 20ch;
  margin-bottom: 60px;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
.about .lede { color: var(--ink); hyphens: none; }
.about .lede em { font-style: normal; opacity: 0.8; }
.about .cols {
  font-size: 16px; line-height: 1.7;
  margin-top: 20px;
}
.about .cols p + p { margin-top: 16px; }

.about-body-row {
  position: relative;
}
.about-body-row .cols {
  max-width: 60%;
}
img.about-raksila-illustration {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 34%;
  height: auto;
  pointer-events: none;
}
img.about-raksila-illustration.reveal-el {
  transform: none;
  transition: opacity 1.2s ease 0.3s;
}
img.about-raksila-illustration.reveal-in {
  opacity: 1;
  transform: none;
}

.about .manifesto {
  margin-top: 80px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  border: 1px solid color-mix(in oklab, var(--cream) 40%, transparent);
  background: color-mix(in oklab, var(--cream) 40%, transparent);
}
.about .manifesto > div {
  background: var(--accent);
  padding: 36px 28px;
}
.about .manifesto .n { font-family: var(--mono); font-size: 16px; letter-spacing: 0.16em; margin-bottom: 18px; color: var(--ochre); }
.about .manifesto .h { font-family: var(--display); font-size: clamp(28px, 2.8vw, 40px); line-height: 1; margin-bottom: 14px; color: var(--ink); }
.about .manifesto p { font-size: 18px; line-height: 1.55; opacity: 0.9; }

/* Organisers — standalone cream section */
.about-team {
  padding: 100px 0;
  background: var(--cream);
  color: var(--ink);
}
.about-team .org-head { max-width: 56ch; margin-bottom: 48px; }
.about-team .org-head h3 {
  font-family: var(--display); font-size: clamp(40px, 5vw, 68px);
  line-height: 0.95; margin: 16px 0 20px; letter-spacing: -0.01em;
}
.about-team .org-lede { font-size: 16px; line-height: 1.6; opacity: 0.9; max-width: 52ch; }
.about-team .org-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px;
  align-items: start;
}
@media (max-width: 900px) { .about-team .org-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .about-team .org-grid { grid-template-columns: 1fr; } }

/* Team photo row */
.team-photo-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 700px) { .team-photo-row { grid-template-columns: 1fr; } }
.team-photo-side img {
  width: 100%;
  display: block;
}
.team-photo-caption {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0.55;
  margin-top: 10px;
  line-height: 1.45;
}
.team-info-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.team-member {
  padding: 22px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
}
.team-member:first-child {
  border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
}
.tm-name {
  font-family: var(--mid);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1;
  margin-bottom: 6px;
}
.tm-role {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* Group photo below team list */
.team-photo-below {
  margin-top: 56px;
  max-width: 560px;
}
.team-photo-below img {
  width: 100%;
  display: block;
}

/* Organisers (inside About, coral bg, cream text) — legacy */
.about .organisers {
  margin-top: 100px;
  padding-top: 60px;
  border-top: 1px solid color-mix(in oklab, var(--cream) 30%, transparent);
}
.about .organisers .org-head { max-width: 56ch; margin-bottom: 48px; }
.about .organisers .org-head h3 {
  font-family: var(--display); font-size: clamp(40px, 5vw, 68px);
  line-height: 0.95; margin: 16px 0 20px; letter-spacing: -0.01em;
}
.about .organisers .org-lede { font-size: 16px; line-height: 1.6; opacity: 0.9; max-width: 52ch; }
.about .organisers .org-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px;
  align-items: start;
}
@media (max-width: 900px) { .about .organisers .org-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .about .organisers .org-grid { grid-template-columns: 1fr; } }
.about .organisers .org { display: flex; flex-direction: column; gap: 14px; }
.about .organisers .org.lead { grid-row: span 1; }
.about .organisers .org-portrait {
  aspect-ratio: 3/4; width: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mid); font-weight: 500; font-size: 64px; line-height: 1;
  border: 1px solid color-mix(in oklab, var(--cream) 20%, transparent);
  overflow: hidden;
}
.about .organisers .org.lead .org-portrait { aspect-ratio: 3/4; font-size: 88px; }
.about .organisers .org-portrait span { display: block; }
.about .organisers .org-meta { padding-top: 2px; }
.about .organisers .org-role {
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.14em;
  text-transform: uppercase; opacity: 0.75; margin-bottom: 6px;
}
.about .organisers .org-name {
  font-family: var(--mid); font-weight: 500; font-size: 22px; line-height: 1.05;
}
.about .organisers .org.lead .org-name { font-size: 28px; }

/* ---------- Films ---------- */
.films { padding: 120px 0; }

.films-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 48px; gap: 20px; flex-wrap: wrap;
}
.films-toolbar .filters { display: flex; gap: 8px; flex-wrap: wrap; }
.films-toolbar .filter {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--fg) 20%, transparent);
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.1em;
  transition: all .2s;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}
.films-toolbar .filter:hover { border-color: var(--fg); }
.films-toolbar .filter.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.films-toolbar .view-toggle {
  display: flex; gap: 0; border: 1px solid color-mix(in oklab, var(--fg) 25%, transparent);
  border-radius: 999px; padding: 2px;
}
.films-toolbar .view-toggle button {
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.1em; opacity: 0.6;
}
.films-toolbar .view-toggle button.on { background: var(--fg); color: var(--bg); opacity: 1; }

/* Grid view */
.films-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
@media (max-width: 900px) { .films-grid { grid-template-columns: repeat(2, 1fr); } }
.film-card {
  cursor: pointer;
  display: flex; flex-direction: column; gap: 12px;
}
.film-card .poster {
  aspect-ratio: 2/3;
  background: var(--ink);
  border-radius: 2px;
  position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.9,.3,1);
}
.film-card:hover .poster { transform: translateY(-4px); }
.film-card .poster-bg {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; padding: 18px;
  color: var(--cream);
}
.film-card .poster-bg .pt {
  font-family: var(--mid); font-weight: 500; font-size: 28px; line-height: 0.95;
}
.film-card .poster-meta {
  position: absolute; top: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.12em;
  color: var(--cream); opacity: 0.85;
}
.film-card .still {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .35s;
}
.film-card:hover .still { opacity: 1; }
.film-card:hover .poster-bg { background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.2) 60%, transparent); }
.film-card .caption {
  display: flex; justify-content: space-between; gap: 12px;
}
.film-card .caption .t { font-family: var(--mid); font-weight: 500; font-size: 22px; line-height: 1.05; }
.film-card .caption .meta { font-family: var(--mono); font-size: 16px; letter-spacing: 0.12em; opacity: 0.6; white-space: nowrap; }

/* Editorial list */
.films-list {
  display: flex; flex-direction: column;
  border-top: 1px solid color-mix(in oklab, var(--fg) 20%, transparent);
}
.film-row {
  display: grid; grid-template-columns: 60px 1.4fr 1.6fr 1.4fr 40px;
  gap: 24px; align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--fg) 20%, transparent);
  cursor: pointer;
  position: relative;
  transition: background .2s;
}
.film-row:hover { background: color-mix(in oklab, var(--fg) 4%, transparent); }
.film-row .idx { font-family: var(--mono); font-size: 16px; opacity: 0.5; }
.film-row .ft { font-family: var(--display); font-size: clamp(28px, 3vw, 42px); line-height: 1; }
.film-row .fm { font-family: var(--mono); font-size: 16px; letter-spacing: 0.1em; opacity: 0.7; }
.film-row .fd { font-size: 18px; opacity: 0.8; }
.film-row .arrow {
  justify-self: end; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid currentColor; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.film-row:hover .arrow { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.film-hover-thumb {
  position: fixed; z-index: 900; pointer-events: none;
  width: 180px; aspect-ratio: 2/3;
  border-radius: 2px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
  opacity: 0; transform: translate(-50%, -110%) scale(0.94);
  transition: opacity .15s, transform .15s;
  will-change: transform, opacity;
}
.film-hover-thumb.on { opacity: 1; transform: translate(-50%, -110%) scale(1); }
.film-hover-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Filmstrip */
.filmstrip {
  display: flex; gap: 16px; overflow-x: auto; padding: 20px 0 40px;
  scrollbar-width: thin;
  margin: 0 -40px; padding-left: 40px; padding-right: 40px;
}
.filmstrip .film-card { flex: 0 0 260px; }

/* ---------- Program ---------- */
.program {
  padding: 120px 0;
  background: var(--ink);
  color: var(--cream);
}
.program .day-tabs {
  display: flex; gap: 4px; margin-bottom: 48px;
  border-bottom: 1px solid color-mix(in oklab, var(--cream) 20%, transparent);
  flex-wrap: wrap;
}
.program .day-tab {
  padding: 14px 20px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.12em;
  opacity: 0.6;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  transition: all .2s;
}
.program .day-tab .dnum { font-family: var(--mid); font-weight: 500; font-size: 32px; letter-spacing: -0.01em; color: var(--cream); }
.program .day-tab:hover { opacity: 0.85; }
.program .day-tab.on { opacity: 1; border-color: var(--accent); color: var(--accent); }
.program .schedule { display: flex; flex-direction: column; }
.program .slot {
  display: grid; grid-template-columns: 120px 1fr 2fr 180px 120px; gap: 24px;
  padding: 20px 0;
  border-top: 1px solid color-mix(in oklab, var(--cream) 15%, transparent);
  align-items: center;
}
.program .slot:last-child { border-bottom: 1px solid color-mix(in oklab, var(--cream) 15%, transparent); }
.program .slot .time { font-family: var(--mono); font-size: 16px; }
.program .slot .tag { font-family: var(--mono); font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }
.program .slot .title { font-family: var(--mid); font-weight: 500; font-size: 24px; line-height: 1.05; }
.program .slot .venue { font-size: 16px; opacity: 0.75; }
.program .slot .book { justify-self: end; }
.program .btn-book {
  padding: 8px 14px; border: 1px solid currentColor; border-radius: 999px;
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.12em;
  transition: all .2s;
}
.program .btn-book:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ---------- Venues / map ---------- */
.venues { padding: 120px 0; background: var(--paper); }
.venue-map-container { width: 100%; height: 100%; min-height: 400px; }

/* Map container background while tiles load */
.leaflet-container { background: var(--cream-warm) !important; }
/* Counteract the global img { display: block } reset — Leaflet tiles are inline images
   and display:block causes 1-2px seams between tiles (the visible "grid") */
.leaflet-container img { display: inline-block; max-width: none; }

/* Warm overlay — multiply blend makes white→cream, grey→warm tan, black stays black */
.map-warm-overlay {
  position: absolute; inset: 0; z-index: 250;
  pointer-events: none;
  background: var(--cream-warm);
  mix-blend-mode: multiply;
}

/* Leaflet custom markers */
.vm-marker { background: none !important; border: none !important; }
.vm-pin {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.05em;
  border: 2px solid var(--cream);
  box-shadow: 0 2px 12px rgba(0,0,0,.22);
  transition: background .18s, color .18s, transform .18s, box-shadow .18s;
  cursor: pointer;
}
.vm-label {
  position: absolute; left: 36px; top: 50%; transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--body); font-size: 16px; font-weight: 500;
  color: var(--ink);
  background: var(--cream); padding: 3px 8px; border-radius: 2px;
  border: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  pointer-events: none;
  opacity: 0; transition: opacity .18s;
}
.vm-marker--active .vm-pin,
.leaflet-marker-icon:hover .vm-pin {
  background: var(--accent); color: var(--cream);
  transform: scale(1.18); box-shadow: 0 4px 16px rgba(255,88,73,.35);
}
.vm-marker--active .vm-label,
.leaflet-marker-icon:hover .vm-label { opacity: 1; }

/* Zoom controls */
.leaflet-control-zoom {
  border: 1px solid color-mix(in oklab, var(--ink) 16%, transparent) !important;
  border-radius: 2px !important; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08) !important;
}
.leaflet-control-zoom a {
  font-family: var(--mono) !important; font-size: 16px !important; line-height: 28px !important;
  width: 28px !important; height: 28px !important;
  color: var(--ink) !important;
  background: var(--cream) !important;
  border: none !important;
}
.leaflet-control-zoom a:hover { background: var(--ink) !important; color: var(--cream) !important; }
.leaflet-bar a + a { border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent) !important; }
.leaflet-attribution-flag { display: none !important; }
.leaflet-control-attribution {
  background: color-mix(in oklab, var(--cream) 85%, transparent) !important;
  font-size: 9px !important; color: var(--ink) !important; opacity: 0.6;
  border-radius: 2px 0 0 0 !important;
}

/* hover preview thumb (Program-style) */
.vn-thumb {
  position: fixed; z-index: 900; pointer-events: none;
  width: 180px; aspect-ratio: 1080/1400;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  border: 1px solid color-mix(in oklab, var(--fg) 20%, transparent);
  overflow: hidden;
  opacity: 0; transform: translate(-50%, -110%) scale(0.96); transition: opacity .15s, transform .15s;
  font-family: var(--mono); color: var(--cream);
  will-change: transform, opacity;
}
.vn-thumb.on { opacity: 1; transform: translate(-50%, -110%) scale(1); }
.vn-thumb .vn-thumb-bg { position: absolute; inset: 0; }
.vn-thumb .vn-thumb-cap { position: absolute; left: 10px; right: 10px; bottom: 8px; font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.vn-thumb .vn-thumb-idx { position: absolute; top: 8px; left: 10px; font-size: 16px; letter-spacing: 0.12em; opacity: 0.9; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.venues .layout {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px;
}
@media (max-width: 900px) { .venues .layout { grid-template-columns: 1fr; } }
.venues .list { display: flex; flex-direction: column; }
.venues .vitem {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 16px; align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--fg) 18%, transparent);
  cursor: pointer;
  transition: padding .2s;
}
.venues .vitem:hover { padding-left: 10px; }
.venues .vitem.on { padding-left: 10px; }
.venues .vitem:first-child { border-top: 1px solid color-mix(in oklab, var(--fg) 18%, transparent); }
.venues .vitem .pin {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 16px; font-weight: 600;
  background: var(--fg); color: var(--bg);
  transition: all .2s;
}
.venues .vitem.on .pin, .venues .vitem:hover .pin { background: var(--accent); }
.venues .vitem .vn { font-family: var(--mid); font-weight: 500; font-size: 22px; line-height: 1; }
.venues .vitem .vm { font-family: var(--mono); font-size: 16px; letter-spacing: 0.12em; opacity: 0.6; margin-top: 4px; }
.venues .vitem .vc { font-family: var(--mono); font-size: 16px; opacity: 0.6; }

.venues .map {
  position: sticky; top: 120px;
  aspect-ratio: 1/1;
  background: var(--cream-warm);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--fg) 15%, transparent);
}
.venues .map svg { width: 100%; height: 100%; display: block; }

.venues .map-stack { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 120px; }
.venues .map-stack .map { position: static; }
.venues .venue-photo {
  aspect-ratio: 16/10;
  background: var(--ink); color: var(--cream);
  border: 1px solid color-mix(in oklab, var(--fg) 15%, transparent);
  overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s;
}
.venues .venue-photo .vp-idle { opacity: 0.5; font-size: 16px; letter-spacing: 0.14em; }
.venues .venue-photo .vp-placeholder {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 20px;
}
.venues .venue-photo .vp-caption { color: var(--cream); }
.venues .venue-photo .vp-idx { font-family: var(--mono); font-size: 16px; letter-spacing: 0.14em; opacity: 0.8; }
.venues .venue-photo .vp-name { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 32px; line-height: 1; margin: 4px 0; }
.venues .venue-photo .vp-note { font-size: 16px; letter-spacing: 0.14em; opacity: 0.6; text-transform: uppercase; }

/* ---------- Tickets ---------- */
.tickets {
  padding: 120px 0;
  background: var(--ink);
  color: var(--cream);
}
.tickets .layout {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px;
}
@media (max-width: 900px) { .tickets .layout { grid-template-columns: 1fr; } }
.tickets .pitch .lede {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1;
  margin-bottom: 24px;
  text-wrap: balance;
}
.tickets .pitch p { font-size: 16px; opacity: 0.85; max-width: 48ch; }
.tickets .passes {
  display: grid; gap: 16px;
  margin-top: 40px;
}
.tickets .pass {
  border: 1px solid color-mix(in oklab, var(--cream) 30%, transparent);
  padding: 20px;
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
  align-items: center;
}
.tickets .pass .pn { font-family: var(--mid); font-weight: 500; font-size: 22px; }
.tickets .pass .pd { font-size: 16px; opacity: 0.7; }
.tickets .pass .pp { font-family: var(--mid); font-weight: 500; font-size: 28px; }

/* booking flow */
.booking {
  background: var(--cream);
  color: var(--ink);
  padding: 32px;
  border-radius: 2px;
  display: flex; flex-direction: column;
  align-self: stretch;
}
.booking .steps {
  display: flex; gap: 0; margin-bottom: 24px;
}
.booking .step {
  flex: 1;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.07em;
  padding: 8px 4px;
  border-bottom: 2px solid color-mix(in oklab, var(--ink) 15%, transparent);
  opacity: 0.5;
  text-align: center;
  line-height: 1.2;
}
.booking .step.on { opacity: 1; border-color: var(--accent); color: var(--accent); }
.booking .step.done { opacity: 0.8; }
.booking h4 { font-family: var(--mid); font-weight: 500; font-size: 28px; margin-bottom: 14px; line-height: 1; }
.booking .film-pick {
  display: flex; flex-direction: column;
  flex: 1; overflow-y: auto;
  margin: 0 -8px;
  scrollbar-width: thin;
  scrollbar-color: var(--ink) transparent;
}
.booking .film-pick::-webkit-scrollbar { width: 4px; }
.booking .film-pick::-webkit-scrollbar-track { background: transparent; }
.booking .film-pick::-webkit-scrollbar-thumb { background: color-mix(in oklab, var(--ink) 30%, transparent); border-radius: 2px; }
.booking .film-pick::-webkit-scrollbar-thumb:hover { background: var(--ink); }
.booking .film-pick button {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 10px; text-align: left; border-radius: 2px;
  transition: background .15s;
  border-top: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
}
.booking .film-pick button:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.booking .film-pick button.on { background: var(--ink); color: var(--cream); }
.booking .film-pick .ft { font-family: var(--mid); font-weight: 500; font-size: 18px; }
.booking .film-pick .fm { font-family: var(--mono); font-size: 16px; letter-spacing: 0.1em; opacity: 0.6; }
.booking .showtimes { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.booking .showtime {
  padding: 12px; border: 1px solid color-mix(in oklab, var(--ink) 20%, transparent);
  border-radius: 2px; text-align: left;
  transition: all .15s;
}
.booking .showtime:hover { border-color: var(--ink); }
.booking .showtime.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.booking .showtime .d { font-family: var(--mono); font-size: 16px; letter-spacing: 0.1em; opacity: 0.7; }
.booking .showtime .t { font-family: var(--mid); font-weight: 500; font-size: 20px; }
.booking .showtime .v { font-size: 16px; opacity: 0.7; }
.booking input {
  width: 100%; padding: 12px; border: 1px solid color-mix(in oklab, var(--ink) 20%, transparent);
  font: inherit; border-radius: 2px; background: transparent;
  margin-bottom: 10px;
}
.booking input:focus { outline: none; border-color: var(--accent); }
.booking .actions {
  display: flex; justify-content: space-between; align-items: center; margin-top: 20px;
  margin-top: auto; padding-top: 20px;
}
.booking button.primary {
  padding: 12px 20px; background: var(--ink); color: var(--cream);
  border-radius: 999px; font-family: var(--mono); font-size: 16px; letter-spacing: 0.12em;
  transition: all .2s;
}
.booking button.primary:hover { background: var(--accent); color: var(--cream); }
.booking button.primary:disabled { opacity: 0.35; cursor: not-allowed; }
.booking button.back {
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.12em; opacity: 0.6;
}
.booking button.back:hover { opacity: 1; }
.booking .done-msg {
  text-align: center; padding: 20px 0;
}
.booking .done-msg .big {
  font-family: var(--mid); font-weight: 500; font-size: 48px; line-height: 1;
  color: var(--accent); margin-bottom: 10px;
}

/* ---------- Guests ---------- */
.guests { padding: 120px 0; }

/* Featured artistic director (big block) */
.guest-featured {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 60px;
  align-items: stretch;
  margin-bottom: 100px;
}
@media (max-width: 900px) { .guest-featured { grid-template-columns: 1fr; gap: 32px; } }
.guest-featured .gf-portrait {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 133.33%; /* 4:3 portrait — gives a real height % child can resolve against */
  height: 0;
}
.guest-featured .gf-portrait-inner {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 24px;
}
.gf-portrait-photo {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.guest-featured .gf-initials {
  font-family: var(--display);
  font-size: clamp(160px, 22vw, 280px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  opacity: 0.92;
}
.guest-featured .gf-copy {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8px 0 8px;
}
.guest-featured .gf-eyebrow {
  font-size: 16px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.guest-featured .gf-name {
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
.guest-featured .gf-role {
  font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.65; margin-bottom: 28px;
}
.guest-featured .gf-bio {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 500;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.35;
  max-width: 44ch;
  margin-bottom: 40px;
  text-wrap: pretty;
}
.guest-featured .gf-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in oklab, var(--fg) 20%, transparent);
}
@media (max-width: 700px) { .guest-featured .gf-meta { grid-template-columns: 1fr; gap: 16px; } }
.guest-featured .gf-meta .k {
  font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.6; margin-bottom: 6px;
}
.guest-featured .gf-meta .v {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 18px; line-height: 1.15;
}

/* small row headers inside guests page */
.gs-head {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 28px;
}
.gs-head .mono {
  font-size: 16px; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.7;
}
.gs-head .rule { flex: 1; height: 1px; background: currentColor; opacity: 0.2; }

.guest-secondary-block,
.guest-music-block,
.guest-list { margin-bottom: 80px; }

.guests-grid {
  display: grid; gap: 32px;
}
.guests-grid.three { grid-template-columns: repeat(3, 1fr); }
.guests-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .guests-grid.three,
  .guests-grid.four { grid-template-columns: repeat(2, 1fr); }
}
.guest {
  display: flex; flex-direction: column; gap: 12px;
  min-width: 0;
}
.guest .portrait {
  aspect-ratio: 3/4;
  background: var(--cream-warm);
  position: relative; overflow: hidden;
  transition: transform .3s;
}
.guest:hover .portrait { transform: translateY(-3px); }
.guest .portrait-inner {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 16px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 50%, transparent), var(--accent));
}
.guest .portrait-inner .initials {
  font-family: var(--mid); font-weight: 500; font-size: 96px; line-height: 0.8; color: var(--cream);
  opacity: 0.85;
}
.guest .gn { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 22px; line-height: 1.15; letter-spacing: -0.005em; overflow-wrap: break-word; hyphens: auto; }
.guest .gr { font-family: var(--mono); font-size: 16px; letter-spacing: 0.12em; opacity: 0.65; overflow-wrap: break-word; hyphens: auto; }

/* compact list for overflow speakers */
.gl-rows { display: flex; flex-direction: column; }
.gl-row {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 20px; align-items: center;
  padding: 16px 0;
  border-top: 1px solid color-mix(in oklab, var(--fg) 14%, transparent);
}
.gl-row:last-child { border-bottom: 1px solid color-mix(in oklab, var(--fg) 14%, transparent); }
.gl-row .gl-initials {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  font-family: var(--mid); font-weight: 500; font-size: 16px; letter-spacing: -0.02em;
}
.gl-row .gl-name {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 20px;
  letter-spacing: -0.005em;
}
.gl-row .gl-role { font-size: 16px; letter-spacing: 0.14em; opacity: 0.6; text-transform: uppercase; }


/* ---------- Sponsors ---------- */
.sponsors {
  padding: 90px 0;
}
.sponsors .lbl {
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.14em; opacity: 0.65;
  margin-bottom: 40px;
}
.sponsors .grid {
  display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: center;
}
.sponsors .logo {
  display: flex; align-items: center; justify-content: center;
  opacity: 0.75;
}
.sponsors .logo img { height: 36px; width: auto; display: block; }

/* ---------- Instagram feed ---------- */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 12px;
  align-items: start;
}
.ig-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.ig-tile-img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cream-warm);
  border: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
}
.ig-tile-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .6s ease;
}
.ig-tile-img.is-loaded { opacity: 1; }
.ig-tile:hover .ig-tile-img,
.ig-tile:focus-visible .ig-tile-img { transform: scale(1.04); }
.ig-tile-cap {
  margin: 10px 0 0;
  font-family: var(--body); font-size: 13px; line-height: 1.45;
  color: var(--ink); opacity: .65;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.ig-badge {
  position: absolute; top: 10px; right: 10px; width: 20px; height: 20px;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.45));
  background-repeat: no-repeat; background-position: center; background-size: contain;
}
.ig-badge--video {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
}
.ig-badge--album {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='7' y='7' width='12' height='12' rx='1'/%3E%3Cpath d='M3 15V5a2 2 0 0 1 2-2h10'/%3E%3C/svg%3E");
}
.ig-tile--skeleton .ig-tile-img-wrap {
  animation: ig-pulse 1.4s ease-in-out infinite;
}
@keyframes ig-pulse { 0%, 100% { opacity: .5; } 50% { opacity: .9; } }
/* Real tiles stagger in via CSS animation — fires both on element insertion (fetch lands
   while section is already visible) and when .in is added (user scrolls to section) */
.ig-grid.in .ig-tile:not(.ig-tile--skeleton) {
  animation: ig-tile-in 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.ig-grid.in .ig-tile:nth-child(1):not(.ig-tile--skeleton) { animation-delay: 0ms; }
.ig-grid.in .ig-tile:nth-child(2):not(.ig-tile--skeleton) { animation-delay: 90ms; }
.ig-grid.in .ig-tile:nth-child(3):not(.ig-tile--skeleton) { animation-delay: 180ms; }
.ig-grid.in .ig-tile:nth-child(4):not(.ig-tile--skeleton) { animation-delay: 270ms; }
@keyframes ig-tile-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ig-grid.in .ig-tile { animation: none; }
}
@media (max-width: 700px) { .ig-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
/* Keep ig-teaser header children always visible (reveal.js layout-shift workaround) */
.ig-teaser .teaser-head .num,
.ig-teaser .teaser-head .t,
.ig-teaser .teaser-head .cta { opacity: 1; transform: none; }
/* Heart SVG — pops out of the "Instagram" heading on section reveal */
.ig-heart {
  position: absolute;
  top: -18px; right: -18px;
  width: clamp(28px, 3.2vw, 40px); height: clamp(28px, 3.2vw, 40px);
  opacity: 0;
  transform: scale(0);
  transform-origin: left bottom;
  pointer-events: none;
  overflow: visible;
}
/* The solid silhouette starts hidden and bursts in to "fill" the outline */
.ig-heart-fill {
  opacity: 0;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
}

.ig-teaser .teaser-head.reveal-in .ig-heart {
  animation: ig-heart-pop 1.6s ease both;
  animation-delay: 0.25s;
}
.ig-teaser .teaser-head.reveal-in .ig-heart-fill {
  animation: ig-heart-fill 1.6s ease both;
  animation-delay: 0.25s;
}
@keyframes ig-heart-pop {
  0%   { opacity: 0;   transform: scale(0)    translateY(0);     }
  18%  { opacity: 1;   transform: scale(1.3)  translateY(0);     }
  32%  { opacity: 1;   transform: scale(0.9)  translateY(0);     }
  45%  { opacity: 1;   transform: scale(1.08) translateY(-2px);  }
  55%  { opacity: 1;   transform: scale(1.0)  translateY(-6px);  }
  75%  { opacity: 1;   transform: scale(0.95) translateY(-52px); }
  100% { opacity: 0;   transform: scale(0.6)  translateY(-104px);}
}
/* The solid fill stays empty while the outline pops, then bursts in to fill it */
@keyframes ig-heart-fill {
  0%, 20%   { opacity: 0; transform: scale(0);    }
  32%       { opacity: 1; transform: scale(1.15); }
  42%       { opacity: 1; transform: scale(0.95); }
  50%, 100% { opacity: 1; transform: scale(1);    }
}
@media (prefers-reduced-motion: reduce) {
  .ig-teaser .teaser-head.reveal-in .ig-heart,
  .ig-teaser .teaser-head.reveal-in .ig-heart-fill { animation: none; }
}

/* ---------- Contact ---------- */
.contact {
  padding: 120px 0 80px;
  background: var(--cream-warm);
  color: var(--ink);
}
.contact .big {
  font-family: var(--display);
  font-size: clamp(64px, 10vw, 160px);
  line-height: 0.9;
  margin-bottom: 60px;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.contact .big a {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  border-bottom: 2px solid color-mix(in oklab, var(--accent) 50%, transparent);
  transition: border-color .2s;
}
.contact .big a:hover { border-color: var(--accent); }
.contact .cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding-bottom: 60px;
  border-top: 1px solid color-mix(in oklab, var(--ink) 15%, transparent);
  padding-top: 60px;
  margin-top: 60px;
}
.contact .cols h5 { font-family: var(--mono); font-size: 16px; letter-spacing: 0.14em; opacity: 0.55; margin-bottom: 14px; font-weight: 500; }
.contact .cols p { font-size: 18px; line-height: 1.6; opacity: 0.85; }
.contact .cols a { opacity: 0.85; }
.contact .cols a:hover { color: var(--accent); opacity: 1; }

.footer-logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px 48px;
  padding: 40px 0;
  border-top: 1px solid color-mix(in oklab, var(--cream) 15%, transparent);
}
.footer-partner-logo {
  height: 28px; width: auto; display: block;
  opacity: 0.6;
  filter: brightness(0) invert(1);
}
/* Logos with small intrinsic dimensions need extra height so their text stays readable */
.footer-partner-logo[alt="Oulun Elokuvakeskus"],
.footer-partner-logo[alt="AaltoSiilo"],
.footer-partner-logo[alt="Snooker Time"] {
  height: 56px;
}
.sponsors .logo img[alt="Oulun Elokuvakeskus"],
.sponsors .logo img[alt="AaltoSiilo"],
.sponsors .logo img[alt="Snooker Time"] {
  height: 72px;
}

.footer-end {
  padding: 24px 0;
  border-top: 1px solid color-mix(in oklab, var(--cream) 15%, transparent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-family: var(--body); font-size: 14px;
  gap: 4px;
}
/* Dim all direct children except the brandstein credit row */
.footer-end > span:not(.footer-brand-credit) { opacity: 0.5; }
.footer-end > a { opacity: 0.5; transition: opacity .2s; }
.footer-end > a:hover { opacity: 1; color: var(--accent); }

/* Brand credit row — stacked, centered */
.footer-brand-credit {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 40px;
}
.footer-brand-credit > span { opacity: 0.5; }

/* Brandstein footer logo — 3D tilt + cursor-following gleam */
.brandstein-footer-logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  border-radius: 4px;
  line-height: 0;
  --gx: 50%;
  --gy: 50%;
  --gleam-op: 0;
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
  will-change: transform;
}
.brandstein-footer-logo img {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.65;
  transition: opacity 0.3s ease;
}
.brandstein-footer-logo:hover img { opacity: 1; }
/* Desktop: cursor-following radial gleam, masked to SVG paths only */
.brandstein-footer-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,0.65) 0%, transparent 60%);
  opacity: var(--gleam-op);
  transition: opacity 0.2s;
  pointer-events: none;
  border-radius: 4px;
  -webkit-mask-image: url('assets/logos/brandstein-logo.svg');
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: url('assets/logos/brandstein-logo.svg');
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
/* Mobile: auto-tilt only, no gleam */
@media (max-width: 900px) {
  .brandstein-footer-logo {
    animation: bs-tilt 5s ease-in-out infinite;
  }
  .brandstein-footer-logo img { opacity: 1; height: 36px; }
  .brandstein-footer-logo::after { display: none; }
}
@keyframes bs-tilt {
  0%   { transform: perspective(480px) translateY(0px)  rotateX(0deg) rotateY(-6deg) scale(1); }
  50%  { transform: perspective(480px) translateY(-5px) rotateX(3deg) rotateY(6deg)  scale(1.03); }
  100% { transform: perspective(480px) translateY(0px)  rotateX(0deg) rotateY(-6deg) scale(1); }
}
@keyframes bs-gleam {
  from { transform: skewX(-12deg) translateX(-250%); }
  to   { transform: skewX(-12deg) translateX(500%); }
}

/* ---------- Cityscape (before footer) ---------- */
.cityscape {
  position: relative;
  z-index: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: var(--cream-warm);
  padding-top: 60px;
  margin-bottom: -80px;
}
.cityscape svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.cityscape .city-block { will-change: transform; }
/* Override SVG's cool-tinted dark fills with the site's warm ink colour */
.cityscape .cls-3,
.cityscape .cls-4,
.cityscape .cls-5,
.cityscape .cls-6,
.cityscape .cls-7 { fill: var(--ink); }
.contact + .cityscape { background: var(--cream-warm); }

/* ---------- Shared site footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--ink); color: var(--cream);
  padding: 80px 0 20px;
}
.site-footer .footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid color-mix(in oklab, var(--cream) 15%, transparent);
}
@media (max-width: 900px) { .site-footer .footer-grid { grid-template-columns: repeat(2,1fr); } }
.site-footer h5 { font-family: var(--mono); font-size: 16px; letter-spacing: 0.14em; opacity: 0.6; margin-bottom: 14px; font-weight: 500; }
.site-footer a, .site-footer span { display: block; font-size: 18px; opacity: 0.8; margin-bottom: 6px; }
.site-footer a:hover { color: var(--accent); opacity: 1; }

/* ---------- Page header (for sub-pages) ---------- */
.page-head {
  padding: 180px 0 80px;
  position: relative;
}
.page-head .eyebrow { font-family: var(--mono); font-size: 16px; letter-spacing: 0.16em; opacity: 0.6; margin-bottom: 20px; }
.page-head h1 {
  font-family: var(--display);
  font-size: clamp(64px, 11vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
.page-head h1 em { color: var(--accent); font-style: normal; }
.page-head .lede {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 500;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.25; max-width: 32ch; opacity: 0.9;
}

/* ---------- Page hero — coral with illustrated SVG ---------- */
.page-hero {
  background: var(--accent);
  color: var(--cream);
  padding: 160px 0 0;
  position: relative;
  overflow: hidden;
}
.page-hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}
.page-hero .page-hero-text {
  padding-bottom: 80px;
}
.page-hero .page-hero-text .eyebrow {
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.16em;
  opacity: 0.7; margin-bottom: 20px; color: var(--cream);
}
.page-hero .page-hero-text h1 {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-wrap: balance;
  overflow-wrap: break-word;
  color: var(--cream);
}
.page-hero .page-hero-text h1 em {
  color: var(--ink);
  font-style: normal;
}
.page-hero .page-hero-text .lede {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 500;
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.3; max-width: 28ch; opacity: 0.85;
  color: var(--cream);
}
.page-hero .page-hero-svg {
  position: relative;
  align-self: end;
  overflow: visible;
}
.page-hero .page-hero-svg img {
  display: block;
  width: 115%;
  max-width: none;
  height: auto;
  will-change: transform;
  transform: translateY(0);
  transition: transform 0.05s linear;
}

/* Home teaser blocks */
.home-teaser {
  padding: 100px 0;
  border-top: 1px solid color-mix(in oklab, var(--fg) 15%, transparent);
}
.home-teaser.coral { background: var(--accent); color: var(--cream); border-color: transparent; }
.home-teaser.ink { background: var(--ink); color: var(--cream); border-color: transparent; }
.home-teaser .teaser-head {
  display: grid; grid-template-columns: 1fr auto;
  margin-bottom: 40px;
}
.home-teaser .teaser-head .num {
  grid-column: 1 / -1;
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.14em; opacity: 0.7;
  margin-bottom: 8px;
}
.home-teaser .teaser-head .t { font-family: var(--display); font-size: clamp(40px, 6vw, 88px); line-height: 0.9; color: var(--accent); align-self: baseline; }
.home-teaser.coral .teaser-head .t,
.home-teaser.ink .teaser-head .t { color: inherit; }
.home-teaser .teaser-head .cta {
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.12em;
  border: 1px solid currentColor; padding: 10px 18px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, color .2s;
  justify-self: end; align-self: end;
}
.home-teaser .teaser-head .cta:hover { background: currentColor; }
.home-teaser .teaser-head .cta:hover span { color: var(--bg); }
.home-teaser .teaser-head .cta:hover svg { color: var(--bg); }
/* On dark/coloured teasers currentColor is cream — keep text readable on hover */
.home-teaser.coral .teaser-head .cta:hover span,
.home-teaser.coral .teaser-head .cta:hover svg,
.home-teaser.ink .teaser-head .cta:hover span,
.home-teaser.ink .teaser-head .cta:hover svg { color: var(--ink); }

/* Mobile-only CTA below section content — hidden on desktop */
.teaser-cta-mobile { display: none; }

/* Film row — year+duration sub-line inside title cell, mobile only */
.fm-mobile { display: none; }
.home-teaser .teaser-cta-mobile a {
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.12em;
  border: 1px solid currentColor; padding: 10px 18px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, color .2s;
}
.home-teaser .teaser-cta-mobile a:hover { background: currentColor; }
.home-teaser .teaser-cta-mobile a:hover span { color: var(--bg); }
.home-teaser .teaser-cta-mobile a:hover svg { color: var(--bg); }
.home-teaser.coral .teaser-cta-mobile a:hover span,
.home-teaser.coral .teaser-cta-mobile a:hover svg,
.home-teaser.ink .teaser-cta-mobile a:hover span,
.home-teaser.ink .teaser-cta-mobile a:hover svg { color: var(--ink); }

/* film detail page */
.film-hero {
  padding: 120px 0 0;
  background: var(--accent);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.film-hero .fh-inner {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: end;
  padding: 60px 0 80px;
}
@media (max-width: 900px) { .film-hero .fh-inner { grid-template-columns: 1fr; } }
.film-hero .fh-poster {
  aspect-ratio: 2/3;
  border-radius: 2px;
  position: relative; overflow: hidden;
  background: var(--ink);
}
.film-hero .fh-poster .still-fill { position: absolute; inset: 0; background-size: cover; background-position: center; }
.film-hero .fh-poster .stripe { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 14px, transparent 14px 28px); }
.film-hero .fh-poster-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster--img { overflow: hidden; }
.poster--img .poster-real-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.prog-poster-thumb {
  position: fixed; z-index: 900; pointer-events: none;
  width: 140px; aspect-ratio: 2/3;
  border-radius: 2px; overflow: hidden;
  opacity: 0; transform: translate(-50%, -110%) scale(0.88);
  transition: opacity .2s, transform .2s;
  will-change: transform, opacity;
}
.prog-poster-thumb.on { opacity: 1; transform: translate(-50%, -110%) scale(1); }
.prog-poster-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-hero .fh-meta-top {
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.14em;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid color-mix(in oklab, var(--cream) 30%, transparent);
  opacity: 0.9;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.film-hero .fh-meta-top > * { flex: 0 1 auto; }
.film-hero .fh-meta-top > *:last-child { text-align: right; margin-left: auto; }
.film-hero h1 {
  font-family: var(--display);
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  text-wrap: balance;
}
.film-hero .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.film-hero .chip {
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid currentColor; padding: 6px 12px; border-radius: 999px;
}
.film-hero .specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid color-mix(in oklab, var(--cream) 30%, transparent); padding-top: 24px; }
@media (max-width: 700px) { .film-hero .specs { grid-template-columns: repeat(2,1fr); } }
.film-hero .specs .k { font-family: var(--mono); font-size: 16px; letter-spacing: 0.12em; opacity: 0.7; margin-bottom: 4px; }
.film-hero .specs .v { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 22px; line-height: 1.1; }

.film-body { padding: 100px 0; }
.film-body .layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 80px; }
@media (max-width: 900px) { .film-body .layout { grid-template-columns: 1fr; gap: 40px; } }
.film-body .synopsis h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 38px; line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.01em; }
.film-body .synopsis p { font-size: 16px; line-height: 1.7; margin-bottom: 18px; opacity: 0.9; }
.film-body .synopsis .pullquote {
  font-family: var(--mid); font-weight: 500; font-style: italic; font-size: 28px; line-height: 1.25;
  padding: 24px 0; border-top: 1px solid color-mix(in oklab, var(--fg) 20%, transparent); border-bottom: 1px solid color-mix(in oklab, var(--fg) 20%, transparent);
  margin: 32px 0; text-wrap: balance;
}
.film-body .pullquote .src { display: block; font-family: var(--mono); font-size: 16px; letter-spacing: 0.12em; opacity: 0.6; margin-top: 14px; text-transform: uppercase; }
.film-body aside h5 { font-family: var(--mono); font-size: 16px; letter-spacing: 0.14em; opacity: 0.65; margin-bottom: 12px; font-weight: 500; text-transform: uppercase; }
.film-body aside .credit-row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid color-mix(in oklab, var(--fg) 15%, transparent); font-size: 18px; }
.film-body aside .credit-row:last-child { border-bottom: 1px solid color-mix(in oklab, var(--fg) 15%, transparent); }
.film-body aside .credit-row .k { opacity: 0.6; font-family: var(--mono); font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; }
.film-body aside .show-list { display: flex; flex-direction: column; margin-top: 30px; }
.film-body aside .show-item {
  display: grid; grid-template-columns: 1fr auto; gap: 12px;
  padding: 14px 0; border-top: 1px solid color-mix(in oklab, var(--fg) 15%, transparent);
}
.film-body aside .show-item:last-child { border-bottom: 1px solid color-mix(in oklab, var(--fg) 15%, transparent); }
.film-body aside .show-item .d { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 20px; }
.film-body aside .show-item .v { font-size: 16px; opacity: 0.7; }
.film-body aside .show-item .btn {
  padding: 8px 14px; border-radius: 999px; background: var(--fg); color: var(--bg);
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.12em;
  align-self: center;
}

.film-stills { padding: 60px 0; background: var(--cream-warm); }
.film-stills h3 { font-family: var(--mono); font-size: 16px; letter-spacing: 0.14em; opacity: 0.6; margin-bottom: 20px; text-transform: uppercase; }
.film-stills .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .film-stills .grid { grid-template-columns: 1fr; } }
.film-stills .still {
  aspect-ratio: 16/10; background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.film-stills .still .cap {
  position: absolute; bottom: 10px; left: 12px; right: 12px;
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.12em; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.related { padding: 100px 0; background: var(--ink); color: var(--cream); }
.related h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 46px; margin-bottom: 40px; line-height: 1.05; letter-spacing: -0.01em; }

/* Venue detail */
.venue-hero { padding: 180px 0 60px; background: var(--accent); color: var(--cream); }
.venue-hero h1 { font-family: var(--display); font-size: clamp(56px, 9vw, 140px); line-height: 0.9; text-wrap: balance; }
.venue-hero .addr { font-family: var(--mono); font-size: 16px; letter-spacing: 0.12em; margin-top: 14px; opacity: 0.85; }

/* ---------- Hero variants ---------- */
.hero.variant-marquee .hero-title {
  font-size: clamp(96px, 22vw, 380px);
  text-align: center; padding: 0;
  mix-blend-mode: normal;
}
.hero.variant-marquee .hero-title .row.right { text-align: center; }
.hero.variant-marquee .marquee-band {
  overflow: hidden;
  margin: 40px -40px 0;
  border-top: 1px solid color-mix(in oklab, var(--fg) 15%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--fg) 15%, transparent);
  padding: 14px 0;
  font-family: var(--mid); font-weight: 500;
  font-size: 38px;
  white-space: nowrap;
}
.hero.variant-marquee .marquee-band .mq {
  display: inline-block;
  animation: marquee 30s linear infinite;
}
.hero.variant-marquee .marquee-band .sep { color: var(--accent); margin: 0 24px; }

.hero.variant-poster { min-height: 100vh; }
.hero.variant-poster .poster-stage {
  padding: 0 40px;
  margin-top: 40px;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.hero.variant-poster .poster-art {
  background: var(--accent);
  position: relative; overflow: hidden;
  border-radius: 2px;
  min-height: 60vh;
}
.hero.variant-poster .poster-art .pt {
  position: absolute; top: 30px; right: 30px; left: 30px;
  font-family: var(--display); font-size: clamp(40px, 5vw, 84px); color: var(--cream); line-height: 0.9;
  text-align: right;
}
.hero.variant-poster .poster-copy { display: flex; flex-direction: column; justify-content: space-between; }
.hero.variant-poster .poster-copy .sub {
  font-family: var(--display); font-size: clamp(36px, 4vw, 64px); line-height: 1;
}
.hero.variant-poster .poster-copy .body { font-size: 18px; opacity: 0.85; max-width: 42ch; }

/* train illustrated (default hero) */
.hero .train-illus {
  position: absolute; bottom: 140px; right: 0; width: min(60vw, 900px);
  pointer-events: none; opacity: 0.9;
}
.hero .train-illus svg { width: 100%; height: auto; display: block; }

/* Scroll-triggered reveal (reversible) */
.reveal-el {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(.22,.61,.36,1), transform 700ms cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal-el.reveal-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-el, .reveal-el.reveal-in { opacity: 1; transform: none; transition: none; }
}

/* scrollbar polish */
.filmstrip::-webkit-scrollbar { height: 6px; }
.filmstrip::-webkit-scrollbar-track { background: color-mix(in oklab, var(--fg) 8%, transparent); }
.filmstrip::-webkit-scrollbar-thumb { background: color-mix(in oklab, var(--fg) 30%, transparent); }

/* film modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10,8,6,0.75);
  z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 40px;
  animation: fadein .2s;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--cream); color: var(--ink);
  max-width: 900px; width: 100%; max-height: 90vh; overflow-y: auto;
  position: relative;
  display: grid; grid-template-columns: 280px 1fr; gap: 0;
}
@media (max-width: 700px) { .modal { grid-template-columns: 1fr; } }
.modal .mclose {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cream); border: 1px solid color-mix(in oklab, var(--ink) 20%, transparent);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.modal .mposter {
  aspect-ratio: 2/3; position: relative;
}
.modal .mposter .pt {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  font-family: var(--mid); font-weight: 500; color: var(--cream); font-size: 26px; line-height: 1;
}
.modal .mbody { padding: 30px; }
.modal .mbody .meta { font-family: var(--mono); font-size: 16px; letter-spacing: 0.12em; opacity: 0.6; margin-bottom: 14px; }
.modal .mbody h3 { font-family: var(--mid); font-weight: 500; font-size: 42px; line-height: 1; margin-bottom: 18px; }
.modal .mbody p { line-height: 1.65; margin-bottom: 14px; }
.modal .mbody .chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.modal .mbody .chip {
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid color-mix(in oklab, var(--ink) 20%, transparent);
  padding: 5px 10px; border-radius: 999px;
}
.modal .mbody .showtimes-mini {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid color-mix(in oklab, var(--ink) 15%, transparent);
}
.modal .mbody .showtimes-mini h5 { font-family: var(--mono); font-size: 16px; letter-spacing: 0.14em; opacity: 0.6; margin-bottom: 10px; font-weight: 500; }
.modal .mbody .showtimes-mini .row { display: flex; gap: 16px; padding: 6px 0; font-size: 16px; }
.modal .mbody .showtimes-mini .t { font-family: var(--mono); }

/* ---------- Hamburger / mobile nav ---------- */
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--fg) 20%, transparent);
  position: relative;
}
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  display: block; width: 18px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform .25s, opacity .25s;
  position: relative;
}
.nav-burger span::before,
.nav-burger span::after {
  content: ''; position: absolute; left: 0;
}
.nav-burger span::before { top: -5px; }
.nav-burger span::after  { top:  5px; }
.nav-burger span.open         { background: transparent; }
.nav-burger span.open::before { transform: rotate(45deg) translate(3.5px, 3.5px); }
.nav-burger span.open::after  { transform: rotate(-45deg) translate(3.5px, -3.5px); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 49;
  background: color-mix(in oklab, var(--ink) 40%, transparent);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.nav-mobile.nav-mobile-open {
  opacity: 1;
}
.nav-mobile-inner {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--bg);
  padding: 90px 32px 48px;
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-mobile.nav-mobile-open .nav-mobile-inner {
  transform: translateX(0);
}
.nav-mobile.nav-mobile-closing .nav-mobile-inner {
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 1, 1);
}
/* Nav links stagger in when drawer opens */
.nav-mobile.nav-mobile-open ul li a {
  animation: navLinkIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.1s + var(--ni, 0) * 0.05s);
}
@keyframes navLinkIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 0.75; transform: none; }
}
.nav-mobile-lang {
  display: flex; gap: 0; border: 1px solid currentColor;
  border-radius: 999px; padding: 2px;
  font-family: var(--mono); font-size: 16px;
  align-self: flex-start; margin-bottom: 32px;
}
.nav-mobile-lang button {
  padding: 6px 14px; border-radius: 999px; letter-spacing: 0.1em; opacity: 0.6;
}
.nav-mobile-lang button.on { background: var(--fg); color: var(--bg); opacity: 1; }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.nav-mobile ul a {
  display: block; padding: 14px 0;
  font-family: var(--display); font-size: 32px; line-height: 1;
  border-bottom: 1px solid color-mix(in oklab, var(--fg) 12%, transparent);
  opacity: 0.75;
}
.nav-mobile ul a:hover, .nav-mobile ul a.nav-on { opacity: 1; color: var(--accent); }

/* ---------- About teaser — poster variant ---------- */
.about-poster-statement {
  font-family: var(--display);
  font-size: clamp(64px, 10vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 56px;
}
.about-poster-statement em {
  font-style: normal;
  color: var(--cream);
  padding: 0.04em 0.18em;
  display: inline-block;
  transform: rotate(-1deg);
  position: relative;
  isolation: isolate;
}
/* Marker stroke — drawn left-to-right when the statement enters the viewport */
.about-poster-statement em::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  z-index: -1;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.7s cubic-bezier(.65,.05,.36,1) 0.45s;
}
.about-poster-statement.reveal-in em::before,
.reveal-in .about-poster-statement em::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .about-poster-statement em::before { transition: none; transform: scaleX(1); }
}
/* Word clip animates; don't also translate/fade the whole container */
.about-poster-statement.reveal-el { opacity: 1 !important; transform: none !important; }
.home-contact-big.reveal-el { opacity: 1 !important; transform: none !important; }

.about-poster-row {
  position: relative;
}
img.about-poster-illustration {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36%;
  height: auto;
  pointer-events: none;
  will-change: transform;
  transform-origin: center bottom;
  transition: transform 0.05s linear;
}
img.about-poster-illustration.reveal-el {
  transform: none;
  transition: opacity 1.2s ease 0.2s;
}
img.about-poster-illustration.reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity 1.2s ease 0.2s;
}

.about-poster-strip {
  display: flex;
  border-top: 1px solid rgba(246,236,220,0.25);
  padding-top: 28px;
  color: var(--cream);
}
.about-poster-item {
  flex: 1;
  padding-right: 32px;
  border-right: 1px solid rgba(246,236,220,0.15);
}
.about-poster-item:not(:first-child) { padding-left: 32px; }
.about-poster-item:last-child { border-right: none; padding-right: 0; }

@media (max-width: 900px) {
  img.about-poster-illustration { position: static; width: 60%; margin-top: 16px; }
  .about-poster-statement { font-size: clamp(52px, 14vw, 80px); margin-bottom: 40px; }
  .about-poster-strip { flex-direction: column; }
  .about-poster-item { border-right: none; padding: 0 0 20px; border-bottom: 1px solid rgba(246,236,220,0.15); }
  .about-poster-item:last-child { border-bottom: none; padding-bottom: 0; }
  .about-poster-item:not(:first-child) { padding-left: 0; padding-top: 20px; }
}

/* ---------- Responsive home teaser grids ---------- */
.home-manifesto-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px;
}
.home-program-days {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.home-venues-layout {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px;
}

/* mobile nav tweaks */
@media (max-width: 900px) {
  /* ── Base — same as desktop; targeted overrides handle what needs to be bigger ── */
  html, body { font-size: 18px; }
  .mono { font-size: 16px; } /* labels stay at minimum */

  /* ── Specific sizes on mobile ── */
  .program .slot .title { font-size: 20px; }
  .program .slot .venue,
  .program .slot .time  { font-size: 16px; }
  .about-poster-item p  { font-size: 18px !important; }
  .hero-footer .val     { font-size: 20px; }
  .hero-footer .tag     { font-size: 16px; }
  .film-card .caption .t { font-size: 18px; }
  .section-head .num    { font-size: 16px; }
  .page-head .eyebrow   { font-size: 16px; }
  .page-head .lede      { font-size: 20px; }

  /* film list — override the desktop clamp so titles fit in narrow 1fr column */
  .film-row .ft { font-size: 22px; }

  /* booking stepper labels — UI control exception, truncate gracefully */
  .booking .step { font-size: 13px; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .booking .film-pick .fm { font-size: 14px; letter-spacing: 0; }
  .booking .showtime .d { font-size: 14px; letter-spacing: 0; }

  .nav { padding: 12px 20px; }
  .nav ul { display: none; }
  .nav-burger { display: flex; }
  .wrap, .wrap-narrow { padding: 0 20px; }
  .hero-title { padding: 0 20px; }
  .hero-meta, .hero-footer { padding: 0 20px; }
  .hero { padding: 72px 0 32px; }
  .hero-corner-logo { display: none; }   /* logo lives in nav on mobile */
  .hero-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; text-align: left; padding: 0 20px; }
  .hero-footer > div:last-child { display: none; } /* hide long description on mobile */
  .about .cols, .about .manifesto { grid-template-columns: 1fr; }
  img.about-raksila-illustration { position: static; width: 55%; margin-top: 24px; }
  .sponsors .grid { grid-template-columns: repeat(2, 1fr); }
  .contact .cols { grid-template-columns: 1fr; }
  .contact .cols a { word-break: break-word; }
  .tickets .layout { grid-template-columns: 1fr; }
  /* Program — switch to flex column so items don't mis-place in 2-col grid */
  .program .slot { display: flex; flex-direction: column; gap: 4px; }
  .program .slot .title { font-size: 22px; line-height: 1.1; margin: 4px 0; }
  .program .slot .book { align-self: center; margin-top: 6px; }

  /* Films grid — prevent cards stretching to match row partner, prevent overflow */
  .films-grid { align-items: start; overflow: hidden; }
  .film-card { min-width: 0; width: 100%; }
  .film-card .poster { width: 100%; }

  /* Hide cursor-following hover thumbs on touch devices */
  .film-hover-thumb { display: none; }
  .prog-poster-thumb { display: none; }
  .vn-thumb { display: none; }

  /* Contact heading — shrink so email doesn't overflow, allow break within word */
  .contact .big { font-size: clamp(28px, 9vw, 160px); }
  .contact .big a { word-break: break-all; }

  .film-row { grid-template-columns: 30px 1fr 30px; gap: 12px; }
  .film-row .fm, .film-row .fd { display: none; }
  .film-row .hover-still { display: none; }
  .home-teaser { padding: 64px 0; }
  .home-manifesto-grid { grid-template-columns: 1fr; }
  .home-program-days { grid-template-columns: repeat(3, 1fr); gap: 12px; overflow-x: auto; }
  .home-venues-layout { grid-template-columns: 1fr; gap: 32px; }
  .home-venues-layout > div:last-child { display: none; }
  .page-head { padding: 120px 0 48px; }

  /* Page hero — stack on mobile */
  .page-hero { padding: 100px 0 0; }
  .page-hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .page-hero .page-hero-text { padding-bottom: 32px; }
  .page-hero .page-hero-text h1 { font-size: clamp(40px, 10vw, 72px); }
  .page-hero .page-hero-svg img { width: 100%; }

  /* Cityscape — less overlap on mobile, scale up */
  .cityscape { margin-bottom: -20px; padding-top: 40px; }
  .cityscape svg { width: 160%; margin-left: -50%; }

  /* Hero — content at top on mobile */
  .hero { justify-content: flex-start; gap: 20px; padding-top: 80px; padding-bottom: 40px; }
  .hero-video { top: 56px; }
  .hero-meta { color: var(--cream); }
  .hero-footer { color: var(--cream); }

  /* Badge — smaller pill, cream on coral background */
  .hero-meta { margin-top: 20px; }
  .hero-meta .badge { font-size: 14px; padding: 5px 10px; gap: 7px; color: var(--cream); border-color: rgba(246,236,220,0.45); }
  .hero-meta .badge .dot { width: 5px; height: 5px; }

  /* Selection teaser — № number must not wrap */
  .film-row { grid-template-columns: 42px 1fr 30px; gap: 8px; }
  .film-row .idx { white-space: nowrap; }

  /* Team grid — keep 3 equal columns so all portrait sizes match */
  .guests-grid.three { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  /* Tickets — fix overflow from film-pick negative margin and long titles */
  .booking { padding: 20px 16px; overflow: hidden; }
  .booking .film-pick { margin: 0; }
  .booking .film-pick button { gap: 8px; }
  .booking .film-pick button > div:first-child { flex: 1; min-width: 0; overflow: hidden; }
  .booking .film-pick .ft { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .booking .film-pick .fm { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .booking .showtimes { grid-template-columns: 1fr; }
  .tickets { overflow: hidden; }

  /* Program — remove double border line before first slot */
  .program .slot:first-child { border-top: none; }
  /* Program — align section-head items vertically centred */
  .program .section-head { align-items: center; }

  /* Mobile CTA — hide from teaser-head, show below section content */
  .home-teaser .teaser-head .cta { display: none; }
  .teaser-cta-mobile { display: flex; justify-content: center; margin-top: 32px; }

  /* About — wider body text and raksila SVG centered */
  .about-body-row .cols { max-width: 100%; }
  img.about-raksila-illustration { width: 85%; margin: 24px auto 0; display: block; }

  /* About teaser — siilo SVG bigger and centered */
  img.about-poster-illustration { width: 85% !important; margin: 20px auto 0; }

  /* Film row — show year+duration below title on mobile */
  .fm-mobile { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; opacity: 0.6; margin-top: 4px; }

  /* Venues list — address clearly smaller than venue name */
  .venues .vitem .vm { font-size: 13px; }

  /* Home contact — keep "Nähdään Oulussa —" on two lines, not three */
  .home-contact-big { font-size: clamp(44px, 11vw, 68px) !important; }

  /* Guest list rows — stack role below name so "Tutkija & ohjaaja" aligns with others */
  .gl-row { grid-template-columns: 40px 1fr; }
  .gl-row .gl-role { grid-column: 2; margin-top: -6px; }
}
