/* Layout: a darkened screening room. Full-bleed film still up top, then a
   single centred column of text and a three-up grid of film cards.
   Deliberately single-theme (dark), like the original site. */
:root {
  --bg: #100e0c;          /* warm near-black, like a cinema before the lights go up */
  --surface: #1a1714;     /* card ground */
  --line: #2e2924;        /* hairlines */
  --fg: #ece5d8;          /* paper white */
  --muted: #a59c8f;       /* secondary text */
  --accent: #c4a574;      /* worn brass, for roles and links */
  --paper: #e9e2d6;       /* light panel behind black laurels */

  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --body: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;

  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.375rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;
  --step-4: clamp(2.75rem, 7vw, 5.5rem);

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --max: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); letter-spacing: 0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-block: clamp(48px, 8vw, 96px);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  --edge: max(20px, calc((100vw - var(--max)) / 2 + 20px));
  padding: 18px max(var(--edge), env(safe-area-inset-right, 0px)) 18px max(var(--edge), env(safe-area-inset-left, 0px));
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
  background: linear-gradient(to bottom, rgba(16,14,12,.92), rgba(16,14,12,.78));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(46,41,36,.7);
}
.home .site-header .wordmark { opacity: 0; transition: opacity .3s; }
.home .site-header.scrolled .wordmark, .home .site-header:has(.open) .wordmark { opacity: 1; }
.home .site-header { position: fixed; left: 0; right: 0; background: linear-gradient(to bottom, rgba(16,14,12,.7), rgba(16,14,12,0)); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .site-header.scrolled { background: rgba(16,14,12,.92); border-bottom-color: var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.wordmark {
  font-family: var(--display); font-size: 1.5rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.22em; text-decoration: none; white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a {
  font-family: var(--display); font-size: 1.05rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.16em; text-decoration: none; color: var(--muted); transition: color .2s;
}
.site-nav > a:hover, .site-nav > a[aria-current] { color: var(--fg); }
.site-nav > a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 1px; }
.social { display: flex; gap: 14px; margin-left: 8px; }
.social a { display: inline-flex; width: 18px; height: 18px; color: var(--muted); }
.social a:hover { color: var(--fg); }
.social svg { width: 100%; height: 100%; fill: currentColor; }
.social svg[fill="none"] { fill: none; }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px; cursor: pointer; }
.menu-toggle span:not(.sr) { display: block; height: 1px; background: var(--fg); margin: 6px 0; transition: transform .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 26px;
    background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  .site-nav.open { opacity: 1; pointer-events: auto; }
  .site-nav > a { font-size: 1.6rem; color: var(--fg); }
  .social { margin: 12px 0 0; }
  .social a { width: 22px; height: 22px; }
  .wordmark { font-size: 1.2rem; letter-spacing: 0.18em; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 900px); display: grid; align-items: end; overflow: hidden; background: #000; }
.hero-media { position: absolute; inset: 0; }
.hero-poster { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(.25) contrast(1.05); }
.hero-video { position: absolute; top: 50%; left: 50%; width: max(100%, 177.78vh); height: max(100%, 56.25vw); transform: translate(-50%, -50%); border: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.hero-video.playing { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,14,12,1) 0%, rgba(16,14,12,.55) 38%, rgba(16,14,12,.2) 70%, rgba(16,14,12,.45) 100%); }
.hero-text {
  position: relative; max-width: var(--max); width: 100%; margin: 0 auto;
  padding: 120px max(20px, env(safe-area-inset-right, 0px)) clamp(48px, 7vw, 88px) max(20px, env(safe-area-inset-left, 0px));
  display: grid; gap: 18px; justify-items: start;
}
.hero h1 { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 400; }
.eyebrow { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; font-size: var(--step--1); color: var(--accent); }
.hero-line { font-size: var(--step-1); max-width: 34em; color: var(--fg); }
.btn {
  margin-top: 10px; cursor: pointer; background: transparent; border: 1px solid var(--fg);
  padding: 12px 22px; font-family: var(--display); font-weight: 600; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.18em; transition: background .2s, color .2s;
}
.btn::before { content: "▶"; font-size: .7em; margin-right: 12px; position: relative; top: -1px; }
.btn:hover { background: var(--fg); color: var(--bg); }

/* ---------- common ---------- */
.intro { display: grid; gap: 20px; justify-items: start; max-width: 860px; padding-bottom: 0; }
.lede { font-size: var(--step-1); line-height: 1.5; }
.textlink { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.95rem; color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.textlink:hover { color: var(--fg); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.page-head { display: grid; gap: 12px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.page-head p { color: var(--muted); }

/* ---------- film cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { display: grid; gap: 16px; align-content: start; scroll-margin-top: 100px; }
.card-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: var(--surface); cursor: pointer; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .4s; filter: saturate(.85); }
.card-media:hover img { transform: scale(1.04); filter: saturate(1); }
.play { position: absolute; left: 16px; bottom: 16px; width: 44px; height: 44px; border: 1px solid rgba(236,229,216,.85); border-radius: 50%; background: rgba(16,14,12,.45); }
.play::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 13px solid var(--fg); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.card-media:hover .play { background: var(--fg); }
.card-media:hover .play::after { border-left-color: var(--bg); }
.card-text { display: grid; gap: 6px; min-width: 0; }
.role { font-family: var(--display); font-weight: 600; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); }
.card h3 { font-size: 1.7rem; }
.card-sub { display: block; font-size: 1.1rem; font-style: italic; color: var(--muted); margin-top: 4px; }
.meta { font-size: 0.95rem; color: var(--muted); }
.desc { font-size: 1.02rem; margin-top: 6px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-photo { margin: 0; position: sticky; top: 110px; }
.about-photo img { width: 100%; filter: grayscale(.2); }
.about-photo figcaption, .aw-fig figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 10px; font-style: italic; }
.prose { display: grid; gap: 20px; max-width: 38em; min-width: 0; }
.prose h1 { margin-bottom: 8px; }
.contact { margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact a, .site-footer a { color: var(--accent); text-decoration: none; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-photo { position: static; } }

/* ---------- press ---------- */
.press-wall { columns: 3 280px; column-gap: 20px; }
.press-item { display: block; width: 100%; padding: 0; margin: 0 0 20px; border: 0; background: var(--surface); cursor: zoom-in; break-inside: avoid; }
.press-item img { width: 100%; height: auto; transition: opacity .3s; }
.press-item:hover img { opacity: .85; }

/* ---------- awards ---------- */
/* Awards list on the left with the nomination screenshot small on the right;
   festival selections below after a clear break; laurels last in an even grid. */
.awards { max-width: 1040px; }
.awards .page-head { margin-bottom: 8px; }
.awards h2 { font-size: var(--step-3); margin: 48px 0 20px; }
.awards h2.h-fests { margin-top: clamp(120px, 14vw, 180px); }

.aw-top { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.aw-fig { margin: 0; padding-top: 24px; }
.aw-fig img { width: 100%; height: auto; }
.aw-fig figcaption { font-size: var(--step--1); color: var(--muted); font-style: italic; margin-top: 10px; line-height: 1.5; }
@media (max-width: 760px) {
  .aw-top { grid-template-columns: 1fr; }
  .aw-fig { max-width: 220px; padding-top: 8px; }
}

.honours { list-style: none; margin: 0; padding: 0; }
.honours li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.yr { font-family: var(--display); font-size: 1.25rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.35; }
.aw-name { font-family: var(--display); font-size: 1.3rem; font-weight: 500; line-height: 1.3; }
.aw-detail { color: var(--muted); }
.aw-detail em { color: var(--fg); }

.films { display: grid; gap: 0; }
.film { padding: 24px 0 28px; border-top: 1px solid var(--line); }
.film h3 { font-size: 1.2rem; font-style: italic; font-weight: 500; margin-bottom: 12px; }
.film ul { list-style: none; margin: 0; padding: 0; columns: 2 16rem; column-gap: 32px; color: var(--muted); }
.film li { break-inside: avoid; padding: 2px 0; }

.laurels { list-style: none; margin: clamp(80px, 10vw, 120px) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.laurels li { position: relative; flex: 0 0 calc((100% - 60px) / 6); aspect-ratio: 3 / 2; max-width: 100%; background: #ffffff; }
.laurels li.dark { background: #1a1714; }
.laurels img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; }
@media (max-width: 640px) { .laurels { gap: 8px; } .laurels li { flex-basis: calc((100% - 16px) / 3); } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); text-align: center; display: grid; gap: 6px; padding: 40px max(20px, env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); font-size: 1.05rem; }
.small { font-size: var(--step--1); color: var(--muted); }
.notfound { min-height: 50vh; }
.notfound a { color: var(--accent); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8,7,6,.94); display: grid; place-items: center; padding: max(56px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox[hidden] { display: none; }
.lightbox-inner { width: min(1200px, 100%); max-height: 100%; display: grid; place-items: center; }
.lightbox-inner iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.lightbox-inner img { max-height: calc(100vh - 110px); width: auto; max-width: 100%; }
.lb-close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); background: none; border: 0; font-size: 2.2rem; line-height: 1; cursor: pointer; color: var(--fg); padding: 6px 10px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 2.6rem; cursor: pointer; color: var(--fg); padding: 12px; opacity: .75; }
.lb-nav:hover { opacity: 1; }
.lb-prev { left: calc(4px + env(safe-area-inset-left, 0px)); }
.lb-next { right: calc(4px + env(safe-area-inset-right, 0px)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
