/* =====================================================================
   Kılıçarslan Veteriner Kliniği — warm editorial theme
   Cream paper, espresso bands, Fraunces headlines, orange as an accent.
   ===================================================================== */

:root {
  --bg: #f6efe5;
  --surface: #fffaf3;
  --surface-2: #efe5d7;
  --text: #211a14;
  --muted: #6b6155;
  --line: #e2d5c3;
  --line-strong: #cbbba5;
  --brand: #e5800a;
  --brand-strong: #c96d05;
  --brand-ink: #a65500;
  --brand-soft: #fbe6cb;
  --accent: #7c8f72;
  --ink: #1c1611;
  --ink-2: #2a2019;
  --on-ink: #f4ebdf;
  --on-ink-muted: #b8a895;
  --ink-line: rgba(244, 235, 223, .14);
  --ok: #2f8f4e;
  --bad: #c8322b;
  --star: #f2b01e;
  --shadow-sm: 0 1px 2px rgba(60, 35, 10, .06), 0 2px 8px rgba(60, 35, 10, .05);
  --shadow: 0 14px 34px -14px rgba(60, 35, 10, .22), 0 4px 10px -6px rgba(60, 35, 10, .08);
  --shadow-lg: 0 40px 70px -28px rgba(60, 35, 10, .38);
  --nav-bg: rgba(246, 239, 229, .82);
  --sv-1: #c4560e;
  --sv-2: #8f3510;
  --grade: saturate(.9) contrast(1.05) sepia(.08);

  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-script: "Alex Brush", cursive;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #15110d;
  --surface: #1e1914;
  --surface-2: #28211a;
  --text: #f1e8dc;
  --muted: #a99b8a;
  --line: #352b21;
  --line-strong: #4b3e31;
  --brand: #f39a2e;
  --brand-strong: #ffb04f;
  --brand-ink: #f6a94b;
  --brand-soft: rgba(243, 154, 46, .14);
  --accent: #a3b597;
  --ink: #0b0907;
  --ink-2: #17120e;
  --on-ink: #f1e8dc;
  --on-ink-muted: #a99b8a;
  --ink-line: rgba(241, 232, 220, .1);
  --ok: #4cc77a;
  --bad: #ff6b5e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 40px 70px -28px rgba(0, 0, 0, .8);
  --nav-bg: rgba(21, 17, 13, .8);
  --sv-1: #a9480d;
  --sv-2: #5e230b;
  --grade: saturate(.88) contrast(1.05) sepia(.08) brightness(.92);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  -webkit-font-smoothing: antialiased;
}
/* Film grain over everything (an SVG noise tile; CSP allows data: images) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1500; pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] body::after { opacity: .07; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
::selection { background: var(--brand); color: #1b1206; }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 3px; border-radius: 6px; }
.svg-defs { position: absolute; }

.ico {
  width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -.22em;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.ico--flip { transform: scaleX(-1); }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.display em, .footer__big em { font-style: italic; font-weight: 400; color: var(--brand-ink); }
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .9rem; }
.eyebrow--brand { color: var(--brand-ink); }
.lead { font-size: 1.2rem; font-weight: 500; }

/* Section headers: numbered kicker + hairline, left aligned */
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 780px; }
.sec-head .display { margin: 0; }
.sec-head__kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 20px;
  font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-ink);
}
.sec-head__kicker b { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.1rem; letter-spacing: 0; }
.sec-head__kicker::after { content: ""; width: 56px; height: 1px; background: currentColor; opacity: .5; }
.sec-head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px 72px; align-items: end; }
.sec-head__aside { margin: 0; color: var(--muted); font-size: 1.04rem; }
.sec-head__aside p { margin: 0 0 18px; }
@media (max-width: 860px) { .sec-head--split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.6em; border-radius: 999px; border: 0;
  font-weight: 700; letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn .ico--arrow { transition: transform .35s var(--ease); }
.btn:hover .ico--arrow, .link-btn:hover .ico--arrow { transform: translateX(4px); }
.btn--brand { background: var(--brand); color: #1b1206; box-shadow: 0 10px 24px -12px rgba(229, 128, 10, .8); }
.btn--brand:hover { background: var(--brand-strong); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(229, 128, 10, .85); }
.btn--line { background: transparent; color: var(--text); border: 1.5px solid var(--line-strong); }
.btn--line:hover { border-color: var(--text); transform: translateY(-2px); }
.btn--sm { padding: .62em 1.15em; font-size: .9rem; }
.btn--block { width: 100%; }

.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  transition: transform .3s var(--ease), background .3s, border-color .3s;
}
/* no tilt: on touch screens a tap leaves the button in its hover state until you tap elsewhere */
@media (hover: hover) { .icon-btn:hover { border-color: var(--brand); } }

.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--brand-ink); font-weight: 700; display: inline-flex; align-items: center; gap: .5em;
}
.link-btn i { transition: transform .3s var(--ease); }
.link-btn:hover i { transform: translateX(5px); }

/* ---------- scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 1001; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--brand); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 1000; padding: 16px 0; transition: background .35s, box-shadow .35s, padding .35s; }
.nav.is-scrolled {
  background: var(--nav-bg);
  backdrop-filter: saturate(150%) blur(16px); -webkit-backdrop-filter: saturate(150%) blur(16px);
  box-shadow: 0 1px 0 var(--line); padding: 8px 0;
}
.nav__inner { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 52px; height: auto; transition: transform .5s var(--ease); }
@media (hover: hover) { .brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); } } /* mouse only, so it can't stick after a tap */
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__word { width: 140px; height: auto; }
.brand__text small { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-top: 6px; }
.brand__word--dark { display: none; }
/* In dark mode, show the white wordmark */
[data-theme="dark"] .brand__word--light { display: none; }
[data-theme="dark"] .brand__word--dark { display: block; }

.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a { position: relative; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 8px 12px; border-radius: 999px; transition: color .25s, background .25s; }
.nav__links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle i { position: absolute; transition: transform .5s var(--ease), opacity .4s; }
.theme-toggle__sun { transform: translateY(30px) rotate(-90deg); opacity: 0; color: var(--brand); }
[data-theme="dark"] .theme-toggle__moon { transform: translateY(-30px) rotate(90deg); opacity: 0; }
[data-theme="dark"] .theme-toggle__sun { transform: none; opacity: 1; }

.nav__burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav__burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav__call span { display: none; }
  .nav__call { padding: 0; width: 44px; height: 44px; }
}
@media (max-width: 980px) {
  .nav__burger { display: inline-flex; }
  .nav__links {
    position: fixed; inset: 70px 16px auto 16px;
    flex-direction: column; gap: 2px; padding: 12px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98);
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav .nav__links a { color: var(--text); padding: 12px 14px; font-size: 1rem; }
  .nav__links a::after { display: none; }
  .nav__links a:hover { background: var(--surface-2); }
  .nav__actions { margin-left: auto; }
}
@media (max-width: 420px) {
  .brand__word { width: 112px; }
  .brand__mark { width: 42px; }
  .nav__call { display: none; }
}

/* ---------- sections ---------- */
.section { padding: clamp(80px, 9.5vw, 124px) 0; position: relative; }
.band { background: var(--ink); color: var(--on-ink); }
.band .display { color: var(--on-ink); }
.band .display em { color: var(--brand); }
.band .sec-head__kicker { color: var(--brand); }
.band .sec-head__aside { color: var(--on-ink-muted); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 132px 0 0;
  background:
    linear-gradient(180deg, transparent 70%, var(--bg)),
    radial-gradient(55% 65% at 90% 15%, color-mix(in srgb, var(--brand) 15%, transparent), transparent 70%),
    radial-gradient(45% 55% at 0% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--bg);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 88px); align-items: center; }

.hero__status {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
  padding: 7px 15px 7px 12px; border-radius: 999px; font-weight: 600; font-size: .86rem;
  background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--line);
}
.hero__status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); color: var(--brand); animation: ping 2s infinite; }
.hero__status.is-open .dot { background: var(--ok); color: var(--ok); }
.hero__status.is-closed .dot { background: var(--bad); color: var(--bad); animation: none; }

.hero__title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.038em; line-height: .98;
  font-size: clamp(2.9rem, 6.8vw, 5.9rem); margin: 0;
}
.hero__title em { font-style: italic; font-weight: 400; color: var(--brand-ink); }
.hero__kicker { display: block; font-family: var(--font); font-size: clamp(.7rem, 1vw, .8rem); letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 22px; }

/* Heartbeat line that ends in a paw */
.hero__pulse { display: block; width: min(440px, 100%); height: auto; margin: 16px 0 22px; overflow: visible; }
.hero__pulse .pulse-stop-on { stop-color: var(--brand); stop-opacity: 1; }
.hero__pulse .pulse-stop-off { stop-color: var(--brand); stop-opacity: 0; }
/* 1. the line draws itself once */
.hero__pulse .pulse-line {
  fill: none; stroke: url(#pulseFade); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: pulse-draw 2.6s cubic-bezier(.55, .05, .3, 1) .5s forwards;
}
/* 2. the heart fills in once the line has drawn it, then beats whenever the pulse arrives */
.hero__pulse .pulse-heart {
  fill: var(--brand); opacity: 0; transform-box: fill-box; transform-origin: 50% 60%;
  animation: heart-fill .9s var(--ease) 2.5s forwards, heart-beat 2.6s ease-in-out 3.4s infinite;
}
/* 3. a short glowing pulse travels along the line (timed to reach the heart at ~66%) */
.hero__pulse .pulse-trace {
  fill: none; stroke: url(#pulseFade); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: .05 1; stroke-dashoffset: .05; filter: drop-shadow(0 0 3px var(--brand));
  animation: pulse-trace 2.6s linear 3.4s infinite;
}
@keyframes pulse-draw { to { stroke-dashoffset: 0; } }
@keyframes pulse-trace { from { stroke-dashoffset: .05; } to { stroke-dashoffset: -1; } }
@keyframes heart-fill { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes heart-beat { 0%, 62%, 100% { transform: scale(1); } 68% { transform: scale(1.18); } 74% { transform: scale(1); } 80% { transform: scale(1.1); } 88% { transform: scale(1); } }

.hero__lead { font-size: clamp(1.04rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 520px; margin: 0 0 32px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__facts { display: flex; margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--line); max-width: 520px; }
.hero__facts div { flex: 1; padding: 0 22px; border-left: 1px solid var(--line); }
.hero__facts div:first-child { padding-left: 0; border-left: 0; }
.hero__facts dt { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.hero__facts dd { margin: 6px 0 0; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--muted); white-space: nowrap; }
.hero__facts strong { font-style: normal; font-size: 2.4rem; font-weight: 600; color: var(--text); line-height: 1; margin-right: 2px; font-variant-numeric: lining-nums; }

/* Illustrated, animated cat & dog in the clinic's arch (inline SVG; CSS-only idle animations) */
.hero__art {
  position: relative; width: 100%; max-width: 540px; aspect-ratio: 520 / 600; justify-self: end;
  --pet-line: #241a12; --pet-dog: #ec8a1e; --pet-dog-dark: #c4630c; --pet-cream: #fff6ea; --pet-pink: #f2909f;
  --pet-eye: #9cc65f; --pet-collar: #6f8a63; --pet-patch: #8a5a30; --pet-collar-cat: #d64f6a; --pet-floor: rgba(120, 70, 20, .07); --pet-tag: #f2b01e; --pet-sky-a: #fdebd3; --pet-sky-b: #f7c98c;
  --pet-outline: color-mix(in srgb, var(--brand) 60%, transparent); --pet-shadow: rgba(80, 40, 5, .16);
}
[data-theme="dark"] .hero__art { --pet-cream: #f7ead8; --pet-sky-a: #3a2a1b; --pet-sky-b: #22170e; --pet-shadow: rgba(0, 0, 0, .35); --pet-floor: rgba(0, 0, 0, .2); }
.pets { display: block; width: 100%; height: auto; overflow: visible; animation: rise 1.2s var(--ease) both; }
.pets__sky-a { stop-color: var(--pet-sky-a); }
.pets__sky-b { stop-color: var(--pet-sky-b); }
.pets__arch { fill: url(#petSky); }
.pets__outline { fill: none; stroke: var(--pet-outline); stroke-width: 1.5; }
.pets .o { stroke: var(--pet-line); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.pets .o--thin { stroke-width: 2.2; }
.pets .f-dog { fill: var(--pet-dog); }
.pets .f-dogd { fill: var(--pet-dog-dark); }
.pets .f-cream { fill: var(--pet-cream); }
.pets .f-pink { fill: var(--pet-pink); }
.pets .f-line { fill: var(--pet-line); }
.pets .f-white { fill: #fff; }
.pets .f-eye { fill: var(--pet-eye); }
.pets .f-none { fill: none; }
.pets .f-tag { fill: var(--pet-tag); }
.pets .f-blush { fill: var(--pet-pink); opacity: .5; }
.pets .f-shadow { fill: var(--pet-shadow); }
.pets .s-line { fill: none; stroke: var(--pet-line); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pets .s-line--thin { stroke-width: 1.5; }
.pets .s-line--toe { stroke-width: 2; }
.pets .s-inner { fill: none; stroke: var(--pet-line); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pets .f-patch { fill: var(--pet-patch); }
.pets .f-floor { fill: var(--pet-floor); }
.pets .s-orange { fill: none; stroke: var(--pet-dog); stroke-width: 4; stroke-linecap: round; }
.pets .s-orange--tail { stroke-width: 3.5; }
.pets .s-collar { fill: none; stroke: var(--pet-collar); stroke-width: 10; stroke-linecap: round; }
.pets .s-collar--cat { stroke: var(--pet-collar-cat); stroke-width: 8; }
.pets .s-tongue { fill: none; stroke: #d9667a; stroke-width: 1.6; stroke-linecap: round; }
.pets .s-tail-o { fill: none; stroke: var(--pet-line); stroke-width: 19; stroke-linecap: round; }
.pets .s-tail { fill: none; stroke: var(--pet-cream); stroke-width: 11; stroke-linecap: round; }
.pets .s-yarn { fill: none; stroke: var(--pet-dog); stroke-width: 2.5; stroke-linecap: round; }
.pets__cross { fill: #fff; opacity: .7; }
[data-theme="dark"] .pets__cross { opacity: .18; }
.pets__heart { fill: #e2475b; opacity: 0; }

/* moving parts pivot in the drawing's own coordinates */
.pet { cursor: pointer; }
.dog-tail { transform-origin: 232px 520px; animation: wag .42s ease-in-out infinite alternate; }
.dog-head { transform-origin: 175px 432px; animation: tilt 7s cubic-bezier(.45, 0, .2, 1) infinite; }
.dog-ear--l { transform-origin: 126px 322px; animation: flop 7s cubic-bezier(.45, 0, .2, 1) infinite; }
.dog-ear--r { transform-origin: 224px 322px; animation: flop 7s cubic-bezier(.45, 0, .2, 1) infinite; }
.dog-tongue { transform-origin: 175px 400px; animation: pant .15s ease-in-out infinite alternate; } /* ~200 pants a minute, like a real panting dog */
.dog-tag { transform-origin: 175px 436px; animation: swing 1.4s ease-in-out infinite alternate; }
.cat-bell { transform-origin: 355px 451px; animation: swing 1.7s ease-in-out .3s infinite alternate; }
.cat-head { transform-origin: 355px 448px; animation: nod 6.5s cubic-bezier(.45, 0, .2, 1) infinite; }
.cat-ear--r { transform-origin: 386px 376px; animation: twitch 6s 2s infinite; } /* pivot at the middle of the base, inside the head */
.whiskers { transform-origin: 355px 412px; animation: whisk 4s 1s infinite; }
.yarn { animation: yarn-slide 6s ease-in-out infinite; }
.yarn__ball { transform-origin: 280px 541px; animation: yarn-spin 6s ease-in-out infinite; }
.blink { transform-box: fill-box; transform-origin: center; animation: blink 5s 1s infinite; }
.blink--slow { animation: slowblink 9s 3s infinite; }
.pets .cat-lids { fill: none; stroke: var(--pet-line); stroke-width: 2.6; stroke-linecap: round; opacity: 0; animation: lids 9s 3s infinite; }
.pets__cross { transform-box: fill-box; transform-origin: center; animation: twinkle 4s ease-in-out infinite; }
.pets__cross--2 { animation-delay: 1.3s; }
.pets__cross--3 { animation-delay: 2.6s; }
/* hearts are plain paths inside a positioned group, so fill-box centres them reliably */
.pets__heart { transform-box: fill-box; transform-origin: center; animation: float-up 5s ease-in 1s infinite; }
.pets__heart--2 { animation-delay: 3.5s; }

@keyframes wag { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
/* heads rest 1 degree off straight, so they are rendered the same way at rest and when tilted (no crisp/soft switch) */
@keyframes tilt { 0%, 56%, 90%, 100% { transform: rotate(-1deg); } 64%, 81% { transform: rotate(-9deg); } }
@keyframes flop { 0%, 56%, 90%, 100% { transform: rotate(0); } 64%, 81% { transform: rotate(7deg); } }
@keyframes pant { to { transform: scale(1.04, 1.11); } }
@keyframes swing { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
@keyframes nod { 0%, 22%, 63%, 100% { transform: rotate(1deg); } 31%, 53% { transform: rotate(5deg); } }
@keyframes twitch { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-12deg); } 94% { transform: rotate(4deg); } 97% { transform: rotate(-6deg); } }
@keyframes whisk { 0%, 86%, 100% { transform: none; } 90% { transform: scaleY(1.3); } 94% { transform: scaleY(.85); } }
@keyframes yarn-slide { 50% { transform: translateX(-8px); } }
@keyframes yarn-spin { 50% { transform: rotate(-29deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
/* the open eye narrows to ~1/3, then hands over to the drawn closed-eye lines (.cat-lids) and back */
@keyframes slowblink { 0%, 82%, 100% { transform: scaleY(1); opacity: 1; } 85.4% { transform: scaleY(.34); opacity: 1; } 85.8%, 91% { transform: scaleY(.34); opacity: 0; } 91.4% { transform: scaleY(.34); opacity: 1; } 94% { transform: scaleY(1); } }
@keyframes lids { 0%, 85.4%, 91.4%, 100% { opacity: 0; } 85.8%, 91% { opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.8); } 50% { opacity: .75; transform: scale(1.05); } }
@keyframes float-up { 0% { opacity: 0; transform: translateY(6px) scale(.5); } 15% { opacity: 1; } 80% { opacity: .9; } 100% { opacity: 0; transform: translateY(-70px) scale(1.15); } }

/* hover & click reactions */
.pet--dog:hover .dog-tail { animation-duration: .16s; }
.pet--dog:hover .brow { transform: translateY(-4px); }
.pets .brow { transition: transform .3s var(--ease); }
.pet.is-happy { animation: hop .55s var(--ease) 2; }
.pet--dog { transform-origin: 175px 556px; }
.pet--cat { transform-origin: 355px 556px; }
.pet--dog.is-happy .dog-tail { animation-duration: .12s; }
@keyframes hop { 35% { transform: translateY(-22px) scale(1, 1.03); } 70% { transform: translateY(0) scale(1.03, .97); } }
.pet-eyes { transition: transform .25s ease-out; }

/* hearts that burst out of a pet when it is clicked (created by modern.js) */
.pop-heart { fill: #e2475b; pointer-events: none; transform-box: fill-box; transform-origin: center; opacity: 0; animation: heart-pop 1.7s cubic-bezier(.2, .7, .3, 1) forwards; }
.pop-heart--pink { fill: #f2909f; }
.pop-heart--orange { fill: var(--pet-dog); }
@keyframes heart-pop {
  0% { opacity: 0; transform: translate(0, 0) scale(.2); }
  14% { opacity: 1; transform: translate(calc(var(--dx) * .2), calc(var(--rise) * -.18)) scale(1.18); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--rise) * -1)) scale(.85) rotate(var(--rot)); }
}

/* speech bubbles */
.pets__bubble {
  position: absolute; z-index: 2; padding: 8px 16px; border-radius: 18px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.2rem; white-space: nowrap;
  opacity: 0; transform: translateY(10px) scale(.6); transition: opacity .25s, transform .4s var(--ease); pointer-events: none;
}
.pets__bubble::after { content: ""; position: absolute; bottom: -7px; width: 14px; height: 14px; background: inherit; border: inherit; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.pets__bubble--dog { left: 0; top: 31%; transform-origin: 70% 100%; }
.pets__bubble--dog::after { right: 26px; }
.pets__bubble--cat { right: 4%; top: 40%; transform-origin: 30% 100%; }
.pets__bubble--cat::after { left: 26px; }
.pets__bubble.is-on { opacity: 1; transform: none; }

/* Rotating seal: a cream ring whose centre sits exactly where the arch edge and the thin orange
   outline cross (viewBox 403.9, 95.6 of 520 x 600), so both lines run through it on purpose.
   The centre is a black disc in both themes. */
.hero__seal {
  --seal: 27%; /* diameter, as a share of the illustration width */
  position: absolute; width: var(--seal); aspect-ratio: 1; border-radius: 50%;
  left: calc(100% * 403.9 / 520 - var(--seal) / 2);
  top: calc(100% * 95.6 / 600 - var(--seal) * 520 / 600 / 2); /* top % refers to the height */
  display: grid; place-items: center; isolation: isolate;
  box-shadow: 0 1px 2px rgba(60, 35, 10, .18), 0 8px 14px -6px rgba(60, 35, 10, .3), 0 26px 40px -14px rgba(60, 35, 10, .45);
  animation: rise 1.2s var(--ease) .3s both;
}
[data-theme="dark"] .hero__seal { box-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 16px -6px rgba(0, 0, 0, .55), 0 30px 44px -14px rgba(0, 0, 0, .7); }
/* the ring: same light badge in both themes; the mask cuts out the centre */
.hero__seal::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffdf8, #f8eedf 75%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  -webkit-mask: radial-gradient(circle closest-side, transparent 67.6%, #000 68.2%);
  mask: radial-gradient(circle closest-side, transparent 67.6%, #000 68.2%);
}
/* inner disc: a fine line plus a soft shadow at its top edge, as if the ring sits slightly above it (depth) */
.hero__seal::after { content: ""; position: absolute; z-index: 1; width: 68%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #26211d, #0d0b0a 80%); box-shadow: inset 0 0 0 1px rgba(229, 128, 10, .55), inset 0 4px 7px -2px rgba(0, 0, 0, .6); }
.hero__seal svg { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; animation: spin 36s linear infinite; }
.hero__seal text { font-family: var(--font); font-size: 15px; font-weight: 700; letter-spacing: .02em; fill: #2a2019; }
.hero__seal img { position: relative; z-index: 2; width: 50%; height: auto; }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero { padding-top: 104px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero__art { justify-self: center; max-width: 460px; }
}
@media (max-width: 520px) {
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__facts div { padding: 0 14px; }
  .hero__facts strong { font-size: 2rem; }
}

/* ---------- info rail (hours, live clock, weather, phones) ---------- */
.rail { position: relative; z-index: 5; margin-top: clamp(28px, 4vw, 44px); }
.rail__inner {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .75fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); overflow: hidden;
}
.rail__col { padding: 26px 30px; display: flex; align-items: center; gap: 18px; }
.rail__col + .rail__col { border-left: 1px solid var(--line); }
.rail__hours { display: block; }
.rail__label { font-family: var(--font); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 12px; }
.rail__hours dl { margin: 0; display: grid; gap: 6px; }
.rail__hours dl div { display: flex; align-items: baseline; gap: 10px; }
.rail__hours dl div::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); }
.rail__hours dt { font-weight: 600; }
.rail__hours dd { order: 2; margin: 0; font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.rail__phones { grid-column: 1 / -1; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 40px; padding: 14px 24px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.rail__phones a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; letter-spacing: .02em; transition: color .2s; }
.rail__phones .ico { color: var(--brand-ink); }
.rail__phones a:hover { color: var(--brand-ink); }

.clock { width: 84px; height: 84px; flex-shrink: 0; }
.clock__face { fill: var(--bg); stroke: var(--line-strong); stroke-width: 1.5; }
.clock__ticks line { stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; }
.clock__h { stroke: var(--text); stroke-width: 4; stroke-linecap: round; }
.clock__m { stroke: var(--text); stroke-width: 2.6; stroke-linecap: round; }
.clock__s { stroke: var(--brand); stroke-width: 1.4; stroke-linecap: round; }
.clock__pin { fill: var(--brand); }
.status__date { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; text-transform: capitalize; }
.status__state { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 700; font-size: .88rem; padding: 4px 12px 4px 10px; border-radius: 999px; }
.status__state .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status__state.is-open { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.status__state.is-open .dot { animation: ping 1.6s var(--ease) infinite; }
.status__state.is-closed { color: var(--bad); background: color-mix(in srgb, var(--bad) 11%, transparent); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 currentColor; } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }

.rail__weather { justify-content: center; }
.weather__icon { width: 56px; height: 56px; animation: bob 4s ease-in-out infinite; }
[data-theme="dark"] .weather__icon { filter: invert(1) brightness(1.2); }
.weather__city { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.weather__temp { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; line-height: 1; }
.weather__temp span { font-size: 1rem; vertical-align: top; margin-left: 2px; color: var(--muted); font-family: var(--font); }
.weather__pin { width: 32px; height: 32px; color: var(--brand-ink); }
.weather__sub { font-weight: 600; }
@keyframes bob { 50% { transform: translateY(-6px); } }

@media (max-width: 900px) {
  .rail__inner { grid-template-columns: 1fr 1fr; }
  .rail__hours { grid-column: 1 / -1; }
  .rail__col + .rail__col { border-left: 0; }
  .rail__now { border-top: 1px solid var(--line); }
  .rail__weather { border-top: 1px solid var(--line); border-left: 1px solid var(--line) !important; }
}
@media (max-width: 560px) {
  .rail__inner { grid-template-columns: 1fr; border-radius: 24px; }
  .rail__col { padding: 22px; }
  .rail__weather { border-left: 0 !important; justify-content: flex-start; }
  .rail__phones { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 22px; }
}

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(44px, 7vw, 104px); align-items: center; }
.about__media { position: relative; width: 100%; max-width: 500px; aspect-ratio: 4 / 5; }
.about__arch, .about__small { position: absolute; margin: 0; overflow: hidden; background: var(--surface-2); }
.about__arch { left: 0; top: 0; width: 76%; height: 86%; border-radius: 999px 999px 30px 30px; box-shadow: var(--shadow-lg); }
.about__small { right: 0; bottom: 0; width: 48%; aspect-ratio: 1; border-radius: 30px; border: 8px solid var(--bg); box-shadow: var(--shadow); }
.about__arch img, .about__small img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transition: transform 1.4s var(--ease); }
.about__media:hover img { transform: scale(1.04); }
.about__since {
  position: absolute; right: 2%; top: 6%; width: 120px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: 2px;
  border: 1px solid color-mix(in srgb, var(--brand) 60%, transparent); background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.about__since span { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.about__since strong { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 2rem; line-height: 1; color: var(--brand-ink); }
.about__text .sec-head { margin-bottom: 30px; }
.about__text .display { font-size: clamp(2rem, 3.4vw, 3rem); }
.about__quote {
  margin: 0 0 22px; padding-left: 24px; border-left: 2px solid var(--brand);
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.35; text-wrap: pretty;
}
.about__text > p { color: var(--muted); max-width: 560px; }

.signature { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 30px 0 0; }
.signature__role { display: block; font-size: .7rem; letter-spacing: .22em; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.signature__name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.signature__script { font-family: var(--font-script); font-size: 2.7rem; color: var(--brand-ink); line-height: 1; transform: rotate(-4deg); }

.figures { display: grid; grid-template-columns: repeat(3, 1fr); margin: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figures div { padding: 22px 0 20px 24px; border-left: 1px solid var(--line); }
.figures div:first-child { padding-left: 0; border-left: 0; }
.figures strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3.1rem); line-height: 1; font-variant-numeric: lining-nums; }
.figures span { display: block; margin-top: 8px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* generic stat tiles (admin dashboard) */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.stats div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 16px; }
.stats strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1.1; color: var(--brand-ink); }
.stats span { font-size: .85rem; color: var(--muted); font-weight: 600; }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-strong); text-decoration: none;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.socials a:hover { transform: translateY(-3px); background: var(--brand); color: #1b1206; border-color: var(--brand); }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__media { max-width: 440px; margin: 0 auto; }
}
@media (max-width: 520px) {
  .about__since { width: 96px; }
  .about__since strong { font-size: 1.6rem; }
  .figures div { padding-left: 14px; }
}

/* ---------- marquee ---------- */
/* services ticker along the bottom of the hero: hairlines, soft fading edges */
.marquee {
  overflow: hidden; color: var(--text); padding: 16px 0; margin-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 115s linear infinite; }
/* gap + matching padding-right keep both groups the same width, so -50% lands exactly on the second group */
.marquee__group { display: flex; align-items: center; gap: 34px; padding-right: 34px; flex-shrink: 0; }
.marquee span { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.15rem, 2vw, 1.6rem); white-space: nowrap; }
.marquee svg { width: 18px; height: 18px; fill: var(--brand); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- services: numbered index on the espresso band ---------- */
.svc { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--ink-line); }
.svc__item {
  display: grid; grid-template-columns: 70px 56px minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px 28px; align-items: center;
  padding: 30px 12px; border-top: 1px solid var(--ink-line); transition: background .45s var(--ease);
}
.svc__num { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--on-ink-muted); transition: color .3s; }
.svc__ico { width: 38px; height: 38px; color: var(--brand); stroke-width: 1.3; transition: transform .5s var(--ease); }
.svc__title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 2.2vw, 1.85rem); line-height: 1.15; letter-spacing: -.012em; transition: color .3s, transform .5s var(--ease); }
.svc__desc { margin: 0; color: var(--on-ink-muted); font-size: .98rem; }
.svc__item:hover { background: rgba(255, 255, 255, .035); }
.svc__item:hover .svc__num, .svc__item:hover .svc__title { color: var(--brand); }
.svc__item:hover .svc__title { transform: translateX(8px); }
.svc__item:hover .svc__ico { transform: rotate(-8deg) scale(1.08); }
@media (max-width: 860px) {
  .svc__item { grid-template-columns: 44px minmax(0, 1fr); gap: 6px 14px; padding: 24px 0; align-items: start; }
  .svc__num { grid-row: 1; padding-top: 4px; }
  .svc__ico { grid-column: 1; grid-row: 2; width: 30px; height: 30px; }
  .svc__title { grid-column: 2; grid-row: 1; }
  .svc__desc { grid-column: 2; grid-row: 2; }
}

/* ---------- SmartVET: burnt-orange card ---------- */
.sv {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center;
  padding: clamp(32px, 6vw, 76px); border-radius: 40px; color: #fff6ec; box-shadow: var(--shadow-lg);
  background:
    radial-gradient(55% 75% at 88% 18%, rgba(255, 190, 110, .38), transparent 62%),
    radial-gradient(40% 50% at 0% 100%, rgba(60, 15, 0, .35), transparent 70%),
    linear-gradient(140deg, var(--sv-1), var(--sv-2));
}
.sv::before { content: ""; position: absolute; right: -140px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); z-index: -1; }
.sv::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); z-index: -1; }
.sv__brand { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.sv__brand img { width: 56px; height: 56px; border-radius: 16px; background: #fff; padding: 5px; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .35); }
.sv__brand .sec-head__kicker { margin: 0; color: rgba(255, 246, 236, .85); }
.sv .display { color: #fff; margin: 0 0 8px; }
.sv .display em { color: #ffd6a3; }
.sv__list { list-style: none; margin: 30px 0 26px; padding: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.sv__list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.sv__list .ico { width: 30px; height: 30px; margin-top: 2px; }
.sv__list h3 { font-size: 1.05rem; margin: 0 0 2px; }
.sv__list p { margin: 0; color: rgba(255, 246, 236, .82); }
.sv__note { font-weight: 600; max-width: 520px; }
.sv__stores { display: flex; gap: 12px; flex-wrap: wrap; }
.sv__stores a { transition: transform .3s var(--ease); }
.sv__stores a:hover { transform: translateY(-3px); }
.sv__stores img { height: 48px; width: auto; }
.sv__phones { position: relative; height: 540px; }
.phone { position: absolute; width: 240px; filter: drop-shadow(0 30px 30px rgba(40, 8, 0, .5)); }
.phone img { display: block; width: 100%; height: auto; }
.phone--front { left: 6%; top: 40px; animation: phoneA 8s ease-in-out infinite; z-index: 2; }
.phone--back { right: 2%; top: 0; transform: rotate(8deg); animation: phoneB 9s ease-in-out infinite; opacity: .95; }
@keyframes phoneA { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-14px); } }
@keyframes phoneB { 0%, 100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(6deg) translateY(12px); } }
@media (max-width: 900px) {
  .sv { grid-template-columns: minmax(0, 1fr); border-radius: 30px; }
  .sv__phones { height: 420px; max-width: 400px; width: 100%; margin: 0 auto; }
  .phone { width: 190px; }
}

/* ---------- press: newspaper columns ---------- */
.press { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--text); }
.press__item { display: flex; flex-direction: column; padding: 30px 30px 6px; border-left: 1px solid var(--line); }
.press__item:first-child { padding-left: 0; border-left: 0; }
.press__item:last-child { padding-right: 0; }
.press__mast { height: 56px; display: flex; align-items: center; margin-bottom: 22px; }
.press__mast img { max-height: 44px; width: auto; filter: grayscale(1) contrast(1.15); opacity: .72; mix-blend-mode: multiply; transition: filter .45s, opacity .45s; }
.press__item:hover .press__mast img { filter: none; opacity: 1; }
[data-theme="dark"] .press__mast img { mix-blend-mode: normal; background: #fff; padding: 6px 10px; border-radius: 8px; }
.press__date { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.press__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.18; letter-spacing: -.01em; margin: 0 0 12px; text-wrap: balance; }
.press__excerpt { color: var(--muted); font-size: .96rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.press__item .link-btn { margin: auto 0 22px; align-self: flex-start; }
@media (max-width: 900px) {
  .press { grid-template-columns: minmax(0, 1fr); }
  .press__item { padding: 28px 0 4px; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- reviews: rating summary + a row of equal cards ---------- */
.testi-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 26px; }
.testi-score { display: flex; align-items: center; gap: 14px; }
.testi-score strong { font-family: var(--font-display); font-weight: 600; font-size: 3.4rem; line-height: .9; color: var(--on-ink); font-variant-numeric: lining-nums; }
.testi-score small { display: block; margin-top: 5px; font-size: .84rem; color: var(--on-ink-muted); }
.testi-summary .testi-note { flex-basis: 100%; margin: 0; font-size: .86rem; color: var(--on-ink-muted); }
.testi-stars { color: var(--star); display: flex; gap: 4px; font-size: .8rem; padding-left: .05em; }

/* the track stays inside the content column; cards fill it exactly (no half cards at the edges) */
.testi__track {
  display: flex; align-items: stretch; gap: 20px;
  padding: 6px 0 10px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.testi__track::-webkit-scrollbar { display: none; }
.testi__track:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.testi-card {
  flex: 0 0 calc((100% - 40px) / 3);
  display: flex; flex-direction: column; margin: 0; padding: 26px 26px 24px;
  border-radius: 24px; background: rgba(255, 255, 255, .035); border: 1px solid var(--ink-line);
  scroll-snap-align: start; transition: border-color .35s, transform .45s var(--ease), background .35s;
}
.testi-card:hover { border-color: color-mix(in srgb, var(--brand) 45%, transparent); background: rgba(255, 255, 255, .055); transform: translateY(-3px); }
.testi-card__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--ink-line); }
.testi-card__avatar { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #1b1206; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.testi-card__meta { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.testi-card__name { font-weight: 700; letter-spacing: .02em; line-height: 1.2; color: var(--on-ink); }
.testi-card__mark { margin-left: auto; align-self: flex-start; height: 26px; font-family: var(--font-display); font-size: 3.4rem; line-height: .8; color: var(--brand); }
.testi-card__text {
  margin: 0; font-size: 1rem; line-height: 1.7; color: color-mix(in srgb, var(--on-ink) 88%, transparent);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; line-clamp: 7; overflow: hidden; overflow-wrap: anywhere;
}
.testi-card.is-open .testi-card__text { display: block; -webkit-line-clamp: unset; line-clamp: none; }
.testi-card__more { align-self: flex-start; margin-top: 12px; padding: 0; border: 0; background: none; color: var(--brand); font-weight: 700; font-size: .9rem; cursor: pointer; }
.testi-card__more:hover { text-decoration: underline; text-underline-offset: 3px; }

.testi__nav { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.testi__nav[hidden] { display: none; }
.testi__progress { position: relative; flex: 1; height: 2px; margin-right: 16px; background: var(--ink-line); border-radius: 2px; overflow: hidden; }
.testi__progress span { position: absolute; top: 0; bottom: 0; left: var(--l, 0%); width: var(--w, 33%); background: var(--brand); border-radius: 2px; transition: left .25s linear; }
.testi__btn {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(244, 235, 223, .28); background: transparent; color: var(--on-ink);
  transition: background .3s, border-color .3s, color .3s, opacity .3s;
}
.testi__btn:hover:not(:disabled) { background: var(--brand); border-color: var(--brand); color: #1b1206; }
.testi__btn:disabled { opacity: .3; cursor: default; }
/* play/pause toggle: shows the pause icon while autoplay runs */
.testi__play .ico--play, .testi__play.is-paused .ico--pause { display: none; }
.testi__play.is-paused .ico--play { display: block; }
/* fast slide back to the first review: snapping off so it moves in one fluid motion */
.testi__track.is-rewinding { scroll-snap-type: none; scroll-behavior: auto; }
.testi-empty { color: var(--on-ink-muted); font-size: 1.1rem; }
@media (max-width: 980px) { .testi-card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 640px) {
  .testi-card { flex-basis: 100%; padding: 22px 20px 20px; }
  .testi-score strong { font-size: 2.8rem; }
}
@media (prefers-reduced-motion: reduce) { .testi__track { scroll-behavior: auto; } }

/* reviews in the admin dashboard */
.review {
  position: relative; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 26px; display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.review__stars { color: var(--star); display: flex; gap: 3px; margin-bottom: 14px; }
.review blockquote { margin: 0 0 22px; font-size: 1.02rem; flex: 1; }
.review__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #1b1206; font-weight: 800; flex-shrink: 0; }

/* ---------- gallery: bento grid ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(110px, 13vw, 180px); grid-auto-flow: dense; gap: 12px; }
.gallery__item { position: relative; overflow: hidden; border-radius: 20px; display: block; background: var(--surface-2); grid-column: span 2; }
/* tile shape is set per photo in index.php: big, tall (portrait photos) or wide */
.gallery__item--big { grid-column: span 4; grid-row: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 4; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transition: transform 1.4s var(--ease), filter .6s; }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(28, 22, 17, .5), transparent 55%); opacity: 0; transition: opacity .5s; }
.gallery__zoom {
  position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); color: var(--text);
  transform: scale(.5); opacity: 0; transition: transform .45s var(--ease), opacity .3s;
}
.gallery__item:hover img { transform: scale(1.06); filter: none; }
.gallery__item:hover::after { opacity: 1; }
.gallery__item:hover .gallery__zoom { transform: none; opacity: 1; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; gap: 10px; }
  .gallery__item, .gallery__item--wide { grid-column: span 1; }
  .gallery__item--big { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 480px) { .gallery { grid-auto-rows: 120px; gap: 8px; } .gallery__item { border-radius: 14px; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(12, 9, 7, .94); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 60px 16px; animation: fadein .3s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: zoomin .4s var(--ease); }
.lightbox figcaption { color: rgba(255, 255, 255, .7); margin-top: 12px; font-family: var(--font-display); font-style: italic; font-variant-numeric: tabular-nums; }
.lightbox__btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; transition: background .25s; }
.lightbox__btn:hover { background: var(--brand); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@keyframes fadein { from { opacity: 0; } }
@keyframes zoomin { from { opacity: 0; transform: scale(.94); } }

/* ---------- contact ---------- */
.contact { padding-bottom: clamp(70px, 9vw, 110px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 88px); align-items: start; margin-bottom: clamp(40px, 6vw, 64px); }
.contact__intro .sec-head { margin-bottom: 24px; }
.contact__lead { color: var(--muted); font-size: 1.1rem; max-width: 460px; }
.contact__list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.contact__list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__list .ico { width: 24px; height: 24px; margin-top: 3px; color: var(--brand-ink); }
.contact__list span { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.contact__list p { margin: 0; font-weight: 600; }
.contact__list a { display: inline-block; margin-right: 18px; font-weight: 600; font-size: 1.06rem; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), color .2s; }
.contact__list a:hover { color: var(--brand-ink); background-size: 100% 1px; }

.contact__form { background: var(--surface); border: 1px solid var(--line); border-radius: 30px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.contact__form h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.015em; margin-bottom: .3em; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; display: block; margin-bottom: 14px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 24px 16px 10px; resize: vertical; transition: border-color .25s, background .25s;
}
.field textarea { min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.field span { position: absolute; left: 17px; top: 17px; color: var(--muted); pointer-events: none; transition: transform .2s var(--ease), font-size .2s, color .2s; transform-origin: left top; }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-10px); font-size: .75rem; font-weight: 700; color: var(--brand-ink); }
.form-msg { margin: 12px 0 0; font-weight: 600; min-height: 1.4em; }
.form-msg.is-ok { color: var(--ok); }
.form-msg.is-error { color: var(--bad); }
.form-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 0 0 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.form-alert i { margin-top: 3px; }

.map-wrap { position: relative; border-radius: 30px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
#map { display: block; border: 0; height: 420px; width: 100%; background: var(--surface-2); }
.map-wrap__btn { position: absolute; left: 18px; bottom: 18px; z-index: 2; }
@media (max-width: 980px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  #map { height: 340px; }
}

/* map facade (Google loads only after the visitor clicks) */
#map.map-facade {
  display: grid; place-items: center; text-align: center; padding: 28px 20px 84px;
  background:
    radial-gradient(circle at 30% 20%, var(--brand-soft), transparent 55%),
    repeating-linear-gradient(45deg, transparent 0 22px, color-mix(in srgb, var(--line) 60%, transparent) 22px 23px),
    var(--surface-2);
}
.map-facade__inner { max-width: 420px; display: grid; justify-items: center; gap: 14px; }
.map-facade__ico { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #1b1206; box-shadow: var(--shadow); }
.map-facade__ico .ico { width: 28px; height: 28px; }
.map-facade__addr { margin: 0; }
.map-facade__note { margin: 0; color: var(--muted); }
.map-facade__note a, .form-note a { color: var(--brand-ink); font-weight: 600; }
#map.map-facade.is-loaded { padding: 0; display: block; background: var(--surface-2); }
@media (max-width: 520px) {
  #map.map-facade:not(.is-loaded) { height: auto; min-height: 340px; padding: 24px 18px 88px; }
  .map-facade__inner { gap: 12px; }
}
.map-facade iframe { display: block; border: 0; width: 100%; height: 100%; }

/* consent checkbox & form notes */
.check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { flex-shrink: 0; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer; }
.check strong { color: var(--text); }
.form-note { margin: 12px 0 0; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--on-ink-muted); padding-top: clamp(80px, 10vw, 130px); }
.footer__cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 48px; padding-bottom: clamp(56px, 7vw, 88px); }
.footer__cta .sec-head__kicker { color: var(--brand); }
.footer__big { margin: 0; color: var(--on-ink); font-family: var(--font-display); font-weight: 500; font-size: clamp(2.7rem, 7.2vw, 6.2rem); line-height: .98; letter-spacing: -.04em; }
.footer__big em { color: var(--brand); }
.footer__phone {
  display: inline-flex; align-items: center; gap: 12px; padding: 20px 30px; border-radius: 999px;
  background: var(--brand); color: #1b1206; font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.4rem); letter-spacing: .02em;
  text-decoration: none; white-space: nowrap; box-shadow: 0 20px 40px -18px rgba(229, 128, 10, .8);
  transition: transform .3s var(--ease), background .3s;
}
.footer__phone:hover { transform: translateY(-3px); background: var(--brand-strong); }
.footer__grid { display: grid; grid-template-columns: 1fr 1.8fr auto; gap: 40px; align-items: center; padding-top: 44px; padding-bottom: 44px; background: linear-gradient(var(--ink-line), var(--ink-line)) 24px 0 / calc(100% - 48px) 1px no-repeat; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand > img { width: 72px; height: auto; }
.footer__brand p { margin: 8px 0 0; font-size: .9rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { text-decoration: none; font-weight: 600; color: var(--on-ink); transition: color .2s; }
.footer__links a:hover { color: var(--brand); }
.socials--footer a { border-color: var(--ink-line); color: var(--on-ink); }
.footer__bottom { border-top: 1px solid var(--ink-line); padding: 18px 0; font-size: .86rem; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer__bottom a { color: var(--on-ink); }
.footer__bottom a:hover { color: var(--brand); }
.dmca-badge img { height: 20px; width: auto; }
@media (max-width: 900px) {
  .footer__cta { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}
@media (max-width: 420px) { .footer__phone { width: 100%; justify-content: center; } }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--text); color: var(--bg); text-decoration: none; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease), background .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); background: var(--brand); color: #1b1206; }

/* ---------- dialogs ---------- */
.dialog { border: 0; padding: 0; background: transparent; color: var(--text); width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); }
.dialog--article { width: min(820px, calc(100% - 32px)); }
.dialog::backdrop { background: rgba(20, 14, 9, .6); backdrop-filter: blur(6px); }
.dialog[open] { animation: dialogin .45s var(--ease); }
@keyframes dialogin { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.dialog__body { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 28px; box-shadow: var(--shadow-lg); }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dialog__head h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; display: flex; gap: .5em; align-items: center; }
.dialog__head h3 i { color: var(--brand); font-size: 1.15rem; }

.article { padding: 32px clamp(20px, 5vw, 52px) 40px; }
.article .dialog__head {
  position: sticky; top: 0; z-index: 2; background: var(--surface);
  margin: -32px calc(-1 * clamp(20px, 5vw, 52px)) 20px; padding: 20px clamp(20px, 5vw, 52px) 14px;
  border-radius: 26px 26px 0 0; box-shadow: 0 1px 0 var(--line);
}
.article__logo { height: 48px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; }
.article__src { color: var(--muted); font-size: .88rem; margin-bottom: .6em; }
.article h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: -.02em; margin: .3em 0 .5em; }
.article__lead { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--text); border-left: 2px solid var(--brand); padding-left: 18px; }
.article h4 { font-size: 1.05rem; margin: 1.6em 0 .4em; }
.article p { font-size: 1.02rem; }

.star-input { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input legend { float: left; width: 100%; font-weight: 700; margin-bottom: 6px; color: var(--muted); font-size: .9rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 1.9rem; color: var(--line-strong); cursor: pointer; transition: color .2s, transform .2s var(--ease); }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--star); }
.star-input label:hover { transform: scale(1.2) rotate(-8deg); }
.star-input input:focus-visible + label { outline: 2px solid var(--brand-ink); border-radius: 6px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; top: 90px; z-index: 3000; transform: translateX(-50%);
  width: min(560px, calc(100% - 32px)); padding: 16px 48px 16px 20px; border-radius: 16px; box-shadow: var(--shadow-lg);
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--ok); animation: toastin .5s var(--ease);
}
.toast--error { border-left-color: var(--bad); }
.toast__close { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--muted); }
.toast.is-hiding { opacity: 0; transform: translate(-50%, -20px); transition: opacity .3s, transform .3s; }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, -20px); } }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track, .hero__seal svg { animation: none; }
  .hero__pulse .pulse-line { animation: none; stroke-dashoffset: 0; }
  .hero__pulse .pulse-heart { animation: none; opacity: 1; }
  .hero__pulse .pulse-trace { display: none; }
}
