/* =========================================================
   LUMEN DENTAL STUDIO - stylesheet
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
input, button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

/* ---------- Design tokens ---------- */
:root {
  --bg:            #F8F4EC;
  --bg-alt:        #EFE7D8;
  --bg-deep:       #E7DCC7;
  --ink:           #1B1812;
  --ink-soft:      #57503F;
  --ink-faint:     #8A8271;
  --line:          rgba(27, 24, 18, 0.11);
  --line-strong:   rgba(27, 24, 18, 0.2);

  --sage:          #6E7F5C;
  --sage-dark:     #4E5C40;
  --sage-tint:     #DCE2CE;
  --champagne:     #C9A876;

  --white:         #FFFDF8;

  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --radius-sm: 4px;
  --radius-md: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
html, body { background: var(--bg); }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: 12px 18px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  margin-bottom: 18px;
}

.section-lede {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 46ch;
}

.section-head { max-width: 760px; margin-bottom: 56px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--sage-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(27,24,18,0.04); }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-media { transform: translateY(28px) scale(0.97); }
.reveal-media.in-view { transform: none; }

/* ---------- Shared utilities ---------- */
.display-title {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: 2px;
}
.text-link::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--ink);
  transition: right 0.35s var(--ease);
}
.text-link:hover { color: var(--sage-dark); }
.text-link:hover::after { right: 0; }

/* Shared accordion (Services-mobile + FAQ) */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  text-align: left;
}
.accordion-trigger .num { font-family: var(--font-serif); font-size: 14px; color: var(--ink-faint); margin-right: 14px; }
.accordion-trigger .label { font-family: var(--font-serif); font-size: 18px; flex: 1; color: var(--ink); }
.accordion-trigger .chevron {
  width: 10px; height: 10px;
  border-right: 1.3px solid var(--ink);
  border-bottom: 1.3px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.4s var(--ease);
  flex-shrink: 0;
}
.accordion-item.is-open .accordion-trigger .chevron { transform: rotate(225deg); }
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel__inner { overflow: hidden; min-height: 0; }
.accordion-panel__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin-bottom: 16px; }
.accordion-panel__inner p { padding-bottom: 22px; color: var(--ink-soft); font-size: 15px; max-width: 60ch; }

/* =========================================================
   NAV
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 270;
  padding-block: 22px;
  transition: padding 0.4s var(--ease), background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.site-header.scrolled {
  padding-block: 14px;
  background: rgba(248, 244, 236, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { color: var(--ink); display: flex; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__title { font-family: var(--font-serif); font-size: 19px; font-weight: 500; letter-spacing: 0.01em; }
.logo__subtitle { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-block: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--ink);
  transition: right 0.35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.nav-right { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
}
.nav-toggle span {
  display: block; width: 100%; height: 1.3px; background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.3px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(340px, 84vw);
  height: 100vh;
  background: var(--white);
  z-index: 260;
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  box-shadow: -20px 0 60px rgba(27,24,18,0.08);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 26px; }
.mobile-drawer nav a { font-family: var(--font-serif); font-size: 24px; color: var(--ink); }
.drawer-cta { align-self: flex-start; }
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(27,24,18,0.28);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 90px;
  isolation: isolate;
}

.hero-visual {
  position: absolute;
  top: -10%; right: -13%;
  width: min(58vw, 860px);
  height: 120%;
  z-index: -1;
  opacity: 0;
  transform: scale(0.92) translateY(10px);
  animation: heroReveal 1.4s 0.15s var(--ease) forwards;
}
@keyframes heroReveal { to { opacity: 1; transform: scale(1) translateY(0); } }

.hero-visual__blob {
  position: absolute;
  inset: 6% 4%;
  background:
    radial-gradient(circle at 30% 25%, #F1E9D6 0%, transparent 55%),
    radial-gradient(circle at 75% 70%, var(--champagne) 0%, transparent 60%),
    linear-gradient(155deg, var(--sage) 0%, var(--sage-dark) 55%, #3B4732 100%);
  border-radius: 62% 38% 55% 45% / 48% 55% 45% 52%;
  box-shadow: 0 40px 100px -30px rgba(78, 92, 64, 0.45);
}

.hero-visual__grain {
  position: absolute;
  inset: 6% 4%;
  border-radius: 62% 38% 55% 45% / 48% 55% 45% 52%;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}

.hero-visual__rays {
  position: absolute;
  inset: 6% 4%;
  border-radius: 62% 38% 55% 45% / 48% 55% 45% 52%;
  background: repeating-linear-gradient(
    115deg,
    rgba(255,253,248,0.16) 0px,
    rgba(255,253,248,0.16) 1.5px,
    transparent 1.5px,
    transparent 46px
  );
  mix-blend-mode: soft-light;
}

.hero-visual__ring {
  position: absolute;
  width: 210px; height: 210px;
  bottom: 6%; left: -4%;
  border: 1px solid rgba(27,24,18,0.16);
  border-radius: 50%;
}

.hero-inner {
  max-width: 600px;
  padding-top: 40px;
}

.hero-headline {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink);
  max-width: 46ch;
  margin-bottom: 38px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-chip {
  position: absolute;
  left: 28px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(255, 253, 248, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 30px -12px rgba(27,24,18,0.18);
}

.pulse-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}
.pulse-dot::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--sage);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

.scroll-cue {
  position: absolute;
  right: 28px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-faint);
}
.scroll-cue span {
  width: 1px; height: 34px;
  background: linear-gradient(var(--ink-faint), transparent);
  animation: scrollCue 2s ease-in-out infinite;
}
.scroll-cue p { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; writing-mode: vertical-rl; }
@keyframes scrollCue { 0%,100% { transform: scaleY(1); opacity: 0.6; } 50% { transform: scaleY(0.6); opacity: 1; } }

@media (max-width: 720px) {
  .scroll-cue { display: none; }
  .hero-chip { left: 20px; right: 20px; bottom: calc(78px + env(safe-area-inset-bottom) + 16px); justify-content: center; }
}

/* =========================================================
   SECTION 1 - PHILOSOPHY
   ========================================================= */
.philosophy { padding-block: 130px; }
.philosophy__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.philosophy__content { max-width: 480px; }
.philosophy__lede { font-size: 17px; color: var(--ink-soft); max-width: 52ch; margin-bottom: 28px; }
.philosophy__visual-panel {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(27, 24, 18, 0.3);
}
.philosophy__visual-panel img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .philosophy__grid { grid-template-columns: 1fr; gap: 44px; }
  .philosophy__content { max-width: none; }
}

/* =========================================================
   SECTION 2 - STATS
   ========================================================= */
.stats {
  padding-block: 110px;
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-inline-start: 28px;
  border-left: 1px solid var(--line-strong);
}
.stat:first-child { padding-inline-start: 0; border-left: none; }
.stat__num { font-family: var(--font-serif); font-weight: 500; font-size: clamp(38px, 5.6vw, 58px); line-height: 1; color: var(--ink); }
.stat__num--static { font-size: clamp(30px, 4.4vw, 46px); }
.stat__label { font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.07em; }

@media (max-width: 780px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .stat:nth-child(3) { padding-inline-start: 0; border-left: none; }
}

/* =========================================================
   SECTION 3 - SERVICES (interactive)
   ========================================================= */
.services { padding-block: 130px; }

.services-interactive {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  border-top: 1px solid var(--line);
  padding-top: 4px;
}
.services-nav { display: flex; flex-direction: column; }
.services-nav__btn {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
  transition: padding-inline-start 0.35s var(--ease);
}
.services-nav__btn .num { font-family: var(--font-serif); font-size: 14px; color: var(--ink-faint); }
.services-nav__btn .label { font-family: var(--font-serif); font-size: clamp(19px, 2vw, 24px); color: var(--ink-soft); transition: color 0.35s var(--ease); }
.services-nav__btn:hover, .services-nav__btn:focus-visible, .services-nav__btn.is-active { padding-inline-start: 14px; }
.services-nav__btn:hover .label, .services-nav__btn:focus-visible .label, .services-nav__btn.is-active .label { color: var(--ink); }
.services-nav__btn.is-active .num { color: var(--sage-dark); }

.services-panel { position: sticky; top: 120px; align-self: start; display: flex; flex-direction: column; gap: 24px; }
.services-panel__visual { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; }
.services-panel__visual-inner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.3s var(--ease); }
.services-panel__visual-inner.is-switching { opacity: 0; }
.services-panel__text { transition: opacity 0.25s var(--ease); }
.services-panel__text.is-switching { opacity: 0; }
.services-panel__text h3 { font-size: 24px; margin-bottom: 10px; }
.services-panel__text p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 14px; }

.services-accordion { display: none; }

@media (max-width: 900px) {
  .services-interactive { display: none; }
  .services-accordion { display: block; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding-block: 60px 130px; background: var(--bg-alt); }
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: start;
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait__caption { margin-top: 18px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.portrait__caption span { color: var(--ink-faint); }

.about__lede { font-size: 17px; color: var(--ink-soft); max-width: 54ch; margin-bottom: 46px; }

.pillars { display: flex; flex-direction: column; }
.pillars li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding-block: 22px;
  border-top: 1px solid var(--line-strong);
}
.pillars li:last-child { border-bottom: 1px solid var(--line-strong); }
.pillars__num { font-family: var(--font-serif); color: var(--ink-faint); font-size: 15px; }
.pillars h3 { font-size: 18px; margin-bottom: 4px; }
.pillars p { color: var(--ink-soft); font-size: 15px; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; gap: 50px; }
  .portrait { max-width: 340px; }
}

/* =========================================================
   SECTION 4 - YOUR SMILE, YOUR GOALS
   ========================================================= */
.goals { padding-block: 130px; background: var(--bg-alt); }
.goals__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.goals__visual-panel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.goals__visual-panel {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(27, 24, 18, 0.28);
}
.goal-rail { position: relative; margin-top: 44px; padding-top: 6px; }
.goal-rail__line {
  position: absolute; top: 5px; left: 5px;
  height: 1px; width: 0;
  background: var(--sage);
  transition: width 1s var(--ease) 0.15s;
}
.goal-rail.in-view .goal-rail__line { width: calc(100% - 10px); }
.goal-rail__steps { display: flex; justify-content: space-between; gap: 12px; }
.goal-rail__step { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; flex: 1; }
.goal-rail__step .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--bg-alt); border: 1.5px solid var(--sage); }
.goal-rail__step .step-label { font-size: 13px; color: var(--ink-soft); font-weight: 500; }

@media (max-width: 900px) {
  .goals__grid { grid-template-columns: 1fr; gap: 44px; }
  .goals__visual { order: -1; }
}
@media (max-width: 560px) {
  .goal-rail__step .step-label { font-size: 11px; }
}

/* =========================================================
   SECTION 5 - BEFORE & AFTER
   ========================================================= */
.before-after { padding-block: 130px; }
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px 40px; margin-top: 8px; }
.ba-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  touch-action: none;
  cursor: ew-resize;
  user-select: none;
  box-shadow: 0 30px 70px -40px rgba(27, 24, 18, 0.3);
}
.ba-slider:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ba-slider__before, .ba-slider__after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-slider__after { clip-path: inset(0 0 0 var(--pos)); }
.ba-slider__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); transform: translateX(-50%); display: flex; align-items: center; justify-content: center; }
.ba-slider__handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: rgba(255, 253, 248, 0.9); transform: translateX(-50%);
}
.ba-slider__handle span {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); box-shadow: 0 8px 20px rgba(27, 24, 18, 0.25);
  display: flex; align-items: center; justify-content: center;
}
.ba-slider__handle span::before { content: "\21d4"; font-size: 16px; color: var(--ink); }
.ba-slider__tag {
  position: absolute; top: 16px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(27, 24, 18, 0.55); color: var(--white);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ba-slider__tag--before { left: 16px; }
.ba-slider__tag--after { right: 16px; }
.ba-item figcaption { margin-top: 16px; }
.ba-item h3 { font-size: 19px; margin-bottom: 6px; }
.ba-item p { color: var(--ink-soft); font-size: 14.5px; }
.ba-disclaimer { margin-top: 26px; font-size: 13px; color: var(--ink-faint); }


@media (max-width: 780px) {
  .ba-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SECTION 6 - TEAM
   ========================================================= */
.team { padding-block: 130px; background: var(--bg-alt); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.team-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.team-card__portrait { position: relative; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; }
.team-card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card__portrait::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(27, 24, 18, 0.85) 0%, rgba(27, 24, 18, 0.15) 45%, transparent 70%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.team-card:hover .team-card__portrait::before,
.team-card:focus-within .team-card__portrait::before { opacity: 1; }
.team-card__bio {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.team-card:hover .team-card__bio,
.team-card:focus-within .team-card__bio { opacity: 1; transform: translateY(0); }
.team-card__bio p { color: var(--white); font-size: 14px; line-height: 1.55; }
.team-card__meta { margin-top: 18px; }
.team-card__meta h3 { font-size: 19px; margin-bottom: 4px; }
.team-card__meta p { color: var(--ink-soft); font-size: 14px; }


@media (max-width: 860px) {
  .team-grid {
    grid-template-columns: none;
    display: flex;
    overflow-x: auto;
    gap: 24px;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    margin-inline: -28px;
    padding-inline: 28px;
  }
  .team-card { flex: 0 0 78vw; max-width: 320px; scroll-snap-align: start; }
  .team-card__bio { opacity: 1; transform: none; position: static; padding: 16px 0 0; }
  .team-card__portrait::before { display: none; }
}

/* =========================================================
   SECTION 7 - TECHNOLOGY
   ========================================================= */
.tech { padding-block: 130px; }
.tech-visual { position: relative; }
.tech-visual__bg {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  max-height: 520px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(160deg, #EFE7D8, #E7DCC7);
  border: 1px solid var(--line-strong);
}
.tech-visual__grid {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(27, 24, 18, 0.06) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(27, 24, 18, 0.06) 0 1px, transparent 1px 48px);
}
.tech-visual__core {
  position: absolute; top: 50%; left: 50%;
  width: 180px; height: 180px; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 127, 92, 0.5) 0%, rgba(110, 127, 92, 0) 70%);
}
.tech-visual__core::before { content: ""; position: absolute; inset: 30px; border: 1px solid rgba(110, 127, 92, 0.4); border-radius: 50%; }
.tech-visual__core::after { content: ""; position: absolute; inset: 60px; border: 1px solid rgba(110, 127, 92, 0.6); border-radius: 50%; }
.tech-visual__sweep {
  position: absolute; top: 0; bottom: 0; left: -15%; width: 120px;
  background: linear-gradient(90deg, transparent, rgba(255, 253, 248, 0.55), transparent);
  animation: techSweep 5s linear infinite;
}
@keyframes techSweep { 0% { left: -15%; } 100% { left: 105%; } }

.tech-annotation { position: absolute; max-width: 210px; display: flex; flex-direction: column; gap: 4px; }
.tech-annotation__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage-dark); margin-bottom: 4px; }
.tech-annotation h4 { font-family: var(--font-sans); font-size: 14.5px; font-weight: 600; }
.tech-annotation p { font-size: 12.5px; color: var(--ink-soft); }
.tech-annotation--tl { top: 24px; left: 24px; }
.tech-annotation--tr { top: 24px; right: 24px; text-align: right; align-items: flex-end; }
.tech-annotation--bl { bottom: 24px; left: 24px; }
.tech-annotation--br { bottom: 24px; right: 24px; text-align: right; align-items: flex-end; }

@media (max-width: 780px) {
  .tech-visual__bg { aspect-ratio: auto; height: 340px; }
  .tech-annotation { max-width: 46%; }
}
@media (max-width: 560px) {
  .tech-visual__bg { display: none; }
  .tech-annotation { position: static; max-width: none; margin-bottom: 20px; align-items: flex-start !important; text-align: left !important; }
}

/* =========================================================
   SECTION 8 - PATIENT JOURNEY
   ========================================================= */
.journey { padding-top: 100px; padding-bottom: 50px; }
.journey-interactive { margin-top: 6px; }
.journey-tabs {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
.journey-tab { display: flex; align-items: center; gap: 10px; padding-block: 16px; color: var(--ink-faint); }
.journey-tab .num { font-family: var(--font-serif); font-size: 13px; }
.journey-tab .label { font-family: var(--font-serif); font-size: 17px; }
.journey-tab.is-active, .journey-tab:hover, .journey-tab:focus-visible { color: var(--ink); }
.journey-tab.is-active .num { color: var(--sage-dark); }
.journey-rail { height: 2px; background: var(--line-strong); margin-top: -1px; position: relative; }
.journey-rail__fill { position: absolute; inset: 0; width: 20%; background: var(--ink); transition: width 0.5s var(--ease); }
.journey-panels { margin-top: 36px; min-height: 90px; }
.journey-panel p { font-family: var(--font-serif); font-size: 18px; line-height: 1.5; color: var(--ink-soft); max-width: 60ch; }

@media (max-width: 640px) {
  .journey-tabs { gap: 6px 18px; }
  .journey-tab .label { font-size: 15px; }
}

/* =========================================================
   SECTION 9 - TESTIMONIALS
   ========================================================= */
.testimonials { padding-top: 50px; padding-bottom: 90px; }
.testimonials__disclaimer { font-size: 13px; color: var(--ink-faint); margin-top: -8px; margin-bottom: 40px; }
.testimonial-track-wrap { position: relative; display: flex; align-items: center; gap: 16px; }
.testimonial-track {
  display: flex; gap: 40px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-block: 4px;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial { flex: 0 0 min(420px, 82vw); scroll-snap-align: start; }
.stars { color: var(--champagne); letter-spacing: 3px; font-size: 14px; margin-bottom: 16px; }
.testimonial p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 18px;
}
.testimonial cite {
  font-style: normal;
  font-size: 13px;
  color: var(--ink-faint);
}
.testimonial-nav {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.testimonial-nav:hover { border-color: var(--ink); background: rgba(27, 24, 18, 0.04); }

@media (max-width: 640px) {
  .testimonial-nav { display: none; }
}

/* =========================================================
   SECTION 10 - SMILE GALLERY (masonry + lightbox)
   ========================================================= */
.gallery { padding-block: 100px; background: var(--bg-alt); }
.masonry { columns: 3 240px; column-gap: 22px; }
.masonry-item {
  display: block; width: 100%; position: relative;
  margin-bottom: 22px; break-inside: avoid;
  border-radius: 6px; overflow: hidden;
  aspect-ratio: 4 / 5;
  transition: transform 0.5s var(--ease);
}
.masonry-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.masonry-item:hover, .masonry-item:focus-visible { transform: scale(1.015); }
.masonry-item:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.masonry-item--tall { aspect-ratio: 3 / 4.6; }
.masonry-item--wide { aspect-ratio: 4 / 3; }
.masonry-item__label {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  color: var(--white); font-size: 13.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(27, 24, 18, 0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 860px) { .masonry { columns: 2 200px; } }
@media (max-width: 560px) { .masonry { columns: 1; } }

/* =========================================================
   SECTION 11 - FAQ
   ========================================================= */
.faq { padding-block: 100px; background: var(--bg-alt); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding-block: 100px; background: var(--bg-alt); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact__disclaimer { font-size: 13px; color: var(--ink-faint); margin-top: -8px; margin-bottom: 8px; }
.contact-block { padding-block: 18px; border-top: 1px solid var(--line-strong); }
.contact-block:last-of-type { border-bottom: 1px solid var(--line-strong); }
.contact-block h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-bottom: 8px; }
.contact-block p { font-size: 16px; }
.contact-block a:hover { color: var(--sage-dark); }
.contact__cta { margin-block: 26px; }

.hours { display: grid; grid-template-columns: 1fr auto; row-gap: 6px; column-gap: 20px; }
.hours span:nth-child(odd) { color: var(--ink-soft); }
.hours span:nth-child(even) { text-align: right; }

.map { margin-top: 70px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-strong); }
.map iframe { width: 100%; height: 380px; border: 0; filter: grayscale(0.25) contrast(1.05); }

.contact__form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 30px 70px -40px rgba(27,24,18,0.25);
}
.contact__form h3 { font-size: 22px; margin-bottom: 26px; }
.hidden-field { position: absolute; left: -9999px; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--bg);
  font-size: 15px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-tint);
}
.form-submit { width: 100%; margin-top: 6px; }
.form-submit:disabled { opacity: 0.6; cursor: default; }
.form-note { margin-top: 14px; font-size: 13.5px; color: var(--sage-dark); min-height: 1em; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; gap: 54px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
  position: relative;
  padding-block: 160px;
  overflow: hidden;
  background: linear-gradient(160deg, #14130F 0%, #232B1D 55%, #3B4732 100%);
  color: var(--bg);
  text-align: center;
}
.final-cta__grain {
  position: absolute; inset: 0;
  opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}
.final-cta__inner { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; }
.final-cta h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.15; color: var(--bg); margin-bottom: 40px; }
.final-cta__actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.final-cta .btn-primary { background: var(--bg); color: var(--ink); }
.final-cta .btn-primary:hover { background: var(--champagne); color: var(--ink); }
.btn-ghost--light { border-color: rgba(248, 244, 236, 0.4); color: var(--bg); }
.btn-ghost--light:hover { border-color: var(--bg); background: rgba(248, 244, 236, 0.1); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: rgba(248,244,236,0.72); padding-block: 90px 30px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
}
.footer__brand p { margin: 18px 0 20px; max-width: 34ch; font-size: 14.5px; }
.logo--footer .logo__title,
.logo--footer .logo__subtitle { color: var(--bg); }
.logo--footer .logo__mark { color: var(--bg); }

.social-links { display: flex; gap: 14px; }
.social-links a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(248,244,236,0.25);
  border-radius: 50%;
  color: var(--bg);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.social-links a:hover { background: rgba(248,244,236,0.08); border-color: rgba(248,244,236,0.5); }

.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col h4 { color: var(--bg); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; font-family: var(--font-sans); font-weight: 600; }
.footer__col a, .footer__col span { font-size: 14.5px; }
.footer__col a:hover { color: var(--bg); }
.footer__hours { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; font-size: 13px; color: rgba(248, 244, 236, 0.5); }
.footer__hours span { white-space: nowrap; }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  padding-top: 26px;
  border-top: 1px solid rgba(248,244,236,0.15);
  font-size: 12.5px;
}
.footer__legal { display: flex; gap: 20px; }
.footer__legal a:hover { color: var(--bg); }
.footer__disclaimer { padding-top: 14px; font-size: 12px; color: rgba(248, 244, 236, 0.5); }

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 38px; }
}

/* =========================================================
   MOBILE NAV / BOTTOM BAR
   ========================================================= */
.mobile-book-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 190;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(248, 244, 236, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.mobile-book-bar .btn { width: 100%; }

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-book-bar { display: block; }
  body { padding-bottom: 78px; }
  .contact { padding-bottom: 100px; }
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(20, 19, 15, 0.92);
  display: flex; align-items: center; justify-content: center; gap: 20px;
  padding: 60px 24px;
  overflow-y: auto;
}
.lightbox[hidden] { display: none; }
.lightbox__stage { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 720px; width: 100%; }
.lightbox__panel {
  position: relative;
  width: auto; max-width: 100%;
  height: min(62vh, 600px);
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
}
.lightbox__panel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox__caption { color: var(--bg); font-family: var(--font-serif); font-size: 18px; }
.lightbox__close {
  position: absolute; top: 24px; right: 24px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(248, 244, 236, 0.12); color: var(--bg); font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.3s var(--ease);
}
.lightbox__close:hover { background: rgba(248, 244, 236, 0.22); }
.lightbox__prev, .lightbox__next {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: rgba(248, 244, 236, 0.12); color: var(--bg); font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.3s var(--ease);
}
.lightbox__prev:hover, .lightbox__next:hover { background: rgba(248, 244, 236, 0.22); }

@media (max-width: 640px) {
  .lightbox { padding: 80px 12px 40px; gap: 8px; }
  .lightbox__prev, .lightbox__next { width: 38px; height: 38px; font-size: 20px; }
}

/* =========================================================
   CURSOR HINT (desktop-only decorative)
   ========================================================= */
.cursor-hint {
  position: fixed; top: 0; left: 0; z-index: 500;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.cursor-hint span {
  display: flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(27, 24, 18, 0.85); color: var(--white);
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
}
.cursor-hint.is-visible { opacity: 1; }

@media (pointer: coarse) {
  .cursor-hint { display: none; }
}
