@font-face {
  font-family: "Ultra";
  src: url("../fonts/ultra.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url("../fonts/zilla-slab-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url("../fonts/zilla-slab-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url("../fonts/zilla-slab-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url("../fonts/zilla-slab-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@view-transition { navigation: auto; }

:root {
  color-scheme: dark;
  --night: #1b1026;
  --ink: #140b1a;
  --cream: #f6e8c8;
  --cream-dim: #d4c3a0;
  --orange: #e2611f;
  --teal: #1f9b96;
  --mustard: #f0b230;
  --pink: #ef4683;
  --purple: #5c2c80;
  --act: var(--orange);
  --act-ink: var(--ink);
  --slab: "Ultra", "Rockwell Extra Bold", "Rockwell", "Clarendon", Georgia, serif;
  --text: "Zilla Slab", "Rockwell", "Roboto Slab", Georgia, serif;
  --edge: 3px;
  --gutter: clamp(1rem, 3.2vw, 2.75rem);
  --ease-slam: cubic-bezier(.16, 1, .3, 1);
  --dots-ink: radial-gradient(circle, rgba(20, 11, 26, .55) 0 1.1px, transparent 1.7px);
  --dots-pink: radial-gradient(circle, rgba(239, 70, 131, .09) 0 1px, transparent 1.6px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100svh;
  background: var(--dots-pink) 0 0 / 7px 7px, var(--night);
  color: var(--cream);
  font-family: var(--text);
  font-size: clamp(1.05rem, .35vw + .95rem, 1.22rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 20;
  padding: .6rem 1rem;
  background: var(--mustard);
  color: var(--ink);
  font-weight: 700;
}
.skip:focus { top: 1rem; }

/* ---------- Top bar ---------- */

.bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: max(.9rem, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) .9rem max(var(--gutter), env(safe-area-inset-left));
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .3rem .7rem .15rem;
  font-family: var(--slab);
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--ink);
  background: var(--mustard);
  border: var(--edge) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-3deg);
  transition: transform 220ms var(--ease-slam), box-shadow 220ms var(--ease-slam);
}
.badge:hover { transform: rotate(-1deg) translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

.pips {
  display: flex;
  gap: .35rem;
  list-style: none;
}
.pips a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  font-family: var(--slab);
  font-size: .9rem;
  line-height: 1;
  text-decoration: none;
  color: var(--cream);
  background: rgba(20, 11, 26, .7);
  border: 2px solid rgba(246, 232, 200, .8);
  transition: background 160ms, color 160ms, transform 160ms var(--ease-slam);
}
.pips a:hover { background: var(--cream); color: var(--ink); transform: translateY(-2px); }
.pips a[aria-current="page"] {
  background: var(--act);
  color: var(--act-ink);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

/* ---------- Scene (full-bleed hero) ---------- */

.scene {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  overflow: hidden;
  background: var(--ink);
}
.scene > img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50%) 50%;
  animation: zoom 1600ms var(--ease-slam) backwards;
}
/* Speed-line burst */
.scene::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -2;
  background: repeating-conic-gradient(from 0deg at 50% 46%, transparent 0 2.6deg, rgba(246, 232, 200, .2) 2.6deg 3.1deg);
  -webkit-mask: radial-gradient(circle at 50% 46%, transparent 22%, #000 60%);
  mask: radial-gradient(circle at 50% 46%, transparent 22%, #000 60%);
  mix-blend-mode: overlay;
  animation: burst 1800ms 150ms ease-out backwards;
  pointer-events: none;
}
/* Halftone scrim so type holds over any frame */
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--dots-ink) 0 0 / 5px 5px, rgba(20, 11, 26, .78);
  -webkit-mask: linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, transparent 22%, transparent 42%, #000 88%);
  mask: linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, transparent 22%, transparent 42%, #000 88%);
  pointer-events: none;
}

.scene-copy {
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 23rem);
  align-items: end;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 7rem max(var(--gutter), env(safe-area-inset-right)) max(clamp(1.5rem, 5vh, 3.5rem), env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
}

/* The slab title */
.marquee {
  font-family: var(--slab);
  font-weight: 400;
  font-size: clamp(3.3rem, 11.4vw, 12rem);
  line-height: .86;
  letter-spacing: -.012em;
  text-transform: uppercase;
  color: var(--cream);
  -webkit-text-stroke: .055em var(--ink);
  paint-order: stroke fill;
  text-shadow: .04em .045em 0 var(--ink), .085em .095em 0 var(--pink);
  transform: skewX(-7deg);
  transform-origin: left bottom;
}
.marquee > span {
  display: block;
  animation: slam 900ms var(--ease-slam) backwards;
}
.marquee > span:nth-child(1) { animation-delay: 250ms; }
.marquee > span:nth-child(2) { animation-delay: 390ms; color: var(--mustard); }

.strap {
  display: inline-block;
  margin-top: clamp(.9rem, 2vw, 1.4rem);
  padding: .35rem .9rem .3rem;
  font-weight: 700;
  font-size: clamp(.95rem, 1.3vw, 1.15rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--act-ink);
  background: var(--act);
  border: var(--edge) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: skewX(-10deg);
  animation: wipe 700ms 700ms var(--ease-slam) backwards;
}
.strap > span { display: inline-block; transform: skewX(10deg); }

/* Narration box */
.caption {
  position: relative;
  padding: 1rem 1.15rem 1.1rem;
  color: var(--ink);
  background: var(--cream);
  border: var(--edge) solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(1.2deg);
  animation: drop 800ms 950ms var(--ease-slam) backwards;
}
.caption .eyebrow {
  display: block;
  margin-bottom: .35rem;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple);
}
.caption p { line-height: 1.4; }

.go {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
  margin-top: .9rem;
  padding: .55rem .9rem .5rem;
  font-family: var(--slab);
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  border: var(--edge) solid var(--ink);
  transition: background 160ms, color 160ms;
}
.go::after { content: "\2192"; font-family: var(--text); font-weight: 700; font-size: 1.3rem; transition: transform 200ms var(--ease-slam); }
.go:hover { background: var(--orange); color: var(--ink); }
.go:hover::after { transform: translateX(4px); }

/* ---------- Home hero: narration box top right, title bottom right ---------- */

.scene--home .scene-copy {
  align-self: stretch;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  padding-top: 6.5rem;
}
.scene--home .caption {
  grid-row: 1;
  justify-self: end;
  align-self: start;
  width: min(100%, 22rem);
  transform: rotate(-1.5deg);
}
.scene--home .title-block { grid-row: 2; justify-self: end; text-align: right; }
.scene--home .marquee { font-size: 10.4vw; transform-origin: right top; }
.scene--home .marquee > span { white-space: nowrap; }

/* ---------- Act hero specifics ---------- */

.scene--act .scene-copy { grid-template-columns: minmax(0, 1fr); }
/* --ems: rough width of the longest word in Ultra caps, so no word ever overflows */
.scene--act .marquee { font-size: min(10.5vw, calc((100vw - 2 * var(--gutter)) / var(--ems, 7))); }

.act-tag {
  display: inline-flex;
  align-items: baseline;
  gap: .6rem;
  margin-bottom: clamp(.6rem, 1.4vw, 1rem);
  padding: .3rem .75rem .2rem;
  font-family: var(--slab);
  font-size: clamp(1.1rem, 2.2vw, 1.75rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--act-ink);
  background: var(--act);
  border: var(--edge) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-2.5deg);
  animation: drop 700ms 100ms var(--ease-slam) backwards;
}
.act-tag small { font-family: var(--text); font-weight: 700; font-size: .55em; letter-spacing: .14em; }

.slug {
  display: block;
  max-width: 44rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: clamp(.85rem, 1.1vw, 1rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  animation: fade 700ms 1000ms ease-out backwards;
}

/* ---------- Scene board ---------- */

.board {
  padding: clamp(3.5rem, 8vw, 7rem) max(var(--gutter), env(safe-area-inset-right)) clamp(3.5rem, 8vw, 7rem) max(var(--gutter), env(safe-area-inset-left));
}

.board-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(1.25rem, 4vw, 4rem);
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.section-title {
  font-family: var(--slab);
  font-weight: 400;
  font-size: clamp(2.3rem, 6vw, 5.5rem);
  line-height: .9;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: .05em .05em 0 var(--purple);
}
.section-title small {
  display: block;
  margin-top: .7rem;
  font-family: var(--text);
  font-style: italic;
  font-size: max(1.05rem, .3em);
  line-height: 1.2;
  text-transform: none;
  text-shadow: none;
  color: var(--mustard);
}

.premise { max-width: 34rem; color: var(--cream-dim); }
.premise strong { color: var(--cream); font-weight: 600; }

.page {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(17rem, 27vw, 27rem);
  gap: 10px;
  padding: 10px;
  background: var(--ink);
  outline: var(--edge) solid var(--cream);
  outline-offset: 0;
  box-shadow: 14px 14px 0 var(--pink);
}
.page > li:nth-child(1) { grid-column: span 4; }
.page > li:nth-child(2) { grid-column: span 2; }
.page > li:nth-child(n + 3) { grid-column: span 2; }

.panel {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  color: var(--ink);
  background: var(--night);
}
.panel img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50%) 50%;
  transition: transform 600ms var(--ease-slam), filter 300ms;
}
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0 solid var(--act);
  transition: border-width 200ms var(--ease-slam);
  pointer-events: none;
}
.panel:hover img { transform: scale(1.06); }
.panel:hover::after { border-width: 6px; }
.panel:focus-visible { outline-offset: -6px; outline-width: 4px; }

.panel .num {
  position: absolute;
  top: .8rem;
  left: .8rem;
  display: grid;
  place-items: center;
  min-width: 3.1rem;
  height: 3.1rem;
  padding: 0 .5rem;
  font-family: var(--slab);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--act-ink);
  background: var(--act);
  border: var(--edge) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-4deg);
}

.panel .box {
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: .8rem;
  max-width: 24rem;
  padding: .65rem .85rem .7rem;
  background: var(--cream);
  border: var(--edge) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 300ms var(--ease-slam);
}
.panel:hover .box { transform: translateY(-4px); }
.box .when {
  display: block;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple);
}
.box strong {
  display: block;
  font-family: var(--slab);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1;
  text-transform: uppercase;
  margin: .2rem 0 .15rem;
}
.box em { font-size: .98rem; line-height: 1.3; display: block; }

/* ---------- Dramatis personae: freeze-frame title cards ---------- */

.personae {
  padding: clamp(3.5rem, 8vw, 7rem) max(var(--gutter), env(safe-area-inset-right)) clamp(3.5rem, 8vw, 7rem) max(var(--gutter), env(safe-area-inset-left));
  color: var(--ink);
  background: var(--dots-ink) 0 0 / 7px 7px, var(--cream);
  background-blend-mode: soft-light;
  border-block: 10px solid var(--ink);
}
.personae .section-title { color: var(--ink); text-shadow: .05em .05em 0 var(--pink); }
.personae .section-title small { color: var(--purple); }

.cast {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.6vw, 2.5rem);
  margin-top: clamp(1.75rem, 4vw, 3rem);
}

.tier {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem 1rem;
  margin-top: clamp(.5rem, 2vw, 1.5rem);
  padding-bottom: .45rem;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--purple);
  border-bottom: var(--edge) solid var(--ink);
}
.tier b {
  font-family: var(--slab);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: 0;
  color: var(--ink);
}

.persona {
  display: grid;
  background: #fff6de;
  border: var(--edge) solid var(--ink);
  box-shadow: 8px 8px 0 var(--act);
  transition: transform 250ms var(--ease-slam), box-shadow 250ms var(--ease-slam);
}
.persona:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--act); }
.persona--lead {
  grid-column: 1 / -1;
  grid-template-columns: minmax(16rem, 27rem) minmax(0, 1fr);
  box-shadow: 14px 14px 0 var(--act);
}
.persona--lead:hover { box-shadow: 17px 17px 0 var(--act); }
.persona--pair { grid-column: span 6; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.persona--small { grid-column: span 3; grid-template-rows: auto 1fr; }

/* A still cropped out of an act frame: --pos picks the window, --z / --origin zoom on the character */
.still {
  position: relative;
  margin: 0;
  min-height: 19rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.persona--lead .still,
.persona--pair .still { border-right: var(--edge) solid var(--ink); }
.persona--small .still { aspect-ratio: 4 / 4.4; min-height: 0; border-bottom: var(--edge) solid var(--ink); }
.still img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transform: scale(var(--z, 1));
  transform-origin: var(--origin, 50% 50%);
  transition: transform 700ms var(--ease-slam);
}
.persona:hover .still img { transform: scale(calc(var(--z, 1) * 1.05)); }
/* freeze-frame: speed-line burst + halftone edge */
.still::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-conic-gradient(from 0deg at var(--origin, 50% 50%), transparent 0 4deg, rgba(246, 232, 200, .13) 4deg 4.6deg),
    var(--dots-ink) 0 0 / 5px 5px;
  -webkit-mask: radial-gradient(circle at var(--origin, 50% 50%), transparent 38%, #000 80%);
  mask: radial-gradient(circle at var(--origin, 50% 50%), transparent 38%, #000 80%);
  pointer-events: none;
}

.persona-body {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-width: 0;
  padding: 1.1rem 1.2rem 1.25rem;
}
.persona--lead .persona-body { gap: .8rem; padding: clamp(1.25rem, 3vw, 2.5rem); }

.role {
  align-self: flex-start;
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  padding: .3rem .65rem .25rem;
  font-weight: 600;
  font-style: italic;
  font-size: .9rem;
  line-height: 1.1;
  color: var(--act-ink);
  background: var(--act);
  border: var(--edge) solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg);
}
.role span {
  font-style: normal;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.persona--small .role { margin-top: -2.1rem; position: relative; }
.persona--pair .role { margin-left: -2.6rem; position: relative; }

.persona-name {
  font-family: var(--slab);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.1vw, 1.9rem);
  line-height: .98;
  text-transform: uppercase;
  text-wrap: balance;
}
.persona--lead .persona-name { font-size: clamp(2.2rem, 4.6vw, 4.4rem); text-shadow: .045em .045em 0 var(--act); }
.persona--pair .persona-name { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }

.trope { font-style: italic; font-size: 1.02rem; color: var(--purple); }
.persona--lead .trope { font-size: clamp(1.1rem, 1.6vw, 1.4rem); }
.want { line-height: 1.42; font-size: 1rem; }
.persona--lead .want { max-width: 46rem; font-size: clamp(1.02rem, 1.2vw, 1.18rem); }
.want strong { font-weight: 700; }

.arc {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: auto;
  padding-top: .6rem;
  border-top: 2px solid var(--ink);
}
.arc li {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: .55rem .7rem .2rem 0;
  font-size: .95rem;
  line-height: 1.25;
}
.arc li + li { padding-left: .7rem; border-left: 2px solid var(--ink); }
.arc li span {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  font-family: var(--slab);
  font-size: 1rem;
  color: var(--act-ink, var(--ink));
  background: var(--act);
  border: var(--edge) solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.acts {
  display: flex;
  gap: .3rem;
  margin-top: auto;
  padding-top: .45rem;
}
.acts span {
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 1.6rem;
  padding: 0 .3rem;
  font-family: var(--slab);
  font-size: .72rem;
  color: rgba(20, 11, 26, .35);
  border: 2px dashed rgba(20, 11, 26, .35);
}
.acts span.on { color: var(--cream); background: var(--ink); border: 2px solid var(--ink); }

.extras { grid-column: 1 / -1; }
.extras dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 1.5rem;
  margin-top: 1rem;
}
.extras dl > div { padding-top: .2rem; }
.extras dt { font-weight: 700; font-size: 1.02rem; }
.extras dd { font-style: italic; font-size: .98rem; line-height: 1.35; color: #3b2d47; }

/* ---------- Starting grid (cast) ---------- */

.grid {
  padding: clamp(3rem, 7vw, 6rem) max(var(--gutter), env(safe-area-inset-right)) clamp(3rem, 7vw, 6rem) max(var(--gutter), env(safe-area-inset-left));
  color: var(--ink);
  background: var(--dots-ink) 0 0 / 6px 6px, var(--mustard);
  border-block: 10px solid var(--ink);
}
.grid .section-title { color: var(--ink); text-shadow: .05em .05em 0 var(--orange); }
.grid .section-title small { color: var(--ink); }

.entries {
  width: 100%;
  margin-top: clamp(1.75rem, 4vw, 3rem);
  border-collapse: collapse;
  background: var(--cream);
  border: var(--edge) solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}
.entries th, .entries td {
  padding: .85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 2px solid var(--ink);
}
.entries thead th {
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
}
.entries tbody tr { transition: background 160ms; }
.entries tbody tr:hover { background: #fff3d6; }
.entries .no {
  width: 5.5rem;
  font-family: var(--slab);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1;
  color: var(--orange);
  -webkit-text-stroke: 1px var(--ink);
}
.entries .who {
  font-family: var(--slab);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.entries .who small {
  display: block;
  margin-top: .3rem;
  font-family: var(--text);
  font-style: italic;
  font-size: .95rem;
  text-transform: none;
  color: var(--purple);
}
.entries td.car { width: clamp(13rem, 22vw, 18rem); }
.car-still {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: .6rem;
  background: var(--ink);
  border: var(--edge) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 300ms var(--ease-slam), box-shadow 300ms var(--ease-slam);
}
.entries tbody tr:hover .car-still { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 6px 6px 0 var(--orange); }
.car-name { display: flex; gap: .6rem; align-items: baseline; font-weight: 600; line-height: 1.3; }
.car-name::before {
  content: "";
  flex: none;
  width: 1.5rem;
  height: .9rem;
  background: var(--paint);
  border: 2px solid var(--ink);
  transform: skewX(-18deg) translateY(.1rem);
}

/* ---------- Script page (act detail) ---------- */

.script {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 7vw, 6rem) max(var(--gutter), env(safe-area-inset-right)) clamp(3rem, 7vw, 6rem) max(var(--gutter), env(safe-area-inset-left));
  color: var(--ink);
  background: var(--dots-ink) 0 0 / 7px 7px, var(--cream);
  background-blend-mode: soft-light;
  border-top: 10px solid var(--ink);
}

.logline {
  font-style: italic;
  font-size: clamp(1.6rem, 3.2vw, 2.7rem);
  line-height: 1.12;
  text-wrap: balance;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.logline::before {
  content: "";
  display: block;
  width: 4rem;
  height: 10px;
  margin-bottom: 1.1rem;
  background: var(--act);
  border: var(--edge) solid var(--ink);
}

.beats { list-style: none; counter-reset: beat; display: grid; gap: 1.25rem; }
.beats li {
  counter-increment: beat;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--ink);
}
.beats li::before {
  content: counter(beat);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  font-family: var(--slab);
  font-size: 1.35rem;
  color: var(--act-ink);
  background: var(--act);
  border: var(--edge) solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.beats q { font-style: italic; quotes: "\00AB\00A0" "\00A0\00BB"; }

.sheet {
  align-self: start;
  position: sticky;
  top: 1.5rem;
  background: #fff6de;
  border: var(--edge) solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.sheet dl { display: grid; }
.sheet dt {
  padding: .55rem 1rem .45rem;
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
}
.sheet dd { padding: .75rem 1rem 1rem; line-height: 1.4; }
.sheet ul { list-style: none; display: grid; gap: .25rem; }
.sheet .cut {
  font-style: italic;
  background: var(--dots-ink) 0 0 / 5px 5px, var(--act);
  border-top: var(--edge) solid var(--ink);
}
.sheet .cut span {
  display: inline;
  background: var(--cream);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: .05rem .3rem;
}

/* ---------- Prev / next ---------- */

.turn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  background: var(--ink);
}
.turn a {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(12rem, 22vw, 18rem);
  padding: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  color: var(--cream);
}
.turn a.next { align-items: flex-end; text-align: right; }
.turn img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50%) 50%;
  filter: saturate(.8) brightness(.55);
  transition: transform 600ms var(--ease-slam), filter 300ms;
}
.turn a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--dots-ink) 0 0 / 5px 5px;
}
.turn a:hover img { transform: scale(1.05); filter: saturate(1) brightness(.7); }
.turn .dir {
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mustard);
}
.turn strong {
  font-family: var(--slab);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: .95;
  text-transform: uppercase;
  -webkit-text-stroke: .04em var(--ink);
  paint-order: stroke fill;
  text-shadow: .05em .05em 0 var(--ink);
}
.turn em { font-size: 1.05rem; }
.turn .home { background: var(--purple); }

/* ---------- Footer ---------- */

.credits {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding: 1.75rem max(var(--gutter), env(safe-area-inset-right)) max(1.75rem, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  background: var(--ink);
}
.credits a { color: var(--mustard); text-underline-offset: .2em; }
.credits a:hover { color: var(--cream); }

/* ---------- Tablet ---------- */

@media (max-width: 1000px) {
  .scene-copy { grid-template-columns: minmax(0, 1fr); }
  .caption { max-width: 28rem; justify-self: end; }
  .scene--home .marquee { font-size: calc((100vw - 2 * var(--gutter)) / 7.4); }
  .scene--home .scene-copy { grid-template-rows: 1fr auto auto; }
  .scene--home .caption { grid-row: 3; align-self: end; width: min(100%, 26rem); transform: rotate(1deg); animation-delay: 1100ms; }
  .scene--act .marquee { font-size: calc((100vw - 2 * var(--gutter)) / var(--ems, 7)); }
  .board-head { grid-template-columns: 1fr; }
  .page { grid-auto-rows: clamp(15rem, 38vw, 22rem); }
  .page > li:nth-child(1) { grid-column: 1 / -1; }
  .page > li:nth-child(2),
  .page > li:nth-child(3) { grid-column: span 3; }
  .page > li:nth-child(4) { grid-column: span 3; }
  .page > li:nth-child(5) { grid-column: span 3; }
  .script { grid-template-columns: 1fr; }
  .sheet { position: static; }
  .persona--lead { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .arc { grid-template-columns: 1fr; }
  .arc li { flex-direction: row; align-items: center; gap: .75rem; padding: .45rem 0; }
  .arc li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(20, 11, 26, .25); }
  .arc li span { flex: none; width: 2.1rem; height: 2.1rem; font-size: .9rem; }
  .persona--pair { grid-column: 1 / -1; }
  .persona--small { grid-column: span 6; }
  .extras dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
}

/* ---------- Phone ---------- */

@media (max-width: 640px) {
  .pips { gap: .2rem; }
  .pips a { min-width: 40px; font-size: .78rem; }
  .bar .badge { font-size: .95rem; }
  .scene > img { object-position: var(--focus-phone, var(--focus, 50%)) 50%; }
  .scene::before { background-position: center; }
  .scene::after {
    -webkit-mask: linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, transparent 16%, transparent 30%, #000 70%);
    mask: linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, transparent 16%, transparent 30%, #000 70%);
  }
  .scene-copy { padding-top: 6rem; }
  .caption { justify-self: stretch; max-width: none; transform: none; }
  .scene--home .title-block { justify-self: start; text-align: left; }
  .scene--home .marquee { transform-origin: left bottom; }
  .scene--home .caption { justify-self: stretch; width: auto; transform: none; }
  .page { grid-template-columns: 1fr; grid-auto-rows: auto; box-shadow: 8px 8px 0 var(--pink); }
  .page > li:nth-child(n) { grid-column: 1 / -1; }
  .panel { height: auto; aspect-ratio: 4 / 3.4; }
  .panel img { object-position: var(--focus-phone, var(--focus, 50%)) 50%; }
  .entries, .entries tbody, .entries tr, .entries td { display: block; }
  .entries thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .entries tr { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); border-bottom: 2px solid var(--ink); }
  .entries td, .entries th { border: 0; padding: .5rem .75rem; }
  .entries td.car { width: auto; }
  .entries td.no { grid-row: span 3; padding-top: .9rem; width: auto; }
  .entries .who { padding-top: .85rem; }
  .entries td:last-child { padding-bottom: 1rem; }
  .persona--lead,
  .persona--pair { grid-template-columns: 1fr; }
  .persona--lead .still,
  .persona--pair .still { aspect-ratio: 4 / 3.6; min-height: 0; border-right: 0; border-bottom: var(--edge) solid var(--ink); }
  .persona--pair .role { margin-left: 0; margin-top: -2.1rem; }
  .persona--lead .role { margin-top: -2.4rem; position: relative; }
  .persona--small { grid-column: 1 / -1; }
  .extras dl { grid-template-columns: 1fr; }
  .turn { grid-template-columns: 1fr; }
  .turn a.next { order: -1; }
  .credits { flex-direction: column; }
}

/* ---------- Motion ---------- */

@keyframes zoom {
  from { transform: scale(1.18); filter: saturate(1.6) contrast(1.15); }
}
@keyframes burst {
  0% { opacity: 0; transform: rotate(-6deg) scale(.7); }
  35% { opacity: 1; }
  100% { transform: none; }
}
@keyframes slam {
  0% { opacity: 0; transform: translateX(-.35em) scale(1.35); filter: blur(6px); }
  60% { opacity: 1; filter: blur(0); }
  100% { transform: none; }
}
@keyframes wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 -10% 0 0); }
}
@keyframes drop {
  from { opacity: 0; transform: translateY(-18px) rotate(-6deg); }
}
@keyframes fade {
  from { opacity: 0; }
}
::view-transition-group(*) { animation-duration: 520ms; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
