/* ==========================================================================
   Ajay Nair Sharma, MD, MBA — Dermatologic & Mohs Surgery
   Warm editorial system: ivory paper, deep ink, restrained burgundy.
   ========================================================================== */

:root {
  /* Palette */
  --ivory: #faf7f1;
  --cream: #f3ece1;
  --paper: #ffffff;
  --ink: #1f1a17;
  --ink-soft: #5b504a;
  --line: #e3d9ca;
  --line-strong: #cdbfac;
  --burgundy: #7a1f2b;
  --burgundy-deep: #5a1520;
  --burgundy-tint: #f4e7e6;
  --on-burgundy: #fffaf5;

  /* Type */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --section: clamp(72px, 10vw, 136px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--burgundy); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--burgundy-deep); }

:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.2; }
h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
h1 em, h2 em { font-style: italic; color: var(--burgundy); }

p { margin: 0 0 1.1em; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--ivory); padding: 10px 16px;
}
.skip-link:focus { top: 12px; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--burgundy); margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--ink-soft); line-height: 1.6; }
.muted { color: var(--ink-soft); }

/* Placeholder marker — remove the element once real content is supplied */
.ph {
  display: inline-block;
  background: #fff6d6; color: #6b4e00;
  border: 1px dashed #c79a00; border-radius: 3px;
  padding: 0 .4em; font-size: .9em; font-family: var(--font-body); font-style: normal;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 1.6em;
  font: 600 .95rem/1 var(--font-body); letter-spacing: .02em;
  text-decoration: none; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--burgundy); color: var(--on-burgundy); }
.btn--primary:hover { background: var(--burgundy-deep); color: var(--on-burgundy); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: var(--ivory); color: var(--burgundy-deep); }
.btn--light:hover { background: var(--paper); color: var(--burgundy-deep); }
.btn--outline-light { border-color: rgba(255, 250, 245, .5); color: var(--on-burgundy); }
.btn--outline-light:hover { border-color: var(--on-burgundy); color: var(--on-burgundy); }

.text-link {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 3px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.text-link:hover { color: var(--burgundy); border-color: var(--burgundy); }
.text-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: .005em; }
.brand__name span { font-weight: 500; color: var(--ink-soft); font-size: .8em; }
.brand__role { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  font-size: .92rem; font-weight: 500; color: var(--ink); text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav__list a:hover { color: var(--burgundy); }
.nav__list a[aria-current="page"] { border-bottom-color: var(--burgundy); color: var(--burgundy); }
.nav .btn { min-height: 44px; padding: 0 1.25em; font-size: .88rem; white-space: nowrap; }
.nav__list a { white-space: nowrap; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: transparent;
  border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__list a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav .btn { margin-top: 20px; min-height: 52px; }
}
@media (max-width: 420px) {
  .brand__name { font-size: 1.22rem; }
  .brand__role { font-size: .6rem; letter-spacing: .14em; }
}

/* Mobile booking bar — the persistent CTA on small screens */
.book-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--ivory); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.book-bar .btn { flex: 1; min-height: 48px; padding: 0 .8em; font-size: .92rem; white-space: nowrap; }
.book-bar .btn--ghost { flex: 0 0 auto; padding: 0 1.1em; }
@media (max-width: 720px) {
  .book-bar { display: flex; }
  body { padding-bottom: 72px; }
}

/* Sections --------------------------------------------------------------- */
.section { padding: var(--section) 0; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--tight { padding: calc(var(--section) * .6) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; }
.section-head--split p { margin: 0; }
@media (max-width: 820px) { .section-head--split { grid-template-columns: 1fr; } }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Home hero -------------------------------------------------------------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 112px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lede { max-width: 34em; margin-bottom: 2.2rem; }
.hero__title { font-size: .95rem; color: var(--ink-soft); border-left: 2px solid var(--burgundy); padding-left: 16px; margin: 0 0 2.4rem; max-width: 30em; }
.hero__title strong { color: var(--ink); font-weight: 600; display: block; }

.portrait { position: relative; margin: 0; }
.portrait__frame {
  position: relative; overflow: hidden;
  border-radius: 999px 999px var(--radius) var(--radius);
  aspect-ratio: 4 / 5; background: var(--cream);
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait__art { position: relative; isolation: isolate; }
.portrait__art::after {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border: 1px solid var(--line-strong); border-radius: 999px 999px var(--radius) var(--radius);
}
.portrait figcaption { margin-top: 30px; font-size: .85rem; color: var(--ink-soft); text-align: center; }
.portrait figcaption strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { order: -1; max-width: 340px; margin: 0 auto; width: 82%; }
}
@media (max-width: 600px) {
  .hero { padding-top: 24px; }
  .hero__portrait { width: 56%; max-width: 230px; margin: 0; }
  .portrait__art::after { inset: 10px -10px -10px 10px; }
  .portrait figcaption { display: none; }
  .hero__grid { gap: 32px; }
}

/* Home hero with moving Boston background -------------------------------- */
.hero-video {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(calc(100vh - var(--header-h)), 880px);
  min-height: min(calc(100svh - var(--header-h)), 880px);
  display: flex; align-items: center;
  background: var(--ink); color: var(--on-burgundy);
}
.hero-video__media { position: absolute; inset: 0; z-index: -2; }
.hero-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; backface-visibility: hidden; }
.hero-video__poster { transform-origin: 62% 42%; animation: drift 24s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
@keyframes drift {
  0%   { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.3) translate3d(-4%, 2.5%, 0); }
}
.hero-video__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(24, 18, 16, .86) 0%, rgba(24, 18, 16, .62) 48%, rgba(60, 16, 24, .28) 100%),
    linear-gradient(0deg, rgba(24, 18, 16, .55) 0%, rgba(24, 18, 16, 0) 40%);
}
.hero-video__grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 6vw, 96px); align-items: center;
  padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(64px, 9vw, 128px);
}
.hero-video h1 { color: var(--on-burgundy); margin-bottom: .4em; font-size: clamp(2.4rem, 4.4vw, 3.9rem); }
.hero-video h1 em { color: #f1c9c4; }
.hero-video .eyebrow { color: #f1c9c4; }
.hero-video .lede { color: rgba(255, 250, 245, .86); max-width: 34em; margin-bottom: 2rem; }
.hero-video .hero__title { color: rgba(255, 250, 245, .72); border-left-color: #f1c9c4; }
.hero-video .hero__title strong { color: var(--on-burgundy); }
.hero-video__portrait { margin: 0; justify-self: end; width: 100%; max-width: 380px; }
.hero-video__frame {
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream);
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: 0 0 0 1px rgba(255, 250, 245, .35), 0 0 0 12px rgba(255, 250, 245, .08), 0 30px 60px rgba(0, 0, 0, .35);
}
.hero-video__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-video__portrait figcaption { margin-top: 22px; text-align: center; font-size: 1.02rem; color: rgba(255, 250, 245, .85); text-shadow: 0 1px 12px rgba(0, 0, 0, .7), 0 0 2px rgba(0, 0, 0, .6); }
.hero-video__portrait figcaption strong { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.2; margin-bottom: 4px; font-weight: 600; color: var(--on-burgundy); }
@media (min-width: 1180px) { .hero-video__portrait figcaption { margin-left: -60px; margin-right: -60px; white-space: nowrap; } }
.hero-video__toggle {
  position: absolute; right: var(--gutter); bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(24, 18, 16, .35); color: var(--on-burgundy); border: 1px solid rgba(255, 250, 245, .4);
  transition: background .2s var(--ease);
}
.hero-video__toggle:hover { background: rgba(24, 18, 16, .6); }
.hero-video__toggle svg { width: 16px; height: 16px; }
.hero-video__toggle .i-play, .hero-video.is-paused .hero-video__toggle .i-pause { display: none; }
.hero-video.is-paused .hero-video__toggle .i-play { display: block; }
.hero-video.is-paused .hero-video__poster { animation-play-state: paused; }
.hero-video :focus-visible { outline-color: var(--on-burgundy); }

@media (max-width: 860px) {
  .hero-video { min-height: 0; align-items: stretch; }
  .hero-video__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; padding-bottom: 80px; }
  .hero-video__scrim { background: linear-gradient(180deg, rgba(24, 18, 16, .55) 0%, rgba(24, 18, 16, .8) 55%, rgba(24, 18, 16, .9) 100%); }
  .hero-video__portrait { order: -1; justify-self: start; display: flex; align-items: center; gap: 18px; max-width: none; }
  .hero-video__frame { width: 96px; flex: none; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 250, 245, .4), 0 0 0 6px rgba(255, 250, 245, .08); }
  .hero-video__portrait figcaption { margin: 0; text-align: left; }
  .hero-video__portrait figcaption { font-size: .95rem; }
  .hero-video__portrait figcaption strong { font-size: 1.4rem; }
  .hero-video__toggle { bottom: 16px; }
}
@media (max-width: 600px) {
  .hero-video .btn-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video__poster { animation: none; }
}

/* Credential strip ------------------------------------------------------- */
.creds { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.creds__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.creds__list li { padding: 32px 24px; border-left: 1px solid var(--line); }
.creds__list li:first-child { border-left: 0; padding-left: 0; }
.creds__k { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; color: var(--ink); margin-bottom: 6px; }
.creds__v { font-size: .86rem; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 900px) {
  .creds__list { grid-template-columns: 1fr 1fr; }
  .creds__list li { padding: 24px 20px; border-left: 0; border-top: 1px solid var(--line); }
  .creds__list li:nth-child(-n+2) { border-top: 0; }
  .creds__list li:nth-child(odd) { padding-left: 0; }
  .creds__list li:nth-child(even) { border-left: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .creds__list { grid-template-columns: 1fr; }
  .creds__list li { padding: 20px 0 !important; border-left: 0 !important; border-top: 1px solid var(--line) !important; }
  .creds__list li:first-child { border-top: 0 !important; }
}

/* Principles (the one-liners) ------------------------------------------- */
.principles { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.principles li {
  counter-increment: p;
  display: grid; grid-template-columns: 80px 1fr 1fr; gap: 24px 48px; align-items: baseline;
  padding: 36px 0; border-top: 1px solid var(--line);
}
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles li::before { content: "0" counter(p); font-family: var(--font-display); font-size: 1.1rem; color: var(--burgundy); }
.principles h3 { margin: 0; font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.principles p { margin: 0; color: var(--ink-soft); }
@media (max-width: 820px) {
  .principles li { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
}

/* Practice cards --------------------------------------------------------- */
.practice { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px); }
.practice__card {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.practice__card:hover { border-color: var(--line-strong); color: var(--ink); }
.practice__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); }
.practice__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.practice__card:hover .practice__media img { transform: scale(1.03); }
.practice__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; flex: 1; }
.practice__body p { color: var(--ink-soft); }
.practice__body .text-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px) { .practice { grid-template-columns: 1fr; } }

/* Feature (image + text) ------------------------------------------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.feature--reverse .feature__media { order: 2; }
.feature__media { margin: 0; }
.feature__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.feature__media figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: 12px; }
.feature__media--wide img { aspect-ratio: 4 / 3; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
}

blockquote.pull {
  margin: 0; font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.25; font-style: italic;
  color: var(--ink);
}
blockquote.pull footer { font-family: var(--font-body); font-style: normal; font-size: .9rem; color: var(--ink-soft); margin-top: 20px; }

/* Full-bleed band -------------------------------------------------------- */
.band { position: relative; color: var(--on-burgundy); background: var(--burgundy-deep); overflow: hidden; }
.band__bg { position: absolute; inset: 0; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; mix-blend-mode: luminosity; }
.band .wrap { position: relative; padding-top: var(--section); padding-bottom: var(--section); }
.band h2 { color: var(--on-burgundy); font-size: clamp(1.9rem, 3.4vw, 3rem); }
@media (min-width: 900px) { .band h2 { white-space: nowrap; } }
.band h2 em { color: #f1c9c4; }
.band p { color: rgba(255, 250, 245, .82); max-width: 36em; }
/* Links (and phone numbers auto-detected by phones) stay light on the dark band */
.band p a, .band p a:hover, .band p a:visited, .band a[x-apple-data-detectors] { color: var(--on-burgundy) !important; text-decoration: underline; text-decoration-color: rgba(255, 250, 245, .5); }
.band .eyebrow { color: #f1c9c4; }

/* Page hero (inner pages) ------------------------------------------------ */
.page-hero { padding: clamp(48px, 7vw, 104px) 0 clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.page-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.page-hero h1 { margin-bottom: .35em; }
.page-hero .lede { max-width: 36em; margin-bottom: 2rem; }
.page-hero__aside { font-size: .95rem; color: var(--ink-soft); border-left: 1px solid var(--line-strong); padding-left: 24px; }
.page-hero__aside p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; } }

.page-image { margin: 0; }
.page-image img { width: 100%; height: clamp(260px, 42vw, 560px); object-fit: cover; }
/* Desktop: show the whole photo at a moderate size instead of a cropped full-width strip */
@media (min-width: 861px) {
  .page-image--fit { max-width: 900px; margin: clamp(40px, 5vw, 72px) auto 0; padding: 0 var(--gutter); }
  .page-image--fit img { height: auto; aspect-ratio: auto; }
}

/* Prose ------------------------------------------------------------------ */
.prose { max-width: 40em; }
.prose p { color: var(--ink); }
.prose h2 { margin-top: 1.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--burgundy); }

.two-col { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 6vw, 96px); }
.two-col__label { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.two-col__label h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } .two-col__label { position: static; } }

/* Steps ------------------------------------------------------------------ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; padding: 28px 28px 0 0; }
.steps li::before {
  content: counter(s); display: block; font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--burgundy); margin-bottom: 18px;
}
.steps h3 { font-size: 1.35rem; }
.steps p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } .steps li { padding-right: 0; } }

/* Procedure groups ------------------------------------------------------- */
.proc-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 80px); }
.proc-group { padding: 40px 0; border-top: 1px solid var(--line); }
.proc-group h3 { margin-bottom: .3em; }
.proc-group > p { color: var(--ink-soft); margin-bottom: 1.4em; }
.proc-list { list-style: none; margin: 0; padding: 0; }
.proc-list li { padding: 14px 0; border-top: 1px dashed var(--line); }
.proc-list li:first-child { border-top: 0; padding-top: 0; }
.proc-list strong { display: block; font-weight: 600; }
.proc-list span { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 820px) { .proc-groups { grid-template-columns: 1fr; } }

/* Callout ---------------------------------------------------------------- */
.callout { background: var(--burgundy-tint); border-left: 3px solid var(--burgundy); padding: 24px 28px; }
.callout p:last-child { margin-bottom: 0; }

/* FAQ -------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.5px solid var(--burgundy); border-bottom: 1.5px solid var(--burgundy);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 24px; color: var(--ink-soft); max-width: 44em; }

/* Timeline (About) ------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 8px 32px; padding: 24px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); font-weight: 600; padding-top: 8px; }
.timeline h3 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); margin-bottom: .2em; }
.timeline p { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.55; }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; } }

.cert { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.cert { flex-wrap: nowrap; }
.cert img { width: 200px; flex: none; mix-blend-mode: multiply; }
.cert .prose { flex: 1; }
@media (max-width: 600px) { .cert { flex-wrap: wrap; } .cert img { width: 170px; } }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 14px 0; border-top: 1px solid var(--line); }
.list-plain li:last-child { border-bottom: 1px solid var(--line); }
.list-plain strong { font-weight: 600; }
.list-plain span { display: block; color: var(--ink-soft); font-size: .94rem; }

.pubs { list-style: none; margin: 0; padding: 0; counter-reset: pub; }
.pubs li { counter-increment: pub; padding: 20px 0 20px 48px; border-top: 1px solid var(--line); position: relative; }
.pubs li::before { content: counter(pub, decimal-leading-zero); position: absolute; left: 0; top: 22px; font-family: var(--font-display); color: var(--burgundy); font-size: 1.1rem; }
.pubs cite { display: block; font-style: normal; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.3; color: var(--ink); margin-bottom: 4px; }
.pubs span { color: var(--ink-soft); font-size: .92rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure:last-child { grid-column: 1 / -1; } .gallery figure:last-child img { aspect-ratio: 4 / 3; } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.grid-3 h3 { font-size: 1.5rem; }
.grid-3 p { color: var(--ink-soft); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

/* Languages band (About) ------------------------------------------------- */
.lang { background: var(--burgundy-deep); color: var(--on-burgundy); padding: clamp(56px, 8vw, 96px) 0; }
.lang__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(40px, 6vw, 96px); align-items: center; }
.lang h2 { color: var(--on-burgundy); margin: 0; }
.lang h2 em { color: #f1c9c4; }
.lang .eyebrow { color: #f1c9c4; }
.lang p { color: rgba(255, 250, 245, .86); margin: 0; }
.lang .lang__es { font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.2; color: var(--on-burgundy); margin-bottom: 14px; }
@media (max-width: 760px) { .lang__grid { grid-template-columns: 1fr; } }

/* Contact ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; row-gap: 0; }
  /* Phone first, then the form, then location and referral details */
  .contact-info { display: contents; }
  .contact-block { order: 3; }
  .contact-block--phone { order: 1; padding-bottom: 32px; }
  .contact-grid .form-card { order: 2; margin-bottom: 40px; }
}
#request { scroll-margin-top: calc(var(--header-h) + 16px); }

.contact-block { padding: 28px 0; border-top: 1px solid var(--line); }
.contact-block:first-child { border-top: 0; padding-top: 0; }
.contact-block h2 { font-size: 1.6rem; margin-bottom: .4em; }
.contact-block p { margin: 0 0 .4em; }
.contact-phone { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; color: var(--burgundy); text-decoration: none; display: inline-block; margin-bottom: 6px; }
.contact-phone:hover { color: var(--burgundy-deep); }

.form-card { background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); }
.form-card h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--ivory); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--burgundy); background: var(--paper); box-shadow: 0 0 0 3px rgba(122, 31, 43, .15); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.radio-row label, .check label { display: inline-flex; align-items: center; gap: 10px; font-weight: 400; font-size: .98rem; cursor: pointer; min-height: 44px; margin: 0; }
.radio-row input, .check input { width: 20px; height: 20px; accent-color: var(--burgundy); margin: 0; flex: none; }
.check label { align-items: flex-start; min-height: 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.check input { margin-top: 2px; }
.field-error { display: none; color: #a1121f; font-size: .85rem; margin-top: 6px; }
.field.has-error input, .field.has-error select { border-color: #a1121f; }
.field.has-error .field-error { display: block; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: 16px; }
.hidden { position: absolute !important; left: -9999px !important; }
.form-success { display: none; }
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-success { display: block; }

.map-link { display: block; position: relative; margin-top: 8px; }
.map-link img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* Closing CTA ------------------------------------------------------------ */
.cta-close { text-align: center; }
.cta-close h2 { max-width: 14em; margin-left: auto; margin-right: auto; }
.cta-close p { max-width: 34em; margin: 0 auto 2rem; color: var(--ink-soft); }
.cta-close .btn-row { justify-content: center; }

/* Affiliations (above footer, every page) -------------------------------- */
.affiliations { background: var(--paper); border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 80px) 0; }
.affiliations__title {
  font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--burgundy); text-align: center; margin-bottom: clamp(28px, 4vw, 44px);
}
.affiliations__groups { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.affiliations__group { padding: 0 clamp(16px, 3vw, 40px); }
.affiliations__group + .affiliations__group { border-left: 1px solid var(--line); }
.affiliations__group h3 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--ink-soft);
  text-align: center; margin-bottom: 24px;
}
.affiliations__logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 36px; }
.affiliations__logos img {
  height: 46px; width: auto; max-width: 170px; object-fit: contain;
  transition: transform .3s var(--ease);
}
.affiliations__logos img[src*="acms"], .affiliations__logos img[src*="aad"], .affiliations__logos img[src*="asds"] { height: 54px; }
@media (max-width: 860px) {
  .affiliations__groups { grid-template-columns: 1fr; gap: 40px; }
  .affiliations__group + .affiliations__group { border-left: 0; border-top: 1px solid var(--line); padding-top: 40px; }
  .affiliations__logos { gap: 20px 28px; }
  .affiliations__logos img { height: 38px; max-width: 140px; }
  .affiliations__logos img[src*="acms"], .affiliations__logos img[src*="aad"], .affiliations__logos img[src*="asds"] { height: 46px; }
}

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(250, 247, 241, .78); padding: clamp(56px, 8vw, 96px) 0 32px; font-size: .94rem; }
.site-footer a { color: rgba(250, 247, 241, .9); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand__name { color: var(--ivory); font-size: 1.6rem; }
.footer-brand .brand__name span { color: rgba(250, 247, 241, .6); }
.footer-brand p { margin-top: 14px; max-width: 22em; }
.site-footer h2 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(250, 247, 241, .55); font-weight: 600; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .btn { margin-top: 12px; }
.site-footer .btn--light, .site-footer .btn--light:hover { color: var(--burgundy-deep); text-decoration: none; }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(250, 247, 241, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: .8rem; color: rgba(250, 247, 241, .55); }
.footer-legal p { margin: 0; max-width: 60em; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Motion ----------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal,
.hero .reveal,
.page-hero .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
