@font-face {
  font-family: "DM Sans";
  src: url("/preview/odont/assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/preview/odont/assets/instrument-serif.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/preview/odont/assets/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f9f3;
  --white: #fff;
  --ink: #173b33;
  --deep: #143933;
  --muted: #4c645b;
  --green: #2c6857;
  --accent: #d4ef9e;
  --mist: #edf3e7;
  --line: #d5e1d3;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --gutter: clamp(1.25rem, 6vw, 6rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #458564; outline-offset: 4px; }
[id] { scroll-margin-top: 1.5rem; }

.container {
  width: min(100% - 2 * var(--gutter), 78rem);
  margin-inline: auto;
}

.symbols { position: absolute; height: 0; width: 0; overflow: hidden; }
.icon {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: .5rem;
  left: .5rem;
  padding: .55rem .9rem;
  background: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header { background: var(--paper); }
.header-inner {
  min-height: 5.15rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .6rem;
  text-decoration: none;
}
.brand img { flex: none; width: 1.85rem; height: auto; }
.brand-wordmark {
  display: grid;
  gap: .22rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.13;
}
.brand-wordmark small {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .09em;
}

.main-nav { display: flex; gap: clamp(1.3rem, 3vw, 2.85rem); align-items: center; }
.main-nav a {
  padding-block: .6rem;
  color: #34564c;
  font-size: .925rem;
  font-weight: 600;
  text-decoration: none;
}
.main-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .35em; }
.header-appointment { justify-self: end; }
.menu-toggle { display: none; }

.button {
  min-height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: fit-content;
  padding: .64rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  font-size: .925rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.button-outline { border-color: #9db7a4; color: var(--ink); }
.button-outline:hover { background: #e8efe2; border-color: #7ca088; }
.header-appointment { min-height: 2.65rem; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 50.5% 49.5%;
  width: min(calc(100% - clamp(1.5rem, 4.8vw, 5rem)), 97rem);
  margin: .4rem auto 0;
  overflow: hidden;
  border-radius: 1.55rem;
  isolation: isolate;
  background: radial-gradient(ellipse at 6% 100%, #2b6352 0, transparent 64%), #112e29;
  color: var(--paper);
}
.hero::before {
  position: absolute;
  z-index: -1;
  left: -12rem;
  bottom: -23rem;
  width: 38rem;
  height: 38rem;
  content: "";
  border: 1px solid rgb(209 239 206 / .16);
  border-radius: 50%;
  box-shadow: 0 0 0 2.5rem rgb(209 239 206 / .045), 0 0 0 5rem rgb(209 239 206 / .045), 0 0 0 7.5rem rgb(209 239 206 / .03);
  pointer-events: none;
}
.hero-content {
  align-self: center;
  padding: clamp(3.25rem, 7vw, 7rem) clamp(1.55rem, 4.7vw, 5.4rem);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .9rem;
  color: var(--green);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; }
.hero-eyebrow { color: var(--accent); margin-bottom: 1.35rem; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .96;
}
.hero h1 { font-size: clamp(4rem, 6.9vw, 7.25rem); }
.hero h1 em { display: block; color: var(--accent); }
.hero-copy {
  max-width: 28rem;
  margin-top: 1.65rem;
  color: #e0eae0;
  font-size: clamp(1.025rem, 1.45vw, 1.17rem);
}
.hero-copy strong { color: var(--white); font-weight: 700; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.7rem; }
.button-primary { background: var(--accent); color: #172f1e; }
.button-primary:hover { background: #e1f7b6; }
.button-hero-secondary { border-color: #79968b; color: var(--paper); }
.button-hero-secondary:hover { background: #255147; border-color: #a7bfb3; }
.hero .button:focus-visible { outline-color: var(--accent); }

.hero-media {
  position: relative;
  display: grid;
  min-width: 0;
  margin: clamp(.85rem, 2vw, 1.9rem) clamp(.85rem, 2vw, 1.9rem) clamp(.85rem, 2vw, 1.9rem) 0;
}
.hero-photo {
  position: relative;
  min-width: 0;
  min-height: 28rem;
  overflow: hidden;
  border: 1px solid rgb(248 249 243 / .2);
  border-radius: 1rem;
  background: #30483f;
}
.hero-photo img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 54%;
  transition: transform 650ms cubic-bezier(.2, .75, .3, 1);
}
.hero-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(20deg, rgb(10 28 23 / .56), transparent 42%);
}
.hero-tour {
  position: absolute;
  z-index: 1;
  bottom: clamp(.8rem, 2vw, 1.65rem);
  left: clamp(.8rem, 2vw, 1.65rem);
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .63rem 1rem .63rem .65rem;
  border: 1px solid rgb(255 255 255 / .58);
  border-radius: .75rem;
  background: var(--paper);
  box-shadow: 0 .55rem 1.8rem rgb(10 28 23 / .25);
  color: var(--ink);
  text-decoration: none;
  transition: transform 200ms ease, background-color 200ms ease;
}
.hero-tour:focus-visible { outline-color: var(--accent); }
.hero-tour strong, .hero-tour small { display: block; }
.hero-tour small { color: var(--muted); font-size: .84rem; }
.hero-tour-play {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  background: var(--accent);
}
.hero-tour-play .icon { fill: currentColor; stroke-width: 1; }
.hero-tour:hover { background: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { animation: hero-reveal 640ms cubic-bezier(.2, .75, .3, 1) backwards; }
  .hero-content h1 { animation-delay: 75ms; }
  .hero-copy { animation-delay: 150ms; }
  .hero-actions { animation-delay: 225ms; }
  .hero-photo img { animation: hero-photo-settle 1s cubic-bezier(.2, .75, .3, 1) backwards; }
  .hero-tour { animation: hero-reveal 650ms 260ms cubic-bezier(.2, .75, .3, 1) backwards; }
  .hero-tour:hover { transform: translateY(-3px); }

  @keyframes hero-reveal {
    from { opacity: 0; translate: 0 16px; }
    to { opacity: 1; translate: 0 0; }
  }

  @keyframes hero-photo-settle {
    from { opacity: .45; scale: 1.055; }
    to { opacity: 1; scale: 1; }
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-media:hover .hero-photo img { transform: scale(1.025); }
}

.quick-info { margin-top: 1.15rem; background: var(--mist); border-block: 1px solid var(--line); }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-item {
  display: flex;
  align-items: center;
  gap: .95rem;
  min-width: 0;
  padding: 1.3rem clamp(.65rem, 2.5vw, 2.85rem);
  text-decoration: none;
}
.quick-item:first-child { padding-left: 0; }
.quick-item + .quick-item { border-left: 1px solid var(--line); }
.quick-item:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.quick-item strong, .quick-item small { display: block; }
.quick-item strong { font-weight: 700; }
.quick-item small { color: var(--muted); font-size: .88rem; }
.icon-circle {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: #dcebd7;
  color: var(--green);
}
.icon-circle .icon { width: 1.35rem; height: 1.35rem; }

.section-pad { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-intro {
  display: grid;
  grid-template-columns: 1fr minmax(15rem, .53fr);
  align-items: end;
  gap: 1.5rem 3rem;
  margin-bottom: 2rem;
}
.section-intro > p { max-width: 24rem; padding-bottom: .25rem; color: var(--muted); font-size: 1.05rem; }
.section-pad h2 { font-size: clamp(3rem, 5.6vw, 5.35rem); }
.section-pad h2 em { color: var(--green); }

.treatments .section-intro > div {
  min-width: 0;
  container-type: inline-size;
}
.treatments .section-intro h2 {
  font-size: min(10.1cqi, 4.75rem);
  font-weight: 700;
  white-space: nowrap;
}
.treatment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.treatment-card {
  min-width: 0;
  padding: clamp(1rem, 2.45vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: #fff;
}
.treatment-card:nth-child(3n + 1) { background: var(--mist); }
.treatment-card h3 { margin-block: 1rem .3rem; font-size: clamp(1.1rem, 1.7vw, 1.33rem); line-height: 1.2; }
.treatment-card p { max-width: 34ch; color: var(--muted); }

.clinic { border-block: 1px solid var(--line); background: var(--mist); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1.16fr .95fr .89fr;
  gap: .9rem;
}
.media-card { min-width: 0; }
.media-link {
  position: relative;
  display: block;
  height: clamp(13.5rem, 24vw, 23rem);
  border-radius: .7rem;
  overflow: hidden;
  background: #d9e0d6;
}
.media-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms ease; }
.media-link:hover img { transform: scale(1.035); }
.media-chair img { object-position: 50% 50%; }
.media-video img { object-position: 50% 39%; }
.media-video::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgb(15 44 40 / .25); }
.media-icon, .play-icon, .media-duration {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
}
.media-icon {
  right: .65rem;
  bottom: .65rem;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: .4rem;
  background: var(--paper);
  color: var(--ink);
}
.play-icon {
  top: 50%;
  left: 50%;
  width: 3.55rem;
  height: 3.55rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: var(--ink);
  background: var(--accent);
}
.play-icon .icon { fill: currentColor; stroke-width: 1; }
.media-duration {
  right: .65rem;
  bottom: .65rem;
  padding: .22rem .52rem;
  border-radius: .35rem;
  color: var(--white);
  background: #183b33;
  font-size: .8rem;
  font-weight: 700;
}
.media-card figcaption { margin: .55rem 0 0; font-size: .95rem; font-weight: 700; }
.clinic-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.55rem; }

.patient-grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: start; gap: clamp(2rem, 6vw, 6rem); }
.care-card {
  padding: clamp(1.45rem, 3.3vw, 3.1rem);
  border-radius: .95rem;
  background: var(--deep);
  color: var(--paper);
}
.care-icon { width: 2rem; height: 2rem; color: var(--accent); }
.care-card h3 { margin-top: 1rem; font: 400 clamp(2.45rem, 4vw, 4.3rem)/.98 var(--serif); }
.care-card h3 em { display: block; color: var(--accent); }
.care-card ul { display: grid; gap: .65rem; margin: 1.2rem 0; padding-left: 1.13rem; color: #e0eae0; }
.care-card li::marker { color: var(--accent); }
.care-card a { color: var(--accent); font-size: .94rem; font-weight: 600; text-underline-offset: .24em; }
.care-card a:focus-visible { outline-color: var(--accent); }
.questions h2 { margin-bottom: 1.5rem; }
.questions details { border-top: 1px solid var(--line); }
.questions details:last-child { border-bottom: 1px solid var(--line); }
.questions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  padding: 1rem .1rem;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.questions summary::-webkit-details-marker { display: none; }
.questions details[open] .icon { transform: rotate(45deg); }
.questions details p { max-width: 55ch; padding: 0 1.2rem 1rem .1rem; color: var(--muted); }
.questions details a { color: var(--ink); text-underline-offset: .18em; }

.visit { background: var(--mist); border-block: 1px solid var(--line); }
.visit-grid { display: grid; grid-template-columns: .84fr 1.16fr; align-items: center; gap: clamp(1.75rem, 6vw, 6rem); }
.visit h2 { margin-bottom: 1.8rem; }
.visit h2 em { display: block; }
.visit-detail { display: flex; align-items: start; gap: .8rem; }
.visit-detail + .visit-detail { margin-top: 1.05rem; }
.visit-detail h3 { font-size: 1rem; }
.visit-detail p { color: var(--muted); }
.visit-detail a { color: var(--ink); font-weight: 600; text-underline-offset: .18em; }
.visit-content > .button { margin-top: 1.45rem; }
.button-dark { background: var(--deep); color: var(--paper); }
.button-dark:hover { background: #225447; }

.map-card {
  overflow: hidden;
  border-radius: .8rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.map-card iframe { display: block; width: 100%; height: clamp(19rem, 30vw, 28rem); border: 0; background: #dcebd7; }
.map-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  padding: 1rem;
}
.map-caption strong, .map-caption small { display: block; }
.map-caption small { font-size: .9rem; color: var(--muted); }
.map-caption .button { min-height: 2.8rem; }

.listing { margin-top: 2rem; border-top: 1px solid #c9d8c7; }
.listing summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: fit-content;
  padding: .85rem 0 .3rem;
  cursor: pointer;
  font-size: .925rem;
  font-weight: 700;
  list-style: none;
}
.listing summary::-webkit-details-marker { display: none; }
.listing[open] summary .icon { transform: rotate(45deg); }
.listing-body { max-width: 52rem; color: var(--muted); }
.listing-body p { margin-top: .65rem; }

.site-footer { background: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 7rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.footer-brand img { flex: none; width: 1.95rem; height: auto; }
.footer-brand strong, .footer-brand small { display: block; }
.footer-brand small, .footer-inner p { color: var(--muted); font-size: .875rem; }
.footer-inner > a:last-child { font-weight: 600; text-underline-offset: .2em; }

.media-dialog {
  width: min(52rem, calc(100% - 1.5rem));
  max-height: calc(100% - 1.5rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--paper);
  color: var(--ink);
}
.media-dialog::backdrop { background: rgb(12 29 25 / .78); }
.dialog-inner { padding: clamp(.75rem, 2vw, 1.25rem); }
.dialog-header, .photo-controls { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.dialog-header { margin-bottom: .65rem; }
.dialog-header h2 { font: 700 1.05rem/1.3 var(--sans); letter-spacing: 0; }
.round-button {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--mist);
  color: var(--ink);
  cursor: pointer;
}
.round-button:hover { background: #dcebd7; }
.photo-view > img { width: 100%; height: min(65dvh, 42rem); object-fit: contain; background: #1c3731; border-radius: .45rem; }
.photo-controls { margin-top: .8rem; text-align: center; }
.video-view video {
  display: block;
  width: min(100%, 24rem);
  height: min(65dvh, 42rem);
  object-fit: contain;
  margin-inline: auto;
  border-radius: .45rem;
  background: #1c3731;
}
.video-description { max-width: 34rem; margin: .65rem auto 0; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  :root { --gutter: clamp(1.25rem, 4vw, 3rem); }
  .quick-item { gap: .55rem; }
  .quick-item .icon-circle { width: 2.4rem; height: 2.4rem; }
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(3.35rem, 7.6vw, 5rem); }
}

@media (max-width: 860px) {
  .header-inner { min-height: 4.2rem; grid-template-columns: 1fr auto auto; gap: .65rem; }
  .brand img { width: 1.55rem; }
  .brand-wordmark { font-size: .88rem; }
  .brand-wordmark small { font-size: .71rem; }
  .header-appointment { min-height: 2.55rem; padding-inline: .65rem; font-size: .85rem; }
  .header-appointment .icon { width: 1rem; height: 1rem; }
  .menu-toggle:not([hidden]) {
    display: grid;
    place-items: center;
    width: 2.55rem;
    height: 2.55rem;
    border: 1px solid #9db7a4;
    border-radius: .5rem;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }
  .main-nav { grid-row: 2; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; border-top: 1px solid var(--line); margin-bottom: .45rem; }
  .site-header.has-menu .main-nav:not(.is-open) { display: none; }
}

@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; width: calc(100% - 1.25rem); margin-top: .15rem; border-radius: 1rem; }
  .hero-content { padding: 2.4rem var(--gutter) 1.6rem; }
  .hero h1 { font-size: clamp(3.35rem, 11.8vw, 5.5rem); }
  .hero-eyebrow { margin-bottom: .9rem; }
  .hero-copy { margin-top: 1.25rem; }
  .hero-actions { margin-top: 1.3rem; }
  .hero-media { margin: 0 .6rem .6rem; }
  .hero-photo { height: clamp(15rem, 71vw, 24rem); min-height: 0; border-radius: .7rem; }
  .hero-photo img { object-position: 50% 49%; }
  .hero-tour { bottom: .6rem; left: .6rem; }
  .hero-actions .button { min-height: 2.85rem; padding-inline: .7rem; }
  .quick-info { margin-top: .7rem; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-item { padding: .75rem 0; }
  .quick-item + .quick-item { border-left: none; border-top: 1px solid var(--line); }
  .section-intro { grid-template-columns: 1fr; gap: .85rem; margin-bottom: 1.45rem; }
  .treatment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: .85rem; }
  .media-card:last-child { grid-column: 1 / -1; }
  .media-link { height: clamp(9rem, 39vw, 16rem); }
  .media-card:last-child .media-link { height: clamp(10rem, 47vw, 17rem); }
  .visit-grid { grid-template-columns: 1fr; }
  .patient-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; justify-content: flex-start; column-gap: 1.5rem; padding-block: .85rem; }
}

@media (max-width: 440px) {
  .treatment-grid { grid-template-columns: 1fr; }
  .treatment-card { display: grid; grid-template-columns: auto 1fr; gap: .35rem .75rem; }
  .treatment-card .icon-circle { grid-row: 1 / 3; width: 2.35rem; height: 2.35rem; }
  .treatment-card h3 { margin: .14rem 0 0; }
}

@media (max-width: 350px) {
  .hero-actions .button { padding-inline: .65rem; }
  .header-appointment .icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
