:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.nav,
.nav-links,
.split-hero > *,
.editorial-split > *,
.image-led > *,
.team-profile > * {
  min-width: 0;
}

.nav {
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  min-height: 5.5rem;
  padding: 1rem clamp(1.25rem, 4vw, 4rem);
  position: relative;
  z-index: 10;
}

.nav-logo {
  display: inline-flex;
  flex: 0 0 auto;
}

.nav-logo img {
  height: auto;
  width: clamp(7rem, 11vw, 10rem);
}

.nav-links {
  align-items: center;
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--secondary-ink);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--clay);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35rem;
}

.nav-links .book-link {
  background: var(--ink);
  border-radius: 999px;
  color: var(--paper);
  padding: 0.75rem 1.1rem;
}

.nav-links .book-link:hover,
.nav-links .book-link[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.nav-links .book-link:hover {
  box-shadow: 0 0 0 2px var(--clay);
}

.nav-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  cursor: pointer;
  display: none;
  height: 2.75rem;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 2.75rem;
}

main .eyebrow,
main .rail-eyebrow,
main .space-hero-eyebrow {
  display: none;
}

.page-hero h1 em {
  color: var(--clay);
  font-style: normal;
}

.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 72vh;
  padding: 170px 5vw 104px;
}

.page-hero h1 {
  font-size: clamp(56px, 7.2vw, 116px);
  letter-spacing: -0.055em;
  line-height: 0.94;
  margin: 0 0 38px;
  max-width: 16ch;
}

.page-hero .sub {
  color: var(--secondary-ink);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 52ch;
}

main .section,
main .form-section {
  background: var(--paper);
  padding: clamp(92px, 10vw, 168px) 5vw;
}

main .section-centered {
  align-items: start;
  column-gap: clamp(28px, 4.5vw, 88px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  row-gap: clamp(32px, 4vw, 64px);
  text-align: left;
}

main .section-centered > .statement,
main .section-centered > .headline {
  grid-column: 1 / 8;
  margin: 0;
  max-width: none;
  padding-top: clamp(26px, 3vw, 44px);
}

main .section-centered > .two-col {
  display: grid;
  gap: clamp(24px, 3vw, 42px);
  grid-column: 9 / -1;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding-top: clamp(26px, 3vw, 44px);
}

main .rule {
  border-top: 1px solid var(--rule);
}

main .tx-img,
main .img-ph {
  background: var(--warm-surface);
  min-height: 30rem;
  overflow: hidden;
}

main .tx-img img,
main .img-ph img {
  filter: saturate(0.88) contrast(0.98);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

main .end {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  color: var(--ink);
  padding: clamp(112px, 12vw, 190px) 5vw;
}

.nav-toggle::before,
.nav-toggle::after,
.nav-toggle span {
  background: currentColor;
  content: "";
  display: block;
  height: 1px;
  left: 50%;
  position: absolute;
  top: 50%;
  transition: transform 180ms ease;
  width: 1.1rem;
}

.nav-toggle::before {
  transform: translate(-50%, calc(-50% - 0.32rem));
}

.nav-toggle::after {
  transform: translate(-50%, calc(-50% + 0.32rem));
}

.nav-toggle span {
  transform: translate(-50%, -50%);
}

.nav.is-open .nav-toggle::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav.is-open .nav-toggle::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav.is-open .nav-toggle span {
  transform: translate(-50%, -50%) scaleX(0);
}

.nav-toggle:focus-visible,
.nav-links a:focus-visible,
.final-cta a:focus-visible,
.site-footer a:focus-visible {
  box-shadow: var(--focus-ring);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.split-hero,
.editorial-split,
.image-led,
.team-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.split-hero {
  min-height: min(52rem, calc(100svh - 5.5rem));
}

.split-hero-copy,
.editorial-split-copy,
.team-profile-copy {
  align-self: center;
  padding: var(--space-section) clamp(1.5rem, 6vw, 6rem);
}

.split-hero-copy {
  max-width: var(--reading-width);
}

.split-hero-copy h1 {
  font-size: clamp(52px, 5.7vw, 94px);
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin: 0 0 38px;
}

.split-hero-copy h1 em {
  color: var(--clay);
  font-style: normal;
}

.split-hero-copy .sub {
  color: var(--secondary-ink);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 42ch;
}

.split-hero-img {
  background: var(--warm-surface);
  min-height: 30rem;
  overflow: hidden;
}

.split-hero-img img,
.split-hero-img video {
  filter: saturate(0.88) contrast(0.98);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.tmj-hero-img img {
  object-fit: cover;
  transform: translateY(-14%) scale(1.34);
  transform-origin: center;
}

.split-hero-media,
.image-led-media,
.team-profile-media {
  background: var(--warm-surface);
  min-height: 30rem;
  overflow: hidden;
}

.split-hero-media img,
.split-hero-media video,
.image-led-media img,
.image-led-media video,
.team-profile-media img,
.team-profile-media video {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.split-hero-media img.clinical-focal-schroth {
  object-position: left center;
}

.split-hero-media img.clinical-focal-face {
  object-position: center 24%;
}

.split-hero-media img.clinical-focal-raised {
  object-position: center 18%;
}

.end .clinical-clay {
  color: var(--clay);
}

.editorial-split {
  border-top: 1px solid var(--rule);
  gap: clamp(2rem, 8vw, 8rem);
  margin: 0 auto;
  max-width: var(--content-width);
  padding: var(--space-section) clamp(1.5rem, 4vw, 4rem);
}

.editorial-split > :last-child {
  border-left: 1px solid var(--rule);
  padding-left: clamp(2rem, 6vw, 6rem);
}

.clinical-ruled {
  border-bottom: 1px solid var(--rule);
}

.clinical-ruled + .rule + .clinical-ruled {
  border-top: 0;
}

.editorial-split .statement {
  padding: 0;
}

.editorial-split .prose + .prose {
  margin-top: 1.5rem;
}

.statement {
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 auto;
  max-width: 18ch;
  padding: var(--space-section) 1.5rem;
}

.image-led {
  align-items: stretch;
}

.image-led-copy {
  align-self: center;
  max-width: var(--reading-width);
  padding: var(--space-section) clamp(1.5rem, 6vw, 6rem);
}

.team-profile {
  border-top: 1px solid var(--rule);
  margin: 0;
  max-width: none;
}

.team-profile-name {
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.team-profile-credentials {
  border-left: 3px solid var(--clay);
  color: var(--secondary-ink);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  padding-left: 0.75rem;
  text-transform: uppercase;
}

.team-profile-full {
  min-height: min(50vw, calc(100svh - 5.5rem));
}

.team-profile-media {
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.team-profile-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.team-profile-reverse .team-profile-media {
  order: 2;
}

.team-profile-reverse .team-profile-copy {
  order: 1;
}

.evidence-grid > * {
  min-width: 0;
}

.pricing-split {
  list-style: none;
}

.pricing-support h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}

.pricing-support .prose,
.pricing-support .faq-answer {
  color: var(--secondary-ink);
  line-height: 1.75;
}

.in-person-section {
  background: var(--paper);
}

.in-person-section h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 2rem;
}

.in-person-section p {
  color: var(--secondary-ink);
  line-height: 1.75;
  max-width: var(--reading-width);
}

.in-person-note {
  border-top: 1px solid var(--rule);
  font-size: 1.1rem;
  padding-top: 1.5rem;
}

.in-person-note strong {
  color: var(--ink);
  display: block;
  font-size: clamp(1.75rem, 3vw, 3rem);
  letter-spacing: -0.03em;
}

.hero-sub {
  color: var(--paper);
  font-size: 1rem;
  font-weight: 400;
}

.hero-sub-clay {
  color: var(--clay);
  font-size: 1.25rem;
  font-weight: 700;
}

.method-clay {
  background: var(--clay);
  color: var(--paper);
}

.method-clay .method-intro,
.method-clay .method-intro em {
  color: var(--paper);
}

.method-clay .section-label {
  color: var(--ink);
}

.program-intro {
  padding: var(--space-section) clamp(1.5rem, 6vw, 6rem);
}

.program-intro h2 {
  font-size: clamp(2.5rem, 6vw, 6rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin: 2rem 0 0;
  max-width: 14ch;
}

.program-intro-emphasis {
  color: var(--clay);
}

.editorial-page .prose {
  max-width: var(--reading-width);
}

.editorial-page .two-col,
.editorial-page .program-inner > *,
.editorial-page .program-block > * {
  min-width: 0;
}

.editorial-page .remaining-hero-copy {
  max-width: var(--reading-width);
}

.editorial-page .editorial-split.remaining-section {
  display: grid;
  gap: clamp(2rem, 8vw, 8rem);
  grid-template-areas:
    "label label"
    "statement copy";
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: 0 auto;
  max-width: var(--content-width);
  padding: var(--space-section) clamp(1.5rem, 4vw, 4rem);
  text-align: left;
}

.editorial-page .editorial-split.remaining-section .section-label {
  grid-area: label;
  margin: 0;
}

.editorial-page .editorial-split.remaining-section > .statement {
  align-self: start;
  grid-area: statement;
  margin: 0;
  max-width: 12ch;
  padding: 0;
}

.editorial-page .editorial-split.remaining-section > .two-col {
  border-left: 1px solid var(--rule);
  display: block;
  grid-area: copy;
  padding-left: clamp(2rem, 6vw, 6rem);
}

.editorial-page .editorial-split.remaining-section .prose + .prose {
  margin-top: 1.5rem;
}

.editorial-page .remaining-section .remaining-section-supplement {
  grid-column: 1 / -1;
  min-width: 0;
}

.editorial-page .remaining-image-free-hero {
  min-height: 0;
}

.editorial-page .remaining-image-led {
  grid-template-columns: minmax(0, 1fr);
}

.editorial-page .remaining-program-split {
  border: 0;
  gap: clamp(2rem, 6vw, 6rem);
  margin: 0;
  max-width: none;
  padding: 0;
}

.remaining-program-split .program-body {
  padding-left: clamp(2rem, 4vw, 4rem);
}

.tx {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: 0;
}

.tx.flip .tx-img {
  order: 2;
}

.tx.flip .tx-copy {
  order: 1;
}

.program-media-edge {
  align-self: stretch;
  overflow: hidden;
}

.program-media-edge img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.program-media-focal-center {
  object-position: center;
}

.program-media-focal-upper {
  object-position: center 20%;
}

.tx-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 6vw, 6rem);
}

.tx-tag {
  color: var(--secondary-ink);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  margin: 0 0 2rem;
  text-transform: uppercase;
}

.tx-copy h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 2rem;
}

.tx-copy h2 em {
  color: var(--clay);
  font-style: italic;
}

.tx-copy > p:not(.tx-tag) {
  color: var(--secondary-ink);
  line-height: 1.75;
  margin: 0 0 2.5rem;
  max-width: var(--reading-width);
}

.tx-link {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.2rem;
  text-decoration: none;
  width: fit-content;
}

.tx-link:hover {
  border-color: var(--clay);
}

main .split-hero-copy .cta-text svg,
main .editorial-split .cta-text svg {
  /* Temporary sizing bridge for canonical body markup retained through Tasks 5–10. */
  fill: none;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.4;
  width: 14px;
}

main .faq-item summary .faq-icon {
  fill: none;
  flex-shrink: 0;
  height: 20px;
  stroke: var(--secondary-ink);
  stroke-width: 1.2;
  transition: transform 300ms ease;
  width: 20px;
}

main details[open] .faq-icon {
  transform: rotate(45deg);
}

.final-cta {
  border-top: 1px solid var(--rule);
  padding: var(--space-section) 1.5rem;
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(2.5rem, 6vw, 6rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin: 0 auto 2.5rem;
  max-width: 16ch;
}

.final-cta a {
  background: var(--ink);
  border-radius: 999px;
  color: var(--paper);
  display: inline-block;
  padding: 0.9rem 1.4rem;
  text-decoration: none;
}

.final-cta a:hover {
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--clay);
}

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  color: var(--ink);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 4vw, 4rem);
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration-color: var(--clay);
  text-decoration-thickness: 2px;
}

.editorial-demo-form-wrapper,
.editorial-form-wrapper {
  max-width: 38rem;
}

.editorial-demo-form,
.editorial-form,
.editorial-demo-form .form-row,
.editorial-form .form-row {
  display: grid;
  gap: 1.25rem;
}

.editorial-demo-form .form-row,
.editorial-form .form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editorial-demo-form .form-group,
.editorial-form .form-group {
  display: grid;
  gap: 0.5rem;
}

.editorial-demo-form label,
.editorial-form label,
.form-demo-notice {
  color: var(--secondary-ink);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.editorial-demo-form input,
.editorial-form input,
.editorial-demo-form select,
.editorial-form select {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
  min-height: 3.25rem;
  padding: 0.75rem 0.9rem;
  width: 100%;
}

.editorial-demo-form input:focus-visible,
.editorial-form input:focus-visible,
.editorial-demo-form select:focus-visible,
.editorial-form select:focus-visible,
.editorial-demo-form button:focus-visible,
.editorial-form button:focus-visible,
.form-demo-controls button:focus-visible {
  box-shadow: var(--focus-ring);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.editorial-demo-form button,
.editorial-form button,
.form-demo-controls button {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
  cursor: pointer;
  justify-self: start;
  padding: 0.85rem 1.1rem;
}

.form-demo-controls {
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}

.form-demo-controls .form-demo-notice {
  margin: 0;
}

.form-demo-controls button {
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
}

.editorial-demo-form button:not(:disabled):hover,
.editorial-form button:not(:disabled):hover,
.form-demo-controls button:not(:disabled):hover {
  box-shadow: 0 0 0 2px var(--clay);
}

.editorial-demo-form button:not(:disabled):active,
.editorial-form button:not(:disabled):active,
.form-demo-controls button:not(:disabled):active {
  transform: translateY(1px);
}

.editorial-demo-form :disabled,
.editorial-form :disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.insurance-result,
.appointment-result {
  background: var(--warm-surface);
  border-left: 3px solid var(--clay);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.insurance-result h2,
.appointment-result h2 {
  margin-top: 0;
}

.media-fade-enabled [data-media-fade] {
  opacity: 0;
  transition: opacity 360ms ease;
}

.media-fade-enabled [data-media-fade].is-media-loaded,
.media-fade-enabled [data-media-fade].is-media-error {
  opacity: 1;
}

@media (max-width: 960px) {
  .nav {
    min-height: 4.5rem;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
  }

  .nav-links {
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 1rem 1.5rem 1.5rem;
    position: absolute;
    right: 0;
    top: 100%;
  }

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

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
  }

  .nav-links .book-link {
    margin-top: 0.5rem;
    text-align: center;
  }

  .page-hero {
    min-height: 68vh;
    padding: 132px 22px 70px;
  }

  .page-hero h1 {
    font-size: clamp(45px, 13vw, 68px);
  }

  main .section,
  main .form-section {
    padding: 76px 22px;
  }

  main .section-centered {
    display: block;
  }

  main .section-centered > .statement,
  main .section-centered > .headline {
    margin-bottom: 38px;
  }

  main .tx-img {
    min-height: 0;
  }

  .split-hero,
  .editorial-split,
  .image-led,
  .team-profile,
  .tx,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .tx.flip .tx-img,
  .tx.flip .tx-copy {
    order: initial;
  }

  .team-profile-reverse .team-profile-media,
  .team-profile-reverse .team-profile-copy {
    order: initial;
  }

  .team-profile-full {
    min-height: 0;
  }

  .split-hero {
    min-height: 0;
  }

  .split-hero-copy {
    padding: 74px 22px 54px;
  }

  .split-hero-copy h1 {
    font-size: clamp(44px, 12vw, 64px);
  }

  .split-hero-media,
  .image-led-media,
  .team-profile-media {
    min-height: min(72vw, 32rem);
  }

  .editorial-split > :last-child {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 2rem;
  }

  .editorial-page .editorial-split.remaining-section {
    gap: 2rem;
    grid-template-areas:
      "label"
      "statement"
      "copy";
    grid-template-columns: 1fr;
  }

  .editorial-page .editorial-split.remaining-section > .two-col {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 2rem;
  }

  .remaining-program-split .program-body {
    padding-left: 0;
  }

  .editorial-demo-form .form-row,
  .editorial-form .form-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  main .hero-content,
  main .hero h1,
  main .hero-foot {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .nav-toggle::before,
  .nav-toggle::after,
  .nav-toggle span,
  .nav-links a,
  main .faq-item summary .faq-icon,
  .media-fade-enabled [data-media-fade] {
    transition: none;
  }
}
