/* ==========================================================================
   LM AESTHETICS — design system
   Tokens derive from the logo file and the approved comp. See DESIGN.md.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  /* Surfaces */
  --ivory:      #FCFBF9;
  --linen:      #F5F0EA;
  --sand:       #EDE4D9;
  --charcoal:   #24211E;

  /* Ink */
  --ink:        #2E2B28;
  --ink-soft:   #5F5A55;
  --ink-mute:   #6F6862;

  /* Accent — champagne is fill + rule only, bronze is accent text on light */
  --champagne:  #BF9667;
  --champagne-lift: #CFAC82;
  --bronze:     #8A6537;

  /* Rules */
  --rule:       rgba(191, 150, 103, 0.55);
  --rule-quiet: #E7DFD5;
  --rule-dark:  rgba(191, 150, 103, 0.38);

  /* Type */
  --font-display: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, "Times New Roman", serif;
  --font-text: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Floor tuned so "Training, Taught" clears the gutter at 375px. */
  --fs-display: clamp(2.4rem, 1.35rem + 4.2vw, 4.75rem);
  --fs-h2:      clamp(2rem, 1.35rem + 2.4vw, 3.15rem);
  --fs-h3:      clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  --fs-h4:      clamp(1.075rem, 1rem + 0.3vw, 1.2rem);
  --fs-lead:    clamp(1.075rem, 1rem + 0.35vw, 1.25rem);
  --fs-body:    1rem;
  --fs-small:   0.9rem;
  --fs-label:   0.62rem;

  /* Space */
  --gutter:     clamp(1.25rem, 5vw, 4rem);
  --section:    clamp(4.5rem, 9vw, 8rem);
  --section-tight: clamp(3rem, 5vw, 4.5rem);

  /* Measure */
  --measure:        68ch;
  --measure-narrow: 56ch;
  --measure-display: 20ch;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 220ms;
  --dur-slow: 700ms;

  /* Depth order */
  --z-sticky:  100;
  --z-scrim:   190;
  --z-drawer:  200;
}

/* --- Reset -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* --- Typography --------------------------------------------------------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.018em;
  line-height: 1.08;
  text-wrap: balance;
  color: var(--ink);
}

h1, .fs-display {
  font-size: var(--fs-display);
  letter-spacing: -0.022em;
  max-width: var(--measure-display);
}

h2, .fs-h2 {
  font-size: var(--fs-h2);
  line-height: 1.1;
  max-width: 22ch;
}

h3, .fs-h3 {
  font-size: var(--fs-h3);
  font-variation-settings: "opsz" 32;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

h4 {
  font-family: var(--font-text);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0;
}

p { text-wrap: pretty; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: var(--measure-narrow);
}

.prose { max-width: var(--measure); color: var(--ink-soft); }
.prose > * + * { margin-top: 1.15em; }
.prose strong { color: var(--ink); font-weight: 600; }

.muted { color: var(--ink-mute); }
.small { font-size: var(--fs-small); line-height: 1.6; }

/* The brand label voice. Used in named places only, never as a section eyebrow. */
.lockup {
  font-family: var(--font-text);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink-mute);
}
.lockup--accent { color: var(--bronze); }

/* The heading mark that replaces an eyebrow. */
.mark {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--champagne);
  border: 0;
  margin: 0 0 1.75rem;
}
.mark--dark { background: var(--champagne); opacity: 0.8; }
.mark--center { margin-inline: auto; }

/* --- Layout ------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: calc(1200px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: calc(1440px + var(--gutter) * 2); }
.wrap--narrow { max-width: calc(820px + var(--gutter) * 2); }

.section { padding-block: var(--section); }
.section--tight { padding-block: var(--section-tight); }
.section--linen { background: var(--linen); }
.section--sand { background: var(--sand); }

.rule-top { border-top: 1px solid var(--rule-quiet); }

.stack > * + * { margin-top: 1.25rem; }
.stack-lg > * + * { margin-top: 2rem; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 4vw, 3.75rem); }
.section-head p { margin-top: 1.1rem; }

/* Asymmetric feature split — never a centred 50/50. */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .split { grid-template-columns: 7fr 5fr; }
  .split--flip { grid-template-columns: 5fr 7fr; }
  .split--flip > .split__media { order: -1; }
  .split--even { grid-template-columns: 1.05fr 0.95fr; }
}

.figure { position: relative; margin: 0; }
/* The ratio lives on the image, not the figure, so a figcaption can sit
   beneath without being clipped by the frame's overflow. */
.figure img { width: 100%; height: auto; object-fit: cover; display: block; background: var(--sand); border-radius: 2px; }
.figure--tall img { aspect-ratio: 4 / 5; }
.figure--wide img { aspect-ratio: 3 / 2; }
.figure--square img { aspect-ratio: 1 / 1; }
.figure--std img { aspect-ratio: 4 / 3; }
.figure figcaption { padding-inline: 0.1rem; }

/* ink-soft, not ink-mute: captions sit on --sand figure mats, where mute is
   4.36:1 and fails. */
figcaption {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin-top: 0.85rem;
  max-width: 40ch;
}

/* --- Reel ---------------------------------------------------------------- */
/* A vertical 9:16 session clip, framed to sit beside the day's rhythm. Same
   JS-started, graceful-fallback contract as the hero (see [data-hero-video]):
   scripts blocked, motion reduced, or the file missing all fall back to the
   still, so the frame never shows a black box. */

.reel { display: flex; flex-direction: column; gap: 0.9rem; }
.reel__frame {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 21rem;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 3px;
  background: var(--charcoal);
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(36, 33, 30, 0.5);
}
.reel__frame video,
.reel__frame img { width: 100%; height: 100%; object-fit: cover; }
.reel__still { display: none; }
.reel__frame.is-fallback .reel__video { display: none; }
.reel__frame.is-fallback .reel__still { display: block; }
@media (prefers-reduced-motion: reduce) {
  .reel__video { display: none; }
  .reel__still { display: block; }
}
.reel__cap { max-width: 21rem; }

/* On wide screens hold the clip in view while the rhythm is read beside it. */
@media (min-width: 62rem) {
  .reel { position: sticky; top: 6rem; }
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

/* Champagne fill with charcoal label. White on champagne is 2.7:1 and fails. */
.btn--primary {
  background: var(--champagne);
  color: var(--ink);
  border-color: var(--champagne);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--champagne-lift);
  border-color: var(--champagne-lift);
}

.btn--ghost {
  background: transparent;
  color: var(--bronze);
  border-color: var(--champagne);
}
.btn--ghost:hover,
.btn--ghost:focus-visible { background: var(--linen); color: var(--ink); }

.btn--on-dark {
  background: transparent;
  color: var(--ivory);
  border-color: var(--rule-dark);
}
.btn--on-dark:hover,
.btn--on-dark:focus-visible { background: rgba(191, 150, 103, 0.16); border-color: var(--champagne); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Text link with a champagne underline that extends on hover. */
.link {
  display: inline-block;
  color: var(--bronze);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--rule);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.link:hover, .link:focus-visible { color: var(--ink); border-color: var(--ink); }
.link--on-dark { color: var(--champagne); }
.link--on-dark:hover, .link--on-dark:focus-visible { color: var(--ivory); border-color: var(--ivory); }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: calc(var(--z-drawer) + 1);
  background: var(--ink);
  color: var(--ivory);
  padding: 0.7rem 1.1rem;
  border-radius: 2px;
  font-size: var(--fs-small);
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 0.75rem; }

/* --- Header ------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(252, 251, 249, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.header.is-stuck { border-bottom-color: var(--rule-quiet); background: rgba(252, 251, 249, 0.98); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.25rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand img { width: auto; height: 2.9rem; }

.nav { display: none; }
@media (min-width: 62rem) {
  .nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.4rem); }
}
.nav a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.nav a:hover, .nav a:focus-visible { color: var(--ink); border-bottom-color: var(--champagne); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--champagne); }

.header__cta { display: none; }
@media (min-width: 62rem) { .header__cta { display: inline-flex; } }

.burger {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 1px solid var(--rule-quiet);
  border-radius: 2px;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
@media (min-width: 62rem) { .burger { display: none; } }
.burger__bars { display: grid; gap: 4px; width: 18px; }
.burger__bars span { display: block; height: 1px; background: var(--ink); transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out); }
.burger[aria-expanded="true"] .burger__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(22rem, 88vw);
  z-index: var(--z-drawer);
  background: var(--ivory);
  border-left: 1px solid var(--rule-quiet);
  padding: 1.5rem var(--gutter) 2.5rem;
  transform: translateX(101%);
  transition: transform 380ms var(--ease-out);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
@media (min-width: 62rem) { .drawer, .scrim { display: none; } }

.drawer__top { display: flex; justify-content: flex-end; margin-bottom: 1.5rem; }
.drawer__close {
  background: none; border: 0; cursor: pointer; padding: 0.5rem;
  font-size: 1.4rem; line-height: 1; color: var(--ink);
}
.drawer nav { display: grid; }
.drawer nav a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-variation-settings: "opsz" 28;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--rule-quiet);
}
.drawer nav a[aria-current="page"] { color: var(--bronze); }
.drawer .btn { margin-top: 2rem; }
.drawer__contact { margin-top: auto; padding-top: 2rem; }
.drawer__contact a { color: var(--ink-soft); text-decoration: none; display: block; font-size: var(--fs-small); }
.drawer__contact a:hover { color: var(--ink); }

.scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-scrim);
  background: rgba(36, 33, 30, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms var(--ease-out);
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

body.is-locked { overflow: hidden; }

/* --- Hero --------------------------------------------------------------- */
/* Full-bleed: the footage is the whole hero. A charcoal gradient, heaviest on
   the copy side, carries the ivory headline at 14:1 and lets the room show
   through on the right. */

.hero { position: relative; border-bottom: 1px solid var(--rule-quiet); }

.hero--full {
  isolation: isolate;
  background: var(--charcoal);
  color: var(--ivory);
  min-height: clamp(34rem, 88vh, 56rem);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--rule-quiet);
  overflow: hidden;
}

.hero--full .hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--charcoal);
}
.hero--full .hero__media img,
.hero--full .hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Subjects sit low in the 4:3 source; anchor to the bottom so they centre. */
  object-position: 50% 100%;
}

.hero--full::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(36, 33, 30, 0.35) 0%, rgba(36, 33, 30, 0) 30%, rgba(36, 33, 30, 0) 60%, rgba(36, 33, 30, 0.55) 100%),
    linear-gradient(90deg, rgba(36, 33, 30, 0.92) 0%, rgba(36, 33, 30, 0.82) 38%, rgba(36, 33, 30, 0.45) 68%, rgba(36, 33, 30, 0.25) 100%);
}

/* The hero video is decorative and JS-started, so with scripts blocked or
   motion reduced it stays on its poster — a graded still from the same clip. */
.hero__video { display: block; position: absolute; inset: 0; }
.hero__still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero__still { display: block; }
}
.hero__media.is-fallback .hero__video { display: none; }
.hero__media.is-fallback .hero__still { display: block; }

.hero--full .hero__body {
  position: relative;
  width: 100%;
  max-width: calc(1200px + var(--gutter) * 2);
  margin-inline: auto;
  padding: clamp(4.5rem, 10vw, 7rem) var(--gutter) clamp(4rem, 9vw, 6.5rem);
}
.hero__locator { margin-bottom: 1.6rem; }
.hero--full .hero__locator { color: var(--champagne); }
.hero h1 { max-width: 15ch; }
.hero--full h1 { color: var(--ivory); }
.hero__body .lead { margin-top: 1.6rem; }
.hero--full .hero__body .lead { color: rgba(252, 251, 249, 0.84); max-width: 46ch; }
.hero__body .btn-row { margin-top: 2.4rem; }

@media/* Under 48rem the hero keeps the desktop treatment: the footage is a full
   background and the copy sits over it. The overlay tips vertical so the
   left-aligned copy reads across the narrower, taller frame. */
 (max-width: 47.99rem) {
  .hero--full { min-height: clamp(30rem, 82vh, 42rem); }
  .hero--full::after {
    background:
      linear-gradient(180deg, rgba(36, 33, 30, 0.55) 0%, rgba(36, 33, 30, 0.5) 50%, rgba(36, 33, 30, 0.7) 100%);
  }
  .hero--full .hero__body { padding: clamp(3rem, 13vw, 4.5rem) var(--gutter) clamp(2.75rem, 11vw, 4rem); }
  .hero--full .hero__locator { margin-bottom: 1.1rem; }
  .hero--full .hero__body .lead { margin-top: 1.1rem; }
  .hero--full .hero__body .btn-row { margin-top: 1.8rem; }
}

/* Inner heroes take their rhythm from .section--tight, so the hero body's own
   padding is zeroed out rather than stacking on top of it. */
.hero--inner { border-bottom: 1px solid var(--rule-quiet); background: var(--linen); }
.hero--inner .hero__body { padding: 0; }
.hero--inner h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.75rem); max-width: 18ch; }

/* --- Credibility strip -------------------------------------------------- */

.creds { background: var(--linen); border-bottom: 1px solid var(--rule-quiet); }
.creds__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 52rem) { .creds__grid { grid-template-columns: repeat(4, 1fr); } }

.cred {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
  padding: clamp(1.5rem, 3.2vw, 2.4rem) clamp(0.85rem, 2vw, 2rem);
  border-bottom: 1px solid var(--rule-quiet);
}
.cred:nth-child(odd) { border-right: 1px solid var(--rule-quiet); }
@media (min-width: 52rem) {
  .cred { border-bottom: 0; border-right: 1px solid var(--rule-quiet); }
  .cred:nth-child(odd) { border-right: 1px solid var(--rule-quiet); }
  .cred:last-child { border-right: 0; }
}
.cred__fig {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48;
  font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cred__label { font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.35; }

/* The fourth cell is a statement, not a figure. One line, set in the display
   face at a quieter size so it shares the row's rhythm without a numeral. */
.cred--stmt { align-items: center; }
.cred--stmt .cred__label {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
  white-space: nowrap;
}

/* The fourth cell instead carries the verified patient rating: a Bodoni score
   beside a champagne star fill clipped to 4.8/5, with the source underneath. */
.cred--rating { align-items: baseline; row-gap: 0.35rem; }
.cred--rating .cred__stars {
  font-size: clamp(0.8rem, 0.65rem + 0.5vw, 1rem);
  letter-spacing: 0.1em;
  line-height: 1;
  background: linear-gradient(90deg, var(--champagne) 96%, var(--sand) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cred--rating .cred__stars::before { content: "\2605\2605\2605\2605\2605"; }
.cred--rating .cred__label { flex-basis: 100%; }
.cred--rating .cred__label a { color: var(--bronze); text-decoration: none; border-bottom: 1px solid var(--rule); }
.cred--rating .cred__label a:hover { border-bottom-color: var(--bronze); }

/* --- Modality blocks (hairline-separated, not cards) -------------------- */

.modalities { display: grid; gap: 0; }
@media (min-width: 58rem) { .modalities { grid-template-columns: repeat(3, 1fr); } }

.modality {
  padding-block: 2.25rem;
  border-top: 1px solid var(--rule-quiet);
}
@media (min-width: 58rem) {
  .modality {
    padding: 0 clamp(1.5rem, 3vw, 2.75rem);
    border-top: 0;
    border-left: 1px solid var(--rule-quiet);
  }
  .modality:first-child { padding-left: 0; border-left: 0; }
  .modality:last-child { padding-right: 0; }
  /* Hold two lines so body copy sits on a shared baseline across the row. */
  .modality h3 { min-height: 2.4em; }
}
.modality h3 { margin-bottom: 0.9rem; }
.modality p { color: var(--ink-soft); max-width: 38ch; }
.modality ul { margin-top: 1.4rem; display: grid; gap: 0.55rem; }
.modality li {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  padding-left: 1.05rem;
  position: relative;
}
.modality li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.45rem;
  height: 1px;
  background: var(--champagne);
}

/* --- Photo strip -------------------------------------------------------- */
/* Three candid frames, hairline-gapped, one shared caption. The middle frame
   is square so the row reads as a sequence rather than three identical cards. */

.strip { display: grid; gap: 1px; background: var(--rule-quiet); }
@media (min-width: 40rem) { .strip { grid-template-columns: 1.05fr 0.9fr 1.05fr; } }
.strip .figure { border-radius: 0; background: var(--ivory); }
.strip .figure img { aspect-ratio: 4 / 5; }
.strip .figure:nth-child(2) img { aspect-ratio: 1 / 1; }
@media (min-width: 40rem) {
  .strip .figure img { aspect-ratio: auto; height: 100%; }
}
.strip__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 1rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.strip__caption .lockup { align-self: center; }

/* --- Ordered sequence (the only numerals used as ordinals) -------------- */

.sequence { display: grid; gap: 0; counter-reset: step; }
@media (min-width: 48rem) { .sequence { grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 5vw, 4.5rem); } }
@media (min-width: 72rem) { .sequence { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  padding: 2rem 0 2rem;
  border-top: 1px solid var(--rule);
}
.step__n {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 40;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--champagne);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}
/* Step titles are h3 for document order, styled as the text-family h4. */
.step h3 {
  font-family: var(--font-text);
  font-size: var(--fs-h4);
  font-variation-settings: normal;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin-bottom: 0.55rem;
}
.step p { font-size: var(--fs-small); color: var(--ink-soft); }

/* --- Topic list (dense, typographic) ------------------------------------ */

.topics {
  display: grid;
  gap: 0 clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.topic {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--rule-quiet);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.topic::before {
  content: "";
  flex: 0 0 auto;
  width: 0.5rem;
  height: 1px;
  background: var(--champagne);
  transform: translateY(-0.3em);
}
.topic strong { color: var(--ink); font-weight: 500; }

/* --- Definition rows ---------------------------------------------------- */

.rows { border-top: 1px solid var(--rule); }
.row {
  display: grid;
  gap: 0.5rem clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(1.6rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--rule-quiet);
}
@media (min-width: 48rem) { .row { grid-template-columns: 15rem 1fr; } }
.row__term { font-family: var(--font-display); font-variation-settings: "opsz" 24; font-size: 1.25rem; line-height: 1.25; }
.row__def { color: var(--ink-soft); max-width: var(--measure); }
.row__def > * + * { margin-top: 0.8rem; }

/* --- Dark band ---------------------------------------------------------- */

.band-dark { background: var(--charcoal); color: var(--ivory); }
.band-dark h2, .band-dark h3, .band-dark .display { color: var(--ivory); }
.band-dark p { color: rgba(252, 251, 249, 0.76); }
.band-dark .lead { color: rgba(252, 251, 249, 0.8); }
.band-dark .lockup { color: var(--champagne); }
.band-dark .rows { border-top-color: var(--rule-dark); }
.band-dark .row { border-bottom-color: rgba(252, 251, 249, 0.12); }
.band-dark .row__def { color: rgba(252, 251, 249, 0.76); }
.band-dark .topic { color: rgba(252, 251, 249, 0.78); border-bottom-color: rgba(252, 251, 249, 0.12); }
.band-dark .topic strong { color: var(--ivory); }

/* --- Pull quote --------------------------------------------------------- */

.pullquote { max-width: 34ch; }
.pullquote p {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 40;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.band-dark .pullquote p { color: var(--ivory); }
.pullquote cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-text);
  font-size: var(--fs-small);
  font-style: normal;
  color: var(--ink-mute);
}
.band-dark .pullquote cite { color: rgba(252, 251, 249, 0.62); }

/* --- Patient proof ------------------------------------------------------ */
/* A verified third-party rating and a few real reviews, set where the "she
   still injects" claim is made. Quiet, data-forward proof — not a wall of
   testimonials. Stars are a champagne fill clipped to the score. */
.proof {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--rule);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 62rem) {
  .proof { grid-template-columns: 0.8fr 1.5fr; align-items: start; }
}
.proof__rating .lockup { display: block; }
.proof__scoreline { display: flex; align-items: baseline; gap: 0.7rem; margin-top: 1.1rem; }
.proof__num {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48;
  font-size: clamp(3rem, 2rem + 3.4vw, 4.25rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.proof__stars {
  font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.35rem);
  letter-spacing: 0.14em;
  line-height: 1;
  background: linear-gradient(90deg, var(--champagne) 96%, var(--sand) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.proof__stars::before { content: "\2605\2605\2605\2605\2605"; }
.proof__source { margin-top: 1.1rem; font-size: var(--fs-small); color: var(--ink-mute); line-height: 1.5; }
.proof__source strong { color: var(--ink-soft); font-weight: 600; }

.proof__quotes { display: grid; }
.proof__quotes li {
  padding-block: clamp(1.1rem, 2.4vw, 1.6rem);
  border-top: 1px solid var(--rule-quiet);
}
.proof__quotes li:first-child { border-top: 0; padding-top: 0; }
.proof__quotes li:last-child { padding-bottom: 0; }
.proof__quotes p {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24;
  font-size: clamp(1.15rem, 1.02rem + 0.5vw, 1.45rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.proof__quotes cite {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-text);
  font-style: normal;
  font-size: var(--fs-small);
  color: var(--ink-mute);
}

/* --- Accordion ---------------------------------------------------------- */

.accordion { border-top: 1px solid var(--rule); }
.acc__item { border-bottom: 1px solid var(--rule-quiet); }
.acc__trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  background: none;
  border: 0;
  padding: clamp(1.3rem, 2.4vw, 1.75rem) 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24;
  font-size: clamp(1.075rem, 1rem + 0.4vw, 1.3rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease-out);
}
.acc__trigger:hover { color: var(--bronze); }
.acc__sign {
  flex: 0 0 auto;
  position: relative;
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 0.4em;
}
.acc__sign::before,
.acc__sign::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--champagne);
  transition: transform var(--dur-fast) var(--ease-out);
}
.acc__sign::after { transform: rotate(90deg); }
.acc__trigger[aria-expanded="true"] .acc__sign::after { transform: rotate(0deg); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms var(--ease-out);
}
.acc__panel[data-open="true"] { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel .acc__inner { padding-bottom: 1.75rem; max-width: var(--measure); color: var(--ink-soft); }
.acc__panel .acc__inner > * + * { margin-top: 0.9rem; }

/* --- Form --------------------------------------------------------------- */

.form { max-width: 44rem; }
.form__section + .form__section { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.form__section > .lockup {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.75rem;
  display: block;
}

.field { margin-bottom: 1.6rem; }
.field > label,
.fieldset > legend {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
  padding: 0;
}
.field__hint { display: block; font-size: 0.82rem; color: var(--ink-mute); margin-top: 0.4rem; }
.req { color: var(--bronze); }

.input, .select, .textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-quiet);
  border-radius: 0;
  padding: 0.7rem 0.1rem;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease-out);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-mute); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-bottom-color: var(--champagne); }
.input:focus, .select:focus, .textarea:focus {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-bottom-color: var(--champagne);
}
.textarea { min-height: 8rem; resize: vertical; line-height: 1.6; }

.select {
  background-image: linear-gradient(45deg, transparent 50%, var(--bronze) 50%),
                    linear-gradient(135deg, var(--bronze) 50%, transparent 50%);
  background-position: right 0.75rem center, right 0.4rem center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
  cursor: pointer;
}

.fieldset { border: 0; padding: 0; margin: 0 0 1.6rem; }
.choice-grid { display: grid; gap: 0.15rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.55rem 0;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  cursor: pointer;
}
.choice input {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin: 0.28rem 0 0;
  accent-color: var(--bronze);
  cursor: pointer;
}
.choice:hover { color: var(--ink); }

.field-error {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink);
  padding-left: 0.8rem;
  border-left: 1px solid var(--champagne);
}
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea,
.fieldset.has-error { border-bottom-color: var(--bronze); }

.form__actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.form__note { font-size: 0.82rem; color: var(--ink-mute); max-width: 34ch; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Contact list ------------------------------------------------------- */

.contact-list { display: grid; gap: 0; }
.contact-list > div {
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--rule-quiet);
}
.contact-list > div:first-child { border-top: 1px solid var(--rule); }
.contact-list dt { margin-bottom: 0.3rem; }
.contact-list dd { margin: 0; }
.contact-list a {
  display: inline-block;
  padding-block: 0.15rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.contact-list a:hover, .contact-list a:focus-visible { border-bottom-color: var(--ink); }

/* --- CTA band ----------------------------------------------------------- */

.cta {
  position: relative;
  background: var(--charcoal);
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
}
.cta__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
/* Keeps the copy side at 15:1 while letting the photograph read on the right. */
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(36, 33, 30, 0.96) 0%, rgba(36, 33, 30, 0.9) 42%, rgba(36, 33, 30, 0.42) 100%);
}
.cta h2 { color: var(--ivory); }
.cta p { color: rgba(252, 251, 249, 0.8); }
.cta__inner { max-width: 40rem; padding-block: clamp(4rem, 8vw, 7rem); }

/* The cream wordmark sits in the open right half of the strip, its right edge
   aligned to the content column. Hidden where the copy would reach it. */
.cta::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  right: max(var(--gutter), calc(50% - 600px));
  transform: translateY(-50%);
  width: clamp(12rem, 22vw, 18.5rem);
  aspect-ratio: 1131 / 711;
  background: url(../img/lm-logo-light.png) center / contain no-repeat;
  opacity: 0.9;
  pointer-events: none;
}
@media (max-width: 61.99rem) {
  .cta::before { display: none; }
}

/* --- Footer ------------------------------------------------------------- */

.footer { background: var(--linen); border-top: 1px solid var(--rule-quiet); }
.footer__grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
  padding-block: clamp(3.25rem, 6vw, 5rem);
}
@media (min-width: 52rem) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer__brand img { height: 3.1rem; width: auto; margin-bottom: 1.25rem; }
.footer__brand p { font-size: var(--fs-small); color: var(--ink-soft); max-width: 34ch; }

.footer h2 { font-family: var(--font-text); }
.footer__col > .lockup { display: block; margin-bottom: 1.25rem; }
.footer__col ul { display: grid; gap: 0.15rem; }
/* Block links with vertical padding so each target clears 24px (WCAG 2.2 AA). */
.footer__col a {
  display: inline-block;
  padding-block: 0.28rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__col a:hover, .footer__col a:focus-visible { color: var(--ink); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.6rem;
  border-top: 1px solid var(--rule-quiet);
  font-size: 0.82rem;
  color: var(--ink-mute);
}
.footer__base a { color: var(--ink-mute); text-decoration: none; }
.footer__base a:hover { color: var(--ink); }

/* --- Reveal motion ------------------------------------------------------ */
/* Applied only when JS is running. Default state is fully visible, so the page
   renders complete with JS blocked, on a hidden tab, or in a headless render. */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.js-reveal [data-reveal].is-in { opacity: 1; transform: 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;
  }
  .js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
  .drawer { transition: none; }
}

/* --- Utilities ---------------------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.center { text-align: center; }
.center .mark { margin-inline: auto; }
.center h2, .center .lead { margin-inline: auto; }
