/* The fonts, served from this site (fonts/): Barlow, Barlow Semi Condensed and Alegreya from Google Fonts, the
   latin and latin-ext files only, as Google's own CSS splits them. No request leaves the site for them, and the first
   paint waits on no other origin. Barlow Semi Condensed is the face on the dark, as IBM Plex Sans Condensed is in the
   game: names, headings, labels in spaced capitals, thin numerals. Barlow is for reading. Alegreya is the Warder's
   hand, and only his: the ledger, the line read aloud and the ticker's notes. */
@font-face {
  font-family: "Alegreya";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/alegreya-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alegreya";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/alegreya-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/alegreya-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alegreya";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/alegreya-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/barlow-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/barlow-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/barlow-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/barlow-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/barlow-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/barlow-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/barlow-semi-condensed-300-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/barlow-semi-condensed-300-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/barlow-semi-condensed-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/barlow-semi-condensed-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/barlow-semi-condensed-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/barlow-semi-condensed-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/barlow-semi-condensed-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/barlow-semi-condensed-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* The game's palette, "brimstone" (Don, 2026-11-22; its docs/LOOK.md): every colour stands for one thing, and
     everything else is chalk and stone on a cool near-black. Nothing brighter or more saturated than the house's blue,
     no cream, no warm brown, no brass. */
  --ink: #0f1012;
  /* panels and cards: the game's panel with its faint chalk edge */
  --ink-2: rgba(15, 16, 18, 0.94);
  --ink-3: #17181b;
  --cellar: #0b0c0e;
  --edge: rgba(220, 220, 214, 0.15);
  /* text: chalk, chalk-dim, and stone for labels and small print (the faintest allowed) */
  --paper: #dcdcd6;
  --paper-dim: #a9aaa5;
  --paper-faint: #8f908b;
  /* the house is blue: Under Management and the studio, Play, links, the one stressed phrase */
  --house: #7fb2d1;
  --house-lit: #a9cde3;
  --house-lo: #4d6f84;
  /* the Guild is brimstone, in the game. The site draws nothing of the Guild's (The Underwriters is the house's,
     in house blue: Don, 2026-11-23), so these are kept for when it does, and used nowhere yet. */
  --guild: #d07a4c;
  --guild-hi: #d9936c;
  --guild-lit: #e9ab88;
  /* gold is money and only money; red is trouble; green is done */
  --money: #cdae70;
  --bad: #cd7a88;
  --good: #87b592;
  --imp: #87b592;
  --rule: rgba(220, 220, 214, 0.1);
  /* the face on the dark: the name, headings, labels and figures */
  --display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --label: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  /* reading copy */
  --sans: "Barlow", system-ui, sans-serif;
  /* the Warder's hand: only where he writes or speaks */
  --warder: "Alegreya", Georgia, serif;
  --gutter: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px / 1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
video,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
/* the one gold phrase in a heading: gold, upright. The dark screen has no italic; the Warder's hand is the only one. */
em {
  font-style: normal;
  color: var(--house);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}
.skip:focus {
  left: 8px;
  z-index: 99;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
}

/* Film grain over everything: cheap, and it takes the digital edge off. It stands still: an animated layer this size
   keeps the compositor busy on every page for as long as it is open, long after the dig has paused. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter);
  transition:
    background 0.4s,
    padding 0.4s,
    border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(15, 16, 18, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  padding-block: 12px;
  border-color: var(--rule);
}
.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 600 15px var(--sans);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.mark svg {
  width: 26px;
  height: 26px;
  color: var(--paper);
}
.nav nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
}
.nav nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--paper-dim);
  position: relative;
  white-space: nowrap;
}
.nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav nav a:hover {
  color: var(--paper);
}
@media (hover: hover) {
  .nav nav a:hover::after {
    transform: scaleX(1);
  }
}

/* ---------- type ---------- */
.eyebrow {
  /* room between lines when one wraps; the margins take back the half-leading so a single line sits where it did */
  font: 600 13px / 1.5 var(--label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin: -3px 0 19px;
}
/* last week's name for the series, struck out by this week's */
.series-was {
  color: var(--paper-faint);
  text-decoration-thickness: 1px;
  margin-right: 0.3em;
}
/* read aloud, not shown */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
h2 {
  font-size: clamp(40px, 6.4vw, 92px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.015em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  font: 600 15px var(--sans);
  text-decoration: none;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s,
    background 0.3s,
    color 0.3s;
}
.btn span {
  transition: transform 0.3s var(--ease);
}
/* transforms only on a real hover: a tap on iOS leaves :hover stuck on */
@media (hover: hover) {
  .btn:hover span {
    transform: translateX(4px);
  }
}
.btn-gold {
  background: linear-gradient(180deg, var(--house-lit), var(--house));
  color: #0d1a22;
  box-shadow:
    0 0 0 1px rgba(169, 205, 227, 0.4),
    0 10px 40px -10px rgba(127, 178, 209, 0.6);
}
@media (hover: hover) {
  .btn-gold:hover {
    transform: translateY(-2px);
    box-shadow:
      0 0 0 1px rgba(169, 205, 227, 0.6),
      0 18px 50px -12px rgba(127, 178, 209, 0.85);
  }
}
.btn-ghost {
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(220, 220, 214, 0.3);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px var(--paper);
}
/* The Underwriters' Play: the same house blue as Under Management's (Don, 2026-11-23: "house blue"), a flat blue
   rather than the gradient, so the two games' buttons are told apart by shape of light, not by colour */
.btn-blue {
  background: var(--house);
  color: #0d1a22;
  box-shadow:
    0 0 0 1px rgba(169, 205, 227, 0.4),
    0 10px 40px -12px rgba(127, 178, 209, 0.6);
}
@media (hover: hover) {
  .btn-blue:hover {
    transform: translateY(-2px);
    background: var(--house-lit);
  }
}
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

/* ---------- the phone notice (play.js): before a Play tap on a phone leaves for the game ---------- */
.phone-note {
  width: min(100% - 32px, 400px);
  margin: auto;
  padding: 26px 24px 24px;
  border: 0;
  border-radius: 6px;
  background: var(--ink-2);
  color: var(--paper-dim);
  box-shadow: 0 0 0 1px var(--rule);
}
.phone-note::backdrop {
  background: rgba(11, 12, 14, 0.78);
}
.phone-note-eyebrow {
  font: 600 13px / 1.5 var(--label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin: 0 0 12px;
}
.phone-note-title {
  font: 400 26px / 1.15 var(--display);
  color: var(--paper);
  margin: 0 40px 12px 0;
}
.phone-note-body {
  font: 400 17px / 1.6 var(--sans);
  margin: 0 0 22px;
}
.phone-note-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--paper-dim);
  font: 400 26px / 1 var(--sans);
  cursor: pointer;
}
.phone-note-close:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: -4px;
}
@media (prefers-reduced-motion: no-preference) {
  .phone-note[open] {
    animation: phone-note-in 0.35s var(--ease);
  }
}
@keyframes phone-note-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px var(--gutter) 90px;
  overflow: hidden;
  background: var(--cellar);
}
#dig {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(11, 12, 14, 0.92) 0%, rgba(11, 12, 14, 0.55) 45%, rgba(11, 12, 14, 0) 75%),
    linear-gradient(0deg, var(--ink) 0%, rgba(15, 16, 18, 0) 22%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero h1 {
  font-size: clamp(64px, 12.5vw, 200px);
  font-size: clamp(64px, min(12.5vw, 17svh), 200px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.025em;
  margin-bottom: 44px;
}
.hero h1 .line {
  display: block;
}
.hero h1 .line:last-child {
  color: var(--house);
  padding-left: 0.42em;
}
.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--paper-dim);
  max-width: 34em;
  margin: 0 0 36px;
}
/* The ledger read aloud (voice.js): one of the narrator's lines, played only when pressed. Without script it is a
   link to the recording. */
.say {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: center;
  margin: 0 0 32px;
  color: var(--paper);
  text-decoration: none;
}
.say-icon {
  grid-row: span 2;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--house-lo);
  border-radius: 50%;
  transition: border-color 0.2s, background-color 0.2s;
}
.say-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 12px;
  transform: translateX(1px);
  background: var(--house);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
/* while it plays, a ring goes out from the button */
.say-icon::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--house);
  border-radius: 50%;
  opacity: 0;
}
.say.playing .say-icon::after {
  animation: say-ring 1.1s var(--ease) infinite;
}
@keyframes say-ring {
  from {
    opacity: 0.8;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.6);
  }
}
/* the Warder speaking: his hand, Alegreya, as on his page in the game */
.say-line {
  font: italic 400 clamp(20px, 1.8vw, 25px) / 1.25 var(--warder);
}
.say-who {
  margin-top: 4px;
  font: 500 12px var(--label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.say:hover .say-icon,
.say:focus-visible .say-icon,
.say.playing .say-icon {
  border-color: var(--house);
  background: rgba(127, 178, 209, 0.08);
}
/* On a phone the dig is too faint to show the game, so a still of it heads the hero (si-04); tap plays the clip.
   Hidden on wider screens, where the <picture> source never matches and nothing is fetched. An upright iPad keeps
   the dig (Don: "I like the digging animation"), see below. */
.hero-clip {
  display: none;
  position: relative;
  margin: 0 0 28px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--cellar);
}
.hero-clip picture {
  display: contents;
}
.hero-clip img,
.hero-clip video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-clip-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 9px;
  font: 500 13px / 1.4 var(--label);
  color: var(--paper);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  background: linear-gradient(0deg, rgba(11, 12, 14, 0.9), rgba(11, 12, 14, 0));
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-clip-play {
  margin-left: auto;
  white-space: nowrap;
  color: var(--house);
}
.hero-clip.playing .hero-clip-play {
  display: none;
}
@media (max-width: 700px) {
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: 88px;
  }
  .hero-clip {
    display: block;
  }
}
/* a phone on its side: the name smaller and closer, so Play is on the first screen */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 76px var(--gutter) 32px;
  }
  .hero h1 {
    font-size: clamp(44px, 15svh, 72px);
    margin-bottom: 16px;
  }
  .hero .eyebrow {
    margin-bottom: 10px;
  }
  .lede {
    font-size: 16px;
    margin-bottom: 18px;
  }
  .hero-note,
  .scroll-cue {
    display: none;
  }
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-note {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 36px;
  margin: 0;
  font: 500 13px var(--label);
  color: var(--paper-faint);
  letter-spacing: 0.04em;
  display: none;
  align-items: center;
  gap: 8px;
}
/* "move your lantern" means nothing to a finger */
@media (hover: hover) {
  .hero-note {
    display: flex;
    /* the right half, clear of the scroll cue in the middle: it wraps rather than run into it */
    max-width: calc(50vw - var(--gutter) - 36px);
    align-items: flex-start;
  }
  .hero-note .dot {
    flex: none;
    margin-top: 4px;
  }
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bad);
  box-shadow: 0 0 10px var(--bad);
  animation: pulse 1.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  width: 24px;
  height: 40px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(220, 220, 214, 0.35);
  transform: translateX(-50%);
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--paper);
  animation: cue 1.8s var(--ease) infinite;
}
/* below 1100 it runs into the hero note, and on a phone or tablet the page is plainly scrollable (a mouse's wheel
   means nothing to a finger, so a big iPad on its side goes without it too) */
@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  .scroll-cue {
    display: none;
  }
}
@keyframes cue {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------- ticker ---------- */
.ticker {
  border-block: 1px solid var(--rule);
  overflow: hidden;
  background: var(--ink-2);
}
.ticker-track {
  display: flex;
  gap: 36px;
  width: max-content;
  padding: 18px 0;
  animation: tick 60s linear infinite;
  /* the Warder's notes, in his hand */
  font: italic 400 20px var(--warder);
  color: var(--paper-dim);
  white-space: nowrap;
}
.ticker-track .sep {
  color: var(--paper-faint);
  font-style: normal;
  font-size: 12px;
  align-self: center;
}
/* it never stops on its own, so it stops under the pointer, and a tap holds it (main.js) or lets it go (WCAG 2.2.2);
   reduced motion stops it outright */
.ticker:hover .ticker-track,
.ticker.held .ticker-track {
  animation-play-state: paused;
}
@keyframes tick {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- sections ---------- */
.section-head {
  padding: clamp(100px, 14vw, 180px) var(--gutter) 60px;
}
.games {
  position: relative;
}
.series-note {
  max-width: 34em;
  margin: 22px 0 0;
  color: var(--paper-dim);
}
/* Each game's number in the series, in the ledger's hand: a line ruled across with the entry on it. The last one is
   the next entry, left open. */
.series-no {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font: 600 13px / 1.5 var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.series-no span {
  color: var(--paper);
}
.series-no::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.uw .series-no span {
  color: var(--paper);
}
/* The games after these two: working titles going away from the reader, each smaller and dimmer than the one
   before, like an opening crawl run backwards. Tilted back a little; never fainter than --paper-faint (AA). */
.series-later {
  margin: clamp(80px, 10vw, 120px) auto 0;
  text-align: center;
  perspective: 500px;
}
.series-later ol {
  list-style: none;
  margin: 18px 0;
  padding: 0;
  transform: rotateX(24deg);
  transform-origin: 50% 0;
}
.series-later li {
  font: 400 30px / 1.25 var(--display);
  color: var(--paper);
  margin: 0 0 6px;
}
.series-later li:nth-child(2) {
  font-size: 22px;
  color: var(--paper-dim);
}
.series-later li:nth-child(3) {
  font-size: 16px;
  color: var(--paper-faint);
}
.series-later li span {
  display: block;
  font: 500 max(0.42em, 10px) / 1.6 var(--label);
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.series-later-head,
.series-later-foot {
  margin: 0;
  font: 600 13px / 1.5 var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.series-later-foot {
  font-size: 11px;
}

.game {
  padding: 0 var(--gutter) clamp(90px, 12vw, 160px);
}

.film {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 82vh;
  max-height: 82svh;
  width: 100%;
  /* the video's own poster covers it; no picture underneath, so nothing extra is fetched */
  background: #000;
  box-shadow:
    0 40px 120px -40px rgba(0, 0, 0, 0.9),
    0 0 0 1px var(--rule);
}
.film-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 8s linear;
}
.film.playing .film-video {
  transform: scale(1);
}
/* Play/Pause, and Sound beside it on the clips that have sound, at the far end of the caption */
.film-tools {
  display: flex;
  flex: none;
  margin: -10px -10px -10px auto;
}
.film-toggle {
  padding: 10px;
  border: 0;
  background: none;
  font: inherit;
  white-space: nowrap;
  color: var(--house);
  cursor: pointer;
}
.film.tap {
  cursor: pointer;
}
.film-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 16, 18, 0.85), rgba(15, 16, 18, 0.35) 22%, transparent 45%);
  pointer-events: none;
}
/* People read these: paper on a darkened foot of the picture, a shadow for the bright tiles, and a fade between clips */
.film-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  font: 500 14px / 1.5 var(--label);
  color: var(--paper);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  display: flex;
  gap: 10px;
  align-items: baseline;
  letter-spacing: 0.02em;
}
.film-caption .dot {
  flex: none;
  transform: translateY(-1px);
}
/* the line stops short of the Play/Pause button, which sits at the far end */
.film-caption-text {
  max-width: 70ch;
  transition: opacity 0.4s;
}
.film-caption-text.changing {
  opacity: 0;
}

.game-body {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 6vw, 100px);
  margin-top: clamp(50px, 7vw, 90px);
  align-items: start;
}
.game-title img {
  width: min(560px, 100%);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}
.tag {
  font: 400 clamp(20px, 2vw, 26px) / 1.3 var(--display);
  color: var(--house);
  margin: 18px 0 0;
}
.game-copy p {
  color: var(--paper-dim);
  margin: 0 0 18px;
  max-width: 36em;
}
.game-copy p:first-child {
  color: var(--paper);
  font-size: 19px;
}
.facts {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  border-top: 1px solid var(--rule);
}
.facts li {
  display: grid;
  grid-template-columns: 9em 1fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.facts li span {
  font: 500 12px / 2 var(--label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--paper-faint);
}
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* the household strip */
.staff {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: clamp(60px, 8vw, 110px);
}
.staff figure {
  margin: 0;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-3);
  box-shadow: 0 0 0 1px var(--rule);
}
.staff img {
  width: 100%;
  aspect-ratio: 600 / 440;
  object-fit: cover;
  transition:
    transform 0.8s var(--ease),
    filter 0.8s;
  filter: saturate(0.85) brightness(0.9);
}
@media (hover: hover) {
  .staff figure:hover img {
    transform: scale(1.07);
    filter: saturate(1.05) brightness(1.05);
  }
}
.staff figcaption {
  padding: 12px 14px 14px;
  font: 400 13px / 1.35 var(--sans);
  color: var(--paper-dim);
}

/* ---------- Underwriters ---------- */
.uw {
  position: relative;
  background: radial-gradient(80% 60% at 75% 50%, rgba(127, 178, 209, 0.07), transparent 70%), var(--ink-2);
  border-block: 1px solid var(--rule);
  padding-top: clamp(90px, 12vw, 160px);
}
.uw-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}
.uw-title {
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.uw .tag {
  color: var(--house);
  margin-bottom: 26px;
}
.uw-copy > p:not(.tag):not(.eyebrow) {
  color: var(--paper-dim);
  max-width: 34em;
}
.uw .eyebrow {
  color: var(--paper-faint);
}
.uw-film {
  margin-bottom: clamp(50px, 7vw, 90px);
}

/* The Underwriters' name, set to stand beside Under Management's: "The" small between two rules, the name in brass
   over the Guild's blue. It is type, not a picture, so it reads to everyone and costs nothing to load. */
.uw-mark {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.9;
  /* the name is about 8.2em wide: never wider than the column it is in */
  font-size: min(1em, 11.8cqi);
}
.uw-copy {
  container-type: inline-size;
}
.uw-mark-the {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.12em;
  font-size: 0.3em;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--house);
}
.uw-mark-the::before,
.uw-mark-the::after {
  content: "";
  flex: 1;
  height: 0.09em;
  background: currentColor;
}
.uw-mark-the::after {
  /* the last letter's spacing would leave the rule short of the centre */
  margin-left: -0.5em;
}
.uw-mark-name {
  text-transform: uppercase;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #ecece6 10%, var(--paper) 50%, var(--paper-dim) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #0d1a22) drop-shadow(0 16px 30px rgba(0, 0, 0, 0.6));
}

.hand {
  position: relative;
  height: clamp(320px, 38vw, 520px);
  perspective: 1400px;
}
.hand img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(170px, 19vw, 270px);
  aspect-ratio: 600 / 440;
  object-fit: cover;
  border-radius: 12px;
  border: 6px solid #bebbb2;
  outline: 1px solid #23262a;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.85);
  transform-origin: 50% 160%;
  --i: 0;
  --spread: 1;
  transform: translate(-50%, -50%) rotate(calc((var(--i) - 2) * 11deg * var(--spread)))
    translateY(calc(var(--lift, 0) * -1px));
  transition:
    transform 0.6s var(--ease),
    filter 0.4s;
  will-change: transform;
}
.hand img:nth-child(1) {
  --i: 0;
}
.hand img:nth-child(2) {
  --i: 1;
}
.hand img:nth-child(3) {
  --i: 2;
}
.hand img:nth-child(4) {
  --i: 3;
}
.hand img:nth-child(5) {
  --i: 4;
}
.hand:not(.open) img {
  --spread: 0.15;
}
.hand img.lifted {
  --lift: 46;
  z-index: 5;
  filter: brightness(1.12);
}
@media (hover: hover) {
  .hand img:hover {
    --lift: 46;
    z-index: 5;
    filter: brightness(1.12);
  }
}

/* ---------- studio ---------- */
.studio {
  padding: clamp(110px, 14vw, 190px) var(--gutter) clamp(80px, 10vw, 140px);
}
.studio-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.studio-copy h2 {
  margin-bottom: 36px;
}
.studio-copy p:not(.eyebrow) {
  color: var(--paper-dim);
  max-width: 32em;
  margin: 0 0 18px;
  font-size: 18px;
}
/* Don's own reason, in his own words: lighter than the house's voice, so set apart as a quote */
.studio-why {
  margin: 8px 0 26px;
  padding-left: 22px;
  border-left: 2px solid var(--house-lo);
  max-width: 32em;
}
.studio-why blockquote {
  margin: 0;
}
.studio-why blockquote p {
  margin: 0;
  font: 400 19px / 1.5 var(--display);
  color: var(--paper);
}
.studio-why figcaption {
  margin-top: 10px;
  font: 600 13px var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.studio-copy p:nth-of-type(2) {
  color: var(--paper);
  font-size: 21px;
  font-family: var(--display);
  line-height: 1.45;
}

/* On the Warder's paper: the game's grey ledger stock (#d3d1ca to #bebbb2 at 170 degrees), his iron ink #23262a; the
   entries and his red a step darker than the game's (#5d6066, #94433e) so they pass 4.5:1 at the paper's dark end. */
.ledger {
  background-color: #c9c7bf;
  color: #23262a;
  border-radius: 6px;
  padding: 28px 30px 22px;
  box-shadow:
    0 50px 100px -40px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  background-image: linear-gradient(
    90deg,
    transparent 0 46px,
    rgba(148, 67, 62, 0.4) 46px 47px,
      transparent 47px
    ),
    linear-gradient(170deg, #d3d1ca, #bebbb2);
  transform: rotate(0.8deg);
  /* the site's one sheet of paper, in the Warder's hand */
  font-family: var(--warder);
}
.ledger-head {
  display: flex;
  justify-content: space-between;
  font: 500 16px var(--warder);
  font-variant: small-caps;
  letter-spacing: 0.08em;
  padding: 0 0 14px 34px;
  border-bottom: 2px solid #23262a;
}
.ledger dl {
  margin: 0;
}
/* the rows the game's totals fill (main.js) wait hidden until they come */
.ledger dl div[hidden] {
  display: none;
}
.ledger dl div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 0 0 0 34px;
  height: 44px;
  border-bottom: 1px solid rgba(35, 38, 42, 0.16);
}
.ledger dt {
  font: italic 400 17px var(--warder);
  color: #45484d;
}
.ledger dd {
  margin: 0;
  font: 500 22px var(--warder);
  font-variant-numeric: tabular-nums oldstyle-nums;
}
.ledger .nil dd {
  color: #783430;
  font-weight: 600;
}
.ledger-foot {
  margin: 14px 0 0 34px;
  font: italic 400 16px var(--warder);
  color: #45484d;
}

/* The studio's principles, set as the clauses of a policy: one under another, each numbered in the margin. */
.principles {
  margin-top: clamp(90px, 11vw, 150px);
  max-width: 62em;
}
.principles-head {
  margin: 0 0 8px;
  font: 400 22px var(--display);
  color: var(--paper-dim);
}
.principle {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 4px 24px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.principle:last-child {
  border-bottom: 1px solid var(--rule);
}
.principle .num {
  grid-row: span 2;
  font: 600 13px var(--label);
  color: var(--paper-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.principle h3 {
  font-size: 24px;
  margin: 0;
}
.principle p {
  color: var(--paper-dim);
  margin: 0;
  font-size: 16px;
}

/* ---------- contact ---------- */
.contact {
  position: relative;
  padding: clamp(110px, 14vw, 200px) var(--gutter);
  text-align: center;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 55%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(127, 178, 209, 0.18), transparent);
  pointer-events: none;
}
.contact-inner {
  position: relative;
}
.contact h2 {
  margin-bottom: 22px;
}
.contact p:not(.eyebrow) {
  color: var(--paper-dim);
  margin: 0 0 40px;
}
.contact .contact-note {
  margin: 28px 0 0;
  font: 400 17px var(--display);
  color: var(--paper-faint);
}
.mail {
  font: 400 clamp(21px, 6vw, 60px) var(--display);
  color: var(--house);
  text-decoration: none;
  background: linear-gradient(var(--house), var(--house)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease);
  padding-bottom: 6px;
  word-break: break-word;
}
@media (hover: hover) {
  .mail:hover {
    background-size: 100% 1px;
  }
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 30px var(--gutter);
  border-top: 1px solid var(--rule);
  font: 500 13px var(--label);
  color: var(--paper-faint);
  letter-spacing: 0.04em;
}
.foot a {
  text-decoration: none;
}
.foot-links {
  display: flex;
  gap: 20px;
}
.foot a:hover {
  color: var(--paper);
}

/* ---------- the email sign-up ---------- */
.sr,
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hp {
  left: -9999px;
}
.nowrap {
  white-space: nowrap;
}
.signup {
  position: relative;
  /* a link to #signup (the demo's end card) lands with the title clear of the fixed nav */
  scroll-margin-top: 90px;
  margin-top: 40px;
  padding: 24px 24px 20px;
  border-radius: 6px;
  background: var(--ink-2);
  box-shadow: 0 0 0 1px var(--rule);
  max-width: 34em;
}
.signup-title {
  display: block;
  margin: 0 0 14px;
  font: 400 21px / 1.35 var(--display);
  color: var(--paper);
}
.signup-row {
  display: flex;
  gap: 10px;
}
.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px var(--sans);
  box-shadow: inset 0 0 0 1px rgba(220, 220, 214, 0.22);
  transition: box-shadow 0.3s;
}
.signup input[type="email"]::placeholder {
  color: var(--paper-faint);
}
.signup input[type="email"]:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--house), 0 0 0 4px rgba(127, 178, 209, 0.15);
}
.signup button {
  border: 0;
  cursor: pointer;
  flex: none;
}
.signup-row .btn {
  justify-content: center;
}
.signup .btn-ghost {
  background: transparent;
}
.signup button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.signup-consent {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--paper-faint);
}
.signup-consent a {
  color: var(--paper-dim);
}
.signup-status {
  margin: 0;
  font: 400 17px / 1.4 var(--display);
  color: var(--house);
  min-height: 0;
}
.signup-status:not(:empty) {
  margin-top: 14px;
  animation: noted 0.6s var(--ease);
}
.signup[data-state="invalid"] .signup-status,
.signup[data-state="busy"] .signup-status,
.signup[data-state="error"] .signup-status,
.signup[data-state="network"] .signup-status {
  color: var(--bad);
}
.signup[data-state="sending"] .signup-status {
  color: var(--paper-faint);
}
@keyframes noted {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.game-copy .signup {
  margin-top: 44px;
}

/* in the footer: one line, no box */
.signup-foot {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 26em) 1fr;
  align-items: center;
  gap: 8px 20px;
  margin: 0 0 22px;
  padding: 0 0 24px;
  max-width: none;
  background: none;
  box-shadow: none;
  border-radius: 0;
  border-bottom: 1px solid var(--rule);
}
.signup-foot .signup-title {
  margin: 0;
  font: 500 13px var(--label);
  letter-spacing: 0.04em;
  color: var(--paper-dim);
}
.signup-foot input[type="email"] {
  /* 16px or iOS zooms the page on focus; the slimmer padding keeps the line as tall as it was */
  padding: 9px 16px;
  font-size: 16px;
  line-height: 19px;
}
.signup-foot .btn {
  padding: 10px 18px;
  font-size: 14px;
}
.signup-foot .signup-consent {
  margin: 0;
  font: 500 13px var(--label);
}
.signup-foot .signup-status {
  grid-column: 1 / -1;
  font-size: 15px;
}
.signup-foot .signup-status:not(:empty) {
  margin-top: 4px;
}

/* ---------- plain pages (privacy, the sign-up's answer without JavaScript) ---------- */
.doc {
  max-width: 44em;
  padding: clamp(120px, 14vw, 170px) var(--gutter) 90px;
  margin: 0 auto;
}
.doc h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.doc h2 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 44px 0 10px;
}
.doc p {
  color: var(--paper-dim);
  margin: 0 0 14px;
}
.doc .eyebrow {
  margin: -3px 0 11px;
}
.doc a {
  color: var(--house);
}
.doc .updated,
.doc .sign {
  font: 500 13px var(--label);
  color: var(--paper-faint);
  letter-spacing: 0.04em;
}
.doc .sign {
  margin-top: 50px;
}

/* ---------- reveal motion ----------
   Only with JavaScript: the inline script in each page's head sets .js on <html>, and without it
   everything is simply there. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s var(--ease),
    transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.js .reveal-scale {
  clip-path: inset(8% 6% 8% 6% round 18px);
  transition: clip-path 1.4s var(--ease);
}
.reveal-scale.in {
  clip-path: inset(0 0 0 0 round 18px);
}
.js .hero h1.reveal .line {
  display: block;
  transform: translateY(40%);
  opacity: 0;
  transition:
    transform 1.3s var(--ease),
    opacity 1.1s var(--ease);
}
.hero h1.reveal.in {
  opacity: 1;
  transform: none;
}
.hero h1.reveal.in .line {
  transform: none;
  opacity: 1;
}
.hero h1.reveal.in .line:last-child {
  transition-delay: 0.12s;
}
/* The first screen doesn't wait: its words are there in a third of a second, without the rise. The slow reveals are
   for what comes into view later. */
.js .hero .reveal,
.js .gp-hero .reveal,
.js .press-hero .reveal,
.js .hero h1.reveal .line {
  transform: none;
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
  transition-delay: calc(var(--d, 0s) / 2);
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .signup-foot {
    grid-template-columns: 1fr;
  }
  .game-body,
  .uw-grid,
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .staff {
    grid-template-columns: repeat(5, 38%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding-bottom: 8px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .staff figure {
    scroll-snap-align: start;
  }
  .hero-note {
    display: none;
  }
  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(11, 12, 14, 0.35) 0%,
      rgba(11, 12, 14, 0.8) 30%,
      rgba(11, 12, 14, 0.8) 70%,
      var(--ink) 100%
    );
  }
  .hand {
    height: clamp(210px, 56vw, 300px);
    margin-top: 20px;
  }
  .ledger {
    transform: none;
    max-width: 34rem;
  }
}
/* on a phone the principles go one under another; an upright iPad keeps them three across */
@media (max-width: 700px) {
  /* no room for the rule: the entry wraps as plain text */
  .series-no {
    display: block;
  }
  .series-no span {
    margin-right: 10px;
  }
  .principle {
    grid-template-columns: 1fr;
  }
  .principle .num {
    grid-row: auto;
  }
}
@media (max-width: 600px) {
  .staff {
    grid-template-columns: repeat(5, minmax(220px, 62%));
  }
}
@media (max-width: 520px) {
  .signup-row {
    flex-direction: column;
  }
  .signup {
    padding: 20px 18px 18px;
  }
  .signup-foot {
    grid-template-columns: 1fr;
    padding: 0 0 22px;
  }

  /* on a phone the nav keeps the two games and Press (by address, so a link added between them can't change which),
     and the mark keeps the way home */
  .nav nav a:not([href="/under-management"]):not([href="/the-underwriters"]):not([href="/press"]) {
    display: none;
  }
  .facts li {
    grid-template-columns: 7.5em 1fr;
  }
  .ledger {
    padding: 22px 18px 18px;
  }
  .ledger dl div,
  .ledger-head,
  .ledger-foot {
    padding-left: 24px;
    margin-left: 0;
  }
  .ledger {
    background-image: linear-gradient(
      90deg,
      transparent 0 30px,
      rgba(190, 60, 50, 0.35) 30px 31px,
      transparent 31px
    );
  }
  .ledger dt {
    font-size: 14px;
  }
}
/* Three links and the name don't fit on a phone: the mark alone takes you home, and The Underwriters loses its
   article on the narrowest */
@media (max-width: 520px) {
  .mark span {
    display: none;
  }
}
@media (max-width: 420px) {
  .nav nav {
    gap: 14px;
  }
  .nav nav a {
    font-size: 13px;
  }
  .nav-the {
    display: none;
  }
}

/* ---------- touch ----------
   Small links get a fingertip's worth of target (about 44px). The padding is taken back with a negative margin,
   so nothing moves. */
@media (pointer: coarse) {
  body::after {
    inset: 0;
    animation: none;
  }
  .mark {
    padding-block: 9px;
    margin-block: -9px;
  }
  .nav nav a {
    padding: 12px 6px;
    margin: -12px -6px;
  }
  .nav nav a::after {
    left: 6px;
    right: 6px;
    bottom: 8px;
  }
  .foot-links a {
    padding: 14px 6px;
    margin: -14px -6px;
  }
  .signup-foot input[type="email"],
  .signup-foot .btn {
    min-height: 44px;
  }
  .signup-consent a,
  .gp-mail {
    padding: 12px 4px;
    margin: -12px -4px;
  }
  .gp-mail {
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal,
  .js .hero h1.reveal .line {
    opacity: 1;
    transform: none;
  }
  .js .reveal-scale {
    clip-path: none;
  }
  html {
    scroll-behavior: auto;
  }
}
/* An upright iPad: the hero fills the screen with the copy at its foot, and the wash over the dig fades out towards
   the top, so the house being dug shows clearly above the words. After the 900px rules, which it overrides. By shape
   as well as width: the 13" iPad Pro is 1032 wide upright. */
@media (min-width: 701px) and (max-width: 900px), (min-width: 701px) and (orientation: portrait) {
  .hero {
    align-items: flex-end;
    padding-bottom: 72px;
  }
  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(11, 12, 14, 0) 0%,
      rgba(11, 12, 14, 0.15) 30%,
      rgba(11, 12, 14, 0.85) 62%,
      var(--ink) 100%
    );
  }
}

/* The hero's note: a mouse moves the lantern and clicks; a finger on an iPad taps. Not on a phone, where the dig
   is drawn still under the clip. */
.note-touch {
  display: none;
}
@media (hover: none) and (pointer: coarse) and (min-width: 701px) {
  .hero-note {
    display: flex;
  }
  .note-mouse {
    display: none;
  }
  .note-touch {
    display: inline;
  }
}
/* upright, the words are at the foot of the hero: the note goes at the top, under the nav, over the house */
@media (hover: none) and (pointer: coarse) and (min-width: 701px) and (orientation: portrait) {
  .hero-note {
    top: 92px;
    bottom: auto;
  }
}
/* the hero answers a tap (main.js plans a room): taps in quick succession are taps, not a zoom */
.hero {
  touch-action: manipulation;
}

/* A phone, upright: the film's caption goes under the picture, not over it. At this width it wraps to three or four
   lines and covered up to half the clip, and the clips are what sell the game here. After game.css's phone rules, which
   it overrides (hence .film.gp-film). */
@media (max-width: 700px) {
  .film,
  .film.gp-film,
  .uw-page .film.gp-film {
    aspect-ratio: auto;
    max-height: none;
    overflow: visible;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .film-video {
    display: block;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 6px;
    transform: none;
    background: #000;
    box-shadow: 0 0 0 1px var(--rule);
  }
  .film-shade {
    display: none;
  }
  .film .film-caption {
    position: static;
    padding: 10px 2px 0;
    align-items: baseline;
    line-height: 1.5;
  }
}
