/* ===========================================================================
   home.css — the homepage only, loaded from cms/home.html.

   The page had no photograph anywhere on it, on a veterinary clinic's website,
   while fifty real photos of the clinic's own patients sat unused. So the
   whole design here is built around getting a real animal in front of the
   visitor immediately, and around one claim: this is Georgia's first smart pet
   platform.

   Two visual registers on purpose, matching the two things being said:
     · warm  — the hero, the members wall, the gallery. Photographs, the brand's
               taupe/gold, generous air. "People who will look after your cat."
     · cool  — the platform band. Dark ground, precise motion, glass. "And a
               piece of software that actually works."
   Mixing them evenly would blur both; alternating them is what makes each one
   land.

   Everything reuses tokens.css. Motion goes through the existing
   [data-reveal] observer in main.js rather than a second system.
   =========================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-block-size: min(92svh, 54rem);
  padding-block: var(--sp-9) var(--sp-8);
  overflow: clip;
}

.hero__media {
  position: absolute;
  /* Overscanned top/bottom, not a plain inset:0 — static/js/main.js slides
     this whole layer a little as the page scrolls (the classic parallax
     depth cue: background moves slower than the content in front of it).
     Without the extra height, sliding it would peel back to blank space at
     the hero's own top/bottom edge; .hero's overflow:clip trims the excess
     the rest of the time. */
  inset-inline: 0;
  inset-block: -8%;
  z-index: -2;
  will-change: transform;
}
.hero__media img,
.hero__media video {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  /* 68% across, not centred. On a wide screen the copy occupies the left
     third, and a centred crop put the dog's face directly behind the
     headline — legible, but it wasted the one thing the photograph is for.
     Pushing the crop right moves both faces clear of the text and leaves
     the darker corridor wall behind it, which the scrim then only has to
     deepen rather than rescue.

     44% down centres the dog's head. Both numbers are properties of this
     particular photograph, not of the layout: re-tune them whenever the
     hero image changes. The mobile override below does the same job for a
     much narrower crop. */
  object-position: 68% 44%;
}
@media (max-width: 40rem) {
  /* A phone crops this to a narrow vertical slice, and the drift animation
     scales it a further 6-14% on top of that, so the visible band is small
     and where it sits matters.

     28% was tuned for a landscape photo and landed on the top of the frame;
     against the current portrait one it cut the dog off at the ears and
     filled the hero with ceiling. 40% centres the animal's face and keeps
     the staff member and the clinic's own floor in shot. Re-check this
     value whenever the hero photograph changes — it is a property of the
     picture, not of the layout. */
  .hero__media img, .hero__media video { object-position: center 40%; }
}

/* A slow drift. At this scale it reads as the photograph breathing rather
   than as an animation, which is the point — a clinic shouldn't feel busy. */
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: hero-drift 28s var(--ease-in-out, ease-in-out) infinite alternate; }
  /* No drift on video — it is already moving, and scaling it as well just
     makes the footage look unstable. */
}
@keyframes hero-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(0, -1.5%, 0); }
}

/* Two scrims, not one: a vertical wash so the text sits on real darkness, and
   a warm multiply so the photo takes on the brand's colour instead of looking
   like a stock image dropped onto the page. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(28 24 18 / .88) 0%, rgb(28 24 18 / .55) 45%, rgb(28 24 18 / .2) 100%),
    linear-gradient(135deg, rgb(94 78 40 / .35), transparent 60%);
}

.hero__inner { position: relative; z-index: 1; }

/* The hero animates on load rather than through the [data-reveal] observer the
   rest of the page uses. Above-the-fold content must never depend on an
   observer firing: if JS is slow, blocked, or still parsing, a scroll-reveal
   leaves the most important thing on the site invisible. These keyframes run
   from the stylesheet, so the worst case is that they're already finished. */
@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * {
    animation: hero-in .7s var(--ease-out, cubic-bezier(.22,.61,.36,1)) backwards;
  }
  .hero__inner > *:nth-child(1) { animation-delay: .05s; }
  .hero__inner > *:nth-child(2) { animation-delay: .15s; }
  .hero__inner > *:nth-child(3) { animation-delay: .25s; }
  .hero__inner > *:nth-child(4) { animation-delay: .35s; }
  .hero__inner > *:nth-child(5) { animation-delay: .45s; }
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  background: rgb(255 255 255 / .12);
  border: 1px solid rgb(255 255 255 / .28);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
}
.hero__badge .dot {
  inline-size: .5rem;
  block-size: .5rem;
  border-radius: var(--r-full);
  background: var(--accent-400, #e8c14a);
  flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__badge .dot { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgb(232 193 74 / .55); }
  50%      { opacity: .75; box-shadow: 0 0 0 .45rem rgb(232 193 74 / 0); }
}

/* ── Hero vertical rhythm ─────────────────────────────────────────────────
   The six things in the hero do not have six equal relationships, so they
   must not sit on one uniform gap. Read down the hero and there are three
   acts, and the spacing is what tells them apart:

     badge · headline · lede   one claim, held together tightly
     buttons · review score    one ask, with its proof pinned underneath
     stats                     the evidence, set apart by a rule

   This block owns all of it outright. .hero__inner used to carry .stack--lg,
   which sets margin-block-start on every child — and .hero h1, .hero__lede
   and .hero__rating each declared `margin: 0`, silently cancelling it for
   three of the six. Measured, the real gaps were 0 / 0 / 24 / 0 / 16px: the
   badge, headline and lede were literally touching, held apart only by their
   own leading. Explicit values here, and no .stack on the container, so a
   reset like that can't quietly delete the spacing again. */
.hero__inner > * { margin-block: 0; }
.hero h1 {
  color: #fff;
  font-size: var(--fs-5xl);
  line-height: 1.03;
  letter-spacing: -.025em;
  text-wrap: balance;
  max-inline-size: 18ch;
  margin-block-start: var(--sp-4);   /* 16 — the badge is a label on the headline */
  text-shadow: 0 2px 24px rgb(0 0 0 / .3);
}
.hero__lede {
  color: rgb(255 255 255 / .85);
  font-size: var(--fs-lg);
  max-inline-size: 46ch;
  margin-block-start: var(--sp-5);   /* 24 — same act, but 80px type needs air */
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-block-start: var(--sp-6);   /* 32 — the break from reading to acting */
}

/* Review strip, directly under the hero buttons. Deliberately quiet — stars
   in the brand's gold, everything else at the same weight as the lede. Proof
   works by being present and specific, not by shouting. */
.hero__rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-block-start: var(--sp-3);   /* 12 — proof belongs to the buttons above */
  font-size: var(--fs-sm);
  color: rgb(255 255 255 / .78);
}
.hero__rating a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: inherit;
  text-decoration: none;
}
.hero__rating a:hover { color: #fff; }
.hero__rating strong { color: #fff; font-weight: var(--fw-semibold); }
.hero__stars { display: inline-flex; gap: 1px; color: var(--accent-400, #e8c14a); }
.hero__stars svg { display: block; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-7);
  margin-block-start: var(--sp-6);   /* 32 — third act, and it carries a rule */
  padding-block-start: var(--sp-5);
  border-block-start: 1px solid rgb(255 255 255 / .18);
}
.hero__stat p:first-child {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  color: #fff;
  line-height: 1.1;
}
.hero__stat p:last-child {
  font-size: var(--fs-sm);
  color: rgb(255 255 255 / .65);
}

@media (max-width: 40rem) {
  .hero { min-block-size: min(88svh, 44rem); }
  /* Leading has to grow as the type shrinks. 1.03 is a deliberate editorial
     setting at the desktop 80px, where the lines are long and the tightness
     reads as confident; at 36px over three short lines the descenders and the
     next line's ascenders end up about 2px apart, which just reads as broken. */
  .hero h1 { font-size: var(--fs-4xl); line-height: 1.12; }
  /* Same three-act rhythm, one step down: at 36px headline type the desktop
     gaps read as gaps rather than as grouping. */
  .hero h1       { margin-block-start: var(--sp-3); }
  .hero__lede    { margin-block-start: var(--sp-4); }
  .hero__actions { margin-block-start: var(--sp-5); }
  /* Two columns, not a wrapping flex row. With three stats the row wrapped
     tidily; the fourth ("100+ pets who keep coming back") left a 3+1 split
     with one item stranded on its own line and a long label under it. A
     fixed 2x2 balances any even count and keeps each label its own column
     width instead of whatever the row happened to leave over. */
  .hero__stats   {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-4) var(--sp-5);
    margin-block-start: var(--sp-5);
    padding-block-start: var(--sp-4);
  }
  /* Full-width buttons on a phone — a thumb shouldn't have to aim. */
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { inline-size: 100%; }

  /* On a phone the whole hero is one column of text, so it starts far higher
     up the photograph — often over a bright area where the desktop scrim's
     gentle top end leaves white text unreadable. Darker and flatter here. */
  .hero__media::after {
    background:
      linear-gradient(to top, rgb(28 24 18 / .9) 0%, rgb(28 24 18 / .62) 50%, rgb(28 24 18 / .34) 100%),
      linear-gradient(135deg, rgb(94 78 40 / .3), transparent 70%);
  }

  /* Three lines, not eight. The full paragraph pushed both calls to action
     below the fold, which is the one thing the hero exists to prevent. */
  .hero__lede {
    font-size: var(--fs-base);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }
}

/* ── Members wall ─────────────────────────────────────────────────────────── */
.members {
  /* --section-y, not a hand-picked --sp-9/--sp-10: this page's sections each
     had their own padding, so the gap between adjacent ones ranged from 80px
     to 224px on a phone with no rhythm to it. One token now drives every
     section on the site. */
  padding-block: var(--section-y);
  background: var(--surface-sunken);
  overflow: clip;
}

.members__track {
  display: flex;
  gap: var(--sp-5);
  padding-block: var(--sp-2);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.members__track::-webkit-scrollbar { display: none; }

.member {
  flex: none;
  inline-size: 8.5rem;
  text-align: center;
  scroll-snap-align: start;
}
.member img {
  inline-size: 8.5rem;
  block-size: 8.5rem;
  border-radius: var(--r-full);
  object-fit: cover;
  border: 3px solid var(--surface-raised);
  box-shadow: var(--sh-md);
  transition: transform var(--dur-base) var(--ease-out);
}
.member:hover img { transform: translateY(-4px) scale(1.03); }
.member__name {
  margin-block-start: var(--sp-3);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  color: var(--c-heading);
}
.member__species { font-size: var(--fs-xs); color: var(--c-text-muted); }

/* Each face arrives after the one before it, so the wall assembles itself
   rather than appearing all at once. Capped at 12 — past that the last
   arrivals would be waiting on a delay long enough to look broken. */
.js .members__track > .member { --reveal-delay: 0ms; }
.js .members__track > .member:nth-child(2)  { --reveal-delay: 60ms; }
.js .members__track > .member:nth-child(3)  { --reveal-delay: 120ms; }
.js .members__track > .member:nth-child(4)  { --reveal-delay: 180ms; }
.js .members__track > .member:nth-child(5)  { --reveal-delay: 240ms; }
.js .members__track > .member:nth-child(6)  { --reveal-delay: 300ms; }
.js .members__track > .member:nth-child(7)  { --reveal-delay: 360ms; }
.js .members__track > .member:nth-child(8)  { --reveal-delay: 420ms; }
.js .members__track > .member:nth-child(9)  { --reveal-delay: 480ms; }
.js .members__track > .member:nth-child(10) { --reveal-delay: 540ms; }
.js .members__track > .member:nth-child(11) { --reveal-delay: 600ms; }
.js .members__track > .member:nth-child(n+12) { --reveal-delay: 660ms; }

@media (max-width: 40rem) {
  .member, .member img { inline-size: 6.5rem; }
  .member img { block-size: 6.5rem; }
}

/* ── Services bento ───────────────────────────────────────────────────────
   Six service groups, three columns, two complete rows.

   This replaces a grid that tried to feature one card by making it span two
   columns and two rows. Two rules were fighting: one promoted whichever card
   carried a photograph, the other promoted whichever card happened to be
   first. With one photographed group out of six they landed on the same tile,
   which then occupied four cells of a four-column grid — leaving the last row
   holding a single card beside three empty columns, and the remaining tiles at
   three different heights (432, 389 and 380 pixels, measured on the live
   page). That ragged bottom edge was the whole problem.

   Six into three is exact, so there is no ragged row to design around, and
   every tile is the same size whether or not a photograph exists for it. A
   group that gains a photo in the panel changes how its tile is *filled*,
   never how much space it takes — so the section cannot be knocked out of
   shape again by adding or removing an image. */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-block-start: var(--sp-7);
}
/* Equal rows, so the tiles line up along the bottom instead of each ending
   wherever its own list of services happens to stop. */
.bento > * { min-block-size: 100%; }
.bento__item .card__title { font-size: var(--fs-lg); }

/* ── Photo service card ────────────────────────────────────────────────── */
.bento__item--photo {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  /* The same footprint as an icon tile now that it no longer spans the grid.
     It still reads differently — a photograph against five flat cards is
     contrast enough — without being four times the size of its siblings. */
  min-block-size: 100%;
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  overflow: clip;
  text-decoration: none;
  color: #fff;
}
.bento__item--photo img {
  position: absolute;
  inset: 0;
  z-index: -2;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  /* 45%, tuned against the photograph actually in the card rather than
     guessed: at 38% the crop landed on the dog's neck and the vet's hairline
     and missed both the faces and the hands on the paw, which is the whole
     content of the picture. Re-check this if the photo is replaced. */
  object-position: center 45%;
  transition: transform var(--dur-slow, .6s) var(--ease-out, ease-out);
}
/* The scrim. Two layers for the same reason as the hero's — a vertical wash
   so the text sits on real darkness wherever the photo is bright, and a warm
   tint so a photograph taken under clinic strip-lighting still belongs to
   this page's palette. */
.bento__item--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgb(28 24 18 / .9) 0%, rgb(28 24 18 / .55) 55%, rgb(28 24 18 / .15) 100%),
    linear-gradient(135deg, rgb(94 78 40 / .3), transparent 65%);
}
.bento__item--photo:hover img,
.bento__item--photo:focus-visible img { transform: scale(1.05); }
.bento__item--photo:focus-visible {
  outline: 3px solid var(--accent-400);
  outline-offset: 3px;
}

.bento__photo-body { display: grid; gap: var(--sp-2); }
.bento__photo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  border-radius: 50%;
  background: rgb(255 255 255 / .16);
  /* The icons are stroked with currentColor, so this is what turns them
     white on the photograph rather than brand-brown on brand-brown. */
  color: #fff;
  backdrop-filter: blur(2px);
}
.bento__photo-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  line-height: 1.15;
  margin: 0;
}
.bento__photo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-3);
  font-size: var(--fs-sm);
  color: rgb(255 255 255 / .82);
}
/* Dots between the items, but never a leading one — a bare "· Vaccination"
   reads as a bullet that lost its list. */
.bento__photo-list li + li::before {
  content: "·";
  margin-inline-end: var(--sp-3);
  color: rgb(255 255 255 / .45);
}

@media (prefers-reduced-motion: reduce) {
  .bento__item--photo img { transition: none; }
  .bento__item--photo:hover img { transform: none; }
}

/* On a phone this one section ran 2655px — 3.3 screens — because each of the
   six cards also listed four services under it. That detail is what the
   /services/ page is for, and every card here already links straight to its
   own section of it. The homepage's job is to show the *shape* of what the
   clinic does, scannable in one thumb-flick, not to reproduce the catalogue. */
@media (max-width: 47.99rem) {
  .bento__item ul { display: none; }
  .bento__item .card__body { gap: var(--sp-3); }

  /* The photo card keeps its list — three words on one line is exactly the
     detail a photo card has room for, and hiding it would leave a large
     image with nothing but a title on it. Shorter, though: at 17rem a
     full-width photo card is most of a phone screen on its own. */
  .bento__item--photo ul { display: flex; }
  /* A ratio rather than a height. At full width on a phone a fixed height
     letterboxes a portrait photograph into a shallow band — 2.5:1 in the
     first version — which crops out everything the picture is of. 4:3 keeps
     the subject whole. */
  .bento__item--photo { min-block-size: 15rem; aspect-ratio: auto; }
  .bento__photo-title { font-size: var(--fs-lg); }
}

@media (min-width: 34rem) { .bento { grid-template-columns: repeat(2, 1fr); } }
/* Three across is where it stops. Four columns made six cards into two full
   rows and a stray, and shrank every tile below the width its list of
   services needs. */
@media (min-width: 56rem) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
}

/* ── Platform band — the cool register ────────────────────────────────────── */
.platform {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-y);
  background: var(--ink-900, #1c1814);
  color: rgb(255 255 255 / .82);
  overflow: clip;
}
/* A faint grid, the only thing on the page that looks like software. */
.platform::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000, transparent 75%);
}
.platform h2 { color: #fff; text-wrap: balance; }
.platform .eyebrow { color: var(--accent-400, #e8c14a); }
.platform .lede { color: rgb(255 255 255 / .7); }

/* ── Platform showcase ────────────────────────────────────────────────────
   The record card and the four points it illustrates. Two columns once
   there's room — the card is the evidence, the points are the caption —
   stacked on a phone with the card first, because the card is the thing
   worth scrolling for. */
.platform__showcase {
  display: grid;
  gap: var(--sp-7);
  margin-block-start: var(--sp-7);
  align-items: center;
}
@media (min-width: 60rem) {
  /* The phone is a fixed-width object; the points take the rest. auto/1fr
     rather than two equal columns, so a long translation in the list never
     squeezes the device into a shape a phone isn't. */
  .platform__showcase { grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-8); }
}

/* ══ The phone ═════════════════════════════════════════════════════════════
   A device drawn in CSS rather than a screenshot: a screenshot of the portal
   would be stale the first time a button moved, would be a raster image on a
   dark background, and would need one per language. This is text, so it
   translates and stays sharp. */
.phone { justify-self: center; }
.phone__frame {
  position: relative;
  inline-size: 17.5rem;
  block-size: 31rem;
  padding: 0.7rem;
  border-radius: 2.6rem;
  background: linear-gradient(160deg, #46403a, #26221d 60%);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / .07),
    0 30px 60px -20px rgb(0 0 0 / .7),
    inset 0 1px 0 rgb(255 255 255 / .1);
}
.phone__notch {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0.7rem;
  margin-inline: auto;
  inline-size: 5rem;
  block-size: 1.1rem;
  border-radius: 0 0 0.9rem 0.9rem;
  background: #1d1a16;
  z-index: 2;
}
.phone__screen {
  position: relative;
  block-size: 100%;
  border-radius: 2rem;
  background: #faf8f4;
  overflow: hidden;
}

/* ── Scenes ───────────────────────────────────────────────────────────────
   All four are stacked and only one is visible. Absolute rather than
   display:none so each keeps its layout and can animate in and out without
   the phone's height jumping between scenes of different lengths. */
.scene {
  position: absolute;
  inset: 0;
  /* Bottom padding clears .phone__tabs, which is pinned over every scene. */
  padding: 2.4rem 1rem 3.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  visibility: hidden;
  transition:
    opacity var(--dur-base, 260ms) var(--ease-out, ease-out),
    transform var(--dur-base, 260ms) var(--ease-out, ease-out),
    visibility 0s linear var(--dur-base, 260ms);
}
.scene.is-active {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-delay: 0s, 0s, 0s;
}

.scene__bar {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-400, #8a8274);
}
.scene__caption {
  margin: auto 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--ink-500, #6d6558);
}

/* Scene 1 — the reminder */
.scene__push {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  padding: 0.7rem;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 6px 18px -8px rgb(0 0 0 / .28);
}
.scene__push-icon {
  display: grid;
  place-items: center;
  inline-size: 1.85rem;
  block-size: 1.85rem;
  border-radius: 50%;
  background: var(--accent-100, #fff6c7);
  color: var(--brand-700, #5a5245);
}
.scene__push-title { margin: 0; font-size: 0.76rem; font-weight: 600; color: var(--ink-800, #302e2a); }
.scene__push-body  { margin: 0.1rem 0 0; font-size: 0.68rem; line-height: 1.35; color: var(--ink-500, #6d6558); }

/* Scene 2 — booking */
.scene__day { margin: 0; font-size: 0.82rem; font-weight: 600; color: var(--ink-800, #302e2a); }
.scene__slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
.slot {
  padding: 0.42rem 0;
  text-align: center;
  font-size: 0.72rem;
  border-radius: 0.6rem;
  background: #fff;
  color: var(--ink-600, #5f5a51);
  border: 1px solid var(--c-border, #e9e4d9);
}
.slot--pick { background: var(--accent-400, #e8c14a); border-color: transparent; color: #2a2823; font-weight: 700; }
.scene__confirm {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.15rem 0 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-800, #302e2a);
}
.scene__tick {
  display: grid;
  place-items: center;
  inline-size: 1.1rem;
  block-size: 1.1rem;
  border-radius: 50%;
  background: var(--accent-400, #e8c14a);
  color: #2a2823;
}

/* Scene 3 — records */
.scene__rows { display: flex; flex-direction: column; gap: 0.35rem; }
.srow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.6rem;
  background: #fff;
  font-size: 0.7rem;
}
.srow__label { color: var(--ink-700, #4a453d); }
.srow__value { color: var(--ink-400, #8a8274); font-size: 0.64rem; }
.srow__value--ok { color: var(--brand-700, #5a5245); font-weight: 700; }
.srow--new { box-shadow: 0 0 0 1.5px var(--accent-400, #e8c14a); }

/* Scene 4 — the collar tag */
.scene__tag {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 0.7rem;
  border-radius: 0.9rem;
  background: #fff;
}
.scene__qr { inline-size: 4.4rem; block-size: 4.4rem; display: block; }
.scene__tag-name { margin: 0; font-size: 0.74rem; font-weight: 700; color: var(--ink-800, #302e2a); }
.scene__found {
  padding: 0.6rem 0.7rem;
  border-radius: 0.8rem;
  background: var(--brand-700, #5a5245);
  color: #fff;
}
.scene__found-title { margin: 0; font-size: 0.72rem; font-weight: 700; }
.scene__found-body  { margin: 0.1rem 0 0; font-size: 0.66rem; color: rgb(255 255 255 / .78); }

/* The app's own bottom tabs, shared by all four scenes. Two jobs: it fills
   the space the shorter scenes leave under their content, and it is what the
   owner portal actually has — without it the mock reads as a slide rather
   than as a running app. */
.phone__tabs {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.4rem 0 0.55rem;
  background: rgb(250 248 244 / .94);
  backdrop-filter: blur(6px);
  border-block-start: 1px solid var(--c-border, #e9e4d9);
}
.phone__tab {
  display: grid;
  justify-items: center;
  gap: 0.12rem;
  font-size: 0.55rem;
  color: var(--ink-400, #8a8274);
}
.phone__tab.is-on { color: var(--brand-700, #5a5245); font-weight: 700; }

/* ══ The four points ═══════════════════════════════════════════════════════ */
.platform__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.ppoint__btn {
  position: relative;
  inline-size: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-4);
  border: 0;
  border-radius: var(--r-lg, 0.9rem);
  background: transparent;
  text-align: start;
  cursor: pointer;
  font: inherit;
  transition: background var(--dur-base, 260ms) var(--ease-out, ease-out);
}
.ppoint__btn:hover { background: rgb(255 255 255 / .05); }
.ppoint__btn:focus-visible { outline: 3px solid var(--accent-400, #e8c14a); outline-offset: 2px; }
.is-current .ppoint__btn { background: rgb(255 255 255 / .07); }

.ppoint__icon {
  display: grid;
  place-items: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  border-radius: 50%;
  background: rgb(255 255 255 / .09);
  color: rgb(255 255 255 / .65);
  transition: background var(--dur-base, 260ms), color var(--dur-base, 260ms);
}
.is-current .ppoint__icon { background: var(--accent-400, #e8c14a); color: #2a2823; }

.ppoint__title {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
}
.ppoint__text {
  display: block;
  margin-block-start: var(--sp-1);
  color: rgb(255 255 255 / .62);
  font-size: var(--fs-sm);
  max-inline-size: 46ch;
}

/* The progress bar under the active point — the only thing that tells you
   the phone is on a timer rather than stuck. Width is driven from JS so it
   stays in step with the real interval. */
.ppoint__bar {
  position: absolute;
  inset-inline-start: var(--sp-4);
  inset-block-end: 0.55rem;
  block-size: 2px;
  inline-size: 0;
  border-radius: 2px;
  background: var(--accent-400, #e8c14a);
  opacity: 0;
}
.is-current .ppoint__bar { opacity: .85; }

/* No JS, or reduced motion: every scene stacked and readable, no timer, no
   device illusion that never advances. */
.no-js .phone__frame,
.platform__showcase:not(.is-live) .phone__frame { block-size: auto; min-block-size: 31rem; }

@media (prefers-reduced-motion: reduce) {
  .scene { transition: none; }
  .ppoint__bar { display: none; }
}

@media (max-width: 40rem) {
  .phone__frame { inline-size: 15.5rem; block-size: 29rem; }
  .ppoint__btn { padding: var(--sp-3); gap: var(--sp-3); }
}

/* ── Gallery strip ────────────────────────────────────────────────────────── */
.gallery-strip { padding-block: var(--section-y); overflow: clip; }
/* Set by static/js/main.js once a strip is actually drifting — the snap
   points and any smooth-scroll behaviour would both fight the animation, but
   they should stay in place for anyone the drift is switched off for
   (reduced motion, or a strip short enough to fit on screen). */
.members__track.is-autoscrolling,
.gallery-strip__track.is-autoscrolling {
  scroll-snap-type: none;
  scroll-behavior: auto;
  /* A scrollbar sliding along on its own reads as a page glitch rather than
     as an invitation — the drift itself is what shows there is more here. */
  scrollbar-width: none;
}
.members__track.is-autoscrolling::-webkit-scrollbar,
.gallery-strip__track.is-autoscrolling::-webkit-scrollbar { display: none; }

.gallery-strip__track {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-block-end: var(--sp-3);
  scrollbar-width: thin;
}
.gallery-strip figure {
  flex: none;
  inline-size: min(22rem, 78vw);
  margin: 0;
  scroll-snap-align: center;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-md);
  background: var(--surface-sunken);
}
.gallery-strip img {
  inline-size: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
.gallery-strip figure:hover img { transform: scale(1.04); }

/* ── Closing call to action ───────────────────────────────────────────────── */
.closing {
  padding-block: var(--section-y);
  background: var(--grad-brand, linear-gradient(135deg, #6b5b3a, #8a7442));
  color: #fff;
  text-align: center;
}
.closing h2 { color: #fff; text-wrap: balance; margin-inline: auto; max-inline-size: 20ch; }
.closing p { color: rgb(255 255 255 / .8); max-inline-size: 46ch; margin-inline: auto; }
.closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-block-start: var(--sp-6);
}
@media (max-width: 40rem) {
  .closing__actions { flex-direction: column; }
  .closing__actions .btn { inline-size: 100%; }
}

/* A white outline button, for use on the dark/photographic grounds above —
   .btn--ghost's dark border disappears against them. */
.btn--on-dark {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgb(255 255 255 / .5);
}
.btn--on-dark:hover { background: rgb(255 255 255 / .12); border-color: #fff; }

/* ── Find us ──────────────────────────────────────────────────────────────
   A map should feel like part of the room, not a widget bolted onto the
   page — so the info card sits physically on top of the map (a floating
   card over a photo is the same trick the hero already uses), and the map
   itself is toned down from Google's stock blues/greens to the site's own
   warm neutrals rather than clashing with everything around it. */
.find-us { padding-block: var(--section-y); }
.find-us__grid { position: relative; }

.find-us__map-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--sh-xl);
  border: 1px solid var(--c-border);
  background: var(--surface-sunken);
}
.find-us__map {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  border: 0;
  /* Desaturate and warm Google's default palette toward the site's own
     cream/olive tones — legible, but no longer a jarring bright-blue-and-
     green rectangle dropped into a warm page. */
  filter: grayscale(0.4) sepia(0.12) saturate(1.15) contrast(1.02);
}
.find-us__map--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-subtle);
  inline-size: 100%;
  block-size: 100%;
}

.find-us__card {
  position: relative;
  z-index: 1;
  margin-block-start: calc(-1 * var(--sp-8));
  margin-inline: var(--sp-5);
  background: var(--surface-raised);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.find-us__card h2 { margin-block-start: var(--sp-1); }

.find-us__rows { display: flex; flex-direction: column; gap: var(--sp-3); }
.find-us__row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--c-text);
  text-decoration: none;
}
.find-us__row p { margin: 0; font-size: var(--fs-sm); }
/* These two rows are real actions — they dial the clinic and open a mail
   client — so they get a full 44px target rather than collapsing to the
   height of their own text. */
.find-us__row--link { min-block-size: 2.75rem; transition: color var(--dur-fast) var(--ease-out); }
.find-us__row--link:hover { color: var(--brand-700); }
.find-us__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  border-radius: var(--r-full);
  background: var(--surface-sunken);
  color: var(--brand-700);
  flex: none;
}

.find-us__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

@media (min-width: 60rem) {
  /* The card lifts off the flow entirely and floats over the map's lower
     corner — the layered look only works with room to spare, so it stays
     in normal document flow (stacked, map first) below this. */
  .find-us__card {
    position: absolute;
    inset-block-end: var(--sp-6);
    inset-inline-start: var(--sp-6);
    margin: 0;
    max-inline-size: 24rem;
  }
}
@media (max-width: 40rem) {
  .find-us__card { margin-inline: 0; }
  .find-us__actions .btn { flex: 1 1 auto; }
}

/* ── Reasons list (the "Why Zara Vet" band) ───────────────────────────────
   Was a four-card grid identical to the two card grids either side of it.
   Hairline rules instead: a different texture for a different kind of
   content, and roughly half the height on a phone. Lives on .section--brand's
   dark ground, so the rules and body copy are light-on-dark. */
.reasons {
  display: grid;
  gap: 0;
  margin-block-start: var(--sp-6);
}
.reason {
  padding-block: var(--sp-5);
  border-block-start: 1px solid rgb(255 255 255 / .14);
}
.reason:last-child { border-block-end: 1px solid rgb(255 255 255 / .14); }
.reason__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: #fff;
  margin: 0 0 var(--sp-2);
}
.reason__text {
  color: rgb(255 255 255 / .68);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  margin: 0;
  max-inline-size: 54ch;
}

@media (min-width: 48rem) {
  /* Two columns once there's room, so the rules read as a table of reasons
     rather than one very long ladder. */
  .reasons { grid-template-columns: 1fr 1fr; column-gap: var(--sp-7); }
  .reason:nth-child(2) { border-block-start: 1px solid rgb(255 255 255 / .14); }
  .reason:last-child, .reason:nth-last-child(2) { border-block-end: 1px solid rgb(255 255 255 / .14); }
}

/* ── Split pair (Laboratory + Home visits) ────────────────────────────────
   Two related stories that used to be two full-width sections stacked. Side
   by side above 56rem; below that they stack but still share one section's
   padding instead of paying for two. */
.split-pair {
  display: grid;
  gap: var(--sp-8);
}
.split-pair__half {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
}
/* One notch down from a full-width section heading: at half the width, the
   page-level h2 size wraps to four or five lines and stops reading as a
   heading at all. */
.split-pair__title { font-size: var(--fs-2xl); margin: 0; }
.split-pair__half .lede { font-size: var(--fs-base); margin: 0; }
.split-pair__half .feature-list { margin: 0; }

@media (min-width: 56rem) {
  .split-pair { grid-template-columns: 1fr 1fr; gap: var(--sp-9); }
}

/* ── Service tile interior ──────────────────────────────────────────────────
   Six tiles of equal size read as orderly; without a hierarchy inside them
   they also read as flat. The list loses its disc bullets — a bulleted list
   inside a card is twice as much furniture as the content needs — and each
   tile ends on a common baseline with its service count, which is the one
   piece of information the tile can give that the list of four cannot. */
.bento__item .card__body { display: flex; flex-direction: column; height: 100%; }
.bento__item { text-decoration: none; color: inherit; }
.bento__list {
  list-style: none;
  margin: var(--sp-3) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-text-muted, #6b6154);
  line-height: 1.5;
}
.bento__list li { position: relative; padding-inline-start: var(--sp-4); }
.bento__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: .55em;
  inline-size: 5px;
  block-size: 5px;
  border-radius: 50%;
  background: var(--accent-400, #c8a94a);
}
/* margin-block-start:auto is what puts every count on the same line across
   the row, whatever length each tile's list happens to be. */
.bento__more {
  margin-block-start: auto;
  padding-block-start: var(--sp-4);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold, 600);
  color: var(--accent-700, #8a6f22);
}
.bento__more svg { transition: transform var(--dur-base, .25s) var(--ease-out, ease-out); }
.bento__item:hover .bento__more svg,
.bento__item:focus-visible .bento__more svg { transform: translateX(3px); }
[dir="rtl"] .bento__more svg { transform: scaleX(-1); }
[dir="rtl"] .bento__item:hover .bento__more svg { transform: scaleX(-1) translateX(3px); }
