/* 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;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --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);
  --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)));

  /* 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: #fff5f3;
  --gummy-btn-fg: #c2183f;
  --voltage-bg: #1030ff;
  --voltage-head: #f3f73a;
  --voltage-text: #ffffff;
  --voltage-btn-bg: #f3f73a;
  --voltage-btn-fg: #0a1680;
  --hotsauce-bg: #ff583b;
  --hotsauce-head: #ffc3e6;
  --hotsauce-text: #1f0702;
  --hotsauce-btn-bg: #1f0702;
  --hotsauce-btn-fg: #ffc3e6;
  --acid-bg: #c6ff2e;
  --acid-head: #5a1eff;
  --acid-text: #1a0b4d;
  --acid-btn-bg: #5a1eff;
  --acid-btn-fg: #ffffff;
}

/* 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);
  --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: #fff1ee;
  --s4-head: #e3184e;
  --s4-text: #3a0b16;
  --s4-btn-bg: #e3184e;
  --s4-btn-fg: #ffffff;
  --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 and pickers 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);
  --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);
  --disp-stretch: 100%;
  --disp-track: -0.055em;
  --disp-scale: 1;
  --h1-em: 6.45;
  --char-em: 0.71;
}
html[data-variant="mix"] [data-mix="gummy"] {
  --bg: var(--gummy-bg);
  --head: var(--gummy-head);
  --text: var(--gummy-text);
  --btn-bg: var(--gummy-btn-bg);
  --btn-fg: var(--gummy-btn-fg);
}
html[data-variant="mix"] [data-mix="voltage"] {
  --bg: var(--voltage-bg);
  --head: var(--voltage-head);
  --text: var(--voltage-text);
  --btn-bg: var(--voltage-btn-bg);
  --btn-fg: var(--voltage-btn-fg);
}
html[data-variant="mix"] [data-mix="hotsauce"] {
  --bg: var(--hotsauce-bg);
  --head: var(--hotsauce-head);
  --text: var(--hotsauce-text);
  --btn-bg: var(--hotsauce-btn-bg);
  --btn-fg: var(--hotsauce-btn-fg);
}
html[data-variant="mix"] [data-mix="acid"] {
  --bg: var(--acid-bg);
  --head: var(--acid-head);
  --text: var(--acid-text);
  --btn-bg: var(--acid-btn-bg);
  --btn-fg: var(--acid-btn-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);
}
.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);
}
.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);
}
.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);
}

.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;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: var(--disp-stretch);
  letter-spacing: var(--disp-track);
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--head);
  text-wrap: balance;
}

.display-statement {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: var(--disp-stretch);
  letter-spacing: calc(var(--disp-track) * 0.6);
  line-height: 0.95;
  text-transform: uppercase;
  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;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.9em 1.6em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: 15px;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.18s var(--ease),
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: currentColor;
}
.btn-ghost:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.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 {
  transform: none;
  text-decoration-color: var(--head);
}
.btn-xl {
  font-size: clamp(17px, 1.6vw, 22px);
  padding: 1.1em 2em;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: 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;
}

.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;
}
.brand-mark {
  width: 30px;
  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;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 2px solid var(--text);
  border-radius: 999px;
}
.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"] {
  background: var(--text);
  color: var(--bg);
}
.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: 44px;
  padding-block: 0.75em;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .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;
    text-transform: uppercase;
  }
  .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 ------------------------------------------------------------------ */
/* The hero is the campaign photo. assets/hero-wall.jpg (3570 x 2664) holds the untouched shot
   in its middle third, with the wall continued outward until it settles into --wall-bg, so the
   photo can sit anywhere without a seam. With the photo --P wide: the canvas is 3P wide, the
   photo's top-left is at (P, 0.7462P), the holder starts 0.0746P below the photo's top, the roll
   ends 0.6305P below it, and the subject is centred horizontally. --cx/--py place the photo. */

html[data-hero] .hero {
  --bg: var(--wall-bg);
  --head: var(--wall-head);
  --text: var(--wall-text);
  --btn-bg: var(--wall-btn-bg);
  --btn-fg: var(--wall-btn-fg);
}
html[data-hero="split"] .hero {
  --bg: var(--s1-bg);
  --head: var(--s1-head);
  --text: var(--s1-text);
  --btn-bg: var(--s1-btn-bg);
  --btn-fg: var(--s1-btn-fg);
}

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

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo img {
  position: absolute;
  max-width: none;
  width: calc(var(--P) * 3);
  height: auto;
  left: calc(var(--cx) - var(--P) * 1.5);
  top: calc(var(--py) - var(--P) * 0.7462);
}

.hero-panel {
  display: none;
}

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

.hero-statement {
  color: var(--text);
}
.hero-title {
  font-size: var(--h1-size);
  line-height: 0.84;
}
.hero-line {
  display: block;
  white-space: nowrap;
}
.hero-body {
  max-width: 44ch;
  font-size: clamp(18px, 1.35vw, 20px);
  line-height: 1.5;
  font-weight: 500;
}

@media (min-width: 1024px) {
  /* Wall: the copy column on the left, the roll on the wall to the right. */
  html[data-hero="wall"] .hero,
  html[data-hero="split"] .hero {
    --py: calc(var(--stage-top) + var(--stage-h) / 2 - var(--P) * 0.3526);
  }
  html[data-hero="wall"] .hero {
    --copy-w: calc(var(--col-w) * 7 + var(--col-gap) * 6);
    --h1-size: min(calc(var(--copy-w) * 0.96 / var(--h1-em)), 168px);
    --P: min(calc(var(--stage-h) * 1.26), 60vw);
    --cx: 73vw;
  }
  html[data-hero="wall"] .hero-grid,
  html[data-hero="split"] .hero-grid {
    min-height: 100svh;
    padding-block: var(--stage-top) var(--space-5);
    align-content: center;
  }
  html[data-hero="wall"] .hero-grid > *,
  html[data-hero="split"] .hero-grid > * {
    grid-column: 1 / span 7;
  }
  html[data-hero="wall"] .hero-title,
  html[data-hero="split"] .hero-title {
    margin-top: var(--space-4);
  }
  html[data-hero="wall"] .hero-body,
  html[data-hero="split"] .hero-body {
    margin-top: var(--space-5);
  }
  html[data-hero="wall"] .hero-actions,
  html[data-hero="split"] .hero-actions {
    margin-top: var(--space-4);
  }

  /* Split: the same column on a block of the colourway, the photo filling the other half. */
  html[data-hero="split"] .hero {
    --copy-w: calc(var(--col-w) * 6 + var(--col-gap) * 5 - var(--space-5));
    --h1-size: min(calc(var(--copy-w) * 0.96 / var(--h1-em)), 150px);
    --P: min(calc(var(--stage-h) * 1.3), 56vw);
    --cx: 75vw;
  }
  html[data-hero="split"] .hero-panel {
    display: block;
    position: absolute;
    inset: 0 50% 0 0;
    z-index: 1;
    background: var(--bg);
  }
  html[data-hero="split"] .hero-grid > * {
    grid-column: 1 / span 6;
    padding-right: var(--space-5);
  }

  /* Poster: the roll centred on the wall, statements either side, the headline across the full width. */
  html[data-hero="poster"] .hero {
    --h1-size: min(
      calc((min(100vw, var(--maxw)) - 2 * var(--gutter)) * 0.96 / var(--h1-em)),
      236px
    );
    --stage-bottom: calc(100svh - var(--space-5) - 1.68 * var(--h1-size) - var(--space-3));
    --poster-h: calc(var(--stage-bottom) - var(--stage-top));
    --P: calc(var(--poster-h) / 0.556);
    --cx: 50vw;
    --py: calc(var(--stage-bottom) - var(--P) * 0.6305);
  }
  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-statement {
    grid-row: 1;
    align-self: end;
  }
  html[data-hero="poster"] .hero-statement-a {
    grid-column: 1 / span 3;
  }
  html[data-hero="poster"] .hero-statement-b {
    grid-column: 10 / span 3;
  }
  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 photo as a band at the top, the copy underneath. */
@media (max-width: 1023px) {
  .hero {
    --h1-size: min(calc((100vw - 2 * var(--gutter)) * 0.96 / var(--h1-em)), 150px);
    --P: min(122vw, 760px);
    --cx: 50vw;
    --py: calc(var(--header-h) + var(--space-2) - var(--P) * 0.0746);
    --photo-end: calc(var(--py) + var(--P) * 0.6305);
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-block: calc(var(--photo-end) + var(--space-5)) var(--space-6);
  }
  .hero-statement {
    font-size: clamp(24px, calc(6.4vw * var(--disp-scale)), 40px);
    max-width: 16ch;
  }
  .hero-title {
    margin-top: var(--space-3);
  }
  .hero-body {
    margin-top: var(--space-4);
  }
  .hero-actions {
    margin-top: var(--space-4);
  }
  html[data-hero="split"] .hero-panel {
    display: block;
    position: absolute;
    inset: calc(var(--photo-end) + var(--space-3)) 0 0 0;
    z-index: 1;
    background: var(--bg);
  }
}

/* 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 */
.problem-photo {
  grid-column: 1 / span 7;
}
.problem-photo img {
  width: 100%;
  aspect-ratio: 1048 / 620;
  object-fit: cover;
}
.problem-copy {
  grid-column: 9 / span 4;
}
.slop {
  text-decoration-line: line-through;
  text-decoration-thickness: 0.14em;
  text-decoration-color: var(--head);
}
.shout {
  font-size: min(
    clamp(48px, calc(8.4vw * var(--disp-scale)), calc(152px * var(--disp-scale))),
    calc(var(--fit) * 1.15)
  );
  max-width: 14ch;
}
.kicker {
  max-width: 32ch;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.25;
  font-weight: 700;
}

.deslop {
  padding: var(--space-5);
  border: 2px solid currentColor;
}
.deslop-note,
.deslop-label {
  font-size: 15px;
  font-weight: 700;
}
.deslop-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-block: var(--space-4);
}
.deslop-label {
  margin-bottom: var(--space-2);
}
.deslop-text {
  font-family: var(--font-display);
  font-weight: 750;
  font-stretch: var(--disp-stretch);
  letter-spacing: calc(var(--disp-track) * 0.5);
  font-size: clamp(24px, calc(3.2vw * var(--disp-scale)), calc(52px * var(--disp-scale)));
  line-height: 1.04;
  text-wrap: balance;
}
.deslop-after .deslop-text {
  color: var(--head);
}
.js .deslop[data-state] .deslop-pair {
  grid-template-columns: 1fr;
}
.js .deslop[data-state="before"] .deslop-after {
  display: none;
}
.js .deslop[data-state="after"] .deslop-before .deslop-text {
  font-size: clamp(18px, calc(1.8vw * var(--disp-scale)), 28px);
  text-decoration-line: line-through;
  text-decoration-thickness: 0.12em;
  text-decoration-color: var(--head);
  opacity: 0.6;
}
.js .deslop[data-state="after"] .deslop-after {
  animation: rise 0.45s var(--ease);
}

/* Services */
.offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--col-gap);
}
.offer {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 2px solid var(--text);
  font-size: 17px;
  line-height: 1.5;
}
.offer-whole {
  border-color: var(--bg);
}
.offer-title {
  margin-bottom: var(--space-1);
  font-size: clamp(30px, calc(2.8vw * var(--disp-scale)), calc(48px * var(--disp-scale)));
}
.offer-hook {
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.3;
  font-weight: 700;
}
.offer-get {
  margin-block: var(--space-1) var(--space-3);
  padding-top: var(--space-2);
  border-top: 2px solid currentColor;
}
.offer .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--col-gap);
}
.step-item {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding-top: var(--space-3);
  border-top: 2px solid currentColor;
}
.step-num {
  font-size: clamp(64px, calc(6.4vw * var(--disp-scale)), 112px);
  line-height: 0.8;
}
.step-text {
  max-width: 14ch;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  font-weight: 700;
}
.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: 8 / span 5;
  display: grid;
  gap: var(--space-4);
}

/* About */
.about-grid > :first-child {
  grid-column: 1 / span 5;
}
.about-grid > :last-child {
  grid-column: 7 / span 5;
}
.about-statement {
  max-width: 18ch;
  color: var(--text);
  font-size: min(
    clamp(40px, calc(6vw * var(--disp-scale)), calc(108px * var(--disp-scale))),
    var(--fit)
  );
}

/* Independence */
.handover {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: var(--disp-stretch);
  letter-spacing: var(--disp-track);
  text-transform: uppercase;
  line-height: 1;
  font-size: min(
    clamp(28px, calc(4.2vw * var(--disp-scale)), calc(72px * var(--disp-scale))),
    var(--fit)
  );
  color: var(--head);
}
.handover li {
  position: relative;
  padding-block: var(--space-3);
}
/* Perforations between the sheets */
.handover li::before,
.handover li:last-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--perf);
  color: var(--text);
}
.handover li::before {
  top: 0;
}
.handover li:last-child::after {
  bottom: 0;
}
.independence-statement {
  max-width: 24ch;
  font-size: clamp(26px, calc(3vw * var(--disp-scale)), calc(52px * var(--disp-scale)));
}
.patrol {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: var(--space-4);
  padding: var(--space-5);
}
.patrol-copy {
  grid-column: 1 / span 7;
  display: grid;
  gap: var(--space-2);
  align-content: start;
}
.patrol-title {
  margin-bottom: var(--space-1);
  font-size: min(
    clamp(44px, calc(5.6vw * var(--disp-scale)), calc(96px * var(--disp-scale))),
    calc(var(--fit) * 1.3)
  );
}
.patrol-optional {
  font-size: 20px;
  font-weight: 700;
}
.patrol-price {
  grid-column: 9 / span 4;
  display: grid;
  gap: var(--space-2);
  align-content: start;
  justify-items: start;
}
.patrol-amount {
  font-size: clamp(28px, calc(2.8vw * var(--disp-scale)), 48px);
  line-height: 0.95;
}
.patrol-price .btn {
  margin-top: var(--space-2);
}

/* FAQ */
.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)
  );
}
.faq-list {
  grid-column: 7 / -1;
  border-bottom: 2px solid currentColor;
}
.faq-list details {
  border-top: 2px solid currentColor;
}
.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: 700;
  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-4) 0;
  font-size: 18px;
}

/* Contact */
.contact-title {
  max-width: 11ch;
  font-size: min(
    clamp(56px, calc(11vw * var(--disp-scale)), calc(200px * var(--disp-scale))),
    calc(var(--fit) * 1.4)
  );
  line-height: 0.84;
}
.contact-grid {
  align-items: end;
}
.contact-grid .prose {
  grid-column: 1 / span 6;
}
.contact-lede {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.2;
  font-weight: 700;
}
.contact-action {
  grid-column: 8 / -1;
  justify-self: end;
  display: grid;
  gap: var(--space-2);
  min-width: min(100%, 360px);
}
.contact-note {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-2);
}

/* Footer */
.site-footer {
  padding-block: var(--space-5) calc(var(--space-5) + 56px);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  font-size: 15px;
}
.footer-line {
  font-weight: 700;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
}
.footer-links a,
.footer-links .link-button {
  text-decoration: none;
  font-weight: 600;
}
.footer-links a:hover,
.footer-links .link-button:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.footer-legal {
  margin-left: auto;
  opacity: 0.8;
}

@media (max-width: 1023px) {
  .split-row > *,
  .about-grid > :first-child,
  .about-grid > :last-child,
  .patrol-copy,
  .patrol-price,
  .faq-list,
  .faq-grid .section-title {
    grid-column: 1 / -1;
  }
  .faq-grid .section-title {
    position: static;
  }
  .contact-action {
    justify-self: start;
  }
  .offers {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    row-gap: var(--space-5);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }
  .steps,
  .deslop-pair {
    grid-template-columns: 1fr;
  }
  .deslop,
  .patrol {
    padding: var(--space-4);
  }
  .footer-legal {
    width: 100%;
    margin-left: 0;
  }
  .faq-list summary {
    padding-right: 44px;
  }
  .faq-list details p {
    padding-right: 0;
  }
}

/* Header over the hero ---------------------------------------------------- */
/* On the Wall and Poster heroes the header sits on the photo: wall colours, and no background
   until you scroll. The Split hero keeps a solid header in the colourway. */

html:not([data-hero="split"]) .site-header[data-zone="hero"] {
  --bg: var(--wall-bg);
  --head: var(--wall-head);
  --text: var(--wall-text);
  --btn-bg: var(--wall-btn-bg);
  --btn-fg: var(--wall-btn-fg);
}
html:not([data-hero="split"]) .site-header[data-zone="hero"].is-top {
  background-color: transparent;
}

/* Colourway + hero pickers (a review tool, collapsed by default) ----------- */

.pickers {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: var(--s3-text);
}
.pickers-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 16px 6px 7px;
  border: 2px solid var(--s3-text);
  border-radius: 999px;
  background: var(--s3-bg);
  color: var(--s3-text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.pickers-toggle[aria-expanded="true"] {
  background: var(--s3-text);
  color: var(--s3-bg);
}
.pickers-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: conic-gradient(
    var(--gummy-bg) 0 25%,
    var(--voltage-bg) 0 50%,
    var(--acid-bg) 0 75%,
    var(--hotsauce-bg) 0 100%
  );
}
.pickers-panel {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 2px solid var(--s3-text);
  background: var(--s3-bg);
  color: var(--s3-text);
}
.picker-label {
  margin-bottom: var(--space-1);
  font-size: 13px;
  font-weight: 700;
}
.picker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.variant-swatch {
  --a: #000;
  --b: #fff;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 2px solid var(--s3-bg);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%);
  cursor: pointer;
  transition: transform 0.18s var(--ease);
}
.variant-swatch:hover {
  transform: scale(1.1);
}
.variant-swatch[aria-pressed="true"] {
  outline: 2px solid var(--s3-text);
  outline-offset: 1px;
}
.variant-swatch:focus-visible {
  outline: 3px solid var(--s3-text);
  outline-offset: 2px;
}
[data-variant-btn="gummy"] {
  --a: var(--gummy-bg);
  --b: var(--gummy-head);
}
[data-variant-btn="voltage"] {
  --a: var(--voltage-bg);
  --b: var(--voltage-head);
}
[data-variant-btn="hotsauce"] {
  --a: var(--hotsauce-bg);
  --b: var(--hotsauce-head);
}
[data-variant-btn="acid"] {
  --a: var(--acid-bg);
  --b: var(--acid-head);
}
[data-variant-btn="mix"] {
  background: conic-gradient(
    var(--gummy-bg) 0 25%,
    var(--voltage-bg) 0 50%,
    var(--acid-bg) 0 75%,
    var(--hotsauce-bg) 0 100%
  );
}
.variants-name {
  margin-left: 6px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.layout-button {
  min-height: 36px;
  padding: 4px 14px;
  border: 2px solid var(--s3-text);
  border-radius: 999px;
  background: transparent;
  color: var(--s3-text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.layout-button:hover {
  background: color-mix(in srgb, var(--s3-text) 18%, transparent);
}
.layout-button[aria-pressed="true"] {
  background: var(--s3-text);
  color: var(--s3-bg);
}
.layout-button:focus-visible,
.pickers-toggle:focus-visible {
  outline: 3px solid var(--s3-text);
  outline-offset: 2px;
}
html:not(.js) .pickers {
  display: none;
}

/* 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 {
  font-size: min(
    clamp(
      32px,
      calc(4.8vw * var(--disp-scale)),
      calc(68px * var(--disp-scale))
    ),
    var(--fit)
  );
  line-height: 0.92;
  max-width: 20ch;
}
.peek-q:focus {
  outline: none;
}
.peek-answer {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 2px solid currentColor;
  background: transparent;
  color: var(--text);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  resize: vertical;
}
.peek-answer::placeholder {
  color: var(--text);
  opacity: 0.55;
}
.peek-answer:focus-visible {
  outline: none;
  border-bottom-width: 4px;
}
.peek-feedback {
  min-height: 1.5em;
  font-weight: 700;
  font-size: 18px;
}
.peek-nav {
  border-top: 2px solid currentColor;
  justify-content: space-between;
}
.peek-note {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.peek-end-lede {
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  max-width: 22ch;
}

.ban-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  min-height: 44px;
  padding: 8px 18px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
}
.chip:hover {
  background: color-mix(in srgb, var(--text) 12%, transparent);
}
.chip[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.style-picks {
  display: grid;
  gap: 12px;
}
.style-pick {
  padding: 18px 22px;
  border: 2px solid currentColor;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}
.style-pick:hover {
  background: color-mix(in srgb, var(--text) 10%, transparent);
}
.style-pick[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
  text-decoration: line-through;
}

.claim-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 640px) {
  .claim-pair {
    grid-template-columns: 1fr;
  }
  .peek-note {
    display: none;
  }
}

/* Intake */
.intake {
  width: 100%;
  height: 100%;
  margin: 0;
}
.intake[open] {
  display: block;
}
.intake-form {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
}
.intake-top {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 20px;
  padding: 12px var(--gutter);
  border-bottom: 2px solid currentColor;
}
.intake-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 17px;
}
.intake-title .brand-mark {
  width: 28px;
  height: 28px;
}
.intake-step-label {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

/* Progress as a strip of sheets with perforations between them */
.sheets {
  display: flex;
  width: clamp(120px, 18vw, 240px);
  height: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 2px solid currentColor;
}
.sheets li {
  flex: 1;
  position: relative;
  transition: background-color 0.3s var(--ease);
}
.sheets li + li::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -1px;
  width: 2px;
  background: repeating-linear-gradient(
    180deg,
    currentColor 0 3px,
    transparent 3px 5px
  );
}
.sheets li.is-done {
  background: var(--text);
}
.sheets li.is-current {
  background: color-mix(in srgb, var(--text) 35%, transparent);
}

.intake-body {
  overflow-y: auto;
  padding: clamp(32px, 5vw, 72px) var(--gutter) 48px;
}
.intake-body > * {
  max-width: 920px;
  margin-inline: auto;
}

.step {
  display: grid;
  gap: 28px;
}
.step[hidden] {
  display: none;
}
.step-title {
  font-size: min(
    clamp(44px, calc(7vw * var(--disp-scale)), calc(108px * var(--disp-scale))),
    var(--fit)
  );
}
.step-title:focus {
  outline: none;
}

.hint {
  font-size: 16px;
  font-weight: 500;
}
.notice {
  padding: 16px 20px;
  border: 2px solid currentColor;
  font-weight: 600;
  font-size: 16px;
}
.optional {
  font-weight: 500;
  opacity: 0.85;
}

.group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: grid;
  gap: 14px;
}
.fields {
  display: grid;
  gap: 26px;
}
.field {
  display: grid;
  gap: 8px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field-label {
  font-weight: 700;
  font-size: 16px;
  padding: 0;
}

.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 2px solid var(--text);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}
.input::placeholder {
  color: var(--text);
  opacity: 0.55;
}
.input:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
}
.input[aria-invalid="true"] {
  border-style: dashed;
  border-width: 3px;
}
textarea.input {
  resize: vertical;
}
select.input {
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 24px) 52%,
    calc(100% - 17px) 52%;
  background-size: 7px 7px;
  background-repeat: no-repeat;
  cursor: pointer;
}
select.input option {
  color: #111;
  background: #fff;
}
.input-file {
  padding: 10px;
  cursor: pointer;
}
.input-file::file-selector-button {
  margin-right: 14px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  cursor: pointer;
}

.field-error {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-weight: 700;
  font-size: 16px;
}
.field-error::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: currentColor;
  transform: translateY(1px) rotate(45deg);
}
.field-error[hidden] {
  display: none;
}

.error-summary {
  margin-bottom: 32px;
  padding: 20px 24px;
  border: 3px dashed currentColor;
}
.error-summary:focus {
  outline: none;
}
.error-summary-title {
  font-weight: 800;
  font-size: 18px;
}
.error-summary ul {
  margin: 10px 0 0;
  padding-left: 20px;
}
.error-summary a {
  font-weight: 600;
  text-underline-offset: 0.2em;
}

/* Choice cards (step 1) */
.choice-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.choice-card {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 132px;
  padding: 20px;
  border: 2px solid var(--text);
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.choice-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice-card:hover {
  background: color-mix(in srgb, var(--text) 10%, transparent);
}
.choice-card:has(input:checked) {
  background: var(--text);
  color: var(--bg);
}
.choice-card:has(input:focus-visible) {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}
.choice-card::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 999px;
}
.choice-card:has(input:checked)::after {
  background: currentColor;
  box-shadow: inset 0 0 0 4px var(--text);
}
.choice-name {
  padding-right: 32px;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: var(--disp-stretch);
  letter-spacing: calc(var(--disp-track) * 0.6);
  text-transform: uppercase;
  font-size: clamp(22px, calc(2.2vw * var(--disp-scale)), 30px);
  line-height: 0.95;
}
.choice-desc {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

/* Pill choices (milestones, stage, prompt mode, taste reactions) */
.pill-choices,
.taste-react,
.prompt-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prompt-mode {
  margin: 0;
  padding: 0;
  border: 0;
}
.pill-choice,
.taste-react label,
.prompt-mode label {
  position: relative;
  cursor: pointer;
}
.pill-choice input,
.taste-react input,
.prompt-mode input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.pill-choice span,
.taste-react span,
.prompt-mode span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 2px solid var(--text);
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.prompt-mode span,
.taste-react span {
  min-height: 40px;
  font-size: 14px;
  padding: 6px 14px;
}
.pill-choice:hover span,
.taste-react label:hover span,
.prompt-mode label:hover span {
  background: color-mix(in srgb, var(--text) 12%, transparent);
}
.pill-choice input:checked + span,
.taste-react input:checked + span,
.prompt-mode input:checked + span {
  background: var(--text);
  color: var(--bg);
}
.pill-choice input:focus-visible + span,
.taste-react input:focus-visible + span,
.prompt-mode input:focus-visible + span {
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

/* Prompts (step 3) */
.prompts {
  display: grid;
  gap: 36px;
}
.prompt {
  display: grid;
  gap: 12px;
}
.prompt-q {
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 700;
  line-height: 1.25;
}
.prompt[data-mode="skip"] textarea,
.prompt[data-mode="live"] textarea {
  opacity: 0.4;
}

/* Taste test (step 4) */
.taste-group-title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: var(--disp-stretch);
  text-transform: uppercase;
  font-size: 26px;
  letter-spacing: calc(var(--disp-track) * 0.5);
}
.taste-list {
  display: grid;
  gap: 0;
  border-bottom: 2px solid currentColor;
}
.taste-list .taste {
  border-top: 2px solid currentColor;
  padding: 18px 0;
}
.taste {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: grid;
  gap: 12px;
}
.taste-sample {
  padding: 0;
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 700;
  line-height: 1.3;
}
.taste-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 16px;
}
.taste-grid .taste-react {
  flex-direction: column;
  align-items: flex-start;
}
@media (max-width: 960px) {
  .taste-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.swatch-name {
  font-weight: 700;
}
.swatch {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 2px solid var(--text);
  overflow: hidden;
}
/* Fixed colours here on purpose: these depict other people's aesthetics, not ours. */
.swatch-neon {
  background: #07121f;
  color: #39ff88;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 22px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgb(57 255 136 / 0.7);
}
.swatch-swiss {
  background: #ffffff;
  color: #111;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.03em;
  place-items: end start;
  padding: 16px;
  background-image: linear-gradient(#e3000f, #e3000f);
  background-size: 38% 46%;
  background-position: 92% 12%;
  background-repeat: no-repeat;
}
.swatch-editorial {
  background: #f5f1e8;
  color: #171715;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 38px;
}
.swatch-poster {
  background: #ffe500;
  color: #000;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 75%;
  text-transform: uppercase;
  font-size: 54px;
  line-height: 0.85;
}

/* Done */
.done-lede {
  font-size: 22px;
  font-weight: 700;
}
.summary {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  margin: 0;
  border-top: 2px solid currentColor;
}
.summary dt,
.summary dd {
  margin: 0;
  padding: 14px 0;
  border-bottom: 2px solid currentColor;
}
.summary dt {
  font-weight: 700;
  padding-right: 20px;
}
.summary dd {
  overflow-wrap: anywhere;
}
.next-step {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 2px solid currentColor;
}
.next-step-title {
  color: var(--head);
  font-size: clamp(26px, calc(2.8vw * var(--disp-scale)), 40px);
}
.step-done .btn {
  justify-self: start;
}

.intake-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  border-top: 2px solid currentColor;
}
.intake-nav[hidden] {
  display: none;
}
.intake-saved {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 760px) {
  .intake-top {
    grid-template-columns: 1fr auto;
    row-gap: 10px;
  }
  .sheets {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }
  .intake-step-label {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .icon-button {
    grid-row: 1;
    grid-column: 2;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .taste-grid {
    grid-template-columns: 1fr;
  }
  .intake-saved {
    display: none;
  }
  .summary {
    grid-template-columns: 1fr;
  }
  .summary dt {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

/* Privacy */
.privacy {
  width: min(620px, calc(100% - 24px));
  margin: auto;
}
.privacy-inner {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 44px);
}
.privacy-title {
  font-size: clamp(32px, calc(4vw * var(--disp-scale)), 52px);
}
.privacy .btn {
  justify-self: start;
}

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

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

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