/* ==========================================================
   Lumina Aesthetics — Site Styles
   Direction: JB Aesthetics structure/soul, Lumina warm palette
   ========================================================== */

:root {
  --cream: #f2ede3;
  --cream-deep: #ede6da;
  --ink: #1c1915;
  --ink-soft: #3a352e;
  --dark: #211d18;
  --dark-2: #2a251f;
  --taupe: #a98963;
  --taupe-soft: #c4ad8f;
  --line: rgba(28, 25, 21, 0.15);
  --line-light: rgba(242, 237, 227, 0.2);

  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Jost", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- type helpers ---------- */

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--taupe);
  margin-bottom: 1.2rem;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.4rem; }

h3 { font-size: 1.35rem; }

h1 em, h2 em { font-style: italic; font-weight: 400; }

.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 1rem 2.2rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
}

.btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.btn-solid { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-solid:hover { background: var(--taupe); border-color: var(--taupe); color: var(--cream); }

.on-dark .btn:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.on-dark .btn-solid { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.on-dark .btn-solid:hover { background: var(--taupe); border-color: var(--taupe); color: var(--cream); }

/* ---------- nav ---------- */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

header.scrolled {
  background: rgba(242, 237, 227, 0.96);
  box-shadow: 0 1px 0 var(--line);
}

header.scrolled .logo, header.scrolled nav a { color: var(--ink); }
header.scrolled .nav-book { border-color: var(--ink); color: var(--ink); }

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--cream);
  line-height: 1;
}

.logo svg { width: 120px; height: auto; }

nav { display: flex; align-items: center; gap: 2.2rem; }

nav a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--cream);
  position: relative;
}

nav a:not(.nav-book)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

nav a:not(.nav-book):hover::after { width: 100%; }

.nav-book {
  border: 1px solid var(--cream);
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  transition: all 0.3s ease;
}

.nav-book:hover { background: var(--cream); color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;          /* fallback for older browsers */
  min-height: 100svh;         /* smallest viewport: never hides behind mobile browser chrome */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  padding: 8rem 6vw 6rem;
  background: var(--dark);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(33, 29, 24, 0.48), rgba(33, 29, 24, 0.28) 45%, rgba(33, 29, 24, 0.7));
  z-index: 1;
}

/* brighter, luminous doctor-led line that pops over the video */
.hero .eyebrow {
  color: #f0d9a8;
  font-weight: 600;
  opacity: 1;
  text-shadow: 0 1px 16px rgba(20, 16, 12, 0.55), 0 0 2px rgba(20, 16, 12, 0.4);
}

.hero h1 { text-shadow: 0 2px 24px rgba(20, 16, 12, 0.35); }

.hero > * { position: relative; z-index: 2; }

.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 20ch;
  margin: 1.4rem 0 1.6rem;
}

.hero p { max-width: 52ch; font-size: 1.05rem; opacity: 0.9; }

.hero-ctas { display: flex; gap: 1.2rem; margin-top: 2.6rem; flex-wrap: wrap; justify-content: center; }

.hero-arc {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -58%);
  width: min(720px, 86vw);
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.7;
  z-index: 2;
}

/* ---------- placeholders for shoot photos ---------- */

.ph {
  position: relative;
  background:
    linear-gradient(135deg, rgba(169, 137, 99, 0.25), rgba(169, 137, 99, 0.08)),
    var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ph::before {
  content: attr(data-label);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(28, 25, 21, 0.45);
  border: 1px dashed rgba(28, 25, 21, 0.3);
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  text-align: center;
  max-width: 80%;
}

.ph-dark {
  background:
    linear-gradient(135deg, rgba(169, 137, 99, 0.18), rgba(42, 37, 31, 0.6)),
    var(--dark-2);
}

.ph-dark::before {
  color: rgba(242, 237, 227, 0.5);
  border-color: rgba(242, 237, 227, 0.3);
}

/* ---------- sections ---------- */

section { padding: 6.5rem 6vw; }

.section-dark { background: var(--dark); color: var(--cream); }
.section-dark .lead { color: rgba(242, 237, 227, 0.78); }
.section-dark .eyebrow { color: var(--taupe-soft); }

.wrap { max-width: 1200px; margin: 0 auto; }

/* trust strip */

.trust-strip {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3.2rem 6vw;
}

.trust-strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
}

.trust-item .eyebrow { margin-bottom: 0.6rem; color: var(--ink); }
.trust-item p { font-size: 0.92rem; color: var(--ink-soft); max-width: 30ch; margin: 0 auto; }

/* founder */

.founder .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.founder-photo {
  aspect-ratio: 4 / 5;
  border-radius: 300px 300px 0 0; /* arch — echoes the logo arc */
}

.founder-text .signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  margin-top: 1.8rem;
  color: var(--taupe);
}

.founder-text p + p { margin-top: 1rem; }
.founder-text p { color: var(--ink-soft); }

/* treatments */

.treatments-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3.2rem;
  flex-wrap: wrap;
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.treatment-card {
  background: var(--dark-2);
  border: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.treatment-card:hover { transform: translateY(-6px); border-color: var(--taupe); }

.treatment-card .ph { aspect-ratio: 4 / 3; }

.treatment-card-body { padding: 1.6rem 1.5rem 1.8rem; display: flex; flex-direction: column; flex: 1; }

.treatment-card h3 { margin-bottom: 0.6rem; }

.treatment-card p { font-size: 0.9rem; color: rgba(242, 237, 227, 0.72); flex: 1; }

.treatment-card .price {
  margin-top: 1.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe-soft);
}

.treatment-card .card-link {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  border-bottom: 1px solid var(--taupe);
  align-self: flex-start;
  padding-bottom: 0.2rem;
}

/* approach */

.approach .wrap { max-width: 900px; text-align: center; }

.approach-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
  text-align: left;
}

.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--taupe);
  line-height: 1;
  margin-bottom: 0.9rem;
}

.approach-steps h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.approach-steps p { font-size: 0.92rem; color: var(--ink-soft); }

/* quote */

.quote-section {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.quote-section blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  max-width: 26ch;
  margin: 0 auto;
  line-height: 1.4;
}

.quote-section cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 1.8rem;
  color: var(--taupe);
}

/* results */

.results .wrap { text-align: center; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin: 3rem 0;
}

.results-grid .ph { aspect-ratio: 1; }

/* journal */

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.journal-card { border-top: 1px solid var(--line-light); padding-top: 1.6rem; }

.journal-card .tag {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--taupe-soft);
}

.journal-card h3 { margin: 0.8rem 0; font-size: 1.2rem; line-height: 1.35; }

.journal-card p { font-size: 0.9rem; color: rgba(242, 237, 227, 0.7); }

/* visit */

.visit .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.visit-photo { aspect-ratio: 4 / 3; }

/* two-location block */
.locations {
  display: grid;
  gap: 1.2rem;
  margin: 1.8rem 0 1.6rem;
}

.location {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 1.2rem 1.4rem;
  background: var(--cream-deep);
  border-left: 2px solid var(--taupe);
  border-radius: 0 8px 8px 0;
}

.location strong { color: var(--ink); font-weight: 600; }

.location-tag {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.5rem;
}

.location-note {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.visit-details { margin: 1.6rem 0 2rem; color: var(--ink-soft); font-style: normal; }
.visit-details strong { color: var(--ink); font-weight: 600; }

/* closing cta */

.closing {
  text-align: center;
  padding: 8rem 6vw;
  position: relative;
  overflow: hidden;
}

.closing .arc-decoration {
  position: absolute;
  top: 3rem; left: 50%;
  transform: translateX(-50%);
  width: min(560px, 80vw);
  opacity: 0.5;
  pointer-events: none;
}

.closing h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }

.closing .small-note {
  margin-top: 1.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(242, 237, 227, 0.6);
}

/* footer */

footer {
  background: var(--dark);
  color: rgba(242, 237, 227, 0.7);
  border-top: 1px solid var(--line-light);
  padding: 3.5rem 6vw 2.5rem;
  font-size: 0.85rem;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

footer .foot-logo { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.15em; color: var(--cream); }

footer a:hover { color: var(--cream); }

.foot-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

/* ---------- subpages (treatments / journal) ---------- */

.page-hero {
  background: var(--dark);
  color: var(--cream);
  padding: 11rem 6vw 5rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 22ch;
  margin: 1rem auto 1.4rem;
}

.page-hero p { max-width: 56ch; margin: 0 auto; color: rgba(242, 237, 227, 0.82); }

.prose { max-width: 720px; margin: 0 auto; }

.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 3rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }

.prose p { color: var(--ink-soft); margin-bottom: 1.1rem; }

.prose ul { margin: 0 0 1.1rem 1.2rem; color: var(--ink-soft); }
.prose li { margin-bottom: 0.5rem; }

.prose .note {
  border-left: 2px solid var(--taupe);
  padding: 1rem 1.4rem;
  background: var(--cream-deep);
  font-size: 0.95rem;
  margin: 2rem 0;
}

/* FAQ */

.faq { max-width: 720px; margin: 0 auto; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.3rem 0;
}

.faq summary {
  font-family: var(--serif);
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::after { content: "+"; font-family: var(--sans); color: var(--taupe); font-size: 1.3rem; }
.faq details[open] summary::after { content: "\2212"; }

.faq details p { margin-top: 0.9rem; color: var(--ink-soft); font-size: 0.96rem; }

/* breadcrumb */

.crumbs {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.5rem;
}

.crumbs a:hover { text-decoration: underline; }

/* journal listing */

.post-list { max-width: 800px; margin: 0 auto; }

.post-list-item {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 2.2rem 0;
}

.post-list-item .tag { font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--taupe); }

.post-list-item h2 { font-size: 1.5rem; margin: 0.6rem 0; }

.post-list-item p { color: var(--ink-soft); font-size: 0.95rem; }

.post-meta {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 0.8rem;
}

/* ---------- real photography ---------- */

.ph.has-photo { display: block; background: var(--cream-deep); }
.ph.has-photo::before { display: none; }
.ph.has-photo img,
.founder-photo img,
.visit-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* hover zoom now targets the real images */
.treatment-card .ph.has-photo img,
.results-grid .ph.has-photo img {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.treatment-card:hover .ph.has-photo img { transform: scale(1.05); }
.results-grid .ph.has-photo:hover img { transform: scale(1.04); }

/* ---------- motion (JB-style engagement layer) ---------- */

/* scroll-reveal: js/main.js tags elements .reveal, then .in-view when they enter */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.in-view { opacity: 1; transform: none; }

/* ---------- interactive image hero ---------- */

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-slide {
  position: absolute;
  inset: -4%;                 /* small bleed so parallax never exposes an edge */
  background-size: cover;
  background-position: center 42%;
  opacity: 0;
  transform: scale(1.02) translate3d(0, 0, 0);
  /* long, gentle cross-dissolve + very slow drift = cinematic, not busy */
  transition: opacity 2.2s cubic-bezier(0.4, 0, 0.2, 1),
              transform 11s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.07) translate3d(0, 0, 0);   /* restrained Ken Burns */
}

/* video slide (breezy curtains) — real motion, so no Ken Burns scale */
.hero-slide--video, .hero-slide--video.is-active { transform: none; }
.hero-slide--video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* interactive scene dots */
.hero-nav {
  position: absolute;
  z-index: 3;
  bottom: 3.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.7rem;
}

.hero-dot {
  width: 34px;
  height: 3px;
  border: none;
  padding: 0;
  border-radius: 2px;
  background: rgba(242, 237, 227, 0.35);
  cursor: pointer;
  transition: background 0.4s ease, transform 0.4s ease;
}

.hero-dot:hover { background: rgba(242, 237, 227, 0.6); }
.hero-dot.is-active { background: var(--taupe-soft); transform: scaleY(1.6); }

.hero-caption {
  position: absolute;
  z-index: 3;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--taupe-soft);
  transition: opacity 0.5s ease;
}

/* legacy placeholder animation (unused by image hero) */
.hero-media.ph {
  animation: kenburns 24s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.08) translateY(-1.5%); }
}

.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* gentle float on the hero arc */
.hero-arc { animation: arc-float 9s ease-in-out infinite alternate; }

@keyframes arc-float {
  from { transform: translate(-50%, -58%); }
  to   { transform: translate(-50%, -62%); }
}

/* image hover zoom (JB-style) */
.treatment-card .ph, .results-grid .ph, .visit-photo, .founder-photo { overflow: hidden; }

.treatment-card .ph, .results-grid .ph {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.treatment-card:hover .ph { transform: scale(1.05); }
.results-grid .ph:hover { transform: scale(1.03); }

/* marquee band */
.marquee {
  background: var(--dark);
  color: var(--cream);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  overflow: hidden;
  padding: 1.1rem 0;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 46s linear infinite;
  /* GPU-composited for buttery motion */
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin: 0 1.5rem;
  opacity: 0.82;
  white-space: nowrap;
}

.marquee .dot { color: var(--taupe); font-style: normal; opacity: 0.7; }

/* exact 50% shift = perfectly seamless, no jump */
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.marquee:hover .marquee-track { animation-play-state: paused; }

/* soften the edges so text fades in/out rather than clipping abruptly */
.marquee {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

/* google rating chip */
.google-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
}

.google-chip .stars { letter-spacing: 0.1em; font-size: 0.85rem; }

/* ---------- Instagram / Learn With Lumina ---------- */

.insta { background: var(--cream); text-align: center; }
.insta .wrap { max-width: 1100px; margin: 0 auto; }

.reel-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin: 3rem 0 2.6rem;
}

.reel {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: var(--dark-2);
  box-shadow: 0 14px 40px rgba(28, 25, 21, 0.16);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.reel:hover { transform: translateY(-6px); box-shadow: 0 22px 55px rgba(28, 25, 21, 0.26); }

.reel video, .reel img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.reel::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28, 25, 21, 0.6), rgba(28, 25, 21, 0) 45%);
  z-index: 1;
}

.reel-badge {
  position: absolute;
  left: 0; right: 0; bottom: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--cream);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reel-badge svg { width: 18px; height: 18px; }

.reel-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(242, 237, 227, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease, background 0.35s ease;
}

.reel:hover .reel-play { transform: translate(-50%, -50%) scale(1.08); background: var(--cream); }
.reel-play svg { width: 20px; height: 20px; margin-left: 3px; color: var(--ink); }

/* ---------- before & after ---------- */

.beforeafter { background: var(--cream-deep); text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.beforeafter .wrap { max-width: 1100px; margin: 0 auto; }

.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 3rem;
}

.ba-card { text-align: left; }

.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border-radius: 10px;
  overflow: hidden;
}

.ba-pair .ph { aspect-ratio: 3 / 4; border-radius: 0; }

/* treatment-page photo gallery */
.mn-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin: 0 0 2.5rem;
}

.mn-gallery figure { margin: 0; }

.mn-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(28, 25, 21, 0.14);
}

.mn-gallery figcaption {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
}

@media (max-width: 700px) {
  .mn-gallery { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* live before/after cards (single branded before+after image) */
.ba-single {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 14px 38px rgba(28, 25, 21, 0.16);
}

.ba-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.ba-single:hover img { transform: scale(1.04); }

.ba-grid--live figcaption { margin-top: 0.9rem; }

.ba-label {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.ba-sub {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* ---------- immersive clinic gallery (lightbox) ---------- */

[data-gallery] { cursor: zoom-in; position: relative; }

[data-gallery]::after {
  content: "Explore";
  position: absolute;
  right: 0.9rem; bottom: 0.8rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(28, 25, 21, 0.55);
  border: 1px solid rgba(242, 237, 227, 0.35);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

[data-gallery]:hover::after { opacity: 1; }

#clinic-gallery { grid-template-columns: repeat(4, 1fr); }

.gallery-hint {
  margin-top: 1.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--taupe-soft);
}

.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(24, 20, 16, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  user-select: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lb-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(242, 237, 227, 0.5);
  background: rgba(28, 25, 21, 0.4);
  color: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.lb-btn:hover { background: var(--cream); color: var(--ink); }

.lb-prev { left: 4vw; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4vw; top: 50%; transform: translateY(-50%); }
.lb-close { top: 3vh; right: 4vw; font-size: 1.8rem; }

.lb-meta {
  position: absolute;
  bottom: 3vh; left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--cream);
  width: max-content;
  max-width: 90vw;
}

.lb-caption {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}

.lb-count {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--taupe-soft);
}

@media (max-width: 900px) {
  .lb-btn { width: 42px; height: 42px; }
  .lb-prev { left: 3vw; }
  .lb-next { right: 3vw; }
}

/* accessibility: kill decorative motion for users who ask for it */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media, .hero-media video, .hero-arc { animation: none; }
  .hero-slide { transition: opacity 0.6s ease; transform: none; }
  .hero-slide.is-active { transform: none; }
  .hero-stage { transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  nav a:not(.nav-book) { display: none; }
  .founder .wrap, .visit .wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .treatment-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .approach-steps { grid-template-columns: 1fr; }
  .results-grid, .journal-grid { grid-template-columns: 1fr; }
  #clinic-gallery { grid-template-columns: repeat(2, 1fr); }
  .reel-row { grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
  .ba-grid { grid-template-columns: 1fr; gap: 2.2rem; max-width: 360px; margin-left: auto; margin-right: auto; }
}

/* ==========================================================
   2026 refinement layer — award-gallery polish
   (oversized type · tactile grain · glass nav · micro-interactions)
   ========================================================== */

/* tactile film grain for depth (very subtle) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* editorial typography — confident tracking */
h1, h2 { letter-spacing: -0.015em; }
.hero h1 { font-size: clamp(2.8rem, 6.2vw, 5rem); letter-spacing: -0.02em; }
.eyebrow { font-weight: 500; }

/* glass nav on scroll */
header.scrolled {
  background: rgba(242, 237, 227, 0.72);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(28, 25, 21, 0.06);
}

/* refined button micro-interaction */
.btn { will-change: transform; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* accessible focus states */
a:focus-visible,
.btn:focus-visible,
button:focus-visible,
[data-gallery]:focus-visible {
  outline: 2px solid var(--taupe);
  outline-offset: 3px;
  border-radius: 3px;
}

/* generous whitespace + smoother rhythm on larger screens */
@media (min-width: 900px) {
  section { padding-block: 8rem; }
  .hero { padding-top: 9rem; }
  .lead { font-size: 1.14rem; }
}

/* softer, deeper card shadows for premium depth */
.treatment-card { box-shadow: 0 18px 44px rgba(28, 25, 21, 0.22); }
.reel { box-shadow: 0 16px 44px rgba(28, 25, 21, 0.18); }

.mn-gallery--two { grid-template-columns: repeat(2, 1fr); }
.mn-gallery--two img { aspect-ratio: 4 / 5; }

/* ==========================================================
   Mobile & responsive hardening
   ========================================================== */

/* never allow sideways scroll */
html, body { overflow-x: hidden; }

/* grid children must be allowed to shrink (fixes min-width:auto overflow) */
.treatment-grid > *,
.results-grid > *,
.journal-grid > *,
.reel-row > *,
.ba-grid > *,
.approach-steps > *,
.trust-strip .wrap > *,
.founder .wrap > *,
.visit .wrap > *,
footer .wrap > * { min-width: 0; }

/* long strings (emails, URLs) must wrap rather than push the page wide */
address, .visit-details, footer p { overflow-wrap: anywhere; }

/* --- phones --- */
@media (max-width: 640px) {
  section { padding: 4.5rem 6vw; }

  /* one card per row reads far better than two cramped ones */
  .treatment-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  #clinic-gallery { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .ba-grid--live { grid-template-columns: 1fr; max-width: 340px; }
  .reel-row { grid-template-columns: 1fr; gap: 1.4rem; max-width: 300px; margin-inline: auto; }

  /* comfortable reading + tap targets */
  /* leave clearance so the scroll cue + dots always sit above the browser bar */
  .hero { padding: 6.5rem 6vw 6.5rem; min-height: 100svh; }
  .hero-nav { bottom: 2.6rem; }
  .hero-caption { bottom: 3.8rem; }
  .scroll-hint { bottom: 1rem; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .hero p { font-size: 1rem; }
  .hero-ctas { gap: 0.8rem; width: 100%; }
  .hero-ctas .btn { width: 100%; max-width: 320px; padding: 1rem 1.4rem; }

  .eyebrow { letter-spacing: 0.22em; font-size: 0.66rem; }
  h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); }

  /* nav breathing room */
  header { padding: 0.9rem 5vw; }
  .logo svg { width: 96px; }
  .nav-book { padding: 0.6rem 1.1rem; font-size: 0.68rem; }

  /* hero controls clear of the CTAs */
  .hero-nav { bottom: 3rem; }
  .hero-caption { bottom: 4.2rem; font-size: 0.6rem; }
  .scroll-hint { bottom: 1.2rem; }

  .locations { gap: 1rem; }
  .quote-section blockquote { font-size: 1.3rem; }
  footer .wrap { gap: 1.8rem; }
}

/* tap targets never below the accessible minimum */
@media (pointer: coarse) {
  .hero-dot { padding: 10px 0; background-clip: content-box; }
  nav a, .btn, .card-link { min-height: 44px; display: inline-flex; align-items: center; }
}

/* --- tablets: use the extra width --- */
@media (min-width: 641px) and (max-width: 900px) {
  .ba-grid--live { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 1.2rem; }
  #clinic-gallery { grid-template-columns: repeat(3, 1fr); }
  .locations { grid-template-columns: repeat(2, 1fr); }
}

/* portrait hero slide: keep the doctor in frame as the viewport narrows */
.hero-slide--portrait { background-position: 68% center; }

@media (max-width: 900px) {
  .hero-slide--portrait { background-position: 72% center; }
}

@media (max-width: 640px) {
  /* on phones the text sits over the frame, so centre her and let the gradient carry the type */
  .hero-slide--portrait { background-position: 74% center; }
}
