/* ============================================
   ABOUT — Editorial / image-led
   Used only on /about. Self-contained.
   The right column swaps through 3 stages
   in the same position: title → bio → journey.
   ============================================ */

/* ============================================
   Intro layout — image left, swap-stage right
   ============================================ */
.about-intro {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h, 55px) + 60px) 6vw 60px;
}

.about-intro-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.about-intro-image {
  width: 100%;
  max-width: 480px;
}

.about-intro-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-intro-text {
  width: 100%;
  min-width: 0; /* allow grid item to shrink */
}

/* ============================================
   Swap container — stages overlay in same position
   ============================================ */
.about-swap {
  position: relative;
  min-height: clamp(360px, 60vh, 580px);
}

.about-swap-stage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 900ms cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s 900ms;
}

.about-swap-stage.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 900ms cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s 0s;
}

/* ============================================
   Stage 1 — Title + animated line
   ============================================ */
.about-statement-text {
  font-size: clamp(44px, 8vw, 120px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 14ch;
  margin: 0;
}

.about-statement-line {
  position: relative;
  height: 1px;
  width: 100%;
  max-width: 480px;
  background: transparent;
  margin-top: clamp(28px, 4vh, 48px);
  overflow: visible;
}

.about-statement-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--color-text) 18%,
    var(--color-text) 82%,
    transparent 100%
  );
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  animation: about-line-draw-once 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes about-line-draw-once {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* ============================================
   Stage 2 — Bio content + right arrow
   ============================================ */
.about-bio-lead {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 var(--space-3);
}

.about-bio-body {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}

.about-bio-body:last-of-type {
  margin-bottom: var(--space-3);
}

.about-bio-closer {
  color: var(--color-text-muted);
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: 0.02em;
  margin: var(--space-2) 0 var(--space-3);
}

/* Right-pointing arrow CTA inside Stage 2 */
.about-swap-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-3);
  background: none;
  border: none;
  padding: 8px 0;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-light);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease);
}

.about-swap-arrow:hover {
  color: var(--color-text);
}

.about-swap-arrow-glyph {
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  display: inline-block;
  animation: about-arrow-nudge 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes about-arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}

/* Back arrow — mirror of the right arrow */
.about-swap-arrow-back {
  margin-top: var(--space-4);
}

.about-swap-arrow-glyph-back {
  animation: about-arrow-nudge-back 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes about-arrow-nudge-back {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-6px); }
}

/* Row of two arrows (back + forward) for journey stage */
.about-swap-arrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.about-swap-arrow-row .about-swap-arrow,
.about-swap-arrow-row .about-swap-arrow-back {
  margin-top: 0;
}

/* ============================================
   Stage 3 — Journey timeline
   ============================================ */
.about-timeline-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin: 0 0 var(--space-4);
}

.about-timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-timeline-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-2);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: baseline;
}

.about-timeline-list li:last-child {
  border-bottom: none;
}

.about-timeline-year {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
}

.about-timeline-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
}

/* ============================================
   Stage 4 — Network (collaborators / disciplines)
   ============================================ */
.about-network-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin: 0 0 var(--space-3);
}

.about-network-lead {
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

.about-network-body {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  color: var(--color-text);
  margin: 0 0 var(--space-4);
  max-width: 42ch;
  text-wrap: pretty;
}

.about-network-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.about-network-list li {
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--color-text);
  font-weight: 400;
}

/* ============================================
   Mobile
   ============================================ */
@media (max-width: 768px) {
  .about-intro {
    min-height: auto;
    padding: calc(var(--nav-h, 55px) + 40px) 24px 48px;
  }

  .about-intro-inner {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    text-align: left;
  }

  .about-intro-image {
    max-width: 320px;
    margin: 0 auto;
  }

  .about-swap {
    min-height: clamp(320px, 70vh, 520px);
  }

  .about-statement-text {
    max-width: 100%;
  }

  .about-statement-line {
    max-width: 100%;
  }

  .about-timeline-list li {
    grid-template-columns: 56px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-swap-arrow-glyph { animation: none; }
  .about-statement-line::after { animation: none; transform: scaleX(1); }
  .about-swap-stage,
  .about-swap-stage.is-active {
    transition: opacity 200ms linear, visibility 0s 0s;
  }
}
