/* ============================================================
   CLAUDE DESIGN brief — palette + fonts + section rules
   Implements the brief verbatim:
     Deep Teal  #0F6B6E (primary, buttons, headings, icons)
     Blush Pink #F6C1C7 (decorative shapes, icon tiles, soft blocks)
     Warm Gold  #C6A75E (premium accents, dividers, stars, labels)
     Ivory      #F9F6F2 (page background)
     Charcoal   #333333 (body text)
     White      #FFFFFF (cards)
     Headings: Playfair Display
     Body:     Montserrat
   Loads AFTER premium.css. Reversible (one <link>).
   Existing SEO, schema, intro animation, and content stay intact.
   ============================================================ */

:root {
  /* --- Claude Design palette --- */
  --bg: #F9F6F2;             /* ivory page */
  --text: #333333;           /* charcoal */
  --muted: #6B6B6B;
  --primary: #0F6B6E;        /* deep teal */
  --primary-light: #2A8A8D;
  --accent-deep: #084D50;
  --dark-teal: #084D50;
  --navy: #0F6B6E;
  --soft-aqua: #BFD9D9;
  --mist: #DDE7E5;
  --baby-pink: #F6C1C7;      /* soft blush — decorative, NOT CTA */
  --soft-pink: #FAD6DA;
  --blush-pink: #FDEAEC;
  --panel-lavender: #FDEAEC; /* very soft blush panel */
  --panel-cream: #F4EFE5;    /* warm ivory panel */
  --card-bg: #FFFFFF;
  --gold: #C6A75E;
  --gold-line: #C6A75E;
  --gold-tint: rgba(198, 167, 94, 0.18);
  --green: #2F9E6E;
  --border: #E7E0D2;

  /* --- Soft, premium shadows --- */
  --shadow: 0 18px 44px -22px rgba(51, 51, 51, 0.22);
  --shadow-soft: 0 12px 30px -18px rgba(51, 51, 51, 0.14);
  --lux: 0 30px 72px -34px rgba(15, 107, 110, 0.28);
  --lux-soft: 0 18px 44px -26px rgba(15, 107, 110, 0.18);

  /* --- Fonts: Playfair Display (display) + Montserrat (body) --- */
  --font-display: "Playfair Display", "Fraunces", Georgia, serif;
  --font-body: "Montserrat", "Mulish", system-ui, -apple-system, sans-serif;

  /* --- Smooth, refined easing --- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

body { background: var(--bg); color: var(--text); font-family: var(--font-body); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--accent-deep); }
h1 { letter-spacing: -0.005em; font-weight: 600; }
h2 { letter-spacing: -0.004em; font-weight: 600; }

.section--cream { background: var(--panel-cream); }
.section--lavender { background: var(--panel-lavender); }

a, button, .btn, .card, .svc-tab, .tcard, .reel-card, .service-photo, .stat > i {
  transition-timing-function: var(--ease-out);
}

/* ===== CTAs (per brief: deep teal primary with white text) ===== */
.btn {
  letter-spacing: .02em;
  transition: background-color .4s var(--ease-out),
              color .35s var(--ease-out),
              box-shadow .45s var(--ease-out),
              transform .45s var(--ease-out);
}
.btn--primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 12px 26px -14px rgba(15, 107, 110, 0.55);
}
.btn--primary:hover {
  background: var(--accent-deep); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -18px rgba(15, 107, 110, 0.45);
}
.btn--ghost {
  background: #fff; color: var(--primary);
  box-shadow: var(--lux-soft);
}
.btn--ghost:hover {
  background: var(--primary); color: #fff;
  transform: translateY(-2px); box-shadow: var(--lux);
}
/* Secondary (gold-bordered, per brief) */
.btn--outline {
  background: transparent; border-color: var(--gold-line); color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
  transform: translateY(-2px); box-shadow: var(--lux-soft);
}

/* ===== Cards on ivory: clean white + gold accent line + lift ===== */
.card, .tcard { background: #fff; }
.card:hover { transform: translateY(-6px); }

/* Hero hairline (carried over from premium.css; stays gold) */
.hero h1::after { background: var(--gold-line); }
.section-head .eyebrow { color: var(--gold-line); }
.section-head .eyebrow::after { background: var(--gold-line); }

/* Service-page FAQ accordion chevron stays teal/gold */
.svc-faq > summary::after { color: var(--primary); }

/* Hover micro-interactions (kept from previous pass) */
.svc-media { overflow: hidden; }
.svc-media img { transition: transform .6s var(--ease-out); }
.svc-panel:hover .svc-media img { transform: scale(1.06); }

.card-link { position: relative; padding-bottom: 3px; }
.card-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--gold-line); transition: width .4s var(--ease-out);
}
.card-link:hover::after { width: 100%; }

/* Hero photo float — gentler */
.hero-photo img, .hero-photo .photo-placeholder { animation-duration: 5.5s; }

/* ===== Scroll reveals (CSS view-timeline; reduced-motion-safe) ===== */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .section-head,
    .about-grid > div,
    .location-block,
    .svc-tabs,
    .trust-item,
    .card,
    .tcard,
    .cta-banner,
    .faq-item,
    .form-card {
      animation: luxRise .9s var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 2% cover 30%;
    }
    @keyframes luxRise {
      from { opacity: 0; transform: translateY(28px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* ===== Soft ambient warm-light glows (depth, not busy) ===== */
body {
  background:
    radial-gradient(42% 30% at 86% 6%,  rgba(246, 193, 199, 0.16), transparent 62%),
    radial-gradient(40% 26% at 8% 34%,  rgba(15, 107, 110, 0.05), transparent 62%),
    radial-gradient(46% 30% at 92% 66%, rgba(198, 167, 94, 0.07), transparent 62%),
    radial-gradient(42% 28% at 10% 90%, rgba(246, 193, 199, 0.10), transparent 62%),
    var(--bg);
  background-repeat: no-repeat;
}
.section--cream {
  background:
    radial-gradient(50% 62% at 86% 8%,  rgba(198, 167, 94, 0.12), transparent 60%),
    radial-gradient(48% 58% at 10% 96%, rgba(15, 107, 110, 0.05), transparent 60%),
    var(--panel-cream);
}
.section--lavender {
  background:
    radial-gradient(50% 62% at 12% 6%,  rgba(198, 167, 94, 0.10), transparent 60%),
    radial-gradient(48% 58% at 90% 98%, rgba(15, 107, 110, 0.05), transparent 60%),
    var(--panel-lavender);
}

/* ===== Smooth scroll (Lenis) layer — kept; no JS change ===== */
html.lenis, html.lenis body { height: auto; }
html.lenis, .lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ============================================================
   Premium animation layer — from the Claude Design handoff.
   Hero choreography, Care-card flip-in, floating orbs,
   Ken-Burns testimonials background, scroll-to-top button.
   All reduced-motion-aware; CSS-driven where possible.
   ============================================================ */

/* ----- Hero choreography: depth-parallax entrance, gated by .play -----
   Hidden until JS adds .play to .hero (the site already requires JS —
   the header/footer are injected by includes.js — so this is safe).
   Order: eyebrow -> heading -> gold rule -> subtitle -> checks -> button,
   with the photo settling in like a depth layer + blobs fading behind. */
@media (prefers-reduced-motion: no-preference) {
  .hero .hero-text > *      { opacity: 0; animation: none; }
  .hero .hero-photo         { opacity: 0; animation: none; }
  .hero-stage .blob-pink,
  .hero-stage .blob-teal    { opacity: 0; }
  .hero ul.credentials li   { opacity: 0; }
  .hero h1::after           { transform: scaleX(0); transform-origin: left center; }

  .hero.play .hero-rotator   { animation: lxHeroRise .7s cubic-bezier(.2,.85,.3,1) .05s forwards; }
  .hero.play h1              { animation: lxHeroRise .8s cubic-bezier(.2,.85,.3,1) .22s forwards; }
  .hero.play h1::after       { animation: lxHeroRule .7s cubic-bezier(.2,.8,.2,1) .58s forwards; }
  .hero.play .hero-title-bar { animation: lxHeroRise .7s cubic-bezier(.2,.85,.3,1) .66s forwards; }
  .hero.play ul.credentials  { opacity: 1; }
  .hero.play ul.credentials li { animation: lxHeroPop .5s cubic-bezier(.34,1.4,.5,1) forwards; }
  .hero.play ul.credentials li:nth-child(1) { animation-delay: .82s; }
  .hero.play ul.credentials li:nth-child(2) { animation-delay: .90s; }
  .hero.play ul.credentials li:nth-child(3) { animation-delay: .98s; }
  .hero.play ul.credentials li:nth-child(4) { animation-delay: 1.06s; }
  .hero.play ul.credentials li:nth-child(5) { animation-delay: 1.14s; }
  .hero.play .btn--primary   { animation: lxHeroPop .55s cubic-bezier(.34,1.4,.5,1) 1.28s forwards; }

  .hero.play .hero-photo  { animation: lxHeroPhoto 1s cubic-bezier(.2,.8,.2,1) .35s forwards; }
  .hero.play .blob-pink   { animation: lxHeroFade .9s ease .15s forwards; }
  .hero.play .blob-teal   { animation: lxHeroFade .9s ease .28s forwards; }

  @keyframes lxHeroRise  { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes lxHeroRule  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes lxHeroPop   { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }
  @keyframes lxHeroPhoto { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
  @keyframes lxHeroFade  { from { opacity: 0; } to { opacity: 1; } }
}

/* ----- Floating decorative orbs behind hero (pure CSS, no markup needed) */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before,
.hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  z-index: 0; filter: blur(60px);
}
.hero::before {
  top: -10%; right: -8%; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(246,193,199,.55), transparent 70%);
  animation: lxFloatA 16s ease-in-out infinite;
}
.hero::after {
  bottom: -15%; left: -10%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(198,167,94,.32), transparent 70%);
  animation: lxFloatB 22s ease-in-out infinite;
}
.hero > .container { position: relative; z-index: 1; }
@keyframes lxFloatA { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px,-30px); } }
@keyframes lxFloatB { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-26px,20px); } }
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
}

/* ----- "Care You Can Trust" cards: flip-in cascade (triggered by .cards-play).
   !important is needed to override the global .reveal-stagger rule in styles.css. */
@media (prefers-reduced-motion: no-preference) {
  .section--cream .card-grid .card {
    animation: none !important;
    opacity: 0 !important; transform: perspective(900px) rotateY(-40deg) !important;
    transition: opacity .65s cubic-bezier(.2,.8,.2,1), transform .65s cubic-bezier(.2,.8,.2,1) !important;
  }
  .section--cream .card-grid.cards-play .card { opacity: 1 !important; transform: perspective(900px) rotateY(0deg) !important; }
  .section--cream .card-grid.cards-play .card:nth-child(1) { transition-delay: 0s; }
  .section--cream .card-grid.cards-play .card:nth-child(2) { transition-delay: .12s; }
  .section--cream .card-grid.cards-play .card:nth-child(3) { transition-delay: .24s; }
  .section--cream .card-grid.cards-play .card:nth-child(4) { transition-delay: .36s; }
  .section--cream .card-grid.cards-play .card .card-icon {
    animation: lxIconPop .6s cubic-bezier(.34,1.4,.5,1) backwards;
  }
  .section--cream .card-grid.cards-play .card:nth-child(1) .card-icon { animation-delay: .30s; }
  .section--cream .card-grid.cards-play .card:nth-child(2) .card-icon { animation-delay: .42s; }
  .section--cream .card-grid.cards-play .card:nth-child(3) .card-icon { animation-delay: .54s; }
  .section--cream .card-grid.cards-play .card:nth-child(4) .card-icon { animation-delay: .66s; }
  @keyframes lxIconPop { 0% { transform: scale(.3); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
}

/* ----- Patient Stories: full-bleed Ken-Burns background */
.section--lavender:has(.reviews-grid) {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(50% 62% at 12% 6%,  rgba(198,167,94,.10), transparent 60%),
    radial-gradient(48% 58% at 90% 98%, rgba(15,107,110,.05), transparent 60%),
    var(--panel-lavender);
}
.section--lavender:has(.reviews-grid)::before {
  content: ""; position: absolute; inset: -4%;
  background: url("../assets/testimonials-bg.webp") center 35%/cover no-repeat;
  transform-origin: center; animation: lxStoryZoom 22s ease-in-out infinite alternate;
  will-change: transform; z-index: 0;
}
.section--lavender:has(.reviews-grid)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(180deg, rgba(15,107,110,.55), rgba(15,107,110,.46) 45%, rgba(8,77,80,.62)),
    linear-gradient(120deg, rgba(198,167,94,.18), rgba(198,167,94,0) 55%);
  box-shadow: inset 0 0 180px 40px rgba(8,77,80,.55);
}
.section--lavender:has(.reviews-grid) > .container { position: relative; z-index: 2; }
.section--lavender:has(.reviews-grid) .section-head h2,
.section--lavender:has(.reviews-grid) .section-head p { color: #fff; }
.section--lavender:has(.reviews-grid) .section-head .eyebrow { color: #F9E9C6; }
.section--lavender:has(.reviews-grid) .section-head .eyebrow::after { background: #F9E9C6; }
/* Reviews CTA — readable over the dark teal photo background */
.section--lavender:has(.reviews-grid) .btn--outline {
  color: #fff;
  border-color: rgba(249,233,198,.9);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.section--lavender:has(.reviews-grid) .btn--outline:hover {
  color: var(--accent-deep);
  background: #F9E9C6;
  border-color: #F9E9C6;
}
@keyframes lxStoryZoom { from { transform: scale(1); } to { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) {
  .section--lavender:has(.reviews-grid)::before { animation: none; }
}

/* ============================================================
   Know Your Doctor — sticky photo + scroll-reveal + 3D tilt
   Brand colours/fonts only (teal / blush / gold + Playfair/Montserrat).
   IMPORTANT: no overflow:hidden on any ancestor of .kyd-photo-col
   so position:sticky keeps working. Ambient layer clips inside itself.
   ============================================================ */
.about-grid.kyd-grid {
  position: relative;
  align-items: start;
  gap: 56px;
  --pin-top: 110px;   /* navbar capsule height + small gap; override per site */
}

/* Ambient layer — orbs, petals, sparkles, dots (decorative, non-interactive) */
.kyd-amb {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
  border-radius: 28px; z-index: 0;
}
/* Lift content above the ambient orbs; photo-col stays sticky (below) */
.about-grid.kyd-grid > .kyd-content { position: relative; z-index: 1; }

.kyd-orb { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .42; }
.kyd-orb-1 { width: 300px; height: 300px; background: var(--baby-pink); top: -60px; left: -50px;  animation: kydDrift1 17s ease-in-out infinite; }
.kyd-orb-2 { width: 240px; height: 240px; background: #EAD5B7;          bottom: -50px; right: 8%; animation: kydDrift2 21s ease-in-out infinite; }
.kyd-orb-3 { width: 210px; height: 210px; background: var(--blush-pink); top: 40%; right: -60px;  animation: kydDrift3 19s ease-in-out infinite; }

.kyd-petal   { position: absolute; color: var(--gold-line); opacity: .32; font-size: 22px; }
.kyd-petal-1 { top: 14%; left: 46%; animation: kydFloatRot 12s ease-in-out infinite; }
.kyd-petal-2 { bottom: 16%; left: 8%; opacity: .26; animation: kydFloatRot 15s ease-in-out infinite reverse; }

.kyd-spark   { position: absolute; color: var(--gold-line); opacity: 0; font-size: 14px; }
.kyd-spark-1 { top: 22%; left: 30%; animation: kydTwinkle 4.5s ease-in-out infinite .4s; }
.kyd-spark-2 { top: 64%; left: 52%; animation: kydTwinkle 5.2s ease-in-out infinite 1.6s; }
.kyd-spark-3 { top: 38%; right: 18%; animation: kydTwinkle 6s   ease-in-out infinite 2.8s; }

.kyd-dot   { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-line); opacity: 0; }
.kyd-dot-1 { top: 30%; left: 20%;  animation: kydTwinkle 4s   ease-in-out infinite .2s; }
.kyd-dot-2 { top: 74%; left: 34%;  animation: kydTwinkle 5s   ease-in-out infinite 1.1s; }
.kyd-dot-3 { top: 18%; right: 26%; animation: kydTwinkle 4.6s ease-in-out infinite 2.2s; }
.kyd-dot-4 { bottom: 24%; right: 30%; animation: kydTwinkle 5.4s ease-in-out infinite 1.7s; }
.kyd-dot-5 { top: 52%; left: 60%;  animation: kydTwinkle 6.2s ease-in-out infinite .9s; }

/* LEFT: sticky photo column */
.kyd-photo-col {
  position: sticky;
  top: var(--pin-top, 110px);
  align-self: start;
  z-index: 1;            /* above the ambient orbs */
}
.kyd-card-wrap {
  position: relative;
  width: 248px;
  margin: 0 auto;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}

/* Offset gold border behind the photo for depth (exact: 118 118 18 18) */
.kyd-goldframe {
  position: absolute; top: 18px; left: 16px;
  width: 100%; height: 100%;
  border: 1.5px solid var(--gold-line);
  border-radius: 118px 118px 18px 18px;
  opacity: .55; pointer-events: none;
  transform: translateZ(-1px);
}

/* Arch-shaped photo card — exact React dimensions + radius */
.kyd-card {
  position: relative; margin: 0;
  width: 248px; height: 332px;
  border-radius: 118px 118px 18px 18px;
  overflow: hidden;
  background: var(--blush-pink);
  box-shadow: 0 26px 54px rgba(8, 77, 80, 0.22);
  transform: translateZ(20px);
}
/* Override the global .about-photo radius/shadow inside the arch card */
.kyd-card .kyd-img.about-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  border-radius: 0; box-shadow: none; aspect-ratio: auto;
  animation: kydKenburns 17s ease-in-out infinite 1s;
}

/* Light glare follows cursor/touch */
.kyd-glare {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(220px circle at var(--kgx,50%) var(--kgy,50%),
                              rgba(255,255,255,.5), transparent 60%);
  opacity: var(--kglare, 0);
  transition: opacity .3s ease;
  mix-blend-mode: screen;
}

/* Floating quote — overlaps bottom-right corner */
.kyd-quote {
  position: absolute; right: -20px; bottom: 14px;
  transform: translateZ(40px);
  background: var(--accent-deep);
  border-left: 3px solid var(--gold-line);
  border-radius: 13px;
  padding: 14px 16px;
  max-width: 168px;
  box-shadow: 0 14px 30px rgba(8, 77, 80, 0.30);
  animation: kydFloatY 5s ease-in-out infinite 1.5s;
  z-index: 2;
}
.kyd-quote-mark { color: var(--gold-line); font-size: 16px; }
.kyd-quote p {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13.5px; line-height: 1.42;
  color: #FBF7F1;
}

/* RIGHT: content column — block reveals */
.kyd-content { display: flex; flex-direction: column; }
.kyd-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1),
              transform .7s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--kyd-delay, 0s);
}
.kyd-reveal.is-in { opacity: 1; transform: none; }

/* Responsive: stack on mobile, sticky OFF, photo at sensible size */
@media (max-width: 900px) {
  .about-grid.kyd-grid { grid-template-columns: 1fr; gap: 40px; }
  .kyd-photo-col { position: static; top: auto; }     /* pin off on mobile */
  .kyd-card-wrap { width: 230px; }
  .kyd-card { width: 230px; height: 308px; }
  .kyd-quote { right: 8px; max-width: 168px; }
  .kyd-amb { display: none; } /* hide ambient on mobile to avoid clutter */
}

/* Reduced motion: kill all continuous + tilt animations */
@media (prefers-reduced-motion: reduce) {
  .kyd-orb, .kyd-petal, .kyd-spark, .kyd-dot,
  .kyd-img.about-photo, .kyd-quote { animation: none !important; }
  .kyd-card-wrap {
    opacity: 1 !important;
    transform: perspective(950px) rotateX(0) rotateY(0) scale(1) !important;
    transition: none !important;
    animation: none !important;
  }
  .kyd-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .kyd-glare { opacity: 0 !important; }
}

/* Keyframes (prefixed kyd... so they don't collide) */
@keyframes kydDrift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(26px,18px); } }
@keyframes kydDrift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-22px,-16px); } }
@keyframes kydDrift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-18px,22px); } }
@keyframes kydFloatRot { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(8px,-12px) rotate(14deg); } }
@keyframes kydTwinkle { 0%,100% { opacity: 0; transform: scale(.6); } 50% { opacity: .85; transform: scale(1); } }
@keyframes kydKenburns {
  0%   { transform: scale(1.05) translate(0,0); }
  50%  { transform: scale(1.14) translate(-2%,-2%); }
  100% { transform: scale(1.05) translate(0,0); }
}
@keyframes kydFloatY {
  0%,100% { transform: translateZ(40px) translateY(0); }
  50%     { transform: translateZ(40px) translateY(-7px); }
}

/* ============================================================
   Specialized Treatments grid — overlay-hover service cards
   (scroll-reveal + column stagger, slide-up overlay, image zoom)
   Easing: cubic-bezier(.16,1,.3,1) — buttery expo
   ============================================================ */
.lx-svc-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
}
@media (max-width: 1024px) { .lx-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .lx-svc-grid { grid-template-columns: 1fr; gap: 22px; } }

.lx-svc-card {
  position: relative; display: block;
  border-radius: 22px; overflow: hidden;
  background: #fff; color: inherit; text-decoration: none;
  aspect-ratio: 4 / 5;
  box-shadow: 0 14px 34px rgba(15, 107, 110, 0.10);
  isolation: isolate;
  opacity: 0; transform: translateY(40px);
  transition:
    opacity .85s cubic-bezier(.16,1,.3,1),
    transform .85s cubic-bezier(.16,1,.3,1),
    box-shadow .45s cubic-bezier(.16,1,.3,1);
}
.lx-svc-card.lx-visible {
  opacity: 1; transform: translateY(0);
  transition-delay: calc(var(--lx-col, 0) * .09s);
}
.lx-svc-card:hover { box-shadow: 0 28px 56px rgba(15, 107, 110, 0.24); }
.lx-svc-card:focus-visible {
  outline: 2px solid var(--gold-line); outline-offset: 3px;
}

/* Image fills the card; zooms on hover */
.lx-svc-image { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.lx-svc-image img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.lx-svc-card:hover .lx-svc-image img,
.lx-svc-card.lx-open .lx-svc-image img {
  transform: scale(1.10);
}
/* Subtle base dim so the white title is always legible */
.lx-svc-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45) 100%);
}

/* Category tag pill (top-left) — fades out on hover */
.lx-svc-tag {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(15, 107, 110, 0.16);
  transition: opacity .55s cubic-bezier(.16,1,.3,1);
}
.lx-svc-card:hover .lx-svc-tag,
.lx-svc-card.lx-open .lx-svc-tag { opacity: 0; }

/* Title — always visible, white, bottom-left; nudges up on hover */
.lx-svc-title {
  position: absolute; bottom: 22px; left: 22px; right: 22px; z-index: 3;
  margin: 0; padding: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 600; line-height: 1.18; letter-spacing: -0.005em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.lx-svc-card:hover .lx-svc-title,
.lx-svc-card.lx-open .lx-svc-title { transform: translateY(-6px); }

/* Overlay: deep-teal gradient that slides up from the bottom */
.lx-svc-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 22px 22px 70px;
  background: linear-gradient(0deg,
    var(--accent-deep) 0%,
    var(--primary) 75%,
    rgba(15, 107, 110, 0.0) 100%);
  color: rgba(255, 255, 255, 0.96);
  transform: translateY(70%);
  transition: transform .6s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.lx-svc-overlay p {
  margin: 0 0 12px; font-size: .92rem; line-height: 1.55;
  opacity: 0; transform: translateY(10px);
  transition:
    opacity .5s cubic-bezier(.16,1,.3,1) .15s,
    transform .5s cubic-bezier(.16,1,.3,1) .15s;
}
.lx-svc-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: .88rem; font-weight: 600; letter-spacing: .025em;
  color: #F9E9C6;
  opacity: 0; transform: translateY(10px);
  transition:
    opacity .5s cubic-bezier(.16,1,.3,1) .22s,
    transform .5s cubic-bezier(.16,1,.3,1) .22s;
}
.lx-svc-cta i { transition: transform .35s cubic-bezier(.16,1,.3,1); }
.lx-svc-card:hover .lx-svc-overlay,
.lx-svc-card.lx-open .lx-svc-overlay { transform: translateY(0); }
.lx-svc-card:hover .lx-svc-overlay p,
.lx-svc-card.lx-open .lx-svc-overlay p,
.lx-svc-card:hover .lx-svc-cta,
.lx-svc-card.lx-open .lx-svc-cta { opacity: 1; transform: translateY(0); }
.lx-svc-card:hover .lx-svc-cta i,
.lx-svc-card.lx-open .lx-svc-cta i { transform: translateX(4px); }

/* Reduced motion: show cards + content statically, no transitions */
@media (prefers-reduced-motion: reduce) {
  .lx-svc-card {
    opacity: 1 !important; transform: none !important;
    transition: none !important; transition-delay: 0s !important;
  }
  .lx-svc-image img { transition: none !important; }
  .lx-svc-overlay { transform: translateY(0); transition: none !important; padding-bottom: 22px; }
  .lx-svc-overlay p, .lx-svc-cta { opacity: 1 !important; transform: none !important; transition: none !important; }
  .lx-svc-tag { opacity: 1 !important; }
}

/* ============================================================
   Page Banner — editorial deep-teal redesign
   Overrides the legacy aqua-pink gradient from styles.css.
   Applies to all inner pages (redesign.css now site-wide).
   ============================================================ */
.page-banner {
  background:
    radial-gradient(50% 70% at 8% 55%,  rgba(8,77,80,.48),      transparent 68%),
    radial-gradient(36% 52% at 94% 14%, rgba(198,167,94,.22),   transparent 62%),
    linear-gradient(135deg, var(--accent-deep) 0%, var(--primary) 60%, #177A7E 100%);
  color: #fff;
  padding-bottom: 56px;
  overflow: hidden;
  position: relative;
}

/* Decorative concentric gold circles — bottom-right corner */
.page-banner::before {
  content: "";
  position: absolute; bottom: -88px; right: -88px;
  width: 270px; height: 270px; border-radius: 50%;
  border: 1.5px solid rgba(198,167,94,.26);
  pointer-events: none; z-index: 0;
}
.page-banner::after {
  content: "";
  position: absolute; bottom: -56px; right: -56px;
  width: 190px; height: 190px; border-radius: 50%;
  border: 1px solid rgba(198,167,94,.16);
  pointer-events: none; z-index: 0;
}

/* Inner content sits above decorative pseudo-elements */
.page-banner .container { position: relative; z-index: 1; }

.page-banner h1 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.22;
  margin-bottom: 14px;
}

/* Gold accent bar — draws in after the rect animation exits */
.page-banner h1::after {
  content: "";
  display: block;
  width: 52px; height: 2.5px;
  background: var(--gold-line);
  border-radius: 2px;
  margin: 14px auto 0;
  opacity: .85;
}

.page-banner .breadcrumb { color: rgba(255,255,255,.72); }
.page-banner .breadcrumb a { color: #F9E9C6; text-decoration: none; }
.page-banner .breadcrumb a:hover { color: #fff; }

/* ============================================================
   Rect reveal animation — page banner h1
   Sequence (ms):
     100  gold rect starts entering from left
     580  rect fully covers heading — text snaps white at 680 ms
     800  rect begins exiting right
    1300  rect fully exits; heading revealed
    1280  gold accent bar draws in (left → right)
    1550  breadcrumb fades up
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .page-banner h1 {
    position: relative;
    color: transparent; /* hidden until rect covers then text snaps */
    animation: lxBannerTextSnap .02s var(--ease-out) .68s both;
  }

  /* Gold rectangle: enters from left, holds, exits right */
  .page-banner h1::before {
    content: "";
    position: absolute; inset: -4px -18px;
    background: var(--gold-line);
    z-index: 2;
    border-radius: 5px;
    animation: lxRectReveal 1.2s cubic-bezier(0.77, 0, 0.175, 1) .10s both;
  }

  /* Gold accent bar: hidden behind fill-mode:backwards, draws in after rect exits */
  .page-banner h1::after {
    animation: lxGoldBarIn .42s var(--ease-out) 1.28s both;
  }

  /* Breadcrumb fades up last */
  .page-banner .breadcrumb {
    opacity: 0;
    animation: lxBannerCrumb .6s var(--ease-out) 1.55s both;
  }

  @keyframes lxRectReveal {
    0%   { clip-path: inset(0 100% 0 0    round 5px); }
    40%  { clip-path: inset(0 0%   0 0    round 5px); }
    58%  { clip-path: inset(0 0%   0 0    round 5px); }
    100% { clip-path: inset(0 0    0 100% round 5px); }
  }
  @keyframes lxBannerTextSnap {
    from { color: transparent; }
    to   { color: #fff; }
  }
  @keyframes lxGoldBarIn {
    from { opacity: 0; clip-path: inset(0 100% 0 0 round 2px); }
    to   { opacity: .85; clip-path: inset(0 0 0 0 round 2px); }
  }
  @keyframes lxBannerCrumb {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
}

/* Reduced motion: static visible state */
@media (prefers-reduced-motion: reduce) {
  .page-banner h1 { color: #fff; }
  .page-banner h1::after { opacity: .85; clip-path: none; animation: none; }
  .page-banner .breadcrumb { opacity: 1; animation: none; }
}

/* ============================================================
   About-block cards — animated top rect accent on scroll entry
   A gold→teal rect draws in from left across the card's top
   edge when it scrolls into view (pure CSS; no JS required).
   ============================================================ */
.about-block { position: relative; }
.about-block::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px; height: 3px;
  background: linear-gradient(90deg, var(--gold-line) 0%, var(--primary) 70%, transparent 100%);
  border-radius: var(--radius) var(--radius) 0 0;
  transform: scaleX(0);
  transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .about-block::before {
      animation: lxBlockTopBar .7s var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 5% cover 32%;
    }
  }
  @keyframes lxBlockTopBar {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .about-block::before { transform: scaleX(1); }
}

/* ----- Scroll-to-top button (markup injected by main.js) */
#lx-to-top {
  position: fixed; left: 18px; bottom: 18px; z-index: 85;
  width: 46px; height: 46px; border: 0; cursor: pointer; border-radius: 50%;
  background: #fff; color: var(--primary);
  box-shadow: 0 12px 30px rgba(15,107,110,.22);
  opacity: 0; pointer-events: none; transform: translateY(16px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), background .25s, color .25s;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
#lx-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#lx-to-top:hover { background: var(--primary); color: #fff; }
@media (max-width: 720px) {
  #lx-to-top { left: auto; right: 84px; bottom: 84px; width: 42px; height: 42px; }
}

/* ============================================================
   Know Your Doctor — photo card size increase (~13% bigger)
   Overrides the fixed pixel dimensions set earlier in this file.
   ============================================================ */
.kyd-card-wrap { width: 280px; }
.kyd-card      { width: 280px; height: 375px; border-radius: 132px 132px 18px 18px; }
.kyd-goldframe { border-radius: 132px 132px 18px 18px; }

/* Glare circle scales with card */
.kyd-glare {
  background: radial-gradient(
    260px circle at var(--kgx, 50%) var(--kgy, 50%),
    rgba(255,255,255,.5), transparent 60%
  );
}

@media (max-width: 900px) {
  .kyd-card-wrap { width: 255px; }
  .kyd-card      { width: 255px; height: 342px; border-radius: 120px 120px 18px 18px; }
  .kyd-goldframe { border-radius: 120px 120px 18px 18px; }
}

/* ============================================================
   "Care You Can Trust" cards — spring bump on hover / tap
   cubic-bezier(0.34, 1.56, 0.64, 1) overshoots then settles,
   giving the tactile bounce feel the user asked for.
   The !important is required because the flip-in entry animation
   rules earlier in this file also use !important on transform.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .section--cream .card-grid.cards-play .card:hover {
    transform:
      perspective(900px) rotateY(0deg)
      translateY(-11px) scale(1.035) !important;
    box-shadow: 0 30px 60px rgba(15, 107, 110, 0.22) !important;
    transition:
      opacity  .65s cubic-bezier(.2,.8,.2,1),
      transform .5s  cubic-bezier(0.34, 1.56, 0.64, 1),
      box-shadow .45s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  }
}

/* ============================================================
   Nav glider — pill that slides under the active / hovered link
   (desktop only; hidden on the mobile sidebar nav)
   ============================================================ */
.main-nav > ul { position: relative; }   /* direct child only — must NOT match the .dropdown ul */
/* Services dropdown: stack the 9 items vertically (override the
   base .main-nav ul { display:flex } which otherwise rows them) */
.main-nav ul.dropdown { display: block; }
.nav-glider {
  position: absolute;
  top: 50%;
  left: 0;
  height: 38px;
  width: 0;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15,107,110,.13), rgba(198,167,94,.18));
  box-shadow:
    inset 0 0 0 1px rgba(198,167,94,.40),
    0 4px 14px rgba(15,107,110,.10);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition:
    transform .7s cubic-bezier(0.22, 1.12, 0.36, 1),
    width     .7s cubic-bezier(0.22, 1.12, 0.36, 1),
    opacity   .35s ease;
}
/* keep link text above the pill */
.main-nav.has-glider > ul > li > a { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .nav-glider { transition: opacity .2s ease; }
}
@media (max-width: 820px) {
  .nav-glider { display: none !important; }
}

/* ============================================================
   Header logo — spring scale + glow on hover / tap
   No rectangular tap-highlight (suppress browser default)
   ============================================================ */
.logo {
  flex: none;   /* never let the logo shrink/collapse under nav pressure */
  -webkit-tap-highlight-color: transparent;
  background: transparent !important;
}
.logo:hover,
.logo:active {
  background: transparent !important;
}
.logo .site-logo {
  height: 72px;            /* enlarged from 58px so the wordmark text reads bigger */
  width: auto;
  transition:
    transform .45s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter    .3s  var(--ease-out);
}
.logo:hover .site-logo,
.logo:focus-visible .site-logo {
  transform: scale(1.10);
  filter: drop-shadow(0 4px 14px rgba(15, 107, 110, 0.42));
}
@media (max-width: 600px) {
  .logo .site-logo { height: 56px; }   /* enlarged from 46px on mobile */
}

/* ============================================================
   Footer logo — transparent PNG, white-filtered for dark bg
   ============================================================ */
.footer-logo {
  display: block;
  width: 290px;
  max-width: 92%;
  height: auto;
  opacity: .92;
  filter: brightness(0) invert(1);
  margin-bottom: 18px;
  transform-origin: left center;
  transition: opacity .35s var(--ease-out), transform .45s cubic-bezier(0.34,1.56,0.64,1);
}
.footer-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ============================================================
   Footer — hover / tap animations
   ============================================================ */

/* Social icons: spring bounce + lift + teal glow */
.socials a {
  transition:
    transform  .45s cubic-bezier(0.34, 1.56, 0.64, 1),
    background .3s  var(--ease-out),
    color      .25s var(--ease-out),
    box-shadow .35s var(--ease-out);
}
.socials a:hover {
  transform: scale(1.22) translateY(-4px);
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(15, 107, 110, 0.38);
}

/* Footer nav links + contact links: warm gold + right-nudge */
.site-footer ul a {
  display: inline-block;
  transition:
    color     .25s var(--ease-out),
    transform .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.site-footer ul a:hover {
  color: #F9E9C6 !important;
  transform: translateX(5px);
}

/* Contact list items: nudge right on hover (whole row) */
.foot-contact li {
  transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.foot-contact li:hover {
  transform: translateX(5px);
}
.foot-contact .foot-icon {
  transition:
    transform  .45s cubic-bezier(0.34, 1.56, 0.64, 1),
    background .3s  var(--ease-out),
    box-shadow .35s var(--ease-out);
}
.foot-contact li:hover .foot-icon {
  transform: scale(1.15);
  background: var(--primary) !important;
  box-shadow: 0 6px 16px rgba(15, 107, 110, 0.38);
}

/* ============================================================
   KYD PHOTO FRAME — enlarged: 320×428px desktop / 275×368px mobile
   (overrides the 280×375 / 255×342 block earlier in this file)
   ============================================================ */
.kyd-card-wrap { width: 320px; }
.kyd-card      { width: 320px; height: 428px; border-radius: 152px 152px 20px 20px; }
.kyd-goldframe { border-radius: 152px 152px 20px 20px; }
.kyd-glare {
  background: radial-gradient(
    304px circle at var(--kgx, 50%) var(--kgy, 50%),
    rgba(255,255,255,.5), transparent 60%
  );
}
@media (max-width: 900px) {
  .kyd-card-wrap { width: 275px; }
  .kyd-card      { width: 275px; height: 368px; border-radius: 132px 132px 20px 20px; }
  .kyd-goldframe { border-radius: 132px 132px 20px 20px; }
}

/* ============================================================
   KYD AMBIENT — breathing pulse (homepage)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .kyd-amb {
    animation: kydBreath 3.8s ease-in-out infinite;
  }
  @keyframes kydBreath {
    0%, 100% { opacity: .18; transform: scale(1); }
    50%       { opacity: .35; transform: scale(1.10); }
  }
}

/* ============================================================
   ABOUT PAGE — signature animations
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {

  /* Double gold ring frames the doctor photo */
  [data-page="about"] .about-grid > div:first-child {
    position: relative;
  }
  [data-page="about"] .about-grid > div:first-child::before {
    content: "";
    position: absolute; inset: -11px;
    border-radius: var(--radius);
    border: 2px solid var(--gold-line);
    opacity: 0; pointer-events: none;
    animation: photoRingIn .9s var(--ease-out) .4s both;
  }
  [data-page="about"] .about-grid > div:first-child::after {
    content: "";
    position: absolute; inset: -24px;
    border-radius: calc(var(--radius) + 4px);
    border: 1.5px solid rgba(198,167,94,.28);
    opacity: 0; pointer-events: none;
    animation: photoRingIn .9s var(--ease-out) .7s both;
  }
  @keyframes photoRingIn {
    from { opacity: 0; transform: scale(.88); }
    to   { opacity: 1; transform: scale(1); }
  }

  /* About-block icon: spring rotate-pop when block scrolls in */
  .about-block.in-view .about-block-icon {
    animation: iconSpringPop .65s cubic-bezier(0.34,1.56,0.64,1) .12s forwards;
  }
  @keyframes iconSpringPop {
    from { transform: scale(.2) rotate(-35deg); opacity: 0; }
    to   { transform: scale(1) rotate(0deg); opacity: 1; }
  }

  /* About-block body text: fade-up after icon */
  .about-block.in-view .about-block-body {
    animation: blockBodyRise .6s var(--ease-out) .28s both;
  }
  @keyframes blockBodyRise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ============================================================
   SERVICES OVERVIEW PAGE — unique animations
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {

  /* Tab shimmer sweep when a tab becomes is-active */
  [data-page="services"] .svc-tab {
    position: relative; overflow: hidden;
  }
  [data-page="services"] .svc-tab.is-active::after {
    content: "";
    position: absolute; top: 0; left: -140%; width: 80%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.45) 50%, transparent 100%);
    animation: tabShimmer .85s var(--ease-out) .05s both;
    pointer-events: none;
  }
  @keyframes tabShimmer {
    from { left: -140%; }
    to   { left: 160%; }
  }

  /* Service panel: slide up when activated */
  [data-page="services"] .svc-panel.is-active {
    animation: svcPanelUp .5s var(--ease-out) both;
  }
  @keyframes svcPanelUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
  }

  /* Service media: slow gentle zoom on hover */
  [data-page="services"] .svc-media {
    overflow: hidden;
  }
  [data-page="services"] .svc-media img {
    transition: transform 8s ease-in-out;
  }
  [data-page="services"] .svc-panel:hover .svc-media img,
  [data-page="services"] .svc-panel.is-active .svc-media img {
    transform: scale(1.07);
  }
}

/* ============================================================
   CONTACT PAGE — unique animations
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {

  /* Credentials list: staggered left-slide */
  [data-page="contact"] .credentials li {
    opacity: 0;
    animation: credLeft .55s var(--ease-out) both;
  }
  [data-page="contact"] .credentials li:nth-child(1)  { animation-delay: .10s; }
  [data-page="contact"] .credentials li:nth-child(2)  { animation-delay: .18s; }
  [data-page="contact"] .credentials li:nth-child(3)  { animation-delay: .26s; }
  [data-page="contact"] .credentials li:nth-child(4)  { animation-delay: .34s; }
  [data-page="contact"] .credentials li:nth-child(5)  { animation-delay: .42s; }
  [data-page="contact"] .credentials li:nth-child(6)  { animation-delay: .50s; }
  [data-page="contact"] .credentials li:nth-child(7)  { animation-delay: .58s; }
  [data-page="contact"] .credentials li:nth-child(8)  { animation-delay: .66s; }
  [data-page="contact"] .credentials li:nth-child(9)  { animation-delay: .74s; }
  [data-page="contact"] .credentials li:nth-child(10) { animation-delay: .82s; }
  @keyframes credLeft {
    from { opacity: 0; transform: translateX(-26px); }
    to   { opacity: 1; transform: none; }
  }

  /* Location pin: drop-bounce from above */
  [data-page="contact"] .fa-location-dot {
    display: inline-block;
    animation: pinDrop .8s cubic-bezier(0.34,1.56,0.64,1) .3s both;
  }
  @keyframes pinDrop {
    from { transform: translateY(-20px); opacity: 0; }
    to   { transform: none; opacity: 1; }
  }

  /* Iframes (map): scale-fade in */
  [data-page="contact"] iframe {
    opacity: 0;
    animation: mapReveal .8s var(--ease-out) .5s both;
  }
  @keyframes mapReveal {
    from { opacity: 0; transform: scale(.96) translateY(12px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ============================================================
   GALLERY PAGE — unique animations
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {

  /* Entrance: 3-D perspective tilt, staggered by nth-child */
  [data-page="gallery"] .gallery-item {
    animation: galTilt .7s var(--ease-out) both;
  }
  [data-page="gallery"] .gallery-item:nth-child(1)  { animation-delay: .04s; }
  [data-page="gallery"] .gallery-item:nth-child(2)  { animation-delay: .12s; }
  [data-page="gallery"] .gallery-item:nth-child(3)  { animation-delay: .20s; }
  [data-page="gallery"] .gallery-item:nth-child(4)  { animation-delay: .28s; }
  [data-page="gallery"] .gallery-item:nth-child(5)  { animation-delay: .36s; }
  [data-page="gallery"] .gallery-item:nth-child(6)  { animation-delay: .44s; }
  [data-page="gallery"] .gallery-item:nth-child(7)  { animation-delay: .52s; }
  @keyframes galTilt {
    from { opacity: 0; transform: perspective(700px) rotateY(12deg) translateY(28px); }
    to   { opacity: 1; transform: none; }
  }

  /* Hover: spring lift + teal glow */
  [data-page="gallery"] .gallery-item {
    transition:
      transform  .45s cubic-bezier(0.34,1.56,0.64,1),
      box-shadow .35s var(--ease-out);
    position: relative; z-index: 0;
  }
  [data-page="gallery"] .gallery-item:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 28px 56px rgba(15,107,110,.22);
    z-index: 2;
  }

  /* Shimmer overlay on hover */
  [data-page="gallery"] .gallery-item::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    background: linear-gradient(
      135deg,
      transparent 30%,
      rgba(255,255,255,.22) 50%,
      transparent 70%
    );
    background-size: 250% 250%;
    opacity: 0;
    transition: opacity .25s var(--ease-out);
    pointer-events: none;
    z-index: 1;
  }
  [data-page="gallery"] .gallery-item:hover::before {
    opacity: 1;
    animation: galShimmer .55s var(--ease-out) both;
  }
  @keyframes galShimmer {
    from { background-position: 200% 200%; }
    to   { background-position: -50% -50%; }
  }
}

/* ============================================================
   SERVICE DETAIL PAGES — unique animations
   body[data-prefix="../"] targets /services/*.html only
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {

  /* List items: alternating left / right spring reveal */
  body[data-prefix="../"] .service-body ul li {
    opacity: 0;
    animation: svcLeft .55s cubic-bezier(0.34,1.56,0.64,1) both;
  }
  body[data-prefix="../"] .service-body ul li:nth-child(even) {
    animation-name: svcRight;
  }
  body[data-prefix="../"] .service-body ul li:nth-child(1) { animation-delay: .05s; }
  body[data-prefix="../"] .service-body ul li:nth-child(2) { animation-delay: .12s; }
  body[data-prefix="../"] .service-body ul li:nth-child(3) { animation-delay: .19s; }
  body[data-prefix="../"] .service-body ul li:nth-child(4) { animation-delay: .26s; }
  body[data-prefix="../"] .service-body ul li:nth-child(5) { animation-delay: .33s; }
  body[data-prefix="../"] .service-body ul li:nth-child(6) { animation-delay: .40s; }
  body[data-prefix="../"] .service-body ul li:nth-child(7) { animation-delay: .47s; }
  body[data-prefix="../"] .service-body ul li:nth-child(8) { animation-delay: .54s; }
  @keyframes svcLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes svcRight {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: none; }
  }

  /* FAQ details: spring-expand content on open */
  body[data-prefix="../"] .svc-faq[open] p {
    animation: faqSpring .42s cubic-bezier(0.34,1.56,0.64,1) both;
  }
  @keyframes faqSpring {
    from { opacity: 0; transform: translateY(-10px) scaleY(.88); transform-origin: top; }
    to   { opacity: 1; transform: none; }
  }

  /* Related links: stagger slide-up */
  body[data-prefix="../"] .svc-links a {
    display: inline-block;
    opacity: 0;
    animation: svcLinkUp .5s var(--ease-out) both;
  }
  body[data-prefix="../"] .svc-links a:nth-child(1) { animation-delay: .05s; }
  body[data-prefix="../"] .svc-links a:nth-child(2) { animation-delay: .14s; }
  body[data-prefix="../"] .svc-links a:nth-child(3) { animation-delay: .23s; }
  body[data-prefix="../"] .svc-links a:nth-child(4) { animation-delay: .32s; }
  body[data-prefix="../"] .svc-links a:nth-child(5) { animation-delay: .41s; }
  @keyframes svcLinkUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }

  /* Service body h2 headings: scroll-driven underline draw */
  @supports (animation-timeline: view()) {
    body[data-prefix="../"] .service-body h2 {
      position: relative;
    }
    body[data-prefix="../"] .service-body h2::after {
      content: "";
      position: absolute;
      bottom: -5px; left: 0;
      width: 100%; height: 2px;
      background: var(--gold-line);
      transform-origin: left;
      animation: headUnderline linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    @keyframes headUnderline {
      from { transform: scaleX(0); opacity: 0; }
      to   { transform: scaleX(1); opacity: .8; }
    }
  }

  /* CTA banner: ambient glow pulse */
  body[data-prefix="../"] .cta-banner {
    animation: ctaGlowPulse 3.2s ease-in-out infinite alternate;
  }
  @keyframes ctaGlowPulse {
    from { box-shadow: 0 4px 20px rgba(15,107,110,.07); }
    to   { box-shadow: 0 10px 48px rgba(15,107,110,.26),
                       inset 0 0 0 1px rgba(198,167,94,.18); }
  }
}

/* ============================================================
   GET IN TOUCH — timeline-over-map contact section (contact.html)
   Vanilla port of the React component. Brand-locked tokens.
   JS adds .gi-in when the section scrolls into view (main.js).
   ============================================================ */
.gi-section {
  --gi-teal: #0F6B6E;
  --gi-teal-deep: #084D50;
  --gi-teal-bright: #2A8A8D;
  --gi-gold: #C6A75E;
  --gi-ink: #0C4E4B;
  --gi-muted: #5d6b69;
  --gi-ease: cubic-bezier(.2, .8, .2, 1);
  --gi-spring: cubic-bezier(.34, 1.4, .5, 1);
  --gi-reveal-base: .45s;
  --gi-reveal-step: .13s;

  position: relative;
  overflow: hidden;
  min-height: 660px;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.gi-map {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; z-index: 0;
  pointer-events: none;        /* decorative bg — use the CTA to open maps */
  filter: saturate(.96) contrast(1.02);
}

/* teal tint: stronger left, fading right */
.gi-tint {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(8,77,80,.94) 0%, rgba(12,78,75,.80) 34%,
    rgba(15,107,110,.42) 64%, rgba(15,107,110,.14) 100%);
}

.gi-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1180px;
  margin: 0 auto; padding: 54px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}

/* frosted glass panel */
.gi-panel {
  max-width: 460px;
  padding: 30px 32px 28px;
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 30px 70px rgba(8,60,62,.34);
  opacity: 0; transform: scale(.94) translateY(14px);
  transition: opacity .8s var(--gi-ease), transform .8s var(--gi-ease);
}
.gi-in .gi-panel { opacity: 1; transform: none; }

.gi-eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-weight: 600; font-size: .74rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gi-gold);
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s var(--gi-ease) .18s, transform .6s var(--gi-ease) .18s;
}
.gi-heading {
  margin: 0 0 10px;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-weight: 600; font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  line-height: 1.12; letter-spacing: -.01em; color: var(--gi-ink);
  opacity: 0; transform: translateY(18px);
  transition: opacity .65s var(--gi-ease) .24s, transform .65s var(--gi-ease) .24s;
}
.gi-intro {
  margin: 0 0 24px; max-width: 44ch;
  font-size: .9rem; line-height: 1.6; color: var(--gi-muted);
  opacity: 0; transform: translateY(18px);
  transition: opacity .65s var(--gi-ease) .32s, transform .65s var(--gi-ease) .32s;
}
.gi-in .gi-eyebrow, .gi-in .gi-heading, .gi-in .gi-intro { opacity: 1; transform: none; }

/* timeline */
.gi-timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.gi-line {
  position: absolute; top: 19px; bottom: 26px; left: 18px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--gi-gold) 0%, var(--gi-teal-bright) 55%, var(--gi-teal) 100%);
  transform: scaleY(0); transform-origin: top center;
  transition: transform 1.1s var(--gi-ease) .35s;
}
.gi-in .gi-line { transform: scaleY(1); }

.gi-item {
  position: relative; display: grid;
  grid-template-columns: 38px 1fr; gap: 15px;
  align-items: start; padding-bottom: 21px;
}
.gi-item:last-child { padding-bottom: 0; }

.gi-node {
  position: relative; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: .92rem; background: var(--gi-teal);
  box-shadow: 0 0 0 5px rgba(255,255,255,.82), 0 6px 16px rgba(8,60,62,.28);
  opacity: 0; transform: scale(.3);
  transition:
    transform .6s var(--gi-spring) calc(var(--gi-reveal-base) + var(--i) * var(--gi-reveal-step)),
    opacity   .4s var(--gi-ease)   calc(var(--gi-reveal-base) + var(--i) * var(--gi-reveal-step)),
    background-color .3s var(--gi-ease), box-shadow .3s var(--gi-ease);
}
.gi-in .gi-node { opacity: 1; transform: scale(1); }

.gi-itemtext {
  padding-top: 1px; opacity: 0; transform: translateX(-12px);
  transition:
    opacity   .5s var(--gi-ease) calc(var(--gi-reveal-base) + var(--i) * var(--gi-reveal-step) + .09s),
    transform .5s var(--gi-ease) calc(var(--gi-reveal-base) + var(--i) * var(--gi-reveal-step) + .09s);
}
.gi-in .gi-itemtext { opacity: 1; transform: none; }

.gi-label {
  margin: 0 0 3px; font-weight: 600; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gi-teal);
}
.gi-value { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--gi-ink); }
a.gi-value-link { text-decoration: none; transition: color .22s var(--gi-ease); }
a.gi-value-link:hover { color: var(--gi-gold); }

.gi-item:hover .gi-node {
  background: var(--gi-gold); transform: scale(1.1);
  box-shadow: 0 0 0 5px rgba(255,255,255,.9), 0 10px 22px rgba(150,110,40,.4);
}

.gi-socials { display: flex; gap: 10px; margin-top: 12px; }
.gi-social {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gi-teal); background: rgba(15,107,110,.10);
  border: 1px solid rgba(15,107,110,.22);
  transition: transform .35s var(--gi-spring), background-color .25s var(--gi-ease),
              color .25s var(--gi-ease), border-color .25s var(--gi-ease), box-shadow .25s var(--gi-ease);
}
.gi-social:hover {
  color: #fff; background: var(--gi-gold); border-color: var(--gi-gold);
  transform: translateY(-4px) scale(1.06); box-shadow: 0 10px 20px rgba(150,110,40,.34);
}

.gi-cta {
  display: inline-flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  padding: 12px 24px; border-radius: 999px;
  background: var(--gi-teal); color: #fff;
  font-weight: 600; font-size: .9rem; text-decoration: none;
  box-shadow: 0 10px 24px rgba(15,107,110,.32);
  opacity: 0; transform: translateY(16px);
  transition:
    opacity .6s var(--gi-ease) calc(var(--gi-reveal-base) + var(--i) * var(--gi-reveal-step) + .15s),
    transform .35s var(--gi-spring), background-color .25s var(--gi-ease), box-shadow .3s var(--gi-ease);
}
.gi-in .gi-cta { opacity: 1; transform: translateY(0); }
.gi-cta:hover {
  background: var(--gi-teal-deep); transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(8,77,80,.42);
}
.gi-cta-arrow { transition: transform .3s var(--gi-ease); }
.gi-cta:hover .gi-cta-arrow { transform: translateX(5px); }

/* mobile: panel full width; tint becomes top -> bottom darken */
@media (max-width: 768px) {
  .gi-section { min-height: 0; }
  .gi-inner { padding: 40px 16px; flex-direction: column; align-items: stretch; gap: 20px; }
  .gi-panel { max-width: none; width: 100%; padding: 30px 22px; border-radius: 18px; }
  .gi-cta { align-self: center; }
  .gi-tint {
    background: linear-gradient(180deg,
      rgba(8,77,80,.55) 0%, rgba(8,77,80,.82) 55%, rgba(8,77,80,.94) 100%);
  }
}

/* reduced motion: everything static */
@media (prefers-reduced-motion: reduce) {
  .gi-panel, .gi-eyebrow, .gi-heading, .gi-intro,
  .gi-node, .gi-itemtext, .gi-cta {
    opacity: 1 !important; transform: none !important;
    transition: background-color .25s ease, color .25s ease,
                border-color .25s ease, box-shadow .25s ease !important;
  }
  .gi-line { transform: scaleY(1) !important; transition: none !important; }
}

/* ============================================================
   HERO — depth-parallax stage, blobs, Ken Burns, button hover
   Markup: .hero-stage > .blob-pink, .blob-teal, .hero-photo > picture
   Pointer parallax + .play trigger live in main.js. Content untouched.
   ============================================================ */
.hero-stage { position: relative; perspective: 900px; }

/* the photo frame: tilts in 3D, contains the Ken Burns zoom */
.hero-stage .hero-photo {
  position: relative; z-index: 2;
  overflow: hidden; border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
/* image fills the frame exactly as before (same size, no layout change) */
.hero-stage .hero-photo img,
.hero-stage .hero-photo .photo-placeholder {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block;
  border-radius: inherit; box-shadow: none;
}

/* depth blobs behind the photo */
.hero-stage .blob-pink,
.hero-stage .blob-teal {
  position: absolute; border-radius: 50%; z-index: 1;
  pointer-events: none; filter: blur(34px);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.hero-stage .blob-pink {
  width: 58%; aspect-ratio: 1; top: -7%; right: -9%;
  background: radial-gradient(circle, rgba(246,193,199,.60), transparent 70%);
}
.hero-stage .blob-teal {
  width: 52%; aspect-ratio: 1; bottom: -8%; left: -8%;
  background: radial-gradient(circle, rgba(15,107,110,.28), transparent 70%);
}

/* Book Appointment — lift + soft teal shadow on hover */
.hero .hero-text .btn--primary {
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.hero .hero-text .btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15,107,110,.34);
}

/* Ken Burns — slow continuous zoom inside the frame */
@media (prefers-reduced-motion: no-preference) {
  .hero .hero-photo img { animation: lxKenBurns 16s ease-in-out infinite; }
  @keyframes lxKenBurns {
    0%, 100% { transform: scale(1.05); }
    50%      { transform: scale(1.14); }
  }
}

/* mobile: the stage becomes the stacked, centred column */
@media (max-width: 700px) {
  .hero-stage { order: -1; max-width: 380px; margin: 0 auto; }
  .hero-stage .hero-photo { max-width: none; }
}

/* reduced motion: no parallax / Ken Burns / reveals — everything static */
@media (prefers-reduced-motion: reduce) {
  .hero .hero-text > *,
  .hero .hero-photo,
  .hero ul.credentials li,
  .hero-stage .blob-pink,
  .hero-stage .blob-teal {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
  .hero h1::after { transform: none !important; animation: none !important; }
  .hero .hero-photo img { animation: none !important; transform: none !important; }
}

/* ============================================================
   ABOUT — premium bento grid (about.html). Brand-locked tokens,
   Font Awesome icons. Reveal + count-up driven by main.js.
   ============================================================ */
.about-bento .bento-head { text-align: center; margin-bottom: 40px; }
.about-bento .bento-eyebrow {
  display: inline-block; font-family: var(--font-body);
  font-weight: 600; font-size: .78rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-line); margin-bottom: 10px;
}
.about-bento .bento-head h2 {
  font-family: var(--font-display); color: var(--accent-deep); margin: 0;
}

.bento-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    'qual exp  exp'
    'qual phil phil'
    'expert phil phil'
    'expert res  res';
}
.tile-qual   { grid-area: qual; }
.tile-exp    { grid-area: exp; }
.tile-phil   { grid-area: phil; }
.tile-expert { grid-area: expert; }
.tile-res    { grid-area: res; }

/* ---- tile shell ---- */
.bento-tile {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; padding: 28px;
  box-shadow: 0 10px 30px rgba(15,107,110,.06);
  opacity: 0; transform: translateY(26px) scale(.98);
  transition:
    opacity .6s cubic-bezier(.2,.8,.2,1),
    transform .55s cubic-bezier(.2,.8,.2,1),
    box-shadow .35s cubic-bezier(.2,.8,.2,1);
}
.bento-tile.in { opacity: 1; transform: none; }
.bento-tile.in:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 54px rgba(15,107,110,.16);
}

/* accent bar draws across the top on hover */
.tile-bar {
  position: absolute; top: 0; left: 0; height: 4px; width: 100%; z-index: 3;
  background: linear-gradient(90deg, var(--primary), var(--gold-line));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.bento-tile:hover .tile-bar { transform: scaleX(1); }

/* faint dot-grid in the top-right corner */
.tile-dots {
  position: absolute; top: 16px; right: 16px; width: 72px; height: 72px;
  pointer-events: none; border-radius: 8px;
  color: rgba(15,107,110,.16);
  background-image: radial-gradient(currentColor 1.4px, transparent 1.6px);
  background-size: 12px 12px;
}

/* icon chip */
.tile-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; position: relative; z-index: 2;
  background: rgba(15,107,110,.10); color: var(--primary);
  font-size: 1.2rem; margin-bottom: 16px;
  transition: background-color .3s cubic-bezier(.2,.8,.2,1),
              color .3s cubic-bezier(.2,.8,.2,1),
              transform .4s cubic-bezier(.34,1.4,.5,1);
}
.bento-tile:hover .tile-icon {
  background: var(--primary); color: #fff;
  transform: scale(1.08) rotate(-6deg);
}

.tile-label {
  font-family: var(--font-body); font-weight: 600; font-size: .7rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-line);
  margin: 0 0 4px; position: relative; z-index: 2;
}
.tile-title {
  font-family: var(--font-display); color: var(--accent-deep);
  font-size: 1.3rem; margin: 0 0 16px; position: relative; z-index: 2;
}

/* lists with per-item mini icon chips */
.tile-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; position: relative; z-index: 2; }
.tile-list li {
  display: grid; grid-template-columns: 26px 1fr; gap: 11px; align-items: start;
  font-size: .93rem; color: var(--text); line-height: 1.45;
}
.tile-list li strong { color: var(--accent-deep); font-weight: 600; }
.li-chip {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(198,167,94,.16); color: #9a7b33; font-size: .72rem; margin-top: 1px;
}
.tile-list--papers li { font-size: .88rem; }

/* experience stat + pills */
.bento-stat { display: flex; align-items: baseline; gap: 9px; margin-bottom: 8px; position: relative; z-index: 2; }
.bento-stat-num { font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--primary); }
.bento-stat-unit { font-family: var(--font-body); font-weight: 600; letter-spacing: .12em; font-size: .8rem; color: var(--muted); text-transform: uppercase; }
.bento-stat-line { font-size: .92rem; color: var(--text); line-height: 1.55; margin: 0; position: relative; z-index: 2; }
.bento-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; position: relative; z-index: 2; }
.bento-pill {
  font-size: .74rem; font-weight: 600; letter-spacing: .03em; padding: 5px 12px; border-radius: 999px;
  background: rgba(15,107,110,.08); color: var(--primary); border: 1px solid rgba(15,107,110,.16);
}
.bento-pill i { font-size: .66rem; opacity: .8; margin-right: 3px; }

/* research count pill */
.count-pill {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px;
  padding: 6px 14px; border-radius: 999px; position: relative; z-index: 2;
  background: rgba(198,167,94,.16); color: #9a7b33; font-weight: 700; font-size: .85rem;
}

/* philosophy feature tile */
.tile-phil {
  background: linear-gradient(140deg, #15776E, #0C4641);
  border: none; color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 16px 40px rgba(8,60,62,.28);
}
.tile-phil .phil-quote-mark {
  font-family: var(--font-display); font-size: 4.6rem; line-height: .6;
  color: var(--gold-line); margin-bottom: 4px; position: relative; z-index: 2;
}
.tile-phil .phil-text {
  font-family: var(--font-display); font-style: italic; font-size: 1.4rem;
  line-height: 1.5; color: #fff; margin: 0 0 20px; position: relative; z-index: 2;
}
.tile-phil .phil-sign {
  font-family: var(--font-body); font-weight: 600; letter-spacing: .1em;
  font-size: .82rem; text-transform: uppercase; color: var(--gold-line);
  position: relative; z-index: 2;
}
.tile-phil .tile-dots { color: rgba(255,255,255,.16); }
.tile-phil .tile-bar { background: linear-gradient(90deg, var(--gold-line), #E7C77A); }

/* responsive: 3-col bento -> 2-col -> 1-col */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'exp exp'
      'qual phil'
      'expert phil'
      'res res';
  }
}
@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-areas: 'qual' 'exp' 'phil' 'expert' 'res';
  }
  .bento-stat-num { font-size: 2.6rem; }
}

/* reduced motion: everything static */
@media (prefers-reduced-motion: reduce) {
  .bento-tile { opacity: 1 !important; transform: none !important; transition: box-shadow .3s ease; }
  .bento-tile .tile-bar,
  .bento-tile .tile-icon { transition: none !important; }
}

/* ============================================================
   MOBILE — fit-to-phone fixes + polish
   ============================================================ */
/* Horizontal slide-in reveals (translateX) push content past the right
   edge on phones, causing a sideways scroll. Render them static on small
   screens — the slide effect isn't needed there. (Safe: no overflow on
   html/body/sections, so the sticky header + KYD sticky photo are intact.) */
@media (max-width: 768px) {
  .reveal-left, .reveal-right,
  .js-anim.reveal-left, .js-anim.reveal-right,
  body[data-prefix="../"] .service-body ul li,
  body[data-prefix="../"] .svc-links a,
  [data-page="contact"] .credentials li,
  .reels-slider {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

@media (max-width: 600px) {
  /* tighter section rhythm on phones */
  .section { padding: 46px 0; }
  .container { padding-left: 18px; padding-right: 18px; }

  /* page banners */
  .page-banner h1 { font-size: clamp(1.5rem, 6.4vw, 1.9rem); }

  /* bento tiles: less padding, smaller feature text */
  .bento-grid { gap: 16px; }
  .bento-tile { padding: 22px 20px; }
  .tile-phil .phil-text { font-size: 1.18rem; }
  .tile-phil .phil-quote-mark { font-size: 3.6rem; }
  .tile-title { font-size: 1.2rem; }

  /* contact timeline panel a touch tighter */
  .gi-panel { padding: 26px 20px; }
  .gi-heading { font-size: clamp(1.5rem, 7vw, 1.95rem); }
}
