/* About page (/about; research: docs/research/about-page-2026-10-14.md). Uses tokens and classes from /styles.css.
   Art is inline SVG coloured through these classes, so the strict CSP holds (no style attributes). Motion: the lemon
   pin drops in once, the terminal cursor blinks and the tea steams, only under prefers-reduced-motion: no-preference. */

.ab-sec { padding: var(--section) 0 0; }

/* ---------- Hero: yellow field, text beside a London skyline ---------- */
.ab-hero { padding: 6px 0 0; }
.ab-field { background: var(--field); border-radius: var(--radius-lg); padding: 32px 20px 0; display: grid; gap: 20px; overflow: hidden; }
.ab-hero-text { padding-bottom: 4px; }
.ab-hero .eyebrow { color: var(--ink); opacity: 0.75; }
.ab-hero h1 { color: var(--brand); font: 900 clamp(32px, 7.6vw, 56px)/1.06 var(--display); letter-spacing: -0.03em; margin: 0 0 18px; max-width: 11em; }
.ab-lede { font-size: var(--fs-lede); line-height: 1.5; font-weight: 500; margin: 0 0 20px; max-width: 30em; }
.ab-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; font-size: var(--fs-sm); font-weight: 500; }
.ab-facts .sep { padding: 0 8px; opacity: 0.6; }
.ab-facts a { color: var(--ink); font-weight: 700; }
.ab-city { margin: 0 -20px; align-self: end; }
.ab-skyline { display: block; width: 100%; height: auto; }
@media (min-width: 640px) { .ab-field { padding: 44px 36px 0; } .ab-city { margin: 0 -36px; } }
@media (min-width: 960px) {
  .ab-field { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; padding: 56px 0 0 48px; gap: 24px; }
  .ab-hero-text { padding-bottom: 56px; }
  .ab-city { margin: 0; }
}

/* Skyline strokes and fills */
.ab-skyline { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ab-sun { fill: var(--bg); stroke: none; }
.ab-cloud path { fill: var(--paper); stroke: var(--brand); stroke-width: 2; }
.ab-bld path, .ab-bld rect, .ab-bld circle { fill: var(--surface); }
.ab-glass path:first-child { fill: var(--bg); }
.ab-rib { fill: none !important; stroke-width: 1.5; opacity: 0.55; }
.ab-chim { fill: var(--surface); }
.ab-face { fill: var(--field) !important; }
.ab-hand { fill: none !important; stroke-width: 2; }
.ab-win rect { fill: var(--brand); stroke: none; opacity: 0.85; }
.ab-crane path { stroke-width: 2.5; }
.ab-crane rect { fill: var(--zing); }
.ab-river { fill: var(--brand); stroke: none; }
.ab-wave { stroke: var(--bg); stroke-width: 2; opacity: 0.7; }
.ab-ground { stroke-width: 3; }
.ab-lemon { fill: var(--field); stroke-width: 3; }
.ab-leaf { fill: var(--ok-bg); stroke-width: 2; }
.ab-pin-stem { stroke-width: 3; }
.ab-nub { stroke-width: 3; }
.ab-pin-dot { fill: var(--zing); }
.ab-coords { fill: var(--bg); stroke: none; font: 500 13px/1 var(--mono); letter-spacing: 0.04em; }

/* ---------- Our story: text beside a dictionary entry ---------- */
.ab-story-grid { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .ab-story-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; } }
.ab-story-text p { margin: 0 0 var(--s-4); max-width: 38em; }
.ab-story-text p:last-child { margin-bottom: 0; }
.ab-word { background: var(--surface); border: 2.5px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--pop); padding: 24px 22px 20px; }
@media (min-width: 900px) { .ab-word { margin-top: 44px; transform: rotate(1deg); } }
.ab-word p { margin: 0; }
.ab-word-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-bottom: 10px; border-bottom: 1.5px solid var(--line); }
.ab-word-term { font: 900 clamp(28px, 3vw + 14px, 38px)/1 var(--display); color: var(--brand); letter-spacing: -0.02em; }
.ab-word-ipa { font: 400 var(--fs-sm)/1.2 var(--mono); color: var(--muted); }
.ab-word-pos { padding-top: 10px; font: 400 var(--fs-xs)/1.5 var(--mono); color: var(--muted); }
.ab-word-defs { margin: 12px 0 0; padding-left: 1.4em; }
.ab-word-defs li { margin: 0 0 6px; padding-left: 4px; }
.ab-word-defs li::marker { font: 500 var(--fs-sm) var(--mono); color: var(--brand); }
.ab-word-note { margin-top: 14px !important; padding: 10px 12px; background: var(--bg); border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--ink); }

/* ---------- Mission ---------- */
.ab-aims-grid { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .ab-aims-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }
.ab-aim { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; }
.ab-aim::before { content: ""; display: block; width: 36px; height: 8px; border-radius: 999px; background: var(--field); border: 1.5px solid var(--line-strong); margin-bottom: 18px; }
.ab-aim h3 { font: 700 clamp(24px, 1.6vw + 16px, 32px)/1.15 var(--body); letter-spacing: -0.025em; color: var(--brand); margin: 0 0 10px; }
.ab-aim p { margin: 0; color: var(--muted); max-width: 30em; }
.ab-bridge { margin: var(--s-6) 0 0; max-width: 40em; font-size: var(--fs-lede); line-height: 1.5; }
.ab-now { display: flex; gap: 12px; align-items: baseline; margin: var(--s-4) 0 0; max-width: 46em; color: var(--muted); font-size: var(--fs-sm); }
.ab-now-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--live); transform: translateY(-1px); }

/* ---------- Promises: numbered rows ---------- */
.ab-promises { margin-top: var(--section); padding-bottom: var(--section); }
.ab-promise-list { list-style: none; margin: 0; padding: 0; counter-reset: promise; border-top: 2px solid var(--line-strong); }
.ab-promise-list li { counter-increment: promise; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ab-promise-list li::before { content: counter(promise, decimal-leading-zero); grid-row: span 2; font: 500 var(--fs-sm)/1.9 var(--mono); color: var(--brand); }
.ab-promise-list h3 { margin: 0; font-size: var(--fs-h3); }
.ab-promise-list p { margin: 0; color: var(--muted); }
@media (min-width: 860px) {
  .ab-promise-list li { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: baseline; padding: 26px 0; }
  .ab-promise-list li::before { grid-row: auto; }
  .ab-promise-list h3 { font-size: 22px; letter-spacing: -0.01em; }
}

/* ---------- Team: illustrated desks ---------- */
.ab-desks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (min-width: 600px) { .ab-desks { gap: var(--s-4); } }
@media (min-width: 1000px) { .ab-desks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ab-desk { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform var(--ease), border-color var(--ease); }
.ab-desk:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.ab-desk svg { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ab-desk p { margin: 0; padding: 14px 16px 18px; font-size: var(--fs-sm); line-height: 1.5; }
@media (max-width: 599px) { .ab-desk p { padding: 10px 12px 14px; font-size: 14px; line-height: 1.45; } }
.ab-desk-tag { display: block; margin-bottom: 6px; font: 500 var(--fs-xs)/1.2 var(--mono); color: var(--brand); }
.d-wall { fill: var(--bg); stroke: none; }
.d-top, .d-mon, .d-frame, .d-stand, .d-mug, .d-cup, .d-pot, .d-note { fill: var(--surface); }
.d-top { fill: var(--field); }
.d-screen { fill: var(--brand); stroke: none; }
.d-screen.d-light { fill: var(--paper); stroke: var(--brand); stroke-width: 1.5; }
.d-kbd, .d-pad { fill: var(--paper); }
.d-leg { stroke-width: 3; }
.d-line { stroke-width: 1.5; }
.d-term { fill: var(--bg); stroke: none; font: 500 10px/1 var(--mono); }
.d-ok { fill: var(--field); }
.d-cursor { fill: var(--field); stroke: none; }
.d-logic { fill: var(--field); stroke: none; font: 500 15px/1 var(--mono); }
.d-dim { fill: var(--bg); opacity: 0.8; font-size: 12px; }
.d-aa { fill: var(--brand); stroke: none; font: 900 30px/1 var(--display); }
.d-steam { stroke-width: 1.5; opacity: 0.6; }
.d-b1 { fill: var(--zing); }
.d-b2 { fill: var(--surface); }
.d-b3 { fill: var(--field); }
.d-plant { fill: var(--ok-bg); stroke-width: 1.5; }
.d-sw1 { fill: var(--field); }
.d-sw2 { fill: var(--zing); }
.d-sw3 { fill: var(--primary); }
.d-pencil { stroke-width: 2.5; }
.d-code { stroke-width: 3; stroke: var(--bg); opacity: 0.85; }
.d-c2 { stroke: var(--field); opacity: 1; }
.d-note { fill: var(--field); }
.d-duck-body { fill: var(--field); }
.d-beak { fill: var(--zing); stroke-width: 1.5; }
.d-eye { fill: var(--brand); stroke: none; }
.ab-london { display: flex; align-items: flex-start; gap: 10px; margin: var(--s-5) 0 0; max-width: 46em; font-weight: 500; }
.ab-london-pin { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; fill: var(--field); stroke: var(--brand); stroke-width: 1.8; }
.ab-london-pin circle { fill: var(--surface); }

/* ---------- Join us (dark band) ---------- */
.ab-join { margin-top: var(--section); }
.ab-join .eyebrow { color: var(--band-accent); }
.ab-join-grid { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .ab-join-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; } }
.ab-join-sub { margin: var(--s-6) 0 var(--s-2); font-size: var(--fs-body); color: var(--band-accent) !important; }
.ab-look { list-style: none; margin: 0; padding: 0; }
.ab-look li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid rgba(255, 248, 214, 0.18); }
.ab-look li::before { content: ""; position: absolute; left: 3px; top: 1.05em; width: 12px; height: 6px; border-left: 2.5px solid var(--band-accent); border-bottom: 2.5px solid var(--band-accent); transform: rotate(-45deg); }
.ab-reassure { margin: var(--s-4) 0 0; font-weight: 600; }
.ab-apply { background: var(--surface); color: var(--ink); border: 2.5px solid var(--band-accent); border-radius: var(--radius-lg); padding: 26px 22px 22px; box-shadow: 6px 6px 0 var(--band-accent); }
.ab-apply h3 { color: var(--ink) !important; margin: 0 0 var(--s-3); font-size: 22px; }
.ab-steps { list-style: none; margin: 0 0 var(--s-5); padding: 0; counter-reset: apply; }
.ab-steps li { counter-increment: apply; position: relative; padding: 8px 0 8px 44px; min-height: 40px; }
.ab-steps li::before { content: counter(apply); position: absolute; left: 0; top: 4px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--field); border: 2px solid var(--line-strong); font: 700 15px/1 var(--body); color: var(--ink); }
.ab-apply .ab-steps a { color: var(--primary); font-weight: 600; overflow-wrap: anywhere; }
.ab-apply-note { margin: 12px 0 0; font-size: var(--fs-sm); color: var(--muted); text-align: center; }

/* ---------- Three doors ---------- */
.ab-doors h2 { margin: 0 0 var(--s-5); }
.ab-door-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .ab-door-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ab-door-list li { margin: 0; }
.ab-door { height: 100%; }
.ab-door h3::after { content: " \2192"; }
.ab-door.card-pop { background: var(--field); }
.ab-door.card-pop p { color: var(--ink); }

/* ---------- Motion (only when the reader is fine with it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .ab-pin { animation: ab-drop 700ms cubic-bezier(.2, .9, .3, 1.25) 250ms both; }
  .ab-cloud { animation: ab-drift 18s ease-in-out infinite alternate; }
  .d-cursor { animation: blink 1.1s steps(1) infinite; }
  .d-steam { animation: ab-steam 3.2s ease-in-out infinite; }
  .d-duck { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 300ms ease; }
  .ab-desk:hover .d-duck { transform: rotate(-8deg); }
}
@keyframes ab-drop { from { opacity: 0; transform: translateY(-60px); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes ab-drift { to { transform: translateX(28px); } }
@keyframes ab-steam { 0%, 100% { opacity: 0; transform: translateY(4px); } 40% { opacity: 0.6; } 70% { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .ab-desk, .ab-desk:hover { transition: none; transform: none; } }
@media (max-width: 599px) { .ab-facts { gap: 6px 16px; } .ab-facts .sep { display: none; } }
