/* Shared styles for every page. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

:root {
  --bg: #ffffff;
  --panel: #f5f5f4;
  --text: #0e0e0e;
  --muted: #6b6b6b;
  --accent: #a8772a;          /* warm gold, used sparingly */
  --line: #e7e7e5;
  --bar-bg: #000000;          /* top bar */
  --bar-text: #ffffff;
  --bar-muted: #9d9d9d;
  --bar-accent: #d4a24c;      /* active tab */
  --topbar-height: 56px;
  --page-width: 1180px;
  --text-width: 640px;        /* comfortable reading width */
  --section-space: 112px;     /* space between big sections */
  --first-section-space: 48px; /* space between the section links and the first section */
  --radius: 4px;
  --banner-shade: 0.65;       /* how dark the bottom of a banner photo gets (0–1) */
  --reveal-distance: 18px;    /* how far content rises as it fades in */
  --reveal-time: 0.7s;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
img.missing { display: none; }   /* image file not added yet */

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.eyebrow {
  margin: 0 0 14px; color: var(--accent);
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
}
.lead { font-size: 20px; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  height: var(--topbar-height);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 28px;
  background: var(--bar-bg);
  color: var(--bar-text);
}
.wordmark {
  text-decoration: none; white-space: nowrap; color: var(--bar-text);
  font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; font-size: 13px;
  display: inline-flex; align-items: center; gap: 10px;
}
/* Site icon next to the name: round, with a white rim so the black circle shows on the black bar. */
.wordmark .logo { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; display: block; }
.tabs { display: flex; align-items: center; gap: 28px; }
.tab {
  text-decoration: none; white-space: nowrap; padding: 6px 0; cursor: pointer;
  background: none; border: 0; border-bottom: 1px solid transparent; font-family: inherit;
  color: var(--bar-muted); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 0.2s;
}
.tab:hover { color: var(--bar-text); }
.tab.active { color: var(--bar-text); border-bottom-color: var(--bar-accent); }

/* Department dropdowns */
.menu { position: relative; }
.menu > .tab::after { content: "▾"; margin-left: 1px; font-size: 9px; opacity: 0.7; }
.drop {
  display: none; position: absolute; top: 100%; right: -16px; min-width: 190px; padding: 8px 0;
  background: var(--bar-bg); border: 1px solid #222; border-top: 0; border-radius: 0 0 var(--radius) var(--radius);
}
/* Mouse: hover opens. Touch: tap opens (site.js adds .open). Keyboard: Tab onto it opens. */
@media (hover: hover) { .menu:hover .drop { display: block; } }
.menu.open .drop, .menu:has(:focus-visible) .drop { display: block; }
.drop a {
  display: block; padding: 9px 16px; text-decoration: none; white-space: nowrap;
  color: var(--bar-muted); font-size: 14px; letter-spacing: 0.02em;
}
.drop a:hover { color: var(--bar-text); background: #141414; }
.drop a.current { color: var(--bar-accent); }

/* ---------- Banner (full-width photo at the top of a page) ---------- */
/* Usage: <header class="banner" style="--img: url('images/...')"> */
.banner {
  position: relative;
  min-height: 72vh;
  display: flex; align-items: flex-end;
  padding: 0 28px 72px;
  color: #fff;
  background:
    linear-gradient(to top, rgba(0,0,0,var(--banner-shade)), rgba(0,0,0,0.1) 60%),
    var(--img, none) var(--pos, center) / cover no-repeat,   /* --pos shifts the crop, e.g. center 25% */
    #111;
}
.banner-inner { width: 100%; max-width: var(--page-width); margin: 0 auto; position: relative; z-index: 2; }

/* Banner slideshow (site.js adds the .slide layers): crossfade + slow zoom, shading on top, text above that */
.banner.slideshow { overflow: hidden; background: #111; }
.banner.slideshow::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,var(--banner-shade)), rgba(0,0,0,0.1) 60%);
}
.slide {
  position: absolute; inset: 0; z-index: 0;
  background: center / cover no-repeat;
  opacity: 0; transform: scale(1);
  /* fading out: fade, then reset the zoom once it's invisible */
  transition: opacity var(--fade) ease, transform 0s linear var(--fade);
}
.slide.on {
  opacity: 1; transform: scale(var(--zoom));
  transition: opacity var(--fade) ease, transform var(--zoom-time) linear;
}
@media (prefers-reduced-motion: reduce) { .slide, .slide.on { transition: none; transform: none; } }
.banner .eyebrow { color: var(--bar-accent); }
.badge {   /* status pill in a banner, e.g. "In development" */
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 6px 14px; border: 1px solid var(--bar-accent); border-radius: 999px;
  color: var(--bar-accent); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.notice { text-align: center; padding: var(--first-section-space) 28px 0; }   /* first thing on the page, under the section links */
.notice + .section { padding-top: var(--first-section-space); }
.notice .badge { margin: 0; color: var(--accent); border-color: var(--accent); }
.notice .badge::before { background: var(--accent); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bar-accent); }
.banner h1 { margin: 0; font-size: clamp(44px, 8vw, 104px); font-weight: 800; letter-spacing: -0.035em; }
.banner p.hook { margin: 18px 0 0; max-width: 560px; font-size: clamp(17px, 2vw, 21px); font-weight: 300; opacity: 0.9; }

/* ---------- Sections ---------- */
.section { max-width: var(--page-width); margin: 0 auto; padding: var(--section-space) 28px 0; }
.section h2 { margin: 0 0 20px; font-size: clamp(30px, 4vw, 48px); }
.section p { max-width: var(--text-width); }
.section.narrow { max-width: calc(var(--text-width) + 56px); }

/* Text beside an image; add .reverse to put the image on the right */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
/* Section pictures keep their own shape; a 4:3 gray box stands in until the file exists */
.split .media { background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.split .media img { width: 100%; height: auto; }
.split .media:has(img.missing) { aspect-ratio: 4 / 3; }
.split h2 { font-size: clamp(28px, 3.4vw, 42px); }
.split h2.one-line { white-space: nowrap; font-size: clamp(21px, 2.6vw, 34px); }   /* shrinks instead of wrapping */

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 13px 26px; border: 1px solid var(--text); border-radius: var(--radius);
  color: var(--text); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.button:hover { background: var(--text); color: var(--bg); }
/* Small logo at the start of a button (e.g. IMDb); negative margin keeps the button the same height. */
.button .mark { height: 24px; width: auto; margin: -6px 0; border-radius: 3px; }
.button:has(.mark) { padding-left: 14px; }
.button.solid { background: var(--text); color: var(--bg); }
.button.solid:hover { background: var(--accent); border-color: var(--accent); }
.text-link {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid var(--accent); padding-bottom: 3px;
}
.text-link:hover { color: var(--accent); }

/* ---------- Fade in on scroll (site.js adds .in) ---------- */
.js .reveal { opacity: 0; transform: translateY(var(--reveal-distance)); transition: opacity var(--reveal-time) ease, transform var(--reveal-time) ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Content pages (older layout, restyled in later steps) ---------- */
.page { max-width: var(--page-width); margin: 0 auto; padding: 48px 24px 80px; }
.page h1 {
  margin: 0 0 32px; text-align: center; font-size: clamp(32px, 5vw, 52px);
}
.page h2 {
  margin: 64px 0 16px; font-size: 30px;
  scroll-margin-top: calc(var(--topbar-height) + 16px);
}
.page p { max-width: 760px; }
.page img { height: auto; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.two-up { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); margin: 32px 0; }
@media (max-width: 640px) { .two-up { grid-template-columns: 1fr; } }
.video { margin: 0; }
.video .frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { margin-top: 8px; text-align: center; color: var(--muted); font-size: 15px; }

.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px 0; }

/* ---------- Shared page pieces ---------- */
.section { scroll-margin-top: calc(var(--topbar-height) + 48px); }
.section .two-up { margin-top: 48px; }
.section .video figcaption { text-align: left; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.wide-img { width: 100%; height: auto; margin-bottom: 48px; }
.split .media.portrait { max-width: 420px; justify-self: center; width: 100%; }
.split .media.portrait:has(img.missing) { aspect-ratio: 3 / 4; }
/* Row of in-page links under a banner; sticks under the top bar */
.subnav {
  position: sticky; top: var(--topbar-height); z-index: 9;
  display: flex; justify-content: safe center; gap: 28px; overflow-x: auto;
  padding: 14px 28px; background: rgba(255,255,255,0.94); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.subnav a {
  text-decoration: none; white-space: nowrap; color: var(--muted);
  font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
}
.subnav a:hover { color: var(--text); }
.subnav + .section { padding-top: var(--first-section-space); }

/* Video switcher: one big player with buttons above it */
.switch { display: flex; justify-content: center; gap: 0; margin-bottom: 20px; }
.switch button {
  font: inherit; cursor: pointer; padding: 10px 22px; background: none;
  border: 1px solid var(--text); color: var(--text);
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.switch button + button { border-left: none; }
.switch button:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.switch button:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.switch button.on { background: var(--text); color: var(--bg); }
.switcher .video figcaption { display: none; }
.switch-note { margin: 16px auto 0; text-align: center; color: var(--muted); font-style: italic; }

/* Festival logos */
.logos { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); max-width: 720px; margin: 40px auto 0; }
.logos img { width: 100%; aspect-ratio: 1; object-fit: contain; }

/* Home page: a row of product links under a department */
.links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 24px; }

/* Privacy & Terms pages: plain readable document */
.legal { max-width: calc(var(--text-width) + 56px); margin: 0 auto; padding: 64px 28px 0; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 8px; }
.legal h2 { font-size: 20px; margin: 40px 0 8px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal .eyebrow a { color: inherit; text-decoration: none; }
.legal-list > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.legal-list h2 { margin: 0; }
.legal-list p { margin: 4px 0 0; }

/* Acting page */
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: var(--first-section-space) 28px 0; }
.anchor { scroll-margin-top: calc(var(--topbar-height) + 48px); }
.split.wide-media { --clip-share: 1.5fr; grid-template-columns: var(--clip-share) 1fr; gap: 48px; }   /* clip column vs text column */
.split.wide-media.reverse { grid-template-columns: 1fr var(--clip-share); }   /* clip on the right gets the same width */
.split.wide-media h2 { font-size: 17px; font-weight: 400; letter-spacing: 0; line-height: 1.65; margin-bottom: 0; }   /* body-text size */
/* Text and headshots line up toward the clip: clip on the right → align right */
.split.wide-media.reverse > :last-child { text-align: right; }
.split.wide-media.reverse .strip { direction: rtl; }
@media (max-width: 760px) {   /* stacked on phones: everything left-aligned */
  .split.wide-media.reverse > :last-child { text-align: left; }
  .split.wide-media.reverse .strip { direction: ltr; }
}
.actions + .anchor > .section:first-child, .actions + .section { padding-top: 64px; }
.clip .video figcaption { display: none; }
@media (max-width: 760px) { .split.wide-media, .split.wide-media.reverse { grid-template-columns: 1fr; gap: 24px; } }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }   /* sits right under the title */
.strip img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; margin: 40px 0; }
.wall img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.lightbox img { cursor: zoom-in; transition: opacity 0.2s; }
.lightbox img:hover { opacity: 0.85; }

/* Full-screen photo viewer */
.lb { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.94); }
.lb.open { display: flex; }
.lb img { max-width: 88vw; max-height: 88vh; object-fit: contain; }
.lb button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font: 300 48px/1 "Inter", sans-serif; padding: 16px; opacity: 0.7; }
.lb button:hover { opacity: 1; }
.lb-close { top: 8px; right: 12px; font-size: 40px !important; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb.single .lb-prev, .lb.single .lb-next { display: none; }

/* ---------- Footer ---------- */
.footer {
  margin-top: var(--section-space); padding: 56px 28px;
  background: var(--bar-bg); color: var(--bar-muted); text-align: center; font-size: 13px;
}
.footer-cols {
  display: grid; grid-template-columns: repeat(4, minmax(0, 160px)); justify-content: center; gap: 32px 48px;
  margin: 0 auto 40px; text-align: left;
}
.footer-cols h4 {
  margin: 0 0 12px; color: var(--bar-text);
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
}
.footer-cols a { display: block; padding: 4px 0; text-decoration: none; font-size: 14px; }
.footer a { text-decoration: none; }
@media (max-width: 640px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 160px)); } }
.footer a:hover { color: var(--bar-text); }
.footer p { margin: 0; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  :root { --section-space: 72px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > :first-child { order: 0; }
}
@media (max-width: 640px) {
  .topbar { height: auto; flex-direction: column; gap: 4px; padding: 12px 16px 6px; }
  .tabs { max-width: 100%; gap: 20px; flex-wrap: wrap; justify-content: center; }  .banner { padding: 0 20px 48px; min-height: 64vh; }
  .section { padding-left: 20px; padding-right: 20px; }
}
