/* Anamnesis Film — site styles
   Light paper for the reading sections; the photo screens, the partner band, the navy boxes,
   the contact section, header, footer and still viewer stay dark (see "dark areas"). Colors derive from the logo ink (#2B3D61).
   Headlines in EB Garamond to sit with the serif wordmark; labels and UI in Hanken Grotesk. */

:root {
  --night: #0B0F17;
  --night-2: #121826;
  --navy: #2B3D61;
  --navy-deep: #1A2640;
  --paper: #E7E9EC;
  --mist: #9BA6B8;
  --line: rgba(231, 233, 236, .14);
  --glow: #C9D5E8;
  --tbd: #E3B873; /* draft only: marks placeholder text */

  /* placeholder "stills": light falling into dark rooms */
  --f1: radial-gradient(120% 100% at 72% 28%, #5A6E92 0%, #24324E 42%, #0B0F17 100%);
  --f2: radial-gradient(110% 90% at 28% 70%, #7A6652 0%, #2C2620 48%, #0D0B0A 100%);
  --f3: radial-gradient(130% 100% at 50% 18%, #4E6B6A 0%, #1C2B2E 50%, #0A0F10 100%);
  --f4: linear-gradient(160deg, #3A4252 0%, #151A24 60%, #0B0F17 100%);
  --f5: radial-gradient(90% 80% at 80% 80%, #8A7A66 0%, #2E2A26 50%, #0E0D0C 100%);
  --f6: radial-gradient(120% 90% at 20% 20%, #6D7A8C 0%, #262E3A 50%, #0C1016 100%);

  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --max: 1240px;

  /* theme tokens: light by default, switched to dark in the dark areas below */
  --bg: #F3F0EA;
  --fg: #1F2636;
  --muted: #4F586A;
  --rule: rgba(31, 38, 54, .16);
  --rule-strong: rgba(31, 38, 54, .34);
  --accent: var(--navy);
  color-scheme: light;
}

/* ---------- dark areas ---------- */
.site-header, .hero, .p-hero, .now-films, .meet, .contact, .site-footer, .viewer, .consent {
  --bg: var(--night);
  --fg: var(--paper);
  --muted: var(--mist);
  --rule: var(--line);
  --rule-strong: rgba(231, 233, 236, .32);
  --accent: var(--glow);
  color-scheme: dark;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container {
  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));
}
@media (min-width: 900px) {
  .container {
    padding-left: max(48px, env(safe-area-inset-left, 0px));
    padding-right: max(48px, env(safe-area-inset-right, 0px));
  }
}

.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color .4s ease, border-color .4s ease;
}
.site-header.is-solid {
  background: rgba(11, 15, 23, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.brand { position: relative; z-index: 2; display: block; }
.brand img { width: 150px; height: auto; filter: brightness(0) invert(.94); }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .82;
  transition: opacity .2s;
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.menu-btn {
  display: none;
  position: relative;
  z-index: 2;
  background: none;
  border: 1px solid rgba(231, 233, 236, .38);
  border-radius: 999px;
  color: var(--paper);
  font: inherit;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 9px 16px;
  cursor: pointer;
}
@media (max-width: 760px) {
  .header-inner { height: 68px; }
  .brand img { width: 124px; }
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: var(--night);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  /* the scrolled header's blur would shrink the full-screen menu to the header's height */
  .site-header:has(.nav.open) { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav a { font-size: 15px; }
}

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn.solid { background: var(--fg); color: var(--bg); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- placeholder stills ---------- */
.frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--f, var(--f1));
  border-radius: 2px;
  text-decoration: none;
}
.frame::before, .grain::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .16;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.frame img, .frame video, .frame iframe, .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.frame-label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(231, 233, 236, .62);
}
.frame-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid rgba(231, 233, 236, .5);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(11, 15, 23, .35);
}

/* ---------- home: hero ---------- */
.hero {
  position: relative;
  min-height: min(72svh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--night);
}
.hero canvas, .hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* First-screen slideshow: photos stacked, the current one (.is-on) fades in over the last. */
.hero-slides { position: absolute; inset: 0; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
  opacity: 0; transition: opacity 1.8s ease;
}
.hero-slides img.is-on { opacity: 1; }
.slides-toggle {
  position: absolute; z-index: 2;
  right: max(14px, env(safe-area-inset-right, 0px)); bottom: 10px;
  padding: 8px 6px; border: 0; background: none; cursor: pointer;
  font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(231, 233, 236, .7);
}
.slides-toggle:hover, .slides-toggle:focus-visible { color: var(--paper); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 23, .74) 0%, rgba(11, 15, 23, .12) 24%, rgba(11, 15, 23, .3) 56%, rgba(11, 15, 23, .82) 100%);
  pointer-events: none;
}
.hero-copy { text-shadow: 0 1px 14px rgba(11, 15, 23, .6); }
.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 120px;
  padding-bottom: clamp(36px, 5vw, 64px);
}
.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -.012em;
  max-width: 16ch;
  margin: 0 0 16px;
}
.hero-copy p { font-size: 15px; color: var(--muted); }
.hero-note {
  position: absolute;
  z-index: 1;
  left: max(20px, env(safe-area-inset-left, 0px));
  top: calc(100px + env(safe-area-inset-top, 0px));
  font-size: 12px;
  color: var(--muted);
}

/* ---------- home: intro ---------- */
.intro { padding-block: clamp(96px, 13vw, 176px); }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: end;
}
.statement {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 3.1rem);
  line-height: 1.2;
  text-wrap: pretty;
}
.definition { border-top: 1px solid var(--rule); padding-top: 22px; display: grid; gap: 10px; }
.definition .word { font-family: var(--serif); font-size: 1.7rem; line-height: 1.2; }
.definition .greek { font-style: italic; color: var(--muted); margin-left: 8px; }
.definition p:last-child { color: var(--muted); font-size: 15px; max-width: 34ch; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

/* ---------- partner asks (home cards and film pages) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--rule-strong); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.chips li.tbd { border-style: dashed; color: var(--muted); }

/* ---------- home: the three films looking for partners ---------- */
.now-films { background: var(--navy-deep); padding-block: clamp(56px, 7vw, 104px); }
.now-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.now-card { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.now-text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; }
.now-card .frame { transition: filter .5s ease; }
.now-card a.frame:hover { filter: brightness(1.15); }
.now-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.85rem; line-height: 1.1; margin: 0; }
.now-card h3 a { text-decoration: none; }
.now-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.now-card .ko { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.now-card .facts { font-size: 13.5px; color: var(--muted); }
.now-card .ask { margin-top: 10px; color: var(--fg); }
.now-card .actions { margin-top: auto; padding-top: 14px; }
.now-card .btn { padding: 13px 18px; }
@media (max-width: 960px) {
  .now-grid { grid-template-columns: 1fr; }
  .now-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
}
@media (max-width: 600px) {
  .now-card { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- section heads ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-bottom: 20px;
  margin-bottom: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--rule);
}
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 4.2vw, 3.5rem); line-height: 1; margin: 0; }

/* ---------- home: films ---------- */
.films { padding-block: clamp(96px, 12vw, 160px); }
.film-list { list-style: none; margin: 0; padding: 0; }
.film-list a {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) 16rem 10rem;
  gap: 8px 28px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.film-list li:first-child a { padding-top: 0; }
.film-list .frame { transition: filter .5s ease; }
.film-list a:hover .frame { filter: brightness(1.15); }
.film-list h3 { font-family: var(--serif); font-weight: 400; font-size: 1.65rem; line-height: 1.1; margin: 0; }
.film-list .facts, .film-list .status { font-size: 13.5px; color: var(--muted); }
.film-list .status { text-align: right; }
@media (max-width: 960px) {
  .film-list a { grid-template-columns: 148px minmax(0, 1fr); }
  .film-list .frame { grid-row: 1 / span 3; }
  .film-list .status { text-align: left; }
}
@media (max-width: 600px) {
  .film-list a { grid-template-columns: 104px minmax(0, 1fr); column-gap: 16px; }
  .film-list h3 { font-size: 1.4rem; }
}

/* ---------- home: about ---------- */
.about { padding-block: clamp(96px, 12vw, 160px); border-top: 1px solid var(--rule); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-copy p { font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.5; max-width: 44ch; }
.about-copy p + p { margin-top: 1em; }
.studio-facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.studio-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.studio-facts dd { margin: 0; text-align: right; }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; margin-top: clamp(64px, 8vw, 104px); }
.person .portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--f, var(--f4));
  border-radius: 2px;
  display: grid;
  place-items: center;
}
.person .portrait span { font-family: var(--serif); font-size: 2.4rem; color: rgba(231, 233, 236, .5); }
.person h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.15; margin: 18px 0 4px; }
.person .bio { margin-top: 12px; font-size: 14.5px; color: var(--muted); max-width: 38ch; }
.person .bio [lang="ko"] { word-break: keep-all; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 1040px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .team { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { padding-block: clamp(110px, 14vw, 200px); background: var(--night); }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 8.5vw, 7rem); line-height: .95; margin: 18px 0 0; letter-spacing: -.01em; }
.contact-lead { font-family: var(--serif); font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.4; max-width: 44ch; margin-top: 24px; }
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; margin-top: clamp(48px, 6vw, 72px); }
.contact-grid > div { display: grid; gap: 8px; align-content: start; min-width: 0; }
.contact-grid p:not(.label) { font-size: 16px; overflow-wrap: anywhere; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--night); border-top: 1px solid var(--rule); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; font-size: 13px; color: var(--muted); }
.footer-logo { width: 120px; height: auto; filter: brightness(0) invert(.7); }

/* ---------- project page ---------- */
.p-hero {
  position: relative;
  background: var(--night);
  min-height: min(86svh, 920px);
  display: flex;
  align-items: flex-end;
  padding-top: 120px;
  padding-bottom: clamp(48px, 7vw, 96px);
  overflow: hidden;
}
.p-hero > .frame { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.p-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 23, .55) 0%, rgba(11, 15, 23, 0) 24%, rgba(11, 15, 23, .5) 46%, rgba(11, 15, 23, .85) 74%, var(--night) 100%);
  pointer-events: none;
}
.p-hero .container { position: relative; z-index: 1; width: 100%; text-shadow: 0 1px 14px rgba(11, 15, 23, .6); }
.p-hero .label { color: var(--paper); }
.p-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3.2rem, 9.5vw, 8rem); line-height: .95; letter-spacing: -.012em; margin: 18px 0 14px; }
.p-hero .byline { font-size: 15px; color: var(--muted); }
.p-hero .ko { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 6px; }

.p-section { padding-block: clamp(72px, 9vw, 128px); }
.p-section + .p-section { border-top: 1px solid var(--rule); }
.p-lead-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.p-logline { font-family: var(--serif); font-size: clamp(1.8rem, 3.2vw, 2.75rem); line-height: 1.22; text-wrap: pretty; }
.meet { background: var(--navy-deep); padding: clamp(24px, 3vw, 36px); border-radius: 2px; display: grid; gap: 14px; }
.meet h2 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; margin: 0; }
.meet .actions { margin-top: 10px; }
.meet .btn { padding: 13px 18px; }

.facts-table { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(56px, 7vw, 88px) 0 0; border-top: 1px solid var(--rule); }
.facts-table div { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.facts-table dt { margin-bottom: 6px; }
.facts-table dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .p-lead-grid { grid-template-columns: 1fr; }
  .facts-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split > h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.05; margin: 0; }
.prose { font-family: var(--serif); font-size: clamp(1.15rem, 1.5vw, 1.3rem); line-height: 1.62; max-width: 62ch; }
.prose p + p { margin-top: 1.1em; }
.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.3;
  margin: 0 0 32px;
  max-width: 30ch;
}
.pull + .attribution { margin: -16px 0 32px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.teaser { margin-top: 0; }
.teaser .frame { display: grid; place-items: center; }
.play {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(231, 233, 236, .6);
  background: rgba(11, 15, 23, .45);
  display: grid;
  place-items: center;
  transition: background-color .25s ease;
}
a.play:hover { background: rgba(11, 15, 23, .7); }
.play::before { content: ""; border-left: 18px solid var(--paper); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }

.stills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.stills .frame:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 600px) {
  .stills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stills .frame:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
}
.stills.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stills.pair .frame:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; }
@media (max-width: 600px) { .stills.pair { grid-template-columns: 1fr; } }

/* ---------- still viewer: click a still to see it full size (site.js adds the buttons and the dialog) ---------- */
.stills .frame { transition: filter .5s ease; }
.stills .frame:hover { filter: brightness(1.12); }
.still-open { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.still-open:focus-visible { outline-offset: -4px; }

html { scrollbar-gutter: stable; }
html.viewer-lock { overflow: hidden; }
.viewer {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--night);
  color: var(--paper);
  overscroll-behavior: contain;
}
.viewer::backdrop { background: rgba(11, 15, 23, .6); }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: viewer-in .25s ease; }
@keyframes viewer-in { from { opacity: 0; } }
.viewer-bar, .viewer-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.viewer-bar { padding-top: max(14px, env(safe-area-inset-top, 0px)); padding-bottom: 14px; }
.viewer-foot { justify-content: center; padding-top: 14px; padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)); }
.viewer-title { font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.viewer-count { min-width: 5em; text-align: center; }
.viewer-close {
  flex: none; cursor: pointer;
  background: none; border: 1px solid rgba(231, 233, 236, .38); border-radius: 999px;
  color: var(--paper); font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  padding: 10px 16px;
}
.viewer-close:hover { background: var(--paper); color: var(--night); }
.viewer-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
.viewer-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-select: none; }
.viewer-nav {
  flex: none; display: grid; place-items: center; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(231, 233, 236, .5); background: rgba(11, 15, 23, .5); color: var(--paper);
  transition: background-color .25s ease;
}
.viewer-nav:hover { background: rgba(231, 233, 236, .14); }
.viewer-nav svg { width: 18px; height: 18px; }
.viewer-nav[hidden] { display: none; }
/* Wide screens: arrows sit either side of the photo, which leaves room for them. */
@media (min-width: 760px) {
  .viewer-stage { padding: 0 104px; }
  .viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: 60px; }
  .viewer-prev { left: max(28px, env(safe-area-inset-left, 0px)); }
  .viewer-next { right: max(28px, env(safe-area-inset-right, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .viewer[open] { animation: none; } }

.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 36px 0 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 26px 20px 0 0; border-top: 1px solid var(--rule); color: var(--muted); }
.timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--muted); }
.timeline li.done::before { background: var(--muted); }
.timeline li.now { color: var(--fg); }
.timeline li.now::before { background: var(--fg); border-color: var(--fg); box-shadow: 0 0 0 5px var(--rule); }
.timeline strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: inherit; margin-bottom: 4px; }
.timeline span { font-size: 13.5px; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; border-left: 1px solid var(--rule); margin-left: 4px; }
  .timeline li { border-top: 0; padding: 0 0 26px 24px; }
  .timeline li::before { top: 8px; left: -5px; }
}

/* ---------- film pages ---------- */
.honors { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.honors li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; }
.honors a { text-underline-offset: 3px; }
@media (max-width: 480px) { .honors li { grid-template-columns: 1fr; gap: 4px; } }

.crew { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; margin-top: 36px; }
.crew .person h3 { font-size: 1.3rem; }
.crew-more { margin-top: 40px; }
@media (max-width: 860px) { .crew { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- placeholder markers: add class="marks" to <body> to show them ---------- */
.marks .tbd { color: var(--tbd); }
/* Notes for the team (class="draft-only") stay visible in the drafts; delete them before launch. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- analytics consent (site.js adds it for visitors on a European time zone) ---------- */
.consent {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin-inline: auto; padding: 18px 20px;
  background: var(--night-2); border: 1px solid var(--rule-strong); border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; font-size: 14px; line-height: 1.5;
}
.consent p { margin: 0; flex: 1 1 280px; color: var(--fg); }
.consent a { color: var(--accent); }
.consent-actions { display: flex; gap: 10px; margin-left: auto; }
.consent .btn { padding: 10px 18px; background: transparent; color: var(--fg); font-family: var(--sans); cursor: pointer; }
.consent .btn:hover, .consent .btn.solid { background: var(--fg); color: var(--bg); }
.consent .btn.solid:hover { background: var(--accent); border-color: var(--accent); }
.consent-link {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.consent-link:hover { color: var(--fg); }
