/* ==========================================================================
   Stony Brook General & Cosmetic Dentistry
   Palette derived from the practice itself: warm cream walls, wood floor,
   the oxblood of the operatory chair. Deliberately not clinical blue.
   ========================================================================== */

:root {
  --paper:      #f2f4f4;
  --paper-2:    #dfe8e8;
  --surface:    #fbfdfd;
  --ink:        #14191a;
  --ink-2:      #3d4749;
  --muted:      #586567;
  --line:       #cfdada;
  --line-soft:  #e0e8e8;
  --accent:     #0b6270;
  --accent-ink: #084d58;
  --accent-wash:#dcecef;
  /* the practice's own cyan at full strength — only legible on the dark band */
  --brand-cyan: #35c9dd;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans:  "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* type scale, ~1.25 ratio, fluid between 320 and 1440 */
  --t-xs:   .75rem;
  --t-sm:   .875rem;
  --t-base: 1.0625rem;
  --t-md:   clamp(1.05rem, .98rem + .35vw, 1.2rem);
  --t-lg:   clamp(1.2rem, 1.08rem + .5vw, 1.45rem);
  --t-xl:   clamp(1.45rem, 1.25rem + .85vw, 1.9rem);
  --t-2xl:  clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --t-3xl:  clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --t-4xl:  clamp(2.4rem, 1.5rem + 4.2vw, 4.6rem);

  /* surfaces, darkest to lightest */
  --band-ink:   #0f1618;
  --band-tint:  #dfe8e8;
  --band-paper: #f2f4f4;
  --band-white: #fbfdfd;

  --page:    76rem;
  --gutter:  clamp(1.25rem, 5vw, 4.5rem);
  --rhythm:  clamp(3.25rem, 2rem + 6vw, 8.5rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "calt";
  font-variant-numeric: proportional-nums;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, a, input, select, textarea, label, summary { touch-action: manipulation; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
/* oxblood on near-black is unreadable; dark surfaces get a light ring */
.site-foot :focus-visible,
.since :focus-visible { outline-color: var(--paper); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1.25rem; font-size: .9rem;
}
.skip:focus { left: 0; }

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--rhythm); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Section surfaces. Sequence is assigned by role, not alternated mechanically,
   so the page reads as distinct rooms rather than stripes. */
.band-paper { background: var(--band-paper); }
.band-tint  { background: var(--band-tint); }
.band-white { background: var(--band-white); }
.band-ink   { background: var(--band-ink); color: var(--paper); }
.band-ink h1, .band-ink h2, .band-ink h3 { color: var(--paper); }

/* when two same-surface sections meet, a hairline keeps them from merging —
   except straight after a page head, where the two are one intro block */
.band-paper + .band-paper,
.band-white + .band-white,
.band-tint  + .band-tint { border-top: 1px solid var(--line); }
.page-head + .band-paper,
.page-head + .band-white,
.page-head + .band-tint { border-top: 0; }

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

/* Three heading roles, deliberately different in scale and weight.
   Feature heads open the page's big moments; section heads do ordinary work. */
.h-display {
  font-size: var(--t-4xl);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -.035em;
  max-width: 13ch;
}
.h-feature {
  font-size: var(--t-3xl);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -.028em;
}
.h-section {
  font-size: var(--t-xl);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.012em;
}
.h-2 { font-size: var(--t-2xl); font-weight: 400; letter-spacing: -.02em; }
.h-3 { font-size: var(--t-lg);  font-weight: 400; line-height: 1.25; letter-spacing: -.008em; }

/* legacy alias — same as a section head */
.h-1 { font-size: var(--t-xl); font-weight: 400; line-height: 1.15; letter-spacing: -.012em; }

.lede {
  font-size: clamp(1.05rem, .98rem + .35vw, 1.28rem);
  line-height: 1.55;
  text-wrap: pretty;
  color: var(--ink-2);
  max-width: 46ch;
}

p { margin: 0 0 1.1em; max-width: 68ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 clamp(.85rem, .5rem + 1.1vw, 1.4rem);
}

.small { font-size: .875rem; color: var(--muted); line-height: 1.55; }
.tiny  { font-size: .78rem; color: var(--muted); line-height: 1.5; }

em, .it { font-style: italic; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans);
  font-size: .95rem; font-weight: 600; letter-spacing: .005em;
  padding: .95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: .6rem 1.05rem; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* underline link, animated from the left */
.link {
  text-decoration: none;
  font-weight: 500;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size .3s var(--ease);
}
@media (hover: hover) {
  .link:hover { background-size: 0% 1px; background-position: 100% 100%; }
}

.link-accent { color: var(--accent); }
p > .link:only-child { display: inline-block; padding-block: .4rem; }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-head[data-stuck="true"] { border-bottom-color: var(--line); }

.head-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.25rem;
  padding-top: env(safe-area-inset-top);
}
@media (min-width: 62rem) { .head-inner { min-height: 4.75rem; } }

/* The wordmark. A name stacked over a tracked uppercase tagline is the house
   style of every dental template on the internet; this sets the two on one
   baseline instead, divided by a hairline, with the descriptor in the same
   serif turned italic — the way a practice letterhead would set it. */
.brand {
  display: flex; align-items: baseline; gap: .6rem;
  text-decoration: none; margin-right: auto; padding-block: .5rem;
  line-height: 1;
}
.brand-mark {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1;
}
.brand-sub {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-size: .88rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--muted);
  line-height: 1;
  padding-left: .7rem;
  transition: color .25s var(--ease);
}
/* the divider is drawn to the cap height of the name, not the full line box */
.brand-sub::before {
  content: "";
  position: absolute; left: 0; top: -.08em; bottom: -.18em;
  width: 1px;
  background: var(--line);
  transition: background-color .25s var(--ease);
}
@media (hover: hover) {
  .brand:hover .brand-sub { color: var(--accent); }
  .brand:hover .brand-sub::before { background: var(--accent); }
}
@media (min-width: 60rem) { .brand-sub { font-size: .95rem; } }
/* short form on small screens so the wordmark still says what this is */
.brand-sub-long { display: none; }
@media (min-width: 60rem) {
  .brand-sub-short { display: none; }
  .brand-sub-long { display: inline; }
}

.nav { display: none; gap: 1.75rem; align-items: center; }
@media (min-width: 62rem) { .nav { display: flex; } }
.nav a {
  text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--ink-2);
  padding-block: .35rem;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.head-cta { display: none; align-items: center; gap: 1rem; }
@media (min-width: 62rem) { .head-cta { display: flex; } }
.head-tel { text-decoration: none; font-size: .93rem; font-weight: 600; white-space: nowrap;
  font-variant-numeric: tabular-nums; }
.head-tel:hover { color: var(--accent); }

/* mobile menu */
.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  margin-left: auto;
  width: 2.75rem; height: 2.75rem;
  background: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
  padding: 0 .7rem;
}
@media (min-width: 62rem) { .burger { display: none; } }
.burger span { display: block; height: 1px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* The panel overlays the page instead of sitting in flow — an in-flow panel
   grows the sticky header and shoves the whole page down when it opens. */
.mobile-nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 1rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  max-height: calc(100dvh - 100%);
  overflow-y: auto;
  box-shadow: 0 18px 40px -18px rgba(20, 25, 26, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-.5rem);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.mobile-nav[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (min-width: 62rem) { .mobile-nav { display: none !important; } }

/* dims the page behind the panel; sits under the header, over the content */
.nav-scrim {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(20, 25, 26, .40);
  opacity: 0; visibility: hidden;
  transition: opacity .22s var(--ease), visibility .22s;
}
.nav-scrim[data-open="true"] { opacity: 1; visibility: visible; }
@media (min-width: 62rem) { .nav-scrim { display: none; } }
.mobile-nav a {
  display: block; text-decoration: none;
  font-family: var(--serif); font-size: 1.5rem;
  padding: .6rem 0; border-bottom: 1px solid var(--line-soft);
}
.mobile-nav .btn { width: 100%; margin-top: 1.25rem; }

/* ---------- hero ---------- */

.hero { padding-top: clamp(1.5rem, .5rem + 3vw, 5rem); padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 5.5rem); }
.hero-grid {
  display: grid; gap: clamp(2.25rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
}
.hero h1 { margin-bottom: clamp(.9rem, .5rem + 1.3vw, 1.5rem); }
/* the headline is the hero; the supporting paragraph and the facts rail read
   one step quieter than they did */
.hero .lede {
  margin-bottom: clamp(1.5rem, 1rem + 1.6vw, 2rem);
  font-size: clamp(1rem, .95rem + .25vw, 1.13rem);
  max-width: 42ch;
}
.hero-actions { display: grid; grid-template-columns: 1fr; gap: .6rem; }
@media (min-width: 26rem) {
  .hero-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 48rem) {
  .hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
}

/* hero facts panel — replaces the low-resolution team photo with something
   useful: whether we are open right now, and how to get here. */
.hero-facts {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
@media (min-width: 60rem) {
  .hero-facts {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: .35rem 0 .35rem clamp(1.75rem, 3vw, 3rem);
  }
}
.hero-facts dl { margin: 0; display: grid; gap: 1.15rem; }
.hero-facts dt {
  font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  font-weight: 600; color: var(--muted); margin-bottom: .3rem;
}
.hero-facts dd { margin: 0; font-size: .89rem; line-height: 1.5; color: var(--ink-2); }
.hero-facts .open-status { margin-bottom: 1.35rem; }
.hero-facts > .link { display: inline-block; margin-top: 1.35rem; font-size: .9rem; }

/* proof line under hero */
.proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .85rem;
  margin-bottom: clamp(1.1rem, .6rem + 1.6vw, 2rem);
  font-size: .875rem; color: var(--ink-2);
}
/* the address is in the copy, the footer and the visit page — it does not
   need to cost a third line on a 320px screen */
.proof-where { display: none; }
@media (min-width: 34rem) { .proof-where { display: inline; } .proof { gap: .5rem 1.5rem; } }
.proof strong { font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.proof a { font-variant-numeric: lining-nums tabular-nums; }
.stars { color: var(--accent); letter-spacing: .08em; font-size: .9rem; }
.band-ink .stars, .since .stars { color: var(--brand-cyan); }

/* ---------- the "patient since" band — the one signature moment ---------- */

.since {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}
.since-head {
  display: grid; gap: 1.25rem; align-items: baseline;
  margin-bottom: 2.5rem;
}
@media (min-width: 52rem) {
  .since-head { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 3rem; }
}
.since-head h2 { color: var(--paper); }
.since-head p { color: #a9b8b9; font-size: .95rem; margin: 0; }

.ticker { position: relative; }
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(2rem, 8vw, 7rem); z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0;  background: linear-gradient(90deg, var(--ink), transparent); }
.ticker::after  { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }

.ticker-track {
  display: flex; width: max-content;
  animation: slide 64s linear infinite;
}
/* Hovering reverses the run rather than freezing it. Done in JS by flipping
   playbackRate: switching animation-direction in CSS inverts progress mid-cycle,
   so the track would jump. Without JS the marquee simply keeps running. */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker { overflow-x: auto; }
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.ticker-row { display: flex; }
.since-item {
  flex: 0 0 auto;
  padding-inline: clamp(1rem, .6rem + 1.4vw, 2.25rem);
  border-left: 1px solid #24302f;
}
.since-year {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.25rem + 2.2vw, 2.9rem);
  line-height: 1;
  display: block;
  font-variant-numeric: lining-nums tabular-nums;
}
.since-name { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #8fa1a3; margin-top: .5rem; display: block; }

/* ---------- generic section head ---------- */

.sec-head {
  display: grid; gap: 1rem;
  margin-bottom: clamp(1.75rem, 1.1rem + 2.2vw, 3.5rem);
  max-width: 52rem;
}
.sec-head p { color: var(--ink-2); margin: 0; }

/* two-column with sticky left rail */
.split {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 72rem) { .split { grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr); gap: clamp(3rem, 6vw, 5.5rem); } }
@media (min-width: 58rem) {
  .split { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5.5rem); }
  .split-rail { position: sticky; top: 7rem; align-self: start; }
}

/* a feature head is sized for a full-width band; in the narrow rail it steps down */
.split-rail .h-feature,
.split-rail .h-1 { font-size: var(--t-2xl); text-wrap: pretty; }

/* Below the split breakpoint the rail is a full-width row. Capping its note at
   26ch there leaves a tall empty half beside it, which reads as a mistake. */
.rail-note { max-width: 60ch; }
@media (min-width: 58rem) { .rail-note { max-width: 32ch; } }
@media (min-width: 72rem) { .rail-note { max-width: 26ch; } }

/* stacked, the rail sits closer to the content it introduces */
@media (max-width: 57.99rem) {
  .split { gap: 1.75rem; }
  .split-rail .mt-lg { margin-top: 1rem; }
}

/* ---------- care menu ---------- */

.care-groups { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .care-groups { grid-template-columns: 1fr 1fr; } }
@media (min-width: 68rem) { .care-groups { grid-template-columns: repeat(3, 1fr); } }

.care-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.5rem 1.4rem 1.4rem;
  display: flex; flex-direction: column;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
@media (hover: hover) {
  .care-group:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 28px -18px rgba(20, 25, 26, .45);
    transform: translateY(-2px);
  }
}

.care-group :is(h2, h3) {
  display: flex; align-items: baseline; gap: .6rem;
  padding-bottom: .9rem;
  margin-bottom: .9rem;
  border-bottom: 1px solid var(--line-soft);
}
/* a short accent rule reads as a menu heading rather than a card title */
.care-group :is(h2, h3)::before {
  content: "";
  flex: none;
  width: .85rem; height: 2px;
  background: var(--accent);
  transform: translateY(-.28em);
}

.care-group ul { list-style: none; margin: 0; padding: 0; }
.care-group li {
  padding: .38rem 0;
  font-size: .93rem;
  color: var(--ink-2);
  display: flex; align-items: baseline; gap: .55rem;
}
.care-group li::before {
  content: "";
  flex: none;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--muted);
  transform: translateY(-.35em);
}

/* ---------- before / after ----------
   A wipe slider. The practice's pairs are shot at matching framing, so the two
   frames register against each other and the reveal reads as one mouth changing. */

.ba {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  --pos: 50%;
}
.ba img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba-after { clip-path: inset(0 0 0 var(--pos)); }

.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; background: #fff;
  transform: translateX(-1px);
  box-shadow: 0 0 0 1px rgba(20,25,26,.22);
  pointer-events: none;
  z-index: 3;
}
.ba-grip {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(20,25,26,.28);
  display: grid; place-items: center;
  color: var(--ink);
}
.ba-grip svg { width: 1rem; height: 1rem; fill: currentColor; }

.ba-input {
  position: absolute; inset: 0; z-index: 4;
  width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
  appearance: none; -webkit-appearance: none; background: none;
}
.ba-input:focus-visible ~ .ba-handle .ba-grip {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.ba-tag {
  position: absolute; bottom: .8rem; z-index: 2;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  background: rgba(20,25,26,.76); color: #fff;
  padding: .3rem .6rem; border-radius: 2px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.ba-tag-before { left: .8rem; }
.ba-tag-after  { right: .8rem; }

.ba-hint {
  font-size: .78rem; color: var(--muted);
  margin: .7rem 0 0;
  display: flex; align-items: center; gap: .4rem;
}

.case { max-width: 58rem; }
.case-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; align-items: baseline; margin-top: 1.1rem; }
.case-meta .h-3 { margin: 0; }

/* gallery grid (smiles page) */
.case-grid { display: grid; gap: clamp(2.75rem, 5vw, 4.5rem); }
.case-grid > div { max-width: 46rem; }

/* ---------- membership ---------- */

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}
.plan-grid { display: grid; gap: 1.25rem; }
@media (min-width: 50rem) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }

.plan-price {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 1.7rem + 2.7vw, 3.8rem);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: .98; display: block;
  font-variant-numeric: lining-nums tabular-nums;
}
.plan-price span { font-family: var(--sans); font-size: .8rem; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: .2rem; }
/* the name labels the price rather than titling a card */
.plan h3 {
  font-family: var(--sans);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.checks li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .7rem; align-items: start; font-size: .95rem; color: var(--ink-2); }
.checks svg { width: 1.1rem; height: 1.1rem; margin-top: .3rem; color: var(--accent); flex: none; }

.notice {
  border-left: 2px solid var(--accent);
  padding: .1rem 0 .1rem 1rem;
  font-size: .875rem; color: var(--ink-2);
}

/* ---------- doctor ---------- */

.doc-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; justify-items: center; }
@media (min-width: 56rem) { .doc-grid { grid-template-columns: minmax(0, 25rem) minmax(0, 1fr); gap: clamp(3rem, 5vw, 5rem); } }
.doc-grid > *:not(.doc-photo) { justify-self: stretch; }
.doc-photo { justify-self: center; }
/* The source is 298x408. Displayed larger than this it visibly softens, so it is
   capped — and cropped to a 3:4 oval, which is close to its native ratio and
   loses the mural, doorframe and ceiling that clutter the corners. */
/* 21rem of frame puts the image itself at ~290px — the largest the 298px
   source carries without softening. */
.doc-photo {
  position: relative;
  max-width: 21rem;
  margin: 0;
}
.doc-photo .doc-frame {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  /* uniform padding on an ellipse thins the ring at the narrow ends, so the
     horizontal padding is a touch wider to even it out */
  padding: 1.3rem 1.6rem;
}
.doc-photo .doc-oval {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}
.doc-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
  filter: grayscale(.08) contrast(1.03) saturate(.97);
}
.doc-photo .doc-oval::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  mix-blend-mode: soft-light;
  opacity: .1;
  pointer-events: none;
}
.doc-photo figcaption { margin-top: 1.35rem; }
.team-photo { max-width: 34rem; }

.creds { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .55rem; }
.creds li { padding-left: 1.15rem; position: relative; font-size: .95rem; color: var(--ink-2); }
.creds li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: .38rem; height: 1px; background: var(--accent);
}

blockquote.pull {
  margin: 2rem 0 0;
  text-indent: -.42em;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.42;
  font-style: italic;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
  max-width: 42ch;
}
/* directly under her name: no top rule, it is her voice introducing herself */
blockquote.pull-lede {
  border-top: 0;
  padding-top: 0;
  margin: 1rem 0 1.75rem;
  color: var(--ink-2);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  max-width: 40ch;
}

blockquote.pull cite { display: block; margin-top: 1rem; font: 500 .85rem/1.5 var(--sans); font-style: normal; color: var(--muted); }

/* ---------- visit / practical ---------- */

.visit { background: var(--paper-2); }
.visit-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 58rem) { .visit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(3rem, 5vw, 5rem); } }

.hours { width: 100%; border-collapse: collapse; margin-top: .25rem; }
.hours th, .hours td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; font-weight: 400; }
.hours th { color: var(--ink-2); font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .closed { color: var(--muted); }

/* today's row is quietly emphasised rather than highlighted in colour */
.hours tr[data-today="true"] th,
.hours tr[data-today="true"] td { font-weight: 600; color: var(--ink); }
.hours tr[data-today="true"] th::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: .3rem; height: .3rem; border-radius: 50%;
  background: var(--accent); margin-right: .5rem;
}

.open-status {
  margin: 0 0 .85rem;
  font-size: .875rem; font-weight: 600; color: var(--muted);
}
.open-status[data-open="true"] { color: var(--accent); }

.fact { margin-bottom: 1.75rem; }
.fact:last-child { margin-bottom: 0; }
.fact dt { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .45rem; }
.fact dd { margin: 0; font-size: 1rem; line-height: 1.55; }

/* ---------- testimonials ---------- */

.quotes { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 54rem) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.quote p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; margin-bottom: 1rem;
  text-indent: -.42em; }
.quote footer { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }

/* ---------- reviews ---------- */

.reviews-head {
  display: grid; gap: 1.1rem;
  padding-bottom: 1.4rem;
  margin-bottom: clamp(1.5rem, 2.2vw, 2rem);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 46rem) {
  .reviews-head {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2rem;
  }
}

/* one rating, stated once — two cards both reading 4.9 looked like a mistake */
.rating {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: .3rem .7rem;
  margin: 0;
}
.rating .stars { font-size: .95rem; line-height: 1; }
.rating-num {
  font-family: var(--serif);
  font-size: 2rem; font-weight: 300; line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: lining-nums tabular-nums;
}
.rating-src-line { font-size: .85rem; color: var(--muted); }
.rating-src {
  color: var(--ink-2); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.rating-src span { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .rating-src:hover { color: var(--accent); border-color: var(--accent); }
}
.rating-src[data-unverified="true"]::after {
  content: "?";
  font-size: .65rem; font-weight: 700; color: var(--accent);
  vertical-align: super; margin-left: .15rem;
}

.quotes { display: grid; gap: 1rem; }
@media (min-width: 52rem) { .quotes { grid-template-columns: repeat(3, 1fr); } }

.quote {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.8rem 1.7rem 1.5rem;
  display: flex; flex-direction: column;
}
.quote blockquote { margin: 0 0 auto; }
.quote p {
  font-family: var(--serif);
  font-size: 1.16rem; line-height: 1.48;
  letter-spacing: -.005em;
  margin: 0 0 1.4rem;
  text-indent: -.4em;
}
.quote figcaption {
  display: flex; flex-direction: column; gap: .2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.quote-name { font-size: .88rem; font-weight: 600; color: var(--ink); }
/* the tenure year is the whole argument of this site, so it carries the accent */
.quote-since {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.quote-since strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

/* ---------- insurance carriers ---------- */

.insurers {
  list-style: none; margin: 1rem 0 1.25rem; padding: 0;
  display: grid; gap: .1rem .5rem;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}
.insurers li {
  font-size: .95rem; color: var(--ink-2);
  padding: .45rem 0;
  border-bottom: 1px solid var(--line-soft);
}

/* anything not yet confirmed with the practice is marked, so it cannot ship by accident */
[data-unverified="true"] { position: relative; }
.insurers[data-unverified="true"] li::after { content: ""; }
.review-src[data-unverified="true"] .review-label::after {
  content: "?";
  display: inline-block; margin-left: .3rem;
  font-size: .7rem; font-weight: 700; color: var(--accent);
  vertical-align: super;
}
.placeholder-note {
  font-size: .8rem; color: var(--ink-2);
  background: var(--paper-2);
  border: 1px dashed var(--line);
  padding: .7rem .85rem;
  margin: 0 0 1.1rem;
}

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }
/* the closing rule under the list is the CTA's own divider, so the last item
   drops its border — two hairlines with a gap between read as an empty row */
.faq-item:last-child { border-bottom: 0; }

.faq-item summary {
  display: flex; align-items: baseline; gap: 1.25rem;
  padding: 1rem 0;
  min-height: 2.75rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: var(--t-lg);
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -.008em;
  transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { flex: 1 1 auto; }
@media (hover: hover) {
  .faq-item summary:hover { color: var(--accent); }
}

.faq-mark {
  flex: none; width: .95rem; height: .95rem;
  fill: none; stroke: var(--accent); stroke-width: 1.4;
  transition: transform .25s var(--ease);
  align-self: center;
}
.faq-item[open] .faq-mark { transform: rotate(45deg); }

.faq-answer { padding: 0 0 1.25rem; }
.faq-answer p { font-size: .94rem; line-height: 1.6; color: var(--ink-2); max-width: 62ch; margin: 0; }
/* the permalink stays out of the way until the answer is open and hovered */
.faq-link {
  display: inline-block;
  margin-top: .9rem;
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.faq-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* the answer slides rather than snapping, where the browser supports it */
@supports (interpolate-size: allow-keywords) {
  .faq-item::details-content {
    block-size: 0; opacity: 0; overflow: hidden;
    transition: block-size .3s var(--ease), opacity .25s var(--ease), content-visibility .3s allow-discrete;
  }
  .faq-item[open]::details-content { block-size: auto; opacity: 1; }
  .faq-item { interpolate-size: allow-keywords; }
}

/* ---------- forms ---------- */

.field { display: grid; gap: .45rem; margin-bottom: 1.15rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .8rem .9rem;
  width: 100%;
  transition: border-color .2s var(--ease);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: var(--accent); }
.field-error { font-size: .8rem; color: var(--accent-ink); font-weight: 500; min-height: 0; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }

/* ---------- booking dialog ---------- */

dialog.sheet {
  border: 0; padding: 0; max-width: 40rem; width: calc(100% - 2rem);
  max-height: 88dvh;
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 70px rgba(20,25,26,.30);
  border-radius: 2px;
  overflow: hidden;
}
dialog.sheet:not([open]) { display: none; }
.sheet-head, .sheet-foot { flex: none; }
dialog.sheet::backdrop { background: rgba(20,25,26,.52); backdrop-filter: blur(3px); }

.sheet-head {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.25rem) 1.25rem;
  border-bottom: 1px solid var(--line);
}
.sheet-head h2 { font-size: 1.4rem; margin: 0; }
.sheet-close {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: var(--muted); padding: .1rem .35rem;
}
.sheet-close:hover { color: var(--ink); }
.sheet-body { padding: 1.5rem clamp(1.25rem, 4vw, 2.25rem) 1.75rem; overflow-y: auto; flex: 1 1 auto; }
.sheet-foot {
  display: flex; gap: .6rem .75rem; align-items: center; flex-wrap: wrap;
  padding: 1rem clamp(1.25rem, 4vw, 2.25rem) calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.sheet-foot .btn:last-child { margin-left: auto; }

/* on a phone the footer stacks: primary action first, then the call-instead
   escape hatch, then Back — rather than wrapping into a ragged row */
@media (max-width: 29.99rem) {
  .sheet-foot { flex-direction: column; align-items: stretch; }
  .sheet-foot .btn { width: 100%; padding-block: .8rem; }
  .sheet-foot [data-book-next], .sheet-foot [data-book-done] { order: 1; }
  .sheet-foot .tiny { order: 2; text-align: center; }
  .sheet-foot [data-book-back] { order: 3; }
}

.steps { display: flex; gap: .4rem; align-items: center; margin-top: .4rem; }
.step-pip { width: 1.4rem; height: 2px; background: var(--line); }
.step-pip[data-on="true"] { background: var(--accent); }

.choice-grid { display: grid; gap: .6rem; }
@media (min-width: 34rem) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice {
  display: block; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 2px;
  padding: .9rem 1rem;
  font-family: var(--sans);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.choice:hover { border-color: var(--muted); }
.choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); }
.choice strong { display: block; font-size: .95rem; font-weight: 600; }
.choice span { display: block; font-size: .8rem; color: var(--muted); margin-top: .15rem; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .5rem; }
.slot {
  font-family: var(--sans); font-size: .88rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line); border-radius: 2px;
  padding: .6rem .3rem; cursor: pointer; text-align: center;
  font-variant-numeric: tabular-nums;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.slot:hover { border-color: var(--muted); }
.slot[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.confirm-mark {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--accent-wash); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 1.25rem;
}
.confirm-mark path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: draw .45s var(--ease) .1s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .confirm-mark path { animation: none; stroke-dashoffset: 0; }
}
.summary { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.summary li { display: flex; gap: 1rem; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); font-size: .93rem; }
.summary li span:first-child { color: var(--muted); }
.summary li span:last-child { font-weight: 500; text-align: right; }

.demo-note {
  font-size: .78rem; color: var(--muted);
  background: var(--paper-2); border: 1px dashed var(--line);
  padding: .6rem .8rem; margin-top: 1.25rem;
}

/* ---------- footer ---------- */

.site-foot { background: var(--ink); color: #a9b8b9; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.foot-grid { display: grid; gap: 2.5rem; }
@media (min-width: 46rem) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.site-foot h2, .site-foot h3 { color: var(--paper); }
.site-foot h3 { font-family: var(--sans); font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 600; color: #7d8d8f; margin-bottom: 1rem; }
.site-foot a { color: #ccd9da; text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; font-size: .93rem; }
.foot-list a { display: inline-block; padding-block: .65rem; }
.foot-lockup { margin-right: 0; padding-block: 0; }
.foot-brand .brand-mark { color: var(--paper); font-size: 1.5rem; }
/* the footer keeps the same lockup, set on the dark ground */
.foot-brand .brand-sub { color: #8a8175; }
.foot-brand .brand-sub::before { background: #3a352e; }
.foot-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #24302f;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center;
  font-size: .8rem; color: #7d8d8f;
}
.foot-bottom .foot-legal { margin-left: auto; }

/* ---------- mobile sticky call bar ---------- */

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: .55rem .55rem calc(.55rem + env(safe-area-inset-bottom));
  gap: .5rem;
  transform: translateY(110%);
  transition: transform .3s var(--ease);
}
.callbar[data-show="true"] { transform: translateY(0); }
@media (min-width: 62rem) { .callbar { display: none; } }
body { padding-bottom: 0; }
@media (max-width: 61.99rem) { body:has(.callbar[data-show="true"]) { padding-bottom: 4.5rem; } }

/* ---------- page header (inner pages) ---------- */

.page-head { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(2rem, 4vw, 3.25rem); }
.page-head h1 { margin-bottom: 1.1rem; max-width: 18ch; }
.page-head .lede { max-width: 52ch; }

/* utility */
.stack-sm > * + * { margin-top: .75rem; }
.stack   > * + * { margin-top: 1.5rem; }
.stack-lg > * + * { margin-top: 2.5rem; }
.mt-lg { margin-top: clamp(2rem, 4vw, 3rem); }
.center-x { display: flex; justify-content: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}


/* ---------- print ---------- */

@media print {
  .site-head, .callbar, .mobile-nav, dialog.sheet, .ba-input, .ba-handle,
  .hero-actions, .btn, .since { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1.5rem; }
  a { text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .site-foot { background: none; color: #000; border-top: 1px solid #999; }
  .site-foot a, .site-foot h3 { color: #000; }
  img { max-width: 45%; }
  .hours { page-break-inside: avoid; }
}

/* ---------- one closing prompt after the questions ----------
   The FAQ answers the last objection and then stopped; this gives that reader
   somewhere to go without adding a button to every band. */
.cta-line {
  display: grid; gap: 1.25rem;
  align-items: center;
  margin-top: clamp(4rem, 5vw, 4.75rem);
  padding-top: clamp(2.25rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 46rem) {
  .cta-line { grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; }
}
.cta-line p { margin: 0; max-width: 56ch; color: var(--ink-2); }
.cta-line .btn { justify-self: start; }

/* the services menu is a set of links to the detail page, so each group reads
   and behaves as one */
/* the heading is the card's tap target, so it carries a little more height
   than its text — bled back out with a negative margin so nothing shifts */
.care-group :is(h2, h3) a {
  text-decoration: none;
  display: inline-block;
  padding-block: .4rem;
  margin-block: -.4rem;
}
.care-group :is(h2, h3) a:hover { color: var(--accent); }

/* ---------- section weighting ----------
   Proof, price and the dentist are the beats worth slowing down for; the
   questions and the practical detail are quieter by design. */
section[aria-labelledby="smiles-title"],
section[aria-labelledby="plan-title"] { padding-block: calc(var(--rhythm) * 1.1); }
section[aria-labelledby="faq-title"],
section[aria-labelledby="visit-title"] { padding-block: calc(var(--rhythm) * .85); }
/* the quotes sat in a lot of empty paper before the footer */
section[aria-labelledby="q-title"] { padding-bottom: calc(var(--rhythm) * .7); }

/* ---------- site map ---------- */
.map-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 46rem) { .map-grid { grid-template-columns: repeat(3, 1fr); } }
.map-grid h2, .map-faq h2 {
  padding-bottom: .75rem;
  margin-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.map-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.map-list li { border-bottom: 1px solid var(--line-soft); }
.map-list a {
  display: block;
  padding: .55rem 0;
  font-size: .95rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.map-list a:hover { color: var(--accent); }
.map-faq { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
@media (min-width: 46rem) { .map-list-wide { grid-template-columns: 1fr 1fr; gap: 0 3rem; } }
