:root {
  --slate: #1c3a5e;      /* the deep end of the logo's blue gradient */
  --blue: #2a5d9c;       /* its middle, for actions on light */
  --blue-d: #214b80;
  --sky: #7fb8e6;        /* the light end, for small accents on dark */
  --ink: #231b17;        /* "DENTAL" in the logo */
  --ink-2: #51463f;
  --stone: #f4f1ec;      /* the logo's paper */
  --line: #ddd8d0;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.02em; margin: 0 0 .45em; }
h2 { font-size: clamp(36px, 3.6vw, 52px); }
h3, h4 { font-family: var(--sans); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--sky); margin: 0 0 22px; }
.eyebrow .rule { width: 72px; height: 6px; color: var(--sky); flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 2px; font: 600 16px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; transition: background .15s; white-space: nowrap; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-d); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #eaf3fb; }
.btn--outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.1); }
.btn--outline-dark { border-color: var(--ink); color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 20px; }
.link-tel { display: inline-block; margin-left: 18px; font-weight: 600; color: var(--ink); }
.link-tel--light, .link-light { color: #fff; font-weight: 600; }
.link-more { font-weight: 600; text-decoration: none; }

/* utility + header */
.utility { background: var(--ink); color: #e9e4e1; font-size: 14px; }
.utility a { color: #fff; }
.utility__in { display: flex; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.utility b { color: #fff; font-weight: 600; }
.header { background: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 24px; height: 88px; }
.logo img { width: 158px; }
.nav { display: flex; gap: 22px; margin-left: auto; white-space: nowrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--blue); }
.header__act { display: flex; align-items: center; gap: 18px; }
.tel { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.menu { display: none; }

/* hero: split, logo blue + photograph, real case on the seam */
.hero { position: relative; padding: 0; display: grid; grid-template-columns: 46% 54%; height: 760px; background: var(--ink); color: #fff; }
.hero__panel { display: flex; align-items: center; justify-content: flex-end; padding: 0 64px 90px max(32px, calc((100vw - var(--wrap)) / 2 + 32px)); }
.hero__txt { max-width: 540px; }
.hero .btn--lg { padding: 0 24px; font-size: 16px; }
h1 { font-size: clamp(44px, 4.1vw, 60px); line-height: 1; }
.lede { font-size: 19px; line-height: 1.55; color: rgba(255,255,255,.88); margin-top: 26px; }
.proof { margin: 0; font-size: 15px; color: rgba(255,255,255,.88); }
.proof a { color: #fff; font-weight: 600; }
.stars { color: #f0b23a; letter-spacing: 2px; }
.hero__photo { overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 40%; }
.hero__case { position: absolute; left: calc(46% - 60px); bottom: 40px; width: 290px; margin: 0; background: #fff; color: var(--ink); padding: 8px 8px 12px; box-shadow: 0 20px 44px rgba(0,0,0,.28); }
.mini-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mini-pair > div { position: relative; }
.mini-pair img { aspect-ratio: 5 / 4; object-fit: cover; }
.hero__case figcaption { font-size: 13px; color: var(--ink-2); margin-top: 9px; line-height: 1.4; padding: 0 2px; }
.hero__case b { color: var(--ink); }

.tag { position: absolute; left: 8px; top: 8px; background: rgba(35,27,23,.8); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 3px 7px; }
.tag--after { background: var(--blue); }

section { padding: 120px 0; }

/* services: editorial rows */
.services__h { font-size: clamp(40px, 4.6vw, 68px); max-width: 12em; margin-bottom: 72px; }
.row { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: center; margin-bottom: 96px; }
.row--flip { grid-template-columns: 5fr 7fr; }
.row--flip .row__img { order: 2; }
.row__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.row__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; aspect-ratio: auto; }
.row__pair > div { position: relative; }
.row__pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 70%; }
.row__txt h3 { font: 400 36px/1.08 var(--serif); letter-spacing: -.01em; margin-bottom: 18px; }
.row__txt > p { color: var(--ink-2); }
.row__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 6px 0 28px; color: var(--ink) !important; font-weight: 600; font-size: 15px; }
.row__facts span::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--sky); border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.row__q { margin: 8px 0 28px; font: 400 21px/1.4 var(--serif); }
.row__q cite { display: block; font: 600 14px var(--sans); font-style: normal; margin-top: 8px; color: var(--ink-2); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; }
.steps li { counter-increment: s; padding-left: 40px; position: relative; color: var(--ink-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; font: 700 15px/1.6 var(--sans); color: var(--blue); }
.steps b { color: var(--ink); }
.also { margin: 0; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }
.also a { color: var(--ink); font-weight: 600; text-decoration: none; }
.also a:hover { color: var(--blue); }

/* gallery: dark band */
.gallery { background: var(--ink); color: #fff; }
.gal__h { text-align: center; font-size: clamp(44px, 6vw, 88px); max-width: 11em; margin: 0 auto; }
.gal__rule { display: block; width: 260px; height: 8px; color: var(--sky); margin: 30px auto 72px; }
.feature { margin: 0; display: grid; grid-template-columns: 7fr 4fr; gap: 64px; align-items: center; }
.feature__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.feature__pair > div, .pair > div { position: relative; }
.feature__pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; }
.feature__cap h3 { font: 400 34px/1.1 var(--serif); margin-bottom: 18px; }
.feature__cap p { color: #d3cbc6; margin-bottom: 28px; }
.feature__cap .btn { margin-bottom: 18px; }
.feature__cap .link-light { display: block; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 72px; }
.case { margin: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pair img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.case figcaption { font-size: 14px; color: #c9c0bb; margin-top: 12px; line-height: 1.45; }
.case figcaption b { color: #fff; }

/* team */
.team { padding-bottom: 0; }
.paino { margin: 0 auto 96px; max-width: 980px; text-align: center; }
.paino p { font: 300 clamp(26px, 2.7vw, 38px)/1.3 var(--serif); letter-spacing: -.01em; margin-bottom: 18px; }
.paino cite, .kadie cite { font-style: normal; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.team__h { margin-bottom: 40px; }
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.doc img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 12%; margin-bottom: 20px; }
.doc p { color: var(--ink-2); font-size: 15px; }
.doc a { font-weight: 600; text-decoration: none; font-size: 15px; }
.kadie { margin: 64px 0 0; padding: 32px 0 0; border-top: 1px solid var(--line); max-width: 860px; }
.kadie cite { display: block; margin-top: 14px; }
.kadie p { font: 400 23px/1.4 var(--serif); margin: 0; }
.crown { margin-bottom: 96px; padding: 56px 0 0; border-top: 1px solid var(--line); }
.crown h3 { font: 400 36px/1.08 var(--serif); margin-bottom: 32px; }
.crown__steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.crown__steps li { color: var(--ink-2); }
.crown__steps span { display: block; font: 300 96px/1 var(--serif); color: var(--blue); margin-bottom: 14px; }
.crown__steps b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.wall__h { margin-top: 96px; margin-bottom: 24px; font-size: 18px; }
.wall { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(9, 1fr); background: #6b6663; }
.wall li { position: relative; }
.wall img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; }
.wall li::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); }
.wall span { position: absolute; left: 12px; right: 8px; bottom: 10px; z-index: 1; color: rgba(255,255,255,.85); font-size: 13px; line-height: 1.3; }
.wall b { display: block; color: #fff; font-size: 15px; }

/* sedation */
.calm { background: var(--ink); color: #fff; }
.calm__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 88px; align-items: center; }
.calm__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 50%; }
.calm h2 { font-size: clamp(40px, 4.2vw, 60px); }
.calm__lede { font-size: 18px; color: #d8d0cb; }
.calm__list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.calm__list li { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.2); color: #d8d0cb; font-size: 16px; }
.calm__list b { color: #fff; }
.calm__quote { margin: 0 0 32px; }
.calm__quote p { font: 300 24px/1.38 var(--serif); margin-bottom: 10px; }
.calm__quote cite { font-style: normal; font-size: 14px; font-weight: 600; color: var(--sky); }

/* book */
.book { background: var(--stone); }
.book__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.book__form { background: #fff; padding: 52px; }
.book__form h2 { font-size: clamp(36px, 3.6vw, 52px); }
form { display: grid; gap: 6px; margin-top: 24px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row2 > div { display: grid; gap: 6px; }
label { font-weight: 600; font-size: 15px; margin-top: 10px; }
.req, .opt { font-weight: 400; color: #6c625d; font-size: 13px; margin-left: 6px; }
input, select { font: inherit; padding: 12px 14px; border: 1.5px solid #b9b4b1; border-radius: 2px; background: #fff; width: 100%; }
form .btn { margin-top: 22px; justify-self: start; border: 0; cursor: pointer; }
.book__side { display: grid; gap: 40px; padding-top: 12px; }
.side + .side { padding-top: 36px; border-top: 1px solid var(--line); }
.side > p { color: var(--ink-2); font-size: 16px; }
.addr { font-size: 22px; font-weight: 600; line-height: 1.35; color: var(--ink) !important; }
.hours { border-collapse: collapse; margin: 6px 0 20px; }
.hours th, .hours td { text-align: left; padding: 7px 28px 7px 0; border-bottom: 1px solid var(--line); }
.small { font-size: 14px !important; color: var(--ink-2); margin: 0; }

/* footer */
.footer { background: var(--ink); color: #d6cfcb; padding: 72px 0 40px; font-size: 15px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1.1fr 1.1fr 1fr; gap: 40px; }
.footer__logo { width: 240px; margin-bottom: 20px; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.footer__small { margin-top: 48px; font-size: 13px; }
.mbar { display: none; }

/* responsive */
@media (max-width: 1280px) {
  .nav { display: none; }
  .header__act { margin-left: auto; }
}
@media (max-width: 1000px) {
  .row, .row--flip, .feature, .calm__grid, .book__grid { grid-template-columns: 1fr; }
  .row--flip .row__img { order: 0; }
  .docs { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .wall { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 60px; }
  .wrap { padding: 0 20px; }
  .utility__addr { display: none; }
  .utility { font-size: 13px; }
  .header__in { height: 64px; gap: 12px; }
  .logo img { width: 116px; }
  .header__act { display: none; }
  .menu { display: block; margin-left: auto; position: relative; }
  .menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; cursor: pointer; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span { display: block; width: 22px; height: 2px; background: var(--ink); }
  .menu__panel { position: absolute; right: -20px; top: 54px; width: 100vw; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.12); display: grid; padding: 8px 20px 16px; }
  .menu__panel a { padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
  section { padding: 72px 0; }
  .hero { display: flex; flex-direction: column; height: auto; }
  .hero__photo { order: -1; height: 300px; }
  .hero__panel { padding: 30px 20px 92px; justify-content: flex-start; }
  .hero .eyebrow { margin-bottom: 14px; }
  h1 { font-size: 38px; }
  .lede { font-size: 17px; margin-top: 16px; }
  .cta { margin: 22px 0 16px; }
  .cta .btn { width: 100%; min-height: 52px; }
  .hero__case { left: auto; right: 14px; top: 196px; bottom: auto; width: 168px; padding: 5px 5px 7px; }
  .hero__case figcaption { font-size: 11px; margin-top: 5px; }
  .hero__case .tag { font-size: 9px; padding: 2px 5px; left: 4px; top: 4px; }
  h2 { font-size: 34px; }
  .services__h { font-size: 36px; margin-bottom: 40px; }
  .row { gap: 24px; margin-bottom: 64px; }
  .row__txt h3 { font-size: 28px; }
  .row__q { font-size: 19px; }
  .crown__steps { grid-template-columns: 1fr; gap: 20px; }
  .crown__steps span { font-size: 56px; margin-bottom: 6px; }
  .crown h3 { font-size: 28px; }
  .crown { margin-bottom: 64px; padding-top: 40px; }
  .gal__h { font-size: 40px; }
  .gal__rule { width: 180px; margin: 22px auto 44px; }
  .feature { gap: 28px; }
  .feature__cap h3 { font-size: 27px; }
  .thumbs { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
  .paino { margin-bottom: 56px; text-align: left; }
  .paino p { font-size: 23px; }
  .docs { grid-template-columns: 1fr; gap: 36px; }
  .doc { display: grid; grid-template-columns: 120px 1fr; gap: 0 16px; }
  .doc img { width: 120px; grid-row: span 3; margin: 0; }
  .doc h3 { font-size: 17px; }
  .doc p { font-size: 14px; margin-bottom: 6px; }
  .kadie { grid-template-columns: 1fr; gap: 12px; margin-top: 48px; }
  .kadie p { font-size: 20px; }
  .wall__h { margin-top: 64px; font-size: 17px; }
  .wall { grid-template-columns: repeat(3, 1fr); }
  .wall span { font-size: 11px; left: 8px; bottom: 6px; }
  .wall b { font-size: 13px; }
  .calm__grid { gap: 36px; }
  .calm__img { aspect-ratio: 4 / 3; }
  .calm h2 { font-size: 36px; }
  .calm__quote p { font-size: 21px; }
  .link-tel { display: block; margin: 14px 0 0; }
  .book { padding: 0 0 56px; background: #fff; }
  .book .wrap { padding: 0; }
  .book__form { padding: 56px 20px 40px; background: var(--stone); }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .book__side { padding: 0 20px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / 3; }
  .mbar { display: grid; grid-template-columns: 1.2fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
  .mbar a { display: flex; text-align: center; padding: 0 8px; align-items: center; justify-content: center; height: 60px; font-weight: 700; text-decoration: none; background: #fff; color: var(--ink); font-size: 15px; }
  .mbar .mbar__book { background: var(--blue); color: #fff; }
}
