/*
 * Brandfell, «Fire, salt, time» — a page played from footage, and a page that travels
 * (tickets/SC-48.md; the footage, the words and the colours are those of ../prototype-film, SC-30).
 *
 * This sheet is written in two halves.
 *
 * First, the page as it is without the script, or where motion is not wanted: every shot
 * is a screen of its own — its still, its words at the foot of it — and between the scenes
 * lie the blocks of the page: the three words of the house, the cut's three things, the
 * last line.
 *
 * Then (html.live, set before the first paint when the film will play) the page becomes
 * five short scenes with real scroll between them:
 *   .act        as tall as its scene is pinned for, plus one screen (--pin, set by the script)
 *   .stage      the scene: a sticky screen. The page brings it in from below, holds it
 *               and carries it away upwards
 *     .frame      the picture: the first frame of the scene (.poster) until the film is
 *                 there, then the footage (.screen, a canvas of its own in every scene).
 *                 In scene 2 it is a band across the ember, in scene 4 a window in the
 *                 amber (clip-path, set by the script): both open to the whole screen,
 *                 and the window closes again
 *     .leaders    the line from a name to its thing
 *   .cue        the words of a scene lie on the page, not on the scene: they come from
 *               below and leave upwards with the scroll while the picture stands pinned
 *   .block      what lies between two scenes and scrolls as any page does. A block that
 *               follows a flood lies over the end of the scene before it, so its word
 *               rises on the colour while that still stands pinned
 *   .bar        the name and the acts of the story, fixed over all of it
 * After the film, in the flow of the page: .foot — the board, washed.
 *
 * The words take their ink from what lies under them (data-tone): cream on the dark of
 * the room, on the ember and on black ("night"), black on the amber ("day").
 *
 * The colours of the house (tickets/SC-30.md): black #0b0b0b, ember #d1462f, amber #f2c078.
 */

:root {
  --ease-camera: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-text: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 2.6vw, 40px);

  --black: #0b0b0b;
  --ember: #d1462f;
  --amber: #f2c078;
  --cream: #f6ead8;

  /* The house's own pair. Bodoni Moda — the letters of its brass sign — for every large
     word; Manrope for everything small. The studio's faces (Unbounded, Onest) are in the
     studio's lime corner and nowhere else. */
  --face-display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --face-text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --face-studio-display: "Unbounded", "Arial Black", Arial, sans-serif;
  --face-studio-text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  background: #0b0b0b;
  color: #f6ead8;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: #f6ead8;
  font-family: var(--face-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
}

p,
h1,
h2,
h3,
ol,
ul {
  margin: 0;
  padding: 0;
}

/*
 * ——— The page without the film: seven stills and their words ———
 */

.stage {
  position: relative;
  isolation: isolate;

  /* Cream: the ink of every word until something says otherwise. */
  --ui: #f6ead8;
  --ui-dim: rgb(246 234 216 / 0.82);
  --under: #0b0b0b;
  --plate: rgb(11 11 11 / 0.62);
}

.stage,
.acts,
.hint {
  display: none;
}

.bar {
  position: absolute;
  top: var(--gutter);
  left: var(--gutter);
  right: var(--gutter);
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  color: #f6ead8;
  line-height: 1;
}

/* The name as it stands over the kitchen: spaced capitals. */
.brand {
  position: relative;
  isolation: isolate;
  padding-top: 6px;
  color: var(--ui);
  font-family: var(--face-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  /* Small: the sturdy cut of the face, its hairlines kept. */
  font-variation-settings: "opsz" 11;
  transition: color 300ms linear;
}

/* It passes over firelight and over black alike: it carries its own soft plate. */
.brand::before {
  content: "";
  position: absolute;
  inset: -22px -36px;
  z-index: -1;
  background-image: radial-gradient(closest-side, var(--plate), rgb(0 0 0 / 0));
  pointer-events: none;
  transition: opacity 200ms linear;
}

/* Over a flood, or on the colour of the page, the name and the acts lie on one colour: they need no plate. */
.bar.is-bare .brand::before,
.bar.is-bare .acts::before {
  opacity: 0;
}

/* A shot: its still fills a screen, its words stand at the foot of it. */
.shot {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px 28px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 96px var(--gutter) clamp(28px, 6vh, 64px);
  overflow: hidden;
  isolation: isolate;
}

.still {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
}

.still img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Under the words a still is darker, so the cream reads on any of the seven. */
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(to top, rgb(11 11 11 / 0.88), rgb(11 11 11 / 0.5) 28%, rgb(11 11 11 / 0) 58%);
  pointer-events: none;
}

.cue {
  position: relative;
  color: var(--ui);
}

.line {
  display: block;
  overflow: hidden;
  padding: 0.06em 0.08em 0.2em 0;
  margin: -0.06em 0 -0.2em;
}

.line > span {
  display: block;
  width: -webkit-fit-content;
  width: fit-content;
}

/* Words that lie over the footage are cut a little sturdier than the face would cut them at their size. */
.title,
.cue-caption,
.final-title {
  font-variation-settings: "opsz" 40;
}

/* The line of the first screen. */
.title {
  font-family: var(--face-display);
  font-size: clamp(40px, 5.6vw, 92px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

/* A still with no words is left as it was shot. */
.shot[data-words="none"]::after {
  content: none;
}

/* A word tied to a thing of the picture. */
.cue-caption {
  font-family: var(--face-display);
  font-size: clamp(32px, 3.9vw, 62px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.04;
  white-space: nowrap;
}

.final-title {
  font-family: var(--face-display);
  font-size: clamp(40px, 5.2vw, 86px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.02;
  white-space: nowrap;
}

/* The button: a capsule of ember, its arrow in a round of black. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  height: 60px;
  margin-top: clamp(20px, 3.4vh, 36px);
  padding: 6px 6px 6px 28px;
  border-radius: 999px;
  background-color: #d1462f;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms linear;
}

.pill:hover {
  background-color: #b93a25;
}

.pill:focus-visible {
  outline: 2px solid #f6ead8;
  outline-offset: 3px;
}

.pill-round {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #0b0b0b;
  color: #f2c078;
}

.pill-round svg,
.studio svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms var(--ease-camera);
}

.pill:hover .pill-round svg,
.pill:focus-visible .pill-round svg {
  transform: translate3d(4px, 0, 0);
}

/*
 * The blocks of the page, between the scenes. Each lies on one of the house's three colours.
 */

.block {
  position: relative;
  overflow: hidden;
  background-color: var(--field);
  color: #f6ead8;
}

[data-field="ember"] {
  --field: #d1462f;
}

[data-field="night"] {
  --field: #0b0b0b;
}

[data-field="amber"] {
  --field: #f2c078;
}

.block[data-field="amber"] {
  color: #0b0b0b;
}

/* A word of the house. */
.block-word {
  padding: clamp(40px, 9vh, 96px) var(--gutter);
}

.word {
  font-family: var(--face-display);
  font-size: clamp(56px, 8vw, 128px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.92;
}

/* The cut's three things. */
.block-run {
  padding: clamp(36px, 8vh, 84px) var(--gutter);
}

.run {
  font-family: var(--face-display);
  font-size: clamp(32px, 3.9vw, 62px);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 40;
  line-height: 1.1;
}

/* Without the film the row says its line once. */
.run span[aria-hidden] {
  display: none;
}

/* The last line and its button. */
.block-final {
  padding: clamp(44px, 10vh, 110px) var(--gutter) clamp(40px, 8vh, 90px);
}

/*
 * ——— The film: five scenes, and the page between them ———
 */

/* The ink of the words over the footage. */
.live [data-tone="night"] {
  --ui: #f6ead8;
  --ui-dim: rgb(246 234 216 / 0.82);
  --under: #0b0b0b;
  --plate: rgb(11 11 11 / 0.62);
}

.live [data-tone="day"] {
  --ui: #0b0b0b;
  --ui-dim: rgb(11 11 11 / 0.82);
  --under: #f6ead8;
  --plate: rgb(246 234 216 / 0);
}

.live .bar {
  position: fixed;
  transition: opacity 320ms var(--ease-camera);
}

/* Nothing of a scene makes the page wider than the screen: a soft plate under riding words may reach past its edge. */
.live .film {
  overflow-x: clip;
}

.live .bar.is-away {
  opacity: 0;
  pointer-events: none;
}

/* A scene's part of the page is as tall as the scene is pinned for, and the screen the scene itself takes. */
.live .act {
  position: relative;
  z-index: 0;
  height: calc((1 + var(--pin, 1)) * 100vh);
  height: calc((1 + var(--pin, 1)) * 100svh);
}

/* A window rides in under the foot of the word before it: the block ends on the window's own margin. */
.live .act[data-act="coals"],
.live .act[data-act="grate"] {
  margin-top: -17vh;
  margin-top: -17svh;
}

.live .stage {
  position: sticky;
  top: 0;
  z-index: 0;
  display: block;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background-color: var(--field, #0b0b0b);
}

.live .frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #0b0b0b;
}

.live .poster {
  position: absolute;
  inset: 0;
  display: block;
}

/* Until the script has laid it exactly where the film will lie, the first frame covers its scene. */
.live .poster img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* A canvas is shown from its first drawing on: before that the first frame of the scene stands there. */
.live .screen {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  visibility: hidden;
}

.live .screen.is-painted {
  visibility: visible;
}

/* A shot is no longer a box: its words lie on the page of its scene. */
.live .shot {
  position: static;
  display: block;
  min-height: 0;
  padding: 0;
  overflow: visible;
  isolation: auto;
}

.live .shot::after {
  content: none;
}

.live .still {
  display: none;
}

.live .leaders {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/*
 * A line that is off is not drawn at all. Its dashes are of no length then, yet WebKit
 * still draws their round caps — a dot was left where every hidden line begins.
 */
.leader {
  visibility: hidden;
  transition: visibility 0s linear 200ms;
}

.leader.is-on {
  visibility: visible;
  transition: visibility 0s linear 0s;
}


/* A line: a hair of the word's ink over a wider one of the other tone, a ring where it lands. */
.leader path {
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 160ms var(--ease-camera);
}

.leader path.casing {
  stroke: var(--under);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0.42;
}

.leader path.stroke {
  stroke: var(--ui);
  stroke-width: 1.5;
}

.leader circle {
  opacity: 0;
  transition: opacity 160ms linear;
}

.leader circle.casing {
  fill: var(--under);
}

.leader .dot {
  fill: var(--ui);
}

.leader .ring {
  fill: none;
  stroke: var(--ui);
  stroke-width: 1.5;
}

.leader.is-on path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 380ms var(--ease-text) 40ms;
}

.leader.is-on circle.casing {
  opacity: 0.42;
  transition: opacity 180ms linear 240ms;
}

.leader.is-on .dot {
  opacity: 1;
  transition: opacity 180ms linear 240ms;
}

.leader.is-on .ring {
  opacity: 0.85;
  transition: opacity 200ms linear 300ms;
}

/*
 * The words of a scene. They are set on the page — on the scene's part of it, which is
 * taller than the screen — so the scroll itself brings them up from below and carries
 * them off at the top, over a picture that stands pinned.
 */
.live .cue {
  position: absolute;
  z-index: 3;
  isolation: isolate;
  pointer-events: none;
  transition:
    color 300ms linear,
    visibility 0s linear 0s;
}

.live .cue:not(.is-on) {
  visibility: hidden;
  transition:
    color 300ms linear,
    visibility 0s linear 340ms;
}

/* A line comes up from under a mask and leaves the way it came. */
.live .cue .line > span,
.live .phrase .line > span {
  transform: translate3d(0, 124%, 0);
  transition: transform 280ms var(--ease-camera);
}

.live .cue.is-on .line > span {
  transform: none;
  transition: transform 640ms var(--ease-text) calc(var(--i, 0) * 80ms + 80ms);
}

/* Under a block of words the picture is one soft plate of the block's own tone: no glow round every letter. */
.live .cue::before {
  content: "";
  position: absolute;
  inset: -64% -30%;
  z-index: -1;
  background-image: radial-gradient(closest-side, var(--plate), rgb(0 0 0 / 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms linear;
}

.live .cue.is-on::before {
  opacity: 1;
  transition: opacity 520ms linear 80ms;
}

/* The line of the first screen stands in its corner and goes up with the page from the first turn of the wheel. */
.live .cue-opening {
  /* Set by the script: the words fade just before they would ride up under the header. */
  opacity: var(--fade, 1);
  left: var(--gutter);
  bottom: calc(var(--pin, 1) * 100vh + var(--gutter) + 2px);
  bottom: calc(var(--pin, 1) * 100svh + var(--gutter) + 2px);
}

/*
 * A name tied to a thing of the picture: it rides up its side of the page (`--at`, set by
 * the script: it crosses its line of the screen as its second of the film comes), and
 * while it passes a line ties it to its thing.
 */
.live .note {
  top: calc(var(--at, 0.6) * 100vh);
  top: calc(var(--at, 0.6) * 100svh);
  /* A name waits dimmer below its line; it is lit when it crosses it and is tied to its thing. */
  --lit: 0.62;
  opacity: calc(var(--fade, 1) * var(--lit));
  transform: translate3d(0, -50%, 0);
  transition:
    color 300ms linear,
    opacity 240ms linear,
    visibility 0s linear 0s;
}

.live .note.is-now {
  --lit: 1;
}

/* Each where its frame is quiet, on the side its thing is not. */
.live #cue-ribeye {
  left: 7%;
}

.live #cue-pepper {
  left: 27%;
}

.live #cue-seasalt {
  left: 13%;
}

/*
 * The blocks between the scenes.
 */

.live .block {
  z-index: 1;
}

/*
 * A block after a flood lies over the last of the scene before it (--over screens, set by
 * the script from the scene's hold). Up there it is clear — the flood itself is the colour —
 * and its word rises over the pinned flood; below the scene it paints the same colour on,
 * and flood and block ride away as one page.
 */
.live .block.is-over {
  margin-top: calc(var(--over, 0.2) * -100vh);
  margin-top: calc(var(--over, 0.2) * -100svh);
  background-color: rgb(0 0 0 / 0);
  background-image: linear-gradient(to bottom, rgb(0 0 0 / 0) calc(var(--over, 0.2) * 100vh - 2px), var(--field) calc(var(--over, 0.2) * 100vh - 2px));
  background-image: linear-gradient(to bottom, rgb(0 0 0 / 0) calc(var(--over, 0.2) * 100svh - 2px), var(--field) calc(var(--over, 0.2) * 100svh - 2px));
}

/*
 * A word of the house: alone on its colour, as large as the screen lets it. The three
 * stand at three places of the page — the first in the middle, the second at the left,
 * the third at the right — and each drifts a little sideways as its block rides through.
 */
.live .block-word {
  padding: 1vh var(--gutter) 17vh;
  padding: 1svh var(--gutter) 17svh;
}

/* After the second word the whole frame rides in at once: the black between them is short. */
.live .block-word[data-field="night"] {
  padding-bottom: 5vh;
  padding-bottom: 5svh;
}

.live .word {
  width: -webkit-max-content;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  font-size: clamp(120px, 25vw, 440px);
  transform: translate3d(calc((var(--p, 0.5) - 0.5) * var(--drift, 0vw)), 0, 0);
}

.live .block-word[data-field="night"] .word {
  --drift: 10vw;
  margin: 0 auto 0 3vw;
}

.live .block-word[data-field="amber"] .word {
  --drift: -10vw;
  margin: 0 3vw 0 auto;
}

.live .word .line {
  /* Set by the script: the word fades just before it would ride up under the header. */
  opacity: var(--fade, 1);
}

/* It takes its time. */
.live .block.is-on .phrase .line > span {
  transform: none;
  transition: transform 1200ms cubic-bezier(0.22, 0.72, 0.2, 1) 80ms;
}

/* The cut's three things: one row, far wider than the screen, that runs to the left as the page goes down. */
.live .block-run {
  padding: 10vh 0 8vh;
  padding: 10svh 0 8svh;
}

.live .run {
  display: flex;
  gap: 0.6em;
  width: -webkit-max-content;
  width: max-content;
  font-size: clamp(60px, 9.6vw, 170px);
  line-height: 1.12;
  white-space: nowrap;
  opacity: var(--fade, 1);
  transform: translate3d(calc(18vw - var(--p, 0.5) * 150vw), 0, 0);
}

.live .run span[aria-hidden] {
  display: block;
}

/* The last line: large, at the left; its second line a step further in as the block rides through. */
.live .block-final {
  padding: 9vh calc(var(--gutter) + 1.5vw) 9vh;
  padding: 9svh calc(var(--gutter) + 1.5vw) 9svh;
}

.live .block-final .final-title {
  font-size: clamp(44px, 7.4vw, 128px);
}

.live .block-final .line {
  transform: translate3d(calc(var(--i, 0) * (1 - var(--p, 0.5)) * 14vw), 0, 0);
}

/* The acts of the story: a name and, under it, a hairline that fills as the act goes by and stays full after it. */
.live .acts {
  position: relative;
  display: block;
  isolation: isolate;
  color: var(--ui);
  transition: color 300ms linear;
}

.live .acts::before {
  content: "";
  position: absolute;
  inset: -26px -44px;
  z-index: -1;
  background-image: radial-gradient(closest-side, var(--plate), rgb(0 0 0 / 0));
  pointer-events: none;
}

.acts ol {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 32px);
  list-style: none;
}

.acts button {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  min-width: 56px;
  margin: 0;
  padding: 8px 0 10px;
  border: 0;
  background: none;
  color: var(--ui-dim);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  transition: color 200ms linear;
}

.acts button:hover,
.acts .is-now button {
  color: var(--ui);
}

.acts button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

.acts .is-now button {
  font-weight: 700;
}

.acts i {
  position: relative;
  display: block;
  height: 2px;
  overflow: hidden;
  background-color: color-mix(in srgb, currentColor 30%, transparent);
}

.acts i::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: currentColor;
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
}

.live .hint {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--gutter) + 6px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f6ead8;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: opacity 360ms var(--ease-camera);
}

.hint i {
  display: block;
  width: 44px;
  height: 2px;
  background-color: #d1462f;
}

.hint.is-off {
  opacity: 0;
}

/*
 * ——— The footer: the board, washed ———
 *
 * Seen from over it: the board the steak was salted, rested and cut on, back on the steel
 * counter, the name of the house burnt into the wood (textures/board.webp, photographed).
 * The lines of the house stand on the steel beside it. The studio's lime corner is the
 * one thing that is the same on every page.
 */

.foot {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(84px, 12vh, 112px);
  background-color: #0b0b0b;
  color: #f6ead8;
}

.counter {
  position: relative;
  isolation: isolate;
  width: min(100%, 1680px);
  margin: 0 auto;
  background-color: #1c1917;
}

.board {
  display: block;
}

.board img {
  display: block;
  width: 100%;
  height: auto;
}

/* The steel goes out into the black of the page above and below, and is darker where the lines stand. */
.counter::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgb(11 11 11 / 1), rgb(11 11 11 / 0) 16%, rgb(11 11 11 / 0) 82%, rgb(11 11 11 / 1)),
    linear-gradient(to right, rgb(11 11 11 / 0) 58%, rgb(11 11 11 / 0.6) 74%, rgb(11 11 11 / 0.72));
  pointer-events: none;
}

.house {
  position: absolute;
  left: 69.5%;
  right: var(--gutter);
  top: 50%;
  z-index: 1;
  transform: translate3d(0, -50%, 0);
}

.house-motto {
  color: #f2c078;
  font-family: var(--face-display);
  font-size: clamp(28px, 3vw, 50px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.06;
}

.house-cut {
  margin-top: 22px;
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 600;
  line-height: 1.4;
}

.house-hours {
  margin-top: 6px;
  color: rgb(246 234 216 / 0.86);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.4;
}

/* The studio signs in its own colours, not the house's: volt and ink, in the corner. */
.studio {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px var(--gutter) 18px 26px;
  border-top-left-radius: 28px;
  background-color: #d6fa50;
  color: #0a0a0a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms linear;
}

.studio-by {
  font-family: var(--face-studio-text);
  text-transform: uppercase;
}

.studio-name {
  font-family: var(--face-studio-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.studio:hover,
.studio:focus-visible {
  background-color: #b8dc2c;
}

.studio:focus-visible {
  outline: 2px solid #f6ead8;
  outline-offset: 3px;
}

.studio svg {
  width: 16px;
  height: 16px;
}

.studio:hover svg,
.studio:focus-visible svg {
  transform: rotate(45deg);
}

/*
 * ——— A tall screen: the tall frames ———
 * (The script switches to the tall series at the same ratio. On a phone it lays every
 * shot across the screen's width, under the header; the names ride up through the black
 * below the picture.)
 */

@media (max-aspect-ratio: 3 / 4) {
  .brand {
    font-size: 19px;
  }

  /* Without the film: the still, whole, and its words under it. */
  .shot {
    min-height: 0;
    padding: 0 var(--gutter) 34px;
  }

  .shot[data-shot="C1"] {
    padding-top: 68px;
  }

  .still {
    position: relative;
    inset: auto;
    z-index: 0;
    width: calc(100% + 2 * var(--gutter));
    margin: 0 calc(-1 * var(--gutter)) 18px;
    aspect-ratio: 3 / 4;
  }

  .shot::after {
    content: none;
  }

  .title {
    font-size: clamp(34px, 10.4vw, 44px);
  }

  .cue-caption {
    font-size: 38px;
  }

  .final-title {
    font-size: clamp(34px, 9.6vw, 44px);
  }

  .pill {
    height: 56px;
    margin-top: 18px;
  }

  .pill-round {
    width: 44px;
    height: 44px;
  }

  /* With the film: the picture is the scene's again. */
  .live .shot {
    padding: 0;
  }

  .live .cue-opening {
    bottom: calc(var(--pin, 1) * 100vh + var(--gutter) + 26px + env(safe-area-inset-bottom, 0px));
    bottom: calc(var(--pin, 1) * 100svh + var(--gutter) + 26px + env(safe-area-inset-bottom, 0px));
  }

  /* The names ride up the left of the screen, through the black under the picture, and send their lines up into it. */
  .live #cue-ribeye,
  .live #cue-pepper,
  .live #cue-seasalt {
    left: var(--gutter);
    right: auto;
  }

  .live .cue::before {
    inset: -40% -14% -30%;
  }

  .live .word {
    font-size: 32vw;
  }

  .live .block-word {
    padding-bottom: 15vh;
    padding-bottom: 15svh;
  }

  .live .block-run {
    padding: 11vh 0 9vh;
    padding: 11svh 0 9svh;
  }

  .live .run {
    font-size: 17vw;
    transform: translate3d(calc(30vw - var(--p, 0.5) * 420vw), 0, 0);
  }

  .live .block-final {
    padding: 9vh var(--gutter) 10vh;
    padding: 9svh var(--gutter) 10svh;
  }

  .live .block-final .final-title {
    font-size: clamp(34px, 9.6vw, 44px);
  }

  .live .block-final .line {
    transform: translate3d(calc(var(--i, 0) * (1 - var(--p, 0.5)) * 8vw), 0, 0);
  }

  /* Only the act on screen keeps its name; the others are their hairlines. */
  .acts ol {
    align-items: flex-end;
    gap: 8px;
  }

  .acts button {
    min-width: 20px;
  }

  .acts li:not(.is-now) span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .live .hint span {
    display: none;
  }

  .live .hint {
    bottom: calc(var(--gutter) + 6px + env(safe-area-inset-bottom, 0px));
  }

  /* The board alone, and the lines of the house under it. */
  .foot {
    padding-bottom: 92px;
  }

  .counter {
    background-color: #0b0b0b;
  }

  .counter::after {
    bottom: auto;
    aspect-ratio: 6 / 5;
    background-image: linear-gradient(to bottom, rgb(11 11 11 / 1), rgb(11 11 11 / 0) 14%, rgb(11 11 11 / 0) 84%, rgb(11 11 11 / 1));
  }

  .house {
    position: static;
    padding: 20px var(--gutter) 8px;
    transform: none;
  }

  .house-motto {
    font-size: 34px;
  }

  .house-cut {
    margin-top: 16px;
    font-size: 17px;
  }

  .house-hours {
    font-size: 16px;
  }
}

/* ——— Checks ——— */

.hud {
  position: fixed;
  left: 8px;
  top: 64px;
  z-index: 20;
  margin: 0;
  padding: 8px 10px;
  border-radius: 4px;
  background: rgb(0 0 0 / 0.82);
  color: #b6ff7a;
  font: 11px/1.45 ui-monospace, Menlo, monospace;
  white-space: pre;
  pointer-events: none;
}
