/* =============================================================================
   About page (/about) — scoped .ab- classes
   Motion principles: ease-out entries, <300ms UI, transform/opacity only,
   reduced-motion honored, hover gated to fine pointers.
   ============================================================================= */

.ab {
  --ab-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ab-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* --- Hero ------------------------------------------------------------------ */
.ab-hero {
  background: var(--c-green);
  color: white;
  padding-block: var(--space-12) var(--space-10);
}

.ab-eyebrow {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--space-3);
}

.ab-hero h1 {
  color: white;
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.ab-hero-sub {
  font-size: var(--text-lg);
  color: oklch(90% 0.006 155);
  max-width: 46ch;
}

/* --- Biography ---------------------------------------------------------------
   Real grid instead of a float: portrait column stays put (sticky on tall
   viewports), prose keeps a measured line length. */
.ab-bio-grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 820px) {
  .ab-bio-grid {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: var(--space-10);
  }
  .ab-portrait {
    position: sticky;
    top: var(--space-8);
  }
}

.ab-portrait {
  margin: 0;
  align-self: start;
}

.ab-portrait img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
}

.ab-portrait figcaption {
  font-size: var(--text-xs);
  color: var(--c-ink-faint);
  margin-top: var(--space-3);
}

@media (max-width: 819px) {
  .ab-portrait img {
    margin-inline: auto;
  }
  .ab-portrait figcaption {
    text-align: center;
  }
}

.ab-bio-copy h2 {
  margin-bottom: var(--space-5);
}

.ab-bio-copy p {
  max-width: none;
  line-height: 1.7;
}

.ab-bio-copy p + p {
  margin-top: var(--space-4);
}

/* Pull quote — gold spine, the single loudest line on the page */
.ab-pull {
  margin: var(--space-8) 0;
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  border-left: 4px solid var(--c-gold);
}

.ab-pull p {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1.3;
  color: var(--c-green);
  max-width: none;
}

/* --- Values ----------------------------------------------------------------- */
.ab-values-section h2,
.ab-faq-section h2,
.ab-endorse-section h2 {
  margin-bottom: var(--space-6);
}

.ab-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}

.ab-value {
  padding: var(--space-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  border-top: 4px solid var(--c-green);
  transition: transform 200ms var(--ab-ease-out), box-shadow 200ms var(--ab-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .ab-value:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px oklch(40% 0.08 155 / 0.10);
  }
}

.ab-value h3 {
  font-size: var(--text-lg);
  color: var(--c-green);
  margin-bottom: var(--space-3);
}

.ab-value p {
  font-size: var(--text-sm);
  color: var(--c-ink-muted);
}

/* --- FAQ ---------------------------------------------------------------------
   Native <details>; answers fade-and-rise on open via @starting-style
   (degrades to instant open in older browsers). */
.ab-narrow {
  max-width: 46rem;
}

.ab-faq {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.ab-faq-item {
  border-bottom: 1px solid var(--c-border);
}

.ab-faq-item:last-child {
  border-bottom: none;
}

.ab-faq-item summary {
  font-family: var(--font-head);
  font-size: var(--text-base);
  font-weight: 700;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: background 150ms var(--ab-ease-out);
}

.ab-faq-item summary::-webkit-details-marker {
  display: none;
}

.ab-faq-item summary::after {
  content: '+';
  font-size: var(--text-xl);
  line-height: 1;
  color: var(--c-green);
  flex-shrink: 0;
  transition: transform 200ms var(--ab-ease-out);
}

.ab-faq-item[open] summary::after {
  transform: rotate(45deg);
}

@media (hover: hover) and (pointer: fine) {
  .ab-faq-item summary:hover {
    background: var(--c-surface);
  }
}

.ab-faq-item summary:active {
  transform: scale(0.995);
}

.ab-faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-base);
  color: var(--c-ink-muted);
  line-height: 1.65;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 200ms var(--ab-ease-out), transform 200ms var(--ab-ease-out);
}

.ab-faq-item[open] .ab-faq-answer {
  @starting-style {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* --- Endorsements ------------------------------------------------------------ */
.ab-endorse {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.ab-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-green);
  background: var(--c-green-light);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: var(--space-2) var(--space-4);
}

/* --- Scroll reveal -------------------------------------------------------------
   JS adds .is-visible via IntersectionObserver (once). Without JS, or with
   reduced motion, everything is simply visible. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 350ms var(--ab-ease-out), transform 350ms var(--ab-ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ab-value,
  .ab-faq-answer,
  .ab-faq-item summary::after {
    transition: none;
  }
}
