:root {
  --coal: #0F1113;
  --coal-2: #15181B;
  --coal-3: #1A1E21;
  --chrome: #E9EDEF;
  --steel: #9AA6AC;
  --ice: #C9D6DC;
  --porcelain: #F4F6F6;
  --ink: #14181A;
  --ink-soft: #5E6A70;
  --hairline: rgba(233, 237, 239, 0.14);
  --hairline-strong: rgba(233, 237, 239, 0.28);
  --hairline-ink: rgba(20, 24, 26, 0.18);
  --font-display: 'Tenor Sans', 'Times New Roman', serif;
  --font-text: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-data: 'IBM Plex Mono', monospace;
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 40px;
  --s-5: 64px;
  --s-6: 104px;
  --s-7: 160px;
  --measure: 65ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--coal);
  color: var(--chrome);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ice); color: var(--coal); }

a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: 1px solid var(--ice);
  outline-offset: 4px;
}

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

.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
}

/* ---------- typography ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin-bottom: var(--s-3);
}

.h3 {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: var(--s-2);
}

.eyebrow {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  max-width: 46ch;
  color: var(--steel);
}

p { max-width: var(--measure); }

p + p { margin-top: 0.75em; }

.muted { color: var(--steel); }

.data {
  font-family: var(--font-data);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 19, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  height: 76px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.wordmark svg { display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}

.nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.nav a:hover { color: var(--chrome); }

.nav a[aria-current="page"] {
  color: var(--chrome);
  border-bottom-color: var(--ice);
}

.nav__tel {
  font-family: var(--font-data);
  font-size: 14px;
  color: var(--chrome);
  letter-spacing: 0.02em;
  text-transform: none;
}

/* ---------- hero ---------- */

.hero {
  min-height: calc(92vh - 76px);
  display: flex;
  align-items: flex-end;
  padding-block: var(--s-6) var(--s-6);
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  row-gap: var(--s-4);
  width: 100%;
}

.hero__meta { grid-column: 1 / 6; align-self: start; }

.hero__main { grid-column: 1 / 11; }

.hero__aside {
  grid-column: 9 / 13;
  align-self: end;
  justify-self: end;
  text-align: right;
}

.hero .display { max-width: 12ch; }

.arc { display: block; margin-top: var(--s-3); }

.arc path {
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.arc--draw path {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: arc-draw 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s forwards;
}

@keyframes arc-draw { to { stroke-dashoffset: 0; } }

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-4);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chrome);
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  padding: 18px 34px;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn:hover {
  background: var(--chrome);
  color: var(--coal);
  border-color: var(--chrome);
}

.btn--ink {
  color: var(--ink);
  border-color: var(--hairline-ink);
}

.btn--ink:hover {
  background: var(--ink);
  color: var(--porcelain);
  border-color: var(--ink);
}

.link-arrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 4px;
  transition: color 0.25s, border-color 0.25s;
}

.link-arrow:hover { color: var(--ice); border-color: var(--ice); }

/* ---------- sections ---------- */

.section { padding-block: clamp(96px, 12vw, 160px); }

.section--flush-top { padding-top: 0; }

.section-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: var(--s-4);
}

.section-grid__label { grid-column: 1 / 4; }

.section-grid__label .eyebrow { position: sticky; top: 108px; display: inline-block; }

.section-grid__body { grid-column: 4 / 13; }

.section-grid__body--narrow { grid-column: 4 / 11; }

/* ---------- protocol ---------- */

.protocol { border-top: 1px solid var(--hairline); }

.protocol__row {
  display: grid;
  grid-template-columns: 120px 1fr 2fr;
  column-gap: clamp(20px, 3vw, 48px);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.3s;
}

.protocol__row:hover { background: var(--coal-2); }

.protocol__num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  color: var(--steel);
  line-height: 1;
}

.protocol__name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.15;
}

.protocol__text { color: var(--steel); max-width: 52ch; }

/* ---------- white band ---------- */

.band {
  background: var(--porcelain);
  color: var(--ink);
  padding-block: clamp(96px, 12vw, 160px);
}

.band .eyebrow { color: var(--ink-soft); }

.band__statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.005em;
  max-width: 24ch;
  margin-block: var(--s-3) var(--s-4);
}

.band__note { color: var(--ink-soft); max-width: 52ch; }

.band .arc path { stroke: var(--ink); }

.band cite {
  display: block;
  font-style: normal;
  margin-top: var(--s-3);
}

/* ---------- services ---------- */

.services { border-top: 1px solid var(--hairline); }

.service-row {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.3s;
}

.service-row:hover { background: var(--coal-2); }

.service-row__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  line-height: 1.2;
  white-space: nowrap;
}

.service-row__desc {
  color: var(--steel);
  font-size: 14px;
  max-width: 36ch;
  display: none;
}

.service-row__dots {
  flex: 1;
  border-bottom: 1px dotted var(--hairline-strong);
  transform: translateY(-6px);
  min-width: 40px;
}

.service-row__price { color: var(--chrome); white-space: nowrap; }

@media (min-width: 900px) {
  .service-row__desc { display: block; }
}

/* ---------- doctor feature / rows ---------- */

.doctor-feature {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: var(--s-4);
  align-items: end;
}

.doctor-feature__media { grid-column: 1 / 6; }

.doctor-feature__body { grid-column: 7 / 13; padding-bottom: var(--s-3); }

.doctor-name {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.08;
  margin-block: var(--s-2) var(--s-1);
}

.doctor-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: var(--s-3);
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--hairline);
}

.doctor-row__media { grid-column: 1 / 4; }

.doctor-row__body { grid-column: 4 / 10; }

.doctor-row__facts {
  grid-column: 10 / 13;
  color: var(--steel);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

/* ---------- photo slots ---------- */

.slot { display: block; }

.slot__img {
  background: var(--coal-3);
  border: 1px solid var(--hairline);
  width: 100%;
}

.slot__img--43 { aspect-ratio: 4 / 3; }
.slot__img--34 { aspect-ratio: 3 / 4; }
.slot__img--169 { aspect-ratio: 16 / 9; }
.slot__img--map { aspect-ratio: 21 / 9; }

.band .slot__img {
  background: #E9ECEC;
  border-color: var(--hairline-ink);
}

.slot figcaption {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--steel);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.space-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: var(--s-5);
}

.space-grid .slot:nth-child(1) { grid-column: 1 / 8; }
.space-grid .slot:nth-child(2) { grid-column: 9 / 13; align-self: end; }
.space-grid .slot:nth-child(3) { grid-column: 3 / 8; }
.space-grid .slot:nth-child(4) { grid-column: 8 / 13; }

/* ---------- price page ---------- */

.price-group { padding-block: var(--s-5); border-bottom: 1px solid var(--hairline); }

.price-group__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  margin-bottom: var(--s-4);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  padding-block: 14px;
}

.price-row__name { max-width: 44ch; }

.price-row__note { display: block; font-size: 13px; color: var(--steel); }

.price-row__dots {
  flex: 1;
  border-bottom: 1px dotted var(--hairline-strong);
  transform: translateY(-6px);
  min-width: 40px;
}

.footnote {
  font-size: 14px;
  color: var(--steel);
  border-left: 1px solid var(--hairline-strong);
  padding-left: var(--s-3);
  max-width: 52ch;
}

/* ---------- contacts ---------- */

.contact-tel {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  letter-spacing: 0.01em;
  line-height: 1.05;
  transition: color 0.3s;
}

.contact-tel:hover { color: var(--ice); }

.contact-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-5);
}

.contact-cols dt {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: var(--s-2);
}

.contact-cols dd { font-size: 16px; }

.contact-cols dd + dt { margin-top: var(--s-4); }

/* ---------- cta band ---------- */

.cta {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(96px, 12vw, 160px);
  text-align: center;
}

.cta .display { max-width: none; margin-bottom: var(--s-4); }

.cta .eyebrow { display: block; margin-bottom: var(--s-3); }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--hairline); padding-block: var(--s-5) var(--s-4); }

.footer__grid {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.footer__col { font-size: 14px; color: var(--steel); }

.footer__col a:hover { color: var(--chrome); }

.footer__legal {
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--steel);
}

.footer__warning { letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .arc--draw path { animation: none; stroke-dashoffset: 0; }
  .btn, .nav a, .service-row, .protocol__row { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero { min-height: auto; padding-block: var(--s-5) var(--s-6); }
  .hero__meta { grid-column: 1 / 13; }
  .hero__main { grid-column: 1 / 13; }
  .hero__aside { grid-column: 1 / 13; justify-self: start; text-align: left; }
  .section-grid__label { grid-column: 1 / 13; }
  .section-grid__body, .section-grid__body--narrow { grid-column: 1 / 13; }
  .protocol__row { grid-template-columns: 64px 1fr; }
  .protocol__text { grid-column: 2; margin-top: var(--s-1); }
  .doctor-feature__media { grid-column: 1 / 13; }
  .doctor-feature__body { grid-column: 1 / 13; padding-bottom: 0; }
  .doctor-row__media { grid-column: 1 / 7; }
  .doctor-row__body { grid-column: 1 / 13; }
  .doctor-row__facts { grid-column: 1 / 13; }
  .space-grid .slot:nth-child(1) { grid-column: 1 / 13; }
  .space-grid .slot:nth-child(2) { grid-column: 5 / 13; }
  .space-grid .slot:nth-child(3) { grid-column: 1 / 9; }
  .space-grid .slot:nth-child(4) { grid-column: 1 / 13; }
}

@media (max-width: 640px) {
  .header__in { height: auto; padding-block: 14px; flex-wrap: wrap; }
  .nav { width: 100%; justify-content: space-between; gap: 12px; }
  .nav__tel { display: none; }
  .service-row__name { white-space: normal; }
  .service-row { flex-wrap: wrap; }
  .service-row__dots { display: none; }
  .service-row__price { width: 100%; color: var(--steel); }
  .price-row { flex-wrap: wrap; }
  .price-row__dots { display: none; }
  .price-row .data { width: 100%; color: var(--steel); }
}
