/* Scott Wagner — About page.
 *
 * Modelled on the ipqld.land home-page treatments (Brett built that one over
 * weeks). Same beats, Wagner palette:
 *   1. Hero — crossfading background, kicker + big black headline + lede
 *   2. Stats board — 4 flipping tiles on Bondi, dataset carousel
 *   3. Video — full-width Vimeo embed
 *   4. Welcome — photograph behind, right-aligned text with darkening gradient
 *   5. Photo strip — horizontally scrolling band
 *   6. Scroll story — sticky image, paragraphs fade as each crosses centre
 *   7-8. Story cards — full-bleed image, editorial copy with directional scrim
 *   9. CTA — bleed image, overlay
 *
 * Top chrome (OCEAN/LAND tickers + nav) comes from tickers.css. No timeline. */

body.about-page {
  background: #000;
  color: #fff;
  /* Pad the top by the two tickers so first section isn't hidden behind them,
   * pad the bottom by the nav+social stack so the last section can scroll up
   * above the fixed bars. */
  padding-top: calc(var(--ticker-h) * 2);
  padding-bottom: var(--bottom-stack-h);
}

/* Reusable button — same shape used in hero + CTA. */
.btn {
  display: inline-flex; align-items: center;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.btn--primary {
  background: var(--bondi);
  color: #fff;
  border: 1px solid var(--bondi);
}
.btn--primary:hover { background: #00929a; border-color: #00929a; }
.btn--ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.18); }

/* ────────────────────────────────────────────────────────────
 * 1. HERO
 * ──────────────────────────────────────────────────────────── */
.about-hero {
  position: relative;
  /* box-sizing border-box so the top padding (used to clear the tickers) is
   * absorbed inside the 90vh height instead of pushing the section taller
   * than the viewport. tickers.css doesn't set a global *,*::before reset,
   * so we have to be explicit here. */
  box-sizing: border-box;
  height: 90vh;
  min-height: 640px;
  overflow: hidden;
  /* Counter the body's top padding so the hero genuinely starts under the
   * nav — otherwise we'd see the body background bleed through. */
  margin-top: calc(var(--ticker-h) * -2);
  padding-top: calc(var(--ticker-h) * 2);
}
.about-hero__slideshow {
  position: absolute; inset: 0;
  z-index: 0;
  background: #000;
}
.about-hero__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  will-change: opacity;
}
.about-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.25) 100%);
  z-index: 1;
}
.about-hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex; flex-direction: column;
  justify-content: center;
}
.about-hero__kicker {
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  letter-spacing: 0.32em;
  font-weight: 600;
  margin: 0 0 18px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.about-hero__title {
  margin: 0 0 24px;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-shadow: 0 4px 24px rgba(0,0,0,0.55);
  max-width: 720px;
}
.about-hero__accent { color: var(--bondi); }
.about-hero__lede {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 0 32px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}
.about-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.about-hero__scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase;
}
.about-hero__scroll-cue svg { animation: about-bounce 1.6s ease-in-out infinite; }
@keyframes about-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ────────────────────────────────────────────────────────────
 * 2. STATS BOARD
 * ──────────────────────────────────────────────────────────── */
.about-stats {
  background: var(--bondi);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.about-stats__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}
.about-stats__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.about-stats__category {
  margin: 0;
  font-size: 13px; letter-spacing: 0.22em;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  display: inline-flex; align-items: center; gap: 12px;
  /* Animated wrapper; the inner span gets fade transitions in JS. */
}
.about-stats__bullet {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
.about-stats__category-text {
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.about-stats__category-text.is-changing {
  opacity: 0;
  transform: translateY(-10px);
}
.about-stats__dots {
  display: flex; gap: 8px;
}
.about-stats__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.32);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.about-stats__dot:hover { background: rgba(255,255,255,0.55); }
.about-stats__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.about-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-tile {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 28px 22px;
  position: relative;
  overflow: hidden;
  min-height: 168px;
  display: flex; flex-direction: column;
  justify-content: center;
}
.stat-tile__value {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  margin: 0 0 12px;
  /* Flip animation — value pops in when revealed. */
  animation: stat-flip-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.stat-tile__label {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
  margin: 0;
}
@keyframes stat-flip-in {
  0%   { transform: rotateX(-90deg) translateY(-10px); opacity: 0; }
  60%  { transform: rotateX(8deg)   translateY(0);     opacity: 1; }
  100% { transform: rotateX(0)      translateY(0);     opacity: 1; }
}
.about-stats__source {
  text-align: center;
  margin: 32px 0 0;
  font-size: 11px;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.04em;
}

/* ────────────────────────────────────────────────────────────
 * 2b. STATIC CLIENT-WORDS PANEL — 5 tiles, no rotation.
 *     Variant of .about-stats; tiles hold one phrase each instead of
 *     a number+label pair. Flat layout, no flip animation.
 * ──────────────────────────────────────────────────────────── */
.about-stats--static .about-stats__head { justify-content: center; }
.about-stats__grid--five {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.stat-tile--word {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 132px;
  padding: 22px 16px;
  /* Override the flex column of the rotating .stat-tile so the word
   * lines up dead-centre in both axes. */
}
.stat-tile__word {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: #fff;
  text-wrap: balance;
}

/* ────────────────────────────────────────────────────────────
 * 3. VIDEO
 * ──────────────────────────────────────────────────────────── */
.about-video {
  background: #0a0a0a;
  padding: 88px 0 96px;
}
.about-video__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.about-video__head {
  text-align: center;
  margin: 0 0 40px;
}
.about-video__head h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.about-video__accent { color: var(--bondi); }
.about-video__lede {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  margin: 0;
  max-width: 700px;
  margin: 0 auto;
}
.about-video__frame {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(0,0,0,0.6);
}
.about-video__frame iframe {
  width: 100%; height: 100%;
  border: 0; display: block;
}
.about-video__footnote {
  margin: 28px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  line-height: 1.6;
}

/* ────────────────────────────────────────────────────────────
 * 4. WELCOME — photograph behind, text right
 * ──────────────────────────────────────────────────────────── */
.about-welcome {
  position: relative;
  overflow: hidden;
  background: #000;
}
.about-welcome__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.about-welcome__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 35%, rgba(0,0,0,0.78) 95%);
  z-index: 1;
}
.about-welcome__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 28px 110px;
  display: flex;
  justify-content: flex-end;
}
.about-welcome__inner > * {
  text-align: right;
}
.about-welcome__title {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 28px;
  max-width: 620px;
  margin-left: auto;
  text-shadow: 0 3px 12px rgba(0,0,0,0.55);
}
.about-welcome__accent { color: var(--bondi); }
.about-welcome__body {
  max-width: 560px;
  margin-left: auto;
}
.about-welcome__body p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 18px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.about-welcome__lede {
  font-size: 21px !important;
  color: #fff !important;
  font-weight: 500;
}

/* ────────────────────────────────────────────────────────────
 * 5. PHOTO STRIP
 * ──────────────────────────────────────────────────────────── */
.about-strip {
  overflow: hidden;
  border-top: 1px solid var(--bondi);
  border-bottom: 1px solid var(--bondi);
  background: #000;
}
.about-strip__track {
  display: flex;
  /* No `gap` — gap creates a sub-pixel mismatch at the 60s loop seam where
   * the duplicate stitches back to the start. Use a right border on each
   * frame instead so the Bondi line is part of the frame's own width and
   * the animation maths stay exact. */
  background: var(--bondi);
  animation: about-strip-scroll 60s linear infinite;
  width: max-content;
}
.about-strip__frame {
  flex-shrink: 0;
  width: 540px;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
  border-right: 1px solid var(--bondi);
}
.about-strip__frame:last-child { border-right: none; }
.about-strip__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes about-strip-scroll {
  /* The track contains 2 copies of the frame list — at -50% it loops seamlessly. */
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ────────────────────────────────────────────────────────────
 * 6. SCROLL STORY — sticky image, paragraphs fade as each crosses centre
 * ──────────────────────────────────────────────────────────── */
.about-story {
  position: relative;
  background: #000;
}
.about-story__sticky {
  position: sticky;
  top: calc(var(--ticker-h) * 2);
  height: calc(100vh - var(--ticker-h) * 2);
  overflow: hidden;
}
.about-story__sticky img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-story__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
}
.about-story__column {
  position: relative;
  /* Pull the column up over the sticky image so paragraphs scroll across the
   * fixed photograph. */
  margin-top: calc(-100vh + var(--ticker-h) * 2);
  padding: 28vh 0 40vh;
  z-index: 2;
}
.about-story__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}
.about-story__kicker {
  display: inline-block;
  font-size: 13px; letter-spacing: 0.32em;
  color: var(--bondi);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 22px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.about-story h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 48px;
  color: #fff;
  text-shadow: 0 3px 14px rgba(0,0,0,0.7);
}
.about-story p {
  font-size: 22px;
  line-height: 1.55;
  margin: 0 0 80px;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}
.scroll-fade {
  opacity: 0.3;
  transition: opacity 0.45s ease, transform 0.6s ease;
  transform: translateY(20px);
}
.scroll-fade.is-in-focus {
  opacity: 1;
  transform: translateY(0);
}
.about-story__progress {
  position: fixed;
  top: 50%; right: 18px;
  transform: translateY(-50%);
  width: 4px;
  height: 220px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  z-index: 5;
  display: flex; flex-direction: column-reverse;
  align-items: center;
}
.about-story__progress span {
  position: absolute;
  top: 100%;
  margin-top: 10px;
  font-size: 9px; letter-spacing: 0.32em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  writing-mode: horizontal-tb;
  left: 50%; transform: translateX(-50%);
  white-space: nowrap;
}
.about-story__progress-bar {
  width: 100%;
  background: var(--bondi);
  border-radius: 2px;
  height: 0%;
  transition: height 0.18s linear;
}

/* ────────────────────────────────────────────────────────────
 * 7-8. STORY CARDS
 * ──────────────────────────────────────────────────────────── */
.story-card {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  background: #000;
}
.story-card__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.story-card__scrim {
  position: absolute; inset: 0;
  z-index: 1;
}
.story-card__scrim--left {
  background: linear-gradient(90deg, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.5) 40%, transparent 100%);
}
.story-card__scrim--right {
  background: linear-gradient(270deg, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.5) 40%, transparent 100%);
}
.story-card__inner {
  position: relative;
  z-index: 2;
  min-height: 80vh;
  display: flex; align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 28px;
}
.story-card__inner--left { justify-content: flex-start; }
.story-card__inner--right { justify-content: flex-end; }
.story-card__inner > * { max-width: 560px; }
.story-card__inner--left > * { text-align: left; }
.story-card__inner--right > * { text-align: right; }
.story-card__location {
  font-size: 12px; letter-spacing: 0.22em;
  color: var(--bondi);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.story-card__title {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 28px;
  color: #fff;
  text-shadow: 0 3px 14px rgba(0,0,0,0.7);
}
.story-card__body p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  margin: 0 0 16px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}
/* Ladder variant — anaphoric short lines (e.g. "Relief that…") read as a list
 * with each line at full weight and a touch of breathing room. */
.story-card__body--ladder p {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 10px;
  color: #fff;
}
.story-card__body--ladder p:first-child {
  font-weight: 700;
}
.story-card__body--ladder p:last-child {
  margin-bottom: 0;
}

/* ────────────────────────────────────────────────────────────
 * 9. CTA
 * ──────────────────────────────────────────────────────────── */
.about-cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.about-cta__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.about-cta__scrim {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}
.about-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}
.about-cta__inner h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 4.5vw, 48px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 18px;
  text-shadow: 0 3px 14px rgba(0,0,0,0.6);
}
.about-cta__accent { color: var(--bondi); }
.about-cta__inner p {
  font-size: 19px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 32px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.about-cta__ctas {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center;
}

/* ────────────────────────────────────────────────────────────
 * MOBILE
 * ──────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .about-hero { height: 75vh; min-height: 520px; }
  .about-hero__title { font-size: clamp(36px, 9vw, 56px); }
  .about-hero__lede { font-size: 16px; }
  .about-stats { padding: 56px 0; }
  .about-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .about-stats__grid--five { grid-template-columns: repeat(2, 1fr); }
  .stat-tile { min-height: 132px; padding: 20px 16px; }
  .stat-tile__value { font-size: 26px; }
  .stat-tile--word { min-height: 96px; padding: 16px 12px; }
  .stat-tile__word { font-size: 17px; }
  .about-video { padding: 56px 0 64px; }
  .about-welcome__inner { padding: 64px 22px 80px; }
  .about-welcome__inner > * { text-align: left; }
  .about-welcome__title,
  .about-welcome__body { margin-left: 0; }
  .about-welcome__scrim {
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.85) 60%);
  }
  .about-strip__frame { width: 320px; }
  .about-story__sticky { height: 60vh; top: calc(var(--ticker-h) * 2); }
  .about-story__column { margin-top: -60vh; padding: 12vh 0 30vh; }
  .about-story p { font-size: 18px; margin-bottom: 56px; }
  .about-story__progress { display: none; }
  .story-card { min-height: 60vh; }
  .story-card__inner { min-height: 60vh; padding: 56px 22px; }
  .story-card__inner > * { max-width: none; }
  .story-card__scrim--left,
  .story-card__scrim--right {
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.85) 60%);
  }
  .about-cta { padding: 72px 0; }
}
