/* ============================================================
   LUMA — Longevity Medicine & Whole-Body Diagnostics
   Brand palette: ink #0E1726 / bone #F4F1EA / gold #F5E1A4
   Type: Fraunces (serif) · Inter (sans) · Space Mono (mono)
   ============================================================ */
:root {
  --gold: #F5E1A4;
  --ink: #0E1726;
  --bone: #F4F1EA;
  --white: #ffffff;
  --ink-40: rgba(14,23,38, 0.4);
  --ink-15: rgba(14,23,38, 0.15);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;

  --pad: clamp(1.25rem, 3vw, 2.75rem);
  --maxw: 1720px;
}

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

html { overflow-x: clip; }
/* Lenis smooth-scroll (matches the original site). Falls back to native. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bone);
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* NOTE: never set overflow-x:hidden here — it makes <body> a scroll
     container and breaks position:sticky on the pinned hero. Marquees clip
     themselves via their own overflow:hidden. */
}

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

.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-40);
  display: inline-block;
}

/* ---------------- NAV ---------------- */
.nav {
  position: fixed;
  top: clamp(0.6rem, 1.4vw, 1.1rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(1600px, calc(100% - 2 * clamp(0.6rem, 1.4vw, 1.1rem)));
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.7rem 0.65rem 1.6rem;
  background: rgba(244,241,234, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 100px;
  color: var(--ink);
  box-shadow: 0 10px 40px -24px rgba(14,23,38, 0.5);
}
.nav__logo {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 1.05rem;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.nav__logo:hover { transform: scale(0.98); opacity: 0.8; }
.nav__logo sup { font-size: 0.5em; letter-spacing: 0; top: -0.8em; }
.nav__links { display: flex; gap: 1.9rem; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.nav__dd { position: relative; }
.nav__menu-panel {
  position: absolute; top: calc(100% + 1.4rem); left: -1rem;
  display: grid; gap: 0.2rem; min-width: 230px;
  background: var(--bone); border-radius: 18px; padding: 0.8rem;
  box-shadow: 0 24px 50px -24px rgba(14,23,38,0.5);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.nav__dd:hover .nav__menu-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu-panel a {
  text-transform: none; letter-spacing: 0; font-size: 0.95rem; font-weight: 400;
  padding: 0.6rem 0.8rem; border-radius: 10px; display: flex; gap: 0.5rem; align-items: center;
  transition: background 0.2s ease;
}
.nav__menu-panel a:hover { background: rgba(14,23,38,0.07); }
.nav__menu-panel .is-soon { color: var(--ink-40); }
.nav__menu-panel .is-soon span {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--gold); color: var(--ink); padding: 0.1rem 0.4rem; border-radius: 100px;
}
/* Webflow-style underline on hover */
.animate-line { position: relative; display: inline-block; overflow-x: hidden; }
.animate-line::after {
  content: ""; pointer-events: none; position: absolute; right: 0; bottom: 0;
  height: 1.5px; width: 0; background: currentColor;
  transition: width 0.2s cubic-bezier(0.12, 0, 0.39, 0);
}
.animate-line:hover::after { width: 100%; right: auto; left: 0; }
.nav__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
  background: var(--ink); color: var(--bone);
  border-radius: 100px; padding: 0.85rem 1.7rem;
  white-space: nowrap; position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              background 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
/* Archive-style text-swap roll: tight mask clips to the text line so the
   duplicate stays hidden below it (not peeking through the pill's padding). */
.nav__cta-mask { display: block; position: relative; overflow: hidden; line-height: 1.3; }
.nav__cta-t {
  display: block; position: relative; will-change: transform;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.nav__cta-t::after {
  content: attr(data-t); position: absolute; left: 0; top: 100%; width: 100%; text-align: center;
}
.nav__cta:hover { color: var(--gold); }
.nav__cta:hover .nav__cta-t { transform: translateY(-100%); }
/* Arrow (↗) that swaps diagonally on hover — matches the archive's icon roll. */
.nav__cta-icon {
  position: relative; flex: none; align-self: center;
  display: inline-block; overflow: hidden;
  width: 1.25em; height: 1.25em; /* roomy enough that the glyph never clips */
}
.nav__cta-icon::before, .nav__cta-icon::after {
  content: "\2197\FE0E"; position: absolute; inset: 0; /* \FE0E forces text (non-emoji) glyph */
  display: grid; place-items: center; font-size: 1em; line-height: 1;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.nav__cta-icon::after { transform: translate(-140%, 140%); }
.nav__cta:hover .nav__cta-icon::before { transform: translate(140%, -140%); }
.nav__cta:hover .nav__cta-icon::after { transform: translate(0, 0); }
.nav__burger {
  display: none;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  background: none; border: none; color: inherit; cursor: pointer; padding: 0.6rem 0.8rem;
  min-width: 4.2em; text-align: right;
}

/* ---------------- MOBILE OVERLAY MENU ---------------- */
html.nav-open { overflow: hidden; }
.navmenu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--bone);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(6.5rem, 16vh, 9rem) var(--pad) clamp(2rem, 5vh, 3.5rem);
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity 0.26s ease, visibility 0.26s; /* CLOSE: quick, clean fade-out */
}
.navmenu.is-open { opacity: 1; visibility: visible; transition: opacity 0.32s ease; } /* OPEN: fade bg in */
.navmenu__inner { display: flex; flex-direction: column; gap: clamp(0.25rem, 1.4vh, 0.9rem); }
.navmenu__link {
  width: fit-content;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.4rem, 11vw, 4.5rem); line-height: 1.04; letter-spacing: -0.01em;
  color: var(--bone); opacity: 0; transform: translateY(26px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.3s ease; /* CLOSE: quick */
}
.navmenu.is-open .navmenu__link { /* OPEN: each line fades + rises, staggered */
  opacity: 0.6; transform: none;
  transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
              transform 0.55s cubic-bezier(0.165, 0.84, 0.44, 1),
              color 0.3s ease;
  transition-delay: calc(var(--i) * 0.04s + 0.06s);
}
@media (hover: hover) {
  .navmenu.is-open .navmenu__link:hover {
    opacity: 1; transform: translateX(10px); color: var(--gold); transition-delay: 0s;
  }
}
.navmenu__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem; margin-top: clamp(2rem, 5vh, 3rem);
  padding-top: clamp(1.5rem, 4vh, 2.5rem); border-top: 1px solid rgba(244,241,234, 0.16);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.navmenu.is-open .navmenu__foot { /* rises in just after the links */
  opacity: 1; transform: none;
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition-delay: 0.26s;
}
.navmenu__cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--ink);
  font-weight: 500; font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 0.95rem 2rem; border-radius: 100px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.navmenu__cta:hover { transform: translateY(-2px); }
.navmenu__meta {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: rgba(244,241,234, 0.6); transition: color 0.3s ease;
}
.navmenu__meta:hover { color: var(--gold); }

/* ---------------- LOADER (preloader that reveals the hero) ---------------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  flex-direction: column;
}
.js .loader { display: flex; }
.loader.is-hidden { display: none; }
.loader__cols {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.loader__col {
  position: relative;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--ink-15);
  will-change: transform;
  transform: translateY(0);
}
.loader__col:first-child { border-left: 1px solid var(--ink-15); }
.loader__col b {
  font-family: var(--sans); font-weight: 500; color: var(--ink);
  font-size: clamp(3rem, 15vw, 15rem); line-height: 1;
  opacity: 0; transform: translateY(48px);
}
/* thin loading bar centered near the bottom */
.loader__bar {
  position: absolute; left: 50%; bottom: clamp(2.5rem, 8vh, 5rem);
  transform: translateX(-50%);
  width: min(320px, 60vw); height: 2px;
  background: var(--ink-15); overflow: hidden;
}
.loader__bar span { display: block; height: 100%; width: 0; background: var(--ink); }
/* Play the sequence: letters set in → bar fills → columns sweep up */
.js .loader__col b { animation: loadLetter 0.6s cubic-bezier(.2,.8,.2,1) forwards; }
.js .loader__col:nth-child(1) b { animation-delay: 0.15s; }
.js .loader__col:nth-child(2) b { animation-delay: 0.28s; }
.js .loader__col:nth-child(3) b { animation-delay: 0.41s; }
.js .loader__col:nth-child(4) b { animation-delay: 0.54s; }
.js .loader__bar span { animation: loadBar 1.05s cubic-bezier(.4,0,.2,1) 0.25s forwards; }
.js .loader__bar { animation: loadFade 0.35s ease 1.35s forwards; }
.js .loader__col { animation: loadLift 0.72s cubic-bezier(.76,0,.24,1) forwards; }
.js .loader__col:nth-child(1) { animation-delay: 1.5s; }
.js .loader__col:nth-child(2) { animation-delay: 1.62s; }
.js .loader__col:nth-child(3) { animation-delay: 1.74s; }
.js .loader__col:nth-child(4) { animation-delay: 1.86s; }
@keyframes loadLetter { to { opacity: 1; transform: translateY(0); } }
@keyframes loadBar { to { width: 100%; } }
@keyframes loadFade { to { opacity: 0; } }
@keyframes loadLift { to { transform: translateY(-101%); } }

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  color: var(--bone);
  isolation: isolate;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(8,13,22,0.28) 0%, rgba(8,13,22,0) 22%),
    linear-gradient(to top, rgba(8,13,22,0.55) 0%, rgba(8,13,22,0) 45%);
}
.hero__content { position: absolute; inset: 0; z-index: 2; }
/* content eases in just after the loader clears (skipped in static mode) */
.js .hero:not(.hero--static) .hero__content { opacity: 0; animation: heroIn 0.9s ease 1.65s forwards; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__sub {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: clamp(7rem, 16vh, 11rem);
  width: min(30ch, 80vw);
  text-align: center;
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  line-height: 1.45;
  text-shadow: 0 1px 20px rgba(8,13,22,0.4);
}
/* Circular START TODAY badge */
.hero__badge {
  position: absolute;
  right: clamp(1.5rem, 8vw, 9rem);
  top: 52%;
  width: clamp(120px, 12vw, 168px);
  aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  overflow: hidden; isolation: isolate;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
/* Archive .home_hero_btn hover: green disc fills, text → yellow, whole badge tilts 12°. */
.hero__badge:hover { transform: rotate(12deg); color: var(--gold); }
.hero__badge-bg {
  position: absolute; inset: 0; border-radius: 50%; z-index: 0;
  background: var(--ink); transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.hero__badge:hover .hero__badge-bg { transform: scale(0.94); }
.hero__badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; animation: spin 16s linear infinite; }
.hero__badge-ring text {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.18em; fill: var(--ink);
  text-transform: uppercase; transition: fill 0.4s ease;
}
.hero__badge:hover .hero__badge-ring text { fill: var(--gold); }
.hero__badge-arrow { position: relative; z-index: 2; font-size: 1.6rem; line-height: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Big serif marquee across the bottom of the hero */
.hero__marquee { position: absolute; left: 0; bottom: clamp(1rem, 3vh, 2.5rem); width: 100%; overflow: hidden; white-space: nowrap; }
.hero__marquee-track { display: inline-flex; align-items: center; gap: 2.5rem; animation: marquee 30s linear infinite; }
.hero__marquee-track span {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 7rem); line-height: 1; color: var(--bone);
}
.hero__marquee-star { font-style: normal !important; font-size: clamp(1rem,2vw,2rem) !important; opacity: 0.7; }

/* ---------------- MARQUEE ---------------- */
.marquee {
  background: var(--ink);
  color: var(--gold);
  overflow: hidden;
  padding: 1.1rem 0;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  animation: marquee 22s linear infinite;
}
.marquee__track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 400;
}
.marquee__dot { font-size: 1rem !important; font-style: normal !important; opacity: 0.7; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------------- SECTIONS ---------------- */
.section { padding: clamp(4rem, 11vw, 10rem) var(--pad); }
.section--bone { background: var(--bone); }
.section--white { background: var(--white); }
.section--gold { background: var(--gold); }
.section--green { background: #12283A; color: var(--bone); }
.section--dark { background: var(--ink); color: var(--bone); }

.statement--center { text-align: center; }
.statement--center .statement__head--serif { max-width: 20ch; margin-left: auto; margin-right: auto; }
.statement--center .statement__body { margin-left: auto; margin-right: auto; }
.statement--center .label { margin-bottom: 2rem; }
.section--green .statement__head--serif { color: var(--bone); }

/* High-contrast body + labels on the dark/green sections (context wins over
   source order, which previously let the base olive .statement__body override). */
.section--green .statement__body,
.section--dark .statement__body { color: rgba(244,241,234, 0.92); }
.section--green .label,
.section--dark .label { color: rgba(244,241,234, 0.55); }

/* ---------------- DATA-INTO-ACTION ---------------- */
.data { max-width: var(--maxw); margin: 0 auto; }
.data__intro { max-width: 60ch; margin: 0 auto; text-align: center; }
.data__intro .label { display: inline-block; margin-bottom: 2.5rem; }
.data__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 6rem); line-height: 1; letter-spacing: -0.01em;
  margin-bottom: 2.5rem;
}
.data__title em { font-style: italic; }
.data__lead {
  font-weight: 300;
  font-size: clamp(1.1rem, 1.8vw, 1.55rem); line-height: 1.32; color: var(--ink);
  max-width: 28ch; margin: 0 auto 1.75rem;
}
.data__body {
  font-weight: 300;
  font-size: clamp(0.95rem, 1.25vw, 1.1rem); line-height: 1.6; color: var(--ink-40);
  max-width: 48ch; margin: 0 auto;
}
/* Scattered gallery: right image high, left mid, middle dropped low. */
.data__gallery {
  margin-top: clamp(3.5rem, 9vw, 8rem);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
}
.data__shot { margin: 0; overflow: hidden; border-radius: 18px; }
.data__shot video, .data__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.data__shot--a { aspect-ratio: 4 / 5; margin-top: clamp(2rem, 6vw, 5rem); }
.data__shot--b { aspect-ratio: 5 / 6; margin-top: clamp(6rem, 16vw, 12rem); }
.data__shot--c { aspect-ratio: 4 / 5; margin-top: 0; }

/* ---------------- CUSTOM WELLNESS (green) ---------------- */
.wellness { max-width: var(--maxw); margin: 0 auto; }
.wellness__intro { margin-bottom: clamp(3.5rem, 9vw, 8rem); }
.wellness__split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.wellness__copy .label { margin-bottom: 2rem; }
.wellness__copy .statement__head--serif { max-width: 12ch; margin-bottom: 1.75rem; }

/* Woman-video panel with floating provider avatar + wellness chart card */
.wellness__showcase {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  justify-self: center;
  width: 100%;
  max-width: 460px;
}
.wellness__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}
.wellness__avatar {
  position: absolute; top: -22px; left: -22px; z-index: 3;
  width: clamp(76px, 9vw, 104px); aspect-ratio: 1;
  border-radius: 50%; background: var(--gold);
  display: grid; place-items: center;
  box-shadow: 0 18px 40px -18px rgba(8,13,22, 0.55);
}
.wellness__avatar img {
  width: 82%; height: 82%; border-radius: 50%; object-fit: cover;
}
.chart-card {
  position: absolute; left: -24px; bottom: -28px; z-index: 3;
  width: min(340px, 82%);
  background: var(--bone);
  border-radius: 22px;
  padding: 1.4rem 1.5rem 1.5rem;
  box-shadow: 0 30px 60px -28px rgba(8,13,22, 0.55);
}
.chart-card__top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.1rem;
}
.chart-card__pct {
  display: flex; align-items: baseline;
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 0.9;
}
.chart-card__pct small { font-size: 0.42em; margin-left: 0.2em; color: var(--ink-40); }
.chart-card__meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem;
  padding-top: 0.4rem;
}
.chart-card__meta span:first-child {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-40);
}
.chart-card__meta span:last-child { font-size: 0.95rem; color: var(--ink); }
.chart-card__graph { width: 100%; height: auto; display: block; overflow: visible; }
.chart-grid line { stroke: var(--ink-15); stroke-width: 1; }
.chart-line {
  fill: none; stroke: var(--ink); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len, 500); stroke-dashoffset: var(--len, 500);
  transition: stroke-dashoffset 1.6s cubic-bezier(.4, 0, .2, 1);
}
.chart-card.is-in .chart-line { stroke-dashoffset: 0; }
.chart-dot { fill: var(--ink); opacity: 0; transition: opacity 0.4s ease 0.3s; }
.chart-card.is-in .chart-dot { opacity: 1; animation: chartDot 2.4s ease-in-out 1.4s infinite; }
@keyframes chartDot { 0%, 100% { r: 6; } 50% { r: 8; } }

/* ---------------- LIVE THE LUMA LIFE (bone) ---------------- */
.how { position: relative; max-width: var(--maxw); margin: 0 auto; padding-top: 0; }
.how__stage { position: relative; overflow: clip; } /* contain the marble — no page overflow */
/* Marble/liquid texture panel behind the content — a subtle wash, like the original.
   Sized to end exactly at the stage edge so its corner radius never gets clipped square. */
.how__liquid {
  position: absolute; z-index: 0; pointer-events: none;
  top: 0; left: 22%; width: 78%; height: 100%; /* explicit size — <video> ignores L/R insets */
  object-fit: cover; opacity: 0.4; filter: saturate(0.55);
  border-radius: 32px;
}
.how__split { position: relative; z-index: 1; }
.how__title {
  font-family: var(--serif); font-weight: 300; text-align: center;
  font-size: clamp(3rem, 9vw, 7rem); line-height: 0.96; letter-spacing: -0.015em;
  color: var(--ink); margin-bottom: clamp(2.5rem, 7vw, 6rem);
}
.how__title em { font-style: italic; }
.how__split {
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.how__media { margin: 0; overflow: hidden; border-radius: 22px; aspect-ratio: 3 / 4; position: relative; }
.how__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; will-change: transform; }
.how__lead {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.3rem, 2.2vw, 2.05rem); line-height: 1.26; color: var(--ink);
  max-width: 28ch; margin-bottom: 1.5rem;
}
.how__cue {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem); color: var(--ink-40);
  margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
}
.steps { list-style: none; }
.step {
  display: grid; grid-template-columns: 66px 1fr; gap: clamp(0.75rem, 1.6vw, 1.75rem);
  padding: clamp(1.35rem, 2.4vw, 1.9rem) 0; border-top: 1px solid var(--ink-15);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--ink-15); }
.step__num { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-40); padding-top: 0.4rem; }
.step p { font-family: var(--serif); font-weight: 300; font-size: clamp(1.1rem, 1.5vw, 1.45rem); line-height: 1.34; color: var(--ink); }
.step strong { font-weight: 500; font-style: normal; }

.statement { max-width: var(--maxw); margin: 0 auto; }
.statement .label { margin-bottom: 2.5rem; }
.statement__head {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 2rem;
}
.statement__head--serif {
  font-family: var(--serif);
  font-weight: 300; /* thin display serif — luxurious */
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
  max-width: 15ch;
}
.statement__lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  line-height: 1.12;
  max-width: 20ch;
  margin-bottom: 2.5rem;
}
.statement__body {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  max-width: 46ch;
  color: var(--ink);
}
.statement--alt { text-align: left; }

/* ---------------- SIMPLICITY / PHONE ---------------- */
.simplicity {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
}
.simplicity__copy .label { margin-bottom: 2rem; }
.simplicity .statement__head--serif { max-width: 12ch; }

.phone {
  justify-self: center;
  width: min(320px, 80vw);
  aspect-ratio: 320 / 660;
  background: var(--ink);
  border-radius: 42px;
  padding: 14px;
  position: relative;
  box-shadow: 0 40px 80px -30px rgba(14,23,38,0.55);
}
.phone__notch {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: var(--ink); border-radius: 100px; z-index: 3;
}
.phone__status {
  position: absolute; top: 20px; left: 26px; right: 26px;
  display: flex; justify-content: space-between; z-index: 2;
  font-family: var(--mono); font-size: 0.62rem; color: var(--ink);
}
.phone__batt { color: var(--ink-40); }
.phone__screen {
  background: var(--bone);
  border-radius: 30px;
  height: 100%;
  padding: 3.4rem 1.2rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.phone__card {
  background: var(--gold);
  border-radius: 20px;
  padding: 1.4rem 1.2rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  text-align: center;
}
.phone__eyebrow {
  align-self: flex-start;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-40);
}
.phone__ring { position: relative; display: grid; place-items: center; }
.phone__ring svg { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--ink-15); stroke-width: 9; }
.ring-fg {
  fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 327;
  transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1);
}
.phone.is-in .ring-fg { stroke-dashoffset: 92; }
.phone__pct {
  position: absolute; font-family: var(--serif); font-size: 2rem; font-weight: 500;
}
.phone__pct small { font-size: 0.9rem; }
.phone__label { font-size: 0.8rem; max-width: 20ch; color: var(--ink); }
.phone__row {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; padding: 0.7rem 0.9rem;
  background: var(--white); border-radius: 14px; color: var(--ink);
}
.phone__row span:last-child { color: var(--ink-40); font-family: var(--mono); }


/* ---------------- FAQ ---------------- */
.faq { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 5.5rem); max-width: var(--maxw); margin: 0 auto; align-items: start; }
.faq__head { position: sticky; top: 6rem; }
.faq__head .label { margin-bottom: 1.5rem; }
.faq__list { border-top: 1px solid var(--ink-15); }
.faq__item { border-bottom: 1px solid var(--ink-15); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.85rem 0.15rem;
  font-family: var(--sans); font-size: clamp(1rem, 1.2vw, 1.0625rem);
  font-weight: 500; letter-spacing: -0.005em; line-height: 1.4; color: var(--ink);
  transition: color 0.35s ease, opacity 0.35s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item:not([open]) summary { opacity: 0.72; }               /* closed rows recede a touch */
.faq__item:not([open]) summary:hover { opacity: 1; }            /* ...and lift on hover */
.faq__mark {
  position: relative; width: 17px; height: 17px; flex: none; color: var(--ink);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.faq__mark::before, .faq__mark::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: currentColor;
  transform: translate(-50%, -50%); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.faq__mark::before { width: 100%; height: 1.5px; }
.faq__mark::after { width: 1.5px; height: 100%; }
.faq__item[open] .faq__mark::after { transform: translate(-50%, -50%) scaleY(0); } /* + → − */
.faq__item summary:hover .faq__mark { transform: scale(1.14); }
.faq__body { overflow: hidden; height: 0; }                      /* collapsed by default */
.faq__item[open] .faq__body { height: auto; }                    /* GSAP animates the transition */
.faq__body-inner { padding-bottom: 1.9rem; max-width: 60ch; display: grid; gap: 1rem; }
.faq__body p { font-size: 1rem; line-height: 1.62; color: var(--ink); }

/* ---------------- FOOTER ---------------- */
.footer { background: var(--ink); color: var(--bone); overflow: hidden; }
.footer__inner {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: clamp(1.75rem, 4vw, 2.75rem);
  padding: clamp(4rem, 10vw, 8rem) var(--pad) clamp(2.5rem, 6vw, 4rem);
}
.footer__logo {
  font-family: var(--sans); font-weight: 500; letter-spacing: 0.3em;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--bone); padding-left: 0.3em;
}
.footer__nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.25rem, 3vw, 2.5rem);
}
.footer__nav a {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem); color: rgba(244,241,234, 0.85);
  transition: color 0.3s ease;
}
.footer__nav a:hover { color: var(--gold); }
.footer__subscribe {
  display: flex; align-items: center; gap: 0.75rem; width: min(440px, 92%);
  margin-top: 0.5rem;
}
.footer__subscribe input {
  flex: 1; background: none; border: none; border-bottom: 1px solid rgba(244,241,234, 0.35);
  color: var(--bone); font-family: var(--sans); font-size: 0.95rem;
  padding: 0.7rem 0.2rem; outline: none;
}
.footer__subscribe input::placeholder { color: rgba(244,241,234, 0.5); }
.footer__subscribe input:focus { border-bottom-color: var(--gold); }
.footer__subscribe button {
  flex: none; cursor: pointer; border: none;
  background: var(--bone); color: var(--ink);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.85rem 1.4rem; border-radius: 100px;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.footer__subscribe button:hover { transform: translateY(-2px); }
/* Big faint marquee behind the sign-off */
.footer__marquee { overflow: hidden; white-space: nowrap; padding: clamp(1rem, 3vw, 2.5rem) 0; }
.footer__marquee-track { display: inline-flex; align-items: center; gap: 2.5rem; }
.footer__marquee-track span {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(3rem, 9vw, 8rem); line-height: 1; color: rgba(244,241,234, 0.12);
}
.footer__marquee-star { font-style: normal !important; font-size: clamp(1rem, 2vw, 2rem) !important; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 1.75rem var(--pad);
  border-top: 1px solid rgba(244,241,234, 0.18);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(244,241,234, 0.55);
}
.footer__bottom a { transition: color 0.3s ease; }
.footer__bottom a:hover { color: var(--gold); }
.footer__note { color: rgba(244,241,234, 0.35); text-transform: none; letter-spacing: 0; font-size: 0.66rem; }

/* ---------------- ANIMATION ---------------- */
/* Fallback reveal for the rare no-GSAP path — still hide-then-show via CSS. */
.js:not(.gsap) .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1); }
.js:not(.gsap) .reveal.is-in { opacity: 1; transform: none; }

/* When GSAP is present it drives every timed animation and reveals content, so
   hide reveals up front and silence the CSS keyframe/transition versions to
   avoid double-animating the same elements. */
.gsap .reveal { opacity: 0; }
/* Masked heading reveal: the host clips to its text box, the inner block slides
   up from below (set up in script.js / pages.js). */
.reveal-mask { overflow: clip; overflow-clip-margin: 0.3em; } /* clip-margin leaves room for descenders */
.reveal-mask__inner { display: block; }
.gsap .loader__col,
.gsap .loader__col b,
.gsap .loader__bar,
.gsap .loader__bar span,
.gsap .hero__marquee-track,
.gsap .hero__badge-ring,
.gsap .hero__content,
.gsap .chart-line { animation: none !important; transition: none !important; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}
@media (max-width: 860px) {
  .hero__badge { top: auto; bottom: clamp(16rem, 35vh, 21rem); right: 1.25rem; } /* lifted clear of the sub-text */
  .data__grid { grid-template-columns: 1fr; gap: 4.5rem; }
  .data__img { position: static; width: 62%; margin: -3rem 0 0 auto; }
  .wellness__split { grid-template-columns: 1fr; }
  .how__split { grid-template-columns: 1fr; gap: 2.5rem; }
  .how__media { max-width: 520px; }
  /* Marble becomes a full-width texture behind the stacked content (not a side panel) */
  .how__liquid { top: 0; left: 0; width: 100%; height: 100%; opacity: 0.25; border-radius: 24px; }
  .how__title { text-align: left; }
  .phone { margin-top: 1rem; }
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .step { grid-template-columns: 60px 1fr; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  /* Mobile menu appears/dismisses instantly (no stagger) under reduced motion */
  .navmenu, .navmenu__link, .navmenu__foot { transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
}
