/* Springs Dental — clear aligner page, "studio" preview.
   Direction: warm editorial paper, wide uppercase display type, slow confident motion.
   One easing family: --ease-out for entrances, --ease-io for wipes, --spring for display lines. */

:root {
  --paper: #FAF8F4;
  --paper-2: #F1ECE3;
  --ink: #0B1620;
  --ink-2: #172A39;
  --ink-soft: #4E5B66;
  --line: rgba(11, 22, 32, .12);
  --aqua: #7CC4BE;
  --aqua-soft: #A3DAD4;
  --teal: #1C5A5B;
  --white: #FFFFFF;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 3.4vw, 56px);
  --radius: clamp(14px, 1.4vw, 22px);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --spring: cubic-bezier(.34, 1.36, .64, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, .011, .041, .085, .138, .198, .262, .328, .393, .457, .518, .576, .63, .681, .726, .768, .805, .839, .868, .894, .916, .935, .951, .965, .976, .985, .992, .998, 1.002, 1.006, 1.008, 1.009, 1.01, 1.01, 1.009, 1.008, 1.007, 1.005, 1.003, 1.001, 1);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font);
  font-stretch: 125%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .92;
}
.display--md { font-size: clamp(34px, 5.4vw, 84px); }
.display--sm { font-size: clamp(24px, 2.6vw, 38px); line-height: 1; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.mono { font-family: var(--mono); }
.muted { color: rgba(255, 255, 255, .42); }
.fine { font-size: 13px; line-height: 1.5; color: var(--ink-soft); max-width: 68ch; }

/* Gradient sweep across a heading, like light passing over glass */
.shine {
  background: linear-gradient(100deg, var(--ink) 38%, var(--aqua) 47%, var(--teal) 52%, var(--ink) 61%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.is-in .shine { animation: shine 2.4s var(--ease-io) .25s both; }
@keyframes shine { to { background-position: 0 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease-out), background-color .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--light { background: var(--white); color: var(--ink); box-shadow: 0 8px 30px rgba(0, 0, 0, .18); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--ghost { color: var(--white); background: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--outline { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 11px; }
.link { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Intro curtain ---------- */
.intro { display: none; }
.has-intro .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  transform-origin: 50% 0;
  animation: curtain .75s var(--ease-io) .35s both;
}
.has-intro .intro__logo { width: min(220px, 50vw); animation: intro-logo .4s var(--ease-out) both, intro-out .25s ease .3s both; }
@keyframes curtain { to { transform: scaleY(0); } }
@keyframes intro-logo { from { opacity: 0; filter: blur(6px); transform: translateY(10px); } }
@keyframes intro-out { to { opacity: 0; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  transition: background-color .35s, box-shadow .35s;
}
.nav__logo { position: relative; display: block; width: 132px; height: 44px; }
.nav__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .35s; }
.nav__logo-dark { opacity: 0; }
.signature .display--md { font-size: clamp(34px, 4.4vw, 72px); }
.nav__pill {
  display: none;
  gap: 4px; padding: 5px;
  border-radius: 999px;
  background: rgba(11, 22, 32, .38);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.nav__pill a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; color: rgba(255, 255, 255, .86); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav__pill a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.nav.is-solid { background: rgba(250, 248, 244, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.is-solid .nav__logo-light { opacity: 0; }
.nav.is-solid .nav__logo-dark { opacity: 1; }
.nav.is-solid .nav__pill { background: rgba(11, 22, 32, .06); }
.nav.is-solid .nav__pill a { color: var(--ink); }
.nav.is-solid .nav__pill a:hover { background: rgba(11, 22, 32, .08); }
.nav.is-solid .nav__cta { background: var(--ink); color: #fff; box-shadow: none; }
@media (min-width: 980px) { .nav__pill { display: flex; } }
/* Phones: the header scrolls away with the hero; the bottom dock carries the booking button */
@media (max-width: 899px) {
  html { scroll-padding-top: 16px; }
  .nav { position: absolute; }
  .nav.is-solid { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  .nav.is-solid .nav__logo-light { opacity: 1; }
  .nav.is-solid .nav__logo-dark { opacity: 0; }
  .nav.is-solid .nav__cta { background: var(--white); color: var(--ink); box-shadow: 0 8px 30px rgba(0, 0, 0, .18); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
  overflow: clip;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transform: scale(1.06); transition: transform 1.8s var(--ease-out); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 22, 32, .38) 0%, rgba(11, 22, 32, 0) 22%, rgba(11, 22, 32, 0) 42%, rgba(11, 22, 32, .78) 78%, rgba(11, 22, 32, .92) 100%);
}
.hero.is-in .hero__media img { transform: scale(1); }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%;
  opacity: 0; transition: opacity .8s var(--ease-out);
}
.hero__video.is-playing { opacity: 1; }
.hero__media::after { z-index: 1; }
.hero__copy { padding: 0 var(--gutter) clamp(28px, 6vh, 64px); display: grid; gap: 22px; }
.hero__eyebrow { color: rgba(255, 255, 255, .78); }
.hero__title { font-size: clamp(42px, 11.6vw, 132px); line-height: .9; }
.hero__lead { max-width: 40ch; color: rgba(255, 255, 255, .86); font-size: 16px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero__side { display: grid; }

/* Display lines rise from behind a mask */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: block; transform: translateY(110%); }
.is-in .line > span { transform: none; transition: transform 1.25s var(--spring); }
.is-in .line:nth-child(2) > span { transition-delay: .09s; }
.is-in .line:nth-child(3) > span { transition-delay: .18s; }

[data-rise] { opacity: 0; filter: blur(4px); transform: translateY(12px); }
.is-in [data-rise] { opacity: 1; filter: none; transform: none; transition: opacity .45s var(--ease-out) var(--d, 0s), filter .45s var(--ease-out) var(--d, 0s), transform .45s var(--ease-out) var(--d, 0s); }

@media (max-width: 599px) {
  .nav__logo { width: 112px; height: 38px; }
  .hero__title { font-size: clamp(30px, 9vw, 52px); }
}
/* Phones: headline, lead and buttons are on screen from the first paint — no waiting on motion */
@media (max-width: 899px) {
  .line > span, .is-in .line > span { transform: none; transition: none; }
  [data-rise], .is-in [data-rise] { opacity: 1; filter: none; transform: none; transition: none; }
  .hero__media img { transform: none; transition: none; }
}
/* Desktop: editorial split — type on paper, the photo as a tall framed print */
@media (min-width: 900px) {
  /* Exactly one screen tall: the photo is cropped to fit, it never sets the height */
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
    grid-template-rows: minmax(0, 1fr);
    gap: clamp(32px, 4vw, 72px);
    height: 100vh; height: 100svh; min-height: 520px; max-height: 1100px;
    padding: 84px var(--gutter) var(--gutter);
    background: var(--paper); color: var(--ink);
    align-items: stretch;
  }
  .hero__media { position: relative; inset: auto; z-index: 0; grid-column: 2; grid-row: 1; min-height: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
  .hero__media img { position: absolute; inset: 0; object-position: 50% 30%; }
  .hero__video { object-position: 50% 30%; }
  .hero__media::after { background: none; }
  .hero__copy { grid-column: 1; grid-row: 1; align-self: end; padding: 0 0 clamp(8px, 2vh, 24px); }
  .hero__eyebrow { color: var(--ink-soft); }
  .hero__title { font-size: clamp(36px, min(4.3vw, 8.4vh), 84px); }
  .hero__copy { gap: clamp(12px, 2.2vh, 22px); }
  .hero__actions { margin-top: clamp(4px, 1.2vh, 18px); }
  .hero__title .line { white-space: nowrap; }
  .hero__lead { color: var(--ink-soft); font-size: 17px; }
  .hero .btn--light { background: var(--ink); color: #fff; box-shadow: none; }
  .hero .btn--ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* Over paper from the start, the nav uses its light-surface look */
  .nav .nav__logo-light { opacity: 0; }
  .nav .nav__logo-dark { opacity: 1; }
  .nav .nav__pill { background: rgba(11, 22, 32, .06); }
  .nav .nav__pill a { color: var(--ink); }
  .nav .nav__pill a:hover { background: rgba(11, 22, 32, .08); }
  .nav .nav__cta { background: var(--ink); color: #fff; box-shadow: none; }
}

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker__list { display: flex; }
.ticker__list li {
  display: flex; align-items: center; gap: 28px; padding: 16px 28px 16px 0;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--ink-soft);
}
.ticker__list li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker:hover .ticker__track { animation-play-state: paused; }

/* ---------- Sections ---------- */
section { position: relative; }
.section-head { display: grid; justify-items: center; text-align: center; gap: 18px; padding: clamp(80px, 12vw, 180px) var(--gutter) clamp(36px, 5vw, 72px); }
.section-head--left { justify-items: start; text-align: left; }
.section-head__lead { max-width: 52ch; color: var(--ink-soft); }

/* Reveal: blur-rise, staggered by --d */
.js [data-reveal] { opacity: 0; filter: blur(4px); transform: translateY(16px); }
.js [data-reveal].is-in { opacity: 1; filter: none; transform: none; transition: opacity .7s var(--ease-out) var(--d, 0s), filter .7s var(--ease-out) var(--d, 0s), transform .7s var(--ease-out) var(--d, 0s); }

/* ---------- Explorer ---------- */
.explorer { padding: 0 var(--gutter); max-width: 1320px; margin: 0 auto; }
.explorer__tabs {
  display: flex; gap: 4px; align-items: center; justify-content: center; flex-wrap: wrap;
  width: fit-content; margin: 0 auto 28px; padding: 5px; border-radius: 999px; background: var(--paper-2);
}
.pill-tab {
  position: relative; overflow: hidden;
  padding: 9px 12px; border-radius: 999px; font-size: 13px; color: var(--ink-soft);
  transition: color .3s, background-color .3s;
}
@media (min-width: 600px) { .pill-tab { padding: 10px 16px; font-size: 14px; } }
.explorer__tabs { flex-wrap: nowrap; max-width: 100%; }
.pill-tab.is-active { background: var(--ink); color: #fff; }
.pill-tab i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--aqua); }
.pill-tab.is-active i { animation: tab-progress var(--tab-ms, 5600ms) linear both; }
.explorer.is-paused .pill-tab.is-active i { animation-play-state: paused; }
@keyframes tab-progress { to { width: 100%; } }
.explorer__pause { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.explorer__pause span { width: 10px; height: 12px; border-inline: 3px solid var(--ink); }
.explorer.is-paused .explorer__pause span { width: 0; height: 0; border: 0; border-left: 10px solid var(--ink); border-block: 6px solid transparent; margin-left: 3px; }

.explorer__stage {
  display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr);
  border-radius: var(--radius); background: var(--paper-2);
  padding: clamp(20px, 3vw, 48px); overflow: hidden;
}
.explorer__visual { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.aligner-3d { position: relative; z-index: 1; width: min(100%, 520px); aspect-ratio: 1; }
.aligner-3d img { width: 100%; height: 100%; object-fit: contain; }
.aligner-3d.is-3d img { display: none; }
.aligner-3d canvas { width: 100% !important; height: 100% !important; display: block; }
.explorer__glow {
  position: absolute; inset: 10% 15%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 196, 190, .55), rgba(124, 196, 190, 0));
  filter: blur(30px); animation: drift 9s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(6%, -4%) scale(1.08); } }
.explorer__panels { display: grid; align-content: center; }
.explorer__panel { grid-area: 1 / 1; display: grid; gap: 16px; align-content: center; }
.explorer__panel[hidden] { display: grid; visibility: hidden; opacity: 0; }
.explorer__panel.is-active { animation: panel-in .6s var(--ease-out) both; }
.explorer__panel p { color: var(--ink-soft); max-width: 46ch; }
.why { border-top: 1px solid var(--line); padding-top: 14px; font-size: 15px; }
.why b { display: block; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
@keyframes panel-in { from { opacity: 0; filter: blur(6px); transform: translateY(10px); } }
/* Dark stage so the clear, light aligner reads as glass */
.explorer__stage { background: radial-gradient(120% 90% at 25% 40%, #16303A 0%, var(--ink) 62%); color: #fff; }
.explorer__stage .eyebrow { color: rgba(255, 255, 255, .6); }
.explorer__panel p { color: rgba(255, 255, 255, .72); }
.explorer__stage .why { border-top-color: rgba(255, 255, 255, .16); }
.explorer__stage .why b { color: var(--aqua); }
.explorer__glow { background: radial-gradient(closest-side, rgba(124, 196, 190, .32), rgba(124, 196, 190, 0)); }
@media (min-width: 900px) {
  .explorer__stage { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; min-height: 560px; }
}

/* ---------- Included: sticky story ---------- */
.story { padding: 0 var(--gutter); max-width: 1320px; margin: 0 auto; }
.story__media { display: none; }
.story__list { display: grid; gap: 14px; counter-reset: s; }
.story__item { background: var(--paper-2); border-radius: var(--radius); padding: 14px 14px 22px; display: grid; gap: 8px; }
.story__inline { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) - 6px); margin-bottom: 10px; }
.story__num { font-family: var(--mono); font-size: 12px; color: var(--teal); letter-spacing: .1em; padding-inline: 6px; }
.story__item h3 { font-size: 22px; font-weight: 500; letter-spacing: -.01em; line-height: 1.15; padding-inline: 6px; }
.story__item p { color: var(--ink-soft); padding-inline: 6px; }

@media (min-width: 900px) {
  .story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); }
  .story__media { display: block; position: sticky; top: 96px; height: calc(100vh - 128px); max-height: 760px; }
  .story__frame { position: relative; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
  .story__frame img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.06); filter: blur(6px);
    transition: opacity .7s var(--ease-out), transform 1.1s var(--ease-out), filter .7s var(--ease-out);
  }
  .story__frame img.is-active { opacity: 1; transform: none; filter: none; }
  .story__frame img[data-media="4"] { object-fit: contain; background: #EEF0F1; }
  .story__dots { position: absolute; right: 16px; top: 50%; translate: 0 -50%; display: grid; gap: 8px; }
  .story__dots li { width: 6px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .55); transition: height .4s var(--ease-out), background-color .3s; }
  .story__dots li.is-active { height: 26px; background: #fff; }
  .story__list { gap: 0; padding-block: 18vh 30vh; }
  .story__item { background: none; padding: 0; min-height: 52vh; align-content: center; opacity: .28; transition: opacity .5s var(--ease-out); }
  .story__item.is-active { opacity: 1; }
  .story__inline { display: none; }
  .story__item h3 { font-size: clamp(28px, 2.8vw, 44px); padding: 0; }
  .story__item p, .story__num { padding: 0; font-size: 18px; max-width: 40ch; }
  .story__num { font-size: 13px; }
}

/* ---------- Timing ---------- */
.timing { display: grid; justify-items: center; text-align: center; gap: 12px; padding: clamp(100px, 14vw, 200px) var(--gutter); }
.timing__big { font-size: clamp(110px, 26vw, 360px); line-height: .82; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.timing__unit { margin-top: -.2em; }
.timing__copy { max-width: 48ch; color: var(--ink-soft); margin-top: 18px; }

/* ---------- Signature (dark) ---------- */
.signature { background: var(--ink); color: #fff; border-radius: var(--radius) var(--radius) 0 0; }
.signature__inner { max-width: 1320px; margin: 0 auto; padding: clamp(80px, 11vw, 160px) var(--gutter); display: grid; gap: clamp(40px, 6vw, 96px); }
.signature .eyebrow { color: rgba(255, 255, 255, .6); }
.signature__head { display: grid; gap: 22px; align-content: start; }
.signature__top { display: grid; gap: clamp(40px, 6vw, 96px); }
.rows { border-top: 1px solid rgba(255, 255, 255, .14); }
.row { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.row > span { font-family: var(--mono); font-size: 12px; color: var(--aqua); padding-top: 6px; }
.row h3 { font-size: 22px; font-weight: 500; line-height: 1.2; margin-bottom: 6px; }
.row p { color: rgba(255, 255, 255, .66); max-width: 56ch; }
.js [data-row] { opacity: 0; translate: 0 10px; }
.js [data-row].is-in { opacity: 1; translate: 0 0; transition: opacity .5s var(--ease-out) var(--d, 0s), translate .5s var(--ease-out) var(--d, 0s); }
.doctor { display: grid; gap: 28px; }
.doctor__photo { border-radius: var(--radius); overflow: hidden; }
.doctor__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.doctor__copy { display: grid; gap: 16px; align-content: start; }
.doctor__copy > p:not(.eyebrow):not(.fine) { color: rgba(255, 255, 255, .75); max-width: 48ch; }
.quotes { display: grid; gap: 0; margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); }
.quotes li { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.quotes blockquote { font-size: 19px; line-height: 1.4; }
.quotes cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.signature .fine { color: rgba(255, 255, 255, .45); }
@media (min-width: 900px) {
  .signature__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .signature__head { position: sticky; top: 120px; }
  .doctor { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: end; }
}

/* ---------- Process rail ---------- */
.process { background: var(--ink); color: #fff; padding: 0 0 clamp(80px, 10vw, 140px); }
.process .eyebrow { color: rgba(255, 255, 255, .6); }
.process__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 0 var(--gutter) 32px; max-width: 1320px; margin: 0 auto; }
.process__head > div { display: grid; gap: 18px; }
.process__nav { display: flex; gap: 8px; }
.process .process__nav--head { display: none; }
.process__nav--foot { justify-content: space-between; margin: 20px var(--gutter) 0; }
.round { width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); font-size: 18px; transition: background-color .2s; }
.round:hover { background: rgba(255, 255, 255, .1); }
@media (min-width: 900px) { .process .process__nav--head { display: flex; } .process__nav--foot { display: none; } }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 380px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 0 var(--gutter) 8px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.card {
  scroll-snap-align: start; position: relative;
  min-height: 440px; border-radius: var(--radius); padding: 24px;
  background: var(--ink-2); display: grid; align-content: end; gap: 12px;
  transition: transform .4s var(--ease-out);
}
.card:hover { transform: translateY(-4px); }
.card__num { position: absolute; top: 20px; left: 24px; font-family: var(--mono); font-size: 12px; color: var(--aqua); }
.card h3 { font-size: 26px; font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }
.card p { color: rgba(255, 255, 255, .66); }
.card--video { padding: 0; overflow: hidden; }
.card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__over { position: relative; padding: 24px; display: grid; gap: 10px; background: linear-gradient(180deg, transparent, rgba(11, 22, 32, .8)); }
.tag { justify-self: start; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rail__bar { height: 2px; margin: 24px var(--gutter) 0; background: rgba(255, 255, 255, .14); max-width: 1320px; }
.rail__bar i { display: block; height: 100%; width: 20%; background: var(--aqua); transform-origin: left; }

/* ---------- Step art (procedural line drawings, steps-art.js) ---------- */
/* The drawing is its own row above the text, so long copy never runs into it */
.card--art { grid-template-rows: minmax(150px, 1fr) auto auto; align-content: stretch; padding-top: 44px; }
.card__art { position: relative; min-height: 150px; margin: 0 -10px 8px; pointer-events: none; }
.card__art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.card__art:not(.is-live) * { animation-play-state: paused !important; }
.art-line { fill: none; stroke: rgba(255, 255, 255, .86); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.art-guide { stroke: rgba(255, 255, 255, .26); stroke-dasharray: 2 6; }
.art-dim { stroke: rgba(255, 255, 255, .34); }
.art-accent { stroke: var(--aqua); }
.art-label { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; fill: rgba(255, 255, 255, .45); }
/* Draw-on: every path with pathLength=1 traces itself once */
.art-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: art-draw 1.3s var(--ease-out) var(--d, 0s) forwards; }
.art-guide.art-draw { stroke-dasharray: 1; }
@keyframes art-draw { to { stroke-dashoffset: 0; } }
.art-tick { opacity: 0; animation: art-fade .4s ease var(--d, 0s) forwards; }
@keyframes art-fade { to { opacity: 1; } }

/* 01 scan */
.scan-fill { fill: var(--aqua); opacity: 0; animation: scan-fill 5s ease-out var(--sd) infinite; }
@keyframes scan-fill { 0% { opacity: 0; } 4% { opacity: .55; } 30% { opacity: .16; } 70% { opacity: .16; } 85%, 100% { opacity: 0; } }
.scan-beam { opacity: 0; animation: scan-beam 5s var(--ease-io) 1.4s infinite; }
@keyframes scan-beam { 0% { transform: translateX(20px); opacity: 0; } 5% { opacity: 1; } 36% { transform: translateX(300px); opacity: 1; } 42%, 100% { transform: translateX(300px); opacity: 0; } }

/* 02 plan */
.plan-dot { fill: rgba(255, 255, 255, .5); }
.plan-runner { fill: var(--aqua); animation: plan-run 6s var(--ease-io) 1s infinite; }
@keyframes plan-run { 0%, 12% { transform: translateX(0); } 40%, 52% { transform: translateX(98px); } 80%, 100% { transform: translateX(196px); } }
.plan-hi { opacity: 0; animation: plan-hi 6s ease 1s infinite; }
.plan-hi-1 { animation-name: plan-hi-1; }
.plan-hi-2 { animation-name: plan-hi-2; }
@keyframes plan-hi { 0%, 14% { opacity: 1; } 24%, 100% { opacity: 0; } }
@keyframes plan-hi-1 { 0%, 38% { opacity: 0; } 44%, 54% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes plan-hi-2 { 0%, 78% { opacity: 0; } 84%, 96% { opacity: 1; } 100% { opacity: 0; } }

/* 03 aligners */
.tray path { fill: rgba(124, 196, 190, .14); stroke: var(--aqua); stroke-width: 1.4; }
.tray { opacity: 0; animation: tray 5s cubic-bezier(.34, 1.36, .64, 1) 1.2s infinite; }
@keyframes tray { 0% { opacity: 0; transform: translateY(-58px); } 12% { opacity: 1; } 40% { transform: translateY(0); } 80% { opacity: 1; transform: translateY(0); } 94%, 100% { opacity: 0; transform: translateY(0); } }
.click-ring { fill: none; stroke: var(--aqua); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: click 5s ease-out 1.2s infinite; }
@keyframes click { 0%, 36% { opacity: 0; transform: scale(.4); } 40% { opacity: .9; } 60%, 100% { opacity: 0; transform: scale(3.2); } }

/* 04 wear */
.wear-arc { fill: none; stroke: var(--aqua); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: wear-arc 7s var(--ease-out) .8s infinite; }
@keyframes wear-arc { 0% { stroke-dashoffset: 1; opacity: 1; } 45%, 86% { stroke-dashoffset: .0833; opacity: 1; } 96%, 100% { stroke-dashoffset: .0833; opacity: 0; } }
.wear-orbit { animation: wear-orbit 7s var(--ease-out) .8s infinite; }
@keyframes wear-orbit { 0% { transform: rotate(0); opacity: 1; } 45%, 86% { transform: rotate(330deg); opacity: 1; } 96%, 100% { transform: rotate(330deg); opacity: 0; } }
.wear-tip { fill: #fff; filter: drop-shadow(0 0 6px rgba(124, 196, 190, .9)); }
.wear-num { font-family: var(--font); font-stretch: 125%; font-weight: 700; font-size: 20px; fill: #fff; opacity: 0; animation: wear-num 7s ease .8s infinite; }
@keyframes wear-num { 0%, 38% { opacity: 0; } 48%, 86% { opacity: 1; } 96%, 100% { opacity: 0; } }

/* 05 refine */
.refine-tooth { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(var(--s)); animation: refine 6s var(--ease-io) 1.4s infinite; }
@keyframes refine { 0%, 10% { transform: scaleY(var(--s)); } 42%, 82% { transform: scaleY(1); } 100% { transform: scaleY(var(--s)); } }
.refine-level { stroke-dasharray: 3 5; opacity: 0; animation: refine-level 6s ease 1.4s infinite; }
@keyframes refine-level { 0%, 20% { opacity: 0; } 42%, 80% { opacity: .9; } 100% { opacity: 0; } }
.sparkle { fill: #fff; transform-box: fill-box; transform-origin: center; opacity: 0; animation: sparkle 6s ease 1.4s infinite; }
@keyframes sparkle { 0%, 40% { opacity: 0; transform: scale(.2) rotate(0); } 48% { opacity: 1; transform: scale(1.1) rotate(45deg); } 60%, 100% { opacity: 0; transform: scale(.6) rotate(90deg); } }

/* 06 protect */
.retainer { stroke-width: 2.2; }
.shield { stroke-dasharray: 1; stroke-dashoffset: 1; animation: shield 6s var(--ease-out) 1.8s infinite; }
@keyframes shield { 0% { stroke-dashoffset: 1; opacity: 1; } 30%, 82% { stroke-dashoffset: 0; opacity: 1; } 50% { filter: drop-shadow(0 0 8px rgba(124, 196, 190, .9)); } 94%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.shield { fill: rgba(124, 196, 190, .1); }
.shield-check { stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: shield-check 6s var(--ease-out) 1.8s infinite; }
@keyframes shield-check { 0%, 28% { stroke-dashoffset: 1; opacity: 1; } 40%, 82% { stroke-dashoffset: 0; opacity: 1; } 94%, 100% { stroke-dashoffset: 0; opacity: 0; } }

/* Reduced motion: finished drawings, no loops */
.card__art.is-done * { animation: none !important; }
.card__art.is-done .art-draw, .card__art.is-done .wear-arc, .card__art.is-done .shield, .card__art.is-done .shield-check { stroke-dashoffset: 0; }
.card__art.is-done .art-tick, .card__art.is-done .wear-num, .card__art.is-done .tray, .card__art.is-done .refine-level { opacity: 1; }
.card__art.is-done .wear-arc { stroke-dashoffset: .0833; }
.card__art.is-done .refine-tooth { transform: none; }

/* ---------- Cost ---------- */
.cost { padding-bottom: clamp(60px, 8vw, 120px); }
.cost__grid { display: grid; gap: 14px; padding: 0 var(--gutter); max-width: 1320px; margin: 0 auto; }
.price { background: var(--paper-2); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; }
.price p:not(.eyebrow):not(.price__big) { color: var(--ink-soft); }
.price__big { font-size: clamp(36px, 4.2vw, 60px); overflow-wrap: anywhere; }
.price__big.display--sm { font-size: clamp(22px, 2vw, 30px); line-height: 1.05; }
.price .link { justify-self: start; margin-top: 6px; }
.cost__fine { margin: 24px auto 0; padding: 0 var(--gutter); max-width: 1320px; }
@media (min-width: 900px) { .cost__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); } .price { min-height: 320px; } .price:first-child { background: var(--ink); color: #fff; } .price:first-child .eyebrow, .price:first-child p:not(.price__big) { color: rgba(255, 255, 255, .7) !important; } }

/* ---------- FAQ ---------- */
.faq { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 10vw, 160px); display: grid; gap: 0; }
.faq .section-head { padding-inline: 0; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 22px; transition: transform .35s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; color: var(--ink-soft); max-width: 70ch; }
.faq details[open] > div { animation: panel-in .45s var(--ease-out) both; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 96px); align-items: start; } .faq .section-head { position: sticky; top: 120px; padding-top: 0; } .faq__list { margin-top: 0; } .faq { padding-top: clamp(40px, 6vw, 100px); } }

/* ---------- Final ---------- */
.final {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; justify-items: center; text-align: center; gap: 22px;
  padding: clamp(110px, 16vw, 240px) var(--gutter) clamp(90px, 12vw, 180px);
  background: var(--paper);
}
.final__glow {
  position: absolute; z-index: -1; width: min(90vw, 900px); aspect-ratio: 1; left: 50%; top: 50%;
  translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 196, 190, .7), rgba(163, 218, 212, .35) 45%, rgba(250, 248, 244, 0));
  filter: blur(40px); animation: glow 10s ease-in-out infinite alternate;
}
@keyframes glow { 0% { transform: scale(.9) translate(-4%, 3%); } 100% { transform: scale(1.1) translate(5%, -4%); } }
.final__type { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); min-height: 1.4em; }
.caret { display: inline-block; width: .6em; height: 1em; margin-left: 4px; vertical-align: -2px; background: var(--teal); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.final__title { font-size: clamp(44px, 9vw, 150px); line-height: .9; }
.final__lead { max-width: 46ch; color: var(--ink-soft); }
.final__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.final__note { text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding: 56px var(--gutter) calc(96px + env(safe-area-inset-bottom)); display: grid; gap: 22px; font-size: 14px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: start; }
.footer__logo { width: 168px; }
.footer__contact { display: grid; gap: 10px; text-align: right; }
.footer__contact a, .footer__links a { text-decoration: none; }
.footer__contact a:hover, .footer__links a:hover { color: #fff; }
.footer__id { color: #fff; }
.footer__legal, .footer__links { font-size: 12px; color: rgba(255, 255, 255, .5); }
@media (min-width: 900px) { .footer { padding-bottom: 56px; } }

/* ---------- Mobile booking dock ---------- */
.dock {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; justify-content: center; align-items: center; min-height: 54px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 12px 40px rgba(11, 22, 32, .28);
  transform: translateY(140%); transition: transform .5s var(--ease-out);
}
.dock.is-shown { transform: none; }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .line > span, [data-rise], .js [data-reveal], .js [data-row] { opacity: 1 !important; filter: none !important; transform: none !important; translate: none !important; }
  .ticker__track { animation: none; }
}
