/* Barking Friends Grooming: site stylesheet
   Layers: reset, tokens, base, layout, components, motion */
@layer reset, tokens, base, layout, components, motion;

@font-face {
  font-family: "Fraunces Soft";
  src: url("../fonts/fraunces-soft-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  img, svg { display: block; max-width: 100%; }
  img { height: auto; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; }
  a { color: inherit; }
  table { border-collapse: collapse; }
  [hidden] { display: none !important; }
}

@layer tokens {
  :root {
    /* from the logo: plum ring, violet towels, teal "Grooming" brush stroke, golden coat */
    --plum: #3d1650;        /* dark grounds */
    --plum-2: #4f2066;
    --plum-3: #64307e;
    --plum-deep: #2a0e38;   /* footer */
    --violet: #7b3a9b;      /* links, icons and rules on light */
    --teal: #0b7a72;        /* the one call to action */
    --teal-dark: #08625c;
    --teal-deep: #054a45;
    --mint: #8fdcd2;        /* lines and accents on dark */
    --gold: #f4c47f;        /* prices on dark */
    --lilac: #f6f0f8;       /* tinted sections */
    --lilac-2: #ece1f1;
    --ink: #2a1733;
    --muted: #65566d;
    --on-dark-muted: #d8c9e0;
    --line: #e6dbea;
    --white: #fff;
    --ok: #0b7a4a;
    --warn: #9a3412;

    --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --display: "Fraunces Soft", Georgia, "Times New Roman", serif;

    --step--1: clamp(0.875rem, 0.86rem + 0.08vw, 0.925rem);
    --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
    --step-1: clamp(1.15rem, 1.08rem + 0.3vw, 1.3rem);
    --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.85rem);
    --step-3: clamp(1.9rem, 1.5rem + 1.9vw, 3.05rem);
    --step-4: clamp(2.5rem, 1.5rem + 5vw, 5rem);

    --gutter: clamp(1rem, 4vw, 3rem);
    --max: 74rem;
    --section: clamp(3.75rem, 8vw, 7rem);
    --radius: 14px;
    --pill: 999px;
    --header-h: 76px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --spring: cubic-bezier(0.34, 1.45, 0.5, 1);
  }
}

@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
  body {
    font: 400 var(--step-0)/1.6 var(--font);
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }
  h1, h2 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }
  h1 { font-size: var(--step-4); }
  h2 { font-size: var(--step-3); }
  h3 { font-size: var(--step-1); font-weight: 800; line-height: 1.25; }
  p { text-wrap: pretty; }
  a, button, summary, input, select, textarea, [role="button"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  :focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
  .on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--mint); }
  .on-dark .form-card :focus-visible { outline-color: var(--violet); }
  ::selection { background: var(--violet); color: var(--white); }
  .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
  .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .skip {
    position: absolute; left: 12px; top: -80px; z-index: 100;
    background: var(--white); color: var(--ink); padding: 12px 16px; min-height: 44px;
    border-radius: var(--radius); font-weight: 800;
  }
  .skip:focus { top: 12px; }
  .skip:active { background: var(--lilac); }
  .icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .icon .fill, symbol .fill { fill: currentColor; stroke: none; }
  #i-paw path { fill: currentColor; stroke: none; }
}

@layer layout {
  .wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
  .section { padding-block: var(--section); }
  .section.tint { background: var(--lilac); }
  .on-dark { background: var(--plum); color: var(--white); }
  .sec-head {
    display: grid; gap: 0.9rem 4rem; align-items: end;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    margin-bottom: clamp(1.75rem, 4.5vw, 3rem);
    padding-bottom: clamp(1.1rem, 2.6vw, 1.75rem);
    position: relative;
  }
  /* the rule beneath every heading starts with a single bubble */
  .sec-head::before {
    content: ""; position: absolute; left: 0; bottom: -6px; width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid var(--teal); background: var(--white);
  }
  .sec-head::after {
    content: ""; position: absolute; left: 20px; right: 0; bottom: 0; height: 2px;
    background: linear-gradient(90deg, var(--teal) 0 3rem, var(--line) 3rem);
    transform-origin: left;
  }
  .tint .sec-head::before { background: var(--lilac); }
  .tint .sec-head::after { background: linear-gradient(90deg, var(--teal) 0 3rem, var(--lilac-2) 3rem); }
  .sec-head p { color: var(--muted); max-width: 34rem; }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
  .split.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .lede { font-size: var(--step-1); line-height: 1.5; margin-block: 1rem 1.25rem; }
  .split p + p { margin-top: 1rem; }
  @media (max-width: 860px) {
    .sec-head, .split, .split.flip { grid-template-columns: 1fr; }
  }
}

@layer components {
  /* ---------- buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    min-height: 48px; padding: 0 1.4rem;
    font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none;
    color: var(--white); background: var(--teal);
    border: 2px solid var(--teal); border-radius: var(--pill);
    transition: background-color 0.18s, border-color 0.18s, color 0.18s, scale 0.12s;
  }
  .btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
  .btn:active { background: var(--teal-deep); border-color: var(--teal-deep); scale: 0.98; }
  .btn.ghost { background: transparent; color: var(--plum); border-color: #c9b5d3; }
  .btn.ghost:hover { border-color: var(--plum); background: var(--lilac); }
  .btn.ghost:active { background: var(--lilac-2); }
  .on-dark .btn.ghost { color: var(--white); border-color: #8f6aa3; }
  .on-dark .btn.ghost:hover { background: var(--plum-2); border-color: var(--mint); }
  .on-dark .btn.ghost:active { background: var(--plum-3); }
  /* a light card inside a dark section: put the light-ground colours back */
  .on-dark .form-card .btn.ghost { color: var(--plum); border-color: #c9b5d3; background: transparent; }
  .on-dark .form-card .btn.ghost:hover { border-color: var(--plum); background: var(--lilac); }
  .on-dark .form-card .btn.ghost:active { background: var(--lilac-2); }
  .btn.small { min-height: 44px; padding: 0 1.1rem; font-size: 0.95rem; }
  .btn[aria-busy="true"] { opacity: 0.75; pointer-events: none; }
  .btn .icon { width: 1.15em; height: 1.15em; }

  .link-btn {
    display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px;
    padding: 0 0.25rem; margin-left: -0.25rem; border-radius: 6px;
    color: var(--violet); font-weight: 800; font-size: 0.975rem;
    text-decoration: underline; text-decoration-thickness: 2px;
    text-decoration-color: color-mix(in srgb, var(--violet) 35%, transparent);
    text-underline-offset: 5px;
    transition: text-decoration-color 0.18s, background-color 0.18s;
  }
  .link-btn:hover { text-decoration-color: var(--violet); }
  .link-btn:active { background: var(--lilac-2); }

  /* ---------- header ---------- */
  .site-header { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
  .nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
  .brand { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 48px; text-decoration: none; border-radius: var(--pill); padding-right: 0.5rem; }
  .brand:active { background: var(--lilac); }
  .brand img { width: 56px; height: 56px; view-transition-name: site-logo; }
  .brand-name { display: flex; flex-direction: column; line-height: 1.05; }
  .brand-name b { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--plum); letter-spacing: -0.01em; }
  .brand-name small { font-size: 0.8rem; font-weight: 800; color: var(--teal); letter-spacing: 0.06em; }
  .nav { display: flex; align-items: center; gap: clamp(0rem, 0.8vw, 0.6rem); }
  .nav a:not(.btn) {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.6rem;
    font-weight: 700; font-size: 0.975rem; text-decoration: none; border-radius: var(--pill);
    transition: background-color 0.18s, color 0.18s;
  }
  .nav a:not(.btn):hover, .nav a[aria-current="true"] { background: var(--lilac); color: var(--plum); }
  .nav a:not(.btn):active { background: var(--lilac-2); }
  .nav .btn { margin-left: 0.5rem; }
  .header-actions { display: none; align-items: center; gap: 0.5rem; }
  .icon-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
    min-width: 48px; min-height: 48px; padding: 0 0.8rem;
    background: var(--white); border: 2px solid var(--line); border-radius: var(--pill);
    font-weight: 800; font-size: 0.95rem; text-decoration: none; color: var(--plum);
    transition: background-color 0.18s, border-color 0.18s;
  }
  .icon-btn:hover { border-color: var(--plum); }
  .icon-btn:active { background: var(--lilac); border-color: var(--plum); }
  .icon-btn.call { background: var(--teal); border-color: var(--teal); color: var(--white); }
  .icon-btn.call:active { background: var(--teal-deep); }
  @media (max-width: 1020px) {
    :root { --header-h: 68px; }
    .brand img { width: 48px; height: 48px; }
    .brand-name b { font-size: 1.15rem; }
    .nav { display: none; }
    .header-actions { display: flex; }
    html:not(.js) .menu-btn { display: none; }
  }
  @media (max-width: 370px) {
    .brand-name b { font-size: 1.05rem; }
    .icon-btn.call { padding: 0 0.7rem; }
  }

  /* ---------- menu drawer ---------- */
  .drawer {
    margin: 0 0 0 auto; padding: 0; border: 0;
    width: min(22rem, 88vw); height: 100dvh; max-height: none;
    background: var(--plum); color: var(--white);
    translate: 0 0; opacity: 1;
    transition: translate 0.32s var(--ease), opacity 0.2s, display 0.32s, overlay 0.32s;
    transition-behavior: allow-discrete;
  }
  .drawer::backdrop {
    background: #1a0824b8;
    transition: background-color 0.32s, display 0.32s, overlay 0.32s;
    transition-behavior: allow-discrete;
  }
  .drawer[open] { @starting-style { translate: 100% 0; opacity: 0.6; } }
  .drawer[open]::backdrop { @starting-style { background: #1a082400; } }
  .drawer:not([open]), .drawer[data-closing] { translate: 100% 0; opacity: 0.6; }
  .drawer:not([open])::backdrop, .drawer[data-closing]::backdrop { background: #1a082400; }
  .drawer-inner { display: flex; flex-direction: column; min-height: 100%; padding: 1rem 1.25rem 1.5rem; }
  .drawer-top { display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
  .drawer-top strong { font-family: var(--display); font-size: 1.25rem; }
  .drawer .icon-btn { background: transparent; color: var(--white); border-color: #6f4a85; }
  .drawer .icon-btn:active { background: var(--plum-3); }
  .drawer nav { margin-top: 0.75rem; border-top: 1px solid var(--plum-3); }
  .drawer nav a {
    display: flex; align-items: center; justify-content: space-between; min-height: 56px;
    font-size: 1.15rem; font-weight: 700; text-decoration: none;
    border-bottom: 1px solid var(--plum-3); padding-inline: 0.25rem;
  }
  .drawer nav a .icon { color: var(--mint); }
  .drawer nav a:active { background: var(--plum-2); color: var(--mint); }
  .drawer-cta { margin-top: auto; display: grid; gap: 0.6rem; padding-top: 1.5rem; }

  /* ---------- hero ---------- */
  .hero { position: relative; overflow: clip; isolation: isolate; }
  .hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
      radial-gradient(48rem 30rem at 82% 30%, #5a2475 0%, transparent 65%),
      radial-gradient(30rem 20rem at 8% 100%, #4a1b60 0%, transparent 70%);
  }
  .hero-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.25rem, 5vw, 4.5rem); align-items: center;
    padding-block: clamp(2.75rem, 7vw, 6rem) clamp(3rem, 7vw, 6rem);
  }
  .hero-where { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--on-dark-muted); font-size: var(--step--1); font-weight: 700; margin-bottom: 1.1rem; }
  .hero-where .icon { color: var(--mint); }
  .hero-lede { margin-top: 1.35rem; max-width: 32rem; font-size: var(--step-1); line-height: 1.5; color: #eadff0; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }
  @media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
  @media (max-width: 420px) { .hero-actions .btn { flex: 1 1 100%; } }

  /* the signature: the size scale drawn as soap bubbles, small to extra-large */
  .scale { justify-self: center; text-align: center; width: 100%; }
  .scale-title { font-family: var(--display); font-size: var(--step-1); color: var(--white); }
  .scale-note { margin-top: 0.75rem; color: var(--on-dark-muted); font-size: var(--step--1); }
  .bubbles {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end;
    gap: 0.4rem 0; margin-top: 1.25rem; padding-inline: 0.5rem;
  }
  .bubbles li + li { margin-left: -0.55rem; }
  .bubbles li:nth-child(2) { --i: 1; } .bubbles li:nth-child(3) { --i: 2; } .bubbles li:nth-child(4) { --i: 3; }
  .bubble {
    --d: 108px;
    width: var(--d); height: var(--d); border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem;
    text-decoration: none; color: var(--white); text-align: center; line-height: 1.15;
    position: relative;
    border: 1.5px solid #ffffff80;
    background:
      radial-gradient(circle at 21% 19%, #ffffffd9 0 2.5%, #ffffff00 7%),
      radial-gradient(circle at 74% 82%, #8fdcd252 0%, #8fdcd200 52%),
      radial-gradient(circle at 18% 72%, #f4c47f38 0%, #f4c47f00 48%),
      #ffffff0d;
    box-shadow: inset 0 0 22px #ffffff26, inset -6px -8px 18px #8fdcd21f, 0 10px 30px #1a082440;
    transition: border-color 0.2s, background-color 0.2s, scale 0.25s var(--spring);
  }
  .bubble b { font-family: var(--display); font-weight: 700; font-size: calc(var(--d) * 0.17); letter-spacing: -0.01em; }
  .bubble span { font-size: 0.78rem; color: var(--on-dark-muted); font-weight: 700; }
  .bubble em { font-style: normal; font-weight: 800; color: var(--gold); font-size: 0.9rem; font-variant-numeric: tabular-nums; margin-top: 0.15rem; }
  .bubble:hover { border-color: var(--mint); scale: 1.04; }
  .bubble:active { background-color: #ffffff2e; scale: 0.97; }
  .b-small { --d: 106px; }
  .b-medium { --d: 124px; }
  .b-large { --d: 146px; }
  .b-xl { --d: 170px; }
  @media (max-width: 1100px) and (min-width: 861px) {
    .b-small { --d: 98px; } .b-medium { --d: 112px; } .b-large { --d: 130px; } .b-xl { --d: 150px; }
  }
  @media (max-width: 560px) {
    .bubbles li + li { margin-left: 0; }
    .bubbles { gap: 0.35rem 0.35rem; }
    .b-small { --d: 104px; } .b-medium { --d: 118px; } .b-large { --d: 132px; } .b-xl { --d: 150px; }
  }

  /* ---------- services ---------- */
  .svc-list { border-top: 1px solid var(--line); }
  .svc {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center;
    gap: 0.5rem 1.5rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line);
  }
  .svc-icon {
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    background: var(--lilac); color: var(--violet); border: 1.5px solid var(--lilac-2);
  }
  .svc-icon .icon { width: 26px; height: 26px; }
  .svc h3 a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; border-radius: 4px; }
  .svc h3 a:hover { color: var(--violet); }
  .svc h3 a:active { background: var(--lilac); }
  .svc-body p { color: var(--muted); margin-top: 0.2rem; }
  .svc-from { color: var(--muted); font-size: var(--step--1); white-space: nowrap; }
  .svc-from b { font-size: var(--step-1); color: var(--plum); font-variant-numeric: tabular-nums; }
  .svc-actions { display: flex; align-items: center; gap: 1rem; justify-content: flex-end; }
  @media (max-width: 760px) {
    .svc { grid-template-columns: auto minmax(0, 1fr); }
    .svc-from { grid-column: 2; }
    .svc-actions { grid-column: 1 / -1; justify-content: space-between; }
  }

  /* ---------- sizes and price table ---------- */
  .sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 1.5rem; }
  .sizes button {
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.65rem; align-items: center;
    min-height: 56px; padding: 0.5rem 0.9rem; text-align: left;
    background: var(--white); border: 2px solid var(--lilac-2); border-radius: var(--radius);
    color: var(--ink); transition: background-color 0.18s, border-color 0.18s, color 0.18s;
  }
  .sizes button:hover { border-color: var(--violet); }
  .sizes button:active { background: var(--lilac-2); }
  .sizes button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }
  .sizes button[aria-pressed="true"]:active { background: var(--teal-deep); }
  .sizes b { font-weight: 800; line-height: 1.2; }
  .sizes span { grid-column: 2; font-size: var(--step--1); opacity: 0.85; line-height: 1.2; }
  .sizes .dot { grid-row: 1 / 3; width: var(--s); height: var(--s); border-radius: 50%; border: 2px solid currentColor; opacity: 0.7; justify-self: center; }
  .sizes button:nth-child(1) .dot { --s: 10px; }
  .sizes button:nth-child(2) .dot { --s: 14px; }
  .sizes button:nth-child(3) .dot { --s: 18px; }
  .sizes button:nth-child(4) .dot { --s: 23px; }
  .sizes button .dot { margin-inline: calc((23px - var(--s)) / 2); }
  @media (max-width: 760px) { .sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

  .matrix-wrap { overflow-x: auto; }
  .matrix { width: 100%; font-variant-numeric: tabular-nums; }
  .matrix th, .matrix td { padding: 0.95rem 0.75rem; transition: background-color 0.2s, color 0.2s; }
  .matrix thead th { text-align: center; vertical-align: bottom; font-weight: 800; border-radius: var(--radius) var(--radius) 0 0; }
  .matrix thead th span { display: block; font-size: var(--step--1); color: var(--muted); font-weight: 600; }
  .matrix tbody tr { border-top: 1px solid var(--lilac-2); }
  .matrix tbody th { text-align: left; font-weight: 800; padding-left: 0; }
  .matrix tbody th a { text-decoration: none; border-radius: 4px; display: inline-flex; min-height: 44px; align-items: center; }
  .matrix tbody th a:hover { color: var(--violet); text-decoration: underline; text-underline-offset: 4px; }
  .matrix tbody th a:active { background: var(--lilac-2); }
  .matrix tbody th span { display: block; font-weight: 400; font-size: var(--step--1); color: var(--muted); max-width: 26rem; }
  .matrix td { text-align: center; }
  .price-amount { font-weight: 800; font-size: var(--step-1); color: var(--plum); }
  .matrix[data-size="small"] [data-col="small"],
  .matrix[data-size="medium"] [data-col="medium"],
  .matrix[data-size="large"] [data-col="large"],
  .matrix[data-size="xl"] [data-col="xl"] { background: var(--white); }
  .section:not(.tint) .matrix[data-size="small"] [data-col="small"],
  .section:not(.tint) .matrix[data-size="medium"] [data-col="medium"],
  .section:not(.tint) .matrix[data-size="large"] [data-col="large"],
  .section:not(.tint) .matrix[data-size="xl"] [data-col="xl"] { background: var(--lilac); }
  .matrix[data-size="small"] td[data-col="small"] .price-amount,
  .matrix[data-size="medium"] td[data-col="medium"] .price-amount,
  .matrix[data-size="large"] td[data-col="large"] .price-amount,
  .matrix[data-size="xl"] td[data-col="xl"] .price-amount { color: var(--teal); }
  @media (max-width: 700px) {
    .matrix, .matrix thead, .matrix tbody { display: block; }
    .matrix tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .matrix thead th:first-child { display: none; }
    .matrix tbody th { grid-column: 1 / -1; padding: 0.9rem 0 0.4rem; }
    .matrix th, .matrix td { padding-inline: 0.25rem; }
    .matrix td { padding-block: 0.6rem; border-radius: 10px; }
    .matrix thead th { padding-block: 0.6rem; border-radius: 10px; }
    .matrix thead th span { font-size: 0.8rem; }
    .price-amount { font-size: 1.1rem; }
  }
  .fees { border-top: 1px solid var(--lilac-2); margin-top: 0.5rem; }
  .section:not(.tint) .fees { border-color: var(--line); }
  .fee { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--lilac-2); }
  .section:not(.tint) .fee { border-color: var(--line); }
  .fee-ask { font-weight: 800; color: var(--violet); text-align: right; }
  .fees.extra { margin-top: 0; }
  .price-note { color: var(--muted); font-size: var(--step--1); margin-block: 1rem 1.5rem; max-width: 46rem; }

  /* ---------- photos ---------- */
  .photo { position: relative; }
  .photo img { width: 100%; border-radius: 28px; object-fit: cover; aspect-ratio: 914 / 544; }
  .photo.tall img { aspect-ratio: 4 / 5; }
  .photo figcaption {
    position: absolute; left: 0.85rem; bottom: 0.85rem;
    background: #2a0e38cc; color: var(--white); font-size: 0.8rem; font-weight: 700;
    padding: 0.2rem 0.65rem; border-radius: var(--pill);
  }

  /* ---------- how booking works ---------- */
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; position: relative; counter-reset: s; }
  .steps::before {
    content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--violet) 0 6px, transparent 6px 14px);
    opacity: 0.45;
  }
  .steps li { position: relative; }
  .step-n {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    background: var(--white); border: 2px solid var(--teal); color: var(--teal);
    font-family: var(--display); font-size: 1.25rem; margin-bottom: 1rem; position: relative;
  }
  .steps p { color: var(--muted); margin-top: 0.35rem; }
  @media (max-width: 760px) {
    .steps { grid-template-columns: 1fr; gap: 1.5rem; }
    .steps::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 2px; height: auto;
      background: repeating-linear-gradient(180deg, var(--violet) 0 6px, transparent 6px 14px); }
    .steps li { padding-left: 4rem; }
    .step-n { position: absolute; left: 0; top: 0; }
  }

  /* ---------- questions ---------- */
  .faq { border-top: 1px solid var(--lilac-2); max-width: 52rem; }
  .section:not(.tint) .faq { border-color: var(--line); }
  .faq details { border-bottom: 1px solid var(--lilac-2); }
  .section:not(.tint) .faq details { border-color: var(--line); }
  .faq summary {
    display: flex; align-items: center; gap: 0.9rem; min-height: 56px; padding: 0.75rem 0.25rem;
    font-weight: 800; cursor: pointer; list-style: none; border-radius: 8px;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::before {
    content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center; border: 2px solid var(--teal); color: var(--teal);
    font-weight: 800; line-height: 1; transition: rotate 0.25s var(--ease), background-color 0.2s;
  }
  .faq details[open] summary::before { rotate: 45deg; background: var(--teal); color: var(--white); }
  .faq summary:hover { color: var(--violet); }
  .faq summary:active { background: var(--lilac-2); }
  .faq details p { padding: 0 0.25rem 1.2rem 2.85rem; color: var(--muted); max-width: 44rem; }

  /* ---------- contact and form ---------- */
  .contact { position: relative; overflow: clip; }
  .contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
  .contact-copy > p { margin-top: 1rem; color: #eadff0; font-size: var(--step-1); line-height: 1.5; }
  .contact-lines { margin-top: 2rem; display: grid; gap: 0.5rem; }
  .contact-lines a, .line-static {
    display: flex; align-items: center; gap: 0.9rem; min-height: 56px; padding: 0.4rem 0.5rem; margin-left: -0.5rem;
    text-decoration: none; border-radius: var(--radius); overflow-wrap: anywhere;
  }
  .contact-lines a:hover { background: var(--plum-2); }
  .contact-lines a:active { background: var(--plum-3); }
  .contact-lines .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--plum-2); color: var(--mint); }
  .contact-lines small { display: block; color: var(--on-dark-muted); font-size: var(--step--1); font-weight: 700; }
  .contact-lines a > span, .line-static > span { font-weight: 800; font-size: var(--step-1); line-height: 1.25; }
  .contact-lines small { font-size: var(--step--1); }
  @media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

  .form-card {
    background: var(--white); color: var(--ink); border-radius: 24px;
    padding: clamp(1.25rem, 3.5vw, 2.25rem); box-shadow: 0 24px 60px #1a08244d;
  }
  .form-card a { color: var(--violet); font-weight: 700; }
  .form-card a:active { background: var(--lilac-2); }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  @media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
  .field { display: grid; gap: 0.35rem; margin-bottom: 0.9rem; align-content: start; }
  .field label { font-weight: 800; font-size: 0.975rem; }
  .opt { font-weight: 600; color: var(--muted); }
  .field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: 0.7rem 0.9rem; font-size: 1rem;
    background: var(--white); border: 2px solid #d5c6dc; border-radius: 12px;
    transition: border-color 0.18s, box-shadow 0.18s;
  }
  .field textarea { min-height: 96px; resize: vertical; }
  .field select {
    appearance: none; padding-right: 2.5rem;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b3a9b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.8rem center / 18px;
  }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px #7b3a9b2e; }
  .field input:active, .field select:active, .field textarea:active { border-color: var(--violet); }
  .field [aria-invalid="true"] { border-color: var(--warn); }
  .err { color: var(--warn); font-size: var(--step--1); font-weight: 700; }
  .err:empty { display: none; }
  .hint { color: var(--muted); font-size: var(--step--1); }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; visibility: hidden; }
  .estimate {
    display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; align-items: baseline;
    background: var(--lilac); border-radius: var(--radius); padding: 0.9rem 1.1rem; margin-block: 0.4rem 1.1rem;
  }
  .estimate span { font-weight: 800; }
  .estimate strong { font-size: var(--step-1); color: var(--teal); text-align: right; font-variant-numeric: tabular-nums; }
  .estimate strong[data-empty] { font-size: var(--step--1); color: var(--muted); font-weight: 700; }
  .estimate small { grid-column: 1 / -1; color: var(--muted); font-size: var(--step--1); margin-top: 0.2rem; }
  .send-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
  .send-row .btn { flex: 1 1 13rem; }
  .consent { margin-top: 0.9rem; color: var(--muted); font-size: var(--step--1); }
  .consent a { display: inline-block; padding-block: 11px; margin-block: -11px; }
  .nojs { background: var(--lilac); padding: 0.9rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-weight: 700; }
  .status { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius); border-left: 5px solid var(--violet); background: var(--lilac); }
  .status[data-kind="ok"] { border-color: var(--ok); background: #e9f6ef; }
  .status[data-kind="warn"] { border-color: var(--warn); background: #fdf0e8; }
  .status p { margin-top: 0.25rem; color: var(--muted); }
  .status .send-row { margin-top: 0.8rem; }
  .status .btn { color: var(--white); }
  .status .btn.ghost { color: var(--plum); }

  /* ---------- inner pages ---------- */
  .page-head { padding-block: clamp(2.25rem, 6vw, 4.5rem); position: relative; overflow: clip; isolation: isolate; }
  .page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40rem 24rem at 90% 20%, #5a2475 0%, transparent 65%); }
  .page-head h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.9rem); max-width: 20ch; }
  .page-head > .wrap > p { margin-top: 1rem; max-width: 42rem; font-size: var(--step-1); line-height: 1.5; color: #eadff0; }
  .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.5rem; margin-bottom: 1rem; color: var(--on-dark-muted); font-size: var(--step--1); font-weight: 700; }
  .crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; text-decoration: underline; text-underline-offset: 4px; border-radius: 4px; }
  .crumbs a:active { background: var(--plum-2); }
  .svc-page { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
  .svc-main > h2 { font-size: var(--step-2); margin-top: 2.75rem; margin-bottom: 1rem; }
  .svc-main > h2:first-child { margin-top: 0; }
  .muted { color: var(--muted); }
  .facts { border-top: 1px solid var(--line); }
  .facts div { display: grid; grid-template-columns: 13rem 1fr; gap: 0.25rem 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .facts dt { font-weight: 800; }
  .facts dd { color: var(--muted); }
  .ticks { display: grid; gap: 0.6rem; margin-top: 1rem; }
  .ticks li { position: relative; padding-left: 2rem; }
  .ticks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--teal); }
  .svc-side { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.5rem; }
  .side-card { border-radius: 24px; padding: 1.5rem; display: grid; gap: 0.7rem; }
  .side-card h2 { font-size: var(--step-2); }
  .side-card p { color: var(--on-dark-muted); margin-bottom: 0.4rem; }
  .side-nav h2 { font-family: var(--font); font-size: var(--step-0); font-weight: 800; letter-spacing: 0; margin-bottom: 0.4rem; }
  .side-nav a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--violet); }
  .side-nav a:hover { color: var(--plum); }
  .side-nav a:active { background: var(--lilac); }
  @media (max-width: 900px) {
    .svc-page { grid-template-columns: 1fr; }
    .svc-side { position: static; }
    .facts div { grid-template-columns: 1fr; }
  }
  .prose { max-width: 46rem; }
  .prose h2 { font-size: var(--step-2); margin-top: 2.25rem; margin-bottom: 0.6rem; }
  .prose h2:first-child { margin-top: 0; }
  .prose p + p { margin-top: 0.8rem; }
  .prose p { color: #4a3a52; }
  .lost { min-height: 50vh; display: grid; align-items: center; }

  /* ---------- footer ---------- */
  .site-footer { background: var(--plum-deep); padding-block: 3.5rem 7rem; }
  .foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2rem; }
  .foot-brand img { width: 88px; height: 88px; margin-bottom: 0.9rem; }
  .foot-brand p { color: var(--on-dark-muted); }
  .foot-brand b { color: var(--white); }
  .site-footer h2 { font-family: var(--font); font-size: var(--step-0); font-weight: 800; letter-spacing: 0; margin-bottom: 0.4rem; color: var(--mint); }
  .site-footer ul a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: #eadff0; border-radius: 4px; overflow-wrap: anywhere; }
  .site-footer ul a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
  .site-footer ul a:active { background: var(--plum-2); }
  .foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #ffffff1f; color: var(--on-dark-muted); font-size: var(--step--1); }
  @media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
  @media (min-width: 761px) { .site-footer { padding-bottom: 3rem; } }

  /* ---------- quick actions on phones ---------- */
  .quick {
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    display: none; grid-template-columns: 1fr 1fr 1.3fr; gap: 0.5rem;
    padding: 0.6rem max(0.75rem, env(safe-area-inset-left)) calc(0.6rem + env(safe-area-inset-bottom));
    background: #ffffffeb; backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    translate: 0 110%; transition: translate 0.3s var(--ease);
  }
  .quick a {
    display: flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 48px;
    border-radius: var(--pill); border: 2px solid var(--lilac-2); font-weight: 800; text-decoration: none; color: var(--plum);
  }
  .quick a:active { background: var(--lilac); }
  .quick a.quick-main { background: var(--teal); border-color: var(--teal); color: var(--white); }
  .quick a.quick-main:active { background: var(--teal-deep); }
  .quick.show { translate: 0 0; }
  @media (max-width: 760px) { .js .quick { display: grid; } }
}

@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }

    /* the hero draws itself: copy settles, then the bubbles rise small to large */
    .hero-copy > * { animation: settle 0.7s var(--ease) backwards; animation-delay: calc(var(--n, 0) * 0.08s); }
    .hero-copy > :nth-child(2) { --n: 1; }
    .hero-copy > :nth-child(3) { --n: 2; }
    .hero-copy > :nth-child(4) { --n: 3; }
    .scale-title, .scale-note { animation: settle 0.6s var(--ease) 0.9s backwards; }
    .bubbles li {
      animation: rise 0.95s var(--spring) backwards, drift 7s ease-in-out infinite alternate;
      animation-delay: calc(0.3s + var(--i, 0) * 0.13s), calc(1.6s + var(--i, 0) * 0.9s);
    }
    @keyframes settle { from { opacity: 0; translate: 0 14px; } }
    @keyframes rise { from { opacity: 0; translate: 0 90px; scale: 0.35; } }
    @keyframes drift { to { transform: translateY(-7px); } }

    html.js [data-reveal], html.js [data-head] h2, html.js [data-head] p { opacity: 0; translate: 0 18px; transition: opacity 0.6s var(--ease), translate 0.6s var(--ease); }
    html.js [data-head]::after { scale: 0 1; transition: scale 0.8s var(--ease) 0.1s; }
    html.js [data-head]::before { scale: 0; transition: scale 0.4s var(--spring); }
    html.js .is-in[data-reveal], html.js [data-head].is-in h2, html.js [data-head].is-in p { opacity: 1; translate: 0 0; }
    html.js [data-head].is-in p { transition-delay: 0.08s; }
    html.js [data-head].is-in::after { scale: 1 1; }
    html.js [data-head].is-in::before { scale: 1; }
    .svc-list [data-reveal]:nth-child(2n) { transition-delay: 0.06s; }

    .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.3s var(--ease), content-visibility 0.3s allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
    @supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

    @supports ((animation-timeline: view()) and (animation-range: entry)) {
      .photo img { animation: drift-img linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
      @keyframes drift-img { from { translate: 0 18px; } to { translate: 0 -18px; } }
      .site-header { animation: lift linear both; animation-timeline: scroll(); animation-range: 0 120px; }
      @keyframes lift { to { box-shadow: 0 6px 24px #2a0e381a; } }
    }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }
}
