/* ===========================================================
   BEATA AESTHETICS & WELLNESS — shared design system
   =========================================================== */
:root {
  --linen-mist: #FBFBFC;
  --ivory-sand: #F1F1F2;
  --warm-parchment: #E7E7E8;
  --clarity-blue: #03B7F1;
  --ice-bloom: #B3EDFF;
  --deep-current: #0290C1;
  --dark-espresso: #2C2C2E;
  --driftwood: #6E6E72;
  --warm-taupe: #BFBFBF;
  /* spec additions */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* footer — black + warm grey (no brown) */
  --footer-bg: #121213;
  --footer-band: #1E1E1F;
  --warm-grey: #919194;
  --warm-grey-lt: #BBBBBE;
  --footer-divider: #2E2E30;
  --footer-faint: #6E6E71;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --maxw: 1240px;
  --gutter: clamp(24px, 6vw, 96px);

  /* fixed-nav height on inner pages — sticky elements offset from this.
     --nav-pad must match the padding .nav.solid actually renders. */
  --logo-h: 66px;
  --nav-pad: 15px;
  --nav-h: calc(var(--logo-h) + (var(--nav-pad) * 2));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; -ms-overflow-style: none; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, .mobile-menu::-webkit-scrollbar, .modal::-webkit-scrollbar, .vl-stage::-webkit-scrollbar { display: none; width: 0; height: 0; }
.mobile-menu, .modal, .vl-stage { scrollbar-width: none; -ms-overflow-style: none; }

/* hide visible scrollbars (scroll still works) */
html, body, .mobile-menu, .modal, .modal-root, .vl-stage { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, .mobile-menu::-webkit-scrollbar,
.modal::-webkit-scrollbar, .modal-root::-webkit-scrollbar, .vl-stage::-webkit-scrollbar { width: 0; height: 0; display: none; }
body {
  margin: 0;
  background: var(--linen-mist);
  color: var(--dark-espresso);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans); font-weight: 500; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--clarity-blue); margin: 0 0 24px;
}
h1, h2, h3, h4 { margin: 0; font-weight: 300; }
/* orphan control: balance short multi-line text, prevent last-word orphans in body copy (site rule) */
h1, h2, h3, h4, h5, h6, .eyebrow, .role, .name, .lead, .display, .heading, .label, .band h2, .band-body { text-wrap: balance; }
p, .p, .p2, .bio, .sub, .lead, .band-body { text-wrap: pretty; }
h1.display { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5.4vw, 66px); line-height: 1.05; letter-spacing: -0.01em; }
h2.heading { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(30px, 4vw, 42px); line-height: 1.2; color: var(--driftwood); }
h2.heading.plain { font-style: normal; color: var(--dark-espresso); }
h3.label { font-family: var(--serif); font-weight: 400; font-size: 22px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dark-espresso); }
.p { font-size: 16px; line-height: 1.85; color: var(--dark-espresso); font-weight: 300; }
.p2 { font-size: 15px; line-height: 1.8; color: var(--driftwood); font-weight: 300; }
.sm { font-size: 14px; color: var(--warm-taupe); font-weight: 400; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.8; color: var(--driftwood); }

.section { padding: clamp(64px, 9vw, 110px) var(--gutter); }
.section.tight { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.section.ivory { background: var(--ivory-sand); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.wrap-narrow { max-width: 820px; margin: 0 auto; }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { color: var(--dark-espresso); }
.section-head .lead { margin-top: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: 0.06em;
  padding: 15px 30px; border-radius: var(--radius-sm, 4px); border: 1px solid transparent; cursor: pointer;
  transition: background 250ms var(--ease-soft), color 250ms var(--ease-soft), border-color 250ms var(--ease-soft);
}
.btn--primary { background: var(--clarity-blue); color: #fff; }
.btn--primary:hover { background: var(--deep-current); }
.btn--dark { background: var(--dark-espresso); color: var(--ivory-sand); }
.btn--dark:hover { background: #232325; }
.btn--ghost { background: transparent; border-color: var(--ivory-sand); color: var(--ivory-sand); }
.btn--ghost:hover { background: rgba(245,240,235,0.12); }
.btn--outline { background: transparent; border-color: var(--warm-taupe); color: var(--dark-espresso); }
.btn--outline:hover { border-color: var(--dark-espresso); }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: 0.04em;
  color: var(--dark-espresso); padding-bottom: 3px; border-bottom: 1px solid var(--dark-espresso); width: fit-content;
}
.textlink.blue { color: var(--deep-current); border-color: var(--deep-current); }
.textlink .arrow { transition: transform 300ms var(--ease-soft); }
.textlink:hover .arrow { transform: translateX(6px); }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  transition: background 400ms ease, border-color 400ms ease, padding 400ms ease;
  border-bottom: 0.5px solid transparent;
}
.nav.solid, .nav.scrolled {
  background: var(--linen-mist);
  border-bottom: 0.5px solid var(--warm-parchment);
  padding-top: var(--nav-pad); padding-bottom: var(--nav-pad);
}
.logo-lockup { display: flex; align-items: center; }
.logo-lockup img { height: 66px; width: auto; transition: filter 400ms ease; }
.nav.on-hero:not(.scrolled) .logo-lockup img { filter: brightness(0) invert(1); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links > a, .nav-drop > button {
  font-family: var(--sans); font-weight: 400; font-size: 15px; letter-spacing: 0.04em;
  color: var(--driftwood); background: none; border: none; cursor: pointer; padding: 0;
  transition: color 200ms ease; display: inline-flex; align-items: center; gap: 6px;
}
.nav.on-hero:not(.scrolled) .nav-links > a,
.nav.on-hero:not(.scrolled) .nav-drop > button { color: rgba(245,240,235,0.9); }
.nav-links > a:hover, .nav-drop > button:hover, .nav-links a.active { color: var(--clarity-blue); }
.nav-drop { position: relative; }
.nav-drop > button .chev { width: 8px; height: 8px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 250ms ease; }
.nav-drop:hover > button .chev { transform: rotate(-135deg) translateY(-2px); }
.nav-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--linen-mist); border: 0.5px solid var(--warm-parchment); border-radius: 12px;
  padding: 12px; min-width: 280px; opacity: 0; visibility: hidden; transition: opacity 220ms ease, transform 220ms ease;
  box-shadow: 0 30px 60px -34px rgba(26,26,28,0.4);
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-menu a { display: block; padding: 11px 14px; border-radius: 8px; color: var(--dark-espresso); font-size: 14px; transition: background 200ms ease; }
.nav-menu a small { display: block; font-size: 11.5px; color: var(--driftwood); margin-top: 2px; }
.nav-menu a:hover { background: var(--ivory-sand); }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.nav .btn--primary { padding: 12px 24px; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 1.5px; background: var(--dark-espresso); transition: background 400ms ease; }
.nav.on-hero:not(.scrolled) .hamburger span { background: var(--ivory-sand); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 199; background: var(--linen-mist);
  display: flex; flex-direction: column; justify-content: safe center; align-items: flex-start; gap: 4px;
  padding: 88px var(--gutter) 32px; transform: translateY(-100%); transition: transform 500ms var(--ease-soft); overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 7vw, 38px); color: var(--dark-espresso); padding: 7px 0; }
.mobile-menu .sub { font-family: var(--sans); font-size: 14px; color: var(--driftwood); padding: 5px 0 5px 18px; }
.mobile-menu .btn { margin-top: 22px; }

/* ============ PAGE HERO ============ */
.page-hero { position: relative; padding: clamp(150px, 20vh, 220px) var(--gutter) clamp(60px, 9vw, 96px); overflow: hidden; }
.page-hero.photo { color: var(--ivory-sand); }
.page-hero .ph-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(1) blur(7px); transform: scale(1.08); }
.page-hero .ph-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,16,18,0.92) 0%, rgba(16,16,18,0.78) 36%, rgba(16,16,18,0.58) 64%, rgba(16,16,18,0.50) 100%), linear-gradient(0deg, rgba(16,16,18,0.52) 0%, rgba(16,16,18,0.10) 60%, rgba(16,16,18,0.22) 100%); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes phHeroIn { from { opacity: 0; filter: grayscale(1) blur(28px); transform: scale(1.18); } to { opacity: 1; filter: grayscale(1) blur(7px); transform: scale(1.08); } }
  .page-hero.photo .ph-bg { animation: phHeroIn 1.6s var(--ease-soft, ease) both; }
}
.page-hero .ph-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; }
.page-hero .ph-content { max-width: 720px; }
.page-hero.photo .eyebrow { color: var(--ice-bloom); }
.page-hero h1.display { color: var(--dark-espresso); }
.page-hero.photo h1.display { color: var(--ivory-sand); }
.page-hero .ph-sub { margin-top: 22px; max-width: 600px; }
.page-hero.photo .ph-sub { color: rgba(245,240,235,0.86); }
.page-hero:not(.photo) { background: var(--ivory-sand); }

/* ---------- gradient hero (image-free) ---------- */
.page-hero.gradient {
  color: var(--ivory-sand);
  background:
    radial-gradient(112% 96% at 8% 4%, rgba(3,183,241,0.30) 0%, rgba(3,183,241,0) 58%),
    radial-gradient(86% 88% at 92% 0%, rgba(179,237,255,0.16) 0%, rgba(179,237,255,0) 52%),
    radial-gradient(70% 120% at 74% 108%, rgba(2,144,193,0.24) 0%, rgba(2,144,193,0) 60%),
    linear-gradient(152deg, #0C2833 0%, #10394A 44%, #0A1D26 100%);
}
.page-hero.gradient .ph-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(38% 58% at 18% 22%, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, rgba(10,20,26,0.34) 0%, rgba(10,20,26,0) 34%);
}
.page-hero.gradient .ph-rule {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(3,183,241,0) 0%, rgba(3,183,241,0.55) 26%, rgba(179,237,255,0.32) 58%, rgba(3,183,241,0) 100%);
}
.page-hero.gradient .eyebrow { color: var(--ice-bloom); }
.page-hero.gradient .ph-content { max-width: 780px; margin-left: auto; margin-right: auto; text-align: center; }
.page-hero.gradient .breadcrumb { justify-content: center; }
.page-hero.gradient .ph-sub { margin-left: auto; margin-right: auto; }
.page-hero.gradient h1.display { color: var(--ivory-sand); }
.page-hero.gradient .ph-sub { color: rgba(238,246,250,0.84); }
.page-hero.gradient .breadcrumb { color: rgba(238,246,250,0.66); }
.page-hero.gradient .breadcrumb a:hover { color: var(--ice-bloom); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes phGlowIn { from { opacity: 0; } to { opacity: 1; } }
  .page-hero.gradient .ph-glow, .page-hero.gradient .ph-rule { animation: phGlowIn 1.4s var(--ease-soft, ease) both; }
}
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 12px; letter-spacing: 0.04em; color: var(--driftwood); margin-bottom: 22px; text-transform: uppercase; }
.page-hero.photo .breadcrumb { color: rgba(245,240,235,0.7); }
.breadcrumb a:hover { color: var(--clarity-blue); }
.breadcrumb .sep { opacity: 0.5; }

/* ============ PATIENT QUOTE ============ */
.pquote-sec { text-align: center; }
.pquote { max-width: 780px; margin: 0 auto; }
.pquote .mark { display: block; font-family: var(--serif); font-size: 62px; line-height: 0.6; color: var(--clarity-blue); opacity: 0.5; margin-bottom: 20px; }
.pquote .q { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2.5vw, 28px); line-height: 1.5; letter-spacing: 0.01em; color: var(--dark-espresso); text-wrap: pretty; }
.pquote .stars { display: flex; justify-content: center; gap: 5px; margin-top: 22px; }
.pquote .stars span { width: 13px; height: 13px; background: var(--clarity-blue); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.pquote .attr { font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--driftwood); margin-top: 16px; }
.pquote .attr .src { color: var(--warm-taupe); }
@media (max-width: 600px) { .pquote .mark { font-size: 48px; margin-bottom: 16px; } }

/* ============ SPLIT ROWS ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 90px); align-items: center; }
.split.narrow-img { grid-template-columns: 0.85fr 1.15fr; }
.split .media-img { border-radius: 12px; overflow: hidden; border: 0.5px solid var(--warm-parchment); }
.split .media-img img { width: 100%; height: 100%; object-fit: cover; }
.split.reverse .col-text { order: 2; }
.split.reverse .col-media { order: 1; }
.split + .split { margin-top: clamp(56px, 8vw, 96px); }
.col-text h2 { margin-bottom: 22px; }
.col-text .p + .p { margin-top: 16px; }
.col-text .btn, .col-text .textlink { margin-top: 30px; }
.aspect-portrait { aspect-ratio: 4/5; }
.aspect-photo { aspect-ratio: 3/2; }

/* About page: black & white portraits that bloom into color on hover, with a gentle float (matches homepage) */
@keyframes beataMediaFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
body[data-page="about"] .split .media-img { animation: beataMediaFloat 8s ease-in-out infinite; }
body[data-page="about"] .split.reverse .media-img,
body[data-page="about"] #physician .media-img { animation-delay: -4s; }
body[data-page="about"] .split .media-img img { filter: grayscale(1) contrast(1.03); transition: filter 750ms var(--ease-soft), transform 1000ms var(--ease-soft); }
body[data-page="about"] .split .media-img:hover img { filter: grayscale(0); transform: scale(1.045); }
@media (prefers-reduced-motion: reduce) {
  body[data-page="about"] .split .media-img { animation: none; }
}

/* ---------- prose ---------- */
.prose p { margin: 0 0 18px; }
.prose h3 { font-family: var(--serif); font-size: 26px; margin: 36px 0 14px; color: var(--dark-espresso); }

/* ---------- checklist / tags / facts ---------- */
.checklist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist.cols2 { grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.checklist li { position: relative; padding-left: 30px; font-size: 15px; color: var(--dark-espresso); line-height: 1.6; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  border: 1.4px solid var(--clarity-blue);
}
.checklist li::after {
  content: ""; position: absolute; left: 5.5px; top: 8.5px; width: 4px; height: 7px;
  border: solid var(--clarity-blue); border-width: 0 1.6px 1.6px 0; transform: rotate(43deg);
}
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.tags li, .pill { border: 0.5px solid var(--warm-taupe); border-radius: 99px; padding: 7px 16px; font-size: 14px; color: var(--driftwood); }
.facts { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 56px); margin-top: 30px; }
.fact .num { font-family: var(--serif); font-size: clamp(36px, 4vw, 46px); color: var(--clarity-blue); line-height: 1; }
.fact .lbl { font-size: 14px; color: var(--driftwood); margin-top: 8px; max-width: 160px; }

/* ============ CARDS ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.fcard { background: #fff; border: 1px solid var(--warm-parchment); border-radius: var(--radius-md, 8px); box-shadow: var(--shadow-sm); padding: 40px 36px; transition: box-shadow 400ms ease, transform 400ms ease; }
.section.ivory .fcard { background: #fff; }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.fcard .icon { color: var(--clarity-blue); margin-bottom: 22px; }
.fcard h3 { margin-bottom: 14px; }
.fcard .p { color: var(--driftwood); font-size: 15px; }

/* category card (with image) */
.cat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--warm-parchment); border-radius: var(--radius-md, 8px); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow 400ms ease, transform 400ms ease; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card .media { aspect-ratio: 3/2; overflow: hidden; }
.cat-card .media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.03); transition: transform 700ms ease, filter 700ms var(--ease-soft, ease); }
.cat-card:hover .media img { transform: scale(1.05); filter: grayscale(0) contrast(1); }
.cat-card .body { padding: 30px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.cat-card h3 { margin-bottom: 12px; }
.cat-card .p2 { flex: 1; }
.cat-card .meta { font-size: 12px; letter-spacing: 0.04em; color: var(--warm-taupe); margin-bottom: 14px; }
.cat-card .textlink { margin-top: 18px; font-size: 12px; }

/* treatment card */
.tcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--warm-parchment); border-radius: var(--radius-md, 8px); box-shadow: var(--shadow-sm); overflow: hidden; padding-bottom: 30px; transition: box-shadow 400ms ease, transform 400ms ease; }
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tcard .media { position: relative; aspect-ratio: 4/3; overflow: hidden; margin-bottom: 26px; }
.tcard .media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.03); transition: transform 700ms ease, filter 700ms var(--ease-soft, ease); }
.tcard:hover .media img { transform: scale(1.05); filter: grayscale(0) contrast(1); }
.tcard .eyebrow { margin: 0 28px 12px; }
.tcard h3.label { font-size: 20px; letter-spacing: 0.06em; text-transform: none; margin: 0 28px 12px; }
.tcard .p2 { margin: 0 28px 16px; flex: 1; }
.tcard .textlink { font-size: 12px; margin: 0 28px; }
.tcard .media .tag-new { position: absolute; top: 14px; left: 14px; z-index: 5; background: var(--clarity-blue); color: #fff; font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 13px; border-radius: 99px; }
.tcard .media.real::after, .media-img.real::after { content: none; }

/* ============ TEAM ============ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.team-grid.team-3 { grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 44px); max-width: 1080px; margin-inline: auto; }
.team-grid.team-3 .name { font-size: 25px; }
.team-grid.team-3 .bio { font-size: 15px; }
.team-grid.team-lead { grid-template-columns: repeat(3, 1fr); }
.team-grid + .team-grid { margin-top: 28px; }
.member .photo { aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; border: 0.5px solid var(--warm-parchment); margin-bottom: 18px; transition: box-shadow 400ms ease, transform 400ms ease; }
.member .photo::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(125% 85% at 50% 12%, rgba(255,255,255,0.22), rgba(255,255,255,0) 58%); mix-blend-mode: soft-light; }
.member:hover .photo { transform: translateY(-6px); box-shadow: 0 22px 48px -26px rgba(26,26,28,0.32); }
.member .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(1) contrast(1.03); transition: transform 600ms ease, filter 700ms var(--ease-soft); }
.member:hover .photo img { transform: scale(1.04); filter: grayscale(0) contrast(1.02); }
.member:focus-visible .photo img { filter: grayscale(0); }
.member .name { font-family: var(--serif); font-size: 22px; color: var(--dark-espresso); }
.member .role { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clarity-blue); margin-top: 6px; }
.member .bio { font-size: 14px; color: var(--driftwood); margin-top: 10px; line-height: 1.7; }

/* ============ STEPS ============ */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 90px 1fr; gap: 28px; padding: 34px 0; border-top: 0.5px solid var(--warm-parchment); }
.step:last-child { border-bottom: 0.5px solid var(--warm-parchment); }
.step .n { font-family: var(--serif); font-size: 46px; color: var(--warm-taupe); line-height: 1; }
.step h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 12px; color: var(--dark-espresso); }
.step .p { color: var(--driftwood); }

/* ============ FAQ ============ */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 0.5px solid var(--warm-parchment); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 26px 40px 26px 0; position: relative; font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); color: var(--dark-espresso); line-height: 1.35; }
.faq-q::after { content: ""; position: absolute; right: 4px; top: 32px; width: 12px; height: 12px; border-right: 1.5px solid var(--clarity-blue); border-bottom: 1.5px solid var(--clarity-blue); transform: rotate(45deg); transition: transform 300ms ease; }
.faq-item.open .faq-q::after { transform: rotate(-135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 360ms ease; }
.faq-a .inner { padding: 0 40px 28px 0; color: var(--driftwood); font-size: 15.5px; line-height: 1.8; }
.faq-a .inner ul { margin: 10px 0 0; padding-left: 18px; }
.faq-a .inner li { margin-bottom: 6px; }

/* ============ TESTIMONIALS ============ */
.tslider { position: relative; max-width: 820px; margin: 0 auto; min-height: 260px; }
.tslide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 500ms ease, visibility 500ms ease; text-align: center; padding: 0 clamp(10px, 5vw, 50px); }
.tslide.active { opacity: 1; visibility: visible; }
.tslide .qmark { font-family: var(--serif); font-weight: 300; font-size: 72px; line-height: 0.6; color: var(--clarity-blue); display: block; margin-bottom: 10px; }
.tslide .quote { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.6; color: var(--dark-espresso); }
.tstars { display: flex; justify-content: center; gap: 6px; margin: 22px 0 14px; }
.tstars span { width: 9px; height: 9px; border-radius: 50%; background: var(--clarity-blue); }
.tslide .attr { font-family: var(--sans); font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--driftwood); }
.tdots { display: flex; justify-content: center; gap: 10px; margin-top: 44px; }
.tdots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--warm-taupe); opacity: 0.5; cursor: pointer; padding: 0; transition: opacity 300ms ease, background 300ms ease; }
.tdots button.active { opacity: 1; background: var(--clarity-blue); }

/* ============ GALLERY ============ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery .g { border-radius: 10px; overflow: hidden; border: 0.5px solid var(--warm-parchment); aspect-ratio: 3/2; }
.gallery .g.tall { grid-row: span 2; aspect-ratio: 3/4; }
.gallery .g img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms ease; }
.gallery .g:hover img { transform: scale(1.05); }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.info-row { display: flex; gap: 16px; padding: 20px 0; border-bottom: 0.5px solid var(--warm-parchment); }
.info-row .ic { color: var(--clarity-blue); flex-shrink: 0; margin-top: 2px; }
.info-row h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--driftwood); margin-bottom: 6px; }
.info-row .v { font-size: 16px; color: var(--dark-espresso); }
.info-row .v a:hover { color: var(--clarity-blue); }
.map { border-radius: 12px; overflow: hidden; border: 0.5px solid var(--warm-parchment); margin-top: 30px; }
.map iframe { width: 100%; height: 320px; border: 0; display: block; filter: grayscale(0.3) contrast(0.95); }

/* ============ FORM ============ */
.form { display: grid; gap: 14px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--driftwood); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; font-weight: 300; color: var(--dark-espresso);
  background: var(--linen-mist); border: 0.5px solid var(--warm-taupe); border-radius: 8px; padding: 13px 15px;
  transition: border-color 200ms ease; -webkit-appearance: none; appearance: none;
}
.modal .field input, .modal .field select, .modal .field textarea { background: #fff; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%237A6C62' stroke-width='1.4' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clarity-blue); }
.field textarea { resize: vertical; min-height: 80px; }
.form .btn { justify-content: center; }
.form-note { font-size: 12.5px; color: var(--warm-taupe); }
.form-success { display: none; padding: 30px 0; }
.form-success.show { display: block; }
.form-success .check { width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid var(--clarity-blue); margin: 0 0 22px; display: flex; align-items: center; justify-content: center; color: var(--clarity-blue); font-size: 26px; }
.form-success h3 { font-family: var(--serif); font-size: 28px; margin-bottom: 10px; color: var(--dark-espresso); }
.form-success p { color: var(--driftwood); }

/* ============ CTA BAND (dark) ============ */
.band { background: var(--footer-band); padding: clamp(56px, 8vw, 86px) var(--gutter); }
.band-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center; }
.band h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; color: var(--ivory-sand); }
.band .band-body { margin-top: 16px; font-size: 16px; color: var(--warm-grey); max-width: 560px; }

/* ============ BANNER (photo cta) ============ */
.banner { position: relative; min-height: 480px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.banner-overlay { position: absolute; inset: 0; background: rgba(18,18,20,0.62); }
.banner-inner { position: relative; z-index: 2; max-width: 640px; padding: 0 var(--gutter); }
.banner h2 { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.15; color: var(--ivory-sand); }
.banner .b-body { margin: 22px auto 34px; font-size: 17px; line-height: 1.8; color: rgba(245,240,235,0.82); }

/* ============ FOOTER ============ */
.footer { background: var(--footer-bg); padding: clamp(56px, 8vw, 80px) var(--gutter) 38px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-bottom: 50px; }
.footer .logo-lockup img { height: 44px; filter: brightness(0) invert(1); opacity: 0.92; }
.socials { display: flex; gap: 16px; }
.socials a { color: var(--warm-grey); transition: color 200ms ease; }
.socials a:hover { color: var(--warm-grey-lt); }
.footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 52px; }
.fcol h4 { font-family: var(--sans); font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ice-bloom); margin: 0 0 20px; }
.fcol ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fcol a { font-family: var(--sans); font-weight: 300; font-size: 14px; color: var(--warm-grey); transition: color 200ms ease; }
.fcol a:hover { color: var(--warm-grey-lt); }
.fcol .blurb { font-size: 15px; line-height: 1.8; color: var(--warm-grey); max-width: 260px; }
.footer-nav { display: block; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.footer-nav a { font-family: var(--sans); font-weight: 400; font-size: 15px; letter-spacing: 0.04em; color: var(--warm-grey); transition: color 200ms ease; }
.footer-nav a:hover { color: var(--warm-grey-lt); }
.footer-divider { height: 0.5px; background: var(--footer-divider); border: none; margin: 0; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-top: 26px; }
.footer-bottom span { font-family: var(--sans); font-weight: 300; font-size: 13.5px; color: var(--footer-faint); }
.footer-bottom .center { text-align: center; }
.footer-bottom .right { text-align: right; }
.footer-bottom .credit { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.footer-bottom .credit > span { color: var(--footer-faint); }
.footer-bottom .credit a { display: inline-flex; align-items: center; opacity: 0.78; transition: opacity 220ms ease; }
.footer-bottom .credit a:hover { opacity: 1; }
.footer-bottom .credit img { height: 26px; width: auto; display: block; }

/* ============ MODAL ============ */
.modal-root { position: fixed; inset: 0; z-index: 500; display: none; }
.modal-root.open { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(18,18,20,0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity 300ms ease; }
.modal-root.open .modal-overlay { opacity: 1; }
.modal { position: relative; z-index: 2; max-width: 760px; margin: clamp(24px, 5vh, 56px) auto; background: var(--linen-mist); border-radius: 14px; padding: clamp(26px, 4vw, 40px); box-shadow: 0 40px 90px -40px rgba(18,18,20,0.6); transform: translateY(16px); opacity: 0; transition: transform 360ms var(--ease-soft), opacity 360ms ease; max-height: calc(100vh - 48px); overflow-y: auto; }
.modal-root.open .modal { transform: translateY(0); opacity: 1; }
.modal .close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; border: 0.5px solid var(--warm-taupe); background: transparent; cursor: pointer; color: var(--driftwood); font-size: 18px; line-height: 1; transition: background 200ms ease; }
.modal .close:hover { background: var(--ivory-sand); }
.modal .eyebrow { margin-bottom: 12px; }
.modal h3 { font-family: var(--serif); font-size: 30px; margin-bottom: 6px; color: var(--dark-espresso); }
.modal .sub { color: var(--driftwood); font-size: 15px; margin-bottom: 20px; }
.modal-success { text-align: center; padding: 20px 0; display: none; }
.modal-success.show { display: block; }
.modal-success .check { width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid var(--clarity-blue); margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; color: var(--clarity-blue); font-size: 26px; }
.modal-success h3 { margin-bottom: 10px; }
.modal-form.hide { display: none; }
.modal-cols { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(24px, 3vw, 40px); align-items: start; }
.modal-intro h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 32px); margin: 0 0 10px; color: var(--dark-espresso); }
.modal-intro .sub { margin-bottom: 0; }
@media (max-width: 620px) { .modal-cols { grid-template-columns: 1fr; gap: 18px; } }

/* ---- placeholder watermark ---- */
.media-img, .cat-card .media, .tcard .media, .member .photo, .gallery .g, .collage figure { position: relative; }
.media-img::after, .cat-card .media::after, .tcard .media::after, .member .photo::after, .gallery .g::after, .collage figure::after,
.hero-overlay::after, .page-hero.photo .ph-overlay::after, .banner-overlay::after {
  content: none; position: absolute; right: 9px; bottom: 9px; z-index: 4; pointer-events: none;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 9px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(44,44,46,0.6);
  background: rgba(253,250,247,0.72); padding: 4px 7px; border-radius: 4px;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.hero-overlay::after, .page-hero.photo .ph-overlay::after, .banner-overlay::after {
  right: 16px; bottom: 16px; color: rgba(245,240,235,0.82); background: rgba(18,18,20,0.32);
}

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 1000ms var(--ease-soft), transform 1000ms var(--ease-soft), filter 1000ms var(--ease-soft); will-change: opacity, transform, filter; }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
.reveal.done { will-change: auto; }
.reveal.d1 { transition-delay: 100ms; } .reveal.d2 { transition-delay: 200ms; } .reveal.d3 { transition-delay: 300ms; }
.reveal.dx1 { transition-delay: 120ms; } .reveal.dx2 { transition-delay: 240ms; } .reveal.dx3 { transition-delay: 360ms; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) { :root { --gutter: clamp(24px, 5vw, 56px); } .team-grid { grid-template-columns: repeat(2, 1fr); } .team-grid.team-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav .nav-cta .btn--primary { display: none; }
  .hamburger { display: flex; }
  .split, .split.narrow-img, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .col-text { order: 1; } .split.reverse .col-media { order: 2; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .band-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .footer-bottom { grid-template-columns: 1fr; text-align: center; }
  .footer-bottom .right, .footer-bottom .center { text-align: center; }
  .footer-bottom .credit { justify-content: center; }
  .checklist.cols2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-3, .grid-2, .grid-4, .team-grid { grid-template-columns: 1fr; }
  .form .row2 { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .step { grid-template-columns: 1fr; gap: 6px; }
  .step .n { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .fcard .icon { opacity: 1 !important; transform: none !important; }
}
.no-anim *, .no-anim *::before, .no-anim *::after { animation: none !important; transition: none !important; }
.no-anim .reveal, .no-anim .fcard .icon { opacity: 1 !important; transform: none !important; }

/* ============ FOOTER WATERMARK ============ */
.footer { position: relative; overflow: hidden; }
.footer::after { content: ""; position: absolute; left: -36px; bottom: -54px; width: 360px; height: 360px; background: url("assets/favicon.svg") no-repeat center / contain; filter: brightness(0) invert(1); opacity: 0.10; pointer-events: none; z-index: 0; }
.footer-inner { position: relative; z-index: 1; }

/* ============ ICON SCROLL-IN ============ */
.fcard .icon { opacity: 0; transform: scale(0.82) translateY(8px); transform-origin: left center; transition: opacity 650ms var(--ease-soft) 0.12s, transform 650ms var(--ease-soft) 0.12s; }
.fcard.reveal.in .icon { opacity: 1; transform: none; }

/* ============ TEAM MODAL ============ */
.member { cursor: pointer; }
.tm-body { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; }
.tm-photo { aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; border: 0.5px solid var(--warm-parchment); }
.tm-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.tm-info .eyebrow { margin-bottom: 8px; }
.tm-info h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 14px; color: var(--dark-espresso); }
.tm-info .p2 { color: var(--driftwood); }
.tm-socials { display: flex; gap: 12px; margin-top: 22px; }
.tm-social { width: 38px; height: 38px; border-radius: 50%; border: 0.5px solid var(--warm-taupe); display: flex; align-items: center; justify-content: center; color: var(--driftwood); transition: border-color 200ms ease, color 200ms ease, background 200ms ease; }
.tm-social:hover { border-color: var(--clarity-blue); color: var(--clarity-blue); background: var(--ivory-sand); }
@media (max-width: 540px) { .tm-body { grid-template-columns: 1fr; } .tm-photo { max-width: 220px; } }

/* ============================================================
   MOBILE POLISH
   ============================================================ */
@media (max-width: 760px) {
  /* tighter section rhythm */
  .section { padding: clamp(48px, 12vw, 72px) var(--gutter); }
  .section.tight { padding-top: clamp(34px, 9vw, 56px); padding-bottom: clamp(34px, 9vw, 56px); }
  /* page hero: less top gap under the fixed nav, smaller type */
  .page-hero { padding: clamp(110px, 26vw, 150px) var(--gutter) clamp(44px, 12vw, 72px); }
  h1.display { font-size: clamp(34px, 9vw, 48px); }
  h2.heading { font-size: clamp(26px, 7vw, 36px); }
  .lead { font-size: clamp(16px, 4.4vw, 18px); }
  .section-head { margin-bottom: 40px; }
  .split + .split { margin-top: 44px; }
  /* comfortable reading measure for portrait media */
  .split .col-media .media-img { max-width: 560px; margin-inline: auto; }
  /* facts wrap evenly */
  .facts { gap: 28px 40px; }
  .fact .lbl { max-width: none; }
  /* footer watermark dialed back so it never overwhelms */
  .footer::after { width: 220px; height: 220px; left: -28px; bottom: -32px; opacity: 0.10; }
  .footer-bottom { gap: 14px; }
}

@media (max-width: 600px) {
  :root { --logo-h: 54px; --nav-pad: 11px; }
  /* nav: compact bar, smaller logo, big tap target on burger */
  .nav { padding: 14px var(--gutter); }
  .nav.solid, .nav.scrolled { padding-top: var(--nav-pad); padding-bottom: var(--nav-pad); }
  .logo-lockup img { height: 54px; }
  .hamburger { padding: 10px; margin-right: -10px; }
  /* mobile menu: generous tap targets, full-width CTA */
  .mobile-menu { gap: 2px; }
  .mobile-menu a { padding: 12px 0; }
  .mobile-menu .btn { width: 100%; justify-content: center; padding: 16px; font-size: 15px; }
  /* primary buttons go full-width so they're easy to hit */
  .btn { padding: 15px 26px; min-height: 48px; }
  .band .btn, .banner .btn, .pquote + * .btn { width: 100%; justify-content: center; }
  /* gallery + gridded media to a single clean column-ish */
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery .g.tall { grid-row: span 1; aspect-ratio: 3/4; }
  /* steps */
  .step { padding: 26px 0; }
  /* pills/tags easier to tap */
  .tags li, .pill { padding: 8px 16px; }
  /* contact info rows + map */
  .map iframe { height: 260px; }
  /* patient quote */
  .pquote .q { font-size: 19px; line-height: 1.55; }
  .pquote .attr { font-size: 11px; letter-spacing: 0.1em; }
  /* footer nav: comfortable tap rows */
  .footer-nav ul { gap: 4px 26px; }
  .footer-nav a { display: inline-block; padding: 9px 0; }
  /* breadcrumb can wrap without cramping */
  .breadcrumb { flex-wrap: wrap; row-gap: 4px; }
  /* nothing should push the page sideways */
  img, video, iframe { max-width: 100%; }
}

@media (hover: none) {
  /* touch: real tap targets, no sticky hover states */
  .btn { min-height: 48px; }
  .textlink { padding: 4px 0; }
  .nav-menu a { padding: 14px; }
  a { -webkit-tap-highlight-color: rgba(3,183,241,0.12); }
}

@media (max-width: 600px) {
  /* iOS: 16px inputs prevent auto-zoom on focus */
  .field input, .field select, .field textarea { font-size: 16px; }
  /* modal fills the screen comfortably */
  .modal { width: calc(100% - 32px); margin: 16px auto; padding: 26px 22px; max-height: calc(100dvh - 32px); border-radius: 12px; }
  .modal h3, .modal-intro h3 { font-size: 24px; }
  .modal .close { top: 12px; right: 12px; }
  .form .btn { width: 100%; }
}

/* video testimonial lightbox on phones */
@media (max-width: 600px) {
  .vl-stage { padding: 64px 12px; }
  .vl-cap .t { font-size: 22px; }
  .vl-nav { width: 42px; height: 42px; }
  .vl-prev { left: 6px; } .vl-next { right: 6px; }
  .vl-close { top: 14px; right: 14px; }
}

/* tap-target floor for round icon controls */
@media (hover: none) {
  .tm-social, .socials a, .tdots button, .ig-pill { min-height: 38px; }
  .tdots button { width: 12px; height: 12px; }
}


/* ---------- spec: links, focus, button states ---------- */
a { color: inherit; }
.p a, .p2 a, .lead a, .band-body a, .info-row a, footer a, .bio a { color: var(--clarity-blue); text-decoration: none; }
.p a:hover, .p2 a:hover, .lead a:hover, .band-body a:hover, .info-row a:hover, footer a:hover, .bio a:hover { color: var(--deep-current); text-decoration: underline; }
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(0.98); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--clarity-blue); outline-offset: 2px; border-radius: var(--radius-sm);
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active { transform: none; }
}


/* ---------- "Replace" badge on placeholder / repeated imagery ---------- */
[data-replace] { position: relative; }
.media:has(> img[data-replace]), .media-img:has(> img[data-replace]),
.photo:has(> img[data-replace]), .col-media:has(img[data-replace]) > .media-img { position: relative; }
.media:has(> img[data-replace])::after, .media-img:has(> img[data-replace])::after,
.photo:has(> img[data-replace])::after {
  content: "Replace";
  position: absolute; top: 10px; left: 10px; z-index: 4;
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: rgba(20,20,22,0.78);
  border: 1px solid rgba(255,255,255,0.34); border-radius: var(--radius-full, 9999px);
  padding: 4px 10px; pointer-events: none; backdrop-filter: blur(4px);
}
.ph-overlay[data-replace]::after {
  content: "Replace";
  position: absolute; bottom: 16px; left: 16px; z-index: 4;
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: rgba(20,20,22,0.78);
  border: 1px solid rgba(255,255,255,0.34); border-radius: var(--radius-full, 9999px);
  padding: 4px 10px; pointer-events: none;
}
@media print { .media::after, .media-img::after, .photo::after { display: none !important; } }
