/* ─────────────────────────────────────────────
   PET STATION GROUP — Dubai
   Warm editorial / desert-luxury aesthetic
───────────────────────────────────────────── */
:root {
  --cream: #f5efe3;
  --cream-2: #ede4d2;
  --sand: #e3d5ba;
  --ink: #1d352a;
  --ink-2: #2a4a3b;
  --terra: #d9692f;
  --terra-soft: #e8915c;
  --gold: #c8a24a;
  --paper: #faf6ec;
  --radius: 28px;
  --font-display: "Fraunces", serif;
  --font-body: "Hanken Grotesk", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--terra); color: var(--cream); }

/* grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.05;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Preloader ── */
#preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem;
}
#preloader .pre-word {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  color: var(--cream);
  font-weight: 500;
  font-style: italic;
  overflow: hidden;
}
#preloader .pre-word span { display: inline-block; }
#preloader .pre-paw { width: 60px; height: 60px; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.nav.scrolled {
  background: rgba(245, 239, 227, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(29, 53, 42, 0.1);
  padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.25rem;
  text-decoration: none; color: var(--ink);
  display: flex; align-items: center; gap: 0.55rem;
  letter-spacing: -0.01em;
}
.nav-logo svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--ink);
  font-size: 0.95rem; font-weight: 500;
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 2px; background: var(--terra);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  background: var(--ink); color: var(--cream) !important;
  padding: 0.65rem 1.4rem; border-radius: 99px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.nav-cta:hover { background: var(--terra); transform: translateY(-2px); }

.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; position: relative; z-index: 1001;
}
.nav-burger span {
  display: block; width: 26px; height: 2px; background: var(--ink);
  margin: 6px auto; transition: transform 0.35s ease, opacity 0.35s ease, background 0.35s ease;
}
body.menu-open .nav { z-index: 980; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .nav-logo { color: var(--cream); }
.nav-burger.open span { background: var(--cream); }
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 950;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 2rem; gap: 0.4rem;
  clip-path: circle(0% at calc(100% - 44px) 40px);
  transition: clip-path 0.6s cubic-bezier(0.76, 0, 0.24, 1);
  visibility: hidden;
}
.mobile-menu.open { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  color: var(--cream); text-decoration: none;
  font-weight: 500; line-height: 1.25;
}
.mobile-menu a em { font-style: italic; color: var(--terra-soft); }
.mobile-menu .mm-meta { margin-top: 2.5rem; color: rgba(245,239,227,0.5); font-size: 0.9rem; }

/* ── Hero ── */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(6rem, 14vh, 9rem) clamp(1.2rem, 4vw, 3rem) 3rem;
  position: relative;
  overflow: hidden;
}
.hero-bg-blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.5; pointer-events: none;
}
.blob-1 { width: 55vw; height: 55vw; background: var(--sand); top: -20%; right: -15%; }
.blob-2 { width: 40vw; height: 40vw; background: #e9c9a8; bottom: -25%; left: -10%; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: clamp(0.75rem, 1.4vw, 0.9rem);
  letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600; color: var(--terra);
  margin-bottom: 1.6rem;
}
.hero-kicker::before {
  content: ""; width: 44px; height: 2px; background: var(--terra);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(3rem, 10.5vw, 9rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 13ch;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; }
.hero h1 em {
  font-style: italic; color: var(--terra);
  font-weight: 400;
}
.hero-sub {
  margin-top: 2rem;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2rem;
  justify-content: space-between;
}
.hero-sub p {
  max-width: 42ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6; color: var(--ink-2);
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 1rem 1.8rem; border-radius: 99px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--terra); transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(217,105,47,0.55); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-3px); }

/* Hero image */
.hero-img {
  position: absolute; right: clamp(-2rem, 2vw, 4rem); bottom: 0;
  width: clamp(280px, 38vw, 520px);
  pointer-events: none;
}
.hero-img img {
  width: 100%; height: auto;
  border-radius: var(--radius) var(--radius) 0 0;
  object-fit: cover;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.hero-paw-accent {
  position: absolute;
  width: 160px; height: 160px;
  top: -40px; left: -50px;
  transform: rotate(-20deg);
}

.hero-scroll-hint {
  position: absolute; bottom: 1.6rem; left: clamp(1.2rem, 4vw, 3rem);
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-2); display: flex; align-items: center; gap: 0.7rem;
}
.hero-scroll-hint .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--terra);
  animation: bounceDot 1.6s ease infinite;
}
@keyframes bounceDot { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ── Marquee ── */
.marquee {
  background: var(--ink); color: var(--cream);
  padding: 1.15rem 0; overflow: hidden;
  transform: rotate(-1.2deg) scale(1.02);
  margin: 1rem 0 0;
}
.marquee-track {
  display: flex; gap: 3rem; white-space: nowrap; width: max-content;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 3rem;
}
.marquee-track span i { font-style: normal; color: var(--terra-soft); }

/* ── Sections base ── */
section { position: relative; }
.section-pad { padding: clamp(4.5rem, 10vw, 8.5rem) clamp(1.2rem, 4vw, 3rem); }
.section-label {
  font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 700; color: var(--terra); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-label::before { content: ""; width: 36px; height: 2px; background: var(--terra); }
.section-title {
  font-family: var(--font-display); font-weight: 480;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1.04; letter-spacing: -0.02em;
  max-width: 18ch;
}
.section-title em { font-style: italic; color: var(--terra); font-weight: 400; }

/* ── Services bento ── */
.services { background: var(--paper); }
.services-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.2rem;
}
.service-card {
  border-radius: var(--radius);
  padding: 2.2rem;
  position: relative; overflow: hidden;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
  will-change: transform;
  color: var(--cream);
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -25px rgba(29,53,42,0.35); }

.sc-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .sc-bg { transform: scale(1.06); }
.service-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,53,42,0.15) 0%, rgba(29,53,42,0.85) 70%);
  pointer-events: none;
}

.sc-vet { grid-column: span 7; min-height: 420px; }
.sc-vet::after { background: linear-gradient(180deg, rgba(29,53,42,0.1) 0%, rgba(29,53,42,0.88) 65%); }
.sc-school { grid-column: span 5; min-height: 420px; }
.sc-school::after { background: linear-gradient(180deg, rgba(217,105,47,0.1) 0%, rgba(217,105,47,0.85) 65%); }
.sc-kennel { grid-column: span 4; }
.sc-kennel::after { background: linear-gradient(180deg, transparent 0%, rgba(29,53,42,0.8) 70%); }
.sc-furniture { grid-column: span 4; }
.sc-furniture::after { background: linear-gradient(180deg, transparent 0%, rgba(42,74,59,0.85) 70%); }
.sc-grooming { grid-column: span 4; }
.sc-grooming::after { background: linear-gradient(180deg, transparent 0%, rgba(29,53,42,0.82) 70%); }

.service-card .sc-num {
  position: absolute; top: 1.6rem; left: 2.2rem;
  font-family: var(--font-display); font-style: italic;
  font-size: 1.1rem; opacity: 0.65;
  z-index: 1;
}
.service-card h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.1;
  margin-bottom: 0.6rem;
  position: relative; z-index: 1;
}
.service-card p {
  font-size: 0.98rem; line-height: 1.55; opacity: 0.88; max-width: 36ch;
  position: relative; z-index: 1;
}
.service-card .sc-arrow {
  position: absolute; bottom: 1.8rem; right: 1.8rem;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid; place-items: center;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 1;
}
.service-card:hover .sc-arrow { transform: rotate(45deg); }

/* ── Photo strip ── */
.photo-strip {
  overflow: hidden;
  padding: 1.6rem 0;
  background: var(--cream);
}
.photo-strip-track {
  display: flex;
  gap: 1rem;
  width: max-content;
}
.photo-strip-track img {
  width: 280px; height: 200px;
  object-fit: cover;
  border-radius: 18px;
  flex-shrink: 0;
}

/* ── Stats ── */
.stats { background: var(--ink); color: var(--cream); overflow: hidden; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; margin-top: 3rem;
}
.stat .stat-num {
  font-family: var(--font-display); font-weight: 480;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1;
  color: var(--cream);
}
.stat .stat-num i { font-style: normal; color: var(--terra-soft); }
.stat p { margin-top: 0.7rem; color: rgba(245,239,227,0.6); font-size: 0.95rem; max-width: 22ch; }
.stats .section-title { color: var(--cream); }

/* ── Clinics ── */
.clinics-wrap {
  margin-top: 3.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.clinic-card {
  border-radius: var(--radius);
  background: var(--paper);
  border: 1.5px solid rgba(29,53,42,0.12);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.clinic-card:hover { transform: translateY(-6px); box-shadow: 0 26px 44px -26px rgba(29,53,42,0.3); border-color: var(--terra); }
.clinic-img {
  width: 100%; height: 220px; overflow: hidden;
}
.clinic-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.clinic-card:hover .clinic-img img { transform: scale(1.05); }
.clinic-body {
  padding: 2rem 2.4rem 2.4rem;
}
.clinic-card .clinic-tag {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 700;
  background: var(--ink); color: var(--cream);
  padding: 0.4rem 0.9rem; border-radius: 99px; margin-bottom: 1.4rem;
}
.clinic-card:nth-child(2) .clinic-tag { background: var(--terra); }
.clinic-card h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 0.8rem;
}
.clinic-card p { color: var(--ink-2); line-height: 1.6; margin-bottom: 1.6rem; }
.clinic-meta { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.95rem; }
.clinic-meta div { display: flex; gap: 0.6rem; align-items: baseline; }
.clinic-meta strong { min-width: 72px; color: var(--terra); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ── Team strip ── */
.team-strip { background: var(--paper); }
.team-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.team-member {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.team-member img {
  width: 100%; height: 340px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.team-member:hover img { transform: scale(1.05); }
.team-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(transparent, rgba(29,53,42,0.88));
  color: var(--cream);
}
.team-info strong {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.1rem; display: block;
}
.team-info span { font-size: 0.82rem; opacity: 0.75; }

/* ── Testimonials ── */
.testimonials { background: var(--cream-2); }
.testi-track { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.testi-card {
  background: var(--paper); border-radius: var(--radius);
  padding: 2.2rem; position: relative;
  border: 1.5px solid rgba(29,53,42,0.08);
}
.testi-card .quote-mark {
  font-family: var(--font-display); font-size: 4rem; line-height: 0.6;
  color: var(--terra); display: block; margin-bottom: 1.2rem;
}
.testi-card p { line-height: 1.65; color: var(--ink-2); font-size: 1.02rem; }
.testi-card footer { margin-top: 1.6rem; display: flex; align-items: center; gap: 0.9rem; }
.avatar-img {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sand);
  flex-shrink: 0;
}
.testi-card footer strong { display: block; font-size: 0.95rem; }
.testi-card footer span { font-size: 0.82rem; color: var(--ink-2); opacity: 0.7; }

/* ── Big CTA ── */
.cta {
  background: var(--terra); color: var(--cream);
  text-align: center; overflow: hidden; position: relative;
}
.cta h2 {
  font-family: var(--font-display); font-weight: 480;
  font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: 1;
  letter-spacing: -0.02em; margin-bottom: 2rem;
}
.cta h2 em { font-style: italic; }
.cta .btn-primary { background: var(--ink); }
.cta .btn-primary:hover { background: var(--cream); color: var(--ink); }
.cta-paws {
  position: absolute; width: 110px; opacity: 0.18;
}

/* ── Footer ── */
.footer {
  background: var(--ink); color: var(--cream);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.2rem, 4vw, 3rem) 2rem;
}
.footer-top {
  display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(245,239,227,0.15);
}
.footer-brand { max-width: 320px; }
.footer-brand .nav-logo { color: var(--cream); margin-bottom: 1rem; }
.footer-brand p { color: rgba(245,239,227,0.6); line-height: 1.6; font-size: 0.95rem; }
.footer-col h4 {
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--terra-soft); margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: rgba(245,239,227,0.75); text-decoration: none; font-size: 0.95rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.8rem; font-size: 0.85rem; color: rgba(245,239,227,0.45);
}

/* ═══════════ PORTFOLIO PAGE ═══════════ */
.pf-hero {
  min-height: 72svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(7rem, 16vh, 10rem) clamp(1.2rem, 4vw, 3rem) 3.5rem;
  background: var(--ink); color: var(--cream);
  position: relative; overflow: hidden;
}
.pf-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.pf-hero h1 {
  font-family: var(--font-display); font-weight: 480;
  font-size: clamp(3rem, 11vw, 9.5rem); line-height: 0.96;
  letter-spacing: -0.03em;
  position: relative;
}
.pf-hero h1 em { font-style: italic; color: var(--terra-soft); font-weight: 400; }
.pf-hero p { margin-top: 1.6rem; max-width: 48ch; color: rgba(245,239,227,0.7); font-size: 1.1rem; line-height: 1.6; position: relative; }
.pf-hero .section-label { position: relative; }
.pf-hero .hero-bg-blob { opacity: 0.25; }

/* horizontal scroll showcase */
.h-scroll { background: var(--cream); overflow: hidden; }
.h-scroll-inner { display: flex; align-items: stretch; height: 100svh; }
.panel {
  flex: 0 0 auto;
  width: clamp(320px, 78vw, 880px);
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1.2rem, 4vw, 3.5rem);
}
.panel-intro { width: clamp(280px, 42vw, 540px); }
.panel-card {
  border-radius: var(--radius);
  height: min(72vh, 640px);
  padding: clamp(1.6rem, 3vw, 3rem);
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden; color: var(--cream);
}
.panel-card .pc-index {
  position: absolute; top: 2rem; left: 2.4rem;
  font-family: var(--font-display); font-style: italic; font-size: 1.2rem; opacity: 0.7;
  z-index: 2;
}
.pc-art-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.pc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,53,42,0.1) 0%, rgba(29,53,42,0.75) 60%);
}
.pc-1 .pc-overlay { background: linear-gradient(180deg, rgba(42,74,59,0.2) 0%, rgba(29,53,42,0.82) 55%); }
.pc-2 .pc-overlay { background: linear-gradient(180deg, rgba(217,105,47,0.15) 0%, rgba(176,78,28,0.85) 55%); }
.pc-3 .pc-overlay { background: linear-gradient(180deg, rgba(138,122,79,0.15) 0%, rgba(107,93,57,0.85) 55%); }
.pc-4 .pc-overlay { background: linear-gradient(180deg, rgba(93,114,99,0.15) 0%, rgba(65,84,74,0.85) 55%); }
.pc-5 .pc-overlay { background: linear-gradient(180deg, rgba(160,96,54,0.15) 0%, rgba(124,69,37,0.85) 55%); }

.panel-card h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.05;
  position: relative; margin-bottom: 0.8rem; z-index: 2;
}
.panel-card p { position: relative; max-width: 44ch; line-height: 1.6; opacity: 0.88; z-index: 2; }
.panel-card .pc-tags { position: relative; display: flex; gap: 0.6rem; margin-top: 1.4rem; flex-wrap: wrap; z-index: 2; }
.panel-card .pc-tags span {
  border: 1px solid rgba(255,255,255,0.45); border-radius: 99px;
  padding: 0.35rem 0.95rem; font-size: 0.8rem; letter-spacing: 0.06em;
}

/* gallery grid */
.gallery { background: var(--paper); }
.gallery-filters {
  display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 2.4rem;
}
.filter-btn {
  border: 1.5px solid rgba(29,53,42,0.25); background: transparent;
  color: var(--ink); font-family: var(--font-body); font-weight: 600;
  font-size: 0.9rem; padding: 0.6rem 1.3rem; border-radius: 99px;
  cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.gallery-grid {
  margin-top: 2.6rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem;
}
.g-item {
  border-radius: 22px; overflow: hidden; position: relative;
  aspect-ratio: 4 / 3.1; cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), opacity 0.4s, box-shadow 0.4s;
}
.g-item:hover { transform: translateY(-6px) scale(1.015); box-shadow: 0 24px 40px -22px rgba(29,53,42,0.4); }
.g-item.hidden-item { display: none; }
.g-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.g-item:hover .g-photo { transform: scale(1.06); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.3rem 1.5rem;
  background: linear-gradient(transparent, rgba(20,34,26,0.85));
  color: var(--cream);
}
.g-item figcaption strong { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; display: block; }
.g-item figcaption span { font-size: 0.8rem; opacity: 0.75; letter-spacing: 0.08em; text-transform: uppercase; }

/* timeline */
.journey { background: var(--cream-2); }
.timeline { margin-top: 3.5rem; position: relative; padding-left: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px; background: rgba(29,53,42,0.18);
}
.tl-item { position: relative; padding: 0 0 2.8rem 2rem; max-width: 640px; }
.tl-item::before {
  content: ""; position: absolute; left: -2rem; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--terra); border: 3px solid var(--cream-2);
}
.tl-item .tl-year {
  font-family: var(--font-display); font-style: italic;
  color: var(--terra); font-size: 1.3rem;
}
.tl-item h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; margin: 0.3rem 0 0.5rem; }
.tl-item p { color: var(--ink-2); line-height: 1.6; }

/* ── reveal helpers ── */
.reveal { opacity: 0; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(6, 1fr); }
  .sc-vet, .sc-school { grid-column: span 6; min-height: 340px; }
  .sc-kennel, .sc-furniture, .sc-grooming { grid-column: span 6; min-height: 270px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .clinics-wrap { grid-template-columns: 1fr; }
  .testi-track { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .hero-img { width: 55vw; opacity: 0.5; right: -6vw; }
  .gallery-grid { grid-template-columns: 1fr; }
  .panel { width: 86vw; }
  .panel-intro { width: 76vw; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-member img { height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
