/* ==========================================================================
   About page — page-specific styles only.
   Reuses tokens/classes from style.css (do not redefine brand tokens here).
   ========================================================================== */

/* Shared helpers used across the site (mirrors home.css so About feels native) */
.section-sub {
  max-width: 620px; margin: 0 auto 8px; color: var(--muted); font-size: 1.08rem;
}
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   1. Why We Started LM — centered hero
   ========================================================================== */
.about-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  /* Pull the hero up behind the transparent header so its background is
     continuous — no seam between the header strip and the hero. */
  margin-top: -100px;
  padding: clamp(172px, 11vw + 100px, 220px) 0 clamp(20px, 3vw, 36px);
  background: linear-gradient(180deg, var(--blush) 0%, var(--warm-cream) 100%);
}
.about-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
/* Headline: "Why we started LM" */
.about-hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 auto 16px;
}
.about-hero__accent { color: var(--dusty-rose); }
/* Sub-headline */
.about-hero__subhead {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.3;
  color: var(--deep-plum);
  max-width: 20ch;
  margin: 0 auto 20px;
}
/* Body text */
.about-hero__sub {
  max-width: 620px;
  margin: 0 auto;
  color: var(--body);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
}

/* Large LM logo watermark behind the section at low opacity */
.about-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  width: clamp(170px, 28vw, 380px);
  height: auto;
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}

/* ==========================================================================
   2. About LM — story (LM watermark behind the entire section)
   ========================================================================== */
.about-lm {
  position: relative;
  overflow: clip;
  background: var(--warm-cream);
  text-align: center;
  padding: 0;
}
/* Tall runway = scroll distance; the inner .about-lm__pin sticks while the
   words light up, then releases once the last word is lit. */
.about-lm__pin-wrap { position: relative; height: 260vh; }
.about-lm__pin {
  position: sticky; top: 0;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 7vh, 84px) 0;
  overflow: hidden;
}
/* Blurred, soft watermark that sits behind the whole section */
.about-watermark--blur {
  filter: blur(4px);
  opacity: 0.06;
  width: clamp(170px, 28vw, 380px);
}
.about-lm__inner {
  position: relative;
  z-index: 1;
  max-width: 940px;
}

/* Pill badge that doubles as the section heading */
.about-lm__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--deep-plum);
  background: #fff;
  border: 1px solid rgba(92, 61, 78, 0.14);
  border-radius: 999px;
  padding: 8px 18px;
  margin: 0 auto 32px;
  box-shadow: var(--shadow);
}
.about-lm__star { color: var(--dusty-rose); flex: none; }

/* Centered story text — words fill from muted grey to brand plum on scroll.
   Kept deliberately restrained (not oversized) for a cleaner, calmer read.
   The size also tracks viewport height so the full story stays inside the
   pinned (overflow-hidden) panel on shorter screens. */
.about-lm__text {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(0.9rem, 0.55vw + 0.75vh, 1.08rem);
  line-height: 1.6;
}
.about-lm__para { margin: 0 0 0.85em; }
.about-lm__para:last-child { margin-bottom: 0; }
.hl-word {
  color: var(--mid-grey);
  opacity: 0.32;
  transition: color .35s ease, opacity .35s ease;
}
.hl-word.is-lit {
  color: var(--deep-plum);
  opacity: 1;
}

/* ==========================================================================
   2. Meet Our Team Members — founder grid
   ========================================================================== */
/* About LM flows straight into the team section on the same cream background,
   so pull the top padding in — otherwise it stacks with .about-lm's bottom
   padding into one oversized gap. */
.team { background: var(--warm-cream); padding-top: clamp(36px, 5vw, 56px); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 44px;
}
.team-card {
  background: #fff;
  border: 1px solid rgba(92, 61, 78, 0.08);
  border-radius: var(--radius);
  padding: 20px 20px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-photo {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 22px;
  /* White frame lets each portrait's baked-in white margin blend into the card;
     the square ratio keeps all three purple panels exactly aligned. */
  background: #fff;
  aspect-ratio: 1 / 1;
}
/* Portraits are square (1350x1350) with a purple card centred on white — show
   the whole image so the framing stays identical across all three. */
.team-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.team-name { font-size: 1.3rem; margin-bottom: 6px; }
.team-title {
  margin: 0;
  color: var(--dusty-rose);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: .98rem;
}

/* ==========================================================================
   3. Our Mission — closing
   ========================================================================== */
.mission { background: var(--blush); }
.mission__card {
  text-align: center;
  background: linear-gradient(160deg, var(--deep-plum), #472f3c);
  border-radius: var(--radius);
  padding: 80px 32px;
  box-shadow: var(--shadow-lg);
}
.mission__card .eyebrow { color: var(--dusty-rose); }
.mission__card h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 760px;
  margin: 0 auto 20px;
}
.mission__sub {
  color: #e7d4dd;
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .team-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .mission__card { padding: 56px 24px; }
}

/* No scroll-pinning on small screens — let the story flow normally. */
@media (max-width: 760px) {
  .about-lm__pin-wrap { height: auto; }
  .about-lm__pin {
    position: static; min-height: 0;
    padding: clamp(32px, 5vw, 52px) 0;
  }
}

/* ==========================================================================
   Reduced motion — show text fully highlighted, no scroll animation
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hl-word { color: var(--deep-plum); opacity: 1; transition: none; }
  .about-lm__pin-wrap { height: auto; }
  .about-lm__pin { position: static; min-height: 0; padding: clamp(32px, 5vw, 52px) 0; }
}
