/* ==========================================================================
   Dental Solutions · site stylesheet
   Design system: DESIGN.md ("The Considered Practice")
   ========================================================================== */

/* ---------- Fonts (self-hosted; SIL Open Font License) ---------- */
@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/marcellus-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/marcellus-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #0b1f44;
  --navy-2: #132d5e;
  --blue: #1f4fd6;
  --blue-d: #173fb3;
  --sky: #bcd2ff;
  --mist: #e4eeff;
  --azure: linear-gradient(135deg, #2b5fd9 0%, #3470e6 100%);
  --hint: #7a86a0;
  --ice: #e8f1ff;
  --ice-2: #d9e8ff;
  --rule: #cfdef5;
  --slate: #4f5b74;
  --white: #fff;
  --paper: #f4f8ff;
  --ph: #fff6cc;
  --open: #1f9d63;
  --closed: #c2410c;

  --serif: "Marcellus", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  /* Type scale (DESIGN.md) */
  --fs-xs: 13.5px;
  --fs-sm: 14.5px;
  --fs-ui: 15.5px;
  --fs-body-sm: 16.5px;
  --fs-body: 17px;
  --fs-kicker: 12.5px;
  --fs-intro: 18px;
  --fs-lede: 19.5px;
  --fs-t-xs: 22px;
  --fs-t-s: 26px;
  --fs-title-s: clamp(1.3rem, 1.9vw, 1.7rem);
  --fs-title: clamp(1.6rem, 2.4vw, 2.25rem);
  --fs-title-l: clamp(1.9rem, 3vw, 2.75rem);
  --fs-headline: clamp(2.5rem, 4.6vw, 4.3rem);
  --fs-statement: clamp(2.3rem, 5.2vw, 5rem);
  --fs-display: clamp(3.2rem, 6.4vw, 5.9rem);
  --fs-display-xl: clamp(3.4rem, 7vw, 6rem);

  --gutter: 40px;
  --max: 1280px;
  --header: 84px;
  --hdr: var(--header); /* visible header height, updated by JS */
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));

  --float: 0 30px 60px -20px rgba(11, 31, 68, .45);
  --lift: 0 12px 30px -16px rgba(11, 31, 68, .35);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--navy);
  background: var(--paper);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:where(ul[class], ol[class]), .site-footer ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--blue); color: #fff; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Utilities ---------- */
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 4px; font-weight: 600;
  transform: translateY(-160%); transition: transform .25s var(--ease);
}
.skip:focus { transform: none; }
.ph { background: var(--ph); box-shadow: 0 0 0 3px var(--ph); border-radius: 2px; color: var(--navy); }
.note { font-size: var(--fs-xs); color: var(--slate); }
:is(.sec-head, .gallery-head) p .note { display: block; margin-top: 12px; line-height: 1.5; }

/* ---------- Type ---------- */
.display {
  font-family: var(--serif);
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -.012em;
  color: var(--navy);
}
.headline, .sec-head h2 {
  font-family: var(--serif);
  font-size: var(--fs-headline);
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--navy);
}
.title { font-family: var(--serif); font-size: var(--fs-title); line-height: 1.1; color: var(--navy); }
.lede { font-size: var(--fs-lede); font-weight: 350; line-height: 1.65; color: var(--slate); max-width: 44ch; }

/* Kicker: a small tracked label with a dot, used only where a section needs naming */
.kicker {
  display: inline-flex; align-items: flex-start; gap: 12px; margin-bottom: 26px;
  font-size: var(--fs-kicker); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; line-height: 1.5; color: var(--navy);
}
.kicker::before { content: ""; width: 7px; height: 7px; margin-top: calc((1.5em - 7px) / 2); border-radius: 50%; background: var(--blue); flex: none; }
:is(.approach, .mirror, .statement, .on-navy) .kicker { color: #fff; }
:is(.approach, .mirror, .statement, .on-navy) .kicker::before { background: var(--sky); }
.crumbs { display: flex; gap: 8px; font-size: var(--fs-sm); color: var(--slate); margin-bottom: 28px; }
.crumbs a { font-weight: 600; color: var(--navy); }
.crumbs a:hover { color: var(--blue); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 26px; border-radius: 999px;
  font-weight: 600; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.1; white-space: nowrap;
  transition: background-color .25s, color .25s, box-shadow .25s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr, .tlink:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); }
.btn-ink { background: var(--navy); color: #fff; }
.btn-ink:hover { background: var(--blue); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--ice-2); }
.btn-line { color: var(--navy); box-shadow: inset 0 0 0 1px var(--rule); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--navy); }
.btn-line-light { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.btn-line-light:hover { box-shadow: inset 0 0 0 1px #fff; background: rgba(255, 255, 255, .06); }
.btn-lg { padding: 21px 32px; font-size: 13px; }
.btn svg { width: 17px; height: 17px; flex: none; }
.tlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy);
  border-bottom: 1px solid currentColor; padding-bottom: 6px;
  transition: color .25s;
}
.tlink:hover { color: var(--blue); }
.tlink .arr { display: inline-block; transition: transform .35s var(--ease); }
.tlink-light { color: #fff; }
.tlink-light:hover { color: var(--sky); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--rule); background: #fff;
  font-weight: 500; font-size: var(--fs-ui); line-height: 1.2; color: var(--navy);
  transition: background-color .2s, border-color .2s, color .2s;
  cursor: pointer; user-select: none;
}
.chip:hover { background: var(--ice-2); border-color: var(--ice-2); }
.chip[aria-pressed="true"], .chip.is-active,
input:checked + .chip { background: var(--navy); border-color: var(--navy); color: #fff; }
input:focus-visible + .chip { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Status ---------- */
.status { display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: 7px; row-gap: 2px; font-size: var(--fs-sm); font-weight: 500; color: var(--slate); }
.status > * { white-space: nowrap; }
.status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--rule);
}
.status b { font-weight: 700; color: var(--navy); }
.status.is-open::before { background: var(--open); }
.status.is-closed::before { background: var(--closed); }
.status.is-sample { flex-wrap: nowrap; align-items: flex-start; }
.status.is-sample::before { background: var(--hint); margin-top: .5em; }
.status .ph { padding: 0 2px; white-space: normal; }
.status .ph, .status .ph b, .on-navy .status .ph b, .site-footer .status .ph b { color: var(--navy); }
.sheet-note { font-size: var(--fs-xs); color: var(--slate); }
.on-navy .sheet-note { color: var(--mist); }
.on-navy .status, .on-navy .status b { color: #fff; }
.status-pill { padding: 8px 14px 8px 12px; border-radius: 999px; background: var(--ice); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 248, 255, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease), border-color .3s;
  view-transition-name: site-header;
}
.site-header.is-scrolled { border-color: var(--rule); }
.site-header.is-hidden { transform: translateY(-101%); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: var(--fs-t-s); letter-spacing: .01em; line-height: 1; color: var(--navy);
  white-space: nowrap;
}
.brand svg { width: 22px; height: 26px; flex: none; }
.nav-links { display: flex; gap: 38px; font-weight: 450; font-size: 14.5px; letter-spacing: .01em; color: var(--slate); }
.nav-links a { position: relative; padding: 6px 0; transition: color .25s; white-space: nowrap; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--navy);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-btn {
  display: none; width: 48px; height: 48px; border-radius: 4px;
  align-items: center; justify-content: center; flex-direction: column; gap: 6px;
}
.menu-btn span:not(.vh) { width: 22px; height: 1.5px; background: var(--navy); transition: transform .3s var(--ease); }
.menu-btn:hover { background: var(--ice); }

/* Full-screen menu (dialog) */
.menu {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--azure); color: #fff;
  overflow-y: auto;
}
.menu::backdrop { background: transparent; }
.menu-in { min-height: 100%; display: flex; flex-direction: column; padding: 0 var(--gutter) 40px; }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--header); }
.menu .brand { color: #fff; }
.menu-close { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 4px; color: #fff; }
.menu-close:hover { background: rgba(255, 255, 255, .08); }
.menu-close svg { width: 22px; height: 22px; }
.menu-links { margin: 28px 0 40px; display: grid; gap: 2px; }
.menu-links a {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--serif); font-size: var(--fs-title-l); line-height: 1.15;
  padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.menu-links a span { font-family: var(--sans); font-size: var(--fs-ui); color: var(--sky); }
.menu-links a[aria-current="page"] { color: var(--sky); }
.menu-branches { display: grid; gap: 20px; margin-top: auto; padding-top: 24px; }
.menu-branch { display: grid; gap: 10px; }
.menu-branch h3 { font-family: var(--serif); font-size: var(--fs-t-s); }
.menu-branch .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.menu.is-open .menu-links a, .menu.is-open .menu-branches { animation: menu-in .7s var(--ease) both; }
.menu.is-open .menu-links a:nth-child(2) { animation-delay: .05s; }
.menu.is-open .menu-links a:nth-child(3) { animation-delay: .1s; }
.menu.is-open .menu-links a:nth-child(4) { animation-delay: .15s; }
.menu.is-open .menu-links a:nth-child(5) { animation-delay: .2s; }
.menu.is-open .menu-links a:nth-child(6) { animation-delay: .25s; }
.menu.is-open .menu-branches { animation-delay: .3s; }
@keyframes menu-in { from { opacity: 0; transform: translateY(22px); } }

/* Mobile action bar + contact sheet */
.actionbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  display: none; grid-template-columns: 1fr 1.25fr; gap: 8px;
  padding: 8px; border-radius: 8px; background: rgba(11, 31, 68, .96);
  box-shadow: var(--float);
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.actionbar.is-shown { transform: none; }
.actionbar .btn { padding: 14px 12px; }
.sheet {
  margin: auto auto 0; width: 100%; max-width: 560px; border: 0; padding: 0;
  border-radius: 8px 8px 0 0; background: #fff; color: var(--navy);
}
.sheet::backdrop { background: rgba(11, 31, 68, .5); }
.sheet[open] { animation: sheet-in .45s var(--ease); }
@keyframes sheet-in { from { transform: translateY(100%); } }
.sheet-in { padding: 22px 20px 28px; display: grid; gap: 18px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { font-family: var(--serif); font-size: var(--fs-t-s); }
.sheet-close { color: var(--navy); }
.sheet-close:hover { background: var(--ice); }
.sheet-branch { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--rule); }
.sheet-branch h3 { font-family: var(--serif); font-size: var(--fs-t-xs); }
.sheet-branch .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding: 160px 0; }
.sec-ice { background: var(--ice); }
.sec-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 88px; align-items: end; margin-bottom: 80px; }
.sec-head > p:not(.kicker) { color: var(--slate); font-size: var(--fs-intro); font-weight: 350; line-height: 1.7; max-width: 42ch; }
.sec-head .headline { max-width: 15ch; }
.sec-head > .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.sec-head:has(> .kicker) { row-gap: 30px; }

/* ---------- Photography ---------- */
.media { position: relative; overflow: hidden; background: var(--ice-2); border-radius: 2px; }
.media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.03); }
.media figcaption, .cap { font-size: var(--fs-xs); color: var(--slate); }
[data-parallax] img { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }

/* ---------- Home: hero ---------- */
.hero { padding-top: 8px; }
.hero-grid {
  display: grid;
  grid-template-columns: [full-start] minmax(var(--gutter), 1fr) [copy-start] minmax(0, 620px) [copy-end] 64px [media-start] minmax(0, 556px) minmax(0, 1fr) [full-end];
  align-items: center;
}
.hero-copy { grid-column: copy; padding: 40px 0 64px; }
.hero .lede { margin: 30px 0 40px; }
.hero-actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.hero-status { display: grid; grid-template-columns: 1fr 1fr; margin-top: 60px; border-top: 1px solid var(--rule); }
.hero-status li { padding: 20px 20px 0 0; }
.hero-status li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.hero-status a { display: grid; gap: 6px; }
.hero-status .bn { font-family: var(--serif); font-size: var(--fs-t-s); line-height: 1.1; transition: color .25s; }
.hero-status a:hover .bn { color: var(--blue); }
.hero-status .ba { font-size: var(--fs-sm); color: var(--slate); }
.hero-media {
  grid-column: media-start / full-end;
  height: min(calc(100svh - var(--header) - 16px), 860px);
  min-height: 560px;
}
.hero-media picture, .wide-media picture { display: contents; }
.hero-media img { height: 116%; object-position: 20% 40%; transform-origin: 26% 45%; transform: translate3d(0, var(--py, 0px), 0) scale(1.08); will-change: transform; }
.hero-media figcaption {
  position: absolute; left: 24px; bottom: 22px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 4px; background: rgba(255, 255, 255, .92); color: var(--navy);
  font-size: var(--fs-sm); font-weight: 600;
}
.js .hero-media { animation: hero-unveil 1.5s var(--ease-io) .1s backwards; }
.js .hero-media img { animation: hero-settle 2.2s var(--ease) .1s backwards; }
@keyframes hero-unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hero-settle { from { transform: translate3d(0, 0, 0) scale(1.24); } }

/* ---------- Home: Mirror Reveal (signature) ---------- */
.mirror { background: var(--azure); }
.mirror-stage { position: relative; min-height: 100svh; overflow: hidden; display: grid; place-items: center; }
.mirror-frame { position: absolute; inset: 0; }
.mirror-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% calc(var(--mpy, 60) * 1%); transform-origin: 50% 52%; transform: scale(var(--mz, 1)); filter: saturate(.85) contrast(1.03); }
.mirror.is-room .mirror-frame img { filter: none; }
.mirror.is-room .mirror-veil { background: linear-gradient(180deg, rgba(30, 80, 190, .4), rgba(20, 60, 160, .68)); }
.mirror-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 80, 190, .2), rgba(20, 60, 160, .6)); opacity: var(--veil, 1); }
.mirror-rim {
  position: absolute; left: 50%; top: 52%;
  width: calc(var(--rx, 0px) * 2); height: calc(var(--ry, 0px) * 2);
  transform: translate(-50%, -50%); border-radius: 50%;
  box-shadow: 0 0 0 10px #fff, 0 0 0 11px var(--rule), 0 40px 70px -30px rgba(11, 31, 68, .45);
  opacity: var(--rim, 0); pointer-events: none;
}
.mirror-intro {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; justify-content: center; align-items: center; gap: calc(var(--rx, 200px) * 2 + 104px);
  padding-inline: var(--gutter); opacity: var(--intro, 0); pointer-events: none;
}
.mirror-intro p { flex: 1; font-family: var(--serif); font-size: var(--fs-title); line-height: 1.1; color: var(--navy); }
.mirror-intro p:first-child { text-align: right; }
.mirror-copy { position: relative; z-index: 2; width: 100%; padding: 120px var(--edge); color: #fff; }
.mirror-statement {
  font-family: var(--serif); font-size: var(--fs-statement); line-height: 1.04; letter-spacing: -.015em;
  max-width: 17ch;
}
.mirror-statement .mw { opacity: var(--o, 1); transition: opacity .2s linear; }
.mirror-foot { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; margin-top: 40px; opacity: var(--foot, 1); transform: translateY(var(--footy, 0px)); }
.mirror-foot:focus-within { opacity: 1; transform: none; }
.mirror-foot p { max-width: 44ch; color: var(--mist); font-size: var(--fs-intro); }
/* live (pinned) mode */
.mirror.is-live { height: 300svh; background: var(--paper); }
.mirror.is-live .mirror-stage { position: sticky; top: 0; height: 100svh; }
.mirror.is-live .mirror-frame { clip-path: ellipse(var(--rx, 0px) var(--ry, 0px) at 50% 52%); }

/* ---------- Home: story route ---------- */
.route { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; margin-top: 8px; }
.route-line { position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: var(--rule); }
.route-line i { position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(var(--route, 1)); }
.stop { position: relative; padding-right: 48px; }
.stop-dot {
  display: block; width: 19px; height: 19px; border-radius: 50%; margin-bottom: 30px; position: relative; z-index: 1;
  background: var(--ice); border: 1.5px solid var(--navy); transition: background-color .5s, border-color .5s;
}
.stop.is-on .stop-dot { background: var(--blue); border-color: var(--blue); }
.stop:first-child.is-on .stop-dot { background: var(--navy); border-color: var(--navy); }
.stop .yr { font-size: var(--fs-kicker); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; display: block; }
.stop h3 { font-family: var(--serif); font-size: var(--fs-title); line-height: 1.1; margin-bottom: 10px; }
.stop p { color: var(--slate); max-width: 32ch; }
.stop a.tlink { margin-top: 18px; }

/* ---------- Treatment index ---------- */
.tx-index { border-top: 1px solid var(--navy); }
.tx-row {
  display: grid; grid-template-columns: 1.15fr 1.25fr .55fr 44px; gap: 32px; align-items: center;
  padding: 36px 0; border-bottom: 1px solid var(--rule); position: relative;
}
.tx-row h3 { font-family: var(--serif); font-size: var(--fs-title); line-height: 1.1; transition: color .3s, transform .5s var(--ease); }
.tx-row p { color: var(--slate); font-size: var(--fs-body-sm); }
.tx-row .cat { font-size: var(--fs-kicker); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.tx-row .thumb { display: none; object-fit: cover; border-radius: 2px; filter: saturate(.85); }
.arr-circle {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--rule);
  display: grid; place-items: center; transition: background-color .35s, border-color .35s, color .35s, transform .45s var(--ease);
}
.arr-circle svg { width: 16px; height: 16px; }
.tx-row:hover h3 { color: var(--blue); transform: translateX(14px); }
.tx-row:hover .arr-circle, .tx-row:focus-visible .arr-circle { background: var(--navy); border-color: var(--navy); color: #fff; transform: rotate(-45deg); }
.peek {
  position: fixed; left: 0; top: 0; z-index: 30; width: 300px; height: 210px; pointer-events: none;
  border-radius: 2px; overflow: hidden; box-shadow: var(--float);
  opacity: 0; transform: translate3d(var(--x, 0px), var(--y, 0px), 0) translate(-50%, -50%) scale(.9);
  transition: opacity .25s, transform .4s var(--ease);
}
.peek.is-on { opacity: 1; transform: translate3d(var(--x, 0px), var(--y, 0px), 0) translate(-50%, -50%) scale(1); }
.peek img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.index-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; color: var(--slate); font-size: var(--fs-ui); }

/* ---------- Approach (navy split) ---------- */
.approach { display: grid; grid-template-columns: 1fr 1fr; background: var(--azure); color: #fff; }
.approach-media { min-height: 760px; }
.approach-media img { position: absolute; inset: -8% 0 auto; height: 116%; transform: translate3d(0, var(--py, 0px), 0); }
.approach-copy { padding: 140px var(--edge) 140px 88px; }
.approach .headline { color: #fff; max-width: 13ch; }
.pillars { margin-top: 56px; }
.pillar { padding: 30px 0; border-top: 1px solid rgba(255, 255, 255, .16); display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.pillar h3 { font-family: var(--serif); font-size: var(--fs-t-s); line-height: 1.15; }
.pillar p { color: var(--mist); font-size: var(--fs-body-sm); max-width: 46ch; }

/* ---------- Visit story ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: start; }
.visit-media { position: sticky; top: calc(50svh - 36svh); height: 72svh; min-height: 480px; }
.visit-frame { position: relative; height: 100%; overflow: hidden; background: var(--ice-2); }
.visit-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.03);
  clip-path: inset(100% 0 0 0); transform: scale(1.08);
  transition: clip-path 1s var(--ease-io), transform 1.4s var(--ease);
}
.visit-frame img.is-shown { clip-path: inset(0 0 0 0); transform: scale(1); }
.visit-frame img:first-child { clip-path: inset(0 0 0 0); transform: scale(1); }
.visit-head { padding-top: 6svh; }
.visit-head .headline { max-width: 12ch; }
.visit-head p { color: var(--slate); font-size: var(--fs-intro); max-width: 42ch; margin-top: 22px; }
.vsteps { position: relative; margin-top: 40px; padding-left: 36px; }
.vsteps::before, .vsteps::after { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--rule); }
.vsteps::after { background: var(--blue); transform-origin: top; transform: scaleY(var(--vp, 1)); }
.vstep { min-height: 46svh; display: flex; flex-direction: column; justify-content: center; padding: 32px 0; position: relative; }
.vstep::before {
  content: ""; position: absolute; left: -41px; top: 50%; width: 11px; height: 11px; margin-top: -40px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--rule); transition: border-color .4s, background-color .4s;
}
.vstep .vnum { font-size: var(--fs-kicker); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); font-variant-numeric: tabular-nums; }
.vstep h3 { font-family: var(--serif); font-size: var(--fs-title-l); line-height: 1.08; margin: 8px 0 12px; }
.vstep p { color: var(--slate); max-width: 40ch; font-size: var(--fs-body); }
.vstep .vimg { display: none; width: 100%; object-fit: cover; filter: saturate(.85) contrast(1.03); }
.js .visit.is-live .vstep { opacity: .32; transition: opacity .5s var(--ease); }
.js .visit.is-live .vstep.is-active { opacity: 1; }
.js .visit.is-live .vstep.is-active::before, .js .visit.is-live .vstep.is-past::before { border-color: var(--blue); background: var(--blue); }

/* ---------- Horizontal gallery ---------- */
.gallery { background: var(--ice); }
.gallery-stage { padding: 120px 0; overflow: hidden; }
.gallery-head { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; margin-bottom: 56px; }
.gallery-head p { color: var(--slate); font-size: var(--fs-intro); max-width: 46ch; }
.gallery-track { display: flex; gap: 24px; padding-inline: var(--edge); width: max-content; will-change: transform; transform: translate3d(var(--gx, 0px), 0, 0); }
.gcard { flex: none; display: grid; gap: 14px; }
.gcard .media { height: 56svh; min-height: 380px; max-height: 600px; }
.gcard.is-tall .media { width: min(36vw, 460px); }
.gcard.is-wide .media { width: min(58vw, 820px); }
.gcard figcaption { display: flex; justify-content: space-between; gap: 16px; font-size: var(--fs-ui); }
.gcard figcaption b { font-family: var(--serif); font-weight: 400; font-size: var(--fs-t-xs); color: var(--navy); }
.gcard figcaption span { color: var(--slate); }
.gallery-bar { margin: 40px var(--edge) 0; height: 2px; background: var(--rule); position: relative; overflow: hidden; }
.gallery-bar i { position: absolute; inset: 0; background: var(--navy); transform-origin: left; transform: scaleX(var(--gp, 0)); }
.gallery:not(.is-live) .gallery-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; transform: none; padding-bottom: 12px; }
.gallery:not(.is-live) .gcard { scroll-snap-align: start; scroll-margin-left: var(--edge); }
.gallery:not(.is-live) .gallery-bar { display: none; }
.gallery-track:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.gallery.is-live { height: var(--gh, 300svh); }
.gallery.is-live .gallery-stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 0; }

/* ---------- Doctors ---------- */
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.doc { display: grid; gap: 18px; align-content: start; }
.duo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ice-2); }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(1.04); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.duo::before, .duo::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity .8s var(--ease); }
.duo::before { background: var(--navy); mix-blend-mode: lighten; }
.duo::after { background: var(--ice-2); mix-blend-mode: multiply; }
.doc:hover .duo img, .member:hover .duo img { filter: saturate(.9) contrast(1.02); transform: scale(1.03); }
.doc:hover .duo::before, .doc:hover .duo::after, .member:hover .duo::before, .member:hover .duo::after { opacity: 0; }
.doc .role { font-family: var(--serif); font-size: var(--fs-t-s); line-height: 1.15; }
.sample {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  padding: 5px 10px; border-radius: 999px; background: var(--ph); color: var(--navy);
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.2;
}
.who-list { border-top: 1px solid var(--navy); }
.who-row { display: grid; grid-template-columns: 1.6fr 1fr 44px; gap: 32px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.who-need { font-family: var(--serif); font-size: var(--fs-title-s); line-height: 1.2; transition: color .3s, transform .5s var(--ease); }
.who-spec { font-weight: 600; color: var(--slate); }
.who-row:hover .who-need { color: var(--blue); transform: translateX(10px); }
.who-row:hover .arr-circle, .who-row:focus-visible .arr-circle { background: var(--navy); border-color: var(--navy); color: #fff; transform: rotate(-45deg); }
.doc .who { font-size: var(--fs-kicker); letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin-top: 10px; display: block; }
.docs-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 48px; color: var(--slate); font-size: var(--fs-ui); }

/* ---------- Branch cards ---------- */
.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.branch h3 { font-family: var(--serif); font-size: var(--fs-title-l); line-height: 1.05; margin: 30px 0 12px; }
.branch h3 a:hover { color: var(--blue); }
.branch .status { display: flex; margin-bottom: 12px; }
.branch address { color: var(--slate); max-width: 46ch; min-height: 54px; }
.branch dl { display: grid; grid-template-columns: 96px 1fr; gap: 10px 0; margin: 24px 0 28px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: var(--fs-ui); }
.branch dt { color: var(--slate); }
.acts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------- FAQ / accordion ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 88px; align-items: start; }
.faq-side { position: sticky; top: calc(var(--hdr) + 40px); transition: top .45s var(--ease); }
.faq-side p { color: var(--slate); font-size: var(--fs-intro); max-width: 34ch; margin: 22px 0 28px; }
.faq-list { border-top: 1px solid var(--navy); }
.acc { border-bottom: 1px solid var(--rule); }
.acc > summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 28px;
  padding: 26px 0; cursor: pointer;
  font-family: var(--serif); font-size: var(--fs-title-s); line-height: 1.2; transition: color .25s;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover { color: var(--blue); }
.pm { position: relative; width: 20px; height: 20px; flex: none; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: 9.25px; width: 20px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.pm::after { transform: rotate(90deg); }
.acc[open] > summary .pm::after, .tx[open] > summary .pm::after { transform: rotate(0deg); }
.acc-body { overflow: hidden; }
.acc .acc-body > div { padding: 0 0 28px; color: var(--slate); max-width: 68ch; }

/* ---------- Closing CTA ---------- */

/* ---------- Footer ---------- */
.site-footer { background: var(--azure); color: var(--mist); padding: 96px 0 40px; font-size: var(--fs-ui); }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; padding-bottom: 64px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot-top p { font-family: var(--serif); font-size: var(--fs-headline); line-height: 1.04; color: #fff; max-width: 15ch; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: 56px 0; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .foot-h { color: #fff; font-family: var(--sans); font-weight: 600; font-size: var(--fs-kicker); letter-spacing: .18em; text-transform: uppercase; line-height: 1.4; margin-bottom: 18px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .status { color: var(--mist); font-size: var(--fs-sm); }
.site-footer .status b { color: #fff; }
.legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: var(--fs-xs); }

/* ---------- Inner page hero ---------- */
.page-hero { padding: 64px 0 104px; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: end; }
.page-hero .lede { margin-top: 28px; }
.page-hero .media { height: 460px; }
.wide-media { height: min(72svh, 680px); min-height: 380px; }
.wide-media img { position: absolute; left: 0; top: -9%; height: 118%; }

/* ---------- Treatments page ---------- */
.symptoms-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.symptom-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.symptom-panel { background: #fff; border: 1px solid var(--rule); padding: 36px; min-height: 340px; }
.symptom-panel h3 { font-family: var(--serif); font-size: var(--fs-t-s); line-height: 1.15; margin-bottom: 8px; }
.symptom-panel .hint { color: var(--slate); }
.symptom-list { margin: 22px 0 26px; border-top: 1px solid var(--rule); }
.symptom-list a { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--rule); font-weight: 600; transition: color .2s; }
.symptom-list a span { font-weight: 500; font-size: var(--fs-sm); color: var(--slate); }
.symptom-list a:hover { color: var(--blue); }
.symptom-panel .disclaimer { margin-top: 22px; font-size: var(--fs-xs); color: var(--slate); }
.symptom-panel.is-swap { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: .2; transform: translateY(8px); } }

.cat-nav {
  position: sticky; top: var(--hdr); z-index: 20; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule); transition: top .45s var(--ease);
}
.cat-nav ul { list-style: none; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px var(--gutter); max-width: var(--max); margin: 0 auto; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a { white-space: nowrap; }
.cat-block { padding: 120px 0 0; scroll-margin-top: calc(var(--header) + 70px); }
.cat-block:last-of-type { padding-bottom: 140px; }
.cat-head { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; margin-bottom: 48px; }
.cat-head h2 { font-family: var(--serif); font-size: var(--fs-headline); line-height: 1.05; }
.cat-head p { color: var(--slate); font-size: var(--fs-intro); max-width: 46ch; margin-top: 16px; }
.cat-head .media { height: 300px; }
.tx { border-bottom: 1px solid var(--rule); scroll-margin-top: calc(var(--header) + 80px); }
.cat-list { border-top: 1px solid var(--navy); }
.tx > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr 1.2fr 20px; gap: 32px; align-items: center; padding: 28px 0;
}
.tx > summary::-webkit-details-marker { display: none; }
.tx > summary h3 { font-family: var(--serif); font-size: var(--fs-title); line-height: 1.1; transition: color .25s; }
.tx > summary p { color: var(--slate); font-size: var(--fs-body-sm); }
.tx > summary:hover h3 { color: var(--blue); }
.tx-detail { display: grid; grid-template-columns: repeat(3, 1fr) .8fr; gap: 36px; padding: 6px 0 36px; }
.tx-detail h4 { font-size: var(--fs-sm); font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.tx-detail p, .tx-detail li { color: var(--slate); font-size: var(--fs-body-sm); }
.tx-detail ol { padding-left: 18px; display: grid; gap: 6px; }
.tx-detail .tx-acts { display: grid; gap: 12px; align-content: start; }
.tx.is-flash > summary h3 { color: var(--blue); }

/* ---------- Lead clinicians (doctors page) ---------- */
/* Two full spreads, portrait and profile side by side, alternating sides, so the senior doctors read as the practice's anchors. */
.leads { padding: 24px 0 40px; }
.lead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 96px; align-items: start; padding: 72px 0 120px; }
.lead + .lead { border-top: 1px solid var(--rule); padding-top: 120px; }
.lead.is-flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.lead.is-flip .lead-media { order: 2; }
.lead-media { position: sticky; top: calc(var(--hdr) + 32px); aspect-ratio: 4 / 5; transition: top .45s var(--ease); }
.lead-media img { filter: none; object-position: 50% 20%; }
.lead-body { padding-top: 12px; }
.lead-name { font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: 1.02; letter-spacing: -.012em; color: var(--navy); }
.lead-quals { margin-top: 14px; font-size: var(--fs-intro); color: var(--slate); }
.lead-years { margin-top: 30px; padding: 22px 0; border-block: 1px solid var(--rule); font-family: var(--serif); font-size: var(--fs-title-s); line-height: 1.25; color: var(--navy); max-width: 30ch; }
.lead-years b { font-weight: 400; color: var(--blue); }
.lead-bio { display: grid; gap: 16px; margin-top: 32px; max-width: 58ch; }
.lead-bio p { color: var(--slate); }
.lead-bio .lead-line { font-family: var(--serif); font-size: var(--fs-t-s); line-height: 1.2; color: var(--navy); margin-bottom: 4px; }
.lead-bio h4 { margin-top: 10px; font-family: var(--serif); font-size: var(--fs-t-xs); line-height: 1.2; color: var(--navy); }
.lead-more { margin-top: 20px; border-bottom: 1px solid var(--rule); max-width: 58ch; }
.lead-more > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 16px 0; border-top: 1px solid var(--rule);
  font-size: var(--fs-kicker); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); transition: color .25s;
}
.lead-more > summary::-webkit-details-marker { display: none; }
.lead-more > summary:hover { color: var(--blue); }
.lead-more[open] > summary .pm::after { transform: rotate(0deg); }
.lead-more .lead-bio { margin-top: 4px; padding-bottom: 28px; }
.lead .tags { margin: 32px 0 0; }
.lead-quote { margin: 44px 0 40px; padding-left: 28px; border-left: 1px solid var(--blue); max-width: 560px; }
.lead-quote p { font-family: var(--serif); font-size: var(--fs-title); line-height: 1.18; color: var(--navy); }
.lead-quote footer { margin-top: 16px; font-size: var(--fs-kicker); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }

/* Home: the two senior doctors lead the team section */
.docs-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 72px; }
.dlead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
.dlead .media { aspect-ratio: 4 / 5; }
.dlead .media img { filter: none; object-position: 50% 20%; transition: transform 1.2s var(--ease); }
.dlead:hover .media img { transform: scale(1.03); }
.dlead .kicker { margin-bottom: 16px; font-size: 11.5px; letter-spacing: .16em; }
.dlead h3 { font-family: var(--serif); font-size: var(--fs-title-l); line-height: 1.04; transition: color .3s; }
.dlead:hover h3 { color: var(--blue); }
.dlead .q { margin-top: 10px; font-size: var(--fs-sm); color: var(--slate); }
.dlead .yrs { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); font-family: var(--serif); font-size: var(--fs-t-xs); line-height: 1.25; color: var(--navy); }
.dlead .yrs b { font-weight: 400; color: var(--blue); }
.dlead .tlink { margin-top: 22px; }
.docs-sub { margin-bottom: 28px; font-size: var(--fs-kicker); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); }

/* ---------- Doctors page ---------- */
/* The panel: four portraits, every second one dropped so the row reads as a group, not a grid of cards. */
.panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 32px; align-items: start; }
.panel .pdoc:nth-child(even) { margin-top: 120px; }
.pdoc .media { aspect-ratio: 4 / 5; }
.pdoc .media img { filter: none; }
.pdoc-body { padding-top: 28px; }
.pdoc-role { display: block; font-size: var(--fs-kicker); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.pdoc h3 { font-family: var(--serif); font-size: var(--fs-title-l); line-height: 1.04; letter-spacing: -.01em; margin-top: 10px; text-wrap: balance; }
.pdoc-quals { margin-top: 8px; font-size: var(--fs-ui); color: var(--slate); }
.pdoc-line { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule); font-family: var(--serif); font-size: var(--fs-t-s); line-height: 1.2; color: var(--navy); }
.pdoc-bio { margin: 16px 0 24px; display: grid; gap: 12px; }
.pdoc-bio p { color: var(--slate); font-size: var(--fs-body-sm); }
a.inline { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; transition: text-decoration-color .3s; }
a.inline:hover { text-decoration-color: var(--blue); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.tag { font-size: var(--fs-xs); font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--ice); color: var(--navy); }
.statement { padding: 160px 0; background: var(--azure); color: #fff; }
.statement p.big { font-family: var(--serif); font-size: var(--fs-statement); line-height: 1.06; letter-spacing: -.015em; max-width: 20ch; }
.statement .mw { opacity: var(--o, 1); transition: opacity .25s linear; }
.statement p.small { margin-top: 36px; color: var(--mist); font-size: var(--fs-intro); max-width: 54ch; }
.standards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.standards div { border-top: 1px solid var(--navy); padding-top: 24px; }
.standards h3 { font-family: var(--serif); font-size: var(--fs-t-s); line-height: 1.15; margin-bottom: 10px; }
.standards p { color: var(--slate); }

/* ---------- Location pages ---------- */
.loc-hero { padding: 56px 0 120px; }
.loc-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.loc-hero .display { font-size: var(--fs-display-xl); }
.loc-hero address { font-size: var(--fs-lede); color: var(--slate); max-width: 38ch; margin: 26px 0 30px; }
.loc-hero .status-pill { margin-top: 26px; }
.loc-map { position: relative; }
.loc-embed { aspect-ratio: 10 / 7; border: 1px solid var(--rule); border-radius: 2px; background: var(--ice); overflow: hidden; }
.loc-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.route-journey .stop h3 { font-size: var(--fs-title); }
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.hours { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.hours th, .hours td { text-align: left; padding: 15px 0; border-bottom: 1px solid var(--rule); font-weight: 500; }
.hours th { font-weight: 600; }
.hours td { text-align: right; color: var(--slate); font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--navy); font-weight: 700; }
.hours tr.is-today th::after { content: "Today"; margin-left: 10px; font-size: var(--fs-xs); padding: 3px 8px; border-radius: 999px; background: var(--navy); color: #fff; vertical-align: 2px; }
.loc-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.strip .media { height: 420px; }
.clinic-photos { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: repeat(2, 340px); gap: 20px; }
.clinic-photos .media:first-child { grid-row: span 2; }
.clinic-photos .media img { filter: none; }
.loc-docs .sec-head { margin-bottom: 56px; }
.loc-about { padding-top: 0; }
.other { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 44px; background: var(--azure); color: #fff; }
.other .lbl { font-size: var(--fs-kicker); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); }
.other h3 { font-family: var(--serif); font-size: var(--fs-title-l); line-height: 1.05; margin: 6px 0 10px; }
.other p { color: var(--mist); }

/* ---------- Booking ---------- */
.booking { display: grid; grid-template-columns: 1.4fr 1fr; gap: 72px; align-items: start; }
.bform { display: grid; gap: 56px; }
.bstep { border: 0; padding: 0; min-width: 0; }
.bstep legend { display: flex; align-items: baseline; gap: 14px; padding: 0; margin-bottom: 22px; width: 100%; }
.bstep legend .n { font-size: var(--fs-sm); font-weight: 600; color: var(--slate); font-variant-numeric: tabular-nums; }
.bstep legend .t { font-family: var(--serif); font-size: var(--fs-title); line-height: 1.1; }
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick label {
  display: grid; gap: 8px; height: 100%; padding: 22px 22px 20px; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 4px; background: #fff;
  transition: border-color .25s, box-shadow .35s var(--ease), background-color .25s;
}
.pick label > b { font-family: var(--serif); font-weight: 400; font-size: var(--fs-t-s); line-height: 1.1; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pick label .status { margin-top: 4px; }
.pick label > span { font-size: var(--fs-sm); color: var(--slate); }
.pick .tick { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--rule); display: grid; place-items: center; flex: none; transition: all .25s; }
.pick .tick svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.pick label:hover { border-color: var(--slate); }
.pick input:checked + label { border-color: var(--navy); box-shadow: var(--lift), inset 0 0 0 1px var(--navy); }
.pick input:checked + label .tick { background: var(--navy); border-color: var(--navy); }
.pick input:checked + label .tick svg { opacity: 1; }
.pick input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 3px; }
.chipset { display: flex; flex-wrap: wrap; gap: 10px; }
.chipset .opt { position: relative; }
.chipset .opt input { position: absolute; opacity: 0; pointer-events: none; }
.chipset.scroll {
  flex-wrap: nowrap; overflow-x: auto; padding: 4px 48px 8px 4px; margin: -4px 0 0 -4px; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(90deg, var(--navy) calc(100% - 64px), transparent);
  mask-image: linear-gradient(90deg, var(--navy) calc(100% - 64px), transparent);
}
.date-chip { flex-direction: column; align-items: flex-start; gap: 2px; border-radius: 4px; padding: 10px 16px 11px; min-width: 92px; }
.date-chip small { font-size: var(--fs-xs); font-weight: 500; opacity: .75; }
.sub-label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--slate); margin: 22px 0 12px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field label .opt-tag { font-weight: 500; color: var(--slate); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 4px; background: #fff;
  font-size: var(--fs-body); line-height: 1.4; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--hint); }
.hint { font-size: var(--fs-xs); color: var(--slate); }
.field.has-error .hint { display: none; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 79, 214, .15); }
.field.has-error input { border-color: var(--closed); }
.err { font-size: var(--fs-sm); color: var(--closed); font-weight: 500; min-height: 0; }
.err:empty { display: none; }
.bstep.has-error .err-step { display: block; }
.submit-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding-top: 8px; }
.submit-row p { font-size: var(--fs-sm); color: var(--slate); max-width: 36ch; }
.ticket-wrap { position: sticky; top: calc(var(--hdr) + 32px); transition: top .45s var(--ease); display: grid; gap: 20px; }
.ticket { position: relative; background: var(--azure); color: #fff; border-radius: 8px; box-shadow: var(--float); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 118px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); }
.ticket::before { left: -11px; }
.ticket::after { right: -11px; }
.ticket-top { padding: 28px 30px 26px; height: 129px; border-bottom: 1.5px dashed rgba(255, 255, 255, .25); display: grid; align-content: space-between; }
.ticket-top .lbl { font-size: var(--fs-xs); color: var(--sky); font-weight: 600; }
.ticket-top b { font-family: var(--serif); font-weight: 400; font-size: var(--fs-title); line-height: 1.05; }
.ticket dl { padding: 22px 30px 28px; display: grid; gap: 14px; }
.ticket dl div { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: baseline; }
.ticket dt { font-size: var(--fs-xs); color: var(--sky); }
.ticket dd { font-weight: 600; font-size: var(--fs-body-sm); overflow-wrap: anywhere; }
.ticket dd.is-empty { color: var(--mist); opacity: .78; font-weight: 500; }
.ticket dd.flip { animation: flip .5s var(--ease); }
@keyframes flip { from { opacity: 0; transform: translateY(6px); } }
.ticket-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 30px 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-xs); color: var(--mist); }
.callout { padding: 22px 24px; border: 1px solid var(--rule); border-radius: 4px; display: grid; gap: 12px; font-size: var(--fs-ui); }
.callout h2 { font-family: var(--serif); font-size: var(--fs-t-xs); line-height: 1.15; }
.callout .row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-top: 12px; border-top: 1px solid var(--rule); }
.done { display: none; padding: 48px; background: var(--ice); border-radius: 4px; }
.done.is-shown { display: block; animation: swap .6s var(--ease); }
.done:focus { outline: none; }
.done h2 { font-family: var(--serif); font-size: var(--fs-title-l); line-height: 1.05; margin-bottom: 14px; }
.done p { color: var(--slate); max-width: 52ch; margin-bottom: 14px; }
.done pre { white-space: pre-wrap; font-family: var(--sans); font-size: var(--fs-ui); line-height: 1.6; background: #fff; border: 1px solid var(--rule); padding: 18px 20px; margin: 22px 0; color: var(--navy); }

/* ---------- Motion: reveals ---------- */
.js [data-rise] { opacity: 0; transform: translate3d(0, 26px, 0); }
.js [data-rise].is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
/* The clip sits on the image, not the observed frame: IntersectionObserver ignores fully clipped targets. */
.js [data-unveil] img { clip-path: inset(100% 0 0 0); transform: scale(1.14); }
.js [data-unveil].is-in img {
  clip-path: inset(0 0 0 0); transform: translate3d(0, var(--py, 0px), 0) scale(1);
  transition: clip-path 1.3s var(--ease-io) var(--d, 0s), transform 1.8s var(--ease) var(--d, 0s);
}
.js [data-unveil].is-settled img { transition: none; }
/* First-viewport content animates on load in pure CSS, so the largest paint never waits on scripts */
.js :is(.hero, .page-hero, .loc-hero) [data-rise] { opacity: 1; transform: none; animation: rise-in 1s var(--ease) var(--d, 0s) backwards; }
.js :is(.hero, .page-hero, .loc-hero) [data-split] .wi { transform: none; animation: word-in 1.05s var(--ease) calc(var(--i) * 45ms + var(--d, 0s)) backwards; }
.js :is(.page-hero, .loc-hero) [data-unveil] img { clip-path: inset(0 0 0 0); transform: none; animation: unveil-in 1.3s var(--ease-io) var(--d, 0s) backwards; }
@keyframes rise-in { from { opacity: 0; transform: translate3d(0, 26px, 0); } }
@keyframes word-in { from { transform: translate3d(0, 108%, 0); } }
@keyframes unveil-in { from { clip-path: inset(100% 0 0 0); transform: scale(1.14); } }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .04em .14em 0; margin: -.1em -.04em -.14em 0; }
.wi { display: inline-block; }
.js [data-split] .wi { transform: translate3d(0, 108%, 0); }
.js [data-split].is-in .wi { transform: none; transition: transform 1.05s var(--ease) calc(var(--i) * 45ms + var(--d, 0s)); }

/* ---------- View transitions between pages ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .32s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 980px) {
  :root { --gutter: 20px; --header: 72px; }
  .brand { font-size: var(--fs-t-xs); }
  .nav-actions .btn { padding: 12px 16px; font-size: var(--fs-sm); }
  .sec { padding: 96px 0; }
  .sec-head, .gallery-head, .cat-head, .page-hero-grid, .symptoms-grid, .faq-grid, .hours-grid, .loc-grid, .booking, .visit-grid { grid-template-columns: 1fr; gap: 32px; }
  .sec-head { margin-bottom: 44px; }
  .hero-grid { grid-template-columns: [full-start] var(--gutter) [copy-start] 1fr [copy-end] var(--gutter) [full-end]; }
  .hero-copy { padding: 28px 0 40px; }
  .hero .lede { margin: 24px 0 32px; font-size: var(--fs-intro); }
  .hero-status { margin-top: 40px; }
  .hero-status .bn { font-size: var(--fs-t-xs); }
  .hero-media { grid-column: full; height: 62svh; min-height: 380px; max-height: 560px; }
  .hero-media img { object-position: 50% 30%; transform-origin: 50% 40%; }
  .mirror-intro { flex-direction: column; justify-content: space-between; gap: 0; top: 0; bottom: 0; transform: none; padding: 12svh var(--gutter); }
  .mirror-intro p, .mirror-intro p:first-child { flex: none; max-width: 14ch; text-align: center; font-size: var(--fs-t-s); }
  .mirror-copy { padding: 96px var(--gutter); }
  .mirror.is-live { height: 240svh; }
  .route { grid-template-columns: 1fr; gap: 40px; padding-left: 40px; }
  .route-line { left: 9px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .route-line i { transform-origin: top; transform: scaleY(var(--route, 1)); }
  .stop { padding-right: 0; }
  .stop-dot { position: absolute; left: -40px; top: 4px; margin: 0; }
  .tx-row { grid-template-columns: 72px 1fr 32px; gap: 6px 18px; padding: 22px 0; }
  .tx-row .thumb { display: block; grid-row: 1 / span 2; width: 72px; height: 72px; }
  .tx-row h3 { grid-column: 2; font-size: var(--fs-t-s); }
  .tx-row p { grid-column: 2; font-size: var(--fs-ui); }
  .tx-row .cat { display: none; }
  .tx-row .arr-circle { grid-column: 3; grid-row: 1 / span 2; width: 32px; height: 32px; }
  .tx-row:hover h3 { transform: none; }
  .peek { display: none; }
  .approach { grid-template-columns: 1fr; }
  .approach-media { min-height: 380px; }
  .approach-copy { padding: 88px var(--gutter); }
  .pillar { grid-template-columns: 1fr; gap: 8px; }
  .visit-media { display: none; }
  .vsteps { padding-left: 0; margin-top: 24px; }
  .vsteps::before, .vsteps::after { display: none; }
  .vstep { min-height: 0; padding: 28px 0; border-top: 1px solid var(--rule); }
  .vstep::before { display: none; }
  .vstep .vimg { display: block; height: 240px; margin-top: 20px; }
  .gallery-stage { padding: 96px 0; }
  .gallery-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; transform: none; }
  .gallery-track::-webkit-scrollbar { display: none; }
  .gcard { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .gcard .media { height: 360px; min-height: 0; }
  .gcard.is-tall .media { width: 72vw; }
  .gcard.is-wide .media { width: 86vw; }
  .gallery-bar { display: none; }
  .docs { gap: 20px; }
  .doc .role { hyphens: auto; overflow-wrap: break-word; }
  .doc .role { font-size: var(--fs-t-xs); }
  .branches { grid-template-columns: 1fr; gap: 64px; }
  .faq-side { position: static; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 44px 0; }
  .foot-cols > div:first-child { grid-column: 1 / -1; }
  .site-footer { padding: 72px 0 120px; }
  .page-hero { padding: 40px 0 72px; }
  .page-hero .media { height: 320px; }
  .symptom-panel { padding: 26px 22px; min-height: 0; }
  .cat-block { padding-top: 88px; }
  .cat-head .media { height: 220px; }
  .tx > summary { grid-template-columns: 1fr 20px; gap: 8px 16px; padding: 22px 0; }
  .tx > summary p { grid-column: 1; grid-row: 2; font-size: var(--fs-ui); }
  .tx > summary .pm { grid-column: 2; grid-row: 1 / span 2; }
  .tx-detail { grid-template-columns: 1fr; gap: 22px; }
  .lead { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 80px; }
  .lead + .lead { padding-top: 80px; }
  .lead.is-flip { grid-template-columns: 1fr; }
  .lead.is-flip .lead-media { order: 0; }
  .lead-media { position: relative; top: auto; max-width: 520px; }
  .lead-name { font-size: clamp(2.6rem, 10vw, 3.6rem); }
  .docs-lead { grid-template-columns: 1fr; gap: 32px; margin-bottom: 56px; }
  .panel { grid-template-columns: 1fr; gap: 64px; }
  .panel .pdoc:nth-child(even) { margin-top: 0; }
  .pdoc { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: start; }
  .pdoc-body { padding-top: 0; }
  .clinic-photos { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 250px; gap: 12px; }
  .clinic-photos .media:first-child { grid-column: 1 / -1; grid-row: span 2; }
  .statement { padding: 112px 0; }
  .standards { grid-template-columns: 1fr; gap: 28px; }
  .loc-hero { padding: 32px 0 88px; }
  .loc-embed { aspect-ratio: 4 / 3; }
  .who-row { grid-template-columns: 1fr 32px; gap: 6px 16px; padding: 22px 0; }
  .who-need { grid-column: 1; }
  .who-spec { grid-column: 1; grid-row: 2; }
  .who-row .arr-circle { grid-column: 2; grid-row: 1 / span 2; width: 32px; height: 32px; }
  .who-row:hover .who-need { transform: none; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip .media { height: 240px; }
  .strip .media:first-child { grid-column: 1 / -1; }
  .other { grid-template-columns: 1fr; padding: 32px 24px; }
  .ticket-wrap { position: static; }
  .booking { gap: 48px; }
  .done { padding: 32px 22px; }
  .actionbar { display: grid; }
  body[data-page="contact"] .actionbar { grid-template-columns: 1fr; }
  body[data-page="contact"] .actionbar .btn-primary { display: none; }
  .bform .ticket { margin-top: -16px; }
}
@media (max-width: 600px) {
  .nav-actions .btn { display: none; }
  .hero-status { grid-template-columns: 1fr; }
  .hero-status li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 20px; }
  .hero-status li { padding-right: 0; }
  .hero-actions { gap: 22px; }
  .picks, .fields { grid-template-columns: 1fr; }
  .symptom-list a { flex-direction: column; align-items: flex-start; gap: 2px; }
  .pdoc { grid-template-columns: 1fr; gap: 0; }
  .dlead { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 20px; align-items: center; padding-bottom: 32px; }
  .dlead h3 { font-size: var(--fs-t-s); }
  .dlead .kicker { font-size: 10.5px; letter-spacing: .12em; }
  .dlead .tlink { display: none; }
  .lead-quote { padding-left: 20px; }
  .pdoc-body { padding-top: 24px; }
  .clinic-photos { grid-auto-rows: 190px; }
  .docs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--edge) * -1); padding-inline: var(--edge); scroll-padding-inline: var(--edge); }
  .docs::-webkit-scrollbar { display: none; }
  .docs .doc { scroll-snap-align: start; }
  .branch h3 { font-size: var(--fs-title); }
  .branch dl { grid-template-columns: 80px 1fr; }
  .ticket dl div { grid-template-columns: 84px 1fr; }
}

@media (max-width: 360px) {
  :root { --fs-display: clamp(2.6rem, 13vw, 3.1rem); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js [data-rise], .js [data-unveil] img, .js [data-split] .wi, .js .hero-media, .js .hero-media img { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .visit-frame img { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .actionbar, .menu, .sheet, .peek, .site-footer .foot-top { display: none !important; }
  .js [data-rise], .js [data-unveil] img, .js [data-split] .wi { opacity: 1; transform: none; clip-path: none; }
}
