/* Pet sitting N & Z
   Palette: foothills sage, spruce ink, marigold (tennis ball) accent. */
:root {
  --sage: #E9EEE8;
  --sage-deep: #DCE4DD;
  --ink: #1C302C;
  --ink-soft: #3A4D48;
  --stone: #5E6D68;
  --line: #CBD6CE;
  --white: #FFFFFF;
  --marigold: #EFA72B;

  --serif: "Young Serif", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --bar-h: 3.75rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sage);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
}

p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: .6rem 1rem; border-radius: .6rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
  border-radius: .35rem;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 1rem; letter-spacing: -0.005em;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 120ms ease-out, background-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover { --bg: #2A4540; }
.btn:active { transform: scale(.97); transition-duration: 60ms; }

.btn--quiet { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--quiet:hover { --bg: rgba(28, 48, 44, .07); }

.btn--small { min-height: 2.25rem; padding: 0 1rem; font-size: .9375rem; }

.btn--light { --bg: var(--marigold); --fg: var(--ink); }
.btn--light:hover { --bg: #F5B84C; }
.btn--light-quiet { --bg: transparent; --fg: var(--white); border-color: rgba(255,255,255,.55); }
.btn--light-quiet:hover { --bg: rgba(255,255,255,.1); }

.link {
  display: inline-block;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .25em;
  text-decoration-color: var(--marigold);
}
.link:hover { text-decoration-thickness: 3px; }

/* ---------- Header: translucent material ---------- */
.bar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(233, 238, 232, .72);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  transition: box-shadow 200ms ease;
}
.bar.is-scrolled { box-shadow: 0 1px 0 rgba(28, 48, 44, .08), 0 8px 24px -16px rgba(28, 48, 44, .35); }

.bar__inner {
  height: var(--bar-h);
  display: flex; align-items: center; gap: 1.5rem;
}

.mark {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.mark__glyph { width: auto; height: 2.6rem; flex: none; }
.mark__text { display: flex; flex-direction: column; line-height: 1; }
.mark__sub {
  font-family: var(--sans);
  font-size: .75rem;
  color: var(--stone);
  letter-spacing: .005em;
  margin-top: .22rem;
}
.mark--foot { margin-right: 0; font-size: 1.35rem; }
.mark--foot .mark__glyph { width: auto; height: 3.6rem; }

.nav { display: flex; gap: 1.6rem; }
.nav a {
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: .4rem 0;
}
.nav a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(4.5rem, 8vw, 6.5rem);
}

.hero__copy { max-width: 34rem; }

.rating {
  display: flex; align-items: center; gap: .55rem;
  font-size: .9375rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.stars { color: var(--marigold); letter-spacing: .08em; font-size: 1rem; }

.lede {
  margin-top: 1.4rem;
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 32rem;
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.facts {
  list-style: none; padding: 0;
  margin: 2.25rem 0 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1.75rem;
  font-size: .9375rem;
  color: var(--ink-soft);
}
.facts li { display: inline-flex; align-items: center; gap: .5rem; }
.facts svg { width: 1.15rem; height: 1.15rem; color: var(--ink); }

/* The photo pile */
.pile {
  position: relative;
  aspect-ratio: 1 / 1.02;
  width: 100%;
  max-width: 36rem;
  justify-self: end;
  user-select: none;
  -webkit-user-select: none;
  isolation: isolate;   /* keep the prints' climbing z-index below the header */
}

.print {
  --s: 1;
  --lift: 0;
  position: absolute;
  left: 0; top: 0;
  width: 38%;
  margin: 0;
  padding: 3.5% 3.5% 0;
  background: var(--white);
  border-radius: 4px;
  box-shadow:
    0 1px 1px rgba(28, 48, 44, .08),
    0 calc(4px + 18px * var(--lift)) calc(10px + 30px * var(--lift)) -6px rgba(28, 48, 44, calc(.22 + .14 * var(--lift)));
  cursor: grab;
  touch-action: none;
  will-change: transform;
  transform-origin: 50% 50%;
}
.print:active { cursor: grabbing; }

.print img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1px;
  pointer-events: none;
  -webkit-user-drag: none;
  background: var(--sage-deep);
}

.print figcaption {
  height: 2.4em;
  display: flex; align-items: center;
  font-family: var(--serif);
  font-size: clamp(.8rem, 1.3vw, .95rem);
  color: var(--ink-soft);
}
.print:not(:has(figcaption)) { padding-bottom: 13%; }

.pile__hint {
  position: absolute;
  left: 0; right: 0; bottom: -3.4rem;
  z-index: 999;
  text-align: center;
  font-size: .875rem;
  color: var(--stone);
  pointer-events: none;
  transition: opacity 400ms ease;
}
.pile.is-touched .pile__hint { opacity: 0; }

/* Prints stay hidden until the script lays them out */
.print { opacity: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .pile { justify-self: center; max-width: 30rem; margin-bottom: 2rem; }
  .print { width: 42%; }
}

/* ---------- Care ---------- */
.care {
  background: var(--white);
  padding-block: var(--section);
}

.care__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

/* Sticky photo that follows whichever service you're reading */
.care__media {
  position: sticky;
  top: calc(var(--bar-h) + 2rem);
  aspect-ratio: 4 / 5;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--sage-deep);
}
.care__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 600ms ease, transform 1200ms cubic-bezier(.2, .8, .2, 1);
}
.care__media img.is-active { opacity: 1; transform: none; }

.services { list-style: none; padding: 0; margin: 2.5rem 0 0; }
.service {
  padding: 1.75rem 0 2rem;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service__img { display: none; }
.service h3 {
  margin: 0 0 .5rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
}
.service p { color: var(--ink-soft); max-width: 30rem; }

@media (min-width: 861px) {
  /* give each service enough scroll to own the photo for a moment */
  .service { min-height: 15rem; }
  .service h3, .service p { transition: opacity 300ms ease; }
  .services.is-tracking .service:not(.is-active) h3,
  .services.is-tracking .service:not(.is-active) p { opacity: .4; }
}

.note {
  margin-top: 2rem;
  font-size: .9375rem;
  color: var(--stone);
  max-width: 30rem;
}

@media (max-width: 860px) {
  .care__grid { grid-template-columns: minmax(0, 1fr); }
  .care__copy { min-width: 0; }
  .care__media { display: none; }
  .service__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1.1rem;
    background: var(--sage-deep);
  }
}

/* ---------- Photo band ---------- */
.band {
  position: relative;
  margin: 0;
  height: clamp(24rem, 50vw, 42rem);
  overflow: hidden;
  background: var(--ink);
}
.band img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 55%;
}
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16, 28, 25, .72) 0%, rgba(16, 28, 25, .25) 32%, rgba(16, 28, 25, 0) 55%);
  pointer-events: none;
}
.band figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding-block: 0 clamp(1.75rem, 4vw, 3rem);
}
.band p {
  font-family: var(--serif);
  color: var(--white);
  font-size: clamp(1.6rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 18ch;
  text-shadow: 0 1px 18px rgba(0,0,0,.25);
}
@media (max-width: 760px) {
  .band { height: 26rem; }
  .band img { object-position: 74% 55%; }
}

/* ---------- Reviews ---------- */
.reviews { padding-block: var(--section); }

.reviews__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .75rem 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.reviews__head p { color: var(--stone); }

.feature { margin: 0 0 clamp(3rem, 6vw, 5rem); max-width: 58rem; }
.feature blockquote { margin: 0; }
.feature blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  line-height: 1.32;
  letter-spacing: -0.012em;
  text-indent: -.42em;
}
.feature blockquote p::before { content: "“"; color: var(--marigold); }
.feature blockquote p::after { content: "”"; color: var(--marigold); }

.feature figcaption,
.quote figcaption {
  display: flex; flex-wrap: wrap; gap: .25rem .75rem;
  margin-top: 1.25rem;
  font-size: .9375rem;
}
.who { font-weight: 650; }
.pet { color: var(--stone); }

.quotes {
  columns: 3 18rem;
  column-gap: clamp(1.5rem, 3.5vw, 3rem);
}

.quote {
  break-inside: avoid;
  margin: 0 0 2.25rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: 1.0625rem; line-height: 1.55; }

.reply {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: .9rem .9rem .9rem .25rem;
  background: var(--sage-deep);
  font-size: .9375rem;
  color: var(--ink-soft);
}
.reply span {
  display: block;
  font-weight: 650;
  color: var(--ink);
  font-size: .8125rem;
  margin-bottom: .2rem;
}

.reviews .link { margin-top: .5rem; }

/* ---------- Booking ---------- */
.book {
  background: var(--ink);
  color: var(--white);
  padding-block: var(--section);
}

.book__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid; gap: 1.75rem;
  max-width: 34rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.6rem;
  min-height: 2.5rem;
  color: rgba(255,255,255,.78);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.1rem;
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35);
  font-family: var(--serif);
  color: var(--marigold);
}
.steps strong { color: var(--white); font-weight: 650; display: block; margin-bottom: .15rem; padding-top: .45rem; }
.steps li::before { font-family: var(--sans); font-weight: 600; font-size: .95rem; }

.callcard {
  border-radius: 1.5rem;
  overflow: hidden;
  background: #26413B;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.callcard img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 50% 62%;
}
.callcard__body { padding: 1.75rem; width: 100%; }
.callcard__label { font-size: .9375rem; color: rgba(255,255,255,.8); }
.phone {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-decoration: none;
  margin-top: .2rem;
  white-space: nowrap;
}
.callcard .actions { margin-top: 1.25rem; }

@media (max-width: 860px) {
  .book__grid { grid-template-columns: 1fr; }
}

/* ---------- Visit ---------- */
.visit {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: var(--section);
}
.visit address {
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1.45;
  margin-top: 1.75rem;
}
.hours { margin-top: 1rem; font-weight: 600; }
.area { margin-top: .5rem; color: var(--ink-soft); max-width: 24rem; }
.visit .btn { margin-top: 1.75rem; }

.map {
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sage-deep);
  box-shadow: 0 0 0 1px var(--line);
}
.map iframe {
  width: 100%; height: 100%; border: 0; display: block;
  filter: saturate(.75) contrast(1.02);
}

@media (max-width: 860px) {
  .visit { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px));
  font-size: .875rem;
  color: var(--stone);
}
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.foot__inner .mark--foot { flex-basis: 100%; margin-bottom: .5rem; color: var(--ink); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .care__media img { transform: none; transition: opacity 200ms ease; }
  .btn, .btn:active { transition: none; transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .bar { background: var(--sage); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --stone: #3A4D48; --ink-soft: #1C302C; --line: #8FA29A; }
  .bar { background: var(--sage); border-bottom: 1px solid var(--ink); }
}

/* Young Serif's figures are old-style; set numbers inside quotes in the body face */
.fig { font-family: var(--sans); font-weight: 600; font-size: .92em; letter-spacing: -0.02em; }


/* =========================================================
   Mobile
   ========================================================= */
main { overflow-x: clip; }            /* a print tossed past the edge never scrolls the page sideways */
a, button { -webkit-tap-highlight-color: transparent; }
.btn svg { width: 1.15rem; height: 1.15rem; margin-right: .45rem; flex: none; }

/* Bottom call dock: a floating translucent layer within thumb reach */
.dock { display: none; }

@media (max-width: 760px) {
  :root { --bar-h: 3.5rem; --section: 4.5rem; }
  body { font-size: 1rem; }

  .dock {
    position: fixed;
    left: .75rem; right: .75rem;
    bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    padding: .5rem;
    border-radius: 1.6rem;
    background: rgba(233, 238, 232, .78);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    box-shadow: 0 0 0 1px rgba(28, 48, 44, .08), 0 12px 32px -12px rgba(28, 48, 44, .45);
    transform: translateY(calc(100% + 1.5rem + env(safe-area-inset-bottom, 0px)));
    transition: transform 420ms cubic-bezier(.2, .9, .25, 1);
  }
  .dock[hidden] { display: grid !important; visibility: hidden; }
  .dock.is-shown { transform: none; visibility: visible; }
  .dock .btn { min-height: 3.25rem; font-size: 1.0625rem; }

  /* the header call button steps aside while the dock is up */
  .bar__call { transition: opacity 200ms ease, transform 200ms ease; }
  body.dock-on .bar__call { opacity: 0; transform: scale(.9); pointer-events: none; }

  .mark { font-size: 1.1rem; }
  .bar .mark__sub { display: none; }
  .bar .mark__glyph { width: auto; height: 2.35rem; }

  /* Hero */
  .hero { padding-block: 1.75rem 4.75rem; gap: 2.25rem; }
  .rating { margin-bottom: 1rem; font-size: .875rem; }
  h1 { font-size: clamp(2.35rem, 10.5vw, 3rem); line-height: 1.04; }
  .lede { margin-top: 1rem; font-size: 1.0625rem; }
  .actions { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-top: 1.5rem; }
  .actions .btn { min-height: 3.25rem; font-size: 1.0625rem; }
  .facts { flex-direction: column; gap: .5rem; margin-top: 1.5rem; }
  .pile { max-width: 26rem; margin-bottom: 0; }
  .print { width: 44%; }
  .print figcaption { font-size: .8rem; }

  h2 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }

  /* Care */
  .services { margin-top: 1.75rem; }
  .service { padding: 1.4rem 0 1.6rem; }
  .service h3 { font-size: 1.4rem; }

  /* Reviews: swipe through them instead of scrolling a long column */
  .reviews__head { margin-bottom: 2rem; }
  .feature { margin-bottom: 2.5rem; }
  .feature blockquote p { font-size: 1.35rem; line-height: 1.36; }

  .quotes {
    columns: auto;
    display: flex;
    gap: .9rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding: .25rem var(--gutter) 1.25rem;
    margin-inline: calc(var(--gutter) * -1);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .quotes { align-items: flex-start; }
  .quotes::-webkit-scrollbar { display: none; }
  .quote {
    flex: 0 0 84%;
    scroll-snap-align: start;
    margin: 0;
    padding: 1.25rem 1.25rem 1.4rem;
    border-top: 0;
    border-radius: 1.1rem;
    background: var(--white);
    box-shadow: 0 0 0 1px var(--line);
  }
  .quote .reply { background: var(--sage); }
  .reviews .swipe-note { display: block; }

  /* Booking */
  .steps { margin-top: 1.75rem; gap: 1.4rem; }
  .callcard__body { padding: 1.4rem; }
  .callcard .actions { grid-template-columns: 1fr 1fr; }

  /* Visit */
  .visit address { font-size: 1.125rem; margin-top: 1.25rem; }
  .visit .btn { display: flex; width: 100%; min-height: 3.25rem; }
  .map { aspect-ratio: 1 / 1; border-radius: 1rem; }

  /* Footer: room for the dock, bigger tap target on the number */
  .foot { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)); }
  .foot a { display: inline-block; padding: .7rem 0; margin: -.7rem 0; }
}

.swipe-note { display: none; margin: -.5rem 0 1.5rem; font-size: .875rem; color: var(--stone); }

@media (prefers-reduced-motion: reduce) {
  .dock { transition: opacity 200ms ease; transform: none; opacity: 0; }
  .dock.is-shown { opacity: 1; }
}
@media (prefers-reduced-transparency: reduce) {
  .dock { background: var(--sage); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* =========================================================
   Mobile, part two: lead with the photos, swipe the care cards
   ========================================================= */
.pager { display: none; }

@media (max-width: 760px) {
  /* Hero: the photo pile opens the page, headline right beneath */
  .hero { padding-block: .75rem 3.5rem; gap: 3rem; }
  .pile {
    order: -1;
    aspect-ratio: 1 / .86;
    max-width: 26rem;
    margin-top: .5rem;
  }
  .print { width: 36%; padding: 3% 3% 0; }
  .print:not(:has(figcaption)) { padding-bottom: 11%; }
  .print figcaption { height: 2em; font-size: .75rem; }
  .pile__hint { bottom: -2.1rem; font-size: .8125rem; }
  .rating { margin-bottom: .75rem; }

  /* Care: full-photo cards you swipe through */
  .services.snap {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding: .25rem var(--gutter) .25rem;
    margin: 1.75rem calc(var(--gutter) * -1) 0;
    scrollbar-width: none;
  }
  .services.snap::-webkit-scrollbar { display: none; }

  .service {
    position: relative;
    flex: 0 0 82%;
    scroll-snap-align: start;
    aspect-ratio: 3 / 4;
    padding: 0;
    border: 0;
    border-radius: 1.4rem;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--ink);
    box-shadow: 0 18px 40px -24px rgba(28, 48, 44, .55);
  }
  .service:last-child { border: 0; }
  .service .service__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    z-index: -2;
  }
  .service::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to top, rgba(14, 26, 23, .9) 0%, rgba(14, 26, 23, .55) 34%, rgba(14, 26, 23, 0) 62%);
  }
  .service h3 {
    color: var(--white);
    font-size: 1.6rem;
    margin: 0 1.25rem .4rem;
  }
  .service p {
    color: rgba(255, 255, 255, .86);
    font-size: .9688rem;
    line-height: 1.45;
    margin: 0 1.25rem 1.35rem;
  }
  .service[data-shot="exercise"] .service__img { object-position: 50% 35%; }
  .service[data-shot="home"] .service__img { object-position: 40% 60%; }

  .care .note { margin-top: 1.25rem; }

  /* Page dots under each carousel */
  .pager {
    display: flex;
    justify-content: center;
    gap: .45rem;
    margin-top: 1rem;
  }
  .pager span {
    width: .45rem; height: .45rem;
    border-radius: 999px;
    background: var(--line);
    transition: width 300ms cubic-bezier(.2, .9, .25, 1), background-color 300ms ease;
  }
  .pager span.is-on { width: 1.4rem; background: var(--ink); }
  .reviews .pager { margin: -.25rem 0 1.5rem; }
  .reviews .swipe-note { display: none; }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .pager span { transition: none; }
}

/* Dog-name tags on reviews */
.pet-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .15rem .6rem .15rem .45rem;
  border-radius: 999px;
  background: var(--sage-deep);
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 600;
}
.pet-tag svg { width: .9rem; height: .9rem; fill: var(--marigold); }
.feature figcaption, .quote figcaption { align-items: center; }

/* =========================================================
   Mobile, part three: stacked sheets and depth
   ========================================================= */
@media (max-width: 760px) {
  /* each section slides up over the last, like stacked iOS sheets */
  .care, .reviews, .book, .visit {
    position: relative;
    border-radius: 1.75rem 1.75rem 0 0;
    margin-top: -1.75rem;
    box-shadow: 0 -10px 28px -18px rgba(28, 48, 44, .35);
  }
  .care { padding-top: 3.25rem; }
  .reviews { background: var(--sage); max-width: none; }
  .book { padding-top: 4.25rem; }
  .visit { background: var(--sage); max-width: none; }
  .band { height: 30rem; }
  .band figcaption { padding-bottom: 3.5rem; }
  .band p { font-size: 1.85rem; }

  /* featured review becomes a dark card */
  .feature {
    background: var(--ink);
    color: var(--white);
    border-radius: 1.4rem;
    padding: 1.6rem 1.4rem 1.4rem;
    margin-bottom: 1.75rem;
  }
  .feature blockquote p { font-size: 1.22rem; line-height: 1.42; text-indent: 0; }
  .feature blockquote p::before {
    content: "“";
    display: block;
    font-size: 3.4rem;
    line-height: .9;
    height: 1.6rem;
    margin-bottom: .35rem;
  }
  .feature blockquote p::after { content: none; }
  .feature .who { color: var(--white); }
  .feature .pet-tag { background: rgba(255, 255, 255, .12); color: var(--white); }

  /* a pressed card gives way under the finger */
  .service, .quote { transition: transform 160ms ease-out; }
  .service:active, .quote:active { transform: scale(.985); }
}

/* Carousels with depth: the focused card stands forward, neighbours recede.
   Scroll-driven, so it costs no script; browsers without support see flat cards. */
@supports (animation-timeline: view()) {
  @media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
    .services.snap > .service,
    .quotes.snap > .quote {
      animation: card-depth linear both;
      animation-timeline: view(inline);
      animation-range: cover 0% cover 100%;
    }
    @keyframes card-depth {
      0%   { transform: scale(.9); opacity: .55; }
      42%, 58% { transform: scale(1); opacity: 1; }
      100% { transform: scale(.9); opacity: .55; }
    }
  }
}


/* =========================================================
   Round three
   ========================================================= */
/* Reviews: the rating itself is the proof */
.score {
  display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .7rem;
  color: var(--stone);
}
.score__num {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* Booking steps joined into a timeline */
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 2.6rem;
  bottom: -1.65rem;
  width: 1.5px;
  background: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.08));
  transform: translateX(-50%);
}

/* Map: on touch screens a cover stops the embed from trapping the scroll */
.map { position: relative; }
.map__cover { display: none; }
@media (pointer: coarse) {
  .map__cover {
    position: absolute; inset: 0; z-index: 1;
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 1.25rem;
    border: 0;
    background: linear-gradient(to top, rgba(233, 238, 232, .85), rgba(233, 238, 232, 0) 45%);
    font: 600 .9375rem var(--sans);
    color: var(--ink);
    cursor: pointer;
  }
  .map.is-live .map__cover { display: none; }
}

@media (max-width: 760px) {
  .reviews__head { gap: .9rem; }
  .score__num { font-size: 2.4rem; }
  .score .stars { font-size: 1.1rem; }
}

/* the rating sits with the other quiet details, not above the headline */
.facts .stars { font-size: .8rem; letter-spacing: .04em; }
