/* Camille Adli, DDS — design system.
   Editorial and warm: light Newsreader display type with italic accents, hairline rules, asymmetric grids
   and dark ink sections. The dental arch frames portraits; spot illustrations and fine-line dental drawings
   carry the custom graphics. Porcelain grounds, harbor ink, one sunset accent used as a glow.
   Breakpoints: 1280, 1080 (navigation collapses), 900 (tablet), 640 (phone). */

:root {
  /* Palette */
  --ink: #0b2226;          /* harbor at night: text, dark sections */
  --ink-2: #102e33;        /* raised dark surfaces */
  --ink-3: #1c4a51;        /* deep water: hovers, accents on light */
  --tide: #4b7775;
  --sea: #93b5ae;          /* sea glass */
  --foam: #dbe7e2;
  --porcelain: #f3efe7;    /* page ground */
  --porcelain-2: #ebe5d9;  /* alternate sections */
  --enamel: #faf8f3;       /* cards, raised light surfaces */
  --sand: #d8ccb6;
  --sun: #e08a5e;          /* the one accent: sunset over the harbor / the laser line. Decorative only. */
  --sun-deep: #9c4e2a;     /* accent that is safe for small text on porcelain */

  --text: var(--ink);
  --muted: #4c5f61;
  --line: rgba(11, 34, 38, .13);
  --line-strong: rgba(11, 34, 38, .28);
  --on-ink: #f3efe7;
  --on-ink-muted: rgba(243, 239, 231, .66);
  --line-ink: rgba(243, 239, 231, .14);
  --line-ink-strong: rgba(243, 239, 231, .3);

  /* Type */
  --f-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-sans: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(3.5rem, 10.2vw, 10.5rem);
  --fs-h1: clamp(3rem, 7.4vw, 7.25rem);
  --fs-h2: clamp(2.35rem, 4.6vw, 4.5rem);
  --fs-h3: clamp(1.5rem, 2.1vw, 2rem);
  --fs-h4: clamp(1.2rem, 1.45vw, 1.4rem);
  --fs-lead: clamp(1.3rem, 2vw, 1.85rem);
  --fs-body: clamp(1rem, .95rem + .2vw, 1.0625rem);
  --fs-small: .875rem;
  --fs-label: .75rem;

  /* Space and layout */
  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1400px;
  --space-section: clamp(88px, 11vw, 176px);
  --space-block: clamp(48px, 6vw, 96px);
  --header-h: 76px;
  --notice-h: 40px;
  --radius: 2px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease: var(--ease-out);
  --dur: .9s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--porcelain);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, svg, video, iframe, canvas { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--f-display); font-weight: 400; line-height: 1.1; letter-spacing: -.012em; text-wrap: balance; }
sup { font-size: .5em; line-height: 0; vertical-align: .9em; letter-spacing: 0; }
em { font-style: italic; }
strong, b { font-weight: 600; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--porcelain); }
.icon { width: 1em; height: 1em; flex: none; fill: currentColor; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100000; padding: 12px 18px; background: var(--ink); color: var(--porcelain); font-size: var(--fs-small); text-decoration: none; }
.skip-link:focus { left: 12px; top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1.5px solid var(--sun-deep); outline-offset: 3px; }
.section--ink :focus-visible, .actionbar :focus-visible, .site-footer :focus-visible, .mobile-menu :focus-visible { outline-color: var(--sun); }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(980px + 2 * var(--gutter)); }

/* 12-column grid helper */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--space-section); }
.section--tight { padding-block: var(--space-block); }
.section--alt, .section--mint, .section--sage { background: var(--porcelain-2); }
.section--enamel { background: var(--enamel); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink .muted, .section--ink .rich p, .section--ink .rich li { color: var(--on-ink-muted); }
.rule { height: 1px; border: 0; margin: 0; background: var(--line); }
.section--ink .rule { background: var(--line-ink); }

/* Section heading block: label, title, intro */
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 28px; margin-bottom: var(--space-block); }
.sec-head .label { grid-column: 1 / -1; }
.sec-head__title { grid-column: 1 / span 7; }
.sec-head__intro { grid-column: 9 / -1; align-self: end; color: var(--muted); max-width: 46ch; }
.section--ink .sec-head__intro { color: var(--on-ink-muted); }
@media (max-width: 900px) {
  .sec-head__title, .sec-head__intro { grid-column: 1 / -1; }
}

/* ---------- Type ---------- */
.display { font-family: var(--f-display); font-size: var(--fs-display); font-weight: 300; line-height: .92; letter-spacing: -.035em; }
.h1 { font-family: var(--f-display); font-size: var(--fs-h1); font-weight: 300; line-height: .98; letter-spacing: -.03em; }
.h2 { font-family: var(--f-display); font-size: var(--fs-h2); font-weight: 300; line-height: 1.02; letter-spacing: -.025em; }
.h2--bold { font-weight: 300; }
/* Long, keyword-heavy section titles read better a step down from the display size. */
.h2--long { font-size: clamp(2.1rem, 3.5vw, 3.4rem); line-height: 1.06; letter-spacing: -.02em; }
.h2 em, .h1 em, .display em { font-weight: 300; }
.h3 { font-family: var(--f-display); font-size: var(--fs-h3); font-weight: 400; line-height: 1.15; letter-spacing: -.015em; }
.h4 { font-family: var(--f-display); font-size: var(--fs-h4); font-weight: 400; line-height: 1.25; }
.lead { font-family: var(--f-display); font-size: var(--fs-lead); font-weight: 300; line-height: 1.38; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.serif { font-family: var(--f-display); }
.nowrap { white-space: nowrap; }

/* Label: small expanded caps with an optional index numeral, e.g. "01 —— Welcome" */
.label, .eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0;
  font-family: var(--f-sans); font-size: var(--fs-label); font-weight: 560; font-stretch: 118%;
  line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.label--rule::before { content: ""; width: 28px; height: 1px; background: var(--sun-deep); opacity: .8; }
.label--light, .section--ink .label { color: var(--on-ink); }
.label--light.label--rule::before, .section--ink .label--rule::before { background: var(--sun); }

/* Numeral set in the display face, e.g. figures in a ledger */
.figure-num { font-family: var(--f-display); font-weight: 300; font-size: clamp(3.5rem, 6.8vw, 6.5rem); line-height: .9; letter-spacing: -.04em; font-variant-numeric: lining-nums; }

/* Long-form copy */
.rich { max-width: 68ch; }
.rich p, .rich li { color: var(--muted); }
.rich strong { color: var(--ink); font-weight: 600; }
.rich a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 1px; text-underline-offset: .24em; transition: color .3s, text-decoration-color .3s; }
.rich a:hover { color: var(--ink-3); text-decoration-color: var(--ink-3); }
.rich ul, .rich ol { padding-left: 0; list-style: none; }
.rich ul > li, .rich ol > li { position: relative; padding-left: 1.6em; margin-bottom: .55em; }
.rich ul > li::before { content: ""; position: absolute; left: 0; top: .82em; width: .8em; height: 1px; background: var(--sun-deep); }
.rich ol { counter-reset: rich; }
.rich ol > li { counter-increment: rich; }
.rich ol > li::before { content: counter(rich, decimal-leading-zero); position: absolute; left: 0; top: .2em; font-size: .72em; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--sun-deep); letter-spacing: .04em; }
.rich h2 { font-size: var(--fs-h3); margin: 1.6em 0 .55em; font-weight: 400; }
.rich h3 { font-size: var(--fs-h3); line-height: 1.2; margin: 1.5em 0 .5em; font-weight: 400; }
.rich h4 { font-size: var(--fs-h4); line-height: 1.3; margin: 1.4em 0 .45em; }
.rich > :first-child { margin-top: 0; }
.section--ink .rich a { color: var(--on-ink); }
.section--ink .rich strong { color: var(--on-ink); }
.section--ink .rich ul > li::before { background: var(--sun); }
.section--ink .rich ol > li::before { color: var(--sun); }

/* Animated hairline link with arrow: "Learn More" */
.link-arrow, .text-link {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding-bottom: 6px;
  font-family: var(--f-sans); font-size: .875rem; font-weight: 520; line-height: 1.2; letter-spacing: .01em;
  color: var(--ink); text-decoration: none; cursor: pointer;
}
.link-arrow::after, .text-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: right; transition: transform .7s var(--ease-out);
}
.link-arrow .icon, .text-link .icon { width: 18px; height: 18px; transition: transform .6s var(--ease-out); }
.link-arrow:hover::after, .text-link:hover::after, a:hover .link-arrow::after, a:focus-visible .link-arrow::after { transform: scaleX(0); }
.link-arrow:hover .icon, a:hover .link-arrow .icon, a:focus-visible .link-arrow .icon { transform: translateX(5px); }
.link-arrow--light, .section--ink .link-arrow { color: var(--on-ink); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--porcelain);
  font-family: var(--f-sans); font-size: .9375rem; font-weight: 520; line-height: 1; letter-spacing: .005em;
  text-decoration: none; text-align: center; white-space: nowrap; cursor: pointer;
  transition: color .5s var(--ease-out), border-color .5s var(--ease-out), background-color .5s var(--ease-out);
}
/* Hover fill rises from below like a tide. */
.btn::before {
  content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; top: 100%; height: 220%;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  background: var(--fill, var(--ink-3));
  transition: transform .7s var(--ease-out), border-radius .7s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(-100%); border-radius: 0; }
.btn .icon { width: 17px; height: 17px; transition: transform .6s var(--ease-out); }
.btn:hover .icon[class*="ne"], .btn:hover use[href="#i-arrow-ne"] { transform: none; }
.btn:hover > .icon:last-child { transform: translate(2px, -2px); }
.btn:hover > .icon:first-child:not(:last-child) { transform: rotate(-8deg); }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: .875rem; gap: 10px; }
.btn--sm .icon { width: 15px; height: 15px; }
.btn--lg { min-height: 64px; padding: 0 36px; font-size: 1rem; }
.btn--primary, .btn--teal { --fill: var(--ink-3); }
.btn--ghost, .btn--outline-teal, .btn--outline-ink, .btn--outline {
  --fill: var(--ink); background: transparent; color: var(--ink); border-color: var(--line-strong);
}
.btn--ghost:hover, .btn--outline-teal:hover, .btn--outline-ink:hover, .btn--outline:hover,
.btn--ghost:focus-visible, .btn--outline-teal:focus-visible, .btn--outline-ink:focus-visible, .btn--outline:focus-visible { color: var(--porcelain); border-color: var(--ink); }
.btn--light { --fill: var(--enamel); background: var(--porcelain); color: var(--ink); border-color: var(--porcelain); }
.btn--light::before { background: var(--sun); }
.btn--light:hover, .btn--light:focus-visible { color: var(--ink); border-color: var(--sun); }
.btn--ghost-light { --fill: var(--porcelain); background: transparent; color: var(--on-ink); border-color: var(--line-ink-strong); }
.btn--ghost-light:hover, .btn--ghost-light:focus-visible { color: var(--ink); border-color: var(--porcelain); }
.section--ink .btn--primary { --fill: var(--sun); background: var(--porcelain); color: var(--ink); border-color: var(--porcelain); }
.section--ink .btn--primary:hover { border-color: var(--sun); }
.section--ink .btn--ghost { --fill: var(--porcelain); color: var(--on-ink); border-color: var(--line-ink-strong); }
.section--ink .btn--ghost:hover { color: var(--ink); border-color: var(--porcelain); }
.btn--sweep, .btn--w280 { }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 640px) {
  .btn { min-height: 52px; padding: 0 22px; }
  .btn-row--stack { flex-direction: column; align-items: stretch; }
}

/* Text roll on hover (site.js wraps the label in .btn__t) */
.btn__t { position: relative; display: inline-block; overflow: hidden; line-height: 1.25; padding-block: 1px; vertical-align: top; }
.btn__t > span { display: block; transition: transform .6s var(--ease-out); }
.btn__t > span + span { position: absolute; inset: 1px 0 auto; transform: translateY(110%); }
.btn:hover .btn__t > span:first-child, .btn:focus-visible .btn__t > span:first-child { transform: translateY(-110%); }
.btn:hover .btn__t > span + span, .btn:focus-visible .btn__t > span + span { transform: none; }

/* Round icon button (slider arrows) */
.round-btn {
  display: inline-grid; place-items: center; width: 52px; height: 52px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.round-btn .icon { width: 20px; height: 20px; }
.round-btn:hover { background: var(--ink); color: var(--porcelain); border-color: var(--ink); }
.round-btn--light { border-color: var(--line-ink-strong); color: var(--on-ink); }
.round-btn--light:hover { background: var(--porcelain); color: var(--ink); border-color: var(--porcelain); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: calc(var(--notice-h) * -1); z-index: 900; transition: transform .6s var(--ease-out); }
.site-header.is-hidden { transform: translateY(-100%); }
.notice { height: var(--notice-h); background: var(--ink); color: var(--on-ink); font-size: .78rem; letter-spacing: .01em; }
.notice__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; padding-inline: var(--gutter); }
.notice__msg { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; white-space: nowrap; color: var(--on-ink-muted); }
.notice__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.notice__text a { margin-left: 6px; color: var(--on-ink); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.notice__text a:hover { color: var(--sun); }
.notice__links { display: flex; align-items: center; gap: 28px; flex: none; }
.notice a { color: var(--on-ink); text-decoration: none; transition: color .3s; }
.notice a:hover { color: var(--sun); }
.notice__call span { font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--line-ink-strong); padding-bottom: 1px; margin-left: 4px; }
@media (max-width: 1040px) { .notice__addr { display: none; } }
@media (max-width: 780px) {
  .notice__msg { display: none; }
  .notice__inner { justify-content: center; }
}
@media (max-width: 640px) {
  :root { --notice-h: 36px; }
  .notice { font-size: .72rem; }
}

.navbar {
  position: relative; display: flex; align-items: center; gap: 24px;
  height: var(--header-h); padding-inline: var(--gutter);
  background: var(--porcelain);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background-color .4s;
}
.is-scrolled .navbar { border-bottom-color: var(--line); background: rgba(243, 239, 231, .96); }
@supports (backdrop-filter: blur(1px)) { .is-scrolled .navbar { background: rgba(243, 239, 231, .88); backdrop-filter: saturate(1.4) blur(14px); } }

.wordmark { display: inline-flex; align-items: baseline; gap: 10px; flex: none; color: var(--ink); text-decoration: none; }
.wordmark__name { font-family: var(--f-display); font-size: 1.6rem; font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.wordmark__dds { position: relative; padding-left: 11px; font-family: var(--f-sans); font-size: .6rem; font-weight: 600; font-stretch: 125%; letter-spacing: .22em; color: var(--muted); transform: translateY(-.35em); }
.wordmark__dds::before { content: ""; position: absolute; left: 0; top: -2px; bottom: -2px; width: 1px; background: var(--line-strong); }
.wordmark--light { color: var(--on-ink); }
.wordmark--light .wordmark__dds { color: var(--on-ink-muted); }
.wordmark--light .wordmark__dds::before { background: var(--line-ink-strong); }

.primary-nav { margin-inline: auto; height: 100%; }
.menu { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; gap: clamp(4px, 1vw, 14px); }
.menu__item { display: flex; }
.menu__link {
  position: relative; display: flex; align-items: center; gap: 6px; padding: 0 10px;
  font-size: .875rem; font-weight: 480; letter-spacing: .005em; color: var(--ink); text-decoration: none;
}
.menu__link::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: calc(50% - 15px); height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out);
}
.menu__link:hover::after, .menu__item:focus-within > .menu__link::after, .menu__item.is-open > .menu__link::after { transform: scaleX(1); transform-origin: left; }
.menu__link[aria-current="page"]::before { content: ""; position: absolute; left: 50%; bottom: calc(50% - 22px); width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--sun-deep); }
.menu__caret { width: 11px; height: 11px; transition: transform .5s var(--ease-out); }
.has-sub:hover:not(.is-dismissed) .menu__caret, .has-sub.is-open .menu__caret { transform: rotate(180deg); }

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 10;
  background: var(--porcelain); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(11, 34, 38, .28);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .6s var(--ease-out), visibility 0s linear .6s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; }
.menu__item.has-sub:hover:not(.is-dismissed) > .mega, html:not(.js) .menu__item.has-sub:focus-within > .mega, .menu__item.has-sub.is-open > .mega {
  clip-path: inset(0 0 -100px 0); visibility: visible; transition-delay: 0s;
}
.mega__inner {
  display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 5.6fr) minmax(0, 3.2fr); gap: clamp(24px, 3vw, 56px);
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 44px var(--gutter) 48px;
}
.mega__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.mega__lead { margin: 0; font-family: var(--f-display); font-size: 1.35rem; font-weight: 300; line-height: 1.35; color: var(--ink); }
.mega__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; margin: 0; padding: 0; list-style: none; align-content: start; }
.mega__list li { border-top: 1px solid var(--line); }
.mega__list .sub-link {
  display: flex; align-items: baseline; gap: 14px; padding: 13px 0;
  font-family: var(--f-display); font-size: 1.2rem; font-weight: 400; line-height: 1.2; color: var(--ink); text-decoration: none;
  transition: color .3s, transform .5s var(--ease-out);
}
.mega__list .sub-link:hover, .mega__list .sub-link:focus-visible { color: var(--ink-3); transform: translateX(6px); }
.mega__list .sub-link.is-current { color: var(--sun-deep); }
.mega__feature {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; justify-content: flex-end;
  min-height: 260px; padding: 28px; background: var(--ink); color: var(--on-ink); text-decoration: none;
}
.mega__feature::before { content: ""; position: absolute; right: -30%; top: -40%; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(224, 138, 94, .28), transparent); transition: transform 1.2s var(--ease-out); }
.mega__feature:hover::before { transform: scale(1.15); }
.mega__feature > span { position: relative; }
.mega__feature-title { font-family: var(--f-display); font-size: 1.9rem; font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.mega__feature-text { font-size: .85rem; line-height: 1.55; color: var(--on-ink-muted); }
.mega__feature-more { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 520; }
.mega__feature-more .icon { width: 16px; height: 16px; transition: transform .6s var(--ease-out); }
.mega__feature:hover .mega__feature-more .icon { transform: translateX(5px); }

.navbar__ctas { display: flex; align-items: center; gap: 22px; flex: none; }
.navbar__phone { display: inline-flex; align-items: center; gap: 9px; font-size: .875rem; font-weight: 480; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.navbar__phone .icon { width: 16px; height: 16px; color: var(--sun-deep); }
.navbar__phone:hover span { text-decoration: underline; text-underline-offset: .3em; }

.burger { display: none; position: relative; width: 48px; height: 48px; margin-right: -10px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); }
.burger__lines, .burger__lines::before { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; }
.burger__lines { top: 20px; }
.burger__lines::before { content: ""; left: 6px; right: 0; top: 7px; transition: left .4s var(--ease-out); }
.burger:hover .burger__lines::before { left: 0; }

@media (max-width: 1280px) { .navbar__phone { display: none; } }
@media (max-width: 1080px) {
  .primary-nav { display: none; }
  .navbar { justify-content: space-between; }
  .navbar__ctas { margin-left: auto; }
  .burger { display: block; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .wordmark__name { font-size: 1.4rem; }
  .navbar__book { min-height: 40px; padding: 0 16px; font-size: .8rem; }
  .navbar__book .icon { display: none; }
}
@media (max-width: 380px) { .navbar__book { display: none; } }

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 1000; visibility: hidden; }
.mobile-menu[hidden] { display: block; visibility: hidden; }
.mobile-menu.is-open { visibility: visible; }
.mobile-menu__panel {
  position: absolute; inset: 0; overflow-y: auto; display: flex; flex-direction: column;
  padding: 0 var(--gutter) 32px; background: var(--ink); color: var(--on-ink);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-in-out);
}
.mobile-menu.is-open .mobile-menu__panel { clip-path: inset(0); }
.mobile-menu__top { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: calc(var(--header-h) + var(--notice-h)); }
.mobile-menu__close { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 0 0 12px; border: 0; background: none; cursor: pointer; color: var(--on-ink); font-size: .8rem; font-weight: 520; letter-spacing: .14em; text-transform: uppercase; font-stretch: 115%; }
.mobile-menu__close .icon { width: 22px; height: 22px; }
.mobile-menu__layers { position: relative; flex: 1; padding-top: clamp(16px, 4vh, 48px); }
.mobile-menu__list { margin: 0; padding: 0; list-style: none; counter-reset: mm; }
.mobile-menu__layer { display: none; }
.mobile-menu__layer.is-active { display: block; }
.mobile-menu__list > li { border-bottom: 1px solid var(--line-ink); }
.mobile-menu__list a, .mobile-menu__more, .mobile-menu__back {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  min-height: 64px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; text-decoration: none; color: var(--on-ink);
  font-family: var(--f-display); font-size: clamp(1.75rem, 7vw, 2.6rem); font-weight: 300; line-height: 1.1; letter-spacing: -.02em;
}
.mobile-menu__list--sub a { min-height: 52px; font-size: clamp(1.35rem, 5.4vw, 1.9rem); }
.mobile-menu__more .icon { width: 26px; height: 26px; color: var(--sun); }
.mobile-menu__back { justify-content: flex-start; gap: 12px; min-height: 52px; font-family: var(--f-sans); font-size: .8rem; font-weight: 520; letter-spacing: .14em; text-transform: uppercase; font-stretch: 115%; color: var(--on-ink-muted); }
.mobile-menu__back .icon { width: 18px; height: 18px; }
.mobile-menu__list a[aria-current="page"], .mobile-menu__more[aria-current="page"], .mobile-menu__list a.is-current { color: var(--sun); }
.mobile-menu .sub-link::before { content: none; }
.js .mobile-menu.is-open .mobile-menu__layer.is-active > li { animation: mm-in .8s var(--ease-out) both; animation-delay: calc(.18s + var(--i, 0) * 55ms); }
@keyframes mm-in { from { opacity: 0; transform: translateY(24px); } }
.mobile-menu__foot { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; margin-top: 40px; }
.mobile-menu__contact { display: flex; flex-direction: column; gap: 8px; color: var(--on-ink); text-decoration: none; font-size: .95rem; line-height: 1.45; }
.mobile-menu__book { grid-column: 1 / -1; }
@media (max-width: 420px) { .mobile-menu__foot { grid-template-columns: 1fr; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(32px, 4.4vw, 64px) 0 clamp(44px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero__glow { position: absolute; right: -16%; top: -55%; width: min(72vw, 1100px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(224, 138, 94, .15), rgba(224, 138, 94, .04) 55%, transparent); pointer-events: none; }
.page-hero__inner { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.crumbs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 clamp(36px, 5.6vw, 84px); padding: 0; list-style: none; font-size: .78rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: ""; width: 14px; height: 1px; background: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; transition: color .3s; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.page-hero__heading { grid-column: 1 / span 10; display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 32px); margin: 0; }
.page-hero__title { display: block; font-family: var(--f-display); font-size: var(--fs-h1); font-weight: 300; line-height: .96; letter-spacing: -.03em; text-wrap: balance; }
.page-hero__sub { display: block; max-width: 48ch; margin: 0; font-family: var(--f-sans); font-size: clamp(1.02rem, 1.25vw, 1.15rem); font-weight: 400; line-height: 1.55; letter-spacing: 0; color: var(--muted); text-wrap: pretty; }
.page-hero__aside { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; margin-top: clamp(36px, 4.4vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) {
  .page-hero__actions { width: 100%; }
  .page-hero__actions .btn { flex: 1 1 auto; }
}
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 0; font-size: .78rem; color: var(--muted); }
.page-hero__meta dt, .page-hero__meta dd { margin: 0; }
.page-hero__meta strong { display: block; font-weight: 600; font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; font-stretch: 118%; color: var(--ink); margin-bottom: 4px; }
/* Treatment pages show their spot illustration beside the title, already finished (no draw-in). */
.page-hero__art { grid-column: 10 / -1; grid-row: 2; align-self: end; justify-self: end; width: clamp(150px, 17vw, 250px); aspect-ratio: 1; margin: 0; }
.page-hero__art .ti { --lw: .85; }
.page-hero__inner:has(.page-hero__art) .page-hero__heading { grid-column: 1 / span 8; }
@media (max-width: 900px) { .page-hero__art { grid-column: 9 / -1; width: clamp(110px, 20vw, 150px); } }
@media (max-width: 640px) { .page-hero__art { display: none; } .page-hero__inner:has(.page-hero__art) .page-hero__heading { grid-column: 1 / -1; } }
@media (max-width: 900px) { .page-hero__heading { grid-column: 1 / -1; } }
/* Legacy banner markup keeps working while pages move to .page-hero */
.page-banner { padding: clamp(64px, 9vw, 140px) var(--gutter) clamp(48px, 6vw, 96px); border-bottom: 1px solid var(--line); }
.page-banner__inner { display: flex; flex-direction: column; gap: 20px; max-width: var(--max); margin: 0 auto; }
.page-banner__title { font-family: var(--f-display); font-size: var(--fs-h1); font-weight: 300; line-height: .96; letter-spacing: -.035em; }
.page-banner__sub { font-family: var(--f-sans); font-size: 1.1rem; color: var(--muted); max-width: 44ch; }

/* ---------- Media ---------- */
/* .figure: image with an optional caption. */
.figure { position: relative; margin: 0; }
.figure__img { position: relative; overflow: hidden; background: var(--porcelain-2); }
.figure__img img, .figure__img video, .figure__img iframe { width: 100%; height: 100%; object-fit: cover; }
.figure__cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: .75rem; line-height: 1.4; color: var(--muted); }
.figure__cap span:first-child:not(:only-child) { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-stretch: 118%; font-size: var(--fs-label); color: var(--ink); }
.section--ink .figure__cap { color: var(--on-ink-muted); }
.section--ink .figure__cap span:first-child:not(:only-child) { color: var(--on-ink); }
/* .team-photo: an office photo closing a "who treats you" column or a sticky aside. */
.team-photo { align-self: stretch; margin-top: 8px; }
.team-photo .figure__img { aspect-ratio: 4 / 3; }

/* ---------- Arched frames: the dental arch, used for portraits and photos ---------- */
.archwrap { position: relative; }
.arch { position: relative; overflow: hidden; aspect-ratio: var(--ar, .8); border-radius: 9999px 9999px 0 0; background: var(--porcelain-2); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch__frame { position: absolute; inset: -14px; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 9999px 9999px 0 0; pointer-events: none; }
.arch__frame::after { content: ""; position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--sun); }
.section--ink .arch__frame { border-color: var(--line-ink-strong); }

/* ---------- Treatments: illustrated cards in a hairline grid ---------- */
.tx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tx-grid > li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tx-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; height: 100%;
  padding: clamp(28px, 3vw, 48px); background: var(--porcelain); color: var(--ink); text-decoration: none;
  transition: background-color .6s var(--ease-out);
}
.tx-card::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 2px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out); }
.tx-card:hover, .tx-card:focus-visible { background: var(--enamel); }
.tx-card:hover::before, .tx-card:focus-visible::before { transform: scaleX(1); }
.tx-card__art { display: block; width: clamp(100px, 8.6vw, 128px); aspect-ratio: 1; margin: -6px 0 clamp(24px, 2.6vw, 36px) -12px; }
.tx-card__title { margin-bottom: 14px; font-family: var(--f-display); font-size: clamp(1.6rem, 2.2vw, 2.1rem); font-weight: 300; line-height: 1.05; letter-spacing: -.02em; }
.tx-card__text { max-width: 34ch; margin: 0 0 32px; font-size: .975rem; color: var(--muted); }
.tx-card .link-arrow { margin-top: auto; }

/* Spot illustrations (64×64), each set in a small arch like the portraits.
   bd arch, w enamel, t tint, go gum, l line, a accent line, af accent fill. */
.ti { --lw: 1.3; display: block; width: 100%; height: 100%; overflow: visible; color: var(--ink-3); }
.ti .bd { fill: rgba(147, 181, 174, .26); transition: fill .6s var(--ease-out); }
.tx-card:hover .ti .bd { fill: rgba(147, 181, 174, .36); }
.ti .w { fill: #fdfcf9; }
.ti .t { fill: #dfe9e5; }
.ti .go { fill: #eed6c5; }
.ti .l, .ti .a { fill: none; stroke: currentColor; stroke-width: var(--lw); stroke-linecap: round; stroke-linejoin: round; }
.ti .a { stroke: var(--sun); }
.ti .af { fill: var(--sun); }
.ti .dash { stroke-dasharray: 1.6 2.6; opacity: .7; }
.ti [class*="m-"] { transform-box: fill-box; transform-origin: center; }
/* Each illustration has its own small gesture on hover. */
.tx-card:hover .m-mirror { animation: tx-mirror 1.5s var(--ease-in-out); }
.tx-card:hover .m-smile { animation: tx-smile 1.2s var(--ease-in-out); }
.tx-card:hover .m-spark { animation: tx-twinkle 1.3s var(--ease-in-out); }
.tx-card:hover .m-spark2 { animation: tx-twinkle 1.3s var(--ease-in-out) .18s; }
.tx-card:hover .m-tl { animation: tx-align-l 1.3s var(--ease-in-out); }
.tx-card:hover .m-tr { animation: tx-align-r 1.3s var(--ease-in-out); }
.tx-card:hover .m-crown { animation: tx-drop 1.3s var(--ease-in-out); }
.tx-card:hover .m-screw { animation: tx-seat 1.2s var(--ease-in-out); }
.tx-card:hover .m-shell { animation: tx-shell 1.3s var(--ease-in-out); }
.tx-card .m-gum { transition: transform 1s var(--ease-out); }
.tx-card:hover .m-gum { transform: translateY(-1.6px); }
.tx-card:hover .m-beam { animation: tx-beam 1.4s linear; }
.tx-card:hover .m-rays { animation: tx-rays 1.4s var(--ease-out); }
@keyframes tx-mirror { 35% { transform: translate(-3px, -3px) rotate(-8deg); } 70% { transform: translate(1px, 1px) rotate(2deg); } }
@keyframes tx-smile { 45% { transform: scale(1.05, 1.09); } }
@keyframes tx-twinkle { 40% { transform: scale(.35) rotate(45deg); } 100% { transform: scale(1) rotate(90deg); } }
@keyframes tx-align-l { 30% { transform: rotate(-7deg) translateX(-1px); } }
@keyframes tx-align-r { 30% { transform: rotate(7deg) translateX(1px); } }
@keyframes tx-seat { 35% { transform: translateY(-4px); } 70% { transform: translateY(.6px); } }
@keyframes tx-drop { 40% { transform: translateY(5.5px); } 60% { transform: translateY(5.5px); } }
@keyframes tx-shell { 40%, 60% { transform: translate(-5.5px, 4px); } }
@keyframes tx-rays { 0% { transform: scale(.4); opacity: 0; } 40% { opacity: 1; } 100% { transform: scale(1); } }
@keyframes tx-beam { 0%, 40%, 80% { opacity: 1; } 20%, 60% { opacity: .15; } }
@media (max-width: 1080px) { .tx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .tx-grid { grid-template-columns: minmax(0, 1fr); border-left: 0; }
  .tx-grid > li { border-right: 0; }
  .tx-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 18px; padding: 28px 0; }
  .tx-card__art { grid-row: span 3; width: 72px; margin: 0; }
  .tx-card__title { font-size: 1.6rem; margin-bottom: 8px; }
  .tx-card__text { margin-bottom: 16px; }
}
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-1x1 { aspect-ratio: 1; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-16x10 { aspect-ratio: 16 / 10; }
.ratio-16x9 { aspect-ratio: 16 / 9; }

/* Responsive 16:9 video */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Media + text split ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 7vw, 120px); align-items: center; }
.split--top { align-items: start; }
.split--wide-media { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--wide-body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split--reverse > :first-child { order: 2; }
.split__body > .label { margin-bottom: 28px; }
.split__title { margin-bottom: 32px; font-family: var(--f-display); font-size: var(--fs-h2); font-weight: 300; line-height: 1.02; letter-spacing: -.025em; }
.split__media img { width: 100%; }
@media (max-width: 900px) {
  .split, .split--wide-media, .split--wide-body { grid-template-columns: minmax(0, 1fr); }
  .split--reverse > :first-child { order: 0; }
}

/* Sticky aside layout: a title that stays put while long copy scrolls past */
.stick { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.stick__aside { position: sticky; top: calc(var(--header-h) + 40px); }
@media (max-width: 900px) { .stick { grid-template-columns: minmax(0, 1fr); } .stick__aside { position: static; } }

/* ---------- Ledger: hairline rows of term + detail ---------- */
.ledger { margin: 0; border-top: 1px solid var(--line); }
.ledger__row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 3fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ledger dt { font-size: var(--fs-label); font-weight: 600; font-stretch: 118%; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: .35em; }
.ledger dd { margin: 0; }
.ledger a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out); }
.ledger a:hover { background-size: 100% 1px; }
.section--ink .ledger, .section--ink .ledger__row { border-color: var(--line-ink); }
.section--ink .ledger dt { color: var(--on-ink-muted); }

/* Numbered list of points (benefits, steps): index, title, text, hairline separators */
.points { margin: 0; padding: 0; list-style: none; counter-reset: pt; border-top: 1px solid var(--line); }
.points > li { counter-increment: pt; position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.points > li::before { content: counter(pt, decimal-leading-zero); grid-row: span 2; padding-top: .55em; font-size: .72rem; font-weight: 600; letter-spacing: .08em; color: var(--sun-deep); font-variant-numeric: tabular-nums; }
.points__title { margin: 0; font-family: var(--f-display); font-size: var(--fs-h4); font-weight: 400; line-height: 1.25; }
.points__text { margin: 0; color: var(--muted); }
.section--ink .points, .section--ink .points > li { border-color: var(--line-ink); }
.section--ink .points > li::before { color: var(--sun); }
.section--ink .points__text { color: var(--on-ink-muted); }
@media (max-width: 640px) { .points > li { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; padding: 22px 0; } }

/* Card grid with hairline cells (no shadows, no rounded blobs) */
.cells { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cells > * { position: relative; padding: clamp(24px, 3vw, 44px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink .cells, .section--ink .cells > * { border-color: var(--line-ink); }
@media (max-width: 900px) { .cells { --cols: 2 !important; } }
@media (max-width: 640px) { .cells { --cols: 1 !important; } }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Accordion ---------- */
.accordion { max-width: none; margin: 0; border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__header { margin: 0; font: inherit; }
.accordion__button {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%;
  padding: 26px 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink);
  font-family: var(--f-display); font-size: clamp(1.25rem, 1.9vw, 1.65rem); font-weight: 400; line-height: 1.25; letter-spacing: -.01em;
  transition: color .3s;
}
.accordion__button:hover { color: var(--ink-3); }
.accordion__button .icon { display: none; }
.accordion__button::after {
  content: ""; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 14px no-repeat;
  transition: transform .6s var(--ease-out), background-color .4s, color .4s, border-color .4s, background-size .4s var(--ease-out);
}
.accordion__button[aria-expanded="true"]::after { transform: rotate(180deg); background-size: 14px 1px, 1px 0; background-color: var(--ink); color: var(--porcelain); border-color: var(--ink); }
.accordion__panel { padding: 0 72px 30px 0; color: var(--muted); max-width: 78ch; }
.accordion__panel > :last-child { margin-bottom: 0; }
.section--ink .accordion, .section--ink .accordion__item { border-color: var(--line-ink); }
.section--ink .accordion__button { color: var(--on-ink); }
.section--ink .accordion__button::after { border-color: var(--line-ink-strong); }
.section--ink .accordion__button[aria-expanded="true"]::after { background-color: var(--porcelain); color: var(--ink); }
.section--ink .accordion__panel { color: var(--on-ink-muted); }
@media (max-width: 640px) { .accordion__panel { padding-right: 0; } .accordion__button::after { width: 38px; height: 38px; } }

/* ---------- Ratings ---------- */
.rating { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: .875rem; }
.rating__g { width: 20px; height: 20px; }
.rating__stars { display: inline-flex; gap: 2px; color: var(--sun); }
.rating__stars .icon { width: 14px; height: 14px; }
.rating strong { font-weight: 560; border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; transition: border-color .3s; }
.rating:hover strong { border-color: currentColor; }
.rating__arrow { width: 14px; height: 14px; transition: transform .5s var(--ease-out); }
.rating:hover .rating__arrow { transform: translate(2px, -2px); }
.rating--light { color: var(--on-ink); }
.rating--light strong { border-color: var(--line-ink-strong); }

/* The beam: a hairline with a travelling glow (the laser / horizon line) */
.beam { position: relative; height: 1px; background: var(--line); overflow: hidden; }
.beam::after {
  content: ""; position: absolute; top: -1px; bottom: -1px; left: 0; width: 22%;
  background: linear-gradient(90deg, transparent, var(--sun) 70%, #fff3 92%, transparent);
  transform: translateX(-100%); animation: beam 5.5s var(--ease-in-out) infinite;
}
.section--ink .beam { background: var(--line-ink); }
@keyframes beam { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(560%); } }

/* Line drawings: give SVG shapes pathLength="1"; they draw on when an ancestor [data-reveal] becomes visible.
   Stagger with style="--i:n" on the shape. The dash is 1.1, not 1: with non-scaling strokes Chrome measures
   the path slightly long, and a dash of exactly 1 leaves a gap where a closed outline meets itself. */
.js [data-reveal] .draw [pathLength] { stroke-dasharray: 1.1 1.1; stroke-dashoffset: 1.1; transition: stroke-dashoffset 2.2s var(--ease-in-out); transition-delay: calc(var(--i, 0) * 120ms + var(--d, 0s)); }
.js [data-reveal].is-visible .draw [pathLength] { stroke-dashoffset: 0; }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-dur, 40s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; align-items: center; flex: none; margin: 0; padding: 0; list-style: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Related care: a ruled row of links that closes a treatment page ---------- */
.related { padding-block: clamp(64px, 7vw, 112px); border-top: 1px solid var(--line); }
.related__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 3vw, 44px); }
.related__title { font-family: var(--f-display); font-size: var(--fs-h3); font-weight: 300; line-height: 1.1; letter-spacing: -.015em; }
.related__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.related__list > li { border-bottom: 1px solid var(--line); }
.related__list > li:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }
.related__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; row-gap: 8px; height: 100%; padding: 26px clamp(18px, 2vw, 32px) 28px; color: var(--ink); text-decoration: none; transition: background-color .5s var(--ease-out); }
.related__list > li:nth-child(3n+1) .related__item { padding-left: 0; }
.related__item:hover, .related__item:focus-visible { background: var(--enamel); }
.related__list > li:nth-child(3n+1) .related__item:hover { background: none; }
.related__name { font-family: var(--f-display); font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; }
.related__text { grid-column: 1; font-size: .925rem; line-height: 1.5; color: var(--muted); }
.related__item .icon { grid-column: 2; grid-row: 1; align-self: center; width: 18px; height: 18px; color: var(--sun-deep); transition: transform .6s var(--ease-out); }
.related__item:hover .icon { transform: translateX(4px); }
@media (max-width: 900px) {
  .related__list { grid-template-columns: minmax(0, 1fr); }
  .related__list > li:not(:nth-child(3n+1)) { border-left: 0; }
  .related__item { padding: 22px 0 24px; }
  .related__item:hover, .related__item:focus-visible { background: none; }
}

/* ---------- Footer: reviews ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); }
.reviews { position: relative; overflow: hidden; padding-block: var(--space-section); background: var(--ink-2); }
.reviews::before { content: ""; position: absolute; left: -12%; bottom: -55%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(224, 138, 94, .16), transparent); pointer-events: none; }
.reviews__grid { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 8vw, 140px); }
.reviews__head { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.reviews__title { font-family: var(--f-display); font-size: var(--fs-h2); font-weight: 300; line-height: 1.02; letter-spacing: -.025em; }
/* Google score: a large figure beside the stars and the review count. */
.reviews__score { display: inline-flex; align-items: center; gap: 20px; margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--line-ink); align-self: stretch; color: var(--on-ink); text-decoration: none; }
.reviews__num { font-family: var(--f-display); font-size: clamp(3.5rem, 5.6vw, 5.25rem); font-weight: 300; line-height: .85; letter-spacing: -.04em; font-variant-numeric: lining-nums; }
.reviews__meta { display: flex; flex-direction: column; gap: 10px; }
.reviews__src { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--on-ink-muted); transition: color .3s; }
.reviews__src .rating__g { width: 16px; height: 16px; }
.reviews__score:hover .reviews__src { color: var(--on-ink); }
.reviews__score:hover .rating__arrow { transform: translate(2px, -2px); }
.reviews__body { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-width: 0; }
.reviews__stage { display: grid; }
.quote { grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; gap: 36px; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease-out), visibility 0s linear .8s; }
.quote.is-active { opacity: 1; visibility: visible; transition-delay: .15s, 0s; }
.quote blockquote { position: relative; margin: 0; font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.75rem); font-weight: 300; line-height: 1.2; letter-spacing: -.02em; text-wrap: pretty; }
.quote blockquote::before { content: "“"; position: absolute; left: -.5em; top: -.05em; color: var(--sun); }
.quote figcaption { display: flex; align-items: center; gap: 18px; font-size: .9rem; color: var(--on-ink-muted); }
.quote__name { display: inline-flex; align-items: center; gap: 14px; color: var(--on-ink); font-weight: 520; }
.quote__name::before { content: ""; width: 28px; height: 1px; background: var(--sun); }
.quote__stars { display: inline-flex; gap: 2px; color: var(--sun); }
.quote__stars .icon { width: 12px; height: 12px; }
.js .quote.is-active blockquote .sw__i { animation: none; }
.reviews__controls { display: flex; align-items: center; gap: 24px; }
.reviews__count { margin: 0; display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.reviews__count [data-quotes-current] { font-family: var(--f-display); font-size: 1.6rem; font-weight: 300; }
.reviews__of { font-size: .78rem; color: var(--on-ink-muted); }
.reviews__progress { position: relative; flex: 1; height: 1px; background: var(--line-ink); overflow: hidden; }
.reviews__progress span { position: absolute; inset: 0; background: var(--on-ink); transform-origin: left; transform: scaleX(0); }
.reviews__progress.is-running span { animation: progress var(--quote-dur, 7s) linear forwards; }
.reviews__progress.is-paused span { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.reviews__arrows { display: flex; gap: 10px; }
@media (max-width: 900px) {
  .reviews__grid { grid-template-columns: minmax(0, 1fr); }
  .quote blockquote::before { position: static; display: block; height: .5em; }
}

/* ---------- Footer: visit ---------- */
.visit { padding-block: var(--space-section); background: var(--porcelain); color: var(--ink); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: stretch; }
.visit__info { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.visit__title { font-family: var(--f-display); font-size: clamp(3rem, 6.2vw, 6rem); font-weight: 300; line-height: .94; letter-spacing: -.035em; }
.visit__title em { color: var(--sun-deep); }
.visit__sub { margin: -6px 0 0; max-width: 26ch; font-family: var(--f-display); font-size: var(--fs-lead); font-weight: 300; line-height: 1.3; }
.visit__ledger { align-self: stretch; margin-top: 20px; }
.visit__ledger dd { font-size: 1.05rem; line-height: 1.5; }
.visit__map { position: relative; display: flex; flex-direction: column; min-height: 480px; }
.visit__frame { position: relative; flex: 1; overflow: hidden; background: var(--porcelain-2); }
.visit__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(.18) contrast(.92) brightness(1.02); transition: filter .8s var(--ease-out); }
.visit__frame:hover iframe { filter: none; }
.hours__status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 520; color: var(--ink); }
.hours__status[hidden] { display: none; }
.hours__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.hours__status.is-open::before { background: #3f8f6b; box-shadow: 0 0 0 4px rgba(63, 143, 107, .16); }
.hours__table { width: 100%; max-width: 360px; border-collapse: collapse; font-size: .95rem; }
.hours__table th, .hours__table td { padding: 4px 0; text-align: left; font-weight: 400; }
.hours__table td { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.hours__table tr.is-today th, .hours__table tr.is-today td { color: var(--ink); font-weight: 600; }
.hours__table tr.is-today th::after { content: " · Today"; font-weight: 400; color: var(--sun-deep); font-size: .8em; }
@media (max-width: 900px) {
  .visit__grid { grid-template-columns: minmax(0, 1fr); }
  .visit__map { min-height: 380px; }
}
@media (max-width: 640px) { .visit__actions { align-self: stretch; flex-direction: column; align-items: stretch; } }
@media (max-width: 640px) { .ledger__row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 0; } }

/* ---------- Footer: main ---------- */
.footer-main { position: relative; overflow: hidden; padding-top: clamp(72px, 9vw, 128px); background: var(--ink); color: var(--on-ink); }
.footer-main__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 4fr) minmax(0, 2fr); gap: 40px; }
.footer-main__intro { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.footer-main__lead { max-width: 30ch; margin: 0; font-family: var(--f-display); font-size: 1.3rem; font-weight: 300; line-height: 1.35; color: var(--on-ink-muted); }
.footer-col__title { margin: 0 0 18px; font-size: var(--fs-label); font-weight: 600; font-stretch: 118%; letter-spacing: .16em; text-transform: uppercase; color: var(--on-ink-muted); }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer-col__split { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.footer-col a { color: var(--on-ink); text-decoration: none; font-size: .9rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out), color .3s; }
.footer-col a:hover { background-size: 100% 1px; }
.footer-col .sub-link.is-current { color: var(--sun); }
.footer-col .footer-social { display: flex; gap: 8px; margin-top: 22px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-ink-strong); border-radius: 50%; background: none; transition: background-color .4s, color .4s, border-color .4s; }
.footer-social a:hover { background: var(--porcelain); color: var(--ink); border-color: var(--porcelain); }
.footer-social .icon { width: 15px; height: 15px; }
.footer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; margin-top: clamp(56px, 7vw, 96px); padding: 22px 0 26px; border-top: 1px solid var(--line-ink); font-size: .78rem; color: var(--on-ink-muted); }
.footer-bar p { margin: 0; }
.footer-bar__top { display: inline-flex; align-items: center; gap: 10px; color: var(--on-ink); text-decoration: none; }
.footer-bar__top .icon { width: 15px; height: 15px; transition: transform .5s var(--ease-out); }
.footer-bar__top:hover .icon { transform: translateY(-4px); }
@media (max-width: 1080px) { .footer-main__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-main__intro { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .footer-main__grid { grid-template-columns: minmax(0, 1fr); }
  .footer-col__split { grid-template-columns: 1fr; }
}

/* ---------- Phone action bar: call and book stay in reach once the header slides away ---------- */
.actionbar { display: none; }
@media (max-width: 640px) {
  .actionbar {
    position: fixed; z-index: 800; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px; padding: 6px;
    border-radius: 999px; background: var(--ink); box-shadow: 0 18px 40px -16px rgba(11, 34, 38, .55);
    transform: translateY(calc(100% + 24px)); visibility: hidden;
    transition: transform .6s var(--ease-out), visibility 0s linear .6s;
  }
  .actionbar.is-shown { transform: none; visibility: visible; transition-delay: 0s; }
  .actionbar a {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: 999px;
    font-size: .875rem; font-weight: 520; text-decoration: none;
  }
  .actionbar .icon { width: 16px; height: 16px; }
  .actionbar__call { color: var(--on-ink); border: 1px solid var(--line-ink-strong); }
  .actionbar__book { background: var(--porcelain); color: var(--ink); }
  body.menu-open .actionbar { visibility: hidden; }
}

/* ---------- Motion: reveals ---------- */
/* Hidden states apply only with JS (html.js). If site.js never runs, a failsafe shows everything. */
.js [data-reveal] { transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(28px); }
.js [data-reveal="fade"]:not(.is-visible) { transform: none; }
.js [data-reveal="left"]:not(.is-visible) { transform: translateX(-36px); }
.js [data-reveal="right"]:not(.is-visible) { transform: translateX(36px); }
.js [data-reveal="up"]:not(.is-visible) { transform: translateY(36px); }
.js [data-reveal="down"]:not(.is-visible) { transform: translateY(-20px); }
.js [data-reveal="line"] { transform-origin: left; transition: transform 1.4s var(--ease-out); }
.js [data-reveal="line"]:not(.is-visible) { opacity: 1; transform: scaleX(0); }
/* Image reveal: a mask lifts while the image settles from a slight zoom. */
.js [data-reveal="img"] { transition: clip-path 1.4s var(--ease-in-out); transition-delay: var(--d, 0s); }
.js [data-reveal="img"]:not(.is-visible) { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); }
.js [data-reveal="img"].is-visible { clip-path: inset(0 0 0 0); }
.js [data-reveal="img"] img { transition: transform 1.8s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="img"]:not(.is-visible) img { transform: scale(1.14); }
/* Stagger children: [data-stagger] > * reveal one after another. */
.js [data-stagger] > * { transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms + var(--d, 0s)); }
.js [data-stagger]:not(.is-visible) > * { opacity: 0; transform: translateY(24px); }

/* Split text: words rise out of a mask. */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .08em .14em; margin: -.06em -.08em -.14em; }
sup .sw, sub .sw { line-height: 1.15; vertical-align: baseline; }
/* At display sizes the registered mark is set smaller and tucked against the word. */
.page-hero__title sup, .h2 sup { font-size: .32em; vertical-align: 1.35em; margin-left: .02em; }
.sw__i { display: inline-block; transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 42ms + var(--d, 0s)); }
.js [data-split]:not(.is-split) { visibility: hidden; }
.js [data-split].is-split:not(.is-visible) .sw__i { transform: translateY(112%) rotate(4deg); transform-origin: left top; }

/* Failsafe: if site.js does not run, reveal everything after a moment. */
.js:not(.ready) [data-reveal], .js:not(.ready) [data-stagger] > *, .js:not(.ready) [data-split] { animation: failsafe 0s 2.5s forwards; }
@keyframes failsafe { to { opacity: 1; transform: none; clip-path: none; visibility: visible; } }
.js:not(.ready) [data-reveal] .draw [pathLength] { animation: failsafe-draw 0s 2.5s forwards; }
@keyframes failsafe-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-reveal] img, .js [data-stagger] > *, .js [data-split] .sw__i { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-split] { visibility: visible !important; }
  .beam::after { display: none; }
  /* No .01ms visibility transition here, so the menu is focusable the frame it opens. */
  .mobile-menu, .mobile-menu * { transition: none !important; }
}
