/* ==========================================================================
   Mark Ganjianpour, M.D. — Orthopaedic Surgery & Sports Medicine
   Design system
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-var.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic-var.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette — warm neutrals, deep navy, a whisper of champagne */
  --ivory: #f6f3ee;
  --paper: #fbfaf7;
  --stone: #ebe5dc;
  --stone-2: #dcd4c8;
  --sand: #c9bfb1;
  --ink: #1d2226;
  --charcoal: #2c3237;
  --text: #3b4146;
  --muted: #5f6468;
  --navy: #17222d;
  --navy-2: #1f2e3c;
  --slate: #50657a;
  --sage: #8b9787;
  --champagne: #a88a5c;        /* hairlines & rules only */
  --champagne-ink: #7d6135;    /* champagne for text (AA on ivory/stone) */
  --champagne-soft: #cdb893;

  --line: rgba(29, 34, 38, 0.14);
  --line-strong: rgba(29, 34, 38, 0.28);
  --line-inverse: rgba(246, 243, 238, 0.16);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.625rem);
  --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.875rem);
  --step-5: clamp(2.75rem, 1.7rem + 4.4vw, 5.75rem);
  --step-6: clamp(3.1rem, 1.6rem + 6vw, 7.5rem);

  --gutter: clamp(1.25rem, 4.6vw, 4.5rem);
  --max: 1440px;
  --section: clamp(5rem, 11vw, 10.5rem);
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg { 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; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 380;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  font-optical-sizing: auto;
  text-wrap: balance;
}
p, li { text-wrap: pretty; }
em, .italic { font-style: italic; }
strong { font-weight: 600; color: var(--ink); }
::selection { background: var(--navy); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
  border-radius: 1px;
}
.on-dark :focus-visible { outline-color: var(--champagne-soft); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--navy); color: var(--ivory); padding: 0.75rem 1.1rem; font-size: var(--step--1);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.2vw, 2rem); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.62); }
.section--stone { background: var(--stone); }
.section--paper { background: var(--paper); }
.on-dark { background: var(--navy); color: rgba(246, 243, 238, 0.78); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4, .on-dark strong { color: var(--ivory); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Column placements (collapse to full width on small screens) */
.c-1-4 { grid-column: 1 / span 4; } .c-1-5 { grid-column: 1 / span 5; } .c-1-7 { grid-column: 1 / span 7; }
.c-1-9 { grid-column: 1 / span 9; } .c-1-10 { grid-column: 1 / span 10; }
.c-6-end { grid-column: 6 / -1; } .c-7-end { grid-column: 7 / -1; } .c-9-end { grid-column: 9 / -1; }
.c-bottom { align-self: end; }
@media (max-width: 960px) {
  .c-1-4, .c-1-5, .c-1-7, .c-1-9, .c-1-10, .c-6-end, .c-7-end, .c-9-end { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Type utilities
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.85rem;
  font-family: var(--sans); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 1.75rem;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: var(--champagne); }
.eyebrow--plain::before { display: none; }
.on-dark .eyebrow { color: rgba(246, 243, 238, 0.6); }
.on-dark .index { color: var(--champagne-soft); }
.index {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em;
  color: var(--champagne-ink); font-variant-numeric: tabular-nums;
}
.display { font-size: var(--step-6); line-height: 0.98; letter-spacing: -0.025em; font-weight: 340; }
.h1 { font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.022em; font-weight: 350; }
.h2 { font-size: var(--step-4); line-height: 1.06; font-weight: 360; }
.h3 { font-size: var(--step-3); line-height: 1.12; }
.h4 { font-size: var(--step-2); line-height: 1.2; }
.lede { font-size: var(--step-1); line-height: 1.6; color: var(--charcoal); max-width: 38em; }
.on-dark .lede { color: rgba(246, 243, 238, 0.82); }
.serif-lede {
  font-family: var(--serif); font-size: var(--step-3); line-height: 1.24; font-weight: 340;
  color: var(--ink); letter-spacing: -0.012em;
}
.serif-lede em { color: var(--slate); }
.small { font-size: var(--step--1); line-height: 1.6; }
.muted { color: var(--muted); }
.measure { max-width: 36em; }
.prose p { max-width: 38em; }
.prose p + p { margin-top: 0; }

/* --------------------------------------------------------------------------
   Links & buttons
   -------------------------------------------------------------------------- */
.link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease-out), color 0.3s;
  padding-bottom: 1px;
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.prose a:not(.btn) { color: var(--slate); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .4s var(--ease-out); }
.prose a:not(.btn):hover { background-size: 0 1px; background-position: 100% 100%; }

.btn {
  --btn-bg: var(--navy); --btn-fg: var(--ivory);
  position: relative; display: inline-flex; align-items: center; gap: 0.9rem;
  min-height: 52px; padding: 0.9rem 1.5rem 0.9rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.04em;
  border-radius: 1px; overflow: hidden; isolation: isolate;
  transition: color 0.45s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--slate); transform: scaleX(0); transform-origin: right;
  transition: transform 0.55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn .arrow { width: 18px; height: 10px; transition: transform 0.5s var(--ease-out); flex: none; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ivory); }
.btn--light { --btn-bg: var(--ivory); --btn-fg: var(--navy); }
.btn--light::before { background: var(--champagne-soft); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--ivory); box-shadow: inset 0 0 0 1px rgba(246, 243, 238, 0.4); }
.btn--ghost-light::before { background: var(--ivory); }
.btn--ghost-light:hover, .btn--ghost-light:focus-visible { color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }

.text-cta {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.04em; color: var(--ink);
  padding-block: 0.6rem;
}
.text-cta .arrow { width: 18px; height: 10px; transition: transform 0.5s var(--ease-out); }
.text-cta span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); padding-bottom: 2px; }
.text-cta:hover span, .text-cta:focus-visible span { background-size: 100% 1px; }
.text-cta:hover .arrow { transform: translateX(4px); }
.on-dark .text-cta { color: var(--ivory); }

/* --------------------------------------------------------------------------
   Placeholders — must be replaced before launch
   -------------------------------------------------------------------------- */
.ph {
  display: inline; padding: 0.05em 0.4em; border: 1px dashed var(--champagne);
  background: repeating-linear-gradient(135deg, rgba(168, 138, 92, 0.07) 0 6px, transparent 6px 12px);
  color: #7a6440; font-family: var(--sans); font-size: 0.85em; font-style: normal; letter-spacing: 0;
  border-radius: 2px;
}
.on-dark .ph { color: var(--champagne-soft); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  view-transition-name: site-header;
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease-out), height 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(246, 243, 238, 0.86);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  height: 72px;
}
.has-dark-opener:not(.menu-open) .site-header:not(.is-scrolled) .brand,
.has-dark-opener:not(.menu-open) .site-header:not(.is-scrolled) .nav__link,
.has-dark-opener:not(.menu-open) .site-header:not(.is-scrolled) .nav__phone,
.has-dark-opener:not(.menu-open) .site-header:not(.is-scrolled) .menu-toggle { color: var(--ivory); }
.has-dark-opener:not(.menu-open) .site-header:not(.is-scrolled) .brand__desc { color: rgba(246, 243, 238, 0.7); }
.has-dark-opener:not(.menu-open) .site-header:not(.is-scrolled) .brand { --seal-accent: var(--champagne-soft); }
.has-dark-opener:not(.menu-open) .site-header:not(.is-scrolled) .btn { --btn-bg: var(--ivory); --btn-fg: var(--navy); }
.has-dark-opener:not(.menu-open) .site-header:not(.is-scrolled) .btn::before { background: var(--champagne-soft); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.9rem; color: var(--ink); flex: none; }
.brand__mark { width: 54px; height: 54px; flex: none; transition: width .4s var(--ease), height .4s var(--ease); }
.site-header.is-scrolled .brand__mark { width: 46px; height: 46px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 1.25rem; font-weight: 420; letter-spacing: -0.01em; }
.brand__desc { font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.2vw, 2.25rem); }
.nav__list { display: flex; gap: clamp(1.1rem, 2vw, 2rem); list-style: none; }
.nav__link {
  position: relative; font-size: 0.875rem; color: var(--charcoal); padding-block: 0.5rem; letter-spacing: 0.01em; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__link.is-section::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"], .nav__link.is-section { color: var(--ink); }
.nav__phone { font-size: 0.875rem; color: var(--charcoal); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav .btn { white-space: nowrap; min-height: 44px; padding: 0.65rem 1.1rem 0.65rem 1.25rem; font-size: 0.8125rem; }

.menu-toggle { display: none; width: 48px; height: 48px; margin-right: -12px; position: relative; color: var(--ink); }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform 0.45s var(--ease-out), opacity 0.3s; }
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 28px; left: 21px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); left: 13px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ivory);
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0s 0.4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease); }
.mobile-menu__list { list-style: none; border-top: 1px solid var(--line); }
.mobile-menu__list > li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms + 80ms); }
.mobile-menu.is-open .mobile-menu__list > li { opacity: 1; transform: none; }
.mobile-menu__list a { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0; font-family: var(--serif); font-size: 1.875rem; color: var(--ink); font-weight: 360; }
.mobile-menu__list a .index { font-family: var(--sans); }
.mobile-menu__sub { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; padding: 0 0 1.1rem; list-style: none; }
.mobile-menu__sub a { font-family: var(--sans); font-size: 0.9375rem; padding: 0.35rem 0; color: var(--muted); display: inline; }
.mobile-menu__foot { margin-top: auto; padding-top: 2rem; display: grid; gap: 1rem; }
.mobile-menu__foot .btn { justify-content: space-between; }
body.menu-open { overflow: hidden; }

@media (max-width: 1380px) { .nav__phone { display: none; } }
@media (max-width: 1180px) {
  .nav__list { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 760px) { .nav .btn { display: none; } }
@media (max-width: 560px) {
  .brand__desc { display: none; }
  .brand__name { font-size: 1.125rem; }
  .brand__mark, .site-header.is-scrolled .brand__mark { width: 42px; height: 42px; }
}

/* Sticky mobile action bar */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    position: fixed; z-index: 80; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 1px; background: var(--line);
    padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -1px 0 var(--line);
    transform: translateY(110%); transition: transform 0.5s var(--ease-out);
  }
  .action-bar.is-visible { transform: none; }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 56px; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.03em; }
  .action-bar a:first-child { background: var(--ivory); color: var(--ink); }
  .action-bar a:last-child { background: var(--navy); color: var(--ivory); }
  body { padding-bottom: 56px; }
}

/* --------------------------------------------------------------------------
   Home — hero
   -------------------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(4.5rem, 9vw, 8rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.2vw, 2rem); align-items: end; min-height: min(calc(100svh - var(--header-h)), 820px); }
.hero__copy { grid-column: 1 / span 6; padding-bottom: clamp(3rem, 8vh, 6rem); position: relative; z-index: 2; }
.hero__title { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); font-size: clamp(2.9rem, 1.4rem + 4.6vw, 5.75rem); }
.hero__title .line, .band__title .line { display: block; overflow: hidden; padding: 0.16em 0.14em 0.12em 0; margin: -0.16em 0 -0.12em; }
.hero__title .line > span, .band__title .line > span { display: inline-block; }
.hero__title .suffix { font-style: italic; color: var(--slate); font-weight: 320; }
.hero__lede { max-width: 25em; margin-bottom: 2.5rem; }
.hero__media {
  grid-column: 7 / -1; align-self: stretch; position: relative;
  margin-right: calc(-1 * max(var(--gutter), (100vw - var(--max)) / 2 + var(--gutter)));
  min-height: 520px;
}
.hero__frame { position: absolute; inset: 0 0 clamp(3rem, 8vh, 6rem) 0; overflow: hidden; background: var(--stone); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; transform-origin: 60% 40%; }
.hero__caption {
  position: absolute; left: 0; bottom: clamp(3rem, 8vh, 6rem); transform: translateY(calc(100% + 0.9rem));
  font-size: 0.75rem; color: var(--muted); letter-spacing: 0.02em; display: flex; gap: 1rem; align-items: center;
}
.hero__caption::before { content: ""; width: 1.5rem; height: 1px; background: var(--line-strong); }
.hero__plate {
  position: absolute; left: clamp(-4rem, -5vw, -2rem); bottom: clamp(5rem, 14vh, 9rem); z-index: 3;
  background: var(--paper); padding: 1.25rem 1.5rem 1.35rem; min-width: 250px;
  box-shadow: 0 30px 60px -30px rgba(23, 34, 45, 0.35);
}
.hero__plate dt { font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.hero__plate dd { margin: 0; font-family: var(--serif); font-size: 1.25rem; color: var(--ink); line-height: 1.25; }
.hero__plate dd span { display: block; font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); margin-top: 0.25rem; }

.creds-strip { border-top: 1px solid var(--line); }
.creds-strip ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.creds-strip li { padding: 1.4rem 1.5rem 1.5rem 0; font-size: 0.875rem; color: var(--charcoal); display: flex; gap: 0.9rem; align-items: baseline; }
.creds-strip li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.creds-strip .index { flex: none; }

@media (max-width: 960px) {
  .hero__grid { min-height: 0; }
  .hero__copy { grid-column: 1 / -1; padding-bottom: 2.5rem; }
  .hero__media { grid-column: 1 / -1; min-height: 0; aspect-ratio: 4 / 3.3; margin-right: calc(-1 * var(--gutter)); margin-left: calc(-1 * var(--gutter)); }
  .hero__frame { inset: 0; }
  .hero__caption { position: static; transform: none; padding: 0.9rem var(--gutter) 0; }
  .hero__plate { left: var(--gutter); bottom: -2.5rem; min-width: 0; right: var(--gutter); max-width: 340px; }
  .creds-strip { margin-top: 4.5rem; }
  .creds-strip ul { grid-template-columns: 1fr 1fr; }
  .creds-strip li:nth-child(3) { border-left: 0; padding-left: 0; }
  .creds-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .creds-strip ul { grid-template-columns: 1fr; }
  .creds-strip li, .creds-strip li + li { border-left: 0; padding: 1rem 0; }
  .creds-strip li + li { border-top: 1px solid var(--line); }
}

/* --------------------------------------------------------------------------
   Home — philosophy statement
   -------------------------------------------------------------------------- */
.statement .grid { row-gap: 2.5rem; }
.statement__label { grid-column: 1 / span 3; }
.statement__text { grid-column: 4 / span 8; }
.statement__text .serif-lede { font-size: var(--step-4); line-height: 1.14; letter-spacing: -0.02em; }
.statement__meta { grid-column: 4 / span 8; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; margin-top: 1rem; }
@media (max-width: 860px) {
  .statement__label, .statement__text, .statement__meta { grid-column: 1 / -1; }
  .statement__meta { grid-template-columns: 1fr; }
}

/* Word-by-word reveal */
.words .w { display: inline-block; opacity: 0.12; transition: opacity 0.7s var(--ease); transition-delay: calc(var(--wi) * 18ms); }
.words.is-in .w { opacity: 1; }

/* --------------------------------------------------------------------------
   Surgeon introduction
   -------------------------------------------------------------------------- */
.surgeon .grid { align-items: start; row-gap: 3rem; }
.surgeon__media { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 2rem); }
.portrait { position: relative; }
.portrait__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--stone-2); }
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.portrait::before {
  content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; border: 1px solid var(--champagne-soft); z-index: -1;
}
.portrait__tag {
  position: absolute; left: 0; bottom: 0; background: var(--ivory); padding: 1rem 1.25rem 0 0;
}
.portrait__tag .h4 { font-size: 1.375rem; }
.portrait__tag p { font-size: 0.8125rem; color: var(--muted); margin: 0.2rem 0 0; }
.surgeon__body { grid-column: 7 / -1; }
.surgeon__body .h2 { margin-bottom: 2rem; }

.tabs { margin-top: 3rem; }
.tabs__list { display: flex; gap: 2rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab {
  position: relative; padding: 0.9rem 0; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; transition: color .3s;
}
.tabs__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.tabs__tab[aria-selected="true"] { color: var(--ink); }
.tabs__tab[aria-selected="true"]::after { transform: scaleX(1); }
.tabs__panel { padding-top: 1.75rem; }
.tabs__panel[hidden] { display: none; }
.tabs__panel.is-entering { animation: fadeUp 0.6s var(--ease-out) both; }

ol.timeline, ul.timeline { list-style: none; }
ol.timeline > li, ul.timeline > li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
ol.timeline > li:first-child, ul.timeline > li:first-child { padding-top: 0; }
.timeline dt, .timeline .t-label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 0.3rem; }
.timeline .t-title { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); line-height: 1.3; }
.timeline .t-note { font-size: 0.875rem; color: var(--muted); margin-top: 0.2rem; }
.focus-list { list-style: none; counter-reset: f; }
.focus-list li { counter-increment: f; display: flex; gap: 1.25rem; align-items: baseline; padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.25rem; color: var(--ink); line-height: 1.3; }
.focus-list li::before { content: counter(f, decimal-leading-zero); font-family: var(--sans); font-size: 0.75rem; color: var(--champagne-ink); letter-spacing: 0.1em; }
@media (max-width: 960px) {
  .surgeon__media { grid-column: 1 / span 10; position: relative; top: 0; }
  .surgeon__body { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .surgeon__media { grid-column: 1 / -1; margin-right: 1.5rem; }
  ol.timeline > li, ul.timeline > li { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* --------------------------------------------------------------------------
   Specialties (home)
   -------------------------------------------------------------------------- */
.spec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.2vw, 2rem); row-gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 5rem); align-items: end; }
.spec-head__title { grid-column: 1 / span 7; }
.spec-head__aside { grid-column: 9 / -1; }
.spec { --stage-h: min(64vh, 580px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.2vw, 2rem); }
.spec__list { grid-column: 1 / span 7; list-style: none; border-top: 1px solid var(--line-strong); }
.spec__item a {
  display: grid; grid-template-columns: 3.5rem 1fr auto; align-items: baseline; gap: 1rem;
  padding: clamp(1.25rem, 2.2vw, 1.9rem) 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.spec__item a::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease-out);
}
.spec__name { font-family: var(--serif); font-size: var(--step-4); line-height: 1; color: var(--ink); font-weight: 340; letter-spacing: -0.02em; transition: transform 0.6s var(--ease-out), color 0.4s; }
.spec__conds { grid-column: 2 / -1; font-size: 0.875rem; color: var(--muted); margin-top: 0.6rem; max-width: 34em; }
.spec__go { width: 22px; height: 12px; color: var(--ink); opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .6s var(--ease-out); }
.spec__item a:hover::before, .spec__item a:focus-visible::before, .spec__item.is-active a::before { transform: scaleX(1); }
.spec__item a:hover .spec__go, .spec__item a:focus-visible .spec__go, .spec__item.is-active .spec__go { opacity: 1; transform: none; }
.spec__item a:hover .spec__name, .spec__item.is-active .spec__name { transform: translateX(0.5rem); }
.spec__thumb { display: none; }
.spec__panel { grid-column: 9 / -1; position: relative; margin-bottom: calc(var(--stage-h) / -2 + 4rem); }
.spec__stage { position: sticky; top: max(calc(var(--header-h) + 1rem), calc(50vh - var(--stage-h) / 2)); height: var(--stage-h); overflow: hidden; }
.spec__stage figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none; }
.spec__stage figure.is-active { opacity: 1; }
.spec__stage figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 0 0;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline;
}
.spec__stage figcaption .h4 { color: var(--ink); font-size: 1.5rem; }
.spec__stage figcaption .index { color: var(--champagne-ink); }
@media (max-width: 960px) {
  .spec-head__title, .spec-head__aside { grid-column: 1 / -1; }
  .spec__list { grid-column: 1 / -1; }
  .spec__panel { display: none; }
  .spec__item a { grid-template-columns: 2.25rem 1fr 76px; }
  .spec__thumb { display: block; grid-row: 1 / span 2; grid-column: 3; width: 76px; aspect-ratio: 1; align-self: center; }
  .spec__go { display: none; }
  .spec__conds { grid-column: 2 / 3; }
}

/* --------------------------------------------------------------------------
   Patient experience — numbered steps
   -------------------------------------------------------------------------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(1rem, 2.2vw, 2rem); position: relative; margin-top: clamp(3rem, 6vw, 5rem); }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease-out); }
.steps.is-in::after { transform: scaleX(1); }
.step { padding-top: 2rem; position: relative; }
.step::before { content: ""; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--ink); transform: scale(0); transition: transform .6s var(--ease-out); transition-delay: calc(var(--i) * 380ms + 200ms); }
.section--stone .step::before { background: var(--stone); }
.steps.is-in .step::before { transform: scale(1); }
.step__n { font-family: var(--serif); font-size: var(--step-5); line-height: 1; color: #8a7f6d; font-weight: 300; display: block; margin-bottom: 1.25rem; font-variant-numeric: lining-nums; }
.step h3 { font-size: var(--step-2); margin-bottom: 0.9rem; }
.step p { font-size: 0.9375rem; color: var(--text); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .steps::after, .steps::before { display: none; }
  .step { border-top: 1px solid var(--line); }
  .step::before { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; row-gap: 2.25rem; } .step__n { font-size: 3rem; } }

/* --------------------------------------------------------------------------
   Innovation (dark)
   -------------------------------------------------------------------------- */
.innov .grid { row-gap: 3rem; align-items: start; }
.innov__head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 3rem); }
.innov__items { grid-column: 7 / -1; list-style: none; }
.innov__item { display: grid; grid-template-columns: 3rem 1fr; gap: 1.25rem; padding: 2.25rem 0; border-top: 1px solid var(--line-inverse); }
.innov__item:last-child { border-bottom: 1px solid var(--line-inverse); }
.innov__item h3 { font-size: var(--step-3); margin-bottom: 1rem; }
.innov__item p { color: rgba(246, 243, 238, 0.72); max-width: 34em; }
.innov__item .index { color: var(--champagne-soft); padding-top: 0.6rem; }
.innov__item .text-cta { margin-top: 0.75rem; }
.innov__media { display: grid; grid-template-columns: 1.25fr 1fr 0.85fr; gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(3.5rem, 7vw, 6rem); align-items: end; }
.innov__media figure { margin: 0; }
.innov__media .frame { overflow: hidden; background: var(--navy-2); }
.innov__media .frame img { width: 100%; height: 100%; object-fit: cover; }
.innov__media figure:nth-child(1) .frame { aspect-ratio: 4 / 4.4; }
.innov__media figure:nth-child(2) { margin-bottom: clamp(3rem, 8vw, 7rem); }
.innov__media figure:nth-child(2) .frame { aspect-ratio: 16 / 7; }
.innov__media figure:nth-child(3) .frame { aspect-ratio: 3 / 4; }
.innov__media .frame--plate { background: #15181b; }
@media (max-width: 760px) {
  .innov__media { grid-template-columns: 1fr 1fr; }
  .innov__media figure:nth-child(1) { grid-column: 1 / -1; }
  .innov__media figure:nth-child(1) .frame { aspect-ratio: 4 / 3; }
  .innov__media figure:nth-child(2) { margin-bottom: 0; }
  .innov__media figure:nth-child(2) .frame, .innov__media figure:nth-child(3) .frame { aspect-ratio: 1; }
}
.innov__media figcaption { font-size: 0.75rem; color: rgba(246, 243, 238, 0.5); margin-top: 0.75rem; letter-spacing: 0.02em; }
@media (max-width: 960px) {
  .innov__head, .innov__items { grid-column: 1 / -1; position: static; }
}

/* --------------------------------------------------------------------------
   Cinematic band
   -------------------------------------------------------------------------- */
.band { position: relative; min-height: min(88vh, 860px); display: grid; place-items: end start; overflow: hidden; background: var(--navy); color: var(--ivory); }
.band__media { position: absolute; inset: -8% 0; }
.band__media video, .band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,34,45,0.25) 0%, rgba(23,34,45,0.15) 40%, rgba(23,34,45,0.82) 100%); }
.band__copy { position: relative; z-index: 2; padding-block: clamp(3rem, 8vw, 6.5rem); }
.band__copy .display { color: var(--ivory); max-width: 12em; }
.band__copy .display em { color: var(--champagne-soft); font-weight: 300; }
/* Opener variant: first section on the home page */
.band--opener { min-height: 100svh; }
.band--opener .band__media { inset: 0 0 -12% 0; }
.band--opener::after { background: linear-gradient(180deg, rgba(23,34,45,0.55) 0%, rgba(23,34,45,0.1) 28%, rgba(23,34,45,0.2) 55%, rgba(23,34,45,0.88) 100%); }
.band--opener .band__copy { padding-bottom: clamp(3.5rem, 9vh, 7rem); }
.band--opener h1 { font: inherit; margin: 0 0 clamp(2rem, 4vw, 3rem); color: var(--ivory); }
.band__eyebrow { display: flex; color: rgba(246, 243, 238, 0.78); margin-bottom: 1.75rem; }
.band__title { display: block; font-family: var(--serif); font-weight: 340; line-height: 0.98; letter-spacing: -0.025em; color: var(--ivory); max-width: 13em; }
.band__title em { color: var(--champagne-soft); font-weight: 300; }
.band--opener .text-cta { color: var(--ivory); }
.band__controls { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(3rem, 8vw, 6.5rem); }
.band__toggle { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0 1rem; color: var(--ivory); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; box-shadow: inset 0 0 0 1px rgba(246,243,238,0.35); }
.band__toggle svg { width: 10px; height: 12px; }
@media (max-width: 560px) { .band__controls { position: relative; right: auto; bottom: auto; margin-top: 1.5rem; } }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.quotes .grid { row-gap: 2rem; }
.quotes__label { grid-column: 1 / span 3; }
.quotes__stage { grid-column: 4 / -1; position: relative; }
.quote { margin: 0; }
.quote[hidden] { display: none; }
.quote.is-entering { animation: fadeUp 0.8s var(--ease-out) both; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: var(--step-3); line-height: 1.28; color: var(--ink); font-weight: 340; letter-spacing: -0.012em; position: relative; }
.quote blockquote::before { content: "\201C"; position: absolute; left: -0.55em; top: -0.05em; color: var(--champagne-ink); }
.quote figcaption { margin-top: 2rem; display: flex; gap: 1rem; align-items: baseline; font-size: 0.875rem; }
.quote figcaption strong { font-weight: 500; }
.quote figcaption span { color: var(--muted); }
.quotes__nav { display: flex; align-items: center; gap: 1.5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.quotes__count { font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: var(--muted); letter-spacing: 0.08em; min-width: 4.5rem; }
.quotes__btn { width: 48px; height: 48px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 50%; transition: background .3s, color .3s; color: var(--ink); }
.quotes__btn:hover { background: var(--ink); color: var(--ivory); }
.quotes__btn svg { width: 16px; height: 10px; }
.quotes__note { margin-left: auto; font-size: 0.75rem; color: var(--muted); }
@media (max-width: 860px) { .quotes__label, .quotes__stage { grid-column: 1 / -1; } .quote blockquote::before { position: static; display: block; height: 0.5em; } }

/* --------------------------------------------------------------------------
   Credentials
   -------------------------------------------------------------------------- */
.creds .grid { row-gap: 3rem; }
.creds__head { grid-column: 1 / span 4; }
.creds__body { grid-column: 6 / -1; }
.creds__lead { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.creds__lead > div { padding: 2rem 2rem 2rem 0; }
.creds__lead > div + div { padding-left: 2rem; border-left: 1px solid var(--line); }
.creds__lead .k { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.9rem; }
.creds__lead .v { font-family: var(--serif); font-size: var(--step-2); color: var(--ink); line-height: 1.2; display: block; }
.creds__lead .n { font-size: 0.875rem; color: var(--muted); display: block; margin-top: 0.5rem; }
.creds__rows { list-style: none; }
.creds__row { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.creds__row h3 { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding-top: 0.25rem; }
.creds__row ul { list-style: none; display: grid; gap: 0.5rem; }
.creds__row li { color: var(--ink); line-height: 1.45; }
.creds__row li small { display: block; color: var(--muted); font-size: 0.8125rem; }
@media (max-width: 960px) { .creds__head, .creds__body { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .creds__lead { grid-template-columns: 1fr; }
  .creds__lead > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .creds__row { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* --------------------------------------------------------------------------
   Practice / place
   -------------------------------------------------------------------------- */
.place__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.2vw, 2rem); row-gap: clamp(1rem, 2.2vw, 2rem); align-items: start; }
.place__a { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.place__a .frame img { object-position: 50% 60%; }
.place__copy { grid-column: 9 / -1; grid-row: 1; padding-top: 1rem; }
.place__b { grid-column: 9 / -1; grid-row: 2; align-self: end; }
.place__c { grid-column: 3 / span 4; margin-top: clamp(1rem, 2.2vw, 2rem); }
.place__d { grid-column: 8 / span 5; margin-top: clamp(4rem, 9vw, 8rem); }
.place figure { margin: 0; }
.place .frame { overflow: hidden; background: var(--stone-2); }
.place .frame img { width: 100%; height: 100%; object-fit: cover; }
.place__a .frame { aspect-ratio: 5 / 5.2; }
.place__b .frame { aspect-ratio: 4 / 3; }
.place__c .frame { aspect-ratio: 3 / 4; }
.place__d .frame { aspect-ratio: 3 / 2; }
.place figcaption { font-size: 0.75rem; color: var(--muted); margin-top: 0.7rem; }
.address-block { font-style: normal; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; gap: 0.25rem; }
.address-block .k { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
@media (max-width: 960px) {
  .place__a { grid-column: 1 / span 12; grid-row: auto; }
  .place__copy { grid-column: 1 / -1; grid-row: auto; order: -1; padding-top: 0; }
  .place__b { grid-column: 1 / span 7; grid-row: auto; }
  .place__c { grid-column: 8 / -1; margin-top: 30%; }
  .place__d { grid-column: 1 / -1; margin-top: 0; }
  .place__a .frame { aspect-ratio: 4 / 3.4; }
}

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */
.closing { background: var(--stone); overflow: hidden; }
.closing .grid { row-gap: 2.5rem; align-items: end; }
.closing__title { grid-column: 1 / span 8; }
.closing__side { grid-column: 9 / -1; display: grid; gap: 1.5rem; }
.closing__phone { font-family: var(--serif); font-size: var(--step-3); color: var(--ink); font-variant-numeric: lining-nums; }
@media (max-width: 960px) { .closing__title, .closing__side { grid-column: 1 / -1; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(246, 243, 238, 0.66); padding: clamp(4.5rem, 9vw, 7.5rem) 0 2rem; font-size: 0.9375rem; }
.site-footer a { transition: color .3s; }
.site-footer a:hover { color: var(--ivory); }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.2vw, 2rem); row-gap: 3rem; padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line-inverse); }
.footer__brand { grid-column: 1 / span 5; }
.footer__brand .brand { color: var(--ivory); --seal-accent: var(--champagne-soft); }
.brand--footer { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.brand__mark--lg { width: 112px; height: 112px; }
.footer__brand .brand__desc { color: rgba(246,243,238,0.5); }
.footer__brand p { margin-top: 1.75rem; max-width: 28em; font-size: 0.875rem; }
.footer__col { grid-column: span 2; }
.footer__col--wide { grid-column: span 3; }
.footer__col h2 { font-family: var(--sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(246,243,238,0.58); margin-bottom: 1.25rem; }
.footer__col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer__col address { font-style: normal; display: grid; gap: 0.55rem; }
.footer__col .ph { font-size: 0.8rem; }
.footer__legal { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; padding-top: 2rem; font-size: 0.8125rem; color: rgba(246,243,238,0.5); }
.footer__legal p { max-width: 62em; }
.footer__legal ul { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; }
@media (max-width: 1080px) {
  .footer__brand { grid-column: 1 / -1; }
  .footer__col, .footer__col--wide { grid-column: span 4; }
}
@media (max-width: 640px) {
  .footer__col, .footer__col--wide { grid-column: span 6; }
  .footer__col--wide { grid-column: 1 / -1; }
  .footer__legal { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Interior pages
   -------------------------------------------------------------------------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6.5rem)); padding-bottom: clamp(3.5rem, 7vw, 6rem); position: relative; }
.page-hero .grid { row-gap: 2.5rem; align-items: end; }
.page-hero__copy { grid-column: 1 / span 8; }
.page-hero__copy .h1 { margin-bottom: 1.75rem; }
.page-hero__aside { grid-column: 10 / -1; }
.page-hero--media .page-hero__copy { grid-column: 1 / span 7; }
.page-hero--media .page-hero__media { grid-column: 9 / -1; }
.page-hero__media .frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone-2); }
.page-hero__media .frame img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) {
  .page-hero__copy, .page-hero__aside, .page-hero--media .page-hero__copy { grid-column: 1 / -1; }
  .page-hero--media .page-hero__media { grid-column: 1 / span 8; }
  .page-hero__media .frame { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) { .page-hero--media .page-hero__media { grid-column: 1 / -1; } }

.crumbs { font-size: 0.8125rem; color: var(--muted); margin-bottom: 2.25rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--sand); }
.crumbs a:hover { color: var(--ink); }

/* Article layout with sticky contents */
.article { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.2vw, 2rem); align-items: start; }
.toc { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + 2rem); }
.toc h2 { font-family: var(--sans); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 1rem; }
.toc ol { list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 0.45rem 0 0.45rem 1.1rem; font-size: 0.875rem; color: var(--muted); position: relative; line-height: 1.4; transition: color .3s; }
.toc a::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 1px; background: var(--ink); transform: scaleY(0); transition: transform .4s var(--ease-out); }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.toc a.is-active::before { transform: scaleY(1); }
.article__body { grid-column: 5 / span 8; }
@media (max-width: 960px) {
  .toc { display: none; }
  .article__body { grid-column: 1 / -1; }
}

.entry { padding-block: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.entry:first-child { border-top: 0; padding-top: 0; }
.entry__head { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: baseline; margin-bottom: 2rem; }
.entry__head .index { padding-top: 0.5rem; }
.entry__head h2 { font-size: var(--step-3); }
.entry .prose { padding-left: 4rem; }
@media (max-width: 560px) { .entry__head { grid-template-columns: 1fr; gap: 0.5rem; } .entry .prose { padding-left: 0; } }

.plate { margin: 2.25rem 0; display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: end; }
.plate__img { background: #15181b; padding: 0.75rem; max-width: min(100%, 460px); }
.plate__img img { max-height: 300px; width: auto; }
.plate figcaption { font-size: 0.75rem; color: var(--muted); max-width: 18em; line-height: 1.5; padding-bottom: 0.25rem; }
.plate figcaption b { display: block; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.6875rem; color: var(--champagne-ink); margin-bottom: 0.35rem; }
@media (max-width: 640px) { .plate { grid-template-columns: 1fr; } }

.related { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.chip-link {
  display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem; min-height: 44px;
  box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 0.875rem; color: var(--ink); transition: background .3s, color .3s;
}
.chip-link small { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.chip-link:hover { background: var(--ink); color: var(--ivory); }
.chip-link:hover small { color: var(--sand); }
.chip-link .arrow { width: 16px; height: 9px; }

/* Specialty index — region rows */
.regions { list-style: none; border-top: 1px solid var(--line-strong); }
.region-row a { display: grid; grid-template-columns: 3.5rem 1.25fr 1.5fr 180px; gap: clamp(1rem, 2.2vw, 2rem); align-items: center; padding: clamp(1.25rem, 2.5vw, 2rem) 0; border-bottom: 1px solid var(--line); }
.region-row .h3 { transition: transform .6s var(--ease-out); }
.region-row a:hover .h3 { transform: translateX(0.5rem); }
.region-row p { font-size: 0.9375rem; color: var(--muted); margin: 0; }
.region-row .frame { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); }
.region-row .bm-svg { transition: transform 1.2s var(--ease-out); }
.region-row a:hover .bm-svg { transform: scale(1.06); }
@media (max-width: 860px) {
  .region-row a { grid-template-columns: 2.5rem 1fr 110px; }
  .region-row p { grid-column: 2 / 3; }
  .region-row .frame { grid-column: 3; grid-row: 1 / span 2; }
}

/* Region prev/next */
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); }
.pager a { padding: 2rem 0; display: grid; gap: 0.5rem; }
.pager a + a { text-align: right; border-left: 1px solid var(--line); padding-left: 2rem; }
.pager .h3 { transition: color .3s; }
.pager a:hover .h3 { color: var(--slate); }
.pager small { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Conditions & treatments index */
.finder { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.2vw, 2rem); row-gap: 1.5rem; margin-bottom: 3rem; align-items: end; }
.finder__search { grid-column: 1 / span 5; position: relative; }
.finder__search label { display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.finder__search input { width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; padding: 0.75rem 2rem 0.75rem 0; font-family: var(--serif); font-size: var(--step-2); color: var(--ink); border-radius: 0; }
.finder__search input::placeholder { color: var(--sand); }
.finder__search input:focus { outline: none; border-bottom-color: var(--ink); }
.finder__search svg { position: absolute; right: 0; bottom: 1.1rem; width: 18px; height: 18px; color: var(--muted); }
.finder__chips { grid-column: 7 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.chip { min-height: 40px; padding: 0.45rem 0.95rem; font-size: 0.8125rem; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--charcoal); border-radius: 100px; transition: background .3s, color .3s, box-shadow .3s; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ivory); box-shadow: none; }
.chip:hover:not([aria-pressed="true"]) { box-shadow: inset 0 0 0 1px var(--ink); }
.finder__count { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--muted); }
@media (max-width: 960px) { .finder__search, .finder__chips { grid-column: 1 / -1; } .finder__chips { justify-content: flex-start; } }

.cond-group { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.2vw, 2rem); padding: 2rem 0; border-top: 1px solid var(--line-strong); }
.cond-group[hidden] { display: none; }
.cond-group__head { grid-column: 1 / span 3; }
.cond-group__head .h4 { margin-top: 0.4rem; }
.cond-group ul { grid-column: 4 / -1; list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(1rem, 2.2vw, 2rem); }
.cond-group li[hidden] { display: none; }
.cond-group li a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--ink); transition: color .3s, padding .4s var(--ease-out); }
.cond-group li a .arrow { width: 16px; height: 9px; opacity: 0.35; transition: opacity .3s, transform .5s var(--ease-out); flex: none; }
.cond-group li a:hover { color: var(--slate); }
.cond-group li a:hover .arrow { opacity: 1; transform: translateX(3px); }
@media (max-width: 860px) {
  .cond-group__head { grid-column: 1 / -1; margin-bottom: 0.75rem; }
  .cond-group ul { grid-column: 1 / -1; grid-template-columns: 1fr; }
}
.finder__empty { padding: 3rem 0; border-top: 1px solid var(--line-strong); }

/* Procedure list */
.proc-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.proc-list li { border-bottom: 1px solid var(--line); }
.proc-list li:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }
.proc-list a { display: flex; flex-direction: column; height: 100%; padding: 2rem clamp(1rem, 2vw, 2rem) 2rem 0; gap: 0.9rem; transition: background .4s; }
.proc-list li:not(:nth-child(3n+1)) a { padding-left: clamp(1rem, 2vw, 2rem); }
.proc-list .kind { font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--champagne-ink); }
.proc-list .h4 { transition: color .3s; }
.proc-list p { font-size: 0.9375rem; color: var(--muted); margin: 0; }
.proc-list .text-cta { margin-top: auto; }
.proc-list a:hover .h4 { color: var(--slate); }
.on-dark .proc-list { border-top-color: var(--line-inverse); }
@media (max-width: 960px) {
  .proc-list { grid-template-columns: 1fr 1fr; }
  .proc-list li:not(:nth-child(3n+1)) { border-left: 0; }
  .proc-list li:nth-child(2n) { border-left: 1px solid var(--line); }
  .proc-list li a, .proc-list li:not(:nth-child(3n+1)) a { padding-left: 0; }
  .proc-list li:nth-child(2n) a { padding-left: clamp(1rem, 2vw, 2rem); }
}
@media (max-width: 600px) {
  .proc-list { grid-template-columns: 1fr; }
  .proc-list li:nth-child(2n) { border-left: 0; }
  .proc-list li:nth-child(2n) a { padding-left: 0; }
}

/* Procedure page — facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); margin: 0; }
.facts > div { padding: 1.5rem 1.5rem 1.6rem 0; border-bottom: 1px solid var(--line); }
.facts > div:not(:nth-child(3n+1)) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.facts dt { font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.3125rem; line-height: 1.3; color: var(--ink); }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(2n) { padding-left: 1.25rem; border-left: 1px solid var(--line); }
}
.ordered { list-style: none; counter-reset: s; display: grid; gap: 0; }
.ordered li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.ordered li:first-child { border-top: 1px solid var(--line); }
.ordered li::before { content: counter(s, decimal-leading-zero); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--champagne-ink); padding-top: 0.3rem; }

.notice { padding: 1.5rem 1.75rem; background: var(--paper); border-left: 2px solid var(--champagne); font-size: 0.9375rem; margin: 2rem 0; }
.notice strong { display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.4rem; font-weight: 500; }

/* Resources */
.guide-list { list-style: none; border-top: 1px solid var(--line-strong); }
.guide-list a { display: grid; grid-template-columns: 3.5rem 1fr 1.2fr 24px; gap: clamp(1rem, 2.2vw, 2rem); align-items: baseline; padding: clamp(1.5rem, 2.6vw, 2.2rem) 0; border-bottom: 1px solid var(--line); }
.guide-list .h3 { transition: transform .6s var(--ease-out); }
.guide-list a:hover .h3 { transform: translateX(0.5rem); }
.guide-list p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.guide-list .arrow { width: 22px; height: 12px; align-self: center; transition: transform .5s var(--ease-out); }
.guide-list a:hover .arrow { transform: translateX(4px); }
@media (max-width: 760px) { .guide-list a { grid-template-columns: 2.5rem 1fr; } .guide-list p { grid-column: 2; } .guide-list .arrow { display: none; } }

.checklist { list-style: none; }
.checklist li { position: relative; padding: 1.1rem 0 1.1rem 2.25rem; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: 12px; height: 12px; border: 1px solid var(--champagne); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.med-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin-top: 1rem; }
.med-table caption { text-align: left; }
.med-table th, .med-table td { text-align: left; padding: 0.95rem 1rem 0.95rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.med-table thead th { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; border-bottom-color: var(--line-strong); }
.med-table td:first-child { color: var(--ink); font-weight: 500; width: 34%; }
.med-table td:last-child { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .med-table thead { display: none; }
  .med-table tr { display: grid; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .med-table td { border: 0; padding: 0.1rem 0; width: auto !important; }
}

.accordion { border-top: 1px solid var(--line-strong); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.4rem 0; font-family: var(--serif); font-size: var(--step-2); color: var(--ink); line-height: 1.25;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .pm { position: relative; width: 14px; height: 14px; flex: none; }
.accordion summary .pm::before, .accordion summary .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .4s var(--ease-out); }
.accordion summary .pm::after { transform: rotate(90deg); }
.accordion details[open] summary .pm::after { transform: rotate(0); }
.accordion .acc-body { padding: 0 0 1.75rem; max-width: 40em; }
.accordion details[open] .acc-body { animation: fadeUp 0.5s var(--ease-out) both; }

.seq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem clamp(2rem, 5vw, 5rem); }
.seq-grid h3 { font-size: var(--step-2); margin-bottom: 1rem; }
@media (max-width: 760px) { .seq-grid { grid-template-columns: 1fr; } }

/* About — team */
.team { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 5vw, 5rem); border-top: 1px solid var(--line-strong); }
.member { padding: 2.25rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 88px 1fr; gap: 1.5rem; align-items: start; }
.member__mono { width: 88px; aspect-ratio: 4 / 5; background: var(--stone); display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem; color: #857a68; position: relative; }
.member__mono::after { content: "Photo"; position: absolute; bottom: 6px; font-family: var(--sans); font-size: 0.5625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand); }
.member h3 { font-size: 1.5rem; }
.member h3 small { font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.02em; margin-left: 0.35rem; }
.member__role { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--champagne-ink); margin: 0.4rem 0 1rem; }
.member p { font-size: 0.9375rem; }
.member__contact { font-size: 0.875rem; display: grid; gap: 0.2rem; margin-top: 0.75rem; color: var(--muted); }
.member__contact a { color: var(--slate); word-break: break-all; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .member { grid-template-columns: 1fr; } .member__mono { width: 72px; } }

/* Contact */
.contact .grid { row-gap: 4rem; align-items: start; }
.contact__form { grid-column: 1 / span 7; }
.contact__info { grid-column: 9 / -1; display: grid; gap: 2.5rem; }
@media (max-width: 960px) { .contact__form, .contact__info { grid-column: 1 / -1; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1.5rem; }
.field { display: grid; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field .req { color: var(--champagne-ink); }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; border-radius: 0;
  padding: 0.7rem 0; font-size: 1.0625rem; color: var(--ink); min-height: 48px; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231d2226' stroke-width='1.2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.25rem center; padding-right: 1.5rem; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: #9b3b2e; }
.field .error { font-size: 0.8125rem; color: #9b3b2e; min-height: 0; }
.field .hint { font-size: 0.8125rem; color: var(--muted); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.radios label { position: relative; text-transform: none; letter-spacing: 0; font-size: 0.9375rem; color: var(--charcoal); }
.radios input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; min-height: 0; }
.radios span { display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 1.1rem; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 100px; transition: background .3s, color .3s; }
.radios input:checked + span { background: var(--ink); color: var(--ivory); box-shadow: none; }
.radios input:focus-visible + span { outline: 2px solid var(--slate); outline-offset: 2px; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; padding-top: 0.5rem; }
.form__foot p { font-size: 0.8125rem; color: var(--muted); max-width: 30em; margin: 0; }
.form-status { grid-column: 1 / -1; padding: 1.25rem 1.5rem; background: var(--paper); border-left: 2px solid var(--champagne); }
.form-status[hidden] { display: none; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.info-block h2 { font-family: var(--sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.info-block .big { font-family: var(--serif); font-size: var(--step-2); color: var(--ink); line-height: 1.3; }
.info-block address { font-style: normal; }
.directory { list-style: none; }
.directory li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; display: grid; gap: 0.15rem; }
.directory li:first-child { border-top: 1px solid var(--line); }
.directory b { font-weight: 500; color: var(--ink); }
.directory span { color: var(--muted); font-size: 0.875rem; }
.directory a { color: var(--slate); word-break: break-all; }
.map { aspect-ratio: 4 / 3; background: var(--stone); position: relative; overflow: hidden; }
.map__load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .35rem; width: 100%; color: var(--ink);
  background-color: var(--stone); background-image: linear-gradient(rgba(29,34,38,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(29,34,38,.05) 1px, transparent 1px); background-size: 32px 32px; transition: background-color .3s; }
.map__load:hover { background-color: var(--stone-2); }
.map__pin { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--champagne); box-shadow: 0 0 0 6px rgba(168,138,92,.15); margin-bottom: .6rem; }
.map__label { font-family: var(--serif); font-size: 1.375rem; }
.map__load small { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.85) sepia(0.12) contrast(0.95); }

/* 404 */
.notfound { min-height: 80vh; display: grid; align-items: center; padding-top: var(--header-h); }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(135%); opacity: 0; } 35% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1.0); } }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal="fade"] { transform: none; }
  .js [data-reveal="mask"] { opacity: 1; transform: none; }
  .js [data-reveal="mask"] img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1.4s var(--ease-out), transform 2.2s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
  .js [data-reveal="mask"].is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }

  .js .band--opener .line > span { animation: rise 1.3s var(--ease-out) both; animation-delay: calc(var(--l) * 130ms + 250ms); }
  .js .band--opener [data-hero] { animation: fadeUp 1s var(--ease-out) both; animation-delay: calc(var(--d) * 110ms + 350ms); }
  .js .band--opener .band__media { animation: fadeIn 1.6s var(--ease) both; }

  .js .hero:not(.is-in) .hero__title .line > span { transform: translateY(135%); opacity: 0; }
  .js .hero:not(.is-in) [data-hero], .js .hero:not(.is-in) .hero__plate { opacity: 0; }
  .js .hero:not(.is-in) .hero__frame { clip-path: inset(0 0 100% 0); }
  .js .hero.is-in .hero__title .line > span { animation: rise 1.2s var(--ease-out) both; animation-delay: calc(var(--l) * 110ms + 150ms); }
  .js .hero.is-in [data-hero] { animation: fadeUp 1s var(--ease-out) both; animation-delay: calc(var(--d) * 100ms + 450ms); }
  .js .hero.is-in .hero__frame { animation: wipe 1.6s var(--ease-out) both 0.15s; }
  .js .hero.is-in .hero__frame img { animation: settle 2.6s var(--ease-out) both 0.15s; }
  .js .hero.is-in .hero__plate { animation: fadeUp 1s var(--ease-out) both 1s; }

  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 0.28s var(--ease) both vtOut; }
  ::view-transition-new(root) { animation: 0.45s var(--ease-out) both vtIn; }
  @keyframes vtOut { to { opacity: 0; } }
  @keyframes vtIn { from { opacity: 0; transform: translateY(8px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .words .w { opacity: 1; }
}

@media print {
  .site-header, .site-footer, .action-bar, .mobile-menu, .band, .toc { display: none !important; }
  body { background: #fff; }
  .page-hero { padding-top: 0; }
}

@media (max-width: 560px) {
  .band--opener .band__controls { position: absolute; right: var(--gutter); bottom: 1.25rem; margin: 0; }
  .band--opener .band__copy { padding-bottom: 5.5rem; }
}


/* --------------------------------------------------------------------------
   Body map illustration
   -------------------------------------------------------------------------- */
.bodymap.bodymap { position: relative; overflow: hidden; background: none; }
.spec__stage.bodymap { position: sticky; }
/* Soft fade at the edges so a zoomed figure never ends in a hard crop line */
.bm-svg {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent), linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent), linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-composite: intersect;
}
.bm-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bm-fig { transform-box: view-box; transform-origin: 0 0; transition: transform 1.3s var(--ease-out); }
.bm-body { fill: #d9cfc2; stroke: rgba(23, 34, 45, 0.1); stroke-width: 1; }
.bm-joint { fill: var(--ivory); stroke: #a99c8a; stroke-width: 1; }
.bm-hl { opacity: 0; transition: opacity 0.6s var(--ease); }
.bm-cross { stroke: rgba(168, 138, 92, 0.45); stroke-width: 1; stroke-dasharray: 2 6; }
.bm-ring { fill: rgba(205, 184, 147, 0.16); stroke: var(--champagne); stroke-width: 1.5; }
.bm-pulse { fill: none; stroke: var(--champagne); stroke-width: 1; transform-box: fill-box; transform-origin: center; opacity: 0; }
.bm-core { fill: var(--champagne-soft); }
.bodymap[data-region="shoulder"] .bm-hl--shoulder,
.bodymap[data-region="elbow"] .bm-hl--elbow,
.bodymap[data-region="hand-wrist"] .bm-hl--hand-wrist,
.bodymap[data-region="hip"] .bm-hl--hip,
.bodymap[data-region="knee"] .bm-hl--knee,
.bodymap[data-region="foot-ankle"] .bm-hl--foot-ankle { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .bm-pulse { animation: bmPulse 2.8s var(--ease-out) infinite; }
}
@keyframes bmPulse { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
.spec__thumb .bm-cross, .region-row .bm-cross { display: none; }
.page-hero__media .bodymap { aspect-ratio: 4 / 5; }
@media (max-width: 960px) { .page-hero__media .bodymap { aspect-ratio: 4 / 3; } }


/* --------------------------------------------------------------------------
   Preloader (home page, first visit per session)
   -------------------------------------------------------------------------- */
.preloader { display: none; }
.is-preloading .preloader, .preloader.is-leaving {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 300;
  background: var(--navy); color: var(--ivory); --seal-accent: var(--champagne-soft);
}
.is-preloading body { overflow: hidden; }
.preloader__seal { width: clamp(132px, 16vw, 176px); height: auto; overflow: visible; }
.pl-ring { fill: none; stroke-dasharray: 1 1; stroke-dashoffset: 1; transform-box: view-box; transform-origin: 60px 60px; transform: rotate(-90deg); }
.pl-ring--outer { animation: plDraw 1.1s var(--ease-out) 0.1s forwards; }
.pl-ring--inner { animation: plDraw 1s var(--ease-out) 0.3s forwards; }
.pl-text { opacity: 0; transform-box: view-box; transform-origin: 60px 60px; }
.pl-text--top { transform: rotate(-24deg); animation: plSweep 1.1s var(--ease-out) 0.55s forwards; }
.pl-text--bottom { transform: rotate(24deg); animation: plSweep 1.1s var(--ease-out) 0.65s forwards; }
.pl-mg { opacity: 0; transform-box: fill-box; transform-origin: center; transform: translateY(6px) scale(0.96); animation: plRise 0.9s var(--ease-out) 0.85s forwards; }
.pl-dot { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: plPop 0.5s var(--ease-out) 1.25s forwards; }
.preloader__line {
  position: absolute; left: 50%; bottom: clamp(2.5rem, 8vh, 4.5rem); width: 120px; height: 1px; margin-left: -60px;
  background: rgba(246, 243, 238, 0.15); overflow: hidden;
}
.preloader__line::after { content: ""; position: absolute; inset: 0; background: var(--champagne-soft); transform: scaleX(0); transform-origin: left; animation: plLine 1.6s var(--ease) 0.1s forwards; }
/* nothing moves until the screen is actually painted (JS adds .is-playing) */
.preloader:not(.is-playing) .preloader__seal *,
.preloader:not(.is-playing) .preloader__line::after { animation-play-state: paused; }
@keyframes plDraw { to { stroke-dashoffset: 0; transform: rotate(0deg); } }
@keyframes plSweep { to { opacity: 1; transform: rotate(0deg); } }
@keyframes plRise { to { opacity: 1; transform: none; } }
@keyframes plPop { 60% { transform: scale(1.5); } to { transform: scale(1); } }
@keyframes plLine { to { transform: scaleX(1); } }

/* exit: the seal rushes toward the viewer (we fly through the logo) while the navy dissolves */
.preloader.is-leaving .preloader__seal {
  animation: plZoom 1.5s cubic-bezier(0.7, 0, 0.25, 1) forwards;
}
/* once drawn, rings keep a hairline weight as the seal zooms past the viewer */
.preloader.is-leaving .pl-ring { stroke-dasharray: none; vector-effect: non-scaling-stroke; }
.preloader.is-leaving .pl-mg { transition: opacity 0.45s var(--ease); opacity: 0 !important; }
.preloader.is-leaving .pl-dot { transition: opacity 0.35s var(--ease); opacity: 0; }
.preloader.is-leaving { animation: plFade 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards; }
.preloader.is-leaving .preloader__line { opacity: 0; transition: opacity 0.4s var(--ease); }
@keyframes plZoom {
  0% { transform: scale(1); opacity: 1; }
  15% { transform: scale(0.94); opacity: 1; }
  70% { opacity: 0.9; }
  100% { transform: scale(9); opacity: 0; }
}
@keyframes plFade { to { opacity: 0; visibility: hidden; } }

/* the video drifts gently into place as the navy dissolves */
.is-revealing .band--opener .band__media video { animation: plSettle 2.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes plSettle { from { transform: scale(1.07); } to { transform: scale(1); } }

/* hold the opener's own entrance until the curtain lifts */
.is-preloading .band--opener .line > span,
.is-preloading .band--opener [data-hero] { animation-play-state: paused !important; }


/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }


/* --------------------------------------------------------------------------
   Body explorer ("Where does it hurt?")
   -------------------------------------------------------------------------- */
.explorer { padding-top: 0; }
.ex { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.2vw, 2rem); align-items: center; }
.ex-figure { grid-column: 1 / span 5; position: relative; aspect-ratio: 4 / 5; justify-self: center; width: 100%; max-width: 500px; }
.ex-figure .ex-map { position: absolute; inset: 0; }
.ex-map .bm-cross { display: none; }
.ex-map .bm-svg { -webkit-mask-image: none; mask-image: none; }
.ex-spots { position: absolute; inset: 0; }
.ex-spot {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
}
.ex-spot::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--ivory);
  box-shadow: 0 0 0 1px #a99c8a, 0 0 0 6px rgba(168, 138, 92, 0.12); transition: transform .35s var(--ease-out), box-shadow .35s, background .3s;
}
.ex-spot:hover::before, .ex-spot:focus-visible::before { transform: scale(1.25); box-shadow: 0 0 0 1.5px var(--champagne), 0 0 0 8px rgba(168, 138, 92, 0.18); }
.ex-spot[aria-pressed="true"]::before { background: var(--champagne); box-shadow: 0 0 0 2px var(--ivory), 0 0 0 3px var(--champagne), 0 0 0 12px rgba(168, 138, 92, 0.18); transform: scale(1.1); }
@media (prefers-reduced-motion: no-preference) {
  .ex-spot:not([aria-pressed="true"])::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--champagne); animation: exPing 2.6s var(--ease-out) infinite; opacity: 0; }
}
@keyframes exPing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
.ex-spot__tag {
  position: absolute; left: calc(100% + 2px); top: 50%; transform: translate(-6px, -50%); white-space: nowrap;
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--paper);
  padding: .3rem .6rem; box-shadow: 0 6px 18px -8px rgba(23, 34, 45, .35); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease-out);
}
.ex-spot:hover .ex-spot__tag, .ex-spot:focus-visible .ex-spot__tag, .ex-spot[aria-pressed="true"] .ex-spot__tag { opacity: 1; transform: translate(0, -50%); }
.ex-panels { grid-column: 7 / -1; position: relative; min-height: 420px; }
.ex-panel[hidden] { display: none; }
.ex-panel { animation: fadeUp .6s var(--ease-out) both; }
.ex-panel .h2 { margin: .5rem 0 1rem; }
.ex-intro { color: var(--charcoal); max-width: 34em; margin-bottom: 2rem; }
.ex-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(1.25rem, 3vw, 2.5rem); margin-bottom: 2rem; }
.ex-cols h4 { font-family: var(--sans); font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.ex-list { list-style: none; border-top: 1px solid var(--line-strong); }
.ex-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; color: var(--ink); transition: color .3s; }
.ex-list a:hover { color: var(--slate); }
.ex-list .arrow { width: 16px; height: 9px; opacity: .4; flex: none; }
.ex-chips { display: none; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
@media (max-width: 960px) {
  .ex-figure { grid-column: 1 / -1; max-width: 340px; }
  .ex-panels { grid-column: 1 / -1; min-height: 0; margin-top: 2rem; }
  .ex-chips { display: flex; }
}
@media (max-width: 560px) { .ex-cols { grid-template-columns: 1fr; gap: 1.5rem; } .ex-spot__tag { display: none; } }

/* --------------------------------------------------------------------------
   Recovery timeline
   -------------------------------------------------------------------------- */
.tl-track { position: relative; padding: 0 0 1rem; }
.tl-rail { position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 21px; height: 1px; background: var(--line-strong); }
.tl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: var(--ink); transition: width .6s var(--ease-out); }
.tl-marks { list-style: none; display: grid; grid-template-columns: repeat(var(--n), 1fr); position: relative; }
.tl-mark { width: 100%; display: grid; justify-items: center; align-content: start; gap: .9rem; padding: 12px .25rem 0; color: var(--muted); min-height: 44px; }
.tl-mark__dot { width: 19px; height: 19px; border-radius: 50%; background: var(--stone); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background .3s, box-shadow .3s, transform .4s var(--ease-out); }
.tl-mark.is-past .tl-mark__dot { background: var(--ink); box-shadow: none; transform: scale(.6); }
.tl-mark[aria-pressed="true"] .tl-mark__dot { background: var(--champagne); box-shadow: 0 0 0 4px var(--stone), 0 0 0 5px var(--champagne); transform: none; }
.tl-mark__when { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; text-align: center; transition: color .3s; }
.tl-mark[aria-pressed="true"] .tl-mark__when, .tl-mark:hover .tl-mark__when { color: var(--ink); }
.tl-range { display: block; width: calc(100% - 100% / var(--n)); margin: 1.5rem auto 0; height: 32px; cursor: pointer; background: transparent; -webkit-appearance: none; appearance: none; }
.tl-range::-webkit-slider-runnable-track { height: 2px; background: var(--line-strong); }
.tl-range::-moz-range-track { height: 2px; background: var(--line-strong); }
.tl-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1.5px var(--champagne), 0 4px 12px -4px rgba(23,34,45,.4); transition: transform .2s; }
.tl-range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1.5px var(--champagne), 0 4px 12px -4px rgba(23,34,45,.4); }
.tl-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.tl-range:focus-visible { outline: none; }
.tl-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--slate), 0 0 0 5px rgba(80,101,122,.25); }
.tl-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--slate), 0 0 0 5px rgba(80,101,122,.25); }
.tl-cards { margin-top: clamp(2rem, 4vw, 3rem); max-width: 44rem; }
.tl-card { padding: 2rem 0 0; border-top: 1px solid var(--line-strong); }
.tl-card + .tl-card { margin-top: 1.5rem; }
.js .tl-card { display: none; }
.js .tl-card.is-active { display: block; animation: fadeUp .55s var(--ease-out) both; }
.js .tl-card + .tl-card { margin-top: 0; }
.tl-card__when { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--champagne-ink); margin-bottom: .6rem; }
.tl-card .h3 { margin-bottom: .8rem; }
.tl-card p:last-child { font-size: 1.0625rem; color: var(--charcoal); max-width: 38em; }
@media (max-width: 760px) {
  .tl-mark__when { font-size: .625rem; letter-spacing: .04em; }
  .tl-marks li:nth-child(even) .tl-mark__when { visibility: hidden; }
  .tl-mark[aria-pressed="true"] .tl-mark__when { visibility: visible; }
}

/* --------------------------------------------------------------------------
   Surgery prep planner
   -------------------------------------------------------------------------- */
.planner__input { display: flex; flex-wrap: wrap; align-items: end; gap: 1.25rem 2rem; margin: 1.5rem 0 1rem; }
.planner__input .field { min-width: 220px; }
.planner__actions[hidden] { display: none; }
.planner__actions .btn { min-height: 44px; padding: .6rem 1rem .6rem 1.1rem; font-size: .8125rem; }
.planner__list { list-style: none; margin: 1rem 0 1.5rem; }
.planner__list li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.planner__list li:first-child { border-top: 1px solid var(--line-strong); }
.planner__list .when { font-family: var(--serif); font-size: 1.125rem; color: var(--ink); line-height: 1.3; }
.planner__list .when small { display: block; font-family: var(--sans); font-size: .75rem; color: var(--muted); margin-top: .2rem; letter-spacing: .02em; }
.planner__list .what b { display: block; font-weight: 500; color: var(--ink); }
.planner__list .what span { font-size: .9375rem; color: var(--muted); }
.planner__list li.is-surgery { background: linear-gradient(90deg, rgba(168,138,92,.12), transparent); }
.planner__list li.is-past { opacity: .5; }
@media (max-width: 560px) { .planner__list li { grid-template-columns: 1fr; gap: .4rem; } }
@media print {
  .planner__input, .toc, .notice, .pager, .closing { display: none !important; }
  .planner__list li { break-inside: avoid; }
}


/* Language switch */
.lang-switch { font-size: .75rem; font-weight: 500; letter-spacing: .14em; color: var(--charcoal); padding: .5rem .2rem; border-bottom: 1px solid transparent; transition: border-color .3s; }
.lang-switch:hover { border-bottom-color: currentColor; }
.has-dark-opener:not(.menu-open) .site-header:not(.is-scrolled) .lang-switch { color: var(--ivory); }
.lang-switch--mobile { display: inline-block; font-size: .9375rem; letter-spacing: .04em; padding: .5rem 0; }
@media (max-width: 1180px) { .nav .lang-switch:not(.lang-switch--mobile) { display: none; } }

/* Spanish overview: regions */
.es-regions { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 5vw, 5rem); border-top: 1px solid var(--line-strong); }
.es-region { display: grid; grid-template-columns: 96px 1fr; gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.es-region .h3 { margin: .3rem 0 .6rem; }
.es-region p { font-size: .9375rem; color: var(--muted); }
.es-region .text-cta { margin-top: .4rem; }
.es-thumb { width: 96px; aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .es-regions { grid-template-columns: 1fr; } }


/* --------------------------------------------------------------------------
   Figure morph between pages (View Transitions)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-group(*.fig) { animation-duration: 0.75s; animation-timing-function: cubic-bezier(0.65, 0, 0.2, 1); }
  ::view-transition-old(*.fig), ::view-transition-new(*.fig) { height: 100%; width: 100%; object-fit: cover; }
  ::view-transition-old(*.fig) { animation: 0.35s var(--ease) both vtFadeOut; }
  ::view-transition-new(*.fig) { animation: 0.75s var(--ease) both vtFadeIn; }
  @keyframes vtFadeOut { to { opacity: 0; } }
  @keyframes vtFadeIn { from { opacity: 0; } }
}

/* --------------------------------------------------------------------------
   Open-now status
   -------------------------------------------------------------------------- */
.open-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: .55rem; vertical-align: middle; position: relative; top: -1px; background: transparent; }
.open-dot.is-open { background: #4f8a5f; box-shadow: 0 0 0 3px rgba(79, 138, 95, .18); }
.open-dot.is-closed { background: #a99c8a; }
.open-status { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; }
.open-status:empty { display: none; }
.open-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a99c8a; flex: none; }
.open-status.is-open::before { background: #4f8a5f; box-shadow: 0 0 0 3px rgba(79, 138, 95, .18); }
.on-dark .open-status.is-open::before { background: #7fbf8f; box-shadow: 0 0 0 3px rgba(127, 191, 143, .2); }
.open-status--lg { font-size: .9375rem; color: var(--charcoal); margin-top: .4rem; }
@media (prefers-reduced-motion: no-preference) {
  .open-dot.is-open, .open-status.is-open::before { animation: openPulse 2.4s ease-in-out infinite; }
}
@keyframes openPulse { 50% { box-shadow: 0 0 0 5px rgba(79, 138, 95, .08); } }

/* --------------------------------------------------------------------------
   Reading progress
   -------------------------------------------------------------------------- */
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--champagne); transform: scaleX(0); transform-origin: left; opacity: 0; transition: opacity .3s; pointer-events: none; }
.read-progress.is-on { opacity: 1; }

/* --------------------------------------------------------------------------
   How arthroscopy works
   -------------------------------------------------------------------------- */
.ar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.2vw, 2rem); }
.ar-stage-wrap { grid-column: 1 / span 6; position: relative; }
.ar-stage.bodymap { position: sticky; top: max(calc(var(--header-h) + 1rem), calc(50vh - min(34vh, 300px))); width: 100%; max-width: 480px; aspect-ratio: 4 / 5; margin-inline: auto; }
.ar-stage .bm-joint, .ar-stage .bm-hl { display: none; }
.ar-stage .bm-svg { -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%); }
.ar-stage .bm-fig { transition: transform 1.4s cubic-bezier(0.65, 0, 0.2, 1); }
.ar-stage[data-step="4"] .bm-fig { transform: translate(0, 0) scale(1) !important; }
.ar-steps { grid-column: 8 / -1; list-style: none; }
.ar-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 2rem 0; }
/* inactive steps recede by colour, not transparency, so they stay legible (WCAG contrast) */
.ar-step .h3, .ar-step p, .ar-step .index { color: var(--muted); transition: color .6s var(--ease); }
.ar-step.is-active .h3 { color: var(--ink); }
.ar-step.is-active p { color: var(--charcoal); }
.ar-step.is-active .index { color: var(--champagne-ink); }
.ar-step:first-child { min-height: 46vh; }
.ar-step:last-child { min-height: 50vh; }
.ar-step .h3 { margin: .6rem 0 .9rem; }
.ar-step p { color: var(--charcoal); max-width: 30em; }

/* layers */
.ar-portal { stroke: var(--champagne); stroke-width: 3; stroke-linecap: round; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s var(--ease-out); transition-delay: calc(var(--i) * 140ms); }
.ar-glow { fill: #fffaf0; opacity: 0; filter: blur(6px); transition: opacity .8s var(--ease); }
.ar-scope__line { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease-out); }
.ar-scope__tip { fill: var(--champagne); opacity: 0; transition: opacity .4s var(--ease) .8s; }
.ar-anchor { fill: var(--champagne); stroke: var(--ivory); stroke-width: .8; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s var(--ease-out); transition-delay: calc(var(--i) * 180ms + 200ms); }
.ar-graft { stroke: var(--champagne); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease-out); }

.ar-stage.is-live .ar-portal { transform: scale(1); }
.ar-stage[data-step="2"] .ar-glow, .ar-stage[data-step="3"] .ar-glow { opacity: .75; }
.ar-stage[data-step="2"] .ar-scope__line, .ar-stage[data-step="3"] .ar-scope__line { stroke-dashoffset: 0; }
.ar-stage[data-step="2"] .ar-scope__tip, .ar-stage[data-step="3"] .ar-scope__tip { opacity: 1; }
.ar-stage[data-step="3"] .ar-anchor, .ar-stage[data-step="4"] .ar-anchor { transform: scale(1); }
.ar-stage[data-step="3"] .ar-graft, .ar-stage[data-step="4"] .ar-graft { stroke-dashoffset: 0; }

@media (max-width: 960px) {
  .ar-stage-wrap { grid-column: 1 / -1; position: sticky; top: calc(var(--header-h) + .5rem); z-index: 2; background: var(--ivory); padding-bottom: .5rem; }
  .ar-stage.bodymap { position: relative; top: 0; max-width: 240px; }
  .ar-steps { grid-column: 1 / -1; }
  .ar-step, .ar-step:first-child, .ar-step:last-child { min-height: 46vh; }
}



/* Recovery timeline: pinned while it plays through as you scroll */
.timeline { position: relative; }
.tl-pin { padding-block: clamp(4rem, 8vw, 6rem); }
.tl-head { row-gap: 1rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.js .timeline .tl-pin { height: calc(100svh + (var(--n) - 1) * 55svh); padding: 0; }
.js .timeline .tl-sticky {
  position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h); box-sizing: border-box; overflow: hidden;
}
.js .timeline .tl-cards { min-height: 13rem; }
.timeline .tl-fill { transition: none; }
@media (max-height: 640px) { .js .timeline .tl-head .c-9-end { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .timeline .tl-pin { height: auto; padding-block: 4rem; }
  .js .timeline .tl-sticky { position: static; height: auto; }
}
@media (max-width: 760px) {
  /* leave room for the fixed Call / Schedule bar */
  .js .timeline .tl-pin { height: calc(100svh - 56px + (var(--n) - 1) * 45svh); }
  .js .timeline .tl-sticky { height: calc(100svh - 56px); padding-top: calc(var(--header-h) + .5rem); }
  .js .timeline .tl-head .c-9-end { display: none; }
  .js .timeline .tl-cards { margin-top: 1.5rem; min-height: 0; }
  .js .timeline .tl-card { padding-top: 1.25rem; }
  .js .timeline .tl-card p:last-child { font-size: .9375rem; }
}


/* Treatments index */
.treat-group { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.2vw, 2rem); row-gap: 1.25rem; padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line-strong); }
.treat-group__head { grid-column: 1 / span 4; }
.treat-group__head .h3 { margin: .5rem 0 .75rem; }
.treat-group__head p { font-size: .9375rem; max-width: 22em; }
.treat-group > .proc-list, .treat-group > .conservative { grid-column: 5 / -1; }
.treat-group .proc-list { grid-template-columns: repeat(2, 1fr); }
.treat-group .proc-list li:not(:nth-child(3n+1)) { border-left: 0; }
.treat-group .proc-list li:nth-child(2n) { border-left: 1px solid var(--line); }
.treat-group .proc-list li a, .treat-group .proc-list li:not(:nth-child(3n+1)) a { padding-left: 0; }
.treat-group .proc-list li:nth-child(2n) a { padding-left: clamp(1rem, 2vw, 2rem); }
.conservative { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(1rem, 2.2vw, 2rem); border-top: 1px solid var(--line-strong); }
.conservative li { padding: 1rem 0 1rem 1.75rem; border-bottom: 1px solid var(--line); position: relative; font-family: var(--serif); font-size: 1.1875rem; color: var(--ink); }
.conservative li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--champagne); }
@media (max-width: 960px) {
  .treat-group__head, .treat-group > .proc-list, .treat-group > .conservative { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .treat-group .proc-list, .conservative { grid-template-columns: 1fr; }
  .treat-group .proc-list li:nth-child(2n) { border-left: 0; }
  .treat-group .proc-list li:nth-child(2n) a { padding-left: 0; }
}
.treat-group .kind { display: none; }
.treat-group > .proc-list, .treat-group > .conservative { border-top: 0; }


/* Home: areas of focus (replaces the training/affiliations tabs, which duplicated Credentials) */
.focus { margin-top: 3rem; }
.focus__title { font-family: var(--sans); font-size: .8125rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); padding-bottom: .9rem; border-bottom: 1px solid var(--line); }

/* Browse & search: each area group carries its figure, intro and link */
.cond-group { padding: 2.5rem 0; align-items: start; }
.cond-group__head { grid-column: 1 / span 4; display: grid; grid-template-columns: 88px 1fr; gap: 1.25rem; align-items: start; }
.cond-group__fig.bodymap { width: 88px; aspect-ratio: 4 / 5; }
.cond-group__head .h3 { margin: .3rem 0 .6rem; font-size: var(--step-2); }
.cond-group__head .h3 a:hover { color: var(--slate); }
.cond-group__head p { font-size: .875rem; color: var(--muted); margin-bottom: .5rem; }
.cond-group__head .text-cta { font-size: .8125rem; }
.cond-group ul { grid-column: 6 / -1; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .cond-group__head { grid-column: 1 / -1; margin-bottom: 1rem; }
  .cond-group ul { grid-column: 1 / -1; }
}


/* Slower figure morph when arriving from the Specialties "Browse & search" figures */
@media (prefers-reduced-motion: no-preference) {
  html.vt-slow::view-transition-group(*.fig) { animation-duration: 1.25s; }
  html.vt-slow::view-transition-old(*.fig) { animation-duration: 0.6s; }
  html.vt-slow::view-transition-new(*.fig) { animation-duration: 1.15s; }
}


/* ==========================================================================
   Responsive hardening (audit, Oct 2026)
   Grids whose columns must shrink with the viewport use minmax(0, 1fr) so
   long words or labels can never push a column past the edge.
   ========================================================================== */
@media (max-width: 400px) {
  .site-header .wrap { gap: .75rem; }
  .brand { gap: .55rem; }
  .brand__mark, .site-header.is-scrolled .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: .95rem; }
  .nav { gap: .5rem; }
}
.tl-marks { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.tl-mark__when { overflow-wrap: anywhere; }
.facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div:nth-child(2n) { padding-left: 0; border-left: 0; }
}
.facts dd { overflow-wrap: anywhere; }
.pager { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pager .h3 { overflow-wrap: anywhere; }
@media (max-width: 420px) { .pager .h3 { font-size: 1.375rem; } }
.quotes__btn { flex: none; }

/* Standalone contact links get comfortable tap targets (inline links in sentences are exempt) */
.member__contact a, .directory a, .info-block a, .info-block .big { display: inline-block; padding-block: .45rem; }
.directory li { gap: 0; }


/* Contact: call-to-schedule panel (shown until an online form service is connected) */
.call-panel { padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--paper); border-top: 2px solid var(--champagne); display: grid; gap: 1rem; justify-items: start; }
.call-panel .h3 { margin: 0; }
.call-panel__phone { font-family: var(--serif); font-size: var(--step-4); line-height: 1.05; color: var(--ink); padding-block: .25rem; }
.call-panel__phone:hover { color: var(--slate); }
.call-panel__note { margin-top: .5rem; max-width: 36em; }
.quotes__nav { flex-wrap: wrap; }

.member__photo { width: 88px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 480px) { .member__photo { width: 72px; } }
