/*
 * 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;
    --title-size: var(--step-4);
  }

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

  @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-decoration: none;
    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: 999px; }
  [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; }
  .menu-panel a {
    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; }
  }

  .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);
  }
  .footer-name {
    overflow-wrap: break-word;
    font-family: var(--font-display);
    font-size: var(--step-3);
    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 */
  .hero-title { font-size: var(--step-hero); max-width: 17ch; }
  .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 { font-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. */
  .section.hero--image { padding-block: 0; }
  /* The hero has no padding of its own, so the next section keeps its full gap. */
  .section.hero--image + .section { padding-block-start: var(--space-section); }
  .hero-frame { position: relative; display: grid; min-height: min(88svh, 54rem); }
  .hero-frame > * { grid-area: 1 / 1; }
  .hero-frame .hero-media { position: relative; overflow: hidden; }
  .hero-frame .hero-media img { width: 100%; height: 100%; object-fit: cover; }
  .hero-frame .hero-body {
    position: relative;
    align-self: end;
    padding-block: var(--space-section) calc(var(--space-section) * 0.7);
  }

  /* 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: 999px; }
  .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 { 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)); } }
  .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;
  }
  .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; }
  .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.5); }
  }

  .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; }

  .contact-map { display: grid; gap: calc(var(--gap) * 1.5); }
  .contact-map .map { min-height: 20rem; max-height: 60rem; }
  @media (min-width: 768px) {
    .contact-map { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: calc(var(--gap) * 2); }
    .contact-map .map { min-height: 30rem; }
  }

  /* Details only: each group as wide as it needs, so an email address
     isn't broken in a narrow column, wrapping onto new lines as the
     screen narrows. */
  .contact-plain .contact-details { display: flex; flex-wrap: wrap; gap: 2rem calc(var(--gap) * 2); }
  .contact-plain .contact-details > * { flex: 0 1 auto; min-width: min(100%, 16rem); }
  .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; }
  }

  /* 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. "scrim": text over a darkened photo. */
  [data-hero="scrim"] .hero-frame .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 0.76) 0%, rgb(0 0 0 / 0.42) 45%, rgb(0 0 0 / 0.08) 100%);
  }
  [data-hero="scrim"] .hero--image .hero-body {
    --fg: #fff;
    --fg-muted: rgb(255 255 255 / 0.88);
    --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"] .hero--image .hero-copy {
    --fg: var(--c-on-brand);
    --fg-muted: 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"] .hero--image .hero-title { font-size: var(--step-5); max-width: none; }
  @media (max-width: 699px) {
    [data-hero="panel"] .hero-frame { min-height: 0; }
    [data-hero="panel"] .hero-frame > * { grid-area: auto; }
    [data-hero="panel"] .hero-frame .hero-media img { aspect-ratio: 4 / 3; height: auto; }
    [data-hero="panel"] .hero-frame .hero-body { width: 100%; padding: 0; }
    [data-hero="panel"] .hero--image .hero-copy { max-width: none; border-radius: 0; }
  }

  /* "caption": the photo stands alone; the words sit beneath it. */
  [data-hero="caption"] .section.hero--image { padding-block-end: var(--space-section); }
  [data-hero="caption"] .section.hero--image + .section[data-bg="default"] { padding-block-start: 0; }
  [data-hero="caption"] .hero-frame { display: block; min-height: 0; }
  [data-hero="caption"] .hero-frame .hero-media img { height: auto; aspect-ratio: 3 / 2; max-height: 84svh; }
  [data-hero="caption"] .hero-frame .hero-body { padding-block: clamp(2rem, 5vw, 4rem) 0; }
  [data-hero="caption"] .hero--image .hero-title { max-width: 20ch; }
  @media (min-width: 900px) {
    [data-hero="caption"] .hero--image .hero-copy {
      display: grid;
      grid-template-columns: 1.5fr 1fr;
      column-gap: calc(var(--gap) * 1.5);
      align-items: end;
    }
    [data-hero="caption"] .hero--image .hero-title { grid-row: 1 / span 3; }
    [data-hero="caption"] .hero--image .hero-copy > :not(.hero-title) { grid-column: 2; }
    [data-hero="caption"] .hero--image .lede { margin-top: 0; }
  }

  /* Workshop: signage. Condensed capitals on buttons, a thick brand bar
     under the header, links underlined in the brand colour. */
  [data-theme="workshop"] .btn {
    padding: 0.55em 1.25em 0.5em;
    font-family: var(--font-display);
    font-size: var(--step-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(--step-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: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  [data-theme="workshop"] .map:not(.map-missing) { border: var(--rule) solid var(--c-ink); }
  @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(--step-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(--step-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;
  }
  [data-theme="workshop"] .testimonials--large .q-name { font-size: var(--step-2); }

  [data-theme="studio"] { --title-size: var(--step-3); }
  [data-theme="studio"] .hero--split .hero-title { font-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 { font-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)); }
  [data-theme="studio"] .fld .input { padding-inline: 1rem; border-radius: var(--radius-m); }
  [data-theme="studio"] .fld :is(input, select).input { border-radius: 999px; padding-inline: 1.25rem; }
  [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: 999px; }
  [data-theme="studio"] .pk-amount { font-size: var(--step-3); }

  [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"] .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(--step-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; }
}

/* ---------- dev server only ---------- */
@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;
  }
}
