/* Metropolitan Clinical Research Center
   Reference lock: Letters (look) + 2.AG (labels, specimen photos). See ../SPEC.md section 2. */

@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("/fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("/fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #131A2D;
  --ink-hover: #232E4E;
  --charcoal: #565C6B;
  --slate: #6B7180;
  --instrument: #2E4392;
  --paper: #FFFFFF;
  --cloud: #F4F6FA;
  --hair: #E4E8EF;
  --hair-strong: #BEBECC;
  --error: #B42318;
  --sky: linear-gradient(180deg, #2F537D 0%, #3A638F 38%, #456F9B 70%, #4D76A2 100%);

  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-input: 12px; --r-card: 18px; --r-panel: 32px; --r-pill: 100px;
  --shadow-card: 0 17px 37px rgba(16,55,132,.03), 0 67px 67px rgba(16,55,132,.03), 0 150px 90px rgba(16,55,132,.02);
  --shadow-btn: 0 1px 2px rgba(36,36,40,.10), 0 3px 3px rgba(36,36,40,.09), 0 6px 4px rgba(36,36,40,.05), 0 11px 4px rgba(36,36,40,.01);

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 112px);
  --card-pad: clamp(28px, 4vw, 48px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 18px/1.55 var(--body); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; color: var(--ink); text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 3px solid var(--instrument); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { max-width: 1040px; }

/* ---------- type ---------- */
.label {
  display: block; font: 600 13px/1.3 var(--body); letter-spacing: .10em; text-transform: uppercase; color: var(--charcoal);
}
.h-display { font-family: var(--serif); font-weight: 700; font-size: clamp(46px, 7.4vw, 84px); line-height: 1.02; letter-spacing: -0.01em; }
.h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 4.4vw, 48px); line-height: 1.1; letter-spacing: 0; }
.h3 { font-size: clamp(25px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.03em; }
.h4 { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; }
.lede { font-size: clamp(19px, 1.6vw, 21px); line-height: 1.5; color: #2E3446; }
.muted { color: var(--charcoal); }
.small { font-size: 16px; line-height: 1.5; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: var(--r-pill);
  font: 600 17px/1 var(--display); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  border: 1.5px solid var(--ink); cursor: pointer;
  transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-fill { background: var(--ink); color: #fff; box-shadow: var(--shadow-btn); }
.btn-fill:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(19,26,45,.06); }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: 16px; }
.text-link { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--hair-strong); }
.text-link:hover { text-decoration-color: var(--ink); }

/* ---------- icons ---------- */
.ic { width: 24px; height: 24px; color: var(--instrument); flex: none; }
.ic-sm { width: 20px; height: 20px; }

/* ---------- tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px;
  border: 1px solid var(--hair); border-radius: var(--r-pill); background: var(--paper);
  font: 600 13px/1 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--instrument); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color .2s ease-out, border-color .2s ease-out;
}
.site-header.is-solid { background: rgba(255,255,255,.96); border-bottom-color: var(--hair); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 58px; width: auto; }
.brand-logo-white { display: none; }
.nav { margin-inline: auto; }
.nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav a, .nav .nav-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill);
  font: 500 16px/1 var(--body); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav .nav-toggle:hover, .nav .nav-toggle[aria-expanded="true"] { background: rgba(19,26,45,.06); }
.nav a[aria-current="page"] { box-shadow: inset 0 0 0 1px var(--ink); }
.nav .nav-toggle svg { width: 14px; height: 14px; transition: transform .15s ease-out; }
.nav .nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-sub { position: relative; }
.sub {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); min-width: 240px;
  list-style: none; padding: 8px; background: var(--paper); border-radius: var(--r-card);
  box-shadow: 0 0 0 1px var(--hair), 0 18px 48px rgba(16,55,132,.10);
}
.sub[hidden] { display: none; }
.sub a { display: flex; width: 100%; border-radius: 12px; padding: 0 14px; min-height: 48px; }
.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font: 600 16px/1 var(--display); text-decoration: none; white-space: nowrap; }
.header-phone .ic { width: 20px; height: 20px; }
.menu-btn, .icon-btn {
  display: none; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: rgba(255,255,255,.7);
  align-items: center; justify-content: center; cursor: pointer; text-decoration: none; color: var(--ink);
}
.menu-btn svg, .icon-btn svg { width: 22px; height: 22px; }

/* language widget (GTranslate renders a <select class="gt_selector">) */
.lang { position: relative; display: flex; align-items: center; }
.lang .gt_selector, .lang select {
  appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 38px 0 16px;
  border: 1px solid rgba(19,26,45,.18); border-radius: var(--r-pill); background: rgba(255,255,255,.75);
  font: 500 15px/1 var(--body); color: var(--ink); cursor: pointer; max-width: 150px;
}
.lang::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.lang-fallback { min-height: 44px; display: inline-flex; align-items: center; padding: 0 38px 0 16px; border: 1px solid rgba(19,26,45,.18); border-radius: var(--r-pill); font: 500 15px/1 var(--body); background: rgba(255,255,255,.75); }

/* The homepage header sits over the hero until scroll or an open mega menu makes it solid. */
body:not(.inner-page) .site-header:not(.is-solid):not(.menu-open) { color: #fff; }
body:not(.inner-page) .site-header:not(.is-solid):not(.menu-open) .brand-logo-color { display: none; }
body:not(.inner-page) .site-header:not(.is-solid):not(.menu-open) .brand-logo-white { display: block; }
body:not(.inner-page) .site-header:not(.is-solid):not(.menu-open) .nav a,
body:not(.inner-page) .site-header:not(.is-solid):not(.menu-open) .nav .nav-toggle,
body:not(.inner-page) .site-header:not(.is-solid):not(.menu-open) .header-phone { color: #fff; }
body:not(.inner-page) .site-header:not(.is-solid):not(.menu-open) .nav a:hover,
body:not(.inner-page) .site-header:not(.is-solid):not(.menu-open) .nav .nav-toggle:hover { background: rgba(255,255,255,.14); }
body:not(.inner-page) .site-header:not(.is-solid):not(.menu-open) .nav a[aria-current="page"] { box-shadow: inset 0 0 0 1px #fff; }
body:not(.inner-page) .site-header:not(.is-solid):not(.menu-open) .header-actions > .btn-fill { background: #fff; border-color: #fff; color: var(--ink); box-shadow: none; }
body:not(.inner-page) .site-header:not(.is-solid):not(.menu-open) .lang .gt_selector,
body:not(.inner-page) .site-header:not(.is-solid):not(.menu-open) .lang select,
body:not(.inner-page) .site-header:not(.is-solid):not(.menu-open) .lang-fallback { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.12); }
body:not(.inner-page) .site-header:not(.is-solid):not(.menu-open) .lang option { color: var(--ink); background: #fff; }
body:not(.inner-page) .site-header:not(.is-solid):not(.menu-open) .lang::after { border-color: #fff; }
body:not(.inner-page) .site-header:not(.is-solid):not(.menu-open) .menu-btn,
body:not(.inner-page) .site-header:not(.is-solid):not(.menu-open) .icon-btn { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.10); }
body:not(.inner-page) .site-header:not(.is-solid):not(.menu-open) :focus-visible { outline-color: #fff; }

/* mobile menu (native <dialog>) */
.mobile-menu { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.mobile-menu::backdrop { background: rgba(19,26,45,.4); }
.mobile-menu .mm-top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding-inline: var(--gutter); border-bottom: 1px solid var(--hair); }
.mobile-menu nav { padding: 12px var(--gutter) 32px; }
.mobile-menu ul { list-style: none; }
.mobile-menu li a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; border-bottom: 1px solid var(--hair); font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.mobile-menu .mm-group { margin-top: 20px; }
.mobile-menu .mm-group .label { margin: 8px 0 4px; }
.mobile-menu .mm-group li a { font: 500 19px/1.2 var(--body); min-height: 56px; }
.mobile-menu .mm-cta { display: grid; gap: 12px; margin-top: 28px; }
.mobile-menu .mm-cta .btn { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  width: calc(100% - 24px); margin: calc(-1 * var(--header-h)) 12px 0;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(34px, 5vw, 58px);
  border-radius: 28px; background: var(--sky); text-align: center;
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -2; width: min(78vw, 980px); aspect-ratio: 1; border-radius: 50%;
  opacity: .24; pointer-events: none; will-change: transform;
}
.hero::before { left: -28%; top: 58%; background: radial-gradient(circle, rgba(255,255,255,.82) 0%, rgba(255,255,255,.22) 38%, transparent 70%); animation: hero-blob-a 38s cubic-bezier(.4,0,.2,1) infinite alternate; }
.hero::after { right: -30%; top: 62%; background: radial-gradient(circle, rgba(196,224,248,.9) 0%, rgba(255,255,255,.18) 40%, transparent 72%); animation: hero-blob-b 44s cubic-bezier(.4,0,.2,1) infinite alternate; }
.hero-specks {
  position: absolute; z-index: -1; inset: -20px 0 0; pointer-events: none; opacity: .86; will-change: transform, opacity;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0 48%, #000 65%);
  mask-image: linear-gradient(180deg, transparent 0 48%, #000 65%);
  background-image:
    radial-gradient(circle at 3% 9%, rgba(255,255,255,.42) 0 1px, transparent 1.5px),
    radial-gradient(circle at 8% 31%, rgba(255,255,255,.31) 0 1px, transparent 1.5px),
    radial-gradient(circle at 12% 71%, rgba(255,255,255,.48) 0 1.5px, transparent 2px),
    radial-gradient(circle at 16% 47%, rgba(255,255,255,.28) 0 1px, transparent 1.5px),
    radial-gradient(circle at 19% 18%, rgba(255,255,255,.54) 0 1px, transparent 1.5px),
    radial-gradient(circle at 22% 86%, rgba(255,255,255,.34) 0 1px, transparent 1.5px),
    radial-gradient(circle at 26% 57%, rgba(255,255,255,.46) 0 1.5px, transparent 2px),
    radial-gradient(circle at 29% 26%, rgba(255,255,255,.27) 0 1px, transparent 1.5px),
    radial-gradient(circle at 33% 78%, rgba(255,255,255,.58) 0 1px, transparent 1.5px),
    radial-gradient(circle at 36% 41%, rgba(255,255,255,.38) 0 1px, transparent 1.5px),
    radial-gradient(circle at 39% 12%, rgba(255,255,255,.32) 0 1.5px, transparent 2px),
    radial-gradient(circle at 42% 64%, rgba(255,255,255,.52) 0 1px, transparent 1.5px),
    radial-gradient(circle at 46% 91%, rgba(255,255,255,.29) 0 1px, transparent 1.5px),
    radial-gradient(circle at 49% 34%, rgba(255,255,255,.43) 0 1.5px, transparent 2px),
    radial-gradient(circle at 53% 6%, rgba(255,255,255,.57) 0 1px, transparent 1.5px),
    radial-gradient(circle at 56% 74%, rgba(255,255,255,.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 59% 48%, rgba(255,255,255,.47) 0 1px, transparent 1.5px),
    radial-gradient(circle at 62% 22%, rgba(255,255,255,.26) 0 1.5px, transparent 2px),
    radial-gradient(circle at 65% 83%, rgba(255,255,255,.51) 0 1px, transparent 1.5px),
    radial-gradient(circle at 68% 55%, rgba(255,255,255,.37) 0 1px, transparent 1.5px),
    radial-gradient(circle at 71% 15%, rgba(255,255,255,.44) 0 1.5px, transparent 2px),
    radial-gradient(circle at 74% 69%, rgba(255,255,255,.30) 0 1px, transparent 1.5px),
    radial-gradient(circle at 77% 38%, rgba(255,255,255,.55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 81% 93%, rgba(255,255,255,.39) 0 1px, transparent 1.5px),
    radial-gradient(circle at 84% 61%, rgba(255,255,255,.25) 0 1.5px, transparent 2px),
    radial-gradient(circle at 87% 29%, rgba(255,255,255,.49) 0 1px, transparent 1.5px),
    radial-gradient(circle at 91% 77%, rgba(255,255,255,.34) 0 1px, transparent 1.5px),
    radial-gradient(circle at 95% 11%, rgba(255,255,255,.59) 0 1.5px, transparent 2px),
    radial-gradient(circle at 6% 58%, rgba(255,255,255,.26) 0 1px, transparent 1.5px),
    radial-gradient(circle at 14% 92%, rgba(255,255,255,.50) 0 1px, transparent 1.5px),
    radial-gradient(circle at 24% 4%, rgba(255,255,255,.36) 0 1.5px, transparent 2px),
    radial-gradient(circle at 31% 52%, rgba(255,255,255,.56) 0 1px, transparent 1.5px),
    radial-gradient(circle at 38% 88%, rgba(255,255,255,.27) 0 1px, transparent 1.5px),
    radial-gradient(circle at 44% 19%, rgba(255,255,255,.45) 0 1px, transparent 1.5px),
    radial-gradient(circle at 51% 59%, rgba(255,255,255,.33) 0 1.5px, transparent 2px),
    radial-gradient(circle at 58% 96%, rgba(255,255,255,.53) 0 1px, transparent 1.5px),
    radial-gradient(circle at 64% 36%, rgba(255,255,255,.29) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 72%, rgba(255,255,255,.41) 0 1.5px, transparent 2px),
    radial-gradient(circle at 76% 7%, rgba(255,255,255,.60) 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 45%, rgba(255,255,255,.32) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 88%, rgba(255,255,255,.47) 0 1px, transparent 1.5px),
    radial-gradient(circle at 97% 53%, rgba(255,255,255,.28) 0 1.5px, transparent 2px),
    radial-gradient(circle at 10% 39%, rgba(255,255,255,.52) 0 1px, transparent 1.5px),
    radial-gradient(circle at 28% 67%, rgba(255,255,255,.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 47% 81%, rgba(255,255,255,.49) 0 1.5px, transparent 2px),
    radial-gradient(circle at 66% 3%, rgba(255,255,255,.31) 0 1px, transparent 1.5px),
    radial-gradient(circle at 79% 24%, rgba(255,255,255,.54) 0 1px, transparent 1.5px),
    radial-gradient(circle at 93% 66%, rgba(255,255,255,.38) 0 1.5px, transparent 2px);
  animation: hero-specks-drift 42s cubic-bezier(.4,0,.2,1) infinite alternate, hero-specks-twinkle 13s cubic-bezier(.4,0,.2,1) infinite alternate;
}
@keyframes hero-blob-a { from { transform: translate3d(-2%, -1%, 0) scale(.98); } to { transform: translate3d(13%, 9%, 0) scale(1.08); } }
@keyframes hero-blob-b { from { transform: translate3d(3%, 2%, 0) scale(1.02); } to { transform: translate3d(-12%, -8%, 0) scale(.94); } }
@keyframes hero-specks-drift { from { transform: translate3d(0, 16px, 0); } to { transform: translate3d(0, -20px, 0); } }
@keyframes hero-specks-twinkle { from { opacity: .72; } 52% { opacity: 1; } to { opacity: .82; } }
.hero .wrap { position: relative; z-index: 1; }
.hero .tag { background: rgba(255,255,255,.9); border-color: transparent; text-decoration: none; white-space: normal; line-height: 1.3; padding-block: 8px; max-width: 100%; }
.hero .tag:hover { background: #fff; }
.hero h1 { margin: 26px auto 22px; max-width: 15ch; color: #fff; text-shadow: 0 2px 18px rgba(19,26,45,.12); }
.hero .lede { max-width: 54ch; margin-inline: auto; color: #fff; font-size: clamp(20px, 1.65vw, 21px); font-weight: 500; }
.hero .btn-fill { background: #fff; border-color: #fff; color: var(--ink); box-shadow: 0 8px 28px rgba(19,26,45,.14); }
.hero .btn-fill:hover { background: #F4F6FA; border-color: #F4F6FA; }
.hero .btn-ghost { border-color: #fff; color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero :focus-visible { outline-color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero-photos { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(48px, 6vw, 72px); align-items: end; }
.hero-photos .specimen:nth-child(2) { transform: translateY(-28px); }

/* ---------- specimen photo ---------- */
.specimen { margin: 0; background: var(--paper); border-radius: 22px; padding: 10px 10px 0; box-shadow: 0 0 0 1px rgba(19,26,45,.05), var(--shadow-card); text-align: left; }
.specimen .frame { position: relative; overflow: hidden; border-radius: 14px; background: var(--cloud); aspect-ratio: 4 / 3; }
.specimen .frame.r-45 { aspect-ratio: 4 / 5; }
.specimen .frame.r-34 { aspect-ratio: 3 / 4; }
.specimen .frame.r-11 { aspect-ratio: 1 / 1; }
.specimen .frame picture, .specimen .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.specimen figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 13px 6px 14px; font: 600 12.5px/1.3 var(--body); letter-spacing: .10em; text-transform: uppercase; color: var(--charcoal); }
.specimen figcaption span:last-child { color: var(--slate); }

/* ---------- proof strip ---------- */
.home-proof { padding-top: clamp(20px, 3vw, 32px); background: var(--paper); }
.proof { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.proof > div { padding: 26px 22px; border-left: 1px solid var(--hair); }
.proof > div:first-child { border-left: 0; }
.proof dt { font: 600 13px/1.3 var(--body); letter-spacing: .10em; text-transform: uppercase; color: var(--charcoal); order: 2; margin-top: 10px; }
.proof dd { margin: 0; font: 600 clamp(34px, 3.6vw, 46px)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.proof > div { display: flex; flex-direction: column; }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section.alt { background: var(--cloud); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 60px); }
.section-head .h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; color: var(--charcoal); }

.card { background: var(--paper); border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--hair), var(--shadow-card); padding: var(--card-pad); }
.panel { border-radius: var(--r-panel); }

/* two paths */
.paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.paths .card { display: flex; flex-direction: column; gap: 16px; }
.paths .card .h3 { margin-top: 2px; }
.paths .card p { color: var(--charcoal); max-width: 46ch; }
.paths .card .btn { align-self: flex-start; margin-top: auto; }
.paths .card .spacer { flex: 1; min-height: 8px; }
.card-top { display: flex; align-items: center; gap: 12px; }

/* studies */
.studies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.study { display: flex; flex-direction: column; gap: 14px; }
.study .h3 { font-size: clamp(23px, 2.2vw, 26px); }
.study p { color: var(--charcoal); }
.study .study-meta { font: 500 15px/1.4 var(--body); color: var(--slate); }
.study .study-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: auto; padding-top: 10px; }
.studies-foot { text-align: center; margin-top: 36px; color: var(--charcoal); }
.studies-foot a { white-space: nowrap; }

/* research areas */
.areas { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 940px; margin-inline: auto; }
.areas a {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: var(--r-pill);
  border: 1px solid var(--hair); background: var(--paper); font: 500 17px/1 var(--body); text-decoration: none;
  transition: border-color .15s ease-out;
}
.areas a:hover { border-color: var(--ink); }

/* services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service { display: flex; flex-direction: column; }
.service .body { padding: 18px 8px 22px; }
.service .h4 { margin-bottom: 6px; }
.service p { color: var(--charcoal); font-size: 16.5px; line-height: 1.5; }
/* The drawing is capped so its 1.3 stroke lands at ~1.5px at every card width; max-height
   keeps it inside the panel, which .specimen .frame clips. */
.service .frame.art { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 14px; background: var(--cloud); box-shadow: inset 0 0 0 1px var(--hair); }
.service-art { display: block; width: 100%; max-width: 300px; max-height: 100%; height: auto; color: var(--instrument); }
.icon-tile { position: absolute; inset: 0; display: grid; place-items: center; background: var(--paper); border: 1px dashed transparent; }
.icon-tile .ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--hair); background: var(--paper); }
.icon-tile .ring .ic { width: 24px; height: 24px; }
.icon-tile { align-content: center; gap: 14px; }
.icon-tile .label { font-size: 12px; color: var(--slate); }
.frame.tile { box-shadow: inset 0 0 0 1px var(--hair); }
.frame.tile .icon-tile { background: var(--cloud); }

/* steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; }
.step .n { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--instrument); color: var(--instrument); display: grid; place-items: center; font: 600 16px/1 var(--display); }
.step .h4 { margin: 20px 0 8px; }
.step p { color: var(--charcoal); }

/* benefits / risks */
.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.checklist { list-style: none; display: grid; gap: 16px; margin-top: 18px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; color: #2E3446; }
.checklist li .ic { margin-top: 2px; }
.aside-line { text-align: center; margin-top: 36px; font: 600 clamp(20px, 2vw, 23px)/1.35 var(--display); letter-spacing: -0.02em; }

/* team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 340px)); justify-content: center; gap: 24px; }
.person .body { padding: 18px 8px 22px; }
.person .h4 { margin-bottom: 4px; }
.person p { color: var(--charcoal); font-size: 16.5px; }
.center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* mission and restored Metropolitan family */
.mission-panel { display: grid; justify-items: center; gap: 18px; text-align: center; }
.mission-panel p { max-width: 66ch; color: var(--charcoal); }
.family-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.family-card {
  min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding: 28px 22px; border: 1px solid var(--hair); border-radius: var(--r-card); color: var(--ink); text-align: center; text-decoration: none;
  transition: border-color .15s ease-out, transform .15s ease-out;
}
.family-card:hover { border-color: var(--hair-strong); transform: translateY(-2px); }
.family-logo { min-height: 70px; display: grid; place-items: center; }
.family-logo img { width: auto; height: 64px; max-width: 100%; object-fit: contain; }
.family-name { font: 600 15px/1.35 var(--body); color: var(--charcoal); }
.values-title { margin: 12px auto 28px; text-align: center; }
.values-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.values-grid .card { grid-column: span 2; padding: 30px; }
.values-grid .card:nth-child(4) { grid-column: 2 / span 2; }
.values-grid .card p { margin-top: 10px; color: var(--charcoal); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.facts { display: grid; gap: 22px; }
.fact { display: grid; grid-template-columns: 24px 1fr; gap: 14px; }
.fact .ic { margin-top: 3px; }
.fact b { display: block; font: 600 19px/1.35 var(--display); letter-spacing: -0.015em; }
.fact span, .fact a.text-link { color: var(--charcoal); font-size: 17px; }
.facts .specimen { margin-top: 6px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font: 600 16px/1.3 var(--body); color: var(--ink); padding: 0; }
.field .req { color: var(--charcoal); font-weight: 500; }
.field .hint { font-size: 15.5px; line-height: 1.45; color: var(--charcoal); }
.input, .textarea, .select {
  width: 100%; min-height: 56px; padding: 14px 16px; border-radius: var(--r-input);
  border: 1.5px solid var(--slate); background: var(--paper); font-size: 18px; line-height: 1.4;
  transition: border-color .15s ease-out;
}
.textarea { min-height: 132px; resize: vertical; }
.input:hover, .textarea:hover { border-color: var(--ink); }
.input:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(46,67,146,.22); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--error); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px; border-radius: var(--r-pill); border: 1.5px solid var(--slate); font: 500 17px/1 var(--body); background: var(--paper); }
.choice span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--slate); }
.choice input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:checked + span::before { box-shadow: inset 0 0 0 5px var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--instrument); outline-offset: 3px; }
.error-text { display: flex; gap: 8px; align-items: flex-start; color: var(--error); font-size: 15.5px; font-weight: 500; }
.error-text[hidden] { display: none; }
.error-text svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-foot .small { color: var(--charcoal); flex: 1 1 260px; }
.form-status { border-radius: var(--r-input); padding: 16px 18px; font-weight: 500; }
.form-status[hidden] { display: none; }
.form-status.ok { background: var(--cloud); box-shadow: inset 0 0 0 1px var(--hair); }
.form-status.err { background: #FEF3F2; color: var(--error); box-shadow: inset 0 0 0 1px #FECDCA; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding-block: clamp(56px, 7vw, 80px) 36px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer a:focus-visible { outline-color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand img { height: 56px; width: auto; }
.foot-brand p { margin-top: 20px; color: #C9CEDA; font-size: 16.5px; max-width: 34ch; }
.site-footer h2 { font: 600 13px/1.3 var(--body); letter-spacing: .10em; text-transform: uppercase; color: #AEB4C4; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 4px; }
.site-footer li a { display: inline-flex; min-height: 36px; align-items: center; font-size: 16.5px; }
.foot-contact { display: grid; gap: 10px; font-size: 16.5px; color: #C9CEDA; font-style: normal; }
.foot-contact b { color: #fff; font-weight: 600; }
.foot-family { display: flex; align-items: flex-start; gap: 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); }
.foot-family h2 { flex: none; margin: 7px 0 0; }
.site-footer .foot-family ul { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.site-footer .foot-family li a { min-height: 32px; color: #C9CEDA; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: 15px; color: #AEB4C4; }
.foot-credit { color: #AEB4C4; }
.foot-credit a { color: #C9CEDA !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(201,206,218,.4); }
.foot-credit a:hover { text-decoration-color: currentColor; }
.site-footer .foot-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; flex-basis: 100%; }
.foot-legal a { color: #C9CEDA !important; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .header-phone span { display: none; }
  .nav a, .nav .nav-toggle { padding: 0 11px; }
}
@media (max-width: 1040px) {
  .nav, .header-actions .btn, .header-phone { display: none; }
  .menu-btn, .icon-btn { display: inline-flex; }
  .site-header .wrap { justify-content: space-between; }
  .header-actions { margin-left: auto; gap: 10px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service .frame.art { aspect-ratio: 2 / 1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values-grid .card, .values-grid .card:nth-child(4) { grid-column: auto; }
  .values-grid .card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .paths, .studies, .two { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, minmax(0, 340px)); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof > div:nth-child(3) { border-left: 0; }
  .proof > div:nth-child(-n+2) { border-bottom: 1px solid var(--hair); }
  .hero-photos { grid-template-columns: 1fr 1fr; }
  .hero-photos .specimen:first-child { grid-column: 1 / -1; }
  .hero-photos .specimen:nth-child(2) { transform: none; }
}
@media (max-width: 600px) {
  :root { --header-h: 68px; }
  body { font-size: 18px; }
  .lang .gt_selector, .lang select { max-width: 96px; padding: 0 30px 0 12px; font-size: 14px; }
  .lang::after { right: 12px; }
  .header-actions { gap: 6px; }
  .menu-btn, .icon-btn { width: 44px; height: 44px; }
  .brand img { height: 40px; }
  .hero { width: calc(100% - 16px); margin-inline: 8px; border-radius: 20px; padding-top: calc(var(--header-h) + 42px); }
  .hero h1 { font-size: clamp(42px, 14vw, 58px); }
  .hero .cta-row .btn { width: 100%; }
  .hero-photos { grid-template-columns: 1fr; }
  .hero-photos .specimen:nth-child(n+2) { display: none; }
  .service .frame.tile { aspect-ratio: 16 / 7; }
  .service .frame.art { aspect-ratio: auto; }
  .person .frame.r-34 { aspect-ratio: 1 / 1; }
  .services, .team { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-family { display: block; }
  .site-footer .foot-family ul { display: grid; margin-top: 12px; }
  .family-grid, .values-grid { grid-template-columns: 1fr; }
  .values-grid .card:last-child { grid-column: auto; }
  .proof > div { padding: 20px 14px; }
  .form-foot .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Phase 3: white inner-page bands, existing Letters tokens and specimen frames. */
.inner-page .site-header { background: var(--paper); border-bottom-color: var(--hair); }
.page-head { padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); background: var(--paper); text-align: center; border-bottom: 1px solid var(--hair); }
.page-head .h-display { max-width: 20ch; margin: 20px auto 24px; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; overflow-wrap: anywhere; }
.page-head .lede { max-width: 740px; margin-inline: auto; }
.breadcrumb { margin-bottom: 40px; color: var(--charcoal); font-size: 16px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; }
.breadcrumb li + li::before { content: '/'; display: inline-block; margin-right: 8px; color: var(--slate); }
.breadcrumb li { min-width: 0; overflow-wrap: anywhere; }
.inner-page main .btn { max-width: 100%; white-space: normal; line-height: 1.3; padding-block: 12px; text-align: center; }
.inner-page main .tag { white-space: normal; line-height: 1.4; padding-block: 8px; }
.inner-page .service p, .inner-page .person p, .inner-page .fact span, .inner-page .fact a.text-link { font-size: 18px; }
.inner-page .specimen figcaption, .inner-page .icon-tile .label { font-size: 13px; }
.reading { max-width: 720px; margin-inline: auto; }
.prose > * + * { margin-top: 24px; }
.prose p { color: var(--charcoal); }
.callout { display: grid; justify-items: center; gap: 24px; text-align: center; }
.callout p { max-width: 52ch; color: var(--charcoal); }
.form-panel { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--hair-strong); }
.faq summary { padding: 24px 8px; cursor: pointer; font: 600 21px/1.4 var(--display); }
.faq details p { padding: 0 8px 28px; color: var(--charcoal); }
.protocol-list { list-style: none; }
.protocol-list li { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--hair); }
.protocol-list li:first-child { border-top: 1px solid var(--hair); }
.protocol-list .label { margin-top: 12px; }
.protocol-list .text-link { flex: none; }
.study-detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
.study-copy { min-width: 0; }
.study-copy > * + *, .study-block + .study-block { margin-top: 36px; }
.study-copy .tags { margin-bottom: 28px; }
.study-block > * + * { margin-top: 18px; }
.study-block p { color: var(--charcoal); }
.study-sidebar { display: grid; gap: 24px; min-width: 0; }
.study-location > * + *, .phone-panel > * + *, .study-empty > * + * { margin-top: 20px; }
.study-location address { font-style: normal; color: var(--charcoal); }
.study-protocol { overflow-wrap: anywhere; }
.study-empty { text-align: center; max-width: 760px; margin-inline: auto; }
.study-empty p { color: var(--charcoal); }
.specialty-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.specialty-card { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; text-decoration: none; }
.specialty-card p { color: var(--charcoal); }
.specialty-card .text-link { margin-top: auto; }
.specialty-card:hover .text-link { text-decoration-color: var(--ink); }
.condition-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; list-style: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.gallery-open { display: block; border-radius: 14px; }
.gallery-open:focus-visible { outline-offset: 4px; }
.lightbox { width: min(1100px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid var(--hair); border-radius: var(--r-panel); color: var(--ink); background: var(--paper); }
.lightbox::backdrop { background: var(--ink); opacity: .88; }
.lightbox-top, .lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lightbox figure { margin: 20px 0; }
.lightbox figure img { width: 100%; height: min(65dvh, 760px); object-fit: contain; background: var(--cloud); border-radius: var(--r-input); }
.lightbox figcaption { margin-top: 16px; font-size: 18px; }
.consent { display: flex; align-items: flex-start; gap: 12px; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.select:focus-visible { outline: 3px solid var(--instrument); outline-offset: 3px; }
.legal-copy { max-width: 720px; margin-inline: auto; overflow-wrap: anywhere; }
.legal-copy h2 { font-size: clamp(27px, 3.2vw, 34px); line-height: 1.2; margin: 40px 0 18px; }
.legal-copy h3 { font-size: 24px; line-height: 1.3; margin: 28px 0 14px; }
.legal-copy p, .legal-copy ul, .legal-copy ol { margin-bottom: 20px; }
.legal-copy ul, .legal-copy ol { padding-left: 26px; }
.legal-copy li + li { margin-top: 10px; }
.legal-copy .legal-meta { font-size: 16px; color: var(--charcoal); }
.legal-callout, .legal-contact-box { background: var(--cloud); padding: 24px; border-radius: var(--r-card); margin-block: 24px; }
.legal-callout > :last-child, .legal-contact-box > :last-child { margin-bottom: 0; }
.legal-table-wrap { overflow-x: auto; margin-block: 24px; }
.legal-copy table { border-collapse: collapse; width: 100%; font-size: 18px; }
.legal-copy th, .legal-copy td { text-align: left; vertical-align: top; border: 1px solid var(--hair-strong); padding: 12px; }
.legal-copy th { background: var(--cloud); }
@media (max-width: 1040px) {
  .gallery-grid, .specialty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .study-detail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid, .specialty-grid { grid-template-columns: minmax(0, 1fr); }
  .page-head .h-display { max-width: 16ch; }
  .breadcrumb { margin-bottom: 28px; }
  .protocol-list li { flex-direction: column; align-items: flex-start; }
  .lightbox { padding: 16px; border-radius: var(--r-card); }
  .lightbox-controls .btn { padding: 10px 14px; font-size: 16px; }
}

/* ---------- mega menu (desktop) ---------- */
.nav .has-sub { position: static; }
.nav .has-sub.is-current > .nav-toggle { box-shadow: inset 0 0 0 1px var(--ink); }
.site-header.menu-open { background: var(--paper); border-bottom-color: var(--hair); }
.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
  background: var(--paper); border-top: 1px solid var(--hair);
  box-shadow: 0 24px 48px rgba(16,55,132,.10), 0 2px 6px rgba(16,55,132,.04);
  border-radius: 0 0 var(--r-panel) var(--r-panel);
  animation: mega-in .16s ease-out;
}
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega-scrim { position: fixed; inset: var(--header-h) 0 0 0; background: rgba(19,26,45,.18); z-index: 40; }
.mega-inner { display: grid; gap: 28px; padding: 28px 0 32px; }
.mega-inner.mega-2 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.mega-inner.mega-grid { grid-template-columns: 1fr; }
.mega-main > .label { margin: 4px 0 12px 14px; }
.mega-list { list-style: none; display: grid; gap: 4px; }
.mega-2 .mega-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-grid .mega-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nav .mega-link {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  min-height: 0; padding: 12px 14px; border-radius: 14px; white-space: normal; font: inherit;
}
.nav .mega-link:hover { background: var(--cloud); }
.nav .mega-link[aria-current="page"] { box-shadow: none; background: var(--cloud); }
.mega-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--hair); background: var(--paper); }
.mega-ic .ic { width: 22px; height: 22px; }
.mega-text { display: grid; gap: 3px; }
.mega-title { font: 600 17px/1.25 var(--display); letter-spacing: -0.015em; color: var(--ink); }
.mega-desc { font: 400 15px/1.4 var(--body); color: var(--charcoal); }
.nav .mega-all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 10px 0 0 14px; padding: 0; font: 600 16px/1 var(--display); color: var(--ink); text-decoration: underline; text-decoration-color: var(--hair-strong); text-underline-offset: 4px; }
.nav .mega-all:hover { background: none; text-decoration-color: var(--ink); }
.mega-feature { background: var(--cloud); border-radius: var(--r-card); padding: 26px; display: flex; flex-direction: column; gap: 10px; align-self: stretch; }
.mega-feature-title { font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.mega-feature-text { font-size: 16px; line-height: 1.5; color: var(--charcoal); }
.mega-feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: auto; padding-top: 8px; }
.nav .mega-feature .btn { display: inline-flex; min-height: 46px; padding: 0 20px; border-radius: var(--r-pill); font: 600 16px/1 var(--display); color: #fff; background: var(--ink); }
.nav .mega-feature .btn:hover { background: var(--ink-hover); }
.nav .mega-feature .text-link { display: inline; min-height: 0; padding: 0; font-weight: 600; text-decoration: underline; }
.nav .mega-feature .text-link:hover { background: none; }
.mega-photo { position: relative; aspect-ratio: 16 / 7; overflow: hidden; border-radius: 12px; }
.mega-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1240px) { .mega-grid .mega-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- mobile menu accordions ---------- */
.mobile-menu .mm-list > li > a.mm-home,
.mm-acc summary { display: flex; align-items: center; justify-content: space-between; min-height: 64px; border-bottom: 1px solid var(--hair); font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; text-decoration: none; cursor: pointer; list-style: none; }
.mm-acc summary::-webkit-details-marker { display: none; }
.mm-acc summary .ic { transition: transform .15s ease-out; }
.mm-acc[open] summary .ic { transform: rotate(180deg); }
.mm-acc ul { list-style: none; padding: 6px 0 12px; border-bottom: 1px solid var(--hair); }
.mobile-menu .mm-acc li a { min-height: 56px; border-bottom: 0; padding: 10px 4px 10px 14px; font: 500 18px/1.3 var(--body); gap: 12px; border-radius: 12px; }
.mobile-menu .mm-acc li a[aria-current="page"] { background: var(--cloud); }
.mobile-menu .mm-acc li a small { display: block; margin-top: 3px; font-size: 15px; color: var(--charcoal); }
.mobile-menu .mm-acc li a.mm-all { font-weight: 600; }
.mm-hours { margin-top: 20px; font-size: 16px; color: var(--charcoal); text-align: center; }

/* phone fallback while the form handler is not connected */
.phone-fallback { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.phone-fallback .muted { max-width: 44ch; }
.phone-fallback-btn { margin-top: 6px; }
.phone-fallback-facts { list-style: none; display: grid; gap: 12px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--hair); width: 100%; }
.phone-fallback-facts li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--charcoal); font-size: 17px; }
@media (max-width: 600px) { .phone-fallback-btn { width: 100%; white-space: normal; } }

/* Fonts/images handoff: full drawings in token-based frames, no new photo treatment. */
.page-head-split, .image-led { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; text-align: left; }
.page-head-copy { min-width: 0; }
.page-head-split .h-display, .page-head-split .lede { margin-inline: 0; }
.illus, .page-head-photo { position: relative; aspect-ratio: 16 / 10; margin: 0; overflow: hidden; border-radius: var(--r-panel); background: var(--cloud); box-shadow: var(--shadow-card); }
.illus picture, .page-head-photo picture, .illus img, .page-head-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.illus-thumb { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; background: var(--cloud); }
.illus-thumb picture, .illus-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.study-thumb { aspect-ratio: 16 / 9; margin-bottom: 24px; }
.step .illus-thumb { margin-bottom: 24px; }
.image-led .section-head { text-align: left; margin-bottom: 24px; }
.image-led .prose { min-width: 0; }
.participation-steps { padding-left: 26px; }
.participation-steps li + li { margin-top: 18px; }
@media (max-width: 860px) {
  .page-head-split, .image-led { grid-template-columns: minmax(0, 1fr); }
  .page-head-split .illus, .page-head-photo { width: 100%; }
  .step .illus-thumb { max-width: 347px; margin-inline: auto; }
}

/* Four participation cards fit in two balanced rows before stacking on phones. */
.participation-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 0; }
.participation-steps li + li { margin-top: 0; }
@media (max-width: 860px) {
  .participation-steps { grid-template-columns: minmax(0, 1fr); }
}

/* the Tamarac Senior Center mark is square; give it the same visual weight as the wide logos */
.family-logo { min-height: 110px; }
.family-logo img[src*="family-tsc"] { height: 104px; width: auto; }

body:not(.inner-page) .site-header:not(.is-solid):not(.menu-open) .header-phone .ic { color: #fff; }
