/* Clínica Dental Krebs · propuesta de rediseño
   Tokens from the landing-page-design skill.
   Spacing: 2 4 8 12 16 24 32 40 48 64 80 96. Radius: Tailwind steps only. */
:root {
  --bg: #F6F9F9;
  --surface: #FFFFFF;
  --line: #E1E9EA;
  --ink: #0E1D20;
  --muted: #53666A;
  --accent: #0B7380;          /* turquesa del logo, más profundo para contraste AA */
  --accent-hover: #095D68;
  --accent-soft: #E2F2F3;
  --open: #1E8A5C;
  --danger: #B42318;
  --shadow: 0 24px 48px rgba(14, 29, 32, 0.10);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: "Geist", system-ui, sans-serif;
  font-size: 1rem; line-height: 1.5rem;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p, li, dd, dt { text-wrap: pretty; }
p, dl, dd, figure, ul, ol { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[id] { scroll-margin-top: 96px; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 8px 12px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
  transform: translateY(-64px); transition: transform 500ms var(--ease);
}
.skip-link:focus { transform: none; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 12px; border: 0; border-radius: 9999px;
  font: inherit; font-size: 1rem; line-height: 1.5rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 700ms var(--ease), transform 700ms var(--ease), box-shadow 700ms var(--ease);
}
.btn i { font-size: 1.25rem; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(11, 115, 128, 0.24); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline-offset: 4px; border-radius: 9999px; }
.btn--sm { font-size: 0.875rem; line-height: 1.25rem; }
.btn--lg { padding: 12px 24px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--accent); text-decoration: none;
}
.link-arrow i { transition: transform 700ms var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }
.link-arrow:hover i.ph-arrow-down { transform: translateY(4px); }
.link-arrow:hover i.ph-arrow-up-right { transform: translate(4px, -2px); }

/* Fluid island nav */
.nav {
  position: fixed; z-index: 60; top: 24px; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 24px);
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 24px;
  border: 1px solid rgba(225, 233, 234, 0.9); border-radius: 9999px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 24px rgba(14, 29, 32, 0.06);
}
.nav__brand img { height: 28px; width: auto; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 4px 12px; border-radius: 9999px;
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: background-color 700ms var(--ease), color 700ms var(--ease);
}
.nav__links a:hover { color: var(--ink); background: rgba(14, 29, 32, 0.05); }
.nav__links a[aria-current="true"] { color: var(--accent); background: var(--accent-soft); }

.nav__toggle {
  display: none; position: relative; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 9999px; background: var(--surface); cursor: pointer;
}
.nav__toggle span {
  position: absolute; left: 12px; width: 16px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform 700ms var(--ease), top 700ms var(--ease);
}
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 21px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 18px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 18px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(64px); -webkit-backdrop-filter: blur(64px);
  opacity: 0; visibility: hidden; transition: opacity 700ms var(--ease), visibility 0s linear 700ms;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 700ms var(--ease), visibility 0s; }
.menu ul { list-style: none; padding: 0; display: grid; gap: 16px; text-align: center; }
.menu li { overflow: hidden; }
.menu a {
  display: inline-block; padding: 4px 12px; font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; text-decoration: none;
  transform: translateY(48px); opacity: 0; transition: transform 700ms var(--ease), opacity 700ms var(--ease);
}
.menu.is-open a { transform: none; opacity: 1; }
.menu.is-open li:nth-child(1) a { transition-delay: 100ms; }
.menu.is-open li:nth-child(2) a { transition-delay: 150ms; }
.menu.is-open li:nth-child(3) a { transition-delay: 200ms; }
.menu.is-open li:nth-child(4) a { transition-delay: 250ms; }
.menu.is-open li:nth-child(5) a { transition-delay: 300ms; color: var(--accent); }

/* Shared */
.eyebrow { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.icon-box { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 1.5rem; }

.section { padding-block: 96px; }
.section--surface { background: var(--surface); }
.section__head { display: grid; gap: 16px; max-width: 680px; margin-bottom: 48px; }
.section__head h2 { font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.03em; }
.section__head p:not(.eyebrow) { font-size: 1.125rem; line-height: 1.75rem; color: var(--muted); }

.status {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 4px 12px; border: 1px solid var(--line); border-radius: 9999px; background: var(--surface);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--muted);
}
.status.is-open { color: var(--open); }
.dot { width: 8px; height: 8px; flex: none; border-radius: 9999px; background: #9AA9AC; }
.status.is-open .dot { background: var(--open); box-shadow: 0 0 0 4px rgba(30, 138, 92, 0.16); }

/* Hero */
.hero { padding-top: 144px; padding-bottom: 64px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; }
.hero__lead { display: grid; justify-items: start; gap: 24px; }
.hero__aside { display: grid; justify-items: start; gap: 24px; padding-bottom: 8px; }
.hero__title { max-width: 680px; font-size: 4.5rem; line-height: 1; letter-spacing: -0.045em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 16px; margin-bottom: -16px; }
.hero__title .line > span {
  display: inline-block; padding-bottom: 16px; margin-bottom: -16px;
  background: linear-gradient(90deg, #000000, #666666);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { max-width: 560px; font-size: 1.125rem; line-height: 1.75rem; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* Hero entrance: copy rises out of a mask, the rest fades up */
.js .hero-in { animation: hero-fade 1000ms var(--ease) both; animation-delay: calc(var(--i) * 110ms + 150ms); }
.js .hero__title .hero-in { animation-name: hero-rise; animation-duration: 1100ms; }
@keyframes hero-fade { from { opacity: 0; transform: translateY(32px); filter: blur(8px); } }
@keyframes hero-rise { from { transform: translateY(110%); } }

/* Wide clinic photo under the copy. Source is 1440 x 754, so the 1200px container shows it
   at or below its real size. It opens with a wipe and settles from a slight zoom on scroll. */
.hero__media { position: relative; margin-top: 48px; }
.hero__frame { overflow: hidden; border-radius: 24px; aspect-ratio: 1440 / 680; background: var(--accent-soft); }
.js .hero__frame { animation: hero-wipe 1400ms var(--ease) 350ms both; }
@keyframes hero-wipe { from { clip-path: inset(12% 6% 0 6% round 24px); } to { clip-path: inset(0 0 0 0 round 24px); } }
.hero__frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  transform: scale(calc(1.1 - var(--p, 0) * 0.1)); transform-origin: center 40%;
  will-change: transform;
}
.chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600;
}
.chip--years { right: 24px; bottom: 24px; max-width: 260px; }
.js .chip--years { animation: chip-in 1000ms var(--ease) 1100ms both, float 6000ms var(--ease) 2100ms infinite alternate; }
.chip--years strong { font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; color: var(--accent); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.chip--years span { color: var(--muted); font-weight: 500; }
@keyframes chip-in { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
@keyframes float { to { transform: translateY(-8px); } }

/* Key facts under the hero */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line);
}
.facts div { display: grid; align-content: start; gap: 4px; }
.facts dt { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.facts dd { font-weight: 600; }

/* Tagline reveal */
.tagline { padding-block: 96px; }
.tagline__text { max-width: 760px; font-size: 3rem; line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.tagline__text .word { color: rgba(14, 29, 32, 0.24); transition: color 700ms var(--ease); }
.tagline__text .word.is-on { color: var(--ink); }

/* Treatment selector */
.treat { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: start; }
.treat__tabs { position: sticky; top: 112px; display: grid; gap: 8px; }
.treat__tab {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  width: 100%; padding: 16px; border: 1px solid transparent; border-radius: 16px; background: var(--bg);
  font: inherit; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer;
  transition: background-color 700ms var(--ease), border-color 700ms var(--ease), color 700ms var(--ease), transform 700ms var(--ease);
}
.treat__tab i { font-size: 1.5rem; color: var(--accent); transition: color 700ms var(--ease); }
.treat__tab small { font-size: 0.75rem; line-height: 1rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.treat__tab:hover { border-color: var(--line); }
.treat__tab:active { transform: scale(0.98); }
.treat__tab[aria-selected="true"] { background: var(--accent); color: #fff; }
.treat__tab[aria-selected="true"] i, .treat__tab[aria-selected="true"] small { color: rgba(255, 255, 255, 0.8); }
.treat__tab:focus-visible { outline-offset: 2px; border-radius: 16px; }

.treat__panel { outline: none; }
.js .treat__panel:not([hidden]) { animation: panel-in 600ms var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px); } }
.treat__list { list-style: none; padding: 0; }
.treat__list li {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding-block: 24px; border-top: 1px solid var(--line);
}
.treat__list li:last-child { border-bottom: 1px solid var(--line); }
.treat__list h3 { font-size: 1.25rem; line-height: 1.75rem; letter-spacing: -0.01em; }
.treat__list p { margin-top: 4px; max-width: 560px; color: var(--muted); }
.treat__ask {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9999px;
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap;
  transition: background-color 700ms var(--ease), transform 700ms var(--ease);
}
.treat__ask:hover { background: var(--accent-soft); }
.treat__ask:active { transform: scale(0.98); }
.treat__ask i { transition: transform 700ms var(--ease); }
.treat__ask:hover i { transform: translateX(4px); }

/* Steps */
.steps { position: relative; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps::before {
  content: ""; position: absolute; top: 24px; left: 48px; right: 48px; height: 2px; background: var(--line);
  transform: scaleX(0); transform-origin: left; transition: transform 1600ms var(--ease) 200ms;
}
.steps.is-in::before { transform: scaleX(1); }
.step { position: relative; display: grid; gap: 12px; align-content: start; }
.step__icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 9999px;
  background: var(--accent); color: #fff; font-size: 1.5rem; box-shadow: 0 0 0 8px var(--bg);
}
.step h3 { font-size: 1.25rem; line-height: 1.75rem; }
.step p { color: var(--muted); }

/* Technology: two columns, photos at their real size */
.tech { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
.tech__item { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.tech__photo { overflow: hidden; border-radius: 16px; aspect-ratio: 348 / 234; background: var(--accent-soft); }
.tech__photo img { width: 100%; height: 100%; object-fit: cover; }
.tech__photo--icon { display: grid; place-items: center; color: var(--accent); font-size: 3rem; }
.tech__body { display: grid; gap: 8px; }
.tech__body h3 { font-size: 1.25rem; line-height: 1.75rem; letter-spacing: -0.01em; }
.tech__body p { color: var(--muted); }

/* Mask reveal for photos */
.js .mask-reveal { clip-path: inset(0 0 100% 0 round 16px); transition: clip-path 1400ms var(--ease); }
.js .mask-reveal img { transform: scale(1.18); transition: transform 1800ms var(--ease); }
.js .mask-reveal.is-in { clip-path: inset(0 0 0 0 round 16px); }
.js .mask-reveal.is-in img { transform: none; }

/* Doctor */
.doctor { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
.doctor__copy { display: grid; gap: 16px; }
.doctor__copy h2 { font-size: 3rem; line-height: 1; letter-spacing: -0.04em; }
.doctor__copy p:not(.eyebrow) { max-width: 600px; font-size: 1.125rem; line-height: 1.75rem; color: var(--muted); }
.doctor__team { display: grid; gap: 12px; max-width: 500px; margin-top: 16px; }
.doctor__frame { overflow: hidden; border-radius: 24px; aspect-ratio: 500 / 356; background: var(--accent-soft); }
.doctor__frame img { width: 100%; height: 100%; object-fit: cover; }
.doctor__team figcaption { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.js .doctor__frame.mask-reveal { clip-path: inset(0 0 100% 0 round 24px); }
.js .doctor__frame.mask-reveal.is-in { clip-path: inset(0 0 0 0 round 24px); }
.doctor__creds { display: grid; padding: 8px 24px; border-radius: 24px; background: var(--surface); }
.doctor__creds div { display: grid; gap: 4px; padding-block: 16px; }
.doctor__creds div + div { border-top: 1px solid var(--line); }
.doctor__creds dt { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.doctor__creds dd { font-weight: 600; }

/* Clinic gallery: source photos are 348px wide, so tiles stay close to that */
.gallery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 348 / 234; background: var(--accent-soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.photo:hover img { transform: scale(1.04); }
.photo span {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 12px; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font-size: 0.75rem; line-height: 1rem; font-weight: 600;
}

/* FAQ: side by side list */
.faq { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.faq div { display: grid; align-content: start; gap: 8px; padding-block: 24px; border-top: 1px solid var(--line); }
.faq dt { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.faq dd { color: var(--muted); }

/* Booking */
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.booking__copy { display: grid; gap: 24px; }
.booking__copy h2 { font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.03em; }
.booking__copy > p:not(.eyebrow) { font-size: 1.125rem; line-height: 1.75rem; color: var(--muted); }
.contact { display: grid; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact__list { list-style: none; padding: 0; display: grid; gap: 16px; }
.contact__list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--muted); }
.contact__list i { margin-top: 2px; font-size: 1.25rem; color: var(--accent); }
.contact__list span > a:not(.link-arrow) { color: var(--ink); font-weight: 600; text-decoration: none; transition: color 700ms var(--ease); }
.contact__list span > a:not(.link-arrow):hover { color: var(--accent); }
.contact__list .link-arrow { margin-top: 4px; font-size: 0.875rem; line-height: 1.25rem; }

.form-card { padding: 32px; border-radius: 24px; background: var(--bg); }
.form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { padding: 0; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.field legend { margin-bottom: 8px; }
.optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field select {
  width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  font: inherit; color: var(--ink); transition: border-color 700ms var(--ease), box-shadow 700ms var(--ease);
}
.field input[type="text"]:hover, .field select:hover { border-color: #C5D3D5; }
.field input[type="text"]:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--danger) !important; }
.field__error { font-size: 0.875rem; line-height: 1.25rem; color: var(--danger); }
.field__error:empty { display: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 9999px; background: var(--surface);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; cursor: pointer;
  transition: background-color 700ms var(--ease), border-color 700ms var(--ease), color 700ms var(--ease), transform 700ms var(--ease);
}
.choice span:hover { border-color: var(--accent); }
.choice span:active { transform: scale(0.98); }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__note { font-size: 0.75rem; line-height: 1rem; color: var(--muted); text-align: center; }
.form-success { display: grid; gap: 12px; justify-items: start; outline: none; }
.form-success h3 { font-size: 1.5rem; line-height: 2rem; }
.form-success p { color: var(--muted); }

/* Footer */
.footer { padding-block: 48px 96px; }
.footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.footer__brand { display: grid; gap: 12px; justify-items: start; }
.footer__brand img { height: 39px; width: auto; }
.footer__brand p, .footer__note { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.social { list-style: none; padding: 0; display: flex; gap: 8px; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface);
  color: var(--ink); font-size: 1.25rem; text-decoration: none;
  transition: background-color 700ms var(--ease), color 700ms var(--ease), transform 700ms var(--ease);
}
.social a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.footer__links { display: flex; gap: 24px; font-size: 0.875rem; line-height: 1.25rem; }
.footer__links a { color: var(--muted); text-decoration: none; transition: color 700ms var(--ease); }
.footer__links a:hover { color: var(--ink); }
.footer__note { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 9999px;
  background: #25D366; color: #fff; font-size: 2rem; text-decoration: none;
  box-shadow: 0 12px 24px rgba(14, 29, 32, 0.18);
  transition: transform 700ms var(--ease);
}
.wa-float:hover { transform: translateY(-4px) scale(1.04); }
.wa-float:active { transform: scale(0.96); }

/* Scroll reveal */
.js [data-reveal] {
  opacity: 0; transform: translateY(64px); filter: blur(12px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* Responsive */
@media (max-width: 1024px) {
  .tech { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav { gap: 12px; padding-left: 16px; }
  .hero__grid, .treat, .doctor, .booking { grid-template-columns: 1fr; gap: 32px; }
  .hero__media { margin-top: 0; }
  .hero__frame { aspect-ratio: 4 / 3; }
  .hero__frame img { object-position: 30% center; }
  .treat__tabs { position: static; grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section, .tagline { padding-block: 64px; }
  .hero { padding-top: 112px; }
  .hero__title { font-size: 3rem; }
  .hero__frame { aspect-ratio: 4 / 5; }
  .hero__frame img { object-position: 24% center; }
  .chip--years { display: none; }
  .section__head h2, .booking__copy h2 { font-size: 1.875rem; line-height: 2.25rem; }
  .section__head h2 br, .booking__copy h2 br { display: none; }
  .doctor__copy h2 { font-size: 2.25rem; line-height: 2.5rem; }
  .tagline__text { font-size: 2.25rem; line-height: 2.5rem; }
  .facts { margin-top: 48px; }
  .treat__tabs { grid-template-columns: 1fr; }
  .treat__list li { grid-template-columns: 1fr; gap: 8px; }
  .treat__ask { justify-self: start; padding-inline: 0; }
  .treat__ask:hover { background: none; }
  .tech__item { grid-template-columns: 1fr; }
  .tech__photo { max-width: 348px; }
  .gallery { grid-template-columns: 1fr; }
  .photo { max-width: 400px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; transform: scaleY(0); transform-origin: top; }
  .steps.is-in::before { transform: scaleY(1); }
  .form-card { padding: 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__links { flex-wrap: wrap; }
  .nav .nav__cta { display: none; }
  .nav__brand img { height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .js .mask-reveal { clip-path: none; }
  .js .mask-reveal img { transform: none; }
}
