/* Playbook: white pages on a faint football field, charcoal ink, gold for the read. */
:root {
  --paper: oklch(1 0 0);
  --ink: oklch(0.24 0 0);
  --ink-2: oklch(0.4 0.006 255);
  --ink-3: oklch(0.54 0.01 255);
  --x-ink: oklch(0.43 0.008 255);
  --ghost: oklch(0.85 0.006 250);
  --mute: oklch(0.64 0.008 255);
  --rule: oklch(0.88 0.006 250);
  --rule-2: oklch(0.79 0.008 250);
  --yard: oklch(0.93 0.005 250);
  --hash: oklch(0.89 0.006 250);
  --fld: oklch(0.87 0.007 250);
  --los: oklch(0.5 0.01 255);
  --gold: var(--ui-media-ink-gold);
  --gold-ink: var(--ui-action-foreground);
  --edge: oklch(0 0 0 / 0.55);
  --ring: var(--ui-ring);
  --night: oklch(0.205 0 0);
  --m: clamp(16px, 4vw, 64px);
  --gap: clamp(16px, 2vw, 32px);
  --sy: clamp(64px, 8vw, 120px);
  --cond: var(--ui-font-heading);
  --sans: var(--ui-font-sans);
}

.night {
  --paper: var(--night);
  --ink: oklch(0.97 0 0);
  --ink-2: oklch(0.82 0 0);
  --ink-3: oklch(0.66 0 0);
  --x-ink: oklch(0.74 0 0);
  --ghost: oklch(0.42 0 0);
  --mute: oklch(0.6 0 0);
  --rule: oklch(1 0 0 / 0.14);
  --rule-2: oklch(1 0 0 / 0.24);
  --yard: oklch(1 0 0 / 0.07);
  --hash: oklch(1 0 0 / 0.11);
  --fld: oklch(1 0 0 / 0.13);
  --los: oklch(1 0 0 / 0.5);
  --ring: var(--gold);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
body, .paper { background-color: var(--paper); }
/* The field: a faint yard line every five yards, with hash marks at the edges and thirds. The page
   stays plain paper. Only the closing band shows it, and the opening play draws its own. */
.closing {
  --yd: 26px;
  --tick: linear-gradient(var(--hash) 1px, transparent 1px);
  background-image: linear-gradient(var(--yard) 1px, transparent 1px), var(--tick), var(--tick), var(--tick), var(--tick);
  background-size: 100% calc(var(--yd) * 5), 14px var(--yd), 14px var(--yd), 10px var(--yd), 10px var(--yd);
  background-position: 0 0, calc(100% / 3) 0, calc(200% / 3) 0, 0 0, 100% 0;
  background-repeat: repeat, repeat-y, repeat-y, repeat-y, repeat-y;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}
::selection { background: color-mix(in oklab, var(--gold) 55%, transparent); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.004em;
  text-wrap: balance;
}
h1 { font-size: clamp(46px, 6.9vw, 108px); line-height: 0.88; }
h2 { font-size: clamp(34px, 4vw, 60px); line-height: 0.92; }
h3 { font-size: clamp(22px, 1.75vw, 27px); line-height: 1.02; }

.wrap { width: min(1312px, 100% - 2 * var(--m)); margin-inline: auto; }
.copy { max-width: 56ch; color: var(--ink-2); }
.copy + .copy { margin-top: 1em; }
h2 + .copy, h1 + .lead { margin-top: clamp(20px, 2.2vw, 30px); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 40ch; color: var(--ink-2); }
.small { font-size: 14px; color: var(--ink-3); }

.skip { position: fixed; left: 12px; top: -80px; z-index: 50; padding: 12px 18px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-2); }
.skip:focus { top: 12px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 2px;
  background: var(--ui-action); color: var(--ui-action-foreground);
  font: 500 16px/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--ui-action-hover); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.night .btn-quiet, .btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-2); }
.night .btn-quiet:hover, .btn-quiet:hover { background: oklch(1 0 0 / 0.08); }
.tlink {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.tlink:hover { text-decoration-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(26px, 2.6vw, 36px); }

.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 23px/1 var(--ui-font-mark); letter-spacing: -0.02em; text-decoration: none; }
.brand-box { width: 32px; height: 32px; }

/* Spreads: two pages and a fold */
.spread {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: calc(var(--gap) * 2);
  align-items: center;
  padding-block: var(--sy);
  border-top: 1px solid var(--rule);
}
.spread::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid var(--rule); pointer-events: none; }
.pg { min-width: 0; }
.pg-r { padding-left: clamp(0px, 2vw, 32px); }
.pg-l { padding-right: clamp(0px, 2vw, 32px); }

.sheet { position: relative; padding-block: var(--sy); border-top: 1px solid var(--rule); }
.sheet.folded::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid var(--rule); pointer-events: none; }
.sheet-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(var(--gap) * 2); align-items: end; }
.sheet-head .copy { padding-left: clamp(0px, 2vw, 32px); }
.sheet-head h2:only-child { grid-column: 1 / -1; }
.sheet-head h2 { padding-right: clamp(0px, 2vw, 32px); }

/* Diagrams */
.dg { margin: 0; }
.dg-frame { position: relative; overflow: hidden; }
.dg.framed .dg-frame { box-shadow: inset 0 0 0 1px var(--rule-2); }
.dg svg.play { width: 100%; height: auto; overflow: visible; }
.dg.framed svg.play { overflow: hidden; }
.dg figcaption { margin-top: 12px; font-size: 13px; line-height: 1.3; color: var(--ink-3); }

.play .yl { stroke: var(--fld); stroke-width: 1px; vector-effect: non-scaling-stroke; fill: none; }
.play .hm { stroke: var(--fld); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.play .sl { stroke: var(--rule-2); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.play .los { stroke: var(--los); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.play .ltg { stroke: var(--ink-2); stroke-width: 1.5px; stroke-dasharray: 7 6; vector-effect: non-scaling-stroke; }
.play .o { fill: var(--paper); stroke: var(--ink); }
.play .o.ghost { stroke: var(--ghost); }
.play .o-edge { fill: var(--paper); stroke: var(--edge); }
.play .o-gold { fill: none; stroke: var(--gold); }
.play .x { fill: none; stroke: var(--x-ink); stroke-linecap: round; }
.play .x.ghost { stroke: var(--ghost); }
.play .x.mute { stroke: var(--mute); }
.play .ball { fill: var(--ink); }
.play .r path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.play .r .ah { stroke-linejoin: round; }
.play .r.ink path { stroke: var(--ink); }
.play .r.ink .ah { fill: var(--ink); }
.play .r.ghost path { stroke: var(--ghost); }
.play .r.ghost .ah { fill: var(--ghost); }
.play .r.mute path { stroke: var(--mute); }
.play .r.mute .ah { fill: var(--mute); }
.play .r.gold path { stroke: var(--gold); }
.play .r.gold .ah { fill: var(--gold); }
.play .r.gold [data-edge] { stroke: var(--edge); }
.play .r.gold .ah[data-edge] { fill: var(--edge); }
.play .r.blk .ah { fill: none; }
.play .r.dash .rt-fade { stroke-dasharray: 16 13; }

/* Motion: players step to their spots, then routes draw, once per diagram */
.pb-motion .dg .pl { opacity: 0; transform: translateY(calc(var(--s, 1) * 20px)); }
.pb-motion .dg .rt { stroke-dasharray: 1 2; stroke-dashoffset: 1.001; opacity: 0; }
.pb-motion .dg .ah, .pb-motion .dg .rt-fade { opacity: 0; }
.pb-motion .dg.on .pl {
  opacity: 1; transform: none;
  transition: opacity 0.3s ease-out calc(var(--i) * 20ms), transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) calc(var(--i) * 20ms);
}
.pb-motion .dg.on .rt {
  stroke-dashoffset: 0; opacity: 1;
  transition: stroke-dashoffset var(--t) cubic-bezier(0.55, 0, 0.3, 1) var(--d), opacity 0s linear var(--d);
}
.pb-motion .dg.on .ah { opacity: 1; transition: opacity 0.12s linear calc(var(--d) + var(--t) - 0.06s); }
.pb-motion .dg.on .rt-fade { opacity: 1; transition: opacity 0.45s ease-out var(--d); }
@media (prefers-reduced-motion: reduce) {
  .pb-motion .dg .pl, .pb-motion .dg .rt, .pb-motion .dg .ah, .pb-motion .dg .rt-fade { opacity: 1; transform: none; stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
  .play .r.dash .rt-fade { stroke-dasharray: 16 13; }
}

/* Cover: the play drawn across the top of the page */
.cover { padding-bottom: clamp(48px, 6vw, 88px); }
.cover-field { max-width: 1680px; margin-inline: auto; border-bottom: 1px solid var(--rule); }
.cover-field .dg-frame { overflow: hidden; }
.cover-copy { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-top: clamp(28px, 3.4vw, 48px); align-items: end; }
.cover-copy h1 { grid-column: 1 / 8; }
.cover-side { grid-column: 8 / 13; padding-bottom: 6px; }
.cover-side .lead { max-width: 44ch; }
.cover-side .actions { margin-top: 26px; }
.cover-contact .cover-copy h1 { grid-column: 1 / 11; }

/* Title spreads on the inner pages */
.title-spread { border-top: 0; padding-top: clamp(48px, 6vw, 88px); }
.title-spread h1 { font-size: clamp(42px, 5.2vw, 84px); }
.title-spread .lead { max-width: 42ch; }

/* Photos cropped into the grid */

/* Dark spread for product screens */
.shots .spread { border-top: 0; align-items: end; padding-top: clamp(64px, 7vw, 104px); }
.shots .spread::before { bottom: auto; height: calc(var(--sy) + 140px); }
.shots .pg-r { display: grid; gap: 22px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs[hidden] { display: none; }
.tabs button {
  min-height: 40px; padding: 0 14px; border: 0; border-radius: 2px;
  background: transparent; box-shadow: inset 0 0 0 1px var(--rule-2);
  font-size: 15px; font-weight: 500;
}
.tabs button:hover { background: oklch(1 0 0 / 0.07); }
.tabs button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--gold); }
.night .tabs button[aria-pressed="true"] { background: transparent; }
.shot { grid-column: 1 / -1; margin-top: clamp(32px, 4vw, 56px); }
.shot-frame { background: oklch(0.97 0 0); box-shadow: 0 0 0 1px var(--rule-2); }
.shot-frame img { width: 100%; }
.shot figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.shot-note { color: var(--ink-3); margin-right: auto; }
.shot [data-open-shot][hidden] { display: none; }

.shot-dialog { width: min(1480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; background: var(--night); color: oklch(0.97 0 0); }
.shot-dialog::backdrop { background: oklch(0 0 0 / 0.72); }
.dialog-bar { display: flex; justify-content: flex-end; padding: 10px; }
.dialog-scroll { max-height: calc(100vh - 100px); overflow: auto; }
.dialog-scroll img { width: 100%; min-width: 900px; }

/* Plays and product sheets laid out on a sheet. Each card shares the sheet's rows, so headings line up across a row. */
.cards { --row: clamp(56px, 6vw, 96px); display: grid; column-gap: calc(var(--gap) * 2); margin-top: clamp(44px, 5vw, 76px); margin-bottom: calc(-1 * var(--row)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-2 .card:nth-child(odd) { padding-right: clamp(0px, 2vw, 32px); }
.cards-2 .card:nth-child(even) { padding-left: clamp(0px, 2vw, 32px); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.card { display: grid; grid-row: span 4; grid-template-rows: subgrid; padding-bottom: var(--row); }
.card .dg { margin-bottom: 26px; }
.card h3 + p { margin-top: 12px; }
.card p { max-width: 48ch; color: var(--ink-2); }
.card .tlink { display: inline-block; margin-top: 16px; }

/* Practice and review cards */
.card-dg { max-width: 540px; margin-inline: auto; }
.sheet-card { display: grid; gap: 22px; }
.say { display: flex; gap: 14px; align-items: flex-start; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.42; font-weight: 500; }
.say svg { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-2); }
.sc { background: var(--paper); box-shadow: 0 0 0 1px var(--rule-2); padding: 18px 22px 16px; }
.sc-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-bottom: 12px; font: 600 21px/1.1 var(--cond); text-transform: uppercase; }
.sc-title span { font: 400 14px/1.3 var(--sans); text-transform: none; color: var(--ink-3); }
.row { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 14px; padding: 11px 0; border-top: 1px solid var(--rule); font-size: 15px; font-variant-numeric: tabular-nums; }
.row span:first-child { color: var(--ink-3); }
.row span:last-child { font-weight: 500; }
.sc-calls .row { grid-template-columns: 92px minmax(0, 1fr) auto; }
.vg .sc { max-width: 560px; }

/* Film: each clip is a dark frame with its length */
.sc-cut .row { grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; padding: 9px 0; }
.clip { position: relative; display: block; height: 38px; border-radius: 2px; background: oklch(0.3 0 0) repeating-linear-gradient(90deg, transparent 0 20px, oklch(1 0 0 / 0.12) 20px 21px) 9px 0; }
.clip b { position: absolute; right: 4px; bottom: 3px; font: 500 11px/1 var(--sans); color: oklch(1 0 0 / 0.92); font-variant-numeric: tabular-nums; }
.row small { display: block; margin-top: 1px; font-size: 13px; color: var(--ink-3); }
.sc-script .row { grid-template-columns: 22px minmax(0, 1fr) auto; }
.sc-recruit .row { grid-template-columns: 40px minmax(0, 1fr) auto; }
.sc-kv .row { grid-template-columns: 76px minmax(0, 1fr); }
.sc-depth .row { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr); }
.sc-depth .row span:nth-child(2) { font-weight: 500; }
.sc-depth .row span:last-child { font-weight: 400; color: var(--ink-2); }
.sc-depth .row-head { padding: 0 0 8px; border-top: 0; font-size: 13px; }
.sc-depth .row-head span:nth-child(n) { font-weight: 400; color: var(--ink-3); }
/* Status is a plain coloured word */
:is(.ok, .warn, .na) { font-style: normal; }
.ok { color: var(--ui-success); }
.warn { color: var(--ui-warning); }
.na { color: var(--ui-destructive); }
.night .ok { color: oklch(0.78 0.12 152); }
.night .warn { color: oklch(0.8 0.12 75); }
.night .na { color: oklch(0.74 0.13 25); }

/* Each sheet shows its change its own way: the clip plays, the added call comes in, the answer is chosen */
.clip .ph { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); transform-origin: left; transform: scaleX(0.4); }
.row.now > span:nth-child(2) { font-weight: 500; }
.dot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.pb-motion :is(.take, .dg) .clip .ph { transform: scaleX(0); }
.pb-motion :is(.take:is([data-step="swap"], [data-step="done"]), .dg.on) .clip .ph { transform: scaleX(1); transition: transform 4s linear 0.6s; }
.pb-motion .dg .added { opacity: 0; transform: translateY(6px); }
.pb-motion .dg.on .added { opacity: 1; transform: none; transition: opacity 0.25s ease-out 0.5s, transform 0.3s cubic-bezier(0.32, 0.72, 0, 1) 0.5s; }
.pb-motion .dg .pick::after { opacity: 0; }
.pb-motion .dg.on .pick::after { opacity: 1; transition: opacity 0.2s ease-out 0.7s; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choices i { padding: 1px 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--rule-2); font-style: normal; font-weight: 500; }
.choices .pick { position: relative; }
.choices .pick::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--gold); }
.val { display: inline-grid; font-style: normal; }
.val > i { grid-area: 1 / 1; font-style: normal; }
.val .was { visibility: hidden; }
.sc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.steps { display: inline-flex; gap: 6px; }
.steps span { padding: 4px 10px; box-shadow: inset 0 0 0 1px var(--rule-2); border-radius: 2px; font-weight: 500; color: var(--ink); }
.steps span:last-child { background: var(--ui-action); color: var(--ui-action-foreground); box-shadow: none; }

/* Hours back */
.calc { align-items: stretch; }
.dials { display: grid; gap: 22px; margin-top: clamp(32px, 3.4vw, 44px); max-width: 560px; }
.dial label { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; font-weight: 500; }
.dial-value { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dial-value output { font-weight: 600; }
.track { position: relative; display: block; margin-top: 4px; }
.track::before {
  content: ""; position: absolute; left: 11px; right: 11px; top: 50%; height: 12px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, var(--rule-2) 0 1px, transparent 1px 10%), linear-gradient(var(--rule-2), var(--rule-2)) right / 1px 100% no-repeat;
  pointer-events: none;
}
.dial input[type="range"] {
  -webkit-appearance: none; appearance: none;
  position: relative; display: block; width: 100%; height: 34px; margin: 0; background: transparent;
}
.dial input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 0;
  background: linear-gradient(var(--gold), var(--gold)) 0 0 / calc(11px + (100% - 22px) * var(--f, 0.5)) 100% no-repeat, linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 2px no-repeat;
}
.dial input[type="range"]::-moz-range-track { height: 2px; background: var(--ink); }
.dial input[type="range"]::-moz-range-progress { height: 4px; background: var(--gold); }
.dial input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin-top: -9px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--ink); cursor: grab;
}
.dial input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.dial input[type="range"]:disabled::-webkit-slider-thumb { border-color: var(--ink-3); cursor: default; }
.dial input[type="range"]:focus-visible { outline-offset: 2px; }
.result { display: flex; flex-direction: column; justify-content: center; }
.res { display: flex; flex-direction: column; }
.res output { font: 600 clamp(110px, 14vw, 212px)/0.8 var(--cond); letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.res span { margin-top: 18px; font: 600 clamp(22px, 2vw, 30px)/1 var(--cond); text-transform: uppercase; }
.season { margin-top: 30px; font-size: 19px; max-width: 30ch; }
.season strong { font-weight: 600; }
.result .tlink { margin-top: 26px; align-self: flex-start; }

/* Games */
.games3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(44px, 5vw, 72px); }
.game-photo { aspect-ratio: 4 / 3; overflow: hidden; box-shadow: 0 0 0 1px var(--rule-2); }
.game-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.game h3 { margin-top: 24px; }
.game h3 a { text-decoration: none; }
.game h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.game p { margin-top: 10px; color: var(--ink-2); max-width: 40ch; }
.levels { display: flex; flex-wrap: wrap; gap: 8px 30px; margin-top: clamp(40px, 4vw, 56px); padding-top: 20px; border-top: 1px solid var(--rule); font-weight: 500; }
.levels a { text-decoration: underline; text-decoration-color: var(--rule-2); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.levels a:hover { text-decoration-color: var(--gold); }
.lv { margin-top: clamp(64px, 7vw, 112px); }
.lv-h { font-size: clamp(28px, 2.8vw, 42px); line-height: 0.95; }
.lv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(24px, 2.6vw, 36px); }
.lv-item { padding-top: 18px; border-top: 2px solid var(--ink); }
.lv-item h4 { margin: 0; font: 600 clamp(22px, 1.75vw, 27px)/1.02 var(--cond); text-transform: uppercase; letter-spacing: 0.004em; text-wrap: balance; }
.lv-item h4 a { text-decoration: none; }
.lv-item h4 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lv-item p { margin-top: 10px; color: var(--ink-2); max-width: 32ch; text-wrap: pretty; }
.game-link { display: grid; gap: 16px; text-decoration: none; font-weight: 500; font-size: 18px; }
.game-link span { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }

.insert {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(var(--gap) * 2); align-items: start;
  margin-top: clamp(56px, 6vw, 88px); padding: clamp(24px, 3vw, 40px);
  background: var(--paper); box-shadow: 0 0 0 1px var(--rule-2);
}
.insert p { color: var(--ink-2); max-width: 50ch; }
.insert .tlink { display: inline-block; margin-top: 14px; }

/* Closing */
.closing .spread { border-top: 0; }
.closing .spread { align-items: end; }
.closing h2 { font-size: clamp(38px, 4.6vw, 72px); }
.closing .actions { margin-top: 0; }

/* Guide */
.contents ol { counter-reset: none; border-top: 1px solid var(--rule); }
.contents li { border-bottom: 1px solid var(--rule); }
.contents a { display: block; padding: 14px 0; font: 600 clamp(19px, 1.5vw, 23px)/1.1 var(--cond); text-transform: uppercase; text-decoration: none; }
.contents a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.guide-title { align-items: end; }
.guide-title h1 { font-size: clamp(42px, 5vw, 80px); }
.step .copy { font-size: 18px; line-height: 1.65; }
.step h2 { font-size: clamp(30px, 3.2vw, 48px); }

/* Contact */
.talk { align-items: start; }
.asides { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 28px; }
.asides h3 { font-size: 20px; margin-bottom: 8px; }
.form { background: var(--paper); box-shadow: 0 0 0 1px var(--rule-2); padding: clamp(20px, 3vw, 40px); }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; min-width: 0; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--rule-2); border-radius: 2px; background: var(--paper);
  font-size: 16px;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:disabled, .field select:disabled, .field textarea:disabled { background-color: oklch(0.97 0.003 250); }
.form-note { font-size: 14px; color: var(--ink-3); max-width: 60ch; }
.form-status:empty { display: none; }
.form-status { margin-top: 16px; font-weight: 500; }

/* Footer */
.foot { padding-block: clamp(56px, 6vw, 88px) 32px; border-top: 1px solid var(--rule); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { margin-top: 14px; color: var(--ink-2); }
.foot-group h2 { font: 600 15px/1.2 var(--cond); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 14px; }
.foot-group a { display: block; padding: 5px 0; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.foot-group a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-3); }
.foot-legal { display: flex; gap: 20px; }
.foot-legal a { text-decoration: none; }
.foot-legal a:hover { text-decoration: underline; }

/* Narrower screens */
@media (max-width: 1100px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .spread, .sheet-head, .insert { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .copy-first .pg-r { order: -1; }
  .spread::before, .sheet.folded::before { display: none; }
  .pg-l, .pg-r, .sheet-head .copy, .sheet-head h2 { padding: 0; }
  .sheet-head { row-gap: 18px; }
  .insert { row-gap: 16px; }
  .cover-copy h1, .cover-side, .cover-contact .cover-copy h1 { grid-column: 1 / -1; }
  .cover-side { margin-top: 22px; }
  .cards-2, .cards-3, .games3 { grid-template-columns: minmax(0, 1fr); }
  .lv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .cards-2 .card:nth-child(n) { padding-inline: 0; }
  .shots .spread::before { display: none; }
  .title-spread .pg-r, .step .pg-r { order: -1; }
  .guide-title .pg-r { order: 0; }
  .dg[style*="--cw"] svg.play { width: var(--cw); max-width: none; margin-left: var(--cx); }
}
@media (max-width: 560px) {
  .lv-grid { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  body { font-size: 16px; }
  .form-row, .asides { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .asides { gap: 20px; }
  .row { grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; font-size: 14px; }
  .sc-calls .row { grid-template-columns: 78px minmax(0, 1fr) auto; }
  .sc { padding: 14px 16px 12px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; }
  .res output { font-size: 104px; }
  .shot figcaption { font-size: 13px; }
}
.sheet > .cards:first-child { margin-top: 0; }

/* Voice examples. Without JavaScript they stack, each showing its finished draft. With it they share
   one place and the buttons switch between them. With motion each plays like someone speaking: the
   request word by word, then the sheet changes and the draft is done, and the next example follows. */
.voice { max-width: 540px; margin-inline: auto; }
.voice .tabs { margin-bottom: 20px; }
.tabs button:hover { background: color-mix(in oklab, var(--ink) 7%, transparent); }
.takes { display: grid; gap: 56px; }
.voice.live .takes { gap: 0; }
.voice.live .take { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.25s ease-out, visibility 0s linear 0.25s; }
.voice.live .take.cur { opacity: 1; visibility: visible; transition: opacity 0.3s ease-out, visibility 0s; }
.sc-play .dg-frame { margin: 4px 0 14px; }
.take .r.was { opacity: 0; }

.pb-motion .take .steps span:last-child { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-2); transition: background-color 0.3s, box-shadow 0.3s; }
.pb-motion .take .say .w { opacity: 0; transition: opacity 0.16s ease-out; }
.pb-motion .take .say .w.on { opacity: 1; }
.pb-motion .take[data-step="speak"] .say svg { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--gold); animation: take-listen 1.1s ease-out infinite; }
.pb-motion .take[data-step="done"] .steps span:last-child { background: var(--ui-action); color: var(--ui-action-foreground); box-shadow: none; }

/* Practice: two periods trade places, then their start times update */
.mv { position: relative; background: var(--paper); }
.pb-motion .take .mv-up { transform: translateY(100%); z-index: 1; }
.pb-motion .take .mv-down { transform: translateY(-100%); }
.pb-motion .take:is([data-step="swap"], [data-step="done"]) .mv { transform: none; transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1); }
.pb-motion .take .val .was { visibility: visible; }
.pb-motion .take .val .now { opacity: 0; transform: translateY(0.45em); }
.pb-motion .take:is([data-step="swap"], [data-step="done"]) .val .was { opacity: 0; transform: translateY(-0.45em); transition: opacity 0.18s ease-in 0.55s, transform 0.25s ease-in 0.55s; }
.pb-motion .take:is([data-step="swap"], [data-step="done"]) .val .now { opacity: 1; transform: none; transition: opacity 0.25s ease-out 0.67s, transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1) 0.67s; }

/* Cut-up: the clips come back as one cut-up, one after another */
.pb-motion .take .sc-cut :is(.row, .sc-foot, .sc-title span) { opacity: 0; }
.pb-motion .take .sc-cut .row { transform: translateY(6px); }
.pb-motion .take:is([data-step="swap"], [data-step="done"]) .sc-cut .row { opacity: 1; transform: none; transition: opacity 0.25s ease-out calc(var(--i, 0) * 0.1s), transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1) calc(var(--i, 0) * 0.1s); }
.pb-motion .take:is([data-step="swap"], [data-step="done"]) .sc-cut :is(.sc-foot, .sc-title span) { opacity: 1; transition: opacity 0.25s ease-out 0.45s; }

/* Play: the old route pulls back to the receiver and the corner draws out in gold */
.pb-motion .take .play .r.was { opacity: 1; }
.pb-motion .take .play .rt { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.pb-motion .take .play .r.now .rt { stroke-dashoffset: 1.001; }
.pb-motion .take .play .r.now .ah { opacity: 0; }
.pb-motion .take:is([data-step="swap"], [data-step="done"]) .play .r.was .rt { stroke-dashoffset: 1.001; transition: stroke-dashoffset 0.45s cubic-bezier(0.55, 0, 0.6, 1); }
.pb-motion .take:is([data-step="swap"], [data-step="done"]) .play .r.was .ah { opacity: 0; transition: opacity 0.1s linear; }
.pb-motion .take:is([data-step="swap"], [data-step="done"]) .play .r.now .rt { stroke-dashoffset: 0; transition: stroke-dashoffset 0.8s cubic-bezier(0.3, 0, 0.2, 1) 0.4s; }
.pb-motion .take:is([data-step="swap"], [data-step="done"]) .play .r.now .ah { opacity: 1; transition: opacity 0.12s linear 1.15s; }
/* The play change on a phone, drawn in line like the plays: the field pinned at the top and the voice
   bar along the bottom, as the app lays it out on a phone */
.phone { width: min(300px, 100%); margin-inline: auto; padding: 9px; border-radius: 44px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.ph-screen { position: relative; display: flex; flex-direction: column; min-height: 540px; border-radius: 35px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule-2); }
.ph-screen::before { content: ""; position: absolute; top: 11px; left: 50%; width: 70px; height: 20px; margin-left: -35px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.ph-head { padding: 46px 18px 12px; font: 600 19px/1.1 var(--cond); text-transform: uppercase; }
.ph-field { padding: 14px 12px 0; border-block: 1px solid var(--rule); }
.ph-field svg.play { display: block; width: 100%; height: auto; overflow: visible; }
.ph-cap { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 10px -12px 0; padding: 7px 14px; border-top: 1px solid var(--rule); font-size: 11.5px; color: var(--ink-3); }
.ph-players { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; }
.ph-p { display: inline-flex; align-items: baseline; gap: 7px; padding: 6px 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 13px; }
.ph-p b { font: 600 13px/1 var(--cond); }
.ph-p > span, .ph-p .val { color: var(--ink-2); }
.ph-dock { margin-top: auto; display: grid; gap: 8px; padding: 10px 14px 18px; border-top: 1px solid var(--rule); }
.ph-bar { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.ph-mic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-2); }
.ph-mic svg { width: 16px; height: 16px; }
.ph-state { font-size: 14px; font-weight: 600; }
.ph-lvl { display: flex; align-items: center; gap: 3px; height: 22px; margin-right: auto; }
.ph-lvl i { width: 3px; height: 14px; border-radius: 2px; background: var(--ink-3); transform: scaleY(0.3); }
.ph-done { padding: 7px 14px; border-radius: 2px; font-size: 14px; font-weight: 500; background: var(--ui-action); color: var(--ui-action-foreground); }
.say.ph-said { display: block; font-size: 15px; line-height: 1.45; font-weight: 400; }
.ph-chips { display: flex; gap: 6px; min-height: 26px; }
.ph-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 3px 2px 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 12px; font-weight: 500; }
.ph-chip i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 14px; line-height: 1; color: var(--ink-3); }
.pb-motion .take-phone .ph-done { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-2); transition: background-color 0.3s, box-shadow 0.3s, color 0.3s; }
.pb-motion .take-phone[data-step="done"] .ph-done { background: var(--ui-action); color: var(--ui-action-foreground); box-shadow: none; }
.pb-motion .take-phone[data-step="speak"] .ph-mic { box-shadow: inset 0 0 0 2px var(--gold); animation: take-listen 1.1s ease-out infinite; }
.pb-motion .take-phone[data-step="speak"] .ph-lvl i { animation: ph-level 0.42s ease-in-out infinite alternate; }
.pb-motion .take-phone[data-step="speak"] .ph-lvl i:nth-child(2) { animation-delay: -0.12s; animation-duration: 0.36s; }
.pb-motion .take-phone[data-step="speak"] .ph-lvl i:nth-child(3) { animation-delay: -0.3s; animation-duration: 0.5s; }
.pb-motion .take-phone[data-step="speak"] .ph-lvl i:nth-child(4) { animation-delay: -0.2s; animation-duration: 0.4s; }
.pb-motion .take-phone[data-step="speak"] .ph-lvl i:nth-child(5) { animation-delay: -0.06s; animation-duration: 0.46s; }
.pb-motion .take-phone .ph-chip { opacity: 0; transform: translateY(6px); }
.pb-motion .take-phone:is([data-step="swap"], [data-step="done"]) .ph-chip { opacity: 1; transform: none; transition: opacity 0.25s ease-out 0.9s, transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1) 0.9s; }
@keyframes ph-level { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }
@keyframes take-listen {
  from { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 0 color-mix(in oklab, var(--gold) 55%, transparent); }
  to { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 12px transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .voice.live .take, .voice.live .take.cur { transition: none; }
}
