/* ═══════════════════════════════════════════════════════════════════════════
   /about — ONE PERSON, BOTH HALVES, DRAWN AS A LIVE INSTRUMENT.

   Concept, one sentence: a real portrait anchors the nameplate, and a
   balance beam between the two columns visibly re-weights itself to each
   pair's actual ratio as the reader reaches it — the page's argument drawn
   as data instead of stated as a heading.

   What carries it:
     · the nameplate is a two-column plate: the site's own portrait in a
       tilted dossier frame (STATIC — no parallax, no drift, ever), the
       monogram drawing itself behind the copy, the dotfield behind both;
     · each of the four pairs holds its own beam. The ratios are in the
       markup (--abt-l / --abt-r on [data-abt-pair]) so the tilt is data:
       heavier side down, split painted along the bar. At rest — no JS,
       reduced motion — every beam shows its true tilt; with JS the beam
       sits level until the reader reaches its pair, then tips;
     · the convergence keeps the joined-rails figure, now beside the one
       photographic proof that the desk is real;
     · the certificate is a deliberately modest flat card — the design
       states the same weight the copy does;
     · the primary CTA is the site's standard Rive arrow button, under a
       level beam: nothing left to weigh.

   BASE = the settled, no-JS pose (PAGE-KIT §4.2): everything visible, the
   monogram and join fully drawn, every beam at its true tilt. Conditional
   hiding lives ONLY behind the .abtjs pre-paint gate, and the
   reduced-motion block peels it back off.

   RTL-NATIVE: logical properties throughout — the /ar/ tree reuses this
   sheet as-is (the beam gradient is re-aimed from ar.css).

   Namespace: .abt-*.
   ═══════════════════════════════════════════════════════════════════════════ */

.taxi-w.about {
  --abt-bg: #fafcfb;
  --abt-surface: #eef4f1;
  --abt-surface-2: #e3ece7;
  --abt-ink: #040504;
  --abt-ink-soft: #10120f;
  --abt-grey: #535450;
  --abt-grey-2: #b4b8a5;
  --abt-line: rgba(4, 5, 4, .10);
  --abt-rim: #cbd3ce;
  --abt-mint: #21f1a8;
  --abt-mint-ink: #0f6f4e;      /* mint is ~1.5:1 on paper; this carries text */
  --abt-ease: cubic-bezier(.215, .61, .355, 1);
  --abt-rhythm: clamp(4rem, 9vh, 6.5rem);
  --abt-measure: 62ch;
  --page-bg: var(--abt-bg);

  background: var(--abt-bg);
  color: var(--abt-ink);
}

.taxi-w.about :is(ul, ol) { padding: 0; list-style: none; }
.taxi-w.about :where(p, h1, h2, h3, ul, ol, li, figure, figcaption) { margin: 0; }
.taxi-w.about img { display: block; max-inline-size: 100%; }

.taxi-w.about :where(a, button):focus-visible {
  outline: 2px solid var(--abt-mint);
  outline-offset: 3px;
  border-radius: .25rem;
}

.abt-skip {
  position: absolute;
  inset-inline-start: -9999px;
  inset-block-start: 0;
  z-index: 60;
  padding: .75rem 1.25rem;
  background: var(--abt-ink);
  color: var(--abt-bg);
  border-radius: .5rem;
  font-family: 'Quicksand Label', Arial, sans-serif;
  font-size: .8125rem;
}
.abt-skip:focus { inset-inline-start: 1rem; inset-block-start: 1rem; }

/* ── atoms ─────────────────────────────────────────────────────────────── */

.abt-s { padding-block: var(--abt-rhythm); }

.abt-wrap {
  inline-size: 100%;
  max-inline-size: 82rem;
  margin-inline: auto;
  padding-inline: var(--padding--container);
}

.abt-eyebrow {
  font-family: 'Quicksand Label', Arial, sans-serif;
  font-size: .625rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-variation-settings: "wght" 700;
  color: var(--abt-grey);
}

.abt-h2 {
  font-family: Quicksand, Arial, sans-serif;
  font-variation-settings: "wght" 700, "wdth" 93;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin-block-start: .875rem;
  max-inline-size: 24ch;
}

.abt-h3 {
  font-family: Quicksand, Arial, sans-serif;
  font-variation-settings: "wght" 700;
  font-size: clamp(1.1875rem, 1.9vw, 1.4375rem);
  line-height: 1.2;
  margin-block-start: .375rem;
}

.abt-body {
  font-family: Quicksand, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--abt-ink-soft);
  max-inline-size: var(--abt-measure);
  margin-block-start: .875rem;
}
.abt-body.is-lead {
  font-size: clamp(1.1875rem, 1.8vw, 1.375rem);
  line-height: 1.5;
  margin-block-start: 1.25rem;
}

.abt-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, 'Courier New', monospace;
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--abt-grey);
  margin-block-start: .875rem;
}

.abt-run {
  font-family: ui-monospace, SFMono-Regular, Menlo, 'Courier New', monospace;
  font-size: .75rem;
  line-height: 1.8;
  color: var(--abt-grey);
  margin-block-start: .875rem;
}

.abt-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, 'Courier New', monospace;
  font-size: .875em;
  background: var(--abt-surface-2);
  border-radius: .25rem;
  padding: .1em .35em;
}

.abt-inline {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .25em;
  text-decoration-thickness: 1px;
  transition: color .3s var(--abt-ease);
}
.abt-inline:hover { color: var(--abt-mint-ink); }

.abt-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Quicksand Label', Arial, sans-serif;
  font-size: .875rem;
  text-transform: uppercase;
  font-variation-settings: "wdth" 86, "wght" 600;
  letter-spacing: .04em;
  color: var(--abt-ink);
  text-decoration: underline;
  text-underline-offset: .375em;
  text-decoration-thickness: 1px;
  transition: color .3s var(--abt-ease);
}
.abt-link:hover { color: var(--abt-mint-ink); }
.abt-link-arrow { transition: translate .3s var(--abt-ease); }
.abt-link:hover .abt-link-arrow { translate: .25rem 0; }

.abt-ico { inline-size: 1.375rem; block-size: 1.375rem; display: block; color: var(--abt-ink); }

/* ── 1 · the nameplate ─────────────────────────────────────────────────── */

.abt-mast {
  position: relative;
  overflow: clip;
  padding-block-start: calc(var(--on-t-nav-spacer, 5.375rem) + 2.5rem);
}

.abt-mast-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.abt-plate {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 30rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

/* THE PORTRAIT — static by decree. A slight standing tilt, a mat, a rim;
   never a scroll transform of any kind. */
.abt-portrait {
  background: var(--abt-surface);
  border: 1px solid var(--abt-rim);
  border-radius: .875rem;
  padding: .625rem;
  rotate: -1.4deg;
}
.abt-portrait img {
  aspect-ratio: 4 / 5;
  inline-size: 100%;
  block-size: auto;   /* the height attribute must not beat the ratio */
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: .5rem;
}

.abt-plate-copy { position: relative; }

/* the monogram draws itself behind the copy — low ink, never in the way */
.abt-mast-mark {
  position: absolute;
  inset-inline-end: -3rem;
  inset-block-start: -3.5rem;
  inline-size: clamp(14rem, 24vw, 24rem);
  block-size: auto;
  color: rgba(4, 5, 4, .12);
  z-index: -1;
  pointer-events: none;
}
.abt-mast-mark path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.abtjs .abt-mast-mark:not(.is-drawn) path { stroke-dashoffset: 1; }
.abtjs .abt-mast-mark.is-drawn path {
  transition: stroke-dashoffset 1.6s var(--abt-ease) .3s;
}

.abt-name {
  font-family: Quicksand, Arial, sans-serif;
  font-variation-settings: "wght" 750, "wdth" 93;
  font-size: clamp(2.625rem, 6.4vw, 5.25rem);
  line-height: .95;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin-block-start: 1rem;
}

.abt-roles {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block-start: 1.25rem;
  font-family: 'Quicksand Label', Arial, sans-serif;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--abt-grey);
}
.abt-role-rule { flex: 0 1 6rem; block-size: 1px; background: var(--abt-line); }

/* the beam's first appearance: the designer/developer ratio as a meter.
   The inline width on <i> is the data; the mint edge is its pointer. */
.abt-role-weight {
  display: block;
  position: relative;
  margin-block-start: .625rem;
  max-inline-size: 22rem;
  block-size: .375rem;
  border-radius: .1875rem;
  background: var(--abt-surface-2);
  overflow: hidden;
}
.abt-role-weight i {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  background: var(--abt-ink);
  border-inline-end: 3px solid var(--abt-mint);
}

.abt-lede {
  font-family: Quicksand, Arial, sans-serif;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--abt-ink-soft);
  max-inline-size: 52ch;
  margin-block-start: 1.5rem;
}

.abt-mast-link { margin-block-start: 1.75rem; }

/* ── 2 · the duality — four pairs, four beams ──────────────────────────── */

.abt-duo-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.abt-duo-labels {
  display: flex;
  gap: .625rem;
}
.abt-duo-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, 'Courier New', monospace;
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .375rem .75rem;
  border: 1px solid var(--abt-rim);
  border-radius: 2rem;
  color: var(--abt-grey);
}
.abt-duo-label.is-design { background: var(--abt-surface); color: var(--abt-ink); }

.abt-rows { margin-block-start: 2.5rem; }

.abt-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.5rem minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: stretch;
  padding-block: 1.25rem;
}

.abt-cell {
  background: var(--abt-surface);
  border: 1px solid var(--abt-rim);
  border-radius: .875rem;
  padding: clamp(1.25rem, 2.4vw, 2rem);
}
.abt-cell.is-code { background: var(--abt-bg); }
.abt-cell .abt-body { font-size: 1rem; }

/* THE BEAM. At rest — no JS, reduced motion — it shows its true tilt; with
   JS it waits level and tips when its pair becomes current. The bar's paint
   is the split itself: ink for the design share, the grey ramp for code. */
.abt-beam {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .875rem;
}
.abt-beam::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 50%;
  inline-size: 1px;
  background: var(--abt-line);
}
.abt-beam-bar {
  position: relative;
  z-index: 1;
  inline-size: 100%;
  max-inline-size: 6.5rem;
  block-size: .3125rem;
  border-radius: .15625rem;
  background: linear-gradient(90deg,
    var(--abt-ink) 0 calc(var(--abt-l, .5) * 100%),
    var(--abt-grey-2) calc(var(--abt-l, .5) * 100%) 100%);
  transform: rotate(calc((var(--abt-r, .5) - var(--abt-l, .5)) * 18deg));
  transition: transform .6s var(--abt-ease);
}
.abt-beam-bar::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  inline-size: .625rem;
  block-size: .625rem;
  translate: -50% -50%;
  rotate: 45deg;
  background: var(--abt-bg);
  border: 2px solid var(--abt-ink);
  transition: background .3s var(--abt-ease);
}
.abt-rung {
  position: relative;
  z-index: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, 'Courier New', monospace;
  font-size: .6875rem;
  color: var(--abt-grey);
  background: var(--abt-bg);
  padding: .2rem .4rem;
  border: 1px solid var(--abt-rim);
  border-radius: .375rem;
}

/* with JS: level until reached, then the data tips it */
.abtjs .abt-pair:not(.is-cur) .abt-beam-bar { transform: rotate(0deg); }
.abt-pair.is-cur .abt-beam-bar::after { background: var(--abt-mint); }

/* ── 3 · the convergence ───────────────────────────────────────────────── */

.abt-join {
  inline-size: 7.5rem;
  margin-inline: auto;
  position: relative;
  color: var(--abt-ink);
}
.abt-join svg { display: block; inline-size: 100%; block-size: auto; }
.abt-join-p { stroke-dasharray: 1; stroke-dashoffset: 0; }
.abtjs [data-abt-join]:not(.is-drawn) .abt-join-p { stroke-dashoffset: 1; }
.abtjs [data-abt-join].is-drawn .abt-join-p {
  transition: stroke-dashoffset 1.1s var(--abt-ease);
}
.abt-join-node {
  position: absolute;
  inset-block-end: -.3125rem;
  inset-inline-start: 50%;
  translate: -50% 0;
  inline-size: .625rem;
  block-size: .625rem;
  border-radius: 50%;
  background: var(--abt-mint);
  border: 2px solid var(--abt-ink);
}

.abt-how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-block-start: 2.5rem;
}

.abt-col { max-inline-size: var(--abt-measure); }

/* photo cards — the dossier grammar: mat, rim, standing tilt, caption chip */
.abt-photo {
  background: var(--abt-surface);
  border: 1px solid var(--abt-rim);
  border-radius: .875rem;
  padding: .625rem .625rem 0;
  rotate: 1.2deg;
}
.abt-photo img { inline-size: 100%; block-size: auto; border-radius: .5rem; }
.abt-photo-cap {
  font-family: 'Quicksand Label', Arial, sans-serif;
  font-size: .625rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-variation-settings: "wght" 700;
  color: var(--abt-grey);
  padding: .75rem .375rem;
}

/* ── 4 · the record — deliberately modest ──────────────────────────────── */

.abt-how-grid.is-paper { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); }

.abt-photo.is-cert {
  rotate: 0deg;
  position: relative;
}
.abt-ico.is-cert-ico {
  position: absolute;
  inset-block-start: -.6875rem;
  inset-inline-start: 1.25rem;
  background: var(--abt-bg);
  border: 1px solid var(--abt-rim);
  border-radius: .5rem;
  padding: .375rem;
  inline-size: 2.25rem;
  block-size: 2.25rem;
}

/* ── 5 · the CTA — the beam at rest ────────────────────────────────────── */

.abt-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.abt-level {
  display: block;
  position: relative;
  inline-size: 6.5rem;
  block-size: .3125rem;
  border-radius: .15625rem;
  background: var(--abt-ink);
  margin-block-end: 1.5rem;
}
.abt-level i {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  inline-size: .625rem;
  block-size: .625rem;
  translate: -50% -50%;
  rotate: 45deg;
  background: var(--abt-mint);
  border: 2px solid var(--abt-ink);
}
.abt-h2.is-cta { font-size: clamp(2rem, 4.6vw, 3.375rem); max-inline-size: none; }
.abt-cta-inner .abt-body { margin-inline: auto; }
.abt-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-block-start: 2rem;
}

/* ── reveals (gated) ───────────────────────────────────────────────────── */

.abtjs :is(.abt-fade, .abt-rise) { opacity: 0; transform: translateY(1.25rem); }
.abtjs :is(.abt-fade, .abt-rise).is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity .7s var(--abt-ease) calc(var(--i, 0) * 90ms),
    transform .7s var(--abt-ease) calc(var(--i, 0) * 90ms);
}

/* ── widths ────────────────────────────────────────────────────────────── */

@media (max-width: 991px) {
  .abt-plate { grid-template-columns: minmax(0, 1fr); }
  .abt-portrait { max-inline-size: 22rem; }
  .abt-mast-mark { inset-inline-end: -2rem; inset-block-start: -1rem; }
  .abt-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .abt-beam {
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 1rem;
    padding-block: 1.25rem;
  }
  .abt-beam::before {
    inset-inline: 0;
    inset-block-start: 50%;
    inset-block-end: auto;
    inline-size: auto;
    block-size: 1px;
  }
  .abt-how-grid,
  .abt-how-grid.is-paper { grid-template-columns: minmax(0, 1fr); }
  .abt-photo { max-inline-size: 26rem; }
}

@media (max-width: 479px) {
  .taxi-w.about { --abt-rhythm: 4.5rem; }
  .abt-eyebrow { font-size: 1rem; letter-spacing: .06em; }
  .abt-cta-row { gap: 1rem; }
}

/* ── reduced motion — everything settled, every beam at its true tilt ──── */

@media (prefers-reduced-motion: reduce) {
  .taxi-w.about *,
  .taxi-w.about *::before,
  .taxi-w.about *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .abtjs :is(.abt-fade, .abt-rise) { opacity: 1; transform: none; transition: none; }
  .abtjs .abt-mast-mark:not(.is-drawn) path { stroke-dashoffset: 0; }
  .abtjs [data-abt-join]:not(.is-drawn) .abt-join-p { stroke-dashoffset: 0; }
  .abtjs .abt-pair:not(.is-cur) .abt-beam-bar {
    transform: rotate(calc((var(--abt-r, .5) - var(--abt-l, .5)) * 18deg));
  }
}
