/* Silent Partners.
   One typeface, one size, one weight. Hierarchy from position, spacing and two text colours only.
   Palette and wordmark come from /brand/brand.css (--sp-* tokens, .sp-wordmark); loaded first. */

:root {
  /* Media placeholder: a slightly darker mist, shown until a frame loads. */
  --placeholder: #E0E0E0;

  --font: var(--sp-text, "Helvetica Neue", Helvetica, Arial, sans-serif);
  --size: 13px;
  --line: 20px;

  --unit: 20px;
  --pad: 20px;
  --gutter: 20px;
  --fade: 0.3s;

  /* Safe-area insets (notch, Dynamic Island, home indicator); zero everywhere else. */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  /* Sets in a grid tile: each image fills most of the frame; the next one peeks in. */
  --tile-slide: 88%;
  --tile-gap: 6px;
  /* Sets in the case view: the gap between images, and the most of the screen's width one
     image may take, so its neighbours always show at the edges. */
  --set-gap: 20px;
  --set-fill: 0.72;
}

/* Phones, in either orientation: a landscape phone is wider than 639px but still a phone. */
@media (max-width: 639px), (pointer: coarse) and (max-height: 500px) {
  :root {
    --size: 14px;
    --line: 21px;
    --pad: 16px;
    --tile-gap: 4px;
    --set-gap: 10px;
    --set-fill: 0.76;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --fade: 0s; }
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--sp-mist);
}

body {
  margin: 0;
  background: var(--sp-mist);
  color: var(--sp-graphite);
  font-family: var(--font);
  font-size: var(--size);
  line-height: var(--line);
  font-weight: 400;
  font-synthesis: none;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, p, dl, dd, ul { margin: 0; padding: 0; font: inherit; }
i { font-style: italic; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* Text links and text buttons: 1px underline fading in on hover. */
.link,
.btn {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s;
}
/* Only where hover is real: on touch the underline would stick after a tap. */
@media (hover: hover) {
  .link:hover,
  .btn:hover { text-decoration-color: currentColor; }
}

/* Small secondary text is --sp-quiet (#676767, ~4.6:1 on mist), never steel: steel fails AA at 13px. */
.link[aria-current="page"] { color: var(--sp-quiet); }

/* A control with nowhere to go (a set's first or last image). */
.btn[aria-disabled="true"] { color: var(--sp-steel); cursor: default; text-decoration-color: transparent; }

:focus { outline: none; }
:focus-visible { outline: 1px solid var(--sp-graphite); outline-offset: 4px; }

.quiet { color: var(--sp-quiet); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- Bar */

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--unit);
  padding: var(--pad);
  padding-top: calc(var(--pad) + var(--safe-t));
  padding-left: calc(var(--pad) + var(--safe-l));
  padding-right: calc(var(--pad) + var(--safe-r));
}

.nav {
  display: flex;
  gap: var(--unit);
  white-space: nowrap;
}

/* Wordmark (brand.css .sp-wordmark): Michroma, nav size, in a fixed 20px box so the bar never shifts.
   20px is the smallest size that keeps the outline open; --sp-stroke is twice the visible outline
   (paint-order hides the inner half), so 2px reads as the reference's ~1px steel line. */
.wordmark {
  display: inline-flex;
  align-items: center;
  height: 20px;
  flex: none;
}
.wordmark .sp-wordmark {
  display: block;
  font-size: 20px;
  --sp-stroke: 2px;
}

/* Small phones: the 20px mark (~187px) and two links only just share the bar.
   Close the gap first; below 360px drop to 16px, which is under the outline's floor,
   so the mark goes solid (as .sp-wordmark--solid; the white on-media mark stays white). */
@media (max-width: 379px) {
  .bar { gap: 12px; }
}
@media (max-width: 359px) {
  .wordmark .sp-wordmark { font-size: 16px; -webkit-text-stroke: 0; }
  .wordmark .sp-wordmark:not(.sp-wordmark--on-media) { color: var(--sp-steel); }
}

/* Touch: every control is at least 44px to the finger. The padding is cancelled by an equal
   negative margin, so nothing moves and the text stays where it was; only the hit area grows.
   Phones have ~3px of spare width in the bar, so width comes from vertical reach and the
   gaps between links (the --unit gap is 20px; 6px a side stays clear of the neighbour). */
@media (pointer: coarse) {
  .nav .link { padding: 12px 6px; margin: -12px -6px; }
  .wordmark { height: 44px; padding: 12px 0; margin: -12px 0; }
  /* Inline links: vertical padding never moves an inline box; 16.5 + 28 = 44.5px.
     ("See our work" is set with the home rules below.) */
  .info .link { padding: 14px 5px; margin: 0 -5px; }
  /* Case view: the arrows and Sound sit on one line (landscape and desktop-shaped screens). */
  .pager .btn { padding: 12px 15px; margin: -12px -15px; }
  .media-ctl .btn { padding: 12px 8px; margin: -12px -8px; }
}

/* ---------------------------------------------------------------- Media frames */

.frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--placeholder);
}

.frame > img,
.frame > video,
.slide > img,
.slide > video,
.fit > img,
.fit > video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--fade);
}
.frame > .is-on,
.slide > .is-on,
.fit > .is-on { opacity: 1; }


/* ---------------------------------------------------------------- Sets (carousels) */

.track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-user-select: none;
  user-select: none;
}
.track::-webkit-scrollbar { display: none; }
.track.is-free { scroll-snap-type: none; }
.track .slide { position: relative; flex: none; background: var(--placeholder); }
.track img { -webkit-user-drag: none; }
@media (hover: hover) and (pointer: fine) {
  .track { cursor: grab; }
}
.track.is-dragging { cursor: grabbing; }

/* In a grid tile: the frame keeps its shape; the gaps between images show mist. */
.frame--set { background: none; }
.frame--set > .track {
  position: absolute;
  inset: 0;
  gap: var(--tile-gap);
}
.frame--set .slide {
  width: var(--tile-slide);
  height: 100%;
  overflow: hidden;
  scroll-snap-align: start;
}

/* ---------------------------------------------------------------- Home */

/* The film fills the viewport as it is now (dvh), so no strip of page shows under it when the
   toolbar retracts or a translucent tab bar floats over the bottom edge. 100vh for old engines. */
.page-home {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
/* Whatever still shows past the film (toolbar animation, overscroll, a translucent bar) reads
   as film, not as mist. */
html:has(> body.page-home) { background: var(--sp-graphite); }

/* The film runs full-bleed; the bar and the mission float over it. */
.hero {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* A soft scrim at the top edge, so the white wordmark and the link read over any frame. */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(160px + var(--safe-t));
  pointer-events: none;
  /* Holds at 0.56 through the bar's text (top 40px, below any status-bar inset): white over
     0.56 black stays at 4.5:1 or better even over a pure white frame, so the 13/14px links pass
     on every frame of the film, not just the poster. Then eases out to nothing by 160px. */
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.56) 0,
    rgba(0, 0, 0, 0.56) calc(44px + var(--safe-t)),
    rgba(0, 0, 0, 0.44) calc(64px + var(--safe-t)),
    rgba(0, 0, 0, 0.3) calc(84px + var(--safe-t)),
    rgba(0, 0, 0, 0.17) calc(106px + var(--safe-t)),
    rgba(0, 0, 0, 0.07) calc(130px + var(--safe-t)),
    rgba(0, 0, 0, 0) calc(160px + var(--safe-t)));
}

/* The same shade at the bottom edge, holding at 0.56 from the bottom up through the mission's
   seven lines (five, a blank line, "See our work"), then easing out over the same 116px. */
.hero::before {
  --hold: calc(var(--pad) + var(--safe-b) + var(--line) * 7 + 4px);
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: calc(var(--hold) + 116px);
  pointer-events: none;
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.56) 0,
    rgba(0, 0, 0, 0.56) var(--hold),
    rgba(0, 0, 0, 0.44) calc(var(--hold) + 20px),
    rgba(0, 0, 0, 0.3) calc(var(--hold) + 40px),
    rgba(0, 0, 0, 0.17) calc(var(--hold) + 62px),
    rgba(0, 0, 0, 0.07) calc(var(--hold) + 86px),
    rgba(0, 0, 0, 0) calc(var(--hold) + 116px));
}

/* Landscape phones: the two scrims would meet and grey out the whole film. Same 0.56 hold
   behind the text, eased out over a shorter run, so the middle of the frame stays clear. */
@media (orientation: landscape) and (max-height: 500px) {
  .hero::after {
    height: calc(96px + var(--safe-t));
    background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.56) 0,
      rgba(0, 0, 0, 0.56) calc(44px + var(--safe-t)),
      rgba(0, 0, 0, 0.44) calc(53px + var(--safe-t)),
      rgba(0, 0, 0, 0.3) calc(62px + var(--safe-t)),
      rgba(0, 0, 0, 0.17) calc(72px + var(--safe-t)),
      rgba(0, 0, 0, 0.07) calc(83px + var(--safe-t)),
      rgba(0, 0, 0, 0) calc(96px + var(--safe-t)));
  }
  .hero::before {
    height: calc(var(--hold) + 48px);
    background: linear-gradient(to top,
      rgba(0, 0, 0, 0.56) 0,
      rgba(0, 0, 0, 0.56) var(--hold),
      rgba(0, 0, 0, 0.44) calc(var(--hold) + 8px),
      rgba(0, 0, 0, 0.3) calc(var(--hold) + 17px),
      rgba(0, 0, 0, 0.17) calc(var(--hold) + 26px),
      rgba(0, 0, 0, 0.07) calc(var(--hold) + 36px),
      rgba(0, 0, 0, 0) calc(var(--hold) + 48px));
  }
}

.page-home .bar,
.mission {
  color: var(--sp-white);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}
.page-home .bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
}
.page-home :focus-visible { outline-color: var(--sp-white); }

/* The mission, bottom-left on its own five lines; "See our work" one blank line below. */
.mission {
  position: absolute;
  left: calc(var(--pad) + var(--safe-l));
  right: calc(var(--pad) + var(--safe-r));
  bottom: calc(var(--pad) + var(--safe-b));
  z-index: 2;
}
.mission span { display: block; }
.mission p + p { margin-top: var(--line); }
/* "See our work" is the one real button on the site: a white pill (after oem.care's),
   44px tall so it is also a full-size tap target. */
.see-work {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--sp-white);
  color: var(--sp-graphite);
  text-decoration: none;
  transition: background-color 0.2s;
}
@media (hover: hover) {
  .see-work:hover { background: var(--sp-mist); text-decoration-color: transparent; }
}

/* "Play" over the home film, only when the phone would not start it on its own. */
.hero-play {
  position: absolute;
  right: calc(var(--pad) + var(--safe-r));
  bottom: calc(var(--pad) + var(--safe-b));
  z-index: 3;
  padding: 12px 0;
  color: var(--sp-white);
  text-decoration-color: currentColor;
}

/* Desktop home (a fine pointer on a wide screen): the mission centred near the top, "See our
   work" on its own, centred near the bottom, so the film sits framed between them. Phones and
   tablets keep the mission bottom-left with the button under it. The top shade holds at 0.56
   through the mission (white text stays above 4.5:1 over a white frame), then eases out. */
@media (min-width: 768px) and (pointer: fine) {
  .page-home .mission {
    top: calc(var(--pad) * 4 + var(--safe-t) + 20px);
    bottom: auto;
    left: 0;
    right: 0;
    text-align: center;
  }
  .page-home .mission p + p { margin: 0; }
  .page-home .see-work {
    position: fixed;
    left: 50%;
    bottom: calc(48px + var(--safe-b));
    transform: translateX(-50%);
    z-index: 5;
  }
  .hero::after {
    height: calc(260px + var(--safe-t));
    background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.56) 0,
      rgba(0, 0, 0, 0.56) calc(190px + var(--safe-t)),
      rgba(0, 0, 0, 0) calc(260px + var(--safe-t)));
  }
  .hero::before {
    height: 160px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0, rgba(0, 0, 0, 0) 160px);
  }
}

.frame--fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 125%;
  aspect-ratio: auto;
}
/* Keep the film's burned-in subtitles (from ~84% down the frame) out of view at any screen shape.
   The frame runs 25% past the bottom edge (clipped by .hero), so cover never shows more than the
   top 80% of the film; the crop is anchored high within that. */
.frame--fill > img,
.frame--fill > video { object-position: 50% 15%; }

/* ---------------------------------------------------------------- Work */

.work {
  padding: 80px var(--pad) 160px;
  padding-left: calc(var(--pad) + var(--safe-l));
  padding-right: calc(var(--pad) + var(--safe-r));
}

.group + .group { margin-top: 200px; }

.grid {
  list-style: none;
  display: grid;
  column-gap: var(--gutter);
}

.grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* One list per row; rows sit 80px apart like rows inside one grid. */
.grid--four + .grid--four { margin-top: 80px; }

/* A row can mix 4:3 and 4:5 frames: they stand on one line and every caption starts on the
   line below it (each tile is a two-row subgrid: frame, caption). */
.grid--four > li {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
}
.grid--four > li > .tile { align-self: end; }
.grid--four > li > .cap { align-self: start; }

.tile { display: block; }

/* Caption: client, then title and year. A set's counter and arrows close the first line. */
.cap > span { display: block; }
/* Better line breaks in narrow columns; the words and their order are unchanged. */
.cap .quiet { text-wrap: pretty; }
li > .cap { margin-top: 10px; }
.cap > .cap-first {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.cap-ctl {
  display: flex;
  flex: none;
  gap: 10px;
  margin-left: auto;
  white-space: nowrap;
  color: var(--sp-quiet);
  font-variant-numeric: tabular-nums;
}
.arrows { display: flex; gap: 10px; }
.arrows .btn:not([aria-disabled="true"]) { color: var(--sp-quiet); }
/* Arrows are for a mouse; on touch the swipe and the peeking image say it all. */
@media (hover: none), (pointer: coarse) {
  .arrows { display: none; }
}

.status { color: var(--sp-quiet); }

@media (max-width: 767px) {
  .work { padding-top: 40px; padding-bottom: 120px; }
  .group + .group { margin-top: 120px; }
  .grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--four + .grid--four,
  .grid--four > li:nth-child(n+3) > .tile { margin-top: 40px; }
}

/* ---------------------------------------------------------------- Clients include */

/* Above the grid: "Clients include", then the clients' logos in graphite, each sized by eye
   so the three carry the same weight. */
.clients-include { margin-bottom: 80px; text-align: center; }
.clients-include p { margin: 0 0 var(--unit); }
/* Three columns around a centred middle: the middle logo sits exactly under the text,
   the outer two the same distance either side of it, whatever their widths. */
.logos { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 48px; list-style: none; margin: 0; padding: 0; }
.logos li:first-child { justify-self: end; }
.logos li:last-child { justify-self: start; }
.logo { display: block; padding: 8px 0; }
.logo img { display: block; width: auto; }
.logo--hover img { height: 30px; }
.logo--tory-burch img { height: 13px; }
.logo--philadelphia-eagles img { height: 21px; }
@media (max-width: 639px) {
  .clients-include { margin-bottom: 48px; }
  .logos { column-gap: 24px; }
  .logo--hover img { height: 24px; }
  .logo--tory-burch img { height: 10px; }
  .logo--philadelphia-eagles img { height: 16px; }
}
@media (max-width: 360px) {
  .logos { column-gap: 16px; }
  .logo--hover img { height: 20px; }
  .logo--tory-burch img { height: 8.5px; }
  .logo--philadelphia-eagles img { height: 14px; }
}

/* ---------------------------------------------------------------- Clients route */

/* clients.html: one large 4:5 tile per client, three side by side; stacked on phones.
   The caption is the client's name. */
.clients {
  padding: 80px var(--pad) 160px;
  padding-left: calc(var(--pad) + var(--safe-l));
  padding-right: calc(var(--pad) + var(--safe-r));
}

.grid--clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* A client's grid (work.html?client=…): its name, quiet, then the way back to all of them. */
.work-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--unit);
  margin-bottom: 40px;
}
.work-head .link { flex: none; white-space: nowrap; }

@media (pointer: coarse) {
  .work-head .link { padding: 12px 6px; margin: -12px -6px; }
}

@media (max-width: 767px) {
  .clients { padding-top: 40px; padding-bottom: 120px; }
  .work-head { margin-bottom: 20px; }
}
/* Stacked only where the screen is narrow and upright (as the case view decides); a phone on
   its side keeps the three side by side, so all three clients are on screen at once. */
@media (max-width: 767px) and (orientation: portrait), (max-width: 479px) {
  .grid--clients { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  /* All three clients on the first screen: each tile is a third of what is left after the
     bar and captions, cropped wide. */
  .grid--clients .frame { aspect-ratio: auto; height: max(96px, calc((100svh - 300px) / 3)); }
  /* Wide crops of tall pieces keep the upper part, where the subject usually is. */
  .grid--clients .frame > img, .grid--clients .frame > video { object-position: 50% 28%; }
  .grid--clients .cap { display: flex; justify-content: space-between; gap: var(--unit); }
}

/* ---------------------------------------------------------------- Case */

/* One screen: the bar and the meta take what they need (caption lines, safe-area insets
   included) and the stage takes the rest, so the page never scrolls. */
.page-case {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}
.page-case > .bar { flex: none; }
.viewer {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.meta { flex: none; }

/* The media box. Size containment lets each piece compute "contain" in CSS; its size comes
   from the flex layout above. Pinch-zoom stays on, so a still can be looked at closely. */
.stage {
  flex: 1 1 0;
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 0 var(--pad);
  padding-left: calc(var(--pad) + var(--safe-l));
  padding-right: calc(var(--pad) + var(--safe-r));
  container-type: size;
  touch-action: pan-y pinch-zoom;
}
.stage[role="button"] { cursor: pointer; }
.stage:focus-visible { outline-offset: -1px; }

/* One piece: exactly the media's own frame, as large as the stage allows, never cropped. */
.fit {
  --ar: 4 / 5;
  grid-area: 1 / 1;
  position: relative;
  aspect-ratio: var(--ar);
  width: min(100cqw, calc(100cqh * (var(--ar))));
  background: var(--placeholder);
}

/* A set: edge to edge, so the neighbours run off the screen. Every image shares one height
   (--h): the stage's, or less if the set's widest image would leave no room for its
   neighbours. Each keeps its own ratio, never cropped. The current one snaps to the centre
   axis, where a single piece hangs; the end spacers let the first and last get there.
   script.js sets --armax (widest ratio) and --ar0 / --arN (first and last ratios). */
.stage--set {
  padding-left: 0;
  padding-right: 0;
  touch-action: auto;
}
.stage > .track {
  --h: min(calc(100cqh - 8px), calc(100cqw * var(--set-fill) / var(--armax, 0.8)));
  grid-area: 1 / 1;
  justify-self: stretch;
  position: relative;
  align-items: center;
  gap: var(--set-gap);
  padding: 4px 0; /* room for the focus outline */
}
.stage > .track::before,
.stage > .track::after {
  content: "";
  flex: none;
  align-self: stretch;
  width: max(0px, calc((100cqw - var(--h) * var(--ar0, 0.8)) / 2 - var(--set-gap)));
}
.stage > .track::after { width: max(0px, calc((100cqw - var(--h) * var(--arN, 0.8)) / 2 - var(--set-gap))); }
.stage > .track > .slide {
  --ar: 4 / 5;
  height: var(--h);
  width: calc(var(--h) * (var(--ar)));
  scroll-snap-align: center;
}
.stage > .track:focus-visible { outline: none; }
.stage > .track:focus-visible > .is-current { outline: 1px solid var(--sp-graphite); outline-offset: 3px; }

.meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  column-gap: var(--gutter);
  padding: var(--unit) var(--pad);
  padding-bottom: calc(var(--unit) + var(--safe-b));
  padding-left: calc(var(--pad) + var(--safe-l));
  padding-right: calc(var(--pad) + var(--safe-r));
}

.cap-wrap { grid-column: 1; grid-row: 1; min-width: 0; }

.pager {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  gap: var(--unit);
  white-space: nowrap;
}

.count,
.time {
  color: var(--sp-quiet);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.count {
  min-width: 3.5em;
  text-align: center;
}
.count:empty { min-width: 0; }

/* Bottom right: time left in the film, then Sound. */
.media-ctl {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

/* Portrait phones (and very narrow windows): the pager gets its own row above the caption.
   Landscape phones keep the one-row meta, so the film gets the height. */
@media (max-width: 767px) and (orientation: portrait), (max-width: 479px) {
  .meta {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: var(--unit);
    padding-top: var(--unit);
    padding-bottom: calc(var(--pad) + var(--safe-b));
  }
  .pager { grid-column: 1 / -1; grid-row: 1; justify-content: space-between; }
  .cap-wrap { grid-column: 1; grid-row: 2; }
  .media-ctl { grid-column: 2; grid-row: 2; }
}
/* There the arrows' row and Sound's row are 41px apart, so their 44px reaches are offset
   (arrows up, Sound down) rather than centred, and never overlap. */
@media (pointer: coarse) and (max-width: 767px) and (orientation: portrait),
       (pointer: coarse) and (max-width: 479px) {
  .pager .btn { padding: 14px 15px 9px; margin: -14px -15px -9px; }
  .media-ctl .btn { padding: 9px 8px 14px; margin: -9px -8px -14px; }
}

/* Landscape phones: a tighter bar and meta, so the film gets the height. 12px still holds
   each control's 44px reach inside its own row (12 + 21 + 12), clear of the film. */
@media (orientation: landscape) and (max-height: 500px) {
  .page-case > .bar {
    padding-top: calc(12px + var(--safe-t));
    padding-bottom: 12px;
  }
  .meta {
    padding-top: 12px;
    padding-bottom: calc(12px + var(--safe-b));
  }
}

/* ---------------------------------------------------------------- Information */

.info {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding: 160px var(--pad);
  padding-left: calc(var(--pad) + var(--safe-l));
  padding-right: calc(var(--pad) + var(--safe-r));
}

.info .text {
  grid-column: 7 / span 6;
  max-width: 560px;
}

@media (max-width: 1023px) {
  .info .text { grid-column: 4 / span 9; }
}

@media (max-width: 767px) {
  .info { padding-top: 80px; padding-bottom: 120px; }
  .info .text { grid-column: 1 / -1; }
}

/* The New York clock on the Information page: tabular figures so it never jitters. */
.nyc-time { font-variant-numeric: tabular-nums; }

/* The founder's photo on the Information page: small, between the founder line and the city. */
.founder { display: block; width: 320px; max-width: 100%; height: auto; margin: 10px 0; background: var(--placeholder); }
/* Services: a quiet label, then one service per line. */
.services p { margin: 0; }
.services ul { list-style: none; margin: 0; padding: 0; }
.info strong { font-weight: 700; }
.info .gap { margin-top: var(--line); }
@media (max-width: 639px) {
  .founder { width: 75%; }
}

/* ?debug=1 only: what the device reports, for diagnosing playback on phones. */
.debug {
  position: fixed; left: 8px; right: 8px; top: 72px; z-index: 100; margin: 0; padding: 8px;
  background: rgba(0, 0, 0, 0.82); color: #fff; font: 10px/14px ui-monospace, Menlo, monospace;
  white-space: pre-wrap; word-break: break-all; pointer-events: none;
}
