/* =========================================================
   Ortodoncja Milewski
   ========================================================= */

:root {
  --ground: #E3E7EC;
  --ground-2: #D9DEE5;
  --surface: #FFFFFF;
  --surface-soft: #F3F5F8;
  --ink: #131C2E;
  --ink-2: #3D4759;
  --ink-3: #626C7E;
  --line: rgba(19, 28, 46, .12);
  --navy: #131C2E;
  --navy-2: #22304A;
  --mist: #9FB3C6;
  --rose: #CDB3A8;
  --rose-ink: #3A2A25;
  --rose-ink-2: #6B5049;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-pill: 999px;

  --shadow-card: 0 24px 60px -24px rgba(19, 28, 46, .28), 0 4px 14px -6px rgba(19, 28, 46, .12);
  --shadow-soft: 0 14px 34px -18px rgba(19, 28, 46, .30);

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(16px, 3vw, 40px);
  --max: 1360px;
  --section: clamp(96px, 12vw, 176px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #A9B3C1 var(--ground);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--navy); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: #A9B3C1; border-radius: 10px; border: 2px solid var(--ground); }

img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--navy); color: #fff; text-decoration: none;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Type ---------- */

.display {
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.display--center { text-align: center; }

.section {
  padding: var(--section) var(--gutter) 0;
  max-width: var(--max);
  margin: 0 auto;
}

/* ---------- Buttons ---------- */

.btn {
  --bg: var(--navy);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--dark { box-shadow: 0 12px 26px -10px rgba(19, 28, 46, .55); }
.btn--dark:hover { background: var(--navy-2); box-shadow: 0 18px 32px -12px rgba(19, 28, 46, .6); }
.btn--light { --bg: #fff; --fg: var(--ink); box-shadow: 0 12px 30px -14px rgba(19, 28, 46, .5); }
.btn--ghost {
  --bg: rgba(19, 28, 46, .38);
  --fg: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { --bg: rgba(19, 28, 46, .55); }
.btn--block { width: 100%; }

.btn__arrow {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.round-btn {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border: 0; border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .5s var(--ease), background-color .3s;
}
.round-btn svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:hover { transform: translateY(-2px); }
.round-btn:active { transform: scale(.94); }

.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
}
.link-more::after {
  content: ""; width: 30px; height: 1px; background: currentColor;
  transform: scaleX(.6); transform-origin: left;
  transition: transform .5s var(--ease);
}
.link-more:hover::after { transform: scaleX(1); }

/* ---------- Nav ---------- */

.logo-mark {
  position: relative;
  width: 26px; height: 16px;
  border: 2px solid currentColor;
  border-radius: var(--r-pill);
}
.logo-mark::after {
  content: ""; position: absolute; inset: 3px 5px;
  border: 1.5px solid currentColor; border-radius: var(--r-pill);
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px var(--gutter);
  color: #fff;
  transition: color .4s;
}
.nav::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(227, 231, 236, .72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity .4s;
  z-index: -1;
}
.nav.is-scrolled { color: var(--ink); }
.nav.is-scrolled::before { opacity: 1; }

.nav__logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 19px; letter-spacing: -0.02em; font-weight: 500;
  text-decoration: none; white-space: nowrap;
}
.nav__logo b { font-weight: 700; }

.nav__pill {
  display: flex;
  gap: 2px;
  margin-left: auto;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color .4s, box-shadow .4s;
}
.nav.is-scrolled .nav__pill { background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px var(--line); }

.nav__pill a {
  position: relative;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none;
  transition: background-color .35s, color .35s;
}
.nav__pill a:hover { background: rgba(255, 255, 255, .22); }
.nav.is-scrolled .nav__pill a:hover { background: rgba(19, 28, 46, .06); }
.nav__pill a.is-active { background: #fff; color: var(--ink); box-shadow: 0 4px 12px -4px rgba(19, 28, 46, .25); }

.nav__cta { min-height: 42px; padding: 0 18px; font-size: 11px; }
.nav:not(.is-scrolled) .nav__cta { --bg: #fff; --fg: var(--ink); }

.nav__burger {
  display: none;
  position: relative;
  width: 46px; height: 46px; margin-left: auto;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}
.nav.is-scrolled .nav__burger { background: #fff; box-shadow: var(--shadow-soft); }
.nav__burger span:not(.sr-only) {
  position: absolute; left: 14px; right: 14px; height: 1.6px;
  background: currentColor; border-radius: 2px;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.nav__burger span:nth-child(1) { top: 19px; }
.nav__burger span:nth-child(2) { top: 26px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { top: 22.5px; transform: rotate(-45deg); }
.nav.menu-open { color: var(--ink); }

.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 18px;
  padding: 110px var(--gutter) 32px;
  background: var(--ground);
  clip-path: inset(0 0 100% 0 round 0 0 32px 32px);
  transition: clip-path .7s var(--ease);
}
.menu[hidden] { display: flex; visibility: hidden; }
.menu.is-open { clip-path: inset(0 0 0 0 round 0); visibility: visible; }
.menu nav { display: flex; flex-direction: column; margin-bottom: auto; }
.menu nav a {
  padding: 10px 0;
  font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 300; letter-spacing: -0.04em;
  text-decoration: none; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(2) { transition-delay: .04s; }
.menu.is-open nav a:nth-child(3) { transition-delay: .08s; }
.menu.is-open nav a:nth-child(4) { transition-delay: .12s; }
.menu.is-open nav a:nth-child(5) { transition-delay: .16s; }
.menu.is-open nav a:nth-child(6) { transition-delay: .2s; }
.menu__tel { text-align: center; font-weight: 600; text-decoration: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: max(720px, 108svh);
  padding: clamp(120px, 16vh, 170px) var(--gutter) 0;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -1;
  background: #8EA4B8;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 40%;
  transform: scale(1.08);
  transition: transform 2.4s var(--ease);
}
.hero.is-in .hero__media img { transform: scale(1); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(40, 62, 86, .38) 0%, rgba(40, 62, 86, .08) 45%, rgba(40, 62, 86, 0) 60%),
    linear-gradient(90deg, rgba(30, 48, 70, .32) 0%, rgba(30, 48, 70, 0) 55%);
}

.hero__inner { max-width: 1120px; margin: 0 auto; }

.hero__title {
  display: flex; flex-direction: column;
  font-size: clamp(3rem, 8.4vw, 6rem);
  line-height: .98;
  font-weight: 300;
  letter-spacing: -0.045em;
}
.hero__title .line { display: flex; align-items: center; gap: .3em; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.3s var(--ease);
}
.hero__title .line:nth-child(2) { justify-content: flex-end; }
.hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.hero__title .line:nth-child(3) > span { transition-delay: .24s; }
.hero.is-in .hero__title .line > span { transform: none; }
html:not(.js) .hero__title .line > span { transform: none; }

.pill-mark {
  flex: none;
  width: 2.3em; height: .8em;
  fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.4;
}
.pill-mark rect { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2s var(--ease-in-out); }
.pill-mark rect:nth-child(2) { transition-delay: .2s; }
.pill-mark rect:nth-child(3) { transition-delay: .4s; }
.hero.is-in .pill-mark rect { stroke-dashoffset: 0; }
html:not(.js) .pill-mark rect { stroke-dashoffset: 0; }

.hatch {
  flex: none;
  width: 1.7em; height: .62em;
  background: repeating-linear-gradient(-55deg, rgba(255, 255, 255, .8) 0 1.4px, transparent 1.4px 9px);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s var(--ease) .7s;
}
.hero.is-in .hatch, html:not(.js) .hatch { clip-path: inset(0 0 0 0); }

.hero__foot {
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  margin-top: clamp(28px, 4vw, 48px);
  opacity: 0; transform: translateY(14px);
  transition: opacity 1.2s var(--ease) .55s, transform 1.2s var(--ease) .55s;
}
.hero.is-in .hero__foot, html:not(.js) .hero__foot { opacity: 1; transform: none; }
.hero__foot { position: relative; }
.hero__foot::before {
  content: ""; position: absolute; z-index: -1;
  inset: -60px -120px -60px -160px;
  background: radial-gradient(closest-side, rgba(20, 32, 50, .78), rgba(20, 32, 50, .35) 70%, rgba(20, 32, 50, 0));
  pointer-events: none;
}
.hero__foot p { max-width: 42ch; font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 12px rgba(20, 35, 55, .35); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  transition:
    opacity 1.1s var(--ease) calc(var(--d, 0) * 90ms),
    transform 1.1s var(--ease) calc(var(--d, 0) * 90ms),
    filter 1.1s var(--ease) calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Bento ---------- */

.bento-wrap {
  position: relative; z-index: 2;
  max-width: var(--max);
  margin: clamp(-260px, -22vw, -140px) auto 0;
  padding: 0 var(--gutter);
}
.bento {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr;
  grid-template-rows: auto clamp(260px, 26vw, 330px);
  gap: 14px;
  padding: 14px;
  border-radius: var(--r-xl);
  background: linear-gradient(115deg, rgba(255, 255, 255, .9) 0%, rgba(240, 243, 247, .82) 60%, rgba(226, 231, 237, .78) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(255, 255, 255, .8);
}
.bento__intro {
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: clamp(24px, 3.4vw, 48px);
  min-height: 300px;
}
.bento__intro p { max-width: 44ch; font-size: 15px; color: var(--ink-2); }

.tile {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  min-height: 260px;
  padding: 22px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tile h3 { font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.12; font-weight: 500; letter-spacing: -0.03em; }
.tile p { font-size: 14px; line-height: 1.55; max-width: 30ch; }
.tile--white { background: var(--surface); box-shadow: 0 10px 30px -18px rgba(19, 28, 46, .28); }
.tile--white p { color: var(--ink-2); }

.tile--image { color: var(--ink); }
.tile--image img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.tile--image:hover img { transform: scale(1.05); }
.tile__copy { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.tile--wide { grid-column: span 2; }
.tile--wide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(246, 247, 249, .9) 0%, rgba(246, 247, 249, .55) 32%, rgba(246, 247, 249, 0) 58%);
}
.tile--wide .tile__copy { z-index: 2; }
.tile--wide p { color: var(--ink-2); }
.tile--dark { color: #fff; }
.tile--dark::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(19, 28, 46, .55) 0%, rgba(19, 28, 46, .1) 45%, rgba(19, 28, 46, .65) 100%);
}
.tile--dark .tile__copy { z-index: 2; }
.tile--dark p { color: rgba(255, 255, 255, .88); }

/* ---------- Methods ---------- */

.methods .display { margin-bottom: clamp(48px, 6vw, 80px); }
.methods__grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.methods__list {
  position: relative;
  list-style: none; margin: 0; padding: 0 0 0 28px;
  display: flex; flex-direction: column; gap: 6px;
}
.methods__list button {
  display: flex; flex-direction: column; align-items: flex-start;
  width: 100%;
  padding: 12px 0;
  border: 0; background: none; cursor: pointer;
  text-align: left;
  font-size: clamp(1.1rem, 1.4vw, 1.25rem); font-weight: 500; letter-spacing: -0.02em;
  color: var(--ink-3);
  transition: color .4s, transform .5s var(--ease);
}
.methods__list button small { font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); opacity: .85; }
.methods__list button:hover { color: var(--ink-2); transform: translateX(4px); }
.methods__list button[aria-selected="true"] { color: var(--ink); }
.methods__rail {
  position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: var(--line);
}
.methods__rail span {
  position: absolute; left: -1px; top: 0; width: 3px; border-radius: 3px;
  background: var(--ink);
  height: var(--h, 60px);
  transform: translateY(var(--y, 0));
  transition: transform .7s var(--ease), height .7s var(--ease);
}

.methods__stage {
  position: relative;
  aspect-ratio: 16 / 11;
  max-height: 680px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ground-2);
  box-shadow: var(--shadow-card);
}
.methods__imgs img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  clip-path: inset(100% 0 0 0);
  transform: scale(1.12);
  transition: clip-path 1.1s var(--ease-in-out), transform 1.6s var(--ease);
}
.methods__imgs img.is-active { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; }
.methods__imgs img.is-leaving { clip-path: inset(0 0 0 0); z-index: 0; }
.methods__imgs img:nth-child(3) { object-position: 50% 30%; }
.methods__stage::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(19, 28, 46, 0) 55%, rgba(19, 28, 46, .62) 100%);
}

.glass-card {
  position: absolute; z-index: 3;
  top: 18px; left: 18px;
  width: min(330px, calc(100% - 36px));
  padding: 22px 22px 20px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 16px 40px -20px rgba(19, 28, 46, .45), inset 0 0 0 1px rgba(255, 255, 255, .7);
}
.glass-card h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 12px; }
.glass-card p { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin-bottom: 18px; }
.glass-card > * { transition: opacity .45s var(--ease), transform .6s var(--ease), filter .45s; }
.glass-card.is-swapping > * { opacity: 0; transform: translateY(8px); filter: blur(4px); }

.methods__stats {
  position: absolute; z-index: 3;
  left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(24px, 5vw, 72px);
  margin: 0;
  padding: 0 clamp(20px, 3vw, 34px) clamp(20px, 3vw, 30px);
  color: #fff;
}
.methods__stats dt { font-size: 13px; color: rgba(255, 255, 255, .82); }
.methods__stats dd {
  margin: 2px 0 0;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 400; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  transition: opacity .45s, transform .6s var(--ease);
}
.methods__stats.is-swapping dd { opacity: 0; transform: translateY(10px); }

/* ---------- Process ---------- */

.process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.process__head {
  position: sticky; top: 110px;
  display: flex; flex-direction: column; gap: 22px;
}
.process__head > p { max-width: 42ch; color: var(--ink-2); }
.process__photo {
  margin: 12px 0 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 6px solid #fff;
}
.process__photo img { width: 100%; height: 100%; object-fit: cover; }

.process__steps {
  position: relative;
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.step {
  position: relative;
  display: grid; grid-template-columns: 52px 1fr; gap: 20px;
  padding: 28px 28px 30px 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 10px 30px -20px rgba(19, 28, 46, .3);
}
.step__n {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ground);
  font-size: 15px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color .6s, color .6s;
}
.step.is-active .step__n { background: var(--navy); color: #fff; }
.step h3 { font-size: 1.45rem; font-weight: 500; letter-spacing: -0.03em; margin: 10px 0 8px; }
.step p { font-size: 15px; color: var(--ink-2); max-width: 46ch; }
.step__meta {
  display: inline-block; margin-top: 14px;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--surface-soft);
  font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.process__line {
  position: absolute; z-index: 0;
  left: 48px; top: 54px; bottom: 54px; width: 1px;
  background: var(--line);
  display: none;
}

/* ---------- Doctor ---------- */

.doctor {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 460px);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
.doctor__copy { display: flex; flex-direction: column; gap: 22px; }
.doctor__lead { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.doctor__copy > p:not(.doctor__lead) { max-width: 52ch; color: var(--ink-2); }
.doctor__facts {
  list-style: none; margin: 12px 0 0; padding: 26px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  border-top: 1px solid var(--line);
}
.doctor__facts b { display: block; font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 400; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.doctor__facts span { font-size: 13px; color: var(--ink-3); line-height: 1.45; display: block; max-width: 20ch; }

.doctor__card { position: relative; padding-right: 26px; }
.doctor__back {
  position: absolute; top: 34px; bottom: 34px; right: 0; width: 70%;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, #B9C6D3, #8FA1B4);
  box-shadow: var(--shadow-card);
  transform: rotate(3deg);
  transition: transform 1.2s var(--ease);
}
.doctor__card:hover .doctor__back { transform: rotate(5deg) translateX(6px); }
.doctor__photo {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 7px solid #fff;
  box-shadow: var(--shadow-card);
}
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.doctor__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19, 28, 46, 0) 50%, rgba(19, 28, 46, .78) 100%);
}
.doctor__photo figcaption {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  padding: 22px;
  color: #fff;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.doctor__photo figcaption strong { flex-basis: 100%; font-size: 1.6rem; font-weight: 500; letter-spacing: -0.03em; margin-top: 8px; }
.doctor__photo figcaption > span:last-child { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.chip {
  padding: 4px 11px; border-radius: var(--r-pill);
  background: #fff; color: var(--ink);
  font-size: 11px; font-weight: 600;
}

/* ---------- Voices ---------- */

.voices { max-width: none; overflow: hidden; padding-left: 0; padding-right: 0; }
.voices__stage {
  position: relative;
  height: clamp(320px, 34vw, 400px);
  margin-top: clamp(40px, 5vw, 64px);
  touch-action: pan-y;
  user-select: none;
}
.voices__stage::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 520px; height: 300px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(205, 179, 168, .55), rgba(205, 179, 168, 0));
  filter: blur(20px);
  pointer-events: none;
}
.voice {
  --x: 0; --r: 0deg; --s: 1; --z: 1; --o: 1;
  position: absolute; left: 50%; top: 50%;
  width: clamp(170px, 17vw, 230px);
  aspect-ratio: 3 / 4.2;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 50px -26px rgba(19, 28, 46, .55);
  transform: translate(-50%, -50%) translateX(var(--x)) rotate(var(--r)) scale(var(--s));
  z-index: var(--z);
  opacity: var(--o);
  cursor: pointer;
  transition: transform 1s var(--ease), opacity .8s var(--ease), border-width .6s var(--ease);
}
.voice img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.voice figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 50px 14px 18px;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(19, 28, 46, .6));
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.voice figcaption strong { display: block; font-weight: 500; font-size: 1.1rem; letter-spacing: -0.02em; }
.voice figcaption span { font-size: 11px; color: rgba(255, 255, 255, .86); }
.voice.is-active { border: 6px solid #fff; cursor: default; }
.voice.is-active figcaption { opacity: 1; }

.voices__text {
  max-width: 600px;
  margin: 30px auto 0;
  padding: 0 var(--gutter);
  text-align: center;
  transition: opacity .45s, transform .6s var(--ease), filter .45s;
}
.voices__text.is-swapping { opacity: 0; transform: translateY(8px); filter: blur(4px); }
.voices__text h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -0.03em; margin-bottom: 12px; }
.voices__text p { color: var(--ink-2); font-size: 15px; }
.voices__controls { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }

/* ---------- Who ---------- */

.who {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  padding: clamp(28px, 4vw, 56px);
  padding-right: 14px;
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, #D6BEB4 0%, var(--rose) 55%, #C3A699 100%);
  color: var(--rose-ink);
  box-shadow: var(--shadow-card);
  min-height: 520px;
}
.who .display { color: var(--rose-ink); }
.who__copy { display: flex; flex-direction: column; gap: 36px; padding: 10px 0; }
.who__list {
  position: relative;
  list-style: none; margin: 0; padding: 0;
  border-left: 1px solid rgba(58, 42, 37, .2);
}
.who__list button {
  position: relative;
  display: block; width: 100%;
  padding: 8px 0 8px 20px;
  border: 0; background: none; cursor: pointer; text-align: left;
  font-size: 15px; font-weight: 500;
  color: var(--rose-ink-2);
  transition: color .4s, transform .5s var(--ease);
}
.who__list button::before {
  content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 2px;
  background: var(--rose-ink);
  transform: scaleY(0);
  transition: transform .6s var(--ease);
}
.who__list button:hover { color: var(--rose-ink); transform: translateX(4px); }
.who__list button[aria-selected="true"] { color: var(--rose-ink); }
.who__list button[aria-selected="true"]::before { transform: scaleY(1); }
.who__text { max-width: 44ch; font-size: 15px; color: var(--rose-ink); transition: opacity .45s, transform .6s var(--ease), filter .45s; margin-top: auto; }
.who__text.is-swapping { opacity: 0; transform: translateY(8px); filter: blur(4px); }

.who__strips { display: flex; flex-direction: column; gap: 10px; min-height: 100%; }
.who__strips figure {
  position: relative;
  flex: 1 1 0;
  min-height: 64px;
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: flex-grow 1s var(--ease);
}
.who__strips figure.is-open { flex-grow: 5; cursor: default; }
.who__strips img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1.4s var(--ease); }
.who__strips figure:not(.is-open):hover img { transform: scale(1.06); }

/* ---------- Pricing / FAQ ---------- */

.pricing__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.pricing__head p { max-width: 42ch; color: var(--ink-2); }
.pricing__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.price-card, .faq {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: 0 10px 30px -20px rgba(19, 28, 46, .3);
}
.price-card h3, .faq h3 { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.03em; margin-bottom: 18px; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.price-list li span { color: var(--ink-2); }
.price-list li b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fineprint { margin-top: 16px; font-size: 12px; color: var(--ink-3); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  list-style: none;
  padding: 18px 44px 18px 0;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 10px; top: 50%;
  width: 14px; height: 1.6px; border-radius: 2px;
  background: var(--ink);
  transition: transform .5s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details > div {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--ease);
}
.faq details > div > p { overflow: hidden; color: var(--ink-2); font-size: 15px; max-width: 58ch; }
.faq details.is-open > div { grid-template-rows: 1fr; }
.faq details.is-open > div > p { padding-bottom: 18px; }
html:not(.js) .faq details[open] > div { grid-template-rows: 1fr; }

/* ---------- Contact ---------- */

.contact { padding-bottom: clamp(64px, 8vw, 110px); }
.contact__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 470px);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(24px, 4.5vw, 64px);
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  background: var(--surface-soft);
  box-shadow: var(--shadow-card);
}
.contact__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%;
}
.contact__panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(243, 245, 248, .96) 0%, rgba(243, 245, 248, .82) 34%, rgba(243, 245, 248, 0) 62%);
}
.contact__copy { display: flex; flex-direction: column; gap: 20px; padding-top: 10px; }
.contact__copy > p { max-width: 40ch; color: var(--ink-2); }
.contact__info { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact__info li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; }
.contact__info svg {
  flex: none; width: 38px; height: 38px; padding: 9px;
  border-radius: 50%; background: #fff;
  fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  box-shadow: 0 6px 16px -10px rgba(19, 28, 46, .4);
}
.contact__info li > span, .contact__info li > a { padding-top: 7px; line-height: 1.5; }
.contact__info a { text-decoration: none; font-weight: 600; }
.contact__info a:hover { text-decoration: underline; }

.form {
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 50px -24px rgba(19, 28, 46, .38), inset 0 0 0 1px rgba(255, 255, 255, .9);
}
.form__body { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 13px; font-weight: 600; padding: 0; }
.field label em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--surface-soft);
  font: inherit; font-size: 15px; color: var(--ink);
  caret-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .3s, background-color .3s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #6E7889; }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px rgba(19, 28, 46, .28); }
.field input:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--navy), 0 0 0 4px rgba(19, 28, 46, .08); }
.field__err { display: none; font-size: 12.5px; color: #A3372B; }
.field.is-invalid input { box-shadow: inset 0 0 0 1.5px #A3372B; }
.field.is-invalid .field__err { display: block; }

.field--seg { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.field--seg legend { float: left; width: 100%; margin-bottom: 7px; }
.field--seg label { position: relative; cursor: pointer; }
.field--seg input { position: absolute; opacity: 0; pointer-events: none; }
.field--seg span {
  display: inline-block; padding: 9px 18px; border-radius: var(--r-pill);
  background: var(--surface-soft); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 500;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.field--seg input:checked + span { background: var(--navy); color: #fff; box-shadow: none; }
.field--seg input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--navy); }
.consent.is-invalid span { color: #A3372B; }

.form button[type="submit"].is-loading { pointer-events: none; opacity: .75; }
.form button[type="submit"].is-loading .btn__arrow { animation: nudge .9s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }

.form__done { text-align: center; padding: 30px 10px; outline: none; }
.form__done svg { width: 56px; height: 56px; margin: 0 auto 18px; fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.form__done svg circle { stroke-dasharray: 140; stroke-dashoffset: 140; animation: draw 1s var(--ease) forwards; }
.form__done svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s var(--ease) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form__done h3 { font-size: 1.4rem; font-weight: 500; letter-spacing: -0.03em; margin-bottom: 10px; }
.form__done p { color: var(--ink-2); font-size: 15px; }

/* ---------- Footer ---------- */

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter) 32px;
  font-size: 14px;
}
.footer__top {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer__brand, .footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__brand .nav__logo { margin-bottom: 10px; }
.footer h4 { font-size: 13px; font-weight: 700; margin: 0 0 6px; }
.footer a, .footer span { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer__brand .nav__logo, .footer__brand .nav__logo span { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; font-size: 12.5px; color: var(--ink-3); }
.socials { display: flex; gap: 8px; }
.socials a {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; box-shadow: 0 6px 16px -10px rgba(19, 28, 46, .4);
  transition: transform .4s var(--ease);
}
.socials a:hover { transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.socials svg .fill { fill: var(--ink); stroke: none; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
  .nav__pill { display: none; }
  .nav__cta { margin-left: auto; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .bento__intro { grid-column: 1 / -1; min-height: 0; }
  .tile--wide { grid-column: 1 / -1; min-height: 300px; }
  .tile--dark { grid-column: 1 / -1; min-height: 300px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__cta { display: none; }
  .nav__burger { display: block; }

  .methods__grid { grid-template-columns: 1fr; }
  .methods__list {
    flex-direction: row; gap: 8px;
    padding: 0 var(--gutter) 4px; margin: 0 calc(var(--gutter) * -1);
    overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory;
  }
  .methods__list::-webkit-scrollbar { display: none; }
  .methods__list li { flex: none; scroll-snap-align: start; }
  .methods__list button {
    padding: 10px 16px; border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .55);
    font-size: 14px; white-space: nowrap;
  }
  .methods__list button small { display: none; }
  .methods__list button:hover { transform: none; }
  .methods__list button[aria-selected="true"] { background: var(--navy); color: #fff; }
  .methods__rail { display: none; }
  .methods__stage { aspect-ratio: auto; height: min(150vw, 640px); }
  .methods__stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  .process { grid-template-columns: 1fr; }
  .process__head { position: static; }
  .doctor { grid-template-columns: 1fr; }
  .doctor__card { max-width: 440px; }
  .doctor__facts { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

  .who { grid-template-columns: 1fr; padding-right: clamp(28px, 4vw, 56px); }
  .who__strips { height: 420px; }
  .pricing__grid { grid-template-columns: 1fr; }
  .contact__panel { grid-template-columns: 1fr; }
  .contact__panel { padding-top: 0; }
  .contact__bg { position: relative; inset: auto; z-index: 0; height: 220px; margin: 0 calc(-1 * clamp(24px, 4.5vw, 64px)); width: calc(100% + 2 * clamp(24px, 4.5vw, 64px)); max-width: none; object-position: 70% 50%; }
  .contact__panel::before { display: none; }
}

@media (max-width: 560px) {
  .hero { min-height: 100svh; padding-top: 128px; }
  .hero__media { background: linear-gradient(180deg, #7F93A8 0%, #A4B3C2 60%, #B4C0CC 100%); }
  .hero__media img {
    position: absolute; left: 0; bottom: 0;
    height: 58%; object-position: 76% 30%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
  }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(40, 62, 86, .35) 0%, rgba(40, 62, 86, .1) 45%, rgba(40, 62, 86, 0) 60%);
  }
  .hero__title { font-size: clamp(2.4rem, 11.2vw, 3.4rem); }
  .hero__title .line:nth-child(2) { justify-content: flex-start; }
  .pill-mark { width: 1.6em; }
  .hatch { width: .75em; height: .5em; }
  .hero__title .line { white-space: nowrap; }
  .hero__foot { margin-top: 24px; }
  .hero__foot::before { inset: -30px -40px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; }
  .bento-wrap { margin-top: -160px; }
  .bento { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .tile--white { min-height: 220px; }
  .glass-card { padding: 18px; }
  .glass-card p { font-size: 13.5px; }
  .methods__stats dd { font-size: 1.15rem; }
  .methods__stats dt { font-size: 11.5px; }
  .step { grid-template-columns: 1fr; gap: 6px; padding: 22px; }
  .step__n { width: 44px; height: 44px; }
  .doctor__facts { grid-template-columns: 1fr; }
  .doctor__facts li { display: flex; align-items: baseline; gap: 14px; }
  .voice { width: 160px; }
  .price-list li { flex-direction: column; gap: 2px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* ---------- Bento demos ---------- */

.arch { position: relative; margin: auto 0; }
.arch svg { width: 100%; max-width: 230px; height: auto; overflow: visible; }
.arch .tooth {
  fill: var(--surface-soft); stroke: #9FB3C6; stroke-width: 1.2;
  transform-box: fill-box; transform-origin: center;
  transition: transform 1.6s var(--ease-in-out), fill .8s;
}
.arch .ghost { fill: none; stroke: rgba(19, 28, 46, .12); stroke-dasharray: 3 4; }
.arch.is-aligned .tooth { transform: none !important; fill: #fff; stroke: var(--navy); }
.arch__stage {
  position: absolute; right: 0; top: 0;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--surface-soft);
  font-size: 11px; font-weight: 600; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.journey { margin: auto 0; }
.journey__line {
  position: relative; display: block;
  height: 2px; margin: 22px 8px 16px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px);
}
.journey__line::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 100%;
  background: var(--navy);
  transform: scaleX(var(--p, 0)); transform-origin: left;
  transition: transform 1.6s var(--ease-in-out);
}
.journey__doc {
  position: absolute; top: 50%; left: 0;
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  border: 3px solid #fff; box-shadow: 0 6px 16px -6px rgba(19, 28, 46, .5);
  transform: translate(calc(var(--p, 0) * (var(--w, 200px)) - 50%), -50%);
  transition: transform 1.6s var(--ease-in-out);
}
.journey__doc img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.journey ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 600; color: var(--ink-3);
}
.journey ol li { transition: color .5s; }
.journey ol li.is-on { color: var(--ink); }
