/* The Storrar Practice, v3: answer-first. Tiles for actions, tap-to-open lists for detail. One shared stylesheet. */

@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-wght-normal.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #0F1C33;          /* deep navy page */
  --bg-deep: #0A1426;     /* footer, header */
  --tile: #1B2F57;        /* tiles and cards: clearly lighter than the page */
  --tile-hover: #233B6B;
  --tile-line: rgba(156, 196, 255, .16);
  --ink: #F3F6FB;
  --muted: #BAC6DA;
  --red: #CD2027;         /* logo red */
  --red-deep: #A8161C;
  --red-soft: rgba(205, 32, 39, .16);
  --blue: #9CC4FF;        /* links */
  --open: #4ADE80; --closing: #FBBF24; --closed: #FF6B66;

  --font: "Jost", "Century Gothic", "Futura", system-ui, sans-serif;
  --step-0: clamp(1.0625rem, 1rem + .35vw, 1.1875rem);
  --step-1: clamp(1.1875rem, 1.05rem + .6vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.25rem + 1.6vw, 2.5rem);
  --step-3: clamp(2.3rem, 1.5rem + 3.4vw, 4.25rem);

  --content: 72rem;
  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --space: clamp(3rem, 2rem + 4vw, 6rem);
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-0); line-height: 1.6; padding-bottom: 84px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--bg); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
[id] { scroll-margin-top: 140px; }
.muted { color: var(--muted); }
.section { padding: var(--space) 0 0; }
.section-title { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.section-title::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none; }
.section-title h2 { margin: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.4em; border-radius: 999px; font: 600 1.0625rem/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .18s var(--ease), background-color .18s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-call { background: var(--red); color: #fff; }
.btn-call:hover { background: var(--red-deep); color: #fff; }
.btn-quiet { color: var(--ink); border-color: rgba(255, 255, 255, .55); background: transparent; }
.btn-quiet:hover { background: #fff; color: var(--bg); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }

/* ---------- Header with tabs ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(10, 20, 38, .94); backdrop-filter: blur(10px); border-bottom: 3px solid var(--red); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.brand { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.brand img { height: 46px; width: auto; background: #F7FAFE; border-radius: 12px; padding: 4px 10px; box-sizing: content-box; }
.tabs { display: flex; gap: .25rem; }
.tabs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1rem; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 999px; }
.tabs a:hover { background: var(--tile); }
.tabs a[aria-current="page"] { background: var(--red); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(1.5rem, 1rem + 2.5vw, 3.5rem) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: end; }
.hero h1 { font-size: var(--step-3); max-width: 12ch; margin-bottom: .35em; }
.lead { font-size: var(--step-1); line-height: 1.45; color: var(--muted); max-width: 32ch; }
.status { display: inline-flex; align-items: center; gap: .6em; margin: .25rem 0 0; padding: .55rem 1rem; border-radius: 999px; background: var(--tile); font-weight: 500; font-size: 1rem; }
.status-dot { width: .7em; height: .7em; border-radius: 50%; background: var(--muted); flex: none; }
.status[data-state="open"] .status-dot { background: var(--open); box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }
.status[data-state="closing"] .status-dot { background: var(--closing); box-shadow: 0 0 0 4px rgba(251, 191, 36, .2); }
.status[data-state="closed"] .status-dot { background: var(--closed); box-shadow: 0 0 0 4px rgba(255, 107, 102, .2); }
.hero-photo { position: relative; margin: 0; padding-top: clamp(80px, 5vw + 40px, 130px); }
.hero-img { width: 100%; aspect-ratio: 2000 / 1269; object-fit: cover; border-radius: var(--radius); position: relative; z-index: 2; }
.peekers { position: absolute; z-index: 1; left: 7%; top: 0; height: clamp(80px, 5vw + 40px, 130px); width: 46%; overflow: hidden; display: flex; align-items: flex-end; gap: 2%; pointer-events: none; }
.peek { width: auto; height: 125%; transform-origin: 50% 100%; margin-bottom: -12%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.peek-cat { height: 108%; }

/* ---------- Tiles: "What do you need?" ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, .5rem + 1vw, 1.25rem); list-style: none; margin: 0; padding: 0; }
.tile { position: relative; display: flex; flex-direction: column; gap: .35rem; min-height: 100%; padding: clamp(1.1rem, .8rem + 1.2vw, 1.75rem); background: var(--tile); border: 1px solid var(--tile-line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform .18s var(--ease), background-color .18s var(--ease); }
.tile:hover { background: var(--tile-hover); color: var(--ink); transform: translateY(-3px); }
.tile-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--red-soft); color: #FF8A8E; margin-bottom: .5rem; }
.tile-icon svg { width: 26px; height: 26px; }
.tile-title { font-size: var(--step-1); font-weight: 600; line-height: 1.2; }
.tile-text { color: var(--muted); font-size: 1rem; line-height: 1.45; }
.tile-strong { color: var(--ink); font-weight: 600; }
.tile::after { content: "→"; position: absolute; top: clamp(1.1rem, .8rem + 1.2vw, 1.75rem); right: clamp(1.1rem, .8rem + 1.2vw, 1.75rem); color: var(--muted); font-size: 1.25rem; transition: transform .18s var(--ease); }
.tile:hover::after { transform: translateX(4px); color: #fff; }
.tile-red { background: linear-gradient(150deg, #C21D24, #8E1218); border-color: transparent; }
.tile-red:hover { background: linear-gradient(150deg, #D3232A, #9C141B); }
.tile-red .tile-icon { background: rgba(255, 255, 255, .16); color: #fff; }
.tile-red .tile-text { color: #FFE3E4; }
.tile-red::after { color: #fff; }

/* ---------- Story band ---------- */
.story { margin-top: var(--space); background: linear-gradient(140deg, #B2161E 0%, #7E0F15 100%); padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.story-quote { margin: 0; }
.story-quote p { font-size: var(--step-2); line-height: 1.2; font-weight: 500; color: #fff; margin: 0; max-width: 24ch; }
.story-by { color: #FFE3E4; margin: 1rem 0 .25rem; }
.story a { color: #fff; }
.story-img { width: 100%; border-radius: 6px; transform: rotate(1.5deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }

/* ---------- Swipeable review cards ---------- */
.cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem 0 1rem; margin: 0; list-style: none; scrollbar-width: thin; scrollbar-color: var(--tile-hover) transparent; }
.cards > li { scroll-snap-align: start; }
.card { height: 100%; margin: 0; padding: 1.5rem; background: var(--tile); border: 1px solid var(--tile-line); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.card blockquote { margin: 0; }
.card p { margin: 0; font-size: 1.0625rem; }
.card figcaption { font-weight: 600; color: #FF8A8E; }
.cards-hint { color: var(--muted); font-size: .9375rem; margin: 0; }

/* ---------- Tap-to-open lists ---------- */
.acc { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.acc details { background: var(--tile); border: 1px solid var(--tile-line); border-radius: 16px; }
.acc details[open] { background: var(--tile-hover); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; padding: .9rem 1.25rem; font-weight: 600; font-size: 1.125rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 12px; height: 12px; border-right: 2.5px solid #FF8A8E; border-bottom: 2.5px solid #FF8A8E; transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease); flex: none; }
.acc details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.acc .acc-body { padding: 0 1.25rem 1.25rem; color: var(--muted); }
.acc .acc-body p:last-child, .acc .acc-body ul:last-child { margin-bottom: 0; }
.acc ul { padding-left: 1.2rem; margin: 0 0 1em; }
.acc li { margin-bottom: .3rem; }
.group-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; }
.group h2 { font-size: var(--step-1); margin: 0 0 .9rem; color: #FF8A8E; letter-spacing: 0; }

/* Emergency card */
.emergency { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem 1.75rem; align-items: center; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--radius); background: linear-gradient(150deg, #C21D24, #8E1218); }
.emergency h2 { font-size: var(--step-1); margin: 0 0 .25rem; color: #fff; letter-spacing: -0.01em; }
.emergency p { margin: 0; color: #FFE3E4; }
.emergency .btn { background: #fff; color: var(--red-deep); }
.emergency-pets { display: flex; align-items: flex-end; gap: .25rem; }
.emergency-pets img { height: 84px; width: auto; transform-origin: 50% 100%; }
.emergency-pets img + img { height: 58px; }

/* ---------- Visit / hours ---------- */
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.box { background: var(--tile); border: 1px solid var(--tile-line); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.visit-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); min-height: 260px; }
address { font-style: normal; font-size: var(--step-1); line-height: 1.4; margin-bottom: 1rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .5rem 0; border-bottom: 1px solid var(--tile-line); text-align: left; font-weight: 400; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours td { text-align: right; color: var(--muted); }
.hours tr.today th, .hours tr.today td { color: #fff; font-weight: 600; }
.hours tr.today th::after { content: "Today"; margin-left: .6rem; font-size: .75rem; font-weight: 600; padding: .15rem .5rem; border-radius: 999px; background: var(--red); color: #fff; vertical-align: middle; }

/* ---------- History steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.steps li { background: var(--tile); border: 1px solid var(--tile-line); border-radius: var(--radius); padding: 1.5rem; }
.step-num { display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 .5rem; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; margin-bottom: .9rem; }
.steps h3 { margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }
.team-photo { width: 100%; border-radius: var(--radius); margin-top: 1rem; }

/* ---------- Closing call ---------- */
.closing { margin-top: var(--space); padding: var(--space) 0; text-align: center; background: var(--bg-deep); border-top: 3px solid var(--red); }
.closing-inner { display: flex; flex-direction: column; align-items: center; }
.closing-pets { display: flex; align-items: flex-end; gap: .4rem; margin-bottom: 1.25rem; }
.closing-pets img { height: clamp(100px, 8vw + 60px, 150px); width: auto; transform-origin: 50% 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.closing-pets img + img { height: clamp(68px, 5.5vw + 40px, 102px); }
.closing h2 { font-size: var(--step-3); margin-bottom: .75rem; }
.closing-phone { font-size: var(--step-2); font-weight: 600; margin: 0 auto; }
.closing-phone a { color: #fff; text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.closing-note { margin: .75rem auto 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: var(--muted); padding: 2rem 0; font-size: .9375rem; border-top: 1px solid var(--tile-line); }
.footer-row { display: grid; gap: .75rem; }
.footer-main, .footer-legal { margin: 0; max-width: none; }
.footer-legal { font-size: .875rem; }
.site-footer a { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.footer-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(1.75rem, 1rem + 3vw, 3.5rem) 0 0; }
.page-head h1 { font-size: var(--step-3); max-width: 15ch; }
.page-head .lead { margin-bottom: 0; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; background: var(--tile); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; border: 1px solid var(--tile-line); }
.jump a:hover { background: var(--tile-hover); }
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--step-1); margin-top: 2.25rem; }
.map { width: 100%; height: clamp(260px, 30vw, 400px); border: 0; border-radius: var(--radius); display: block; background: var(--tile); }

/* Contact form */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 1rem; align-items: start; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 500; margin-bottom: .4rem; }
.opt { color: var(--muted); font-weight: 400; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea { width: 100%; min-height: 52px; padding: .75rem 1rem; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--tile-line); border-radius: 12px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.field [aria-invalid="true"] { border-color: var(--closed); }
.field.check { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .75rem; align-items: start; }
.field.check input { width: 24px; height: 24px; margin: .2rem 0 0; accent-color: var(--red); }
.field.check label { font-weight: 400; font-size: 1rem; }
.field.check .error { grid-column: 2; }
.hint { font-size: .9375rem; color: var(--muted); margin: .4rem 0 0; }
.error { color: var(--closed); font-weight: 500; font-size: .9375rem; margin: .4rem 0 0; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: 12px; font-weight: 500; }
.form-status.ok { background: #183D2A; color: #D7F5E3; display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: center; }
.form-status.ok img { width: 56px; height: auto; transform-origin: 50% 100%; }
.form-status.fail { background: #4A1C1C; color: #FFE1E0; }
.form-status.fail a { color: inherit; font-weight: 700; }
.center-msg { text-align: center; display: flex; flex-direction: column; align-items: center; padding: var(--space) 0 0; }
.center-msg h1 { font-size: var(--step-3); max-width: 16ch; }
.center-msg p { margin-inline: auto; }
.msg-pets { width: 170px; margin-bottom: 1.5rem; transform-origin: 50% 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.links-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; }
.links-row a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }

/* ---------- Sticky call bar ---------- */
.action-bar { display: flex; gap: .6rem; position: fixed; z-index: 30; right: 1.5rem; bottom: 1.5rem; padding: .5rem; border-radius: 999px; background: rgba(10, 20, 38, .94); backdrop-filter: blur(8px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); border: 1px solid var(--tile-line); }
.action-bar .btn { min-height: 48px; }

/* ---------- The dog and cat keep gently moving ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .peek-dog { animation: peek-up .7s var(--ease) .35s both, idle-dog 4.2s ease-in-out 1.2s infinite; }
  .js .peek-cat { animation: peek-up .7s var(--ease) .6s both, idle-cat 5s ease-in-out 1.5s infinite; }
  .closing-pets img, .emergency-pets img { animation: idle-dog 4.2s ease-in-out .8s infinite; }
  .closing-pets img + img, .emergency-pets img + img { animation: idle-cat 5s ease-in-out 1.1s infinite; }
  .msg-pets { animation: idle-cat 4.5s ease-in-out infinite; }
  .msg-pets.lost { animation: lost 3s ease-in-out infinite; }
  .form-status.ok img { animation: idle-dog 2.4s ease-in-out infinite; }
}
@keyframes peek-up { from { transform: translateY(105%); } 70% { transform: translateY(-4%); } to { transform: translateY(0); } }
@keyframes idle-dog { 0%, 100% { transform: translateY(0) rotate(0); } 20% { transform: translateY(-4%) rotate(-6deg); } 40% { transform: translateY(0) rotate(3deg); } 55% { transform: translateY(0) rotate(0); } }
@keyframes idle-cat { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(0) rotate(7deg); } 50% { transform: translateY(-3%) rotate(-2deg); } 65% { transform: translateY(0) rotate(0); } }
@keyframes lost { 0%, 100% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-10px) rotate(-5deg); } 75% { transform: translateX(10px) rotate(5deg); } }

/* ---------- Smaller screens ---------- */
@media (max-width: 899px) {
  .header-row { flex-wrap: wrap; gap: 0; min-height: 0; padding: .6rem 0 .5rem; }
  .brand { margin-right: 0; }
  .brand img { height: 36px; }
  .tabs { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin-top: .5rem; }
  .tabs a { padding: 0 .25rem; font-size: 1rem; }
  .hero-grid, .story-grid, .visit-grid, .form-grid, .group-cols { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .story-img { transform: none; }
  .emergency { grid-template-columns: auto minmax(0, 1fr); }
  .emergency .btn { grid-column: 1 / -1; }
  .action-bar { display: grid; grid-template-columns: 1.5fr 1fr; left: 0; right: 0; bottom: 0; border-radius: 0; border: 0; border-top: 1px solid var(--tile-line); padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 520px) {
  .tile::after { display: none; }
  .tile-icon { width: 42px; height: 42px; }
  .tile-text { font-size: .9375rem; }
}
@media (max-width: 380px) {
  .brand img { height: 30px; }
  .tiles { grid-template-columns: 1fr; }
}

/* ---------- Photos: printed-photo feel. White border, slight tilt, coloured block behind, caption tag ---------- */
.hero-photo, .photo { position: relative; margin: 0; transform: rotate(-1.5deg); transition: transform .4s var(--ease); }
.hero-photo:hover, .photo:hover { transform: rotate(0); }
.hero-photo::after, .photo::before { content: ""; position: absolute; z-index: 0; inset: auto -4% -5% 6%; background: linear-gradient(140deg, #CD2027, #7E0F15); border-radius: var(--radius); transform: rotate(4deg); }
.hero-photo::after { top: calc(clamp(80px, 5vw + 40px, 130px) + 8%); }
.photo::before { top: 8%; }
.photo-blue::before { background: linear-gradient(140deg, #2F5EB3, #16306A); }
.hero-img, .photo img { position: relative; z-index: 2; border: 6px solid #F7FAFE; border-radius: var(--radius); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .7); filter: saturate(1.1) contrast(1.04); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-tag { position: absolute; z-index: 3; left: 1.25rem; bottom: 1.25rem; padding: .4rem .9rem; border-radius: 999px; background: rgba(10, 20, 38, .88); color: #fff; font-size: .9375rem; font-weight: 500; backdrop-filter: blur(4px); }
.photo-tag::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--red); margin-right: .5em; vertical-align: .05em; }
.visit-grid { align-items: center; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); }
@media (prefers-reduced-motion: reduce) { .hero-photo, .photo { transition: none; } }
.visit-grid + .map { margin-top: 1rem; }
#pet-help .muted { margin-bottom: 1.25rem; }
.prose { background: var(--tile); border: 1px solid var(--tile-line); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); margin-top: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.page-head + .wrap.prose + .closing, .prose + .closing { margin-top: var(--space); }
.box h2 { font-size: var(--step-1); }
.cards-scroll { overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem 0 1rem; scrollbar-width: thin; scrollbar-color: var(--tile-hover) transparent; }
.cards { overflow: visible; padding: 0; scroll-snap-type: none; }
html, body { overflow-x: clip; }
.tile-text, .tile-title { overflow-wrap: anywhere; min-width: 0; } .tiles > li { min-width: 0; }

/* ---------- Funny hover (or tap) on the hero photo: dog bounces, cat does a double-take, speech bubbles ---------- */
.peekers { overflow: visible; clip-path: inset(-300% -60% 0 -60%); }
.bubble { position: absolute; z-index: 3; top: -38%; padding: .3rem .75rem; border-radius: 14px; background: #fff; color: var(--bg); font-weight: 700; font-size: .9375rem; line-height: 1.2; opacity: 0; transform: scale(.4) translateY(10px); transform-origin: 50% 100%; pointer-events: none; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.bubble::after { content: ""; position: absolute; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); }
.bubble-dog { left: 2%; }
.bubble-dog::after { left: 22px; }
.bubble-cat { left: 52%; }
.bubble-cat::after { left: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-photo:hover .peek-dog, .hero-photo.play .peek-dog { animation: dog-excited 1.1s ease-in-out infinite; }
  .hero-photo:hover .peek-cat, .hero-photo.play .peek-cat { animation: cat-doubletake 1.3s ease-in-out infinite; }
  .hero-photo:hover .bubble, .hero-photo.play .bubble { animation: bubble-pop 1.3s var(--ease) both; }
  .hero-photo:hover .bubble-cat, .hero-photo.play .bubble-cat { animation-delay: .25s; }
}
@keyframes dog-excited {
  0%, 100% { transform: translateY(0) scale(1, 1) rotate(0); }
  15% { transform: translateY(4%) scale(1.08, .9) rotate(0); }
  35% { transform: translateY(-28%) scale(.94, 1.08) rotate(-10deg); }
  50% { transform: translateY(-34%) scale(1, 1) rotate(10deg); }
  70% { transform: translateY(0) scale(1.06, .92) rotate(0); }
  85% { transform: translateY(-6%) scale(1, 1) rotate(-4deg); }
}
@keyframes cat-doubletake {
  0%, 100% { transform: translateY(0) rotate(0); }
  10% { transform: translateY(-18%) rotate(0); }
  20% { transform: translateY(-18%) rotate(-14deg); }
  30% { transform: translateY(-18%) rotate(14deg); }
  40% { transform: translateY(-18%) rotate(-10deg); }
  55% { transform: translateY(-22%) rotate(0) scale(1.08); }
  75% { transform: translateY(0) rotate(0) scale(1); }
}
@keyframes bubble-pop { 0% { opacity: 0; transform: scale(.4) translateY(10px); } 25% { opacity: 1; transform: scale(1.1) translateY(0); } 35%, 100% { opacity: 1; transform: scale(1) translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hero-photo:hover .bubble { opacity: 1; transform: none; } }

/* ---------- Tiles without dead space: icon left, words right, arrow at the end ---------- */
.tile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 1rem; row-gap: .15rem; align-items: center; padding: 1rem 1.25rem; min-height: 0; }
.tile-icon { grid-column: 1; grid-row: 1 / 3; margin: 0; align-self: center; }
.tile-title { grid-column: 2; grid-row: 1; align-self: end; }
.tile-text { grid-column: 2; grid-row: 2; align-self: start; }
.tile::after { position: static; grid-column: 3; grid-row: 1 / 3; align-self: center; }
.tiles { grid-auto-rows: 1fr; }

/* ---------- Services: a photo on every line ---------- */
.acc summary { justify-content: flex-start; padding: .6rem 1.1rem .6rem .6rem; gap: 1rem; min-height: 72px; }
.acc-label { flex: 1; }
.acc-thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; border: 2px solid rgba(255, 255, 255, .85); filter: saturate(1.1); }
.acc-icon { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: #FF8A8E; flex: none; }
.acc-icon svg { width: 26px; height: 26px; }
.acc .acc-body { padding: .25rem 1.25rem 1.25rem calc(56px + 1.6rem); }
@media (max-width: 520px) {
  .tile::after { display: none; }
  .tile { grid-template-columns: auto minmax(0, 1fr); padding: .9rem 1rem; }
  .acc-thumb, .acc-icon { width: 48px; height: 48px; }
  .acc .acc-body { padding-left: 1.1rem; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr; grid-auto-rows: auto; gap: .6rem; }
  .tile { padding: .85rem 1rem; }
  .tile-title { font-size: 1.125rem; }
}

/* ---------- Alan's choice (18 Nov 2026): the hover/tap animation plays for everyone, even with animations switched off. The idle loop still respects that setting. ---------- */
.hero-photo:hover .peek-dog, .hero-photo.play .peek-dog { animation: dog-excited 1.1s ease-in-out infinite; }
.hero-photo:hover .peek-cat, .hero-photo.play .peek-cat { animation: cat-doubletake 1.3s ease-in-out infinite; }
.hero-photo:hover .bubble, .hero-photo.play .bubble { animation: bubble-pop 1.3s var(--ease) both; }
.hero-photo:hover .bubble-cat, .hero-photo.play .bubble-cat { animation-delay: .25s; }
/* Service icons: drawn, always relevant */
.acc-icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(150deg, rgba(205, 32, 39, .28), rgba(205, 32, 39, .12)); color: #FF9A9E; border: 1px solid rgba(255, 138, 142, .25); }
.acc-icon svg { width: 28px; height: 28px; }
.acc details[open] .acc-icon { background: var(--red); color: #fff; }

/* ---------- v3.3 hover: the dog and cat walk along the top of the photo to the far end, and walk back when the cursor leaves (tap on phones). Plays for everyone (Alan's choice). ---------- */
.bubble { display: none; }
.peekers { transition: transform 1.4s cubic-bezier(.45, .05, .25, 1); }
.hero-photo:hover .peekers, .hero-photo.play .peekers { transform: translateX(93%); }
.hero-photo:hover .peek-dog, .hero-photo.play .peek-dog { animation: walk-bob .35s ease-in-out 4; }
.hero-photo:hover .peek-cat, .hero-photo.play .peek-cat { animation: walk-bob .35s ease-in-out .12s 4; }
@keyframes walk-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7%) rotate(4deg); } }

/* ---------- The rabbit: peeks over the building photo, twitches an ear, hops across on hover (tap on phones) and hops back ---------- */
.photo-peek { --peek-h: clamp(78px, 4vw + 50px, 110px); padding-top: var(--peek-h); }
.photo-peek::before { top: calc(var(--peek-h) + 8%); }
.hopper { position: absolute; z-index: 1; top: 0; left: 8%; height: var(--peek-h); width: 22%; pointer-events: none; clip-path: inset(-200% -120% 0 -120%); transition: transform 1.6s cubic-bezier(.45, .05, .25, 1); }
.hop { position: absolute; left: 0; bottom: 0; height: 100%; transform-origin: 50% 100%; }
.rabbit { position: absolute; left: 0; bottom: -46%; height: 142%; width: auto; overflow: visible; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); transition: transform .25s ease; }
.rabbit .ear { transform-box: fill-box; transform-origin: 50% 100%; }
.photo-peek:hover .hopper, .photo-peek.play .hopper { transform: translateX(300%); }
.photo-peek:hover .hop, .photo-peek.play .hop, .photo-peek.returning .hop { animation: bunny-hop .4s ease-in-out 4; }
.photo-peek.returning .rabbit { transform: scaleX(-1); }
@media (prefers-reduced-motion: no-preference) {
  .rabbit .ear-right { animation: ear-twitch 5s ease-in-out 2s infinite; }
  .rabbit .ear-left { animation: ear-twitch 5s ease-in-out 3.6s infinite; }
}
@keyframes bunny-hop { 0%, 100% { transform: translateY(0) scale(1, 1); } 15% { transform: translateY(0) scale(1.06, .92); } 50% { transform: translateY(-24%) scale(.95, 1.06); } 85% { transform: translateY(0) scale(1.04, .95); } }
@keyframes ear-twitch { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-12deg); } 92% { transform: rotate(6deg); } 95% { transform: rotate(-4deg); } }
.rabbit { bottom: -22%; height: 150%; } .photo-peek { --peek-h: clamp(96px, 5vw + 60px, 140px); }

/* ---------- Fun opening hours: paw prints, today lit up with the dog, sleepy closed days ---------- */
.hours { border-collapse: separate; border-spacing: 0 .3rem; }
.hours th, .hours td { border-bottom: 0; padding: .55rem .75rem; }
.hours tr th { border-radius: 12px 0 0 12px; }
.hours tr td { border-radius: 0 12px 12px 0; }
.hours tr:not(.today):not(.closed) th, .hours tr:not(.today):not(.closed) td { background: rgba(255, 255, 255, .04); }
.hours th::before { content: ""; display: inline-block; width: 1rem; height: 1rem; margin-right: .6rem; vertical-align: -.12em; background: #FF8A8E; opacity: .8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='5.5' cy='10' r='2.3'/%3E%3Ccircle cx='9.5' cy='5.5' r='2.3'/%3E%3Ccircle cx='14.5' cy='5.5' r='2.3'/%3E%3Ccircle cx='18.5' cy='10' r='2.3'/%3E%3Cpath d='M12 12c-3 0-5.5 3.5-5.5 6 0 1.7 1.3 2.5 3 2.5 1 0 1.7-.5 2.5-.5s1.5.5 2.5.5c1.7 0 3-.8 3-2.5 0-2.5-2.5-6-5.5-6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='5.5' cy='10' r='2.3'/%3E%3Ccircle cx='9.5' cy='5.5' r='2.3'/%3E%3Ccircle cx='14.5' cy='5.5' r='2.3'/%3E%3Ccircle cx='18.5' cy='10' r='2.3'/%3E%3Cpath d='M12 12c-3 0-5.5 3.5-5.5 6 0 1.7 1.3 2.5 3 2.5 1 0 1.7-.5 2.5-.5s1.5.5 2.5.5c1.7 0 3-.8 3-2.5 0-2.5-2.5-6-5.5-6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.hours tr.today th, .hours tr.today td { background: linear-gradient(120deg, #C21D24, #8E1218); color: #fff; }
.hours tr.today th::before { background: url("/assets/img/brand/logo-dog-2.webp") center bottom / contain no-repeat; -webkit-mask: none; mask: none; opacity: 1; width: 1.6rem; height: 2.2rem; vertical-align: -.55em; transform-origin: 50% 100%; animation: idle-dog 2.4s ease-in-out infinite; }
.hours tr.today th::after { background: #fff; color: var(--red-deep); }
.hours tr.closed th, .hours tr.closed td { color: var(--muted); }
.hours tr.closed th::before { opacity: .35; }
.hours tr.closed td::after { content: " zzz"; font-size: .8em; font-style: italic; letter-spacing: .05em; color: #8FA3C4; }
.hours tr.closed.today td::after { color: #FFE3E4; }
.hours th, .hours td { white-space: nowrap; }
.hours tr.today th { background: linear-gradient(90deg, #C21D24, #A9171E); }
.hours tr.today td { background: linear-gradient(90deg, #A9171E, #8E1218); }
@media (max-width: 520px) {
  .hours th, .hours td { padding: .5rem .55rem; font-size: .95rem; }
  .hours th::before { margin-right: .4rem; }
  .hours tr.today th::before { width: 1.3rem; height: 1.8rem; }
  .hours tr.today th::after { margin-left: .35rem; font-size: .68rem; padding: .1rem .4rem; }
}

/* ---------- Today's opening-hours bar ---------- */
.day-bar { width: min(100%, 22rem); margin-top: .9rem; }
.day-track { position: relative; height: 10px; border-radius: 999px; background: var(--tile); border: 1px solid var(--tile-line); }
.day-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, #22C55E, #4ADE80); transition: width .6s var(--ease); }
.day-bar[data-state="closing"] .day-fill { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.day-bar[data-state="closed"] .day-fill { background: #5B6B88; }
.day-now { position: absolute; top: 50%; left: 0; width: 22px; height: 22px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
  display: grid; place-items: center; transition: left .6s var(--ease); }
.day-now::before { content: ""; width: 13px; height: 13px; background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='5.5' cy='10' r='2.3'/%3E%3Ccircle cx='9.5' cy='5.5' r='2.3'/%3E%3Ccircle cx='14.5' cy='5.5' r='2.3'/%3E%3Ccircle cx='18.5' cy='10' r='2.3'/%3E%3Cpath d='M12 12c-3 0-5.5 3.5-5.5 6 0 1.7 1.3 2.5 3 2.5 1 0 1.7-.5 2.5-.5s1.5.5 2.5.5c1.7 0 3-.8 3-2.5 0-2.5-2.5-6-5.5-6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='5.5' cy='10' r='2.3'/%3E%3Ccircle cx='9.5' cy='5.5' r='2.3'/%3E%3Ccircle cx='14.5' cy='5.5' r='2.3'/%3E%3Ccircle cx='18.5' cy='10' r='2.3'/%3E%3Cpath d='M12 12c-3 0-5.5 3.5-5.5 6 0 1.7 1.3 2.5 3 2.5 1 0 1.7-.5 2.5-.5s1.5.5 2.5.5c1.7 0 3-.8 3-2.5 0-2.5-2.5-6-5.5-6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.day-labels { display: flex; justify-content: space-between; margin-top: .45rem; font-size: .875rem; color: var(--muted); }
/* Emergency card on phones: small pets beside the heading, text full width */
@media (max-width: 640px) {
  .emergency { grid-template-columns: auto minmax(0, 1fr); gap: .75rem 1rem; padding: 1.1rem 1.1rem 1.25rem; }
  .emergency > div:not(.emergency-pets) { display: contents; }
  .emergency-pets { grid-column: 1; grid-row: 1; align-self: center; }
  .emergency-pets img { height: 56px; }
  .emergency-pets img + img { height: 40px; }
  .emergency h2 { grid-column: 2; grid-row: 1; align-self: center; margin: 0; font-size: 1.25rem; }
  .emergency p { grid-column: 1 / -1; font-size: 1rem; line-height: 1.5; }
  .emergency .btn { grid-column: 1 / -1; }
}

/* ---------- New logo: the "taped on" Polaroid with the practice's own dog and cat ---------- */
.brand img { background: none; padding: 0; border-radius: 0; height: auto; }
.brand { gap: .85rem; text-decoration: none; }
.brand-pol { position: relative; display: block; flex: none; background: #FFFDF7; padding: 4px 4px 9px; border-radius: 2px; transform: rotate(-6deg); box-shadow: 0 6px 12px rgba(0, 0, 0, .45); transition: transform .3s var(--ease); }
.brand-pol::before { content: ""; position: absolute; z-index: 2; top: -6px; left: 50%; width: 30px; height: 11px; margin-left: -15px; background: rgba(255, 236, 170, .9); transform: rotate(4deg); }
.brand:hover .brand-pol { transform: rotate(-2deg) scale(1.04); }
.brand-ph { display: flex; align-items: flex-end; justify-content: center; gap: 1px; width: 66px; height: 48px; overflow: hidden; background: linear-gradient(160deg, #2F5EB3, #16306A); }
.brand-ph img { height: 40px !important; width: auto; } .brand-ph img + img { height: 28px !important; }
.brand-text b { display: block; color: #fff; font-size: 1.375rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1; }
.brand-text span { display: block; color: #FF8A8E; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-top: .3rem; }
@media (max-width: 899px) {
  .brand-ph { width: 54px; height: 39px; } .brand-ph img { height: 33px !important; } .brand-ph img + img { height: 23px !important; }
  .brand-text b { font-size: 1.15rem; } .brand-text span { font-size: .7rem; }
}
@media (max-width: 360px) { .brand-text span { display: none; } }
.header-row { padding-top: .35rem; padding-bottom: .35rem; }

/* ---------- Logo hangs down over the top of the page (computers) ---------- */
@media (min-width: 900px) {
  .site-header { overflow: visible; }
  .header-row { min-height: 74px; }
  .brand { align-self: flex-start; padding-top: .55rem; position: relative; z-index: 25; }
  .brand-pol { padding: 7px 7px 16px; margin-bottom: -58px; transform: rotate(-6deg); box-shadow: 0 14px 26px rgba(0, 0, 0, .55); }
  .brand-pol::before { width: 46px; height: 16px; margin-left: -23px; top: -9px; }
  .brand-ph { width: 118px; height: 86px; }
  .brand-ph img { height: 72px !important; } .brand-ph img + img { height: 51px !important; }
  .brand-text { align-self: center; margin-top: -.55rem; }
  main > section:first-child { padding-top: calc(clamp(1.5rem, 1rem + 2.5vw, 3.5rem) + 2.25rem); }
}
@media (max-width: 899px) {
  .brand-ph { width: 62px; height: 45px; } .brand-ph img { height: 38px !important; } .brand-ph img + img { height: 27px !important; }
}
/* When the page is scrolled, the hanging logo tucks back into the bar */
@media (min-width: 900px) {
  .brand-pol { transition: transform .35s var(--ease), margin .35s var(--ease); transform-origin: 30% 0; }
  .site-header.scrolled .brand-pol { transform: rotate(-4deg) scale(.6); margin-bottom: -16px; margin-top: -10px; }
  .site-header.scrolled .brand-text { margin-left: -2.6rem; transition: margin .35s var(--ease); }
  .brand-text { transition: margin .35s var(--ease); }
}
.site-header { background: #0A1426; }

/* ---------- Subtle background: faint paw-print trails wandering across the page ---------- */
body { background-image: url("/assets/img/paw-trail-2.svg"); background-size: 1000px 1000px; background-repeat: repeat; background-position: 0 0; }
.story, .closing, .site-footer { position: relative; }
body { background-image: url("/assets/img/paw-trail-2.svg"); background-size: 1000px 1000px; }

/* ---------- v4 banner, computers only (Alan, 21 Nov 2026): the team photo fills the whole top of the home page, like Fox Leisure. Phones and small tablets keep the smaller framed photo with the dog and cat on top. ---------- */
.hero-media, .hero-peekers, .hero-tag { display: none; }
@media (min-width: 900px) {
  .hero-full { position: relative; isolation: isolate; overflow: hidden; padding: 0 !important; min-height: clamp(560px, 84vh, 860px); display: flex; align-items: center; }
  .hero-full .hero-photo { display: none; }
  .hero-media { display: block; position: absolute; inset: 0; z-index: -1; }
  .hero-media picture { display: block; width: 100%; height: 100%; }
  .hero-bg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; filter: saturate(1.08); }
  .hero-media::after { content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(90deg, rgba(10, 20, 38, .95) 0%, rgba(10, 20, 38, .88) 32%, rgba(10, 20, 38, .5) 54%, rgba(10, 20, 38, .08) 78%),
      linear-gradient(180deg, rgba(10, 20, 38, .35) 0%, rgba(10, 20, 38, 0) 22%, rgba(10, 20, 38, 0) 70%, rgba(15, 28, 51, .85) 94%, var(--bg) 100%); }
  .hero-full .hero-inner { display: block; width: min(100% - 2 * var(--gutter), var(--content)); padding: clamp(6rem, 4rem + 4vw, 8rem) 0 clamp(5rem, 3rem + 5vw, 8rem); }
  .hero-copy { max-width: 34rem; }
  .hero-full h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.75rem); max-width: 11ch; text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
  .hero-full .lead { color: #E3EAF6; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
  .hero-full .status { background: rgba(10, 20, 38, .72); backdrop-filter: blur(6px); }
  .hero-full .day-track { background: rgba(10, 20, 38, .6); }
  .hero-full .day-labels { color: #D3DCEB; }
  /* the dog and cat peek up from the bottom edge of the banner and walk left across it on hover */
  .hero-peekers { display: flex; top: auto; bottom: 0; left: 44%; width: 18%; height: clamp(84px, 5vw + 50px, 132px); z-index: 2; }
  .hero-full:hover .hero-peekers, .hero-full.play .hero-peekers { transform: translateX(-190%); }
  .hero-full:hover .hero-peekers .peek-dog, .hero-full.play .hero-peekers .peek-dog { animation: walk-bob .35s ease-in-out 4; }
  .hero-full:hover .hero-peekers .peek-cat, .hero-full.play .hero-peekers .peek-cat { animation: walk-bob .35s ease-in-out .12s 4; }
  .hero-tag { display: block; position: absolute; z-index: 2; top: 1.5rem; right: var(--gutter); bottom: auto; left: auto; margin: 0; }
}

/* Editor notice line under the menu (switched on and off by the practice in the editor) */
.site-notice { background: #FFE7A8; color: #0A1426; border-bottom: 1px solid rgba(10, 20, 38, .2); }
.site-notice p { margin: 0; padding: .65rem 0; font-weight: 600; text-align: center; line-height: 1.45; }

/* ---------- Real animation (Artlist, 24 Nov 2026): the dog, cat and rabbit are moving pictures made from the logo drawings.
   The still (first frame) shows straight away; site.js swaps in the moving one when it's on screen. Same drawing size and place as before. ---------- */
.peek-dog { height: 130.5%; translate: -9% 0; }
.peek-cat { height: 110.8%; translate: -18% 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .peek-dog { animation: peek-up .7s var(--ease) .35s both; }
  .js .peek-cat { animation: peek-up .7s var(--ease) .6s both; }
}
.rabbit { height: 151.5%; translate: -11% 0; }
/* the rabbit is a picture now, so keep the building photo's picture styles (frame, size, shadow) off it */
.photo .rabbit { position: absolute; z-index: auto; width: auto; max-width: none; aspect-ratio: auto; object-fit: fill; border: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }

/* ---------- Real animation everywhere the dog and cat appear (24 Nov 2026): logo, "Need to see a vet?", emergency card, message pages, hours, form.
   The moving pictures have a little room around the drawing for the ears; these keep each drawing the same size and spacing as before. ---------- */
img.pet-dog { scale: 1.044; translate: 5% 0; transform-origin: 50% 100%; }
img.pet-cat { scale: 1.026; translate: -6% 0; transform-origin: 50% 100%; }
div.msg-pets { width: auto; display: flex; align-items: flex-end; justify-content: center; }
.msg-pets img.pet-dog { height: 130px; width: auto; }
.msg-pets img.pet-cat { height: 103px; width: auto; }
.form-status.ok img { width: 54px; }
.hours tr.today th::before { background-image: url("/assets/img/pets/dog-still-1.webp"); }
@media (prefers-reduced-motion: no-preference) {
  /* the drawing itself moves now, so the old CSS wobble is off (the 404 "lost" shuffle stays) */
  .closing-pets img, .closing-pets img + img, .emergency-pets img, .emergency-pets img + img, .form-status.ok img { animation: none; }
  .msg-pets:not(.lost) { animation: none; }
}
/* site.js adds .pets-moving to the page 1.5 s after it loads (not with animations off or Data Saver) */
.pets-moving .hours tr.today th::before { background-image: url("/assets/img/pets/dog-anim-1.webp"); animation: none; }

/* ---------- Alan, 25 Nov 2026: no sliding, hopping, popping up or wobbling. Only the Artlist animation moves the animals; they stay where they are. ---------- */
.peekers, .hero-full:hover .hero-peekers, .hero-full.play .hero-peekers, .hero-photo:hover .peekers, .hero-photo.play .peekers,
.hopper, .photo-peek:hover .hopper, .photo-peek.play .hopper { transform: none !important; transition: none !important; }
.peek, .hop, .rabbit, .closing-pets img, .emergency-pets img, .msg-pets, .form-status.ok img, .hours tr.today th::before { animation: none !important; }
.rabbit, .photo-peek.returning .rabbit { transform: none !important; transition: none !important; }
