/* about.css: load AFTER index.css so these rules win at equal specificity */

/* ---------- Page: fills one screen, scrolls only if the screen is too short ---------- */
.about {
    min-height: calc(100svh - var(--crisis-bar-h));
    display: grid;
    align-content: center;
    padding: 6rem 0 2rem;
  }
  
  .about-intro {
    text-align: center;
    margin-bottom: clamp(1.2rem, 3.5vh, 2.5rem);
  }
  
  .about .about-intro h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.9rem, min(5.2vw, 7.5vh), 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    max-width: 18ch;
    margin: 0.6rem auto 0;
  }
  
  .statements {
    --keyword-cycle-duration: 4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 3vh, 1.8rem);
  }
  
  /* ---------- Stage: two columns on desktop, stacked on small screens ---------- */
  .statement-stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    width: 100%;
    color: var(--sage);
  }
  
  .statement-panel {
    display: flex;
    flex-direction: column;
    gap: clamp(0.8rem, 2vh, 1.4rem);
    padding: clamp(1.4rem, min(3vw, 5vh), 3rem);
    border-radius: var(--radius-lg);
    background: var(--slate);
  }
  
  .statement-panel h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
  }
  
  .statement-text {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.05rem, min(1.7vw, 3vh), 1.55rem);
    line-height: 1.4;
    letter-spacing: -0.015em;
  }
  
  .statement-text mark {
    padding: 0.05em 0.2em;
    margin-inline: -0.2em;
    border-radius: 0.3em;
    background: none;
    color: inherit;
    transition:
      background 0.3s,
      opacity 0.3s;
  }
  
  .statement-text mark.is-lit {
    background: rgba(195, 211, 208, 0.24);
  }
  
  .statement-text mark.is-dim {
    opacity: 0.65;
  }
  
  .note {
    min-height: 3.2em;
    max-width: 44ch;
    color: rgba(226, 228, 210, 0.8);
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    line-height: 1.55;
  }
  
  .note.is-changing {
    animation: note-in 0.35s ease;
  }
  
  /* ---------- Progress bar that times each keyword ---------- */
  .keyword-progress {
    width: 2.5rem;
    height: 2px;
    margin-top: 0.25rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(226, 228, 210, 0.18);
  }
  
  .keyword-progress-fill {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--teal-soft);
  }
  
  @media (prefers-reduced-motion: no-preference) {
    .keyword-progress.is-ticking .keyword-progress-fill {
      animation: keyword-progress var(--keyword-cycle-duration) linear;
    }
  
    /* Pause while hovering or focusing */
    .statement-panel:hover .keyword-progress-fill,
    .statement-panel:focus-within .keyword-progress-fill,
  
    /* Pause while pressing and holding */
    .statement-panel:active .keyword-progress-fill {
      animation-play-state: paused;
    }
  }
  @keyframes keyword-progress {
    to {
      transform: scaleX(1);
    }
  }
  
  @keyframes note-in {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
  
    to {
      opacity: 1;
      transform: none;
    }
  }
  
  /* ---------- Small screens ---------- */
  @media (max-width: 860px) {
    .about {
      padding-top: 5.5rem;
      align-content: start;
    }
  
    .statement-stage {
      grid-template-columns: 1fr;
      gap: 0;
      overflow: hidden;
      border-radius: var(--radius-lg);
      background: var(--slate);
    }

    .statement-panel {
      border-radius: 0;
      background: transparent;
    }

    .statement-panel + .statement-panel {
      border-top: 1px solid rgba(226, 228, 210, 0.25);
    }
  }
  
  @media (max-width: 520px) {
    .about .about-intro h1 {
      font-size: 1.9rem;
    }
  
    .statement-panel {
      padding: 1.3rem;
      gap: 0.8rem;
    }
  
  }
  
  @media (prefers-reduced-motion: reduce) {
    .statement-text mark {
      transition: none;
    }
  
    .note.is-changing {
      animation: none;
    }
  
    .keyword-progress {
      display: none;
    }
  }
