/* ==========================================================================
   New Haven Specialist Hospital
   Editorial · Royal navy / mist / lime · Lagos
   ========================================================================== */

:root {
  /* Palette — drawn from the logo: deep royal blue shield + lime green wordmark */
  --navy:         #2e3a87;
  --navy-deep:    #1f2867;
  --navy-ink:     #131c4d;
  --mist:         #f0f2f5;
  --mist-2:       #e3e7ec;
  --mist-3:       #cdd3dc;
  --green:        #8cc63f;
  --green-deep:   #5e9518;
  --green-soft:   #b6dd7d;
  --ink:          #14182a;
  --ink-2:        #2c3142;
  --whisper:      #7c8294;
  --line:         rgba(20, 24, 42, 0.14);
  --line-soft:    rgba(20, 24, 42, 0.08);
  --line-dark:    rgba(240, 242, 245, 0.16);

  /* Type */
  --serif:  "Fraunces", "Times New Roman", serif;
  --sans:   "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:   "JetBrains Mono", ui-monospace, monospace;

  /* Rhythm */
  --pad:   clamp(20px, 4vw, 56px);
  --radius: 2px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* Selection */
::selection { background: var(--navy); color: var(--mist); }

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.42;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.07  0 0 0 0 0.05  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ==========================================================================
   Utility Bar
   ========================================================================== */
.utility {
  background: var(--navy-deep);
  color: var(--mist);
  border-bottom: 1px solid rgba(240, 242, 245, 0.08);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.utility__inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 10px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.utility__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.utility__meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green-soft);
}
.utility__meta .dot { color: rgba(240, 242, 245, 0.3); }
.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-soft);
  box-shadow: 0 0 0 0 rgba(140, 198, 63, 0.8);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(140, 198, 63, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(140, 198, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(140, 198, 63, 0); }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(240, 242, 245, 0.82);
  border-bottom: 1px solid var(--line-soft);
  max-width: 100%;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 78px;
  transition: height 0.3s ease, background 0.3s ease;
}
.nav.is-scrolled {
  height: 64px;
  background: rgba(240, 242, 245, 0.94);
}

.brand {
  display: inline-flex;
  align-items: center;
}
.brand__logo {
  height: 44px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}
.nav.is-scrolled .brand__logo { height: 36px; }

.nav__menu {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 14.5px;
}
.nav__menu a {
  position: relative;
  padding: 8px 2px;
  color: var(--ink-2);
  transition: color 0.2s ease;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(.77,0,.18,1);
}
.nav__menu a:hover { color: var(--navy-deep); }
.nav__menu a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--navy);
  color: var(--mist);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav__cta svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.nav__cta:hover { background: var(--navy-deep); }
.nav__cta:hover svg { transform: translateX(4px); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy-deep);
  transition: transform 0.3s ease;
}

/* ==========================================================================
   Shared Section Patterns
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow__num {
  color: var(--green-deep);
  font-weight: 500;
}
.eyebrow__bar {
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}
.eyebrow--light { color: rgba(240, 242, 245, 0.75); }
.eyebrow--light .eyebrow__num { color: var(--green-soft); }

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  font-variation-settings: "opsz" 120, "SOFT" 40;
  color: var(--navy-deep);
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--green-deep);
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.section-title--light { color: var(--mist); }
.section-title--light em { color: var(--green-soft); }

.section-note {
  font-size: 16.5px;
  max-width: 54ch;
  line-height: 1.55;
  color: var(--ink-2);
}

.section-head {
  padding: clamp(80px, 10vw, 140px) var(--pad) 56px;
  max-width: 1680px;
  margin: 0 auto;
}
.section-head--split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: end;
}
.section-head--split .section-note { margin: 0; padding-bottom: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  position: relative;
}
.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}
.btn:hover svg { transform: translateX(5px); }

.btn--primary {
  background: var(--navy);
  color: var(--mist);
}
.btn--primary:hover { background: var(--navy-deep); }

.btn--ghost {
  color: var(--navy-deep);
  border: 1px solid var(--navy);
  padding: 15px 26px;
}
.btn--ghost:hover {
  background: var(--navy);
  color: var(--mist);
}

.btn--dark {
  background: var(--mist);
  color: var(--navy-deep);
  padding: 18px 28px;
  font-size: 15px;
}
.btn--dark:hover {
  background: var(--green-soft);
  color: var(--navy-ink);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-deep);
  transition: gap 0.3s ease, border-color 0.3s ease;
}
.link-more svg { width: 14px; height: 14px; }
.link-more:hover {
  gap: 16px;
  border-color: var(--navy);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 80px) var(--pad) 48px;
  max-width: 1680px;
  margin: 0 auto;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: 72vh;
}

.hero__headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9.2vw, 9.2rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 10px 0 36px;
  color: var(--navy-deep);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.hero__headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--green-deep);
  font-variation-settings: "opsz" 144, "SOFT" 90;
  position: relative;
  padding-right: 0.08em;
}
.hero__lede {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  max-width: 48ch;
  color: var(--ink-2);
  margin: 0 0 40px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Media column */
.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 480px;
}
.hero__photo {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: linear-gradient(160deg, #2e3a87 0%, #131c4d 100%);
  box-shadow:
    0 40px 80px -30px rgba(31, 40, 103, 0.4),
    0 0 0 1px rgba(31, 40, 103, 0.06);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 1.6s cubic-bezier(.16,1,.3,1);
}
.hero__photo:hover img { transform: scale(1.04); }
.hero__photo figcaption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.hero__photo figcaption span:last-child { opacity: 0.65; }

.hero__badge {
  position: absolute;
  left: -28px;
  top: 40px;
  background: var(--mist);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgba(31, 40, 103, 0.25);
  max-width: 240px;
}
.hero__badge-n {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: var(--green-deep);
  font-variation-settings: "opsz" 144;
}
.hero__badge-t {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-deep);
}
.hero__badge-t span:last-child { color: var(--whisper); }

.hero__aside {
  position: absolute;
  right: -24px;
  bottom: 40px;
  background: var(--navy-deep);
  color: var(--mist);
  padding: 18px 22px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 20px 40px -20px rgba(31, 40, 103, 0.35);
}
.hero__aside-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-soft);
}
.hero__aside-val {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  font-variation-settings: "opsz" 72;
}
.hero__aside-line {
  width: 32px;
  height: 1px;
  background: var(--green-soft);
  margin: 6px 0 4px;
}
.hero__aside-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(240, 242, 245, 0.75);
}

/* Meta row at hero bottom */
.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0 0;
  margin-top: 72px;
  border-top: 1px solid var(--line);
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero__meta-n {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1;
  color: var(--navy-deep);
  font-variation-settings: "opsz" 72;
}
.hero__meta-l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--whisper);
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  background: var(--navy);
  color: var(--mist);
  padding: 28px 0;
  overflow: hidden;
  border-top: 1px solid rgba(240, 242, 245, 0.08);
  border-bottom: 1px solid rgba(240, 242, 245, 0.08);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  white-space: nowrap;
  animation: scroll 55s linear infinite;
  will-change: transform;
}
.marquee__track span {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(26px, 3vw, 44px);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144;
}
.marquee__track .star {
  color: var(--green-soft);
  font-style: normal;
  font-size: 18px;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Specialties
   ========================================================================== */
.specialties {
  position: relative;
}
.specialties .section-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: end;
}
.specialties .section-head .eyebrow { grid-column: 1 / -1; }
.specialties .section-note { margin: 0; padding-bottom: 6px; }

.specialties__list {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.spec {
  display: grid;
  grid-template-columns: 64px 1fr 140px 32px;
  gap: 24px;
  align-items: baseline;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: padding 0.3s ease;
}
.spec:last-child { border-bottom: 1px solid var(--line); }
.spec:hover { padding-left: 12px; }

.spec__n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--green-deep);
  padding-top: 8px;
}
.spec__body { max-width: 70ch; }
.spec__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--navy-deep);
  font-variation-settings: "opsz" 120;
  transition: color 0.3s ease;
}
.spec:hover .spec__title { color: var(--green-deep); }
.spec__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0;
}
.spec__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--whisper);
  text-align: right;
  padding-top: 12px;
}
.spec__arrow {
  width: 24px;
  height: 24px;
  justify-self: end;
  color: var(--navy-deep);
  transition: transform 0.3s ease;
  padding-top: 6px;
}
.spec:hover .spec__arrow { transform: translateX(8px); color: var(--green-deep); }

.specialties > .link-more {
  display: inline-flex;
  margin: 48px var(--pad) 120px;
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  background: var(--mist-2);
  padding: clamp(100px, 12vw, 160px) var(--pad);
  border-top: 1px solid var(--line-soft);
}
.about__grid {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-bottom: 80px;
}
.about__left .section-title { max-width: 14ch; }
.about__right {
  padding-top: clamp(40px, 6vw, 80px);
}
.about__lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
  color: var(--navy-deep);
  margin: 0 0 28px;
  font-variation-settings: "opsz" 72;
}
.about__body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 40px;
  max-width: 56ch;
}
.about__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.about__facts > div { display: contents; }
.about__facts dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--whisper);
  grid-column: 1;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--line);
}
.about__facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--navy-deep);
  grid-column: 2;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--line);
  font-variation-settings: "opsz" 36;
}

.about__photo {
  max-width: 1680px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: linear-gradient(160deg, #2e3a87, #131c4d);
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}
.about__photo figcaption {
  position: absolute;
  right: 24px;
  bottom: 20px;
  display: flex;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.about__photo figcaption span:last-child { opacity: 0.7; }

/* ==========================================================================
   Stats (dark band)
   ========================================================================== */
.stats {
  background: var(--navy-deep);
  color: var(--mist);
  padding: clamp(60px, 8vw, 110px) var(--pad);
  border-top: 1px solid rgba(240, 242, 245, 0.05);
}
.stats__row {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
}
.stats__item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(240, 242, 245, 0.18);
}
.stats__n {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--mist);
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.stats__n em {
  font-style: italic;
  font-weight: 400;
  color: var(--green-soft);
  font-size: 0.55em;
  letter-spacing: -0.02em;
}
.stats__l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 242, 245, 0.65);
  line-height: 1.6;
}

/* ==========================================================================
   Physicians
   ========================================================================== */
.physicians { padding-bottom: clamp(80px, 10vw, 140px); }
.doctors {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.doctor {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.doctor__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(160deg, #b6dd7d 0%, #5e9518 100%);
  position: relative;
}
.doctor__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
  transition: transform 1.2s cubic-bezier(.16,1,.3,1), filter 0.6s ease;
}
.doctor:hover .doctor__photo img {
  transform: scale(1.05);
  filter: saturate(1) contrast(1.06);
}
.doctor__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 16px;
  row-gap: 4px;
  padding-top: 4px;
}
.doctor__n {
  grid-column: 1;
  grid-row: 1 / 4;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--green-deep);
  padding-top: 10px;
}
.doctor__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0;
  color: var(--navy-deep);
  font-variation-settings: "opsz" 72;
}
.doctor__role {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}
.doctor__cred {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--whisper);
  margin-top: 2px;
}

.physicians > .link-more {
  display: inline-flex;
  margin: 60px var(--pad) 0;
}

/* ==========================================================================
   Experience / Features
   ========================================================================== */
.experience {
  background: var(--mist-2);
  padding-bottom: clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.features {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.feature {
  padding: 40px 32px 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: background 0.3s ease;
}
.feature:hover { background: var(--mist-3); }
.feature__n {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.feature__icon {
  width: 44px;
  height: 44px;
  color: var(--navy-deep);
  margin: 8px 0 12px;
}
.feature__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  color: var(--navy-deep);
  margin: 0;
  font-variation-settings: "opsz" 72;
}
.feature__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 38ch;
}

/* ==========================================================================
   Quote
   ========================================================================== */
.quote {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(100px, 12vw, 160px) var(--pad);
  position: relative;
  text-align: center;
}
.quote__mark {
  width: 52px;
  height: 52px;
  color: var(--green);
  opacity: 0.5;
  margin: 0 auto 32px;
  display: block;
}
.quote__text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  margin: 0 auto;
  max-width: 22ch;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.quote__text em {
  font-style: italic;
  color: var(--green-deep);
  font-variation-settings: "opsz" 144, "SOFT" 90;
}
.quote__attr {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--whisper);
}
.quote__name { color: var(--navy-deep); }
.quote__dot {
  width: 4px; height: 4px;
  background: var(--green);
  border-radius: 50%;
}

/* ==========================================================================
   Appointment
   ========================================================================== */
.appointment {
  background: var(--navy-deep);
  color: var(--mist);
  padding: clamp(80px, 10vw, 140px) var(--pad);
  position: relative;
}
.appointment::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(140, 198, 63, 0.09), transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(140, 198, 63, 0.06), transparent 45%);
}
.appointment__grid {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  position: relative;
}
.appointment__lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  color: rgba(240, 242, 245, 0.85);
  max-width: 42ch;
  margin: 0 0 48px;
  font-variation-settings: "opsz" 72;
}
.appointment__contact {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px 28px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
  margin: 0;
}
.appointment__contact > div { display: contents; }
.appointment__contact dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-soft);
  padding-top: 2px;
}
.appointment__contact dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--mist);
  font-variation-settings: "opsz" 36;
}

/* Form */
.appointment__form {
  background: rgba(240, 242, 245, 0.04);
  border: 1px solid var(--line-dark);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form__title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 242, 245, 0.85);
}
.form__n {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 30px;
  color: var(--green-soft);
  font-variation-settings: "opsz" 144;
}
.form__row {
  display: grid;
  gap: 20px;
}
.form__row--two { grid-template-columns: 1fr 1fr; }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.field__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-soft);
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  color: var(--mist);
  padding: 10px 0 14px;
  font-size: 15.5px;
  font-family: var(--serif);
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s ease;
  font-variation-settings: "opsz" 36;
  width: 100%;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(240, 242, 245, 0.35);
  font-style: italic;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--green-soft);
}
.field textarea { resize: vertical; }

.field__select {
  position: relative;
}
.field__select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  cursor: pointer;
}
.field__select select option {
  background: var(--navy-deep);
  color: var(--mist);
}
.field__select svg {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: 14px;
  height: 14px;
  color: var(--green-soft);
  pointer-events: none;
}

input[type="date"] {
  color-scheme: dark;
}

.appointment__form .btn--dark {
  margin-top: 12px;
  align-self: flex-start;
}

.form__note {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(240, 242, 245, 0.5);
  line-height: 1.6;
}
.form__note a {
  color: var(--green-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Success state */
.appointment__form.is-success {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}
.appointment__form.is-success > *:not(.success) { display: none; }
.success {
  display: none;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.appointment__form.is-success .success { display: flex; }
.success__icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--green-soft);
  border-radius: 50%;
  color: var(--green-soft);
  display: grid;
  place-items: center;
}
.success__icon svg { width: 22px; height: 22px; }
.success__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 28px;
  margin: 0;
  font-variation-settings: "opsz" 72;
}
.success__title em { font-style: italic; color: var(--green-soft); }
.success__sub {
  margin: 0;
  color: rgba(240, 242, 245, 0.7);
  max-width: 42ch;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--navy-ink);
  color: var(--mist);
  padding: 120px var(--pad) 40px;
  position: relative;
  overflow: hidden;
}
.footer__wordmark {
  max-width: 1680px;
  margin: 0 auto 80px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(5rem, 18vw, 22rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: rgba(240, 242, 245, 0.08);
  display: flex;
  flex-direction: column;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  user-select: none;
}
.footer__wordmark em {
  font-style: italic;
  font-weight: 400;
  color: rgba(140, 198, 63, 0.2);
  font-variation-settings: "opsz" 144, "SOFT" 90;
  padding-left: 0.08em;
}

.footer__grid {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line-dark);
}
.footer__col {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(240, 242, 245, 0.82);
  font-variation-settings: "opsz" 36;
}
.footer__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin: 0 0 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 6px; }
.footer__col a {
  position: relative;
  transition: color 0.25s ease;
}
.footer__col a:hover { color: var(--green-soft); }

.footer__bar {
  max-width: 1680px;
  margin: 0 auto;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 242, 245, 0.45);
}

/* ==========================================================================
   Entrance animations
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.4s; }
[data-reveal-delay="6"] { transition-delay: 0.48s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__menu { gap: 22px; font-size: 13.5px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { min-height: 420px; max-width: 560px; }
  .hero__meta { grid-template-columns: repeat(4, 1fr); }
  .specialties .section-head { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__right { padding-top: 0; }
  .stats__row { grid-template-columns: repeat(3, 1fr); }
  .doctors { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .appointment__grid { grid-template-columns: 1fr; }
  .section-head--split { grid-template-columns: 1fr; gap: 20px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .utility__meta { display: none; }
  .nav { height: 68px; }
  .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--mist);
    flex-direction: column;
    padding: 20px var(--pad);
    border-bottom: 1px solid var(--line);
    gap: 14px;
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav__cta { padding: 10px 18px; font-size: 13px; }
  .nav__cta span { display: none; }
  .nav__burger { display: flex; }
  .brand__logo { height: 36px; }

  .spec {
    grid-template-columns: 40px 1fr 24px;
    gap: 16px;
  }
  .spec__meta { display: none; }
  .spec__title { font-size: 22px; }

  .hero__badge { left: -12px; top: 20px; padding: 12px 16px; }
  .hero__badge-n { font-size: 32px; }
  .hero__aside { right: -12px; bottom: 20px; padding: 14px 18px; }

  .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .stats__row { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .doctors { grid-template-columns: 1fr; gap: 48px; }
  .features { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bar { flex-direction: column; gap: 8px; }
  .form__row--two { grid-template-columns: 1fr; }

  .quote__text { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee__track { animation: none; }
}
