/* Zone Theta — About page (owner pick 2026-10-08: across the table). Page parts use .at-*,
   the reading pieces (type, prose, portrait, qualifications, values) use .ab-*.
   A long read: the type is set for reading first (18px body, 1.72 leading, ≤ 64ch), and motion stays
   small: each part arrives once with a soft fade, and the portrait settles in. Copy: content/about.md. */

:root { --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1); }
html.motion { scroll-behavior: smooth; }

/* ---------- Shared type ---------- */
/* His name sits a size below the home hero, so it balances his face in the portrait panel */
.ab-h1 {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.25rem, 3.8vw, 3.5rem); line-height: 1.03; letter-spacing: -0.025em;
  text-wrap: balance;
}
.ab-belief {
  margin: 0;
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.125rem); line-height: 1.28; letter-spacing: -0.012em;
  text-wrap: pretty;
}
.ab-h2 {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.875rem, 3.2vw, 2.75rem); line-height: 1.1; letter-spacing: -0.02em;
  text-wrap: balance;
}
.ab-h3 {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.375rem, 1.9vw, 1.75rem); line-height: 1.18; letter-spacing: -0.01em;
}
.ab-sub {
  margin: 12px 0 0;
  font-family: var(--font-display); font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; color: var(--muted);
}

/* Reading text */
.ab-prose { max-width: 64ch; }
.ab-prose p {
  margin: 0;
  font-size: 1.125rem; line-height: 1.72; text-wrap: pretty;
  color: color-mix(in oklab, var(--ink) 90%, var(--paper));
}
.ab-prose p + p { margin-top: 1.05em; }

/* Portrait: Zach's headshot */
.ab-portrait { margin: 0; }
.ab-photo { overflow: hidden; aspect-ratio: 4 / 5; border-radius: 16px; background: var(--paper-deep); }
.ab-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.ab-caption { margin-top: 12px; font-size: 0.875rem; line-height: 1.45; color: var(--muted); }

/* Qualifications: their own part, a two-column ruled table (owner pick 2026-10-22, after In Common
   With and Joby Aviation). Each line is his words in two parts: the lead in Gelica, then the rest. */
.ab-quals {
  margin: 0; padding: 0; list-style: none;
  border-top: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
}
.ab-qual { display: grid; gap: 6px; padding: 18px 0 20px; }
.ab-qual + .ab-qual { border-top: 1px solid var(--line); }
.ab-qual-lead { font-family: var(--font-display); font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.25; letter-spacing: -0.01em; }
.ab-qual-rest { font-size: 1.0625rem; line-height: 1.55; color: color-mix(in oklab, var(--ink) 90%, var(--paper)); }
@media (min-width: 640px) {
  .ab-qual { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 32px; align-items: baseline; padding: 22px 0 24px; }
}

/* Values: name, then his full text; nothing hidden */
.ab-num { color: var(--muted); }
.ab-value { padding-block: 28px; border-top: 1px solid var(--line); }
.ab-value .ab-prose { margin-top: 14px; }

/* Parts land below the nav tab when linked to */
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* ---------- Arrivals: each part once, as one group (transform/opacity only) ---------- */
.motion [data-ab-reveal] .ab-fade { opacity: 0; transform: translateY(12px); }
.motion [data-ab-reveal].is-in .ab-fade {
  opacity: 1; transform: none;
  transition: opacity 800ms ease, transform 1000ms var(--ease-reveal);
  transition-delay: calc(100ms + var(--i, 0) * 90ms);
}
.motion .ab-photo img { transform: scale(1.05); }
.motion .is-in .ab-photo img { transform: none; transition: transform 1600ms var(--ease-reveal); }

/* =====================================================================
   Across the table (owner pick 2026-10-08)
   Desktop: the portrait panel fills the left column, from just under the nav to the bottom of the
   screen, and stays there while the story scrolls (after KÖPPEN and The Performance Lab).
   Phones and tablets: the portrait comes first, then the page reads straight down.
   ===================================================================== */
.at { --at-gap: 20px; padding-block: clamp(40px, 6vw, 88px) clamp(96px, 11vw, 160px); }
.at-grid { display: grid; gap: 40px; }
.at-side .ab-portrait { width: min(100%, 420px); }
@media (min-width: 1024px) {
  /* The panel starts where it will stick, so it never jumps as you begin to scroll */
  .at { padding-top: var(--at-gap); }
  .at-grid { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 112px); align-items: start; }
  .at-side { position: sticky; top: calc(var(--nav-h) + var(--at-gap)); }
  .at-side .ab-portrait { width: 100%; }
  /* Screen height, less the nav, the gaps and the caption line; never shorter than 440px */
  .at-side .ab-photo { aspect-ratio: auto; height: max(440px, calc(100vh - var(--nav-h) - 2 * var(--at-gap) - 34px)); }
  .at-side .ab-caption { margin-top: 10px; }
  .at-main { padding-top: clamp(24px, 4vh, 56px); }
}

.at-intro .ab-belief { margin-top: 28px; }
.at-intro .ab-prose { margin-top: 28px; }
.at-part { margin-top: clamp(72px, 9vw, 120px); padding-top: 32px; border-top: 1px solid var(--line); }
.at-part > .ab-h2 { margin-bottom: 28px; }
.at-values .ab-sub { margin-bottom: 28px; }
