/* Woofwards · Round 23
   One file, ordered by layer. Each component keeps its breakpoints beside it.
   Shared media queries, written out where used:
     dock layout   (max-width: 700px), (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) and (pointer: coarse)
                   Keep in step with the hero <source media> in index.html.
     narrow phone  (max-width: 480px) and (orientation: portrait) */

@font-face {
  font-family: "DM Sans";
  src: url("media/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

/* Metric-matched fallback, measured against DM Sans in Chromium: no reflow when the web font arrives. */
@font-face {
  font-family: "DM Sans Fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 93.04%;
  ascent-override: 106.4%;
  descent-override: 33.32%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Woofwards Display";
  src: url("media/woofwards-display.woff2") format("woff2");
  font-display: swap;
}

@layer reset, tokens, base, layout, components, sections, pages, preferences;

/* ───────────────────────────── reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body { margin: 0; }
  img, svg { display: block; }
  img { max-inline-size: 100%; block-size: auto; }
  figure, blockquote, h1, h2, h3, p, ol, dl, dd { margin: 0; }
  ol { padding: 0; }
}

/* ───────────────────────────── tokens */
@layer tokens {
  :root {
    /* Colour roles, sampled from Ronnie's palette reference. Contrast on white / on surface-alt. */
    --color-ink: #192f58;              /* text, primary action · 13.22:1 / 11.36:1 */
    --color-ink-muted: #3e5978;        /* secondary text · 7.23:1 / 6.21:1 */
    --color-link: #184e83;             /* inline links · 8.55:1 / 7.35:1 */
    --color-surface: #fff;
    --color-surface-alt: #def1f8;
    --color-shape: #b2d8ec;
    --color-shape-strong: #8cbbda;
    --color-border-subtle: #b7cedf;
    --color-action: var(--color-ink);
    --color-action-hover: #122548;
    --color-action-soft: #b9d0e5;      /* secondary pill · ink on it 8.2:1 */
    --color-action-soft-hover: #cbddec;
    --color-on-action: #fff;           /* 13.22:1 on action */
    --color-selector: #a0c3e5;
    --color-selector-solid: #425879;

    /* Type · fluid scale, ratio 1.2 at 375 px rising to 1.333 at 1440 px */
    --step-0: 1rem;                                           /* 16 px */
    --step-1: clamp(1.2rem, 1.153rem + .2vw, 1.333rem);        /* 19.2 → 21.3 */
    --step-2: clamp(1.44rem, 1.321rem + .506vw, 1.777rem);     /* 23 → 28.4 */
    --step-4: clamp(2.074rem, 1.692rem + 1.628vw, 3.157rem);   /* 33.2 → 50.5 */
    --step-5: clamp(2.488rem, 1.882rem + 2.585vw, 4.209rem);   /* 39.8 → 67.3 */
    --type-lead: clamp(1rem, .883rem + .5vw, 1.333rem);        /* 16 → 21.3 */
    --type-caption: .875rem;                                  /* 14 px, outside the scale */
    --type-label: 12px;                                       /* phone dock labels only; fixed so tab titles
                                                                 don't grow with text size (HIG typography) */

    /* Space · 4/8 px grid */
    --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px; --space-5: 24px;
    --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
    --section-pad: clamp(var(--space-6), 4.45vw, var(--space-8));
    --gutter: clamp(16px, 5vw, 80px);
    --content: 1216px;                                        /* the story column */
    --frame: min(2000px, 100% - 2 * var(--gutter));           /* the opening band: header, wordmark, hero */
    --anchor-space: 104px;

    /* Surfaces and motion */
    --radius-pill: 999px;
    --shadow-control: 0 4px 12px rgb(25 47 88 / 18%);
    --shadow-photo: 0 4px 14px rgb(25 47 88 / 12%);
    --glass-fill: rgb(25 47 88 / 94%);                         /* --color-ink at 94%; literal so it never computes to transparent */
    --glass-edge: rgb(255 255 255 / 50%);
    --sheen: linear-gradient(145deg, rgb(255 255 255 / 18%), transparent 50%, rgb(255 255 255 / 7%));
    --ease: cubic-bezier(.22, .61, .36, 1);
    --dur-fast: 150ms;
    --dur: 180ms;
    --dur-move: 220ms;
  }
}

/* ───────────────────────────── base */
@layer base {
  /* No global scroll-behavior: smooth. It turned focus scrolling into a delayed animation, so a control
     reached by Tab was off-screen for up to a second. site.js glides only the in-page link jumps. */
  html { color-scheme: light; background: var(--color-surface); }

  body {
    font-family: "DM Sans", "DM Sans Fallback", Arial, sans-serif;
    font-size: var(--step-0);
    line-height: 1.55;
    color: var(--color-ink);
  }

  h1, h2, h3 { line-height: 1.1; text-wrap: balance; }
  h1, h2 { font-weight: 750; letter-spacing: -.04em; }
  h1 { font-size: var(--step-5); }
  h2 { font-size: var(--step-4); }
  h3 { font-size: var(--step-1); font-weight: 750; letter-spacing: -.02em; }
  p, li, dd, figcaption { text-wrap: pretty; }

  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--color-ink); outline-offset: 4px; }
  [id] { scroll-margin-block-start: var(--space-5); }
}

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

  .chapter { padding-block: var(--section-pad); }

  .story-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(var(--space-5), 7.2vw, var(--space-9));
  }
  .story-copy { max-inline-size: 55ch; }

  @media (max-width: 700px) {
    .story-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
    .story-copy, .service-copy { grid-row: 1; }
  }
}

/* ───────────────────────────── components */
@layer components {

  /* Skip link */
  .skip {
    position: fixed;
    z-index: 40;
    inset-block-start: var(--space-2);
    inset-inline-start: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--space-2);
    background: var(--color-surface);
    transform: translateY(-160%);
  }
  .skip:focus { transform: none; }

  /* Buttons. Primary actions are solid navy in the content layer; glass is kept for the
     floating controls only (header button, section menu). */
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-block-size: 44px;
    min-inline-size: 44px;
    padding: calc(var(--space-3) - 1px) calc(var(--space-5) - 4px);
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius-pill);
    background-color: var(--color-action);
    background-image: var(--sheen);
    box-shadow: inset 0 1px 1px rgb(255 255 255 / 40%), inset 0 -2px 5px rgb(255 255 255 / 13%), var(--shadow-control);
    color: var(--color-on-action);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  }
  .button:hover { background-color: var(--color-action-hover); transform: translateY(-1px); }
  .button:active { transform: translateY(1px); box-shadow: inset 0 1px 5px rgb(25 47 88 / 24%); }

  .button-glass {
    background-color: var(--glass-fill);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    backdrop-filter: blur(18px) saturate(1.25);
  }

  .button-secondary {
    padding: calc(var(--space-2) - 1px) calc(var(--space-4) - 3px);
    border-color: rgb(25 47 88 / 19%);
    background-color: var(--color-action-soft);
    background-image: linear-gradient(145deg, rgb(255 255 255 / 30%), transparent 55%);
    box-shadow: inset 0 1px 1px rgb(255 255 255 / 45%), 0 3px 9px rgb(25 47 88 / 12%);
    color: var(--color-ink);
  }
  .button-secondary:hover { background-color: var(--color-action-soft-hover); }

  .button svg, .text-link svg {
    flex: 0 0 18px;
    inline-size: 18px;
    block-size: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .text-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-block-size: 44px;
    min-inline-size: 44px;
    color: var(--color-link);
    font-weight: 700;
    text-underline-offset: .27em;
    transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
  }
  .text-link:hover { color: var(--color-ink); text-decoration-color: transparent; }
  .text-link:active { color: var(--color-ink-muted); }

  /* Disclosures. Reveal controls are text with a ringed plus; actions are pills with an arrow. */
  .disclosure > summary {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    inline-size: fit-content;
    min-block-size: 44px;
    list-style: none;
    font-weight: 700;
    cursor: pointer;
  }
  .disclosure > summary::-webkit-details-marker { display: none; }
  .disclosure > summary::marker { content: ""; }
  .disclosure > summary:focus-visible { outline-offset: 2px; border-radius: var(--space-1); }
  .disclosure.is-animating { overflow: clip; }
  .disclosure-body { padding-block: var(--space-3) var(--space-1); }

  .disclosure-icon {
    flex: 0 0 28px;
    inline-size: 28px;
    block-size: 28px;
    padding: 3px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  }
  .disclosure > summary:hover .disclosure-icon { background-color: var(--color-ink); color: var(--color-on-action); }
  .disclosure-icon .plus-upright { transform-origin: center; transition: transform var(--dur) var(--ease); }
  .disclosure[open] .disclosure-icon .plus-upright { transform: scaleY(0); }

  .summary-open, .disclosure[open] .summary-closed { display: none; }
  .disclosure[open] .summary-open { display: inline; }

  /* Customer portraits in circles */
  .dog-portrait {
    position: absolute;
    z-index: 1;
    inline-size: var(--portrait-size, 20%);
    aspect-ratio: 1;
    overflow: hidden;
    border: 4px solid var(--portrait-rim, var(--color-surface));
    border-radius: 50%;
    background: var(--color-shape);
    box-shadow: var(--shadow-photo);
  }
  .dog-portrait img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    object-position: center var(--portrait-focus, 45%);
    transform: scale(var(--portrait-zoom, 1));
    transform-origin: center 28%;
  }
  @media (max-width: 700px) {
    .dog-portrait { border-width: 3px; }
  }

  /* Organic photo frames */
  .photo {
    --photo-radius: 48% 52% 41% 59% / 54% 47% 53% 46%;
    --shape-radius: 48% 52% 61% 39% / 60% 43% 57% 40%;
    position: relative;
    isolation: isolate;
    aspect-ratio: 1.12;
    inline-size: min(100%, 508px);
    padding: var(--space-3) var(--space-5) 20px var(--space-4);
  }
  .photo::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 1% 6% 3%;
    border-radius: var(--shape-radius);
    background: var(--color-shape);
    transform: rotate(-7deg);
  }
  .photo img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    border-radius: var(--photo-radius);
    background: var(--color-shape);
    box-shadow: var(--shadow-photo);
    text-align: center;
  }

  /* Hand-drawn spot illustrations (decorative) */
  .spot-illustration { inline-size: var(--spot-size, 80px); block-size: auto; pointer-events: none; }
  .illustration-group { display: flex; align-items: center; gap: var(--space-2); }

  /* Curved hand-off between sections */
  .section-curve {
    inline-size: 100%;
    block-size: clamp(var(--space-7), 6.65vw, 112px);
    margin-block-end: -1px;
    fill: var(--color-surface);
  }

  /* Section menu: desktop pill in the sticky header, bottom dock on phones */
  .section-menu {
    --menu-selection: 0;
    position: relative;
    display: grid;
    flex: 0 1 560px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-inline-size: 0;
    padding: var(--space-1);
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius-pill);
    background-color: var(--glass-fill);
    background-image: linear-gradient(145deg, rgb(255 255 255 / 10%), transparent 52%, rgb(255 255 255 / 6%));
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    backdrop-filter: blur(18px) saturate(1.25);
    box-shadow: inset 0 1px 1px rgb(255 255 255 / 33%), inset 0 -2px 4px rgb(227 241 255 / 12%), var(--shadow-control);
    color: var(--color-on-action);
    pointer-events: auto;
  }
  .section-menu a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-block-size: 44px;
    padding-inline: var(--space-2);
    border-radius: var(--radius-pill);
    font-size: var(--type-caption);
    font-weight: 650;
    line-height: 1.12;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .section-menu a:hover { background-color: rgb(255 255 255 / 12%); }
  .section-menu a:focus-visible { outline: 2px solid var(--color-on-action); outline-offset: -3px; }
  .section-menu a:active { transform: scale(.97); }
  .section-menu a[aria-current] { font-weight: 750; }
  .section-menu svg, .menu-label-phone { display: none; }

  .menu-selector {
    position: absolute;
    inset-block: var(--space-1);
    inset-inline-start: var(--space-1);
    inline-size: calc((100% - 2 * var(--space-1)) / 4);
    border: 1px solid rgb(255 255 255 / 44%);
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, rgb(160 195 229 / 22%), rgb(160 195 229 / 7%) 66%, rgb(160 195 229 / 16%));
    box-shadow: inset 0 1px 2px rgb(255 255 255 / 23%), 0 2px 8px rgb(12 24 48 / 22%);
    opacity: 0;
    transform: translateX(calc(var(--menu-selection) * 100%));
    transition: transform var(--dur-move) var(--ease), opacity var(--dur-fast) var(--ease);
    pointer-events: none;
  }
  .section-menu[data-ready] .menu-selector { opacity: 1; }

  @media (min-width: 701px) and (max-width: 940px) {
    .section-menu a[href="#services"] .menu-label-wide { display: none; }
    .section-menu a[href="#services"] .menu-label-phone { display: inline; }
  }

  @media (max-width: 700px), (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
    .section-menu {
      position: fixed;
      z-index: 20;
      inset-block-end: calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
      inset-inline-start: 50%;
      inline-size: min(440px, calc(100% - 2 * max(12px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))));
      transform: translateX(-50%);
    }
    .section-menu a { flex-direction: column; gap: 2px; min-block-size: 50px; font-size: var(--type-label); }
    .menu-label-wide { display: none; }
    .menu-label-phone { display: inline; }
    .section-menu svg {
      display: block;
      inline-size: 20px;
      block-size: 20px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.55;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
  }

  @media (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
    .section-menu {
      inset-inline-start: auto;
      inset-inline-end: max(12px, env(safe-area-inset-right, 0px));
      inline-size: min(360px, 55%);
      transform: none;
    }
  }
}

/* ───────────────────────────── sections */
@layer sections {

  /* Page ground. On desktop the header is transparent, so the page supplies the opening blue. */
  .site-footer { background: var(--color-surface); }

  /* Header */
  .site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 10;
    pointer-events: none;   /* only the menu and booking button take clicks */
  }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    padding-block: var(--space-3);
  }
  .header-book { flex: none; pointer-events: auto; }
  .header-book .label-short { display: none; }

  @media (min-width: 701px) {
    .home-page { background: var(--color-surface-alt); }
  }
  @media (min-width: 701px) and (max-width: 940px) {
    .header-book .label-long { display: none; }
    .header-book .label-short { display: inline; }
  }

  /* Hero */
  .hero { overflow: clip; background: var(--color-surface-alt); }
  .hero-brand { padding-block: var(--space-5); }
  .brand { display: block; min-block-size: 44px; }
  .brand img { inline-size: 100%; }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    align-items: start;
    gap: var(--space-5);
    position: relative;
  }
  .hero-copy { padding-block: var(--space-2) var(--space-6); }
  .location { margin-block-end: var(--space-4); color: var(--color-ink-muted); font-size: var(--type-caption); font-weight: 700; }
  .hero-copy h1 { max-inline-size: 13ch; }
  .hero-intro { max-inline-size: 49ch; margin-block-start: 20px; font-size: var(--type-lead); }
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); margin-block-start: var(--space-5); }
  .book-alt { color: var(--color-ink-muted); font-size: var(--type-caption); font-weight: 600; }
  .book-alt .text-link { font-size: var(--step-0); }

  .hero-art {
    position: relative;
    inline-size: 100%;
    max-inline-size: 620px;
    min-inline-size: 0;
    aspect-ratio: 1.14;
    justify-self: end;
  }
  .hero-portrait {
    position: absolute;
    inset: 3% 19% 4% 15%;
    overflow: hidden;
    border-radius: 48% 52% 46% 54% / 50% 48% 52% 50%;
    background: var(--color-shape);
  }
  .hero-dog {
    position: absolute;
    inset-block-start: 11%;
    inset-inline-start: 49%;
    inline-size: 111%;
    max-inline-size: none;
    transform: translateX(-50%);
    filter: drop-shadow(2px 5px 9px rgb(25 47 88 / 14%));
  }
  .hero-portrait-upper { inset-block-start: 7%; inset-inline-start: 0; --portrait-focus: 52%; }
  .hero-portrait-side { inset-block-start: 19%; inset-inline-end: 1%; --portrait-size: 22%; --portrait-focus: 24%; }
  .hero-portrait-lower { inset-block-end: 2%; inset-inline-end: 5%; --portrait-size: 24%; --portrait-focus: 36%; --portrait-zoom: 1.12; }
  .hero-illustration {
    --spot-size: clamp(72px, 8vw, 120px);
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: 8%;
    transform: rotate(-10deg);
  }

  @media (max-width: 700px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
    .hero-copy { padding-block: var(--space-5) 0; }
    .location { margin-block-end: var(--space-3); }
    .hero-intro { margin-block-start: var(--space-3); }
    .hero-actions { margin-block-start: var(--space-4); }
    .hero-art { justify-self: center; max-inline-size: 424px; }
    .hero-portrait { inset-block-start: 0; }
    .hero-illustration { inset-inline-start: -4px; }
  }
  @media (hover: none) {
    .book-alt { display: none; }
  }
  @media (min-width: 600px) and (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
    .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; }
    .hero-copy { padding-block: var(--space-2) var(--space-4); }
    .location { margin-block-end: var(--space-1); }
    .hero-copy h1 { max-inline-size: none; font-size: clamp(1.875rem, 4.5vw, 2.75rem); }
    .hero-intro { margin-block-start: var(--space-2); font-size: var(--step-0); }
    .hero-actions { margin-block-start: var(--space-3); }
    .hero-art { max-inline-size: 360px; }
  }

  /* Shared story columns */
  .about { background: var(--color-surface); }
  .services { background: var(--color-surface-alt); }
  .contact { background: var(--color-surface); }
  .about, .services { padding-block-end: 0; }
  .about .story-grid, .services .story-grid { padding-block-end: clamp(var(--space-5), 3.4vw, var(--space-7)); }
  .about-curve { fill: var(--color-surface-alt); }

  .story-copy h2 + * { margin-block-start: var(--space-4); }
  .story-copy > p, .service-copy > p { color: var(--color-ink-muted); }
  .story-copy > .button, .story-copy > .button-secondary { margin-block-start: var(--space-5); }

  .story-visual {
    position: relative;
    inline-size: min(100%, 508px);
    padding-inline-end: clamp(var(--space-5), 3vw, var(--space-7));
  }
  .story-visual .photo { inline-size: 100%; }
  .story-visual .dog-portrait { inset-inline-end: 0; --portrait-size: clamp(72px, 12vw, 144px); }
  @media (max-width: 700px) {
    .story-visual { inline-size: min(100%, 424px); }
  }

  /* About Sarah */
  .photo-sarah img { object-position: 50% 40%; }
  .portrait-by-sarah { inset-block-end: 0; --portrait-focus: 23%; --portrait-zoom: 1.22; }

  .pull-quote blockquote p {
    font-size: var(--step-2);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -.02em;
    color: var(--color-ink);
  }
  .pull-quote figcaption,
  .story-full figcaption {
    margin-block-start: var(--space-2);
    color: var(--color-ink-muted);
    font-size: var(--type-caption);
    font-weight: 650;
  }
  .story-disclosure { margin-block-start: var(--space-4); }
  .story-full p { color: var(--color-ink); }
  .story-full p + p { margin-block-start: var(--space-3); }

  .about-illustrations { gap: var(--space-4); margin-block-start: var(--space-2); }
  .illustration-bath { --spot-size: clamp(88px, 9vw, 128px); transform: rotate(-6deg); }
  .illustration-shampoo { --spot-size: clamp(56px, 6vw, 80px); transform: rotate(8deg); }

  /* Services & Prices */
  .service-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(var(--space-5), 4vw, var(--space-8)); }
  .service-copy h2 + p { margin-block-start: var(--space-3); }
  .prices-grid {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    align-items: start;
    gap: var(--space-6);
    margin-block: var(--space-6) var(--space-5);
  }
  .price-group > summary {
    inline-size: 100%;
    justify-content: space-between;
    padding-block: var(--space-1) var(--space-2);
    border-block-end: 2px solid var(--color-ink);
  }
  .price-title { font-size: var(--step-1); }
  .price-group .disclosure-body > p { margin-block-end: var(--space-2); color: var(--color-ink-muted); font-size: var(--type-caption); }
  .prices > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: baseline;
    gap: var(--space-2);
    padding-block: var(--space-3);
    border-block-start: 1px solid var(--color-border-subtle);
  }
  .prices > div:first-child { border-block-start: 0; }
  .prices dt { font-weight: 650; }
  .prices dd { font-size: var(--step-1); font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
  .prices small { display: block; color: var(--color-ink-muted); font-size: var(--type-caption); font-weight: 400; line-height: 1.45; }

  .photo-terrier { --photo-radius: 55% 45% 53% 47% / 44% 53% 47% 56%; aspect-ratio: .95; }
  .photo-terrier::before { background: var(--color-shape-strong); transform: rotate(9deg); }
  .photo-terrier img { object-position: 50% 45%; }
  .portrait-by-services { inset-block-start: 0; --portrait-rim: var(--color-surface-alt); --portrait-focus: 31%; --portrait-zoom: 1.32; }
  .services-illustrations { justify-content: center; gap: clamp(var(--space-3), 2vw, var(--space-5)); margin-block-start: var(--space-2); }
  .illustration-brush { --spot-size: clamp(72px, 7.5vw, 104px); transform: rotate(-12deg); }
  .illustration-tools { --spot-size: clamp(88px, 9vw, 120px); transform: rotate(6deg); }

  @media (max-width: 900px) {
    .service-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--space-5); }
    .prices-grid { gap: var(--space-5); }
  }
  @media (max-width: 700px) {
    .service-grid { grid-template-columns: minmax(0, 1fr); }
    .visual-terrier { justify-self: end; }
    .photo-terrier { aspect-ratio: 1.1; }
    .photo-terrier img { object-position: 50% 34%; }
  }
  @media (max-width: 560px) {
    .prices-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  }

  /* Booking */
  .photo-edna { --photo-radius: 48% 52% 49% 51% / 51% 56% 44% 49%; }
  .photo-edna img { object-position: 50% 72%; }
  .portrait-by-contact { inset-block-end: 0; --portrait-focus: 36%; --portrait-zoom: 1.16; }

  .booking-steps { display: grid; gap: var(--space-3); list-style: none; counter-reset: step; }
  .booking-steps li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: var(--space-3);
    align-items: start;
    counter-increment: step;
    color: var(--color-ink-muted);
  }
  .booking-steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    inline-size: 28px;
    block-size: 28px;
    border: 1.5px solid var(--color-ink);
    border-radius: 50%;
    color: var(--color-ink);
    font-size: var(--type-caption);
    font-weight: 750;
    line-height: 1;
  }
  .booking-details {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-2) var(--space-3);
  }
  address { margin-block-start: 20px; color: var(--color-ink-muted); font-style: normal; }
  .contact-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); }
  .contact-illustrations { margin-inline: auto var(--space-2); }   /* room for the tilted drawing */
  .illustration-bulldog { --spot-size: clamp(88px, 9vw, 128px); transform: rotate(-7deg); }
  .illustration-bandana { --spot-size: clamp(64px, 6.5vw, 96px); transform: rotate(7deg); }
  @media (max-width: 700px) {
    .contact-illustrations { margin-inline-start: 0; }
  }

  /* Footer */
  .site-footer { border-block-start: 1px solid var(--color-border-subtle); }
  .footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-1) var(--space-4);
    padding-block: var(--space-3);
  }
  .footer-mark { display: inline-flex; align-items: center; min-inline-size: 48px; min-block-size: 44px; }
  .footer-mark img { inline-size: 112px; }
  .footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
  .footer nav a {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
    min-inline-size: 44px;
    padding-inline: var(--space-1);
    font-size: var(--type-caption);
    font-weight: 650;
    text-decoration: none;
    text-underline-offset: .3em;
    transition: color var(--dur) var(--ease);
  }
  .footer nav a:hover { color: var(--color-action-hover); text-decoration: underline; }

  /* Narrow portrait phones: tighter About, single-column prices, full-width booking */
  @media (max-width: 480px) and (orientation: portrait) {
    .about .story-grid {
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas:
        "heading heading"
        "portrait portrait"
        "quote quote"
        "visit illustrations";
      gap: var(--space-4) var(--space-2);
    }
    .about .story-copy { display: contents; }
    .about .story-copy h2 { grid-area: heading; }
    .about .visual-sarah { grid-area: portrait; inline-size: min(100%, 320px); justify-self: center; }
    .about .sarah-quote { grid-area: quote; margin: 0; }
    .about .story-copy > .button-secondary { grid-area: visit; justify-self: start; max-inline-size: 100%; margin-block-start: 0; }
    .about .about-illustrations { grid-area: illustrations; gap: var(--space-2); margin: 0; }
    .about .illustration-bath { --spot-size: clamp(56px, 15vw, 72px); }
    .about .illustration-shampoo { --spot-size: clamp(40px, 11vw, 52px); }

    .contact .story-copy > .button { display: flex; inline-size: 100%; }
    .contact .booking-details { align-items: center; }
    .contact .illustration-bulldog { --spot-size: 64px; }
    .contact .illustration-bandana { --spot-size: 48px; }
  }

  /* Dock layout: phones, and short landscape touch screens */
  @media (max-width: 700px), (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
    .home-page {
      --anchor-space: 24px;
      --dock-clearance: calc(76px + env(safe-area-inset-bottom, 0px));
      padding-block-end: var(--dock-clearance);
      background: var(--color-surface);
    }
    .home-page :is(a, summary) { scroll-margin-block-end: var(--dock-clearance); }
    .site-header { position: static; padding-block-start: env(safe-area-inset-top, 0px); background: var(--color-surface-alt); }
    .header-inner { padding-block: 0; }
    .header-book { display: none; }
    .hero-brand { padding-block: var(--space-2); }
    .brand { inline-size: min(200px, 100%); }
  }

  .home-page main,
  .home-page main section[id] { scroll-margin-block-start: var(--anchor-space); }
}

/* ───────────────────────────── support pages */
@layer pages {
  .bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-1) var(--space-4);
    padding-block: var(--space-3);
  }
  .support-content > p { max-inline-size: 65ch; }
  .support-content h1 { font-size: var(--step-4); }
  .support-content h1 + p, .support-content p + p { margin-block-start: var(--space-4); }
  .support-content .text-link { margin-block-start: var(--space-2); }
  .typeface-grid { display: grid; gap: var(--space-5); margin-block-start: var(--space-5); }
  .typeface-group .alphabet { font: clamp(1.25rem, 4vw, 3rem)/1.5 "Woofwards Display", sans-serif; overflow-wrap: anywhere; }
}

/* ───────────────────────────── preferences */
@layer preferences {
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
    .button:hover, .button:active, .section-menu a:active { transform: none; }
  }

  @media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
    .section-menu, .button-glass {
      background-color: var(--color-ink);
      background-image: none;
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }
    .menu-selector { background: var(--color-selector-solid); }
  }

  @media (prefers-contrast: more) {
    .button-secondary { border-color: var(--color-ink); }
    .prices > div { border-block-start-color: var(--color-ink-muted); }
  }

  @media (forced-colors: active) {
    .section-menu, .section-menu a, .button { color: ButtonText; background: ButtonFace; border-color: ButtonText; }
    .section-menu a[aria-current] { color: HighlightText; background: Highlight; }
    .section-menu a:focus-visible { outline-color: Highlight; }
    .menu-selector { display: none; }
    .disclosure-icon, .booking-steps li::before { border-color: CanvasText; }
  }
}
