/* Cloudberry Films — site styles
   One stylesheet for every page. Colours and fonts are set once in :root.
   One accent colour is used on every page. */

:root {
  --bg: #0b0b0c;
  --bg-raise: #141416;
  --ink: #f2eee7;
  --ink-soft: rgba(242, 238, 231, 0.8);
  --muted: #a39e96;
  --line: rgba(242, 238, 231, 0.16);
  /* One accent colour for the whole site: buttons, thin lines, hover colour and the two big hero words. */
  --accent: #c66e4e;        /* rust copper */
  --accent-hover: #d6866b;  /* buttons lighten a little when pointed at */
  --paper: #f4eee8;         /* the cream of the opening logo animation: a shade darker than the clip's own paper so its edges cannot show */
  --on-accent: #0b0b0c;     /* text and icons that sit on top of the accent: dark reads better than white on this colour */
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Century Gothic", system-ui, sans-serif;
  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1360px;
  --section: clamp(72px, 11vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(16px, 1.15vw, 18px)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ul, ol, dl, dd, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font: 500 12px/1.2 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--accent); }
.eyebrow.plain::before { display: none; }

.display {
  font: 400 clamp(44px, 7.2vw, 112px)/0.95 var(--serif);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.display em, .lede em { font-style: italic; }
.h2 { font: 400 clamp(38px, 5.2vw, 76px)/1 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.h3 { font: 400 clamp(26px, 2.6vw, 36px)/1.1 var(--serif); }
.lede { font: 400 clamp(24px, 2.9vw, 42px)/1.22 var(--serif); letter-spacing: -0.005em; text-wrap: pretty; }
/* Add class="in-accent" to any heading or paragraph to set it in the accent colour. */
.in-accent { color: var(--accent); }
.body { color: var(--ink-soft); max-width: 62ch; }
.body p + p { margin-top: 1.1em; }
.body a, .textlink {
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px; text-underline-offset: 0.22em;
}
.body a:hover, .textlink:hover { color: var(--accent); }
.meta { font: 500 12px/1.5 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.9em;
  padding: 17px 26px 16px;
  font: 500 13px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--on-accent); background: var(--accent); border: 1px solid var(--accent);
  cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }
.play-tri { width: 0; height: 0; border-left: 9px solid currentColor; border-block: 6px solid transparent; }

/* ---------- header ---------- */
.site-header {
  position: absolute; z-index: 20; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(18px, 2.4vw, 30px) var(--gutter);
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -60px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 11, 12, 0.78), rgba(11, 11, 12, 0));
}
.brand img { height: clamp(50px, 5.6vw, 80px); width: auto; }
.nav { display: flex; gap: clamp(16px, 2.6vw, 40px); }
.nav a {
  font: 500 12.5px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  padding-block: 10px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* ---------- home hero: two framed screens, one sentence ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 0.9vw, 14px);
  padding: clamp(100px, 9.4vw, 136px) var(--gutter) 0;
  min-height: min(96vh, 980px);
}
.panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 520px;
  padding: clamp(22px, 3vw, 46px);
}
.panel > img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  object-position: var(--pos, 50% 50%);   /* --pos / --pos-m are set per image in the HTML */
  transition: transform 1.2s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.6s;
  filter: saturate(var(--sat, 0.9)) brightness(var(--dim, 0.88));   /* --sat / --dim can be set per image */
}
.panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(11, 11, 12, 0.94) 0%, rgba(11, 11, 12, 0.5) 34%, rgba(11, 11, 12, 0.05) 62%);
}
.panel:hover > img { transform: scale(1.035); filter: saturate(1) brightness(1); }
.panel-lead { font: 400 clamp(28px, 3.4vw, 54px)/1 var(--serif); color: var(--ink); }
.panel-word {
  display: block; margin: 0.02em 0 0.22em -0.03em;
  font: italic 400 clamp(60px, 8.7vw, 158px)/0.9 var(--serif); letter-spacing: -0.02em;
  color: var(--accent);
}
.panel-foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid rgba(242, 238, 231, 0.3);
}
.panel-title { font: 500 14px/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; }
.panel-title .arrow { display: inline-block; margin-left: 0.6em; transition: transform 0.25s; }
.panel:hover .panel-title .arrow { transform: translateX(6px); }

/* ---------- intro + laurels ---------- */
.intro { display: grid; gap: clamp(40px, 6vw, 88px); }
.intro .lede { max-width: 29em; margin-inline: auto; text-align: center; text-wrap: balance; }
.laurels { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 40px); }
.laurel { display: grid; gap: 14px; justify-items: center; align-content: start; text-align: center; }
.laurel b {
  position: relative; isolation: isolate;
  display: grid; place-content: center; width: 100%; max-width: 270px;
  aspect-ratio: 240 / 208; padding: 6% 25% 0;
  font: 400 clamp(18px, 1.7vw, 24px)/1.06 var(--serif); text-wrap: balance;
}
/* The wreath is drawn in the accent colour: laurel.svg is used as a stencil, so the colour comes from --accent. */
.laurel b::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  -webkit-mask: url(../img/laurel.svg) center / contain no-repeat; mask: url(../img/laurel.svg) center / contain no-repeat;
}
.laurel span { font: 500 11.5px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---------- work rows ---------- */
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 80px); }
.work { display: grid; gap: clamp(64px, 9vw, 130px); }
.work-item { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.work-item.flip { grid-template-columns: 5fr 7fr; }
.work-item.flip .work-media { order: 2; }
.work-media { display: block; overflow: hidden; background: var(--bg-raise); }
.work-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1s cubic-bezier(0.2, 0.6, 0.2, 1); }
.work-media:hover img { transform: scale(1.03); }
.work-text { display: grid; gap: 22px; justify-items: start; }
.work-text .h2 a:hover { color: var(--accent); }
.facts { display: grid; gap: 0; width: 100%; border-top: 1px solid var(--line); }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.94em; color: var(--ink-soft); }

/* ---------- slate index (home) ---------- */
.slate { border-top: 1px solid var(--line); }
.slate a {
  display: grid; grid-template-columns: 3.2rem 1fr auto auto; align-items: baseline; gap: 12px 28px;
  padding: clamp(18px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--line);
  transition: padding 0.25s, color 0.2s;
}
.slate .num { font: 500 12px/1 var(--sans); letter-spacing: 0.18em; color: var(--muted); }
.slate .title { font: 400 clamp(30px, 4.4vw, 62px)/1 var(--serif); letter-spacing: -0.01em; }
.slate .arrow { color: var(--accent); opacity: 0; transform: translateX(-8px); transition: 0.25s; }
.slate a:hover { padding-left: 14px; }
.slate a:hover .title { font-style: italic; }
.slate a:hover .arrow { opacity: 1; transform: none; }

/* ---------- mental health page ---------- */
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 8px; }
.actions { list-style: none; margin: 1.7em 0; padding: 0; border-top: 1px solid var(--line); counter-reset: act; }
.actions li { counter-increment: act; display: grid; grid-template-columns: 3em 1fr; gap: 6px 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
.actions li::before { content: "0" counter(act); font: 500 12px/2.2 var(--sans); letter-spacing: 0.18em; color: var(--accent); }
.actions b { font: 400 clamp(22px, 2vw, 27px)/1.15 var(--serif); color: var(--ink); }
.actions span { grid-column: 2; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); margin-top: clamp(56px, 8vw, 110px); }
.person { display: grid; gap: 22px; align-content: start; }
.person img { width: min(100%, 280px); aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 22%; background: var(--bg-raise); }
.person .role { margin-top: -10px; }
.person .body { font-size: 0.95em; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.contact-list { display: grid; gap: clamp(26px, 3.4vw, 44px); }
.contact-list a { font: 400 clamp(25px, 3.5vw, 52px)/1.05 var(--serif); letter-spacing: -0.01em; word-break: break-word; }
.contact-list a:hover { color: var(--accent); font-style: italic; }
.contact-list .meta { display: block; margin-bottom: 8px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(40px, 5vw, 64px); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; }
.footer-grid img { height: 62px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 30px; }
.footer-nav a { font: 500 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--accent); }
.fineprint { margin-top: 30px; font-size: 13px; color: var(--muted); }

/* ---------- production page hero ---------- */
.film-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: min(90vh, 900px);
  padding: 150px 0 clamp(36px, 5vw, 72px);
}
.film-hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.film-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(11, 11, 12, 1) 0%, rgba(11, 11, 12, 0.74) 30%, rgba(11, 11, 12, 0.28) 54%, rgba(11, 11, 12, 0) 74%),
    linear-gradient(to right, rgba(11, 11, 12, 0.55), rgba(11, 11, 12, 0) 60%);
}
.film-hero .eyebrow { color: var(--ink); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7); }
.film-hero .wrap { width: 100%; display: grid; gap: 22px; justify-items: start; }
.film-title { font: 400 clamp(54px, 10.5vw, 176px)/0.9 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.film-title em { font-style: italic; }
.film-title img { width: min(100%, 760px); height: auto; filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.45)); }
.tagline { font: italic 400 clamp(22px, 2.6vw, 36px)/1.2 var(--serif); color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.strip > div { padding: clamp(20px, 2.6vw, 34px) clamp(16px, 2.2vw, 30px); display: grid; gap: 8px; align-content: start; }
.strip > div + div { border-left: 1px solid var(--line); }
.strip > div:first-child { padding-left: 0; }
.strip b { font: 400 clamp(20px, 2vw, 28px)/1.12 var(--serif); }

.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.two-col .stack { display: grid; gap: 26px; justify-items: start; }

/* ---------- video ---------- */
.video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  background: #000; border: 0; padding: 0; cursor: pointer; color: #fff;
}
.video.scope { aspect-ratio: 2.35 / 1; }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.4s; filter: brightness(0.82); }
.video:hover img { transform: scale(1.03); filter: brightness(1); }
.video .play {
  position: absolute; inset: 0; margin: auto; width: clamp(64px, 8vw, 104px); aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); transition: transform 0.25s;
}
.video .play::before { content: ""; margin-left: 12%; border-left: clamp(16px, 2vw, 24px) solid var(--on-accent); border-block: clamp(10px, 1.3vw, 15px) solid transparent; }
.video:hover .play { transform: scale(1.08); }
.video .video-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px clamp(16px, 2.4vw, 30px) clamp(14px, 2vw, 24px);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0)); text-align: left;
  font: 500 12px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.episodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.4vw, 52px) clamp(18px, 2.4vw, 36px); }
.episodes.four { grid-template-columns: repeat(4, 1fr); }
.episode { display: grid; gap: 14px; align-content: start; }
.episode .video .play { width: 54px; opacity: 0; transform: scale(0.9); }
.episode .video .play::before { border-left-width: 13px; border-block-width: 8px; }
.episode .video:hover .play, .episode .video:focus-visible .play { opacity: 1; transform: none; }
.episode h3 { font: 400 clamp(22px, 2vw, 28px)/1.1 var(--serif); }
.episode p { font-size: 0.93em; color: var(--ink-soft); }
.season-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 30px; margin-bottom: clamp(26px, 3.4vw, 44px); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.season + .season { margin-top: clamp(64px, 8vw, 110px); }

/* ---------- stills ---------- */
.stills { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(220px, 31vw, 480px); gap: clamp(8px, 1vw, 16px); }
.stills.wide { grid-auto-rows: clamp(170px, 24vw, 370px); }
.stills img { width: 100%; height: 100%; object-fit: cover; background: var(--bg-raise); }
.stills .w12 { grid-column: span 12; } .stills .w8 { grid-column: span 8; } .stills .w7 { grid-column: span 7; }
.stills .w6 { grid-column: span 6; } .stills .w5 { grid-column: span 5; } .stills .w4 { grid-column: span 4; }
.stills figure { overflow: hidden; }

/* ---------- credits roll ---------- */
.credits { display: grid; gap: 10px; }
.credits > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 22px; align-items: baseline; }
.credits dt { text-align: right; font: 500 11.5px/1.5 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.credits dd { font: 400 clamp(19px, 1.7vw, 24px)/1.25 var(--serif); }
.credits .gap { height: 18px; }

.quote { font: 400 clamp(24px, 2.8vw, 40px)/1.24 var(--serif); text-wrap: pretty; max-width: 26em; }
.quote::before { content: "\201C"; display: block; font-size: 2.6em; line-height: 0.7; color: var(--accent); margin-bottom: 0.1em; }
.quote-by { margin-top: 26px; }

.selections { columns: 2; column-gap: clamp(24px, 4vw, 64px); border-top: 1px solid var(--line); }
.selections li { break-inside: avoid; padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--ink-soft); }
.selections li span:last-child { color: var(--muted); white-space: nowrap; }

.poster { width: 100%; max-width: 420px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }

.next { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.next a { padding: clamp(36px, 6vw, 84px) var(--gutter); display: grid; gap: 14px; transition: background 0.25s; }
.next a + a { border-left: 1px solid var(--line); }
.next a:hover { background: var(--bg-raise); }
.next a:hover .h2 { font-style: italic; }

/* ---------- in development ---------- */
.page-head { padding: clamp(150px, 17vw, 240px) 0 clamp(48px, 7vw, 96px); }
.page-head .wrap { display: grid; gap: 26px; }
.page-head .lede { max-width: 26em; color: var(--ink-soft); }
.page-head .lede + .lede { margin-top: -6px; }
.project { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: min(86vh, 820px); border-top: 1px solid var(--line); padding: 120px 0 clamp(36px, 5vw, 72px); }
.project > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.project::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(11, 11, 12, 0.96) 0%, rgba(11, 11, 12, 0.6) 36%, rgba(11, 11, 12, 0.08) 70%),
    linear-gradient(to right, rgba(11, 11, 12, 0.55), rgba(11, 11, 12, 0) 65%);
}
.project .wrap { width: 100%; display: grid; gap: 20px; }
.project .num { font: 500 12px/1 var(--sans); letter-spacing: 0.2em; color: var(--muted); }
.project .logline { font: 400 clamp(22px, 2.5vw, 36px)/1.24 var(--serif); max-width: 27em; text-wrap: pretty; }
.project .blurb { font: 400 clamp(19px, 1.7vw, 25px)/1.4 var(--serif); max-width: 37em; text-wrap: pretty; }
.project .credit { color: var(--ink-soft); font-size: 0.95em; }
.project .script { margin-top: 6px; font: 500 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; }
.project .script a { display: inline-flex; gap: 0.8em; padding-bottom: 7px; border-bottom: 1px solid var(--accent); }
.project .script a:hover { color: var(--accent); }
.project .script a:hover .arrow { transform: translateX(4px); }
.project .script .arrow { transition: transform 0.2s; }
/* placeholder art, used until a real hero image is supplied */
.project.placeholder { min-height: min(62vh, 580px); background:
    radial-gradient(120% 90% at 78% 18%, var(--tone, #3a1420) 0%, rgba(11, 11, 12, 0) 62%),
    radial-gradient(90% 70% at 10% 90%, var(--tone2, #16181d) 0%, rgba(11, 11, 12, 0) 70%), var(--bg); }
.project.placeholder::before {
  content: attr(data-word); position: absolute; z-index: -1; right: -0.04em; top: 0.06em;
  font: italic 400 clamp(140px, 30vw, 520px)/0.8 var(--serif); letter-spacing: -0.03em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(242, 238, 231, 0.13);
}

/* ---------- opening logo animation (home page, once per visit) ---------- */
.ident { display: none; }
.ident-on .ident {
  display: block; overflow: hidden;
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper); transition: opacity 0.6s ease, background-color 0.9s linear;
}
.ident.dark { background: var(--bg); }             /* added when the clip ends: the cream screen dissolves to the dark page */
.ident-lock { overflow: hidden; }                 /* on <html>: no scrolling while it plays */
.ident video, .ident-end {
  --w: min(1240px, 124vw);                        /* wider than a phone screen on purpose: the clip has empty margins */
  position: absolute; left: 50%; top: 50%; width: var(--w); max-width: none; height: auto; aspect-ratio: 16 / 9;
  margin: calc(var(--w) * -9 / 32) 0 0 calc(var(--w) / -2);      /* centred without using transform, which the landing move needs */
  transform-origin: 0 0;
}
.ident video { mix-blend-mode: darken; }          /* the cream clip: its paper melts into the cream screen */
.ident-end { mix-blend-mode: lighten; opacity: 0; transition: opacity 0.9s linear; }   /* the finished logo in white on black: its black melts into the dark page */
.ident.dark .ident-end { opacity: 1; }
.ident.out { opacity: 0; pointer-events: none; }
.ident-skip {
  position: absolute; right: var(--gutter); bottom: clamp(18px, 4vh, 40px);
  font: 500 11.5px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(11, 11, 12, 0.55); background: none; border: 0; padding: 12px 4px; cursor: pointer; transition: color 0.9s linear;
}
.ident-skip:hover { color: #0b0b0c; }
.ident.dark .ident-skip { color: var(--muted); }

/* ---------- reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .work-item, .work-item.flip, .about-grid, .contact, .two-col { grid-template-columns: minmax(0, 1fr); }
  .work-item.flip .work-media { order: 0; }
  .laurels { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
  .laurel b { font-size: clamp(15px, 3.7vw, 24px); }
  .laurel span { font-size: 10.5px; letter-spacing: 0.14em; }
  .episodes, .episodes.four { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav { gap: 18px; flex-wrap: wrap; }
  .nav a { font-size: 11px; letter-spacing: 0.16em; padding-block: 8px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 122px; gap: 10px; }
  .panel { min-height: 104vw; }
  .panel > img { object-position: var(--pos-m, var(--pos, 50% 50%)); }
  .panel-word { font-size: clamp(60px, 18.5vw, 130px); }
  .people { grid-template-columns: 1fr; }
  .person img { aspect-ratio: 4 / 3.6; }
  .slate a { grid-template-columns: 2.2rem 1fr auto; }
  .slate .meta { grid-column: 2 / -1; grid-row: 2; }
  .slate .arrow { grid-row: 1; grid-column: 3; }
  .stills, .stills.wide { grid-auto-rows: auto; }
  .stills .w8, .stills .w7, .stills .w6, .stills .w5, .stills .w4 { grid-column: span 12; }
  .stills img { height: auto; aspect-ratio: 3 / 2; }
  .stills.wide img { aspect-ratio: 2.1 / 1; }
  .selections { columns: 1; }
  .next { grid-template-columns: 1fr; }
  .next a + a { border-left: 0; border-top: 1px solid var(--line); }
  .credits > div { gap: 0 14px; }
  .film-hero { min-height: 78vh; }
}
@media (max-width: 520px) {
  .episodes, .episodes.four { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .strip > div { padding-left: 0; }
  .strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
