@font-face {
  font-family: Joan;
  src: url("/assets/fonts/joan.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --display: Joan, Georgia, serif;
  --header-height: 4.875rem;
}

:root:not([data-theme="light"]) {
  --bg: #090909;
  --surface: #111111;
  --card: transparent;
  --panel: #111111;
  --header: #090909;
  --footer: #090909;
  --hero-solid: #090909;
  --hero-overlay: 9, 9, 9;
}

:root:not([data-theme="light"]) .home { background: #111111; }
:root:not([data-theme="light"]) .home .band-soft { background: #090909; }

h1, h2 { letter-spacing: 0; }
.accent { color: var(--accent); }
.desktop-break { display: none; }
.btn { font-weight: 800; }
.media-frame { border-radius: 1.4375rem; }

.header-inner {
  position: relative;
  width: min(100% - clamp(2rem, 3.33vw, 3rem), 87rem);
  padding-inline-end: .8125rem;
}

.site-header .brand {
  width: clamp(11rem, 21.12vw, 19rem);
  max-width: 52%;
  top: -.125rem;
  position: relative;
}

.site-header .brand-descriptor { display: none; }

[data-theme="light"] :is(.site-header .brand-descriptor, .footer-social img) { filter: url("/assets/light-logo.svg#charcoal-lettering"); }

.site-footer {
  padding-top: 2.875rem;
}

.site-footer .brand {
  display: block;
  width: 20.1875rem;
  max-width: 100%;
}

.site-footer address { margin-top: 1.5rem; }
.footer-bottom > div { column-gap: 1.65rem; }

@media (min-width: 61.01rem) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: clamp(1rem, 6.1vw, 5.625rem);
  }

  .site-header .brand { max-width: 100%; }
  .site-header .header-actions { gap: .9375rem; }
}

@media (min-width: 82.5rem) {
  .site-header .brand { width: 35.875rem; gap: 0; }
  .site-header .brand > img:first-child { width: 52.96%; flex-shrink: 0; }
  .site-header .brand-descriptor { display: block; width: 49.83%; margin-inline-start: -2.79%; flex-shrink: 0; }
}

.page-head h1 { max-width: 75rem; }
.page-head .lede { max-width: 40rem; }
.about-page .page-head .lede { max-width: 70.0625rem; }
.conditions-page .page-head h1 { max-width: none; text-wrap: balance; }
.conditions-page .page-head .lede { max-width: 38rem; }
.subpage .crumbs { margin-bottom: clamp(2.75rem, 6.46vw, 5.8125rem); }

.home-hero h1 {
  font-size: clamp(2.65rem, 5.56vw, 5rem);
  line-height: 1.024;
  letter-spacing: -.02em;
}

.hero-content { max-width: 55rem; }
.hero-lede { max-width: 30rem; }
.hero-actions { column-gap: 1.3rem; }

.hero-phone {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .9375rem;
  font-weight: 800;
  color: var(--muted);
  text-decoration: none;
}

.choice-separator {
  color: var(--muted);
  font-size: 1.23rem;
  line-height: 1.55;
  text-transform: uppercase;
}

.hero-photo img {
  object-position: left center;
}

.intro .checklist li::before { content: none; }
.intro .checklist { margin-bottom: 0; }
.intro .text-link {
  display: block;
  width: fit-content;
  margin: 1.6rem auto 0;
}

.xray-figure, .xray-figure .xray-link { border-radius: 1.4375rem; }
.xray-figure { border: 0; }
.xray-figure .xray-link img {
  width: 100%;
  max-height: none;
}
.xray-figure .xray-link:focus-visible { outline-offset: -4px; }

.approach h2, .doctor-copy h2 { font-size: clamp(2.45rem, 3.819vw, 3.4375rem); line-height: 1.217; }
.credentials {
  list-style: none;
  padding: 0;
  margin: .8rem 0 0;
}
.credentials li + li { margin-top: .9rem; }
.doctor-copy > .btn { display: flex; width: fit-content; margin: 3rem auto 0; }

.first-visits .visit-row, .book-page .visits {
  border: 1px solid var(--border-soft);
  border-radius: .55rem;
}

.first-visits .visit-row li, .book-page .visit {
  border: 0;
  background: transparent;
}

.step-num {
  text-transform: none;
  letter-spacing: 0;
}

.price { font-family: var(--font); }
.visits-link { display: block; width: fit-content; margin: 2.25rem auto 0; }

.stories .t-card { padding: clamp(1rem, 1.6vw, 1.4rem); }
.stories .t-card blockquote { color: var(--muted); }

.office-tour .tour-grid {
  width: min(100% - clamp(2.5rem, 4.72vw, 4.25rem), 85.75rem);
}
.office-tour .tour-grid > :last-child { text-align: center; }
.video-poster img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
}
[data-theme="dark"] .video-poster .play-icon {
  background: rgb(27 197 212 / .5);
  border: 2px solid #090909;
  color: #090909;
}
.video-poster .play-icon:hover,
.video-poster:focus-visible .play-icon { background: var(--action); }

.home .faq-grid > :first-child { text-align: center; }
.home #faq-title { font-size: clamp(2.55rem, 4.375vw, 3.9375rem); line-height: 1.06; }

.booking-band {
  --dot-color: rgb(81 81 81 / .22);
  --dot-tile: 2.375rem;
  background-color: #0d0d0d;
  background-image:
    radial-gradient(circle, var(--dot-color) .13rem, transparent .17rem),
    radial-gradient(circle, var(--dot-color) .13rem, transparent .17rem);
  background-size: var(--dot-tile) calc(var(--dot-tile) * 1.73);
  background-position: 0 0, calc(var(--dot-tile) * .5) calc(var(--dot-tile) * .865);
}

[data-theme="light"] .booking-band {
  --dot-color: rgb(37 37 37 / .14);
  background-color: var(--surface);
}

.booking-inner {
  flex-wrap: wrap;
  padding-block: .125rem;
}
.booking-inner h2 { font-size: clamp(2.55rem, 4.5vw, 4.05rem); }
.booking-inner .booking-actions { gap: .45rem; }
.booking-actions > .btn { min-width: 11.05rem; }
.booking-actions .text-link { text-decoration: none; }
.booking-actions .text-link:hover { text-decoration: underline; }

.book-page .page-head .btn-row { margin-top: 1.5rem; }
.consultation-copy { max-width: 48rem; margin-inline: auto; text-align: center; }
.consultation-photo { width: min(100%, 52rem); margin: clamp(1.85rem, 4vw, 3.5rem) auto 0; }
.book-page .step-top { flex-direction: column; gap: 0; }
.book-page .visit :is(h3, .when) { text-align: center; }
.visit-timing { margin-top: 1.25rem; }
.payment-photo { width: min(100%, 28rem); justify-self: center; }
.book-xray { width: min(100%, 21.875rem); justify-self: center; }
.book-xray img { border-radius: 1.4375rem; }
.book-page .promise-row { display: grid; }
.d-description { display: block; color: var(--muted); font-size: .875rem; }
.paperwork-note { margin-top: .8rem; }
.book-page .paired .checklist li { padding-inline-start: .35rem; }
.book-page .paired .checklist li::before { content: none; }
.book-page .booking-band { border-block-start: 0; }
.book-cta-copy { flex: 1 1 32rem; min-width: 0; }

.scans-section { background: var(--bg); border-block-end: 1px solid var(--border-soft); }
.scans-intro .lede { max-width: 49rem; margin-top: 1rem; }
.scans-intro p { max-width: 45rem; }
.scans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5.55vw, 5rem);
  margin-block-start: clamp(2.75rem, 4.45vw, 4rem);
}
.scans-grid h3 { font: 400 clamp(1.9rem, 2.78vw, 2.5rem)/1 var(--display); }
.scans-grid h3 + p { margin-top: 1.5rem; }
.scan-list { margin-top: 1.5rem; padding: 0; list-style: none; counter-reset: scan-point; }
.scan-list li {
  position: relative;
  counter-increment: scan-point;
  border-block-start: 1px solid var(--border);
  padding: .875rem 0 .75rem 1.625rem;
}
.scan-list li::before {
  content: counter(scan-point) ".";
  position: absolute;
  inset: .875rem auto auto 0;
  color: var(--accent);
  font-weight: 750;
}
.scan-list h4 { margin: 0; font-size: 1rem; }
.scan-list p { margin-top: .1rem; }
.scans-follow-up { border-block-start: 1px solid var(--border-soft); margin-block-start: 1.25rem; padding-block-start: clamp(2rem, 3.6vw, 3.25rem); }
.scans-book { display: flex; width: fit-content; margin: 3.4rem auto 0; }

.about-page .people .person:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.condition-explanation .prose-grid { align-items: center; }
.condition-explanation-photo { width: min(100%, 17.25rem); justify-self: center; }

[data-theme="dark"] .conditions-page .filter input {
  background: #a8a8a8;
  color: #090909;
  color-scheme: light;
}
[data-theme="dark"] .conditions-page .filter input::placeholder { color: #090909; }

.conditions-page [aria-labelledby="list-title"] .section-head { margin-bottom: .375rem; }
.conditions-page .cond-context + .cond-group { margin-top: 2.55rem; }
.contact-page .hours-card, .book-page .promise, .legal .toc { background: transparent; }

@media (min-width: 75rem) {
  .desktop-break { display: initial; }

  .home-hero { min-block-size: 49.5rem; }
  .hero-photo { inset: 0 0 0 25.208%; }
  .hero-shade {
    background: linear-gradient(90deg, #090909 29.7%, #090909d1 44%, #0909091c 57%, #0909092b 100%);
  }
  [data-theme="light"] .hero-shade {
    background: linear-gradient(90deg, #fff 29.7%, #ffffffdf 44%, #ffffff35 64%, #ffffff00 100%);
  }
  .hero-wrap { padding-block: 8rem 5rem; }
  .hero-actions { margin-inline-start: 1.875rem; }
  .hero-stats { margin-inline-start: 2.5rem; }

  .intro { padding-block: 10.2rem 6.75rem; }
  .intro h2 { width: calc(100% + 4.15rem); }
  .intro h2 + p { margin-inline-start: .5625rem; }
  .intro .grid-2 > :last-child { align-self: start; margin-top: -.45rem; }
  .intro .text-link { transform: translateX(-1.4rem); }

  .approach { padding-block: 2.3125rem 2.9375rem; }
  .approach .media-grid { grid-template-columns: minmax(0, 42.438fr) minmax(0, 57.562fr); gap: min(5vw, 4.375rem); }
  .approach .xray-figure { width: min(100%, 23.3125rem); margin-inline-start: min(5.14vw, 4.625rem); }
  .approach .media-grid > :last-child { margin-top: 2rem; }
  .approach .features { margin-inline-end: 2.5rem; }

  #about { padding-block: 4.625rem 5.375rem; }
  .doctor-grid { grid-template-columns: minmax(0, 57.942fr) minmax(0, 42.058fr); gap: 4.0625rem; }
  .doctor-copy { grid-column: 1; grid-row: 1; align-self: start; padding-top: 5.0625rem; }
  .doctor-copy > .btn { margin-top: 3.65rem; }
  .doctor-grid .clinician-crop { grid-column: 2; grid-row: 1; align-self: start; width: calc(100% + .6875rem); }

  .first-visits, .stories { padding-top: 8.55rem; }
  .first-visits { padding-bottom: 2.25rem; }
  .first-visits .section-head { margin-bottom: 1.6rem; }
  .first-visits .visit-row li { min-height: 12.94rem; }
  .stories { padding-bottom: 8.9375rem; }

  .office-tour { padding-block: 4.75rem; }
  .office-tour .tour-grid {
    grid-template-columns: minmax(0, 47.38fr) minmax(0, 52.62fr);
    gap: 2.25rem;
  }
  .office-tour .tour-grid > :last-child { transform: translateX(-1.875rem); }

  .home .faq-grid {
    width: min(calc(100% - 2 * var(--side) + 1.875rem), 81.875rem);
    margin-inline-start: max(var(--side), calc((100vw - 80rem) / 2));
    margin-inline-end: auto;
    grid-template-columns: minmax(0, 41fr) minmax(0, 59fr);
    align-items: center;
    gap: 3.5625rem;
  }
  .home .faq-grid > :first-child > p { max-width: 27rem; margin-inline: auto; transform: translateY(.625rem); }
  .booking-band { padding-block: 3.35rem; }

  .page-head { padding-block: 1.5625rem 5.875rem; }
  .conditions-page .crumbs { margin-bottom: 7.625rem; }
  .conditions-page .page-head .lede { margin-block-start: 1.75rem; margin-inline-start: .1875rem; }
  .contact-page .page-head .lede { transform: translateY(.625rem); }
  .book-page .page-head .lede { margin-top: 2.25rem; }
  .book-page .page-head .btn-row { margin-top: .25rem; }
  .book-page .visit-timing { margin-top: 1.875rem; }
  .book-xray-section { padding-block: 3.125rem; }
  .book-page #questions > .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    column-gap: clamp(2rem, 6vw, 6rem);
  }
  .book-page #questions .section-head { grid-column: 1; grid-row: 1; }
  .book-page #questions .qa-grid { display: contents; }
  .book-page #questions .faq { grid-column: 1; grid-row: 2; }
  .book-page #questions .portrait { grid-column: 2; grid-row: 1 / span 2; margin-top: 3.1875rem; }
  .book-page #questions .promise { grid-column: 1 / -1; margin-top: 5.4375rem; }
  .book-page .promise h2 { margin-block: -.75rem 1.55rem; }
  .book-page .booking-band, .symptom-log-band { display: grid; align-items: center; min-block-size: 15.125rem; }

  .about-page .bio-section { background: var(--bg); }
  .bio-section { padding-block: 6.125rem 3.875rem; }
  .bio-copy h2 + p { margin-top: 1.75rem; }
  .bio-grid {
    grid-template-columns: minmax(0, 39.06fr) minmax(0, 53.62fr);
    gap: 5.86rem;
  }
  .team-section { padding-block: 5.1875rem; }
  .team-grid {
    width: min(calc(100% - 2 * var(--side) + 2.875rem), 82.875rem);
    margin-inline-start: max(var(--side), calc((100vw - 80rem) / 2));
    margin-inline-end: auto;
    grid-template-columns: minmax(0, 48.15fr) minmax(0, 51.85fr);
    gap: 1.875rem;
  }
  .team-grid > .media-frame { grid-column: 2; grid-row: 1; }
  .team-grid > :last-child { grid-column: 1; grid-row: 1; }
  .team-grid h2 { font-size: 3.75rem; line-height: 1.116; text-wrap: initial; }
  .scans-anatomy { padding-block-start: 5.625rem; }
  .scans-book { transform: translateX(-2.8125rem); }
}

@media (max-width: 74.99rem) {
  .hero-content { max-width: 45rem; }
  .about-page .team-grid h2 { text-wrap: initial; }
}

@media (min-width: 87rem) {
  .office-tour .tour-grid h2 { width: calc(100% + 3.5rem); }
}

@media (min-width: 90rem) {
  .home-hero {
    --hero-canvas: 90rem;
    --hero-gutter: max(0px, calc((100% - var(--hero-canvas)) / 2));
  }

  .hero-photo {
    inset-inline: calc(var(--hero-gutter) + 22.6875rem) var(--hero-gutter);
    mask-image: linear-gradient(90deg, #000 calc(100% - clamp(0px, (100vw - var(--hero-canvas)) / 2, 11rem)), transparent);
  }

  .hero-shade { inset-inline: var(--hero-gutter); }
  .intro .grid-2 { column-gap: 5.4rem; }
  .intro h2 { font-size: 4.1875rem; }
}

@media (min-width: 47.01rem) and (max-width: 74.99rem) {
  .doctor-grid .clinician-crop, .team-grid > .media-frame { grid-column: 2; grid-row: 1; }
  .doctor-copy, .team-grid > :last-child { grid-column: 1; grid-row: 1; }
}

@media (max-width: 61rem) {
  :root { --header-height: 4.5rem; }
  .header-inner { padding-inline-end: 0; }
  .site-header .brand { top: 0; }
  .home-hero .wide-only { display: none; }
  .hero-content { max-width: 31rem; }
}

@media (max-width: 47rem) {
  .scans-grid { grid-template-columns: minmax(0, 1fr); }
  .home-hero h1, .booking-inner h2 { text-wrap: pretty; }
  .home .faq-grid > :first-child { text-align: left; }
  .approach .xray-figure { width: min(100%, 23.3125rem); }
  .site-footer .brand { max-width: min(100%, 20.1875rem); }
}

@media (max-width: 39.5rem) {
  .book-page .visits { grid-template-columns: minmax(0, 1fr); }
  .book-cta-copy { flex-basis: auto; }
  .hero-photo img { object-position: center 60%; }
  .hero-actions { column-gap: .65rem; }
  .hero-actions .btn { width: auto; }
  .hero-phone { flex-shrink: 0; }
  .office-tour .tour-grid > :last-child { text-align: left; }
}

@media (max-width: 26rem) {
  .theme-control-label { display: none; }
  .hero-actions { gap: .45rem .8rem; }
  .hero-actions > .btn { flex-basis: 100%; }
}

[data-dyslexia="true"] .home-hero h1,
[data-dyslexia="true"] .booking-inner h2 {
  font-size: clamp(1.9rem, 3.3vw, 3rem);
  line-height: 1.25;
}

[data-large="true"] .desktop-break,
[data-dyslexia="true"] .desktop-break { display: none; }
