/* ==========================================================================
   Bedaya — sections.css
   Vanilla, brand-adapted rebuilds of three 21st.dev blocks:
   1. Intro/advertisement hero banner (purple glow + circle→pill-logo morph)
   2. Parallax scroll feature section (clip-reveal + drift)
   3. Footer giant hover-reveal "BEDAYA" text + Bedaya gradient glow
   ========================================================================== */

/* ==========================================================================
   1. Intro / advertisement hero banner
   ========================================================================== */
.adbanner {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; background: var(--bg); padding-block: 9rem 5rem;
}
.adbanner__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.adbanner .display { font-size: clamp(2.6rem, 6.5vw, 5.5rem); }
.adbanner .lead { margin-top: -.25rem; }
.adbanner__title {
  font-family: var(--font-display); font-weight: 200; line-height: 1.04; letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 5vw, 3.9rem); max-width: 20ch; margin-inline: auto;
  background-image: linear-gradient(92deg, var(--text) 35%, var(--purple-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.btn--glow { box-shadow: 0 0 0 1px var(--purple-12), 0 10px 34px rgba(146,107,172,.28); }
.btn--glow:hover { box-shadow: 0 0 0 1px var(--purple-18), 0 12px 40px rgba(146,107,172,.36); }

/* glass button, no fill, with a brand-blue (teal) halo → purple halo on hover */
.btn--halo { background: rgba(255,255,255,.18); color: var(--text);
  box-shadow:
    inset 1.5px 1.5px 1px -1px rgba(255,255,255,.9), inset -1.5px -1.5px 1px -1px rgba(44,44,44,.12),
    0 0 0 1.5px rgba(171,207,210,.9), 0 0 22px 3px rgba(171,207,210,.55);
  transition: box-shadow var(--t) var(--breathe), transform var(--t) var(--breathe), background var(--t) var(--breathe); }
.btn--halo::before { display: none !important; }
.btn--halo:hover { transform: translateY(-2px);
  box-shadow:
    inset 1.5px 1.5px 1px -1px rgba(255,255,255,.9), inset -1.5px -1.5px 1px -1px rgba(44,44,44,.12),
    0 0 0 1.5px rgba(146,107,172,.95), 0 0 28px 4px rgba(146,107,172,.55); }

.adbanner__actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-top: .5rem; }

/* full-bleed hero media (reference-style, edge to edge) + overlaid text */
.adbanner--hero { padding-block: 7rem 4rem; }
.adbanner__media { position: absolute; inset: 0; z-index: 0; }
.adbanner__media img, .adbanner__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.adbanner__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,28,.30), rgba(20,20,28,.55)); }
.adbanner--hero .adbanner__inner { z-index: 2; }
.adbanner--hero .adbanner__title { background: none; -webkit-text-fill-color: #fff; color: #fff; text-shadow: 0 2px 40px rgba(0,0,0,.45); }
.adbanner--hero .lead { color: rgba(255,255,255,.92); text-shadow: 0 1px 20px rgba(0,0,0,.45); }
.adbanner--hero .badge { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; }
.adbanner--hero .badge > a { background: rgba(255,255,255,.22); color: #fff; }
/* hero buttons: keep the glass fill, make the TEXT white on the photographic banner + brand halo */
.adbanner--hero .btn--halo { color: #fff; background: rgba(255,255,255,.15);
  box-shadow:
    inset 1.5px 1.5px 1px -1px rgba(255,255,255,.55), inset -1.5px -1.5px 1px -1px rgba(0,0,0,.10),
    0 0 0 1.5px rgba(255,255,255,.50), 0 0 22px 3px rgba(171,207,210,.45); }
.adbanner--hero .btn--halo:hover { color: #fff; transform: translateY(-2px);
  box-shadow:
    inset 1.5px 1.5px 1px -1px rgba(255,255,255,.60), inset -1.5px -1.5px 1px -1px rgba(0,0,0,.10),
    0 0 0 1.5px rgba(255,255,255,.72), 0 0 26px 4px rgba(146,107,172,.50); }

/* placeholders that contain a real <img> become the image */
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph:has(img) { border: 0; }
.ph:has(img)::before { display: none; }

/* site-wide floating leaves (animate-float), injected by JS on every page */
/* leaf field starts below the hero and spans to the footer; sits BEHIND every section (z:-1) */
.leaf-field { position: absolute; top: 100svh; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none; overflow: hidden; }
/* decorative leaves layered into the hero's white space (behind the heading text) */
.hero-leaves { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.leaf-float { position: absolute; will-change: transform; animation: leaf-float var(--dur, 9s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
@keyframes leaf-float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-22px) rotate(calc(var(--rot, 0deg) + 5deg)); }
}
@media (prefers-reduced-motion: reduce) { .leaf-float { animation: none; } }

/* care section — rotating text + per-card department button */
.text-rotate { display: inline-flex; overflow: hidden; vertical-align: bottom; line-height: 1.05; }
.text-rotate__word { display: inline-block; color: var(--purple-deep); white-space: nowrap; }
.spot-card__btn { margin-top: auto; padding-top: var(--s-5); }

/* departments — Video 2: blob image (left) crossfades + corner gradient; sticky rotating text (right) */
.deptv2 { position: relative; min-height: 300vh; }
.deptv2__grid { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-inline: clamp(1.5rem, 6vw, 5rem); overflow: hidden; }
.deptv2__visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 62vh; }
.deptv2__grad { position: absolute; right: -14%; bottom: -16%; width: 74%; height: 88%; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: .85; transition: background 800ms var(--breathe); }
.deptv2__grad[data-grad="purple"] { background: radial-gradient(circle, rgba(146,107,172,.62), transparent 62%); }
.deptv2__grad[data-grad="green"]  { background: radial-gradient(circle, rgba(163,203,145,.62), transparent 62%); }
.deptv2__grad[data-grad="blue"]   { background: radial-gradient(circle, rgba(171,207,210,.68), transparent 62%); }
.deptv2__shape { position: relative; z-index: 1; width: min(440px, 86%); aspect-ratio: 4/5; border-radius: 44% 44% 44% 44% / 38% 38% 38% 38%; overflow: hidden; box-shadow: 0 34px 90px rgba(44,44,44,.20); }
.deptv2__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 800ms var(--breathe), transform 1400ms var(--breathe); }
.deptv2__img.is-active { opacity: 1; transform: scale(1); }
.deptv2__outline { position: absolute; z-index: 2; left: -7%; top: -6%; width: 114%; height: 114%; pointer-events: none; color: var(--purple); opacity: .5; transition: color 700ms var(--breathe), transform 1200ms var(--breathe); }
.deptv2__text { position: relative; z-index: 3; max-width: 470px; display: flex; flex-direction: column; gap: 1.1rem; }
.deptv2__title { font-family: var(--font-display); font-weight: 200; letter-spacing: -.02em; font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.08; overflow: hidden; padding-bottom: .14em; color: var(--text); min-height: 1.2em; }
.deptv2__desc { color: var(--muted); max-width: 46ch; }
.deptv2__text .btn { align-self: flex-start; }
/* char-stagger reveal (the text-rotate effect) */
.rt-char { display: inline-block; transform: translateY(105%); opacity: 0; transition: transform 600ms var(--breathe), opacity 600ms var(--breathe); }
.rt-char.is-in { transform: translateY(0); opacity: 1; }
.rt-word { display: inline-block; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .rt-char { transform: none; opacity: 1; transition: none; } }
/* mobile: stacked cards (no scroll-jack) */
.deptv2__mobile { display: none; }
@media (max-width: 820px) {
  .deptv2 { min-height: 0; }
  .deptv2__grid { display: none; }
  .deptv2__mobile { display: block; padding-block: var(--section-y-sm); }
  .deptv2__mcard { text-align: center; padding: var(--s-5) var(--gutter) var(--s-7); }
  .deptv2__mcard img { display: block; width: min(360px, 86%); aspect-ratio: 4/5; object-fit: cover; border-radius: 36px; box-shadow: var(--shadow-lift-lg); margin-inline: auto; }
  .deptv2__mcard h3 { font-size: 1.5rem; margin-top: 1.25rem; }
  .deptv2__mcard p { color: var(--muted); max-width: 38ch; margin: .6rem auto 1rem; }
}

/* ============ JOURNEY: approach → services pinned descent (one continuous unit) ============
   Pin = position:sticky + getBoundingClientRect() progress (same as .deptv2). Webflow-portable.
   NO overflow:hidden on the sticky ancestor chain; clip the 100vh stage with overflow:clip. */
.journey { position: relative; min-height: 280vh; }          /* tall scroll track, NO clip, NO transform */
.journey__stage { position: sticky; top: 0; height: 100vh; overflow: clip; }

/* approach lives inside the stage, absolutely filling it (no self-padding while pinned) */
.journey .approachv1 { position: absolute; inset: 0; padding-block: 0; display: flex; align-items: center; }
.approachv1__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); width: 100%; }
.approachv1__text { max-width: 460px; }                       /* will-change set by JS only, in-view */
.approachv1__visual { position: relative; min-height: 72vh; display: flex; align-items: center; justify-content: center; }

/* ENLARGED secondary video — a real second plane peeking behind, not a thumbnail */
.approachv1__video {
  position: absolute; z-index: 0; right: -5%; top: 0;
  width: 62%; min-width: clamp(320px, 38vw, 560px); aspect-ratio: 4 / 5;
  object-fit: cover; border-radius: 28px; opacity: .9;
  box-shadow: 0 28px 66px rgba(44,44,44,.18);
}

/* the traveller squircle + concentric outline (JS drives transform per scroll-progress) */
.approachv1__media { position: relative; z-index: 1; width: min(76%, 392px); aspect-ratio: 4 / 5; transform: translate3d(0,0,0); }
.approachv1__shape { position: absolute; inset: 0; overflow: hidden;
  border-radius: 46% 46% 46% 46% / 40% 40% 40% 40%;
  box-shadow: 0 34px 90px rgba(44,44,44,.22);
  transition: border-radius 700ms var(--breathe); }          /* morph is a transition, NOT a scrub */
.approachv1__shape img { width: 100%; height: 100%; object-fit: cover; display: block; }
.approachv1__ring { position: absolute; inset: -5%; pointer-events: none;
  border: 1.5px solid var(--purple); opacity: .4;
  border-radius: 46% 46% 46% 46% / 40% 40% 40% 40%;
  transition: opacity 600ms var(--breathe); }
/* arrival: squircle morphs to rounded-rect to match the centre card */
.approachv1__media.is-arrived .approachv1__shape { border-radius: 22px; }

/* ============ SERVICES: static category cards + image-interspersed marquee ============ */
.journey .servicesv1 { position: absolute; inset: 0; padding-block: 0;
  display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.journey .servicesv1.is-live { pointer-events: auto; }
.servicesv1__head { text-align: center; max-width: 620px; margin: 0 auto 2rem;
  opacity: 0; transform: translate3d(0,24px,0); }

/* --- 3 category cards (static; do NOT marquee) --- */
.servicesv1__cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6);
  margin: 0 auto 2.4rem; max-width: 1040px; width: 100%; }
.scat { position: relative; display: block; text-align: center; text-decoration: none; }
.scat__img { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-soft); }
.scat__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t) var(--breathe); }
.scat:hover .scat__img img { transform: scale(1.04); }
.scat__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--tint), transparent 55%); }
.scat__inset { position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.55); border-radius: 14px; pointer-events: none; }
.scat__label { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; text-align: center;
  font-family: var(--font-display); font-weight: 200; font-size: 1.45rem; color: #fff; text-shadow: 0 1px 12px rgba(44,44,44,.35); }
.scat--left, .scat--right { opacity: 0; transform: translate3d(0,40vh,0); }   /* rise in Phase C */
.scat--centre { opacity: 0; }                                                  /* squircle fills it */

/* --- base pill (reused by the marquee): glass + brand-blue halo → purple halo on hover, light type --- */
.pill { display: inline-flex; align-items: center; padding: .56rem 1.15rem; border-radius: var(--r-pill);
  background: rgba(255,255,255,.20); color: var(--text);
  font-family: var(--font-body); font-weight: 300; font-size: .95rem;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow:
    inset 1px 1px 1px -1px rgba(255,255,255,.9), inset -1px -1px 1px -1px rgba(44,44,44,.10),
    0 0 0 1.25px rgba(171,207,210,.85), 0 0 12px 0 rgba(171,207,210,.40);
  transition: box-shadow var(--t) var(--breathe), transform var(--t) var(--breathe), color var(--t) var(--breathe); }
.pill:hover, .pill:focus-visible { transform: translateY(-2px); color: var(--purple-deep); outline: none;
  box-shadow:
    inset 1px 1px 1px -1px rgba(255,255,255,.9), inset -1px -1px 1px -1px rgba(44,44,44,.10),
    0 0 0 1.25px rgba(146,107,172,.95), 0 0 20px 1px rgba(146,107,172,.50); }

/* --- 3 marquee rows --- */
.servicesv1__marquee { opacity: 0; transform: translate3d(0,24px,0);
  display: flex; flex-direction: column; gap: clamp(.6rem, 1.4vw, 1rem); }
.smq { position: relative; overflow: hidden; width: 100vw; max-width: 100vw;
  margin-inline: calc(50% - 50vw);                                             /* full-bleed, clipped at edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.smq__track { display: flex; width: max-content; will-change: transform;
  animation: smq-marquee var(--smq-dur, 52s) linear infinite; }
.smq[data-dir="right"] .smq__track { animation-name: smq-marquee-rev; }
.smq__half { display: flex; align-items: center; gap: .7rem; padding-right: .7rem; } /* trailing gap = seam gap */
.smq:hover .smq__track, .smq:focus-within .smq__track { animation-play-state: paused; }

@keyframes smq-marquee     { from { transform: translate3d(0,0,0); }    to { transform: translate3d(-50%,0,0); } }
@keyframes smq-marquee-rev { from { transform: translate3d(-50%,0,0); } to { transform: translate3d(0,0,0); } }

.smq__half .pill { flex: 0 0 auto; white-space: nowrap; }
.smq__thumb { flex: 0 0 auto; display: block; width: 120px; height: 46px; border-radius: 14px;
  overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.smq__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- MOBILE: no scroll-jack (mirror deptv2 @820); keep marquees, faster ---- */
@media (max-width: 820px) {
  .journey { min-height: 0; }
  .journey__stage { position: static; height: auto; overflow: visible; }
  .journey .approachv1, .journey .servicesv1 { position: static; inset: auto; padding-block: var(--section-y-sm); }
  .approachv1__grid { grid-template-columns: 1fr; gap: 2rem; }
  .approachv1__visual { min-height: 0; height: 62vh; }
  .approachv1__video { position: static; width: 100%; right: auto; top: auto; margin-top: 1rem; opacity: 1; }
  .approachv1__text, .servicesv1__head, .servicesv1__marquee { opacity: 1 !important; transform: none !important; }
  .scat--left, .scat--right, .scat--centre { opacity: 1 !important; transform: none !important; }
  .servicesv1__cats { grid-template-columns: 1fr; gap: var(--s-5); }
  .smq[data-dir] { --smq-dur: 36s; }              /* ~25% faster: shorter width needs quicker traverse */
  .smq[data-dir="right"] { --smq-dur: 46s; }
  .smq__thumb { width: 92px; height: 40px; }
}

/* ---- REDUCED MOTION: static stacked + tag cloud, manual scroll, no clone ---- */
@media (prefers-reduced-motion: reduce) {
  .journey { min-height: 0; }
  .journey__stage { position: static; height: auto; overflow: visible; }
  .journey .approachv1, .journey .servicesv1 { position: static; inset: auto; padding-block: var(--section-y); }
  .approachv1__text, .servicesv1__head, .servicesv1__marquee,
  .scat--left, .scat--right, .scat--centre { opacity: 1 !important; transform: none !important; }
  .approachv1__media { transform: none !important; }
  .approachv1__video { opacity: .9 !important; }
  .smq { width: auto; max-width: 100%; margin-inline: 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: none; mask-image: none; }
  .smq__track { animation: none !important; transform: none !important; width: max-content; }
  .smq__half { padding-right: .7rem; }
}

/* full-bleed background-image band (placeholder) */
.bgband { position: relative; min-height: 62vh; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.bgband__media { position: absolute; inset: 0; z-index: 0; }
.bgband__media .ph { width: 100%; height: 100%; border: 0; border-radius: 0; }
.bgband__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20,20,28,.40), rgba(20,20,28,.58)); }
.bgband__inner { position: relative; z-index: 2; }
.bgband__title { color: #fff; font-family: var(--font-display); font-weight: 200; font-size: clamp(2rem, 4.5vw, 3.4rem); text-shadow: 0 2px 30px rgba(0,0,0,.4); margin: 1rem auto 1.5rem; max-width: 32ch; }

/* ============ JOURNAL: intro (left) + vertical image stack (right) ============ */
.journalsec__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.journalsec__intro { max-width: 440px; }
.journalsec__intro h2 { margin: .75rem 0 1.25rem; }
.journalsec__intro .btn { margin-top: 1.75rem; }
.journalsec__stack { position: relative; height: 540px; display: flex; align-items: center; justify-content: center; }

/* the stack: current card centred; neighbours scaled, faded, tilted in 3D (no global wheel hijack) */
.imgstack { position: relative; width: 320px; height: 460px; display: flex; align-items: center; justify-content: center; }
.imgstack__viewport { position: relative; width: 280px; height: 420px; touch-action: pan-y; }
.imgcard { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; background: var(--surface);
  box-shadow: 0 18px 50px -16px rgba(44,44,44,.35); cursor: grab;
  opacity: 0; transform: translateY(420px) scale(.6); will-change: transform, opacity;
  transition: transform 620ms var(--breathe), opacity 620ms var(--breathe);
  -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.imgcard:active { cursor: grabbing; }
.imgcard:first-of-type { opacity: 1; transform: translateY(0) scale(1); z-index: 5; }  /* no-JS fallback */
.imgcard.is-current { box-shadow: 0 28px 64px -18px rgba(44,44,44,.45), 0 0 0 1px rgba(146,107,172,.10); }
.imgcard img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
/* depth veil — fades a card toward the page colour as it recedes (keeps cards OPAQUE, no see-through) */
.imgcard__veil { position: absolute; inset: 0; z-index: 4; background: var(--bg); opacity: 0; pointer-events: none;
  transition: opacity 620ms var(--breathe); }
.imgcard__cap { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 1.4rem 1.4rem 1.5rem;
  background: linear-gradient(to top, rgba(20,20,28,.62), transparent); color: #fff; text-align: left; }
.imgcard__cat { font-family: var(--font-ui); font-size: .72rem; font-weight: 400; text-transform: uppercase;
  letter-spacing: var(--tracking-label); color: rgba(255,255,255,.82); }
.imgcard__title { font-family: var(--font-display); font-weight: 200; font-size: 1.3rem; line-height: 1.18; margin-top: .35rem; color: #fff; }

/* vertical dots (right) + counter (left) */
.imgstack__dots { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); z-index: 6;
  display: flex; flex-direction: column; gap: .55rem; }
.imgstack__dot { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; cursor: pointer;
  background: var(--purple-18); transition: height var(--t) var(--breathe), background var(--t) var(--breathe); }
.imgstack__dot.is-active { height: 22px; background: var(--purple-deep); }
.imgstack__counter { position: absolute; left: -10px; top: 50%; transform: translateY(-50%); z-index: 6;
  display: flex; flex-direction: column; align-items: center; color: var(--muted); pointer-events: none; }
.imgstack__counter b { font-family: var(--font-display); font-weight: 200; font-size: 2.6rem; line-height: 1; letter-spacing: -.01em; color: var(--purple-deep); font-variant-numeric: tabular-nums; }
.imgstack__counter i { display: block; width: 26px; height: 1px; background: var(--purple-18); margin: .5rem 0; }
.imgstack__counter span { font-size: .85rem; font-variant-numeric: tabular-nums; }

@media (max-width: 820px) {
  .journalsec__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .journalsec__intro { max-width: none; }
  .journalsec__stack { height: 500px; }
  .imgstack__counter { left: 0; }
  .imgstack__dots { right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .imgcard { transition: opacity 300ms linear; }
}

/* the launchui "Badge" — outline pill with an action link */
.badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .4rem .35rem 1rem;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  font-family: var(--font-ui); font-size: .85rem; color: var(--muted);
}
.badge > a { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .8rem; border-radius: var(--r-pill);
  background: var(--purple-08); color: var(--purple-deep); font-weight: 400; transition: background var(--t-fast) var(--breathe); }
.badge > a:hover { background: var(--purple-12); }

/* TASK 1 media — MockupFrame + Mockup with a grey placeholder + purple glow */
.mockup-wrap { position: relative; margin-top: 3.5rem; width: 100%; display: flex; justify-content: center; }
.adbanner__glow {
  position: absolute; left: 50%; top: -6%; transform: translateX(-50%);
  width: min(760px, 80vw); height: 340px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center,
    rgba(146,107,172,.45) 0%, rgba(146,107,172,.14) 40%, rgba(146,107,172,0) 70%);
  filter: blur(16px);
}
.mockup-frame {
  position: relative; z-index: 2; width: min(1000px, 92vw); padding: 10px; border-radius: 22px;
  background: var(--purple-06);
  box-shadow: 0 30px 80px rgba(44,44,44,.10), inset 0 1px 0 rgba(255,255,255,.6);
}
.mockup {
  position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 9;
  border: 1px solid rgba(44,44,44,.06); border-top: 1px solid rgba(44,44,44,.12);
  box-shadow: 0 24px 60px rgba(44,44,44,.20);
}
.mockup .ph { width: 100%; height: 100%; border: 0; border-radius: 0; }
.mockup video, .mockup img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* TASK 2 — section + vertical-oval clinic video that EXPANDS on scroll */
.videosec { text-align: center; padding-bottom: calc(var(--section-y) + 3rem); }
.videosec__media { position: relative; margin-top: 6rem; display: flex; justify-content: center; align-items: center; min-height: 220px; }
.videosec__glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(700px, 84vw); height: 380px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(146,107,172,.40) 0%, rgba(146,107,172,.12) 38%, rgba(146,107,172,0) 70%);
  filter: blur(12px);
}
.herovideo {
  position: relative; z-index: 1; overflow: hidden;
  width: 250px; height: 360px; border-radius: 180px;   /* vertical oval / capsule */
  box-shadow: 0 26px 72px rgba(146,107,172,.24), var(--glass-rim);
  background: linear-gradient(160deg, var(--purple-12), var(--sage-12));
  will-change: width, height, border-radius;
}
.herovideo video, .herovideo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) { .herovideo { width: min(1120px, 92vw); height: 620px; border-radius: 28px; } }

/* ==========================================================================
   2. Parallax scroll feature section (alternating, clip-reveal + drift)
   ========================================================================== */
.features { padding-block: var(--section-y); position: relative; }
.feature { display: grid; grid-template-columns: 1fr; gap: var(--s-6); align-items: center; padding-block: var(--s-7); }
@media (min-width: 820px) {
  .feature { grid-template-columns: 1fr 1fr; gap: var(--s-9); padding-block: var(--s-8); }
  .feature--reverse .feature__text { order: 2; }
}
.feature__text { max-width: 42ch; }
.feature__media { position: relative; }
.feature__num { font-family: var(--font-display); font-weight: 200; font-size: 3rem; line-height: 1; color: var(--purple-deep); opacity: .5; }
/* clip-reveal: image wipes open when its feature enters (gated on JS) */
html.js .feature__media .ph { clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--breathe); }
html.js .feature.is-in .feature__media .ph { clip-path: inset(0 0 0 0); }

/* ==========================================================================
   3. Footer giant hover-reveal text + Bedaya gradient glow
   ========================================================================== */
.footer-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(125% 125% at 50% 8%, var(--bg-sage) 45%, rgba(146,107,172,.16) 100%);
}
.site-footer { position: relative; } /* contain the glow + giant text */
.site-footer .container { position: relative; z-index: 2; }

.footer-hero { position: relative; z-index: 1; margin-top: var(--s-6); pointer-events: none; }
.footer-hovertext { width: 100%; height: clamp(110px, 20vw, 280px); display: block; pointer-events: auto; cursor: default; }
.footer-hovertext text { font-family: var(--font-display); font-weight: 400; font-size: 64px; letter-spacing: .02em; }
.ft-outline { fill: transparent; stroke: rgba(146,107,172,.20); stroke-width: .5; }
.ft-fill { fill: transparent; stroke-width: .6; }
@media (prefers-reduced-motion: reduce) { .ft-fill { display: none; } }

/* ===== Practitioners — filterable flip-reveal team grid (white bg) ===== */
.pteam { background: #fff; }
.pteam .container { display: flex; flex-direction: column; align-items: center; }
/* filter toggle */
.pfilter { display: inline-flex; gap: .2rem; padding: .3rem; border-radius: var(--r-pill);
  background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid rgba(255,255,255,.7); margin: 0 auto 3rem;
  box-shadow: 0 6px 20px rgba(44,44,44,.06), inset 0 1px 1px rgba(255,255,255,.8); }
.pfilter__btn { appearance: none; border: 0; cursor: pointer; background: transparent;
  font-family: var(--font-body); font-weight: 300; font-size: .95rem; letter-spacing: .015em; color: var(--muted);
  padding: .55rem 1.15rem; border-radius: var(--r-pill);
  transition: background var(--t) var(--breathe), color var(--t) var(--breathe), box-shadow var(--t) var(--breathe); }
.pfilter__btn:hover { color: var(--text); }
/* selected category — frosted-glass purple, slightly transparent, soft brand halo (not a solid fill) */
.pfilter__btn.is-active { color: var(--purple-deep);
  background: rgba(146,107,172,.16);
  -webkit-backdrop-filter: blur(8px) saturate(1.2); backdrop-filter: blur(8px) saturate(1.2);
  box-shadow:
    inset 1.5px 1.5px 1px -1px rgba(255,255,255,.9), inset -1.5px -1.5px 1px -1px rgba(44,44,44,.10),
    0 0 0 1.5px rgba(146,107,172,.5), 0 4px 16px rgba(146,107,172,.26); }
.pfilter__btn:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* ── Practitioners: boxless editorial portraits on the pale field ─────────────
   The studio portraits sit on a near-#F1F3F1 seamless background, so they bleed
   straight into the page — no card box. Arch-masked figure + dept-tinted aura. */

/* intro count line */
.pintro__count { margin-top: 1.4rem; font-family: var(--font-ui); font-size: var(--fs-small);
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* department jump pills */
.pjump { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem;
  margin: clamp(1.8rem, 3.4vw, 2.8rem) auto 0; padding: 0 1.2rem; max-width: 900px; }
.pjump__pill { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px;
  padding: .55rem 1.25rem; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--text); font-size: .95rem;
  box-shadow: 0 6px 18px -10px rgba(44,44,44,.16); cursor: pointer;
  transition: transform .25s var(--breathe), box-shadow .25s var(--breathe), border-color .25s var(--breathe); }
.pjump__pill:hover { transform: translateY(-2px); border-color: var(--tint-strong);
  box-shadow: 0 12px 26px -12px rgba(44,44,44,.22); }
.pjump__pill:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.pjump__num { font-family: var(--font-display); font-weight: 200; font-size: .8rem;
  letter-spacing: .08em; color: var(--tint-text); }
.pjump__count { display: inline-grid; place-items: center; min-width: 1.55rem; height: 1.55rem;
  padding: 0 .35rem; border-radius: 999px; background: var(--tint-soft); color: var(--tint-text);
  font-size: .78rem; font-variant-numeric: tabular-nums; }

/* department section header — centred, giant faint numeral behind (the Pentagram move) */
.pdept[id] { scroll-margin-top: 110px; }
.pdept--first { padding-top: 0; }
.pdept__head { position: relative; max-width: 1240px; margin: 0 auto clamp(2.2rem, 4vw, 3.4rem); text-align: center; }
.pdept__head > :not(.pdept__bignum) { position: relative; z-index: 1; }
.pdept__bignum { position: absolute; z-index: 0; top: -.4em; left: 50%; transform: translateX(-50%);
  line-height: .8; pointer-events: none;
  font-family: var(--font-display); font-weight: 200; letter-spacing: -.04em;
  font-size: clamp(4.6rem, 8vw, 7.5rem); color: var(--tint-text, var(--purple)); opacity: .09; }
.pdept__title { font-weight: 200; letter-spacing: -.012em; margin: 0 0 .55rem; }
.pdept__line { margin: 0 auto; }
.pdept__head::after { content: ""; display: block; width: 64px; height: 2px; margin: 1.15rem auto 0;
  border-radius: 2px; background: var(--tint-strong, var(--purple)); opacity: .55; }

/* grid — flex-wrap so incomplete last rows centre instead of hugging the left */
.pgrid { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-content: start;
  --pg-gap: clamp(1.4rem, 2.6vw, 2.2rem); gap: clamp(2.2rem, 4vw, 3rem) var(--pg-gap);
  width: 100%; max-width: 1240px; margin: 0 auto; }
.pgrid > * { width: 100%; }
@media (min-width: 520px) { .pgrid > * { width: calc((100% - var(--pg-gap)) / 2); } }
@media (min-width: 760px) { .pgrid > * { width: calc((100% - 2 * var(--pg-gap)) / 3); } }
@media (min-width: 1040px) { .pgrid > * { width: calc((100% - 3 * var(--pg-gap)) / 4); } }

/* dept tints — halo/dome values carried over from the previous card design */
.pfig--medical, .pjump__pill.pfig--medical {
  --tint-soft: rgba(146,107,172,.14); --halo: rgba(146,107,172,.36); --halo-h: rgba(146,107,172,.60);
  --dome: rgba(146,107,172,.26); --tint-strong: #926BAC; --tint-text: #7A5694; }
.pfig--wellness, .pjump__pill.pfig--wellness {
  --tint-soft: rgba(163,203,145,.18); --halo: rgba(163,203,145,.40); --halo-h: rgba(138,170,123,.62);
  --dome: rgba(163,203,145,.32); --tint-strong: #8AAA7B; --tint-text: #64825A; }
.pfig--little, .pjump__pill.pfig--little {
  --tint-soft: rgba(171,207,210,.22); --halo: rgba(171,207,210,.46); --halo-h: rgba(171,207,210,.72);
  --dome: rgba(171,207,210,.40); --tint-strong: #5E8E92; --tint-text: #4E7A7E; }

/* the figure — arch-masked portrait, no box; brand halo glow like the previous cards */
.pfig { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  text-decoration: none; color: inherit; cursor: pointer; border-radius: 24px; }
.pfig:focus-visible { outline: 2px solid var(--tint-strong, var(--purple)); outline-offset: 6px; }

.pfig__frame { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px 26px 26px;               /* the arch */
  background: linear-gradient(180deg, var(--tint-soft) 0%, rgba(255,255,255,.55) 78%);
  box-shadow: 0 6px 16px rgba(44,44,44,.10), 0 0 26px 3px var(--halo);
  transition: transform .35s var(--breathe), box-shadow .5s var(--breathe); }
.pfig:hover .pfig__frame { transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(44,44,44,.12), 0 0 44px 8px var(--halo-h); }

/* soft dept aura resting behind the person */
.pfig__aura { position: absolute; inset: auto -18% -32% -18%; height: 88%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 88%, var(--dome) 0%, transparent 68%);
  opacity: .8; transition: opacity .5s var(--breathe); }
.pfig:hover .pfig__aura { opacity: 1; }

.pfig__frame img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block; transition: transform .6s var(--breathe); }
.pfig:hover .pfig__frame img { transform: scale(1.04); }

/* the bottom 'pop' — brand-mark dome rises from the bottom on hover (previous card's signature) */
.pfig__pop { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; z-index: 2; pointer-events: none;
  clip-path: inset(100% 0 0 0); transition: clip-path .55s ease-out; }
.pfig:hover .pfig__pop { clip-path: inset(0 0 0 0); }
.pfig__dome { position: absolute; inset: 0; border-radius: 50% 50% 0 0 / 90% 90% 0 0;
  background: linear-gradient(to top, var(--dome), transparent 80%); }

.pfig__meta { display: flex; flex-direction: column; align-items: center; gap: .18rem;
  padding: 1.05rem .4rem 0; }
.pfig__name { font-family: var(--font-display); font-weight: 200; font-size: 1.3rem; letter-spacing: -.01em; margin: 0; }
/* darkened from --muted: small text on the pale field needs ≥4.5:1 (AA) */
.pfig__role { color: #676767; font-size: .92rem; }
.pfig__langs { margin-top: .3rem; font-family: var(--font-ui); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: #676767; }

@media (prefers-reduced-motion: reduce) {
  .pfig__frame, .pfig__frame img, .pfig__aura, .pfig__pop, .pjump__pill { transition: none; }
  .pfig:hover .pfig__frame, .pfig:hover .pfig__frame img { transform: none; }
  .pfig:hover .pfig__pop { clip-path: inset(0 0 0 0); }
}

/* ── Practitioner profile page — editorial feature, same tint system ─────────── */
.pprof { padding-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.pprof__grid { display: grid; grid-template-columns: 1fr; align-items: center;
  gap: clamp(2rem, 4.5vw, 4.5rem); }
@media (min-width: 820px) { .pprof__grid { grid-template-columns: minmax(320px, 480px) 1fr; } }

.pprof__media .pfig__frame { display: block; max-width: 480px; margin: 0 auto; cursor: default; }
.pprof__media .pfig__frame:hover { transform: none; }

.pprof__eyebrow { color: var(--tint-text, var(--purple)); }
.pprof__name { margin: .55rem 0 .8rem; font-weight: 200; letter-spacing: -.015em;
  font-size: clamp(2.3rem, 4.6vw, 3.4rem); line-height: 1.06; }
.pprof__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; margin: 0 0 1.4rem; }
.pprof__dept { display: inline-flex; align-items: center; min-height: 1.9rem; padding: .2rem .85rem;
  border-radius: 999px; background: var(--tint-soft); color: var(--tint-text); font-size: .85rem; }
.pprof__langs { font-family: var(--font-ui); font-size: .76rem; letter-spacing: .12em;
  text-transform: uppercase; color: #676767; }
/* the personal quote — a thin display line, the one moment of flourish */
.pprof__quote { font-family: var(--font-display); font-weight: 200; font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  line-height: 1.35; letter-spacing: -.01em; color: var(--text); max-width: 30ch; margin: 0 0 1.7rem; }
.pprof__quote > span { color: var(--tint-strong); }
.pprof__cta { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 819px) { .pprof__body { text-align: center; }
  .pprof__meta, .pprof__cta { justify-content: center; } .pprof__quote { margin-inline: auto; } }

/* detail grid — main content + sticky care aside, full container width */
.pprof-detail { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3.4rem);
  align-items: start; }
@media (min-width: 1000px) { .pprof-detail { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); } }
.pprof-detail__main { display: flex; flex-direction: column; gap: clamp(2rem, 3.6vw, 3rem); min-width: 0; }
@media (min-width: 1000px) { .pprof-detail__aside { position: sticky; top: 110px; } }

/* about — wide block, readable paragraph measure */
.pprof-about .rich { margin-top: 1rem; max-width: none; }
.pprof-about .rich p { max-width: 75ch; }

/* specialties — soft white panel, two-column checklist with tinted dot markers */
.pprof-specs { background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(1.6rem, 3.2vw, 2.6rem); box-shadow: 0 12px 34px -18px rgba(44,44,44,.16); }
.pprof-specs__title { font-weight: 200; font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 0 0 1.1rem; }
.pprof-specs__list ul { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: 1fr; gap: .65rem 2rem; }
@media (min-width: 640px) { .pprof-specs__list ul { grid-template-columns: 1fr 1fr; } }
.pprof-specs__list li { position: relative; padding-left: 1.55rem; line-height: 1.5; }
/* brand leaf marks as bullets — alternating purple / green */
.pprof-specs__list li::before { content: ""; position: absolute; left: 0; top: .28em;
  width: .8rem; height: .98rem; background: url('/assets/leaves/leaf-purple.png') no-repeat center / contain; }
.pprof-specs__list li:nth-child(even)::before { background-image: url('/assets/leaves/leaf-green.png'); }

/* services & treatments — the care card (aside): white panel, chips in the pill language */
.pprof-care { background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(1.5rem, 2.6vw, 2.1rem); box-shadow: 0 12px 34px -18px rgba(44,44,44,.16); }
.pprof-care .pchip { box-shadow: none; border-color: var(--line); }
.pprof-care .pchip:hover { border-color: var(--tint-strong); }
.pprof-care__cta { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.pprof-care__cta .btn { width: 100%; justify-content: center; }
.pprof-care__title { font-weight: 200; font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 0 0 1.4rem; }
.pprof-care__group { margin-bottom: 1.4rem; }
.pprof-care__group:last-child { margin-bottom: 0; }
.pprof-care__label { display: block; font-family: var(--font-ui); font-size: var(--fs-small);
  letter-spacing: .14em; text-transform: uppercase; color: #676767; margin-bottom: .7rem; }
.pprof-care__chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.pchip { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.15rem;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none;
  color: var(--text); font-size: .93rem; box-shadow: 0 5px 16px -10px rgba(44,44,44,.16); cursor: pointer;
  transition: transform .25s var(--breathe), box-shadow .25s var(--breathe),
    border-color .25s var(--breathe), background .25s var(--breathe), color .25s var(--breathe); }
.pchip:hover { transform: translateY(-2px); border-color: var(--tint-strong);
  box-shadow: 0 10px 22px -12px rgba(44,44,44,.24); }
.pchip:focus-visible { outline: 2px solid var(--tint-strong, var(--purple)); outline-offset: 3px; }
.pchip--solid { background: var(--tint-soft); border-color: transparent; color: var(--tint-text); }
.pchip--solid:hover { background: var(--tint-strong); color: #fff; }

/* colleagues trio — same figures, capped width */
.pgrid--trio { max-width: 950px; }
@media (min-width: 760px) { .pgrid--trio > * { width: calc((100% - 2 * var(--pg-gap)) / 3); } }

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

/* ── Department portrait band — cinematic image under the gradient title ─────── */
.dept-band { position: relative; z-index: 1; margin-top: -1.5rem; }
.dept-band__frame { margin: 0; overflow: hidden; border-radius: 26px;
  aspect-ratio: 5 / 2; box-shadow: 0 28px 64px -28px rgba(44,44,44,.35); }
@media (max-width: 719px) { .dept-band__frame { aspect-ratio: 4 / 3; } }
.dept-band__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* soft brand grade so the photography sits in the palette (same law as station media) */
.dept-band__frame { position: relative; }
.dept-band__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  mix-blend-mode: soft-light; opacity: .28;
  background: linear-gradient(150deg, rgba(146,107,172,.75) 0%, rgba(163,203,145,.4) 55%, rgba(171,207,210,.75) 100%); }
.dept-band + .stations { padding-top: clamp(2rem, 4vw, 3.4rem); }

/* ── Treatment page — hero (text ↔ arch image) + facts, tint system shared ───── */
.thero { padding-bottom: clamp(1.2rem, 2.6vw, 2.2rem); }
.thero__grid { display: grid; grid-template-columns: 1fr; align-items: center;
  gap: clamp(2rem, 4.5vw, 4.5rem); }
@media (min-width: 820px) { .thero__grid { grid-template-columns: 1fr minmax(300px, 430px); } }
.thero__media .pfig__frame { display: block; max-width: 430px; margin: 0 auto; cursor: default; }
.thero__media .pfig__frame:hover { transform: none; }
.thero__title { margin: .55rem 0 .9rem; font-weight: 200; letter-spacing: -.015em;
  font-size: clamp(2.2rem, 4.4vw, 3.3rem); line-height: 1.06; }
.thero__lead { margin: 0 0 1.3rem; }
.thero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin: 0 0 1.6rem; }
.thero__fact { font-family: var(--font-ui); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: #676767; }
@media (max-width: 819px) {
  .thero__media { order: -1; }
  .thero__body { text-align: center; }
  .thero__meta, .thero__body .pprof__cta { justify-content: center; }
}

/* at-a-glance facts inside the booking card */
.tfacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.tfacts li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
.tfacts li span { font-family: var(--font-ui); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: #676767; white-space: nowrap; }
.tfacts li b { font-weight: 400; color: var(--tint-text, var(--purple-deep)); font-size: .92rem; text-align: right; }

/* practitioner minis in the aside */
.tpeople { display: flex; flex-direction: column; gap: .6rem; }
.tperson { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: inherit;
  padding: .45rem .55rem; border-radius: 14px; transition: background .25s var(--breathe); }
.tperson:hover { background: var(--tint-soft, rgba(146,107,172,.1)); }
.tperson:focus-visible { outline: 2px solid var(--tint-strong, var(--purple)); outline-offset: 2px; }
.tperson img { width: 3.1rem; height: 3.9rem; object-fit: cover; object-position: center top;
  border-radius: 999px 999px 10px 10px; flex: 0 0 auto; }
.tperson__meta { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.tperson__name { font-family: var(--font-display); font-weight: 300; font-size: .98rem; }
.tperson__role { color: #676767; font-size: .78rem; }

/* article link-preview card — robust grid (the old flex/ph combo let the image overflow) */
.lp { display: grid; grid-template-columns: 1fr; overflow: hidden; margin: 2.25rem 0;
  text-decoration: none; color: inherit; background: var(--bg-teal);
  border: 1px solid var(--line); border-radius: 18px;
  transition: transform .3s var(--breathe), box-shadow .3s var(--breathe); }
@media (min-width: 620px) { .lp { grid-template-columns: 240px 1fr; } }
.lp:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(44,44,44,.24); }
.lp:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.lp__img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; display: block; }
.lp__body { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem;
  padding: 1.5rem 1.75rem; }
.lp__title { font-family: var(--font-display); font-weight: 200; font-size: 1.35rem; letter-spacing: -.01em; }
.lp__text { color: var(--body); line-height: 1.6; }
.lp__more { margin-top: .35rem; color: var(--purple-deep); }

/* article FAQ — numbered accordion, calm and boxless-to-open */
.faqx { display: flex; flex-direction: column; gap: .85rem; max-width: 1100px; margin: 0 auto; }
.faqx__item { background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 10px 30px -18px rgba(44,44,44,.14); overflow: hidden; }
.faqx__q { display: flex; align-items: center; gap: 1.1rem; padding: 1.15rem 1.4rem;
  cursor: pointer; list-style: none; }
.faqx__q::-webkit-details-marker { display: none; }
.faqx__q:focus-visible { outline: 2px solid var(--purple); outline-offset: -2px; border-radius: 18px; }
.faqx__num { font-family: var(--font-display); font-weight: 200; font-size: 1.25rem;
  color: var(--purple); opacity: .55; flex: 0 0 auto; }
.faqx__label { font-family: var(--font-display); font-weight: 200; font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  letter-spacing: -.01em; line-height: 1.3; flex: 1 1 auto; }
/* the toggle — a thin + that becomes a − */
.faqx__toggle { position: relative; flex: 0 0 auto; width: 2.1rem; height: 2.1rem; border-radius: 999px;
  background: var(--purple-08, rgba(146,107,172,.09)); transition: background .3s var(--breathe); }
.faqx__toggle::before, .faqx__toggle::after { content: ""; position: absolute; left: 50%; top: 50%;
  width: .85rem; height: 1.5px; background: var(--purple-deep); transform: translate(-50%, -50%);
  transition: transform .35s var(--breathe); }
.faqx__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faqx__item[open] .faqx__toggle { background: var(--purple); }
.faqx__item[open] .faqx__toggle::before, .faqx__item[open] .faqx__toggle::after { background: #fff; }
.faqx__item[open] .faqx__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.faqx__a { padding: 0 1.4rem 1.3rem calc(1.4rem + 1.25rem + 1.1rem); color: var(--body); line-height: 1.65; }
.faqx__a p { margin: 0; }
@media (max-width: 560px) { .faqx__a { padding-left: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { .faqx__toggle, .faqx__toggle::before, .faqx__toggle::after { transition: none; } }

/* article page — measured headline (the generic .display was oversized for a reading page) */
.article-title { font-family: var(--font-display); font-weight: 200; letter-spacing: -.02em;
  line-height: 1.12; font-size: clamp(2rem, 3.8vw, 3rem); max-width: 26ch; }
.article-title em { font-style: normal; color: var(--purple-deep); }

/* rich text with the brand leaf bullets (treatment bodies) */
.rich--leaf ul { list-style: none; padding-left: 0; }
.rich--leaf ul li { position: relative; padding-left: 1.55rem; margin-bottom: .45rem; }
.rich--leaf ul li::before { content: ""; position: absolute; left: 0; top: .3em;
  width: .8rem; height: .98rem; background: url('/assets/leaves/leaf-purple.png') no-repeat center / contain; }
.rich--leaf ul li:nth-child(even)::before { background-image: url('/assets/leaves/leaf-green.png'); }

/* ── Explore-more: cross-navigation cards (Departments · Treatments · Our Story) ── */
.explore { background: #fff; text-align: center; }
.explore .container { display: flex; flex-direction: column; align-items: center; }
.explore__head { max-width: 30ch; margin: 0 auto; }
.explore__head h2 { margin: .55rem auto 0; }
.explore__grid { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 2.1vw, 1.6rem);
  width: 100%; max-width: 1180px; margin: clamp(2.2rem, 4vw, 3.2rem) auto 0; }
@media (min-width: 720px) { .explore__grid { grid-template-columns: repeat(3, 1fr); } }
/* full-bleed photo cards: image is the background, hued gradient scrim, text overlaid */
.xcard { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  justify-content: flex-end; min-height: clamp(360px, 33vw, 460px); text-align: left; border-radius: 22px;
  box-shadow: 0 14px 38px -16px rgba(44,44,44,.30);
  transition: transform .35s var(--breathe), box-shadow .35s var(--breathe); }
.xcard:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -22px rgba(44,44,44,.42); }
.xcard__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.xcard__media img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s var(--breathe); }
.xcard:hover .xcard__media img { transform: scale(1.06); }
/* hued gradient so the text stays legible — neutral fallback + per-card brand tint */
.xcard__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,28,0) 24%, rgba(20,20,28,.42) 58%, rgba(20,20,28,.82) 100%); }
.xcard--purple .xcard__media::after { background: linear-gradient(180deg, rgba(58,40,74,0) 22%, rgba(52,34,68,.52) 56%, rgba(36,22,50,.88) 100%); }
.xcard--sage   .xcard__media::after { background: linear-gradient(180deg, rgba(40,58,38,0) 22%, rgba(36,54,34,.5) 56%, rgba(24,40,24,.86) 100%); }
.xcard--teal   .xcard__media::after { background: linear-gradient(180deg, rgba(34,58,60,0) 22%, rgba(28,52,54,.5) 56%, rgba(20,42,44,.86) 100%); }
.xcard__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start;
  gap: .7rem; padding: clamp(1.6rem, 2.2vw, 2.2rem); }
.xcard__eyebrow { color: #fff; opacity: .82; }
.xcard__title { font-family: var(--font-display); font-weight: 200; letter-spacing: -.01em;
  font-size: clamp(1.55rem, 2.3vw, 2rem); line-height: 1.1; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.xcard__intro { color: rgba(255,255,255,.92); font-weight: 300; line-height: 1.6; max-width: 42ch;
  text-shadow: 0 1px 16px rgba(0,0,0,.4); }
.xcard .btn { margin-top: .5rem; }
/* glass button reads white over the photo (mirrors the hero halo treatment) */
.xcard .btn--halo { color: #fff; background: rgba(255,255,255,.15);
  box-shadow:
    inset 1.5px 1.5px 1px -1px rgba(255,255,255,.55), inset -1.5px -1.5px 1px -1px rgba(0,0,0,.10),
    0 0 0 1.5px rgba(255,255,255,.50), 0 0 22px 3px rgba(171,207,210,.45); }
.xcard .btn--halo:hover { color: #fff;
  box-shadow:
    inset 1.5px 1.5px 1px -1px rgba(255,255,255,.6), inset -1.5px -1.5px 1px -1px rgba(0,0,0,.10),
    0 0 0 1.5px rgba(255,255,255,.72), 0 0 26px 4px rgba(146,107,172,.5); }

/* ── White page + ambient drifting gradient aura (scroll feel like the home page) ── */
body.page-white { background: #fff; }
body.page-white .pteam,
body.page-white .explore { background: transparent; }
/* the aura sits behind all content, fixed to the viewport so it drifts under the scroll */
.page-aura { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.page-aura .blob { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%;
  filter: blur(90px); opacity: .4; will-change: transform; }
.page-aura .blob--1 { background: radial-gradient(circle at center, rgba(146,107,172,.5), transparent 60%);
  top: -14%; left: -8%; animation: drift1 26s ease-in-out infinite; }
.page-aura .blob--2 { background: radial-gradient(circle at center, rgba(163,203,145,.5), transparent 60%);
  bottom: -18%; right: -12%; animation: drift2 32s ease-in-out infinite; }
.page-aura .blob--3 { background: radial-gradient(circle at center, rgba(171,207,210,.45), transparent 60%);
  top: 38%; left: 44%; animation: drift3 38s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .page-aura .blob { animation: none; } }

/* ── Departments hero: gradient title + soft brand glow (translated from the launch-ui block) ── */
.dept-hero { position: relative; overflow: hidden; min-height: 80vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 8rem 1.5rem 5rem; }
.dept-hero .container { position: relative; z-index: 2; }
.dept-hero .eyebrow { display: block; margin-bottom: 1.1rem; }
/* the Glow — radial brand gradients behind the title, in Bedaya colours (not the original orange) */
/* a single, contained luminous bloom — restraint, not a muddy blob */
.dept-hero__glow { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%);
  width: min(620px, 84vw); height: 340px; z-index: 0; pointer-events: none; filter: blur(4px);
  background:
    radial-gradient(ellipse 58% 60% at 47% 48%, rgba(146,107,172,.22), transparent 68%),
    radial-gradient(ellipse 44% 50% at 66% 62%, rgba(171,207,210,.16), transparent 72%); }
/* confident scale, tight optical tracking, intentional purple→teal gradient with real contrast */
.dept-hero__title { font-family: var(--font-display); font-weight: 200; letter-spacing: -.035em; line-height: 1.03;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem); max-width: 15ch; margin: 0 auto;
  background: linear-gradient(98deg, var(--purple-deep) 0%, var(--purple) 44%, var(--teal-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
/* credibility microline — authority without shouting */
.dept-hero__trust { margin: 1.7rem auto 0; max-width: none; font-family: var(--font-ui); font-size: .76rem;
  letter-spacing: .17em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.dept-hero__trust b { font-weight: 400; color: var(--purple-deep); }

/* elegant scroll cue — a dot travels down a hairline */
.scroll-cue { position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .7rem; text-decoration: none;
  color: var(--muted); transition: color var(--t) var(--breathe); }
.scroll-cue:hover { color: var(--purple-deep); }
.scroll-cue__label { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 300; }
.scroll-cue__line { position: relative; width: 1px; height: 56px; overflow: hidden;
  background: linear-gradient(var(--line), transparent); }
.scroll-cue__dot { position: absolute; left: 50%; top: 0; width: 5px; height: 5px; border-radius: 50%;
  background: var(--purple); transform: translateX(-50%); animation: scrollDot 2.2s ease-in-out infinite; }
@keyframes scrollDot { 0% { top: -7px; opacity: 0; } 28% { opacity: 1; } 75% { opacity: 1; } 100% { top: 58px; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue__dot { animation: none; top: 24px; } }

/* discover row with only two cards — centre them and keep them roomy */
@media (min-width: 720px) { .explore__grid--two { grid-template-columns: repeat(2, 1fr); max-width: 880px; } }

/* ── Premium blur-in reveal (21st.dev blur-slide) — layers on .reveal ── */
html.js .reveal--blur { filter: blur(14px); transform: translateY(16px); }
html.js .reveal--blur.is-in { filter: blur(0); transform: none; }
.reveal--blur { transition: opacity 1s var(--breathe), transform 1s var(--breathe), filter 1s var(--breathe); }
@media (prefers-reduced-motion: reduce) { html.js .reveal--blur { filter: none; transform: none; } }

/* compact hero variant for inner department pages (content above the fold) */
.dept-hero--compact { min-height: 34vh; padding: 7rem 1.5rem 3.5rem; }
.dept-hero--compact .scroll-cue { display: none; }
/* service pages: the title stands alone now — let it run wide (single line on desktop) */
.dept-hero--compact .dept-hero__title { max-width: none; }

/* ============================================================
   SPECIALTY COMPASS — the grid IS the menu (fast wayfinding).
   No-JS baseline: cards/pills are real #slug anchors; :target
   highlights the block. JS layers active-state + smooth scroll.
   ============================================================ */
.compass { padding-top: clamp(.5rem, 2vw, 1.5rem); }
.compass__head { max-width: 1140px; margin: 0 auto clamp(1.6rem, 3vw, 2.4rem); text-align: center; }
.compass__head .eyebrow { display: block; margin-bottom: .55rem; }
.compass__head h2 { margin: .15rem auto; }
.compass__kicker { color: var(--muted); margin: .7rem auto 0; }
.compass__group { font-family: var(--font-ui); font-size: var(--fs-small); letter-spacing: .16em;
  text-transform: uppercase; color: var(--sage-dark); margin: clamp(1.3rem,3vw,1.9rem) 0 .8rem; }
.compass__group:first-of-type { margin-top: 0; }
.compass__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.7rem, 1.5vw, 1.1rem); }
@media (min-width: 980px) { .compass__grid { grid-template-columns: repeat(3, 1fr); } }

.scard { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 10px 30px -16px rgba(44,44,44,.18);
  transition: transform .35s var(--breathe), box-shadow .35s var(--breathe), border-color .35s var(--breathe); }
.scard:hover { transform: translateY(-4px); box-shadow: 0 22px 46px -20px rgba(44,44,44,.26); }
.scard__media { display: block; position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg); }
.scard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--breathe); }
.scard:hover .scard__media img { transform: scale(1.05); }
.scard__body { display: flex; flex-direction: column; gap: .18rem; padding: .9rem 1.05rem 1.05rem; flex: 1; }
.scard__name { font-family: var(--font-display); font-weight: 200; font-size: 1.24rem; letter-spacing: -.01em; line-height: 1.16; color: var(--text); }
.scard__need { color: var(--body); font-size: .9rem; line-height: 1.4; }
.scard__go { margin-top: .55rem; color: var(--purple-deep); font-family: var(--font-ui); font-size: .82rem;
  letter-spacing: .02em; display: inline-flex; align-items: center; gap: .35rem; }
.scard__go .arr { transition: transform var(--t) var(--breathe); }
.scard:hover .scard__go .arr { transform: translateX(4px); }
.scard.is-active { border-color: rgba(146,107,172,.55);
  box-shadow: 0 0 0 1.5px rgba(146,107,172,.5), 0 18px 40px -18px rgba(146,107,172,.36); }
/* MOBILE: compact rows so every specialty fits under the fold */
@media (max-width: 639px) {
  .compass__grid { grid-template-columns: 1fr; gap: .55rem; }
  .scard { flex-direction: row; align-items: center; gap: .85rem; padding: .55rem .7rem; border-radius: 14px; }
  .scard__media { flex: 0 0 52px; width: 52px; height: 52px; aspect-ratio: 1; border-radius: 10px; }
  .scard__body { padding: 0; gap: .04rem; }
  .scard__name { font-size: 1.05rem; }
  .scard__need { font-size: .82rem; }
  .scard__go { display: none; }
  .scard::after { content: "\203A"; margin-left: auto; padding-right: .25rem; color: var(--muted); font-size: 1.4rem; line-height: 1; }
}

/* sticky specialty re-selector rail — pure-CSS sticky; the durable navigator */
/* treatments page: wrapper that bounds the sticky category specbar across all category sections */
.treat-filter { position: relative; padding-top: clamp(.5rem, 2vw, 1.4rem); }
/* centre the treatment cards — flex so partial rows centre per-row (not left-aligned/stretched) */
.treat-filter .cards { display: flex; flex-wrap: wrap; justify-content: center; }
.treat-filter .cards > * { flex: 0 1 290px; }
/* lighter titles + buttons on the treatments page (brand: stick to the light weight) */
[data-page="treatments"] .spot-card__title { font-weight: 200; }
[data-page="treatments"] .btn { font-weight: 200; }
.specbar { position: sticky; top: 70px; z-index: 30; display: flex; justify-content: center;
  margin: clamp(.4rem, 2vw, 1.2rem) auto clamp(1.6rem, 3vw, 2.4rem); pointer-events: none; }
.specbar__inner { pointer-events: auto; display: flex; gap: .2rem; max-width: 92vw; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding: .3rem;
  border-radius: var(--r-pill); background: rgba(255,255,255,.62);
  -webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid rgba(255,255,255,.7); box-shadow: 0 8px 24px rgba(44,44,44,.08), inset 0 1px 1px rgba(255,255,255,.8); }
.specbar__inner::-webkit-scrollbar { display: none; }
.specbar__pill { flex: 0 0 auto; scroll-snap-align: center; white-space: nowrap; text-decoration: none;
  font-family: var(--font-display); font-weight: 200; font-size: .98rem; letter-spacing: .005em;
  color: var(--muted); padding: .5rem 1.05rem; border-radius: var(--r-pill);
  transition: color var(--t) var(--breathe), box-shadow var(--t) var(--breathe), background var(--t) var(--breathe); }
.specbar__pill:hover { color: var(--text); }
/* selected = frosted-glass bubble with a soft brand halo (the site's glass language) */
.specbar__pill.is-active { color: var(--purple-deep); background: rgba(255,255,255,.5);
  box-shadow:
    inset 1.5px 1.5px 1px -1px rgba(255,255,255,.9), inset -1.5px -1.5px 1px -1px rgba(44,44,44,.12),
    0 0 0 1.5px rgba(146,107,172,.55), 0 0 18px 2px rgba(146,107,172,.42); }

/* detail-block wayfinding: anchored jumps clear nav+rail; :target = "you've arrived" (pure CSS) */
.station[id] { scroll-margin-top: 124px; }
.station:target .station__node, .station.is-active .station__node {
  background: var(--purple); border-color: var(--purple); box-shadow: 0 0 0 6px #fff, 0 0 22px 4px rgba(146,107,172,.5); }
.station:target .station__bignum, .station.is-active .station__bignum { opacity: .16; }
/* one primary action (WhatsApp) + quiet secondary links */
.station__actions { margin-top: 1.4rem; }
.station__links { margin-top: .9rem; display: flex; gap: 1.3rem; flex-wrap: wrap; }
.station__links a { font-family: var(--font-ui); font-size: .88rem; color: var(--purple-deep);
  display: inline-flex; align-items: center; gap: .35rem; }
.station__links a .arr { transition: transform var(--t) var(--breathe); }
.station__links a:hover .arr { transform: translateX(3px); }
@media (max-width: 639px) { .station__actions .btn--wa { display: flex; width: 100%; justify-content: center; } }

/* ── "One continuous line of care": connecting-thread stations ── */
/* the hero already breathes — tuck the first content section right under it */
.dept-hero + .stations { padding-top: clamp(.5rem, 1.4vw, 1.25rem); }
.stations__intro { max-width: none; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.stations__intro .eyebrow { display: block; margin-bottom: .7rem; }
.stations__track { position: relative; }
/* the thread */
.stations__thread { position: absolute; left: 22px; top: 14px; bottom: 14px; width: 2px;
  border-radius: 2px; z-index: 0;
  background: linear-gradient(180deg, transparent, rgba(44,44,44,.12) 10%, rgba(44,44,44,.12) 90%, transparent); }
.stations__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; border-radius: 2px;
  background: linear-gradient(180deg, var(--purple) 0%, var(--sage-dark) 50%, var(--teal-deep) 100%);
  box-shadow: 0 0 14px 1px rgba(146,107,172,.35); }
@media (min-width: 860px) { .stations__thread { left: 50%; transform: translateX(-1px); } }
/* a station */
.station { position: relative; display: grid; grid-template-columns: 1fr; gap: 1.6rem;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4.5rem) 70px; }
@media (min-width: 860px) {
  /* symmetric halves so the timeline thread sits exactly in the gutter (it's fixed at 50%);
     text width comes from a slim inner padding, not an asymmetric grid */
  .station { grid-template-columns: 1fr 1fr; gap: clamp(3.5rem, 6vw, 6rem); align-items: center;
    padding: clamp(3rem, 5vw, 5rem) 0; }
  .station__body { padding-right: clamp(.5rem, 1.2vw, 1.25rem); }
  .station--reverse .station__body { order: 2; padding-right: 0; padding-left: clamp(.5rem, 1.2vw, 1.25rem); }
  .station--reverse .station__media { order: 1; }
  .station__media .ph { max-width: 500px; margin-inline: auto; }
}
/* number node sitting on the thread */
/* an elegant bead on the thread — the number now lives as a big editorial numeral */
.station__node { position: absolute; left: 22px; top: clamp(2.7rem, 5vw, 4.7rem); transform: translateX(-50%); z-index: 2;
  width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 2px solid var(--line);
  transition: background .6s var(--breathe), border-color .6s var(--breathe), box-shadow .6s var(--breathe); }
@media (min-width: 860px) { .station__node { left: 50%; top: 50%; transform: translate(-50%, -50%); } }
.station.is-in .station__node { background: var(--purple); border-color: var(--purple);
  box-shadow: 0 0 0 6px #fff, 0 0 20px 3px rgba(146,107,172,.42); }
/* the Pentagram move: number as hierarchy — a giant, faint editorial numeral behind the heading */
.station__body { position: relative; }
.station__body > :not(.station__bignum) { position: relative; z-index: 1; }
.station__bignum { position: absolute; z-index: 0; top: -.42em; left: -.06em; line-height: .8; pointer-events: none;
  font-family: var(--font-display); font-weight: 200; letter-spacing: -.04em;
  font-size: clamp(5rem, 9vw, 8.5rem); color: var(--purple); opacity: .085;
  -webkit-text-fill-color: currentColor; }
@media (min-width: 860px) { .station--reverse .station__bignum { left: auto; right: -.06em; } }
.station__group { font-family: var(--font-ui); font-size: var(--fs-small); letter-spacing: .14em;
  text-transform: uppercase; color: var(--sage-dark); display: block; margin-bottom: .55rem; }
/* specialty headlines: thin display weight (was bold h3) for an elegant, lighter feel */
.station__title { margin-bottom: .9rem; font-weight: 200; letter-spacing: -.012em; line-height: 1.14;
  font-size: clamp(1.5rem, 2.3vw, 1.9rem); }
.station__media { position: relative; }
.station__media .ph { position: relative; overflow: hidden; box-shadow: var(--shadow-lift-lg); }
/* warm brand-hue grade over the clinical photo (Awwwards: colour-blur to humanise) */
.station__media .ph::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  mix-blend-mode: soft-light; opacity: .34;
  background: linear-gradient(150deg, rgba(146,107,172,.8) 0%, rgba(163,203,145,.45) 55%, rgba(171,207,210,.8) 100%);
  transition: opacity .6s var(--breathe); }
.station:hover .station__media .ph::after { opacity: .18; }
.station__media .ph img { transition: transform .9s var(--breathe); }
.station:hover .station__media .ph img { transform: scale(1.04); }

/* ── Department page: medical-team mini cards — centred rows, arch portraits
      (matches the practitioners-page figure language) ── */
.med-team { display: flex; flex-wrap: wrap; justify-content: center; --mt-gap: clamp(1rem, 2vw, 1.6rem);
  gap: var(--mt-gap); }
.med-team > * { width: calc((100% - var(--mt-gap)) / 2); }
@media (min-width: 760px) { .med-team > * { width: calc((100% - 3 * var(--mt-gap)) / 4); max-width: 270px; } }
.med-member { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem;
  padding: 1.6rem 1.1rem 1.5rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: inherit; box-shadow: 0 12px 34px -16px rgba(44,44,44,.18);
  transition: transform .35s var(--breathe), box-shadow .35s var(--breathe); }
.med-member:hover { transform: translateY(-5px); box-shadow: 0 26px 54px -20px rgba(44,44,44,.28); }
.med-member__photo { width: 100%; max-width: 10.5rem; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px;
  overflow: hidden; background: var(--bg);
  box-shadow: 0 0 22px 3px rgba(146,107,172,.24); margin-bottom: .6rem; }
.med-member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform .6s var(--breathe); }
.med-member:hover .med-member__photo img { transform: scale(1.04); }
.med-member__name { font-family: var(--font-display); font-weight: 200; font-size: 1.1rem; letter-spacing: -.01em; color: var(--text); }
.med-member__role { color: #676767; font-size: .85rem; line-height: 1.4; }

/* ============================================================
   SERVICE / TREATMENT DETAIL — informative, easy-to-read layout.
   .prose styles a Webflow CMS Rich-Text field 1:1 (h2/h3/p/ul/ol/…)
   ============================================================ */
.detail-intro { max-width: 720px; margin: 0 auto; text-align: center; }
.detail-intro .eyebrow { display: block; margin-bottom: .55rem; }
.detail-intro h2 { margin: .2rem auto .9rem; }
.detail-intro .lead { margin: 0 auto; }

/* wide two-column intro — title left, lead copy right (fixes the narrow, floaty single column) */
.detail-lead { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.detail-lead__head .eyebrow { display: block; margin-bottom: .6rem; }
.detail-lead__head h2 { margin: 0; }
.detail-lead__body .lead { margin: 0 0 1.2rem; }
.detail-lead__body p:last-child { margin: 0; }
@media (max-width: 820px) { .detail-lead { grid-template-columns: 1fr; gap: 1.3rem; } }

/* centred single / solo practitioner row */
.med-team--center { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(1.4rem, 3vw, 2.4rem); }
.med-team--center .med-member { width: min(240px, 100%); }
.detail-figure { margin: clamp(2rem, 4vw, 3.2rem) auto 0; max-width: 1320px; }
.detail-figure .ph { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lift-lg); }

/* Feature image — parallax polish: a left→right clip-wipe reveal + a slow settle-scale on the
   image inside (the parallax-feature component's signature move, delivered as a calm one-shot
   rather than a scrubby tween, to keep it serene). Clip lives on .ph, scale on the <img>, the
   gentle drift on the figure itself — three separate elements, so none of the transforms fight.
   Reusable across every detail page via [data-clipreveal]. */
html.js [data-clipreveal] .ph { clip-path: inset(0 100% 0 0 round 22px); transition: clip-path 1.25s var(--breathe); }
html.js [data-clipreveal].is-revealed .ph { clip-path: inset(0 0 0 0 round 22px); }
html.js [data-clipreveal] .ph > img { transform: scale(1.12); transition: transform 1.7s var(--breathe); will-change: transform; }
html.js [data-clipreveal].is-revealed .ph > img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  html.js [data-clipreveal] .ph { clip-path: inset(0 0 0 0 round 22px); transition: none; }
  html.js [data-clipreveal] .ph > img { transform: none; transition: none; }
}

/* ── Cornerstone slides: alternating image + text, clip-wipe + parallax drift.
   The image clips in left→right and settle-scales; the text column drifts gently on scroll
   (parallax) while its content fades up (reveal). Mirrors the parallax-feature component but
   holds the full copy. Reusable for any "3 features" block on a detail page. ── */
.fslides { max-width: 1320px; margin: clamp(2.5rem, 6vw, 4.5rem) auto 0; padding-inline: clamp(1.25rem, 4vw, 2rem);
  display: grid; gap: clamp(3.5rem, 8vw, 7rem); }
.fslide { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
.fslide__media { width: 100%; max-width: 460px; justify-self: center; }
.fslide__media .ph { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lift-lg); }
.fslide__body { align-self: center; position: relative; }
.fslide__body .prose { max-width: 56ch; position: relative; z-index: 1; }
.fslide__body .prose > :first-child { margin-top: 0; }
.fslide__body .prose h3 { margin-top: 0; font-size: clamp(1.75rem, 3vw, 2.4rem); }
/* light-weight only — hierarchy comes from size, not weight (brand: subtle · elegance) */
/* oversized ghost number — sits BEHIND the heading as a typographic watermark,
   left-aligned with the title and centred on it (title reads on top) */
.fslide__num { position: absolute; top: 0; left: -.6rem; transform: translateY(-46%); z-index: 0;
  pointer-events: none; user-select: none;
  font-family: var(--font-display); font-weight: 200; line-height: 1; letter-spacing: -.04em;
  font-size: clamp(8.5rem, 17vw, 14rem); color: var(--purple); opacity: .22; }
.fslide__body .prose strong { font-weight: 200; color: var(--purple-deep); }
@media (max-width: 820px) { .fslide__num { font-size: clamp(5.5rem, 24vw, 8rem); } }
.fslide--reverse .fslide__media { order: 2; }
.fslide--reverse .fslide__body { order: 1; }
@media (max-width: 820px) {
  .fslide { grid-template-columns: 1fr; gap: 1.5rem; }
  .fslide__media, .fslide--reverse .fslide__media { order: 0; max-width: 520px; }
  .fslide__body, .fslide--reverse .fslide__body { order: 0; }
}
/* content follows the nav-bar grid width */
.container--detail { max-width: 1320px; }
.container--detail .prose { max-width: none; }
.container--detail .prose p { max-width: 85ch; }   /* readable paragraph measure; headings + lists run wider */
/* centred prose — heading runs full width, paragraphs stay a readable measure but centred */
.prose--center { text-align: center; }
.prose--center p { margin-inline: auto; }
.prose--center ul { display: inline-grid; text-align: left; }
/* home-page char-stagger reveal (the "text-rotate" effect) applied to a heading on scroll */
.tr-word { display: inline-block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; vertical-align: bottom; }

.prose { max-width: 70ch; margin: 0 auto; }
.prose > :first-child { margin-top: 0; }
.prose p { color: var(--body); line-height: 1.78; margin: 0 0 1.15em; max-width: none; }
.prose h2 { font-family: var(--font-display); font-weight: 200; letter-spacing: -.015em; line-height: 1.16;
  font-size: clamp(1.7rem, 3vw, 2.25rem); color: var(--text); margin: 2.7rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-display); font-weight: 200; letter-spacing: -.01em; line-height: 1.2;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem); color: var(--purple-deep); margin: 2.2rem 0 .7rem; }
.prose h4 { font-family: var(--font-ui); font-weight: 400; font-size: 1rem; letter-spacing: .01em; color: var(--text); margin: 1.7rem 0 .5rem; }
.prose ul { list-style: none; padding: 0; margin: 1.15em 0 1.5em; display: grid; gap: .75rem; }
.prose ul li { position: relative; padding-left: 1.8rem; line-height: 1.62; color: var(--body); }
.prose ul li::before { content: ""; position: absolute; left: .2rem; top: .6em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--sage-dark); box-shadow: 0 0 0 4px rgba(163,203,145,.16); }
.prose ol { padding-left: 1.4rem; margin: 1.15em 0 1.5em; color: var(--body); }
.prose ol li { margin-bottom: .55rem; padding-left: .3rem; line-height: 1.62; }
.prose ol li::marker { color: var(--purple-deep); }
.prose strong, .prose b { font-weight: 400; color: var(--text); }
.prose em, .prose i { font-style: italic; }
.prose a { color: var(--purple-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose blockquote { border-left: 2px solid var(--purple-18); padding: .15rem 0 .15rem 1.3rem; margin: 1.8rem 0;
  color: var(--muted); font-size: 1.08rem; font-style: italic; }
.prose img { border-radius: 16px; margin: 1.6rem 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.6rem 0; }
