/* ─────────────────────────────────────────────────────────────────────────────
   about.css — the About page, and nothing else.

   Loaded by `partials/head.php` only on the `about` route (route KEY → file
   name), beside `ros.css` and `landing.css`. Nobody else appends to this file,
   which is the whole reason it exists: five people redesigning five marketing
   pages into one stylesheet is five ways to overwrite each other.

   ── why every measurement is in here and not in the markup ─────────────────

   `tools/build-css.php` emits ONLY the utility classes it finds already used
   somewhere in the tree. A utility nobody has used before compiles to nothing
   at all: no error, `php -l` passes, the markup reads correctly, and the page
   renders wrong. So an arbitrary bracket utility invented for a layout --
   `lg:grid-cols-[minmax(0,.78fr)_1fr]`, `text-[clamp(2.8rem,7vw,5.5rem)]` --
   is a silent failure waiting for a reader.

   Every grid, every clamp and every type size on this page is therefore a real
   class declared below. The page keeps utilities only where it reuses ones the
   build has already compiled.

   ── colour ────────────────────────────────────────────────────────────────

   No new colours. Every value here is a token from `ros.css`, so both skins and
   every venue theme follow without a second rule: the champagne is --gold-300 /
   --gold-500 / --line-gold, the grounds are --ink-800 / --ink-850 / --ink-950,
   the text is --warm-100 / --warm-300 / --warm-500 / --warm-700.

   ── and no photography ────────────────────────────────────────────────────

   There is no licensed imagery in this repository, so the "visual" half of each
   alternating section is built from type, rule and gradient -- a plate carrying
   a numeral, a hairline and one icon. A stock photograph of somebody else's
   restaurant would be the same hazard as a drafted mission statement: it reads
   as finished and it is not ours.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── shell ─────────────────────────────────────────────────────────────────── */

/*
 * `width: 100%` is load-bearing, and the reason is not obvious enough to leave
 * to the next reader.
 *
 * `layouts/blank.php` wraps the page in `.stage`, which carries the utilities
 * `flex flex-col` — so a wrapper placed at the top level of a page is a FLEX
 * ITEM in a column container. An item with `margin-inline: auto` has auto
 * margins on the CROSS axis, and auto margins there cancel the default
 * stretch: the item is then sized by its content instead. Measured on this
 * page before the line was added — the contents strip came out 870px and the
 * draft panel 722px, each shrunk to its own fit-content, while every wrapper
 * nested inside a `<section>` sat correctly at 1180.
 *
 * It renders as "two blocks are mysteriously narrower than the rest of the
 * page", with no error anywhere. Declaring the width makes the wrapper behave
 * the same whether or not a section happens to sit between it and `.stage`.
 */
.ab-wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* A section rule rather than a card edge. On an editorial page the horizontal
   line IS the structure, so it is drawn once per section and never doubled. */
.ab-sec {
  padding-block: 4.5rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .ab-sec { padding-block: 6.5rem; }
}

.ab-sec-first { border-top: 0; }

/* ── hero ──────────────────────────────────────────────────────────────────── */

/* 8.5rem of top padding, not 2rem: `ros_legal_nav()` renders a FIXED header
   with a 4rem shell inside a 0.75rem offset, so anything less puts the eyebrow
   underneath it. The old markup spent `pt-32` on exactly this. */
.ab-hero {
  position: relative;
  padding-top: 8.5rem;
  padding-bottom: 3.5rem;
  overflow: hidden;
}

/* The only atmosphere on the page, and it is one gradient. --line-gold is the
   champagne at the alpha ros.css already trusts for a hairline, which is about
   right for a wash the headline has to stay legible on top of. */
.ab-hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto -10%;
  height: 120%;
  background: radial-gradient(48% 42% at 24% 42%, var(--line-gold), transparent 68%);
  pointer-events: none;
  opacity: .9;
}

.ab-hero > * { position: relative; }

.ab-h1 {
  font-size: clamp(2.9rem, 7.4vw, 5.6rem);
  line-height: .94;
  letter-spacing: -.035em;
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.ab-hero-lede { max-width: 54ch; }

/* The USP block. A short rule rather than a panel, for the reason the view
   gives: a card here would compete with the headline it is meant to follow. */
.ab-usp { margin-top: 3rem; }

.ab-usp-rule {
  width: 7rem;
  height: 1px;
  border: 0;
  margin: 0 0 1.5rem;
  background: linear-gradient(90deg, var(--gold-500), var(--line-gold) 70%, transparent);
}

.ab-usp-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--warm-100);
  max-width: 34ch;
}

/* ── the index strip ──────────────────────────────────────────────────────── */

/* The old sticky sidebar cost 220px of the measure at every width above xl and
   gave the page a second column that none of the prose used. A contents strip
   reads as the front of an article instead, keeps the six anchors, and leaves
   the sections below it the full width to alternate across. */
.ab-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
  margin-bottom: 0;
}

@media (min-width: 680px) { .ab-index { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .ab-index { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.ab-index-item {
  display: block;
  padding: 1.1rem 1rem 1.15rem;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: background var(--t-base) var(--ease-out);
}

/* The first row has the strip's own gold rule above it; a second hairline there
   would read as a double rule. */
@media (min-width: 1040px) { .ab-index-item { border-top: 0; } }

.ab-index-item:last-child { border-right: 0; }
.ab-index-item:hover { background: rgba(247, 243, 234, .04); }
:root[data-skin="light"] .ab-index-item:hover { background: var(--ink-700); }

.ab-index-num {
  display: block;
  font-family: var(--serif);
  font-size: .8125rem;
  letter-spacing: .06em;
  color: var(--gold-500);
  margin-bottom: .3rem;
}

.ab-index-label {
  display: block;
  font-size: .8125rem;
  line-height: 1.35;
  color: var(--warm-500);
  transition: color var(--t-base) var(--ease-out);
}

.ab-index-item:hover .ab-index-label { color: var(--warm-100); }

/* ── alternating text / plate ─────────────────────────────────────────────── */

.ab-split { display: grid; gap: 2.75rem; }

/* The plate comes FIRST in the document, because it carries the section's <h2>
   and a heading that follows its own prose is a heading in the wrong place --
   which is exactly what a phone gets if the columns are ordered for the desktop
   layout and left alone. So the source reads plate-then-prose at every width,
   and only the painted order changes. */
@media (min-width: 900px) {
  .ab-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, .74fr);
    gap: 5rem;
    align-items: center;
  }
  .ab-split > .ab-figure { order: 2; }

  .ab-split-rev { grid-template-columns: minmax(0, .74fr) minmax(0, 1fr); }
  .ab-split-rev > .ab-figure { order: 0; }
}

.ab-body { min-width: 0; }

/* ── section heads for the sections with no plate ────────────────────────── */

.ab-head { margin-bottom: 2rem; }

.ab-num-sm {
  font-family: var(--serif);
  font-size: .9375rem;
  line-height: 1;
  letter-spacing: .07em;
  color: var(--gold-500);
  margin-bottom: .55rem;
}

.ab-h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -.028em;
  color: var(--warm-100);
}

/* ── editorial type ──────────────────────────────────────────────────────── */

/* The statement line: mission, vision, audience. Serif, because this is the
   sentence somebody quotes, and the only one in each section that is. */
.ab-stmt {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.3vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.022em;
  color: var(--warm-100);
  max-width: 30ch;
  margin-bottom: 1.5rem;
}

.ab-stmt-sm { font-size: clamp(1.45rem, 2.6vw, 2.15rem); max-width: 34ch; }

/* The gloss under a statement. 13px and --warm-500 is what every other
   marketing page uses for the same job; it is kept identical on purpose. */
.ab-note {
  font-size: 13px;
  line-height: 1.78;
  color: var(--warm-500);
  max-width: 64ch;
}

.ab-note + .ab-note { margin-top: .9rem; }

.ab-label { margin-bottom: 1rem; }

/* ── the plate ───────────────────────────────────────────────────────────── */

.ab-figure { min-width: 0; }

.ab-plate {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 17.5rem;
  padding: 1.6rem;
  border: 1px solid var(--line-gold);
  border-radius: var(--r-md);
  background: linear-gradient(158deg, var(--ink-800), var(--ink-950) 74%);
  box-shadow: var(--sh-2);
}

.ab-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(86% 64% at 88% 6%, var(--line-gold), transparent 66%);
  pointer-events: none;
}

/* The hairline that makes the plate a plate. Same gradient construction as
   `.rule-gold` in ros.css — transparent at both ends so it has no hard stop. */
.ab-plate::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 54%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-gold) 22%, var(--line-gold) 78%, transparent);
  pointer-events: none;
}

.ab-plate > * { position: relative; }

.ab-plate-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ab-plate-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-gold);
  background: var(--ink-850);
  color: var(--gold-300);
}

/* Sized here as well as on the element, because `icon()` is given no utility
   class on this page and a bare <svg> is 300px wide by default. */
.ab-plate-mark svg { width: 19px; height: 19px; display: block; }

.ab-plate-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.4rem, 7vw, 5.2rem);
  line-height: .82;
  letter-spacing: -.045em;
  color: var(--gold-500);
  opacity: .34;
}

.ab-plate-cap {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--warm-300);
  max-width: 20ch;
}

/*
 * Lining figures, not Cormorant's default oldstyle ones.
 *
 * At watermark size the oldstyle '0' and '1' read as the LETTERS O and I --
 * measured on the rendered plate, '01' came out looking like 'OI'. These
 * numerals are sequence markers a reader is meant to count, so they are set
 * lining wherever they appear. Verified the subset actually carries the
 * feature before relying on it: the glyph advance changes (59.8px -> 66.7px),
 * so it is applied rather than silently ignored.
 */
.ab-index-num,
.ab-num-sm,
.ab-plate-num,
.ab-pillar-num { font-variant-numeric: lining-nums; }

/* ── the three pillars ───────────────────────────────────────────────────── */

.ab-pillars {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (min-width: 880px) {
  .ab-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.25rem; }
}

/* No card, no icon. Three claims each of which the codebase can be checked
   against do not need a box drawn round them, and an icon chosen by array
   index is an icon that stops matching the moment `config/brand.php` is
   reordered — which is the kind of quiet wrongness this whole page argues
   against. A numeral and a gold rule carry the sequence instead. */
.ab-pillar {
  padding-top: 1.35rem;
  border-top: 1px solid var(--line-gold);
}

.ab-pillar-num {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--gold-500);
  margin-bottom: 1rem;
}

.ab-pillar-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.18;
  letter-spacing: -.015em;
  color: var(--warm-100);
  margin-bottom: .8rem;
}

.ab-pillar-body {
  font-size: 13px;
  line-height: 1.78;
  color: var(--warm-500);
}

/* ── the centred pull (audience) ─────────────────────────────────────────── */

.ab-pull { text-align: center; }

.ab-pull .ab-h2 { margin-bottom: 1.75rem; }

.ab-pull-rule {
  width: 4.5rem;
  height: 1px;
  border: 0;
  margin: 0 auto 2rem;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

.ab-pull .ab-stmt,
.ab-pull .ab-note {
  margin-inline: auto;
}

.ab-pull-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-gold);
  color: var(--gold-300);
}

.ab-pull-icon svg { width: 17px; height: 17px; display: block; }

/* ── the sidenote layout (how it is built / the company) ─────────────────── */

.ab-aside { display: grid; gap: 1.75rem; }

@media (min-width: 900px) {
  .ab-aside {
    grid-template-columns: minmax(0, 13.5rem) minmax(0, 1fr);
    gap: 4.5rem;
    align-items: start;
  }
}

.ab-aside-head { min-width: 0; }

/* A step down from the chapter heads that own a whole row. At the full
   `.ab-h2` size "How it is built" and "The company" both broke across two
   lines inside a 13.5rem column and left the heading sitting below the first
   line of the prose it labels. */
.ab-aside-head .ab-h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

.ab-aside-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-gold);
  color: var(--gold-300);
}

.ab-aside-icon svg { width: 17px; height: 17px; display: block; }

/* ── the closing CTA ────────────────────────────────────────────────────── */

.ab-cta {
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 6rem;
  border-top: 1px solid var(--line);
}

.ab-cta-line {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--warm-100);
  margin-bottom: 2rem;
}

.ab-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

.ab-cta-foot {
  margin-top: 1.5rem;
  font-size: 12px;
  line-height: 1.7;
  color: var(--warm-700);
}

/* ── the draft-copy notice ──────────────────────────────────────────────── */

/* Keeps `card tone-rose` from ros.css and only widens the measure: the panel is
   the one element on the page that must not be mistaken for ornament, so its
   colour and its border are left exactly where the shared sheet puts them. */
.ab-draft { margin-bottom: 0; }

/* The panel sits between the contents strip and the first chapter, so it owns
   the gap on both sides of itself rather than borrowing one from either. */
.ab-draft-wrap { padding-top: 2.5rem; padding-bottom: .5rem; }

/* ── motion ─────────────────────────────────────────────────────────────── */

/* `.rise` is the shared entrance and `ros.js` drives it. Nothing here adds a
   second animation; this only makes sure a plate that is mid-entrance cannot
   paint its gradient outside its own rounded corner. */
.ab-plate { will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  .ab-index-item,
  .ab-index-label { transition: none; }
}
