/* Manotick Smiles, v6 (Nov 10 2026, Sia's round 3 brief and mockup). Warm cream page, deep evergreen for the booking strip,
   Meet Dr. Phil and the request form, pale green expandable rows. Two families only: DM Serif Display for section
   headings and the featured quote, DM Sans for everything else. Sizes are Sia's, mobile first, desktop from 768px.
   The chart drawing is unchanged from v5; only its colours follow the new palette. */
:root {
  --cream: #F7F5EF;
  --white: #FFFEFA;
  --pale: #EAF0E5;
  --ever: #173C37;
  --muted: #557766;
  --line: #D9DED5;
  --ever-soft: rgba(23, 60, 55, .8);
  --on-ever: rgba(255, 254, 250, .82);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --pad: 24px;
  --sec: 48px;
  --wrap: 960px;
  --radius: 14px;
}
@media (min-width: 768px) { :root { --pad: clamp(32px, 5vw, 64px); --sec: 80px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ever); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
@media (min-width: 768px) { body { font-size: 18px; } }
a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
[id] { scroll-margin-top: 84px; }
:focus-visible { outline: 2px solid var(--ever); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ever); color: var(--white); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 12px; }

/* type: one scale everywhere */
.eyebrow { font: 700 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
h2, .h2 { font: 400 32px/1.1 var(--serif); letter-spacing: -.005em; margin: 0; }
h3 { font-weight: 600; }
@media (min-width: 768px) {
  .eyebrow { font-size: 13px; }
  h2, .h2 { font-size: 44px; }
}

/* buttons: 16px bold, sentence case */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 13px 22px; border-radius: 999px; min-height: 48px;
  font: 700 16px/1.2 var(--sans); text-decoration: none; border: 1.5px solid var(--ever); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-ink { background: var(--ever); color: var(--white); }
.btn-ink:hover { background: var(--muted); border-color: var(--muted); }
.btn-line { background: transparent; color: var(--ever); }
.btn-line:hover { background: var(--ever); color: var(--white); }
.btn-light { background: var(--white); color: var(--ever); border-color: var(--white); }
.btn-light:hover { background: var(--pale); border-color: var(--pale); }
.btn-light svg { width: 22px; height: 14px; }
/* Dr. Phil asked for movement on the call button: a soft ring breathes out every few seconds */
.btn-pulse { position: relative; isolation: isolate; }
.btn-pulse::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(85, 119, 102, .55); animation: breathe 2.8s cubic-bezier(.25, .6, .3, 1) infinite; }
@keyframes breathe { 0% { box-shadow: 0 0 0 0 rgba(85, 119, 102, .55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(85, 119, 102, 0); } }

/* pause and play, for anything that moves on its own */
.toggle { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0;
  background: transparent; border: 1.5px solid currentColor; }
.toggle svg { width: 16px; height: 16px; fill: currentColor; grid-area: 1 / 1; }
.toggle .i-play, .toggle[aria-pressed="true"] .i-pause { display: none; }
.toggle[aria-pressed="true"] .i-play { display: block; }
.toggle-light { color: var(--ever); }
.toggle-light:hover { background: var(--pale); }

/* top */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  padding: 12px var(--pad); background: rgba(247, 245, 239, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top.scrolled { box-shadow: 0 1px 0 var(--line); }
.mark, .foot-id { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo { width: 72px; height: 72px; border-radius: 50%; display: block; flex: none; }
.word { display: flex; flex-direction: column; line-height: 1; }
.word b { font: 400 22px/1 var(--serif); white-space: nowrap; }
.word i { font: 700 11px/1 var(--sans); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.nav { display: flex; align-items: center; gap: 18px; margin-left: auto; font-size: 16px; }
.nav a { text-decoration: none; padding: 4px 0; border-bottom: 1.5px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a.current { border-bottom-color: var(--ever); }
.nav .nav-req { background: var(--ever); color: var(--white); padding: 10px 18px; border-radius: 999px; border: 0; font-weight: 700; }
.nav .nav-req:hover, .nav .nav-req.current { background: var(--muted); }
.nav .nav-extra { display: none; }
.menu-btn { display: none; place-items: center; flex: none; width: 48px; height: 48px; background: none; border: 0; border-radius: 12px; cursor: pointer; padding: 0; }
.bars { position: relative; width: 26px; height: 18px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; transition: border-color .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; margin-top: -1px; border-top: 2px solid currentColor; transition: transform .25s; }
.menu-btn[aria-expanded="true"] .bars { border-color: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: rotate(-45deg); }

/* Nov 30 (Dr. Phil via Sia): the about blurb and tagline open the page. Dec 1: no photo, no eyebrow, the closing line set like the paragraphs */
.about { padding: 32px 0 var(--sec); }
.about-grid { display: grid; gap: 28px; align-items: center; }
.about-text h1 { font: 700 40px/1.05 var(--sans); letter-spacing: -.025em; margin: 0 0 18px; color: var(--ever); }
.about-text p { margin: 0 0 14px; max-width: 34em; }
.about-text .about-sign { font-weight: 700; }
@media (min-width: 768px) {
  .about { padding-top: 56px; }
  .about-text h1 { font-size: 60px; }
  .about-text p { font-size: 18px; }
}

/* Dec 1, chosen by Dr. Phil the same day (was Option V2): the bright treatment room clip fills the about section behind the text, under a cream wash
   that is solid behind the words and lets the room show through on the right, so the page never turns dark */
.hero-video .about { position: relative; overflow: hidden; isolation: isolate; }
.about-bg { position: absolute; inset: 0; z-index: -1; }
.about-bg video, .about-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; display: block; filter: saturate(.85) brightness(1.06); }
.about-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(247, 245, 239, .9) 0%, rgba(247, 245, 239, .82) 100%); }
@media (min-width: 980px) {
  .hero-video .about { min-height: min(760px, calc(100svh - 130px)); display: flex; align-items: center; }
  .hero-video .about > .wrap { width: 100%; }
  .about-bg::after { background: linear-gradient(90deg, rgba(247, 245, 239, .97) 0%, rgba(247, 245, 239, .9) 38%, rgba(247, 245, 239, .45) 68%, rgba(247, 245, 239, .2) 100%); }
}

/* chart: heading centred, the drawing and its answer below */
.chart { max-width: 1320px; margin: 0 auto; padding: 28px var(--pad) var(--sec); }
.intro { text-align: center; max-width: 660px; margin: 0 auto 8px; }
.intro .chart-h { font: 700 40px/1.05 var(--sans); letter-spacing: -.025em; margin: 0 0 10px; }
.intro p { color: var(--ever-soft); margin: 0 auto; max-width: 31em; }
@media (min-width: 768px) { .intro .chart-h { font-size: 64px; } .chart { padding-top: 40px; } }
.chart-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.board { position: relative; }
#mouth { width: 100%; height: auto; display: block; max-height: 74vh; margin: 0 auto; overflow: visible; }
.quick { margin: 10px 0 0; text-align: center; color: var(--ever-soft); font-size: 16px; line-height: 2.1; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 26px; }
.quick button { background: none; border: 0; padding: 0 2px; color: var(--ever); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.quick button:hover, .quick button[aria-pressed="true"] { text-decoration-color: var(--ever); }
.all-link { color: var(--ever); font-weight: 600; text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 4px; }
.all-link::after { content: " \2193"; }

/* the drawing: fine evergreen line on cream, pale green on hover, solid evergreen for what you picked */
.gum { fill: none; stroke: transparent; stroke-width: 70; stroke-linecap: butt; cursor: pointer; transition: stroke .3s; }
.gum:hover, .gum.on { stroke: rgba(234, 240, 229, .9); }
.tooth { cursor: pointer; outline: none; opacity: 0; transition: opacity .5s ease var(--d, 0s); }
body.ready .tooth { opacity: 1; }
.tooth .body { fill: var(--white); stroke: var(--ever); stroke-width: 1.3; transition: fill .25s, stroke .25s; }
.tooth .detail { fill: none; stroke: rgba(23, 60, 55, .3); stroke-width: 1; stroke-linecap: round; }
.tooth:hover .body, .tooth:focus-visible .body { fill: var(--pale); stroke: var(--muted); }
.tooth.on .body { fill: var(--ever); stroke: var(--ever); stroke-width: 1.8; }
.tooth.on .detail { stroke: rgba(255, 254, 250, .8); }
.tooth.gap .body { fill: none; stroke-dasharray: 3 5; stroke: rgba(23, 60, 55, .5); }
.tooth.gap .post { fill: none; stroke: var(--ever); stroke-width: 1.6; opacity: 0; transition: opacity .3s; }
.tooth.gap.on .post, .tooth.gap:hover .post { opacity: 1; }
.tooth .straight { transition: transform .8s cubic-bezier(.3, 1.3, .5, 1); }
.num { font: 400 13px var(--sans); fill: var(--muted); text-anchor: middle; dominant-baseline: middle; pointer-events: none; opacity: 0; transition: opacity .2s; }
.num.show, .num.on { opacity: 1; }
.label { font: 400 16px var(--sans); fill: var(--muted); text-anchor: middle; pointer-events: none; }
.inside, .kids-set { cursor: pointer; }
.inside .crown, .inside .root { fill: var(--white); stroke: var(--ever); stroke-width: 1.3; transition: fill .25s, stroke .25s; }
.inside .pulp { fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.inside:hover .root, .inside:hover .crown { fill: var(--pale); stroke: var(--muted); }
.inside.on .root, .inside.on .crown { fill: var(--ever); stroke: var(--ever); }
.inside.on .pulp { stroke: var(--white); }
.inside .cap, .kids-set .cap { font: 400 15px var(--sans); fill: var(--muted); text-anchor: middle; }
.kids-set .mini { fill: var(--white); stroke: var(--ever); stroke-width: 1; transition: fill .25s, stroke .25s; }
.kids-set:hover .mini { fill: var(--pale); stroke: var(--muted); }
.kids-set.on .mini { fill: var(--ever); stroke: var(--ever); }

/* callouts: a pulsing dot on every zone, named on the chart */
.co { cursor: pointer; outline: none; opacity: 0; transition: opacity .6s ease var(--d, 1s); }
body.ready .co { opacity: 1; }
.co .lead { fill: none; stroke: rgba(23, 60, 55, .35); stroke-width: 1; stroke-dasharray: 2 4; }
.co .dot { fill: var(--ever); stroke: var(--cream); stroke-width: 2; }
.co .ring { fill: none; stroke: var(--muted); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ping 2.4s cubic-bezier(.2, .7, .3, 1) infinite; animation-delay: var(--d, 0s); }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(3); opacity: 0; } }
.co-label { font: 600 19px var(--sans); fill: var(--ever); transition: fill .2s; }
.co:hover .co-label, .co:focus-visible .co-label, .co.on .co-label { fill: var(--muted); }
.co:hover .lead, .co.on .lead { stroke: var(--ever); stroke-dasharray: none; }
.co.on .ring { animation: none; opacity: 0; }

/* the answer to what you picked */
.card { position: relative; align-self: start; padding: 22px 0 0; border-top: 1px solid var(--line); }
.note { font: 700 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.card-title { font: 600 21px/1.2 var(--sans); letter-spacing: -.01em; margin: 0 0 8px; }
.lede { margin: 0 0 14px; color: var(--ever-soft); }
.concerns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.concerns:empty { display: none; }
.concern { background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 15px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.concern:hover { border-color: var(--muted); }
.concern[aria-pressed="true"] { background: var(--ever); border-color: var(--ever); color: var(--white); }
.why { border-top: 1px solid var(--line); padding-top: 14px; }
.why.flash { animation: flash .4s ease; }
.why-h { font: 700 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.why p { margin: 0 0 16px; }
.treat { list-style: none; padding: 0; margin: 0 0 14px; }
.treat li { position: relative; padding: 5px 0 5px 22px; }
.treat li::before { content: ""; position: absolute; left: 4px; top: calc(5px + .8em - 3px); width: 6px; height: 6px; background: var(--muted); border-radius: 50%; }
.exam-note { font-size: 15px; color: var(--ever-soft); margin: 0 0 14px !important; }
.card-call { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.all-here { border-top: 1px solid var(--line); padding-top: 10px; }
.all-here summary { cursor: pointer; font-weight: 600; font-size: 16px; padding: 4px 0; }
.all-here ul { list-style: none; padding: 0; margin: 8px 0 0; font-size: 16px; }
.all-here li { padding: 6px 0; border-top: 1px solid var(--line); }
.card.flash { animation: flash .5s ease; }
@keyframes flash { from { opacity: .3; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.close { display: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--pale); color: var(--ever); font-size: 24px; line-height: 1; cursor: pointer; }
.sheet-bar { display: none; }
@media (min-width: 768px) { .card-title { font-size: 24px; } .note, .why-h { font-size: 13px; } }
@media (min-width: 980px) {
  .chart-body { grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); column-gap: 64px; align-items: start; margin-top: 12px; }
  #mouth { max-height: calc(100vh - 230px); }
  .card { border-top: 0; border-left: 1px solid var(--line); padding: 8px 0 0 32px; margin-top: 40px; }
}

/* the booking strip: slow, right to left, pauses on hover, on keyboard focus and with its own button */
.strip { display: flex; align-items: center; background: var(--ever); color: var(--white); }
.strip-view { flex: 1; min-width: 0; overflow: hidden; }
.strip-track { display: flex; width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
.strip-set { display: flex; flex: none; list-style: none; margin: 0; padding: 0; }
.strip-set li { display: flex; align-items: center; white-space: nowrap; }
.strip-set li::after { content: "\2022"; margin: 0 22px; opacity: .7; font-size: 18px; }
.strip a { display: block; padding: 18px 0; color: var(--white); font: 600 20px/1.2 var(--sans);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: rgba(255, 254, 250, .55); }
.strip a:hover { text-decoration-color: var(--white); }
.strip a:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 2px; }
.strip-view:hover .strip-track, .strip.paused .strip-track { animation-play-state: paused; }
/* keyboard: the track steps back to the start so the focused link is in view, and stays still */
.strip-view:focus-within .strip-track { animation: none; }
.strip-toggle { margin: 0 12px; color: var(--white); border-color: rgba(255, 254, 250, .55); }
.strip-toggle:hover { background: rgba(255, 254, 250, .12); }
.strip-toggle:focus-visible { outline-color: var(--white); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (min-width: 768px) { .strip a { font-size: 22px; padding: 22px 0; } .strip-set li::after { margin: 0 30px; } }

/* sections: same spacing everywhere; two light sections in a row share one gap */
.sec { padding: var(--sec) 0; }
.sec.flush { padding-top: 0; }
.tone-pale { background: var(--pale); }
/* Nov 30: Services sits on a white band between the team and the chart, so the page breaks before "Point to it." */
.tone-white { background: #FFFFFF; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tone-ever { background: var(--ever); color: var(--white); }
.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.sec-head { margin: 0 0 24px; }
.sec-lede { margin: 12px 0 0; color: var(--ever-soft); max-width: 36em; }
.sec-lede a { color: var(--ever); font-weight: 600; }
@media (min-width: 768px) { .sec-head { margin-bottom: 32px; } }

/* expandable rows: services, first visit, paying for your care, questions. Same shape everywhere; more than one can be open. */
.rows { display: grid; gap: 10px; }
.row { background: var(--pale); border-radius: var(--radius); color: var(--ever); }
.rows-white .row { background: var(--white); }
.row > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; min-height: 52px; font: 600 17px/1.35 var(--sans); border-radius: var(--radius); }
.row > summary::-webkit-details-marker { display: none; }
.row > summary::after { content: ""; flex: none; width: 16px; height: 16px; margin-left: 4px;
  background: linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 16px no-repeat;
  transition: background-size .2s; }
.row[open] > summary::after { background-size: 16px 2px, 2px 0; }
.row > summary:hover { background: rgba(23, 60, 55, .04); }
.row > summary:focus-visible { outline: 2px solid var(--ever); outline-offset: 2px; }
.row-body { padding: 0 18px 18px; }
.row-body > :first-child { margin-top: 0; }
.row-body p { margin: 0 0 12px; }
.row-body > :last-child { margin-bottom: 0; }
.row-body a { color: var(--ever); font-weight: 600; }
.row[open] .row-body { animation: flash .3s ease; }
@media (min-width: 768px) {
  .row > summary { font-size: 18px; padding: 16px 22px; min-height: 58px; }
  .row-body { padding: 0 22px 22px; }
}
/* services details */
.svc-lede { color: var(--ever-soft); }
.svc-list { list-style: none; padding: 0; margin: 0 0 12px; }
.svc-list li { position: relative; padding: 6px 0 6px 22px; border-top: 1px solid rgba(23, 60, 55, .1); }
.svc-list li::before { content: ""; position: absolute; left: 4px; top: calc(6px + .8em - 3px); width: 6px; height: 6px; background: var(--muted); border-radius: 50%; }
.on-chart { background: none; border: 0; padding: 6px 0; cursor: pointer; font-size: 16px; font-weight: 700; color: var(--ever);
  text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 4px; }
.on-chart::after { content: " \2191"; }
.on-chart:hover { text-decoration-color: var(--ever); }
/* first visit */
.step-sub { font: 700 12px/1.2 var(--sans) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px !important; }
.row-body .step-sub:first-child { margin-top: 0 !important; }
.row-body ul { margin: 0 0 12px; padding-left: 20px; }
.row-body li { margin: 0 0 7px; }
.row-body li b { font-weight: 600; }
.steps-close { margin: 28px 0 0; max-width: 36em; color: var(--ever-soft); }
.faq-more { margin: 24px 0 0; }
.faq-more a { color: var(--ever); font-weight: 600; }

/* Meet Dr. Phil: his cutout stands on the bottom edge of the evergreen band */
.doc-band { background: var(--ever); color: var(--white); padding: var(--sec) 0 0; overflow: hidden; }
/* Nov 13: photo cropped at the lap and sitting on the band's bottom edge (Eduardo's reference), text centred beside it */
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "btn" "photo"; gap: 20px; }
.doc-photo { grid-area: photo; margin: 12px 0 0; justify-self: center; width: min(300px, 82%); }
.doc-photo img { display: block; width: 100%; height: auto; }
.doc-head { grid-area: head; }
.doc-head h2 { color: var(--white); }
.doc-head p { margin: 8px 0 0; color: var(--on-ever); }
.doc-head .doc-full { font-size: 14px; margin-top: 10px; }
.doc-btn { grid-area: btn; justify-self: start; gap: 16px; padding: 13px 20px 13px 24px; }
/* Nov 20 (Dr. Phil via Sia), Option 1 chosen Nov 30: the cutout moves flush to the left edge and grows; from 600px it touches the top and the bottom of the band. */
.doc-band .doc-photo { justify-self: start; margin-left: calc(-1 * var(--pad)); width: min(420px, 94vw); }
@media (min-width: 600px) {
  .doc-band { padding: 0; }
  .doc-grid { max-width: none; padding: 0 var(--pad) 0 0; grid-template-columns: 320px minmax(0, 1fr); grid-template-areas: "photo ." "photo head" "photo btn" "photo .";
    grid-template-rows: minmax(48px, 1fr) auto auto minmax(48px, 1fr); gap: 0 44px; }
  .doc-band .doc-photo { width: 100%; margin: 0; align-self: end; }
  .doc-btn { margin-top: 28px; }
}
@media (min-width: 768px) {
  .doc-grid { grid-template-columns: 420px minmax(0, 1fr); gap: 0 64px; }
  .doc-head p { font-size: 18px; }
  .doc-head .doc-full { font-size: 15px; }
}
@media (min-width: 1100px) {
  .doc-grid { grid-template-columns: 540px minmax(0, 1fr); gap: 0 96px; }
}
/* Dec 1 (Eduardo): on computers the photo was pinned to the far left of the screen with empty green on the right.
   From 1100px the photo (same size as before) and the words sit together in the centred page column. Phones and tablets untouched. */
@media (min-width: 1100px) {
  .doc-grid { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); grid-template-columns: 540px minmax(0, 1fr); gap: 0 88px; }
}
/* Dec 3 (Eduardo): white coat photo a little smaller on computers, with room above his head (headroom is in the image itself) */
@media (min-width: 1100px) {
  .doc-grid { grid-template-columns: 460px minmax(0, 1fr); gap: 0 110px; }
}
}

/* the team: names and roles in two columns, hygienists on one side */
.crew-h { margin-bottom: 24px; }
.crew { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.crew ul { list-style: none; margin: 0; padding: 0 16px 0 0; display: grid; gap: 16px; align-content: start; }
.crew ul + ul { padding: 0 0 0 16px; border-left: 1px solid var(--line); }
.crew li { overflow-wrap: anywhere; }
.crew b { display: block; font: 600 17px/1.3 var(--sans); }
.crew span { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; }
@media (min-width: 768px) {
  .crew { max-width: 720px; }
  .crew ul { padding-right: 40px; gap: 20px; } .crew ul + ul { padding-left: 40px; }
  .crew b { font-size: 18px; } .crew span { font-size: 16px; }
}

/* reviews: one featured line, then a slow ribbon of notes */
.voices { overflow: hidden; }
.feature { margin: 0; }
.feature blockquote { margin: 0 0 10px; font: italic 400 25px/1.25 var(--serif); max-width: 22em; }
.feature figcaption { font-size: 15px; color: var(--muted); }
@media (min-width: 768px) { .feature blockquote { font-size: 32px; } .feature figcaption { font-size: 16px; } }
.ribbon { margin-top: 32px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ribbon-track { display: flex; gap: 16px; width: max-content; padding: 6px 0 14px; animation: drift 80s linear infinite; }
.ribbon:hover .ribbon-track, .ribbon:focus-within .ribbon-track, .ribbon.paused .ribbon-track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(calc(-50% - 8px)); } }
.note-card { margin: 0; width: min(78vw, 330px); flex: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; }
.note-card .src { font: 700 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.note-card blockquote { margin: 0 0 12px; font-size: 16px; line-height: 1.5; }
.note-card figcaption { margin-top: auto; font-weight: 600; font-size: 16px; }
.voices-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }

/* visit us: cream, the street drawn in evergreen line */
.village .sec-head { margin-bottom: 8px; }
.street { height: clamp(170px, 30vw, 340px); overflow: hidden; margin: 0 0 24px; }
.street svg { width: 100%; height: 100%; display: block; }
.street .ln { fill: none; stroke: var(--ever); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.street .thin { stroke-width: 1.15; opacity: .7; }
.street .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.7s cubic-bezier(.45, 0, .2, 1); }
.street.in .draw { stroke-dashoffset: 0; }
.street .river { stroke: var(--muted); stroke-width: 1.5; opacity: .8; animation: flow 7s linear infinite; }
@keyframes flow { to { transform: translateX(-40px); } }
.street text { opacity: 0; transition: opacity 1s ease 1.2s; }
.street.in text { opacity: 1; }
.street .pin { fill: var(--ever); }
.street .pin-hole { fill: var(--cream); }
.pin-drop { transform-box: fill-box; transform-origin: center bottom; transform: translateY(-70px); opacity: 0;
  transition: transform .8s cubic-bezier(.3, 1.6, .5, 1) 1.6s, opacity .3s ease 1.6s; }
.street.in .pin-drop { transform: none; opacity: 1; }
.street .pintext { font: 600 22px var(--sans); fill: var(--ever); }
.street .small { font: 400 17px var(--sans); fill: var(--muted); }
.visit-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); margin: 0 0 22px; }
.addr { margin: 0; padding-right: 16px; }
.addr span { white-space: nowrap; }
.hours { margin: 0; padding-left: 16px; border-left: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.hours div { display: grid; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; }
@media (min-width: 640px) {
  .visit-info { grid-template-columns: auto auto; justify-content: start; }
  .addr { padding-right: 40px; } .hours { padding-left: 40px; gap: 4px; }
  .hours div { grid-template-columns: 110px auto; gap: 20px; }
}
.btn-icon svg { width: 16px; height: 20px; }
.emerg { margin: 22px 0 10px; max-width: 34em; }
.visit-lines { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.ic-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.ic-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.ic-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* request: a warm white form on deep evergreen */
.tone-ever h2 { color: var(--white); }
.tone-ever .sec-lede, .talk { color: var(--on-ever); }
.talk { margin: 18px 0 0; }
.talk a { color: var(--white); font-weight: 700; }
.talk span { font-size: 15px; }
.req-grid { display: grid; gap: 8px; align-items: start; }
.req-form { background: var(--white); color: var(--ever); border-radius: 18px; padding: 22px 20px; display: grid; gap: 18px; }
.field label, .choice legend { display: block; font: 600 16px/1.3 var(--sans); margin: 0 0 7px; padding: 0; }
.opt { font-weight: 400; font-size: 14px; color: var(--muted); margin-left: 6px; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); }
.field textarea { resize: vertical; min-height: 92px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; text-overflow: ellipsis;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23173C37' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 15px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ever); outline-offset: 1px; border-color: var(--ever); }
.field-row { display: grid; gap: 18px; }
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice label { display: inline-flex; align-items: center; gap: 8px; margin: 0 8px 8px 0; padding: 9px 15px 9px 12px; border: 1.5px solid var(--line);
  border-radius: 999px; background: var(--white); cursor: pointer; font-size: 16px; }
.choice input { accent-color: var(--ever); width: 17px; height: 17px; margin: 0; }
.choice label:has(input:checked) { border-color: var(--ever); background: var(--pale); }
.send { width: 100%; padding: 14px 26px; }
.form-note { margin: 0; }
.form-note:empty { display: none; }
.form-note.shown { padding: 14px 16px; border-radius: 10px; background: var(--pale); border-left: 3px solid var(--ever); animation: flash .4s ease; }
.privacy { margin: 0; font-size: 14px; color: var(--muted); }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } .req-form { padding: 32px; } .send { width: auto; justify-self: start; } }
@media (min-width: 980px) {
  .req-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; }
  .req-grid .sec-head { position: sticky; top: 110px; }
}

/* footer: logo, phone, socials */
.foot { border-top: 1px solid var(--line); padding: 32px var(--pad) 36px; display: grid; gap: 14px; justify-items: start; font-size: 15px; }
.foot-logo { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.foot p { margin: 0; }
.foot-social a { font-weight: 600; text-decoration: none; }
.foot-social a:hover { text-decoration: underline; }
.foot-tag { font: 400 20px/1.2 var(--serif); color: var(--ever); }
.credit { color: var(--muted); }
.credit a { color: var(--ever); }
@media (min-width: 900px) { .foot { grid-template-columns: auto 1fr auto auto; align-items: center; gap: 32px; } .foot-phone { justify-self: end; } .credit, .foot-tag { grid-column: 1 / -1; } }

/* things ease in as they arrive */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* phone dock: call and request stay in reach once the booking strip scrolls away */
.dock { display: none; }

/* Dec 1: smaller laptops (1180 to 1439 px wide) got the hamburger while bigger ones got the full menu, so two people
   saw two headers. The full menu now shows from 1180 px, set tighter so the ten links fit. */
@media (min-width: 1180px) and (max-width: 1439px) {
  .top { padding-left: 28px; padding-right: 28px; }
  .nav { gap: 13px; font-size: 14px; }
  .nav .nav-req { padding: 9px 14px; }
}
@media (min-width: 1180px) and (max-width: 1279px) {
  .top { padding-left: 20px; padding-right: 20px; }
  .nav { gap: 10px; font-size: 13px; }
  .nav .nav-req { padding: 8px 12px; }
}
@media (max-width: 1179px) {
  .menu-btn { display: grid; margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 6px var(--pad) 22px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -30px rgba(23, 60, 55, .5);
    max-height: calc(100vh - 70px); overflow: auto; }
  .nav.open { display: flex; }
  .nav a { font-size: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a:hover, .nav a.current { border-bottom-color: var(--line); }
  .nav .nav-req { order: 9; margin-top: 16px; text-align: center; border-radius: 999px; border: 0; padding: 14px 18px; }
  .nav .nav-extra { display: block; }
}
@media (max-width: 979px) {
  /* phones: the answer only appears as the sheet, so the booking strip sits right under the mouth */
  .card:not(.sheet) { display: none; }
  .card.sheet { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 30; max-height: 56vh; overflow: auto; padding: 0 18px 18px; margin: 0;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px -20px rgba(23, 60, 55, .45); animation: rise .35s cubic-bezier(.2, .9, .3, 1); }
  body.dock-on .card.sheet { bottom: calc(78px + env(safe-area-inset-bottom)); max-height: calc(100vh - 220px); }
  .card.sheet .sheet-bar { display: flex; justify-content: flex-end; position: sticky; top: 0; z-index: 2; margin: 0 -18px 4px; padding: 8px 10px 6px; background: var(--white); }
  .card.sheet .close { display: block; }
  /* the label sits beside the close button, never over it (it used to cover the button once it wrapped to two lines) */
  .card.sheet .sheet-bar + .note { margin-top: -30px; margin-right: 52px; position: relative; z-index: 1; }
  .dock { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(247, 245, 239, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); transform: translateY(110%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
  .dock .btn { padding: 12px 10px; }
  body.dock-on .dock { transform: none; visibility: visible; transition: transform .3s ease, visibility 0s; }
  body { padding-bottom: 76px; }
}
@keyframes rise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 700px) {
  .co-label { font-size: 27px; }
  .co .dot { r: 8; } .co .ring { r: 9; }
  .card-call .btn { flex: 1 1 auto; }
}
@media (max-width: 400px) {
  .logo { width: 58px; height: 58px; }
  .word b { font-size: 19px; }
  .strip a { font-size: 18px; }
}

/* reduced motion: nothing moves; the strip shows its two links once, still */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .strip-track { width: auto; justify-content: center; }
  .strip [data-clone], .strip-toggle, #ribbonToggle { display: none; }
  .strip-set { flex-wrap: wrap; justify-content: center; }
  .strip-set li:last-child::after { content: none; }
  .ribbon { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .ribbon-track { padding: 6px var(--pad) 14px; }
  .ribbon-track [aria-hidden="true"] { display: none; }
}

/* placeholders, for anything still to come from the clinic */
.tbc { display: block; margin: 0; padding: 14px 16px; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--white); color: var(--ever-soft); font-size: 15px; line-height: 1.5; }
.tbc-tag { display: inline-block; margin: 0 8px 0 0; padding: 1px 8px; border-radius: 999px; background: var(--pale);
  font: 700 11px/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ever); }

/* Dr. Phil's page */
.page-head { padding: 28px 0 0; }
.back { display: inline-flex; gap: 6px; font-size: 16px; font-weight: 600; text-decoration: none; margin-bottom: 24px; }
.back:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-h1 { font: 400 36px/1.08 var(--serif); margin: 0; }
@media (min-width: 768px) { .page-h1 { font-size: 52px; } }
.page-role { margin: 8px 0 0; color: var(--muted); font-weight: 600; }
.bio { display: grid; gap: 28px; align-items: start; }
.bio-photo { margin: 0 auto; width: 100%; max-width: 360px; }
.bio-photo img { display: block; width: 100%; max-width: 360px; height: auto; border-radius: 14px; }
.bio-text p { margin: 0 0 16px; max-width: 36em; }
.bio-text p:first-child { font-size: 1.1em; }
@media (min-width: 820px) { .bio { grid-template-columns: 320px minmax(0, 1fr); gap: 56px; } .bio-photo { position: sticky; top: 110px; } }
.work { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.work img { width: 100%; height: 220px; object-fit: cover; display: block; border-radius: 12px; }
@media (min-width: 820px) { .work { grid-template-columns: .66fr 1fr 1fr .66fr; gap: 14px; } .work img { height: 340px; } }
.book-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* blog */
.posts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.post { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.post-tag { font: 700 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.post h3 { font: 600 21px/1.25 var(--sans); margin: 0 0 8px; }
.post p { margin: 0; color: var(--ever-soft); }
.post-link { text-decoration: none; }
.post-link:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.post-feature { border-color: var(--ever); }
.read { margin-top: 14px !important; color: var(--ever) !important; font-weight: 700; }
.article { max-width: 720px; }
.article-meta { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.article p { margin: 0 0 16px; }
.pages { display: grid; gap: 14px; margin: 28px 0; }
.pages img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); }
@media (min-width: 700px) { .pages { grid-template-columns: 1fr 1fr; } }
.courtesy { font-size: 14px; color: var(--muted); }
.comment-preview { max-width: 640px; display: grid; gap: 16px; background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.comment-preview input:disabled, .comment-preview textarea:disabled { background: var(--cream); cursor: not-allowed; }
.blog-page, .doc-page { padding-bottom: 0 !important; }
