/*
 * Colourside site styles. Shared by every site; each site's look comes from
 * the theme tokens (custom properties) written into the page.
 *
 * Layers keep specificity predictable: a later layer always wins over an
 * earlier one, whatever the selectors.
 */
@layer reset, base, layout, chrome, blocks, themes, dev;

/* ---------- reset ---------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote, address { margin: 0; }
  ul[role="list"] { list-style: none; padding: 0; }
  img { display: block; max-width: 100%; height: auto; }
  button, input, select, textarea { font: inherit; }
  [hidden] { display: none !important; }
}

/* ---------- base: type and colour schemes ---------- */
@layer base {
  :root {
    --gutter: clamp(1.125rem, 4vw, 2.5rem);
    --wrap-max: 76rem;
    --measure: 64ch;
    /* Sizes for big text in the heading font. A heading font wider than
       the look's own is drawn smaller (--heading-size, from the theme), so
       it takes about the room the look was designed for. Small text (a
       button in a package, a label) isn't drawn as much smaller, so it
       stays readable. */
    --heading-size-small: max(var(--heading-size, 1), 0.875);
    --hstep-0: calc(var(--step-0) * var(--heading-size-small));
    --hstep-1: calc(var(--step-1) * var(--heading-size, 1));
    --hstep-2: calc(var(--step-2) * var(--heading-size, 1));
    --hstep-3: calc(var(--step-3) * var(--heading-size, 1));
    --hstep-4: calc(var(--step-4) * var(--heading-size, 1));
    --hstep-5: calc(var(--step-5) * var(--heading-size, 1));
    --hstep-6: calc(var(--step-6) * var(--heading-size, 1));
    --hstep-7: calc(var(--step-7) * var(--heading-size, 1));
    --hstep-hero: calc(var(--step-hero) * var(--heading-size, 1));
    --title-size: var(--hstep-4);
  }
  /* Big text in the heading font takes its sizes from those. (A few
     headings are set in the body font, at body sizes.) */
  :is(h1, h2, h3, .brand-name, .footer-name, .pk-amount, .stat-value, .testimonials--large blockquote, .person-initials):not(.faq-q, .pl-name, .footer-h) {
    --step-0: var(--hstep-0);
    --step-1: var(--hstep-1);
    --step-2: var(--hstep-2);
    --step-3: var(--hstep-3);
    --step-4: var(--hstep-4);
    --step-5: var(--hstep-5);
    --step-6: var(--hstep-6);
    --step-7: var(--hstep-7);
    --step-hero: var(--hstep-hero);
  }

  body {
    background: var(--c-bg);
    color: var(--c-ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: var(--body-leading);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  /*
   * Colour schemes. Every block uses only these semantic variables, and each
   * section background remaps them. That is why every block works on every
   * background without block-specific colour rules.
   */
  :root, [data-bg="default"], [data-bg="alt"] {
    --bg: var(--c-bg);
    --fg: var(--c-ink);
    --fg-muted: var(--c-muted);
    --line: var(--c-line);
    --link: var(--c-brand-ink);
    --link-line: currentColor;
    --solid-bg: var(--c-brand);
    --solid-fg: var(--c-on-brand);
    --solid-edge: var(--c-brand-edge);
    --hl-fg: var(--c-brand-ink);
  }
  [data-bg="alt"] { --bg: var(--c-surface); }
  [data-bg="brand"] {
    --bg: var(--c-brand);
    --fg: var(--c-on-brand);
    --fg-muted: var(--c-muted-on-brand);
    --hl-fg: var(--c-muted-on-brand);
    --line: var(--c-line-on-brand);
    --link: var(--c-on-brand);
    --link-line: currentColor;
    --solid-bg: var(--c-on-brand);
    --solid-fg: var(--c-brand);
    --solid-edge: var(--c-on-brand);
  }
  [data-bg="dark"] {
    --bg: var(--c-dark);
    --fg: var(--c-on-dark);
    --fg-muted: var(--c-muted-on-dark);
    --hl-fg: var(--c-brand-on-dark);
    --line: var(--c-line-on-dark);
    --link: var(--c-brand-on-dark);
    --link-line: currentColor;
    --solid-bg: var(--c-brand-on-dark);
    --solid-fg: var(--c-on-brand-on-dark);
    --solid-edge: var(--c-brand-on-dark);
  }
  [data-bg] { background: var(--bg); color: var(--fg); }

  h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: var(--heading-weight);
    letter-spacing: var(--heading-tracking);
    line-height: var(--heading-leading);
    text-wrap: balance;
  }
  h1, h2 { text-transform: var(--heading-transform); }
  /* Smaller headings are never in capitals, so a theme's tight leading
     (Workshop's is set for capitals) would let one line's tails touch the
     next line's tops. */
  h3 { line-height: max(var(--heading-leading), 1.12); }
  p, li, dd { text-wrap: pretty; }

  a {
    color: var(--link);
    text-decoration-color: var(--link-line);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
  }
  a:hover { text-decoration-thickness: 0.14em; }
  :focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }

  .icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* The icon sprite: present for <use> references, never displayed. */
  .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

  .skip {
    position: absolute;
    z-index: 100;
    left: 1rem;
    top: -5rem;
    padding: 0.75rem 1rem;
    background: var(--c-ink);
    color: var(--c-bg);
  }
  .skip:focus { top: 1rem; }

  /* Read out but not shown: what a button that's only an icon does. */
  .vh {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

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

/* ---------- layout ---------- */
@layer layout {
  .wrap {
    width: min(100% - 2 * var(--gutter), var(--wrap-max));
    margin-inline: auto;
  }

  .section { padding-block: var(--space-section); }
  /* Two sections on the same background read as one: don't double the gap. */
  .section[data-bg="default"] + .section[data-bg="default"],
  .section[data-bg="alt"] + .section[data-bg="alt"],
  .section[data-bg="brand"] + .section[data-bg="brand"],
  .section[data-bg="dark"] + .section[data-bg="dark"] { padding-block-start: 0; }

  .title { font-size: var(--title-size); max-width: 22ch; }
  .block-head {
    display: grid;
    gap: 1rem;
    max-width: var(--measure);
    margin-bottom: calc(var(--gap) * 1.25);
  }
  .lede, .intro { color: var(--fg-muted); font-size: var(--step-1); max-width: 52ch; }

  .buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-height: 3rem;
    padding: 0.7em 1.4em;
    border: 2px solid transparent;
    border-radius: var(--radius-s);
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    text-wrap: balance;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  }
  .btn-primary { background: var(--solid-bg); color: var(--solid-fg); border-color: var(--solid-edge); }
  .btn-primary:hover { background: color-mix(in oklab, var(--solid-bg) 82%, var(--fg)); }
  .btn-secondary { background: transparent; color: var(--fg); border-color: currentColor; }
  .btn-secondary:hover { background: color-mix(in oklab, var(--bg) 88%, var(--fg)); }

  [data-buttons="pill"] .btn { border-radius: var(--radius-pill); }
  [data-buttons="text"] .buttons { gap: 1rem 2.25rem; }
  [data-buttons="text"] .btn {
    min-height: 0;
    padding: 0 0 0.25em;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    background: none;
    color: var(--fg);
    font-weight: 500;
  }
  [data-buttons="text"] .btn-primary { border-bottom-width: 2px; }
  [data-buttons="text"] .btn:hover { background: none; border-bottom-width: 3px; }
}

/* ---------- chrome: header, footer, WhatsApp ---------- */
@layer chrome {
  .site-header {
    position: relative;
    z-index: 20;
    background: var(--c-bg);
    border-bottom: var(--rule) solid var(--c-line);
  }
  .header-inner {
    display: flex;
    align-items: center;
    gap: 1rem 1.5rem;
    min-height: 4.75rem;
  }
  .brand {
    display: flex;
    align-items: center;
    margin-right: auto;
    color: var(--c-ink);
    text-decoration: none;
  }
  .brand img { max-height: 3rem; width: auto; }
  .brand-name {
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: var(--heading-weight);
    letter-spacing: var(--heading-tracking);
    line-height: 1;
    text-transform: var(--heading-transform);
  }

  .nav > ul { display: flex; gap: 0.25rem; list-style: none; padding: 0; }
  .nav a, .nav summary {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-s);
    color: var(--c-ink);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
  }
  .nav summary { list-style: none; }
  .nav summary::-webkit-details-marker { display: none; }
  .nav a:hover, .nav summary:hover { background: var(--c-surface); }
  .nav [aria-current="page"], .nav summary[data-current] {
    text-decoration: underline;
    text-decoration-color: var(--c-brand-edge);
    text-decoration-thickness: var(--rule);
    text-underline-offset: 0.45em;
  }
  .drop { position: relative; }
  .drop[open] summary .icon { rotate: 180deg; }
  .drop .icon { width: 1em; height: 1em; transition: rotate 0.15s; }
  .drop ul {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 14rem;
    display: grid;
    padding: 0.5rem;
    list-style: none;
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-m);
    box-shadow: 0 16px 40px -16px color-mix(in oklab, var(--c-ink) 40%, transparent);
  }

  .menu { display: none; }
  .menu summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border: 2px solid var(--c-ink);
    border-radius: var(--radius-s);
    color: var(--c-ink);
    font-weight: 700;
    list-style: none;
    cursor: pointer;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--c-bg);
    border-bottom: var(--rule) solid var(--c-line);
    box-shadow: 0 24px 40px -24px color-mix(in oklab, var(--c-ink) 45%, transparent);
  }
  .menu-panel ul { display: grid; list-style: none; padding: 0; }
  /* Not the button at the end, which keeps its own look. */
  .menu-panel a:where(:not(.btn)) {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--c-line);
    color: var(--c-ink);
    font-size: var(--step-1);
    font-weight: 600;
    text-decoration: none;
  }
  .menu-panel ul ul a { padding-left: 1rem; }
  .menu-panel [aria-current="page"] { color: var(--c-brand-ink); }
  .menu-group { display: block; padding: 1.1rem 0 0.2rem; color: var(--c-muted); font-size: 0.875rem; }
  .menu-panel .btn { width: 100%; margin-top: 1.25rem; }

  .nav a, .nav summary, .header-cta { white-space: nowrap; }
  .header-cta { flex: none; }

  /* Narrow screens, or a menu too long to fit (measured by a script in the
     layout), use the menu button instead. */
  @media (max-width: 899px) {
    .nav, .header-cta { display: none; }
    .menu { display: block; }
  }
  @media (min-width: 900px) {
    .site-header:not([data-collapsed]) .brand { flex: none; }
    .site-header:not([data-collapsed]) .brand-name { white-space: nowrap; }
  }
  .site-header[data-collapsed] :is(.nav, .header-cta) { display: none; }
  .site-header[data-collapsed] .menu { display: block; }

  .topbar { font-size: 0.9375rem; }
  .topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem 1.75rem;
    min-height: 2.5rem;
    padding-block: 0.4rem;
  }
  .topbar-inner > :first-child { margin-right: auto; }
  .topbar a { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--fg); text-decoration: none; }
  .topbar a:hover { text-decoration: underline; }
  .topbar .icon { width: 1.05em; height: 1.05em; }
  @media (max-width: 599px) {
    .t-hours, .t-email { display: none; }
    .topbar:not(:has(.t-phone)) { display: none; }
  }

  .site-footer { padding-block: clamp(3rem, 7vw, 5.5rem) 2rem; font-size: 0.9375rem; }
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 2.5rem var(--gap);
  }
  /* The name in the heading face, at the look's size (--name-size) but no
     bigger than its longest word (--name-word letters, from render) fits
     the column, as with the opening's headline. */
  .footer-brand { container-type: inline-size; }
  .footer-name {
    overflow-wrap: break-word;
    font-family: var(--font-display);
    font-size: var(--name-size, var(--step-3));
    font-size: min(var(--name-size, var(--step-3)),
      calc(100cqi / (var(--name-word, 10) * var(--heading-glyph, 1) * 1.03)));
    font-weight: var(--heading-weight);
    letter-spacing: var(--heading-tracking);
    line-height: 1;
    text-transform: var(--heading-transform);
  }
  .footer-tagline { margin-top: 0.75rem; color: var(--fg-muted); max-width: 28ch; }
  .footer-reviews { margin-top: 0.75rem; }
  .footer-reviews a { color: var(--fg); }
  .footer-h {
    margin-bottom: 0.85rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
  }
  .footer-list { display: grid; gap: 0.55rem; padding: 0; list-style: none; color: var(--fg-muted); }
  .footer-list a { color: var(--fg); }
  .footer-list address { font-style: normal; margin-bottom: 0.35rem; }
  .hours { display: grid; gap: 0.4rem; max-width: 20rem; }
  .hours div { display: flex; justify-content: space-between; gap: 1rem; }
  .hours dd { color: var(--fg-muted); font-variant-numeric: tabular-nums; }
  .footer-base {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: clamp(2.5rem, 6vw, 4.5rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--fg-muted);
  }
  .footer-base a { color: inherit; }
  .footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding: 0; list-style: none; }
  .footer-credit { margin-left: auto; }
  .footer-company { flex-basis: 100%; font-size: 0.8125rem; }

  .wa {
    position: fixed;
    z-index: 30;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem;
    border-radius: 999px;
    background: #25d366;
    color: #04301a;
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 28px -10px rgb(0 0 0 / 0.5);
  }
  .wa .icon { width: 1.6rem; height: 1.6rem; stroke-width: 1.9; }
  .wa span { display: none; }
  .wa:hover { background: #20bd5a; }
  @media (min-width: 600px) {
    .wa { padding: 0.7rem 1.25rem 0.7rem 0.9rem; }
    .wa span { display: inline; }
  }
}

/* ---------- blocks ---------- */
@layer blocks {
  /* Hero */
  /* The headline's size: the look's size for the layout (--hl-size), no
     more than --hl-cap, both scaled by the headline's length (--hl, from
     render's Headline). And no bigger than its longest word (--hl-word
     letters, each at most --heading-glyph em wide, with a little to spare
     for a bolder weight) fits across the words' column, so a long word
     never runs off a phone.
     A browser without container units goes by the length alone. A long
     headline, drawn smaller, has more letters to a line, so it isn't a
     narrow column. */
  .hero-copy { container-type: inline-size; }
  .hero-title {
    --hl-size: var(--step-hero);
    --hl-cap: 100rem;
    max-width: calc(17ch / min(var(--hl, 1), 1));
    font-size: calc(min(var(--hl-size), var(--hl-cap)) * var(--hl, 1));
    font-size: min(
      calc(min(var(--hl-size), var(--hl-cap)) * var(--hl, 1)),
      calc(100cqi / (var(--hl-word, 10) * var(--heading-glyph, 1) * 1.03)));
  }
  /* A short line above the headline, in small spaced capitals, in the
     colour links take on its background: the brand colour on the page,
     white on a photo. */
  .hero-eyebrow {
    margin-bottom: 0.9rem;
    color: var(--link);
    font-size: clamp(0.875rem, 0.75rem + 0.4vw, 1.125rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-transform: uppercase;
  }
  .hero-copy .lede { margin-top: 1.4rem; }
  .points { display: grid; gap: 0.65rem; margin-top: 1.75rem; padding: 0; list-style: none; }
  .points li { display: flex; align-items: baseline; gap: 0.8rem; font-size: var(--step-1); }
  .points li::before {
    content: "";
    flex: none;
    width: 0.62em;
    height: 0.62em;
    background: var(--solid-bg);
    border: 1px solid var(--solid-edge);
    border-radius: var(--radius-s);
  }
  .hero--text .hero-copy { max-width: 62rem; }

  .hero-split { display: grid; gap: calc(var(--gap) * 1.25); align-items: center; }
  .hero--split .hero-title { --hl-size: var(--step-5); }
  .hero-split .hero-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-img);
  }
  @media (min-width: 900px) {
    .hero-split { grid-template-columns: 1.15fr 0.85fr; }
    .hero-split .hero-media img { aspect-ratio: 4 / 5; }
  }

  /* Full-image hero. Base layout; the theme's hero style places the text.
     It's a screen tall less the header (8rem allows for Workshop's top bar),
     whatever the photo's shape, so the words at its foot are in view when
     the page opens; the photo is cropped to fill it, around its focus point.
     Only the words can make it taller. */
  .section:is(.hero--image, .hero--screen) { padding-block: 0; }
  /* The hero has no padding of its own, so the next section keeps its full gap. */
  .section:is(.hero--image, .hero--screen) + .section { padding-block-start: var(--space-section); }
  .hero-frame { position: relative; display: grid; min-height: clamp(22rem, calc(100svh - 8rem), 54rem); }
  .hero-frame > * { grid-area: 1 / 1; }
  .hero-frame .hero-media { position: relative; overflow: hidden; }
  .hero-frame .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hero-frame .hero-body {
    position: relative;
    align-self: end;
    padding-block: calc(var(--space-section) * 0.5) calc(var(--space-section) * 0.7);
  }
  /* On a short, wide screen (a laptop) a headline sized by the width alone
     would push the rest below the fold. */
  :is(.hero--image, .hero--screen) .hero-title { --hl-cap: 10svh; }

  /* Photo fills the screen: the photo runs behind the header, which is
     drawn over it (chrome, [data-header="over"]), to the foot of the screen.
     The words sit at the foot on the darkened photo in every theme; a shade
     at the top keeps the header readable on a bright photo. */
  .hero--screen .hero-frame { min-height: 100svh; }
  /* When the words fill the screen, they start below the header. */
  .hero--screen .hero-frame .hero-body { padding-block-start: 9rem; }
  .hero--screen .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgb(0 0 0 / 0.5), rgb(0 0 0 / 0) 10rem);
  }
  /* Words on a photo get a shade behind them: as tall as the words, fading
     out over 8rem above them, so the rest of the photo stays as it was
     taken. The words draw it, across the whole frame, which trims it. It's
     only as dark as the photo needs (--shade, set from media.Shade): a
     dark photo gets little or none, a white one all of it. A soft shadow
     on the words keeps them clear of a bright patch either way. */
  .hero-frame { overflow: clip; }
  :is([data-hero="scrim"] .hero--image, [data-hero]:not([data-hero="panel"]) .hero--screen) .hero-body { isolation: isolate; }
  :is([data-hero="scrim"] .hero--image, [data-hero]:not([data-hero="panel"]) .hero--screen) .hero-body::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -8rem -100vw 0;
    background: linear-gradient(to top,
      rgb(0 0 0 / calc(0.66 * var(--shade, 1))),
      rgb(0 0 0 / calc(0.48 * var(--shade, 1))) calc(100% - 8rem),
      rgb(0 0 0 / 0));
  }
  :is([data-hero="scrim"] .hero--image, [data-hero]:not([data-hero="panel"]) .hero--screen) .hero-copy :is(h1, p, li) {
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 0 1.5rem rgb(0 0 0 / 0.25);
  }
  /* Its top padding only keeps words that fill the screen clear of the
     header: the shade starts at the words. */
  [data-hero]:not([data-hero="panel"]) .hero--screen .hero-body::before { top: 1rem; }

  /* Words in the middle of the photo, centred, on an even shade over the
     whole photo instead of one rising from the foot. A list of points
     stays a list, centred as a whole. */
  .hero-frame[data-place="middle"] .hero-body {
    align-self: center;
    padding-block: calc(var(--space-section) * 0.6);
    text-align: center;
  }
  /* Still clear of the header drawn over the photo. */
  .hero--screen .hero-frame[data-place="middle"] .hero-body { padding-block-start: 9rem; }
  .hero-frame[data-place="middle"] :is(.hero-copy, .hero-title, .lede) { margin-inline: auto; }
  .hero-frame[data-place="middle"] .buttons { justify-content: center; }
  .hero-frame[data-place="middle"] .points { width: fit-content; margin-inline: auto; text-align: left; }
  :is([data-hero] .hero--image, [data-hero] .hero--screen) .hero-frame[data-place="middle"] .hero-body::before {
    inset: -100vh -100vw;
    background: rgb(0 0 0 / calc(0.56 * var(--shade, 1)));
  }

  /* Photo with the words under it: the photo stands alone and the words
     sit beneath it, like a caption. */
  .section.hero--under { padding-block: 0 var(--space-section); }
  /* Before a section on another background, the full gap would leave the
     words in a strip of their own: keep them as close to it as to the
     photo. */
  .section.hero--under:is(
    [data-bg="default"]:has(+ .section:not([data-bg="default"])),
    [data-bg="alt"]:has(+ .section:not([data-bg="alt"])),
    [data-bg="brand"]:has(+ .section:not([data-bg="brand"])),
    [data-bg="dark"]:has(+ .section:not([data-bg="dark"]))) { padding-block-end: clamp(2rem, 5vw, 4rem); }
  .hero--under .hero-frame { display: block; min-height: 0; }
  /* Short enough that the headline shows beneath the photo when the page
     opens. */
  .hero--under .hero-frame .hero-media img { position: static; height: auto; aspect-ratio: 3 / 2; max-height: max(14rem, min(84svh, 100svh - 18rem)); }
  .hero--under:has(.hero-eyebrow) .hero-frame .hero-media img { max-height: max(14rem, min(84svh, 100svh - 20rem)); }
  .hero--under .hero-frame .hero-body { padding-block: clamp(2rem, 5vw, 4rem) 0; }
  /* Beneath the photo, a short headline isn't drawn bigger than a long
     one on a short screen, so it still shows when the page opens. */
  .hero--under .hero-title { --hl-cap: calc(10svh / max(var(--hl, 1), 1)); max-width: calc(20ch / min(var(--hl, 1), 1)); }
  @media (min-width: 900px) {
    .hero--under .hero-copy {
      display: grid;
      grid-template-columns: 1.5fr 1fr;
      column-gap: calc(var(--gap) * 1.5);
      align-items: end;
    }
    .hero--under .hero-head { grid-row: 1 / span 3; }
    .hero--under .hero-copy > :not(.hero-head) { grid-column: 2; }
    .hero--under .lede { margin-top: 0; }
  }
  .hero--screen .hero-body {
    --fg: #fff;
    --fg-muted: rgb(255 255 255 / 0.88);
    --hl-fg: var(--c-brand-on-dark);
    --hl-fg: color-mix(in oklab, var(--c-brand-on-dark) 65%, #fff);
    --link: #fff;
    --solid-bg: var(--c-brand);
    --solid-fg: var(--c-on-brand);
    --solid-edge: var(--c-brand);
    color: var(--fg);
  }

  /* Text */
  .text-plain { max-width: var(--measure); }
  .prose { display: grid; gap: 1em; margin-top: 1.4rem; }
  .text-plain .title + .prose { margin-top: 1.6rem; }
  .prose :is(ul, ol) { display: grid; gap: 0.45em; padding-left: 1.15em; }
  .prose ol { padding-left: 1.6em; }
  .prose li::marker { color: var(--fg-muted); font-variant-numeric: tabular-nums; }
  /* Subheadings in long text (terms, policies): space above to start a new
     part, and closer to the paragraph they lead into. */
  .prose h3 { font-size: var(--step-2); margin-top: 0.8em; }
  .prose h3:first-child { margin-top: 0; }
  .prose h3 + *, .prose p + :is(ul, ol) { margin-top: -0.35em; }
  .prose strong { font-weight: 700; }
  .text-media { display: grid; gap: calc(var(--gap) * 1.25); align-items: center; }
  .text-media-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-img);
  }
  .text-media-copy { max-width: var(--measure); }
  @media (min-width: 900px) {
    .text--image-left .text-media { grid-template-columns: 5fr 6fr; }
    .text--image-right .text-media { grid-template-columns: 6fr 5fr; }
    .text--image-right .text-media-img { order: 2; }
  }

  /* Cards */
  .cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--gap) * 1.4) var(--gap);
  }
  @media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 960px) { .cards { grid-template-columns: repeat(var(--cols), 1fr); } }
  .card { position: relative; display: grid; align-content: start; gap: 0.6rem; }
  .card p { color: var(--fg-muted); }
  .card-title { font-size: var(--step-2); }
  .card-title a { color: inherit; text-decoration: none; }
  .card-title a::after { content: ""; position: absolute; inset: 0; }
  .card:hover .card-title a, .card-title a:focus-visible {
    text-decoration: underline;
    text-decoration-color: var(--solid-edge);
    text-decoration-thickness: var(--rule);
    text-underline-offset: 0.2em;
  }
  .card-img { margin-bottom: 0.5rem; overflow: hidden; border-radius: var(--radius-img); }
  .card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .card-icon {
    display: inline-grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 0.6rem;
    background: var(--solid-bg);
    color: var(--solid-fg);
    border-radius: var(--radius-m);
  }
  .card-icon .icon { width: 1.6rem; height: 1.6rem; }
  .cards--plain .card { padding-top: 1.1rem; border-top: var(--rule) solid var(--fg); }
  .cards--plain .card-title { font-size: var(--step-1); }

  /* Gallery. The sizes here match galleryLayouts in render.go, which picks
     the files each photo offers. */
  .gallery, .g-carousel { --g-gap: clamp(0.5rem, 1.2vw, 1rem); }
  .g-item { display: grid; gap: 0.6rem; align-content: start; }
  .g-item figcaption { color: var(--fg-muted); font-size: 0.9375rem; line-height: 1.45; }
  .g-open { display: block; overflow: hidden; border-radius: var(--radius-img); cursor: zoom-in; }
  .g-open img { width: 100%; object-fit: cover; }

  .g-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols-phone), minmax(0, 1fr));
    gap: calc(var(--g-gap) * 1.75) var(--g-gap);
  }
  .g-grid[data-size="small"] { --cols: 4; --cols-phone: 3; }
  .g-grid[data-size="medium"] { --cols: 3; --cols-phone: 2; }
  .g-grid[data-size="large"] { --cols: 2; --cols-phone: 1; }
  @media (min-width: 600px) { .g-grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); } }
  .g-grid img { aspect-ratio: 4 / 3; }
  .g-grid[data-shape="square"] img { aspect-ratio: 1; }
  .g-grid[data-shape="portrait"] img { aspect-ratio: 4 / 5; }
  .g-grid[data-size="small"] figcaption { font-size: 0.875rem; }

  /* Rows: each photo's width is its shape times the row height, and the
     space left in a row is shared out in the same proportions, so every
     photo in a row ends up the same height. The last row keeps its height
     instead of stretching. */
  .g-rows { display: flex; flex-wrap: wrap; gap: calc(var(--g-gap) * 1.75) var(--g-gap); }
  .g-rows[data-size="small"] { --row-h: clamp(4.5rem, 18vw, 12rem); }
  .g-rows[data-size="medium"] { --row-h: clamp(7rem, 24vw, 16rem); }
  .g-rows[data-size="large"] { --row-h: clamp(12rem, 32vw, 24rem); }
  .g-rows > li { flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--row-h)); min-width: 0; }
  .g-rows::after { content: ""; flex: 1000000 1 0px; }
  .g-rows img { aspect-ratio: var(--ar); }

  /* Carousel: a strip that starts in line with the page and runs off its
     right-hand edge, so it's clear there is more to scroll to. */
  .g-carousel[data-size="small"] { --slide-h: clamp(10rem, 30vw, 14rem); }
  .g-carousel[data-size="medium"] { --slide-h: clamp(14rem, 42vw, 22rem); }
  .g-carousel[data-size="large"] { --slide-h: clamp(17rem, 55vw, 32rem); }
  .g-track { gap: var(--g-gap); }
  .g-track > li { width: min(var(--ar) * var(--slide-h), 85vw); }
  .g-track img { height: var(--slide-h); }

  /* Strips that scroll sideways, used by gallery and testimonial
     carousels. The arrows need carousel.js; the strip scrolls without it. */
  .strip {
    --edge: max(var(--gutter), (100% - var(--wrap-max)) / 2);
    display: flex;
    gap: var(--gap);
    padding: 0.25rem var(--edge);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--edge);
    scrollbar-width: none;
  }
  .strip::-webkit-scrollbar { display: none; }
  .strip > li { flex: none; scroll-snap-align: start; }
  .strip:focus-visible { outline-offset: -3px; }
  .strip-nav { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.25rem; }
  .strip-btn {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 2px solid currentColor;
    border-radius: var(--radius-s);
    background: transparent;
    color: var(--fg);
    cursor: pointer;
  }
  [data-buttons="pill"] .strip-btn { border-radius: var(--radius-pill); }
  .strip-btn:hover { background: color-mix(in oklab, var(--bg) 88%, var(--fg)); }
  .strip-btn:disabled { opacity: 0.3; cursor: default; background: transparent; }
  .strip-prev .icon { rotate: 90deg; }
  .strip-next .icon { rotate: -90deg; }

  /* The photo viewer. Photos are shown on near-black whatever the theme,
     the way people expect to look at photos. */
  .lb {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #0e0e0e;
    color: #fff;
    font-family: var(--font-body);
  }
  .lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
  .lb::backdrop { background: rgb(0 0 0 / 0.6); }
  html:has(.lb[open]) { overflow: hidden; }
  .lb-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) 0.5rem max(1.25rem, env(safe-area-inset-left));
  }
  .lb-count { color: rgb(255 255 255 / 0.72); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
  .lb-stage {
    position: relative;
    display: grid;
    place-items: center;
    padding-inline: clamp(4rem, 6vw, 5.5rem);
    touch-action: pan-y pinch-zoom;
    user-select: none;
  }
  .lb-stage img { max-width: 100%; max-height: 100%; }
  .lb-stage.is-loading::before {
    content: "";
    position: absolute;
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgb(255 255 255 / 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lb-spin 0.8s linear infinite;
  }
  @keyframes lb-spin { to { rotate: 1turn; } }
  .lb-cap {
    max-width: 60ch;
    min-height: 1.5rem;
    margin-inline: auto;
    padding: 0.9rem 1.25rem max(1.25rem, env(safe-area-inset-bottom));
    color: rgb(255 255 255 / 0.9);
    text-align: center;
  }
  .lb-btn {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgb(38 38 38 / 0.75);
    color: #fff;
    cursor: pointer;
  }
  .lb-btn:hover { background: rgb(72 72 72 / 0.85); }
  .lb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
  .lb-btn .icon { width: 1.5rem; height: 1.5rem; }
  .lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; }
  .lb-prev { left: max(0.75rem, env(safe-area-inset-left)); }
  .lb-next { right: max(0.75rem, env(safe-area-inset-right)); }
  .lb-prev .icon { rotate: 90deg; }
  .lb-next .icon { rotate: -90deg; }
  .lb[data-single] :is(.lb-prev, .lb-next, .lb-count) { visibility: hidden; }
  /* Phones: the photo runs edge to edge, with the arrows over it. */
  @media (max-width: 599px) {
    .lb-stage { padding-inline: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .lb-stage.is-loading::before { animation-duration: 2.4s; }
  }

  /* Questions and answers. A list ruled between questions; with a heading
     or buttons, those sit to the left on wide screens and the questions
     to the right. Questions are set in the body face so long ones stay
     easy to read in every theme. */
  .faq { display: grid; gap: calc(var(--gap) * 1.25); }
  .faq-head { display: grid; gap: 1rem; align-content: start; max-width: var(--measure); }
  .faq > .buttons { margin-top: 0; }
  .faq-list { max-width: var(--measure); border-top: 1px solid var(--line); }
  .faq-item { padding-block: 1.15rem; border-bottom: 1px solid var(--line); }
  .faq-q {
    font-family: var(--font-body);
    font-size: var(--step-1);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: none;
  }
  .faq-a { margin-top: 0.6rem; }
  details.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
  }
  details.faq-item summary::-webkit-details-marker { display: none; }
  details.faq-item summary .icon { margin-top: 0.15em; color: var(--fg-muted); transition: rotate 0.15s; }
  details.faq-item[open] summary .icon { rotate: 180deg; }
  details.faq-item summary:hover .faq-q { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
  @media (min-width: 900px) {
    .faq--side {
      grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
      grid-template-rows: auto 1fr;
      gap: 2rem calc(var(--gap) * 2);
      align-items: start;
    }
    .faq--side .faq-list { grid-column: 2; grid-row: 1 / span 2; }
    .faq--side .faq-head, .faq--side > .buttons { grid-column: 1; }
  }

  /* Prices. Packages sit on panels like the testimonials, the price in
     the display face and what's included ticked off underneath. A price
     list puts each name and price on one line, joined by a dotted leader. */
  .pk-list { --cols: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
  @media (min-width: 600px) { .pk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 960px) { .pk-list { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); } }
  /* Four go two by two until there's room for four across. */
  @media (min-width: 960px) { .pk-list[data-cols="3"] { --cols: 3; } }
  @media (min-width: 1200px) { .pk-list[data-cols="4"] { --cols: 4; } }
  .pk {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    background: color-mix(in oklab, var(--bg) 94%, var(--fg));
    border-radius: var(--radius-m);
  }
  /* The tag shares the name's line, so names line up across a row. */
  .pk-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 0.75rem; }
  .pk-name { font-size: var(--step-1); line-height: 1.2; }
  .pk-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; }
  .pk-amount {
    font-family: var(--font-display);
    font-size: var(--step-4);
    font-weight: var(--heading-weight);
    letter-spacing: var(--heading-tracking);
    line-height: 1;
  }
  /* Four across, a package is narrow enough that long prices ("R14,500",
     "On request") are a size down, and all the prices with them. */
  @media (min-width: 1200px) { .pk-list[data-cols="4"][data-prices="long"] .pk-amount { font-size: var(--step-3); } }
  .price-unit { color: var(--fg-muted); font-family: var(--font-body); font-size: var(--step-0); font-weight: 400; }
  .pk-text { color: var(--fg-muted); }
  .pk-points {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.25rem;
    padding: 1rem 0 0;
    list-style: none;
    border-top: 1px solid var(--line);
  }
  .pk-points li { display: flex; gap: 0.6rem; }
  /* A package's own button, at the foot and as wide as the package, so
     they line up along a row and long labels have the most room. A text
     button stays as wide as its words. */
  .pk-foot { margin-top: auto; padding-top: 0.75rem; }
  .pk-foot .btn { width: 100%; }
  [data-buttons="text"] .pk-foot .btn { width: auto; }
  .pk-points .icon { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.2em; color: var(--link); }
  .price-tag {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    background: var(--solid-bg);
    color: var(--solid-fg);
    border-radius: var(--radius-s);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.5;
    text-transform: none;
    vertical-align: 0.15em;
  }
  .pl-list { max-width: var(--measure); padding: 0; list-style: none; border-top: 1px solid var(--line); }
  .pl-item { padding-block: 1rem; border-bottom: 1px solid var(--line); }
  .pl-row { display: flex; align-items: baseline; gap: 0.75rem; }
  .pl-name { font-family: var(--font-body); font-size: var(--step-0); font-weight: 600; letter-spacing: 0; line-height: 1.4; }
  .pl-leader { flex: 1 1 1rem; min-width: 1rem; border-bottom: 2px dotted var(--line); }
  .pl-price { flex: none; max-width: 50%; font-weight: 600; text-align: right; }
  /* On a phone the leader would squeeze long names into a narrow column. */
  @media (max-width: 599px) {
    .pl-row { justify-content: space-between; }
    .pl-leader { display: none; }
  }
  .pl-text { margin-top: 0.2rem; color: var(--fg-muted); max-width: 52ch; }
  .prices-note { margin-top: 1.5rem; color: var(--fg-muted); font-size: 0.9375rem; max-width: var(--measure); }

  /* Testimonials. Each quote is a figure: the stars if they gave a rating,
     their words, then who said them. The page adds the quote marks.
     Side by side and in the strip, each quote sits on a panel with the
     name at the foot, so a row of panels ends level. */
  .t-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
  .t-list[data-cols="1"] { max-width: 46rem; }
  @media (min-width: 600px) { .t-list:not([data-cols="1"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 960px) { .t-list[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .quote { display: flex; flex-direction: column; gap: 1.25rem; }
  :is(.testimonials--grid, .testimonials--carousel) .quote {
    height: 100%;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    background: color-mix(in oklab, var(--bg) 94%, var(--fg));
    border-radius: var(--radius-m);
  }
  .quote blockquote { display: grid; gap: 0.75em; }
  .quote blockquote p:first-child::before { content: "\201C"; }
  .quote blockquote p:last-child::after { content: "\201D"; }
  .q-by { display: flex; align-items: center; gap: 0.85rem; margin-top: auto; }
  .q-photo { flex: none; }
  .q-photo img { width: 3.5rem; height: 3.5rem; object-fit: cover; border-radius: var(--radius-s); }
  .q-who { display: grid; gap: 0.1rem; min-width: 0; }
  .q-name { font-weight: 700; line-height: 1.3; }
  .q-detail { color: var(--fg-muted); font-size: 0.9375rem; line-height: 1.4; }
  .stars { display: flex; gap: 0.2rem; color: var(--solid-bg); }
  .stars .icon { width: 1.25rem; height: 1.25rem; stroke: var(--solid-edge); stroke-width: 1.5; }
  .stars .on { fill: currentColor; }

  .t-strip > li { display: flex; width: min(26rem, 85%); }
  .t-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem var(--gap); margin-top: 2rem; }
  .t-foot :is(.buttons, .strip-nav) { margin-top: 0; }
  .t-foot .strip-nav { margin-left: auto; }

  /* One large quote at a time: their words in the display face, with the
     opening mark hung in the margin so the text keeps a straight edge. */
  .testimonials--large .t-list { max-width: none; }
  /* Each large quote takes the whole width, with the page margins inside
     it, so the next one doesn't peek in. */
  .testimonials--large .t-strip { align-items: flex-start; gap: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .testimonials--large .t-strip > li { width: 100%; padding-inline: var(--edge); }
  .testimonials--large .quote { gap: 1.75rem; max-width: 56rem; }
  .testimonials--large blockquote {
    font-family: var(--font-display);
    font-size: var(--step-3);
    font-weight: var(--heading-weight);
    letter-spacing: var(--heading-tracking);
    line-height: 1.18;
  }
  .testimonials--large blockquote p:first-child { position: relative; }
  .testimonials--large blockquote p:first-child::before { position: absolute; translate: -100% 0; }
  .testimonials--large .q-by { margin-top: 0; }
  .testimonials--large .t-foot .strip-nav { order: -1; margin-left: 0; }
  .testimonials--large .q-photo img { width: 4.5rem; height: 4.5rem; }
  .testimonials--large .q-name { font-size: var(--step-1); }
  .testimonials--large .stars .icon { width: 1.5rem; height: 1.5rem; }

  /* Form. Fields take their colours from the section background like
     everything else; on brand and dark backgrounds they're a shade off the
     background rather than white boxes. */
  .b-form {
    --field-bg: var(--c-bg);
    --field-fg: var(--c-ink);
    --field-line: color-mix(in oklab, var(--fg) 50%, var(--bg));
    --field-border: 1.5px;
  }
  .b-form:is([data-bg="brand"], [data-bg="dark"]) {
    --field-bg: color-mix(in oklab, var(--bg) 88%, var(--fg));
    --field-fg: var(--fg);
  }
  .b-form[data-bg="dark"] { color-scheme: dark; }

  .form-beside { display: grid; gap: calc(var(--gap) * 1.5); align-items: start; }
  .form-copy .intro { margin-top: 1.1rem; }
  .form-stacked .form-box { max-width: 46rem; }
  @media (min-width: 900px) {
    .form-beside { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: calc(var(--gap) * 2); }
  }

  .form-contact { display: grid; gap: 1.1rem; margin-top: 2.25rem; padding: 0; list-style: none; }
  .form-contact a { display: flex; align-items: flex-start; gap: 0.9rem; color: var(--fg); text-decoration: none; font-weight: 600; }
  .form-contact a:hover > span { text-decoration: underline; text-underline-offset: 0.2em; }
  .form-contact .icon { margin-top: 0.15rem; width: 1.4rem; height: 1.4rem; }
  .fc-label { display: block; color: var(--fg-muted); font-size: 0.875rem; font-weight: 400; }

  .form { container-type: inline-size; }
  .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
  .fld { grid-column: 1 / -1; display: grid; gap: 0.5rem; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
  @container (min-width: 30rem) {
    .fld-half { grid-column: span 1; }
  }
  .fld > label, .fld > legend { font-weight: 600; line-height: 1.3; }
  .fld > legend { margin-bottom: 0.75rem; padding: 0; }
  .opt { color: var(--fg-muted); font-weight: 400; }

  .fld .input {
    width: 100%;
    min-height: 3rem;
    padding: 0.65rem 0.85rem;
    border: var(--field-border) solid var(--field-line);
    border-radius: var(--radius-s);
    background: var(--field-bg);
    color: var(--field-fg);
    font-size: max(1rem, 16px); /* smaller makes phones zoom in on focus */
    line-height: 1.4;
  }
  .fld textarea.input { min-height: 9rem; resize: vertical; }
  .fld .input:hover { border-color: var(--fg); }
  .fld .input:focus-visible { outline: 3px solid var(--fg); outline-offset: 1px; border-color: var(--fg); }
  .fld .input:is(:user-invalid, [aria-invalid="true"]) { border-color: var(--fg); box-shadow: 0 0 0 1.5px var(--fg); }

  .select { position: relative; }
  .select select { appearance: none; padding-right: 2.75rem; }
  .select .icon { position: absolute; top: 50%; right: 0.85rem; width: 1.1rem; height: 1.1rem; translate: 0 -50%; pointer-events: none; }

  .checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: 0.75rem 1.5rem; }
  .check { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; }
  .check input {
    appearance: none;
    display: grid;
    place-content: center;
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    border: var(--field-border) solid var(--field-line);
    border-radius: min(var(--radius-s), 5px);
    background: var(--field-bg);
    cursor: pointer;
  }
  .check input::before {
    content: "";
    width: 0.4rem;
    height: 0.75rem;
    border: solid var(--solid-fg);
    border-width: 0 2.5px 2.5px 0;
    rotate: 45deg;
    translate: 0 -0.1rem;
    opacity: 0;
  }
  .check input:checked { background: var(--solid-bg); border-color: var(--solid-edge); }
  .check input:checked::before { opacity: 1; }
  .check input:hover { border-color: var(--fg); }
  .check input:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
  @media (forced-colors: active) {
    .check input { appearance: auto; }
  }

  .fld-err, .form-error { display: flex; align-items: flex-start; gap: 0.5rem; font-weight: 700; line-height: 1.35; }
  .fld-err { font-size: 0.9375rem; }
  .fld-err .icon, .form-error .icon { width: 1.2em; height: 1.2em; }
  .form-error { margin-top: 1.25rem; }

  .form-send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
  .form-send .btn { cursor: pointer; }
  .form-send .btn:disabled { opacity: 0.6; cursor: progress; }
  .form-note { color: var(--fg-muted); font-size: 0.875rem; line-height: 1.45; max-width: 38ch; }

  .form-thanks {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    border: var(--rule) solid var(--fg);
    border-radius: var(--radius-m);
    font-size: var(--step-1);
  }
  .form-thanks .icon { width: 1.75rem; height: 1.75rem; margin-top: 0.1rem; stroke-width: 2.25; }
  .form-thanks:focus { outline: none; }
  .form-thanks:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }

  /* The box only bots fill in: off screen, never shown or announced. */
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  /* Contact details. Each detail is a row: an icon, a small label, then
     the detail itself, which is a link wherever a phone can act on it. */
  .contact-details { display: grid; gap: 1.75rem; align-content: start; }
  .contact-copy .contact-details { margin-top: 2.25rem; }
  .contact-copy .intro { margin-top: 1.1rem; }
  .cd-lines { display: grid; gap: 1.25rem; padding: 0; list-style: none; }
  .cd-row { display: flex; align-items: flex-start; gap: 0.9rem; min-width: 0; }
  a.cd-row { color: var(--fg); text-decoration: none; }
  a.cd-row:hover .cd-value { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
  .cd-row > .icon { width: 1.4rem; height: 1.4rem; margin-top: 0.1rem; }
  .cd-body { display: grid; gap: 0.15rem; min-width: 0; }
  .cd-label { color: var(--fg-muted); font-size: 0.875rem; line-height: 1.4; }
  .cd-value { font-size: var(--step-1); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
  .cd-text { font-style: normal; font-weight: 600; }
  .cd-note { margin-top: 0.4rem; color: var(--fg-muted); font-size: 0.9375rem; max-width: 40ch; }
  .cd-go { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
  .btn-small { min-height: 2.75rem; padding: 0.45em 1em; font-size: 0.9375rem; }
  .cd-hours .hours { margin-top: 0.35rem; min-width: min(100%, 15rem); }
  .cd-hours .hours dt { white-space: nowrap; }
  .hours [data-today] :is(dt, dd) { color: var(--fg); font-weight: 700; }
  .cd-now { display: flex; align-items: flex-start; gap: 0.55rem; margin-top: 0.15rem; color: var(--fg-muted); }
  .cd-now::before {
    content: "";
    flex: none;
    width: 0.6rem;
    height: 0.6rem;
    margin-top: 0.5em;
    border-radius: 50%;
    background: currentColor;
  }
  .cd-now[data-open] { color: var(--fg); font-weight: 600; }
  .cd-social { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; padding: 0; list-style: none; font-weight: 600; }

  /* A column of details is never narrower than the longest phone number
     or email address (--cd-chars letters, from render's Contact, each up
     to 0.58em wide in any body font), so it isn't broken, nor than the
     opening hours. */
  .b-contact .wrap { --cd-col: max(18rem, calc(var(--cd-chars, 0) * 0.58 * var(--step-1) + 2.3rem)); }

  /* On a wide screen, beside a map and details only both use the columns
     of the other side-by-side layouts (a form, a video, questions and
     answers): five parts to seven, twice the gap apart. So the details
     line up with them down the page. */
  .contact-map { display: grid; gap: calc(var(--gap) * 1.5); }
  .contact-map .map { min-height: 20rem; max-height: 60rem; }
  @media (min-width: 900px) {
    .contact-map { grid-template-columns: minmax(min(100%, var(--cd-col)), 5fr) minmax(0, 7fr); column-gap: calc(var(--gap) * 2); }
    .contact-map .map { min-height: 30rem; }
  }

  /* Details only: the groups in top-aligned columns, as many across as
     fit on a tablet, and on a wide screen two: phone, WhatsApp and email
     on the left, the address beside them where a form's questions start. */
  .contact-plain .contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--cd-col)), 1fr));
    gap: 2.25rem calc(var(--gap) * 2);
  }
  @media (min-width: 900px) {
    .contact-plain .contact-details { grid-template-columns: minmax(min(100%, var(--cd-col)), 5fr) minmax(0, 7fr); }
  }
  .contact-plain .map-missing { margin-top: 2.5rem; }

  /* Wide: a band of map with the details on a card over its left side,
     and the pin off centre so the card doesn't cover it. A long card runs
     on past the bottom of the map rather than stretching it. */
  .contact-stage .map { --pin-x: 50%; height: 18rem; }
  .contact-card { padding-top: 2rem; }
  @media (min-width: 900px) {
    .contact-stage .map { --pin-x: 68%; height: 36rem; }
    .contact-card {
      position: relative;
      z-index: 1;
      width: min(26rem, 44%);
      margin: calc(-36rem + var(--gap)) 0 0 var(--gap);
      padding: clamp(1.5rem, 3vw, 2.25rem);
      background: var(--bg);
      color: var(--fg);
      border-radius: var(--radius-m);
      box-shadow: 0 0.75rem 2.5rem -1rem rgb(0 0 0 / 0.35);
    }
  }

  /* The map picture is greys, drawn at one pixel per pixel and larger than
     the frame, centred on the pin. The frame's background colours the
     light greys (multiply) and the layer on top sets the darkest colour
     (lighten), which makes a two-colour map in the theme's colours. */
  .map {
    --map-paper: var(--c-surface);
    --map-ink: var(--c-ink);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--radius-img);
    background: var(--map-paper);
  }
  .map::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: var(--map-ink);
    mix-blend-mode: lighten;
    pointer-events: none;
  }
  .map-link { position: absolute; inset: 0; }
  .map-link:focus-visible { outline-offset: -4px; z-index: 3; }
  .map img {
    position: absolute;
    left: var(--pin-x, 50%);
    top: 50%;
    width: auto;
    max-width: none;
    height: auto;
    translate: -50% -50%;
    mix-blend-mode: multiply;
  }
  .map-pin {
    position: absolute;
    z-index: 2;
    left: var(--pin-x, 50%);
    top: 50%;
    width: 2.6rem;
    height: auto;
    translate: -50% -96%;
    fill: var(--c-brand);
    stroke: var(--c-ink);
    stroke-width: 2.5;
    filter: drop-shadow(0 0.15rem 0.2rem rgb(0 0 0 / 0.3));
  }
  .map-pin circle { fill: var(--c-ink); stroke: none; }
  .map-credit {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    padding: 0.1rem 0.5rem;
    background: color-mix(in oklab, var(--map-paper) 85%, transparent);
    color: var(--c-ink);
    font-size: 0.6875rem;
    text-decoration: none;
  }
  .map-credit:hover { text-decoration: underline; }
  .map-missing {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 0.75rem;
    min-height: 16rem;
    padding: 1.5rem;
    border: 2px dashed var(--line);
    background: transparent;
    color: var(--fg-muted);
    text-align: center;
  }
  .map-missing::after { content: none; }
  .map-missing .icon { width: 2rem; height: 2rem; }
  .map-missing p { max-width: 30ch; }
  @media (forced-colors: active) {
    .map img { mix-blend-mode: normal; }
    .map::after { content: none; }
  }

  /* Steps. Numbers in solid circles joined by a line: down the page in
     the list layout and on phones, across it in the row layout. The step's
     title sits level with its number. */
  .steps { --n: 2.75rem; display: grid; padding: 0; }
  .steps[data-cols="2"] { --cols: 2; }
  .steps[data-cols="3"] { --cols: 3; }
  .steps[data-cols="4"] { --cols: 4; }
  .step {
    position: relative;
    display: grid;
    grid-template-columns: var(--n) minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem 1.25rem;
    padding-bottom: 2.25rem;
  }
  .step:last-child { padding-bottom: 0; }
  .step-body { display: contents; }
  .step-title { grid-column: 2; font-size: var(--step-2); }
  .step-body p { grid-column: 2; align-self: start; color: var(--fg-muted); max-width: 52ch; }
  .step-n {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: var(--n);
    height: var(--n);
    background: var(--solid-bg);
    color: var(--solid-fg);
    border: 2px solid var(--solid-edge);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: var(--hstep-1);
    font-weight: var(--heading-weight);
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: calc(var(--n) / 2 - 1px);
    top: var(--n);
    bottom: 0;
    width: 2px;
    background: var(--line);
  }
  .steps--list .steps { max-width: 46rem; }
  @media (min-width: 900px) {
    .steps--row .steps { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 3rem var(--gap); }
    .steps--row .step { grid-template-columns: minmax(0, 1fr); justify-items: start; align-content: start; padding-bottom: 0; }
    .steps--row .step-title { grid-column: auto; margin-top: 0.75rem; }
    .steps--row .step-body p { grid-column: auto; }
    .steps--row .step:not(:last-child)::before {
      left: calc(var(--n) + 0.75rem);
      right: calc(0.75rem - var(--gap));
      top: calc(var(--n) / 2 - 1px);
      bottom: auto;
      width: auto;
      height: 2px;
    }
    /* No line out of the last step in a row. */
    .steps--row [data-cols="2"] > .step:nth-child(2n)::before,
    .steps--row [data-cols="3"] > .step:nth-child(3n)::before,
    .steps--row [data-cols="4"] > .step:nth-child(4n)::before { content: none; }
  }

  /* Numbers. Big figures in the display face over what they count: ruled
     apart in a row, or two by two beside the heading. */
  .stat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem var(--gap); padding: 0; }
  .stat-list[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
  .stat { display: grid; gap: 0.5rem; align-content: start; }
  .stat-value {
    color: var(--link);
    font-family: var(--font-display);
    font-size: var(--step-5);
    font-weight: var(--heading-weight);
    letter-spacing: var(--heading-tracking);
    line-height: 1;
    overflow-wrap: anywhere;
  }
  .stat-label { color: var(--fg-muted); max-width: 24ch; }
  @media (min-width: 768px) {
    .stats--row .stat-list[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stats--row .stat-list[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .stats--row .stat + .stat { padding-left: var(--gap); border-left: 1px solid var(--line); }
  }
  .stats--beside .stat { padding-top: 1rem; border-top: var(--rule) solid var(--fg); }
  @media (min-width: 900px) {
    .stats--beside .stats {
      display: grid;
      grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
      align-items: center;
      gap: calc(var(--gap) * 2);
    }
    .stats--beside .block-head { margin-bottom: 0; }
    .stats--beside .stat-list { gap: 2.75rem var(--gap); }
  }

  /* People. Upright photos in a grid. On a phone each photo sits beside
     the name instead, so a team of six isn't six screens long. */
  .people { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem var(--gap); padding: 0; }
  @media (min-width: 600px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem var(--gap); } }
  @media (min-width: 960px) { .people { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); } }
  .person { display: grid; gap: 1.1rem; align-content: start; }
  .person-img img, .person-initials {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-img);
  }
  .person-initials {
    display: grid;
    place-items: center;
    background: color-mix(in oklab, var(--bg) 88%, var(--fg));
    color: var(--fg-muted);
    font-family: var(--font-display);
    font-size: var(--step-4);
    font-weight: var(--heading-weight);
  }
  .person-body { display: grid; gap: 0.3rem; align-content: start; }
  .person-name { font-size: var(--step-1); }
  .person-role { color: var(--fg-muted); font-weight: 600; }
  .person-text { margin-top: 0.35rem; color: var(--fg-muted); }
  .person-contact { display: grid; gap: 0.4rem; margin-top: 0.75rem; font-size: 0.9375rem; }
  .person-contact a { display: inline-flex; align-items: flex-start; gap: 0.55rem; color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
  .person-contact a:hover span { text-decoration: underline; text-underline-offset: 0.2em; }
  .person-contact .icon { width: 1.15rem; height: 1.15rem; margin-top: 0.1rem; color: var(--fg-muted); }
  @media (max-width: 599px) {
    .people--photos .person { grid-template-columns: 6.5rem minmax(0, 1fr); align-items: start; gap: 1.1rem; }
    .people--photos .person-initials { font-size: var(--step-2); }
  }
  .people--plain .person { padding-top: 1.1rem; border-top: var(--rule) solid var(--fg); }

  /* Logos. In a row, each drawn at its own height (logoHeight in logos.go)
     so they look about equally big. On tiles, each sits in the middle of a
     white tile, which suits logos that come on white and keeps dark logos
     readable on dark backgrounds. */
  .logos { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem 3.5rem; padding: 0; }
  .logo img { width: auto; height: var(--logo-h); max-width: 12rem; object-fit: contain; }
  .logo a { display: block; transition: opacity 0.15s; }
  .logo a:hover { opacity: 0.7; }
  .logos[data-grey] img { filter: grayscale(1); opacity: 0.8; }
  .logos[data-light] img { filter: grayscale(1) invert(1); opacity: 0.85; }
  @media (max-width: 599px) {
    .logos { gap: 1.5rem 2.25rem; }
    .logo img { height: calc(var(--logo-h) * 0.8); max-width: 9rem; }
  }
  /* Tiles are all one size, set by their shape alone; the logo is fitted
     inside, whatever its own shape. */
  .logos--tiles .logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
    gap: 1rem;
  }
  .logos--tiles .logo {
    position: relative;
    aspect-ratio: 3 / 2;
    background: #fff;
    border-radius: var(--radius-m);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.1);
  }
  .logos--tiles .logo a { position: absolute; inset: 0; }
  .logos--tiles .logo img {
    position: absolute;
    inset: 22% 16%;
    width: 68%;
    height: 56%;
    max-width: none;
  }

  /* Video: the picture, 16:9, with a round play button in the middle. The
     player takes its place at the same size. */
  .video {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-img);
    background: color-mix(in oklab, var(--bg) 82%, var(--fg));
  }
  .video iframe { display: block; width: 100%; height: 100%; border: 0; }
  .video-poster { position: absolute; inset: 0; display: grid; place-items: center; }
  .video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .video-poster:focus-visible { outline-offset: -5px; }
  .video-play {
    position: relative;
    display: grid;
    place-items: center;
    width: 4.75rem;
    height: 4.75rem;
    border-radius: 50%;
    background: var(--c-brand);
    color: var(--c-on-brand);
    box-shadow: 0 0.6rem 1.75rem -0.5rem rgb(0 0 0 / 0.55);
    transition: scale 0.15s;
  }
  .video-play .icon { width: 2.1rem; height: 2.1rem; fill: currentColor; stroke: none; translate: 0.12rem 0; }
  .video-poster:hover .video-play { scale: 1.08; }
  .video-beside { display: grid; gap: calc(var(--gap) * 1.25); align-items: center; }
  .video-copy .intro { margin-top: 1.1rem; }
  @media (min-width: 900px) {
    .video-beside { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: calc(var(--gap) * 2); }
  }

  /* Map: the contact map on its own, with the address under it. */
  .b-map .map { height: 20rem; }
  @media (min-width: 768px) { .b-map .map { height: 28rem; } }
  .map--full .map { border-radius: 0; }
  .map-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-top: 1.25rem;
  }
  .map-address { font-style: normal; font-weight: 600; }
  .map-foot .cd-go { margin-top: 0; }

  /* Call to action */
  .cta { display: grid; gap: 1.75rem; }
  .cta .buttons { margin-top: 0; }
  .cta .intro { margin-top: 1rem; }
  .cta--stacked .cta { justify-items: start; }
  @media (min-width: 900px) {
    .cta--inline .cta { grid-template-columns: 1fr auto; align-items: center; gap: var(--gap) calc(var(--gap) * 2); }
  }
}

/* ---------- themes: the few rules a token can't express ---------- */
@layer themes {
  /* Hero styles: how words sit on a full-image opening's photo. "scrim":
     on a shade drawn behind the words (blocks layer, with "Photo fills the
     screen"). */
  [data-hero="scrim"] .hero--image .hero-body {
    --fg: #fff;
    --fg-muted: rgb(255 255 255 / 0.88);
    /* The brand colour made for a dark background, lighter still: a
       photo's shade is never as dark as that. */
    --hl-fg: var(--c-brand-on-dark);
    --hl-fg: color-mix(in oklab, var(--c-brand-on-dark) 65%, #fff);
    --link: #fff;
    --solid-bg: var(--c-brand);
    --solid-fg: var(--c-on-brand);
    --solid-edge: var(--c-brand);
    color: var(--fg);
  }

  /* "panel": text on a solid brand-colour slab, like site signage. */
  [data-hero="panel"] :is(.hero--image, .hero--screen) .hero-copy {
    --fg: var(--c-on-brand);
    --fg-muted: var(--c-muted-on-brand);
    --hl-fg: var(--c-muted-on-brand);
    --link: var(--c-on-brand);
    --solid-bg: var(--c-on-brand);
    --solid-fg: var(--c-brand);
    --solid-edge: var(--c-on-brand);
    max-width: 46rem;
    padding: clamp(1.5rem, 4.5vw, 3.25rem);
    background: var(--c-brand);
    color: var(--fg);
    border-radius: var(--radius-m);
  }
  [data-hero="panel"] :is(.hero--image, .hero--screen) .hero-title { --hl-size: var(--step-5); --hl-cap: 9svh; max-width: none; }
  @media (max-width: 699px) {
    [data-hero="panel"] .hero--image .hero-frame { min-height: 0; }
    [data-hero="panel"] .hero--image .hero-frame > * { grid-area: auto; }
    [data-hero="panel"] .hero--image .hero-frame .hero-media img { position: static; aspect-ratio: 4 / 3; height: auto; }
    [data-hero="panel"] .hero--image .hero-frame .hero-body { width: 100%; padding: 0; }
    [data-hero="panel"] .hero--image .hero-copy { max-width: none; border-radius: 0; }
  }

  /* Highlighted words in an opening's headline (blocks.Highlight), drawn
     the look's way (Tokens.Highlight): in a colour that reads on what's
     behind them (--hl-fg, set with each background), in the heading
     font's italics, or on a slab in the button colours, like a sign. */
  .hero-title .hl { font-style: normal; font-synthesis: none; }
  [data-highlight="colour"] .hero-title .hl { color: var(--hl-fg); }
  [data-highlight="italic"] .hero-title .hl { font-style: italic; }
  /* Slabs on lines set as close as Workshop's would cover the line above. */
  [data-highlight="slab"] .hero-title:has(.hl) { line-height: max(var(--heading-leading), 1.12); }
  [data-highlight="slab"] .hero-title .hl {
    padding-inline: 0.08em;
    background: var(--solid-bg);
    color: var(--solid-fg);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  /* Workshop: signage. Condensed capitals on buttons, a thick brand bar
     under the header, links underlined in the brand colour. Buttons and
     labels set in the heading font take heading sizes (--hstep-*), so a
     wider heading font is drawn smaller there too. */
  [data-theme="workshop"] .btn {
    padding: 0.55em 1.25em 0.5em;
    font-family: var(--font-display);
    font-size: var(--hstep-1);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  [data-theme="workshop"] .site-header { border-bottom: 0.4rem solid var(--c-brand); }
  [data-theme="workshop"] :is([data-bg="default"], [data-bg="alt"]) .prose a {
    --link: var(--fg);
    --link-line: var(--c-brand-edge);
    text-decoration-thickness: 0.18em;
  }
  [data-theme="workshop"] .card-title { font-size: var(--step-3); }
  [data-theme="workshop"] .cards--icon .card-title { font-size: var(--step-2); }
  [data-theme="workshop"] .cards--plain .card-title { font-size: var(--step-2); }

  [data-theme="workshop"] .b-form { --field-border: 2px; --field-line: var(--fg); }
  [data-theme="workshop"] .fld > :is(label, legend) {
    font-family: var(--font-display);
    font-size: var(--hstep-1);
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.1;
    text-transform: uppercase;
  }
  [data-theme="workshop"] .fld .opt { font-family: var(--font-body); font-size: 0.875rem; font-weight: 400; letter-spacing: 0; text-transform: none; }

  /* Studio: the display face is very wide, so titles step down a size. */

  /* Contact: Workshop's labels match its form labels; the map sits in a
     heavy frame with the card as a solid slab. */
  [data-theme="workshop"] .cd-label {
    font-family: var(--font-display);
    font-size: calc(0.9375rem * var(--heading-size-small));
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  [data-theme="workshop"] .map:not(.map-missing) { border: var(--rule) solid var(--c-ink); }
  /* The line above an opening's headline is set like the labels. */
  [data-theme="workshop"] .hero-eyebrow {
    font-family: var(--font-display);
    font-size: var(--hstep-1);
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.1;
  }
  @media (min-width: 900px) {
    [data-theme="workshop"] .contact-card { box-shadow: none; border: var(--rule) solid var(--c-ink); border-top: 0.4rem solid var(--c-brand); }
  }
  [data-theme="workshop"] .btn-small { font-size: var(--hstep-0); }
  /* Testimonials: panels framed like the contact card, names set like
     the form labels, and big quotes in the condensed face. */
  [data-theme="workshop"] :is(.testimonials--grid, .testimonials--carousel) .quote {
    background: var(--bg);
    border: var(--rule) solid var(--fg);
    border-top: 0.4rem solid var(--solid-bg);
  }
  [data-theme="workshop"] .q-name {
    font-family: var(--font-display);
    font-size: var(--hstep-1);
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.1;
    text-transform: uppercase;
  }
  [data-theme="workshop"] .testimonials--large blockquote { font-size: var(--step-4); line-height: 1.04; }
  /* Prices: packages framed like the testimonials, names set like the
     form labels. */
  [data-theme="workshop"] .pk {
    background: var(--bg);
    border: var(--rule) solid var(--fg);
    border-top: 0.4rem solid var(--solid-bg);
  }
  [data-theme="workshop"] .pk-name {
    font-size: var(--step-1);
    letter-spacing: 0.03em;
    line-height: 1.1;
    text-transform: uppercase;
  }
  /* Package buttons a size down, and as wide as the package so they
     need less room at the sides. */
  [data-theme="workshop"] .pk-foot .btn { padding-inline: 0.75em; font-size: var(--hstep-0); }
  [data-theme="workshop"] .testimonials--large .q-name { font-size: var(--hstep-2); }

  [data-theme="studio"] { --title-size: var(--hstep-3); }
  [data-theme="studio"] .hero--split .hero-title { --hl-size: var(--step-4); }
  [data-theme="studio"] .card-title { font-size: var(--step-1); }
  [data-theme="studio"] .prose h3 { font-size: var(--step-1); }
  [data-theme="studio"] .btn { font-weight: 600; }
  [data-theme="studio"] .brand-name { font-size: var(--step-1); }
  [data-theme="studio"] .footer-name { --name-size: var(--step-2); line-height: 1.1; }
  /* Soft filled fields, to go with the pill buttons. */
  [data-theme="studio"] .b-form { --field-bg: color-mix(in oklab, var(--bg) 94%, var(--fg)); }
  [data-theme="studio"] .b-form:is([data-bg="brand"], [data-bg="dark"]) { --field-bg: color-mix(in oklab, var(--bg) 85%, var(--fg)); }
  /* One-line fields are pills when the corners are round, and otherwise as
     round as the message box. */
  [data-theme="studio"] .fld .input { padding-inline: 1.25rem; border-radius: var(--radius-m); }
  [data-theme="studio"] .fld :is(input, select).input { border-radius: max(var(--radius-m), var(--radius-pill)); }
  [data-theme="studio"] .select .icon { right: 1.1rem; }

  /* Gallery: let the photographs lead. */
  [data-theme="studio"] .map { --map-paper: color-mix(in oklab, var(--c-bg) 93%, var(--c-brand)); }
  [data-theme="studio"] .contact-card { border-radius: var(--radius-img); }
  /* Testimonials: soft panels in a wash of the brand colour, round
     photos, and big quotes a size down because the face is so wide. */
  [data-theme="studio"] :is(.testimonials--grid, .testimonials--carousel) .quote {
    background: color-mix(in oklab, var(--bg) 90%, var(--solid-bg));
    border-radius: var(--radius-img);
  }
  [data-theme="studio"] .q-photo img { border-radius: 50%; }
  [data-theme="studio"] .testimonials--large blockquote { font-size: var(--step-2); font-weight: 500; line-height: 1.32; }
  /* Prices: soft panels in a wash of the brand colour, pill tags. */
  [data-theme="studio"] .pk {
    background: color-mix(in oklab, var(--bg) 90%, var(--solid-bg));
    border-radius: var(--radius-img);
  }
  [data-theme="studio"] .price-tag { border-radius: var(--radius-pill); }
  [data-theme="studio"] .pk-amount { font-size: var(--step-3); }
  /* Four across, the wide face takes long prices down another size, and
     names a size down. */
  @media (min-width: 1200px) {
    [data-theme="studio"] .pk-list[data-cols="4"][data-prices="long"] .pk-amount { font-size: var(--step-2); }
    [data-theme="studio"] .pk-list[data-cols="4"] .pk-name { font-size: var(--step-0); }
  }

  [data-theme="gallery"] .nav a, [data-theme="gallery"] .nav summary { font-weight: 500; }
  [data-theme="gallery"] .card-icon {
    width: auto;
    height: auto;
    background: none;
    color: var(--fg);
    justify-content: start;
  }
  [data-theme="gallery"] .card-icon .icon { width: 2.25rem; height: 2.25rem; stroke-width: 1.2; }
  [data-theme="gallery"] .card-title { font-size: var(--step-2); }
  [data-theme="gallery"] .hero-eyebrow { font-weight: 500; letter-spacing: 0.2em; }
  [data-theme="gallery"] .cards--plain .card { border-top-width: 1px; }
  [data-theme="gallery"] .menu summary { border-width: 1px; }
  /* Fields are a line to write on. */
  [data-theme="gallery"] .b-form { --field-border: 1px; --field-line: var(--fg-muted); }
  [data-theme="gallery"] .fld .input {
    padding-inline: 0;
    border-width: 0 0 1px;
    border-radius: 0;
    background: transparent;
  }
  [data-theme="gallery"] .fld textarea.input { min-height: 7rem; }
  [data-theme="gallery"] .select .icon { right: 0; }
  [data-theme="gallery"] .fld > :is(label, legend) { font-weight: 500; }
  [data-theme="gallery"] .fld .input:is(:user-invalid, [aria-invalid="true"]) { box-shadow: 0 1.5px 0 var(--fg); }
  [data-theme="gallery"] .map { --map-paper: var(--c-bg); --map-ink: var(--c-muted); }
  [data-theme="gallery"] .cd-value, [data-theme="gallery"] .cd-text { font-weight: 500; }
  [data-theme="gallery"] .contact-card { box-shadow: none; border-radius: 0; }
  [data-theme="gallery"] .form-thanks { border-width: 1px 0; border-radius: 0; padding-inline: 0; }
  /* Testimonials: no panels, just a line above each quote, and the words
     in the serif. */
  [data-theme="gallery"] :is(.testimonials--grid, .testimonials--carousel) .quote {
    padding: 1.5rem 0 0;
    background: none;
    border-top: 1px solid var(--fg);
    border-radius: 0;
  }
  [data-theme="gallery"] .quote blockquote { font-family: var(--font-display); font-size: var(--hstep-1); line-height: 1.4; }
  [data-theme="gallery"] .testimonials--large blockquote { font-size: var(--step-4); font-weight: 300; line-height: 1.14; }
  /* Prices: no panels, a line above each package, prices in the serif,
     and tags as plain small capitals rather than filled labels. */
  [data-theme="gallery"] .pk {
    padding: 1.5rem 0 0;
    background: none;
    border-top: 1px solid var(--fg);
    border-radius: 0;
  }
  [data-theme="gallery"] .price-tag {
    padding: 0;
    background: none;
    color: var(--fg-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  [data-theme="gallery"] .pl-leader { border-bottom-width: 1px; }
  [data-theme="gallery"] .q-name { font-weight: 600; }

  /* The quick blocks. Workshop: square numbers and play button, names set
     like its form labels, tiles framed like its panels. */
  [data-theme="workshop"] :is(.step-n, .video-play) { border-radius: var(--radius-s); }
  [data-theme="workshop"] :is(.person-name, .step-title) {
    font-size: var(--step-2);
    letter-spacing: 0.03em;
    line-height: 1.05;
    text-transform: uppercase;
  }
  [data-theme="workshop"] .stats--beside .stat { border-top: 0.4rem solid var(--solid-bg); }
  [data-theme="workshop"] .logos--tiles .logo { border: var(--rule) solid var(--c-ink); border-radius: 0; box-shadow: none; }
  /* Studio: the wide face needs big numbers a size down. */
  [data-theme="studio"] .stat-value { font-size: var(--step-4); }
  [data-theme="studio"] .step-title { font-size: var(--step-1); }
  [data-theme="studio"] .logos--tiles .logo { border-radius: var(--radius-img); }
  /* Gallery: numbers drawn in a fine line rather than filled, light
     figures in the serif, hairlines instead of rules. */
  [data-theme="gallery"] .step-n { background: transparent; color: var(--fg); border-width: 1px; border-color: var(--fg); font-weight: 400; }
  [data-theme="gallery"] .step:not(:last-child)::before { width: 1px; }
  @media (min-width: 900px) {
    [data-theme="gallery"] .steps--row .step:not(:last-child)::before { width: auto; height: 1px; }
  }
  [data-theme="gallery"] .stat-value { color: var(--fg); font-weight: 300; }
  [data-theme="gallery"] :is(.stats--beside .stat, .people--plain .person) { border-top-width: 1px; }
  [data-theme="gallery"] .person-role { font-weight: 400; }
  [data-theme="gallery"] .logos--tiles .logo { border-radius: 0; }
  [data-theme="gallery"] .video-play { background: #fff; color: #111; }
}

/* ---------- dev server only ---------- */
/* The header over an opening whose photo fills the screen: see-through, its
   own links in white. Dropdowns and the phone menu keep their usual colours.
   It's here, after the themes, so it wins over their header rules. */
@layer themes {
  [data-header="over"] .site-header {
    position: absolute;
    inset: 0 0 auto;
    background: transparent;
    border-bottom-color: transparent;
  }
  [data-header="over"] .topbar { background: transparent; }
  [data-header="over"] :is(.brand, .nav > ul > li > a, .nav summary, .menu summary) { color: #fff; }
  [data-header="over"] .menu summary { border-color: currentColor; }
  [data-header="over"] :is(.nav > ul > li > a, .nav summary):hover { background: rgb(255 255 255 / 0.14); }
  [data-header="over"] .nav :is(ul > li > [aria-current="page"], summary[data-current]) { text-decoration-color: currentColor; }
  [data-header="over"] .header-cta {
    --fg: #fff;
    --solid-bg: var(--c-brand);
    --solid-fg: var(--c-on-brand);
    --solid-edge: var(--c-brand);
  }
}

@layer dev {
  .dev-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    padding: 0.75rem var(--gutter);
    background: #fff;
    color: #222;
    border-bottom: 1px solid #ddd;
    font: 14px/1.4 system-ui, sans-serif;
  }
  .dev-bar a { color: #222; }
  .dev-bar a[aria-current] { font-weight: 700; }
  .dev-bar form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
  .dev-bar input[type="color"] { width: 2.25rem; height: 1.75rem; padding: 0; border: 1px solid #ccc; }
  .dev-label {
    padding: 0.45rem var(--gutter);
    background: #fff;
    color: #555;
    border-block: 1px dashed #ccc;
    font: 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  }
}
