:root {
  --doctor-bg: #ffffff;
  --doctor-text: #000000;
  --doctor-primary: #02472b;
  --doctor-muted: #a0a5b1;
  --rule: rgba(0, 0, 0, 0.72);
  --soft-rule: rgba(160, 165, 177, 0.42);
  --soft-fill: rgba(160, 165, 177, 0.16);
  --font: Inter, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(18px, 3.2vw, 54px);
  --section-y: clamp(88px, 13vw, 190px);
}

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

html {
  background: var(--doctor-bg);
  color: var(--doctor-text);
  font-family: var(--font);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--doctor-bg);
  color: var(--doctor-text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.18;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
  padding: 18px var(--gutter) 14px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--soft-rule);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  width: max-content;
  font-weight: 800;
  line-height: 0.92;
}

.brand__name {
  font-size: 18px;
}

.brand__role {
  margin-top: 6px;
  color: var(--doctor-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: clamp(16px, 2.2vw, 34px);
  align-items: center;
  padding-top: 2px;
}

.nav a,
.book-link,
.language-switcher button,
.menu-button {
  position: relative;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.nav a::after,
.book-link::after,
.language-switcher button::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--doctor-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
  content: "";
}

.nav a:hover::after,
.nav a.is-active::after,
.book-link:hover::after,
.language-switcher button:hover::after,
.language-switcher button[aria-pressed="true"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  align-items: center;
}

.language-switcher {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.language-switcher button {
  color: rgba(0, 0, 0, 0.42);
}

.language-switcher button[aria-pressed="true"] {
  color: var(--doctor-text);
}

.book-link {
  color: var(--doctor-text);
}

.menu-button {
  display: none;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  padding: var(--section-y) var(--gutter);
}

.rail {
  grid-column: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 84px;
  align-self: start;
  min-height: 130px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.04;
}

.rail span:last-child {
  color: var(--doctor-muted);
}

.micro {
  margin: 0 0 26px;
  color: var(--doctor-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
p,
blockquote,
figure {
  margin: 0;
}

h1,
h2 {
  font-weight: 900;
  letter-spacing: -0.018em;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(62px, 10.5vw, 170px);
  line-height: 0.84;
  max-width: 8ch;
}

h2 {
  font-size: clamp(42px, 5.1vw, 76px);
  line-height: 0.88;
  max-width: 13ch;
}

.section-intro {
  grid-column: 4 / 9;
  max-width: 610px;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.02;
}

.rule {
  width: 100%;
  height: 2px;
  margin: clamp(28px, 4vw, 56px) 0;
  background: var(--rule);
  transform-origin: left center;
}

.media-frame {
  overflow: hidden;
  background: var(--soft-fill);
  contain: paint;
}

.media-frame img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

figcaption {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
}

.hero {
  min-height: 100vh;
  padding-top: clamp(104px, 12vw, 154px);
  align-items: start;
}

.hero__copy {
  grid-column: 4 / 10;
}

.hero__lead {
  max-width: 490px;
  font-size: clamp(20px, 2.6vw, 36px);
  font-weight: 900;
  line-height: 0.98;
}

.hero__image {
  grid-column: 1 / 10;
  margin-top: 42px;
  aspect-ratio: 16 / 9;
}

.hero__meta {
  grid-column: 10 / 13;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: end;
  margin-bottom: 46px;
  font-size: 12px;
  font-weight: 800;
}

.hero__meta a {
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}

.copy-columns {
  grid-column: 4 / 9;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
  margin-top: 52px;
  font-size: 16px;
  font-weight: 700;
}

.about__portrait {
  grid-column: 10 / 13;
  grid-row: 1 / span 3;
  aspect-ratio: 3 / 4.6;
}

.stats {
  grid-column: 4 / 13;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 72px;
  border-top: 2px solid var(--rule);
}

.stats div {
  padding-top: 18px;
}

.stats strong {
  display: block;
  font-size: clamp(54px, 8vw, 124px);
  font-weight: 900;
  line-height: 0.86;
}

.stats span {
  display: block;
  max-width: 190px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 800;
}

.associations {
  grid-column: 4 / 13;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  padding-top: 34px;
}

.associations img {
  width: auto;
  max-width: 116px;
  max-height: 54px;
}

.procedure-index {
  grid-column: 4 / 13;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 5vw, 70px);
  margin-top: 72px;
}

.procedure-list {
  border-top: 2px solid var(--rule);
}

.procedure-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  width: 100%;
  padding: 18px 0;
  border-bottom: 1px solid var(--soft-rule);
  text-align: left;
}

.procedure-row span {
  color: var(--doctor-muted);
  font-size: 12px;
  font-weight: 800;
}

.procedure-row strong {
  display: block;
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 900;
  line-height: 0.92;
}

.procedure-row small {
  display: block;
  max-width: 660px;
  margin-top: 10px;
  color: rgba(0, 0, 0, 0.7);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.procedure-row.is-active strong {
  color: var(--doctor-text);
}

.procedure-preview {
  position: sticky;
  top: 104px;
  align-self: start;
  aspect-ratio: 4 / 5;
}

.result-grid {
  grid-column: 4 / 13;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 62px;
}

.result-card {
  border-top: 2px solid var(--rule);
}

.result-card h3 {
  min-height: 54px;
  padding: 14px 0 8px;
  font-size: 18px;
  font-weight: 900;
}

.result-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.result-pair figure {
  position: relative;
  aspect-ratio: 1 / 1.1;
}

.result-pair img {
  height: 100%;
  object-fit: cover;
}

.result-pair span {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 5px 7px;
  background: var(--doctor-bg);
  color: var(--doctor-text);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-section {
  align-items: start;
}

.quote-image {
  grid-column: 4 / 11;
  margin-top: 54px;
  aspect-ratio: 16 / 10;
}

blockquote {
  grid-column: 4 / 12;
  color: var(--doctor-text);
  font-size: clamp(34px, 5vw, 82px);
  font-weight: 900;
  line-height: 0.92;
}

.opinions-layout {
  grid-column: 4 / 13;
  display: grid;
  grid-template-columns: minmax(270px, 0.38fr) 1fr;
  gap: clamp(26px, 5vw, 76px);
  margin-top: 62px;
}

.opinions-layout figure {
  aspect-ratio: 1;
}

.quote-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
  align-self: start;
}

.quote-card,
.reference-row,
.location-card {
  border-top: 2px solid var(--rule);
  padding-top: 16px;
}

.quote-card p,
.reference-row p,
.location-card p {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.22;
}

.quote-card strong,
.reference-row strong,
.location-card strong {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.references-list {
  grid-column: 4 / 13;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 60px;
}

.reference-row small {
  display: block;
  margin-top: 6px;
  color: var(--doctor-muted);
  font-size: 12px;
  font-weight: 800;
}

.location-grid {
  grid-column: 4 / 13;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 60px;
}

.location-card {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 22px;
  min-height: 420px;
  padding-bottom: 0;
}

.location-card h3 {
  font-size: clamp(34px, 4vw, 66px);
  font-weight: 900;
  line-height: 0.88;
}

.location-card address {
  margin-top: 28px;
  font-style: normal;
  font-size: 18px;
  font-weight: 900;
}

.location-card a {
  display: block;
  margin-top: 18px;
  color: var(--doctor-text);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.location-card img {
  height: 100%;
  object-fit: cover;
}

.contact__main {
  grid-column: 4 / 12;
  padding: clamp(30px, 6vw, 78px);
  background: var(--doctor-primary);
  color: var(--doctor-bg);
}

.contact__main h2 {
  max-width: 11ch;
}

.contact__main p {
  max-width: 620px;
  margin-top: 32px;
  font-size: 20px;
  font-weight: 800;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  margin-top: 42px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px var(--gutter);
  border-top: 1px solid var(--soft-rule);
  font-size: 12px;
  font-weight: 800;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal="rule"] {
  transform: scaleX(0);
}

.is-visible [data-reveal],
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-visible [data-reveal="rule"] {
  transform: scaleX(1);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    position: fixed;
    inset: 61px 0 auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px var(--gutter);
    background: var(--doctor-bg);
    border-bottom: 1px solid var(--soft-rule);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    font-size: 28px;
  }

  .menu-button {
    display: inline-block;
  }

  .book-link {
    display: none;
  }

  .section-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .rail {
    grid-column: 1 / 2;
  }

  .section-heading,
  .section-intro,
  .copy-columns,
  .stats,
  .associations,
  .procedure-index,
  .result-grid,
  .opinions-layout,
  .references-list,
  .location-grid,
  .contact__main {
    grid-column: 2 / 7;
  }

  .hero__copy {
    grid-column: 2 / 7;
  }

  .hero__image {
    grid-column: 1 / 7;
  }

  .hero__meta {
    grid-column: 2 / 7;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 0;
  }

  .about__portrait {
    grid-column: 2 / 6;
    grid-row: auto;
    margin-top: 46px;
  }

  .procedure-index,
  .opinions-layout,
  .location-card {
    grid-template-columns: 1fr;
  }

  .procedure-preview {
    position: relative;
    top: auto;
  }

  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .references-list,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .quote-image {
    grid-column: 2 / 7;
  }

  blockquote {
    grid-column: 2 / 7;
    margin-top: 30px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 14px;
  }

  .site-header {
    align-items: center;
  }

  .brand__name {
    font-size: 15px;
  }

  .brand__role {
    display: none;
  }

  .header-actions {
    gap: 12px;
  }

  .language-switcher {
    gap: 8px;
  }

  .section-grid {
    display: block;
    padding: 82px var(--gutter);
  }

  .rail {
    min-height: auto;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 36px;
  }

  h1 {
    font-size: clamp(54px, 17vw, 86px);
  }

  h2 {
    font-size: clamp(40px, 14vw, 72px);
  }

  .hero {
    padding-top: 110px;
  }

  .hero__image,
  .procedure-index,
  .result-grid,
  .opinions-layout,
  .references-list,
  .location-grid,
  .copy-columns,
  .stats,
  .quote-image,
  blockquote,
  .contact__main {
    margin-top: 38px;
  }

  .hero__image {
    aspect-ratio: 4 / 5;
  }

  .hero__meta {
    margin-top: 26px;
  }

  .copy-columns,
  .stats,
  .quote-list,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    display: grid;
  }

  .associations {
    margin-top: 30px;
  }

  .result-grid,
  .quote-list,
  .references-list,
  .location-grid {
    display: grid;
  }

  .location-card {
    min-height: 0;
  }

  .location-card img {
    aspect-ratio: 16 / 10;
  }

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
