/* ==========================================================================
   Pacific Spirit Pilates. One file, ordered by cascade layers (lowest priority
   first). Every raw value lives in the tokens layer and was measured from her
   live site on 2026-12-03 (DIRECTION.md): this is a 1:1 match, not a redesign.
   ========================================================================== */
@layer reset, tokens, base, layout, components, sections, motion, utilities;

/* Open Sans, self-hosted (variable, latin). The fallback is Arial resized to
   Open Sans's metrics so nothing jumps when the font swaps in. */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/open-sans-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Headings: Newsreader (OFL), cut to two static weights with fontTools to keep it light (about 23 KB each):
   light for large headings (optical size 60), regular for small ones (optical size 24). */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 100 349;
  font-display: swap;
  src: url("/assets/fonts/newsreader-light.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 350 900;
  font-display: swap;
  src: url("/assets/fonts/newsreader-regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Georgia, sized to Newsreader's letter widths and line metrics, so headings don't jump when it arrives. */
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia");
  size-adjust: 97.6%;
  ascent-override: 75.3%;
  descent-override: 27.1%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Open Sans Fallback";
  src: local("Arial");
  size-adjust: 105.5%;
  ascent-override: 101.2%;
  descent-override: 27.7%;
  line-gap-override: 0%;
}

/* -------------------------------------------------------------------------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  img, picture, video, canvas, svg { display: block; max-width: 100%; }
  img, video { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  :target { scroll-margin-block: 5ex; }
}

/* -------------------------------------------------------------------------- */
@layer tokens {
  :root {
    /* Her palette, as measured. */
    --c-teal: #114444;
    --c-slate: #527b89;
    --c-sand: #c9bba3;
    --c-white: #ffffff;
    --c-ink: #333333;
    --c-text: #4a5656;              /* body text: a dark teal-grey (her #666 read faint on screens) */
    --c-pale-blue: #d9edf7;
    --c-grey-bar: #f4f4f4;
    --c-grey-field: #f7f7f7;
    --c-grey-rule: #e2e2e2;
    --c-grey-edge: #c4c4c4;
    --c-table-head: #555555;
    --c-star: #f7941d;
    --c-shade: rgb(0 0 0 / 0.32);   /* the footer's bottom bar */
    --c-shadow: rgb(0 0 0 / 0.1);
    --c-tint: rgb(0 0 0 / 0.03);    /* parent rows in the phone menu */
    --c-sand-tint: #f5f2ec;         /* the hero's warm paper: sand, mostly white */
    --c-shadow-menu: rgb(17 68 68 / 0.14);
    --c-sand-soft: #ebe6dc;         /* blog cards: sand, lightened */
    --c-photo: #e6ecef;             /* behind a photo until it arrives */
    --c-white-line: rgb(255 255 255 / 0.3); /* a hairline on teal */
    --c-overlay: #0c1616;                   /* behind a photo in the lightbox */
    --c-white-soft: rgb(255 255 255 / 0.78); /* the lightbox caption */
    --c-veil: rgb(17 68 68 / 0.55); /* behind white words on a photo */

    /* Semantic names: everything below the tokens layer uses these. */
    --c-bg: var(--c-white);
    --c-fg: var(--c-text);
    --c-heading: var(--c-ink);
    --c-brand: var(--c-teal);
    --c-link: var(--c-teal);
    --c-muted: var(--c-text);
    --c-line: var(--c-grey-rule);
    --c-accent: var(--c-slate);
    --c-on-accent: var(--c-white);
    --c-rule: var(--c-slate);       /* the thin rule under text links */
    --c-error: #b3261e;

    --font-body: "Open Sans", "Open Sans Fallback", Arial, sans-serif;
    --font-display: "Newsreader", "Newsreader Fallback", Georgia, serif; /* headings, the footer name, client quotes */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* Her sizes. Only the two largest change between phones and desktop. */
    --step--2: 0.8125rem;  /* 13 px: top bar */
    --step--1: 0.875rem;   /* 14 px: phone menu, meta */
    --step-0: 1.0625rem;   /* 17 px: body */
    --step-nav: 1.0625rem; /* 17 px: nav links */
    --step-1: 1.125rem;    /* 18 px: footer name, form labels */
    --step-2: 1.25rem;     /* 20 px: buttons, text links */
    --step-3: 1.375rem;    /* 22 px: hero lines */
    --step-4: 1.625rem;    /* 26 px: small section headings */
    --step-hero: 1.875rem; /* 30 px: hero heading, tile headings */
    --step-5: clamp(1.875rem, 1.25rem + 2.2vw, 3rem);          /* 30 → 48 px: section headings */
    --step-6: clamp(2.25rem, 1.19rem + 4.72vw, 4.375rem);     /* 36 → 70 px: heading over a photo */
    --step-page: clamp(2.5rem, 1.5rem + 3.4vw, 4.75rem);         /* 40 → 76 px: inner page headings */
    --step-display: clamp(2.5rem, 1.2rem + 3.8vw, 5rem);         /* 40 → 80 px: the home hero */
    --leading-body: 1.7;
    --leading-list: 1.625;
    --leading-heading: 1.1;

    --space-3xs: 0.375rem;  /* 6 px */
    --space-2xs: 0.625rem;  /* 10 px: under a heading */
    --space-xs: 0.75rem;
    --space-s: 1rem;        /* 16 px: under a paragraph */
    --space-m: 1.25rem;     /* 20 px */
    --space-l: 1.6875rem;   /* 27 px: row padding */
    --space-xl: 2.5rem;
    --space-2xl: 3.375rem;  /* 54 px: section padding */
    --space-3xl: 6.75rem;
    --space-section: clamp(4rem, 2.25rem + 5.5vw, 8rem); /* above and below a section */
    --measure-text: 70ch;
    --play: 4.5rem;         /* the play button on a video */
    --person-photo: 14rem;

    --gutter: clamp(1.25rem, 5vw, 5rem); /* side margins: tight on phones, generous on large screens */
    --container: 82rem;     /* up to 1312 px (her old site capped at 1080) */
    --measure: 50rem;       /* centred text column (about 800 px) */
    --radius: 3px;
    --radius-button: 0.75rem; /* call and contact buttons (Rob, 2026-12-03) */
    --radius-pill: 100vmax;
    --rule: 1px;
    --border-button: 2px;
    --border-menu: 3px;

    --brand-h: 5rem;        /* header row */
    --brand-h-compact: 4.5rem; /* the header once the page is scrolled (desktop) */
    --logo: 3.5rem;
    --header-h: 0px;        /* what sticks to the top (nothing on phones) */
    --menu-w: 15rem;
    --container-wide: var(--container); /* the header and the home hero line up with the sections */
    --gutter-wide: var(--gutter);

    /* The home hero's three class bars (shaped like the water lines in her logo). */
    --hero-max: 58rem;
    --leaf: 1.5rem;
    --tap: 2.75rem;         /* 44 px */

    /* Motion: the only eases and durations the site uses. */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);
    --ease-ui: cubic-bezier(0.33, 1, 0.68, 1);
    --dur-micro: 180ms;
    --dur-ui: 400ms;
    --dur-reveal: 1100ms;
    --dur-expand: 700ms; /* a home tile widening on hover */
    --slide-from: 4rem;  /* how far a sliding entrance starts to the right */
    --dur-line: 1200ms; /* LINE_MS in core/reveals.js */
  }
  @media (min-width: 900px) {
    :root {
      --brand-h: 8.75rem;   /* 140 px */
      --logo: 5.75rem;
      --header-h: var(--brand-h);
    }
  }

  /* A section opts into another palette; its children just use the tokens. */
  .theme-teal, .theme-slate {
    --c-fg: var(--c-white);
    --c-heading: var(--c-white);
    --c-link: var(--c-white);
    --c-muted: var(--c-white);
    --c-rule: var(--c-white);
    background: var(--c-bg);
    color: var(--c-fg);
  }
  .theme-teal { --c-bg: var(--c-teal); }
  .theme-slate { --c-bg: var(--c-slate); }
  .theme-paper { --c-bg: var(--c-sand-tint); background: var(--c-bg); }
}

/* -------------------------------------------------------------------------- */
@layer base {
  html {
    scroll-padding-top: var(--header-h);
    scrollbar-gutter: stable;
    background: var(--c-bg);
  }
  body {
    min-height: 100svh;
    font-family: var(--font-body);
    font-size: var(--step-0);
    font-weight: var(--weight-regular);
    line-height: var(--leading-body);
    color: var(--c-fg);
    background: var(--c-bg);
    overflow-x: clip; /* clip, not hidden: hidden breaks position: sticky */
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: var(--weight-regular);
    line-height: var(--leading-heading);
    color: var(--c-heading);
    text-wrap: balance;
  }
  h2 { font-size: var(--step-5); font-weight: var(--weight-light); }
  h1, h2 { letter-spacing: -0.015em; }
  h3 { font-size: var(--step-3); }
  h4 { font-size: var(--step-1); }
  p, li { text-wrap: pretty; }
  a { color: var(--c-link); text-underline-offset: 0.15em; }
  strong, b { font-weight: var(--weight-bold); }
  :focus-visible { outline: var(--border-button) solid currentColor; outline-offset: 3px; }
  ::selection { background: var(--c-teal); color: var(--c-white); }
  .skip-link {
    position: absolute; left: var(--gutter); top: -100%; z-index: 1000;
    padding: var(--space-2xs) var(--space-s); background: var(--c-teal); color: var(--c-white);
  }
  .skip-link:focus { top: var(--space-2xs); }
}

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

  /* Sections */
  .section { padding-block: var(--space-section); }
  .section--flush-top { padding-block-start: 0; }
  /* A white section that follows another white one: a hairline across the column, then the usual space. */
  .section--ruled { padding-block-start: 0; }
  .section--ruled > .container { padding-block-start: var(--space-section); border-block-start: var(--rule) solid var(--c-line); }
  .section > .container > h2:first-child, .section-head { margin-block-end: var(--space-xl); }
  .section-head--centred { text-align: center; }
  .split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .split--label { gap: var(--space-s); }
  .section > .split--label > h2:first-child { margin-block-end: 0; }
  .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-l); margin-block-start: var(--space-l); }
  .actions--centred { justify-content: center; }
  @media (min-width: 900px) {
    .split { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(2.5rem, 6vw, 5rem); }
    .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split--media { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
    .split--top { align-items: start; }
    .split--label { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
  }

  /* Running text inside a section. */
  .prose > * + * { margin-block-start: var(--space-s); }
  .prose > :is(h2, h3, h4) + * { margin-block-start: var(--space-2xs); }
  .prose :is(ul, ol) { padding-inline-start: var(--space-m); line-height: var(--leading-list); }
  .prose > :is(p, ul, ol) { max-width: var(--measure-text); }
  .prose li + li { margin-block-start: var(--space-3xs); }
  .prose :is(h3, h4) { margin-block-start: var(--space-l); }
  .prose > h2:not(:first-child), .contact-lines + .prose { margin-block-start: var(--space-xl); }
  .prose > :first-child { margin-block-start: 0; }
  .prose a:not(.button, .text-link) { text-decoration-thickness: var(--rule); }
  .prose > .actions { margin-block-start: var(--space-l); }
  .prose--centred { max-width: var(--measure); margin-inline: auto; text-align: center; }

  .container--wide { width: min(var(--container-wide), 100% - 2 * var(--gutter-wide)); }

  /* ---- Header: one row (logo, nav, phone). No bar above it: the phone and email are in the
     hero (Rob, 2026-12-03). It is white like the hero under it, so the two read as one. ---- */
  .site-header { position: relative; z-index: 100; background: var(--c-white); }
  .site-header__main { position: relative; display: flex; align-items: center; gap: var(--space-2xs); min-height: var(--brand-h); }
  .site-header__brand { display: block; flex: none; margin-inline-end: auto; }
  .site-header__brand img { width: var(--logo); height: var(--logo); }
  .site-header__call {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs); min-width: var(--tap); min-height: var(--tap);
    font-size: var(--step-0); font-weight: var(--weight-semibold); line-height: 1; white-space: nowrap; text-decoration: none; color: var(--c-teal);
    border: var(--border-button) solid currentColor; border-radius: var(--radius-button);
    transition: background-color var(--dur-micro) var(--ease-ui), color var(--dur-micro) var(--ease-ui), border-color var(--dur-micro) var(--ease-ui);
  }
  .site-header__call:is(:hover, :focus-visible) { color: var(--c-white); background: var(--c-teal); border-color: var(--c-teal); }
  .site-header__call svg { width: 1.125em; height: 1.125em; fill: currentColor; }
  .site-header__call span { display: none; }
  .site-header__menu-button {
    display: grid; place-items: center; width: var(--tap); height: var(--tap); margin-inline-end: calc(var(--space-3xs) * -1);
    padding: 0; background: none; border: 0; color: var(--c-teal);
  }
  .site-header__menu-button svg { width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 2; }

  .site-nav a { color: var(--c-teal); font-weight: var(--weight-semibold); text-decoration: none; }
  .site-nav svg { width: 0.6em; height: 0.6em; fill: none; stroke: currentColor; stroke-width: 2.5; }

  /* Phones and tablets: the menu is a white card under the header, every level
     open, as now. Without JavaScript it simply sits in the page, always open. */
  @media (max-width: 899px) {
  .site-header__main { flex-wrap: wrap; }
    .site-header__nav {
      flex: 1 0 100%; padding: var(--space-s); background: var(--c-white);
      border-block-start: var(--border-menu) solid var(--c-sand); box-shadow: 0 2px 5px var(--c-shadow);
    }
    .js .site-header__nav {
      position: absolute; inset: 100% 0 auto; z-index: 2;
      max-height: calc(100dvh - var(--brand-h) - var(--space-s)); overflow-y: auto; overscroll-behavior: contain;
      transition: opacity var(--dur-micro) var(--ease-ui), visibility var(--dur-micro);
    }
    .js [data-menu]:not([data-open]) { visibility: hidden; opacity: 0; pointer-events: none; }
    .site-nav a {
      display: flex; align-items: center; min-height: var(--tap); padding-inline: var(--space-s);
      font-size: var(--step--1); color: var(--c-fg); border-block-end: var(--rule) solid var(--c-tint);
    }
    .site-nav a[aria-current="page"] { color: var(--c-teal); }
    .site-nav__group > a { background: var(--c-tint); }
    .site-nav__group > a svg { display: none; }
    .site-nav__sub { padding-inline-start: var(--space-m); }
    .site-nav__same { display: none; } /* the row above is the same link */
  }

  /* Desktop: the header sticks; dropdowns open on hover and on keyboard focus. */
  @media (min-width: 900px) {
    [data-menu-button] { display: none; }
    .site-header { position: sticky; top: 0; }
    .site-header__main { gap: var(--space-l); }
    .site-header__brand img { transform-origin: 0 50%; }
    .site-header__call { order: 1; padding-inline: var(--space-xs); }
    .site-header__nav, .site-nav { display: flex; }
    .site-nav { gap: var(--space-s); }
    .site-nav > li { position: relative; display: flex; align-items: center; }
    .site-nav > li > a {
      display: inline-flex; align-items: center; gap: var(--space-3xs); min-height: var(--tap);
      font-size: var(--step-0); border-block: var(--border-menu) solid transparent;
      transition: color var(--dur-micro) var(--ease-ui);
    }
    .site-nav > li > a:is(:hover, :focus-visible), .site-nav__group:is(:hover, :focus-within) > a { color: var(--c-slate); }
    .site-nav > li > a[aria-current="page"] { border-block-end-color: var(--c-sand); }
    .site-nav > li > a svg { transition: transform var(--dur-micro) var(--ease-ui); }
    .site-nav__group:is(:hover, :focus-within) > a svg { transform: rotate(180deg); }
    /* Dropdowns: a white card right under its nav item, as wide as its longest line. */
    .site-nav__sub {
      position: absolute; inset: calc(50% + var(--tap) / 2) auto auto calc(var(--space-m) * -1); width: max-content; min-width: 13rem; padding-block: var(--space-2xs);
      background: var(--c-white); border-block-start: var(--border-menu) solid var(--c-sand); border-radius: 0 0 var(--radius) var(--radius);
      box-shadow: 0 1rem 2rem var(--c-shadow-menu), 0 2px 5px var(--c-shadow);
      visibility: hidden; opacity: 0; transform: translateY(0.375rem);
      transition: opacity var(--dur-micro) var(--ease-ui), transform var(--dur-micro) var(--ease-ui), visibility var(--dur-micro);
    }
    .site-nav__group:last-child .site-nav__sub { inset-inline: auto calc(var(--space-m) * -1); }
    .site-nav__group:is(:hover, :focus-within) > .site-nav__sub { visibility: visible; opacity: 1; transform: none; }
    .site-nav__sub a {
      display: flex; align-items: center; min-height: var(--tap); padding: var(--space-3xs) var(--space-xl) var(--space-3xs) var(--space-m);
      font-size: var(--step-0); font-weight: var(--weight-regular); line-height: 1.3; white-space: nowrap; color: var(--c-ink);
      box-shadow: inset 0 0 0 transparent; transition: background-color var(--dur-micro) var(--ease-ui), color var(--dur-micro) var(--ease-ui), box-shadow var(--dur-micro) var(--ease-ui);
    }
    .site-nav__sub a:is(:hover, :focus-visible) { color: var(--c-teal); background: var(--c-sand-tint); box-shadow: inset var(--border-menu) 0 0 var(--c-sand); }
    .site-nav__sub a[aria-current="page"] { color: var(--c-teal); font-weight: var(--weight-semibold); box-shadow: inset var(--border-menu) 0 0 var(--c-sand); }
    .site-nav__rule { margin-block-start: var(--space-3xs); padding-block-start: var(--space-3xs); border-block-start: var(--rule) solid var(--c-line); }
  }
  @media (min-width: 1100px) {
    .site-nav { gap: var(--space-l); }
    .site-nav > li > a { font-size: var(--step-nav); }
    .site-header__call { padding-inline: var(--space-s); }
    .site-header__call span { display: inline; }
  }
  /* Once the page is scrolled the header tucks up to a compact row: it slides partly off the top
     and its contents settle into what is left, with transforms only, so nothing below it moves.
     Browsers without scroll-driven animations keep the full row. */
  @supports (animation-timeline: scroll()) {
    @media (min-width: 900px) {
      html { scroll-padding-top: var(--brand-h-compact); }
      .site-header { top: calc(var(--brand-h-compact) - var(--brand-h)); animation: header-edge linear both; animation-timeline: scroll(root); animation-range: 0 calc(var(--brand-h) - var(--brand-h-compact)); }
      .site-header__main { animation: header-settle linear both; animation-timeline: scroll(root); animation-range: 0 calc(var(--brand-h) - var(--brand-h-compact)); }
      .site-header__brand img { animation: header-logo linear both; animation-timeline: scroll(root); animation-range: 0 calc(var(--brand-h) - var(--brand-h-compact)); }
    }
  }
  @keyframes header-edge { to { box-shadow: 0 1px 0 var(--c-line), 0 0.75rem 1.5rem -1.25rem var(--c-shadow-menu); } }
  @keyframes header-settle { to { transform: translateY(calc((var(--brand-h) - var(--brand-h-compact)) / 2)); } }
  @keyframes header-logo { to { transform: scale(0.6); } }
  html.menu-open { overflow: hidden; }

  /* ---- Footer ---- */
  .site-footer { background: var(--c-teal); color: var(--c-white); }
  .site-footer a { color: inherit; text-decoration: none; }
  .site-footer a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 0.3em; }
  .site-footer__inner { display: grid; gap: var(--space-xl) var(--space-2xl); padding-block: var(--space-section) var(--space-2xl); }
  .site-footer__name { font-family: var(--font-display); font-size: var(--step-4); font-weight: var(--weight-light); line-height: 1.15; }
  .site-footer__tag { margin-block-start: var(--space-2xs); font-size: var(--step--1); font-weight: var(--weight-semibold); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-sand); }
  .site-footer__label { margin-block-end: var(--space-s); font-size: var(--step--1); font-weight: var(--weight-semibold); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-sand); }
  .site-footer__col p + p { margin-block-start: var(--space-2xs); }
  .site-footer__links li + li { margin-block-start: var(--space-3xs); }
  .site-footer__links a { display: inline-flex; align-items: center; min-height: 2rem; }
  .site-footer__social { display: flex; gap: var(--space-2xs); margin-block-start: var(--space-l); }
  .site-footer__social a { position: relative; display: grid; place-items: center; width: var(--tap); height: var(--tap); border: var(--rule) solid var(--c-white-line); border-radius: 50%; transition: background-color var(--dur-micro) var(--ease-ui); }
  .site-footer__social a:is(:hover, :focus-visible) { background: var(--c-white-line); }
  .site-footer__social svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }
  .site-footer__bottom { border-block-start: var(--rule) solid var(--c-white-line); }
  .site-footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2xs) var(--space-l); padding-block: var(--space-m); font-size: var(--step--1); color: var(--c-white-soft); }
  .site-footer__credit { font-weight: var(--weight-semibold); }
  @media (min-width: 700px) { .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1000px) {
    .site-footer__inner { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
  }
}

/* -------------------------------------------------------------------------- */
@layer components {
  /* Buttons: slate with white text, as now. 20 px text, 46 px tall or more. */
  .button {
    display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap);
    padding: var(--space-3xs) var(--space-l); font-size: var(--step-2); font-weight: var(--weight-regular); line-height: var(--leading-body);
    text-align: center; text-decoration: none; color: var(--c-on-accent); background: var(--c-accent);
    border: var(--border-button) solid var(--c-accent); border-radius: var(--radius-button);
    transition: background-color var(--dur-micro) var(--ease-ui), border-color var(--dur-micro) var(--ease-ui), color var(--dur-micro) var(--ease-ui);
  }
  .button:is(:hover, :focus-visible) { background: var(--c-teal); border-color: var(--c-teal); }
  .button:active { transform: translateY(1px); }
  .button--teal { background: var(--c-teal); border-color: var(--c-teal); }
  .button--teal:is(:hover, :focus-visible) { background: var(--c-slate); border-color: var(--c-slate); }
  .button--sand { color: var(--c-teal); background: var(--c-sand); border-color: var(--c-sand); }
  .button--sand:is(:hover, :focus-visible) { color: var(--c-white); }
  /* Over a photo or a dark band: a white outline. */
  .button--outline { color: var(--c-white); background: transparent; border-color: var(--c-white); }
  .button--outline:is(:hover, :focus-visible) { color: var(--c-teal); background: var(--c-white); border-color: var(--c-white); }

  /* Text links with a thin rule under them ("Learn More", "Make A Booking"). */
  .text-link {
    position: relative; display: inline-flex; align-items: center; min-height: var(--tap); padding-inline-end: 1.5em;
    font-size: var(--step-1); font-weight: var(--weight-semibold); line-height: 1.3; color: var(--c-link);
    text-decoration: underline; text-decoration-thickness: var(--rule); text-decoration-color: var(--c-rule); text-underline-offset: 0.4em;
    transition: color var(--dur-micro) var(--ease-ui), text-decoration-color var(--dur-micro) var(--ease-ui);
  }
  /* The arrow sits outside the flow, so the underline stops at the words instead of breaking under the arrow. */
  .text-link::after { content: "→"; position: absolute; inset-inline-end: 0; top: 50%; translate: 0 -50%; transition: transform var(--dur-ui) var(--ease-out); }
  .text-link:is(:hover, :focus-visible) { color: var(--c-accent); text-decoration-color: currentColor; }
  .text-link:is(:hover, :focus-visible)::after { transform: translateX(0.25rem); }
  .theme-teal .text-link:is(:hover, :focus-visible), .theme-slate .text-link:is(:hover, :focus-visible) { color: var(--c-sand); }

  /* Accordions: rows between hairlines, the question on the left and a thin plus on the right. */
  .accordion { border-block-end: var(--rule) solid var(--c-line); color: var(--c-fg); }
  .accordion:not(.accordion + .accordion) { border-block-start: var(--rule) solid var(--c-line); }
  .accordion summary {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); min-height: var(--tap);
    padding-block: var(--space-m); font-size: var(--step-2); line-height: 1.35; color: var(--c-ink); cursor: pointer; list-style: none;
    transition: color var(--dur-micro) var(--ease-ui);
  }
  .accordion summary::-webkit-details-marker { display: none; }
  .accordion summary::after {
    content: ""; flex: none; width: 1rem; height: 1rem; color: var(--c-teal);
    background: linear-gradient(currentColor, currentColor) center / 100% var(--border-button) no-repeat, linear-gradient(currentColor, currentColor) center / var(--border-button) 100% no-repeat;
    transition: transform var(--dur-ui) var(--ease-out);
  }
  .accordion[open] summary::after { transform: rotate(90deg); background-size: 100% var(--border-button), var(--border-button) 0; }
  .accordion summary:is(:hover, :focus-visible) { color: var(--c-teal); }
  .accordion__body { padding: 0 0 var(--space-l); max-width: var(--measure-text); }
  @media (prefers-reduced-motion: no-preference) {
    @supports (interpolate-size: allow-keywords) {
      :root { interpolate-size: allow-keywords; }
      .accordion::details-content { block-size: 0; overflow: clip; transition: block-size var(--dur-ui) var(--ease-ui), content-visibility var(--dur-ui) allow-discrete; }
      .accordion[open]::details-content { block-size: auto; }
    }
  }

  /* Prices: type and hairlines, the numbers set large in teal. */
  .price-heading { margin-block-end: var(--space-l); }
  .assessments { display: grid; gap: var(--space-xl); }
  .assessment { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; align-items: baseline; gap: var(--space-2xs) var(--space-l); padding-block-start: var(--space-m); border-block-start: var(--border-button) solid var(--c-teal); }
  .assessment h3 { font-size: var(--step-2); font-weight: var(--weight-regular); line-height: 1.35; color: var(--c-ink); }
  .assessment__price, .offer-band__price { font-size: var(--step-5); font-weight: var(--weight-light); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; color: var(--c-teal); }
  .assessment__notes { grid-column: 1 / -1; color: var(--c-muted); line-height: var(--leading-list); }
  @media (min-width: 768px) { .assessments { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl); } }

  .offer-band { display: grid; gap: var(--space-m); padding: var(--space-xl) var(--space-l); }
  .offer-band h2 { font-size: var(--step-5); }
  .offer-band__what { margin-block-start: var(--space-2xs); font-size: var(--step-2); }
  .offer-band__note { max-width: 60ch; padding-block-start: var(--space-m); border-block-start: var(--rule) solid var(--c-white-line); }
  .offer-band__price { font-size: var(--step-6); color: var(--c-white); }
  @media (min-width: 768px) {
    .offer-band { grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: var(--space-xl); padding: var(--space-2xl) var(--space-xl); }
    .offer-band__note { grid-column: 1 / -1; }
  }

  .programs { display: grid; gap: var(--space-2xl); }
  @media (min-width: 900px) { .programs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) clamp(2.5rem, 6vw, 5rem); } }
  .program__name { font-size: var(--step-4); font-weight: var(--weight-regular); }
  .program__name a { text-decoration: none; }
  .program__name a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 0.15em; }
  .program__kind { margin-block-start: var(--space-3xs); color: var(--c-muted); }
  @media (min-width: 900px) { .program__kind { min-height: 2lh; } } /* the two tables start level */
  .rate-table { width: 100%; margin-block: var(--space-m) var(--space-m); border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
  .rate-table thead th { padding-block: 0 var(--space-2xs); font-size: var(--step--1); font-weight: var(--weight-semibold); letter-spacing: 0.08em; text-align: start; color: var(--c-muted); border-block-end: var(--border-button) solid var(--c-teal); }
  .rate-table :is(tbody th, td) { padding-block: var(--space-s); text-align: start; border-block-end: var(--rule) solid var(--c-line); white-space: nowrap; }
  .rate-table tbody th { font-weight: var(--weight-regular); color: var(--c-ink); }
  .rate-table td { color: var(--c-muted); }
  .rate-table :is(th, td):last-child { text-align: end; }
  .rate-table td:last-child { font-size: var(--step-3); font-weight: var(--weight-light); color: var(--c-teal); }
  .rate-table :is(th, td) + :is(th, td) { padding-inline-start: var(--space-s); }
  .program__aside { color: var(--c-muted); }
  @media (min-width: 900px) { .price-note { min-height: 2lh; } }

  /* The form: a slate panel, white labels, grey fields. */
  .form-panel { padding: var(--space-l); }
  .field { display: grid; gap: var(--space-2xs); }
  .field + .field { margin-block-start: var(--space-m); }
  .field label { font-size: var(--step-1); font-weight: var(--weight-bold); line-height: 1.1; color: var(--c-fg); }
  .field :is(input, textarea) {
    width: 100%; min-height: 3rem; padding: var(--space-xs) var(--space-s); color: var(--c-ink); background: var(--c-white);
    border: var(--rule) solid var(--c-grey-edge); border-radius: var(--radius);
  }
  .field :is(input, textarea):focus-visible { outline: var(--border-button) solid var(--c-sand); outline-offset: 2px; }

  /* Breadcrumbs: on every inner page, matching its BreadcrumbList. */
  :is(.crumbs, .blog-crumbs) ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2xs); font-size: var(--step--2); letter-spacing: 0.02em; line-height: 1.4; color: var(--c-muted); }
  :is(.crumbs, .blog-crumbs) li { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 1.75rem; }
  :is(.crumbs, .blog-crumbs) li:not(:last-child)::after { content: "›"; color: var(--c-sand); }
  :is(.crumbs, .blog-crumbs) a { display: inline-flex; align-items: center; min-height: 1.75rem; text-decoration: none; }
  :is(.crumbs, .blog-crumbs) a:is(:hover, :focus-visible) { text-decoration: underline; }
  :is(.crumbs, .blog-crumbs) [aria-current] { color: var(--c-muted); }

  /* The heading block that opens an inner page. White, like the header above it. */
  .page-head { padding-block: var(--space-2xl) var(--space-xl); }
  .page-head__grid { display: grid; gap: var(--space-xl); }
  .page-head__media { max-width: 36rem; }
  @media (min-width: 900px) { .page-head__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }
  .page-head__title { max-width: 20ch; font-size: var(--step-page); font-weight: var(--weight-light); line-height: 1.08; letter-spacing: -0.02em; color: var(--c-teal); }
  .page-head__contact { margin-block-start: var(--space-m); }
  .page-head__lead { max-width: 56ch; margin-block-start: var(--space-l); font-size: var(--step-3); line-height: 1.55; color: var(--c-ink); }

  /* A line of contact detail with its icon (hero, contact blocks). */
  .contact-line { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: var(--tap); font-size: var(--step-nav); line-height: 1.3; text-decoration: none; color: var(--c-link); }
  a.contact-line:is(:hover, :focus-visible) { text-decoration: underline; }
  .contact-line svg { flex: none; width: 1.125em; height: 1.125em; fill: var(--c-slate); }
  .theme-teal .contact-line svg, .theme-slate .contact-line svg { fill: var(--c-sand); }
  .contact-lines { display: grid; justify-items: start; gap: var(--space-3xs); }

  /* A framed photo. One end can be rounded like the bars in the home hero. */
  .media { position: relative; overflow: clip; background: var(--c-photo); }
  .media img { width: 100%; height: 100%; object-fit: cover; }
  /* The picture fills its frame, whatever shape the photo is. */
  :is(.media, .service-card__photo, .tile, .gallery li, .band, .tiles__band) { position: relative; }
  :is(.media, .service-card__photo, .tile, .gallery li, .band, .tiles__band) > picture { position: absolute; inset: 0; }
  .media--3x2 { aspect-ratio: 3 / 2; }
  .media--4x3 { aspect-ratio: 4 / 3; }
  /* .media--round-left / -right used to give a feature photo one fully rounded end, echoing hero D's photo bars.
     Dropped with hero U (2026-12-05): photos are plain rectangles again. The classes stay in the markup, unstyled. */

  /* Service cards (home, Our Programs): a photo, the name, an arrow. */
  .card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-l) var(--space-s); }
  .service-card { display: grid; grid-template-rows: auto auto 1fr; align-content: start; height: 100%; text-decoration: none; color: var(--c-teal); }
  .service-card__photo { position: relative; display: block; aspect-ratio: 3 / 2; overflow: clip; background: var(--c-photo); }
  .service-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
  .service-card__name { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); padding-block: var(--space-xs); border-block-end: var(--rule) solid var(--c-slate); font-size: var(--step-0); line-height: 1.3; transition: border-color var(--dur-micro) var(--ease-ui), color var(--dur-micro) var(--ease-ui); }
  .service-card__name svg, .tile__label svg { flex: none; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-ui) var(--ease-ui); }
  .service-card__line { padding-block-start: var(--space-xs); font-size: var(--step--1); line-height: 1.55; color: var(--c-text); } /* the programs page: one line per program */
  .service-card:is(:hover, :focus-visible) .service-card__photo img { transform: scale(1.04); }
  .service-card:is(:hover, :focus-visible) .service-card__name { color: var(--c-slate); border-block-end-color: var(--c-sand); }
  .service-card:is(:hover, :focus-visible) .service-card__name svg, .tile:is(:hover, :focus-visible) .tile__label svg { transform: translateX(0.25rem); }
  .service-card--block .service-card__photo { display: grid; place-items: center; padding: var(--space-s); font-size: var(--step-4); font-weight: var(--weight-light); line-height: 1.2; text-align: center; color: var(--c-white); background: var(--c-slate); transition: background-color var(--dur-ui) var(--ease-ui); }
  .service-card--block:is(:hover, :focus-visible) .service-card__photo { background: var(--c-teal); }
  @media (min-width: 600px) { .card-grid { gap: var(--space-xl) var(--space-m); } .service-card__name { font-size: var(--step-1); } }
  @media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

  /* Pill links ("Related programs"). */
  .pill-links { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
  .pill-links a { display: inline-flex; align-items: center; min-height: var(--tap); padding: var(--space-3xs) var(--space-m); text-decoration: none; color: var(--c-teal); background: var(--c-white); border: var(--rule) solid var(--c-slate); border-radius: var(--radius-pill); transition: background-color var(--dur-micro) var(--ease-ui), color var(--dur-micro) var(--ease-ui), border-color var(--dur-micro) var(--ease-ui); }
  .pill-links a:is(:hover, :focus-visible) { color: var(--c-white); background: var(--c-teal); border-color: var(--c-teal); }

  /* A price with its name and notes (assessments, the introductory offer). */
  .offers { display: grid; gap: var(--space-m); }
  .offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--space-3xs) var(--space-m); padding-block-end: var(--space-m); border-block-end: var(--rule) solid var(--c-line); }
  .offer__name { font-size: var(--step-2); font-weight: var(--weight-regular); line-height: 1.3; color: var(--c-ink); }
  .offer__price { font-size: var(--step-4); font-weight: var(--weight-light); line-height: 1.1; color: var(--c-teal); }
  .offer__notes { grid-column: 1 / -1; }

  /* Something the site still needs from Yvonne or Rob. Visible on purpose until it is answered. */
  .need { max-width: var(--measure-text); padding: var(--space-s) var(--space-m); font-weight: var(--weight-semibold); color: var(--c-error); background: var(--c-white); border: var(--border-button) dashed var(--c-error); }

  /* A video behind a poster: a plain link to the player until JavaScript swaps the player in. */
  .video-grid { display: grid; gap: var(--space-m); }
  .video { position: relative; display: block; aspect-ratio: 16 / 9; overflow: clip; background: var(--c-teal); }
  .video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
  .video__play { position: absolute; inset: 50% auto auto 50%; display: grid; place-items: center; width: var(--play); height: var(--play); translate: -50% -50%; color: var(--c-teal); background: var(--c-white); border-radius: 50%; transition: transform var(--dur-ui) var(--ease-ui), background-color var(--dur-ui) var(--ease-ui); }
  .video__play svg { width: 40%; height: 40%; margin-inline-start: 8%; fill: currentColor; }
  .video:is(:hover, :focus-visible) .video__play { transform: scale(1.08); background: var(--c-sand); }
  @media (min-width: 768px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

  /* People (About). */
  .person { display: grid; gap: var(--space-l) var(--space-xl); }
  .person + .person { margin-block-start: var(--space-2xl); padding-block-start: var(--space-2xl); border-block-start: var(--rule) solid var(--c-line); }
  .person__photo { align-self: start; width: var(--person-photo); max-width: 100%; }
  .person__photo img { width: 100%; }
  .person__name { font-size: var(--step-4); }
  .person__role { margin-block-start: var(--space-3xs); font-weight: var(--weight-semibold); color: var(--c-teal); }
  .person .accordion { margin-block-start: var(--space-l); }
  .cols-2 { columns: 2 15rem; column-gap: var(--space-xl); }
  .cols-2 li { break-inside: avoid; }
  @media (min-width: 768px) { .person { grid-template-columns: var(--person-photo) minmax(0, 1fr); } }

  /* The gallery: her photos in a plain grid (no slider, nothing hidden). */
  .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xs); }
  .gallery li { aspect-ratio: 3 / 2; overflow: clip; background: var(--c-shade); }
  .gallery img { width: 100%; height: 100%; object-fit: cover; }
  @media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); } }
  @media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .gallery.gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* Hours and other label/value pairs. */
  .pairs { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3xs) var(--space-l); }
  .pairs dt { color: var(--c-ink); }

  /* The form: states. */
  .form-panel .button { margin-block-start: var(--space-l); }
  /* A larger button for the one action a section is about (Contact: call, send). */
  .button--large { min-height: 3.5rem; padding-inline: var(--space-l); font-size: var(--step-2); }
  .button svg { flex: none; width: 1.125rem; height: 1.125rem; fill: currentColor; }
  .button:has(svg) { gap: var(--space-2xs); }

  /* Contact (Rob, 2026-12-04): the call button and the form share the first screen. */
  .contact-hero { padding-block: var(--space-xl) var(--space-section); }
  .contact-hero__grid { display: grid; gap: var(--space-xl); align-items: start; }
  .contact-hero__call { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-l); margin-block-start: var(--space-xl); }
  .contact-facts { display: grid; gap: var(--space-m); max-width: 30rem; margin-block-start: var(--space-xl); padding-block-start: var(--space-l); border-block-start: var(--rule) solid var(--c-line); }
  .contact-facts dt { font-size: var(--step--1); font-weight: var(--weight-semibold); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-slate); }
  .contact-facts dd { margin-block-start: var(--space-3xs); color: var(--c-ink); }
  .contact-facts a { color: inherit; text-underline-offset: 0.25em; }
  @media (min-width: 960px) {
    .contact-hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); }
    .contact-hero__intro { padding-block-start: var(--space-l); }
  }
  .contact-photo img { object-position: 45% 40%; }
  .tile--people img { object-position: 45% 35%; }
  .form-panel .form-note { margin-block-start: var(--space-s); }
  .form-status { margin-block-start: var(--space-s); font-weight: var(--weight-semibold); }
  .form-status:empty { display: none; }
  .field .optional { font-weight: var(--weight-regular); }
  .field-row { display: grid; gap: var(--space-m); margin-block-end: var(--space-m); }
  .field-row .field + .field { margin-block-start: 0; }
  @media (min-width: 600px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

  .form-panel h2 { font-size: var(--step-4); font-weight: var(--weight-regular); }
  .form-panel h2 + p { margin-block: var(--space-2xs) var(--space-l); }
  .form-panel a:not(.button) { color: inherit; }
  .contact-form[aria-busy="true"] .button { opacity: 0.6; cursor: progress; }
  .contact-form.is-error .form-status { padding: var(--space-xs) var(--space-s); color: var(--c-ink); background: var(--c-white); border-inline-start: var(--border-menu) solid var(--c-error); }
  /* Sent: the fields go and the thank-you takes their place. */
  .contact-form.is-sent > :not(.form-status) { display: none; }
  .contact-form.is-sent .form-status { display: grid; gap: var(--space-s); justify-items: start; margin: 0; padding-block: var(--space-xl); font-size: var(--step-4); font-weight: var(--weight-light); line-height: 1.3; }
  .contact-form.is-sent .form-status::before { content: ""; width: 3.5rem; height: 3.5rem; border: var(--border-button) solid var(--c-sand); border-radius: 50%; background: no-repeat center / 45% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23c9bba3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E"); }

  /* A short column beside running text (Our Mission, Benefits, First Appointment): a teal rule above it, no fill. */
  .panel { padding-block-start: var(--space-m); border-block-start: var(--border-button) solid var(--c-teal); }
  .panel h2 { font-size: var(--step-4); font-weight: var(--weight-regular); color: var(--c-teal); }
  .panel .actions { gap: var(--space-s) var(--space-m); }
  .panel .text-link { min-width: 0; }

  /* "Proudly Canadian Owned and Operated", with her maple leaf. */
  .canadian { display: flex; align-items: center; gap: var(--space-2xs); line-height: 1.3; color: var(--c-ink); }
  .canadian img { flex: none; width: var(--leaf); height: var(--leaf); }

  /* A wide photo across the page. */
  .band { height: clamp(11rem, 26vw, 22rem); overflow: clip; background: var(--c-sand-tint); }
  .band img { width: 100%; height: 100%; object-fit: cover; }

  /* Three blocks side by side (studio policies). */
  .cols-3 { display: grid; gap: var(--space-xl); }
  .cols-3 h3 { padding-block-end: var(--space-2xs); border-block-end: var(--rule) solid var(--c-slate); color: var(--c-teal); }
  @media (min-width: 900px) { .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-l) var(--space-xl); } }

  /* Her two PDF forms, as downloads. */
  .downloads { display: grid; gap: var(--space-m); }
  .download { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-3xs) var(--space-m); height: 100%; padding: var(--space-m); text-decoration: none; color: var(--c-text); background: var(--c-white); border: var(--rule) solid var(--c-sand); transition: border-color var(--dur-micro) var(--ease-ui), background-color var(--dur-micro) var(--ease-ui); }
  .download svg { grid-row: 1 / span 2; width: 2.5rem; height: 2.5rem; fill: none; stroke: var(--c-slate); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .download__file { font-size: var(--step-2); line-height: 1.3; color: var(--c-teal); text-decoration: underline; text-decoration-thickness: var(--rule); text-underline-offset: 0.2em; }
  .download:is(:hover, :focus-visible) { background: var(--c-pale-blue); border-color: var(--c-slate); }
  @media (min-width: 768px) { .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

  /* Contact form honeypot (docs/site-guide/form.md) */
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  :is(input, textarea, select):user-invalid { border-color: var(--c-error); }
}

/* -------------------------------------------------------------------------- */
/* Blog (listing + post): public/blog/index.html and blog/_post.html, which the
   WavePoint dashboard fills (docs/site-guide/blog.md). Modest defaults on the
   tokens only; restyle them to DIRECTION.md. Renaming a class means changing
   it in both templates; the {{placeholders}} and markers stay as they are. */
@layer components {

  /* Listing */
  .blog-index { padding-block: var(--space-xl) var(--space-section); }
  .blog-index__title { margin-block: var(--space-l) var(--space-s); font-size: var(--step-page); font-weight: var(--weight-light); line-height: 1.08; letter-spacing: -0.02em; color: var(--c-teal); }
  .blog-index__intro { max-width: 65ch; font-size: var(--step-1); color: var(--c-muted); }
  .post-list { display: grid; gap: var(--space-xl) var(--space-l); margin-block-start: var(--space-xl); }
  @media (min-width: 768px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1100px) { .post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .post-card__link { display: grid; grid-template-rows: auto auto auto 1fr auto; align-content: start; gap: var(--space-2xs); height: 100%; text-decoration: none; color: var(--c-text); }
  .post-card__media { display: block; aspect-ratio: 3 / 2; margin-block-end: var(--space-xs); overflow: clip; background: var(--c-photo); }
  .post-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
  .post-card__meta { font-size: var(--step--2); letter-spacing: 0.02em; color: var(--c-muted); }
  .post-card__title { font-size: var(--step-3); font-weight: var(--weight-regular); line-height: 1.25; color: var(--c-ink); transition: color var(--dur-micro) var(--ease-ui); }
  .post-card__excerpt { color: var(--c-muted); }
  .post-card__more { justify-self: start; display: inline-flex; align-items: center; gap: var(--space-2xs); margin-block-start: var(--space-2xs); padding-block-end: var(--space-3xs); font-size: var(--step-1); color: var(--c-teal); border-block-end: var(--rule) solid var(--c-rule); }
  .post-card__more svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-ui) var(--ease-out); }
  .post-card__link:is(:hover, :focus-visible) .post-card__image { transform: scale(1.04); }
  .post-card__link:is(:hover, :focus-visible) .post-card__title { color: var(--c-teal); }
  .post-card__link:is(:hover, :focus-visible) .post-card__more svg { transform: translateX(0.25rem); }
  .post-list__empty { grid-column: 1 / -1; color: var(--c-muted); }

  /* Post: one reading column; the hero takes its full width. */
  .post { width: min(46rem, 100% - 2 * var(--gutter)); margin-inline: auto; padding-block: var(--space-2xl) var(--space-section); }
  .post__header { display: grid; gap: var(--space-xs); margin-block: var(--space-m) var(--space-l); }
  .post__category { font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
  .post__title { font-size: var(--step-5); font-weight: var(--weight-light); line-height: 1.12; letter-spacing: -0.015em; color: var(--c-teal); }
  .post__meta { font-size: var(--step--1); color: var(--c-muted); }
  .post__author { display: flex; align-items: center; gap: var(--space-xs); }
  .post__author-photo { width: var(--space-xl); height: var(--space-xl); border-radius: 50%; object-fit: cover; }
  .post__author-name { display: block; font-weight: 600; }
  .post__author-title { display: block; font-size: var(--step--1); color: var(--c-muted); }
  .post__hero { margin-block-end: var(--space-l); }
  .post__contact { margin-block-start: var(--space-m); }
  .post__hero img { width: min(100%, 31.25rem); } /* her post images are 500 px wide: never stretched */
  .post__body { overflow-wrap: break-word; }
  .post__body :is(p, ul, ol, table, figure, blockquote) + :is(p, ul, ol, table, figure, blockquote) { margin-block-start: var(--space-s); }
  .post__body :is(ul, ol) { padding-inline-start: 1.25em; }
  .post__body ol { padding-inline-start: 2em; } /* room for "10." */
  .post__body li + li { margin-block-start: var(--space-2xs); }
  .post__body h2 { font-size: var(--step-4); font-weight: var(--weight-regular); margin-block: var(--space-xl) var(--space-s); }
  .post__body h4 { margin-block: var(--space-l) var(--space-2xs); }
  .post__body img { max-width: min(100%, 31.25rem); margin-block: var(--space-l); }
  .post__body h3 { font-size: var(--step-1); line-height: 1.25; margin-block: var(--space-l) var(--space-2xs); }
  .post__body a { text-underline-offset: 0.15em; }
  .post__body table { display: block; overflow-x: auto; border-collapse: collapse; } /* wide tables scroll in their own box */
  .post__body :is(th, td) { padding: var(--space-2xs) var(--space-xs); border: 1px solid var(--c-line); text-align: start; }
  .post__panel { padding: var(--space-m); border: 1px solid var(--c-line); border-radius: var(--radius); margin-block-end: var(--space-l); }
  .post__body .post__label { font-size: var(--step-1); margin-block: 0 var(--space-2xs); }
  .post__conclusion { margin-block-start: var(--space-l); }
  .post-faq details { border-block-end: 1px solid var(--c-line); }
  .post-faq summary { padding-block: var(--space-s); font-weight: 600; cursor: pointer; }
  .post-faq details > div { padding-block-end: var(--space-s); }
  .post__cta { margin-block-start: var(--space-xl); padding: var(--space-l); background: var(--c-accent); color: var(--c-on-accent); }
  .post__cta h2 { font-size: var(--step-4); font-weight: var(--weight-regular); color: var(--c-on-accent); }
  .post__cta a:not(.post__cta-button) { color: inherit; }
  .post__cta p { margin-block: var(--space-xs) var(--space-m); }
  .post__cta-button {
    display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-m);
    background: var(--c-on-accent); color: var(--c-teal); font-weight: 600; text-decoration: none; border-radius: var(--radius-button);
  }
  .post__back { margin-block-start: var(--space-l); }

  /* Compliance (docs/site-guide/seo.md): the footer's legal line, the form's privacy note, and
     the consent banner npm run sync adds when wrangler.toml CONSENT_BANNER is "on". Restyle to
     the design, but keep Accept and Decline equal (same size, colour and weight). */
  .site-footer__legal { font-size: var(--step--1); }
  .form-note { font-size: var(--step--1); color: var(--c-muted); }
  .site-footer__legal a, .form-note a { color: inherit; }
  .site-footer .site-footer__legal a { display: inline-block; padding-block: var(--space-3xs); text-decoration: underline; }
  .consent-settings { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
  .consent {
    position: fixed; z-index: 1000; inset: auto var(--gutter) var(--gutter); max-width: 36rem; margin-inline: auto;
    padding: var(--space-s); background: var(--c-bg); color: var(--c-fg);
    border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: 0 0.5rem 2rem rgb(0 0 0 / 0.2);
  }
  .consent p { margin: 0 0 var(--space-xs, 0.75rem); }
  .consent a { color: inherit; }
  .consent__buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .consent__buttons button {
    flex: 1 1 8rem; min-height: 44px; padding-inline: var(--space-s); font: inherit; font-weight: 600;
    color: var(--c-fg); background: var(--c-bg); border: 2px solid currentColor; border-radius: var(--radius); cursor: pointer;
  }
  :is(.consent button, .consent a, .consent-settings):focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
}

/* -------------------------------------------------------------------------- */
@layer sections {
  /* One block per section, in page order, named after the storyboard. */

  /* Home 01. Hero: mockup U, "The view, live" (Rob, 2026-12-04). The view from her studio: the
     North Shore over the water, drawn in code, coloured for the time of day in Vancouver. The early
     script before the header sets html[data-time]; without it the day palette shows and the header
     stays white. With it, the header takes the sky's top colour so header and sky read as one. */
  :root:not([data-time]), html[data-time="day"] {
    --v-sky1: #9ec6dc; --v-sky2: #cfe3ee; --v-sky3: #eef5f8; --v-far: #a3b9c6; --v-mid: #7593a3; --v-near: #45677a;
    --v-sea1: #6e97a9; --v-sea2: #3c6779; --v-ink: #114444; --v-soft: #2f4c4c; --v-btn: #114444; --v-btn-ink: #ffffff; --v-glow: #ffffff;
  }
  html[data-time="morning"] {
    --v-sky1: #c9dbe6; --v-sky2: #efd9c6; --v-sky3: #f6e6d6; --v-far: #b3bfcc; --v-mid: #8c9db0; --v-near: #627a8c;
    --v-sea1: #a9bfcb; --v-sea2: #577584; --v-ink: #114444; --v-soft: #3f5a5a; --v-btn: #114444; --v-btn-ink: #ffffff; --v-glow: #f8d9b8;
  }
  html[data-time="evening"] {
    --v-sky1: #27405a; --v-sky2: #b8706a; --v-sky3: #f0b27c; --v-far: #7a6577; --v-mid: #4f4559; --v-near: #2c2a3b;
    --v-sea1: #3b3b54; --v-sea2: #1e2436; --v-ink: #ffffff; --v-soft: rgb(255 255 255 / 0.88); --v-btn: #c9bba3; --v-btn-ink: #114444; --v-glow: #ffcf94;
  }
  html[data-time="night"] {
    --v-sky1: #0b1c29; --v-sky2: #15303f; --v-sky3: #1f3d4c; --v-far: #1f3644; --v-mid: #182c38; --v-near: #10212b;
    --v-sea1: #10222c; --v-sea2: #0a161d; --v-ink: #ffffff; --v-soft: rgb(255 255 255 / 0.84); --v-btn: #c9bba3; --v-btn-ink: #114444; --v-glow: #9fb7c7;
  }

  /* The header on Home, once the time is set: the sky's colour, words in the palette's ink, the logo on a white disc. */
  html[data-time] .site-header { background: var(--v-sky1); }
  html[data-time] :is(.site-header__call, .site-header__menu-button) { color: var(--v-ink); }
  html[data-time] .site-header__call:is(:hover, :focus-visible) { color: var(--v-btn-ink); background: var(--v-btn); border-color: var(--v-btn); }
  html[data-time] .site-header__brand img { padding: 6%; background: var(--c-white); border-radius: 50%; }
  @media (min-width: 900px) {
    html[data-time] .site-nav > li > a { color: var(--v-ink); }
    html[data-time] :is(.site-nav > li > a:is(:hover, :focus-visible), .site-nav__group:is(:hover, :focus-within) > a) { color: var(--v-ink); opacity: 0.8; }
  }

  .hero--view { display: flex; flex-direction: column; min-height: min(100svh - var(--brand-h), var(--hero-max)); color: var(--v-ink); background: linear-gradient(180deg, var(--v-sky1) 0%, var(--v-sky2) 52%, var(--v-sky3) 74%); overflow: clip; }
  .view-ready :is(.hero--view, .site-header) { transition: color 2s, background-color 2s; }
  .view__sky { flex: 1; display: grid; align-content: end; gap: var(--space-xl); padding-block: var(--space-l) 0; }
  .hero__eyebrow { text-wrap: balance; font-size: var(--step--1); font-weight: var(--weight-semibold); line-height: 1.4; letter-spacing: 0.16em; text-transform: uppercase; }
  .hero--view .hero__eyebrow { color: var(--v-soft); }
  .hero--view .hero__title { margin-block-start: var(--space-m); font-size: clamp(2.8rem, 0.8rem + 5.4vw, 7rem); font-weight: var(--weight-light); line-height: 0.98; letter-spacing: -0.025em; color: var(--v-ink); }
  .view__line { max-width: 34rem; font-family: var(--font-display); font-size: var(--step-3); line-height: 1.5; color: var(--v-soft); }
  .view__actions { display: grid; justify-items: start; gap: var(--space-xs); margin-block-start: var(--space-l); }
  .view__button { margin-block-end: var(--space-2xs); color: var(--v-btn-ink); background: var(--v-btn); border-color: var(--v-btn); }
  .view__button:is(:hover, :focus-visible) { color: var(--v-btn-ink); background: var(--v-btn); border-color: var(--v-btn); opacity: 0.9; }
  .hero--view .contact-line { color: var(--v-ink); }
  .hero--view .contact-line svg { fill: currentColor; }
  .view__canadian { display: none; align-items: center; gap: var(--space-2xs); margin-block-start: var(--space-2xs); font-size: var(--step--1); line-height: 1.3; color: var(--v-soft); }
  .view__canadian img { width: var(--leaf); height: var(--leaf); }
  .view__land { position: relative; margin-block-start: var(--space-l); overflow: clip; }
  /* The drawing is 2400 x 300 and slices from the bottom: keep the box no wider than 8:1 (12.5vw tall) so the
     peaks are never cropped off the top; narrower boxes crop the sides instead. The haze takes the horizon colour. */
  .view__land svg { display: block; width: 100%; max-width: none; height: max(10rem, 12.5vw); color: var(--v-sky3); }
  .view__far { fill: var(--v-far); }
  .view__mid { fill: var(--v-mid); }
  .view__near { fill: var(--v-near); }
  .view-ready .view__land path { transition: fill 2s; }
  .view__sea { position: relative; min-height: 5.5rem; margin-block-start: -1px; background: linear-gradient(180deg, var(--v-sea1), var(--v-sea2)); overflow: clip; }
  .view__sea i { position: absolute; inset: var(--y) auto auto var(--x); width: var(--w); height: var(--rule); background: var(--v-glow); opacity: 0.45; }
  .view__foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: var(--space-s); padding-block: var(--space-xl) var(--space-m); font-size: var(--step--2); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-white); }
  .view__foot span:nth-child(-n + 2) { display: none; }
  .view__clock { min-width: 16ch; text-align: end; font-variant-numeric: tabular-nums; } /* room for the time, so nothing shifts when it appears */
  @media (min-width: 900px) {
    .view__sky { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; gap: var(--space-2xl); padding-block-start: var(--space-xl); }
    .view__side { padding-block-end: var(--space-xs); }
    .view__canadian { display: flex; }
    .view__land svg { height: max(clamp(9rem, 26vh, 15rem), 12.5vw); }
    .view__foot span:nth-child(-n + 2) { display: inline; }
  }
  @media (prefers-reduced-motion: no-preference) {
    .view__sea i { animation: view-drift 14s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1s); }
  }
  @keyframes view-drift { from { translate: -1.5rem 0; opacity: 0.25; } to { translate: 1.5rem 0; opacity: 0.6; } }

  /* Home, Your Health & Safety: a teal band after the white intro (not against the hero's water), laid out
     like the intro, heading left and words right, so the eye has one place to start. */
  .health p { max-width: 40rem; font-size: var(--step-1); line-height: 1.7; }

  /* Home 04. The contractor notice: a slate box, as on her site. */
  .notice { display: grid; align-items: center; gap: var(--space-m); padding-block: var(--space-l); border-block: var(--rule) solid var(--c-line); }
  .notice h2 { font-size: var(--step-3); font-weight: var(--weight-regular); line-height: 1.3; color: var(--c-ink); }
  .notice p { margin-block-start: var(--space-3xs); }
  @media (min-width: 768px) { .notice { grid-template-columns: minmax(0, 1fr) auto; } }

  /* Home 05. Three tiles: they slide in from the right with their photos on, and the one under
     the pointer (or keyboard focus) widens while the other two give way. */
  .tiles { overflow-x: clip; }
  .tiles__list { display: grid; gap: var(--space-s); }
  .tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: clip; text-decoration: none; color: var(--c-white); background: var(--c-slate); }
  .tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 900ms var(--ease-out); }
  .tile__label { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); padding: var(--space-s) var(--space-m); font-size: var(--step-3); line-height: 1.2; background: var(--c-slate); transition: background-color var(--dur-ui) var(--ease-ui); }
  .tile:is(:hover, :focus-visible) img { transform: scale(1.05); }
  .tile:is(:hover, :focus-visible) .tile__label { background: var(--c-teal); }
  @media (min-width: 700px) {
    .tiles__list { display: flex; gap: var(--space-m); height: clamp(20rem, 32vw, 27rem); }
    .tiles__list > li { flex: 1 1 0; min-width: 0; }
    .tiles__list > li:is(:hover, :focus-within) { flex-grow: 1.5; }
    .tile { height: 100%; aspect-ratio: auto; }
  }
  @media (min-width: 700px) and (prefers-reduced-motion: no-preference) {
    .tiles__list > li { transition: flex-grow var(--dur-expand) var(--ease-out); }
  }

  /* Home 08 and the Reviews page: WavePoint's review widget (it draws itself in a shadow root). */
  .reviews { text-align: center; }
  .reviews__widget { min-height: 10rem; margin-block: var(--space-l) var(--space-xl); text-align: start; }


  /* Service pages: a client's words from a Google review (verbatim), steps, questions, the byline. */
  .client-quote { max-width: 38rem; margin-block-start: var(--space-xl); padding-block-start: var(--space-m); border-block-start: var(--border-button) solid var(--c-sand); }
  .client-quote blockquote p { font-family: var(--font-display); font-size: var(--step-3); font-weight: var(--weight-light); line-height: 1.45; color: var(--c-teal); }
  .client-quote figcaption { margin-block-start: var(--space-s); font-size: var(--step--1); color: var(--c-muted); }
  .steps__intro { margin-block-end: var(--space-m); }
  .steps { display: grid; gap: var(--space-m); counter-reset: step; }
  .steps > li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0 var(--space-m); padding-block-start: var(--space-m); border-block-start: var(--rule) solid var(--c-line); counter-increment: step; }
  .steps > li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-size: var(--step-3); font-weight: var(--weight-light); line-height: 1.2; color: var(--c-teal); }
  .steps h3 { font-size: var(--step-2); font-weight: var(--weight-regular); line-height: 1.35; color: var(--c-ink); }
  .steps p { margin-block-start: var(--space-3xs); }
  .steps--plain > li { grid-template-columns: minmax(0, 1fr); }
  .steps--plain > li::before { content: none; }
  .steps + .actions { margin-block-start: var(--space-xl); }
  /* Steps side by side (Home: Getting Started). */
  @media (min-width: 900px) {
    .steps--row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); }
    .steps--row > li { grid-template-columns: minmax(0, 1fr); align-content: start; }
    .steps--row > li::before { grid-row: auto; margin-block-end: var(--space-s); font-size: var(--step-5); }
  }
  .getting-started .actions { margin-block-start: var(--space-xl); }
  .author { display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: start; gap: var(--space-m) var(--space-l); max-width: 46rem; }
  .author__photo { position: relative; aspect-ratio: 1; overflow: clip; border-radius: 50%; background: var(--c-photo); }
  .author__photo img { position: absolute; top: -22%; left: -112%; width: 225%; max-width: none; height: auto; } /* her face, cropped from the teaching photo */
  .author p + p { margin-block-start: var(--space-3xs); }
  .author__name { font-size: var(--step-2); color: var(--c-ink); }
  .author__name a { text-decoration: none; }
  .author__name a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 0.15em; }
  .author__role { font-weight: var(--weight-semibold); color: var(--c-teal); }
  .author__date { font-size: var(--step--1); color: var(--c-muted); }

  /* Reviews page: her Google reviews as plain text, in full. */
  .review-list { display: grid; gap: var(--space-2xl); }
  @media (min-width: 900px) { .review-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) clamp(2.5rem, 6vw, 5rem); align-items: start; } }
  .review { padding-block-start: var(--space-m); border-block-start: var(--border-button) solid var(--c-teal); }
  .review__stars { letter-spacing: 0.15em; color: var(--c-teal); }
  .review blockquote { margin-block-start: var(--space-xs); }
  .review blockquote p + p { margin-block-start: var(--space-s); }
  .review figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3xs) var(--space-s); margin-block-start: var(--space-m); }
  .review__name { font-weight: var(--weight-semibold); color: var(--c-ink); }
  .review__meta { font-size: var(--step--1); color: var(--c-muted); }
  .review-list + .actions { margin-block-start: var(--space-2xl); }

  /* Gallery photos open in a lightbox (sections/lightbox.js); without JavaScript the link opens the photo. */
  .gallery__link { display: block; width: 100%; height: 100%; cursor: zoom-in; }
  .gallery__link img { transition: transform 600ms var(--ease-out); }
  .gallery__link:is(:hover, :focus-visible) img { transform: scale(1.04); }
  html:has(.lightbox[open]) { overflow: hidden; }
  .lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; color: var(--c-white); background: var(--c-overlay); border: 0; }
  .lightbox::backdrop { background: var(--c-overlay); }
  .lightbox__figure { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; margin: 0; padding: calc(var(--tap) + var(--space-l)) var(--space-s); }
  .lightbox__img { width: auto; height: auto; max-width: min(100%, 62.5rem); max-height: calc(100dvh - 12rem); object-fit: contain; }
  .lightbox__caption { max-width: 60ch; margin-block-start: var(--space-s); font-size: var(--step--1); text-align: center; color: var(--c-white-soft); }
  .lightbox__count { position: absolute; inset: var(--space-m) auto auto var(--space-m); font-size: var(--step--1); color: var(--c-white-soft); }
  .lightbox__btn { position: absolute; display: grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; color: var(--c-white); background: transparent; border: var(--rule) solid var(--c-white-line); border-radius: 50%; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-ui); }
  .lightbox__btn:is(:hover, :focus-visible) { background: var(--c-white-line); }
  .lightbox__btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
  .lightbox__close { inset: var(--space-s) var(--space-s) auto auto; }
  .lightbox__prev { inset: 50% auto auto var(--space-s); translate: 0 -50%; }
  .lightbox__next { inset: 50% var(--space-s) auto auto; translate: 0 -50%; }
  .lightbox--single :is(.lightbox__prev, .lightbox__next) { display: none; }
  @media (max-width: 767px) {
    .lightbox__prev { inset: auto auto var(--space-m) calc(50% - var(--tap) - var(--space-xs)); translate: none; }
    .lightbox__next { inset: auto calc(50% - var(--tap) - var(--space-xs)) var(--space-m) auto; translate: none; }
  }

  /* Home 09. The three latest posts. */
  .post-row { display: grid; gap: var(--space-l); }
  .post-row > li { display: grid; }
  @media (min-width: 768px) { .post-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }


  /* Clinical Pilates: her "Clinical Pilates Specialist" heading over the studio photo. */
  .specialist__photo { position: relative; aspect-ratio: 21 / 9; max-height: 36rem; width: 100%; overflow: clip; background: var(--c-photo); }
  .specialist__photo picture { position: absolute; inset: 0; }
  .specialist__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
  .specialist__title { padding-block-start: var(--space-xl); font-size: var(--step-5); font-weight: var(--weight-light); color: var(--c-teal); }
  @media (max-width: 699px) { .specialist__photo { aspect-ratio: 4 / 3; } }

  /* Plain pages: privacy, thanks, not found. */
  .simple { padding-block: var(--space-xs) var(--space-section); }
  .simple h1 { max-width: 20ch; margin-block: var(--space-l) var(--space-l); font-size: var(--step-page); font-weight: var(--weight-light); line-height: 1.08; letter-spacing: -0.02em; color: var(--c-teal); }
  .simple h2 { font-size: var(--step-4); font-weight: var(--weight-regular); margin-block-start: var(--space-xl); }

  /* Styleguide (deleted at launch). */
  .sg { padding-block: var(--space-2xl); }
  .sg > * + * { margin-block-start: var(--space-xl); }
  .sg__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s); }
  .sg__swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: var(--space-s); }
  .sg__swatch { border: var(--rule) solid var(--c-line); font-size: var(--step--1); line-height: 1.4; }
  .sg__swatch span { display: block; height: 4rem; }
  .sg__swatch p { padding: var(--space-2xs); }
  .sg__band { padding: var(--space-l); }
}

/* -------------------------------------------------------------------------- */
@layer motion {
  /* Hidden start states exist ONLY under .motion, which the head script adds
     (and removes again if motion never finishes starting). Never hide content
     anywhere else. Module start states are set in JS, not here. */
  .motion [data-reveal] {
    opacity: 0;
    transform: translateY(1.75rem);
    transition:
      opacity var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms),
      transform var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms);
  }
  .motion [data-reveal].is-revealed { opacity: 1; transform: none; }

  /* Photos are never hidden: an image shows the moment it arrives (Rob, 2026-12-03). */
  .motion [data-reveal="media"] { opacity: 1; transform: none; }
  /* Slides in from the right, photo and all (the hero bars, the home tiles). */
  .motion [data-reveal="slide"] { transform: translateX(var(--slide-from)); }
  .motion [data-reveal="slide"].is-revealed { transform: none; }

  .motion [data-split]:not(.is-split) { visibility: hidden; }
  .motion [data-split] .split-line {
    transform: translateY(110%);
    transition: transform var(--dur-line) var(--ease-out);
    transition-delay: calc(var(--reveal-delay, 0ms) + var(--i, 0) * 80ms);
  }
  .motion [data-split].is-revealed .split-line { transform: none; }
}

/* Page-to-page transitions (multi-page sites; browsers without support just navigate). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* -------------------------------------------------------------------------- */
@layer utilities {
  .visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}
