/* ============================================================
   ABOUT — David's story. Long-form scrollytelling: photos slide in
   from the side and clear as they pass; copy rises into focus and
   lifts away as it leaves, so attention stays on the moment. The
   "come clean" twist breaks to a full navy band. Fully readable
   with no JS / reduced motion (nothing hidden — see the gate below).
   ============================================================ */

.about { width: 100%; overflow-x: clip; padding-bottom: var(--space-2xl); }

/* Reveal gating: hidden only when JS is on AND motion is welcome. */
.js [data-hero], .js [data-reveal], .js [data-photo],
.js [data-belief], .js [data-belief-title], .js [data-belief-body], .js [data-in] { opacity: 0; }
.js.reveal-off [data-hero], .js.reveal-off [data-reveal], .js.reveal-off [data-photo],
.js.reveal-off [data-belief], .js.reveal-off [data-belief-title], .js.reveal-off [data-belief-body], .js.reveal-off [data-in] { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js [data-hero], .js [data-reveal], .js [data-photo],
  .js [data-belief], .js [data-belief-title], .js [data-belief-body], .js [data-in] { opacity: 1; }
}

/* ---------- HERO ---------- */
.about-hero {
  display: grid;
  gap: clamp(var(--space-lg), 5vw, var(--space-2xl));
  align-items: center;
  max-width: 66rem;
  margin-inline: auto;
  padding: clamp(var(--space-xl), 8vh, var(--space-2xl)) var(--gutter) clamp(var(--space-lg), 5vh, var(--space-xl));
  min-height: min(84vh, 760px);
  text-align: center;
}
@media (min-width: 46rem) {
  .about-hero { grid-template-columns: 1fr 1fr; text-align: left; }
}
.about-hero__portrait { margin: 0; }
.about-hero__portrait img { width: 100%; max-width: 34rem; height: auto; display: block; margin-inline: auto; }
.about-hero__greeting {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
/* Phones: make the opening photo big and pull the greeting up close. */
@media (max-width: 45.999rem) {
  .about-hero {
    gap: var(--space-sm);
    min-height: auto;
    padding-block: clamp(var(--space-md), 5vh, var(--space-lg));
  }
  .about-hero__portrait img { max-width: 100%; }
}

/* ---------- COPY ---------- */
.about-copy {
  max-width: 40rem;
  margin: clamp(var(--space-md), 3.5vh, var(--space-lg)) auto 0;
  padding-inline: var(--gutter);
}
.about-copy, .about-copy p { font-size: var(--text-lg); line-height: var(--leading-body); }
/* Body paragraphs read left-aligned for ease. (Justified text forced
   mid-word hyphenation, which was jarring to read.) */
.about-copy p { text-align: left; }
.about-copy--lead { font-size: var(--text-xl); text-wrap: balance; }
.about-copy--beat {
  max-width: 34rem;
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  text-align: center;
  letter-spacing: var(--tracking-tight);
  /* Balanced room around a punchline beat. */
  margin: clamp(var(--space-lg), 7vh, var(--space-xl)) auto;
}
/* Forced line breaks inside a beat are web-only; phones wrap naturally. */
.beat-br { display: none; }
@media (min-width: 46rem) {
  /* Smaller on web so a beat reads on a couple of lines, not one word each. */
  .about-copy--beat { font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 48rem; }
  .beat-br { display: inline; }
}
.nowrap { white-space: nowrap; }

/* ---------- PHOTOS — contained, presented as they are ---------- */
.about-figure {
  width: 100%;
  max-width: 52rem;
  margin: clamp(var(--space-xl), 8vh, var(--space-2xl)) auto;
  padding-inline: var(--gutter);
}
.about-figure img { display: block; width: 100%; height: auto; }
.about-figcaption {
  margin-top: 0.35rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.55;
  font-weight: var(--weight-bold);
}

/* ---------- THE TWIST — full navy band, stands apart ---------- */
.about-twist {
  width: 100%;
  background: var(--color-navy);
  color: var(--color-off-white);
  margin: clamp(var(--space-2xl), 12vh, 7rem) 0;
  padding: clamp(var(--space-xl), 7vh, 3.25rem) var(--gutter);
}
.about-twist__inner { max-width: 42rem; margin-inline: auto; }
.about-twist__eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}
.about-twist__inner p { font-size: var(--text-lg); line-height: var(--leading-body); font-style: italic; }

/* Navy divider band — a full-width dark-blue break in the flow. */
.about-band {
  width: 100%;
  background: var(--color-navy);
  color: var(--color-off-white);
  margin: clamp(var(--space-2xl), 12vh, 6rem) 0;
  padding: clamp(var(--space-lg), 6vh, 3rem) var(--gutter);
  text-align: center;
}
.about-band__text {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  max-width: 40rem;
  margin-inline: auto;
}

/* Yellow emphasis on a phrase inside a beat (darkened a touch to read on
   the cream, like the closing line). */
.about-accent { color: var(--color-accent); filter: saturate(1.1) brightness(0.9); }

/* ---------- SECTION BREAK ---------- */
.about-break { display: flex; justify-content: center; padding: clamp(var(--space-xl), 9vh, var(--space-2xl)) 0; }
.about-break span { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); }
.about-break span::before, .about-break span::after {
  content: ""; position: absolute; top: 0; width: 7px; height: 7px;
  border-radius: 50%; background: var(--color-accent); opacity: 0.45;
}
.about-break span::before { left: -16px; }
.about-break span::after  { right: -16px; }

/* ---------- BELIEFS — a pinned cinema on desktop (the cover photo slides
   off to reveal the title, then each belief swaps in); a tidy stack on
   phones and with no JS. ---------- */
.about-beliefs {
  margin: clamp(var(--space-xl), 8vh, var(--space-2xl)) auto;
  padding-inline: var(--gutter);
  text-align: center;
}
.about-beliefs__stage { max-width: 48rem; margin-inline: auto; }

/* Stacked flow (mobile / no-JS): slides read top to bottom, close together. */
.ab-slide { margin-inline: auto; }
.ab-slide + .ab-slide { margin-top: clamp(var(--space-lg), 6vh, var(--space-xl)); }
.ab-slide--cover { max-width: 44rem; }
.ab-slide--cover img { display: block; width: 100%; height: auto; }

.about-beliefs__intro {
  font-weight: var(--weight-bold);
  font-size: clamp(2rem, 6.5vw, 3.4rem);
  color: var(--color-text);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
  max-width: 18ch;
  margin-inline: auto;
}
.about-belief {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Desktop: the stage pins and the slides swap horizontally. */
@media (min-width: 46rem) {
  .about-beliefs.is-cinema {
    max-width: none;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
  }
  .about-beliefs.is-cinema .about-beliefs__stage {
    position: relative;
    height: 100%;
    max-width: none;
  }
  .about-beliefs.is-cinema .ab-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(var(--space-xl), 8vh, var(--space-2xl)) var(--gutter);
  }
  .about-beliefs.is-cinema .ab-slide--cover img { max-width: min(52rem, 82vw); }
}
/* Each belief title is a yellow box. */
.about-belief__title {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-navy);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  padding: 0.32em 0.62em;
  border-radius: 20px;
  margin-bottom: var(--space-lg);
  text-wrap: balance;
}
.about-belief p {
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  color: var(--color-text);
  max-width: 34rem;
  margin-inline: auto;
  text-wrap: balance;      /* even line lengths, no ragged one-word lines */
}
.about-belief p + p { margin-top: var(--space-sm); }
/* The four skills: no bullets, centred, stacked, room to breathe. */
.about-belief__list {
  list-style: none;
  margin: var(--space-lg) auto;
  text-align: center;
}
.about-belief__list li {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  padding: 0.3rem 0;
}

/* ---------- OCCASIONAL YELLOW HIGHLIGHT BOX ----------
   For a standout line in a long stretch of copy with no image. Rounded,
   tight padding, self-contained. */
.about-box {
  width: calc(100% - 2 * var(--gutter));
  max-width: 40rem;
  margin: clamp(var(--space-lg), 6vh, var(--space-2xl)) auto;
  padding: clamp(var(--space-md), 3.5vw, var(--space-lg)) clamp(var(--space-md), 4vw, var(--space-xl));
  background: var(--color-accent);
  border-radius: 30px;
}
.about-box p {
  font-size: var(--text-lg);
  line-height: var(--leading-body);
  font-weight: var(--weight-medium);
  color: var(--color-navy);
  text-align: left;
}
/* Navy variant of the highlight box. */
.about-box--navy { background: var(--color-navy); }
.about-box--navy p { color: var(--color-off-white); }

/* ---------- CLOSE ---------- */
/* "Are you ready?" is a full-viewport block with the line set in the upper
   third, so it always lands solo and high once you scroll to it, on any
   screen. A gap above lets the paragraph before it fade off the top first. */
.about-final {
  min-height: 100vh;
  box-sizing: border-box;
  padding-top: 30vh;
  padding-inline: var(--gutter);
  margin: clamp(var(--space-2xl), 30vh, 16rem) auto 0;
  text-align: center;
  max-width: 60rem;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
}
.about-final__em { color: var(--color-accent); filter: saturate(1.1) brightness(0.9); display: inline-block; margin-top: var(--space-xs); }

/* CTA — filled navy buttons, yellow on hover (matches Qualia / Qu Anytime). */
.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, var(--space-md));
  justify-content: center;
  /* Sits a little below "Are you ready?" so the buttons arrive on a touch
     more scroll. */
  margin: clamp(var(--space-2xl), 22vh, 12rem) auto 0;
  padding-inline: var(--gutter);
}
.about-cta__link {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-off-white);
  background: var(--color-text);
  border: 1.5px solid var(--color-text);
  border-radius: 999px;
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
.about-cta__link:hover, .about-cta__link:focus-visible {
  background: var(--color-accent); border-color: var(--color-accent); color: var(--color-text);
}
.about-cta__link:active { transform: translateY(1px); }

/* Outro: "Are you ready?" + the buttons, appearing together once the
   "Maximize your experience" line has faded out. */
.about-outro {
  margin-top: clamp(var(--space-2xl), 52vh, 26rem);
  text-align: center;
  padding-inline: var(--gutter);
}
.about-outro__q {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  margin-bottom: clamp(var(--space-lg), 4vh, var(--space-xl));
}
.about-outro .about-cta { margin-top: 0; }
