/* ===========================================================
   LUMÉRA DENTAL STUDIO — "Luminous Clinical"
   Tokens · Type · Motion · Sections
   =========================================================== */

:root {
  /* Palette */
  --ink: #0B1D2A;
  --porcelain: #F7FAFB;
  --aqua: #36C5D9;
  --mint: #7FF0C8;
  --teal: #0E5E6F;
  --halo: #FFFFFF;

  --ink-70: rgba(11, 29, 42, 0.70);
  --ink-50: rgba(11, 29, 42, 0.50);
  --ink-30: rgba(11, 29, 42, 0.30);
  --ink-12: rgba(11, 29, 42, 0.12);
  --ink-06: rgba(11, 29, 42, 0.06);

  /* Signature gradient — used in EXACTLY three places */
  --grad: linear-gradient(120deg, #36C5D9 0%, #7FF0C8 100%);

  /* Type */
  --display: "Fraunces", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --util: "Space Grotesk", monospace;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 600ms;

  /* Layout */
  --pad: clamp(20px, 5vw, 88px);
  --maxw: 1440px;
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* Lenis manages scroll; keep native smooth off to avoid conflicts */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--body);
  background: var(--porcelain);
  color: var(--ink);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.62;
  font-weight: 400;
  overflow-x: hidden;
}

::selection { background: var(--aqua); color: var(--ink); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

/* ---------- Typography primitives ---------- */
.eyebrow {
  font-family: var(--util);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.idx {
  font-family: var(--util);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--ink-50);
}
.display {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Gradient text used sparingly (period / accent) */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.5em;
  border-radius: 100px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 240ms var(--ease), box-shadow 280ms var(--ease), background-color 240ms var(--ease), color 240ms var(--ease);
  will-change: transform;
}
.btn:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }

/* Primary = one of the three signature-gradient slots */
.btn--grad {
  background: var(--grad);
  color: var(--ink);
  box-shadow: 0 8px 30px -10px rgba(54, 197, 217, 0.7);
}
.btn--grad:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(54, 197, 217, 0.85); }
.btn--grad .arr { transition: transform 280ms var(--ease); }
.btn--grad:hover .arr { transform: translateX(4px); }

.btn--ghost {
  border: 1px solid var(--ink-12);
  color: var(--ink);
  background: rgba(255,255,255,0.5);
}
.btn--ghost:hover { border-color: var(--ink-30); transform: translateY(-2px); }

.btn--ink { background: var(--ink); color: var(--porcelain); }
.btn--ink:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -16px rgba(11,29,42,0.6); }

/* ---------- Shell ---------- */
.shell { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

section { position: relative; }

.sec-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 720px;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color 400ms var(--ease), box-shadow 400ms var(--ease), backdrop-filter 400ms var(--ease);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav.is-scrolled {
  background: rgba(247, 250, 251, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--ink-06), 0 12px 40px -28px rgba(11,29,42,0.5);
}

/* Wordmark */
.logo {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: flex-end;
  line-height: 1;
}
.logo .e-wrap { position: relative; display: inline-block; }
.logo .dot {
  position: absolute;
  top: -0.06em; left: 50%;
  transform: translateX(-50%);
  width: 0.16em; height: 0.16em;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px 1px rgba(127, 240, 200, 0.8);
}

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-70);
  transition: color 240ms var(--ease);
  padding: 4px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 100%;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }

.nav__cta { display: flex; align-items: center; gap: 1.2rem; }
.nav__burger { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
/* Ambient operatory-light glow */
.hero__glow {
  position: absolute;
  width: 130vmax; height: 130vmax;
  left: 50%; top: 38%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(54,197,217,0.16) 0%, rgba(127,240,200,0.10) 28%, rgba(54,197,217,0) 62%);
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}
.hero__glow--breathe { animation: breathe 9s var(--ease) infinite; }
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  50% { transform: translate(-50%, -50%) scale(1.16); opacity: 1; }
}

.hero__grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: 1.62fr 0.9fr;
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
}

.hero__eyebrow { margin-bottom: clamp(20px, 3vw, 34px); }

.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(2.6rem, 6vw, 7rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero__title .line { display: block; }
.hero__title .line > span { display: inline-block; white-space: nowrap; will-change: transform; }

.hero__sub {
  margin-top: clamp(22px, 3vw, 34px);
  max-width: 33ch;
  font-size: clamp(1.02rem, 1.3vw, 1.22rem);
  color: var(--ink-70);
}
.hero__actions {
  margin-top: clamp(26px, 3.4vw, 40px);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Glass card */
.hero__card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 3 / 4.1;
  background: linear-gradient(150deg, rgba(54,197,217,0.18), rgba(127,240,200,0.12));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 40px 90px -40px rgba(14,94,111,0.55), inset 0 1px 0 rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: kenburns 14s var(--ease) infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.04); }
  to { transform: scale(1.12); }
}
.hero__card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,29,42,0.5) 0%, rgba(11,29,42,0) 42%);
}

/* progress ring + booking button inside card */
.hero__cardcta {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.ring { position: relative; width: 46px; height: 46px; flex: none; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring .track { stroke: rgba(255,255,255,0.3); }
.ring .prog { stroke: url(#ringgrad); stroke-linecap: round; stroke-dasharray: 126; stroke-dashoffset: 35; }
.hero__cardcta .label { color: #fff; line-height: 1.2; }
.hero__cardcta .label b { display: block; font-weight: 600; font-size: 0.98rem; }
.hero__cardcta .label span { font-size: 0.78rem; opacity: 0.85; }
.hero__cardcta .go {
  margin-left: auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
  color: var(--ink);
  transition: transform 260ms var(--ease);
}
.hero__cardcta:hover .go { transform: translateX(3px); }

/* floating slots pill */
.hero__pill {
  position: absolute;
  z-index: 4;
  left: -14px; top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 11px 13px;
  border-radius: 100px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 20px 50px -22px rgba(14,94,111,0.6);
  backdrop-filter: blur(10px);
  font-size: 0.86rem;
  font-weight: 500;
  will-change: transform;
  animation: bob 4.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.hero__pill .dotlive {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 0 rgba(127,240,200,0.7);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(127,240,200,0.6); }
  70% { box-shadow: 0 0 0 9px rgba(127,240,200,0); }
  100% { box-shadow: 0 0 0 0 rgba(127,240,200,0); }
}

/* scroll cue */
.hero__cue {
  position: absolute;
  left: var(--pad); bottom: 26px;
  z-index: 3;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--util);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.hero__cue .track {
  position: relative;
  width: 1px; height: 56px;
  background: var(--ink-12);
  overflow: hidden;
}
.hero__cue .track::after {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 40%;
  background: var(--grad);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* =========================================================
   TRUST MARQUEE
   ========================================================= */
.trust {
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--ink-06);
  border-bottom: 1px solid var(--ink-06);
  position: relative;
}
.trust__label {
  text-align: center;
  margin-bottom: clamp(18px, 2.4vw, 26px);
}
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 86px);
  width: max-content;
  will-change: transform;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.8vw, 1.7rem);
  color: var(--ink-50);
  white-space: nowrap;
  transition: color 300ms var(--ease);
}
.marquee:hover .marquee__item { color: var(--ink-70); }
.marquee__item svg { color: var(--teal); opacity: 0.8; }
.marquee__star { font-size: 0.9em; }

/* =========================================================
   SERVICES — THE STUDIO MENU
   ========================================================= */
.studio { padding: clamp(80px, 11vw, 160px) 0; }
.studio__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.studio__top h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.menu { border-top: 1px solid var(--ink-12); }
.menu__row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(22px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--ink-12);
  cursor: pointer;
  transition: opacity 400ms var(--ease);
}
.menu__row .num {
  font-family: var(--util);
  font-size: 0.78rem;
  color: var(--ink-50);
  letter-spacing: 0.1em;
  align-self: start;
  padding-top: 0.5em;
}
.menu__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5.6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  transition: transform 500ms var(--ease), color 400ms var(--ease);
}
.menu__row .desc {
  margin-top: 0.4em;
  font-size: 0.98rem;
  color: var(--ink-70);
  max-width: 42ch;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 520ms var(--ease), opacity 360ms var(--ease), margin 420ms var(--ease);
}
.menu__meta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  justify-self: end;
}
.menu__price {
  font-family: var(--util);
  font-size: 0.92rem;
  color: var(--ink-70);
  white-space: nowrap;
}
.menu__arrow {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid var(--ink-12);
  display: grid; place-items: center;
  flex: none;
  transition: transform 460ms var(--ease), background-color 360ms var(--ease), color 360ms var(--ease), border-color 360ms var(--ease);
}

/* image that slides in from right */
.menu__img {
  position: absolute;
  right: clamp(80px, 12vw, 200px);
  top: 50%;
  width: clamp(180px, 22vw, 300px);
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  transform: translate(40px, -50%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 40px 80px -36px rgba(14,94,111,0.6);
  transition: transform 560ms var(--ease), opacity 460ms var(--ease);
}
.menu__img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(125deg, rgba(54,197,217,0.32), rgba(127,240,200,0.12));
  mix-blend-mode: screen;
}
.menu__img img { width: 100%; height: 100%; object-fit: cover; }

/* hover state driven by JS adding .is-dim / .is-active */
.menu.is-hovering .menu__row { opacity: 0.3; }
.menu.is-hovering .menu__row.is-active { opacity: 1; }
.menu__row.is-active .menu__name { transform: translateX(clamp(8px, 1.4vw, 22px)); }
.menu__row.is-active .menu__name { color: var(--teal); }
.menu__row.is-active .desc { max-height: 80px; opacity: 1; margin-top: 0.7em; }
.menu__row.is-active .menu__img { transform: translate(0, -50%) scale(1); opacity: 1; }
.menu__row.is-active .menu__arrow {
  background: var(--grad);
  border-color: transparent;
  color: var(--ink);
  transform: rotate(-45deg);
}

/* =========================================================
   THE VISIT — horizontal scroll-jacked
   ========================================================= */
.visit { background: var(--ink); color: var(--porcelain); position: relative; }
.visit__pin {
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.visit__head {
  position: absolute;
  top: clamp(40px, 7vh, 84px);
  left: var(--pad);
  z-index: 4;
}
.visit__head .eyebrow { color: var(--mint); }
.visit__head .eyebrow::before { background: var(--mint); }
.visit__head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.025em;
  margin-top: 0.7rem;
  color: var(--porcelain);
}
.visit__progress {
  position: absolute;
  bottom: clamp(34px, 6vh, 64px);
  left: var(--pad); right: var(--pad);
  height: 2px;
  background: rgba(255,255,255,0.12);
  z-index: 4;
  border-radius: 2px;
}
.visit__progress i {
  position: absolute; left: 0; top: 0; height: 100%;
  width: 100%;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
}

.visit__track {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 120px);
  padding-inline: var(--pad);
  width: max-content;
  height: 60svh;
  position: relative;
}
/* connecting path + traveling dot live in an SVG overlay */
.visit__path {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}
.visit__dot {
  filter: drop-shadow(0 0 12px rgba(127,240,200,0.9));
}

.frame {
  position: relative;
  z-index: 2;
  width: clamp(340px, 40vw, 560px);
  flex: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.frame__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: linear-gradient(150deg, rgba(54,197,217,0.2), rgba(14,94,111,0.4));
  box-shadow: 0 50px 90px -50px rgba(0,0,0,0.8);
}
.frame__media img { width: 100%; height: 100%; object-fit: cover; }
.frame__step {
  position: absolute; top: 14px; left: 14px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(11,29,42,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  font-family: var(--util);
  font-size: 0.9rem;
  color: var(--mint);
}
.frame__body h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  letter-spacing: -0.02em;
}
.frame__body p { color: rgba(247,250,251,0.66); margin-top: 0.5rem; max-width: 40ch; }
.frame__lead {
  width: clamp(280px, 26vw, 380px);
  flex: none;
  z-index: 2;
}
.frame__lead .eyebrow { color: var(--mint); }
.frame__lead .eyebrow::before { background: var(--mint); }

/* =========================================================
   BEFORE / AFTER
   ========================================================= */
.ba { padding: clamp(80px, 11vw, 160px) 0; }
.ba__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.ba__copy h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 1rem 0 1.2rem;
}
.ba__copy p { color: var(--ink-70); max-width: 40ch; }
.ba__legend {
  display: flex; gap: 1.6rem; margin-top: 1.8rem;
  font-family: var(--util); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-50);
}
.ba__legend span { display: inline-flex; align-items: center; gap: 0.5em; }
.ba__legend i { width: 8px; height: 8px; border-radius: 50%; }

.compare {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  user-select: none;
  touch-action: pan-y;
  box-shadow: 0 50px 100px -50px rgba(14,94,111,0.6);
  will-change: transform;
  transform-style: preserve-3d;
  cursor: ew-resize;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.compare__img img { width: 100%; height: 100%; object-fit: cover; }
.compare__after { clip-path: inset(0 0 0 50%); }
.compare__before img { filter: saturate(0.82) brightness(0.95) sepia(0.12) contrast(0.97); }
.compare__tag {
  position: absolute; bottom: 14px;
  font-family: var(--util); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 100px;
  background: rgba(11,29,42,0.55); color: #fff; backdrop-filter: blur(6px);
}
.compare__tag--before { left: 14px; }
.compare__tag--after { right: 14px; }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: var(--grad);
  transform: translateX(-50%);
  z-index: 3;
}
.compare__knob {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
  color: var(--ink);
  box-shadow: 0 10px 30px -8px rgba(14,94,111,0.7);
  z-index: 4;
}

/* =========================================================
   DOCTORS
   ========================================================= */
.docs { padding: clamp(80px, 11vw, 160px) 0; }
.docs__top { margin-bottom: clamp(36px, 5vw, 58px); }
.docs__top h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  letter-spacing: -0.025em;
  margin-top: 1rem;
}
.docs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 28px);
}
.doc { position: relative; }
.doc__media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--teal);
}
.doc__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) sepia(0.4) hue-rotate(140deg) saturate(1.4) brightness(0.92);
  transform: scale(1.02);
  transition: filter 600ms var(--ease), transform 800ms var(--ease);
}
.doc:hover .doc__media img { filter: none; transform: scale(1.05); }
.doc__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,29,42,0.55), rgba(11,29,42,0) 50%);
}
.doc__name {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  z-index: 2; color: #fff;
  overflow: hidden;
}
.doc__name .nm {
  display: block;
  font-family: var(--display); font-size: 1.4rem; letter-spacing: -0.01em;
  transform: translateY(110%);
  transition: transform 560ms var(--ease);
}
.doc:hover .doc__name .nm { transform: translateY(0); }
.doc__role {
  display: block;
  font-family: var(--util); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mint); margin-top: 4px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 460ms var(--ease) 80ms, transform 460ms var(--ease) 80ms;
}
.doc:hover .doc__role { opacity: 1; transform: translateY(0); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.quotes {
  padding: clamp(90px, 13vw, 180px) 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(54,197,217,0.08), transparent 60%),
    var(--porcelain);
  text-align: center;
}
.quotes__stage {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 38vh;
  display: grid;
  place-items: center;
}
.quote {
  grid-area: 1 / 1;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(30px);
  pointer-events: none;
  will-change: transform, opacity, filter;
}
html.motion .quote { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); }
.quote.is-active { opacity: 1; filter: blur(0); transform: translateY(0); pointer-events: auto; }
.quote.is-leaving { opacity: 0; filter: blur(8px); transform: translateY(-28px); }
.quote blockquote {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.quote .who {
  margin-top: clamp(22px, 3vw, 36px);
  font-family: var(--util); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal);
}
.quotes__count {
  margin-top: clamp(30px, 4vw, 48px);
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--util); font-size: 0.82rem; color: var(--ink-50); letter-spacing: 0.08em;
}
.quotes__count b { color: var(--ink); }
.quotes__bar { width: 64px; height: 2px; background: var(--ink-12); position: relative; border-radius: 2px; overflow: hidden; }
.quotes__bar i { position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.quotes.is-playing .quotes__bar i { animation: lum-bar 5.2s linear infinite; }
@keyframes lum-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* =========================================================
   PRICING
   ========================================================= */
.pricing {
  background: var(--teal);
  color: var(--porcelain);
  padding: clamp(80px, 11vw, 160px) 0;
  position: relative;
  overflow: hidden;
}
.pricing__glow {
  position: absolute; width: 90vmax; height: 90vmax;
  right: -20vmax; top: -30vmax;
  background: radial-gradient(circle, rgba(127,240,200,0.16), transparent 60%);
  pointer-events: none;
}
.pricing__top { text-align: center; margin-bottom: clamp(44px, 6vw, 72px); position: relative; z-index: 2; }
.pricing__top .eyebrow { color: var(--mint); }
.pricing__top .eyebrow::before { background: var(--mint); }
.pricing__top h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  letter-spacing: -0.025em;
  margin-top: 1rem;
  color: var(--porcelain);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
  position: relative;
  z-index: 2;
  align-items: stretch;
}
.plan {
  position: relative;
  border-radius: 22px;
  padding: clamp(26px, 3vw, 38px);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  transition: transform 400ms var(--ease), background-color 400ms var(--ease);
}
.plan:hover { transform: translateY(-6px); background: rgba(255,255,255,0.1); }
.plan__name { font-family: var(--util); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mint); }
.plan__price { font-family: var(--display); font-size: clamp(2.4rem, 4vw, 3.2rem); margin: 0.6rem 0 0.2rem; letter-spacing: -0.02em; }
.plan__price span { font-family: var(--body); font-size: 0.9rem; color: rgba(247,250,251,0.6); letter-spacing: 0; }
.plan__desc { color: rgba(247,250,251,0.66); font-size: 0.95rem; padding-bottom: 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.plan__feats { list-style: none; margin: 1.4rem 0 1.8rem; display: flex; flex-direction: column; gap: 0.85rem; flex: 1; }
.plan__feats li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.94rem; color: rgba(247,250,251,0.85); }
.plan__feats svg { color: var(--mint); flex: none; margin-top: 3px; }
.plan .btn { width: 100%; justify-content: center; }

/* recommended — rotating conic-gradient border */
.plan--rec { background: rgba(255,255,255,0.1); }
.plan--rec::before {
  content: "";
  position: absolute; inset: -1.5px;
  border-radius: 23px;
  background: conic-gradient(from var(--ang, 0deg), var(--aqua), var(--mint), transparent 55%, var(--aqua));
  z-index: -1;
  animation: spin 6s linear infinite;
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
.plan__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-family: var(--util); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
  background: var(--grad); color: var(--ink); font-weight: 600;
}

/* =========================================================
   BOOKING CTA
   ========================================================= */
.cta {
  background: var(--teal);
  color: var(--porcelain);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(110px, 18vw, 220px) 0;
}
.cta__glow {
  position: absolute; width: 120vmax; height: 120vmax;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(54,197,217,0.22), rgba(127,240,200,0.1) 30%, transparent 60%);
  pointer-events: none;
  will-change: transform, opacity;
}
.cta__inner { position: relative; z-index: 2; }
.cta h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--porcelain);
  text-wrap: balance;
}
.cta .btn { margin-top: clamp(34px, 4vw, 50px); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: var(--porcelain); padding-top: clamp(70px, 9vw, 120px); overflow: hidden; }
.footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: clamp(50px, 7vw, 90px);
}
.footer__brand .logo { font-size: 1.8rem; color: var(--porcelain); }
.footer__brand p { margin-top: 1.2rem; color: rgba(247,250,251,0.6); max-width: 30ch; font-size: 0.96rem; }
.footer__brand .socials { display: flex; gap: 12px; margin-top: 1.6rem; }
.footer__brand .socials a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  display: grid; place-items: center; color: rgba(247,250,251,0.8);
  transition: background-color 280ms var(--ease), color 280ms var(--ease), transform 280ms var(--ease);
}
.footer__brand .socials a:hover { background: var(--grad); color: var(--ink); transform: translateY(-3px); border-color: transparent; }
.footer__col h4 { font-family: var(--util); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mint); margin-bottom: 1.2rem; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer__col a { color: rgba(247,250,251,0.7); font-size: 0.95rem; position: relative; transition: color 240ms var(--ease); }
.footer__col a:hover { color: var(--porcelain); }
.footer__col address { font-style: normal; color: rgba(247,250,251,0.7); font-size: 0.95rem; line-height: 1.8; }

/* giant wordmark that fills with gradient on scroll */
.footer__word .wm-fill { clip-path: inset(0 0 0 0); }
.footer__word {
  position: relative;
  line-height: 0.8;
  padding: clamp(10px, 1.5vw, 24px) 0 clamp(6px, 1vw, 14px);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer__word svg { display: block; width: 100%; height: auto; }
.footer__word text {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.footer__legal {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: clamp(22px, 3vw, 34px) 0 clamp(30px, 4vw, 44px);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem; color: rgba(247,250,251,0.5);
}
.footer__legal .e-wrap .dot { box-shadow: none; }

/* =========================================================
   MOTION LAYER — end-state is the default; .motion adds entrances
   (robust: content is visible without JS / when rAF is throttled)
   ========================================================= */
@keyframes lum-rise { from { transform: translateY(118%); } to { transform: translateY(0); } }
@keyframes lum-fadeup { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes lum-ring { from { stroke-dashoffset: 126; } to { stroke-dashoffset: 35; } }

/* Hero orchestrated load */
html.motion .hero__eyebrow { opacity: 0; animation: lum-fadeup 0.7s var(--ease) 0.15s forwards; }
html.motion .hero__title .line { overflow: hidden; }
html.motion .hero__title .line > span { transform: translateY(118%); animation: lum-rise 1s var(--ease) forwards; }
html.motion .hero__title .line:nth-child(1) > span { animation-delay: 0.2s; }
html.motion .hero__title .line:nth-child(2) > span { animation-delay: 0.28s; }
html.motion .hero__title .line:nth-child(3) > span { animation-delay: 0.36s; }
html.motion .hero__sub { opacity: 0; animation: lum-fadeup 0.7s var(--ease) 0.7s forwards; }
html.motion .hero__actions { opacity: 0; animation: lum-fadeup 0.7s var(--ease) 0.82s forwards; }
html.motion .hero__card { opacity: 0; animation: lum-fadeup 0.9s var(--ease) 0.5s forwards; }
html.motion .ring .prog { animation: lum-ring 1.6s var(--ease) 0.9s forwards; }

/* Scroll reveals — toggled by IntersectionObserver adding .in */
html.motion [data-reveal] { opacity: 0; transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
html.motion [data-reveal="rise"] { transform: translateY(42px); }
html.motion [data-reveal="wipe"] { transform: translateX(-32px); }
html.motion [data-reveal="stagger"] { opacity: 1; }
html.motion [data-reveal="stagger"] > * { opacity: 0; transform: translateY(38px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.motion [data-reveal="stagger"] > *:nth-child(2) { transition-delay: 0.09s; }
html.motion [data-reveal="stagger"] > *:nth-child(3) { transition-delay: 0.18s; }
html.motion [data-reveal="stagger"] > *:nth-child(4) { transition-delay: 0.27s; }
html.motion [data-reveal].in,
html.motion [data-reveal].in > * { opacity: 1; transform: none; }

/* Footer wordmark gradient fill */
html.motion .footer__word .wm-fill { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--ease); }
html.motion .footer__word.in .wm-fill { clip-path: inset(0 0% 0 0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__card { max-width: 420px; justify-self: start; aspect-ratio: 16/12; }
  .hero__pill { left: auto; right: 20px; }
  .docs__grid { grid-template-columns: repeat(3, 1fr); }
  .ba__grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan--rec { order: -1; }
}

@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .nav__links { display: none; }
  .nav__cta .btn--ghost { display: none; }
  .nav__burger {
    display: grid; place-items: center; width: 44px; height: 44px;
    border-radius: 50%; border: 1px solid var(--ink-12);
  }
  .hero { padding-top: calc(var(--nav-h) + 10px); }
  .hero__card { display: none; }
  .hero__cue { display: none; }
  .studio__top { flex-direction: column; align-items: flex-start; }
  .menu__row { grid-template-columns: 1fr; gap: 8px; }
  .menu__meta { justify-self: start; }
  .menu__img { display: none; }
  .menu__row.is-active .menu__name { transform: none; }
  .docs__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  /* The Visit becomes a vertical step list */
  .visit__pin { height: auto; display: block; }
  .visit__head { position: static; padding: clamp(60px,12vw,90px) var(--pad) 0; }
  .visit__track {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: auto;
    gap: 40px;
    padding: 40px var(--pad) 70px;
  }
  .frame { width: 100%; }
  .frame__lead { width: 100%; }
  .visit__path { display: none; }
  .visit__progress { display: none; }
}

@media (max-width: 460px) {
  .docs__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1; justify-content: center; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__glow--breathe, .hero__card img, .hero__pill, .hero__cue .track::after,
  .plan--rec::before, .hero__pill .dotlive { animation: none !important; }
  .reveal { opacity: 1 !important; }
}
