/* ==========================================================================
   Shane Rainey, DO — site styles
   --------------------------------------------------------------------------
   1. Design tokens (EDIT COLORS HERE)   6. Home sections
   2. Base & typography                  7. Inner pages
   3. Layout utilities & buttons         8. Photo placeholders
   4. Header & navigation                9. Motion (reveals, parallax)
   5. Footer                            10. Reduced motion & print
   ========================================================================== */

/* 1. DESIGN TOKENS ------------------------------------------------------------
   Temporary palette: warm ivory, muted sage, dark forest green, earth tones.
   Replace these values when Dr. Rainey's preferred colors arrive — every
   color on the site is derived from this block.                            */
:root {
  /* Core palette */
  --ivory: #f5efe3;
  --paper: #faf6ee;
  --linen: #ebe2d1;
  --sage-100: #e3e6d6;
  --sage-300: #b9c2a6;
  --sage-500: #8a9a78;
  --sage-700: #5d6e52;
  --forest-700: #2e4434;
  --forest-800: #23362a;
  --forest-900: #182619;
  --earth-300: #d8b994;
  --earth-500: #b0814f;
  --earth-600: #8f6237;
  --earth-700: #74502d;
  --ink: #202a22;
  --ink-soft: #4b554b;

  /* Semantic roles */
  --bg: var(--ivory);
  --bg-alt: var(--paper);
  --bg-deep: var(--forest-800);
  --text: var(--ink);
  --text-muted: var(--ink-soft);
  --text-on-deep: #efe9dc;
  --heading: var(--forest-900);
  --accent: var(--earth-600);
  --accent-strong: var(--earth-700);
  --link: var(--forest-700);
  --line: rgba(32, 42, 34, 0.14);
  --line-strong: rgba(32, 42, 34, 0.28);
  --focus: #b56a2c;
  --pending-bg: #fbe9c7;
  --pending-ink: #6b4510;

  /* Hero illustration */
  --sky-top: #dfe3d6;
  --sky-mid: #f1e8d8;
  --sky-low: #f6dcc0;
  --sun: #fbe7c6;
  --scene-far: #c6cdb7;
  --scene-mid: #9fae8d;
  --scene-mid-tree: #7f9070;
  --scene-near: #5d6e52;
  --scene-oak: #33493a;
  --scene-grass: #2a3c2f;

  /* Typography */
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Hanken Grotesk", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1.03rem, 0.98rem + 0.25vw, 1.15rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.05rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.4vw, 4.4rem);
  --step-5: clamp(3rem, 2rem + 5vw, 6.4rem);

  /* Space & shape */
  --container: 1220px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 8.5vw, 7.5rem);
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 26px;
  --header-h: 76px;
  --shadow-sm: 0 1px 2px rgba(24, 38, 25, 0.06), 0 6px 18px -10px rgba(24, 38, 25, 0.25);
  --shadow: 0 2px 6px rgba(24, 38, 25, 0.05), 0 24px 50px -24px rgba(24, 38, 25, 0.35);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.8, 0.25, 1);
  --reveal-distance: 28px;
  --reveal-duration: 1.1s;
}

/* 2. BASE & TYPOGRAPHY ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1.5rem); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Subtle paper grain — a static texture, never animated */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .18 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: color 0.25s var(--ease-soft); }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
main:focus { outline: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--heading);
  margin: 0 0 0.55em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 300; }
h2 { font-size: var(--step-4); font-weight: 300; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
h1 em, h2 em { font-style: italic; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
strong { font-weight: 600; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--forest-800); color: var(--ivory); padding: 0.75rem 1.1rem; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--ivory); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75em;
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.4rem;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; }

.lede { font-size: var(--step-1); line-height: 1.6; color: var(--text-muted); max-width: 40ch; }

/* Items awaiting approval — visible during preview so nothing slips through */
.pending {
  display: inline; background: var(--pending-bg); color: var(--pending-ink);
  font-family: var(--font-body); font-size: 0.82em; font-weight: 500; font-style: normal; letter-spacing: 0;
  padding: 0.15em 0.55em; border-radius: 4px; border: 1px dashed rgba(107, 69, 16, 0.4);
  box-decoration-break: clone; -webkit-box-decoration-break: clone; line-height: 1.9;
}
.pending::before { content: "◇ "; opacity: 0.7; }

.preview-bar {
  position: relative; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.5rem var(--gutter); background: var(--forest-900); color: #e9e2d2;
  font-size: 0.8rem; letter-spacing: 0.02em; text-align: center;
}
.preview-bar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--earth-300); flex: none; box-shadow: 0 0 0 4px rgba(216, 185, 148, 0.18); }

/* 3. LAYOUT UTILITIES & BUTTONS -------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.meet, .care, .personal { padding-bottom: calc(var(--section-y) * 0.5); }

.section-mark {
  display: flex; align-items: center; gap: 0.9rem; margin: 0 0 1.75rem;
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.section-mark__num { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.35em; letter-spacing: 0; color: var(--sage-700); }
.section-mark__rule { width: 3rem; height: 1px; background: currentColor; transform-origin: left; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

.btn {
  --btn-bg: var(--forest-800); --btn-ink: var(--ivory); --btn-line: var(--forest-800);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  min-height: 3.2rem; padding: 0.8rem 1.55rem;
  border-radius: 999px; border: 1px solid var(--btn-line);
  background: var(--btn-bg); color: var(--btn-ink);
  font: 600 0.98rem/1.2 var(--font-body); letter-spacing: 0.01em; text-decoration: none;
  transition: color 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-soft);
}
.btn::before { /* soft fill that rises from below on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--accent-strong); transform: translateY(101%); transition: transform 0.45s var(--ease-out);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform 0.35s var(--ease-out); }
.btn:hover { color: var(--ivory); border-color: var(--accent-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:hover::before { transform: translateY(0); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--ghost { --btn-bg: transparent; --btn-ink: var(--forest-900); --btn-line: rgba(24, 38, 25, 0.35); background: rgba(250, 246, 238, 0.35); backdrop-filter: blur(4px); }
.btn--outline { --btn-bg: transparent; --btn-ink: var(--forest-800); --btn-line: var(--line-strong); }
.btn--light { --btn-bg: var(--ivory); --btn-ink: var(--forest-900); --btn-line: var(--ivory); }
.btn--light::before { background: #fff; }
.btn--light:hover { color: var(--forest-900); border-color: #fff; }
.btn--ghost-light { --btn-bg: transparent; --btn-ink: var(--ivory); --btn-line: rgba(239, 233, 220, 0.45); }
.btn--ghost-light::before { background: rgba(239, 233, 220, 0.14); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-weight: 600; color: var(--forest-800); text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 0.2em; transition: background-size 0.45s var(--ease-out), color 0.3s;
}
.text-link svg { width: 1.05em; height: 1.05em; transition: transform 0.35s var(--ease-out); }
.text-link:hover { color: var(--accent-strong); background-size: 30% 1px; }
.text-link:hover svg { transform: translateX(4px); }

/* 4. HEADER & NAVIGATION ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(245, 239, 227, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease-soft), border-color 0.4s, transform 0.5s var(--ease-out), backdrop-filter 0.4s;
}
.site-header.is-scrolled { background: rgba(245, 239, 227, 0.88); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.page-home .site-header { position: fixed; left: 0; right: 0; top: var(--bar-h, 0px); }
.page-home .site-header.is-scrolled { top: 0; }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--forest-900); text-decoration: none; position: relative; z-index: 2; }
.brand:hover { color: var(--forest-900); }
.brand__mark { width: 40px; height: 40px; flex: none; color: var(--forest-700); transition: transform 0.6s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-8deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-size: 1.32rem; letter-spacing: -0.005em; }
.brand__sub { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.25rem; }
.brand--light, .brand--light:hover { color: var(--ivory); }
.brand--light .brand__mark { color: var(--earth-300); }
.brand--light .brand__sub { color: rgba(239, 233, 220, 0.65); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; }
.site-nav__extra { display: none; }

/* Desktop navigation */
@media (min-width: 1080px) {
  .site-nav ul { display: flex; gap: clamp(0.9rem, 1.7vw, 1.9rem); }
  .site-nav a { position: relative; display: inline-block; padding: 0.4rem 0; font-size: 0.92rem; font-weight: 500; color: var(--ink); letter-spacing: 0.01em; }
  .site-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
    transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out);
  }
  .site-nav a:hover { color: var(--forest-900); }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
  .site-nav a[aria-current="page"] { color: var(--forest-900); }
  .nav-toggle { display: none !important; }
}

/* Mobile navigation (also the no-JS fallback: links wrap as a list) */
@media (max-width: 1079.98px) {
  .site-header { height: auto; min-height: var(--header-h); }
  .site-header__inner { flex-wrap: wrap; padding-block: 0.9rem; }
  .no-js .site-nav, .reveal-fallback .site-nav { width: 100%; }
  .no-js .site-nav ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.95rem; }

  .js .site-header__inner { flex-wrap: nowrap; padding-block: 0; height: var(--header-h); }
  .nav-toggle {
    position: relative; z-index: 2;
    display: inline-flex; align-items: center; gap: 0.7rem;
    min-height: 44px; padding: 0.5rem 0.4rem 0.5rem 1rem; border: 1px solid var(--line-strong); border-radius: 999px;
    background: rgba(250, 246, 238, 0.6); color: var(--forest-900); font: 600 0.82rem/1 var(--font-body);
    letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  }
  .nav-toggle__icon { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--forest-800); }
  .nav-toggle__icon span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ivory); transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out); }
  .nav-toggle__icon span:first-child { top: 12px; }
  .nav-toggle__icon span:last-child { top: 17px; }
  .nav-open .nav-toggle { background: transparent; color: var(--ivory); border-color: rgba(239, 233, 220, 0.4); }
  .nav-open .nav-toggle__icon { background: var(--ivory); }
  .nav-open .nav-toggle__icon span { background: var(--forest-900); top: 14.5px; }
  .nav-open .nav-toggle__icon span:first-child { transform: rotate(45deg); }
  .nav-open .nav-toggle__icon span:last-child { transform: rotate(-45deg); }
  .nav-open .brand, .nav-open .brand:hover { color: var(--ivory); }
  .nav-open .brand__sub { color: rgba(239, 233, 220, 0.65); }
  .nav-open .brand__mark { color: var(--earth-300); }

  .js .site-nav {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: calc(var(--header-h) + var(--bar-h, 0px) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: var(--forest-900); color: var(--ivory);
    clip-path: circle(0% at calc(100% - 3rem) 2.4rem);
    visibility: hidden;
    transition: clip-path 0.75s var(--ease-out), visibility 0s linear 0.75s;
    overflow-y: auto;
  }
  .js.nav-open .site-nav { clip-path: circle(150% at calc(100% - 3rem) 2.4rem); visibility: visible; transition: clip-path 0.8s var(--ease-out), visibility 0s; }
  .js .site-nav li { overflow: hidden; border-bottom: 1px solid rgba(239, 233, 220, 0.12); }
  .js .site-nav li a {
    display: block; padding: 0.7rem 0; color: var(--ivory);
    font-family: var(--font-display); font-weight: 300; font-size: clamp(1.9rem, 7.5vw, 2.8rem); line-height: 1.15;
    transform: translateY(105%); transition: transform 0.7s var(--ease-out), color 0.3s;
    transition-delay: calc(0.12s + var(--i) * 0.06s);
  }
  .js.nav-open .site-nav li a { transform: translateY(0); }
  .js .site-nav li a[aria-current="page"] { color: var(--earth-300); font-style: italic; }
  .js .site-nav li a:hover { color: var(--earth-300); }
  .js .site-nav__extra {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem;
    margin-top: 2.5rem; font-size: 0.92rem; color: rgba(239, 233, 220, 0.75);
    opacity: 0; transition: opacity 0.6s 0.45s;
  }
  .js.nav-open .site-nav__extra { opacity: 1; }
  .site-nav__address { margin: 0; }
  .site-nav__phone { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ivory); text-decoration: none; font-weight: 600; }
  .site-nav__phone svg { width: 1.1rem; }
  .nav-open body, body.nav-locked { overflow: hidden; }
}
@media (max-width: 440px) {
  .brand__sub { display: none; }
  .brand__name { font-size: 1.2rem; }
}

/* 5. FOOTER -------------------------------------------------------------------- */
.site-footer { position: relative; background: var(--forest-900); color: rgba(239, 233, 220, 0.78); padding: clamp(4.5rem, 9vw, 7rem) 0 2.5rem; font-size: 0.95rem; overflow: hidden; }
.site-footer__horizon { position: absolute; left: 0; right: 0; top: 0; height: 120px; background: radial-gradient(60% 120px at 50% 0, rgba(216, 185, 148, 0.16), transparent 70%); pointer-events: none; }
.site-footer a { color: var(--ivory); text-decoration-color: rgba(239, 233, 220, 0.35); }
.site-footer a:hover { color: var(--earth-300); }
.site-footer__top { display: grid; gap: 2.75rem; grid-template-columns: 1fr; padding-bottom: 3rem; border-bottom: 1px solid rgba(239, 233, 220, 0.14); }
@media (min-width: 720px) { .site-footer__top { grid-template-columns: 1.3fr 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1080px) { .site-footer__top { grid-template-columns: 1.5fr 1fr 0.9fr 1.1fr; } .site-footer__brand { grid-column: auto; } }
.site-footer__cred { margin: 1.5rem 0 0.5rem; max-width: 34ch; line-height: 1.6; }
.site-footer__heading { font-family: var(--font-body); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--earth-300); margin: 0 0 1.1rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer__links a { text-decoration: none; }
.site-footer__small { font-size: 0.85rem; color: rgba(239, 233, 220, 0.6); }
.site-footer__bottom { padding-top: 2rem; display: grid; gap: 0.5rem; font-size: 0.82rem; color: rgba(239, 233, 220, 0.58); }
.site-footer__bottom p { margin: 0; max-width: 90ch; }
.site-footer .pending { font-size: 0.75em; }
.contact-list .pending, .site-footer .pending, .glance .pending { display: inline-block; line-height: 1.5; }

/* 6. HOME ------------------------------------------------------------------------ */

/* A. Hero */
.hero { position: relative; min-height: 100svh; min-height: max(640px, 100svh); display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; padding-top: calc(var(--header-h) + 2rem); }
.scene { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.scene__sky { position: absolute; inset: -10% 0 0; background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 48%, var(--sky-low) 74%, var(--sky-mid) 100%); }
.scene__sun { position: absolute; width: 46vmax; height: 46vmax; right: 6%; top: 34%; border-radius: 50%; background: radial-gradient(circle, var(--sun) 0%, rgba(251, 231, 198, 0.55) 30%, rgba(251, 231, 198, 0) 66%); }
.scene__layer { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.scene__far { bottom: 0; }
.scene__haze { position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(180deg, rgba(246, 220, 192, 0) 0%, rgba(241, 232, 216, 0.55) 45%, rgba(241, 232, 216, 0) 100%); }
.scene--photo img { position: absolute; inset: -6% 0 0; width: 100%; height: 106%; object-fit: cover; object-position: 50% 60%; }
@media (max-width: 760px) { .scene--photo img { object-position: 90% 60%; } } /* keep the oak trunk in frame on phones */
.hero__veil { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 86%); mask-image: linear-gradient(180deg, #000 68%, transparent 86%); background: linear-gradient(90deg, rgba(245, 239, 227, 0.9) 0%, rgba(245, 239, 227, 0.62) 38%, rgba(245, 239, 227, 0) 70%); }
@media (max-width: 760px) { .hero__veil { background: linear-gradient(180deg, rgba(245, 239, 227, 0.82) 0%, rgba(245, 239, 227, 0.7) 55%, rgba(245, 239, 227, 0.15) 85%); } }

.hero__inner { position: relative; padding-bottom: clamp(9rem, 20vh, 13rem); }
.hero__eyebrow { margin-bottom: 1.8rem; }
.hero__title { font-size: clamp(3rem, 1.6rem + 5.6vw, 6.6rem); line-height: 0.98; letter-spacing: -0.025em; margin-bottom: 2rem; max-width: 12ch; }
.hero__line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__line > * { display: inline-block; }
.hero__title em { color: var(--forest-700); font-weight: 300; }
.hero__intro { font-size: var(--step-1); line-height: 1.6; max-width: 40ch; color: var(--ink); margin-bottom: 2.4rem; }

.hero__foot { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 1.6rem; }
.hero__foot-inner { display: flex; justify-content: space-between; align-items: end; gap: 1rem; border-top: 1px solid rgba(239, 233, 220, 0.35); padding-top: 1.1rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0.3rem 2rem; list-style: none; padding: 0; margin: 0; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ivory); }
.hero__facts li { display: flex; align-items: center; gap: 0.7rem; }
.hero__facts li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--earth-300); }
.hero__scroll { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; color: var(--ivory); text-decoration: none; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; }
.hero__scroll:hover { color: var(--earth-300); }
.hero__scroll-line { position: relative; width: 1px; height: 48px; background: rgba(239, 233, 220, 0.35); overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--ivory); transform: translateY(-100%); }
@media (max-width: 640px) { .hero__facts li:nth-child(n+2) { display: none; } }

/* B. Meet */
.meet__grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
@media (min-width: 900px) { .meet__grid { grid-template-columns: 0.9fr 1.1fr; } }
.meet__media { position: relative; }
.meet__media .media { max-width: 520px; }
.meet__tag {
  position: absolute; right: -0.5rem; bottom: 2.5rem; margin: 0; writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--sage-700);
}
@media (max-width: 899.98px) { .meet__tag { display: none; } }
.prose.prose--intro h2 { max-width: 16ch; }
.prose--intro p:first-of-type { font-size: var(--step-1); line-height: 1.6; color: var(--ink); }

/* C. Intro video */
.intro-video { background: linear-gradient(180deg, transparent 0, var(--paper) 18%, var(--paper) 82%, transparent 100%); }
.intro-video__head { display: grid; gap: 1rem 4rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px) { .intro-video__head { grid-template-columns: 1fr 1fr; align-items: end; } .intro-video__head .section-mark { grid-column: 1 / -1; margin-bottom: 0; } }
.intro-video__head .prose h2 { margin-bottom: 0; }
@media (min-width: 900px) { .intro-video__head .prose { display: contents; } .intro-video__head .prose p { max-width: 44ch; color: var(--text-muted); } }
.intro-video__frame { max-width: 1080px; margin-inline: auto; }
.intro-video__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; margin: 1.4rem 0 0; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }

/* D. Areas of care */
.care__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.care__head .prose { max-width: 46rem; }
.care__head .prose p { color: var(--text-muted); max-width: 52ch; }
.care-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 640px) { .care-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .care-grid { grid-template-columns: repeat(3, 1fr); } }
.care-card { background: var(--bg); }
.care-card__link {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: clamp(1.75rem, 3vw, 2.6rem); color: inherit; text-decoration: none; overflow: hidden;
  transition: background-color 0.5s var(--ease-soft);
}
.care-card__link::before { /* a wash of sage that rises on hover */
  content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, var(--paper), var(--sage-100));
  opacity: 0; transition: opacity 0.6s var(--ease-soft);
}
.care-card__link > * { position: relative; z-index: 1; }
.care-card__top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 2.6rem; }
.care-card__num { font-family: var(--font-display); font-style: italic; color: var(--sage-700); font-size: 1.1rem; }
.care-card__icon { width: 52px; height: 52px; color: var(--forest-700); transition: transform 0.7s var(--ease-out); }
.care-card__title { font-size: var(--step-2); margin-bottom: 0.6rem; }
.care-card__text { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 1.8rem; }
.care-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.care-card__more svg { width: 1.1em; transition: transform 0.45s var(--ease-out); }
.care-card__link:hover::before, .care-card__link:focus-visible::before { opacity: 1; }
.care-card__link:hover .care-card__icon { transform: translateY(-4px) rotate(-6deg); }
.care-card__link:hover .care-card__more svg { transform: translateX(6px); }
.care-card__link:focus-visible { outline-offset: -4px; }

/* E. Personal */
.personal__grid { display: grid; align-items: center; }
.personal__media .media { border-radius: var(--radius-lg); }
.personal__card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3.5rem); box-shadow: var(--shadow); margin: -4rem 1rem 0; }
@media (min-width: 1000px) {
  .personal__grid { grid-template-columns: repeat(12, 1fr); }
  .personal__media { grid-column: 1 / span 8; grid-row: 1; }
  .personal__card { grid-column: 7 / span 6; grid-row: 1; margin: 8rem 0 0; }
  .personal__media .ph__frame { place-items: center start; padding-left: 7%; }
  .personal__media .ph__label { max-width: 46%; }
}
.personal .personal__card h2 { font-size: var(--step-3); }

/* F. Approach */
.approach { background: var(--bg-deep); color: var(--text-on-deep); overflow: hidden; isolation: isolate; }
.approach h2, .approach h3 { color: var(--ivory); }
.approach .section-mark { color: var(--earth-300); }
.approach .section-mark__num { color: var(--sage-300); }
.approach__branch { position: absolute; z-index: -1; right: -6%; top: 6%; width: min(760px, 85vw); color: var(--sage-500); opacity: 0.32; }
.approach__statement { max-width: 60rem; }
.approach .approach__statement h2 { font-size: clamp(2.8rem, 1.6rem + 5vw, 6.2rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 2.2rem; }
.approach__statement p { font-size: var(--step-1); line-height: 1.65; max-width: 46ch; color: rgba(239, 233, 220, 0.82); }
.principles { list-style: none; padding: 0; margin: clamp(3.5rem, 7vw, 6rem) 0 0; display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.principle { border-top: 1px solid rgba(239, 233, 220, 0.2); padding-top: 1.75rem; }
.principle__num { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--earth-300); margin-bottom: 1.2rem; }
.principle h3 { font-size: var(--step-2); }
.principle p { color: rgba(239, 233, 220, 0.75); margin: 0; }

/* G. New patients */
.newpatients__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.newpatients__head p { color: var(--text-muted); }
.steps { list-style: none; padding: 0; margin: 0 0 3.5rem; display: grid; gap: 2rem; position: relative; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
  .steps::before { content: ""; position: absolute; left: 0; right: 0; top: 1.5rem; height: 1px; background: var(--line-strong); transform-origin: left; transform: scaleX(var(--line-progress, 1)); transition: transform 1.6s var(--ease-out); }
}
.step { position: relative; }
.step__num { position: relative; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); font-family: var(--font-display); font-size: 1.3rem; color: var(--forest-800); margin-bottom: 1.4rem; transition: background-color 0.4s, color 0.4s; }
.step:hover .step__num { background: var(--forest-800); color: var(--ivory); }
.step h3 { font-size: var(--step-1); font-family: var(--font-display); margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.97rem; margin: 0; }
.info-tiles { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .info-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .info-tiles { grid-template-columns: repeat(4, 1fr); } }
.info-tile { padding: 1.6rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(250, 246, 238, 0.6); }
.info-tile h3 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.8rem; }
.info-tile p { margin: 0; font-size: 0.95rem; }

/* H. Location */
.location { background: linear-gradient(180deg, transparent, var(--linen)); }
.location__grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
@media (min-width: 960px) { .location__grid { grid-template-columns: 1fr 1fr; } .location__media { position: sticky; top: calc(var(--header-h) + 2rem); } }
.location__more { margin-top: 1.75rem; }

.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.75rem, 3.5vw, 2.75rem); box-shadow: var(--shadow-sm); }
.contact-card__title { font-size: var(--step-2); margin-bottom: 0.1rem; }
.contact-card__sub { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 1.6rem; }
.contact-list { margin: 0 0 2rem; display: grid; gap: 1.1rem; }
.contact-list > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
@media (max-width: 480px) { .contact-list > div { grid-template-columns: 1fr; gap: 0.3rem; } }
.contact-list dt { display: flex; align-items: center; gap: 0.55rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.contact-list dt svg { width: 1.1rem; color: var(--sage-700); flex: none; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.contact-list__note { display: inline-block; margin-top: 0.3rem; font-size: 0.85rem; color: var(--text-muted); }

/* 7. INNER PAGES -------------------------------------------------------------------- */
.page-hero { position: relative; padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg span { position: absolute; inset: -20% -10% auto auto; width: 70vmax; height: 70vmax; border-radius: 50%; background: radial-gradient(circle, rgba(185, 194, 166, 0.45), rgba(185, 194, 166, 0) 62%); }
.page-hero__inner { display: grid; gap: 3rem; align-items: center; }
.page-hero--split .page-hero__inner { grid-template-columns: 1fr; }
@media (min-width: 960px) { .page-hero--split .page-hero__inner { grid-template-columns: 1.1fr 0.9fr; gap: 5rem; } }
.page-hero__title { font-size: var(--step-5); letter-spacing: -0.025em; max-width: 14ch; }
.page-hero .lede { max-width: 46ch; }

.page-body { display: grid; gap: 3rem; padding-bottom: var(--section-y); }
@media (min-width: 1000px) { .page-body--aside { grid-template-columns: minmax(0, 1fr) 320px; gap: 5rem; align-items: start; } }

.prose--page { max-width: 46rem; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: var(--step-3); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-2); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.4em; }
.prose li { margin-bottom: 0.5em; padding-left: 0.3rem; }
.prose ul li::marker { color: var(--earth-500); }
.prose ol li::marker { color: var(--earth-600); font-family: var(--font-display); font-style: italic; }
.prose .media { margin: 2.75rem 0; }
@media (min-width: 1200px) { .prose--page > .media { margin-inline: -4rem; } .page-body--aside .prose--page > .media { margin-inline: 0 -2rem; } }
.prose blockquote { margin: 2rem 0; padding-left: 1.5rem; border-left: 2px solid var(--earth-500); font-family: var(--font-display); font-size: var(--step-1); font-style: italic; }

.callout { margin: 2rem 0; padding: 1.5rem 1.75rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.callout > :last-child { margin-bottom: 0; }
.callout ul { margin-bottom: 0; }
.callout__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.callout--pending { background: #fcf3e1; border: 1px dashed rgba(107, 69, 16, 0.4); color: var(--pending-ink); }
.callout--pending .callout__label { color: var(--pending-ink); }
.callout--pending .callout__label::before { content: "◇ "; }
.callout--note { border-left: 3px solid var(--sage-500); }
.callout--disclaimer { font-size: 0.92rem; color: var(--text-muted); margin-top: 3rem; }

.glance { position: sticky; top: calc(var(--header-h) + 2rem); padding: 2rem; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.glance__title { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.glance dl { margin: 0 0 1.75rem; }
.glance dl > div { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.glance dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.glance dd { margin: 0.2rem 0 0; font-family: var(--font-display); font-size: 1.15rem; }
@media (max-width: 999.98px) { .glance { position: static; } }

.cta-band { background: var(--bg-deep); color: var(--text-on-deep); padding: clamp(3.5rem, 7vw, 5.5rem) 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -10%; bottom: -60%; width: 60vmax; height: 60vmax; border-radius: 50%; background: radial-gradient(circle, rgba(176, 129, 79, 0.18), transparent 60%); pointer-events: none; }
.cta-band__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; }
.cta-band__title { color: var(--ivory); font-size: var(--step-3); margin-bottom: 0.4rem; }
.cta-band p { margin: 0; color: rgba(239, 233, 220, 0.78); max-width: 48ch; }

/* Pediatric care */
.service-toc { margin-top: 2.5rem; }
.service-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.service-toc a { display: inline-block; padding: 0.45rem 0.95rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.88rem; text-decoration: none; color: var(--forest-800); transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.service-toc a:hover { background: var(--forest-800); color: var(--ivory); border-color: var(--forest-800); }
.services { padding-bottom: var(--section-y); }
.service { display: grid; gap: 1.5rem; padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .service { grid-template-columns: 220px minmax(0, 46rem); gap: 4rem; } }
.service__meta { display: flex; align-items: center; gap: 1.25rem; align-self: start; }
.service__num { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--sage-700); }
.service__icon { width: 56px; height: 56px; color: var(--forest-700); }
.service__title { font-size: var(--step-3); margin-bottom: 0.5rem; }
.service__summary { font-size: var(--step-1); color: var(--text-muted); line-height: 1.55; }

/* Resources */
.h-section { font-size: var(--step-3); margin-bottom: 2rem; }
.articles { padding-bottom: clamp(3rem, 6vw, 5rem); }
.articles__grid { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .articles__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 5rem; } .articles__side { padding-top: 5rem; } }
.article-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.article-card__link { position: relative; display: block; padding: clamp(1.6rem, 3vw, 2.4rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); color: inherit; text-decoration: none; transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-soft), border-color 0.4s; }
.article-card__link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); color: inherit; }
.article-card__cat { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; }
.article-card__title { font-size: var(--step-2); margin-bottom: 0.6rem; }
.article-card__desc { color: var(--text-muted); }
.article-card__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.article-card__more { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.9rem; color: var(--forest-800); }
.article-card__more svg { width: 1.1em; transition: transform 0.45s var(--ease-out); }
.article-card__link:hover .article-card__more svg { transform: translateX(5px); }
.review-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 500; }
.review-badge--pending { background: var(--pending-bg); color: var(--pending-ink); }
.review-badge--approved { background: var(--sage-100); color: var(--forest-800); }

.trusted { padding-bottom: var(--section-y); }
.trusted__intro { color: var(--text-muted); max-width: 52ch; margin-top: -1rem; margin-bottom: 2rem; }
.trusted__list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 760px) { .trusted__list { grid-template-columns: repeat(2, 1fr); } }
.trusted__list li { background: var(--bg); }
.trusted__list a { display: block; height: 100%; padding: 1.5rem 1.75rem; text-decoration: none; color: inherit; transition: background-color 0.4s; }
.trusted__list a:hover { background: var(--paper); }
.trusted__name { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: var(--step-1); color: var(--forest-900); margin-bottom: 0.3rem; }
.trusted__name svg { width: 1rem; color: var(--accent); }
.trusted__desc { display: block; font-size: 0.93rem; color: var(--text-muted); }

/* Article */
.article__head { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); max-width: 56rem; }
.article__title { font-size: var(--step-4); letter-spacing: -0.02em; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 2.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line-strong); }
.breadcrumb a { color: var(--text-muted); }
.byline { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.92rem; }
.byline dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.3rem; }
.byline dd { margin: 0; }
.related { padding-bottom: var(--section-y); }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; max-width: 46rem; }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: var(--step-1); text-decoration: none; color: var(--forest-900); }
.related a svg { width: 1.2rem; flex: none; transition: transform 0.45s var(--ease-out); }
.related a:hover svg { transform: translateX(5px); }

/* Contact */
.contact { padding-bottom: var(--section-y); }
.contact__grid { display: grid; gap: 3rem; align-items: start; margin-bottom: clamp(3rem, 6vw, 5rem); }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.contact__notes { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .contact__notes { grid-template-columns: repeat(3, 1fr); } }
.note-block { padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--paper); }
.note-block h2 { font-size: var(--step-2); }
.note-block p:last-child { margin-bottom: 0; }
.note-block--urgent { background: var(--forest-800); color: var(--text-on-deep); border-color: var(--forest-800); }
.note-block--urgent h2 { color: var(--ivory); }
.note-block--urgent a { color: var(--earth-300); font-weight: 600; }

/* 8. PHOTO & VIDEO SLOTS ------------------------------------------------------------- */
.media { position: relative; margin: 0; aspect-ratio: var(--ratio, 4/3); border-radius: var(--radius); overflow: hidden; background: var(--linen); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media[data-parallax-media] img { height: 112%; margin-top: -6%; will-change: transform; }
.media figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: 0.35rem 0.75rem; border-radius: 999px; background: rgba(24, 38, 25, 0.7); color: var(--ivory); font-size: 0.8rem; }

/* Wireframe placeholder */
.ph { container-type: inline-size; background: linear-gradient(135deg, var(--paper), var(--sage-100)); }
.ph__frame { position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(1rem, 6cqi, 3rem); border: 1px solid rgba(93, 110, 82, 0.35); border-radius: inherit; }
.ph__guides { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph__guides line { stroke: rgba(93, 110, 82, 0.22); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ph__guides .ph__third { stroke-dasharray: 3 6; stroke: rgba(93, 110, 82, 0.16); }
.ph__corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--sage-700); }
.ph__corner--tl { top: 14px; left: 14px; border-top-width: 1.5px; border-left-width: 1.5px; }
.ph__corner--tr { top: 14px; right: 14px; border-top-width: 1.5px; border-right-width: 1.5px; }
.ph__corner--bl { bottom: 14px; left: 14px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.ph__corner--br { bottom: 14px; right: 14px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.ph__label {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  max-width: 34rem; padding: clamp(1rem, 4cqi, 1.75rem) clamp(1rem, 5cqi, 2rem);
  text-align: center; background: rgba(250, 246, 238, 0.92); border: 1px solid rgba(93, 110, 82, 0.25); border-radius: var(--radius);
  box-shadow: 0 10px 30px -18px rgba(24, 38, 25, 0.35);
}
.ph__num { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.ph__title { font-family: var(--font-display); font-size: clamp(1.05rem, 0.8rem + 2.6cqi, 1.65rem); line-height: 1.2; color: var(--forest-900); }
.ph__desc { font-size: 0.86rem; line-height: 1.55; color: var(--text-muted); }
.ph__spec { font-size: 0.72rem; line-height: 1.5; letter-spacing: 0.04em; color: var(--sage-700); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ph__play { position: absolute; z-index: 0; width: clamp(56px, 14cqi, 110px); color: var(--forest-700); opacity: 0.4; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.ph--video { background: radial-gradient(120% 90% at 30% 20%, var(--paper), var(--sage-100) 55%, var(--sage-300)); }
.ph--video .ph__label { margin-top: auto; align-self: end; }
.ph--video .ph__frame { place-items: end center; }
@container (max-width: 420px) { .ph__desc { display: none; } .ph__label { gap: 0.35rem; } }
@container (max-width: 260px) { .ph__spec { display: none; } }

/* 9. MOTION ------------------------------------------------------------------------------
   Everything is visible by default. Animations only apply when JavaScript has
   loaded (.js) AND the visitor hasn't asked for reduced motion.            */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.reveal-fallback) [data-reveal] {
    opacity: 0;
    transform: translate3d(0, var(--reveal-distance), 0);
    transition: opacity var(--reveal-duration) var(--ease-out), transform var(--reveal-duration) var(--ease-out);
    transition-delay: calc(var(--d, 0) * 0.12s + var(--i, 0) * 0.09s);
  }
  .js:not(.reveal-fallback) [data-reveal].is-visible { opacity: 1; transform: none; }

  /* Photo frames: a slow "developing" reveal */
  .js:not(.reveal-fallback) .media[data-reveal] { transform: none; clip-path: inset(8% 6% 8% 6% round var(--radius)); transition: clip-path 1.4s var(--ease-out), opacity 1.2s var(--ease-out); }
  .js:not(.reveal-fallback) .media[data-reveal] > * { transform: scale(1.08); transition: transform 1.8s var(--ease-out); }
  .js:not(.reveal-fallback) .media[data-reveal].is-visible { clip-path: inset(0 0 0 0 round var(--radius)); }
  .js:not(.reveal-fallback) .media[data-reveal].is-visible > * { transform: none; }
  .js:not(.reveal-fallback) .personal__media .media[data-reveal].is-visible { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
  .js:not(.reveal-fallback) .media[data-parallax-media] img { transform: none; transition: none; }

  /* Section marks: the rule draws in */
  .js:not(.reveal-fallback) .section-mark .section-mark__rule { transform: scaleX(0); transition: transform 1.2s 0.2s var(--ease-out); }
  .js:not(.reveal-fallback) .section-mark.is-visible .section-mark__rule { transform: scaleX(1); }

  /* New-patient timeline draws across */
  .js:not(.reveal-fallback) .steps { --line-progress: 0; }
  .js:not(.reveal-fallback) .steps.is-drawn { --line-progress: 1; }

  /* Hero entrance */
  .js .hero-in { animation: hero-rise 1.4s var(--ease-out) both; animation-delay: calc(0.15s + var(--d, 0) * 0.13s); }
  .js .hero__line .hero-in { animation-name: hero-line; }
  .js .scene__layer, .js .scene__sky { animation: scene-settle 2.4s var(--ease-out) both; }
  .js .scene__far { animation-delay: 0.1s; } .js .scene__mid { animation-delay: 0.2s; } .js .scene__near { animation-delay: 0.3s; }
  .hero__scroll-line::after { animation: scroll-cue 2.6s var(--ease-soft) 2s infinite; }
  .scene__sun { animation: sun-breathe 12s ease-in-out infinite alternate; }

  [data-parallax], [data-parallax-media] img { will-change: transform; }
}
@keyframes hero-rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@keyframes hero-line { from { opacity: 0; transform: translate3d(0, 105%, 0); } to { opacity: 1; transform: none; } }
@keyframes scene-settle { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }
@keyframes sun-breathe { from { scale: 1; opacity: 0.9; } to { scale: 1.08; opacity: 1; } }

/* 10. REDUCED MOTION & PRINT --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
@media print {
  .site-header, .preview-bar, .hero .scene, .nav-toggle, .cta-band, .hero__foot { display: none !important; }
  body { background: #fff; }
  body::before { display: none; }
  .site-footer { background: #fff; color: #000; }
}

/* Article column alignment & odd-count resource grid */
.page-article .container { max-width: 50rem; }
.page-article .prose--page { max-width: none; }
.trusted__list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 520px) { .eyebrow { letter-spacing: 0.14em; } .eyebrow::before { width: 1.5rem; } }
