:root {
  color-scheme: light;
  --ink: #161617;
  --muted: #6e6e73;
  --soft: #f5f5f7;
  --line: rgba(22, 22, 23, 0.14);
  --blue: #0071e3;
  --green: #2e7d68;
  --warm: #c69054;
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0 24px;
  background: rgba(251, 251, 253, 0.78);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.28), transparent 36%),
    linear-gradient(145deg, #1f7a68 0%, #65aa95 100%);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(46, 125, 104, 0.22);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
  display: block;
}

.logo-tooth {
  fill: #fff;
}

.logo-leaf {
  fill: #dff4e7;
  stroke: rgba(22, 22, 23, 0.08);
  stroke-width: 0.5;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: #303033;
  font-size: 12px;
}

.nav-links a,
.header-cta {
  transition: color 180ms ease;
}

.nav-links a:hover,
.header-cta:hover {
  color: var(--blue);
}

.header-cta {
  justify-self: end;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.hero {
  min-height: 100svh;
  padding: 116px 22px 36px;
  background:
    radial-gradient(circle at 50% 28%, rgba(213, 233, 226, 0.7), transparent 34%),
    linear-gradient(#fbfbfd 0%, #fff 60%);
  overflow: hidden;
}

.hero-copy {
  width: min(100%, 980px);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3 {
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
  text-wrap: balance;
}

p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7.3vw, 100px);
  line-height: 1.08;
  font-weight: 800;
}

.lead {
  max-width: 680px;
  margin: 24px auto 0;
  color: #424245;
  font-size: clamp(19px, 2.1vw, 28px);
  line-height: 1.55;
  font-weight: 650;
}

.hero-actions,
.access-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.primary-button {
  color: #fff;
  background: var(--blue);
}

.secondary-button {
  color: var(--blue);
  background: rgba(0, 113, 227, 0.08);
}

.hero-media {
  width: min(1120px, 100%);
  margin: 44px auto 0;
}

.hero-media img {
  width: 100%;
  height: clamp(350px, 54vw, 680px);
  object-fit: cover;
  object-position: 64% center;
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(35, 61, 72, 0.16);
}

.section-dark {
  background: #000;
  color: #f5f5f7;
}

.intro {
  display: grid;
  place-items: center;
  min-height: 92svh;
  padding: 100px 22px;
}

.copy-block {
  width: min(100%, 920px);
}

.copy-block h2,
.section-heading h2,
.wide-copy h2,
.access-copy h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 84px);
  line-height: 1.08;
  font-weight: 800;
}

.copy-block p:last-child {
  max-width: 720px;
  margin: 34px 0 0 auto;
  color: #d2d2d7;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 650;
}

.feature-stage,
.orthodontics,
.treatment {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 110px 22px;
}

.section-heading {
  margin-bottom: 54px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(36px, 5.8vw, 76px);
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: stretch;
  min-height: 520px;
  margin-top: 28px;
  background: var(--soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-panel.image-left {
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
}

.feature-panel.image-left .panel-copy {
  order: 2;
}

.feature-panel.image-left img {
  order: 1;
}

.panel-copy {
  align-self: center;
  padding: clamp(30px, 5vw, 72px);
}

.number {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--warm);
  font-size: 14px;
  font-weight: 800;
}

.panel-copy h3 {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 64px);
  line-height: 1.06;
}

.panel-copy p {
  margin: 24px 0 0;
  color: #424245;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 600;
}

.feature-panel img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.feature-panel:nth-of-type(2) img {
  object-position: 58% center;
}

.care-strip {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: clamp(28px, 5vw, 64px);
  color: #fff;
  background: #161617;
  border-radius: var(--radius);
}

.care-strip span {
  display: block;
  margin-bottom: 10px;
  color: #93c7ba;
  font-size: 14px;
  font-weight: 800;
}

.care-strip strong {
  display: block;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.08;
}

.care-strip p {
  margin: 0;
  color: #e8e8ed;
  font-size: clamp(17px, 1.7vw, 24px);
  font-weight: 650;
}

.wide-message {
  position: relative;
  min-height: 92svh;
  background: #000;
  overflow: hidden;
}

.wide-message img {
  width: 100%;
  height: 100svh;
  min-height: 720px;
  object-fit: cover;
  object-position: center;
  opacity: 0.88;
}

.wide-message::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.36) 58%, rgba(0, 0, 0, 0.06));
}

.wide-copy {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: max(22px, calc((100vw - var(--max)) / 2 + 22px));
  width: min(560px, calc(100% - 44px));
  color: #fff;
  transform: translateY(-50%);
}

.wide-copy p:last-child {
  margin-top: 24px;
  color: #f5f5f7;
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 650;
}

.orthodontics {
  background: #fff;
}

.ortho-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: 34px;
}

.ortho-hero h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 82px);
  line-height: 1.08;
  font-weight: 800;
}

.ortho-hero > p {
  margin: 0 0 10px;
  color: #424245;
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 650;
}

.ortho-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.88fr);
  gap: 18px;
  align-items: stretch;
}

.ortho-card,
.point-card {
  background: var(--soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.ortho-card.main {
  display: grid;
  grid-template-rows: auto 1fr;
}

.ortho-card.main img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 60% center;
}

.ortho-card.main div {
  padding: clamp(28px, 4vw, 54px);
}

.ortho-card h3,
.point-card h3 {
  margin: 0;
  line-height: 1.18;
}

.ortho-card h3 {
  font-size: clamp(30px, 4.2vw, 54px);
}

.ortho-card p,
.point-card p {
  margin: 18px 0 0;
  color: #424245;
  font-size: 17px;
  font-weight: 600;
}

.ortho-points {
  display: grid;
  gap: 18px;
}

.point-card {
  padding: clamp(24px, 3vw, 36px);
}

.point-card span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.point-card h3 {
  font-size: clamp(24px, 3vw, 34px);
}

.chew-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.chew-grid span {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 10px;
  color: #1d4d41;
  background: #edf6f3;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.treatment-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  background: var(--soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.treatment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
}

.treatment-card.highlight {
  background: #f1f7ff;
}

.treatment-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.treatment-card h3 {
  margin: 24px 24px 0;
  font-size: 28px;
  line-height: 1.2;
}

.treatment-card p {
  margin: 12px 24px 28px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.service-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
}

.service-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  color: #2b2b2d;
  background: var(--soft);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.service-cloud a:hover {
  color: var(--blue);
}

.access {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 26px;
  align-items: stretch;
  padding: 110px max(22px, calc((100vw - var(--max)) / 2 + 22px));
  background: var(--soft);
}

.access-copy,
.schedule {
  padding: clamp(28px, 4vw, 56px);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
}

.access-copy h2 {
  font-size: clamp(32px, 4.4vw, 58px);
}

.access-copy > p {
  margin: 24px 0 0;
  color: #424245;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 650;
}

.access .access-actions {
  justify-content: flex-start;
}

.schedule h3 {
  margin: 0 0 22px;
  font-size: 30px;
}

.schedule-table {
  overflow: hidden;
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.schedule-table .time-col {
  width: 23%;
}

.schedule-table th,
.schedule-table td {
  height: 46px;
  padding: 8px 6px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: #2b2b2d;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.schedule-table thead th {
  background: #f1f6f4;
  color: #356c5e;
}

.schedule-table tr:last-child th,
.schedule-table tr:last-child td {
  border-bottom: 0;
}

.schedule-table th:last-child,
.schedule-table td:last-child {
  border-right: 0;
}

.schedule-table tbody th {
  letter-spacing: -0.01em;
}

.note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px max(22px, calc((100vw - var(--max)) / 2 + 22px));
  color: #6e6e73;
  font-size: 13px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.mobile-break {
  display: none;
}

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

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 96px;
  }

  .feature-panel,
  .feature-panel.image-left,
  .care-strip,
  .ortho-hero,
  .ortho-layout,
  .access {
    grid-template-columns: 1fr;
  }

  .feature-panel,
  .feature-panel.image-left {
    min-height: 0;
  }

  .feature-panel.image-left .panel-copy,
  .feature-panel.image-left img {
    order: initial;
  }

  .feature-panel img {
    min-height: 340px;
  }

  .treatment-grid,
  .chew-grid {
    grid-template-columns: 1fr;
  }

  .access {
    padding: 86px 18px;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 13px;
  }

  .header-cta {
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    padding-inline: 16px;
  }

  h1 {
    font-size: clamp(36px, 10.8vw, 46px);
    line-height: 1.16;
  }

  .lead {
    font-size: 19px;
    line-height: 1.75;
  }

  .mobile-break {
    display: block;
  }

  .hero-actions,
  .access-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-media img {
    height: 430px;
    object-position: 59% center;
  }

  .intro,
  .feature-stage,
  .orthodontics,
  .treatment {
    padding: 82px 16px;
  }

  .copy-block p:last-child,
  .panel-copy p,
  .wide-copy p:last-child {
    font-size: 17px;
  }

  .copy-block h2,
  .section-heading h2,
  .ortho-hero h2,
  .wide-copy h2,
  .access-copy h2 {
    font-size: clamp(31px, 8.9vw, 42px);
    line-height: 1.2;
  }

  .ortho-hero {
    margin-bottom: 24px;
  }

  .ortho-card.main img {
    aspect-ratio: 4 / 3;
    object-position: 58% center;
  }

  .service-cloud {
    justify-content: flex-start;
    padding: 18px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .panel-copy {
    padding: 30px 22px;
  }

  .panel-copy h3 {
    font-size: clamp(28px, 8.2vw, 38px);
    line-height: 1.22;
  }

  .wide-message img {
    height: 740px;
    object-position: 70% center;
  }

  .wide-message::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48) 52%, rgba(0, 0, 0, 0.14));
  }

  .wide-copy {
    top: 78px;
    left: 18px;
    width: calc(100% - 36px);
    transform: none;
  }

  .access-copy,
  .schedule {
    min-width: 0;
    padding: 26px 16px;
  }

  .schedule-table {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .schedule-table .time-col {
    width: 28%;
  }

  .schedule-table th,
  .schedule-table td {
    height: 44px;
    padding: 7px 2px;
    font-size: 12px;
  }

  .schedule-table tbody th {
    font-size: 11.5px;
  }

  .footer {
    display: block;
    padding: 28px 18px;
  }

  .footer p + p {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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