/* DRIM Studios - the page runs through one day: dawn (the game's title screen), morning (the studio),
   afternoon on the lake (Lwanda Magere), dusk (the films), evening (services), night over Nairobi (contact).
   Type is the game's own: Alegreya for the storyteller's voice, Barlow for reading, Barlow Condensed for UI. */

@font-face {
  font-family: "Alegreya";
  src: url("../fonts/Alegreya-Variable.woff") format("woff");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow-SemiBold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-SemiBold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}

:root {
  /* the day */
  --sunrise: #F6DDA9;
  --mist: #DCE3D3;
  --sky: #C6DBE6;
  --lake: #0F3B57;
  --dusk: #6E3330;
  --plum: #3B1F4A;
  --night: #1F1456;
  --night-floor: #1C0E29;
  /* ink and light */
  --gold: #F2B13E;
  --gold-hi: #F8CB6E;
  --bone: #F4EEE2;
  --bone-soft: rgba(244, 238, 226, 0.78);
  --rule: rgba(244, 238, 226, 0.2);
  --ink: #0E2235;
  --ink-soft: rgba(14, 34, 53, 0.78);

  --display: "Alegreya", Georgia, "Times New Roman", serif;
  --text: "Barlow", "Segoe UI", system-ui, sans-serif;
  --ui: "Barlow Condensed", "Barlow", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
  --head-h: 4.25rem;
  --edge: max(var(--gutter), (100% - var(--max)) / 2);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--night-floor);
  color: var(--bone);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
p, ul, ol, dl, dd, figure, h1, h2, h3 { margin: 0; }
:where(ul[role="list"]) { list-style: none; padding: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--ui);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

section[id] { scroll-margin-top: var(--head-h); }

/* ---------- type ---------- */

h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 0.45em;
  text-wrap: balance;
}
h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.55rem, 1.25rem + 1vw, 2.05rem);
  line-height: 1.15;
  text-wrap: balance;
}
.lede {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.35;
  max-width: 34ch;
  text-wrap: pretty;
}
p { text-wrap: pretty; }

/* ---------- buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.55em 1.35em;
  border-radius: 4px;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hi); }
.btn--line { border: 2px solid var(--bone); color: var(--bone); }
.btn--line:hover { background: rgba(244, 238, 226, 0.14); }

.round-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  color: var(--bone);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.round-btn:hover { border-color: var(--gold); background: rgba(242, 177, 62, 0.12); }
.round-btn:disabled { opacity: 0.35; cursor: default; }

/* pause / play for anything that moves on its own */
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem 0.4rem 0.55rem;
  border: 0;
  border-radius: 4px;
  background: rgba(14, 12, 40, 0.62);
  color: var(--bone);
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
.motion-toggle:hover { background: rgba(14, 12, 40, 0.85); }
.motion-toggle__icon {
  width: 0.85rem;
  height: 0.85rem;
  /* pause bars */
  background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65% 100%);
}
.motion-toggle[aria-pressed="true"] .motion-toggle__icon {
  /* play triangle */
  background: currentColor;
  clip-path: polygon(10% 0, 100% 50%, 10% 100%);
}

/* ---------- header ---------- */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--head-h);
  padding: 0.5rem var(--gutter);
  /* over the dawn picture the bar is only this soft shade */
  background: linear-gradient(to bottom, rgba(12, 12, 32, 0.45), rgba(12, 12, 32, 0));
  transition: --head-a 0.9s ease, --head-b 0.9s ease, --head-c 0.9s ease;
}

/* The bar is the sky of the hour the page has reached: three colours, left to right, that change with the
   section under it (site.js sets data-band). Registered as colours so they blend instead of jumping. */
@property --head-a { syntax: "<color>"; inherits: true; initial-value: #1F1456; }
@property --head-b { syntax: "<color>"; inherits: true; initial-value: #3A2468; }
@property --head-c { syntax: "<color>"; inherits: true; initial-value: #6B2F4A; }
/* over the pale morning page the glass needs more of its own colour, or the white words lose their footing */
.site-head[data-band="morning"] { --head-a: #24346B; --head-b: #33477F; --head-c: #7A4558; --head-mix: 94%; }
.site-head[data-band="lake"]    { --head-a: #0B2F47; --head-b: #124C63; --head-c: #1D6A6E; }
.site-head[data-band="dusk"]    { --head-a: #3B1F4A; --head-b: #5C2440; --head-c: #7C3A2A; }
.site-head[data-band="evening"] { --head-a: #261650; --head-b: #3B1C5A; --head-c: #5A2752; }
.site-head[data-band="night"]   { --head-a: #120C36; --head-b: #1F1456; --head-c: #2C1D6E; }

.site-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: #1F1456;
  background:
    radial-gradient(15rem 7rem at 3.4rem 50%, color-mix(in srgb, var(--sun-fill, #F2B13E) 26%, transparent), transparent 72%),
    linear-gradient(100deg,
      color-mix(in srgb, var(--head-a) 95%, transparent) 0%,
      color-mix(in srgb, var(--head-b) 95%, transparent) 52%,
      color-mix(in srgb, var(--head-c) 95%, transparent) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 30px -18px rgba(6, 4, 22, 0.75);
  transition: opacity 0.35s ease;
}
.site-head[data-over="page"]::before { opacity: 1; }
/* glass on screens with the power for it: phones keep the plain gradient */
@media (min-width: 761px) {
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-head::before {
      background:
        radial-gradient(15rem 7rem at 3.4rem 50%, color-mix(in srgb, var(--sun-fill, #F2B13E) 26%, transparent), transparent 72%),
        linear-gradient(100deg,
          color-mix(in srgb, var(--head-a) var(--head-mix, 84%), transparent) 0%,
          color-mix(in srgb, var(--head-b) var(--head-mix, 80%), transparent) 52%,
          color-mix(in srgb, var(--head-c) var(--head-mix, 80%), transparent) 100%);
      -webkit-backdrop-filter: blur(14px) saturate(1.5);
      backdrop-filter: blur(14px) saturate(1.5);
    }
  }
}
/* the day's line: how far down the page, drawn along the foot of the bar in the sun's own colour */
.site-head::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, #E88A72, var(--sun-fill, var(--gold)) 70%, var(--sun-fill, var(--gold-hi)));
  transform: scaleX(var(--day, 0));
  transform-origin: left center;
  opacity: 0.9;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--bone);
  text-decoration: none;
}
/* logo A, the gold colourway (brand/logo); the sun sits exactly as in the logo at the top of the page */
.brand__mark { width: 2.7rem; height: 2.7rem; overflow: visible; }
.brand__sun {
  fill: var(--sun-fill, var(--gold));
  transform: translateY(calc(var(--sun-y, 0) * 1px));
  transition: fill 0.6s ease;
}
.brand__line { fill: var(--gold); }
.brand__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand__name span { font-weight: 500; letter-spacing: 0.01em; }

.site-nav ul { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.site-nav a:hover { border-bottom-color: var(--gold); }
.site-nav a[aria-current="true"] { border-bottom-color: var(--gold); color: var(--gold-hi); }

.menu-toggle {
  display: none;
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--bone);
  border-radius: 4px;
  background: transparent;
  color: var(--bone);
  font-family: var(--ui);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
}

/* ---------- dawn: hero ---------- */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #111220;
  isolation: isolate;
}
/* no poster attribute: the video's own background is the poster, so phones can get a smaller one */
.hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  background: #121a31 url("../media/hero/dawn-1920.jpg") 50% 40% / cover no-repeat;
}
@media (max-width: 900px) {
  .hero__video { background-image: url("../media/hero/dawn-960.jpg"); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(12, 12, 32, 0.88) 0%, rgba(12, 12, 32, 0.5) 30%, rgba(12, 12, 32, 0) 58%),
    linear-gradient(to right, rgba(12, 16, 40, 0.55) 0%, rgba(12, 16, 40, 0) 52%);
}
.hero__content {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  padding: calc(var(--head-h) + 2rem) 0 clamp(4.5rem, 11vh, 7rem);
}
.hero__title img {
  width: min(32rem, 80vw);
  height: auto;
  margin-left: -0.6rem;
  filter: drop-shadow(0 0.35rem 1rem rgba(0, 0, 0, 0.45));
}
.hero__lede {
  margin-top: 1.2rem;
  max-width: 33ch;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.7rem);
  line-height: 1.3;
}
.hero__status {
  margin: 0.8rem 0 1.6rem;
  color: var(--bone-soft);
  max-width: 40ch;
}
.hero__toggle {
  position: absolute;
  right: var(--gutter);
  bottom: 1.25rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content > * {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .hero__content > :nth-child(1) { animation-delay: 0.2s; }
  .hero__content > :nth-child(2) { animation-delay: 0.55s; }
  .hero__content > :nth-child(3) { animation-delay: 0.7s; }
  .hero__content > :nth-child(4) { animation-delay: 0.85s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- the bands ---------- */

.band {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
}

/* morning: the studio */
.band--morning {
  background: linear-gradient(180deg, var(--sunrise) 0%, var(--mist) 52%, var(--sky) 100%);
  color: var(--ink);
}
.band--morning :focus-visible { outline-color: var(--ink); }

.statement {
  font-size: clamp(2.7rem, 1.4rem + 5vw, 5.6rem);
  line-height: 0.98;
  max-width: 24ch;
  text-wrap: balance;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.studio__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.studio__body > p {
  font-size: 1.2rem;
  max-width: 42ch;
  color: var(--ink-soft);
}
.studio__links li { border-top: 1px solid rgba(14, 34, 53, 0.22); }
.studio__links li:last-child { border-bottom: 1px solid rgba(14, 34, 53, 0.22); }
.studio__links a {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0.25rem;
  text-decoration: none;
  transition: background-color 0.2s ease, padding 0.2s ease;
}
.studio__links strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
}
.studio__links span { color: var(--ink-soft); }
.studio__links a:hover { background: rgba(255, 255, 255, 0.35); padding-left: 0.75rem; }

/* afternoon: the lake and the game */
.band--lake {
  padding-top: 0;
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  background: linear-gradient(180deg, var(--lake) 0%, var(--lake) 74%, #3a2a57 90%, var(--dusk) 100%);
}
.keyart { margin: 0 0 clamp(3rem, 6vw, 5rem); }
.keyart img {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}

.game {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(15rem, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.game__intro > p:not(.lede) { margin-top: 1.25rem; max-width: 60ch; color: var(--bone-soft); }
.game__subhead {
  margin: 2.5rem 0 1.25rem;
  font-size: 1.5rem;
}
.expect {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
}
.expect dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gold);
}
.expect dd { color: var(--bone-soft); font-size: 1.05rem; }

.facts {
  border-left: 1px solid var(--rule);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}
.facts div { padding-block: 0.9rem; border-bottom: 1px solid var(--rule); }
.facts div:first-child { padding-top: 0.2rem; }
.facts dt {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 1rem;
  color: var(--bone-soft);
}
.facts dd {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.25;
}

.strip { margin-top: clamp(3.5rem, 8vw, 6rem); }
.strip img { width: 100%; height: auto; border-radius: 6px; }

.shots { margin-top: clamp(3rem, 7vw, 5.5rem); }
.shots__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.25rem 2rem;
  margin-bottom: 1.5rem;
}
.shots__head h3 { grid-column: 1; }
.shots__head p { grid-column: 1; color: var(--bone-soft); }
.shots__nav { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 0.6rem; }

.shots__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82vw, 36rem);
  gap: 1.25rem;
  margin: 0;
  padding: 0 var(--edge) 1.25rem;
  scroll-padding-inline: var(--edge);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 177, 62, 0.6) transparent;
}
.shots__rail > li { scroll-snap-align: start; }
.shots__rail[data-drag] { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.shots__rail[data-drag] .shot { cursor: grabbing; }
.shots__rail img { -webkit-user-drag: none; user-select: none; }
.shots__rail p { margin-top: 0.6rem; color: var(--bone-soft); font-size: 1rem; }
.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #0b2133;
  cursor: zoom-in;
}
.shot img { width: 100%; height: auto; transition: transform 0.5s ease; }
.shot:hover img { transform: scale(1.03); }

/* dusk: the films */
.band--dusk {
  background: linear-gradient(180deg, var(--dusk) 0%, #57283f 32%, var(--plum) 100%);
}
.films__lede { max-width: 38ch; }

.film {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4.5vw, 4.5rem);
  align-items: center;
  margin-top: clamp(3rem, 7vw, 6rem);
}
/* the flipped film keeps the wide column for its picture, so both landscape films are the same size */
.film--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); }
.film--flip .film__screen { order: 2; }
.film--tall { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); }
.film--tall .film__screen { max-width: 26rem; }
.film__screen {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #120a1c;
}
.film__screen video { width: 100%; height: auto; }
.film__toggle { position: absolute; left: 0.75rem; bottom: 0.75rem; }
.film__meta {
  margin: 0.35rem 0 1rem;
  font-family: var(--ui);
  font-weight: 600;
  color: var(--gold);
}
.film__text p:last-child { color: var(--bone-soft); max-width: 40ch; }

/* evening: services */
.band--evening {
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  background: linear-gradient(180deg, var(--plum) 0%, #2a1850 60%, var(--night) 100%);
}
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(1.5rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--rule);
}
.service img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}
.service p { margin-top: 0.75rem; max-width: 44ch; color: var(--bone-soft); }
.services__cta { margin-top: clamp(2rem, 5vw, 3.5rem); }

/* night: contact over Nairobi */
.band--night {
  padding-bottom: 0;
  background: var(--night);
}
.contact > p { color: var(--bone-soft); max-width: 46ch; }
.contact > .contact__email { margin-top: 1.5rem; max-width: none; }
.contact__email a {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 0.9rem + 3.6vw, 3.6rem);
  line-height: 1.1;
  color: var(--gold);
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 2px solid rgba(242, 177, 62, 0.4);
  transition: border-color 0.2s ease;
}
.contact__email a:hover { border-bottom-color: var(--gold); }
.contact__place { margin-top: 1.25rem; font-family: var(--ui); font-weight: 600; }
.nightscape { margin-top: clamp(-2rem, -3vw, 0rem); }
.nightscape img {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 18%);
}

.site-foot {
  background: var(--night-floor);
  padding-block: 1.5rem 2rem;
  font-family: var(--ui);
  font-weight: 600;
  color: var(--bone-soft);
}
.site-foot__row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-foot a { color: var(--bone); }

/* ---------- lightbox ---------- */

.lightbox {
  width: min(96vw, 1600px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bone);
}
.lightbox::backdrop { background: rgba(12, 8, 32, 0.94); }
.lightbox img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
}
.lightbox figcaption { margin-top: 0.75rem; text-align: center; }
.lightbox__bar { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1rem; }

/* ---------- narrow screens ---------- */

@media (max-width: 860px) {
  .studio__body, .game, .film, .film--flip, .film--tall, .service { grid-template-columns: minmax(0, 1fr); }
  .film--flip .film__screen { order: 0; }
  .film--tall .film__screen { max-width: 24rem; }
  .facts { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .facts div:first-child { padding-top: 0.9rem; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: none;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: #1F1456;
    background: linear-gradient(100deg, var(--head-a), var(--head-b) 52%, var(--head-c));
  }
  .site-nav[data-open] { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding-block: 0.8rem; border-bottom: 1px solid var(--rule); }
  .site-head:has(.site-nav[data-open])::before { opacity: 1; }
  .site-nav a[aria-current="true"] { border-bottom-color: var(--rule); }
  .keyart img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 57% 50%; }
  .expect { grid-template-columns: minmax(0, 1fr); }
  .studio__links a { grid-template-columns: 1fr; gap: 0.1rem; }
  .shots__nav { display: none; }
  .shots__head { grid-template-columns: 1fr; }
  .nightscape img { height: 15rem; object-fit: cover; object-position: 55% 60%; }
}

/* phones and portrait tablets: the portrait cut of the dawn sits on top (Lwanda stands at ~72% across
   the wide frame, so a centred crop would lose him), the words below it over the dark rock.
   Keep this condition the same as the dawn-portrait <source media> in index.html. */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  .hero { display: block; min-height: 0; }
  .hero__video {
    position: relative;
    inset: auto;
    z-index: 0;
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 80svh;
    object-position: 50% 40%;
    background-image: url("../media/hero/dawn-portrait.jpg");
    background-position: 50% 40%;
    -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
  }
  .hero::after { display: none; }
  .hero__content { position: relative; z-index: 1; margin-top: -7rem; padding: 0 0 3.5rem; }
  .hero__title img { width: min(24rem, 74vw); margin-left: -0.35rem; }
  .hero__toggle { bottom: auto; right: auto; left: var(--gutter); top: calc(var(--head-h) + 0.25rem); }
}

/* ---------- small movements (all optional: none carries meaning, none runs for reduced motion) ---------- */

/* the dawn has depth under a mouse: the title and the picture drift a few pixels apart (site.js sets --px/--py) */
@media (hover: hover) and (pointer: fine) and (min-width: 761px) and (orientation: landscape) and (prefers-reduced-motion: no-preference) {
  .hero__video { transform: scale(1.035) translate3d(calc(var(--px, 0) * -16px), calc(var(--py, 0) * -9px), 0); }
  .hero__title img { transform: translate3d(calc(var(--px, 0) * 12px), calc(var(--py, 0) * 7px), 0); }
}

/* pictures settle into place as the page brings them up - tied to the scroll itself, run by the browser's
   compositor, and simply absent where the browser has no scroll timelines */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .strip img, .film__screen, .service img {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
  }
}
@keyframes settle {
  from { opacity: 0.4; transform: translateY(2.25rem) scale(0.965); }
  to { opacity: 1; transform: none; }
}

/* a screenshot grows into the full picture (view transitions; elsewhere it just opens) */
::view-transition-group(shot) { animation-duration: 0.36s; animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- plain pages (privacy, 404) ---------- */

.page__main { min-height: 100vh; padding-top: calc(var(--head-h) + 3rem); }
.prose { max-width: 44rem; }
.prose h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 1.8rem + 3vw, 4rem);
  line-height: 1.02;
  margin-bottom: 0.5rem;
}
.prose h2 { font-size: 1.6rem; margin: 2.2rem 0 0.5rem; }
.prose p { color: var(--bone-soft); max-width: 62ch; }
.prose a:not(.btn) { color: var(--gold); }
.prose__date { font-family: var(--ui); font-weight: 600; }
.prose__back { margin-top: 2.5rem; }
