/* Toilet Paper Dolls
   Four colourways. Each one defines four surfaces (s1 to s4); every section picks a surface,
   and components read the generic --bg / --head / --text / --btn-* tokens from it. */

:root {
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  /* Body text in Manrope (Aaron, 2026-11-25). Headlines move to Degular once its web licence is in. */
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1520px;
  --header-h: 72px;
  --col-gap: clamp(16px, 2.2vw, 36px);
  --section-pad: clamp(88px, 11vw, 176px);
  /* Spacing scale: the only spacing values sections use. */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: clamp(28px, 2.6vw, 40px);
  --space-5: clamp(40px, 4.4vw, 64px);
  --space-6: clamp(64px, 7.2vw, 112px);
  --space-7: clamp(96px, 11vw, 168px);
  /* Width of one of the 12 grid columns. */
  --col-w: calc(
    (min(100vw, var(--maxw)) - 2 * var(--gutter) - 11 * var(--col-gap)) / 12
  );
  /* Flat colour the hero photo's wall settles into (sampled from the photo). */
  --wall-bg: #f2b9a9;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* Long, soft ease-out for things fading into place. */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --perf: repeating-linear-gradient(
    90deg,
    currentColor 0 12px,
    transparent 12px 20px
  );
  --perf-v: repeating-linear-gradient(
    180deg,
    currentColor 0 12px,
    transparent 12px 20px
  );
  /* Largest size at which a 13-letter word in capitals still fits the measure. */
  --fit: calc((100vw - 2 * var(--gutter)) / (13.5 * var(--char-em, 0.71)));

  /* Marker for crossing out AI tells: one of the four combo colours, readable on all of them. */
  --marker: #ff583b;
  /* Errors: a true red, so an error never reads as just another colour. White on it is about 5:1. */
  --error: #e0102b;

  /* The four hero combos. Each colourway's hero (s1) uses one; "All four" uses every one. */
  --gummy-bg: #ffb4ba;
  --gummy-head: #f6f23a;
  --gummy-text: #3a0b16;
  --gummy-btn-bg: #f6f23a;
  --gummy-btn-fg: #3a0b16;
  /* On hover the main button on pink turns violet with white text. */
  --gummy-btn-hover-bg: #5a1eff;
  --gummy-btn-hover-fg: #ffffff;
  --voltage-bg: #1030ff;
  --voltage-head: #f3f73a;
  --voltage-text: #ffffff;
  --voltage-btn-bg: #f3f73a;
  --voltage-btn-fg: #0a1680;
  --voltage-btn-hover-bg: #ffffff;
  --voltage-btn-hover-fg: #0a1680;
  --hotsauce-bg: #ff583b;
  --hotsauce-head: #ffc3e6;
  --hotsauce-text: #1f0702;
  --hotsauce-btn-bg: #1f0702;
  --hotsauce-btn-fg: #ffc3e6;
  --hotsauce-btn-hover-bg: #ffc3e6;
  --hotsauce-btn-hover-fg: #1f0702;
  --acid-bg: #c6ff2e;
  --acid-head: #5a1eff;
  --acid-text: #1a0b4d;
  --acid-btn-bg: #5a1eff;
  --acid-btn-fg: #ffffff;
  --acid-btn-hover-bg: #1a0b4d;
  --acid-btn-hover-fg: #c6ff2e;
  /* Gummy's quiet surface ("Fair questions"), also used for About in All four. */
  --blush-bg: #fff1ee;
  --blush-head: #e3184e;
  --blush-text: #3a0b16;
  --blush-btn-bg: #e3184e;
  --blush-btn-fg: #ffffff;
  --blush-btn-hover-bg: #3a0b16;
  --blush-btn-hover-fg: #fff1ee;
  /* Grape: acid turned inside out (violet with lime), for the two ways to work with us. */
  --grape-bg: #5a1eff;
  --grape-head: #c6ff2e;
  --grape-text: #ffffff;
  --grape-btn-bg: #c6ff2e;
  --grape-btn-fg: #1a0b4d;
  --grape-btn-hover-bg: #ffffff;
  --grape-btn-hover-fg: #1a0b4d;

  /* Comic panels landing: a quick overshoot. */
  --ease-pop: cubic-bezier(0.2, 1.5, 0.35, 1);
  /* The roll in the corner (motion.js): paper and ink that read on every section colour. */
  --roll-paper: #fffdf6;
  --roll-ink: #1a0b16;
  --roll-w: 72px;
  /* Room the roll takes in the bottom-right corner (the comments button sits beside it). */
  --roll-slot: calc(var(--roll-w) + 16px);
}

/* Colourways ------------------------------------------------------------ */

html[data-variant="gummy"] {
  --wall-head: var(--gummy-head);
  --wall-text: var(--gummy-text);
  --wall-btn-bg: var(--gummy-btn-bg);
  --wall-btn-fg: var(--gummy-btn-fg);
  --s1-bg: var(--gummy-bg);
  --s1-head: var(--gummy-head);
  --s1-text: var(--gummy-text);
  --s1-btn-bg: var(--gummy-btn-bg);
  --s1-btn-fg: var(--gummy-btn-fg);
  --s1-btn-hover-bg: var(--gummy-btn-hover-bg);
  --s1-btn-hover-fg: var(--gummy-btn-hover-fg);
  --s2-bg: #f6f23a;
  --s2-head: #e3184e;
  --s2-text: #3a0b16;
  --s2-btn-bg: #3a0b16;
  --s2-btn-fg: #f6f23a;
  --s3-bg: #3a0b16;
  --s3-head: #f6f23a;
  --s3-text: #ffd6da;
  --s3-btn-bg: #ffb4ba;
  --s3-btn-fg: #3a0b16;
  --s4-bg: var(--blush-bg);
  --s4-head: var(--blush-head);
  --s4-text: var(--blush-text);
  --s4-btn-bg: var(--blush-btn-bg);
  --s4-btn-fg: var(--blush-btn-fg);
  --disp-stretch: 100%;
  --disp-track: -0.055em;
  --disp-scale: 1;
  --h1-em: 6.45;
  --char-em: 0.71;
}

html[data-variant="voltage"] {
  --wall-head: var(--voltage-bg);
  --wall-text: #0a1680;
  --wall-btn-bg: var(--voltage-bg);
  --wall-btn-fg: var(--voltage-head);
  --s1-bg: var(--voltage-bg);
  --s1-head: var(--voltage-head);
  --s1-text: var(--voltage-text);
  --s1-btn-bg: var(--voltage-btn-bg);
  --s1-btn-fg: var(--voltage-btn-fg);
  --s2-bg: #f3f73a;
  --s2-head: #1030ff;
  --s2-text: #08104a;
  --s2-btn-bg: #1030ff;
  --s2-btn-fg: #ffffff;
  --s3-bg: #050a3a;
  --s3-head: #f3f73a;
  --s3-text: #dde1ff;
  --s3-btn-bg: #f3f73a;
  --s3-btn-fg: #050a3a;
  --s4-bg: #f4f4ee;
  --s4-head: #1030ff;
  --s4-text: #0b0f2e;
  --s4-btn-bg: #1030ff;
  --s4-btn-fg: #ffffff;
  --disp-stretch: 116%;
  --disp-track: -0.025em;
  --disp-scale: 0.86;
  --h1-em: 7.7;
  --char-em: 0.84;
}

html[data-variant="hotsauce"] {
  --wall-head: #e8401f;
  --wall-text: var(--hotsauce-text);
  --wall-btn-bg: var(--hotsauce-btn-bg);
  --wall-btn-fg: var(--hotsauce-btn-fg);
  --s1-bg: var(--hotsauce-bg);
  --s1-head: var(--hotsauce-head);
  --s1-text: var(--hotsauce-text);
  --s1-btn-bg: var(--hotsauce-btn-bg);
  --s1-btn-fg: var(--hotsauce-btn-fg);
  --s2-bg: #ffc3e6;
  --s2-head: #d9290c;
  --s2-text: #2a0a05;
  --s2-btn-bg: #d9290c;
  --s2-btn-fg: #ffffff;
  --s3-bg: #2a0a05;
  --s3-head: #ff583b;
  --s3-text: #ffd9ee;
  --s3-btn-bg: #ff583b;
  --s3-btn-fg: #2a0a05;
  --s4-bg: #fff3ec;
  --s4-head: #e8401f;
  --s4-text: #2a0a05;
  --s4-btn-bg: #2a0a05;
  --s4-btn-fg: #fff3ec;
  --disp-stretch: 70%;
  --disp-track: -0.01em;
  --disp-scale: 1.22;
  --h1-em: 5.1;
  --char-em: 0.55;
}

html[data-variant="acid"] {
  --wall-head: var(--acid-head);
  --wall-text: var(--acid-text);
  --wall-btn-bg: var(--acid-bg);
  --wall-btn-fg: var(--acid-text);
  --s1-bg: var(--acid-bg);
  --s1-head: var(--acid-head);
  --s1-text: var(--acid-text);
  --s1-btn-bg: var(--acid-btn-bg);
  --s1-btn-fg: var(--acid-btn-fg);
  --s2-bg: #5a1eff;
  --s2-head: #c6ff2e;
  --s2-text: #f1ecff;
  --s2-btn-bg: #c6ff2e;
  --s2-btn-fg: #1a0b4d;
  --s3-bg: #12082e;
  --s3-head: #c6ff2e;
  --s3-text: #e2daff;
  --s3-btn-bg: #c6ff2e;
  --s3-btn-fg: #12082e;
  --s4-bg: #f7f9ec;
  --s4-head: #5a1eff;
  --s4-text: #14092f;
  --s4-btn-bg: #5a1eff;
  --s4-btn-fg: #ffffff;
  --disp-stretch: 125%;
  --disp-track: -0.015em;
  --disp-scale: 0.8;
  --h1-em: 8.35;
  --char-em: 0.9;
}

/* "All four": only the hero combos, rotating section by section (data-mix on each section).
   The s1 to s4 surfaces map onto the combos too, so dialogs stay in the family. */
html[data-variant="mix"] {
  --wall-head: var(--gummy-head);
  --wall-text: var(--gummy-text);
  --wall-btn-bg: var(--gummy-btn-bg);
  --wall-btn-fg: var(--gummy-btn-fg);
  --s1-bg: var(--gummy-bg);
  --s1-head: var(--gummy-head);
  --s1-text: var(--gummy-text);
  --s1-btn-bg: var(--gummy-btn-bg);
  --s1-btn-fg: var(--gummy-btn-fg);
  --s1-btn-hover-bg: var(--gummy-btn-hover-bg);
  --s1-btn-hover-fg: var(--gummy-btn-hover-fg);
  --s2-bg: var(--acid-bg);
  --s2-head: var(--acid-head);
  --s2-text: var(--acid-text);
  --s2-btn-bg: var(--acid-btn-bg);
  --s2-btn-fg: var(--acid-btn-fg);
  --s3-bg: var(--voltage-bg);
  --s3-head: var(--voltage-head);
  --s3-text: var(--voltage-text);
  --s3-btn-bg: var(--voltage-btn-bg);
  --s3-btn-fg: var(--voltage-btn-fg);
  --s4-bg: var(--hotsauce-bg);
  --s4-head: var(--hotsauce-head);
  --s4-text: var(--hotsauce-text);
  --s4-btn-bg: var(--hotsauce-btn-bg);
  --s4-btn-fg: var(--hotsauce-btn-fg);
  /* Acid's wide cut: word spaces stay visible at large sizes. */
  --disp-stretch: 125%;
  --disp-track: -0.015em;
  --disp-scale: 0.8;
  /* Width of the hero's longest line ("showing.") in em, plus a little slack. */
  --h1-em: 6.85;
  --char-em: 0.9;
}
html[data-variant="mix"] [data-mix="blush"] {
  --hl-bg: var(--blush-head);
  --hl-fg: var(--blush-btn-fg);
  --bg: var(--blush-bg);
  --head: var(--blush-head);
  --text: var(--blush-text);
  --btn-bg: var(--blush-btn-bg);
  --btn-fg: var(--blush-btn-fg);
  --btn-hover-bg: var(--blush-btn-hover-bg);
  --btn-hover-fg: var(--blush-btn-hover-fg);
}
html[data-variant="mix"] [data-mix="gummy"] {
  /* Highlight pair: the combo's accent with a readable text colour on it (nav, badges). */
  --hl-bg: var(--gummy-head);
  --hl-fg: var(--gummy-text);
  --bg: var(--gummy-bg);
  --head: var(--gummy-head);
  --text: var(--gummy-text);
  --btn-bg: var(--gummy-btn-bg);
  --btn-fg: var(--gummy-btn-fg);
  --btn-hover-bg: var(--gummy-btn-hover-bg);
  --btn-hover-fg: var(--gummy-btn-hover-fg);
}
html[data-variant="mix"] [data-mix="voltage"] {
  --hl-bg: var(--voltage-head);
  --hl-fg: var(--voltage-btn-fg);
  --bg: var(--voltage-bg);
  --head: var(--voltage-head);
  --text: var(--voltage-text);
  --btn-bg: var(--voltage-btn-bg);
  --btn-fg: var(--voltage-btn-fg);
  --btn-hover-bg: var(--voltage-btn-hover-bg);
  --btn-hover-fg: var(--voltage-btn-hover-fg);
}
html[data-variant="mix"] [data-mix="hotsauce"] {
  --hl-bg: var(--hotsauce-head);
  --hl-fg: var(--hotsauce-text);
  --bg: var(--hotsauce-bg);
  --head: var(--hotsauce-head);
  --text: var(--hotsauce-text);
  --btn-bg: var(--hotsauce-btn-bg);
  --btn-fg: var(--hotsauce-btn-fg);
  --btn-hover-bg: var(--hotsauce-btn-hover-bg);
  --btn-hover-fg: var(--hotsauce-btn-hover-fg);
}
html[data-variant="mix"] [data-mix="acid"] {
  --hl-bg: var(--acid-head);
  --hl-fg: #ffffff;
  --bg: var(--acid-bg);
  --head: var(--acid-head);
  --text: var(--acid-text);
  --btn-bg: var(--acid-btn-bg);
  --btn-fg: var(--acid-btn-fg);
  --btn-hover-bg: var(--acid-btn-hover-bg);
  --btn-hover-fg: var(--acid-btn-hover-fg);
}
html[data-variant="mix"] [data-mix="grape"] {
  --hl-bg: var(--grape-head);
  --hl-fg: var(--grape-btn-fg);
  --bg: var(--grape-bg);
  --head: var(--grape-head);
  --text: var(--grape-text);
  --btn-bg: var(--grape-btn-bg);
  --btn-fg: var(--grape-btn-fg);
  --btn-hover-bg: var(--grape-btn-hover-bg);
  --btn-hover-fg: var(--grape-btn-hover-fg);
}

.s1 {
  --bg: var(--s1-bg);
  --head: var(--s1-head);
  --text: var(--s1-text);
  --btn-bg: var(--s1-btn-bg);
  --btn-fg: var(--s1-btn-fg);
  /* Only colourways that define a hover colour set these; otherwise the button keeps its colour. */
  --btn-hover-bg: var(--s1-btn-hover-bg);
  --btn-hover-fg: var(--s1-btn-hover-fg);
}
.s2 {
  --bg: var(--s2-bg);
  --head: var(--s2-head);
  --text: var(--s2-text);
  --btn-bg: var(--s2-btn-bg);
  --btn-fg: var(--s2-btn-fg);
  /* Only colourways that define a hover colour set these; otherwise the button keeps its colour. */
  --btn-hover-bg: var(--s2-btn-hover-bg);
  --btn-hover-fg: var(--s2-btn-hover-fg);
}
.s3 {
  --bg: var(--s3-bg);
  --head: var(--s3-head);
  --text: var(--s3-text);
  --btn-bg: var(--s3-btn-bg);
  --btn-fg: var(--s3-btn-fg);
  /* Only colourways that define a hover colour set these; otherwise the button keeps its colour. */
  --btn-hover-bg: var(--s3-btn-hover-bg);
  --btn-hover-fg: var(--s3-btn-hover-fg);
}
.s4 {
  --bg: var(--s4-bg);
  --head: var(--s4-head);
  --text: var(--s4-text);
  --btn-bg: var(--s4-btn-bg);
  --btn-fg: var(--s4-btn-fg);
  /* Only colourways that define a hover colour set these; otherwise the button keeps its colour. */
  --btn-hover-bg: var(--s4-btn-hover-bg);
  --btn-hover-fg: var(--s4-btn-hover-fg);
}

.s1,
.s2,
.s3,
.s4 {
  background-color: var(--bg);
  color: var(--text);
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease);
}

/* Base ------------------------------------------------------------------ */

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

html {
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html:has(dialog[open]),
html:has(.nav-list.is-open) {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  background: var(--s3-bg);
  color: var(--s1-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
[hidden],
svg[hidden] {
  display: none !important;
}
figure {
  margin: 0;
}
p {
  margin: 0;
}
:where(ul[role="list"], ol[role="list"]) {
  list-style: none;
  margin: 0;
  padding: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
}

::selection {
  background: var(--s2-head);
  color: var(--s2-bg);
}

:focus-visible {
  outline: 3px solid var(--text, currentColor);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--s3-bg);
  color: var(--s3-text);
  font-weight: 700;
  border-radius: 999px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* Type ------------------------------------------------------------------ */

.display {
  margin: 0;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: var(--disp-stretch);
  letter-spacing: var(--disp-track);
  line-height: 1;
  color: var(--head);
  text-wrap: balance;
}

.display-statement {
  margin: 0;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: var(--disp-stretch);
  letter-spacing: calc(var(--disp-track) * 0.6);
  line-height: 1.05;
  font-size: clamp(
    24px,
    calc(2.6vw * var(--disp-scale)),
    calc(44px * var(--disp-scale))
  );
  text-wrap: balance;
}

.section-title {
  font-size: min(
    clamp(
      44px,
      calc(6.6vw * var(--disp-scale)),
      calc(116px * var(--disp-scale))
    ),
    var(--fit)
  );
  max-width: 16ch;
}

/* One reading size for every intro and supporting paragraph. */
.lede {
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.45;
  font-weight: 500;
  max-width: 46ch;
}

.prose p + p {
  margin-top: 1em;
}
.prose p {
  max-width: 60ch;
}

/* Panels ---------------------------------------------------------------- */
/* One box style for every card on the site: a comic panel with an ink outline, a hard ink shadow
   and a slight tilt (--panel-tilt), lifting towards you on hover. Services cards, Extra goodies, the
   essay's examples and its sidebar. --panel-bg and --panel-ink set its colours. */
.panel {
  --panel-ink: #1a0b4d;
  --panel-bg: #ffffff;
  position: relative;
  border: 3px solid var(--panel-ink);
  background: var(--panel-bg);
  color: var(--panel-ink);
  box-shadow: 10px 10px 0 var(--panel-ink);
  rotate: var(--panel-tilt, 0deg);
  transition:
    translate 0.35s var(--ease-soft),
    box-shadow 0.35s var(--ease-soft);
}
.panel:hover {
  translate: -4px -6px;
  box-shadow: 16px 16px 0 var(--panel-ink);
}

/* Speech bubbles ---------------------------------------------------------- */
/* Words someone in the picture is saying: white, the slide's 3px ink line (--speech-ink), body
   text, and a tail pointing at whoever is talking: below the bubble by default, or to its right
   on a wide screen with .speech-right. The tail is an ink triangle with a white one inside it, 3px
   in from its outer edges, laid over the bubble's border where they meet. (Extra goodies has its
   own bubbles, .plan-because, that point up at their cards.) */
.speech {
  --speech-ink: var(--text);
  --tail-at: var(--space-5);
  position: relative;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border: 3px solid var(--speech-ink);
  border-radius: 1.2em;
  background: #ffffff;
  color: var(--speech-ink);
  font-size: clamp(18px, 1.4vw, 21px);
  font-weight: 600;
  line-height: 1.4;
}
.speech::before,
.speech::after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--tail-at);
  border-style: solid;
  border-color: var(--speech-ink) transparent transparent;
  border-width: 32px 20px 0 0;
}
.speech::after {
  left: calc(var(--tail-at) + 3px);
  margin-top: -5px;
  border-top-color: #ffffff;
  border-width: 26px 17px 0 0;
}
@media (min-width: 1024px) {
  .speech-right::before,
  .speech-right::after {
    top: calc(50% - 10px);
    left: 100%;
    border-color: transparent transparent transparent var(--speech-ink);
    border-width: 0 0 20px 32px;
  }
  .speech-right::after {
    top: calc(50% - 7px);
    margin: 0 0 0 -5px;
    border-left-color: #ffffff;
    border-width: 0 0 17px 26px;
  }
}
/* A bubble pops in rather than printing: the print's clip would cut off its tail. (The [data-pow]
   makes this outrank the print rule further down.) */
html.is-staged .speech[data-pow].is-in {
  animation: pow-pop 0.6s var(--ease-pop) var(--pow-delay, 0ms) both;
}

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  /* An even padding sits the capitals a hair high (under a pixel), so every button drops its label
     by this much: measured from the rendered pixels, it centres the capitals in the button. */
  --label-drop: 0.06em;
  padding: calc(0.9em + var(--label-drop)) 1.6em calc(0.9em - var(--label-drop));
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    translate 0.35s var(--ease-soft),
    background-color 0.2s,
    color 0.25s,
    border-color 0.2s;
}
/* Hover: a circle of the hover colour grows from where the cursor came in, and shrinks back
   towards where it left. motion.js sets the point (--mx, --my), the button's width (--bw), and
   leans the button towards the cursor. */
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  width: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--btn-fill, transparent);
  translate: -50% -50%;
  transition: width 0.5s var(--ease-soft);
  pointer-events: none;
}
.btn:hover::before {
  width: calc(var(--bw, 320px) * 2.3);
}

.btn-primary {
  --btn-fill: var(--btn-hover-bg, var(--btn-bg));
  background: var(--btn-bg);
  color: var(--btn-fg);
}
.btn-primary:hover {
  color: var(--btn-hover-fg, var(--btn-fg));
}
/* The secondary button has a body: a tint of the text colour, a deeper tint growing in on hover. */
.btn-ghost {
  --btn-fill: color-mix(in srgb, var(--text) 24%, transparent);
  background: color-mix(in srgb, var(--text) 12%, transparent);
  color: var(--text);
  border-color: transparent;
}
.btn-link {
  min-height: 48px;
  padding-inline: 0;
  background: none;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.btn-link:hover {
  text-decoration-color: var(--head);
}
.btn-link::before,
.btn[disabled]::before {
  display: none;
}
.btn-xl {
  font-size: clamp(17px, 1.6vw, 22px);
  padding: calc(1.1em + var(--label-drop)) 2em calc(1.1em - var(--label-drop));
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  translate: none;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: square;
}
.icon-button:hover {
  background: var(--text);
  color: var(--bg);
}

/* Header ---------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
}
/* During a handover between slides the header fades away, so the transition covers the whole
   screen (motion.js sets .is-handover); it fades back in once the new slide has taken over. */
html.is-staged .site-header {
  transition: opacity 0.3s var(--ease-soft);
}
html.is-staged.is-handover .site-header {
  opacity: 0;
  pointer-events: none;
  transition-duration: 0.15s;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: var(--maxw);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--text);
  text-decoration: none;
}
/* The mark is 1.13 times as wide as it is tall (tools/logo.mjs). */
.brand-mark {
  width: 34px;
  height: 30px;
  fill: currentColor;
  flex: none;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  display: block;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.nav-list a:hover,
.nav-list a[aria-current="location"] {
  /* The section's own highlight colour (violet on lime, yellow on pink and blue, pink on tomato). */
  background: var(--hl-bg, var(--gummy-head));
  color: var(--hl-fg, var(--gummy-text));
}
.nav-list-cta {
  display: none;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--text);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.nav-toggle[aria-expanded="true"] {
  background: var(--text);
  color: var(--bg);
}

.header-cta {
  justify-self: end;
  min-height: 52px;
  padding: calc(0.8em + var(--label-drop)) 1.6em calc(0.8em - var(--label-drop));
  font-size: 17px;
  white-space: nowrap;
}

/* The header folds into the Menu button below 1200px: five links plus the CTA need about 1140px. */
@media (max-width: 1199px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }
  .nav {
    justify-self: end;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }
  .header-cta {
    display: none;
  }
  .nav-list {
    display: none;
  }
  .nav-list.is-open {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px var(--gutter) 40px;
    border: 0;
    border-radius: 0;
    background: var(--bg);
    overflow-y: auto;
  }
  .nav-list.is-open a:not(.btn) {
    padding: 10px 0;
    border-radius: 0;
    font-family: var(--font-display);
    font-weight: 900;
    font-stretch: var(--disp-stretch);
    font-size: clamp(36px, calc(10vw * var(--disp-scale)), 64px);
    letter-spacing: var(--disp-track);
    line-height: 0.95;
    /* "Why we’re different" is wider than a phone at this size. */
    white-space: normal;
  }
  .nav-list.is-open a:not(.btn):hover,
  .nav-list.is-open a:not(.btn)[aria-current="location"] {
    background: none;
    color: var(--head);
  }
  .nav-list.is-open .nav-list-cta {
    display: block;
    margin-top: 24px;
  }
}

/* Hero ------------------------------------------------------------------ */

.hero {
  --stage-top: calc(var(--header-h) + var(--space-3));
  --stage-h: calc(100svh - var(--stage-top) - var(--space-5));
  position: relative;
  overflow: clip;
}

.hero-panel {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

.hero-title {
  font-size: var(--h1-size);
  line-height: 0.96;
}
.hero-line {
  display: block;
  white-space: nowrap;
}
/* Each word lands on its own (motion.js). */
.hero-word {
  display: inline-block;
}
/* The paragraph on a white card in the slide's ink, like the cards on Extra goodies. */
.hero-body {
  --panel-ink: var(--text);
  --panel-tilt: -1deg;
  justify-self: start;
  max-width: 30em;
  padding: var(--space-3) var(--space-4);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.4;
  font-weight: 600;
  text-wrap: pretty;
}
.hero-body strong {
  font-weight: 800;
}
/* The hero's button, flush left. It's a size down from the other big buttons, so it doesn't shout
   over the headline. */
.hero-actions {
  flex-direction: column;
  align-items: flex-start;
}
.hero-actions .btn-xl {
  font-size: clamp(15px, 1.25vw, 18px);
  padding: calc(1em + var(--label-drop)) 1.8em calc(1em - var(--label-drop));
}

/* Illustration stage --------------------------------------------------------
   Comic illustrations float on any colour without a frame: black ink with transparency on top,
   the figure's silhouette knocked out of the backdrop in the surface colour, and a quiet
   tone-on-tone backdrop (radial halftone or rays) spreading out behind. */

.ill {
  /* One-colour line art in the surface's text colour: near-black on light colours, white on dark ones. */
  --ink: var(--text);
  --pattern: color-mix(in srgb, var(--text) 18%, var(--bg));
  position: relative;
  isolation: isolate;
  margin: 0;
  aspect-ratio: 1;
}
.ill-pattern {
  position: absolute;
  inset: -20%;
  z-index: -2;
  background-color: var(--pattern);
  -webkit-mask: url("assets/patterns/halftone.svg") center / contain no-repeat;
  mask: url("assets/patterns/halftone.svg") center / contain no-repeat;
}
/* Each slide has its own backdrop: rays behind the hero, dots (the default above) elsewhere. */
.hero-art .ill-pattern {
  -webkit-mask-image: url("assets/patterns/rays.svg");
  mask-image: url("assets/patterns/rays.svg");
}
.ill-knockout {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  -webkit-mask: var(--ill-shape) center / 100% 100% no-repeat;
  mask: var(--ill-shape) center / 100% 100% no-repeat;
}
.ill-ink {
  position: absolute;
  inset: 0;
  background-color: var(--ink);
  -webkit-mask: var(--ill-ink) center / 100% 100% no-repeat;
  mask: var(--ill-ink) center / 100% 100% no-repeat;
}
/* The trouser leg dissolves into its halftone near the top, so the backdrop is kept clear
   behind it and above it, right up to the backdrop's edge: a channel between the leg's two
   outlines (art coordinates, 1024 wide: left x = 507 - 0.19y, right x = 831 - 0.147y). */
.ill-channel {
  position: absolute;
  inset: -20% 0 80% 0;
  z-index: -1;
  background-color: var(--bg);
  clip-path: polygon(53.3% 0%, 84.1% 0%, 78.2% 100%, 45.7% 100%);
}
.ill:not(.ill-heel) .ill-channel {
  display: none;
}

/* The heel drawing: original composition with take C's toilet paper (tools/combine.swift). */
.ill-heel {
  --ill-shape: url("assets/illustrations/heel-shape.png");
  --ill-ink: url("assets/illustrations/heel-full.png");
}
/* Two identical founders pointing at each other (take C, Aaron's pick; A and B are in assets as twins-a, twins-b). */
.ill-twins {
  --ill-shape: url("assets/illustrations/twins-c-shape.png");
  --ill-ink: url("assets/illustrations/twins-c-full.png");
}
/* The logo on each twin's laptop is a solid round dot: the full stop the camera falls through on
   the way to the next slide (motion.js). It covers the drawn oval logo (art coordinates, 1024
   square: centres 115.5 / 908.5, 435.5; radius 15). */
.laptop-dot {
  position: absolute;
  left: calc(115.5% / 10.24);
  top: calc(435.5% / 10.24);
  width: calc(30% / 10.24);
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: var(--ink);
  translate: -50% -50%;
}
.laptop-dot-right {
  left: calc(908.5% / 10.24);
}
/* The essay's drawings (why-slop-looks-sloppy.html) and the question-asker by the preview button. */
.ill-essay-cover {
  --ill-shape: url("assets/illustrations/essay-cover-shape.png");
  --ill-ink: url("assets/illustrations/essay-cover-full.png");
}
.ill-essay-glue {
  --ill-shape: url("assets/illustrations/essay-glue-shape.png");
  --ill-ink: url("assets/illustrations/essay-glue-full.png");
}
.ill-essay-whatread {
  --ill-shape: url("assets/illustrations/essay-whatread-shape.png");
  --ill-ink: url("assets/illustrations/essay-whatread-full.png");
}
.ill-essay-saysomething {
  --ill-shape: url("assets/illustrations/essay-saysomething-shape.png");
  --ill-ink: url("assets/illustrations/essay-saysomething-full.png");
}
.ill-questions {
  --ill-shape: url("assets/illustrations/questions-shape.png");
  --ill-ink: url("assets/illustrations/questions-full.png");
}
/* The calmer founder who steps in front of the twins on the problem slide (take C: hands on hips;
   A and B are the alternates in assets). His waist dissolves into dots
   (inkprep run on the vertically flipped drawing, then flipped back). */
.ill-boss {
  --ill-shape: url("assets/illustrations/boss-c-shape.png");
  --ill-ink: url("assets/illustrations/boss-c-full.png");
}
/* The three partners, drawn from their own photos (tools/popart.swift). */
.ill-team-1 {
  --ill-shape: url("assets/illustrations/team-1-shape.png");
  --ill-ink: url("assets/illustrations/team-1-full.png");
}
.ill-team-2 {
  --ill-shape: url("assets/illustrations/team-2-shape.png");
  --ill-ink: url("assets/illustrations/team-2-full.png");
}
/* Right portrait: v6, the second drawing Aaron supplied (2026-11-09), scaled to the other two and
   with its face dots shrunk (its -full file is inkprep's -light output). Also deployed, to swap
   back: team-3-v5-* (his first drawing), team-3-v4-*, team-3-v3-*, team-3-v2-* and team-3-*. */
.ill-team-3 {
  --ill-shape: url("assets/illustrations/team-3-v6-shape.png");
  --ill-ink: url("assets/illustrations/team-3-v6-full.png");
}
/* Two women wowed by a printed deck: Aaron's drawing (deck-g), with the cut-off bun and elbow drawn
   back in by tools/deck-extend.html. Earlier takes: deck-a (blanked by tools/deckclean.swift) to deck-f. */
.ill-deck {
  aspect-ratio: 3 / 2;
  --ill-shape: url("assets/illustrations/deck-g-shape.png");
  --ill-ink: url("assets/illustrations/deck-g-full.png");
}
/* A woman bites her lip while three others fire questions at her (take B; A and C are grill-a, grill-c). */
.ill-grill {
  aspect-ratio: 3 / 2;
  --ill-shape: url("assets/illustrations/grill-b-shape.png");
  --ill-ink: url("assets/illustrations/grill-b-full.png");
}

@media (min-width: 1024px) {
  /* Wall: the copy column on the left, the illustration to the right. */
  /* Wall: three big lines of headline in seven columns, the drawing in the other five. The
     headline stops a little short of its column, so it never runs into the drawing. */
  html[data-hero="wall"] .hero,
  html[data-hero="split"] .hero {
    --copy-w: calc(var(--col-w) * 7 + var(--col-gap) * 6);
    /* 128px on a desktop (Aaron). The headline may run a little past its seven columns, over the
       drawing's rays (never as far as the figure); smaller only when even that is too narrow. */
    --h1-size: min(calc(var(--copy-w) * 1.2 / var(--h1-em)), 128px);
  }
  html[data-hero="wall"] .hero-grid,
  html[data-hero="split"] .hero-grid {
    min-height: 100svh;
    /* The same room above (under the header) and below. */
    padding-block: calc(var(--header-h) + var(--space-4)) var(--space-4);
    /* The copy sits in the middle three rows; the outer rows take the drawing's extra height,
       so it never pushes the headline, paragraph and buttons apart. */
    grid-template-rows: 1fr auto auto auto 1fr;
  }
  html[data-hero="wall"] .hero-title,
  html[data-hero="split"] .hero-title {
    grid-row: 2;
    position: relative;
    z-index: 2;
  }
  html[data-hero="wall"] .hero-body,
  html[data-hero="split"] .hero-body {
    grid-row: 3;
  }
  html[data-hero="wall"] .hero-actions,
  html[data-hero="split"] .hero-actions {
    grid-row: 4;
  }
  html[data-hero="wall"] .hero-grid > :not(.hero-art),
  html[data-hero="split"] .hero-grid > :not(.hero-art) {
    grid-column: 1 / span 7;
  }
  html[data-hero="wall"] .hero-art,
  html[data-hero="split"] .hero-art {
    grid-column: 8 / -1;
    grid-row: 1 / -1;
    align-self: center;
    width: min(100%, var(--stage-h));
    justify-self: center;
  }
  html[data-hero="wall"] .hero-body,
  html[data-hero="split"] .hero-body {
    margin-top: var(--space-4);
  }
  html[data-hero="wall"] .hero-actions,
  html[data-hero="split"] .hero-actions {
    margin-top: var(--space-4);
  }

  /* Split: the illustration on a block of the colourway's second colour. */
  html[data-hero="split"] .hero-panel {
    display: block;
    position: absolute;
    inset: 0 0 0 50%;
    background: var(--s2-bg);
  }
  html[data-hero="split"] .hero-art {
    --bg: var(--s2-bg);
    --text: var(--s2-text);
    grid-column: 7 / -1;
    width: min(80%, var(--stage-h));
  }
  html[data-hero="split"] .hero-grid > :not(.hero-art) {
    grid-column: 1 / span 6;
  }
  html[data-hero="split"] .hero {
    --copy-w: calc(var(--col-w) * 6 + var(--col-gap) * 5);
  }

  /* Poster: the illustration centred, the headline across the full width underneath. */
  html[data-hero="poster"] .hero {
    --h1-size: min(
      calc((min(100vw, var(--maxw)) - 2 * var(--gutter)) * 0.96 / var(--h1-em)),
      196px
    );
    --poster-h: calc(
      100svh - var(--stage-top) - var(--space-5) - 1.92 * var(--h1-size) -
        var(--space-3)
    );
  }
  html[data-hero="poster"] .hero-grid {
    grid-template-rows: var(--poster-h) auto auto;
    padding-block: var(--stage-top) var(--space-6);
  }
  html[data-hero="poster"] .hero-art {
    grid-column: 4 / span 6;
    grid-row: 1;
    justify-self: center;
    align-self: end;
    width: min(100%, var(--poster-h));
  }
  html[data-hero="poster"] .hero-title {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: var(--space-3);
  }
  html[data-hero="poster"] .hero-body {
    grid-column: 1 / span 6;
    grid-row: 3;
    margin-top: var(--space-5);
  }
  html[data-hero="poster"] .hero-actions {
    grid-column: 8 / -1;
    grid-row: 3;
    align-self: end;
    justify-content: flex-end;
    margin-top: var(--space-5);
  }
}

/* Phones and tablets: the illustration first, the copy underneath. */
@media (max-width: 1023px) {
  .hero {
    --h1-size: min(
      calc((100vw - 2 * var(--gutter)) * 0.96 / var(--h1-em)),
      150px
    );
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-block: calc(var(--header-h) + var(--space-3)) var(--space-6);
  }
  .hero-art {
    width: min(100%, 460px);
    justify-self: center;
    margin-bottom: var(--space-4);
  }
  .hero-body {
    margin-top: var(--space-4);
  }
  .hero-actions {
    margin-top: var(--space-3);
  }
  html[data-hero="split"] .hero-panel {
    display: block;
    position: absolute;
    inset: 0 0 auto 0;
    height: calc(
      var(--header-h) + var(--space-3) + min(100vw - 2 * var(--gutter), 460px) +
        var(--space-2)
    );
    background: var(--s2-bg);
  }
  html[data-hero="split"] .hero-art {
    --bg: var(--s2-bg);
    --text: var(--s2-text);
  }
}

/* Sections -------------------------------------------------------------- */
/* One rhythm everywhere: --space-7 around a section, --space-6 between its blocks,
   --space-4 inside a heading group, and every row on the same 12-column grid. */

.section {
  padding-block: var(--space-7);
}
.stack > * + * {
  margin-top: var(--space-6);
}
.section-head > * + *,
.pair > * + * {
  margin-top: var(--space-4);
}

.split-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: var(--space-5);
  align-items: start;
}

/* Problem: one screen. The copy is written like AI on purpose; a marker crosses out the tells. */
.problem {
  position: relative;
  overflow-x: clip;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + var(--space-4)) var(--space-4);
}
.problem-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: center;
}
.problem-main {
  grid-column: 1 / span 7;
}
/* The scene: the twins up top from the start, pointing at each other; the calmer founder steps in
   front of them, bigger and lower, as the marker starts (app.js adds .is-boss to the section).
   All on one halftone backdrop. Sizes follow the scene's width (cqw), so the bubbles keep their
   places on a phone. */
.problem-scene {
  --bubble-ink: var(--btn-fg);
  position: relative;
  isolation: isolate;
  grid-column: 8 / -1;
  justify-self: center;
  width: min(100%, 460px);
  aspect-ratio: 1 / 1.5;
  container-type: inline-size;
}
.problem-scene .ill {
  position: absolute;
  /* The founders are drawn in white (2026-12-01). */
  --text: #ffffff;
}
/* The laptop logos stay in the headline colour: the left one is the full stop the camera falls
   through into the next slide, and that zoom's disc is drawn in the headline colour (motion.js),
   so a white dot would jump to lime on the first bit of scroll. */
.problem-scene .laptop-dot {
  background-color: var(--head);
}
.scene-pattern {
  position: absolute;
  inset: 6% -14% -4%;
  z-index: -1;
  background-color: color-mix(in srgb, var(--head) 18%, var(--bg));
  -webkit-mask: url("assets/patterns/halftone.svg") center / contain no-repeat;
  mask: url("assets/patterns/halftone.svg") center / contain no-repeat;
}
/* He stands in front of the twins, big, his head just below their pointing fingers (so they
   point over him), with both laptops (and their dots) still in view. */
.scene-boss {
  /* 20px lower than 10% on the 690px-tall desktop scene, scaling with the scene. */
  bottom: 7.1%;
  left: 4%;
  width: 92%;
}
/* His knockout fades out with his dissolving waist, so the backdrop dots return gradually. */
.scene-boss .ill-knockout {
  -webkit-mask:
    var(--ill-shape) center / 100% 100% no-repeat,
    linear-gradient(#000 62%, transparent 92%);
  -webkit-mask-composite: source-in;
  mask:
    var(--ill-shape) center / 100% 100% no-repeat,
    linear-gradient(#000 62%, transparent 92%);
  mask-composite: intersect;
}
.scene-twins {
  top: 12%;
  left: 0;
  width: 100%;
}
.js .scene-boss,
.js .bubble-boss {
  opacity: 0;
  transform: translateY(6%);
  transition:
    opacity 0.9s var(--ease-soft),
    transform 0.9s var(--ease-soft);
}
.js .bubble-boss {
  transform: translateY(12px) scale(0.94);
  transition-delay: 0.45s;
}
.is-boss .scene-boss,
.is-boss .bubble-boss {
  opacity: 1;
  transform: none;
}

/* Comic speech bubbles: paper-white, ink outline, a tail pointing at whoever is talking. */
.bubble {
  --tail-x: 50%;
  position: absolute;
  z-index: 1;
  margin: 0;
  padding: 0.7em 0.95em;
  border: 3px solid var(--bubble-ink);
  border-radius: 1.3em;
  background: var(--text);
  color: var(--bubble-ink);
  font-size: clamp(11px, 2.75cqw, 15px);
  line-height: 1.3;
  font-weight: 600;
}
.bubble::before,
.bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--tail-x);
  border-style: solid;
  border-color: var(--bubble-ink) transparent transparent;
}
.bubble::before {
  border-width: 18px 10px 0 0;
  margin-left: -2px;
}
.bubble::after {
  border-width: 13px 6px 0 0;
  border-top-color: var(--text);
  margin: -3px 0 0 1px;
}
.bubble-left {
  --tail-x: 56%;
  top: 1%;
  left: 0;
  width: 46%;
}
.bubble-right {
  --tail-x: 40%;
  top: 1%;
  right: 0;
  width: 46%;
}
.bubble-right::before {
  border-width: 18px 0 0 10px;
}
.bubble-right::after {
  border-width: 13px 0 0 6px;
  margin-left: 2px;
}
/* The third founder's line: the slide's yellow, bolder, the tail pointing back at him. */
.bubble-boss {
  /* Under the right twin's laptop dot, the tail level with his mouth. */
  top: 46.9%;
  right: -10%;
  /* Bigger than the twins' bubbles: his is the line that matters. */
  width: 50%;
  background: var(--head);
  font-size: clamp(15px, 4.3cqw, 23px);
  line-height: 1.25;
  font-weight: 800;
}
.bubble-boss::before,
.bubble-boss::after {
  /* Level with his mouth. */
  top: 34%;
  left: auto;
  right: 100%;
  border-color: transparent var(--bubble-ink) transparent transparent;
}
.bubble-boss::before {
  border-width: 9px 20px 9px 0;
  margin: 0 0 0 0;
}
.bubble-boss::after {
  border-width: 5px 14px 5px 0;
  border-right-color: var(--head);
  margin: 4px -3px 0 0;
}
@media (max-width: 1023px) {
  .problem-main,
  .problem-scene {
    grid-column: 1 / -1;
  }
  .problem-scene {
    width: min(100%, 460px);
    margin-top: var(--space-5);
  }
  /* No room past the scene's edge on a phone: narrower, so it stays clear of his face. */
  .bubble-boss {
    right: 0;
    width: 42%;
  }
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* "are brilliant", its full stop and the struck dash stay on one line: for a moment both the stop and
   the shrinking dash are there, and on wide screens that line already fills the column, so a wrap
   would add a fifth line and make the whole (vertically centred) column jump. */
.keep-line {
  white-space: nowrap;
}
.problem-title {
  margin-top: var(--space-3);
  /* Two lines by design: the <br> splits it, so no width cap. */
  max-width: none;
  font-size: min(
    clamp(
      38px,
      calc(5.2vw * var(--disp-scale)),
      calc(88px * var(--disp-scale))
    ),
    var(--fit)
  );
}
/* The paragraph on a white card in the slide's dark blue. Level, not tilted: the marker's lines
   have to sit on the text. */
.problem-copy {
  --panel-ink: var(--btn-fg);
  --panel-tilt: 0deg;
  max-width: 34em;
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.4;
  font-weight: 600;
}
/* The rewrite is a line shorter than the draft it replaces: centred in the card, the spare room
   splits above and below it. */
.js .problem-copy .tell-stack:not(.is-static) > * {
  align-self: center;
}
.problem-copy > * + *,
.tell-stack > * + * {
  margin-top: var(--space-2);
}
/* A struck paragraph and its rewrite share one grid cell, so swapping them never moves the slide.
   With reduced motion (and without JS) they stack instead: the struck draft above, the fix below. */
.js .tell-stack:not(.is-static) {
  display: grid;
}
.js .tell-stack:not(.is-static) > * {
  grid-area: 1 / 1;
  margin-top: 0;
}
/* Rewrites keep their space but stay hidden (from screen readers too) until the marker gets there. */
.js .tell-swap:not(.is-shown),
.tell-replaced {
  visibility: hidden;
}

/* The marker. Drawn by app.js over each struck phrase, line by line, in any [data-strikes] section. */
[data-strikes] {
  position: relative;
}
.strikes {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.strike {
  fill: none;
  stroke: var(--marker);
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.92;
  filter: url(#marker-edge);
}

/* Services */
/* One screen, like the problem slide. */
.services {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + var(--space-4)) var(--space-4);
}
.services .section-title {
  max-width: 26ch;
  font-size: min(
    clamp(
      40px,
      calc(4.4vw * var(--disp-scale)),
      calc(76px * var(--disp-scale))
    ),
    var(--fit)
  );
}
.services .stack > * + * {
  margin-top: var(--space-3);
}
.services .section-head > * + * {
  margin-top: var(--space-3);
}
/* The block is centred on how it ends up, once the subhead has been struck and closed up (app.js
   holds the block's height while it closes, so the cards move up and the headline stays put). The
   one-line subhead and its gap hang below the centred block until then. */
@media (min-width: 1024px) {
  .services .offers {
    margin-bottom: calc(-1 * (var(--space-3) + 1.45 * clamp(19px, 1.55vw, 23px)));
  }
}
.offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--col-gap);
}

/* Comic panels (.panel): white, white, and the featured one in pink (its own s-class + data-mix). */
.offers {
  padding-bottom: 10px;
}
.offer {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4) var(--space-3);
  font-size: 17px;
  line-height: 1.5;
}
.offer:nth-child(1) {
  --panel-tilt: -1.2deg;
}
.offer:nth-child(2) {
  --panel-tilt: 0.8deg;
}
.offer-feature {
  --panel-bg: var(--bg);
  --panel-tilt: -0.6deg;
}
/* Everything on a card is in the card's ink, as on Extra goodies. */
.offer-title {
  margin-bottom: var(--space-1);
  color: var(--panel-ink);
  font-size: clamp(
    30px,
    calc(2.8vw * var(--disp-scale)),
    calc(48px * var(--disp-scale))
  );
}
/* What we do, in one plain sentence. */
.offer-hook {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.4;
  font-weight: 600;
  /* No single word stranded on the last line ("…sound like / you."). */
  text-wrap: pretty;
}
/* What you get, as game-style badges: a medal drawn in the card's 3px ink, and the object's name. */
.badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2) 12px;
  margin-block: var(--space-1) var(--space-2);
}
.badge {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: var(--space-1);
  text-align: center;
}
.badge-medal {
  position: relative;
  display: grid;
  place-items: center;
  width: min(64px, 100%);
  aspect-ratio: 1;
  border: 3px solid var(--panel-ink);
  border-radius: 999px;
  background: var(--hl-bg, var(--head));
  color: var(--panel-ink);
}
/* Quieter in the white cards: just the ink ring and icon. */
.offer:not(.offer-feature) .badge-medal {
  background: transparent;
}
.badge-medal svg {
  width: 44%;
  height: 44%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.badge-name {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}
/* Title, line and badges share rows across the cards, so the badges line up. One button under
   all three cards opens the intake. */
@supports (grid-template-rows: subgrid) {
  .offer {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: var(--space-3);
  }
}

/* Process */
/* The drawing's backdrop reaches past the edges; keep it from widening the page. */
.process {
  overflow-x: clip;
}
.process-art {
  grid-column: 1 / span 7;
  margin: 0;
}
/* The paragraphs on a white card in the slide's ink. */
.process-lede {
  --panel-ink: var(--text);
  --panel-tilt: 1deg;
  grid-column: 8 / -1;
  align-self: center;
  max-width: none;
  padding: var(--space-3) var(--space-4);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.4;
  font-weight: 600;
}
/* On a wide screen both process slides fit one screen, so the handover follows straight on instead
   of the content first scrolling the headline away: the same padding as the other one-screen
   slides, tighter gaps, and the drawing only as big as the height left under the headline (two
   lines of the section title). */
@media (min-width: 1024px) {
  .process {
    display: flex;
    align-items: center;
    min-height: 100svh;
    padding-block: calc(var(--header-h) + var(--space-4)) var(--space-4);
  }
  .process > .wrap {
    width: 100%;
  }
  .process .stack > * + * {
    margin-top: var(--space-4);
  }
  /* Two lines: "Expect some strange / questions." */
  #process .section-title {
    max-width: 20ch;
  }
  .process-art {
    --process-title-h: calc(
      2 * min(clamp(44px, calc(6.6vw * var(--disp-scale)), calc(116px * var(--disp-scale))), var(--fit))
    );
    width: min(
      100%,
      calc((100svh - var(--header-h) - 3 * var(--space-4) - var(--process-title-h)) * 1.5)
    );
  }
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--col-gap);
}
/* Each step is a white card in the slide's ink, its number on a pink disc over the top-left corner
   (like the price starbursts on Extra goodies). */
.step-item {
  --panel-ink: var(--text);
  display: grid;
  align-content: start;
  padding: calc(var(--space-3) + 16px) var(--space-3) var(--space-3);
}
.step-item:nth-child(1) {
  --panel-tilt: -1.2deg;
}
.step-item:nth-child(2) {
  --panel-tilt: 0.8deg;
}
.step-item:nth-child(3) {
  --panel-tilt: -0.6deg;
}
.step-item:nth-child(4) {
  --panel-tilt: 1.2deg;
}
.step-num {
  position: absolute;
  top: -24px;
  left: -16px;
  display: grid;
  place-items: center;
  width: 56px;
  aspect-ratio: 1;
  padding-top: 0.08em;
  border: 3px solid var(--panel-ink);
  border-radius: 999px;
  background: var(--head);
  color: var(--panel-ink);
  font-size: 28px;
  line-height: 1;
}
.step-body {
  display: grid;
  gap: var(--space-2);
}
.step-heading {
  max-width: 14ch;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  font-weight: 800;
}
.step-desc {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.4;
  font-weight: 600;
}
.room-statement {
  grid-column: 1 / span 6;
  color: var(--head);
  font-size: clamp(
    28px,
    calc(3.4vw * var(--disp-scale)),
    calc(60px * var(--disp-scale))
  );
}
.room-copy {
  grid-column: 7 / -1;
  display: grid;
  gap: var(--space-4);
}
/* The follow-up line is hers: a bubble pointing down at the interviewer under it. */
.room-copy .speech {
  --tail-at: 88px;
  justify-self: start;
}
/* The questions button, beside the interviewer who asks the follow-up no one else thought to ask
   (a drawing over its own halftone backdrop, the button at her side). */
.peek-cta {
  display: grid;
  grid-template-columns: minmax(0, 220px) auto;
  align-items: center;
  justify-content: start;
  gap: var(--space-3);
}
.peek-art {
  width: 100%;
  margin: 0;
}
/* On a short wide screen the drawing is a little smaller, so the steps slide still fits one screen. */
@media (min-width: 1024px) and (max-height: 820px) {
  .peek-cta {
    grid-template-columns: minmax(0, 170px) auto;
  }
}
.peek-cta .btn {
  /* A size up from the other big buttons; one line. */
  font-size: clamp(18px, 1.55vw, 23px);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .peek-cta {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .peek-art {
    width: min(100%, 260px);
  }
  .peek-cta .btn {
    font-size: 17px;
  }
}

/* About */
/* One screen, its content centred in the space under the header. */
.about {
  overflow-x: clip;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + var(--space-4)) var(--space-4);
}
/* The heading and one paragraph on the left, the three portraits on the right. */
.about-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: var(--space-6);
  align-items: center;
}
.about-copy {
  grid-column: 1 / span 6;
}
/* The paragraph is the three of them talking (.speech): its tail points at the portraits, right of
   it on a wide screen and below it on a narrow one. */
.about-copy .speech {
  margin-top: var(--space-4);
}
/* "(Particularly cybersecurity shit.)" sits under the headline at a smaller size. */
.title-aside {
  display: block;
  margin-top: 0.25em;
  font-size: max(0.42em, 18px);
  line-height: 1.05;
}
/* The portraits sit on a circle around the middle of their square, a third of a turn apart (top
   left, top right, bottom), and the circle turns as slowly as the hero's rays (80s a turn) while
   each portrait turns back the other way, so they travel round and stay upright. */
.team {
  grid-column: 7 / -1;
  position: relative;
  width: min(100%, 580px);
  aspect-ratio: 1;
  justify-self: end;
}
.team > li {
  position: absolute;
  left: calc(28% + var(--orbit-x));
  top: calc(28% + var(--orbit-y));
  width: 44%;
}
.team > li:nth-child(1) {
  --orbit-x: -23.4%;
  --orbit-y: -13.5%;
}
.team > li:nth-child(2) {
  --orbit-x: 0%;
  --orbit-y: 27%;
}
.team > li:nth-child(3) {
  --orbit-x: 23.4%;
  --orbit-y: -13.5%;
}
html.is-staged .team {
  animation: spin 80s linear infinite;
}
html.is-staged .team > li > .ill {
  animation: spin 80s linear infinite reverse;
}

/* Why we're different */
/* One screen in three parts: we can smell the slop (left), what we catch it in (right, a pile of
   white stickers with the slide's purple), and what your team keeps (purple ones with its lime). On the moving slides of a wide
   screen the third part takes the first one's place as you scroll on (data-step from motion.js);
   on the plain page and on phones the parts follow each other. The stickers are scattered so they
   overlap a little (app.js), each drawn in the slide's 3px ink, all in one type size. */
.independence {
  overflow-x: clip;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + var(--space-4)) var(--space-4);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: var(--space-6);
  align-items: center;
}
.why-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.why-smell,
.why-teach {
  grid-column: 1 / span 6;
}
.why-smell {
  grid-row: 1;
}
.why-teach {
  grid-row: 2;
}
.why-catch {
  grid-column: 7 / -1;
  grid-row: 1 / span 2;
}
/* Capped at the width that fits (--fit): its lines never wrap, so on a phone "We can smell" would
   otherwise run off the edge. */
.why-title {
  font-size: min(
    clamp(40px, calc(4.9vw * var(--disp-scale)), calc(84px * var(--disp-scale))),
    var(--fit)
  );
}
.why-line {
  display: block;
  white-space: nowrap;
}
/* The two paragraphs on a white card in the slide's ink. */
.why-smell .lede {
  --panel-ink: var(--text);
  --panel-tilt: -1deg;
  max-width: 30em;
  padding: var(--space-3) var(--space-4);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.4;
  font-weight: 600;
}
.why-essay {
  align-self: flex-start;
}
@media (min-width: 1024px) {
  html.is-staged .why-teach,
  html.is-staged .why-catch {
    grid-row: 1;
  }
  /* The part that is out of step fades away, nudged a little in the direction it leaves. */
  html.is-staged .why-smell,
  html.is-staged .why-teach {
    transition:
      opacity 0.5s var(--ease-soft),
      translate 0.5s var(--ease-soft),
      visibility 0s;
  }
  html.is-staged .independence:not([data-step="2"]) .why-teach,
  html.is-staged .independence[data-step="2"] .why-smell {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.35s var(--ease-soft),
      translate 0.35s var(--ease-soft),
      visibility 0s 0.35s;
  }
  html.is-staged .independence:not([data-step="2"]) .why-teach {
    translate: 0 32px;
  }
  html.is-staged .independence[data-step="2"] .why-smell {
    translate: 0 -32px;
  }
}
.deliver-title {
  max-width: 24ch;
  font-size: clamp(
    26px,
    calc(2.9vw * var(--disp-scale)),
    calc(50px * var(--disp-scale))
  );
}
.circles {
  position: relative;
  height: clamp(360px, 54vh, 560px);
}
.circles-kept {
  height: clamp(300px, 40vh, 440px);
}
.circle {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: var(--d, 160px);
  aspect-ratio: 1;
  /* A tenth of the sticker on each side (a % would be of the whole pile). */
  padding: 0 calc(var(--d, 160px) * 0.1);
  border: 3px solid var(--text);
  border-radius: 50%;
  background: #ffffff;
  color: var(--text);
  /* The display face at its heaviest, normal width: bolder than Manrope goes. */
  font-family: var(--font-display);
  font-size: var(--fs, 17px);
  font-weight: 900;
  font-stretch: 100%;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}
/* What your team keeps: the same stickers in pink (the What we fix feature card's colour). */
.circles-kept .circle {
  background: var(--gummy-bg);
}
/* With a mouse the stickers can be pushed and picked up (app.js). */
html.has-sticker-play .circle {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
html.has-sticker-play .circle.is-held {
  z-index: 2;
  cursor: grabbing;
}

/* The two ways to work with us: comic panels on the grape slide, each with its price on a
   starburst and its reason in a speech bubble pointing back at it. */
/* One screen: the title, the two cards and their bubbles as one block, centred on the screen both
   ways (the same room above and below, the block only as wide as the cards). */
.plans-slide {
  overflow-x: clip;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + var(--space-3));
}
.plans-slide > .wrap {
  width: fit-content;
  max-width: 100%;
}
/* The right card's starburst and shadow stick out past it; room for them keeps the block centred
   as you see it. */
@media (min-width: 1024px) {
  .plans-slide .plans {
    padding-right: 52px;
  }
}
.plans-slide .stack > * + * {
  margin-top: var(--space-4);
}
/* Two compact cards under the title, side by side. */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 470px));
  column-gap: calc(var(--col-gap) * 3);
  row-gap: var(--space-4);
  padding-top: var(--space-4);
}
/* The two cards share a row and the two speech bubbles the next, so the cards match in height and
   the bubbles start level. */
.plan-wrap {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: var(--space-4);
}
.plan {
  display: grid;
  gap: var(--space-4);
  align-content: start;
  padding: var(--space-4);
}
.plan-lessons {
  --panel-bg: var(--gummy-head);
  --panel-tilt: -1.4deg;
}
.plan-patrol {
  --panel-bg: var(--gummy-bg);
  --panel-tilt: 1.2deg;
}
.plan-title {
  max-width: 9ch;
  color: var(--panel-ink);
  font-size: clamp(
    34px,
    calc(3.9vw * var(--disp-scale)),
    calc(64px * var(--disp-scale))
  );
}
.plan-what {
  max-width: 26ch;
  margin: 0;
  font-size: clamp(18px, 1.4vw, 21px);
  font-weight: 600;
  line-height: 1.4;
}
/* The price on a starburst over the card's top corner: an ink burst behind a tomato one. */
.plan-price {
  position: absolute;
  top: -58px;
  right: -40px;
  z-index: 1;
  display: grid;
  place-content: center;
  width: 164px;
  aspect-ratio: 1;
  padding: 30px;
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  rotate: 12deg;
  transition: rotate 0.6s var(--ease-pop);
}
.plan-price::before,
.plan-price::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(50% 0%, 59% 18%, 77% 7%, 75% 27%, 96% 25%, 84% 42%, 100% 55%, 81% 62%, 90% 81%, 70% 79%, 65% 100%, 51% 85%, 36% 99%, 32% 79%, 11% 84%, 20% 64%, 0% 52%, 17% 41%, 5% 23%, 26% 26%, 24% 6%, 41% 17%);
  background: var(--panel-ink);
}
.plan-price::after {
  inset: 5px;
  background: var(--marker);
}
.plan:hover .plan-price {
  rotate: -6deg;
}
/* The reason, in a speech bubble pointing back up at its card, only as tall as its words. */
.plan-because {
  position: relative;
  align-self: start;
  text-wrap: balance;
  max-width: 38ch;
  margin: 0 0 0 var(--space-5);
  padding: var(--space-3) var(--space-4);
  border: 3px solid #1a0b4d;
  border-radius: 1.2em;
  background: #ffffff;
  color: #1a0b4d;
  font-size: clamp(18px, 1.45vw, 22px);
  font-weight: 800;
  line-height: 1.3;
}
.plan-because::before,
.plan-because::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 36px;
  border-style: solid;
  border-color: transparent transparent #1a0b4d;
  border-width: 0 0 22px 14px;
}
.plan-because::after {
  left: 39px;
  margin-bottom: -5px;
  border-bottom-color: #ffffff;
  border-width: 0 0 16px 9px;
}

/* FAQ */
/* One screen: the title, and the questions on a white card in the slide's ink beside it. Answers
   that open make the card taller, and the slide scrolls if it no longer fits. */
.faq {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + var(--space-4)) var(--space-4);
}
.faq > .wrap {
  width: 100%;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: var(--space-5);
  align-items: start;
}
.faq-grid .section-title {
  grid-column: 1 / span 5;
  position: sticky;
  top: calc(var(--header-h) + var(--space-3));
  font-size: min(
    clamp(
      44px,
      calc(5.6vw * var(--disp-scale)),
      calc(96px * var(--disp-scale))
    ),
    var(--fit)
  );
}
/* On a laptop the title shares the row with the card, in 5 of the 12 columns. The page stops
   widening at --maxw (1520px) while the type keeps growing until about 1714px, so on wider screens
   "QUESTIONS." ran under the card. Its size is also capped by its own column: that word is about 9.2
   character widths (--char-em) of the display face. */
@media (min-width: 1024px) {
  .faq-grid {
    container-type: inline-size;
  }
  .faq-grid .section-title {
    font-size: min(
      clamp(
        44px,
        calc(5.6vw * var(--disp-scale)),
        calc(96px * var(--disp-scale))
      ),
      var(--fit),
      calc(
        ((100cqw - 11 * var(--col-gap)) * 5 / 12 + 4 * var(--col-gap)) /
          (9.2 * var(--char-em, 0.71))
      )
    );
  }
}
.faq-list {
  --panel-ink: var(--text);
  --panel-tilt: 0.6deg;
  grid-column: 6 / -1;
  padding: var(--space-1) var(--space-4);
}
/* It stays put under the mouse: you read and click inside it, so it doesn't lift like the others. */
.faq-list.panel:hover {
  translate: none;
  box-shadow: 10px 10px 0 var(--panel-ink);
}
/* A 3px ink rule between questions; the card's own outline closes the first and last. */
.faq-list details + details {
  border-top: 3px solid var(--panel-ink);
}
/* The answer rolls down as it opens (app.js animates its height). */
.faq-answer {
  overflow: clip;
}
.faq-list summary {
  position: relative;
  display: block;
  padding: var(--space-3) 56px var(--space-3) 0;
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 3px no-repeat,
    linear-gradient(currentColor, currentColor) center / 3px 100% no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list summary:hover {
  color: var(--head);
}
.faq-list details p {
  max-width: 60ch;
  padding: 0 56px var(--space-3) 0;
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.4;
  font-weight: 600;
}

/* Contact */
/* Capped by the screen's height too, so the closing screen fits on a short wide screen. */
.contact-title {
  font-size: min(
    clamp(
      48px,
      calc(6.6vw * var(--disp-scale)),
      calc(112px * var(--disp-scale))
    ),
    var(--fit),
    8.8svh
  );
  line-height: 0.96;
}
/* The closing slide and the footer row are one screen: the stickers (footer.js) drop in and pile up
   on the footer row in a band of their own (--sticker-band, about as tall as the pile), and the
   content is centred in the space between the header and that band, so no sticker ends up behind
   the text. Stacking: stickers over the footer row (so a star's points aren't cut off), the content
   over the stickers (so it stays readable and clickable). Only the stickers and the two content
   columns catch the mouse. */
.contact {
  --footer-row: 80px;
  --sticker-band: clamp(96px, 8.5vw, 170px);
  --sticker-floor: var(--sticker-band);
  position: relative;
  overflow-x: clip;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--footer-row));
  padding-block: calc(var(--header-h) + var(--space-3)) calc(var(--space-3) + var(--sticker-floor));
}
.contact > .wrap {
  position: relative;
  z-index: 3;
  pointer-events: none;
}
.contact-copy,
.contact-side {
  pointer-events: auto;
}
.contact-grid {
  width: 100%;
}
/* On the moving slides the last slide's body (the section and the footer row) is exactly one
   screen, so there is nothing to read down to and the footer row sits at the bottom. */
html.is-staged .stage-body:has(> #contact) {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
html.is-staged .stage-body:has(> #contact) > #contact {
  flex: 1 0 auto;
  min-height: 0;
}
.contact-grid {
  align-items: center;
}
.contact-copy {
  grid-column: 1 / span 6;
  display: grid;
  gap: var(--space-4);
  justify-items: start;
}
/* The drawing with the deck button centred underneath it. */
.contact-side {
  grid-column: 7 / -1;
  display: grid;
  justify-items: center;
  gap: var(--space-5);
}
/* As big as the other drawings: its whole column, unless the screen is too short for that and the
   button under it (then as tall as the screen allows). */
.contact-art {
  width: min(
    100%,
    calc((100svh - var(--header-h) - 2 * var(--space-3) - var(--space-5) - var(--footer-row) - var(--sticker-floor) - 80px) * 1.5)
  );
  margin: 0;
}
/* The two paragraphs on a white card in the slide's ink: the first line as the card's title. */
.contact-copy .lede {
  --panel-ink: var(--text);
  --panel-tilt: -1deg;
  max-width: 30em;
  padding: var(--space-3) var(--space-4);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.4;
  font-weight: 600;
}
.contact-lede {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.2;
  font-weight: 800;
}
.contact-action {
  display: grid;
  gap: var(--space-2);
  min-width: min(100%, 360px);
}

/* Footer */
/* The closing slide's own red: one quiet row at the very bottom of the page (name, privacy and
   copyright). */
.site-footer {
  position: relative;
  z-index: 1;
  padding-block: var(--space-3);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  font-size: 15px;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-3);
  margin-left: auto;
}
.footer-legal .link-button {
  font-weight: 700;
  text-decoration: none;
}
.footer-legal .link-button:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.footer-legal span {
  opacity: 0.8;
}
/* The roll and the comments button sit in the bottom-right corner: the row keeps clear of them
   (beside them on a wide screen, above them on a phone). */
@media (min-width: 641px) {
  .footer-inner {
    padding-right: max(var(--gutter), 168px);
  }
}
@media (max-width: 640px) {
  .site-footer {
    padding-bottom: calc(var(--space-3) + 96px);
  }
}

/* The stickers (footer.js drops them in with a little physics; drag or push them around). Each is a
   die-cut sticker: a cream rim around a block of colour. They wait out of sight until they drop. */
/* Not clipped: a star's points or a tilted corner may poke past the slide's bottom, over the
   footer row (the layer stacks above it; the slide itself clips anything off to the sides). */
.footer-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
/* Drawn like everything else on the site: the 3px ink line (the sticker's own colour inside it). */
.sticker {
  --sticker-line: #1f0702;
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  padding: 0.5em 0.85em 0.55em;
  border: 3px solid var(--sticker-line);
  font-family: var(--font-display);
  font-size: clamp(12px, 1.1vw, 18px);
  font-weight: 900;
  font-stretch: var(--disp-stretch, 125%);
  letter-spacing: var(--disp-track, -0.015em);
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: grab;
  visibility: hidden;
  will-change: transform;
  pointer-events: auto;
  touch-action: pan-y;
}
.sticker.is-placed {
  visibility: visible;
}
.footer-play.is-dragging,
.footer-play.is-dragging .sticker {
  cursor: grabbing;
}
.sticker[data-shape="pill"] {
  border-radius: 999px;
  padding-inline: 1.1em;
}
.sticker[data-shape="rect"] {
  border-radius: 14px;
}
.sticker[data-shape="circle"] {
  width: 6.2em;
  aspect-ratio: 1;
  padding: 0.6em;
  border-radius: 50%;
  white-space: normal;
}
.sticker-roll {
  width: 64%;
  height: 64%;
}
/* The starburst: an ink burst behind a coloured one, standing in for the line. */
.sticker[data-shape="burst"] {
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  color: var(--voltage-head);
  font-size: clamp(11px, 1vw, 16px);
  /* Two short lines, centred, so the words stay inside the burst's inner circle. */
  white-space: nowrap;
  text-align: center;
  line-height: 0.92;
  width: 7.2em;
}
.sticker[data-shape="burst"]::before,
.sticker[data-shape="burst"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(50% 0%, 59% 18%, 77% 7%, 75% 27%, 96% 25%, 84% 42%, 100% 55%, 81% 62%, 90% 81%, 70% 79%, 65% 100%, 51% 85%, 36% 99%, 32% 79%, 11% 84%, 20% 64%, 0% 52%, 17% 41%, 5% 23%, 26% 26%, 24% 6%, 41% 17%);
  background: var(--sticker-line);
}
.sticker[data-shape="burst"]::after {
  inset: 4px;
  background: var(--acid-head);
}
.sticker-yellow {
  background: var(--gummy-head);
  color: #1f0702;
}
.sticker-blue {
  background: var(--voltage-bg);
  color: #ffffff;
}
.sticker-pink {
  background: var(--gummy-bg);
  color: #1f0702;
}
.sticker-lime {
  background: var(--acid-bg);
  color: var(--acid-head);
}
.sticker-cream {
  background: #fffdf6;
  color: #1f0702;
}
.sticker-violet {
  background: var(--acid-head);
  color: var(--acid-bg);
}
.sticker-ink {
  background: #1f0702;
  color: var(--hotsauce-head);
}

@media (max-width: 1023px) {
  .split-row > *,
  .about-copy,
  .team,
  .faq-list,
  .faq-grid .section-title {
    grid-column: 1 / -1;
  }
  .faq-grid .section-title {
    position: static;
  }
  .offers,
  .plans {
    grid-template-columns: 1fr;
  }
  .why-smell,
  .why-catch,
  .why-teach {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    row-gap: var(--space-5);
  }
  .team {
    justify-self: center;
    width: min(100%, 520px);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }
  .steps,
  .deslop-pair {
    grid-template-columns: 1fr;
  }
  .deslop {
    padding: var(--space-4);
  }
  .circles-made {
    height: 540px;
  }
  .circles-kept {
    height: 340px;
  }
  /* Room at the top of each card for its starburst. */
  .plan {
    padding-top: 92px;
  }
  .plan-price {
    top: -36px;
    right: -6px;
    width: 124px;
    padding: 22px;
  }
  .plan-price {
    font-size: 14px;
  }
  .footer-legal {
    width: 100%;
    margin-left: 0;
  }
  /* A phone's closing slide is taller than the screen: room under its content for the stickers to
     land in, so they don't pile up behind the text. */
  .contact {
    --sticker-floor: 300px;
  }
  /* Fewer, smaller stickers on a phone, so the pile stays in its band. */
  .sticker {
    font-size: 12px;
  }
  .sticker:nth-child(n + 8) {
    display: none;
  }
  .faq-list summary {
    padding-right: 44px;
  }
  .faq-list details p {
    padding-right: 0;
  }
}

/* Essay (why-slop-looks-sloppy.html) ------------------------------------------------------------
   Jeanette's long read. A lime cover with the title and the twins (the slop slide's colours), then
   the text in one comfortable column on blush: about 70 characters a line, part titles in the
   display face, section headings in heavy Manrope. Her examples, sidebar and asides get the site's
   comic-panel treatment so the long scroll has landmarks. */
.essay-cover {
  overflow-x: clip;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + var(--space-4)) var(--space-6);
}
.essay-cover-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: var(--space-5);
  align-items: center;
}
.essay-cover-copy {
  grid-column: 1 / span 8;
  container-type: inline-size;
}
/* Three lines, as big as the copy column allows ("WHY “SLOP”" is the widest, 7.94em). */
.essay-title {
  font-size: min(calc(100cqw / 8.3), 168px);
  line-height: 0.94;
}
.essay-title-line {
  display: block;
  white-space: nowrap;
}
.essay-byline {
  margin-top: var(--space-4);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
}
.essay a:not(.btn):not(.brand) {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--head);
  text-underline-offset: 0.2em;
}
.essay a:not(.btn):not(.brand):hover {
  text-decoration-color: currentColor;
}
.essay-art {
  grid-column: 9 / -1;
  justify-self: center;
  width: min(100%, 62vh);
  margin: 0;
}

.essay-part {
  padding-block: var(--space-6) 0;
}
.essay-part:last-of-type {
  padding-bottom: var(--space-7);
}
.essay-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}
.essay-body {
  grid-column: 3 / span 8;
  min-width: 0;
}
.essay-body > * + * {
  margin-top: 1.05em;
}
/* About 70 characters a line. */
.essay-body p,
.essay-body li {
  max-width: 36em;
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.65;
  font-weight: 500;
}
.essay-body strong {
  font-weight: 800;
}
.essay-part-title {
  max-width: 20ch;
  margin-bottom: var(--space-4);
  font-size: min(
    clamp(30px, calc(4.2vw * var(--disp-scale)), calc(68px * var(--disp-scale))),
    var(--fit)
  );
  line-height: 1;
  text-wrap: balance;
}
.essay-body > .essay-heading {
  margin-top: var(--space-5);
}
.essay-heading {
  max-width: 30ch;
  font-size: clamp(22px, 1.9vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  text-wrap: balance;
}
.essay-body > .essay-statement {
  margin-block: var(--space-4);
}
.essay-body .essay-statement {
  color: var(--head);
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.15;
}
/* A torn-off line between thoughts: the perforation from the roll. */
.essay-break {
  max-width: 40rem;
  height: 3px;
  margin: var(--space-5) 0;
  border: 0;
  background: repeating-linear-gradient(90deg, currentColor 0 14px, transparent 14px 24px);
  opacity: 0.45;
}
.essay-body > .essay-break {
  margin-block: var(--space-5);
}
/* Low and high cohesion, side by side: the same facts without and with their word glue. */
.essay-compare {
  max-width: 52rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-block: var(--space-4);
}
.essay .panel {
  --panel-ink: var(--text);
}
.essay-body .essay-example {
  max-width: none;
  padding: var(--space-3) var(--space-4) var(--space-4);
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.55;
}
.essay-example-low {
  --panel-bg: var(--gummy-bg);
  --panel-tilt: -1.2deg;
}
.essay-example-high {
  --panel-bg: var(--gummy-head);
  --panel-tilt: 1deg;
}
.essay-example > strong:first-child {
  display: block;
  margin-bottom: 0.35em;
}
/* The nerds-only sidebar: a lime comic panel, like the slop slide. */
.essay .essay-sidebar {
  --panel-bg: var(--acid-bg);
  --panel-ink: var(--acid-text);
  --panel-tilt: -0.6deg;
}
.essay-sidebar {
  max-width: 46rem;
  display: grid;
  gap: 1em;
  margin-block: var(--space-5);
  padding: var(--space-4);
}
.essay-body .essay-sidebar p {
  font-size: clamp(17px, 1.2vw, 19px);
}
.essay-sidebar-title {
  max-width: 34ch;
  color: var(--acid-head);
  font-size: clamp(21px, 1.7vw, 27px);
  font-weight: 800;
  line-height: 1.2;
}
.essay-reasons {
  max-width: 40rem;
  padding-left: 1.6em;
  list-style: decimal;
}
.essay-body .essay-reasons li {
  padding-left: 0.3em;
  font-weight: 800;
}
.essay-reasons li + li {
  margin-top: 0.6em;
}
/* Paired examples (novelty, purpose; social, long-form) hang off a rule in the slide's red. */
.essay-ways {
  display: grid;
  gap: 1.05em;
  max-width: 44rem;
  padding-left: var(--space-3);
  border-left: 4px solid var(--head);
}
.essay-body > .essay-ways {
  margin-block: var(--space-4);
}
.essay-body .essay-signoff {
  margin-top: var(--space-4);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 800;
}
.essay-actions {
  margin-top: var(--space-5);
}
/* A drawing breaking up the text: a comic panel (.panel) with the drawing over its halftone
   backdrop and a caption box or a speech bubble beside it, the two swapping sides as you go. */
.essay-body > .essay-figure {
  margin-block: var(--space-5);
}
/* The drawing inks in the essay's maroon and knocks out of the panel colour (set here, not from
   --text, which the panel ink itself comes from). */
.essay .essay-figure {
  --panel-ink: var(--blush-text);
  --text: var(--blush-text);
  --bg: var(--panel-bg);
}
.essay-figure {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  align-items: center;
  gap: var(--space-3) var(--space-4);
  max-width: 52rem;
  padding: var(--space-4);
  overflow: clip;
}
.essay-figure-flip {
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
}
.essay-figure-flip .essay-figure-art {
  order: 2;
}
.essay-figure-art {
  width: 100%;
  margin: 0;
}
.essay-figure-glue {
  --panel-bg: var(--gummy-head);
  --panel-tilt: -0.8deg;
}
.essay-figure-whatread {
  --panel-bg: var(--acid-bg);
  --panel-tilt: 0.7deg;
}
.essay-figure-say {
  --panel-bg: var(--gummy-bg);
  --panel-tilt: -0.6deg;
}
/* A comic caption box: a white rectangle, ink outline. */
.essay-body .essay-caption {
  justify-self: start;
  padding: var(--space-2) var(--space-3);
  border: 3px solid var(--panel-ink);
  background: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 900;
  font-stretch: 100%;
  line-height: 1;
}
/* A speech bubble, its tail pointing at whoever says it. */
.essay-body .essay-bubble {
  position: relative;
  justify-self: start;
  max-width: 13em;
  padding: var(--space-3) var(--space-4);
  border: 3px solid var(--panel-ink);
  border-radius: 1.2em;
  background: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.3vw, 36px);
  font-weight: 900;
  font-stretch: 100%;
  line-height: 1.05;
  text-wrap: balance;
}
.essay-bubble::before,
.essay-bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  border-style: solid;
}
/* The bubble sits right of the drawing, so its tail points left; flipped, it points right. */
.essay-bubble::before {
  right: 100%;
  margin-top: -14px;
  border-width: 12px 26px 12px 0;
  border-color: transparent var(--panel-ink) transparent transparent;
}
.essay-bubble::after {
  right: 100%;
  margin: -8px -4px 0 0;
  border-width: 7px 18px 7px 0;
  border-color: transparent #ffffff transparent transparent;
}
.essay-figure-flip .essay-bubble {
  justify-self: end;
}
.essay-figure-flip .essay-bubble::before {
  right: auto;
  left: 100%;
  border-width: 12px 0 12px 26px;
  border-color: transparent transparent transparent var(--panel-ink);
}
.essay-figure-flip .essay-bubble::after {
  right: auto;
  left: 100%;
  margin: -8px 0 0 -4px;
  border-width: 7px 0 7px 18px;
  border-color: transparent transparent transparent #ffffff;
}
@media (max-width: 640px) {
  .essay-figure,
  .essay-figure-flip {
    grid-template-columns: 1fr;
    padding: var(--space-3);
  }
  .essay-figure-flip .essay-figure-art {
    order: 0;
  }
  /* Stacked: the tail points up at the drawing. */
  .essay-body .essay-bubble,
  .essay-figure-flip .essay-bubble {
    justify-self: center;
  }
  .essay-bubble::before,
  .essay-figure-flip .essay-bubble::before {
    top: auto;
    bottom: 100%;
    left: 40px;
    right: auto;
    margin: 0;
    border-width: 0 12px 24px 12px;
    border-color: transparent transparent var(--panel-ink) transparent;
  }
  .essay-bubble::after,
  .essay-figure-flip .essay-bubble::after {
    top: auto;
    bottom: 100%;
    left: 45px;
    right: auto;
    margin: 0 0 -5px;
    border-width: 0 7px 16px 7px;
    border-color: transparent transparent #ffffff transparent;
  }
}

/* The essay's header: a Back pill before the brand, always on screen. */
.header-start {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
  min-width: 0;
}
.essay-back.btn {
  min-height: 40px;
  gap: 0.4em;
  padding: calc(0.5em + var(--label-drop)) 0.95em calc(0.5em - var(--label-drop));
  font-size: 15px;
}
@media (max-width: 640px) {
  .header-start {
    gap: 10px;
  }
  /* Just the arrow on a phone; its label stays for screen readers. */
  .essay-back-label {
    display: none;
  }
  .essay-back.btn {
    width: 40px;
    padding-inline: 0;
    font-size: 19px;
  }
}
/* Over-scrolling past either end shows the text's blush, not the site's blue. */
body.essay-page {
  background: var(--blush-bg);
}
@media (max-width: 1023px) {
  .essay-cover-copy,
  .essay-art,
  .essay-body {
    grid-column: 1 / -1;
  }
  .essay-art {
    width: min(100%, 440px);
  }
  .essay-compare {
    grid-template-columns: 1fr;
  }
}

/* Dialogs --------------------------------------------------------------- */

dialog {
  padding: 0;
  border: 0;
  max-width: none;
  max-height: none;
}
dialog::backdrop {
  background: rgb(10 8 12 / 0.55);
}
dialog[open] {
  animation: rise 0.3s var(--ease);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Question preview */
.peek {
  width: min(1040px, calc(100% - 24px));
  height: min(760px, calc(100svh - 24px));
  margin: auto;
}
.peek[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.peek-top,
.peek-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px clamp(16px, 3vw, 32px);
}
.peek-top {
  border-bottom: 2px solid currentColor;
}
.peek-title {
  font-weight: 700;
  margin-right: auto;
}
.peek-count {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.peek-slides {
  overflow-y: auto;
  padding: clamp(24px, 4vw, 56px) clamp(16px, 4vw, 56px);
}
.peek-slide {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  align-content: start;
}
.peek-q {
  /* Last resort for a word wider than the dialog (slashed lists get <wbr> in the markup). */
  overflow-wrap: break-word;
  font-size: min(
    clamp(
      32px,
      calc(4.8vw * var(--disp-scale)),
      calc(68px * var(--disp-scale))
    ),
    var(--fit)
  );
  line-height: 1.02;
  max-width: 20ch;
}
.peek-q:focus {
  outline: none;
}
/* "Why we ask this": a small reveal under each question, so thinking about it pays off on the spot. */
.peek-why {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
}
.peek-why-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--head);
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}
.peek-why-toggle::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}
.peek-why-toggle[aria-expanded="true"]::before {
  transform: rotate(45deg);
}
.peek-why-toggle:focus-visible {
  outline: 3px solid var(--head);
  outline-offset: 4px;
}
.peek-why-text {
  max-width: 52ch;
  padding: var(--space-2) var(--space-3);
  border-left: 4px solid var(--head);
  background: color-mix(in srgb, var(--head) 14%, var(--bg));
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 600;
  line-height: 1.4;
}
.peek-nav {
  border-top: 2px solid currentColor;
  justify-content: space-between;
}
.peek-end-lede {
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  max-width: 22ch;
}

/* Intake ----------------------------------------------------------------------------------------
   One page on grape (data-mix on the dialog): the title and the deck drawing on the left, held in
   place, the form on the right; on phones they stack. Every field is a white box in the ink
   (--field-ink) with a hard shadow, and its label is a lime comic caption overlapping the box's
   corner: the one twist only the form has. Focus lifts a box and turns its shadow lime; an error
   turns it red. */
.intake {
  --field-ink: var(--btn-fg);
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
.intake[open] {
  display: grid;
  grid-template-rows: auto 1fr;
}
.intake-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 12px var(--gutter);
}
/* The logo closes the form and takes you back to the top of the home page. */
.intake-home {
  display: inline-flex;
  color: inherit;
  border-radius: 4px;
}
.intake-scroll {
  overflow: hidden auto;
  overscroll-behavior: contain;
}
.intake-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--space-3) var(--gutter) var(--space-6);
}
.intake-side {
  grid-column: 1 / 6;
  align-self: start;
  position: sticky;
  top: var(--space-3);
  display: grid;
  gap: var(--space-5);
}
.intake-title,
.intake-done-title {
  font-size: min(
    clamp(40px, calc(5vw * var(--disp-scale)), calc(88px * var(--disp-scale))),
    var(--fit)
  );
}
.intake-title:focus,
.intake-done-title:focus {
  outline: none;
}
/* The closing slide's drawing as a white die-cut sticker in the form's ink, like the white boxes
   beside it. Inked in lime on the purple it read as a negative: its face shading turned into a
   glow. Its outline is a hard-edged copy of the drawing's shape (deck-g-crisp-shape.png), so the
   white border is clean rather than a soft halo. As big as the column allows while the title and
   drawing still fit the screen. */
.intake-art {
  --text: var(--head);
  --ink: var(--field-ink);
  --ill-shape: url("assets/illustrations/deck-g-crisp-shape.png");
  width: min(100%, calc((100svh - 72px - 2 * var(--space-3) - var(--space-5) - 3.1em) * 1.5));
  font-size: min(
    clamp(40px, calc(5vw * var(--disp-scale)), calc(88px * var(--disp-scale))),
    var(--fit)
  );
}
.intake-art .ill-knockout {
  background-color: #ffffff;
}
.intake-form,
.intake-done {
  grid-column: 7 / -1;
}
.intake-form {
  display: grid;
  gap: var(--space-4);
  align-content: start;
  padding-top: var(--space-2);
}
.intake-form[hidden],
.intake-done[hidden] {
  display: none;
}
.intake-row {
  display: grid;
  /* Role gets the extra room: its example text is the longer one. An error under Name must not
     stretch the Role box, so the row lines up at the top. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: start;
  gap: var(--space-4) var(--space-3);
}
/* Bots fill in every field; people never see this one. */
.intake-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.box-field,
.box-group {
  position: relative;
  display: grid;
  min-width: 0;
}
.caption {
  justify-self: start;
  position: relative;
  z-index: 1;
  /* Overlaps the box's top edge, tucked in from its left corner. */
  margin: 0 0 -14px 14px;
  padding: 4px 12px;
  border: 3px solid var(--field-ink);
  background: var(--head);
  color: var(--field-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  rotate: -2deg;
  transition:
    background-color 0.2s,
    color 0.2s;
}
/* Groups have no box to overlap: their caption sits above the choices. */
.box-group > .caption {
  margin: 0 0 var(--space-3) 0;
}
/* An optional field's caption has a separate white badge beside it saying so, tilted the other
   way. The row takes over the caption's overlap with the box; a long caption wraps inside its own
   box so the badge stays beside it. */
.caption-row {
  justify-self: start;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 -14px 14px;
}
.caption-row > .caption {
  margin: 0;
}
.optional-badge {
  flex: none;
  padding: 2px 10px;
  border: 3px solid var(--field-ink);
  border-radius: 999px;
  background: #ffffff;
  color: var(--field-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  rotate: 3deg;
}
.box {
  display: block;
  width: 100%;
  min-height: 62px;
  margin: 0;
  padding: 24px 18px 14px;
  border: 3px solid var(--field-ink);
  border-radius: 0;
  background: #ffffff;
  color: var(--field-ink);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 6px 6px 0 var(--field-ink);
  text-overflow: ellipsis;
  transition:
    translate 0.25s var(--ease-soft),
    box-shadow 0.25s var(--ease-soft),
    border-color 0.2s;
}
.box::placeholder,
.box-text::placeholder {
  color: var(--field-ink);
  opacity: 0.45;
  font-weight: 500;
}
input.box:focus,
.box-note:focus-within {
  outline: none;
  translate: -3px -3px;
  box-shadow: 9px 9px 0 var(--head);
}
/* Anything else: a box holding the note, the attached files and the strip to add more. */
.box-note {
  padding: 0;
}
.box-text {
  display: block;
  width: 100%;
  min-height: 132px;
  padding: 26px 18px 14px;
  border: 0;
  background: transparent;
  color: var(--field-ink);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  resize: vertical;
}
.box-text:focus {
  outline: none;
}
.file-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  padding: 14px 18px 16px;
  border-top: 3px solid var(--field-ink);
}
.file-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 16px 6px 12px;
  border: 3px solid var(--field-ink);
  border-radius: 999px;
  background: var(--head);
  color: var(--field-ink);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition:
    translate 0.2s var(--ease-soft),
    box-shadow 0.2s var(--ease-soft);
}
.file-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.file-button:hover,
.box-note:has(#files:focus-visible) .file-button {
  translate: -2px -2px;
  box-shadow: 4px 4px 0 var(--field-ink);
}
.file-hint {
  flex: 1 1 18em;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.file-hint p + p {
  opacity: 0.75;
}
/* Nothing to drag on a touch screen. */
@media (pointer: coarse) {
  .file-drop-line {
    display: none;
  }
}
.file-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 18px 16px;
  list-style: none;
}
.file-list[hidden] {
  display: none;
}
/* One row per file: name, size, remove, and a progress bar while it goes up. */
.file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px 12px;
  padding: 8px 8px 8px 14px;
  border: 3px solid var(--field-ink);
  background: #ffffff;
  font-size: 16px;
  font-weight: 700;
}
.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-size {
  font-weight: 600;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
.file-remove {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 3px solid var(--field-ink);
  border-radius: 50%;
  background: #ffffff;
  color: var(--field-ink);
  cursor: pointer;
}
.file-remove svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: square;
}
.file-remove:hover {
  background: var(--field-ink);
  color: #ffffff;
}
.file-bar {
  grid-column: 1 / -1;
  height: 14px;
  margin: 2px 0 2px;
  border: 3px solid var(--field-ink);
  background: #ffffff;
  overflow: hidden;
}
.file-bar-fill {
  display: block;
  height: 100%;
  width: calc(var(--progress, 0) * 100%);
  background: var(--head);
  border-right: 3px solid var(--field-ink);
  transition: width 0.2s linear;
}
.file-state {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 15px;
  font-weight: 700;
}
.file[data-state="done"] .file-bar,
.file:not([data-state="failed"]) .file-state {
  display: none;
}
.file[data-state="done"] .file-name::before {
  content: "✓";
  margin-right: 0.45em;
}
.file[data-state="failed"] {
  border-color: var(--error);
}
.file[data-state="failed"] .file-bar {
  display: none;
}
.file[data-state="failed"] .file-state {
  color: var(--error);
}
.file-state .link-button {
  color: var(--field-ink);
  font-weight: 800;
}

/* What needs fixing: white cards with a square tick box; a ticked card turns lime. */
.tick-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: var(--space-3);
}
.tick-card {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: var(--space-3) calc(var(--space-3) + 40px) var(--space-3) var(--space-3);
  border: 3px solid var(--field-ink);
  background: #ffffff;
  color: var(--field-ink);
  box-shadow: 6px 6px 0 var(--field-ink);
  rotate: var(--tick-tilt, 0deg);
  cursor: pointer;
  transition:
    translate 0.25s var(--ease-soft),
    box-shadow 0.25s var(--ease-soft),
    background-color 0.2s,
    border-color 0.2s;
}
.tick-card:nth-child(1) {
  --tick-tilt: -0.8deg;
}
.tick-card:nth-child(2) {
  --tick-tilt: 0.6deg;
}
.tick-card:nth-child(3) {
  --tick-tilt: -0.6deg;
}
.tick-card:nth-child(4) {
  --tick-tilt: 0.8deg;
}
.tick-card:nth-child(5) {
  --tick-tilt: -0.4deg;
}
.tick-card:hover {
  translate: -3px -3px;
  box-shadow: 9px 9px 0 var(--field-ink);
}
.tick-card:has(input:checked) {
  background: var(--head);
}
.tick-card:has(input:focus-visible) {
  translate: -3px -3px;
  box-shadow: 9px 9px 0 var(--head);
}
.tick {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 3px solid var(--field-ink);
  background: #ffffff;
}
.tick::after {
  content: "";
  width: 14px;
  height: 7px;
  border-left: 4px solid var(--field-ink);
  border-bottom: 4px solid var(--field-ink);
  rotate: -45deg;
  translate: 0 -2px;
  opacity: 0;
  scale: 0.3;
  transition:
    opacity 0.15s,
    scale 0.25s var(--ease-pop);
}
.tick-card:has(input:checked) .tick::after {
  opacity: 1;
  scale: 1;
}
.tick-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: var(--disp-stretch);
  letter-spacing: calc(var(--disp-track) * 0.6);
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1;
}
.tick-desc {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

/* Errors: red, unmistakably. The box's line and shadow turn red, its caption turns red, and a red
   tag pops in under it; the box gives one shake. */
.box[aria-invalid="true"],
.box-field.is-invalid .box,
.box-group.is-invalid .tick-card {
  border-color: var(--error);
  box-shadow: 6px 6px 0 var(--error);
}
input.box[aria-invalid="true"]:focus,
.box-field.is-invalid .box-note:focus-within {
  box-shadow: 9px 9px 0 var(--error);
}
.is-invalid > .caption,
.is-invalid > .caption-row > .caption {
  background: var(--error);
  color: #ffffff;
}
.field-error {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  padding: 5px 14px 5px 6px;
  border: 3px solid var(--field-ink);
  background: var(--error);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  rotate: 0.8deg;
}
.field-error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--error);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}
.field-error[hidden] {
  display: none;
}
.error-summary {
  padding: var(--space-3);
  border: 3px solid var(--field-ink);
  background: var(--error);
  color: #ffffff;
  box-shadow: 6px 6px 0 var(--field-ink);
}
.error-summary:focus {
  outline: none;
}
.error-summary-title {
  font-weight: 800;
  font-size: 18px;
}
.error-summary ul {
  margin: 8px 0 0;
  padding-left: 22px;
  font-weight: 700;
}
.error-summary a {
  color: #ffffff;
  text-underline-offset: 0.2em;
}
@media (prefers-reduced-motion: no-preference) {
  .field-error:not([hidden]) {
    animation: pow-pop 0.45s var(--ease-pop) both;
  }
  .is-shaking .box,
  .is-shaking .tick-cards {
    animation: field-shake 0.42s var(--ease);
  }
}
@keyframes field-shake {
  0%,
  100% {
    translate: 0 0;
  }
  20% {
    translate: -7px 0;
  }
  45% {
    translate: 6px 0;
  }
  70% {
    translate: -3px 0;
  }
}

.intake-send {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
  padding-top: var(--space-1);
}
.intake-send .error-summary {
  justify-self: stretch;
}
.intake-promise {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}
.intake-promise .link-button {
  font-weight: 800;
}

/* Sent: the headline, the promise on a white card, and Done. */
.intake-done {
  align-self: center;
  display: grid;
  gap: var(--space-4);
  justify-items: start;
  padding-block: var(--space-4);
  animation: rise 0.4s var(--ease) both;
}
.intake-done-card {
  --panel-tilt: -1deg;
  max-width: 30em;
  padding: var(--space-3) var(--space-4);
  font-size: clamp(18px, 1.4vw, 21px);
  font-weight: 600;
  line-height: 1.4;
}
.intake-done-card:hover {
  translate: none;
  box-shadow: 10px 10px 0 var(--panel-ink);
}
.intake.is-done .intake-title {
  display: none;
}
/* The drawing and the thank-you share the middle of the screen. */
.intake.is-done .intake-layout {
  min-height: 100%;
  align-items: center;
}
.intake.is-done .intake-side {
  align-self: center;
  position: static;
}

/* Dragging files over the form: the whole form dims and a card says to let go. */
.intake-drop {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s,
    visibility 0.2s;
}
.intake.is-dropping .intake-drop {
  opacity: 1;
  visibility: visible;
}
.intake-drop-card {
  padding: var(--space-4) var(--space-5);
  border: 3px solid var(--field-ink);
  background: #ffffff;
  color: var(--field-ink);
  box-shadow: 10px 10px 0 var(--field-ink);
  rotate: -1.5deg;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: var(--disp-stretch);
  letter-spacing: calc(var(--disp-track) * 0.6);
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 1023px) {
  .intake-side {
    grid-column: 1 / -1;
    position: static;
    gap: var(--space-4);
  }
  .intake-art {
    width: min(100%, 460px);
  }
  .intake-form,
  .intake-done {
    grid-column: 1 / -1;
    margin-top: var(--space-5);
  }
  .intake-done {
    margin-top: var(--space-4);
  }
}
@media (max-width: 640px) {
  .intake-row {
    grid-template-columns: 1fr;
  }
}

/* Privacy: a white card like the ones on the slides, in the ink of its colourway (3px line, hard
   shadow, a slight tilt), everything on it in that ink. */
.privacy {
  --panel-ink: var(--text);
  width: min(620px, calc(100% - 40px));
  margin: auto;
  overflow: visible;
  border: 3px solid var(--panel-ink);
  background: #ffffff;
  color: var(--panel-ink);
  box-shadow: 10px 10px 0 var(--panel-ink);
  rotate: -0.6deg;
}
.privacy-inner {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
}
.privacy-title {
  color: var(--panel-ink);
  font-size: clamp(30px, calc(2.8vw * var(--disp-scale)), calc(48px * var(--disp-scale)));
}
.privacy .prose {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.4;
  font-weight: 600;
}
.privacy .btn {
  justify-self: start;
  margin-top: var(--space-1);
}

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

/* Reveal on scroll: app.js marks the blocks and adds .is-revealed as each one enters the screen. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease-soft) var(--reveal-delay, 0ms),
    transform 0.7s var(--ease-soft) var(--reveal-delay, 0ms),
    background-color 0.35s var(--ease),
    color 0.35s var(--ease);
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Slides (motion.js) ------------------------------------------------------------------------
   Each section sits in its own full-screen slide on a fixed stage; the page's scroll drives the
   handovers. html.is-staged is set in the head (not under reduced motion), so the first paint
   already has the stage; the stage stays invisible until motion.js has built it. */
html.is-staged {
  scroll-behavior: auto;
}
html.is-staged #main {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
html.is-staged:not(.stage-ready) #main {
  opacity: 0;
}
/* Drawings load slide by slide. A slide's ink and silhouette are only fetched once its section is
   marked near (.is-near): the hero straight away, the next slides once it is in, the others as you get close
   and, once the page has loaded, one after another in the background (motion.js). */
html.is-staged #main section:not(.is-near) :is(.ill-ink, .ill-knockout, .laptop-dot) {
  -webkit-mask-image: none;
  mask-image: none;
  visibility: hidden;
}

/* The loading screen: the hero's pink with a spinner, from the first paint until the slides are
   built and the hero's drawing has arrived. It covers the header too, then fades away (motion.js adds .is-loaded). Only with the moving slides: with reduced
   motion, or if motion.js never gets going (the 4-second fallback drops .is-staged), it never shows. */
.loader {
  display: none;
}
html.is-staged .loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--gummy-bg);
  color: var(--gummy-text);
  transition:
    opacity 0.45s var(--ease-soft),
    visibility 0s 0.45s;
}
html.is-staged.is-loaded .loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* A plain spinner: a ring with one quarter in the ink colour, turning. */
.loader-spinner {
  width: 44px;
  aspect-ratio: 1;
  border: 4px solid color-mix(in srgb, currentColor 18%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
html.is-staged .stage-slide {
  position: absolute;
  inset: 0;
  overflow: clip;
  background: var(--bg);
  visibility: hidden;
  isolation: isolate;
}
html.is-staged .stage-slide.is-on {
  visibility: visible;
}
html.is-staged .stage-body {
  position: relative;
}
/* The dots and the loading bar carry the new slide's colour until it takes over. */
html.is-staged .stage-slide[data-enter="dots"]:not(.is-solid),
html.is-staged .stage-slide[data-enter="loading"]:not(.is-solid),
html.is-staged .stage-slide[data-enter="marker"]:not(.is-solid) {
  background: transparent;
}
html.is-staged .stage-slide[data-enter="dots"]:not(.is-solid) > .stage-body,
html.is-staged .stage-slide[data-enter="loading"]:not(.is-solid) > .stage-body,
html.is-staged .stage-slide[data-enter="marker"]:not(.is-solid) > .stage-body {
  visibility: hidden;
}
/* Sticky has nothing to stick to inside a slide. */
html.is-staged .faq-grid .section-title {
  position: static;
}

.stage-dots {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* The marker's strokes: fat, round-ended, with rough edges. */
.stage-marker {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  overflow: visible;
  visibility: hidden;
  pointer-events: none;
}
.stage-marker.is-on {
  visibility: visible;
}
.stage-marker-strokes {
  fill: none;
  stroke-linecap: round;
  filter: url(#stage-marker-edge);
}
/* Touch screens get clean strokes: the rough edge is the heaviest thing to draw on a phone. */
@media (pointer: coarse) {
  .stage-marker-strokes {
    filter: none;
  }
}
/* The laptop's dot as the camera falls into it: a disc in the dot's colour over the opening
   circle, fading as the next slide shows through. */
.stage-hole {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  border-radius: 50%;
  background-color: var(--hole, currentColor);
  translate: -50% -50%;
  visibility: hidden;
  pointer-events: none;
}
.stage-hole.is-on {
  visibility: visible;
}
/* The page turn: the back of the turned-over corner, in paper tinted with the slide's colour,
   outlined in its ink and shaded with dots near the fold. */
.stage-flap {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  overflow: visible;
  visibility: hidden;
  pointer-events: none;
}
.stage-flap.is-on {
  visibility: visible;
}
.stage-flap-back {
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}
.stage-flap-shade {
  fill: url(#stage-flap-dots);
}
/* Falling apart: the pieces are moved by motion.js, so nothing eases behind them. */
html.is-staged .stage-slide.is-falling [data-pow] {
  transition: none;
}
/* The loading bar: track in the old slide's ink, fill in the new slide's colour. It sits low on the
   screen, under the content (which stays as it is), fills, then swells to cover the screen: a long
   way up, only a little way down (--a, --b from motion.js). Square corners throughout. */
.stage-bar {
  --bar-low: 44px;
  /* Its right end stops short of the comments button and the roll in the corner. */
  --bar-right: max(var(--gutter), calc(16px + var(--roll-slot) + 52px + var(--space-2)));
  position: absolute;
  z-index: 5;
  inset: calc((1 - var(--b, 0)) * (100% - var(--bar-low) - 22px))
    calc((1 - var(--b, 0)) * var(--bar-right))
    calc((1 - var(--b, 0)) * var(--bar-low))
    calc((1 - var(--b, 0)) * var(--gutter));
  visibility: hidden;
  pointer-events: none;
}
.stage-bar.is-on {
  visibility: visible;
}
.stage-bar-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: calc((1 - var(--b, 0)) * 3px) solid var(--track);
}
.stage-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--a, 0) * 100%);
  background: var(--fill);
}
.stage-bar-label,
.stage-bar-pct {
  position: absolute;
  bottom: calc(100% + 14px);
  margin: 0;
  font: 700 15px/1 var(--font-mono);
  color: var(--track);
  opacity: calc(1 - var(--b, 0) * 5);
}
.stage-bar-label {
  left: 0;
}
.stage-bar-pct {
  right: 0;
}

/* The hero's ray burst turns, slowly, forever. */
html.is-staged .hero-art .ill-pattern {
  animation: spin 80s linear infinite;
}
@keyframes spin {
  to {
    rotate: 360deg;
  }
}

/* Things land like comic panels slapped onto the page, one after another (motion.js marks them
   data-pow and adds .is-in as each comes into view on a slide that has arrived). */
html.is-staged [data-pow] {
  opacity: 0;
}
html.is-staged [data-pow].is-in {
  animation: pow-slam 0.55s var(--ease-pop) var(--pow-delay, 0ms) both;
}
html.is-staged [data-pow="pop"].is-in {
  animation-name: pow-pop;
  animation-duration: 0.6s;
}
html.is-staged [data-pow="drop"].is-in {
  animation-name: pow-drop;
  animation-duration: 0.6s;
}
html.is-staged [data-pow="rise"].is-in {
  animation: pow-rise 0.6s var(--ease-soft) var(--pow-delay, 0ms) both;
}
/* Copy prints left to right in a few hard steps, like lettering going down. */
html.is-staged [data-pow="print"].is-in {
  animation: pow-print 0.42s steps(7) var(--pow-delay, 0ms) both;
}
/* The hero's paragraph just fades in, whole. */
html.is-staged [data-pow="fade"].is-in {
  animation: pow-fade 0.7s var(--ease-soft) var(--pow-delay, 0ms) both;
}
@keyframes pow-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
html.is-staged [data-pow="drop"]:nth-child(3n + 1) {
  --tilt: -3deg;
}
html.is-staged [data-pow="drop"]:nth-child(3n + 2) {
  --tilt: 2.5deg;
}
html.is-staged [data-pow="drop"]:nth-child(3n) {
  --tilt: -1.5deg;
}
@keyframes pow-slam {
  0% {
    opacity: 0;
    transform: scale(1.6) rotate(-4deg);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes pow-pop {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  60% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes pow-drop {
  0% {
    opacity: 0;
    transform: translateY(-70px) rotate(var(--tilt, -3deg)) scale(1.06);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes pow-rise {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes pow-print {
  0% {
    opacity: 1;
    clip-path: inset(-10% 100% -10% 0);
  }
  100% {
    opacity: 1;
    clip-path: inset(-10% -2% -10% 0);
  }
}

/* The roll (motion.js): scroll progress in the bottom-right corner, and a button to the next
   section. Its sheet hangs longer as you go down. */
.roll-nav {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 55;
  width: var(--roll-w);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.roll-nav svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.roll-nav svg * {
  stroke: var(--roll-ink);
  stroke-width: 3;
  stroke-linejoin: round;
}
.roll-nav .roll-paper {
  fill: var(--roll-paper);
}
.roll-nav .roll-body {
  stroke: none;
}
.roll-nav .roll-core {
  fill: var(--roll-ink);
}
.roll-nav .roll-perf {
  stroke-width: 2;
  stroke-dasharray: 5 4;
}
.roll-nav .roll-arrow {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  transition: translate 0.25s var(--ease-soft);
}
.roll-nav:hover .roll-arrow {
  translate: 0 3px;
}
.roll-nav[aria-label="Back to top"]:hover .roll-arrow {
  translate: 0 -3px;
}
/* Every 5.5 seconds the down arrow nudges down twice, a hint that there is more below. Not while
   hovered (the hover has its own nudge) or once it points back up. */
.roll-nav[aria-label="Next section"] .roll-arrow {
  animation: roll-nudge 5.5s 2s infinite;
}
.roll-nav[aria-label="Next section"]:hover .roll-arrow {
  animation: none;
}
@keyframes roll-nudge {
  0%,
  20%,
  100% {
    transform: translateY(0);
    animation-timing-function: var(--ease-soft);
  }
  5% {
    transform: translateY(8px);
    animation-timing-function: ease-in-out;
  }
  11% {
    transform: translateY(0);
    animation-timing-function: var(--ease-soft);
  }
  15% {
    transform: translateY(4px);
    animation-timing-function: ease-in-out;
  }
}
.roll-nav:focus-visible {
  outline: 3px solid var(--roll-ink);
  outline-offset: 4px;
  border-radius: 8px;
}
@media (max-width: 640px) {
  :root {
    --roll-w: 52px;
  }
  .roll-nav {
    right: 10px;
    bottom: 10px;
  }
}

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