/* =========================================================
   Dr Kretschmer Associates — site styles
   Palette taken from the practice logo (olive heart, navy
   stethoscope, cream cross) plus warm cement neutrals.
   ========================================================= */

:root {
  --paper: #f5f2eb;
  --paper-2: #ebe6da;
  --stone: #c9c1b1;
  --stone-dark: #8c8577;
  --ink: #1d2730;
  --navy: #303e4b;
  --olive: #5e8b50;
  --olive-text: #46693b;
  --olive-deep: #26341f;
  --olive-night: #1b2617;
  --cream: #f3e6c4;
  --cream-soft: #f6efdd;
  --line: rgba(29, 39, 48, 0.14);
  --line-light: rgba(246, 239, 221, 0.18);

  --f-display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --f-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --radius: 22px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--olive); color: var(--cream-soft); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.display em, .serif-em { font-style: italic; color: var(--olive-text); }
.on-dark .display em, .on-dark .serif-em { color: var(--cream); }
.xxl { font-size: clamp(3.4rem, 10.5vw, 11rem); }
.xl  { font-size: clamp(2.8rem, 7.2vw, 7.4rem); }
.lg  { font-size: clamp(2.3rem, 5vw, 4.8rem); }
.md  { font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.02; }
.sm-d { font-size: clamp(1.45rem, 2.1vw, 2rem); line-height: 1.1; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-dark);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--olive);
}
.on-dark .eyebrow { color: rgba(246, 239, 221, 0.62); }
.on-dark .eyebrow::before { background: var(--cream); }
.mono { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.04em; }
.lede { font-size: clamp(1.08rem, 1.35vw, 1.3rem); line-height: 1.5; max-width: 34em; color: #34404b; }
.on-dark .lede { color: rgba(246, 239, 221, 0.82); }
.muted { color: var(--stone-dark); }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: var(--cream-soft);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px; border: 0;
  background: var(--b-bg); color: var(--b-fg);
  text-decoration: none; font-weight: 500; font-size: 0.98rem; letter-spacing: -0.005em;
  overflow: hidden; isolation: isolate; cursor: pointer;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--olive); border-radius: inherit;
  transform: translateY(101%); transition: transform 0.55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn .arrow { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }
.btn--light { --b-bg: var(--cream-soft); --b-fg: var(--ink); }
.btn--light::before { background: var(--cream); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { --b-fg: var(--cream-soft); }
.on-dark .btn--ghost { --b-fg: var(--cream-soft); box-shadow: inset 0 0 0 1px var(--line-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-u {
  text-decoration: none; background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.5s var(--ease); padding-bottom: 2px;
}
.link-u:hover { background-size: 0% 1px; background-position: 100% 100%; }

/* ---------- header ---------- */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ink); color: var(--cream-soft); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--header-h);
  transition: transform 0.6s var(--ease), background-color 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-scrolled {
  background: rgba(245, 242, 235, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-row {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong { font-family: var(--f-display); font-weight: 400; font-size: 1.32rem; letter-spacing: -0.01em; }
.brand-name span { font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-dark); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a.nav-link {
  text-decoration: none; font-size: 0.93rem; position: relative; padding: 4px 0;
}
.nav a.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav a.nav-link:hover::after, .nav a.nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-cta { padding: 12px 20px; font-size: 0.9rem; }

.menu-btn {
  display: none; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer;
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 0;
}
.menu-btn .bars { width: 26px; height: 10px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 8px; }
.menu-open .menu-btn .bars::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-btn .bars::after { top: 4px; transform: rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80; background: var(--olive-deep); color: var(--cream-soft);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s linear 0.8s;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.8s var(--ease-in-out); }
.menu-open .site-header { color: var(--cream-soft); background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .site-header .brand img { filter: brightness(0) invert(0.93) sepia(0.2); }
.menu-open .site-header .brand-name span { color: rgba(246,239,221,0.6); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--f-display); font-size: clamp(2.6rem, 11vw, 4.2rem); line-height: 1.08; text-decoration: none;
  display: flex; align-items: baseline; gap: 14px; overflow: hidden;
}
.mobile-menu nav a span.n { font-family: var(--f-mono); font-size: 0.75rem; opacity: 0.5; }
.mobile-menu nav a .t { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease); }
.menu-open .mobile-menu nav a .t { transform: translateY(0); }
.mobile-menu nav a:nth-child(2) .t { transition-delay: 0.05s; }
.mobile-menu nav a:nth-child(3) .t { transition-delay: 0.1s; }
.mobile-menu nav a:nth-child(4) .t { transition-delay: 0.15s; }
.mobile-menu nav a:nth-child(5) .t { transition-delay: 0.2s; }
.mobile-menu nav a:nth-child(6) .t { transition-delay: 0.25s; }
.mobile-menu .mm-foot { display: grid; gap: 6px; font-size: 0.95rem; color: rgba(246,239,221,0.75); }
.mobile-menu .mm-foot a { text-decoration: none; color: var(--cream-soft); }

/* ---------- loader & page transition ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 200; background: var(--olive-deep); color: var(--cream-soft);
  display: grid; place-items: center; pointer-events: none;
  transform: translateY(-101%);
}
.curtain .c-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; opacity: 0; }
.curtain img { width: 84px; }
.curtain .c-name { font-family: var(--f-display); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.is-entering .curtain, .curtain.is-loading { transform: translateY(0); }
.first-visit .curtain .c-inner { opacity: 1; transition: opacity 0.5s ease 0.1s; }
.curtain.is-leaving { transform: translateY(-101%); transition: transform 1s var(--ease-in-out); }
.curtain.is-covering { transform: translateY(0); transition: transform 0.65s var(--ease-in-out); pointer-events: all; }
.curtain.from-bottom { transform: translateY(101%); }
.curtain .c-bar { width: 140px; height: 1px; background: rgba(246,239,221,0.2); position: relative; overflow: hidden; }
.curtain .c-bar::after { content: ""; position: absolute; inset: 0; background: var(--cream); transform: scaleX(0); transform-origin: left; }
.first-visit .curtain.is-loading .c-bar::after { transform: scaleX(1); transition: transform 1.1s var(--ease-in-out) 0.15s; }

/* ---------- reveal system (only active when JS + motion allowed) ---------- */
.anim [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.anim [data-reveal].is-in { opacity: 1; transform: none; }
.anim [data-reveal="fade"] { transform: none; }
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.split-word > span { display: inline-block; }
.anim [data-split] .split-word > span { transform: translateY(110%); transition: transform 1.2s var(--ease); }
.anim [data-split].is-in .split-word > span { transform: translateY(0); }

.anim [data-clip] { clip-path: inset(14% 10% 14% 10% round var(--radius)); transition: clip-path 1.6s var(--ease); }
.anim [data-clip] img { transform: scale(1.22); transition: transform 1.8s var(--ease); }
.anim [data-clip].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.anim [data-clip].is-in img { transform: scale(1); }

.scrub-words .w { transition: opacity 0.25s linear, color 0.25s linear; }
.anim .scrub-words .w { opacity: 0.16; }
.anim .scrub-words .w.lit { opacity: 1; }

.sig-wipe { display: inline-block; }
.anim .sig-wipe { clip-path: inset(0 97% 0 0); transition: clip-path 2.2s var(--ease-in-out) 0.2s; }
.anim .sig-wipe.is-in { clip-path: inset(0 0 0 0); }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh;
  padding: calc(var(--header-h) + clamp(28px, 6vh, 72px)) 0 clamp(32px, 6vh, 64px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(24px, 4vw, 64px); align-items: end;
}
.hero-title { font-size: clamp(3.2rem, 8.4vw, 9rem); }
.hero h1 { margin: 18px 0 clamp(20px, 3vw, 36px); }
.hero .lede { margin-bottom: 28px; }
.hero-meta {
  margin-top: clamp(36px, 7vh, 80px); padding-top: 18px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .mono { color: var(--stone-dark); }
.hero-meta strong { font-weight: 500; font-size: 0.95rem; }

.portrait-arch {
  position: relative; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden;
  aspect-ratio: 3 / 4; background: #0c0c0c; width: 100%; max-width: 460px; margin-left: auto;
}
.portrait-arch img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 20%; will-change: transform; }
.portrait-wrap { position: relative; }
.badge-spin {
  position: absolute; left: -46px; bottom: 38px; width: 132px; height: 132px; z-index: 3;
  background: var(--paper); border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 10px 40px -12px rgba(29,39,48,0.35);
}
.badge-spin svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); animation: spin 18s linear infinite; }
.badge-spin text { font-family: var(--f-mono); font-size: 8.4px; letter-spacing: 0.22em; text-transform: uppercase; fill: var(--ink); }
.badge-spin img { width: 50px; }
@keyframes spin { to { transform: rotate(360deg); } }
.portrait-tag {
  position: absolute; right: 16px; top: 46%; z-index: 3;
  background: rgba(245, 242, 235, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 14px; padding: 10px 14px; font-size: 0.82rem; line-height: 1.3;
}
.portrait-tag strong { display: block; font-weight: 500; }
.portrait-tag span { font-family: var(--f-mono); font-size: 0.68rem; color: var(--stone-dark); }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap; padding: clamp(14px, 2vw, 22px) 0;
  user-select: none;
}
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-group { display: inline-flex; align-items: center; }
.marquee-item {
  font-family: var(--f-display); font-size: clamp(1.7rem, 3.6vw, 3.3rem); line-height: 1;
  padding: 0 clamp(16px, 2.2vw, 34px); display: inline-flex; align-items: center; gap: clamp(16px, 2.2vw, 34px);
}
.marquee-item::after {
  content: ""; width: 0.38em; height: 0.38em; background: var(--olive);
  clip-path: polygon(38% 0, 62% 0, 62% 38%, 100% 38%, 100% 62%, 62% 62%, 62% 100%, 38% 100%, 38% 62%, 0 62%, 0 38%, 38% 38%);
}
.marquee-item:nth-child(even) { font-style: italic; color: var(--olive-text); }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vw, 180px) 0; position: relative; }
.section--tight { padding: clamp(60px, 8vw, 110px) 0; }
.on-dark { background: var(--olive-deep); color: var(--cream-soft); }
.on-night { background: var(--olive-night); color: var(--cream-soft); }
.bg-2 { background: var(--paper-2); }

.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(40px, 6vw, 80px); flex-wrap: wrap; }
.sec-head .display { max-width: 12ch; }
.sec-head p { max-width: 28em; margin: 0; }

/* statement */
.statement { display: grid; grid-template-columns: minmax(0, 0.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); }
.statement-text { font-family: var(--f-display); font-size: clamp(1.9rem, 3.7vw, 3.6rem); line-height: 1.1; letter-spacing: -0.012em; }
.statement-sig { display: flex; align-items: center; gap: 22px; margin-top: 36px; }
.statement-sig img { width: clamp(110px, 12vw, 160px); }
.statement-sig .who { font-size: 0.9rem; line-height: 1.35; }
.statement-sig .who strong { display: block; font-weight: 500; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: clamp(64px, 9vw, 120px); }
.stat { padding: 28px 24px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--f-display); font-size: clamp(3.6rem, 8vw, 7.5rem); line-height: 0.9; letter-spacing: -0.03em; }
.stat .num sup { font-size: 0.42em; vertical-align: top; position: relative; top: 0.25em; color: var(--olive-text); }
.stat p { margin: 12px 0 0; max-width: 18em; color: #4a5560; font-size: 0.95rem; }

/* service index rows */
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 0.8fr) 56px;
  align-items: center; gap: 24px; padding: clamp(24px, 3vw, 38px) 0; border-bottom: 1px solid var(--line);
  text-decoration: none; isolation: isolate; overflow: hidden;
}
.svc-row::before {
  content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; background: var(--olive-deep);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.7s var(--ease);
}
.svc-row .n { font-family: var(--f-mono); font-size: 0.8rem; color: var(--stone-dark); transition: color 0.5s; }
.svc-row h3 { font-family: var(--f-display); font-size: clamp(2rem, 4.4vw, 4.2rem); line-height: 1; letter-spacing: -0.015em; transition: transform 0.7s var(--ease), color 0.5s; }
.svc-row p { margin: 0; font-size: 0.95rem; color: #4a5560; transition: color 0.5s; }
.svc-row .go {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  transition: background 0.5s, border-color 0.5s, transform 0.7s var(--ease);
}
.svc-row .go svg { width: 20px; height: 20px; transition: transform 0.6s var(--ease); }
@media (hover: hover) {
  .svc-row:hover::before { transform: scaleY(1); }
  .svc-row:hover { color: var(--cream-soft); }
  .svc-row:hover .n, .svc-row:hover p { color: rgba(246,239,221,0.75); }
  .svc-row:hover h3 { transform: translateX(16px); font-style: italic; }
  .svc-row:hover .go { background: var(--cream); border-color: var(--cream); color: var(--ink); }
  .svc-row:hover .go svg { transform: rotate(-45deg); }
}

/* ---------- journey (horizontal scroll) ---------- */
.journey { position: relative; }
.journey-pin { position: relative; }
.journey-track {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 48px);
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.journey-track::-webkit-scrollbar { display: none; }
.j-intro { flex: 0 0 min(560px, 82vw); scroll-snap-align: start; }
.j-intro h2 { margin: 18px 0 22px; }
.j-card { flex: 0 0 auto; margin: 0; scroll-snap-align: center; position: relative; }
.j-card .ph { overflow: hidden; border-radius: 18px; background: #0d120b; }
.j-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.8s ease; filter: saturate(0.9); }
.j-card:hover img { transform: scale(1.05); filter: saturate(1.05); }
.j-card figcaption {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 14px;
  font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(246,239,221,0.66);
}
.j-card figcaption b { font-weight: 400; color: var(--cream-soft); }
.j-card.tall .ph { width: clamp(240px, 24vw, 380px); height: clamp(340px, 62vh, 600px); }
.j-card.wide .ph { width: clamp(300px, 40vw, 640px); height: clamp(220px, 44vh, 430px); }
.j-card.sq .ph { width: clamp(240px, 27vw, 420px); height: clamp(240px, 46vh, 440px); }
.j-card.up { align-self: flex-start; margin-top: 4vh; }
.j-card.down { align-self: flex-end; margin-bottom: 4vh; }
.j-quote { flex: 0 0 min(520px, 80vw); scroll-snap-align: center; padding-right: var(--gutter); }
.j-quote .display { font-size: clamp(2.2rem, 4.2vw, 4rem); line-height: 1.02; }
.j-quote img { width: 150px; margin-top: 28px; }
.journey-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 36px; height: 1px; background: var(--line-light); display: none; }
.journey-progress span { position: absolute; inset: 0; background: var(--cream); transform-origin: left; transform: scaleX(0); }
.journey-hint { position: absolute; right: var(--gutter); top: 32px; display: flex; gap: 10px; align-items: center; }

/* pinned mode (desktop, set by JS) */
.journey.is-pinned .journey-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.journey.is-pinned .journey-track { overflow: visible; scroll-snap-type: none; will-change: transform; height: 100%; }
.journey.is-pinned .journey-progress { display: block; }

/* ---------- practice / visit ---------- */
.visit { position: relative; }
.visit-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 7.6; }
.visit-media img { width: 100%; height: 100%; object-fit: cover; }
.visit-card {
  position: absolute; left: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px);
  background: rgba(245, 242, 235, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 18px; padding: clamp(16px, 2vw, 26px); max-width: 360px; display: grid; gap: 10px;
}
.visit-card .addr { font-family: var(--f-display); font-size: 1.55rem; line-height: 1.1; }
.open-badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: rgba(94,139,80,0.14); color: var(--olive-text); width: max-content;
}
.open-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; }
.open-badge.closed { background: rgba(29,39,48,0.08); color: #5a636b; }
.open-badge.closed::before { animation: none; }
.on-dark .open-badge { background: rgba(243,230,196,0.12); color: var(--cream); }
.on-dark .open-badge.closed { background: rgba(246,239,221,0.08); color: rgba(246,239,221,0.7); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94,139,80,0.5); } 70% { box-shadow: 0 0 0 8px rgba(94,139,80,0); } 100% { box-shadow: 0 0 0 0 rgba(94,139,80,0); } }
.visit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.visit-grid h4 { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone-dark); margin-bottom: 10px; }
.visit-grid p, .visit-grid a { font-size: 1.02rem; }

/* ---------- mantra ---------- */
.mantra { overflow: hidden; }
.mantra-line { display: block; }
.mantra-line:nth-child(2) { padding-left: 12vw; }
.mantra-line:nth-child(3) { padding-left: 4vw; }
.mantra-line:nth-child(4) { padding-left: 18vw; }

/* ---------- footer ---------- */
.site-footer { background: var(--olive-night); color: var(--cream-soft); padding-top: clamp(80px, 10vw, 140px); overflow: hidden; }
.foot-cta { display: flex; flex-direction: column; gap: 28px; padding-bottom: clamp(56px, 8vw, 100px); border-bottom: 1px solid var(--line-light); }
.foot-cta a.big { text-decoration: none; font-family: var(--f-display); font-size: clamp(3rem, 9.5vw, 10rem); line-height: 0.95; letter-spacing: -0.025em; display: inline-flex; align-items: center; gap: 0.25em; transition: color 0.5s; }
.foot-cta a.big:hover { color: var(--cream); font-style: italic; }
.foot-cta a.big svg { width: 0.55em; height: 0.55em; transition: transform 0.7s var(--ease); flex: none; }
.foot-cta a.big:hover svg { transform: rotate(-45deg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; padding: 56px 0; }
.foot-grid h4 { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(246,239,221,0.5); margin-bottom: 14px; }
.foot-grid p, .foot-grid li { font-size: 0.95rem; color: rgba(246,239,221,0.85); margin: 0 0 6px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--cream); }
.foot-brand img { width: 64px; margin-bottom: 18px; }
.foot-brand p { max-width: 22em; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 22px 0 28px; border-top: 1px solid var(--line-light); font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: rgba(246,239,221,0.5); }
.foot-bottom button { background: none; border: 0; cursor: pointer; color: inherit; font: inherit; text-transform: uppercase; letter-spacing: 0.08em; }
.foot-word { font-family: var(--f-display); font-size: 21vw; line-height: 0.75; letter-spacing: -0.04em; color: rgba(246,239,221,0.06); white-space: nowrap; margin: 10px 0 -2vw; text-align: center; user-select: none; }

/* ---------- inner page hero ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(48px, 10vh, 120px)) 0 clamp(48px, 8vw, 100px); position: relative; }
.page-hero h1 { margin: 22px 0 28px; }
.page-hero .lede { max-width: 36em; }
.page-hero-row { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }

/* doctor hero */
.doc-hero { padding: calc(var(--header-h) + 40px) 0 clamp(60px, 8vw, 110px); }
.doc-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.doc-hero .portrait-arch { max-width: 520px; }
.doc-hero h1 { margin: 22px 0 30px; }

/* two col text blocks */
.split { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 110px); }
.split .sticky { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.prose p { font-size: clamp(1.05rem, 1.2vw, 1.2rem); line-height: 1.65; max-width: 36em; color: #2f3a44; }
.on-dark .prose p { color: rgba(246,239,221,0.85); }
.prose p.big { font-family: var(--f-display); font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.15; color: var(--ink); letter-spacing: -0.01em; }
.on-dark .prose p.big { color: var(--cream-soft); }

/* timeline */
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline .tl-progress { position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--olive); transform-origin: top; transform: scaleY(0); }
.tl-item { position: relative; padding: 0 0 clamp(36px, 5vw, 60px); }
.tl-item::before { content: ""; position: absolute; left: -36px; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 1px solid var(--stone-dark); transition: background 0.5s, border-color 0.5s; }
.tl-item.is-in::before { background: var(--olive); border-color: var(--olive); }
.tl-item .when { font-family: var(--f-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--olive-text); }
.tl-item h3 { font-family: var(--f-display); font-size: clamp(1.7rem, 2.8vw, 2.6rem); line-height: 1.05; margin: 6px 0 10px; }
.tl-item p { margin: 0; max-width: 34em; color: #4a5560; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.92rem; transition: background 0.4s, color 0.4s, border-color 0.4s; }
.chip:hover { background: var(--ink); color: var(--cream-soft); border-color: var(--ink); }
.on-dark .chip { border-color: var(--line-light); }

/* mosaic */
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); align-items: start; }
.mosaic-col { display: grid; gap: clamp(14px, 2vw, 28px); }
.mosaic-col:nth-child(2) { margin-top: clamp(40px, 10vw, 160px); }
.mosaic-col:nth-child(3) { margin-top: clamp(20px, 4vw, 60px); }
.m-item { margin: 0; }
.m-item .ph { overflow: hidden; border-radius: 16px; }
.m-item img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.m-item:hover img { transform: scale(1.04); }
.m-item figcaption { margin-top: 10px; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone-dark); display: flex; justify-content: space-between; }

/* principles */
.principles { border-top: 1px solid var(--line); counter-reset: p; }
.principle { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px; padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.principle .n { font-family: var(--f-mono); font-size: 0.8rem; color: var(--olive-text); }
.principle p { margin: 0; font-family: var(--f-display); font-size: clamp(1.7rem, 3.4vw, 3.2rem); line-height: 1.06; letter-spacing: -0.012em; }
.on-dark .principles, .on-dark .principle { border-color: var(--line-light); }
.on-dark .principle .n { color: var(--cream); }

.pull { font-family: var(--f-display); font-size: clamp(2.1rem, 4.6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.015em; max-width: 18ch; }
.prose p.pull { line-height: 1.08; max-width: 20ch; }
.pull::before { content: "\201C"; color: var(--olive-text); }
.pull::after { content: "\201D"; color: var(--olive-text); }
.on-dark .pull::before, .on-dark .pull::after { color: var(--cream); }

.media-band { border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; }
.media-band img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }

.big-year { font-family: var(--f-display); font-size: clamp(7rem, 22vw, 22rem); line-height: 0.8; letter-spacing: -0.05em; color: var(--olive-text); }

/* ---------- services page ---------- */
.svc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.svc-nav { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: grid; gap: 2px; }
.svc-nav a { text-decoration: none; padding: 10px 0 10px 18px; border-left: 1px solid var(--line); font-size: 0.95rem; color: var(--stone-dark); transition: color 0.4s, border-color 0.4s, padding 0.5s var(--ease); }
.svc-nav a:hover { color: var(--ink); }
.svc-nav a.active { color: var(--ink); border-color: var(--olive); padding-left: 26px; }
.svc-block { padding-bottom: clamp(70px, 9vw, 130px); scroll-margin-top: calc(var(--header-h) + 24px); }
.svc-block-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.svc-block-head .n { font-family: var(--f-mono); font-size: 0.8rem; color: var(--olive-text); }
.svc-block-head .brandmark { margin-left: auto; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--cream-soft); white-space: nowrap; }
.svc-intro { font-size: clamp(1.1rem, 1.4vw, 1.3rem); max-width: 36em; color: #2f3a44; margin-bottom: 30px; }
.svc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc-card {
  position: relative; background: var(--paper-2); border-radius: 20px; padding: clamp(22px, 2.6vw, 34px);
  display: flex; flex-direction: column; gap: 12px; min-height: 230px; overflow: hidden; isolation: isolate;
  transition: transform 0.6s var(--ease);
}
.svc-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--olive-deep); clip-path: circle(0% at 90% 10%); transition: clip-path 0.9s var(--ease); }
.svc-card h3 { font-family: var(--f-display); font-size: clamp(1.6rem, 2.2vw, 2.15rem); line-height: 1.05; transition: color 0.5s; }
.svc-card p { margin: 0; color: #4a5560; transition: color 0.5s; }
.svc-card .ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--olive-text); transition: background 0.5s, color 0.5s; }
.svc-card .ic svg { width: 20px; height: 20px; }
@media (hover: hover) {
  .svc-card:hover { transform: translateY(-4px); }
  .svc-card:hover::after { clip-path: circle(150% at 90% 10%); }
  .svc-card:hover h3 { color: var(--cream-soft); }
  .svc-card:hover p { color: rgba(246,239,221,0.8); }
  .svc-card:hover .ic { background: var(--cream); color: var(--ink); }
}
.svc-card.wide { grid-column: 1 / -1; min-height: 0; }
.test-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.test-pills span { font-family: var(--f-mono); font-size: 0.78rem; padding: 7px 12px; border-radius: 999px; background: var(--paper); }
.svc-card:hover .test-pills span { background: rgba(246,239,221,0.12); color: var(--cream-soft); }

/* ---------- rates ---------- */
.network-rows { border-top: 1px solid var(--line); }
.network-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: clamp(18px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--line); }
.network-row h3 { font-family: var(--f-display); font-size: clamp(1.9rem, 3.8vw, 3.6rem); line-height: 1.05; }
.network-row .note { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--stone-dark); white-space: nowrap; }
.scheme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.scheme { background: var(--paper); padding: clamp(20px, 2.6vw, 34px) clamp(16px, 2vw, 26px); min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; transition: background 0.5s, color 0.5s; }
.scheme .idx { font-family: var(--f-mono); font-size: 0.7rem; color: var(--stone-dark); transition: color 0.5s; }
.scheme strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.05; }
.scheme small { display: block; font-size: 0.78rem; color: var(--stone-dark); margin-top: 4px; font-family: var(--f-sans); transition: color 0.5s; }
.scheme:hover { background: var(--olive-deep); color: var(--cream-soft); }
.scheme:hover .idx, .scheme:hover small { color: rgba(246,239,221,0.6); }
.pay-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pay-card { border-radius: 20px; padding: clamp(22px, 2.6vw, 34px); border: 1px solid var(--line-light); display: flex; flex-direction: column; gap: 16px; min-height: 240px; }
.pay-card .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--cream); color: var(--ink); display: grid; place-items: center; }
.pay-card .ic svg { width: 22px; height: 22px; }
.pay-card h3 { font-family: var(--f-display); font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1.08; margin-top: auto; }
.pay-card p { margin: 0; color: rgba(246,239,221,0.78); }

/* ---------- contact ---------- */
.contact-big { display: grid; gap: 8px; margin-top: 24px; }
.contact-big a { font-family: var(--f-display); font-size: clamp(2.3rem, 6vw, 5.6rem); line-height: 1; letter-spacing: -0.02em; text-decoration: none; width: max-content; max-width: 100%; overflow-wrap: anywhere; transition: color 0.4s; }
.contact-big a:hover { color: var(--olive-text); font-style: italic; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.info-block { padding: 24px 0; border-top: 1px solid var(--line); }
.info-block h4 { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone-dark); margin-bottom: 12px; }
.info-block p { margin: 0 0 6px; font-size: 1.05rem; }
.hours { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.hours td { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-family: var(--f-mono); font-size: 0.88rem; }
.hours tr.today td { color: var(--olive-text); font-weight: 500; }
.hours tr.today td:first-child::after { content: " · today"; font-family: var(--f-mono); font-size: 0.72rem; font-weight: 400; }
.map-frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.2; background: var(--paper-2); position: relative; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.02); }

/* magnetic */
[data-magnetic] { transition: transform 0.6s var(--ease); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav .nav-link { display: none; }
  .menu-btn { display: inline-flex; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .scheme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .hero { min-height: auto; }
  .hero-grid, .doc-hero-grid { grid-template-columns: 1fr; }
  .portrait-wrap { order: -1; max-width: 250px; margin: 0 auto 8px; width: 100%; }
  .doc-hero .portrait-wrap { max-width: 300px; }
  .portrait-arch { max-width: none; margin: 0; }
  .badge-spin { left: -10px; bottom: -14px; width: 108px; height: 108px; }
  .badge-spin img { width: 40px; }
  .hero-meta { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .hero-meta div:last-child { grid-column: 1 / -1; }
  .statement, .split, .contact-grid { grid-template-columns: 1fr; }
  .split .sticky { position: static; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0 26px; }
  .svc-row { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 14px; }
  .svc-row p { display: none; }
  .svc-row .go { width: 44px; height: 44px; }
  .visit-media { aspect-ratio: 4 / 3.4; }
  .visit-card { position: relative; left: auto; bottom: auto; max-width: none; margin: -60px 12px 0; }
  .visit-grid { grid-template-columns: 1fr; gap: 18px; }
  .svc-layout { grid-template-columns: 1fr; }
  .svc-nav { display: none; }
  .pay-cards { grid-template-columns: 1fr; }
  .pay-card { min-height: 0; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic-col:nth-child(3) { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; margin-top: 0; }
  .media-band { aspect-ratio: 4 / 3; }
  .mantra-line:nth-child(n) { padding-left: 0; }
  .mantra-line:nth-child(even) { padding-left: 8vw; }
}
@media (max-width: 640px) {
  .svc-cards { grid-template-columns: 1fr; }
  .svc-card { min-height: 0; }
  .scheme-grid { grid-template-columns: 1fr 1fr; }
  .scheme { min-height: 110px; }
  .foot-grid { grid-template-columns: 1fr; }
  .principle { grid-template-columns: 44px minmax(0, 1fr); }
  .network-row { flex-direction: column; gap: 4px; }
  .header-cta .label-long { display: none; }
  .brand-name span { display: none; }
  .svc-block-head { flex-wrap: wrap; }
  .svc-block-head .brandmark { margin-left: 0; }
}

/* reduced motion: everything visible, nothing moves */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
