/* Section edges, text and video effects, mist and glass. Loaded after main.css. */

/* Safety net: sideways text drift and parallax can never create a horizontal scrollbar.
   `clip` (not `hidden`) leaves position: sticky and vertical scrolling untouched. */
body { overflow-x: clip; }

/* ---------- Section edges: torn-paper / mountain-ridge cut ---------- */
/* Every section after the hero is cut along an irregular ridge at the top and
   overlaps the one above by the same height, so the previous section shows
   through the gaps. The cut is an alpha mask (assets/edges/*.svg, tiled). */
main > section:not(.hero):not(.page-hero),
.site-footer {
  --edge: clamp(30px, 5vw, 64px);
  --edge-img: url("../assets/edges/edge-a.svg?v=2");
  margin-top: calc(var(--edge) * -1);
  /* The dividers are straight now, so no alpha mask is needed (a mask on a whole section forces the browser to
     redraw it on every frame while anything inside scrolls, which made the swipe rows stutter on phones).
     A plain rectangular clip is free and still cuts anything that pokes out of the section. */
  clip-path: inset(0);
}
main > section:nth-of-type(even):not(.hero):not(.page-hero) { --edge-img: url("../assets/edges/edge-b.svg?v=2"); }

/* Plain sections: the space under the cut is a transparent border (the background still paints under it) */
.svc, .why, .steps, .dogs, .reviews, .contact-form, .tp-approach, .tp-offers, .tp-prevention, .tp-close, .sv-section {
  border-top: var(--edge) solid transparent;
}
/* Photo sections clip their children to the padding box, so they take the space as padding */
.svc--gold { border-top: 0; padding-top: calc(var(--section-pad) * 0.75 + var(--edge)); }
.founder { padding-top: calc(var(--section-pad) + var(--edge)); }
.meet { padding-block: var(--edge); } /* the torn edge at the top, and the next section's edge overlapping the bottom: same room on both sides */
.site-footer { padding-top: calc(36px + var(--edge)); }

/* ---------- Mist: a brand photo washed out behind the text (as on the printed brochure) ---------- */
.steps::before,
.contact-form::before {
  content: "";
  position: absolute;
  inset: calc(var(--edge) * -1) 0 0; /* up into the cut, so the ridge shows the mist too */
  z-index: -1;
  background: var(--mist) center 35% / cover no-repeat;
  opacity: 0.2;
  filter: saturate(0.7);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}
.steps { --mist: url("../assets/images/home/webp/collage-4-900.webp"); }
.contact-form { --mist: url("../assets/images/home/webp/collage-3-900.webp"); }

/* ---------- Glass band (reusable) ---------- */
/* Full-width translucent teal glass with a torn ridge on BOTH edges, so it never
   ends in a straight line. Use: <div class="glass-band"><div class="glass-band__inner">...</div></div>
   Text inside should be white or gold. Modifier .glass-band--light for teal text on light glass. */
.glass-band {
  --band-edge: clamp(18px, 3vw, 36px);
  --band-glass: color-mix(in srgb, var(--color-teal) 42%, transparent);
  position: relative;
  padding-block: calc(var(--band-edge) + 14px);
  background: var(--band-glass);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  color: var(--color-on-dark);
  -webkit-mask-image: url("../assets/edges/edge-a.svg?v=2"), url("../assets/edges/edge-b-bottom.svg?v=2"), linear-gradient(#000 0 0);
  mask-image: url("../assets/edges/edge-a.svg?v=2"), url("../assets/edges/edge-b-bottom.svg?v=2"), linear-gradient(#000 0 0);
  -webkit-mask-size: 1100px var(--band-edge), 1100px var(--band-edge), 100% calc(100% - 2 * var(--band-edge) + 2px);
  mask-size: 1100px var(--band-edge), 1100px var(--band-edge), 100% calc(100% - 2 * var(--band-edge) + 2px);
  -webkit-mask-position: 0 0, 0 100%, 0 50%;
  mask-position: 0 0, 0 100%, 0 50%;
  -webkit-mask-repeat: repeat-x, repeat-x, no-repeat;
  mask-repeat: repeat-x, repeat-x, no-repeat;
}
.glass-band--light {
  --band-glass: color-mix(in srgb, var(--color-white) 62%, transparent);
  color: var(--color-text);
}
.glass-band__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Text reveal (all sections, every browser) ---------- */
/* reveal.js splits headings into words and tags the other texts with .rv; an
   IntersectionObserver adds .is-in as they enter the screen. Headings rise word by
   word out of a mask, paragraphs and card texts float up in sequence, the gold rule
   under each service name draws itself. transform + opacity only. The hidden state
   exists only when JS runs and motion is allowed (html.js-reveal), so nothing is
   ever left invisible. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.w > span { display: inline-block; }

.js-reveal .w > span {
  transform: translateY(118%);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 80ms);
}
.js-reveal .is-in .w > span { transform: none; }

.js-reveal .rv {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.9s ease-out var(--d, 0s), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s);
}
.js-reveal .rv.is-in { opacity: 1; transform: none; }

.svc-card__title::after { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.js-reveal .svc-card__title::after { transform: scaleX(0); transition-duration: 0.9s; transition-delay: calc(var(--d, 0s) + 0.35s); }
.js-reveal .svc-card__title.is-in::after { transform: none; }
/* Hover / focus: the gold rule stretches */
.js-reveal .svc-card:hover .svc-card__title.is-in::after,
.svc-card:hover .svc-card__title::after { transform: scaleX(1.8); transition-delay: 0s; transition-duration: 0.5s; }

@media (prefers-reduced-motion: no-preference) {
  /* Hover / keyboard focus: the photo frame lifts, the card feels pressable */
  .svc-card__frame { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
  .svc-card:hover .svc-card__frame,
  .svc-card:focus-within .svc-card__frame { transform: translateY(-8px); }
  .svc-card:active .svc-card__frame { transform: translateY(-3px) scale(0.99); }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Photos drift and settle inside their frame while the card crosses the screen */
    .svc-card__img {
      animation: img-drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}
/* Minimal zoom (7%) so the photo is stretched as little as possible while it drifts (+-3%) */
@keyframes img-drift { from { transform: scale(1.07) translateY(-3%); } to { transform: scale(1.07) translateY(3%); } }

/* The service photos are low-res stand-ins (~335px wide). Cap their on-screen width so they are
   never stretched much beyond their real size. When hi-res photos arrive, raise or remove this. */
:root { --photo-max: 380px; }

/* Photo frame (clips the drifting photo, carries the rounded corners) */
.svc-card__frame { display: block; overflow: hidden; border-radius: var(--radius-img); }
.svc-card__frame .svc-card__img { display: block; border-radius: 0; }

/* ---------- Services: a different composition per block ---------- */
/* Walks: staggered columns, tall / square / tall photos stepping down the page */
@media (min-width: 768px) {
  .svc--stagger .svc__list { padding-bottom: 96px; }
  .svc--stagger .svc-card:nth-child(2) { margin-top: 72px; }
  .svc--stagger .svc-card:nth-child(3) { margin-top: 144px; }
  .svc--stagger .svc-card:nth-child(odd) .svc-card__img { aspect-ratio: 4 / 5; }
}

/* Training + Grooming (featured): title stays pinned while big photos scroll past.
   Grooming mirrors Training (title on the right). */
@media (min-width: 1024px) {
  .svc--feature .svc__inner {
    max-width: 1200px;
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    column-gap: clamp(40px, 6vw, 96px);
    align-items: start;
    text-align: left;
  }
  .svc--feature .svc__head { position: sticky; top: 140px; }
  .svc--feature .svc__kicker { margin-bottom: 20px; text-align: left; }
  .svc--feature .svc__title { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; letter-spacing: -0.01em; }
  .svc--feature .svc__sub { margin-top: 20px; }
  .svc--feature .svc__list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(72px, 14vh, 150px);
    overflow: visible;
  }
  .svc--feature .svc-card { flex: none; width: min(100%, var(--photo-max)); text-align: left; }
  .svc--flip .svc-card { margin-left: auto; }
  .svc--feature .svc-card__img { aspect-ratio: 4 / 3; }
  .svc--feature .svc-card__title { margin-top: 28px; font-size: 1.5rem; }
  .svc--feature .svc-card__title::after { margin-left: 0; }
  .svc--feature .svc-card__text { margin: 16px 0 0; max-width: 30em; font-size: 1.0625rem; line-height: 1.5; }

  .svc--flip .svc__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .svc--flip .svc__head { grid-column: 2; grid-row: 1; }
  .svc--flip .svc__list { grid-column: 1; grid-row: 1; }
}

/* Pet care: the section is pinned and the cards slide sideways as you scroll down */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .svc--pan {
      box-sizing: border-box;
      /* pinned for exactly as long as the cards need to slide (pan.js sets --pan-travel), a little more for a calm pace */
      height: calc(100vh + var(--pan-travel, 40vh) * 1.4);
      height: calc(100svh + var(--pan-travel, 40vh) * 1.4);
      padding-block: var(--edge) 0;
      overflow: clip; /* hidden would break position: sticky */
      view-timeline: --pan block;
    }
    .svc--pan .svc__inner {
      position: sticky;
      top: 0;
      box-sizing: border-box;
      height: 100vh;
      max-width: none;
      padding: 96px 0 24px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      overflow: hidden;
    }
    .svc--pan .svc__list {
      margin: 36px 0 0;
      padding: 0 max(16px, calc((100vw - 1100px) / 2 + 32px));
      display: flex;
      align-items: flex-start;
      width: max-content;
      overflow: visible;
      scroll-snap-type: none;
      gap: clamp(20px, 3vw, 40px);
      animation: pan linear both;
      animation-timeline: --pan;
      animation-range: contain 0% contain 100%;
    }
    .svc--pan .svc-card { flex: 0 0 min(78vw, var(--photo-max)); }
    .svc--pan .svc-card__img { aspect-ratio: 4 / 3; }
  }
}
@keyframes pan { from { transform: none; } to { transform: translateX(calc(-100% + 100vw)); } }

/* ---------- Services: text parallax ---------- */
/* Texts drift at their own pace, so they are never glued to the page. Uses the
   independent `translate` property (the entrance animations use `transform`),
   so nothing fights. Card text moves vertically a little (its gap to the photo is
   larger than the travel); headings glide sideways, in opposite directions. */
.svc { overflow-x: clip; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .svc-card__body {
      animation: body-drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    /* Service headings: a light vertical parallax, identical for all four (no sideways movement) */
    .svc__kicker, .svc__title, .svc__sub, .svc__cta {
      animation: head-rise linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}
/* Pet care is pinned while its cards slide: its full-width title has nothing to drift against */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
  }
}
@keyframes body-drift { from { translate: 0 28px; } to { translate: 0 -28px; } }
@keyframes head-rise { from { translate: 0 14px; } to { translate: 0 -14px; } }
/* (same travel on every width: 28px stays inside the page margins, so it can never create a horizontal scrollbar) */

/* Grooming photos are all high-res: no need for the small cap here */
.svc--sand { --photo-max: 520px; }

/* Why choose us: the photo reaches up into the torn cut (the section's ridge mask
   clips it), instead of starting below it with a straight edge */
.why__media { margin-top: calc(var(--edge) * -1); }
/* Phones: the photo sits above the text, so its bottom edge gets its own torn cut.
   (From 768px up the next section's ridge already tears it.) */

/* Contact: no mist right under the torn edge (it read as a grey stain on the ridge);
   the photo fades in lower down and out again before the form */
.contact-form::before {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 38%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 38%, transparent 100%);
  opacity: 0.16;
}

/* Pause control shared by every background video except the hero's:
   small, translucent, quiet for everyone else (WCAG 2.2.2) */
.video-toggle__play,
.video-toggle[aria-pressed="true"] .video-toggle__pause { display: none; }
.video-toggle[aria-pressed="true"] .video-toggle__play { display: block; }
.video-toggle {
  position: absolute;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-teal) 45%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--color-on-dark);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}
.video-toggle[hidden] { display: none; }
.video-toggle:hover { background: color-mix(in srgb, var(--color-teal) 80%, transparent); transform: scale(1.08); }
.video-toggle:active { transform: scale(0.94); }
.video-toggle:focus-visible { outline: 2px solid var(--color-on-dark); outline-offset: 2px; }
/* above the torn edges, never under the fixed header */
.why__media .video-toggle { bottom: calc(var(--edge) + 16px); }


/* ---------- Why choose us: video in place of the photo ---------- */
.why__media { position: relative; overflow: hidden; }
.why__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 50%; /* keep the dog's face in frame */
}
/* Hero: the new video is cut vertically for phones, centred */
@media (max-width: 767px) {
  .hero__video { object-position: 50% 50%; }
}

/* Hero: the video starts just below the header, so the hand and the dog's paw at the
   top of the frame are no longer hidden behind it (or clipped by the parallax bleed,
   which pushes the media 80px above the hero on wide screens). */
.hero__video { inset: 88px 0 0; height: calc(100% - 88px); object-position: 50% 0; }
.has-parallax .hero__video { inset: calc(80px + 88px) 0 0; height: calc(100% - 80px - 88px); }
@media (max-width: 767px) {
  .hero__video,
  .has-parallax .hero__video { inset: 76px 0 0; height: calc(100% - 76px); object-position: 50% 0; }
}

/* ---------- Meet: the problem + Amira in one glass card over a video ---------- */
.meet { position: relative; }
/* the video fills the whole section, torn edge included (the section's own mask cuts it) */
.meet__bg {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--color-teal) 14%, var(--color-cream));
}
.meet__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 60%;
}
.meet .video-toggle { bottom: calc(var(--edge) + 20px); right: 16px; }

.meet__block {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 24px 16px; /* never flush against the torn edges, even on a landscape phone */
}

/* Same see-through gold glass as the old "Not sure..." box, a bit more opaque because the video keeps moving behind it.
   Narrow, so the video stays visible around it. */
.meet__card {
  justify-self: center;
  width: min(100%, 560px);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-img);
  background: var(--label-bg);
  -webkit-backdrop-filter: var(--label-blur);
  backdrop-filter: var(--label-blur);
  box-shadow: var(--label-shadow);
  text-align: center;
}
.meet__card .cta__title { max-width: 15em; margin-inline: auto; text-wrap: balance; }
.meet__card .cta__body { max-width: 28em; margin: 20px auto 0; }

/* "Hi, I'm Amira": a small round photo (her face and the dog's) next to her name, set apart by a thin gold rule */
.meet__who {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--color-gold) 70%, transparent);
  text-align: left;
}
.meet__photo {
  flex: none;
  width: 112px;
  height: 112px;
  overflow: hidden;
  border: 4px solid var(--color-ring);
  border-radius: 50%;
  box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--color-teal) 70%, transparent);
}
.meet__img {
  display: block;
  width: 100%;
  height: 100%; /* overrides the height attribute */
  object-fit: cover;
  object-position: 50% 16%; /* both faces: hers (top right) and the dog's (below left) */
}
.meet__name {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  font-size: 1.125rem;
  letter-spacing: var(--ls-heading);
  text-transform: uppercase;
  color: var(--color-heading);
}
.meet__role { margin: 6px 0 0; font-size: 1rem; line-height: 1.55; }
.meet__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.meet__ctas .btn { margin: 0; }

@media (min-width: 768px) {
  .meet__block { padding-inline: clamp(32px, 6vw, 96px); }
  .meet__card { justify-self: start; text-align: left; }
  .meet__card .cta__title, .meet__card .cta__body { margin-inline: 0; }
  .meet__photo { width: 128px; height: 128px; }
  .meet__who { gap: 22px; }
}
/* Phones: vertical card, centred between the two torn edges */
@media (max-width: 767px) {
  /* vertical card: round photo on top, name and role centred below it */
  .meet__who { flex-direction: column; gap: 14px; text-align: center; }
  .meet__photo { width: 120px; height: 120px; }
  .meet__role { max-width: 22em; margin-inline: auto; }
}

/* ---------- How it works: the three steps evolve ---------- */
/* Card 1, a path draws to card 2, path to card 3. Each card sits a little higher and
   warmer than the one before, and the last badge is filled gold: a journey that
   arrives. Plays once when the list reaches the screen (reveal.js adds .is-in).
   Without JS or with reduced motion the final state is simply there. */
.steps__list { --rise: 0px; }
.step { --rise: 0px; background: color-mix(in srgb, var(--color-gold) calc(var(--warm, 0) * 1%), var(--color-cream)); }
.step:nth-child(2) { --warm: 9; }
.step:nth-child(3) { --warm: 20; }
.step:nth-child(3) .step__num {
  background: var(--color-gold);
  color: var(--color-teal);
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--color-gold) 80%, transparent);
}
@media (min-width: 768px) {
  .step:nth-child(2) { --rise: -16px; }
  .step:nth-child(3) { --rise: -32px; }
  .step { transform: translateY(var(--rise)); }
  .steps__list { padding-bottom: 32px; } /* room for the staircase */
}
/* solid line that draws over the dashed path (left to right, top to bottom on phones) */
.step + .step::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  height: 72px;
  border-left: 2px solid var(--color-accent);
  transform-origin: top;
}
@media (min-width: 768px) {
  .step + .step::after {
    bottom: auto;
    top: 0;
    left: auto;
    right: calc(50% + 32px);
    width: calc(100% + var(--gap) - 64px);
    height: 0;
    border-left: 0;
    border-top: 2px solid var(--color-accent);
    transform-origin: left;
  }
}

.js-reveal .steps__list:not(.is-in) .step { opacity: 0; }
.js-reveal .step {
  transition: opacity 0.8s ease-out var(--d), transform 1s cubic-bezier(0.16, 1, 0.3, 1) var(--d);
}
.js-reveal .steps__list:not(.is-in) .step { transform: translateY(calc(var(--rise) + 40px)); }
.js-reveal .step:nth-child(1) { --d: 0s; }
.js-reveal .step:nth-child(2) { --d: 1s; }
.js-reveal .step:nth-child(3) { --d: 2s; }

/* badge grows in with its card (smooth deceleration, no bounce) */
.js-reveal .step__num { transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--d) + 0.25s); }
.js-reveal .steps__list:not(.is-in) .step__num { transform: scale(0.4); }
/* text follows the card */
.js-reveal .step__title,
.js-reveal .step__text { transition: opacity 0.7s ease-out calc(var(--d) + 0.35s), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--d) + 0.35s); }
.js-reveal .steps__list:not(.is-in) .step__title,
.js-reveal .steps__list:not(.is-in) .step__text { opacity: 0; transform: translateY(14px); }
.js-reveal .step__text { transition-delay: calc(var(--d) + 0.5s); }
/* the path starts drawing as the previous card lands, and arrives as the next one appears */
.js-reveal .step + .step::after { transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--d) - 0.5s); }
.js-reveal .steps__list:not(.is-in) .step + .step::after { transform: scaleY(0); }
@media (min-width: 768px) {
  .js-reveal .steps__list:not(.is-in) .step + .step::after { transform: scaleX(0); }
}

/* "Build your dog's plan": the video (drawn on a canvas by why-windows.js) replaces the photo, same soft fade at the edges */
.plan-stage.has-video::before { display: none; }
.stage-video { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; border-radius: var(--radius-img); filter: saturate(1.15) brightness(0.85); } /* same edges as the glass card: the card is the window */

/* ---------- Plan builder: same teal, as glass ---------- */
/* The stage carries a photo that fades out at its edges; the card in front is the
   brand teal at ~80% with a blur, so the picture shows through softly. */
.plan-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 56px 0 48px;
}
.plan-stage::before {
  content: "";
  position: absolute;
  inset: -28px -16px;
  z-index: -1;
  background: url("../assets/images/home/webp/collage-4-900.webp") 50% 74% / cover no-repeat;
  filter: saturate(1.15) brightness(0.85);
  /* fades to nothing right at the stage edge: no visible photo border around the glass */
  -webkit-mask-image: radial-gradient(closest-side, #000 92%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 92%, transparent 100%);
}
.plan {
  margin: 0;
  border: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--color-teal) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--color-white) 22%, transparent),
    0 28px 56px -28px color-mix(in srgb, var(--color-teal) 70%, transparent);
}
@media (min-width: 768px) {
  .plan-stage::before { inset: -44px -28px; } /* never wider than the page margin (32px) */
}

/* ---------- Founder quote: video background ---------- */
.founder__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 0; /* crop from the bottom, keep the dog's head */
}
/* teal veil keeps the gold quote legible while the dog stays visible */
.founder__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, color-mix(in srgb, var(--color-teal) 52%, transparent) 0%, transparent 75%),
    color-mix(in srgb, var(--color-teal) 28%, transparent);
}
.founder .video-toggle { bottom: calc(var(--edge) + 20px); right: 16px; z-index: 1; }

/* ---------- Plan summary: two actions, told apart by colour ---------- */
/* "Send my plan" stays teal with gold text (it needs a selection first);
   "Book a Meet & Greet" is the open door: gold with teal text, always available. */
.plan__meet {
  display: block;
  width: 100%;
  margin-top: 12px;
  text-align: center;
  background: var(--color-gold);
  color: var(--color-teal);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}
.plan__meet:hover { background: color-mix(in srgb, var(--color-gold) 82%, var(--color-white)); }
.plan__meet:active { transform: scale(0.98); }
.plan__send { transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease; }
.plan__send:not(:disabled):active { transform: scale(0.98); }
.plan__meet:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 3px; }


/* ---------- Anima Mundi Dogs: tiles drop in and settle; hover lifts the photo (no dimming: colours stay true) ---------- */
/* Each photo falls a little (lower, smaller, tilted) and lands upright, one after another in reading order.
   The photos themselves keep drifting inside their frames while scrolling (parallax). */
.gallery__item { --tilt: -2deg; }
.gallery__item:nth-child(even) { --tilt: 2deg; }
.gallery__item:nth-child(3n) { --tilt: -1deg; }
.js-reveal .gallery__item.rv {
  transform: translateY(64px) scale(0.9) rotate(var(--tilt));
  transition: opacity 0.9s ease-out var(--d, 0s), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s);
}
.js-reveal .gallery__item.rv.is-in { transform: none; }
.js-reveal .gallery__item.rv.settled { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gallery__item { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
  .gallery__item:hover,
  .js-reveal .gallery__item.rv.is-in:hover { transform: translateY(-6px) scale(1.025); z-index: 1; }
}

/* ---------- Reviews: a quiet invitation to leave a Google review ---------- */
/* Honest by design: no invented quotes, rating or count. Discreet by design: no box, beige paper
   with a torn edge above (its own cut) and below (the white Contact sheet lying over it).
   The hollow stars fill one after another, as a preview, only while the button is hovered or focused. */
.reviews {
  --beige: color-mix(in srgb, var(--color-gold) 15%, var(--color-cream));
  background: var(--beige);
  /* same room above and below the content: Contact overlaps the foot by --edge, so that is added back at the bottom */
  --pad: clamp(40px, 5vw, 64px);
  padding-top: var(--pad);
  padding-bottom: calc(var(--pad) + var(--edge));
}
.reviews__inner {
  max-width: 520px;
  margin: 0 auto;
  padding-inline: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.reviews__dogs { display: flex; margin: 0; padding: 0; list-style: none; }
.reviews__dogs li + li { margin-left: -16px; }
.reviews__dog {
  display: block;
  width: 76px;
  height: 76px;
  border: 3px solid var(--color-ring);
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-cream);
}
.reviews__dog--rocky { object-position: 25% 50%; }
.reviews__stars { display: flex; gap: 4px; margin-top: 18px; color: var(--color-teal); }
.reviews__star { width: 22px; height: 22px; overflow: visible; }
.reviews__star-line { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.reviews__star-fill {
  fill: currentColor;
  opacity: 0;
  transform: scale(0.5);
  transform-origin: center;
  transform-box: fill-box;
  transition: opacity 0.3s ease calc(var(--i) * 90ms), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 90ms);
}
.reviews__inner:has(.reviews__btn:hover, .reviews__btn:focus-visible) .reviews__star-fill { opacity: 1; transform: none; }
.reviews__title { margin-top: 16px; max-width: 16em; font-size: clamp(1.25rem, 2.2vw, 1.5rem); text-wrap: balance; }
.reviews__text { max-width: 30em; margin: 12px 0 0; font-size: 0.9375rem; line-height: 1.55; text-wrap: balance; }
.reviews__btn {
  margin-top: 20px;
  padding: 9px 26px;
  font-size: 1rem;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}
.reviews__btn:hover { transform: translateY(-2px); }
.reviews__btn:active { transform: scale(0.98); }
.reviews__btn:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 4px; }
@media (min-width: 768px) {
  .reviews__dog { width: 84px; height: 84px; }
}

/* The white Contact sheet needs its own colour for its torn top edge to show against the beige
   (without it the section is see-through and the cut disappears) */
.contact-form { background: var(--color-surface); }

/* Pet care on wide screens: all three cards fit, so nothing needs to slide and nothing is pinned
   (pan.js adds .is-static). Same three-column row as the other service blocks. */
.svc--pan.is-static { height: auto; padding-top: calc(var(--section-pad) * 0.75 + var(--edge)); padding-bottom: calc(var(--section-pad) * 0.75); }
.svc--pan.is-static .svc__inner { position: static; height: auto; max-width: var(--container); padding: 0 32px; display: block; overflow: visible; }
.svc--pan.is-static .svc__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: auto;
  margin: clamp(32px, 5vw, 64px) 0 0;
  padding: 0;
  gap: 28px;
  animation: none;
  transform: none;
}
.svc--pan.is-static .svc-card { flex: none; }

/* ---------- Home copy: service call-to-actions, durations, principles ---------- */
/* Secondary action per service: a quiet underlined link, so the teal button stays reserved for the Meet & Greet / Let's talk */
.svc__cta { display: inline-block; margin-top: 20px; }
/* Walk durations (from the brochure): the time we take is part of the care */
.svc-card__meta {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-heading);
}
/* Why choose us: the four principles, as small cards with a round symbol (same teal and gold as the step badges) */
.why__principles { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; width: 100%; }
@media (min-width: 480px) { .why__principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.why__principle {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 16px 12px 18px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: var(--label-border);
  border-radius: var(--radius-img);
  /* beige label glass (site rule, see --label-* in tokens.css) */
  background: var(--label-bg);
  -webkit-backdrop-filter: var(--label-blur);
  backdrop-filter: var(--label-blur);
  box-shadow: var(--label-shadow); /* site rule: see --label-* in tokens.css */
  color: var(--color-heading);
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
}
.label-window { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; border-radius: inherit; filter: brightness(1.45) contrast(0.9); }
.label-tint { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--label-bg); -webkit-backdrop-filter: var(--label-blur); backdrop-filter: var(--label-blur); }
/* "How it works": the three steps are windows onto the "Not sure" video, same label glass */
.why__principle.has-window { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.step.has-window { isolation: isolate; background: none; border: var(--label-border); box-shadow: var(--label-shadow); }
.why__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--color-teal);
  color: var(--color-gold);
}
.why__principle strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  color: var(--color-heading);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .why__principle { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
  .why__principle:hover { transform: translateY(-3px); }
  .why__icon { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
  .why__principle:hover .why__icon { transform: scale(1.1); }
}

.why__icon svg { width: 26px; height: 26px; }

/* ---------- Language switch (header): two round badges, EN and FR ---------- */
.lang { display: flex; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.lang a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--color-teal);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-teal);
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}
.lang a[aria-current="true"] { background: var(--color-teal); color: var(--color-gold); }
.lang a:not([aria-current]):hover { background: color-mix(in srgb, var(--color-teal) 10%, transparent); transform: translateY(-1px); }
.lang a:active { transform: scale(0.95); }
.lang a:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 2px; }
@media (min-width: 768px) { .lang { margin: 0; gap: 6px; } .lang a { width: 32px; height: 32px; } }

/* ---------- Longer words (French): keep layouts intact ---------- */
/* Why choose us: a slightly wider column so "Désensibilisation" fits its card without breaking */
.why__text { max-width: 25em; }
/* Hero link: the arrow never drops to a second line */
.hero__link { white-space: nowrap; }
@media (max-width: 420px) { .hero__link { font-size: 0.75rem; letter-spacing: 0.06em; } }

/* ---------- Services dropdown ---------- */
/* The four pages stay hidden until "Services" is clicked (phones: listed under it, indented). */
.has-sub { position: relative; }
.sub-toggle { display: none; }
.sub { display: none; margin: 0 0 6px; padding: 0 0 0 16px; list-style: none; border-left: 2px solid color-mix(in srgb, var(--color-gold) 70%, transparent); }
.has-sub.is-open .sub { display: block; }
.sub-label::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.sub-label[aria-expanded="true"]::after { transform: translateY(3px) rotate(-135deg); }
.site-nav__list .sub a { padding: 8px 0; font-weight: 600; font-size: 0.9375rem; }
.site-nav__list a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--color-accent); }

@media (min-width: 768px) {
  .sub-label::after { display: none; }
  .sub { display: block; }
  .has-sub { display: flex; align-items: center; }
  .sub-toggle {
    display: grid;
    place-items: center;
    width: 24px;
    height: 32px;
    margin-left: 2px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-heading);
    cursor: pointer;
  }
  .sub-toggle::before {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .sub-toggle[aria-expanded="true"]::before { transform: translateY(1px) rotate(-135deg); }
  .sub-toggle:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 2px; border-radius: 4px; }
  .sub {
    position: absolute;
    top: 100%;
    left: -18px;
    z-index: 5;
    min-width: 232px;
    margin: 10px 0 0;
    padding: 10px 8px;
    border: 0;
    border-radius: var(--radius-img);
    background: color-mix(in srgb, var(--color-white) 94%, transparent);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 18px 40px color-mix(in srgb, var(--color-teal) 18%, transparent), 0 3px 10px color-mix(in srgb, var(--color-teal) 12%, transparent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.3s;
  }
  .sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; } /* keeps the pointer inside while it crosses the gap */
  .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .has-sub.is-closed .sub { opacity: 0; visibility: hidden; transform: translateY(6px); }
  .site-nav__list .sub a { padding: 10px 14px; border-radius: 6px; font-size: 0.9375rem; text-decoration: none; transition: background-color 0.2s ease; }
  .site-nav__list .sub a:hover { background: color-mix(in srgb, var(--color-gold) 22%, transparent); text-decoration: none; }
  .site-nav__list .sub a:active { background: color-mix(in srgb, var(--color-gold) 34%, transparent); }
  .site-nav__list .sub a:focus-visible { outline: 2px solid var(--color-teal); outline-offset: -2px; }
  .site-nav__list .sub a[aria-current="page"] { text-decoration: none; background: color-mix(in srgb, var(--color-teal) 10%, transparent); }
}

/* The next section's torn edge overlaps the foot of each section by --edge: keep text clear of it */
.svc, .svc--pan.is-static { padding-bottom: calc(var(--section-pad) * 0.75 + var(--edge) * 0.75); }
.why__text { padding-bottom: calc(48px + var(--edge) * 0.75); }
/* the card text drifts down a little while scrolling (up to 28px): allow for it */
.svc--feature { padding-bottom: calc(var(--section-pad) * 0.75 + var(--edge) + 28px); }
.why__text { padding-bottom: calc(48px + var(--edge)); }

/* Breathing band between two consecutive video sections (torn edge above, next section's edge overlapping below) */
.vgap { height: calc(var(--edge) * 2 + 110px); background: var(--color-bg); }

/* "Not sure what's right": white section, the video is only seen through the glass card (drawn by why-windows.js) */
.meet__bg { background: var(--color-white); }
.meet__video { opacity: 0; }
.meet__card.has-window { position: relative; isolation: isolate; border: var(--label-border); box-shadow: var(--label-shadow); background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- Reviews carousel: the text slides sideways by itself ---------- */
.reviews__carousel { width: 100%; margin-top: 18px; overflow: hidden; padding-block: 4px; }
.reviews__track { display: flex; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; }
.reviews__slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.reviews__slide .reviews__stars { margin-top: 0; }
.reviews__stars--full .reviews__star-fill { opacity: 1; transform: none; transition: none; }
.reviews__quote { margin: 18px 0 0; max-width: 28em; }
.reviews__quote p { margin: 0; font-size: 1.0625rem; line-height: 1.6; font-style: italic; color: var(--color-heading); text-wrap: balance; }
.reviews__author { margin-top: 14px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-teal); }
.reviews__author::before { content: ""; display: block; width: 32px; height: 2px; margin: 0 auto 12px; background: var(--color-gold); }
.reviews__nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }
.reviews__dots { display: flex; gap: 4px; }
.reviews__dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.reviews__dot::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  background: color-mix(in srgb, var(--color-teal) 28%, transparent);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}
.reviews__dot[aria-current="true"]::after { background: var(--color-teal); transform: scale(1.25); }
.reviews__dot:hover::after { transform: scale(1.3); }
.reviews__dot:focus-visible, .reviews__ctl:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 2px; border-radius: 50%; }
.reviews__ctl {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--color-teal) 35%, transparent);
  background: transparent; color: var(--color-teal); cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}
.reviews__ctl:hover { background: color-mix(in srgb, var(--color-teal) 10%, transparent); transform: translateY(-1px); }
.reviews__ctl:active { transform: scale(0.94); }
.reviews__ctl[hidden] { display: none; }
.reviews__pause .reviews__ico-play, .reviews__pause[aria-pressed="true"] .reviews__ico-pause { display: none; }
.reviews__pause[aria-pressed="true"] .reviews__ico-play { display: block; }
@media (prefers-reduced-motion: reduce) { .reviews__track { transition: none; } }

/* Meet, desktop: the glass card sits in the middle and is wider: text on the left, Amira on the right */
@media (min-width: 768px) {
  .meet__card { justify-self: center; }
}
@media (min-width: 960px) {
  /* title, thin gold line, then Amira (photo + name + her paragraph), then the button: one column, left aligned */
  .meet__card { width: min(100%, 800px); padding: clamp(36px, 4vw, 52px); }
  .meet__who { gap: 32px; align-items: center; margin-top: 24px; padding-top: 30px; }
  .meet__photo { width: 168px; height: 168px; }
  .meet__name { font-size: 1.25rem; }
  .meet__card .cta__body { max-width: 34em; font-size: 1.0625rem; line-height: 1.6; }
  .meet__role { margin-top: 10px; max-width: 34em; font-size: 1.0625rem; line-height: 1.6; }
}

/* Phones: the service rows are swipeable. Nothing inside them may fade, rise or drift while the finger moves
   (those animations were tied to the page, not to the row, and made the swipe stutter). */
@media (max-width: 767px) {
  .svc__list .svc-card__img,
  .svc__list .svc-card__body { animation: none !important; }
  .js-reveal .svc__list .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .svc__list { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .svc-card__frame { transform: translateZ(0); }
}

/* Hero, tablets and big phones (they use the wide video): the dog is on the right of the frame,
   so when the screen is not wide enough to show the whole picture, keep the right side (and the dog's head) in view. */
@media (min-width: 768px) and (max-aspect-ratio: 3/2) {
  .hero__video,
  .has-parallax .hero__video { object-position: 86% 0; }
}

/* Hero on phones: the picture is shifted to its right side, so the dog's head is never cut off (the hand may be) */
@media (max-width: 767px) {
  .hero__video,
  .has-parallax .hero__video { object-position: 85% 0; }
}

/* ---------- Big titles use the display face (Darker Grotesque) ---------- */
body :is(h1, h2, .section-title, .svc__title, .page-hero__title, .hero__title, .hero__brand, .sv-approach__title, .rf-title, .tp-title) {
  font-family: var(--font-display);
  font-weight: 800; /* the display face is loaded in one heavy weight */
  letter-spacing: 0;
}
/* Hero: the phrase is now THE headline (the brand name lives in the logo): big, display face, white over the video */
body .hero__tagline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 5vw, 3.5rem);
  letter-spacing: 0.01em;
  line-height: 1.2;
  max-width: 18em;
  color: var(--color-accent); /* brand gold */
  margin-top: 0;
  text-transform: none;
}

/* Hero text centred on every screen size */
.hero .hero__card { align-items: center; text-align: center; }
.hero .hero__title { align-items: center; }
body .hero__tagline { margin-inline: auto; }
.hero .hero__cta { justify-content: center; }

/* Hero text: in the middle of the first screen (it used to sit at the foot of the video) */
.hero .hero__content { justify-content: center; padding-bottom: 32px; }
@media (min-width: 768px) {
  .hero .hero__content { padding: calc(88px + 24px) 0 calc(88px + 24px); }
}
@media (max-width: 767px) {
  /* the hero is one screen plus 64px: keep the text centred in the part that is visible on the first screen */
  .hero .hero__content { padding-block: calc(76px + 24px) calc(64px + 24px); }
}

/* Centred over the picture, so the phrase gets a soft teal haze behind it (no box) and a stronger shadow: it stays readable on the pale sweater and on the dog's fur */
.hero .hero__card { position: relative; isolation: isolate; }
.hero .hero__card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -70px -22vw;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--color-teal) 62%, transparent) 0%, color-mix(in srgb, var(--color-teal) 30%, transparent) 55%, transparent 100%);
  pointer-events: none;
}
body .hero__tagline { text-shadow: none; }
@media (max-width: 767px) { .hero .hero__card::before { inset: -60px -12vw; } }

/* Form controls and buttons always use the site typeface (browsers default them to Arial) */
button, input, select, textarea { font-family: inherit; }

/* Hero text: a little lower than the exact middle */
.hero .hero__card { top: clamp(28px, 7vh, 72px); }
@media (max-width: 767px) { .hero .hero__card { top: clamp(48px, 10vh, 90px); } }

/* ---------- Legibility pass: nothing under 13px, gold text darkened wherever it sits on a light background ---------- */
body .subtitle { color: var(--gold-ink); }
body .hero__link { font-size: 0.9375rem; }
@media (max-width: 420px) { body .hero__link { font-size: 0.875rem; } }
body .site-footer__copy { font-size: 0.9rem; }
body .svc-card__meta, body .rf-plan__tag, body .more-svc__title, body .reviews__author, body .form__note { font-size: 0.875rem; }
body .why__principle strong { font-size: 0.875rem; }
body .rf-plan__badge { font-size: 0.8125rem; }
body .area__label { font-size: 0.8125rem; }
.area__map .leaflet-control-attribution { font-size: 11px; }
body .lang a { font-size: 0.8125rem; }

/* Tablets (768 to 1023px): the whole logo is wide, so it shrinks a little and the menu never wraps onto two lines */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-header__logo img { height: 38px; }
  .site-nav a, .site-nav .sub-label { white-space: nowrap; }
  .site-nav, .site-nav.is-open { gap: 10px; }
}

/* Second, quieter button: same shape, outlined in the brand teal */
.btn--outline {
  background: transparent;
  color: var(--color-heading);
  box-shadow: inset 0 0 0 2px var(--color-heading);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease;
}
.btn--outline:hover { background: var(--color-heading); color: var(--color-accent); transform: translateY(-2px); }
.btn--outline:active { transform: translateY(0) scale(0.98); }
.btn--outline:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 3px; }
@media (min-width: 768px) { .meet__ctas { justify-content: flex-start; } }

/* ---------- Meet card: Amira's story (photo, name and four short paragraphs) ---------- */
body .meet__who { margin: 0; padding: 0; border: 0; align-items: flex-start; gap: 28px; text-align: left; }
.meet__bio { margin: 14px 0 0; font-size: 1rem; line-height: 1.6; }
.meet__name + .meet__bio { margin-top: 12px; }
.meet__ctas { margin-top: 30px; }
@media (max-width: 767px) {
  body .meet__who { flex-direction: column; align-items: center; gap: 16px; }
  body .meet__name { text-align: center; }
  .meet__bio { max-width: 34em; text-align: left; }
}
@media (min-width: 768px) {
  body .meet__photo { flex: none; }
}
@media (min-width: 960px) {
  body .meet__card { width: min(100%, 920px); }
  .meet__bio { max-width: 40em; font-size: 1.0625rem; }
}

/* Contact: the "not sure" lead-in sits as plain text above the reply-time note */
.contact-form__intro { max-width: 36em; margin: 26px auto 0; text-align: center; }
.contact-form__lead-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--color-heading);
}
.contact-form__lead { margin: 12px 0 0; font-size: 1.0625rem; line-height: 1.6; text-wrap: balance; }

/* ---------- Meet card in three parts: 1 photo + name + first paragraph, 2 line + the other paragraphs, 3 the two buttons ---------- */
.meet__head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
body .meet__head .meet__photo { width: 148px; height: 148px; }
body .meet__head .meet__name { font-size: 1.5rem; }
.meet__story { margin-top: 26px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--color-gold) 70%, transparent); text-align: left; }
.meet__story .meet__bio:first-child { margin-top: 0; }
.meet__ctas { margin-top: 28px; }
@media (min-width: 768px) {
  .meet__head { flex-direction: row; align-items: center; gap: 30px; text-align: left; }
  body .meet__head .meet__photo { width: 190px; height: 190px; }
  body .meet__head .meet__name { font-size: 2rem; }
}
@media (max-width: 767px) { .meet__ctas { justify-content: center; } }

/* The first paragraph now sits right under the name, next to the photo; the story block below holds the other three paragraphs */
.meet__intro { display: flex; flex-direction: column; align-items: center; }
.meet__intro .meet__bio { margin-top: 12px; text-align: left; }
.meet__story { margin-top: 24px; padding-top: 24px; }
.meet__story .meet__bio:first-child { margin-top: 0; }
@media (min-width: 768px) {
  .meet__intro { align-items: flex-start; }
  .meet__head { align-items: flex-start; }
  body .meet__head .meet__name { margin-top: 6px; }
}

/* "Let's talk": a discreet text link right after the first paragraph (bold, gold underline, small arrow) */
.meet__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 2px;
  font-weight: 700;
  color: var(--color-heading);
  text-decoration: none;
}
.meet__link span {
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.meet__link:hover { color: var(--color-teal); }
.meet__link:active { transform: scale(0.98); }
.meet__link:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 4px; border-radius: 4px; }
@media (max-width: 767px) { .meet__intro .meet__link { align-self: flex-start; } }

/* Both links (Let's talk, Learn more) share one look, no arrow; "Learn more" sits centred at the foot of the card */
.meet__ctas { justify-content: center; margin-top: 22px; }
.meet__ctas .meet__link { margin-top: 0; }
@media (min-width: 768px) { .meet__ctas { justify-content: center; } }

/* Home service cards: the whole card (photo, name, text) is one link to its service page (stretched link on the name) */
.svc-card { position: relative; cursor: pointer; }
.svc-card__link { color: inherit; text-decoration: none; }
.svc-card__photo { display: block; }
.svc-card__link::after { content: ""; position: absolute; inset: -6px -8px; z-index: 1; }
.svc-card__link:focus-visible { outline: none; }
.svc-card__link:focus-visible::after { outline: 2px solid var(--color-teal); outline-offset: 0; border-radius: 6px; }

/* Cards without a link (Training is hidden for now) are not clickable */
.svc-card:not(:has(a)) { cursor: default; }
span#services { scroll-margin-top: 150px; }

/* ---------- Plan cart (floating bar + panel) ---------- */
.has-plan .sv-sticky { display: none !important; }
.am-cart { position: fixed; z-index: 150; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: stretch; gap: 10px; pointer-events: none; }
.am-cart[hidden] { display: none; }
.am-cart > * { pointer-events: auto; }
.am-cart__bar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 1rem;
  background: var(--color-teal); color: var(--color-accent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-white) 30%, transparent), 0 14px 34px -10px color-mix(in srgb, var(--color-teal) 70%, transparent), 0 2px 6px color-mix(in srgb, var(--color-teal) 30%, transparent);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.am-cart__bar:hover { transform: translateY(-2px); }
.am-cart__bar:active { transform: scale(0.98); }
.am-cart__bar:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; }
.am-cart__count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--color-accent); color: var(--color-teal); font-size: 0.875rem; line-height: 1; }
.am-cart__bar.is-bump { animation: am-bump 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes am-bump { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 100% { transform: scale(1); } }
.am-cart__panel {
  padding: 20px 20px 16px; border-radius: 24px;
  background: var(--label-bg); border: var(--label-border);
  -webkit-backdrop-filter: var(--label-blur); backdrop-filter: var(--label-blur);
  box-shadow: var(--label-shadow); color: var(--color-heading);
}
.am-cart__panel[hidden] { display: none; }
.am-cart__title { margin: 0; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.am-cart__list { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 4px; max-height: 38vh; overflow: auto; }
.am-cart__list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 4px 8px 0; font-weight: 700; border-bottom: 1px dashed color-mix(in srgb, var(--color-teal) 22%, transparent); }
.am-cart__list button { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--color-teal) 10%, transparent); color: var(--color-heading); cursor: pointer; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease; }
.am-cart__list button:hover { background: color-mix(in srgb, var(--color-teal) 20%, transparent); transform: scale(1.08); }
.am-cart__list button:active { transform: scale(0.94); }
.am-cart__list button:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 2px; }
.am-cart__send { display: block; text-align: center; }
.am-cart__often { display: block; margin-top: 12px; text-align: center; font-weight: 700; color: var(--color-heading); text-decoration: underline; text-decoration-color: var(--color-gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.am-cart__often:hover { color: var(--color-teal); }
.am-cart__keep { display: block; margin: 8px auto 0; padding: 8px 12px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--color-heading); cursor: pointer; opacity: 0.85; }
.am-cart__keep:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.am-cart__keep:focus-visible, .am-cart__often:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 3px; border-radius: 6px; }
.am-cart__note { margin: 8px 0 0; font-size: 0.8125rem; text-align: center; opacity: 0.85; }
@media (min-width: 768px) {
  .am-cart { left: auto; right: 24px; bottom: 24px; width: 340px; align-items: stretch; }
  .am-cart__bar { align-self: flex-end; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .am-cart__bar.is-bump { animation: none; } }

/* add buttons: the "added" state */
button.btn[data-plan-add], button.btn[data-plan-add-group] { border: 0; font: inherit; font-weight: 700; cursor: pointer; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease; }
button.btn[data-plan-add].is-added, button.btn[data-plan-add-group].is-added { background: transparent !important; color: var(--color-accent) !important; box-shadow: inset 0 0 0 2px var(--color-accent); }
