/* ==========================================================================
   Spilld site v7 -- layout and components.
   Rebuilt from docs/design/site-v7/spilld-site-v7-directions.html (the
   approved Claude Design export). Colours come ONLY from tokens.css.
   ========================================================================== */

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html, body { margin: 0; overflow-x: clip; background: var(--paper); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--pad); top: -200px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px;
  border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.container {
  max-width: 1440px; margin: 0 auto;
  padding-left: var(--pad); padding-right: var(--lane);
}
.section { position: relative; }
.section > .container {
  padding-top: clamp(80px, 10vw, 150px);
  padding-bottom: clamp(80px, 10vw, 150px);
}
.section--panel { background: var(--panel); }

/* --------------------------------------------------------------- type */
.label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
  margin: 0;
}
.display-xxl, .display-xl, .display-l, .display-m {
  font-family: var(--font-display); margin: 0; text-wrap: balance;
}
.display-xxl {
  font-stretch: 125%; font-weight: 900; font-size: clamp(54px, 10vw, 150px);
  line-height: .92; letter-spacing: -.04em;
}
.display-xl {
  font-stretch: 122%; font-weight: 900; font-size: clamp(44px, 7.4vw, 116px);
  line-height: .94; letter-spacing: -.035em; max-width: 14ch;
}
.display-l {
  font-stretch: 118%; font-weight: 800; font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1; letter-spacing: -.025em; max-width: 18ch;
}
.display-m {
  font-stretch: 118%; font-weight: 800; font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.05; letter-spacing: -.02em;
}
.label + .display-l, .label + .display-xl { margin-top: 20px; }
.lead {
  margin: clamp(28px, 3vw, 44px) 0 0; font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5; color: var(--muted); max-width: 46ch;
}

/* ------------------------------------------------------------ buttons */
.btn-pill {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-weight: 600; font-size: 16px; line-height: 1.2;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-body); transition: transform .15s ease;
}
.btn-pill:hover { transform: translateY(-2px); color: var(--paper); }
.btn-pill--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-pill--ghost:hover { color: var(--ink); }
.btn-pill .arrow { width: 16px; height: 16px; flex: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.site-header .container {
  height: var(--header-h); display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.logo {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 900;
  font-size: 30px; letter-spacing: -.035em; line-height: 1;
  color: var(--ink); text-decoration: none;
}
.logo .d, .wordmark .d { position: relative; display: inline-block; }
.logo .drop, .wordmark .drop {
  position: absolute; left: .075em; top: .77em; transform: translateX(-50%);
  overflow: visible;
}
.logo .drop { width: .36em; height: .48em; fill: var(--highlight); }
.nav-desktop { display: none; }
.nav-desktop a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none;
}
.nav-desktop a:not(.btn-pill):hover {
  text-decoration: underline; text-decoration-color: var(--drip);
  text-decoration-thickness: 2px; text-underline-offset: 7px;
}
.nav-desktop .btn-pill { font-size: 15px; padding: 12px 20px; }
.menu-btn {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; cursor: pointer; padding: 0;
}
.menu-btn .bar { display: block; width: 18px; height: 2px; background: currentColor; }
@media (min-width: 960px) {
  .nav-desktop {
    display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px);
    font-size: 15px; font-weight: 500;
  }
  .menu-btn { display: none; }
}

.dev-notice {
  margin: 0; padding: 8px var(--pad); background: var(--panel);
  color: var(--muted); border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
}

/* --------------------------------------------------------- phone menu */
dialog.menu {
  position: fixed; inset: 0; width: 100%; height: 100%;
  max-width: none; max-height: none; margin: 0; border: 0;
  padding: 0 var(--pad) 32px; background: var(--ink); color: var(--paper);
  --focus: var(--paper);
}
dialog.menu[open] { display: flex; flex-direction: column; overflow-y: auto; }
dialog.menu::backdrop { background: var(--ink); }
.menu-top {
  height: var(--header-h); display: flex; align-items: center;
  justify-content: space-between; flex: none;
}
.menu-top .logo { color: var(--paper); }
.menu-close {
  width: 48px; height: 48px; border-radius: 50%; position: relative;
  border: 1.5px solid var(--paper); background: transparent;
  color: var(--paper); cursor: pointer; padding: 0; flex: none;
}
.menu-close .bar {
  position: absolute; left: 14px; top: 22px; width: 18px; height: 2px;
  background: currentColor; transform: rotate(45deg);
}
.menu-close .bar + .bar { transform: rotate(-45deg); }
.menu-links {
  display: flex; flex-direction: column; gap: 6px; margin-top: 28px;
}
.menu-links a {
  display: flex; align-items: center; gap: 16px; min-height: 44px;
  font-family: var(--font-display); font-stretch: 118%; font-weight: 800;
  font-size: clamp(34px, 9.5vw, 56px); letter-spacing: -.025em;
  line-height: 1.15; text-decoration: none; color: var(--paper);
  padding: 6px 0;
}
.bullet {
  flex: none; width: 11px; height: 11px; background: var(--highlight);
  border-radius: 0 50% 50% 50%; transform: rotate(45deg);
}
.menu .btn-pill {
  align-self: flex-start; margin-top: 32px; background: var(--paper);
  color: var(--ink); font-size: 17px; padding: 16px 24px;
}
.menu-contact {
  margin: auto 0 0; padding-top: 40px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.menu-contact a { display: inline-flex; align-items: center; min-height: 44px; }

/* ------------------------------------------------------------- footer */
.site-footer {
  background: var(--ink); color: var(--paper); overflow: hidden;
  --focus: var(--paper);
}
.site-footer .container {
  padding: clamp(56px, 6vw, 88px) var(--pad) 0;
}
.footer-cols {
  display: flex; flex-wrap: wrap; gap: 24px clamp(48px, 8vw, 120px);
  font-size: 15px;
}
.footer-cols nav, .footer-cols .col {
  display: flex; flex-direction: column; align-items: flex-start;
}
.footer-cols a {
  display: inline-flex; align-items: center; min-height: 44px;
  min-width: 44px; text-decoration: none;
}
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-cols .fine { margin: 10px 0 0; font-size: 13px; }
.wordmark {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(96px, 28.5vw, 420px); line-height: .78;
  letter-spacing: -.055em; margin: clamp(48px, 7vw, 110px) 0 0;
  white-space: nowrap; padding-bottom: .32em;
}
.wordmark .drop { width: .22em; height: .293em; fill: var(--highlight); }

/* --------------------------------------------------- drip stage + overlay */
/* The drip is behind a flag (J-7 unresolved). With it on, <html> carries
   .has-drip: the right gutter widens into the lane and the hero makes room
   for the drain plug. With it off, gutters are symmetric and the pool's
   floor line is not drawn. */
html.has-drip { --lane: var(--lane-drip); }
html:not(.has-drip) .pool-floor { display: none; }
html:not(.has-drip) .cta > .container { padding-bottom: clamp(96px, 12vw, 180px); }
.drip-stage {
  max-width: 1440px; margin: 0 auto; padding-left: var(--pad);
  padding-right: var(--lane); position: relative; height: 0; z-index: 30;
}
.drip-lane {
  position: absolute; top: 0; right: calc(var(--lane) / 2);
  width: 0; height: 0;
}
.drip-plug {
  position: absolute; top: 0; display: block;
  /* the drip leaves the plug 53.1% across its width: pin that point to
     the lane's centre line */
  right: calc(var(--lane) / 2 - 0.469 * var(--plug-w));
  width: var(--plug-w); height: auto; pointer-events: none;
  user-select: none; filter: drop-shadow(0 10px 14px var(--shadow-plug));
}
.drip-overlay {
  position: fixed; left: 0; top: 0; width: 100%; height: 100%;
  z-index: 40; pointer-events: none; overflow: visible;
}
.drip-overlay .oil { fill: var(--drip); }
.drip-overlay .residue { stroke: var(--drip); }
.drip-overlay .shine { fill: var(--drip-shine); }

/* --------------------------------------------------------------- hero */
.hero > .container {
  padding-top: clamp(64px, 9vw, 140px);
  padding-bottom: clamp(72px, 9vw, 140px);
}
/* room for the drain plug above the headline */
.has-drip .hero > .container {
  padding-top: calc(clamp(107px, 14.2vw, 206px) + clamp(28px, 4vw, 64px));
}
.hero .label + .display-xl { margin-top: 22px; }
/* ------------------------------------------------ the marker (Revision 1, B)
   One hand-drawn stroke per word, behind the text: a highlighter band with
   rough, slightly wavy edges (an SVG mask stretched to the word), tilted a
   touch. The stroke is drawn by default -- with JavaScript off or under
   reduced motion it is simply there. Only the stroke ever animates. */
.mark-word, .w { position: relative; z-index: 0; }
.mark-word { white-space: nowrap; }
.mark-stroke {
  position: absolute; z-index: -1; pointer-events: none;
  left: -0.07em; right: -0.07em; top: 30%; bottom: 2%;
  background: var(--highlight);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M3 7 C 30 3, 70 5, 110 3 S 175 2, 197 6 L 199 31 C 170 35, 120 33, 80 36 S 20 35, 2 33 Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M3 7 C 30 3, 70 5, 110 3 S 175 2, 197 6 L 199 31 C 170 35, 120 33, 80 36 S 20 35, 2 33 Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  transform: rotate(-1.2deg);
}
/* answer words: each stroke runs on across the following space, so the
   sentence reads as one pass of the pen; the last word stops just past
   its end */
.w > .mark-stroke { left: -0.08em; right: -0.34em; top: 22%; bottom: 0; }
.w--end > .mark-stroke { right: -0.08em; }
/* the hero: one stroke per word, "name" then "you.", once, 700 ms after
   load. site.js sets --dur (260 ms + 0.9 ms per pixel of word) and --delay
   (a 110 ms pen lift between words); these are the fallbacks. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-h1 .mark-stroke {
    animation: marker-draw var(--dur, 560ms) cubic-bezier(.45, .05, .35, 1)
               var(--delay, 700ms) both;
  }
  .js .hero-h1 .mark-word + .mark-word .mark-stroke { --delay: 1370ms; }
}
@keyframes marker-draw {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* --------------------------------------------------- the sample answer */
.answer {
  margin-top: clamp(36px, 4vw, 56px); background: var(--panel);
  border-radius: var(--radius-card); padding: clamp(24px, 4.5vw, 64px);
  display: flex; flex-wrap: wrap; gap: 36px 56px;
}
.section--panel .answer { background: var(--paper); }
.answer-main { flex: 3 1 520px; min-width: 0; }
.answer-side {
  flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column;
  gap: 18px; align-self: flex-end;
}
.answer-meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin: 0;
}
.qa { display: flex; gap: 14px; align-items: baseline; margin-top: 26px; }
.qa + .qa { margin-top: 22px; }
.qa-tag {
  flex: none; font-family: var(--font-mono); font-size: 11px;
  font-weight: 500; line-height: 1.4; border-radius: 4px; padding: 3px 7px;
  color: var(--paper); background: var(--ink);
}
.qa-tag--a {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); padding: 2px 6px;
}
.q-text {
  margin: 0; font-size: clamp(16px, 1.4vw, 19px); font-weight: 600;
  line-height: 1.45;
}
.a-text {
  margin: 0; font-size: clamp(21px, 2.4vw, 34px); font-weight: 500;
  line-height: 1.42; letter-spacing: -.005em; text-wrap: pretty;
}
.a-text--small { font-size: clamp(19px, 1.9vw, 26px); }
/* the sample answer: same pen, word-by-word timing (site.js adds .on) */
.hl-armed .a-text .w > .mark-stroke {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 140ms cubic-bezier(.45, .05, .35, 1);
}
.hl-armed .a-text .w.on > .mark-stroke { clip-path: inset(0 0 0 0); }
.answer-bar {
  height: 10px; background: var(--rule); border-radius: 5px; overflow: hidden;
}
.answer-bar i { display: block; height: 100%; width: 100%; background: var(--highlight); }
.hl-armed .answer-bar i { width: 0; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.hl-armed.hl-done .answer-bar i { width: 100%; }
.answer-verdict { margin: 0; font-size: 16px; line-height: 1.55; font-weight: 600; }
.answer-caption {
  margin: 0; font-family: var(--font-mono); font-size: 11px; line-height: 1.7;
  letter-spacing: .04em; color: var(--muted);
}
.stamp {
  align-self: flex-start; display: inline-block; font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  border: 2px solid var(--accent); border-radius: 4px; padding: 5px 10px;
  transform: rotate(-2deg);
}
.redact {
  display: inline-block; background: var(--ink); color: var(--ink);
  border-radius: 2px; padding: 0 .08em; line-height: 1.1;
  user-select: none; letter-spacing: -.1em;
}
.side-note { margin: 0; font-size: 17px; line-height: 1.55; }
.text-link {
  align-self: flex-start; display: inline-flex; align-items: center;
  min-height: 44px; font-weight: 600; text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}

/* ------------------------------------------------------- stacked cards */
.stack {
  display: flex; flex-direction: column; gap: 24px;
  margin-top: clamp(36px, 4vw, 56px);
}
.stack-card {
  position: sticky; top: calc(var(--header-h) + 24px + var(--i) * 18px);
  background: var(--card-bg); color: var(--card-ink); --focus: var(--card-ink);
  border-radius: var(--radius-card); min-height: clamp(400px, 58vh, 540px);
  overflow: hidden; display: flex; flex-wrap: wrap-reverse;
  align-items: flex-end; justify-content: space-between;
  padding: clamp(28px, 4vw, 56px);
}
.stack-card--1 { --card-bg: var(--card1); --card-ink: var(--card1-ink); --i: 0; }
.stack-card--2 { --card-bg: var(--card2); --card-ink: var(--card2-ink); --i: 1; }
.stack-card--3 { --card-bg: var(--card3); --card-ink: var(--card3-ink); --i: 2; }
.stack-card .body {
  flex: 1 1 300px; max-width: 620px; display: flex; flex-direction: column;
  gap: 18px; position: relative; z-index: 1;
}
.stack-card h3 {
  margin: 0; font-family: var(--font-display); font-stretch: 118%;
  font-weight: 800; font-size: clamp(28px, 3.2vw, 48px); line-height: 1.02;
  letter-spacing: -.02em;
}
.stack-card p { margin: 0; font-size: 17px; line-height: 1.55; }
.stack-card .num {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(240px, 30vw, 460px); line-height: .74;
  letter-spacing: -.06em; user-select: none;
  color: color-mix(in srgb, var(--card-ink) 15%, var(--card-bg));
  margin: 0 calc(-1 * clamp(28px, 4vw, 56px) - .05em)
          calc(-1 * clamp(28px, 4vw, 56px) - .14em) auto;
}

/* --------------------------------------------------------------- steps */
.steps {
  list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0;
  display: grid; gap: clamp(32px, 3vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.steps li {
  border-top: 2px solid var(--ink); padding-top: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.step-num {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(48px, 5vw, 72px); line-height: .9; letter-spacing: -.04em;
  color: var(--accent);
}
.steps p { margin: 0; color: var(--muted); }
.section-more { margin: clamp(32px, 4vw, 48px) 0 0; }

/* --------------------------------------------------------------- doors */
.doors {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.door {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 48px; min-height: clamp(300px, 34vw, 440px);
  padding: clamp(28px, 3.6vw, 52px); border-radius: var(--radius-card);
  text-decoration: none; transition: transform .2s ease;
}
.door:hover { transform: translateY(-4px); }
.door--agency {
  background: var(--door-a); color: var(--door-a-ink); --focus: var(--door-a-ink);
}
.door--shop { background: var(--panel); color: var(--ink); }
.door .door-body { display: flex; flex-direction: column; gap: 20px; }
.door h2 {
  margin: 0; font-family: var(--font-display); font-stretch: 122%;
  font-weight: 900; font-size: clamp(40px, 5vw, 76px); line-height: .95;
  letter-spacing: -.035em;
}
.door p { margin: 0; font-size: 18px; line-height: 1.5; max-width: 34ch; }
.circle-arrow {
  align-self: flex-end; width: 60px; height: 60px; border-radius: 50%;
  border: 1.5px solid currentColor; display: flex; align-items: center;
  justify-content: center;
}
.circle-arrow svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------- colour fields */
.field-stance {
  background: var(--stance); color: var(--stance-ink); --focus: var(--stance-ink);
}
.field-stance .label { color: inherit; }
.field-stance > .container {
  padding-top: clamp(96px, 12vw, 180px); padding-bottom: clamp(96px, 12vw, 180px);
}
.nevers {
  list-style: none; margin: clamp(48px, 6vw, 88px) 0 0; padding: 0;
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.nevers li {
  border-top: 1.5px solid currentColor; padding-top: 18px;
  font-size: 18px; line-height: 1.45;
}

/* --------------------------------------------------------- closing CTA */
.cta { background: var(--cta); color: var(--cta-ink); --focus: var(--cta-ink); }
.cta > .container {
  padding-top: clamp(96px, 12vw, 180px); padding-bottom: 40px;
}
.cta .display-xl { max-width: 13ch; }
.cta .btn-pill {
  margin-top: clamp(32px, 4vw, 52px); background: var(--cta-ink);
  color: var(--cta); font-size: 17px; padding: 16px 28px;
}
.cta .btn-pill:hover { color: var(--cta); }
.cta .lead { color: inherit; }
.pool-floor {
  margin-top: clamp(120px, 14vw, 200px); margin-right: calc(-1 * var(--lane));
  border-top: 1.5px solid var(--cta-rule);
}

/* ------------------------------------------------------ agency: forms */
.portal-form { margin-top: clamp(32px, 4vw, 52px); max-width: 520px; }
.portal-form label {
  display: block; font-weight: 600; font-size: 15px; margin: 20px 0 8px;
}
.portal-form input {
  width: 100%; min-height: 52px; padding: 13px 18px; border-radius: 14px;
  border: 1.5px solid var(--cta-ink); background: var(--paper);
  color: var(--ink); font: 400 17px/1.3 var(--font-body);
}
.portal-form input:focus-visible {
  outline: 3px solid var(--cta-ink); outline-offset: 2px;
}
.portal-form .btn-pill { margin-top: 28px; }
.form-after { margin: 24px 0 0; font-size: 15px; }
.created .display-l { max-width: none; }
.created .portal-link { margin-top: 18px; word-break: break-all; font-weight: 600; }

/* ---------------------------------------------------- agency: white label */
.split {
  display: flex; flex-wrap: wrap; gap: 56px clamp(40px, 6vw, 96px);
  align-items: center;
}
.split > .split-text { flex: 1 1 360px; min-width: 0; }
.split > .split-art {
  flex: 1 1 320px; min-width: 0; display: flex; justify-content: center;
  padding: 24px 0;
}
.split-text p.body { margin: 28px 0 0; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 42ch; }
.mock { position: relative; width: min(calc(100% - 28px), 400px); margin: 0; }
.mock-back {
  position: absolute; inset: 0; background: var(--paper); border-radius: 8px;
  transform: rotate(3.5deg) translate(14px, 6px);
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px var(--shadow-soft);
}
.mock-sheet {
  position: relative; aspect-ratio: 8.5 / 11; background: var(--paper);
  color: var(--ink); border-radius: 8px; padding: clamp(22px, 2.6vw, 34px);
  display: flex; flex-direction: column; transform: rotate(-1.5deg);
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px var(--shadow-lift);
}
.mock-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mock-logo {
  display: flex; align-items: center; justify-content: center;
  width: 120px; height: 44px; border: 1.5px dashed var(--muted);
  border-radius: 6px; font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.mock-mono {
  margin: 0; font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.mock-foot { margin-top: auto; }
.mock-by { margin-top: 22px; }
.mock-shop {
  margin: 8px 0 0; font-family: var(--font-display); font-stretch: 118%;
  font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1;
  letter-spacing: -.025em;
}
.mock-rule { height: 1.5px; background: var(--ink); margin: 20px 0; }
.mock-quote { margin: 0; font-size: 14px; line-height: 1.5; }
.mock figcaption, .mock-caption {
  margin-top: 26px; text-align: center; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------ lists with drip bullets */
.drops {
  list-style: none; margin: clamp(28px, 3vw, 44px) 0 0; padding: 0;
  display: flex; flex-direction: column;
}
.drops li {
  display: flex; gap: clamp(16px, 2vw, 28px); align-items: baseline;
  padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1.5px solid var(--ink);
}
.drops .drop-bullet {
  flex: none; width: 14px; height: 14px; background: var(--drip);
  border-radius: 0 50% 50% 50%; transform: rotate(45deg) translateY(-2px);
}
.drops .item {
  font-family: var(--font-display); font-stretch: 118%; font-weight: 800;
  font-size: clamp(24px, 3.2vw, 44px); line-height: 1.08;
  letter-spacing: -.02em;
}
.drops--small .item { font-size: clamp(20px, 2.2vw, 30px); }
.after-list { margin: 28px 0 0; color: var(--muted); max-width: 60ch; }

/* ------------------------------------------------------- shops: excerpt */
.excerpt {
  margin-top: clamp(32px, 4vw, 52px); display: flex; flex-wrap: wrap;
  gap: 28px 56px; align-items: flex-end;
}
.excerpt-card {
  flex: 3 1 460px; min-width: 0; background: var(--panel);
  border-radius: 24px; padding: clamp(22px, 3.4vw, 44px);
}
.excerpt-card .qa:first-child { margin-top: 0; }
.excerpt .side {
  flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 18px;
}

/* ------------------------------------------- dev-only copy status badges */
.copy-badge {
  display: inline-block; vertical-align: middle; margin-left: .5em;
  font: 500 10px/1 var(--font-mono); font-stretch: 100%;
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px;
  border-radius: 4px; white-space: nowrap;
}
.copy-badge--draft { background: var(--highlight); color: var(--ink); }
.copy-badge--revised { background: var(--accent); color: var(--on-accent); }

@media (prefers-reduced-motion: reduce) {
  .btn-pill, .door { transition: none; }
  .btn-pill:hover, .door:hover { transform: none; }
}

/* ==========================================================================
   Legacy kit -- the component classes the pre-v7 pages use (portal, ledger,
   batch, billing, admin, status, audit, how, faq, report showcase, founder,
   blog). Same class names, re-expressed on the v7 tokens.
   ========================================================================== */
.legacy {
  max-width: 1280px; margin: 0 auto;
  padding: 24px var(--pad) 90px;
}
.legacy h1, .legacy h2 {
  font-family: var(--font-display); font-weight: 800; text-wrap: balance;
}
.legacy h1 {
  font-stretch: 118%; letter-spacing: -.025em; line-height: 1.02;
  font-size: clamp(38px, 5.6vw, 72px); margin: 0;
}
.legacy h2 {
  font-stretch: 112%; letter-spacing: -.015em; line-height: 1.08;
  font-size: clamp(27px, 3.4vw, 42px); margin: 0;
}
.legacy h3 { font-size: 17px; font-weight: 700; margin: 0; }
.legacy p, .legacy ul, .legacy ol { margin-top: 0; margin-bottom: 0; }
.legacy h1 em, .legacy h2 em { font-style: normal; color: var(--accent); }
.serif { font-family: var(--font-display); font-weight: 800; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--ink); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  background: var(--ink); color: var(--paper); font-weight: 600;
  font-size: 15px; padding: 14px 28px; border-radius: 999px;
  text-decoration: none; border: 0; cursor: pointer;
  font-family: var(--font-body);
}
.btn:hover { background: var(--accent); color: var(--on-accent); }
.btn.ghost {
  background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn.ghost:hover { background: var(--panel); color: var(--ink); }
.card {
  background: var(--panel); border: 1px solid var(--rule);
  border-radius: 20px; padding: 32px;
}
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.chip {
  display: inline-block; font-family: var(--font-mono); font-size: 10px;
  font-weight: 500; letter-spacing: .12em; padding: 3px 9px;
  border-radius: 4px; text-transform: uppercase;
}
.chip.on { background: var(--ink); color: var(--paper); }
.chip.off { background: transparent; color: var(--muted); border: 1px solid var(--muted); }
.exhibit {
  position: relative; background: var(--paper); border-radius: 12px;
  padding: 22px 24px 20px; border: 1px solid var(--rule);
}
.exhibit .meta {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  color: var(--muted); text-transform: uppercase; display: flex; gap: 10px;
  justify-content: space-between; align-items: center; flex-wrap: wrap;
  border-bottom: 1px solid var(--rule); padding-bottom: 10px;
}
.exhibit blockquote {
  margin: 16px 0 0; font-size: 16.5px; line-height: 1.55; border: 0; padding: 0;
}
.exhibit .cap {
  margin-top: 16px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .08em; color: var(--muted);
}
.legacy .stamp { align-self: auto; }
.exhibit .stamp { position: absolute; right: 14px; bottom: -14px; }
.v-rec { color: var(--good); font-weight: 700; }
.v-men { color: var(--warn); font-weight: 700; }
.v-not { color: var(--stamp); font-weight: 700; }

.legacy form label {
  display: block; font-weight: 600; font-size: 13px; margin: 18px 0 6px;
  color: var(--ink);
}
.legacy form input[type=text], .legacy form input[type=email],
.legacy form select, .legacy form textarea {
  width: 100%; min-height: 48px; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--muted); background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 15px;
}
.legacy form input:focus-visible, .legacy form select:focus-visible,
.legacy form textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.legacy form input::placeholder { color: var(--muted); }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.legacy .svc label {
  display: flex; gap: 9px; align-items: center; font-weight: 500; margin: 0;
  min-height: 44px; background: var(--paper); border: 1px solid var(--rule);
  padding: 11px 13px; border-radius: 12px; font-size: 13.5px; cursor: pointer;
}
.legacy .svc label:hover { border-color: var(--ink); }
.errors {
  background: color-mix(in srgb, var(--status-bad) 8%, var(--paper));
  border: 1px solid var(--status-bad); border-radius: 12px;
  padding: 16px 20px; margin: 18px 0;
}
.notice {
  background: var(--panel); border: 1px dashed var(--muted); border-radius: 12px;
  padding: 13px 18px; font-size: 13px; margin: 14px 0; color: var(--muted);
  font-family: var(--font-mono);
}
.badge {
  display: inline-block; font-family: var(--font-mono); font-size: 10.5px;
  font-weight: 500; letter-spacing: .1em; padding: 4px 10px;
  border-radius: 4px; text-transform: uppercase;
}
.badge.complete, .badge.done {
  background: color-mix(in srgb, var(--status-good) 14%, var(--paper));
  color: var(--status-good);
}
.badge.running {
  background: color-mix(in srgb, var(--status-warn) 14%, var(--paper));
  color: var(--status-warn);
}
.badge.held, .badge.failed {
  background: color-mix(in srgb, var(--status-bad) 12%, var(--paper));
  color: var(--status-bad);
}
.badge.interrupted {
  background: color-mix(in srgb, var(--status-bad) 8%, var(--paper));
  color: var(--status-bad);
}
.badge.queued { background: var(--panel); color: var(--muted); }
table.list { width: 100%; border-collapse: collapse; margin-top: 14px; }
table.list td, table.list th {
  padding: 12px 8px; border-bottom: 1px solid var(--rule); text-align: left;
  font-size: 14px;
}
table.list th {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}
table.list td { font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
  .grid3, .grid2, .svc { grid-template-columns: 1fr; }
}

/* ------------------------------------------- Part C pages (Revision 1) */
.section--tight > .container { padding-top: clamp(24px, 3vw, 48px); }
.stack-card h2 {
  margin: 0; font-family: var(--font-display); font-stretch: 118%;
  font-weight: 800; font-size: clamp(28px, 3.2vw, 48px); line-height: 1.02;
  letter-spacing: -.02em;
}
.stack--steps { list-style: none; margin: 0; padding: 0; }
.stack--steps .stack-card { min-height: clamp(360px, 52vh, 520px); }
.stack-card .small { font-size: 15px; line-height: 1.55; }
.verdicts { margin: 0; display: grid; gap: 10px; }
.verdicts div { display: grid; grid-template-columns: minmax(7.5em, auto) 1fr; gap: 4px 16px; }
.verdicts dt { font-weight: 700; }
.verdicts dd { margin: 0; }
.lead--flush { margin-top: 0; }
.nevers--cards h3 {
  margin: 0 0 10px; font-family: var(--font-display); font-stretch: 112%;
  font-weight: 800; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.1;
}
.nevers--cards p { margin: 0; color: var(--muted); font-size: 16px; }
.cta .ctas { margin-top: clamp(32px, 4vw, 52px); }
.cta .ctas .btn-pill { margin-top: 0; }
.cta .btn-pill--on-field {
  background: transparent; color: var(--cta-ink);
  box-shadow: inset 0 0 0 1.5px var(--cta-ink);
}
.cta .btn-pill--on-field:hover { color: var(--cta-ink); }

/* /report */
.disclosure {
  margin: 28px 0 0; display: inline-block; padding: 10px 14px;
  border: 1.5px solid var(--ink); border-radius: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  line-height: 1.6; max-width: 70ch;
}
.withheld {
  display: inline-block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .04em; line-height: 1.5; color: var(--ink);
  background: var(--panel); border: 1.5px dashed var(--ink); border-radius: 6px;
  padding: 6px 9px;
}
/* MASTER-1 L4: a figure from the /report sample, in the slot the withheld
   placeholder held: the same box and pairs (ink on panel), with its label. */
.sample-figure {
  display: block; margin: 0; font-size: 15px; line-height: 1.45;
  font-weight: 600; color: var(--ink); background: var(--panel);
  border: 1.5px solid var(--ink); border-radius: 6px; padding: 8px 10px;
}
.sample-figure .in-this {
  display: block; margin-bottom: 4px; font-family: var(--font-mono);
  font-size: 11px; font-weight: 400; letter-spacing: .04em;
  text-transform: uppercase;
}
.sample-intro { margin: 18px 0 0; font-weight: 600; }
.sample-intro a { text-underline-offset: 4px; }
/* MASTER-1 L3: the consent box above the request buttons. Its links are the
   label's own size and colour. */
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 26px 0 0; }
.consent input, .portal-form .consent input {
  width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0;
  flex: none; accent-color: var(--accent);
}
.intake form .consent label, .portal-form .consent label {
  display: block; margin: 0; font-weight: 400; font-size: 15px; line-height: 1.5;
}
.consent a { color: inherit; font-size: inherit; text-decoration: underline;
  text-underline-offset: 3px; }
.footer-legal a { color: inherit; }
.sheet {
  width: min(100%, 420px); background: var(--paper); color: var(--ink);
  border-radius: 12px; padding: clamp(20px, 2.4vw, 30px);
  box-shadow: 0 1px 0 var(--rule), 0 20px 44px var(--shadow-soft);
  display: flex; flex-direction: column; gap: 16px;
}
.sheet-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sheet-rows li { display: grid; grid-template-columns: 7.5em 1fr; align-items: center; gap: 12px; font-size: 14px; }
.sheet-rows i {
  display: block; height: 12px; border-radius: 6px; border: 1.5px dashed var(--muted);
}
.sheet-rows--sites li { grid-template-columns: 11em 1fr; }
.sheet-questions {
  list-style: none; margin: 0 0 22px; padding: 0 0 18px;
  border-bottom: 1.5px solid var(--rule); display: grid; gap: 6px;
  font-size: 15px; color: var(--muted);
}

/* /faq */
.faq-list { max-width: 820px; border-top: 1.5px solid var(--ink); }
.faq-list details { border-bottom: 1.5px solid var(--ink); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  gap: 20px; align-items: baseline; padding: 22px 0; min-height: 44px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 22px; flex: none;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list summary h2 {
  margin: 0; font-family: var(--font-display); font-stretch: 112%;
  font-weight: 800; font-size: clamp(20px, 2vw, 28px); line-height: 1.15;
  letter-spacing: -.01em;
}
.faq-list details p { margin: 0 0 26px; color: var(--muted); max-width: 66ch; }

/* /audit -- restyled intake */
.hero--form > .container { padding-bottom: clamp(40px, 5vw, 72px); }
.intake {
  max-width: 760px; background: var(--paper); border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 56px);
}
.intake form label, .intake legend {
  display: block; font-weight: 600; font-size: 15px; margin: 22px 0 8px;
}
.intake input[type=text], .intake input[type=email] {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 14px;
  border: 1.5px solid var(--muted); background: var(--paper); color: var(--ink);
  font: 400 17px/1.3 var(--font-body);
}
.intake input::placeholder { color: var(--muted); }
.intake-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.svc-set { border: 0; margin: 26px 0 0; padding: 0; min-width: 0; }
.intake legend { margin: 0 0 10px; padding: 0; }
/* Revision 2, item 3: the inline services error. Ink on the form's panel (a
   pair CONTRAST.md already checks); the red rule is decoration. */
.field-error {
  margin: 0 0 12px; padding: 2px 0 2px 12px; font-weight: 700;
  color: var(--ink); border-left: 4px solid var(--status-bad);
}
/* SITE-COPY-1b: in the three-across colour row the error sits under its own
   input, so a wrong box never pushes its input out of line with the others. */
.colour-row .field-error { margin: 8px 0 0; }
.intake .svc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.intake .svc label {
  display: flex; gap: 10px; align-items: center; margin: 0; min-height: 48px;
  font-weight: 500; font-size: 15px; padding: 10px 14px; cursor: pointer;
  border: 1.5px solid var(--rule); border-radius: 12px; background: var(--paper);
}
.intake .svc label:hover { border-color: var(--ink); }
.intake .svc input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.intake .btn-pill { margin-top: 30px; font-size: 17px; }
.intake-gate {
  margin: 18px 0 0; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .04em; line-height: 1.7; color: var(--muted);
}
.intake .errors { margin-top: 18px; }
/* GATE-SEC-1 G5: the request form's errors sit on the closing CTA field,
   whose text colour is the field's own; the error box is a light tint, so its
   text goes back to ink (ink on paper, a pair CONTRAST.md already checks). */
.cta .errors { color: var(--ink); max-width: 520px; margin: 24px 0 0; }
.cta .errors ul { margin: 0; padding-left: 18px; }
@media (max-width: 600px) {
  .intake-row, .intake .svc { grid-template-columns: 1fr; }
}

/* /blog */
.post-list { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.post-card { padding: 28px 0; border-bottom: 1.5px solid var(--ink); }
.post-card h2 {
  margin: 8px 0 10px; font-family: var(--font-display); font-stretch: 112%;
  font-weight: 800; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1;
}
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post-card p { margin: 0; color: var(--muted); }
.post-meta {
  margin: 0; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.empty-state { max-width: 640px; }
.empty-state p { color: var(--muted); }
.article-title { max-width: 22ch; }
.article-head .post-meta { margin-top: 24px; }
/* Revision 5, item 3: the 11px "Field notes" link above the title was 13px
   tall. As with the Sources links, the padding gives the link a 44px tap
   area; it is inline, so the text and the layout around it do not move. */
.article-head .label a { text-decoration: none; padding: 16px 0; }
.prose {
  max-width: 68ch; padding-bottom: clamp(64px, 8vw, 120px);
  font-size: 18px; line-height: 1.7;
}
.prose h2 {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800;
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; margin: 1.8em 0 .5em;
}
.prose h3 { font-size: 20px; margin: 1.5em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent);
  font-size: 21px; line-height: 1.5; font-weight: 500;
}
.prose a { text-underline-offset: 4px; }
/* Revision 3, item 1: the post's sources, under the body. */
.prose:has(+ .sources) { padding-bottom: 0; }
.sources {
  max-width: 68ch; margin-top: 8px; padding: 24px 0 clamp(64px, 8vw, 120px);
  border-top: 1.5px solid var(--rule);
}
.sources h2 {
  margin: 0 0 10px; font-family: var(--font-display); font-stretch: 112%;
  font-weight: 800; font-size: 22px; line-height: 1.2;
}
.sources-list { margin: 0; padding-left: 1.4em; font-size: 16px; line-height: 1.6; }
.sources-list li { margin: 0 0 14px; }
/* The link flows in the sentence; the padding makes each line of it a 44px
   tap target without moving the text. */
.sources-list a { padding: 13px 0; text-underline-offset: 4px; }
.post-list--related li {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
  padding: 14px 0; border-bottom: 1.5px solid var(--rule);
}
.post-list--related a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* ------------------------------------------------------- page details */
.excerpt .answer-caption { margin-top: 22px; }
.rule-h { max-width: 24ch; }
