/* Toothbar — styles
   Structure and motion: see animacoes.md. Palette and type: see BRAND.md.
   Brand teal #5BC3BE (logo toothbrush), logo ink #231F20, mint surfaces and a deep green-black for dark
   sections. Headlines in Renaisans Grotesk (Envato Elements; ink traps, regular + italic), text in
   Instrument Sans (OFL). Contrast checked in BRAND.md. */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-italic-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Renaisans Grotesk";
  src: url("../fonts/renaisans-400-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Renaisans Grotesk";
  src: url("../fonts/renaisans-400i-latin.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f5f5f0;
  --surface: #e9f1ee;
  --surface-2: #dce9e5;
  --portrait: #d6ebe7;
  --ink: #152220;
  --ink-soft: #4f5d5a;
  --ink-deep: #0f1b19;
  --accent: #1d7069;
  --teal: #5bc3be;
  --teal-hover: #78d3ce;
  --teal-light: #8fdcd6;
  --brand-a: #2a9d95;
  --brand-b: #145f59;
  --line: rgba(21, 34, 32, .12);
  --on-dark-soft: #d6e6e2;
  --shade: 10, 22, 20;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Renaisans Grotesk", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --edge: clamp(14px, 1.875vw, 27px);
  --section-y: clamp(4rem, 8.5vw, 8.5rem);
  --radius: 20px;
  --header-h: 76px;

  --ease-out-quint: cubic-bezier(.22, .61, .36, 1);
  --ease-out-expo: cubic-bezier(.25, 1, .5, 1);
  --ease-hover: cubic-bezier(.25, 1, .33, 1);
  --ease-img: cubic-bezier(.05, .2, .1, 1);
}

/* ---------- base ---------- */
*, ::before, ::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; line-height: 1.1; }
/* headlines in the display face, one weight; the highlighted word goes italic, in teal */
h1, h2, h3, h4, h5, .t-big, .t-section { font-family: var(--font-display); font-weight: 400; }
/* Renaisans is condensed and already tight: light negative tracking, a touch more space between words */
h1, h2, .t-big, .t-section { letter-spacing: -.012em; word-spacing: .04em; }
h3, h4, h5 { letter-spacing: 0; word-spacing: .03em; }
h1 em, h2 em, .t-big em, .t-section em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero em, .dark em, .plan--lounge em { color: var(--teal-light); }
h1, h2, h3, h4, .t-big, .t-section, .t-card { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .footer :focus-visible, .plan--lounge :focus-visible, .hero :focus-visible { outline-color: var(--teal-light); }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: .6em 1em; border-radius: 999px;
  background: var(--ink-deep); color: #fff;
  transform: translateY(-160%);
  transition: transform .3s var(--ease-hover);
}
.skip:focus { transform: none; }

.stuck-sentinel { position: absolute; top: 40px; left: 0; width: 1px; height: 1px; pointer-events: none; }

.t-section { font-size: max(2.7rem, min(6.8vw, 104px)); line-height: .98; }
.t-big { font-size: max(2.05rem, min(4.4vw, 66px)); line-height: 1.04; }
/* service names stay at or under the size of the doctors' names and titles (Texas rule 108.55) */
.t-card { font-size: max(1.2rem, min(1.6vw, 22px)); line-height: 1.2; letter-spacing: 0; }
.lead { max-width: 600px; margin: 1.1rem auto 0; color: var(--ink-soft); font-size: 17px; }

/* ---------- buttons ----------
   Hover: lifts 2px and the shadow lights up. Shadow and tint live in pseudo-elements,
   so only opacity and transform animate. */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .75em 1.5em;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 max(.9rem, min(1.1vw, 16px))/1.2 var(--font);
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .45s var(--ease-hover), color .45s var(--ease-hover),
              background-color .45s var(--ease-hover), border-color .45s var(--ease-hover);
}
.btn::before, .btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .45s var(--ease-hover);
}
.btn::after { box-shadow: 0 16px 34px rgba(var(--shade), .28); }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after, .btn:hover::before { opacity: 1; }
.btn__icon { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* the booking button: brand teal with dark text, so it jumps off photos and dark sections */
.btn--cta {
  padding: .85em 1.75em;
  color: var(--ink-deep);
  background: var(--teal);
  box-shadow: 0 10px 26px rgba(39, 150, 142, .32);
}
.btn--cta::before { background: var(--teal-hover); }
.btn--light { background: var(--bg); color: var(--ink-deep); }
.btn--light:hover { background: #fff; }
.btn--dark { background: var(--ink-deep); color: var(--on-dark-soft); }
.btn--dark::before { background: var(--accent); }
.btn--dark:hover { color: #fff; }
.btn--ghost { color: var(--accent); border-color: rgba(29, 112, 105, .45); }
.btn--ghost::before { background: var(--accent); }
.btn--ghost:hover { color: #fff; border-color: transparent; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center;
}
/* glass that shows up after 40px of scroll (only opacity animates) */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(245, 245, 240, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity .45s var(--ease-hover);
  pointer-events: none;
}
.header.is-stuck::before { opacity: 1; }
.header__inner {
  width: 100%;
  padding-inline: calc(var(--edge) + 8px);
  display: flex; align-items: center; gap: 1.5rem;
}
.header__logo { position: relative; z-index: 2; margin-right: auto; }
.header__logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: max(.9rem, min(1.6vw, 1.5rem)); }
.nav a { position: relative; padding-block: .3rem; font-size: 14.5px; font-weight: 500; transition: color .3s; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s var(--ease-hover);
}
.nav a:hover { color: var(--accent); }
.nav a:hover::after { transform: scaleX(1); }
.nav .nav__book { display: none; }
.header__book { padding: .62em 1.25em; font-size: 14.5px; box-shadow: none; }

.burger {
  position: relative; z-index: 2;
  display: none; place-items: center; place-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; cursor: pointer;
}
.burger span {
  display: block; width: 16px; height: 1.5px; background: var(--ink);
  transition: transform .45s var(--ease-hover), opacity .3s ease;
}
.burger span + span { margin-top: 4px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- hero ----------
   Toothbar's brand film fills the card: the headline sits bottom left, the tagline bottom right, over a
   shade that rises from the bottom. */
.hero {
  padding-top: calc(var(--header-h) + 10px + env(safe-area-inset-top, 0px));
  --hero-inset: clamp(1.5rem, 2.8vw, 2.75rem);
}
.hero__card {
  position: relative; isolation: isolate; overflow: hidden;
  margin-inline: var(--edge);
  border-radius: var(--radius);
  height: max(480px, min(52vw, 760px));
  background: var(--ink-deep);
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media picture { display: contents; }
/* the poster is the film's first frame without its bottom 12%, anchored at the top like the player below,
   so the fade from poster to video doesn't shift the picture */
.hero__media img { width: 100%; height: 110%; object-fit: cover; object-position: 50% 0; }
.hero__card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(var(--shade), 0) 38%, rgba(var(--shade), .44) 60%, rgba(var(--shade), .88) 100%),
    linear-gradient(90deg, rgba(var(--shade), .42) 0%, rgba(var(--shade), .1) 40%, rgba(var(--shade), 0) 60%);
}
.hero__top, .hero__bottom { position: absolute; color: var(--bg); }
.hero__top { left: var(--hero-inset); bottom: calc(var(--hero-inset) + 5rem); max-width: min(62%, 900px); }
.hero__top h1 {
  margin: 0;
  font-size: max(2.9rem, min(7.2vw, 112px));
  line-height: .95; letter-spacing: -.015em;
  text-shadow: 0 2px 24px rgba(var(--shade), .3);
}
.hero__bottom { right: var(--hero-inset); bottom: var(--hero-inset); max-width: 34%; text-align: right; }
.hero__bottom p {
  margin: 0;
  font-family: var(--font-display);
  font-size: max(1.3rem, min(2vw, 30px)); line-height: 1.15; letter-spacing: 0;
  color: var(--on-dark-soft);
}
.hero__btn { position: absolute; z-index: 2; left: var(--hero-inset); bottom: var(--hero-inset); }

/* photo parallax: scroll-driven in CSS; main.js covers browsers without support */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero__media img {
      animation: hero-parallax linear both;
      animation-timeline: view();
      animation-range: entry exit;
    }
  }
}
@keyframes hero-parallax {
  from { transform: translateY(-5%); }
  to { transform: translateY(4%); }
}

/* ---------- about ---------- */
.statement { padding: clamp(3rem, 8vw, 7rem) var(--edge) clamp(2rem, 4vw, 3.5rem); text-align: center; }
.statement h2 { max-width: min(1040px, 84vw); margin-inline: auto; }

.figures {
  display: grid; grid-template-columns: 190px minmax(0, 1fr) 190px;
  align-items: start; justify-content: center;
  gap: max(1.5rem, min(5vw, 6rem));
  max-width: 1300px; margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) var(--edge) var(--section-y);
}
.figure__num {
  width: fit-content;
  font-family: var(--font-display);
  font-size: max(3rem, min(5.6vw, 86px)); font-weight: 400; line-height: 1; letter-spacing: -.015em;
  white-space: nowrap;
  background: linear-gradient(120deg, var(--brand-a), var(--brand-b));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.figure p { margin-top: .8rem; color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
.figure--right { justify-self: end; }
.figures__mid { text-align: center; padding-top: max(.5rem, min(1.5vw, 1rem)); }
.figures__mid p { max-width: 520px; margin: 0 auto 2rem; }

/* ---------- services (drifting rows) ---------- */
.marquee { padding-bottom: var(--section-y); overflow: hidden; view-timeline: --mq block; }
.marquee__head { text-align: center; padding: 0 var(--edge) clamp(1.75rem, 3.2vw, 2.75rem); }
/* without JS or with reduced motion, the rows scroll sideways with a finger or trackpad */
.marquee__viewport {
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.marquee__viewport::-webkit-scrollbar { display: none; }
.marquee__row { display: flex; gap: max(.75rem, min(1.4vw, 20px)); width: max-content; }
.marquee__row + .marquee__row { margin-top: max(.75rem, min(1.4vw, 20px)); }
.js-anim .marquee__viewport { overflow: hidden; }
.js-anim .marquee__row { will-change: transform; }
@supports (animation-timeline: view()) {
  .js-anim .marquee__row {
    animation: marquee-drift linear both;
    animation-timeline: --mq;
    animation-range: cover 0% cover 100%;
  }
}
@keyframes marquee-drift {
  from { transform: translate3d(calc(var(--dir, 1) * var(--ov, 0px) * .45), 0, 0); }
  to { transform: translate3d(calc(var(--dir, 1) * var(--ov, 0px) * -.45), 0, 0); }
}

.tile {
  position: relative; isolation: isolate; overflow: hidden; flex: none;
  width: max(220px, min(24.2vw, 348px));
  height: max(280px, min(30.5vw, 439px));
  border-radius: var(--radius);
  background: var(--surface);
}
.tile img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .65s var(--ease-img);
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(var(--shade), .02) 0%, rgba(var(--shade), .16) 50%, rgba(var(--shade), .82) 96%);
}
.tile:hover img { transform: scale(1.045); }
.tile h3 { position: absolute; left: max(1rem, min(1.7vw, 1.5rem)); right: max(1rem, min(1.7vw, 1.5rem)); bottom: max(1rem, min(1.7vw, 1.5rem)); color: #fff; }
.tile--text {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: max(1.25rem, min(2vw, 1.75rem));
  background: var(--surface-2);
}
.tile--text::after { display: none; }
.tile--text h3 { position: static; color: var(--ink); }
.tile--text p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- care (stacked cards) ---------- */
.stack-head { text-align: center; padding: 0 var(--edge) clamp(1.5rem, 3vw, 2.5rem); }
.stack { display: flex; flex-direction: column; gap: max(1rem, min(2vw, 1.75rem)); padding: 0 var(--edge) var(--section-y); }
.plan {
  position: sticky; top: 76px; overflow: hidden;
  padding: max(1.5rem, min(3.3vw, 3rem));
  border-radius: 28px;
  background: var(--surface);
}
.plan:nth-child(2) { top: 96px; background: var(--surface-2); }
.plan:nth-child(3) { top: 116px; }
.plan > h3 { margin-bottom: max(1rem, min(2vw, 1.75rem)); }
.plan__body { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; gap: max(1.5rem, min(3.5vw, 3.5rem)); }
.plan__intro { color: var(--ink-soft); font-size: 16.5px; }
.plan__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: max(1.25rem, min(2.5vw, 2.5rem)); }
.plan__cols h4 { margin-bottom: .75rem; font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.plan__list li { padding: .55rem 0; border-top: 1px solid var(--line); line-height: 1.3; }
.plan__list strong { display: block; font-size: 15.5px; font-weight: 600; }
.plan__list span { display: block; margin-top: .1rem; color: var(--ink-soft); font-size: 15px; }
.plan__foot { margin-top: max(1.25rem, min(2.5vw, 2rem)); }

/* the Lounge reads like a cocktail menu: dark card, big names, one line of description each */
.plan--lounge { background: var(--ink-deep); color: #fff; }
.plan--lounge > h3 { color: #fff; }
.plan--lounge .plan__intro { color: rgba(255, 255, 255, .78); }
.lounge-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 max(1.25rem, min(2.5vw, 2.5rem)); }
.lounge-menu li { padding: 1rem 0 1.1rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.lounge-menu h4 {
  display: flex; align-items: baseline; gap: .6rem;
  margin-bottom: .35rem;
  font-size: max(1.3rem, min(1.6vw, 22px)); color: #fff;
}
.lounge-menu h4::after { content: ""; flex: 1; border-bottom: 1px dotted rgba(143, 220, 214, .5); transform: translateY(-.3em); }
.lounge-menu p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 15px; line-height: 1.45; }
.plan__note { margin-top: 1rem; color: rgba(255, 255, 255, .6); font-size: 13.5px; }

/* ---------- perks ---------- */
.dark { padding-block: var(--section-y); background: var(--ink-deep); color: #fff; }
.dark__head { text-align: center; padding-inline: var(--edge); margin-bottom: max(2rem, min(4vw, 3.5rem)); }
.dark__head h2 { color: var(--bg); }
.perks {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: max(1rem, min(2.2vw, 2.25rem)) max(1rem, min(2.4vw, 2.75rem));
  max-width: 1400px; margin-inline: auto; padding-inline: var(--edge);
}
.perks > :nth-child(3n + 2) { margin-top: max(-3.5rem, min(-2.5vw, -.5rem)); }
.perks > :nth-child(3n + 3) { margin-top: max(.25rem, min(1vw, 1rem)); }
.perk { padding-top: max(1rem, min(1.8vw, 1.5rem)); border-top: 1px solid rgba(255, 255, 255, .2); }
.perk__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.perk__row h3 { max-width: 16ch; color: #fff; }
.perk__icon {
  flex: none; width: 58px; height: 58px;
  fill: none; stroke: var(--teal-light); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  opacity: .9;
}
.perk p { max-width: 34ch; color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.55; }
.dark__foot { max-width: 1400px; margin: max(2rem, min(4vw, 3.5rem)) auto 0; padding-inline: var(--edge); text-align: right; }

/* ---------- reviews ---------- */
.voices { padding: var(--section-y) var(--edge) 0; }
.voices__head { text-align: center; margin-bottom: clamp(1.75rem, 3.5vw, 3rem); }
.voices__score { margin: 1rem 0 0; color: var(--ink-soft); font-size: 16px; }
.voices__stars { margin-right: .4em; color: #d9a21b; letter-spacing: .12em; }
.voices__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: max(.75rem, min(1.5vw, 1.25rem));
  max-width: 1300px; margin-inline: auto;
}
.quote {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  margin: 0; padding: max(1.4rem, min(2.4vw, 2.1rem));
  border-radius: var(--radius); background: var(--surface);
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--font-display);
  font-size: max(1.25rem, min(1.7vw, 24px)); line-height: 1.28; letter-spacing: 0;
}
.quote figcaption { color: var(--ink-soft); font-size: 14px; }
.voices__more { margin: 1.5rem 0 0; text-align: center; font-size: 15px; }
.voices__more a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- doctors and inside (carousels) ---------- */
.people { position: relative; overflow: hidden; padding-block: var(--section-y) clamp(3rem, 6vw, 5.5rem); }
.people__head { text-align: center; padding: 0 var(--edge) clamp(1.5rem, 3vw, 2.5rem); }
/* default: native scrolling; with JS and motion allowed it becomes a continuous carousel (.is-live) */
.people__ticker, .ticker { overflow-x: auto; scrollbar-width: thin; -webkit-user-select: none; user-select: none; }
.people__track, .ticker__track { display: flex; gap: max(.75rem, min(1.5vw, 20px)); width: max-content; padding-inline: var(--edge); }
.people__ticker.is-live, .ticker.is-live { overflow: hidden; cursor: grab; touch-action: pan-y; }
.people__ticker.is-live .people__track, .ticker.is-live .ticker__track { padding-inline: 0; will-change: transform; }
.people__ticker.is-dragging, .ticker.is-dragging { cursor: grabbing; }
.person { flex: none; width: max(250px, min(26vw, 380px)); }
.person__photo {
  position: relative; overflow: hidden;
  aspect-ratio: 1; border-radius: var(--radius);
  background: var(--portrait);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform .65s var(--ease-img); }
.person:hover .person__photo img { transform: scale(1.04); }
/* name and "General Dentist" at the same size, right after each other */
.person h3, .person__role { font-size: 22px; line-height: 1.2; letter-spacing: 0; }
.person h3 { margin-top: 1rem; }
.person__role { margin: .1rem 0 0; font-family: var(--font-display); color: var(--accent); }
.person__cv { max-width: 38ch; margin-top: .5rem; color: var(--ink-soft); font-size: 14.5px; line-height: 1.45; }

.space { position: relative; overflow: hidden; padding-bottom: var(--section-y); }
.space__head { text-align: center; padding: 0 var(--edge) clamp(1.5rem, 3vw, 2.5rem); }
.shot { flex: none; width: max(220px, min(23vw, 340px)); margin: 0; }
.shot__img { overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--surface-2); }
.shot__img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform .65s var(--ease-img); }
.shot:hover .shot__img img { transform: scale(1.04); }
.shot figcaption { margin-top: .75rem; color: var(--ink-soft); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-sec { padding-bottom: var(--section-y); }
.faq-sec__head { text-align: center; padding-inline: var(--edge); margin-bottom: max(1.5rem, min(3vw, 2.5rem)); }
.faq { width: min(720px, calc(100% - 2 * var(--edge))); margin-inline: auto; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: max(1.1rem, min(1.9vw, 1.65rem)) 2.6rem max(1.1rem, min(1.9vw, 1.65rem)) 0;
  font-family: var(--font-display);
  font-size: max(1.2rem, min(1.55vw, 22px)); font-weight: 400; line-height: 1.3; letter-spacing: 0;
  transition: color .3s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__q::before, .faq__q::after {
  content: ""; position: absolute; top: 50%; right: .25rem;
  width: 14px; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease-hover);
}
.faq__q::before { transform: translateY(-50%) rotate(90deg); }
.faq__q::after { transform: translateY(-50%); }
.faq__item[open] .faq__q::before { transform: translateY(-50%) rotate(0deg); }
.faq__inner { padding-bottom: max(1.1rem, min(1.9vw, 1.65rem)); color: var(--ink-soft); }
.faq__item[open] .faq__inner { animation: faq-in .5s var(--ease-hover) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px); } }
.faq__inner p + p, .faq__inner ul + p { margin-top: .9rem; }
.faq__inner ul { display: grid; gap: .5rem; margin-top: .25rem; }
.faq__inner li { position: relative; padding-left: 1.1rem; }
.faq__inner li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-a); }
.faq__inner a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ---------- closer, band and contact ---------- */
.closer { text-align: center; padding: 0 var(--edge) var(--section-y); }
.closer h2 { max-width: min(880px, 84vw); margin: 0 auto 1.25rem; }
.closer p { margin-bottom: 2rem; color: var(--ink-soft); }
.closer__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

.band { padding: 0 var(--edge) var(--section-y); }
.band__card { overflow: hidden; height: max(260px, min(38vw, 560px)); border-radius: 28px; }
/* the photo runs from the sign down to the founders' feet: wide screens keep the sign and their faces */
.band__card img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }

.place { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: max(1rem, min(2vw, 1.5rem)); padding: 0 var(--edge) var(--section-y); }
.place__info {
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: max(1.5rem, min(3vw, 2.75rem));
  border-radius: 28px; background: var(--surface);
}
.place__info dl { display: contents; }
.place__row dt { margin-bottom: .25rem; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.place__row dd { margin: 0; font-size: 15.5px; line-height: 1.5; }
.place__row a { transition: color .3s; }
.place__row a:hover { color: var(--accent); }
.place__btn { align-self: flex-start; }
.place__map { min-height: 400px; overflow: hidden; border-radius: 28px; background: var(--surface-2); }
.place__map iframe { display: block; width: 100%; height: 100%; min-height: 400px; border: 0; filter: grayscale(.25) contrast(1.05); }

/* ---------- footer: dark card (v3, the studio's preview standard) ----------
   Brand on the left (header logo in white, a line and the dentists who own the practice), link columns
   on the right, fine print, and the last bar in one row: legal links on the left, studio credit at the end. */
.footer {
  margin: 0 var(--edge) var(--edge);
  padding: clamp(3rem, 5.5vw, 5rem) clamp(1.5rem, 4.5vw, 4.5rem) 0;
  border: 0; border-radius: 28px;
  background: var(--ink-deep); color: var(--on-dark-soft);
}
.footer__topo {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 3.6fr);
  gap: clamp(2.5rem, 5vw, 5rem); margin-bottom: clamp(2.75rem, 5vw, 4.25rem);
}
.footer__marca { max-width: 320px; }
.footer__logo { display: block; width: auto; max-width: 100%; margin-bottom: 1.4rem; }
.footer__frase { margin: 0 0 1.1rem; color: rgba(255, 255, 255, .76); font-size: 15px; line-height: 1.55; }
.footer__rt { margin: 0; color: rgba(255, 255, 255, .6); font-size: 13.5px; line-height: 1.55; }
.footer .nw { white-space: nowrap; }
.footer__cols { display: grid; margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.footer__col h2, .footer__col h3, .footer__col h4, .footer__col h5 {
  margin: 0 0 1.1rem;
  font-family: var(--font); font-size: 12px; font-weight: 600; line-height: 1.3;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-light); opacity: .9;
}
.footer__col li { margin-bottom: .6rem; }
.footer__col a, .footer__col span { color: rgba(255, 255, 255, .84); font-size: 15px; overflow-wrap: break-word; transition: color .3s; }
.footer__col .nw { color: inherit; font-size: inherit; }
.footer__col a:hover { color: #fff; }
.footer__nota {
  margin: 0; padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .58); font-size: 12.5px; line-height: 1.6;
}
.footer__nota p { margin: 0; max-width: 980px; text-wrap: pretty; }
.footer__nota p + p { margin-top: .25rem; }
.footer__barra {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
  padding: 1rem 0 1.6rem;
  color: rgba(255, 255, 255, .68); font-size: 13px; line-height: 1.4;
}
.footer__barra a { color: inherit; transition: color .3s; }
.footer__barra a:hover, .footer__barra a:focus-visible { color: #fff; }
.footer__div { width: 1px; height: 14px; background: rgba(255, 255, 255, .22); }
.credito { display: inline-flex; align-items: center; gap: .55em; margin-left: auto; white-space: nowrap; }
.credito img { display: block; width: auto; height: 12px; }
.footer--compact { margin-top: clamp(1rem, 3vw, 2rem); padding-top: clamp(1.75rem, 3vw, 2.5rem); }
.footer--compact .footer__nota { border-top: 0; padding-top: 0; }
@media (max-width: 980px) {
  /* the floating booking button shows up here: room so it doesn't cover the credit */
  .footer { margin-bottom: calc(var(--edge) + 76px); }
}
@media (max-width: 1100px) {
  .footer__topo { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__div { display: none; }
}
@media (max-width: 760px) {
  /* room at the bottom so the floating button doesn't cover the last bar */
  .footer { margin: 0 var(--edge) calc(var(--edge) + 76px); padding: 2.5rem 1.4rem 0; border-radius: 22px; }
  .footer__topo { gap: 2.25rem; margin-bottom: 2.5rem; }
  .footer__logo { margin-bottom: 1.1rem; }
  .footer__cols { gap: 2rem 1.25rem; }
  .footer__col a, .footer__col span { font-size: 14px; }
  /* on phones: ©, then the legal links side by side, then the credit on its own line */
  .footer__barra { gap: .5rem 1.25rem; padding: .9rem 0 1.5rem; }
  .footer__barra > span:first-child { flex-basis: 100%; text-wrap: balance; }
  .credito { flex-basis: 100%; margin: .5rem 0 0; }
}

/* ---------- floating booking button ----------
   Only where the header's "Book a visit" is hidden (below 980px); on desktop it would cover the hero. */
.fab { display: none; }
.fab {
  position: fixed; z-index: 70;
  right: max(1rem, min(2vw, 1.75rem));
  bottom: calc(clamp(1rem, 2vw, 1.75rem) + env(safe-area-inset-bottom, 0px));
  place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--teal); color: var(--ink-deep);
  box-shadow: 0 10px 26px rgba(var(--shade), .26);
  transition: transform .45s var(--ease-hover);
}
.fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 16px 34px rgba(var(--shade), .34);
  opacity: 0; transition: opacity .45s var(--ease-hover);
}
.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab:hover::after { opacity: 1; }
.fab svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- hero video (Vimeo background player) ----------
   The poster (an <img>) paints first and is the LCP; the player fades in over it once frames play.
   The 16:9 frame covers the card and is anchored at the top, sized so the bottom 12% of the film (where
   the "toothbar" watermark sits) always falls outside the card. Same box and framing as the poster. */
.hero__vimeo {
  position: absolute; inset: 0 0 auto; height: 110%;
  overflow: hidden; container-type: size;
  opacity: 0; transition: opacity .9s var(--ease-out-quint);
  pointer-events: none;
}
.hero__vimeo.is-playing { opacity: 1; }
.hero__vimeo iframe {
  position: absolute; top: 0; left: 50%;
  width: max(100cqw, 100cqh / .88 * 16 / 9); height: auto; aspect-ratio: 16 / 9;
  border: 0; transform: translateX(-50%);
}
/* phones play a vertical cut (656×950, already without the watermark), reframed shot by shot */
.hero__vimeo.is-vertical iframe { width: max(100cqw, 100cqh * 656 / 950); aspect-ratio: 656 / 950; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero__vimeo { animation: hero-parallax linear both; animation-timeline: view(); animation-range: entry exit; }
  }
}
/* pause control for the moving background (WCAG 2.2.2) */
.hero__pause {
  position: absolute; z-index: 3; top: var(--hero-inset); right: var(--hero-inset);
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .34); border-radius: 50%;
  background: rgba(15, 27, 25, .66); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  cursor: pointer; transition: background-color .3s, transform .45s var(--ease-hover);
}
.hero__pause:hover { background: rgba(15, 27, 25, .82); transform: scale(1.05); }
.hero__pause svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero__play-icon { fill: currentColor !important; stroke: none !important; opacity: 0; }
.hero__pause[aria-pressed="true"] .hero__pause-icon { opacity: 0; }
.hero__pause[aria-pressed="true"] .hero__play-icon { opacity: 1; }

/* ---------- the Toothbar story ---------- */
.story {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center; gap: max(1.75rem, min(6vw, 6rem));
  max-width: 1300px; margin-inline: auto;
  padding: 0 var(--edge) var(--section-y);
}
.story__photo { overflow: hidden; aspect-ratio: 4 / 5; border-radius: 28px; background: var(--surface-2); }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }
.story__text h2 { margin-bottom: max(1.25rem, min(2.4vw, 2rem)); }
.story__text p { max-width: 58ch; color: var(--ink-soft); }
.story__text .story__lead { color: var(--ink); font-size: 18.5px; line-height: 1.55; }
.story__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  margin: max(1.75rem, min(3vw, 2.5rem)) 0;
  padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.story__facts strong {
  display: block;
  font-family: var(--font-display); font-size: max(2rem, min(3.4vw, 50px)); font-weight: 400; line-height: 1; letter-spacing: -.015em;
  color: var(--accent);
}
.story__facts span { display: block; margin-top: .4rem; color: var(--ink-soft); font-size: 14px; line-height: 1.35; }

/* ---------- new patients ---------- */
.newp { padding: 0 var(--edge) var(--section-y); }
.newp__head { text-align: center; margin-bottom: clamp(1.75rem, 3.5vw, 3rem); }
.newp__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: start; gap: max(1rem, min(2.4vw, 2rem));
  max-width: 1300px; margin-inline: auto;
}
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: max(.75rem, min(1.4vw, 1.25rem)); }
.step {
  display: flex; flex-direction: column; gap: .6rem;
  min-height: 220px; padding: max(1.4rem, min(2.4vw, 2rem));
  border-radius: var(--radius); background: var(--surface);
}
.step__num { font-family: var(--font-display); font-size: 15px; letter-spacing: .06em; color: var(--accent); }
.step h3 { margin-top: auto; font-size: max(1.3rem, min(1.8vw, 26px)); line-height: 1.12; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.coverage {
  display: flex; flex-direction: column; gap: 1rem;
  padding: max(1.5rem, min(2.8vw, 2.4rem));
  border-radius: 28px; background: var(--ink-deep); color: #fff;
}
.coverage h3 { font-size: max(1.5rem, min(2.1vw, 30px)); color: #fff; }
.coverage p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 15.5px; }
.coverage__plans { display: flex; flex-wrap: wrap; gap: .45rem; }
.coverage__plans li {
  padding: .42em .85em;
  border: 1px solid rgba(143, 220, 214, .38); border-radius: 999px;
  color: #fff; font-size: 14px; font-weight: 500; line-height: 1.2;
}
.coverage__note a { color: var(--teal-light); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.coverage__more { display: grid; gap: .85rem; margin: .25rem 0 .5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.coverage__more dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-light); }
.coverage__more dd { margin: .2rem 0 0; color: rgba(255, 255, 255, .84); font-size: 15px; line-height: 1.45; }
.coverage .btn { align-self: flex-start; }

/* ---------- from the blog ---------- */
.blog { padding: 0 var(--edge) var(--section-y); }
.blog__head { text-align: center; margin-bottom: clamp(1.75rem, 3.5vw, 3rem); }
.blog__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: max(.75rem, min(1.5vw, 1.25rem));
  max-width: 1300px; margin-inline: auto;
}
.post {
  position: relative; display: flex; flex-direction: column; gap: .8rem;
  min-height: 300px; padding: max(1.4rem, min(2.4vw, 2rem));
  border-radius: var(--radius); background: var(--surface);
  transition: background-color .45s var(--ease-hover), transform .45s var(--ease-hover);
}
.post:hover { background: var(--surface-2); transform: translateY(-3px); }
.post__meta { margin: 0; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
/* article titles name services too: capped at the size of the doctors' names (Texas rule 108.55) */
.post h3 { font-size: max(1.2rem, min(1.6vw, 22px)); line-height: 1.18; }
/* the whole card is the link target */
.post h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post p:not(.post__meta) { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.post__more { margin-top: auto; color: var(--accent); font-size: 14.5px; font-weight: 600; }
.post__more::after { content: " →"; }
.blog__all { margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; text-align: center; }

/* ---------- the blog: list, categories and articles (pages generated by deploy/blog.py) ---------- */
.blogtop { padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) var(--edge) clamp(1.75rem, 3.5vw, 3rem); text-align: center; }
.blogtop .t-section { margin: 0 auto; }
.blogtop__lead { max-width: 560px; margin: 1.1rem auto 0; color: var(--ink-soft); font-size: 17.5px; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; max-width: 1000px; margin: clamp(1.5rem, 3vw, 2.25rem) auto 0; }
.chip {
  display: inline-flex; align-items: center; gap: .45em; min-height: 40px; padding: .45em 1.05em;
  border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14.5px; font-weight: 500;
  transition: background-color .3s var(--ease-hover), color .3s var(--ease-hover);
}
.chip:hover { background: var(--surface-2); }
.chip small { color: var(--ink-soft); font-size: 12.5px; font-weight: 500; }
.chip[aria-current="page"] { background: var(--ink); color: var(--bg); }
.chip[aria-current="page"] small { color: var(--on-dark-soft); }
.post--img { gap: 0; padding: 0; overflow: hidden; }
.post__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-hover); }
.post--img:hover .post__img img { transform: scale(1.035); }
.post__body { display: flex; flex: 1; flex-direction: column; gap: .75rem; padding: max(1.25rem, min(2vw, 1.75rem)); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: clamp(2rem, 4vw, 3rem) auto 0; }
.pager a, .pager span {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .9rem;
  border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 500;
}
.pager a:hover { background: var(--surface-2); }
.pager [aria-current="page"] { background: var(--ink); color: var(--bg); }
.pager .pager__gap { min-width: 16px; padding: 0; background: none; color: var(--ink-soft); }

.article { width: min(760px, calc(100% - 2 * var(--edge))); margin-inline: auto; padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) 0 var(--section-y); }
.article__crumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.article__crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article__title { margin: 0; font-size: max(2.1rem, min(4.4vw, 3.4rem)); line-height: 1.02; }
.article__meta { margin: 1rem 0 0; color: var(--ink-soft); font-size: 15px; }
.article__hero { margin: clamp(1.75rem, 3.5vw, 2.5rem) 0; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.article__hero img { width: 100%; height: auto; }
.prose { color: var(--ink-soft); font-size: 17.5px; line-height: 1.7; }
.prose > * + * { margin-top: 1.05rem; }
.prose h2 { margin-top: clamp(2.25rem, 4.5vw, 3rem); color: var(--ink); font-family: var(--font-display); font-size: max(1.55rem, min(2.4vw, 32px)); font-weight: 400; line-height: 1.12; letter-spacing: 0; }
.prose h3, .prose h4 { margin-top: 1.9rem; color: var(--ink); font-size: 19px; font-weight: 600; line-height: 1.3; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7rem; }
.prose ul, .prose ol { display: grid; gap: .5rem; padding-left: 1.35rem; }
.prose ul { list-style: disc; }
.prose li::marker { color: var(--brand-a); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose img { height: auto; border-radius: 18px; }
.prose figcaption { margin-top: .5rem; font-size: 14px; }
.prose blockquote { padding-left: 1.1rem; border-left: 3px solid var(--brand-a); }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.article__cta { margin-top: clamp(2.75rem, 5.5vw, 4rem); padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius); background: var(--surface); }
.article__cta-kicker { margin: 0 0 .75rem; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.article__cta p:not(.article__cta-kicker) { margin: .9rem 0 0; color: var(--ink-soft); }
.article__btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.related .blog__head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 1100px) {
  .bloglist .blog__grid, .related .blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 980px; }
}
@media (max-width: 700px) {
  .bloglist .blog__grid, .related .blog__grid { grid-template-columns: 1fr; max-width: 560px; }
  .prose { font-size: 17px; }
  /* on phones the categories become one row that scrolls sideways */
  .chips {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    margin-inline: calc(-1 * var(--edge)); padding: 0 var(--edge) .25rem;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}

@media (max-width: 1100px) {
  .story { grid-template-columns: 1fr; max-width: 680px; }
  .story__photo { aspect-ratio: 4 / 4.2; }
  .newp__grid { grid-template-columns: 1fr; max-width: 760px; }
  .blog__grid { grid-template-columns: 1fr; max-width: 680px; }
  .post { min-height: 0; }
}
@media (max-width: 760px) {
  .hero__pause { top: .9rem; right: .9rem; width: 40px; height: 40px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .story__facts { gap: .75rem; }
  .story__text .story__lead { font-size: 17px; }
}

/* ---------- pages brought over from the current site (generated by deploy/paginas.py) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* services index: three groups plus the Lounge */
.svc { padding: 0 var(--edge) var(--section-y); }
.svc__head { max-width: 760px; margin: 0 auto clamp(1.75rem, 3.5vw, 3rem); text-align: center; }
.svc__head p { margin: 1rem auto 0; color: var(--ink-soft); font-size: 17.5px; }
.svc__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: max(.75rem, min(1.5vw, 1.25rem)); max-width: 1300px; margin-inline: auto; }
.svc__col { display: flex; flex-direction: column; gap: .9rem; padding: max(1.4rem, min(2.4vw, 2rem)); border-radius: var(--radius); background: var(--surface); }
/* group names and service names stay at or under the size of the doctors' names (Texas rule 108.55) */
.svc__col h3 { font-size: max(1.3rem, min(1.6vw, 22px)); line-height: 1.15; }
.svc__col ul { display: grid; gap: .1rem; }
.svc__col li a {
  display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0;
  border-top: 1px solid var(--line); font-size: 15.5px; font-weight: 500; transition: color .3s;
}
.svc__col li a::after { content: "→"; color: var(--accent); transition: transform .45s var(--ease-hover); }
.svc__col li a:hover { color: var(--accent); }
.svc__col li a:hover::after { transform: translateX(3px); }
.svc__col--lounge { background: var(--ink-deep); color: #fff; }
.svc__col--lounge h3 { color: #fff; }
.svc__col--lounge p { margin: 0; color: rgba(255, 255, 255, .76); font-size: 15px; line-height: 1.5; }
.svc__col--lounge .btn { align-self: flex-start; margin-top: auto; }

/* insurance logos, redrawn in ChatGPT from the ones on the current site */
.planos { padding: 0 var(--edge) var(--section-y); text-align: center; }
.planos .t-big { max-width: 18ch; margin: 0 auto; }
.planos__lead { max-width: 560px; margin: 1rem auto 0; color: var(--ink-soft); }
.planos__lead a { color: var(--accent); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.planos__logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: max(1.5rem, min(3.2vw, 3rem)) max(2rem, min(4.5vw, 4.5rem));
  max-width: 1100px; margin: clamp(2rem, 4vw, 3.25rem) auto 0;
}
.planos__logos img { width: auto; height: calc(44px * var(--k, 1)); mix-blend-mode: multiply; opacity: .82; }
.coverage__apply { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.coverage__apply .btn { padding: .6em 1.1em; font-size: 14px; }
.coverage__links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.coverage__links a { color: var(--teal-light); font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; }

/* doctors: link to each page */
.person__more { display: inline-block; margin-top: .8rem; color: var(--accent); font-size: 14.5px; font-weight: 600; }
.person__more::after { content: " →"; }
.people__all { margin: clamp(1.75rem, 3.5vw, 2.5rem) 0 0; padding: 0 var(--edge); text-align: center; }

/* contact form: same fields as the practice's Liine form; the preview doesn't send it */
.chat {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start;
  gap: max(1.5rem, min(5vw, 5rem)); max-width: 1300px; margin: 0 auto; padding: 0 var(--edge) var(--section-y);
}
.chat__text h2 { margin-bottom: 1rem; }
.chat__text p { color: var(--ink-soft); }
.chat__alt { margin-top: 1rem; font-size: 15px; }
.chat__alt a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.contato { padding: max(1.4rem, min(2.8vw, 2.4rem)); border-radius: 28px; background: var(--surface); }
.contato__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contato__full { grid-column: 1 / -1; }
.contato input:not([type="checkbox"]), .contato select, .contato textarea {
  width: 100%; padding: .8em 1em; border: 1px solid #758380; border-radius: 14px;
  background: #fff; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.3;
  transition: border-color .3s, box-shadow .3s;
}
.contato select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5em; }
.contato textarea { resize: vertical; min-height: 120px; }
.contato input:focus, .contato select:focus, .contato textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29, 112, 105, .18); }
.contato__check { display: flex; align-items: flex-start; gap: .6rem; margin-top: 1.1rem; font-size: 14.5px; }
.contato__check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--accent); flex: none; }
.contato__check a, .contato__legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.contato__legal { margin: .9rem 0 1.25rem; color: var(--ink-soft); font-size: 12.5px; line-height: 1.5; }
.contato__aviso { margin: 1rem 0 0; padding: .9rem 1.1rem; border-radius: 14px; background: var(--surface-2); color: var(--accent); font-size: 14.5px; font-weight: 500; }
.contato button[disabled] { opacity: .55; cursor: default; transform: none; }
.contato__req { margin: 0 0 1rem; color: var(--ink-soft); font-size: 13.5px; }
.contato__ast { color: #b3261e; }
.contato__campo { display: flex; flex-direction: column; }
.contato__campo > label { display: block; margin-bottom: .35rem; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.contato__erro { margin: .4rem 0 0; color: #b3261e; font-size: 13.5px; font-weight: 500; }
.contato [aria-invalid="true"] { border-color: #b3261e !important; box-shadow: 0 0 0 3px rgba(179, 38, 30, .14); }
/* carrosséis: botão de pausa (WCAG 2.2.2); param sozinhos com o mouse em cima ou o foco dentro */
.ticker__bar { display: flex; justify-content: flex-end; max-width: 1300px; margin: .9rem auto 0; padding: 0 var(--edge); }
.ticker__toggle {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; padding: .4em .95em;
  border: 1px solid #758380; border-radius: 999px; background: var(--bg); color: var(--ink);
  font: 600 13.5px/1.2 var(--font); cursor: pointer; transition: background-color .3s, color .3s;
}
.ticker__toggle:hover { background: var(--ink); color: var(--bg); }
.ticker__toggle svg { width: 14px; height: 14px; fill: currentColor; }

/* inner pages */
.article--flat { padding-top: 0; }
.article__more { margin-top: clamp(2.25rem, 4.5vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.article__more > p { margin: 0 0 .75rem; color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.chips--left { justify-content: flex-start; max-width: none; margin: 0; }
.finance { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 2.25rem; }
.newp--page { padding-top: 0; }
.newp__grid--single { grid-template-columns: minmax(0, 1fr); max-width: 1000px; }
.story--page { padding-top: var(--section-y); }

.doc { max-width: 1200px; margin: 0 auto; padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) var(--edge) clamp(2.5rem, 5vw, 4rem); }
.doc__top { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: max(1.75rem, min(5vw, 5rem)); }
.doc__photo { overflow: hidden; aspect-ratio: 1; border-radius: 28px; background: var(--portrait); }
.doc__photo img { width: 100%; height: 100%; object-fit: cover; }
.doc__name { margin: 0; font-size: max(2.3rem, min(4.6vw, 3.6rem)); line-height: 1.02; }
/* "General Dentist" right after the name, big enough to lead the page (Texas rule 108.55) */
.doc__role { margin: .6rem 0 0; font-family: var(--font-display); font-size: max(1.4rem, min(2.2vw, 30px)); line-height: 1.15; color: var(--accent); }
.doc__tag { margin: 1rem 0 1.25rem; color: var(--ink-soft); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.doc__book { margin-top: 1.75rem; }
.doc__quote { margin: clamp(2.5rem, 5vw, 4rem) auto; max-width: 900px; text-align: center; }
.doc__quote p { font-family: var(--font-display); font-size: max(1.5rem, min(2.6vw, 36px)); line-height: 1.25; color: var(--ink); }
.doc__quote cite { display: block; margin-top: 1rem; color: var(--accent); font-size: 14.5px; font-style: normal; font-weight: 600; }
.doc__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: max(1rem, min(2vw, 1.5rem)); margin-top: clamp(2rem, 4vw, 3rem); }
.doc__cols > section, .doc__story { padding: max(1.4rem, min(2.4vw, 2rem)); border-radius: var(--radius); background: var(--surface); }
.doc__cols h2, .doc__story h2 { margin-bottom: 1rem; font-size: max(1.3rem, min(1.8vw, 26px)); }
.doc__list { display: grid; gap: .75rem; }
.doc__list li { padding-top: .75rem; border-top: 1px solid var(--line); }
.doc__list strong { display: block; font-weight: 600; }
.doc__list span { display: block; color: var(--ink-soft); font-size: 15px; }
.doc__list--simple li { color: var(--ink-soft); }
.doc__badge { display: inline-block; margin: 0 0 1rem; padding: .4em .9em; border-radius: 999px; background: var(--ink-deep); color: var(--teal-light); font-size: 13.5px; font-weight: 600; }
.doc__story { margin-top: max(1rem, min(2vw, 1.5rem)); }
.docs-team { padding: clamp(1rem, 3vw, 2rem) var(--edge) var(--section-y); }
.docs-team__lead { max-width: 620px; margin: 1rem auto 0; color: var(--ink-soft); }
.docgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: max(.75rem, min(1.5vw, 1.25rem)); max-width: 1300px; margin: 0 auto; }
.docard { display: flex; flex-direction: column; }
.docard__photo { overflow: hidden; aspect-ratio: 1; border-radius: var(--radius); background: var(--portrait); }
.docard__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease-img); }
.docard:hover .docard__photo img { transform: scale(1.04); }
.docard h3 { margin-top: .9rem; font-size: 22px; line-height: 1.2; }
.docard h3 a:hover { color: var(--accent); }
.docard .person__role { font-size: 22px; }
.docard__bio { margin: .5rem 0 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.45; }
.docard__more { margin-top: .6rem; color: var(--accent); font-size: 14.5px; font-weight: 600; }
.docard__more::after { content: " →"; }

.contact-page { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: max(1rem, min(2vw, 1.5rem)); max-width: 1300px; margin: 0 auto; padding: 0 var(--edge) clamp(1rem, 2vw, 1.5rem); }
.contact-page__form { padding: max(1.4rem, min(2.8vw, 2.4rem)); border-radius: 28px; background: var(--surface); }
.contact-page__form > p { margin: .75rem 0 1.25rem; color: var(--ink-soft); }
.contact-page__form .contato { padding: 0; background: none; }
.contact-map { max-width: 1300px; margin: 0 auto; padding: 0 var(--edge) var(--section-y); }
.contact-map iframe { display: block; width: 100%; height: 420px; border: 0; border-radius: 28px; filter: grayscale(.25) contrast(1.05); }

.lounge-page { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: max(1.75rem, min(5vw, 5rem)); max-width: 1300px; margin: 0 auto; padding: 0 var(--edge) var(--section-y); }
.lounge-page__photo { overflow: hidden; aspect-ratio: 4 / 5; border-radius: 28px; background: var(--surface-2); }
.lounge-page__photo img { width: 100%; height: 100%; object-fit: cover; }
.lounge-page__lead { margin: 1rem 0 1.5rem; color: var(--ink-soft); }
.lounge-menu--light li { border-top-color: var(--line); }
.lounge-menu--light h3 { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .35rem; font-size: max(1.3rem, min(1.6vw, 22px)); }
.lounge-menu--light h3::after { content: ""; flex: 1; border-bottom: 1px dotted rgba(29, 112, 105, .45); transform: translateY(-.3em); }
.lounge-menu--light p { color: var(--ink-soft); }
.lounge-page .plan__note { color: var(--ink-soft); }

.docs { padding: 0 var(--edge) var(--section-y); }
.docs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: max(.75rem, min(1.5vw, 1.25rem)); max-width: 1300px; margin: 0 auto; }
.docitem { display: flex; flex-direction: column; gap: .8rem; padding: max(1.4rem, min(2.4vw, 2rem)); border-radius: var(--radius); background: var(--surface); }
.docitem svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.docitem h2 { font-size: max(1.2rem, min(1.6vw, 22px)); line-height: 1.2; }
.docitem a { margin-top: auto; color: var(--accent); font-size: 15px; font-weight: 600; }
.docitem a span:not(.sr-only) { display: block; color: var(--ink-soft); font-size: 13px; font-weight: 400; }
.docitem__html { margin-top: auto; }
.docitem__html + a { margin-top: 0; }
.docs__note { max-width: 760px; margin: clamp(1.75rem, 3.5vw, 2.5rem) auto 0; color: var(--ink-soft); text-align: center; }
.docs__note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.contato__opc { color: var(--ink-soft); font-weight: 400; }

.footer__social { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.25rem; }
.footer__social a { display: inline-block; padding: .35em .8em; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; color: rgba(255, 255, 255, .84); font-size: 13px; transition: color .3s, border-color .3s; }
.footer__social a:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }

@media (max-width: 1100px) {
  .svc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; }
  .chat, .contact-page, .lounge-page, .doc__top { grid-template-columns: minmax(0, 1fr); }
  .doc__photo { max-width: 420px; }
  .lounge-page__photo { max-width: 520px; aspect-ratio: 16 / 11; }
}
@media (max-width: 700px) {
  .svc__grid, .doc__cols, .contato__grid { grid-template-columns: minmax(0, 1fr); }
  .planos__logos { gap: 1.5rem 2rem; }
  .planos__logos img { height: calc(32px * var(--k, 1)); }
  .contact-map iframe { height: 320px; }
}

/* ---------- legal pages ---------- */
.legal {
  width: min(760px, calc(100% - 2 * var(--edge)));
  margin-inline: auto;
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) 0 var(--section-y);
}
.legal__kicker { margin-bottom: .75rem; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.legal h1 { margin-bottom: .75rem; }
.legal__date { margin-bottom: clamp(2rem, 4vw, 3rem); color: var(--ink-soft); font-size: 15px; }
.legal__intro { font-size: 17.5px; line-height: 1.6; }
.legal h2 {
  margin: clamp(2rem, 4vw, 2.75rem) 0 .75rem;
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--line);
  font-family: var(--font-display); font-size: max(1.4rem, min(1.9vw, 27px)); font-weight: 400; letter-spacing: 0;
}
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: .9rem; }
.legal ul { display: grid; gap: .55rem; margin: .9rem 0; }
.legal li { position: relative; padding-left: 1.1rem; }
.legal li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-a); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal__back { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.legal__back a { text-decoration: none; }

/* ---------- motion (only with html.js-anim) ----------
   The visible state is the default. These hidden states only apply while JS is running
   and the visitor hasn't asked for reduced motion. */
.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(75px);
  transition: transform .75s var(--ease-out-quint), opacity .75s var(--ease-out-quint);
}
.js-anim [data-reveal].is-in { opacity: 1; transform: none; }
.js-anim [data-reveal="slow"] { transition-duration: 1.2s; transition-timing-function: var(--ease-out-expo); }

/* headlines rise line by line, inside a mask */
.js-anim .split-heading:not(.is-split) { opacity: 0; }
.js-anim .split-line {
  display: block; overflow: hidden;
  padding-block: .08em .2em; margin-block: -.08em -.2em;
}
.js-anim .split-line > span {
  display: block;
  transform: translateY(120%);
  transition: transform .9s var(--ease-out-quint);
}
.js-anim .split-heading.is-in .split-line > span { transform: none; }

.js-anim [data-zoom] { transform: scale(1.2); transition: transform 1.4s var(--ease-out-expo); }
.js-anim [data-zoom].is-in { transform: scale(1); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav a:not(.nav__book) { font-size: 14px; }
  .nav { gap: .9rem; }
}
@media (max-width: 1100px) {
  .plan__body { grid-template-columns: 1fr; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perks > :nth-child(3n + 2), .perks > :nth-child(3n + 3) { margin-top: 0; }
  .place { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures { grid-template-columns: 1fr; gap: 2.5rem; max-width: 620px; text-align: center; }
  .figure__num { margin-inline: auto; }
  .figure--right { justify-self: auto; }
  .figure p { max-width: 30ch; margin-inline: auto; }
  .hero__top { max-width: min(72%, 760px); }
  .voices__grid { grid-template-columns: 1fr; max-width: 680px; }
}

@media (max-width: 980px) {
  .fab { display: grid; }
  .burger { display: grid; }
  .no-js .burger { display: none; }
  .header__book { display: none; }
  .nav {
    position: fixed; inset: 0 0 auto; z-index: 1;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(88px + env(safe-area-inset-top, 0px)) var(--edge) 1.5rem;
    background: var(--bg);
    box-shadow: 0 18px 40px rgba(var(--shade), .12);
    transform: translateY(-101%);
    visibility: hidden;
    transition: transform .55s var(--ease-hover), visibility 0s linear .55s;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .55s var(--ease-hover), visibility 0s; }
  .no-js .nav { display: none; }
  .nav a { padding-block: .9rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav .nav__book { display: block; margin-top: 1rem; border: 0; color: var(--accent); font-weight: 600; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .t-big { font-size: max(1.95rem, min(8.4vw, 2.5rem)); }
  .t-section { font-size: max(2.6rem, min(11.8vw, 3.4rem)); }
  .t-card { font-size: 1.2rem; }
  .btn { padding: .9em 1.6em; font-size: .95rem; }
  .header__logo img { height: 26px; }

  /* on phones the card turns portrait and shows the middle of the film; the text sits in the shade below */
  .hero__card {
    display: flex; flex-direction: column; justify-content: flex-end; gap: .65rem;
    height: auto; aspect-ratio: 4 / 5.3;
    padding: 1.5rem 1.35rem 1.6rem;
  }
  .hero__top, .hero__bottom { position: static; max-width: 100%; margin: 0; text-align: left; }
  .hero__top h1 { font-size: max(2.7rem, min(12.6vw, 3.5rem)); }
  .hero__bottom p { font-size: 1.25rem; }
  .hero__btn { position: static; align-self: flex-start; margin-top: .4rem; }
  .hero__card::after {
    background: linear-gradient(rgba(var(--shade), 0) 22%, rgba(var(--shade), .55) 40%, rgba(var(--shade), .9) 62%, rgba(var(--shade), .94) 100%);
  }

  .figure__num { font-size: max(2.9rem, min(13.5vw, 3.6rem)); }
  .perks, .plan__cols, .lounge-menu { grid-template-columns: 1fr; }
  .dark__foot { text-align: center; }
  .band__card { height: 240px; }
  .person h3, .person__role { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}
