/* ══════════════════════════════════════════════════════════════════════════
   Weston Web Design — the homepage (was concept F, "Fern").
   Sage and olive, playful, built from toys.

   Self-contained like Bracken: its own reset, tokens and components, loaded
   after fonts.css and fonts-concepts.css and nothing else. It shares only
   script.js, whose hooks the markup keeps (.site-header, #nav-links,
   [data-reveal], [data-video], #brief-form, #year); everything that moves
   on its own lives in fern.js.

   Two rules hold the whole file together:
     1. The resting style is the finished state. Every animation below is
        written from its start state *towards* the plain style, so with no
        animation at all — reduced motion, or JS off — you see the end
        result, never a blank.
     2. Hand-drawn things are 1.5px ink strokes with round caps. Borders,
        design objects, strings and card art all use the same line.

   Palette: sage paper for the hero, oat for the page, olive-black ink, and
   one bright note (--go) for the buttons. Contrast ratios are noted where
   a pair is close to the 4.5:1 line; everything else clears 7:1.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  /* — Ink: olive-black. Every line and every word on light ground. — */
  --ink: #1F2616;
  --ink-muted: #4A5638;          /* 7.0:1 on oat, 5.9:1 on sage-100 */

  /* — Sage and olive: the structural colours. — */
  --sage-100: #DCE4CE;           /* the hero */
  --sage-200: #CAD6B9;
  --sage-300: #AFC19C;           /* the dock card */
  --sage-400: #8FA67E;
  --olive-500: #5E6E2E;
  --olive-600: #4D5A22;          /* small olive text: 5.6:1 on sage-100 */
  --olive-700: #3F4A1F;
  --olive-900: #262E17;          /* dark grounds */
  --olive-950: #1A200F;

  /* — Oat: the page. — */
  --oat-50:  #FBFAF4;
  --oat-100: #F4F2E8;
  --oat-200: #E7E3D2;
  --oat-300: #D6CFB2;

  /* — Accents. --go is the button colour and always carries ink text.
       Clay is rationed: one process card and the error state. — */
  --go: #C5D86D;
  --go-hover: #B5CB55;
  --clay: #9C4A25;               /* 5.9:1 with oat text */
  --clay-100: #F4E1D5;

  --on-dark: #F4F2E8;
  --on-dark-muted: #C3CCB2;      /* 9.0:1 on olive-900 */

  --line: 1.5px solid var(--ink);

  --font-display: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* The logo's face: a geometric sans, heavy for "Weston", widely spaced
     capitals for "WEB DESIGN". Used for the wordmark and the section
     labels, which borrow the tagline's letterspacing. */
  --font-brand: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;

  --text-display: clamp(2.375rem, 1.35rem + 4.3vw, 4.75rem);
  --text-h2: clamp(1.875rem, 1.3rem + 2.4vw, 3.25rem);
  --text-h3: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-lede: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --text-body: 1.0625rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;
  --text-micro: 0.6875rem;

  --gutter: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  --max-width: 76rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 160ms;
  --dur-base: 280ms;
  --dur-slow: 720ms;

  --shadow: 0 1px 0 rgba(31, 38, 22, 0.08), 0 18px 40px -18px rgba(31, 38, 22, 0.35);
}

/* ── Reset and base ─────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--oat-100);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin: 0 0 1rem;
}
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--olive-700); text-underline-offset: 3px; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button { font: inherit; color: inherit; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--olive-500); outline-offset: 3px; border-radius: var(--radius-sm); }
::selection { background: var(--go); color: var(--ink); }
[id] { scroll-margin-top: 7.5rem; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* The logo's lines are drawn for a big lockup. Where the mark is small —
   the header, the sentence, the bubble — they are thickened so it doesn't
   go spidery. */
.brand-mark, .inline-brand svg, .bubble svg { --mark-w: 32px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 400;
  transform: translateY(-180%);
  padding: 0.75rem 1.25rem;
  background: var(--olive-900); color: var(--on-dark);
  font-weight: 600; border-radius: 999px; text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

.container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 58rem; }
.centre { text-align: center; }
.lede { font-size: var(--text-lede); color: var(--ink-muted); max-width: 40rem; }
.small { font-size: var(--text-sm); color: var(--ink-muted); }

.head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.head--centre { text-align: center; }
.head--centre .lede { margin-inline: auto; }

.kicker {
  display: inline-block; margin-bottom: 1rem;
  font-family: var(--font-brand); font-size: var(--text-micro); font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--olive-600);
}
.kicker--invert { color: var(--go); }

/* ── Pills: every button on the page ────────────────────────────────── */

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.5rem; padding: 0.4375rem 1rem;
  border: var(--line); border-radius: 8px;
  background: var(--oat-50); color: var(--ink);
  font-size: var(--text-sm); font-weight: 500; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 0 var(--ink);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast);
}
.pill:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink); }
.pill:active { transform: translateY(2px); box-shadow: 0 0 0 var(--ink); }
.pill--go { background: var(--go); }
.pill--go:hover { background: var(--go-hover); }
.pill--lg { min-height: 3rem; padding: 0.625rem 1.5rem; font-size: 1rem; font-weight: 600; }
.pill--block { width: 100%; }
@media (prefers-reduced-motion: reduce) { .pill { transition: none; } .pill:hover, .pill:active { transform: none; } }

.text-link {
  color: var(--ink); font-size: var(--text-sm); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.text-link:hover { text-decoration-color: var(--olive-500); }

/* ── Scroll reveal (gated behind .js so nothing hides without it) ────── */

.js [data-reveal] {
  opacity: 0; transform: translateY(1.5rem);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── Intro ──────────────────────────────────────────────────────────────
   The boxed W pops in, holds, and the curtain lifts. Only with JS (it's
   an opening flourish, not content) and never under reduced motion. It
   runs on CSS alone, so it can't get stuck if fern.js fails. */

.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  background: var(--sage-100);
  pointer-events: none;
  animation: intro-out 520ms 1250ms var(--ease-out) forwards;
}
/* The logo draws itself: window, title bar, the three dots, then the W. */
.intro-mark { width: 6.5rem; height: auto; overflow: visible; }
.intro-mark path { stroke-dasharray: 1; animation: draw 620ms var(--ease-out) both; }
.intro-mark .m-frame { animation-delay: 80ms; }
.intro-mark .m-bar   { animation-delay: 360ms; animation-duration: 360ms; }
.intro-mark .m-w     { animation-delay: 560ms; animation-duration: 520ms; }
.intro-mark .m-dot   { transform-box: fill-box; transform-origin: center; animation: intro-dot 360ms var(--ease-spring) both; }
.intro-mark .m-dot:nth-child(1) { animation-delay: 440ms; }
.intro-mark .m-dot:nth-child(2) { animation-delay: 500ms; }
.intro-mark .m-dot:nth-child(3) { animation-delay: 560ms; }
@keyframes intro-dot { from { transform: scale(0); } }
@keyframes intro-out { to { transform: translateY(-100%); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .js .intro { display: none; } }

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  pointer-events: none;
  transition: background-color 300ms, box-shadow 300ms;
}
/* Once you scroll, the header gets a backing, so nothing reads through
   behind the logo and the buttons. The blur is scoped to wide screens: a
   filtered header would become the containing block for the fixed mobile
   menu panel. */
.site-header.is-compact { background: var(--oat-100); box-shadow: 0 1px 0 rgba(31, 38, 22, 0.2); }
.site-header.is-compact .header-inner { padding-block: 0.625rem; }
@media (min-width: 881px) {
  .site-header.is-compact { background: rgba(244, 242, 232, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
.header-inner {
  max-width: 90rem; margin-inline: auto;
  padding: 1rem var(--gutter);
  transition: padding 300ms var(--ease-out);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.header-inner > * { pointer-events: auto; }

/* The lockup sits on its own little card, like the nav pills, so it
   stays legible over whatever scrolls beneath it. Once you scroll the
   words fold away and the mark is left on its own. */
.brand {
  display: inline-flex; align-items: center; gap: 0.625rem;
  height: 4.75rem; padding: 0 1.25rem 0 0.875rem; gap: 0.875rem;
  background: var(--oat-50); color: var(--ink);
  border: var(--line); border-radius: 10px; box-shadow: 0 2px 0 var(--ink);
  text-decoration: none;
  transition: padding 420ms var(--ease-out), gap 420ms var(--ease-out);
}
.brand-mark { width: 4rem; height: 3.6rem; flex: none; }
.brand-word {
  display: flex; flex-direction: column; justify-content: center;
  max-width: 15rem; overflow: hidden; white-space: nowrap;
  font-family: var(--font-brand); line-height: 1;
  transition: max-width 420ms var(--ease-out), opacity 300ms;
}
.brand-word b { font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; }
.brand-word small {
  margin-top: 0.3125rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.36em; text-transform: uppercase; color: var(--ink-muted);
}
.site-header.is-compact .brand { gap: 0; padding-right: 0.625rem; }
@media (max-width: 880px) {
  .brand { height: 3.75rem; padding: 0 1rem 0 0.625rem; gap: 0.625rem; }
  .brand-mark { width: 3rem; height: 2.7rem; }
  .brand-word b { font-size: 1.5rem; }
  .brand-word small { font-size: 0.625rem; letter-spacing: 0.3em; }
  .site-header.is-compact .brand { padding-right: 0.5rem; }
}
.site-header.is-compact .brand-word { max-width: 0; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .brand, .brand-word { transition: none; } }

.nav { display: flex; align-items: center; gap: 0.5rem; }
.nav .pill { min-height: 2.25rem; padding: 0.3125rem 0.875rem; font-size: var(--text-xs); }
.nav .pill.is-active:not(.pill--go) { background: var(--sage-200); }

/* Services opens a card of the service pages under its pill. With
   JavaScript it is a click-to-open disclosure (script.js); without it,
   hovering or tabbing into it opens it, so every link stays reachable. */
.nav-drop { position: relative; }
.nav-drop-caret {
  width: 0.75rem; height: 0.75rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav-drop [aria-expanded="true"] .nav-drop-caret { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 0.5rem); left: 0; z-index: 1;
  min-width: 15rem; margin: 0; padding: 0.375rem; list-style: none;
  background: var(--oat-50); border: var(--line); border-radius: 10px; box-shadow: 0 3px 0 var(--ink);
  display: none;
}
/* Bridges the gap under the pill, so a hover doesn't drop on the way down. */
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -0.625rem; height: 0.625rem; }
.nav-drop [aria-expanded="true"] + .nav-drop-menu { display: block; }
html:not(.js) .nav-drop:hover .nav-drop-menu,
html:not(.js) .nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block; padding: 0.5rem 0.75rem; border-radius: 6px;
  color: var(--ink); font-size: var(--text-sm); font-weight: 500; text-decoration: none;
}
.nav-drop-menu a:hover { background: var(--sage-100); }
.nav-drop-menu a[aria-current="page"] { background: var(--sage-200); font-weight: 600; }
.nav-drop-menu li:first-child { margin-bottom: 0.25rem; padding-bottom: 0.25rem; border-bottom: 1px solid rgba(31, 38, 22, 0.2); }
@media (prefers-reduced-motion: reduce) { .nav-drop-caret { transition: none; } }

.nav-toggle {
  display: none; place-items: center;
  width: 2.75rem; height: 2.75rem; flex: none;
  background: var(--go); border: var(--line); border-radius: 8px;
  box-shadow: 0 2px 0 var(--ink); cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 4px; width: 1.125rem; }
.nav-toggle-bars span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: grid; position: relative; z-index: 2; }
  /* Keep the logo in front of the open menu panel, not under it. */
  .brand { position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0.75rem;
    padding: 6.5rem var(--gutter) 2rem;
    background: var(--sage-100); border-bottom: var(--line);
    transform: translateY(-101%);
    transition: transform var(--dur-base) var(--ease-out);
  }
  .nav .pill { min-height: 3rem; font-size: 1.0625rem; justify-content: flex-start; padding-inline: 1rem; }
  .nav { max-height: 100dvh; overflow-y: auto; }
  /* In the panel the services open in place, under their pill. */
  .nav-drop .pill { width: 100%; }
  .nav-drop-caret { margin-left: auto; }
  .nav-drop-menu { position: static; min-width: 0; margin-top: 0.5rem; box-shadow: none; }
  .nav-drop-menu::before { content: none; }
  .nav-drop-menu a { padding-block: 0.625rem; font-size: 1rem; }
  .nav.is-open { transform: none; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 880px) and (prefers-reduced-motion: reduce) { .nav { transition: none; } }

/* ── Design objects ─────────────────────────────────────────────────────
   fern.js scatters the furniture of a design canvas in here: a browser
   window, pen-tool curves, cursors, a type specimen, a palette, a grid.
   Each pops in, its lines draw themselves, then it drifts. --bg is the
   fill behind the line work, so the same objects work on a dark ground. */

.bits { --bg: var(--oat-50); position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bits--dark { --bg: var(--olive-900); }
.bit {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  color: var(--ink);
  will-change: transform;
  animation: bit-in 640ms var(--ease-spring) both;
  animation-delay: var(--d, 0s);
}
.bits--dark .bit { color: var(--on-dark); opacity: 0.26; }
.bit--card {
  background: var(--bg); border: var(--line); border-color: currentColor;
  border-radius: 9px; box-shadow: 0 2px 0 currentColor;
}
.bit--pill { border-radius: 999px; }
.bit svg { width: 100%; height: 100%; overflow: visible; }
.bit .ln, .bit .handle {
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.bit .ln { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1.1s var(--ease-out) both; animation-delay: calc(var(--d, 0s) + 0.25s); }
.bit .handle { stroke-width: 1; opacity: 0.7; }
.bit .bg { fill: var(--bg); }
.bit .dot { fill: currentColor; }
.bit .fillsoft { fill: var(--sage-200); }
.bit .fillgo { fill: var(--go); }
.bit .col { fill: var(--go); opacity: 0.45; }
.bit .knob { fill: var(--bg); stroke: currentColor; stroke-width: 1.25; }
.bit .anchor { fill: var(--olive-500); stroke: currentColor; stroke-width: 1.25; }
.bit .arrow { fill: var(--bg); stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.bits--dark .bit .fillsoft, .bits--dark .bit .fillgo, .bits--dark .bit .col, .bits--dark .bit .anchor { fill: currentColor; }
.bit .spec { display: grid; place-items: center; line-height: 1; }
.bit .spec b { font-family: var(--font-brand); font-weight: 800; font-size: 1.75em; letter-spacing: -0.03em; }
.bit .spec small { margin-top: 0.3em; font-family: var(--font-mono); font-size: 0.5em; letter-spacing: 0.06em; white-space: nowrap; }
.bit .swatches { display: flex; gap: 0.3125rem; }
.bit .swatches i { width: 1.25em; height: 1.25em; border-radius: 50%; border: 1.5px solid currentColor; }
.bit .toggle { width: 70%; height: 55%; border-radius: 999px; background: var(--go); border: 1.5px solid currentColor; position: relative; }
.bit .toggle i { position: absolute; right: 2px; top: 50%; width: 0.75em; height: 0.75em; margin-top: -0.375em; border-radius: 50%; background: var(--bg); border: 1.5px solid currentColor; }
/* A spacing measure: the red-line a designer draws between two things,
   here in olive. */
.bit .measure {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%;
}
.bit .measure::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-left: 1.5px solid var(--olive-500); border-right: 1.5px solid var(--olive-500);
  height: 0.5rem; margin-top: -0.25rem;
  background: linear-gradient(var(--olive-500), var(--olive-500)) center / 100% 1.5px no-repeat;
}
.bit .measure b {
  position: relative; padding: 0.0625rem 0.375rem; border-radius: 3px;
  background: var(--olive-500); color: var(--oat-50);
  font-family: var(--font-mono); font-size: 0.625em; font-weight: 600;
}
.bit [data-t]::before { content: attr(data-t); }
/* A photograph placed on the canvas as an image layer: framed, with its
   file name above and the four resize handles on its corners. */
.bit--photo { display: block; }
.bit .ph {
  display: block; width: 100%; height: 100%; overflow: hidden;
  border: 1.5px solid currentColor; background: var(--bg);
  box-shadow: 0 10px 22px -12px rgba(31, 38, 22, 0.5);
}
.bit .ph img { width: 100%; height: 100%; object-fit: cover; }
.bit .ph-tag {
  position: absolute; left: -1px; bottom: calc(100% + 5px);
  font-family: var(--font-mono); font-size: 0.625em; font-weight: 600; color: var(--olive-600); white-space: nowrap;
}
.bit .ph-h { position: absolute; width: 7px; height: 7px; background: var(--oat-50); border: 1.25px solid var(--olive-500); }
.bit .ph-h:nth-of-type(1) { left: -4px; top: -4px; }
.bit .ph-h:nth-of-type(2) { right: -4px; top: -4px; }
.bit .ph-h:nth-of-type(3) { left: -4px; bottom: -4px; }
.bit .ph-h:nth-of-type(4) { right: -4px; bottom: -4px; }
/* A phone frame, named like a design tool's frame: a video hero with the
   page's nav, headline, line of copy and button wireframed over it. */
.bit .phone {
  position: relative; display: block; width: 100%; height: 100%; padding: 0.25em;
  border: 1.5px solid currentColor; border-radius: 1.1em; background: var(--bg);
  box-shadow: 0 2px 0 currentColor, 0 10px 22px -12px rgba(31, 38, 22, 0.5);
}
.bit .phone video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0.85em; background: var(--sage-200); }
.bit .phone-ui {
  position: absolute; inset: 0.25em; border-radius: 0.85em;
  display: flex; flex-direction: column; align-items: flex-start; padding: 0 0.6em 0.9em;
  background: linear-gradient(rgba(26, 32, 15, 0.3), transparent 30%, transparent 50%, rgba(26, 32, 15, 0.55));
}
.bit .phone-ui::before {
  content: ""; position: absolute; left: 50%; top: 0.35em; width: 30%; height: 0.4em;
  margin-left: -15%; border-radius: 999px; background: var(--ink);
}
.bit .phone-logo, .bit .phone-menu { position: absolute; top: 1.15em; height: 0.5em; }
.bit .phone-logo { left: 0.6em; width: 32%; border-radius: 2px; background: var(--oat-50); }
.bit .phone-menu {
  right: 0.6em; width: 0.75em;
  background: linear-gradient(var(--oat-50), var(--oat-50)) top / 100% 1.5px no-repeat,
              linear-gradient(var(--oat-50), var(--oat-50)) center / 100% 1.5px no-repeat,
              linear-gradient(var(--oat-50), var(--oat-50)) bottom / 100% 1.5px no-repeat;
}
.bit .phone-h { display: block; height: 0.5em; width: 88%; border-radius: 2px; background: var(--oat-50); }
.bit .phone-h:first-of-type { margin-top: auto; margin-bottom: 0.25em; }
.bit .phone-h + .phone-h { width: 58%; }
.bit .phone-p { display: block; height: 0.25em; width: 72%; margin-top: 0.45em; border-radius: 2px; background: var(--oat-50); opacity: 0.7; }
.bit .phone-btn { display: block; width: 52%; height: 1.05em; margin-top: 0.6em; border-radius: 999px; background: var(--go); border: 1.25px solid var(--ink); }
.bits--dark .bit--photo { display: none; }
@keyframes bit-in { from { opacity: 0; scale: 0.6; } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@media (prefers-reduced-motion: reduce) { .bit, .bit .ln { animation: none; } }

/* ── 1. Hero ────────────────────────────────────────────────────────── */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--sage-100);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
}
.hero-inner {
  min-height: calc(100svh - 6.5rem);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8.5rem var(--gutter) 3rem;
  text-align: center;
}
/* The page's h1 is the small "Web design in Weston-super-Mare" kicker;
   the big headline under it is a paragraph styled as display type. */
.hero-headline {
  margin-top: 0; font-family: var(--font-display); line-height: 1.06; text-wrap: balance; color: var(--ink);
  font-size: var(--text-display);
  font-weight: 450;
  letter-spacing: -0.045em;
  max-width: 15ch; margin-bottom: 2.25rem;
}
/* "Web design in Weston-super-Mare": the h1, set as a kicker. */
.hero .hero-kicker {
  display: block; width: max-content; max-width: 100%; margin: 0 auto 1.25rem; line-height: 1.4;
  position: relative; z-index: 1; padding: 0.25rem 0.625rem; border-radius: 999px; background: var(--sage-100);
}
/* The last words sit in a selection box, handles and all, with the
   element's name tag above it and a cursor that has just let go. */
/* isolation keeps the highlight below the words but inside the box. */
.selected { position: relative; white-space: nowrap; isolation: isolate; }
.sel {
  position: absolute; inset: 0.02em -0.1em -0.06em;
  border: 1.5px solid var(--olive-500);
  pointer-events: none;
  animation: sel-in 520ms 1.45s var(--ease-out) both;
}
/* The words themselves are selected: a lime fill sweeps across behind
   them as the cursor drags from left to right, like selecting text in a
   design tool. It hangs off .selected rather than .sel: the box's own
   animation gives .sel a layer of its own, which would lift the fill
   over the words. */
.selected::before {
  content: ""; position: absolute; inset: 0.02em -0.1em -0.06em; z-index: -1;
  background: rgba(197, 216, 109, 0.9);
  transform-origin: 0 50%;
  animation: sel-sweep 900ms 1.75s cubic-bezier(0.45, 0, 0.25, 1) both;
}
.sel i {
  position: absolute; width: 9px; height: 9px;
  background: var(--oat-50); border: 1.5px solid var(--olive-500);
}
.sel i:nth-child(1) { left: -5px; top: -5px; }
.sel i:nth-child(2) { right: -5px; top: -5px; }
.sel i:nth-child(3) { left: -5px; bottom: -5px; }
.sel i:nth-child(4) { right: -5px; bottom: -5px; }
/* Below the box, not above: above, it would sit on the line before. */
/* The label is drawn from data-label so it isn't part of the h1's text. */
.sel b::before { content: attr(data-label); }
.sel b {
  position: absolute; left: -1.5px; top: 100%; margin-top: 0.4375rem;
  padding: 0.1875rem 0.4375rem; border-radius: 4px;
  background: var(--olive-500); color: var(--oat-50);
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; line-height: 1.2;
}
.sel-cursor {
  position: absolute; right: -1.625rem; bottom: -1.625rem; width: 1.5rem; height: 1.5rem;
  overflow: visible; animation: sel-drag 1250ms 1.4s cubic-bezier(0.45, 0, 0.25, 1) both;
}
.sel-cursor path { fill: var(--oat-50); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
@keyframes sel-in { from { opacity: 0; transform: scale(1.04); } }
@keyframes sel-sweep { from { transform: scaleX(0); } }
/* The cursor arrives at the left edge, then drags right with the fill. */
@keyframes sel-drag {
  0%   { opacity: 0; right: 100%; transform: translate(-0.5rem, 1.5rem); }
  28%  { opacity: 1; right: 100%; transform: none; }
  100% { right: -1.625rem; }
}
@media (prefers-reduced-motion: reduce) { .sel, .selected::before, .sel-cursor { animation: none; } }
@media (max-width: 520px) { .sel b { font-size: 0.5625rem; } .sel-cursor { display: none; } }

.hero-lede { font-size: var(--text-lede); color: var(--ink-muted); max-width: 34rem; margin-bottom: 1.75rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.25rem; }

/* The dock. --p runs 0 → 1 as the hero scrolls away (set by fern.js; 1
   without it), lifting the card up out of the bottom edge and squaring it
   up to full size. */
.dock {
  --p: 1;
  max-width: 68rem; margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: end;
}
.dock-card {
  transform: translateY(calc((1 - var(--p)) * 3.5rem)) scale(calc(0.94 + var(--p) * 0.06));
  transform-origin: 50% 100%;
}
.dock-side {
  font-size: var(--text-sm); color: var(--ink-muted);
}
.dock-side p { max-width: 22rem; margin-bottom: 1rem; }

.picker { display: none; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.js .picker { display: flex; }
.picker-label {
  font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink); margin-right: 0.25rem;
}
.chip {
  min-height: 2.25rem; padding: 0.25rem 0.75rem;
  border: var(--line); border-radius: 999px; background: var(--oat-50);
  font-size: var(--text-xs); font-weight: 500; cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.chip:hover { background: var(--sage-200); }
.chip[aria-pressed="true"] { background: var(--olive-900); color: var(--on-dark); }

.dock-card {
  border: var(--line); border-radius: var(--radius);
  background: var(--sage-300);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dock-top { position: relative; padding: 1.25rem 1.25rem 0; }
.dock-title {
  margin: 0 0 0.75rem; padding-right: 7rem;
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05;
}
.dock-tag {
  position: absolute; top: 1.375rem; right: 1.25rem;
  font-size: var(--text-xs); font-weight: 600;
}
/* The waveform: purely decorative, reshuffled on every pick. */
.bars {
  display: flex; align-items: flex-end; gap: 3px;
  height: 2.5rem; margin-bottom: 0.75rem;
}
.bars i {
  flex: 1; height: var(--h, 40%); min-width: 2px;
  background: var(--ink); opacity: 0.55; border-radius: 1px;
  transition: height 520ms var(--ease-out);
  transition-delay: var(--bd, 0ms);
}
@media (prefers-reduced-motion: reduce) { .bars i { transition: none; } }
.dock-ticks {
  list-style: none; margin: 0 -1.25rem; padding: 0.625rem 1.25rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
  border-top: var(--line);
  font-size: var(--text-xs); line-height: 1.35; font-weight: 500;
}
.dock-ticks li { margin: 0; }
.dock-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: 0; padding: 0.875rem 1.25rem;
  background: var(--oat-300); border-top: var(--line);
  font-weight: 600; font-size: var(--text-sm);
}
.dock-foot-tag { font-weight: 500; font-size: var(--text-xs); white-space: nowrap; }
.dock-card.is-swapping [data-slot] { animation: slot-in 420ms var(--ease-out); }
@keyframes slot-in { from { opacity: 0; transform: translateY(0.5rem); } }
@media (prefers-reduced-motion: reduce) { .dock-card.is-swapping [data-slot] { animation: none; } }

@media (max-width: 820px) {
  .dock { grid-template-columns: 1fr; }
  .dock-side { text-align: center; }
  .dock-side p { margin-inline: auto; }
  .picker { justify-content: center; }
}
@media (max-width: 520px) {
  .dock-ticks { grid-template-columns: 1fr; gap: 0.375rem; }
  .dock-title { padding-right: 0; margin-top: 1.5rem; }
  .dock-tag { top: 1rem; left: 1.25rem; right: auto; font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: 0.1em; text-transform: uppercase; }
  .dock-foot-tag { display: none; }
}

/* ── 2. Statement ───────────────────────────────────────────────────── */

.statement {
  --p: 1;
  position: relative;
  padding: clamp(8rem, 6rem + 8vw, 13rem) 0 var(--section-y);
  background: var(--oat-100);
}
.thread {
  position: absolute; left: 0; top: 1.5rem; width: 100%; height: 13.75rem;
  overflow: visible; pointer-events: none;
}
.thread-line {
  fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p));
}
/* Anchor points on the thread, with their handles out: the line is a
   pen-tool path. The start node sits where the path begins; the mid node
   where it turns, and only shows once the line has reached it. */
.node {
  position: absolute; width: 11px; height: 11px;
  transform: translate(-50%, -50%);
  background: var(--olive-500); border: 1.5px solid var(--ink);
}
.node--start { left: 12.5%; top: calc(1.5rem + 13.75rem * 150 / 220); }
.node--mid {
  left: 46.67%; top: calc(1.5rem + 13.75rem * 70 / 220);
  background: var(--oat-50);
  opacity: clamp(0, (var(--p) - 0.45) * 8, 1);
}
.node .handle {
  position: absolute; left: 50%; top: 50%; height: 1px; width: 15vw;
  background: var(--ink); opacity: 0.6; transform-origin: 0 50%;
}
/* The handle follows the path's own control points, (380,60) to (740,80)
   in the thread's 1200×220 box. */
.node--mid .handle { width: 30vw; transform: translateX(-50%) rotate(2.6deg); transform-origin: 50% 50%; }
.node .knob {
  position: absolute; top: 50%; left: calc(50% + 15vw); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: var(--oat-50); border: 1.25px solid var(--ink);
}
.node--mid .knob { left: calc(50% + 15vw); top: calc(50% + 0.625rem); }
.node--mid .knob--back { left: calc(50% - 15vw); top: calc(50% - 0.625rem); }
.bubble {
  position: absolute; left: 87.5%; top: calc(1.5rem + 13.75rem * 110 / 220);
  display: grid; place-items: center;
  width: 4.5rem; height: 4.5rem; transform: translate(-50%, -115%);
  background: var(--oat-50); border: var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform 460ms var(--ease-spring);
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -7px;
  width: 12px; height: 12px; margin-left: -6px;
  background: var(--oat-50); border-right: var(--line); border-bottom: var(--line);
  transform: rotate(45deg);
}
.bubble svg { width: 2.75rem; height: 2.5rem; }
/* fern.js clears this once the thread arrives, so the bubble pops. */
.statement.is-waiting .bubble { transform: translate(-50%, -115%) scale(0); }
@media (prefers-reduced-motion: reduce) { .bubble { transition: none; } }
@media (max-width: 700px) { .thread, .node, .bubble { display: none; } .statement { padding-top: var(--section-y); } }

.big-line {
  margin: 0 auto 2.25rem; max-width: 26ch;
  font-size: clamp(1.625rem, 1.1rem + 2.4vw, 2.875rem);
  font-weight: 450; line-height: 1.22; letter-spacing: -0.03em; text-align: center;
  text-wrap: balance;
}
/* Words are read in by the scroll: fern.js wraps each in .w and sets its
   --on from 0 to 1. Without that every word is simply ink. Unread words
   start at 55%, not fainter, so even they clear 3:1 as large text. */
.big-line .w { opacity: calc(0.55 + var(--on, 1) * 0.45); transition: opacity 200ms linear; }
/* The lockup, set inline in the sentence: mark, "Weston", tagline. */
.inline-brand {
  display: inline-flex; align-items: center; gap: 0.3em; vertical-align: 0.06em;
  padding: 0.14em 0.45em 0.14em 0.3em; margin-right: 0.1em;
  border: 1.5px solid var(--ink); border-radius: 0.3em;
  background: var(--oat-50); box-shadow: 0 2px 0 var(--ink);
  font-family: var(--font-brand); font-size: 0.7em; line-height: 1; white-space: nowrap;
}
.inline-brand svg { width: 1.2em; height: 1.08em; }
.inline-brand b { font-weight: 800; letter-spacing: -0.02em; }
.inline-brand small { font-size: 0.42em; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-muted); }

/* James's face, set into the statement like a word. */
.face-chip {
  display: inline-block; width: 1.15em; height: 1.15em; margin-left: 0.2em;
  vertical-align: -0.16em; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); rotate: -4deg;
}
.face-chip img { width: 100%; height: 100%; object-fit: cover; }

/* The photo roll, now straight after the statement. */
.roll--top { margin: calc(var(--section-y) * -0.4) 0 clamp(2.5rem, 2rem + 3vw, 4.5rem); background: var(--oat-100); }

/* ── 3. Showcase — the demo window ──────────────────────────────────── */

.showcase { padding-bottom: var(--section-y); background: var(--oat-100); }
/* A design canvas: sage, with the dot grid a design tool draws behind
   an artboard, and the frame's name in the corner. */
.stage {
  position: relative; isolation: isolate; overflow: hidden;
  border: var(--line); border-radius: var(--radius-lg);
  padding: clamp(3.5rem, 2rem + 6vw, 6.5rem) clamp(0.75rem, 0.5rem + 3vw, 4rem);
  background-color: var(--sage-100);
  background-image: radial-gradient(circle, rgba(31, 38, 22, 0.22) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  background-position: 11px 11px;
}
.frame-label {
  position: absolute; left: clamp(1rem, 0.5rem + 2vw, 2rem); top: 1.125rem;
  font-family: var(--font-mono); font-size: var(--text-micro); font-weight: 600;
  letter-spacing: 0.06em; color: var(--olive-600);
}
.frame-label::before { content: "# "; opacity: 0.7; }
/* Annotation notes pinned either side of the window, on wide screens. */
.note {
  position: absolute; z-index: 2; max-width: 11rem;
  padding: 0.5rem 0.75rem; border: var(--line); border-radius: 8px;
  background: var(--go); color: var(--ink); box-shadow: 0 2px 0 var(--ink);
  font-size: var(--text-xs); font-weight: 600; line-height: 1.35;
}
.note::after {
  content: ""; position: absolute; width: 2.25rem; height: 1.5px; background: var(--ink); top: 50%;
}
.note::before {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink); top: 50%; margin-top: -3px;
}
.note--left  { left: clamp(0.75rem, 0.5rem + 1.5vw, 1.75rem); top: 26%; rotate: -2deg; }
.note--left::after  { left: 100%; }
.note--left::before { left: calc(100% + 2.25rem - 3px); }
.note--right { right: clamp(0.75rem, 0.5rem + 1.5vw, 1.75rem); bottom: 22%; rotate: 2deg; }
.note--right::after  { right: 100%; }
.note--right::before { right: calc(100% + 2.25rem - 3px); }
@media (max-width: 1180px) { .note { display: none; } }
/* Leave the notes room either side of the window. */
@media (min-width: 1181px) { .stage .window { max-width: min(54rem, calc(100% - 22rem)); } }

.window {
  position: relative;
  max-width: 54rem; margin-inline: auto;
  background: var(--oat-50); border: var(--line); border-radius: var(--radius);
  box-shadow: 0 28px 50px -24px rgba(31, 38, 22, 0.45);
}
.window-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: var(--line);
}
.window-tabs [role="tab"] {
  position: relative;
  min-height: 3rem; padding: 0.5rem;
  background: none; border: 0; border-right: var(--line); cursor: pointer;
  font-family: var(--font-mono); font-size: var(--text-micro); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
}
.window-tabs [role="tab"]:last-child { border-right: 0; }
.window-tabs [role="tab"]:first-child { border-top-left-radius: calc(var(--radius) - 2px); }
.window-tabs [role="tab"]:last-child { border-top-right-radius: calc(var(--radius) - 2px); }
.window-tabs [role="tab"]:hover { background: var(--oat-200); }
.window-tabs [role="tab"][aria-selected="true"] { background: var(--sage-200); font-weight: 700; }
/* The live tab gets an olive rule along its foot. */
.window-tabs [role="tab"][aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 3px;
  background: var(--olive-500);
}
.window-tabs [role="tab"]:focus-visible { outline-offset: -4px; }

.window-body { padding: clamp(1rem, 0.75rem + 1.5vw, 1.75rem); }
.panel {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 1rem + 1.5vw, 2rem); align-items: center;
}
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: 6px; }
.panel-copy h3 { margin-bottom: 0.5rem; }
.panel-copy p { color: var(--ink-muted); font-size: var(--text-sm); }
@media (max-width: 720px) {
  .panel { grid-template-columns: 1fr; }
  .window-tabs [role="tab"] { font-size: 0.625rem; letter-spacing: 0.06em; padding-inline: 0.25rem; }
}

.scene {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--oat-100); border: var(--line); border-radius: 10px;
}

/* Design: six blocks pop in dashed, then fill with colour. */
.wf {
  position: absolute; border-radius: 4px;
  border: 1.5px solid var(--ink);
  background: var(--c, var(--sage-200));
  animation: wf-in 480ms var(--ease-spring) both, wf-fill 500ms ease both;
  animation-delay: var(--d), calc(var(--d) + 1.5s);
}
.wf-nav  { --d: 0.05s; left: 6%;  top: 6%;  width: 88%; height: 9%;  --c: var(--oat-50); }
.wf-hero { --d: 0.25s; left: 6%;  top: 20%; width: 88%; height: 34%; --c: var(--sage-300); }
.wf-a    { --d: 0.45s; left: 6%;  top: 60%; width: 27%; height: 26%; --c: var(--go); }
.wf-b    { --d: 0.55s; left: 36.5%; top: 60%; width: 27%; height: 26%; --c: var(--sage-200); }
.wf-c    { --d: 0.65s; left: 67%; top: 60%; width: 27%; height: 26%; --c: var(--oat-300); }
.wf-btn  { --d: 0.85s; left: 12%; top: 40%; width: 22%; height: 8%;  --c: var(--olive-900); border-radius: 999px; }
@keyframes wf-in { from { transform: scale(0.4); opacity: 0; } }
@keyframes wf-fill { from { background: transparent; border-style: dashed; } }

/* Build: lines of "code" type themselves out, then the bar fills. */
.scene--build { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.625rem; background: var(--olive-900); border-color: var(--ink); }
.code-l {
  display: block; height: 0.5rem; width: var(--w); border-radius: 3px;
  background: var(--sage-300);
  animation: type 600ms steps(8) both;
}
.code-l:nth-child(1) { animation-delay: 0.1s; background: var(--go); }
.code-l:nth-child(2) { animation-delay: 0.6s; }
.code-l:nth-child(3) { animation-delay: 1.1s; background: var(--oat-300); }
.code-l:nth-child(4) { animation-delay: 1.6s; }
.code-l:nth-child(5) { animation-delay: 2.1s; background: var(--oat-300); }
.code-l:nth-child(6) { animation-delay: 2.6s; background: var(--go); }
.code-l:nth-child(7) { animation-delay: 3.0s; }
.code-l:nth-child(8) { animation-delay: 3.4s; background: var(--oat-300); }
.code-l:nth-child(9) { animation-delay: 3.8s; }
.code-l:nth-child(10) { animation-delay: 4.2s; background: var(--oat-300); }
.code-l:nth-child(11) { animation-delay: 4.6s; background: var(--go); }
.code-l--in  { margin-left: 8%; }
.code-l--in2 { margin-left: 16%; }
@keyframes type { from { width: 0; } }
.build-bar {
  margin-top: auto; height: 0.625rem; border-radius: 999px;
  border: 1.5px solid var(--sage-300); overflow: hidden;
}
.build-bar i { display: block; height: 100%; width: 100%; background: var(--go); animation: fill 4.8s 0.2s ease-in-out both; }
@keyframes fill { from { width: 0; } }

/* SEO: a query types, then a result writes itself underneath. */
.scene--seo { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; background: var(--oat-50); }
.scene--seo > span { display: block; overflow: hidden; white-space: nowrap; }
.serp-q {
  align-self: stretch; margin-bottom: 0.75rem;
  padding: 0.5rem 0.875rem; border: var(--line); border-radius: 999px;
  font-size: var(--text-xs); color: var(--ink-muted);
}
.serp-q::after { content: "|"; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.serp-url::before  { content: "westonwebdesign.co.uk"; }
.serp-t::before    { content: "Web design & SEO in Weston-super-Mare"; }
.serp-url, .serp-t { width: 100%; animation: type 900ms steps(18) both; }
.serp-url { font-size: 0.6875rem; color: var(--ink-muted); animation-delay: 0.3s; }
.serp-t   { font-size: var(--text-sm); font-weight: 600; color: var(--olive-500); animation-delay: 1s; }
.serp-d   { height: 0.5rem; width: 92%; border-radius: 3px; background: var(--oat-300); animation: type 700ms 1.9s steps(10) both; }
.serp-d--2 { width: 64%; animation-delay: 2.5s; }
@media (max-width: 400px) { .serp-t { font-size: var(--text-xs); } }

/* Aftercare: the list ticks itself off. */
.scene--care { padding: 1.25rem; display: grid; align-content: center; gap: 0.75rem; }
.tick-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0.75rem; border: var(--line); border-radius: 8px; background: var(--oat-50);
  font-size: var(--text-sm); font-weight: 500;
}
.tick-row::before {
  content: "✓"; flex: none;
  display: grid; place-items: center; width: 1.375rem; height: 1.375rem;
  border: var(--line); border-radius: 5px; background: var(--go);
  font-size: 0.8125rem; font-weight: 800; line-height: 1;
  animation: tick 360ms var(--ease-spring) both;
}
.tick-row:nth-child(1)::before { animation-delay: 0.4s; }
.tick-row:nth-child(2)::before { animation-delay: 1s; }
.tick-row:nth-child(3)::before { animation-delay: 1.6s; }
.tick-row:nth-child(4)::before { animation-delay: 2.2s; }
@keyframes tick { from { background: transparent; color: transparent; transform: scale(0.6); } }

@media (prefers-reduced-motion: reduce) {
  .wf, .code-l, .build-bar i, .serp-q::after, .serp-url, .serp-t, .serp-d, .tick-row::before { animation: none; }
}

/* The pretend cursor: glides to the next tab and "clicks" it. */
.ghost-cursor {
  position: absolute; left: 0; top: 0; z-index: 3;
  width: 22px; height: 22px; opacity: 0;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2 L 4 19 L 8.5 14.8 L 11.6 21.5 L 14.4 20.2 L 11.4 13.7 L 17.5 13.5 Z' fill='%23FBFAF4' stroke='%231F2616' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: transform 900ms var(--ease-out), opacity 300ms;
  pointer-events: none;
}
.ghost-cursor.is-on { opacity: 1; }
.ghost-cursor.is-click { scale: 0.8; }


/* The four service pages, one card each, under the demo window. */
.svc-links {
  list-style: none; margin: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem;
}
@media (max-width: 960px) { .svc-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.svc-links a {
  display: flex; flex-direction: column; height: 100%; padding-bottom: 1rem;
  background: var(--oat-50); color: var(--ink); text-decoration: none;
  border: var(--line); border-radius: var(--radius); box-shadow: 0 2px 0 var(--ink);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.svc-links a:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.svc-links img { width: 100%; padding: 0.5rem; border-bottom: var(--line); background: var(--sage-100); border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0; }
.svc-links b { margin: 0.875rem 1rem 0.125rem; font-size: var(--text-h3); font-weight: 600; letter-spacing: -0.015em; }
.svc-links b::after { content: " →"; }
.svc-links span { margin: 0 1rem; font-size: var(--text-sm); color: var(--ink-muted); }
@media (prefers-reduced-motion: reduce) { .svc-links a { transition: none; } .svc-links a:hover { transform: none; } }

/* ── 4. Work ────────────────────────────────────────────────────────── */

.work { padding-block: var(--section-y); background: var(--sage-100); border-block: var(--line); }
.work-inner {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center;
}
.work-meta {
  font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-muted);
}
.work-copy > p:not(.work-meta) { color: var(--ink-muted); }
/* A stamp: this one was built from a blank page, not redesigned. */
.work-stamp {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 0.25rem 0 1.25rem;
  padding: 0.3125rem 0.75rem; border: var(--line); border-radius: 999px;
  background: var(--go); box-shadow: 0 2px 0 var(--ink);
  font-size: var(--text-xs); font-weight: 600;
}
.work-stamp::before { content: "✓"; font-weight: 800; }
/* The decisions that went into the build, one per row. */
.made { list-style: none; margin: 1.75rem 0 0; padding: 0; border-top: var(--line); }
.made li {
  display: grid; grid-template-columns: 8rem 1fr; gap: 0.75rem; align-items: baseline;
  margin: 0; padding: 0.75rem 0; border-bottom: 1px solid rgba(31, 38, 22, 0.25);
  font-size: var(--text-sm);
}
.made span { font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: 0.1em; text-transform: uppercase; }
.made b { font-weight: 600; }
@media (max-width: 520px) { .made li { grid-template-columns: 1fr; gap: 0.125rem; } }
.work-visit { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 1.5rem 0 0; }

.browser {
  margin: 0; overflow: hidden;
  border: var(--line); border-radius: var(--radius);
  background: var(--oat-50); box-shadow: var(--shadow);
}
.browser-bar {
  display: flex; align-items: center; gap: 0.375rem;
  padding: 0.625rem 0.875rem; border-bottom: var(--line);
}
.browser-bar i { width: 0.625rem; height: 0.625rem; border-radius: 50%; border: 1.5px solid var(--ink); }
.browser-bar i:first-child { background: var(--go); }
.browser-bar b {
  margin-left: 0.75rem; font-family: var(--font-mono); font-size: var(--text-micro);
  font-weight: 500; color: var(--ink-muted);
}
.browser video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
/* A full-width screen recording keeps its own shape rather than being cropped. */
.browser .browser-video--scroll { height: auto; aspect-ratio: 1280 / 524; object-fit: fill; }
@media (max-width: 860px) { .work-inner { grid-template-columns: 1fr; } }

/* ── 5. The builder — your site, in 3D ──────────────────────────────────
   A browser and a phone built from flat HTML planes in CSS 3D. Every
   size inside the model is in cqi (a hundredth of the stage's width), so
   the whole thing scales as one object. Its colours and type come from
   the same --s-* variables, and the same .look--* classes, as the concept
   brief's live sketch, so a look means the same thing in both places.

   --rx / --ry turn the scene (builder.js sets them; the values here are
   the resting angle, which is all you get without JS). Layers sit a
   hair apart on Z, enough to stop them flickering into each other, and
   "Pull apart" (.is-exploded) spreads them out. Nothing in the model may
   set overflow: hidden, which would flatten its children back into 2D. */

.builder { padding-block: var(--section-y); background: var(--oat-50); border-bottom: var(--line); }

.build {
  display: grid; grid-template-columns: minmax(0, 1fr); max-width: 48rem; margin-inline: auto;
  gap: clamp(1.25rem, 1rem + 2vw, 2.5rem); align-items: start;
}
/* Controls beside the model only once builder.js has shown them;
   without JS the model sits alone, centred. */
@media (min-width: 1001px) {
  .build.is-live { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); max-width: none; }
}

.build-stage {
  position: relative; container-type: inline-size;
  border: var(--line); border-radius: var(--radius-lg);
  padding: 3rem 0 1rem;
  background-color: var(--sage-100);
  background-image: radial-gradient(circle, rgba(31, 38, 22, 0.22) 1.2px, transparent 1.6px);
  background-size: 22px 22px; background-position: 11px 11px;
}
@media (min-width: 1001px) { .build-stage { position: sticky; top: 6.5rem; } }
/* On a tall phone the model stays pinned under the header while the
   controls scroll past, so every tap shows its change. */
@media (max-width: 1000px) and (min-height: 700px) {
  .js .build-stage { position: sticky; top: 5.25rem; z-index: 2; box-shadow: 0 12px 24px -16px rgba(31, 38, 22, 0.5); }
  .build-hint { display: none; }
}

.b3d {
  /* The calm look: the defaults the other looks override. */
  --s-bg: #F6F8F4; --s-ink: #24352A; --s-hero: #DDE7DA; --s-hero-ink: #24352A;
  --s-accent: #4F6B55; --s-accent-ink: #FFFFFF; --s-radius: 8px;
  --s-font: var(--font-body); --s-weight: 500; --s-track: -0.03em; --s-style: normal;
  position: relative; height: 60cqi;
  perspective: 170cqi; perspective-origin: 50% 40%;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.is-live .b3d { cursor: grab; }
.is-dragging .b3d { cursor: grabbing; }
.b3d:focus-visible { outline-offset: -6px; }

.b3d-scene {
  --rx: -10deg; --ry: -24deg; --gap: 0.12cqi;
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  color: var(--s-ink);
  /* Turned, the model's planes can project past the stage onto the
     buttons below. The drag is caught by .b3d itself, so the model
     never needs the pointer. */
  pointer-events: none;
}
.b3d-scene.is-exploded { --gap: 5cqi; }
/* Once someone has hold of it, buttons and keys glide to their angle;
   dragging follows the pointer directly. */
.is-held:not(.is-dragging) .b3d-scene { transition: transform 600ms var(--ease-out); }
.b3d-scene * { transform-style: preserve-3d; }

.b3d-floor {
  position: absolute; left: 50%; top: 50%;
  width: 96cqi; height: 60cqi; margin: -30cqi 0 0 -48cqi;
  transform: translateY(26cqi) rotateX(90deg);
  background: radial-gradient(closest-side, rgba(31, 38, 22, 0.3), rgba(31, 38, 22, 0.08) 60%, transparent);
}

/* The homepage on a laptop-sized browser. */
.b3d-desk, .b3d-sheets {
  position: absolute; left: 50%; top: 50%;
  width: 62cqi; height: 40cqi; margin: -21cqi 0 0 -36cqi;
}
.b3d-layer {
  position: absolute;
  transform: translateZ(calc(var(--z) * var(--gap)));
  transition: transform 700ms var(--ease-spring), outline-color 300ms, background-color 400ms, color 400ms;
  outline: 0.25cqi dashed transparent; outline-offset: 0.4cqi;
}
.b3d-frame {
  inset: 0; background: var(--s-bg);
  border: 0.25cqi solid var(--ink); border-radius: 1.4cqi;
  box-shadow: 0 3cqi 6cqi -3cqi rgba(31, 38, 22, 0.45);
}
.b3d-bar {
  display: flex; align-items: center; gap: 0.6cqi; height: 3.2cqi; padding: 0 1.4cqi;
  border-bottom: 0.2cqi solid rgba(127, 127, 127, 0.35); background: rgba(127, 127, 127, 0.12);
  border-radius: 1.2cqi 1.2cqi 0 0;
}
.b3d-bar i { width: 0.9cqi; height: 0.9cqi; border-radius: 50%; background: currentColor; opacity: 0.4; }
.b3d-bar span {
  margin-left: 1cqi; padding: 0.2cqi 1.2cqi; border-radius: 99px; background: rgba(127, 127, 127, 0.16);
  font-family: var(--font-mono); font-size: 1.05cqi; white-space: nowrap;
}
.b3d-nav {
  left: 2.4cqi; right: 2.4cqi; top: 4.6cqi; height: 3.4cqi;
  display: flex; align-items: center; gap: 1.6cqi;
}
.b3d-nav b, .b3d-phone-nav b {
  margin-right: auto; font-family: var(--s-font); font-weight: var(--s-weight); letter-spacing: var(--s-track);
  font-size: 1.7cqi; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%;
}
.b3d-links { display: flex; gap: 1.6cqi; }
.b3d-links span { font-size: 1.1cqi; font-weight: 500; opacity: 0.75; white-space: nowrap; }
.b3d-hero {
  left: 2.4cqi; right: 2.4cqi; top: 9.4cqi; height: 16.4cqi;
  display: flex; align-items: center; justify-content: space-between; gap: 2cqi;
  padding: 0 3cqi; background: var(--s-hero); color: var(--s-hero-ink); border-radius: var(--s-radius);
}
.b3d-hero-copy { max-width: 70%; }
.b3d-h {
  margin: 0 0 0.8cqi; font-family: var(--s-font); font-weight: var(--s-weight); font-style: var(--s-style);
  font-size: 3.7cqi; line-height: 1.02; letter-spacing: var(--s-track);
}
.b3d-p { margin: 0 0 1.4cqi; font-size: 1.35cqi; line-height: 1.35; opacity: 0.85; }
.b3d-btn {
  display: inline-block; padding: 0.7cqi 1.5cqi; border-radius: var(--s-radius);
  background: var(--s-accent); color: var(--s-accent-ink); font-size: 1.2cqi; font-weight: 700; white-space: nowrap;
  transition: background-color 400ms, color 400ms;
}
.look--calm .b3d-btn, .look--warm .b3d-btn { border-radius: 99px; }
.b3d-art { flex: none; width: 10cqi; height: 10cqi; opacity: 0.9; }
.b3d-art svg { width: 100%; height: 100%; }
.b3d-cards {
  left: 2.4cqi; right: 2.4cqi; top: 27.4cqi; height: 7.6cqi;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4cqi;
}
.b3d-cards span {
  display: flex; align-items: flex-end; padding: 1cqi 1.2cqi;
  border-radius: var(--s-radius); background: rgba(127, 127, 127, 0.14);
  font-size: 1.15cqi; font-weight: 600;
}
.b3d-foot {
  left: 2.4cqi; right: 2.4cqi; top: 36.4cqi; height: 2cqi;
  display: flex; align-items: center; gap: 1.2cqi; border-top: 0.15cqi solid rgba(127, 127, 127, 0.4);
}
.b3d-foot i { width: 5cqi; height: 0.5cqi; border-radius: 1cqi; background: currentColor; opacity: 0.25; }

/* Pulled apart: each layer gets a dashed outline and its name, the way
   a design tool shows them. */
.b3d-layer[data-layer]::before {
  content: attr(data-layer);
  position: absolute; left: 0; top: -2.6cqi;
  padding: 0.2cqi 0.8cqi; border-radius: 0.6cqi;
  background: var(--ink); color: var(--oat-50);
  font-family: var(--font-mono); font-size: 1.05cqi; font-weight: 600; font-style: normal; letter-spacing: 0.04em;
  opacity: 0; transition: opacity 300ms;
}
.is-exploded .b3d-layer[data-layer] { outline-color: var(--olive-500); }
.is-exploded .b3d-layer[data-layer]::before { opacity: 1; }
.is-exploded .b3d-nav { background: var(--s-bg); }

/* The other pages, as sheets stacked behind. */
.b3d-sheet {
  position: absolute; inset: 0;
  padding: 4.4cqi 2.4cqi 0;
  background: var(--s-bg); border: 0.25cqi solid var(--ink); border-radius: 1.4cqi;
  transform: translate3d(calc(var(--i) * 2.2cqi), calc(var(--i) * -1.8cqi), calc(var(--i) * -2.6cqi));
  transition: transform 700ms var(--ease-spring), background-color 400ms;
}
.is-exploded .b3d-sheet { transform: translate3d(calc(var(--i) * 3cqi), calc(var(--i) * -2.4cqi), calc(var(--i) * -7cqi)); }
.b3d-sheet b {
  /* Each page's tab sits a little further along, like folder tabs. */
  position: absolute; left: calc(14cqi + var(--i) * 4.8cqi); top: -0.25cqi; transform: translateY(-100%);
  padding: 0.3cqi 1.2cqi; border: 0.25cqi solid var(--ink); border-bottom: 0; border-radius: 0.8cqi 0.8cqi 0 0;
  background: var(--go); color: var(--ink); font-size: 1.15cqi; font-weight: 700; white-space: nowrap;
}
.b3d-sheet i { display: block; height: 1cqi; margin-bottom: 1.2cqi; border-radius: 1cqi; background: currentColor; opacity: 0.14; }
.b3d-sheet i:first-of-type { width: 40%; height: 2.4cqi; opacity: 0.22; }
.b3d-sheet i:nth-of-type(2) { width: 80%; }
.b3d-sheet i:nth-of-type(3) { width: 64%; }

/* The phone, standing in front and to the right. */
.b3d-phone {
  position: absolute; left: 50%; top: 50%;
  width: 15cqi; height: 30cqi; margin: -11cqi 0 0 19cqi;
  padding: 1cqi; border-radius: 2.6cqi; background: var(--ink);
  transform: translateZ(12cqi) rotateY(-10deg);
  box-shadow: 0 3cqi 5cqi -2cqi rgba(31, 38, 22, 0.5);
}
.b3d-phone-screen {
  height: 100%; padding: 1.6cqi 1.1cqi; border-radius: 1.8cqi;
  background: var(--s-bg); color: var(--s-ink);
  transition: background-color 400ms, color 400ms;
}
.b3d-phone-nav { display: flex; align-items: center; gap: 1cqi; margin-bottom: 1.2cqi; }
.b3d-phone-nav b { font-size: 1.2cqi; max-width: 80%; }
.b3d-phone-nav i { width: 2cqi; height: 1cqi; border-block: 0.25cqi solid currentColor; opacity: 0.6; }
.b3d-phone-hero {
  padding: 2cqi 1.2cqi; margin-bottom: 1cqi; border-radius: var(--s-radius);
  background: var(--s-hero); color: var(--s-hero-ink);
  transition: background-color 400ms, color 400ms;
}
.b3d-phone-hero .b3d-h { font-size: 2.2cqi; margin-bottom: 1.2cqi; overflow-wrap: anywhere; }
.b3d-phone-hero .b3d-btn { font-size: 0.95cqi; padding: 0.6cqi 1.1cqi; }
.b3d-phone-card { display: block; height: 4.6cqi; margin-bottom: 0.9cqi; border-radius: var(--s-radius); background: rgba(127, 127, 127, 0.14); }

@media (prefers-reduced-motion: reduce) {
  .is-held:not(.is-dragging) .b3d-scene, .b3d-layer, .b3d-sheet, .b3d-btn, .b3d-phone-screen, .b3d-phone-hero,
  .b3d-layer[data-layer]::before { transition: none; }
}

.build-tools {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  padding: 0 1rem; margin-top: -0.5rem;
}
.build-tools[hidden], .build-hint[hidden] { display: none; }
.build-tools .pill { min-width: 2.5rem; }
.build-tools [aria-hidden="true"] { font-size: 1.125rem; line-height: 1; }
.build-tools [aria-pressed="true"] { background: var(--olive-900); color: var(--on-dark); }
.build-hint {
  margin: 0.625rem 0 0; text-align: center;
  font-family: var(--font-mono); font-size: var(--text-micro); color: var(--olive-600); letter-spacing: 0.04em;
}
.is-held .build-hint { visibility: hidden; }

/* The controls: radios and ticks drawn as chips, the real input kept in
   the label for keyboards and screen readers. */
.build-controls {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: #fff; border: var(--line); border-radius: var(--radius-lg); box-shadow: 0 2px 0 var(--ink);
}
.build-controls[hidden] { display: none; }
.bgroup { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; }
.bgroup > legend { padding: 0; margin-bottom: 0.5rem; font-size: var(--text-sm); font-weight: 600; }
.bchips, .bswatches { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.bchip, .bswatch { position: relative; cursor: pointer; }
.bchip input, .bswatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bchip span, .bswatch span {
  display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.25rem; padding: 0.25rem 0.75rem;
  border: 1.5px solid rgba(31, 38, 22, 0.45); border-radius: 999px; background: #fff;
  font-size: var(--text-xs); font-weight: 600;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.bchip:hover span, .bswatch:hover span { border-color: var(--ink); }
.bchip input:checked + span, .bswatch input:checked + span { background: var(--olive-900); border-color: var(--olive-900); color: var(--on-dark); }
.bchip--tick span::before { content: "+"; font-weight: 700; }
.bchip--tick input:checked + span::before { content: "✓"; color: var(--go); }
.bswatch span::before {
  content: ""; width: 1.125rem; height: 1.125rem; flex: none; border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%);
}
.bchip input:focus-visible + span, .bswatch input:focus-visible + span { outline: 3px solid var(--olive-500); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .bchip span, .bswatch span { transition: none; } }
.bown { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.625rem; }
.bown[hidden] { display: none; }
.build-controls .field label { font-size: var(--text-sm); }
.build-send { padding-top: 0.25rem; }
.build-note { margin: 0.625rem 0 0; font-size: var(--text-xs); color: var(--ink-muted); text-align: center; }

.build-nojs {
  grid-column: 1 / -1; margin: 0; text-align: center; color: var(--ink-muted);
}
.js .build-nojs { display: none; }

/* ── 6. Process — the sideways run ──────────────────────────────────────
   Resting state (no JS, narrow screens, reduced motion): the cards are a
   row you swipe. fern.js adds .is-pinned above 900px, sizes the section
   to the track's overflow, and slides the track with --x. */

.process { background: var(--oat-100); padding-block: var(--section-y); }
.run-stage {
  max-width: 90rem; margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center;
}
.run-intro h2 { margin-bottom: 0.75rem; }
.run-intro .lede { margin-bottom: 0.75rem; }
.run-viewport {
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  padding: 0.5rem 0.25rem 1.25rem;
}
.run-track {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1rem; width: max-content;
}
.step {
  --bg: var(--sage-400); --fg: var(--ink);
  position: relative; flex: none; scroll-snap-align: start;
  width: clamp(15rem, 12rem + 8vw, 18.5rem); min-height: 26rem; margin: 0;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg);
  border: var(--line); border-radius: var(--radius); overflow: hidden;
}
.step--sage  { --bg: var(--sage-400); }
.step--olive { --bg: var(--olive-500); --fg: var(--oat-50); }    /* 5.6:1 */
.step--clay  { --bg: var(--clay);      --fg: var(--oat-50); }    /* 6.0:1 */
.step--moss  { --bg: var(--olive-900); --fg: var(--oat-50); }
.step--mist  { --bg: var(--sage-200); }
.step--lime  { --bg: var(--go); }
.step-num {
  position: absolute; top: 0.875rem; left: 0.875rem;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  background: var(--oat-50); color: var(--ink);
  border: var(--line); border-radius: 7px;
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600;
}
.step-art {
  flex: 1; width: 78%; margin: 3.5rem auto 1rem; overflow: visible;
}
.step-art * {
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
/* pathLength is set by fern.js so a dasharray of 1 means "the whole line". */
.js .run .step:not(.is-in) .step-art * { stroke-dashoffset: 1; }
.js .run .step-art * { transition: stroke-dashoffset 1.4s var(--ease-out); }
.js .run .step-art *:nth-child(2) { transition-delay: 0.3s; }
.js .run .step-art *:nth-child(3) { transition-delay: 0.6s; }
@media (prefers-reduced-motion: reduce) {
  .js .run .step:not(.is-in) .step-art * { stroke-dashoffset: 0; }
  .js .run .step-art * { transition: none; }
}
.step-foot { padding: 0.875rem 1rem 1rem; border-top: 1.5px solid currentColor; }
.step-foot h3 { margin-bottom: 0.375rem; }
.step-foot p { font-size: var(--text-xs); line-height: 1.5; margin: 0; }

.run.is-pinned { height: var(--run-h, 300vh); }
.run.is-pinned .run-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
}
.run.is-pinned .run-viewport { overflow: clip; scroll-snap-type: none; }
.run.is-pinned .run-track { transform: translate3d(calc(var(--x, 0) * -1px), 0, 0); will-change: transform; }
.process:has(.run.is-pinned) { padding-block: 0; }

@media (max-width: 900px) {
  .run-stage { grid-template-columns: 1fr; padding-inline: 0; }
  .run-intro { padding-inline: var(--gutter); }
  .run-viewport { padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .step { min-height: 23rem; }
}

/* ── 7. Meet James — the question map ───────────────────────────────── */

.james { padding-block: var(--section-y); background: var(--oat-100); border-top: var(--line); overflow: hidden; }
.meet { font-size: clamp(3rem, 1.5rem + 6.5vw, 6.5rem); font-weight: 450; letter-spacing: -0.05em; margin-bottom: 0.5rem; }
.meet-sub { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); line-height: 1.2; letter-spacing: -0.025em; margin-bottom: 1.25rem; }
.underline { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--olive-500); }

/* ── The photo roll ──
   Polaroid-ish prints drifting sideways, each at its own small tilt.
   --roll is one list's width; the track moves by exactly that, so the
   second copy lands where the first began. */
.roll {
  overflow: hidden; margin: 0.5rem 0 3rem; padding-block: 1.25rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.roll-track { display: flex; width: max-content; animation: roll 48s linear infinite; }
.roll:hover .roll-track, .roll:focus-within .roll-track, .roll:focus .roll-track { animation-play-state: paused; }
.roll:focus-visible { outline-offset: -3px; }
.roll-list { display: flex; gap: 1.5rem; margin: 0; padding: 0 0.75rem; list-style: none; }
@keyframes roll { to { transform: translateX(calc(-100% / 3)); } }
.snap { margin: 0; flex: none; }
.snap figure {
  margin: 0; padding: 0.625rem 0.625rem 0.75rem; width: clamp(13rem, 10rem + 8vw, 18rem);
  background: var(--oat-50); border: var(--line); border-radius: 6px;
  box-shadow: 0 16px 30px -18px rgba(31, 38, 22, 0.55);
}
.snap img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.snap--1 img, .snap--3 img { aspect-ratio: 4 / 3.4; }
.snap figcaption {
  margin-top: 0.625rem; font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.35; color: var(--ink);
}
.snap--0 figure { rotate: -2.5deg; }
.snap--1 figure { rotate: 1.5deg; margin-top: 2.25rem; }
.snap--2 figure { rotate: -1deg; }
.snap--3 figure { rotate: 2.5deg; margin-top: 1.5rem; }
/* Reduced motion: a still row you can swipe, with only the first copy. */
@media (prefers-reduced-motion: reduce) {
  .roll { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .roll-track { animation: none; }
  .roll-list[aria-hidden="true"] { display: none; }
}

/* The ask bar: a question box with a few to try. JS only. */
.ask { display: none; max-width: 40rem; margin: 0 auto 2rem; }
.js .ask { display: block; }
.ask-label {
  display: block; margin-bottom: 0.5rem; text-align: center;
  font-family: var(--font-brand); font-size: var(--text-micro); font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--olive-600);
}
.ask-row {
  display: flex; gap: 0.5rem; padding: 0.375rem;
  background: var(--oat-50); border: var(--line); border-radius: 12px; box-shadow: 0 2px 0 var(--ink);
}
.ask-input {
  flex: 1; min-width: 0; min-height: 2.75rem; padding: 0 0.75rem;
  background: transparent; border: 0; border-radius: 8px;
  font: inherit; font-size: 1rem; color: var(--ink);
}
.ask-input::placeholder { color: #6A7358; }
.ask-input:focus-visible { outline: 2px solid var(--olive-500); outline-offset: 0; }
.ask-row .pill { box-shadow: none; }
.ask-try { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.375rem; margin-top: 0.75rem; }
.ask-try-label {
  font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-muted); margin-right: 0.25rem;
}
.ask-result { margin-top: 1rem; text-align: center; font-size: var(--text-sm); }
.ask-result:empty { display: none; }
.ask-result p { margin: 0 auto 0.75rem; max-width: 32rem; color: var(--ink-muted); }
.ask-result b { color: var(--ink); }

.map-tools {
  display: none; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
  max-width: 70rem; margin: 0 auto 0.5rem;
}
.js .map-tools { display: flex; }
.topics { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tidy { background: none; border: 0; padding: 0.5rem 0; cursor: pointer; }
@media (max-width: 900px) { .tidy { display: none; } .map-tools { justify-content: center; } .topics { justify-content: center; } }

.map { position: relative; height: 40rem; max-width: 70rem; margin: 1rem auto 0; }
.map-strings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.map-strings path { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; opacity: 0.75; transition: stroke 200ms, stroke-width 200ms; }
/* The open card's string runs in olive, with the dashes flowing toward it. */
.map-strings path.is-hit {
  stroke: var(--olive-500); stroke-width: 2.25; opacity: 1;
  stroke-dasharray: 7 6; animation: flow 900ms linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -13; } }
@media (prefers-reduced-motion: reduce) { .map-strings path.is-hit { animation: none; } }

.map-hub {
  position: absolute; left: 50%; top: 46%; z-index: 1;
  width: 10.5rem; margin: 0; transform: translate(-50%, -50%);
  padding: 0.5rem; background: var(--sage-200);
  border: var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.map-hub img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: var(--line); }
.map-status {
  display: flex; align-items: center; justify-content: center; gap: 0.375rem;
  margin-top: 0.5rem; font-size: 0.6875rem; font-weight: 600; line-height: 1.25; text-align: center;
}
.map-status i {
  flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--olive-500); box-shadow: 0 0 0 3px rgba(94, 110, 46, 0.25);
  animation: live 2s ease-in-out infinite;
}
@keyframes live { 50% { box-shadow: 0 0 0 6px rgba(94, 110, 46, 0); } }
@media (prefers-reduced-motion: reduce) { .map-status i { animation: none; } }

/* A collaborator's cursor, the way a shared design file shows who is
   looking at what. It rests by the photo and glides to the open card. */
.map-cursor {
  position: absolute; left: 0; top: 0; z-index: 60;
  display: none; align-items: flex-start; gap: 0.125rem;
  pointer-events: none;
  transition: transform 700ms var(--ease-out);
}
.map.is-live .map-cursor { display: flex; }
.map-cursor svg { width: 1.375rem; height: 1.375rem; overflow: visible; margin: -2px 0 0 -4px; }
.map-cursor path { fill: var(--go); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.map-cursor b {
  margin-top: 1rem; padding: 0.1875rem 0.5rem; border-radius: 4px;
  background: var(--olive-500); color: var(--oat-50);
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600;
}
@media (prefers-reduced-motion: reduce) { .map-cursor { transition: none; } }

.qa {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  width: min(19rem, 28%);
  background: var(--oat-50); border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  font-size: var(--text-sm);
}
.qa[hidden] { display: none; }
.qa h3 { margin: 0; font-size: var(--text-sm); font-weight: 600; letter-spacing: -0.005em; }
.qa-q {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  width: 100%; min-height: 2.75rem; padding: 0.625rem 0.875rem;
  background: var(--sage-300); border: 0; border-bottom: var(--line);
  font: inherit; font-weight: 600; text-align: left; color: var(--ink); cursor: pointer;
}
.qa-q:hover { background: var(--sage-200); }
.qa-q:focus-visible { outline-offset: -4px; }
/* Plus becomes minus when the card is open. Without JS there's no
   toggling, so the sign is hidden and every answer shows. */
.qa-plus { display: none; position: relative; flex: none; width: 0.75rem; height: 0.75rem; }
.js .qa-plus { display: block; }
.qa-plus::before, .qa-plus::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px;
  background: currentColor; transition: transform var(--dur-base) var(--ease-out);
}
.qa-plus::after { transform: rotate(90deg); }
.qa.is-open .qa-plus::after { transform: rotate(0deg); }
.js .qa:not(.is-open) .qa-q { border-bottom: 0; }
.js .qa:not(.is-open) .qa-body { display: none; }
.qa.is-open .qa-body { animation: slot-in 360ms var(--ease-out); }
.qa p { margin: 0.75rem 0.875rem; color: var(--ink-muted); line-height: 1.5; }
.qa .qa-aside {
  margin-top: 0; padding: 0.5rem 0.75rem;
  border: 1px solid rgba(31, 38, 22, 0.35); border-radius: 8px;
  color: var(--ink); font-size: var(--text-xs);
}
/* A ring pulses round a card when the ask bar picks it. */
.qa.is-hit { animation: hit 900ms var(--ease-out); }
@keyframes hit { 0% { box-shadow: 0 0 0 0 rgba(197, 216, 109, 0.9), var(--shadow); } 100% { box-shadow: 0 0 0 16px rgba(197, 216, 109, 0), var(--shadow); } }
@media (prefers-reduced-motion: reduce) { .qa.is-hit, .qa.is-open .qa-body { animation: none; } .qa-plus::before, .qa-plus::after { transition: none; } }

/* Draggable only once fern.js has wired it up. */
.map.is-live .qa { cursor: grab; touch-action: none; transition: box-shadow var(--dur-fast), rotate var(--dur-fast); }
.map.is-live .qa.is-dragging { cursor: grabbing; user-select: none; rotate: -1.5deg; box-shadow: 0 30px 50px -20px rgba(31, 38, 22, 0.55); }
.map.is-tidying .qa { transition: left 600ms var(--ease-out), top 600ms var(--ease-out); }
.map-hint {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  margin: 0; white-space: nowrap; font-family: var(--font-mono); font-size: var(--text-micro);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted);
  display: none;
}
.map.is-live .map-hint { display: block; }

@media (max-width: 900px) {
  .map { height: auto; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
  .map-strings, .map-cursor, .map-hint { display: none !important; }
  .map-hub { position: relative; left: auto; top: auto; transform: none; margin-bottom: 1rem; }
  .qa { position: relative; left: auto; top: auto; width: 100%; max-width: 30rem; }
}

/* ── 8. Contact — two ways in ───────────────────────────────────────── */

.contact {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: var(--section-y);
  background: var(--olive-900); color: var(--on-dark);
}
.contact-head { text-align: center; max-width: 44rem; margin: 0 auto 2rem; }
.contact h2 { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); letter-spacing: -0.045em; }
.contact .lede { color: var(--on-dark-muted); margin-inline: auto; }
.contact-email {
  display: inline-block; color: var(--olive-700);
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.25rem); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
  word-break: break-word;
}
.contact-email:hover { color: var(--ink); }
.contact-note { margin-top: 0.5rem; color: var(--ink-muted); font-size: var(--text-sm); }
.contact :focus-visible { outline-color: var(--go); }

/* Three short reassurances under the lede, ticked in the bright note. */
.contact-promises {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem;
  margin: 1.25rem 0 0; padding: 0; list-style: none;
  font-size: var(--text-sm); font-weight: 600; color: var(--on-dark);
}
.contact-promises li { display: inline-flex; align-items: center; gap: 0.4rem; }
.contact-promises li::before {
  content: ""; width: 0.75rem; height: 0.4rem; flex: none;
  border: solid var(--go); border-width: 0 0 2px 2px;
  transform: translateY(-0.15rem) rotate(-45deg);
}

/* The switch: two big cards. Without JS they're just labels over the two
   panels, which both show. */
.paths {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
  max-width: 46rem; margin: 0 auto 1.5rem;
}
.path {
  display: flex; align-items: center; gap: 0.875rem; text-align: left;
  padding: 0.875rem 1rem; min-height: 4.5rem;
  background: rgba(244, 242, 232, 0.06); color: var(--on-dark);
  border: 1.5px solid rgba(244, 242, 232, 0.35); border-radius: 12px;
  cursor: pointer; font: inherit;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.path:hover { background: rgba(244, 242, 232, 0.12); }
.path b { display: block; font-size: 1.0625rem; font-weight: 600; }
.path small { display: block; margin-top: 0.125rem; font-size: var(--text-xs); color: var(--on-dark-muted); }
.path[aria-selected="true"] {
  background: var(--oat-50); color: var(--ink); border-color: var(--ink);
  box-shadow: 0 4px 0 var(--go);
}
.path[aria-selected="true"] small { color: var(--ink-muted); }
.path-icon {
  display: grid; place-items: center; flex: none;
  width: 2.75rem; height: 2.75rem; border-radius: 10px;
  background: var(--sage-200); border: 1.5px solid currentColor;
}
.path-icon svg { width: 1.875rem; height: 1.7rem; --mark-w: 34px; }
.path:not([aria-selected="true"]) .path-icon { background: transparent; --mark: var(--on-dark); }
/* A folded note for "just send a message". */
.path-icon--note::before {
  content: ""; width: 1.25rem; height: 0.875rem;
  border: 1.5px solid currentColor; border-radius: 2px;
  background: linear-gradient(to bottom right, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 0.5px), transparent calc(50% + 0.5px)) left / 50% 100% no-repeat,
              linear-gradient(to bottom left, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 0.5px), transparent calc(50% + 0.5px)) right / 50% 100% no-repeat;
}
@media (max-width: 560px) { .paths { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .path { transition: none; } }

.path-panel[hidden] { display: none; }
.path-panel + .path-panel { margin-top: 2rem; }
.js .path-panel + .path-panel { margin-top: 0; }

/* Shared card look for both forms. */
.wizard, .brief, .message {
  background: var(--oat-50); color: var(--ink);
  border: var(--line); border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0 var(--go);
}
.wizard :focus-visible, .brief :focus-visible, .message :focus-visible { outline-color: var(--olive-500); }

/* ── The concept brief ── */
.concept {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start;
  max-width: 68rem; margin-inline: auto;
}
@media (max-width: 960px) { .concept { grid-template-columns: 1fr; } }
.wizard { padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }

.progress {
  list-style: none; margin: 0 0 1.75rem; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.375rem;
}
.progress li { margin: 0; }
.progress button {
  display: flex; align-items: center; gap: 0.5rem; width: 100%;
  padding: 0.5rem 0.25rem 0.625rem; background: none; border: 0; border-bottom: 3px solid var(--oat-300);
  font: inherit; font-size: var(--text-xs); font-weight: 600; color: var(--ink-muted); text-align: left;
  cursor: pointer;
}
.progress button:disabled { cursor: default; }
.progress i {
  display: grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  border: 1.5px solid currentColor; font-style: normal; font-size: 0.75rem;
}
.progress .is-done button { color: var(--ink); border-bottom-color: var(--olive-500); }
.progress .is-done i { background: var(--olive-500); border-color: var(--olive-500); color: var(--oat-50); }
.progress button[aria-current="step"] { color: var(--ink); border-bottom-color: var(--ink); }
.progress button[aria-current="step"] i { background: var(--go); border-color: var(--ink); }
.progress { display: none; }
.js .wizard.is-stepped .progress { display: grid; }
@media (max-width: 560px) { .progress button { font-size: 0; gap: 0; justify-content: center; } .progress i { font-size: 0.75rem; } }

.qstep { border: 0; margin: 0 0 1.5rem; padding: 0; min-width: 0; }
.js .wizard.is-stepped .qstep:not(.is-current) { display: none; }
.js .wizard.is-stepped .qstep.is-current { animation: slot-in 380ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .js .wizard.is-stepped .qstep.is-current { animation: none; } }
.qstep > legend {
  display: block; width: 100%; padding: 0; margin-bottom: 1.25rem;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15;
}
.qstep > legend:focus { outline: none; }
.step-count {
  display: block; margin-bottom: 0.375rem;
  font-family: var(--font-brand); font-size: var(--text-micro); font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive-600);
}
.group { border: 0; margin: 0 0 1.375rem; padding: 0; min-width: 0; }
.group > legend { padding: 0; margin-bottom: 0.625rem; font-size: var(--text-sm); font-weight: 600; }
.group-hint { margin: -0.25rem 0 0.75rem; font-size: var(--text-xs); color: var(--ink-muted); }
.opt { font-weight: 400; color: var(--ink-muted); font-size: var(--text-xs); margin-left: 0.25rem; }

.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: 0.375rem; font-size: var(--text-sm); font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.input {
  width: 100%; min-height: 2.875rem; padding: 0.625rem 0.875rem;
  background: #fff; color: var(--ink);
  border: var(--line); border-radius: 8px;
  font: inherit; font-size: 1rem;
}
select.input { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231F2616' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 0.875rem center / 0.75rem; padding-right: 2.5rem; }
.input::placeholder { color: #6A7358; }
.input:focus-visible { outline-offset: 1px; }
.input[aria-invalid="true"], .brief.was-submitted .input:invalid { border-color: var(--clay); background: var(--clay-100); }
textarea.input { resize: vertical; min-height: 6rem; }

/* Choices: radios and ticks drawn as cards. The real input stays in the
   label, visually hidden, so keyboard and screen readers get the native
   control. */
.choices { display: grid; gap: 0.5rem; }
.choices--row { display: flex; flex-wrap: wrap; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input, .look input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-card {
  display: block; padding: 0.625rem 0.875rem 0.625rem 2.375rem; position: relative;
  background: #fff; border: 1.5px solid rgba(31, 38, 22, 0.45); border-radius: 10px;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.choices--row .choice-card { padding-block: 0.5rem; border-radius: 999px; }
.choice-card b { display: block; font-size: var(--text-sm); font-weight: 600; }
.choice-card small { display: block; margin-top: 0.1875rem; font-size: var(--text-xs); line-height: 1.45; color: var(--ink-muted); }
.choice-card::before {
  content: ""; position: absolute; left: 0.875rem; top: 0.75rem;
  width: 1rem; height: 1rem; border-radius: 50%;
  border: 1.5px solid var(--ink); background: #fff;
}
.choices--row .choice-card::before { top: 50%; margin-top: -0.5rem; }
.choice--tick .choice-card::before { border-radius: 4px; }
.choice:hover .choice-card { border-color: var(--ink); }
.choice input:checked + .choice-card { border-color: var(--ink); background: var(--sage-100); box-shadow: 0 2px 0 var(--ink); }
.choice input:checked + .choice-card::before { background: var(--olive-500); box-shadow: inset 0 0 0 3px #fff; }
.choice--tick input:checked + .choice-card::before {
  background: var(--olive-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.5l2.2 2.2 4.8-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
  box-shadow: none;
}
.choice input:focus-visible + .choice-card, .look input:focus-visible + .look-card { outline: 3px solid var(--olive-500); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .choice-card { transition: none; } }

/* The four looks, each with a tiny specimen of itself. */
.looks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.625rem; }
@media (max-width: 640px) { .looks { grid-template-columns: 1fr 1fr; } }
.look { position: relative; cursor: pointer; }
.look-card {
  display: block; height: 100%; padding: 0.5rem 0.5rem 0.75rem;
  background: #fff; border: 1.5px solid rgba(31, 38, 22, 0.45); border-radius: 12px;
}
.look-card b { display: block; margin: 0.5rem 0.25rem 0.125rem; font-size: var(--text-sm); font-weight: 600; line-height: 1.25; }
.look-card small { display: block; margin: 0 0.25rem; font-size: 0.75rem; line-height: 1.35; color: var(--ink-muted); }
.look:hover .look-card { border-color: var(--ink); }
.look input:checked + .look-card { border-color: var(--ink); background: var(--sage-100); box-shadow: 0 3px 0 var(--ink); }
.look-swatch {
  display: grid; place-items: center; height: 4rem; border-radius: 8px; position: relative; overflow: hidden;
}
.look-swatch i { font-style: normal; font-size: 1.75rem; }
.look-swatch i::before { content: attr(data-t); }
.look-swatch--calm    { background: #EEF2EC; color: #24352A; }
.look-swatch--calm i  { font-family: var(--font-body); font-weight: 400; letter-spacing: -0.02em; }
.look-swatch--bold    { background: #FFD23F; color: #141414; border-radius: 0; }
.look-swatch--bold i  { font-family: var(--font-body); font-weight: 800; letter-spacing: -0.06em; font-size: 2rem; }
.look-swatch--warm    { background: #FBE7D3; color: #7A3419; border-radius: 16px; }
.look-swatch--warm i  { font-family: var(--font-brand); font-weight: 800; }
.look-swatch--classic { background: #1B2A41; color: #F1E6CE; }
.look-swatch--classic i { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-style: italic; }

.colours { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
.colours[hidden] { display: none; }
.swatch-pick {
  display: flex; align-items: center; gap: 0.625rem; cursor: pointer;
  padding: 0.375rem 0.875rem 0.375rem 0.375rem; background: #fff;
  border: 1.5px solid var(--ink); border-radius: 999px; font-size: var(--text-sm); font-weight: 600;
}
.swatch-pick input {
  width: 2rem; height: 2rem; padding: 0; border: 1.5px solid var(--ink); border-radius: 50%;
  background: none; cursor: pointer; overflow: hidden;
}
.swatch-pick input::-webkit-color-swatch-wrapper { padding: 0; }
.swatch-pick input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.swatch-pick input::-moz-color-swatch { border: 0; border-radius: 50%; }

.summary {
  margin-top: 0.5rem; padding: 1rem 1.125rem;
  background: var(--sage-100); border: 1.5px dashed var(--olive-500); border-radius: 12px;
}
.summary[hidden] { display: none; }
.summary-title { margin-bottom: 0.625rem; font-weight: 600; font-size: var(--text-sm); }
.summary dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.3125rem 1rem; margin: 0; font-size: var(--text-xs); }
.summary dt { color: var(--ink-muted); }
.summary dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.wizard-nav { display: flex; align-items: center; gap: 0.75rem; }
.wizard-nav [data-next], .wizard-nav [data-send] { margin-left: auto; }
.wizard-nav [hidden] { display: none; }
/* Without JS there are no steps, so no Back/Next: just the send button. */
.wizard-nav [data-back], .wizard-nav [data-next] { display: none; }
.js .wizard.is-stepped .wizard-nav [data-back]:not([hidden]),
.js .wizard.is-stepped .wizard-nav [data-next]:not([hidden]) { display: inline-flex; }

/* The spam trap: off-screen for people, still in the form for bots. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* What a form turns into once it has sent. */
.sent {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); text-align: center;
  background: var(--oat-50); color: var(--ink);
  border: var(--line); border-radius: var(--radius-lg); box-shadow: 8px 8px 0 var(--go);
}
.sent:focus { outline: none; }
.sent:focus-visible { outline: 3px solid var(--go); outline-offset: 4px; }
.sent-tick {
  display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: 1rem;
  border: var(--line); border-radius: 50%; background: var(--go); box-shadow: 0 2px 0 var(--ink);
  font-size: 1.5rem; font-weight: 800;
  animation: tick-pop 520ms var(--ease-spring) both;
}
@keyframes tick-pop { from { transform: scale(0.3) rotate(-12deg); opacity: 0; } }
.sent h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 500; letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.sent p { color: var(--ink-muted); max-width: 32rem; margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { .sent-tick { animation: none; } }
.form-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.form-note { margin-top: 0.875rem; font-size: var(--text-xs); color: var(--ink-muted); }
.form-note.is-error { color: var(--clay); font-weight: 600; }
.form-note.is-success { color: var(--olive-700); font-weight: 600; }

/* ── The live sketch ──
   A small browser window in one of four looks. --s-* are the look's own
   colours; picking brand colours overrides the hero and the button, with
   the text colour on each chosen by fern.js for contrast. Every preset
   pair clears 4.5:1 (the tightest are the buttons, at 5.9:1). */
.sketch { position: sticky; top: 7rem; }
@media (max-width: 960px) { .sketch { display: none; } }
.sketch-label {
  margin: 0 0 0.625rem; font-family: var(--font-brand); font-size: var(--text-micro); font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--go);
}
.sketch-note { margin: 0.875rem 0 0; font-size: var(--text-xs); color: var(--on-dark-muted); }
.sketch-window {
  --s-bg: #F6F8F4; --s-ink: #24352A; --s-hero: #DDE7DA; --s-hero-ink: #24352A;
  --s-accent: #4F6B55; --s-accent-ink: #FFFFFF; --s-radius: 8px;
  --s-font: var(--font-body); --s-weight: 500; --s-track: -0.03em; --s-style: normal;
  overflow: hidden; background: var(--s-bg); color: var(--s-ink);
  border: 1.5px solid var(--on-dark); border-radius: 14px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6);
  transition: background-color 400ms, color 400ms;
}
.look--bold    { --s-bg: #FFFDF5; --s-ink: #141414; --s-hero: #FFD23F; --s-hero-ink: #141414; --s-accent: #FF5A36; --s-accent-ink: #141414; --s-radius: 0; --s-weight: 800; --s-track: -0.06em; }
.look--warm    { --s-bg: #FFF7EE; --s-ink: #4A2716; --s-hero: #FBE0C8; --s-hero-ink: #4A2716; --s-accent: #A8471F; --s-accent-ink: #FFFFFF; --s-radius: 18px; --s-font: var(--font-brand); --s-weight: 800; --s-track: -0.03em; }
.look--classic { --s-bg: #FBF8F1; --s-ink: #1B2A41; --s-hero: #1B2A41; --s-hero-ink: #F1E6CE; --s-accent: #7E5F2C; --s-accent-ink: #FFFFFF; --s-radius: 2px; --s-font: "Fraunces", Georgia, serif; --s-weight: 600; --s-track: -0.02em; --s-style: italic; }
.sketch-bar {
  display: flex; align-items: center; gap: 0.3125rem; padding: 0.5rem 0.75rem;
  background: rgba(127, 127, 127, 0.14); border-bottom: 1px solid rgba(127, 127, 127, 0.3);
}
.sketch-bar i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; opacity: 0.4; }
.sketch-bar span {
  margin-left: 0.5rem; padding: 0.125rem 0.625rem; border-radius: 999px; background: rgba(127, 127, 127, 0.16);
  font-family: var(--font-mono); font-size: 0.625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sketch-page { padding: 0.875rem; }
.sketch-nav { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.875rem; }
.sketch-nav b {
  margin-right: auto; font-family: var(--s-font); font-weight: var(--s-weight); font-size: 0.8125rem;
  letter-spacing: var(--s-track); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%;
}
.sketch-nav span { width: 1.75rem; height: 0.3125rem; border-radius: 3px; background: currentColor; opacity: 0.3; }
.sketch-hero {
  padding: 1.5rem 1.125rem; margin-bottom: 0.75rem;
  background: var(--s-hero); color: var(--s-hero-ink); border-radius: var(--s-radius);
  transition: background-color 400ms, color 400ms, border-radius 400ms;
}
.sketch-h {
  margin: 0 0 0.375rem; font-family: var(--s-font); font-weight: var(--s-weight); font-style: var(--s-style);
  font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem); line-height: 1.05; letter-spacing: var(--s-track);
  overflow-wrap: anywhere;
}
.sketch-p { margin: 0 0 1rem; font-size: 0.8125rem; line-height: 1.4; opacity: 0.85; }
.sketch-btn {
  display: inline-block; padding: 0.4375rem 0.875rem; border-radius: var(--s-radius);
  background: var(--s-accent); color: var(--s-accent-ink); font-size: 0.75rem; font-weight: 700;
}
.look--calm .sketch-btn, .look--warm .sketch-btn { border-radius: 999px; }
.sketch-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.sketch-cards i { height: 3.25rem; border-radius: var(--s-radius); background: currentColor; opacity: 0.1; }
@media (prefers-reduced-motion: reduce) { .sketch-window, .sketch-hero { transition: none; } }

/* ── Just send a message ── */
.message {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  max-width: 60rem; margin-inline: auto; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
}
@media (max-width: 760px) {
  .message { grid-template-columns: 1fr; }
  /* On phones the form comes first, with the email address and concept
     link after it. The intro repeats the section's lede, so it goes. */
  .message-copy { order: 1; }
  .message-copy h3, .message-copy > p:first-of-type { display: none; }
  .message-copy .message-alt { margin-top: 0; }
}
.message-copy h3 { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.03em; }
.message-copy p { color: var(--ink-muted); }
.message-copy .message-alt { margin: 1.5rem 0 0.25rem; font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.message-concept {
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: var(--text-sm);
}
.message-concept a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.brief { padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer { background: var(--sage-100); padding-top: 3rem; overflow: hidden; border-top: var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.footer-line { max-width: 26rem; color: var(--ink-muted); font-size: var(--text-sm); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-links a { color: var(--ink); font-size: var(--text-sm); font-weight: 500; }
/* The full lockup, as big as the page allows. */
.footer-word {
  display: flex; align-items: center; justify-content: center; gap: 0.18em;
  margin: 2.5rem 0 1.5rem; padding-inline: var(--gutter);
  font-family: var(--font-brand); font-size: clamp(3.25rem, 1rem + 11vw, 11rem);
  line-height: 0.9; white-space: nowrap; color: var(--ink);
}
.footer-word svg { width: 1.12em; height: 1em; flex: none; }
.footer-word span { display: flex; flex-direction: column; font-weight: 800; letter-spacing: -0.04em; }
.footer-word small {
  margin-top: 0.12em; padding-left: 0.06em;
  font-size: 0.2em; font-weight: 700; letter-spacing: 0.42em; text-transform: uppercase; color: var(--olive-600);
}
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
  padding-block: 1.25rem 1.5rem; border-top: var(--line);
}
.footer-bottom p { margin: 0; font-size: var(--text-xs); color: var(--ink-muted); }
.footer-social-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; }
.footer-social-links li { margin: 0; }
.footer-social-links a {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: var(--line); border-radius: 50%; color: var(--ink);
  transition: background-color 0.2s, color 0.2s;
}
.footer-social-links a:hover { background: var(--ink); color: var(--sage-100); }
.footer-social-links a:focus-visible { outline: 2px solid var(--olive-600); outline-offset: 3px; }
.footer-social-links svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }

/* ── Privacy policy (privacy/index.html) ─────────────────────────────
   A plain reading page in the same clothes: the header with its backing
   always on, a single readable column, the footer. */

.legal-header { background: var(--oat-100); box-shadow: 0 1px 0 rgba(31, 38, 22, 0.2); }
.legal { padding: clamp(8rem, 6rem + 5vw, 10rem) 0 var(--section-y); background: var(--oat-100); }
.legal-inner { max-width: 44rem; }
.legal h1 { font-size: clamp(2.75rem, 1.75rem + 4vw, 4.5rem); letter-spacing: -0.045em; margin-bottom: 1rem; }
.legal h2 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { color: var(--ink-muted); }
.legal b { color: var(--ink); font-weight: 600; }
.legal ul:not(.legal-points) { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal ul:not(.legal-points) li { margin-bottom: 0.5rem; }
.legal a { color: var(--olive-700); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.legal-points {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
}
.legal-points li {
  margin: 0; padding: 1rem; background: var(--oat-50);
  border: var(--line); border-radius: var(--radius); box-shadow: 0 2px 0 var(--ink);
}
.legal-points b { display: block; margin-bottom: 0.25rem; }
.legal-points b::before { content: "✓ "; color: var(--olive-500); }
.legal-points span { font-size: var(--text-sm); }
@media (max-width: 640px) { .legal-points { grid-template-columns: 1fr; } }
.legal-date { margin-top: 2.5rem; font-size: var(--text-sm); }
/* 404.html: a grid of ways back in, like the legal points but links. */
.legal ul.notfound-links {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.75rem;
}
.legal ul.notfound-links li { margin: 0; }
.notfound-links a {
  display: block; height: 100%; padding: 1rem;
  background: var(--oat-50); color: var(--ink); text-decoration: none;
  border: var(--line); border-radius: var(--radius); box-shadow: 0 2px 0 var(--ink);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.notfound-links a:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.notfound-links a:focus-visible { outline: 3px solid var(--olive-600); outline-offset: 3px; }
.notfound-links b { display: block; margin-bottom: 0.25rem; text-decoration: underline; text-underline-offset: 3px; }
.notfound-links b::after { content: " →"; }
.notfound-links span { font-size: var(--text-sm); font-weight: 400; color: var(--ink-muted); }
@media (prefers-reduced-motion: reduce) { .notfound-links a { transition: none; } }
.footer-links a[aria-current="page"] { color: var(--olive-600); }

/* ── Cookie banner (assets/consent.js) ──────────────────────────────── */
/* Both answers are the same plain pill, side by side: saying no is
   exactly as easy as saying yes. Fixed to the bottom, never covering the
   whole page, and gone for good once answered. */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  padding: 0 var(--gutter) max(var(--gutter), env(safe-area-inset-bottom));
  pointer-events: none;
}
.consent[hidden] { display: none; }
.consent-inner {
  pointer-events: auto;
  max-width: 52rem; margin-inline: auto;
  display: flex; align-items: center; gap: 1rem 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--oat-50); color: var(--ink);
  border: var(--line); border-radius: 16px;
  box-shadow: 6px 6px 0 var(--go);
}
.consent h2 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.25rem; }
.consent p { margin: 0; font-size: var(--text-sm); color: var(--ink-muted); }
.consent p a { color: var(--ink); font-weight: 500; }
.consent-actions { display: flex; gap: 0.625rem; flex: none; }
@media (max-width: 640px) {
  .consent-inner { flex-direction: column; align-items: stretch; box-shadow: 4px 4px 0 var(--go); }
  .consent-actions .pill { flex: 1; }
}

/* ---------------------------------------------------------------------
   Doodle (fern.js): Shift + drag draws a fading pen line.
   --------------------------------------------------------------------- */
.doodle {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}
.is-doodling, .is-doodling * { user-select: none; -webkit-user-select: none; cursor: crosshair !important; }
.doodle-hint { display: none; }
.js .doodle-hint { display: inline; }
@media not (any-pointer: fine) { .js .doodle-hint { display: none; } }

/* ---------------------------------------------------------------------
   Back to top (script.js, [data-to-top]): a fern that unfurls as you
   read down the page. --p is scroll progress, 0 at the top and 1 at the
   bottom; the stem draws in and each pair of leaflets opens once --p
   passes its --d. Without JavaScript --p stays at 1, a whole fern.
   --------------------------------------------------------------------- */
.to-top {
  --p: 1;
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem;
  border: var(--line); border-radius: 50%;
  background: var(--oat-50); color: var(--olive-500);
  box-shadow: 0 2px 0 var(--ink);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out),
              opacity var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.to-top:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink); }
.to-top:active { transform: translateY(2px); box-shadow: 0 0 0 var(--ink); }
.to-top:focus-visible { outline: 3px solid var(--olive-600); outline-offset: 3px; }
.js .to-top:not(.is-shown) { opacity: 0; visibility: hidden; transform: translateY(0.5rem); }
body:has(.consent:not([hidden])) .to-top { opacity: 0; visibility: hidden; }
.to-top svg { width: 2.625rem; height: 2.625rem; overflow: visible; }
.to-top__stem {
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - (0.25 + var(--p) * 0.75));
}
.to-top__leaf {
  fill: var(--sage-400); stroke: currentColor; stroke-width: 0.9; stroke-linejoin: round;
  transform-origin: 0 0;
  transform: scale(clamp(0, calc((var(--p) - var(--d)) * 5), 1));
  transition: transform 120ms linear;
}
.to-top:hover .to-top__leaf { fill: var(--go); }
@media (prefers-reduced-motion: reduce) {
  .to-top, .to-top__leaf { transition: none; }
}
@media print { .to-top { display: none; } }

/* ---------------------------------------------------------------------
   Paper plane (fern.js, fly()): a sent form's button folds into a plane
   that loops off the screen.
   --------------------------------------------------------------------- */
.paper-plane { position: fixed; z-index: 9998; width: 56px; height: 56px; pointer-events: none; }
.paper-plane svg { width: 100%; height: 100%; overflow: visible; }
.paper-plane .pp-wing { fill: var(--oat-50); }
.paper-plane .pp-fold { fill: var(--go); }
.paper-plane .pp-line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
