/* About block (ab-): story, values, timeline, mission. Tokens only; phone breakpoint 720. */
.ab { --ab-gap: clamp(40px, 6vw, 80px); padding-top: var(--section); padding-bottom: var(--section); }
.ab-head { display: flex; flex-direction: column; gap: 16px; max-width: var(--w-prose); margin-bottom: 32px; }
.ab-head:empty { display: none; }
.ab-h { overflow-wrap: anywhere; }
.ab-lead { margin: 0; }
.ab-empty { color: var(--muted); }
.ab-aside, .ab-side { align-self: start; }

/* ---- story: a sticky photo stage beside a long reading column; the pull quote breaks the text ---- */
.ab-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--ab-gap); align-items: start; }
.ab-side { position: sticky; top: 24px; }
.ab-stage { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--placeholder); }
.ab-stage > .k-photo, .ab-stage > .ab-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ab-ph { text-align: center; padding: 12px; }
.ab-text { min-width: 0; max-width: 62ch; }
.ab-story .ab-head { margin-bottom: 28px; }
.ab-prose { display: flex; flex-direction: column; gap: 1.1em; font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
.ab-prose > * { margin: 0; }
.ab-prose :is(h1, h2, h3) { font-size: var(--t-h3); margin-top: .5em; }
.ab-prose :is(ul, ol) { padding-left: 1.25em; display: flex; flex-direction: column; gap: .4em; }
.ab-quote { position: relative; margin-block: 20px; padding-top: 24px; }
.ab-quote::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 3px; border-radius: 2px; background: var(--brand); }
.ab-quote blockquote { margin: 0; quotes: "\201C" "\201D"; }
.ab-quote blockquote p { font: 600 clamp(26px, 3vw, 36px)/1.18 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.ab-quote blockquote p::before { content: open-quote; }
.ab-quote blockquote p::after { content: close-quote; }
.ab-quote figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; font-weight: 500; }
.ab-since { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.ab-since .k-num { margin-left: 6px; color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }

/* ---- values: heading, then one large value on a soft panel; the others are ruled rows beside it ---- */
.ab-vals { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: var(--ab-gap); align-items: start; }
.ab-vals .ab-head { grid-column: 1; }
.ab-v1 { grid-column: 1; display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--brand-soft); }
.ab-v1 .ab-mark { width: 56px; height: 56px; background: var(--surface); }
.ab-v1 .ab-vtitle { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -0.02em; }
.ab-v1 .ab-vtext { font-size: var(--t-lead); color: var(--ink); }
.ab-vrows { grid-column: 2; grid-row: 1 / span 2; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.ab-vrow { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.ab-mark { width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 17px; font-weight: 700; flex: none; }
.ab-vtitle { overflow-wrap: anywhere; }
.ab-vrow .ab-vtitle { font-size: 20px; }
.ab-vtext { color: var(--muted); overflow-wrap: anywhere; }
.ab-vrow .ab-vtext { margin-top: 6px; }

/* ---- timeline: a sticky heading beside a line that draws itself, one milestone at a time ---- */
.ab-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--ab-gap); align-items: start; }
.ab-aside { position: sticky; top: 24px; }
.ab-aside .ab-head { margin-bottom: 0; }
.ab-line { --ab-year: 140px; --ab-rail: 44px; --ab-ny: 16px; --ab-step: clamp(110ms, calc(1600ms / var(--ab-n)), 300ms); list-style: none; margin: 0; padding: 0; }
.ab-ms { position: relative; display: grid; grid-template-columns: var(--ab-year) var(--ab-rail) minmax(0, 1fr); padding-bottom: 44px; }
.ab-ms:last-child { padding-bottom: 0; }
.ab-year { grid-column: 1; grid-row: 1; text-align: right; font: 700 clamp(22px, 2.4vw, 30px)/1.1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ab-ms-body { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; gap: 6px; padding-top: 2px; min-width: 0; }
.ab-ms-title { overflow-wrap: anywhere; }
.ab-text-sm { color: var(--muted); max-width: 52ch; overflow-wrap: anywhere; }
.ab-node { position: absolute; z-index: 1; left: calc(var(--ab-year) + var(--ab-rail) / 2 - 8px); top: calc(var(--ab-ny) - 8px); width: 16px; height: 16px; border-radius: 50%; background: var(--brand); border: 2px solid var(--brand); box-shadow: 0 0 0 4px var(--ground); }
.ab-seg { position: absolute; left: calc(var(--ab-year) + var(--ab-rail) / 2 - 1px); top: var(--ab-ny); width: 2px; height: 100%; background: var(--line); }
.ab-seg::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform-origin: top; }
/* armed by mount(): the line is empty and the milestones wait; once it scrolls in, each segment draws and lights the next node */
.ab[data-armed]:not([data-drawn]) .ab-seg::after { transform: scaleY(0); }
.ab[data-armed]:not([data-drawn]) .ab-node { background: var(--ground); border-color: var(--field); }
.ab[data-armed]:not([data-drawn]) :is(.ab-year, .ab-ms-body) { opacity: 0; transform: translateY(10px); }
.ab[data-drawn] .ab-seg::after { transition: transform calc(var(--ab-step) * 1.15) calc(var(--i) * var(--ab-step)) var(--ease); }
.ab[data-drawn] .ab-node { transition: background-color var(--d) calc(var(--i) * var(--ab-step)) var(--ease), border-color var(--d) calc(var(--i) * var(--ab-step)) var(--ease); }
.ab[data-drawn] :is(.ab-year, .ab-ms-body) { transition: opacity var(--d-enter) calc(var(--i) * var(--ab-step)) var(--ease), transform var(--d-enter) calc(var(--i) * var(--ab-step)) var(--ease); }

/* ---- mission: the statement in display type; lead and principles sit indented beneath it ---- */
.ab[data-variant="mission"] .ab-head { max-width: none; margin-bottom: 0; }
.ab[data-variant="mission"] .ab-h { max-width: 22ch; font-size: clamp(34px, 5.6vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -0.03em; }
.ab-lower { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; margin-top: clamp(32px, 5vw, 56px); }
.ab-lower > * { grid-column: 4 / -1; }
.ab-pr { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--ab-n), minmax(0, 1fr)); gap: 32px; }
.ab-pr-item { position: relative; padding-top: 20px; border-top: 1px solid var(--line); font-size: 20px; line-height: 1.35; font-weight: 500; overflow-wrap: anywhere; }
.ab-pr-item::before { content: ""; position: absolute; top: -2px; left: 0; width: 32px; height: 3px; border-radius: 2px; background: var(--brand); }

/* tablet: the sticky columns lose their stickiness and stack */
@media (max-width: 960px) {
  .ab-story, .ab-split, .ab-vals { grid-template-columns: 1fr; }
  .ab-side, .ab-aside { position: static; }
  .ab-split { gap: 32px; }
  .ab-stage { aspect-ratio: 5 / 4; }
  .ab-vals .ab-head { margin-bottom: 24px; }
  .ab-vrows { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .ab-lower > * { grid-column: 1 / -1; }
  .ab-lower { margin-top: 32px; }
}

/* phone: the photo goes edge to edge and the text rises over it as a sheet */
@media (max-width: 720px) {
  .ab[data-variant="story"] { padding-top: 24px; padding-bottom: 0; }
  .ab-story { gap: 0; }
  .ab-side { margin: 0 calc(var(--pad) * -1); }
  .ab-stage { border-radius: 0; }
  .ab-text { position: relative; max-width: none; margin: -24px calc(var(--pad) * -1) 0; padding: 28px var(--pad) var(--section); background: var(--ground); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; }
  .ab-prose { font-size: 16px; }
  .ab-since { margin-top: 32px; }
  .ab-pr { grid-template-columns: 1fr; gap: 24px; }
  .ab-vrow { padding: 22px 0; column-gap: 16px; }
  /* timeline: year above the text, the line on the left */
  .ab-line { --ab-year: 0px; --ab-rail: 28px; --ab-ny: 13px; }
  .ab-ms { padding-bottom: 36px; row-gap: 4px; }
  .ab-year { grid-column: 3; grid-row: 1; text-align: left; font-size: 22px; color: var(--brand); }
  .ab-ms-body { grid-column: 3; grid-row: 2; padding-top: 0; }
  .ab-ms:not(:has(.ab-year)) .ab-ms-body { grid-row: 1; padding-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .ab[data-armed]:not([data-drawn]) .ab-seg::after { transform: none; }
  .ab[data-armed]:not([data-drawn]) .ab-node { background: var(--brand); border-color: var(--brand); }
  .ab[data-armed]:not([data-drawn]) :is(.ab-year, .ab-ms-body) { opacity: 1; transform: none; }
  .ab-seg::after, .ab-node, .ab-year, .ab-ms-body { transition: none !important; }
}
