/* ===============================================================
   About — page-specific layer
   Loaded ONLY on about.html, on top of css/styles.css.
   Reuses the site's tokens and motifs; adds nothing to the global
   sheet, so the frozen homepage is untouched.

   Governing principle: the character / trust page. One left edge,
   one reading measure, everything left-aligned. Distyl-cold —
   declarative, precise, unsentimental. No display figures. Orange
   appears exactly once, on the "instrument" link.
=============================================================== */

.ab-page {
  /* Local, page-scoped aliases onto the global ink (no new colours),
     matching the case-study layer so the two pages read as one system. */
  --ab-ink-70: rgb(32 36 43 / 0.70);
  --ab-ink-60: rgb(32 36 43 / 0.60);
  --ab-ink-45: rgb(32 36 43 / 0.45);
  --ab-hair: rgb(32 36 43 / 0.18);
  --ab-rule: rgb(32 36 43 / 0.15);
  /* Same generous ~72-characters-per-line measure as the case study,
     and the same mono-label rail width, so both interior pages share
     one system. */
  --ab-measure: 72ch;
  --ab-rail: 168px;
}

/* ---------------------------------------------------------------
   Nav — current-page state (ink only; orange is reserved).
--------------------------------------------------------------- */
.ab-page .nav-links a[aria-current="page"] { color: var(--ink); }
.ab-page .nav-links a[aria-current="page"].underline-draw::after { transform: scaleX(1); }

/* ---------------------------------------------------------------
   Document column — the article carries .container too (same
   max-width:1840 / responsive padding-inline as every homepage
   section), so this page's left edge is pixel-identical to the
   nav logo's and hero-h1's. Only vertical rhythm is page-specific.
   Individual elements below still cap their own reading measure in
   ch, so text stays narrow and legible inside the wide frame — the
   same relationship hero-h1/hero-support have to .hero.container.
--------------------------------------------------------------- */
.ab-doc {
  /* Matches hero-h1's own padding-top exactly, so the conviction
     headline starts at the same vertical position the homepage
     headline does. */
  padding-block: clamp(48px, 7vh, 96px) clamp(72px, 13vh, 176px);
}

/* Generous vertical void between sections — the page breathes like a
   confident, sparse artifact rather than a uniform stack. Sibling
   combinator (not a bare .ab-block rule) so the FIRST section sits
   right at .ab-doc's own padding-top, with no gap invented above it —
   matching the case study's .cs-block + .cs-block pattern. */
.ab-block + .ab-block { margin-top: clamp(72px, 12vh, 168px); }

/* ---------------------------------------------------------------
   Section labels — tiny mono uppercase, the system voice.
--------------------------------------------------------------- */
.ab-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ab-ink-45);
}

/* ---------------------------------------------------------------
   3 · CONVICTION — the largest text on the page: the opening "hero"
   statement, sized and measured to command the page the way the
   homepage's own opening statements do, not a narrow paragraph.
--------------------------------------------------------------- */
.ab-conviction {
  /* Relative to the ABOUT eyebrow directly above it now, not the
     section's own top padding — no compounded gap. */
  margin-top: var(--s5);
  margin-inline: auto;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.36;
  letter-spacing: -0.012em;
  text-align: center;
  color: var(--ink);
  /* Full-width opening hero, on the homepage's own centered-paragraph
     measure (matches .trust-line / .beat-paragraph, 52–60ch) instead
     of a cramped ~30ch column. */
  max-width: 60ch;
}

/* ---------------------------------------------------------------
   4 & 6 · Prose blocks (What we do / Who is behind it) — the same
   label-rail grid the case study uses: mono label in a fixed left
   rail, body prose in the main column beside it, spanning the full
   content width together instead of stacking in a narrow column.
--------------------------------------------------------------- */
/* Content column bounded to the reading measure (not 1fr) — see the
   matching fix + rationale in css/case-studies.css. */
.ab-prose {
  display: grid;
  grid-template-columns: var(--ab-rail) minmax(0, var(--ab-measure));
  column-gap: var(--s5);
}

.ab-prose .ab-label {
  padding-top: 3px;
}

.ab-body {
  margin-top: 0;
  font-family: var(--serif);
  /* Matches the homepage's own body size/line-height exactly. */
  font-size: 18px;
  line-height: 1.6;
  max-width: var(--ab-measure);
  color: var(--ink);
}

/* ---------------------------------------------------------------
   5 · WHAT WE REFUSE — the same label-rail grid; the list itself
   (hairline-ruled) sits in the main column.
--------------------------------------------------------------- */
.ab-refuse-block {
  display: grid;
  grid-template-columns: var(--ab-rail) minmax(0, var(--ab-measure));
  column-gap: var(--s5);
}

.ab-refuse-block .ab-label {
  padding-top: 3px;
}

.ab-refuse {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--ab-measure);
  border-top: 1px solid var(--ab-hair);
}

.ab-principle {
  padding-block: clamp(20px, 3vh, 32px);
  border-bottom: 1px solid var(--ab-hair);
  font-family: var(--serif);
  font-size: clamp(19px, 1.9vw, 22px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
}

/* ---------------------------------------------------------------
   The single orange touch — the "instrument" link. Ink text with an
   accent hairline underline that (optionally) draws in on entry.
   Links to the measured case study.
--------------------------------------------------------------- */
.ab-instrument {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.ab-instrument::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(1);
  transform-origin: left center;
}

.ab-instrument:focus-visible {
  outline: 2px solid var(--accent-focus);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Draw-in: armed hides the hairline; .is-drawn sweeps it left→right
   once. Visible by default (unarmed) so it can never go missing. */
.ab-instrument--armed::after { transform: scaleX(0); }
.ab-instrument--armed.is-drawn::after {
  transform: scaleX(1);
  transition: transform 300ms var(--ease-out-strong);
}

/* ---------------------------------------------------------------
   7 · Close — the existing bracket-CTA + the contact line, left-aligned
   on the shared edge.
--------------------------------------------------------------- */
.ab-close { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s6); }

.ab-close .bracket-cta { font-size: 15px; padding: var(--s3) 20px; margin-left: -20px; }
.ab-close .bracket-cta::before,
.ab-close .bracket-cta::after { width: 9px; height: 9px; }

.ab-contact {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ab-ink-60);
}
.ab-contact a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------
   Motion baseline — one-way brighten. Elements are visible by
   default; JS only *arms* below-the-fold ones, then flips them to
   .is-revealed once, on entry. No-JS / reduced-motion / missed
   observer => full ink. Nothing here can leave content hidden.
--------------------------------------------------------------- */
.ab-reveal-armed {
  opacity: var(--scrub-floor, 0.22);
  transform: translateY(10px);
}

.ab-reveal-armed.is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 600ms var(--ease-out-strong),
              transform 600ms var(--ease-out-strong);
}

@media (prefers-reduced-motion: reduce) {
  .ab-reveal-armed { opacity: 1 !important; transform: none !important; }
  .ab-instrument--armed::after { transform: scaleX(1) !important; }
}

/* ---------------------------------------------------------------
   Responsive — the label-rail grids (What we do / What we refuse /
   Who is behind it) collapse to a single column; a 168px rail has no
   room on a phone.
--------------------------------------------------------------- */
@media (max-width: 639px) {
  .ab-prose,
  .ab-refuse-block {
    grid-template-columns: 1fr;
  }
  .ab-prose .ab-label,
  .ab-refuse-block .ab-label {
    padding-top: 0;
  }
  .ab-body {
    margin-top: var(--s3);
  }
  .ab-refuse {
    margin-top: var(--s3);
  }
}
