/* ---------- Tokens ---------- */
:root {
  --brown: #3A2A1F;   /* About / CV text, lines, details */
  --white: #ffffff;
  --black: #000000;
  --glass: rgba(46, 32, 22, 0.55);        /* warm dark brown: control pill, sound button */
  --glass-line: rgba(255, 232, 205, 0.14); /* warm hairline on brown glass */
  --header-bg: rgba(46, 32, 22, 0.7);     /* header: dark brown, 30% see-through */
  --brown-hover: rgba(70, 50, 35, 0.75);
  --warm-white: rgba(255, 236, 214, 0.12); /* button hover on brown */

  --sans: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display: "Archivo", "Inter", system-ui, sans-serif;   /* your name: Archivo Expanded ExtraBold */

  --gutter: 16px;
  --dock-bottom: clamp(20px, 5vh, 48px);  /* gap between controls and the bottom edge */
  --header-h: 56px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 40px;
    --header-h: 60px;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--black);
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;     /* Intro → Films → About, one screen per scroll */
  overscroll-behavior-x: none;       /* no browser back-swipe while browsing videos */
}

body {
  background: var(--white);
  color: var(--brown);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* ---------- Header: dark glass, white text ---------- */
.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 10px var(--gutter);
  padding-top: max(10px, env(safe-area-inset-top));
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  color: var(--white);
  line-height: 1;
  text-transform: uppercase;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Playing: header slides away */
body.is-playing.is-idle .masthead {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.masthead__left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
}

/* Small social icons next to the name */
.masthead__social {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.masthead__social a {
  display: block;
  padding: 6px;
  margin: -6px;
  color: var(--white);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.masthead__social a:hover { opacity: 1; }
.masthead__social svg { display: block; }

.masthead__copied { font-size: 10px; }

/* Phones: icons go under the name so the section links still fit */
@media (max-width: 560px) {
  .masthead__left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
  .masthead__copied { display: none; }
}

.masthead__id {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-decoration: none;
}

.masthead__name {
  font-family: var(--display);
  font-size: 13px;
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.masthead__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0.75;
}

.masthead__nav {
  display: flex;
  gap: 1.1rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}
.masthead__nav a {
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
  padding: 10px 0;
}
.masthead__nav a:hover { opacity: 1; }

@media (min-width: 768px) {
  .masthead__name { font-size: 14px; }
  .masthead__tag { font-size: 11px; }
  .masthead__nav { gap: 2rem; font-size: 11px; }
}

/* ---------- Intro: first slide of the archive ---------- */
.slide--hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

/* Cinema mode (5 s without input on the intro): only the reel. Moving the mouse brings it all back. */
.hero__content,
.hero__shade,
.hero__sound { transition: opacity 0.7s ease; }

.stage.is-cinema { cursor: none; }
.stage.is-cinema .hero__content,
.stage.is-cinema .dock,
.stage.is-cinema .edgenav {
  opacity: 0;
  pointer-events: none;
}
/* the sound button fades too, but stays tappable: on phones the first tap must turn sound on, not just wake the page */
.stage.is-cinema .hero__sound,
.stage.is-cinema .hero__sound-label { opacity: 0; }
.stage.is-cinema .hero__shade { opacity: 0.3; }   /* lift most of the dimming so the footage plays clean */
body.is-cinema .masthead {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

/* On the intro: no film overlays and no player bar, only dots, hint and arrow */
.stage.on-hero .stage__dim,
.stage.on-hero .details,
.stage.on-hero .bigplay,
.stage.on-hero .controls {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.stage.on-hero .hint.is-gone { opacity: 0.75; }

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;             /* background reel fills the screen */
  opacity: 0;                    /* hard cuts: no fade */
}
.hero__video.is-on { opacity: 1; }

.hero__shade {
  position: absolute;
  inset: 0;
  /* even dim with a soft darker centre behind the text */
  background:
    radial-gradient(ellipse 60% 45% at 50% 50%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2) 35%, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0.45));
}

/* Name, title and intro centred on the screen */
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--header-h) var(--gutter) calc(var(--dock-bottom) + 4.5rem);
  text-align: center;
}

.hero__tag {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 1.25rem;
}

.hero__name {
  font-family: var(--display);
  font-size: clamp(1.84rem, 5.28vw, 5.4rem);   /* 20% smaller than before */
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
  text-wrap: balance;
}

.hero__intro {
  margin-top: 1.5rem;
  max-width: 46em;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;
  opacity: 0.72;
  white-space: pre-line;   /* a new line in the intro text (\n in site.json) starts a new line here */
}

/* Sound toggle, bottom right */
.hero__sound {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--dock-bottom) + env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s;
}
.hero__sound:hover { background: var(--brown-hover); }

/* On arrival: a soft ring pulses out of the sound button 4 times, nudging people to turn the montage up */
.hero__sound {
  animation: sound-beat 1.6s ease-out 1.2s 3;       /* the button itself swells and warms on each pulse */
}
.hero__sound::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 240, 225, 0.95);
  box-shadow: 0 0 18px rgba(255, 220, 185, 0.6);
  opacity: 0;
  pointer-events: none;
  animation: sound-pulse 1.6s ease-out 1.2s 3;
}
.hero__sound[aria-pressed="true"],
.hero__sound[aria-pressed="true"]::after { animation: none; }   /* sound already on: stop nudging */

/* Small caps label to the left of the sound button; gone once sound is on */
.hero__sound-label {
  position: absolute;
  right: calc(var(--gutter) + 62px);
  bottom: calc(var(--dock-bottom) + env(safe-area-inset-bottom));
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 0.3s ease;
  /* fades away as the 3rd pulse ends (1.2 s delay + 3 × 1.6 s) */
  animation: sound-label-out 0.8s ease 6s forwards;
}
.hero__sound-label:hover { opacity: 1; }

@keyframes sound-label-out {
  to { opacity: 0; visibility: hidden; }
}
.hero__sound[aria-pressed="true"] + .hero__sound-label {
  opacity: 0;
  pointer-events: none;
}

@keyframes sound-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}
@keyframes sound-beat {
  0% { transform: scale(1); }
  15% { transform: scale(1.14); background: rgba(120, 86, 60, 0.85); box-shadow: 0 0 22px rgba(255, 220, 185, 0.45); }
  45%, 100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__sound,
  .hero__sound::after { animation: none; }
}


/* ---------- Video stage: full screen, browsed sideways ---------- */
.stage {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  scroll-snap-align: start;
}
.stage.is-idle { cursor: none; }

.track {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;      /* one video per swipe */
}

.slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;           /* whole film visible, black around other aspect ratios */
  background: var(--black);
}

/* Paused: dim the video, a little darker toward the text */
.stage__dim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 60%),
    rgba(0, 0, 0, 0.35);
  transition: opacity 0.5s ease;
}
.stage.is-playing.is-idle .stage__dim { opacity: 0; }

/* ---------- Details (title / how it was made / tools), shown while paused ---------- */
.details {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--dock-bottom) + 9rem);
  max-width: 42rem;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.stage.is-playing.is-idle .details {
  opacity: 0;
  transform: translateY(10px);
}

.details__meta {
  display: flex;
  gap: 1.2rem;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.details__title {
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.details__text {
  margin-top: 0.9rem;
  font-size: 15px;
  line-height: 1.55;
  max-width: 40em;
  opacity: 0.9;
  white-space: pre-line;   /* line breaks (\n) in a description start a new line */
}

.details__made {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.details__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

.details__tools {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.details__tools li {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

@media (max-height: 520px) {
  .details { bottom: calc(var(--dock-bottom) + 7.5rem); }
  .details__text { display: none; }
}

/* ---------- Big play button (paused) ---------- */
.bigplay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 232, 205, 0.5);
  background: rgba(58, 42, 31, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--white);
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
}
.bigplay svg { margin-left: 3px; }  /* optical centring of the triangle */
.bigplay:hover { background: var(--brown-hover); }
.stage.is-playing .bigplay {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

@media (max-width: 600px) {
  .bigplay { top: 36%; }
}

/* ---------- Side arrows ---------- */
.edgenav {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  background: rgba(46, 32, 22, 0.45);
  color: var(--white);
  cursor: pointer;
  transition: opacity 0.3s ease, background 0.2s;
}
.edgenav:hover { background: var(--brown-hover); }
.edgenav--prev { left: max(12px, calc(var(--gutter) - 16px)); }
.edgenav--next { right: max(12px, calc(var(--gutter) - 16px)); }
.edgenav:disabled { opacity: 0; pointer-events: none; }

@media (max-width: 600px) {
  .edgenav { width: 40px; height: 40px; margin-top: -20px; }
}

/* ---------- Dock: navigator + controls, centred a bit above the bottom ---------- */
.dock {
  position: absolute;
  left: 50%;
  bottom: calc(var(--dock-bottom) + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(620px, 100% - 2 * var(--gutter));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: opacity 0.35s ease;
  pointer-events: none;   /* the dock's empty area must not block taps (e.g. the intro's sound button on phones) */
}
.dock .dots,
.dock .controls { pointer-events: auto; }

/* Playing and the mouse is still: controls and arrows fade out */
.stage.is-idle .dock,
.stage.is-idle .edgenav {
  opacity: 0;
  pointer-events: none;
}

.navigator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.dot {
  width: 22px;
  height: 22px;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.3s ease, background 0.3s ease;
}
.dot:hover::before { background: rgba(255, 255, 255, 0.8); }
.dot[aria-current="true"]::before {
  width: 20px;
  background: var(--white);
}

.hint {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.5s ease;
  text-align: center;
}
.hint kbd {
  display: inline-block;
  min-width: 20px;
  padding: 3px 4px;
  margin-right: 4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  font-family: inherit;
  font-size: 10px;
  text-align: center;
}
.hint kbd + kbd { margin-right: 8px; }
.hint.is-gone,
.stage.is-playing .hint { opacity: 0; }

/* 5 s after arrival the hint fades out (1 s), back in (1 s), then rests visible for 3 s. Forever.
   Animated on the inner text, so it can never show through while the hint itself is hidden. */
.hint > span { animation: hint-breathe 5s ease-in-out 5s infinite; }
@keyframes hint-breathe {
  0% { opacity: 1; }
  20% { opacity: 0; }       /* 1 s: fade out */
  40% { opacity: 1; }       /* 2 s: back in */
  100% { opacity: 1; }      /* 3 s pause */
}
@media (prefers-reduced-motion: reduce) {
  .hint > span { animation: none; }
}

.hint__coarse { display: none; }
@media (hover: none) and (pointer: coarse) {
  .hint__fine { display: none; }
  .hint__coarse { display: inline; }
}

/* The control pill */
.controls {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--glass-line);
}

.ctrl {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s;
}
.ctrl:hover { background: var(--warm-white); }

.time {
  flex: none;
  min-width: 3.4em;
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  opacity: 0.85;
}

.seek {
  --p: 0%;
  flex: 1;
  min-width: 0;
  height: 24px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.seek:focus-visible { outline-offset: 2px; }
.seek::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background:
    linear-gradient(var(--white), var(--white)) 0 0 / var(--p) 100% no-repeat,
    rgba(255, 255, 255, 0.28);
}
.seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--white);
}
.seek::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); }
.seek::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--white); }
.seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--white); }

@media (max-width: 420px) {
  .time--dur { display: none; }
}

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

/* ---------- About / CV / Contact ---------- */
.info:not(:empty) {
  scroll-snap-align: start;
  padding: 0 var(--gutter);
  background: var(--white);
}

.info__inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(2.5rem, 10vh, 6rem)) 0 clamp(3rem, 10vh, 6rem);
}

.section {
  border-top: 1px solid var(--brown);   /* hairline */
  padding: 1.5rem 0 4.5rem;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

/* Scene-heading labels */
.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2.25rem;
}

/* About: photo + text (stacked on phones, side by side on wider screens) */
.about {
  display: grid;
  gap: 1.75rem;
}

.about__photo {
  display: block;
  width: 60%;
  max-width: 15rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brown);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.about__text p {
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  line-height: 1.55;
  max-width: 34em;
}
.about__text p + p { margin-top: 1em; }

/* CV: years | role + place | tags */
.cv__group + .cv__group { margin-top: 3rem; }

.cv__heading {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.cv__list { list-style: none; }

.cv__row {
  display: grid;
  grid-template-columns: 5.75rem 1fr;
  column-gap: 1rem;
  row-gap: 0.4rem;
  padding: 0.9rem 0;
  font-size: 15px;
  line-height: 1.45;
}
.cv__row + .cv__row { border-top: 1px solid rgba(58, 42, 31, 0.15); }  /* same brown, faint */

.cv__years { font-variant-numeric: tabular-nums; }

.cv__what { display: flex; flex-direction: column; }
.cv__role { font-weight: 500; }
.cv__desc { margin-top: 0.3rem; font-size: 14px; opacity: 0.7; max-width: 32em; }

.cv__tags {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.cv__tags:empty { display: none; }

/* Contact: label and icons on one row */
.section--contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
  padding-bottom: 0;
}
.section--contact .label { margin-bottom: 0; }

.social {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}
.social a {
  display: block;
  padding: 6px;
  margin: -6px;
  color: var(--brown);
  transition: opacity 0.2s;
}
.social a:hover { opacity: 0.6; }
.social svg { display: block; }

.copied {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.copied.is-on { opacity: 1; }

@media (min-width: 768px) {
  .about {
    grid-template-columns: 13rem 1fr;
    gap: 2.5rem;
    align-items: start;
  }
  .about__photo { width: 100%; }
  .details { max-width: min(42rem, calc(50vw - var(--gutter) - 64px)); }
  .about__text p { font-size: 15px; line-height: 1.5; max-width: none; }

  .cv__row {
    grid-template-columns: 7.5rem 1fr 15rem;
    align-items: baseline;
  }
  .cv__tags {
    grid-column: 3;
    justify-content: flex-end;
    text-align: right;
  }
}

/* ---------- Phones: room for longer film descriptions ---------- */
@media (max-width: 600px) {
  /* swipe + dots do the browsing on films; arrows only on the intro */
  .stage:not(.on-hero) .edgenav { display: none; }
  /* play button sits centred under "Made with", above the dots */
  .bigplay {
    top: auto;
    bottom: calc(var(--dock-bottom) + env(safe-area-inset-bottom) + 8.5rem);
    width: 60px;
    height: 60px;
    margin: 0 0 0 -30px;
  }
  .details { bottom: calc(var(--dock-bottom) + env(safe-area-inset-bottom) + 8.5rem + 60px + 1.25rem); }
}
/* short phones: slightly smaller film text so long descriptions clear the header */
@media (max-width: 600px) and (max-height: 700px) {
  .details__meta { margin-bottom: 0.7rem; }
  .details__title { font-size: 1.5rem; }
  .details__text { font-size: 14px; line-height: 1.45; margin-top: 0.6rem; }
  .details__made { margin-top: 0.8rem; }
}
@media (max-width: 420px) {
  .masthead__tag { white-space: nowrap; font-size: 9px; letter-spacing: 0.14em; }
  .masthead__nav { gap: 0.8rem; font-size: 9.5px; letter-spacing: 0.12em; }
}
