/* About page (owner: about). Built from the live system: styles.css + site.css + ucviz.css.
   Rhythm: hero [paper] · story [ink] · how I work [cream] · what I build [ink] · what I believe [sand] · reviews [ink-deep] · book [red].
   Hidden start states live under html.js only (4s safety in layout()), so nothing is ever trapped invisible. */

@keyframes abFade { from { opacity: 0; } }
@keyframes abUp20 { from { opacity: 0; transform: translateY(20px); } }
@keyframes abRise { from { transform: translateY(40px); } }
@keyframes abArch { from { clip-path: inset(100% -14% -22% -14%); } to { clip-path: inset(-14% -14% -22% -14%); } }
@keyframes abCut { from { clip-path: inset(100% 0 0 0 round 0 0 var(--r-xl) var(--r-xl)); } to { clip-path: inset(-14% 0 0 0 round 0 0 var(--r-xl) var(--r-xl)); } }
@keyframes abPing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes abBreathe { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

/* ==========================================================================
   1. Hero [paper]: portrait LEFT in a deep red arch, the head breaks out of the top
   ========================================================================== */
.ahero {
  position: relative; overflow: hidden; overflow: clip; display: flex; align-items: center;
  min-height: min(100svh, 920px);
  padding: var(--hero-top) var(--gutter) clamp(56px, 6vw, 88px);
  background: var(--paper); color: var(--ink);
}
/* Arch glow: flat paper, a soft halo hugging the plate */
.ahero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 50% at 27% 50%, rgba(215, 55, 43, .10), transparent 70%);
}
.ahero__wrap {
  position: relative; width: 100%;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 5vw, 72px);
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: "media ." "media head" "media body" "media .";
}
.ahero__head { grid-area: head; container-type: inline-size; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ahero__body { grid-area: body; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; min-width: 0; padding-top: 24px; }

/* H1: the name on one line in its column (container units), the serif line under it */
.ahero__title { font-weight: 500; color: var(--ink); }
.ahero__name {
  display: block; white-space: nowrap;
  font-size: clamp(42px, 13.2cqi, 128px); line-height: .95; letter-spacing: -.055em;
}
.ahero__serif {
  display: block; margin-top: .14em;
  font-size: clamp(40px, 10.6cqi, 84px); line-height: 1; letter-spacing: -.02em; text-wrap: balance;
}
.ahero__lede { max-width: 34em; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: var(--body-on-light); }
.ahero__facts { align-self: stretch; }
.ahero__facts .facts-bar__icons { margin-top: -10px; margin-bottom: -12px; }
.ahero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.ahero__actions .link-arrow { align-self: center; }

/* the plate and the cutout */
.ahero__media { grid-area: media; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 22px; min-width: 0; }
.ahero__art { position: relative; width: min(100%, 440px); aspect-ratio: 440 / 560; margin-top: 52px; }
/* desktop: on short screens the plate shrinks so the whole hero fits the first screen */
@media (min-width: 960px) { .ahero__art { width: min(100%, 440px, max(300px, calc((100svh - 316px) * .7857))); } }
@media (min-width: 960px) and (max-height: 820px) {
  .ahero { padding-top: 112px; padding-bottom: 40px; }
  .ahero__art { margin-top: 40px; }
  /* the copy column scales with the screen height too, so the CTA row stays in the first screen */
  .ahero__name { font-size: clamp(42px, min(13.2cqi, 11svh), 128px); }
  .ahero__serif { font-size: clamp(34px, min(10.6cqi, 8.4svh), 84px); }
  .ahero__head { gap: 14px; }
  .ahero__body { gap: 22px; padding-top: 14px; }
  .ahero__lede { font-size: 17px; }
}
.ahero__plate {
  position: absolute; inset: 0; border-radius: 999px 999px var(--r-xl) var(--r-xl);
  background:
    radial-gradient(60% 34% at 50% 40%, rgba(239, 90, 76, .12), transparent 70%),
    radial-gradient(90% 70% at 50% 100%, #8a1f17, #3a0f0b 45%, #141110);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
/* the plate's float shadow lives outside the clip reveal, so no straight edge crosses the paper while it opens */
.ahero__art::before { content: ''; position: absolute; inset: 0; border-radius: 999px 999px var(--r-xl) var(--r-xl); box-shadow: var(--sh-float-l); pointer-events: none; }
.js .ahero__art::before { animation: abFade .7s var(--ease) 1.05s both; }
/* a fine inner arch line: the plate reads as an object, not a fill */
.ahero__plate::after {
  content: ''; position: absolute; inset: 12px; border-radius: inherit; pointer-events: none;
  border: 1px solid rgba(245, 239, 230, .09);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 75%); mask-image: linear-gradient(180deg, #000 30%, transparent 75%);
}
/* clips the sides and bottom, leaves the top open so the head rises past the arch */
.ahero__cut { position: absolute; inset: 0; clip-path: inset(-14% 0 0 0 round 0 0 var(--r-xl) var(--r-xl)); }
.ahero__cut picture { display: contents; }
.ahero__img {
  position: absolute; left: 50%; bottom: 0; width: auto; height: 112%; max-width: none;
  translate: -46.7% 0; /* centers the face on the arch (the head sits left of the photo's center) */
  filter: drop-shadow(0 26px 36px rgba(0, 0, 0, .38));
}

/* entrance: frame, voice, portrait, actions */
.js .ahero::before { animation: abFade 1.2s var(--ease) .6s both; }
.js .ahero__serif { animation: abUp20 1.1s var(--ease-expo) .35s both; }
/* the arch clip-reveals up from the bottom; the cutout is uncovered in lockstep, so the head only breaks out at the end */
.js .ahero__plate { animation: abArch 1.1s cubic-bezier(.87, 0, .13, 1) .2s both; }
.js .ahero__cut { animation: abCut 1.1s cubic-bezier(.87, 0, .13, 1) .2s both; }
.js .ahero__img { animation: abRise 1.4s var(--ease-expo) .4s both; }
.js .ahero__lede { animation: fadeUp 1s var(--ease-expo) .75s both; }
.js .ahero__actions { animation: fadeUp .9s var(--ease-expo) 1s both; }

@media (max-width: 1099px) {
  .ahero__facts { --fb-cols: auto minmax(0, 1.3fr) minmax(0, 1fr) auto; }
}
@media (max-width: 959px) {
  .ahero { min-height: 0; align-items: flex-start; }
  .ahero::before { background: radial-gradient(70% 34% at 50% 50%, rgba(215, 55, 43, .10), transparent 70%); }
  .ahero__wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "media" "body"; }
  .ahero__media { align-self: start; margin-top: 8px; }
  .ahero__art { width: min(100%, 400px, calc(58svh * .7857)); margin-top: 44px; }
  .ahero__body { padding-top: 36px; }
  .ahero__facts { --fb-cols: none; }
  .ahero__name { font-size: clamp(42px, 13.2cqi, 84px); }
  .ahero__serif { font-size: clamp(36px, 10.6cqi, 66px); }
}
@media (max-width: 599px) {
  .ahero__name { font-size: clamp(36px, 13.2cqi, 64px); }
  .ahero__serif { font-size: clamp(34px, 10.8cqi, 52px); }
  .ahero__art { width: min(100%, 360px, calc(58svh * .7857)); margin-top: 36px; }
  .ahero__body { gap: 28px; }
  .ahero__actions { align-self: stretch; flex-direction: column; align-items: flex-start; gap: 22px; }
  .ahero__actions .cta-spin, .ahero__actions .cta-spin__inner { width: 100%; justify-content: center; }
  .ahero__actions .link-arrow { align-self: flex-start; }
}

/* ==========================================================================
   2. Story [ink]: a sticky headline and three chapters on a red thread
   ========================================================================== */
.ab-story { position: relative; padding: var(--section-y) var(--gutter); background: var(--ink); color: var(--cream); }
.ab-story__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.ab-story__side { grid-column: 1 / span 4; position: sticky; top: 140px; display: flex; flex-direction: column; gap: 22px; }
.ab-story__body { grid-column: 6 / -1; position: relative; }
.ab-chaps { position: relative; margin: 0; padding: 0; list-style: none; }
.ab-chap { position: relative; padding: 0 0 clamp(64px, 7vw, 96px) 56px; }
.ab-chap:last-child { padding-bottom: 0; }
.ab-chap--now { container-type: inline-size; }
/* the thread: a hairline from node to node (CSS), the red overlay scrubs over it (p-about.js) */
.ab-chap:not(:last-child)::before { content: ''; position: absolute; left: 6.5px; top: 8px; bottom: -8px; width: 1px; background: var(--line-d2); }
.ab-story__thread { position: absolute; left: 6px; top: 8px; width: 2px; height: var(--thread-h, 0px); z-index: 1; pointer-events: none; }
.ab-story__fill {
  position: absolute; inset: 0; border-radius: 2px; transform-origin: 50% 0;
  background: linear-gradient(180deg, var(--red-deep), var(--red-bright)); box-shadow: 0 0 12px rgba(239, 90, 76, .45);
}
.ab-chap__node {
  position: absolute; z-index: 2; left: 0; top: 1px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 4px rgba(215, 55, 43, .16), 0 0 16px rgba(239, 90, 76, .5);
  transition: background-color .45s var(--ease), box-shadow .45s var(--ease);
}
.ab-chap__node::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--red-bright); opacity: 0; pointer-events: none; }
.ab-story.is-armed .ab-chap__node:not(.is-on) { background: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(245, 239, 230, .28); }
.ab-chap__node.is-ping::after { animation: abPing 1s var(--ease-out) both; }
.ab-chap__n { display: block; font: 500 12px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: .14em; color: var(--red-bright); padding-top: 2px; }
.ab-chap__t { margin-top: 18px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; line-height: 1.1; letter-spacing: -.035em; color: var(--cream); }
.ab-chap__d { margin-top: 16px; max-width: 34em; font-size: 18px; line-height: 1.65; color: var(--muted-light); }

/* chapter 02: the recommendation as a pull card (e1 on ink) */
.ab-pull {
  margin: 36px 0 0; max-width: 620px; padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-md); background: var(--ink-raised); border: 1px solid var(--line-d); box-shadow: var(--sh-raise);
}
.ab-pull__q { margin: 0; }
.ab-pull__q p { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: clamp(22px, 2vw, 26px); line-height: 1.35; letter-spacing: -.005em; color: var(--cream); }
.ab-pull__cite { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-d); }
.ab-pull__cite img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 35%; border: 2px solid rgba(245, 239, 230, .12); background: #2a2320; }
.ab-pull__who { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ab-pull__name { font: 500 11px/1.3 'Geist Mono', ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
.ab-pull__src { font-size: 13px; line-height: 1.3; color: var(--muted); }
.ab-pull__in { flex: none; width: 20px; height: 20px; margin-left: auto; }
.ab-pull__in rect { fill: rgba(245, 239, 230, .88); }
.ab-pull__in path { fill: var(--ink-raised); }

/* chapter 03: AI agent → Approved by you → Handed over (lights in order) */
.ab-trio { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0; margin: 30px 0 0; padding: 0; list-style: none; }
.ab-trio__chip {
  --c-line: rgba(245, 239, 230, .2); --c-fg: var(--muted-light); --c-bg: transparent; --c-ic: rgba(245, 239, 230, .1); --c-gl: var(--cream);
  position: relative; display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 15px 0 5px; border-radius: 999px;
  border: 1px solid var(--c-line); background: var(--c-bg); color: var(--c-fg);
  font: 500 11px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  transition: border-color .45s var(--ease) calc(var(--i) * .45s), background-color .45s var(--ease) calc(var(--i) * .45s), color .3s var(--ease) calc(var(--i) * .45s);
}
.ab-trio__chip + .ab-trio__chip { margin-left: 36px; }
/* connector: a hairline with a red overlay that draws before the next chip lights */
.ab-trio__chip + .ab-trio__chip::before, .ab-trio__chip + .ab-trio__chip::after { content: ''; position: absolute; right: calc(100% + 7px); top: 50%; width: 22px; height: 1px; }
.ab-trio__chip + .ab-trio__chip::before { background: var(--line-d2); }
.ab-trio__chip + .ab-trio__chip::after {
  background: linear-gradient(90deg, var(--red-deep), var(--red-bright)); transform-origin: left;
  transition: transform .4s var(--ease-io) calc(var(--i) * .45s - .3s);
}
.ab-trio__ic {
  position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--c-ic);
  transition: background-color .45s var(--ease) calc(var(--i) * .45s);
}
.ab-trio__ic::before { content: ''; position: absolute; inset: 6px; background: var(--c-gl); -webkit-mask: var(--c-glyph) center / contain no-repeat; mask: var(--c-glyph) center / contain no-repeat; transition: background-color .45s var(--ease) calc(var(--i) * .45s); }
.ab-trio__chip--agent { --c-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round'%3E%3Crect x='7' y='7' width='10' height='10' rx='3'/%3E%3Cpath d='M12 3v3M12 18v3M3 12h3M18 12h3'/%3E%3C/svg%3E"); }
.ab-trio__chip--ok { --c-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.ab-trio__chip--key { --c-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='12' r='4'/%3E%3Cpath d='M12 12h9M17 12v3M20.5 12v2.4'/%3E%3C/svg%3E"); }
/* lit (the static final frame; p-about.js arms them idle, then adds .is-lit) */
.ab-trio__chip--agent { --c-line: var(--red-bright); --c-bg: rgba(215, 55, 43, .14); --c-fg: #ffc2ba; --c-ic: var(--red); --c-gl: #fff; }
.ab-trio__chip--ok { --c-line: rgba(120, 220, 150, .5); --c-bg: rgba(120, 220, 150, .1); --c-fg: #9fe8b5; --c-ic: rgba(120, 220, 150, .2); --c-gl: var(--green); }
.ab-trio__chip--key { --c-line: rgba(245, 239, 230, .5); --c-bg: rgba(245, 239, 230, .06); --c-fg: var(--cream); --c-ic: var(--cream); --c-gl: var(--ink); }
.ab-trio.is-armed:not(.is-lit) .ab-trio__chip { --c-line: rgba(245, 239, 230, .18); --c-bg: transparent; --c-fg: var(--muted); --c-ic: rgba(245, 239, 230, .08); --c-gl: rgba(245, 239, 230, .55); transition-delay: 0s; }
.ab-trio.is-armed:not(.is-lit) .ab-trio__ic, .ab-trio.is-armed:not(.is-lit) .ab-trio__ic::before { transition-delay: 0s; }
.ab-trio.is-armed:not(.is-lit) .ab-trio__chip::after { transform: scaleX(0); transition-delay: 0s; }

@media (max-width: 959px) {
  .ab-story__side { grid-column: 1 / -1; position: static; margin-bottom: clamp(48px, 7vw, 72px); }
  .ab-story__body { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .ab-chap { padding-left: 28px; padding-bottom: 64px; }
  .ab-chap__t { margin-top: 14px; }
  .ab-chap__d { font-size: 17px; }
  .ab-pull { margin-top: 28px; padding: 22px; }
  .ab-pull__q p { font-size: 22px; }
}
/* the trio stacks when its chapter is too narrow for one row; connectors run down */
@container (max-width: 499px) {
  .ab-trio { flex-direction: column; align-items: flex-start; gap: 0; margin-top: 26px; }
  .ab-trio__chip + .ab-trio__chip { margin: 22px 0 0; }
  .ab-trio__chip + .ab-trio__chip::before, .ab-trio__chip + .ab-trio__chip::after { right: auto; left: 18px; top: auto; bottom: calc(100% + 4px); width: 1px; height: 14px; }
  .ab-trio__chip + .ab-trio__chip::after { background: linear-gradient(180deg, var(--red-deep), var(--red-bright)); transform-origin: top; }
  .ab-trio.is-armed:not(.is-lit) .ab-trio__chip::after { transform: scaleY(0); }
}

/* ==========================================================================
   3. My role [cream]: the handoff strip, then three promises
   ========================================================================== */
.ab-role { padding: var(--section-y) var(--gutter); background: var(--cream); color: var(--ink); }
.ab-role__wrap { display: flex; flex-direction: column; }
.ab-role__head .sec-head__aside { color: var(--body-on-light); padding-bottom: 8px; }

.ab-handoff {
  --pad: clamp(28px, 3.4vw, 48px); --col-gap: 28px;
  position: relative; margin-top: clamp(48px, 6vw, 80px); padding: var(--pad);
  border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line-l); box-shadow: var(--sh-card-l);
}
.ab-handoff__list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--col-gap); margin: 0; padding: 0; list-style: none; }
/* rail: CSS geometry for no-JS, p-about.js sets it from the real node centers */
.ab-handoff__rail {
  position: absolute; z-index: 0; left: calc(var(--pad) + 26px); top: calc(var(--pad) + 28px); height: 1px;
  width: calc((100% - 2 * var(--pad) - 3 * var(--col-gap)) * .75 + 3 * var(--col-gap)); background: var(--line-l2);
}
.ab-handoff__fill { position: absolute; inset: 0; transform-origin: 0 0; background: linear-gradient(90deg, var(--red-deep), var(--red-bright)); box-shadow: 0 0 10px rgba(239, 90, 76, .35); }
.ab-handoff.is-vertical .ab-handoff__fill { background: linear-gradient(180deg, var(--red-deep), var(--red-bright)); }
.ab-handoff .ab-handoff__token { position: absolute; z-index: 1; left: 0; top: 0; opacity: 0; }
.ab-handoff:not(.is-armed) .ab-handoff__token { display: none; }

.ab-ho { position: relative; z-index: 2; display: grid; grid-template-areas: "node" "n" "t"; justify-items: start; align-content: start; }
.ab-ho__node { grid-area: node; display: flex; align-items: center; height: 56px; }
.ab-ho__n { grid-area: n; margin-top: 26px; font: 500 12px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: .14em; color: var(--red-deep); }
.ab-ho__t { grid-area: t; margin-top: 12px; max-width: 13em; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.ab-ho__tile {
  position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-sm);
  background: #fff; border: 1px solid var(--line-l2); color: var(--ink); box-shadow: 0 10px 24px -16px rgba(20, 17, 16, .4);
  transition: border-color .45s var(--ease), background-color .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease);
}
.ab-ho__tile svg { width: 24px; height: 24px; }
.ab-ho span.ab-ho__agent { --uv-size: 52px; }
/* brief: lit while the token leaves it */
.ab-handoff.is-armed .ab-ho--brief.is-on .ab-ho__tile { border-color: var(--red); }
/* step 03: the gate is the node on desktop; on phones it moves under the title */
.ab-ho__you { display: none; }
.ab-ho__gate { grid-area: node; align-self: center; border-radius: 999px; background: var(--paper); }
.ab-ho--gate .ab-ho__node { visibility: hidden; }
/* step 04: the hand over, idles with a soft glow once reached (static final: lit) */
.ab-ho__tile--out { background: var(--ink); border-color: var(--ink); color: var(--cream); box-shadow: 0 14px 30px -12px rgba(215, 55, 43, .55); }
.ab-ho__tile--out::after {
  content: ''; position: absolute; inset: -7px; border-radius: 19px; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(215, 55, 43, .35), 0 0 26px rgba(239, 90, 76, .35);
  animation: abBreathe 4s ease-in-out infinite;
}
.ab-handoff.is-armed .ab-ho--out:not(.is-on) .ab-ho__tile--out { background: #fff; border-color: var(--line-l2); color: var(--ink); box-shadow: 0 10px 24px -16px rgba(20, 17, 16, .4); }
.ab-handoff.is-armed .ab-ho--out:not(.is-on) .ab-ho__tile--out::after { opacity: 0; animation: none; }

/* three promises: plain columns with hairline dividers */
.ab-proms { margin-top: clamp(64px, 8vw, 104px); }
.ab-proms__label { margin: 0 0 22px; font: 500 11px/1.3 'Geist Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--label-on-light); }
.ab-proms__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-l2); }
.ab-prom { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 40px 36px 4px; }
.ab-prom:first-child { padding-left: 0; }
.ab-prom:last-child { padding-right: 0; }
.ab-prom + .ab-prom::before { content: ''; position: absolute; left: 0; top: 40px; bottom: 0; width: 1px; background: var(--line-l2); }
.ab-prom__ic { width: 40px; height: 40px; fill: none; stroke: var(--red-deep); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ab-prom__t { margin-top: 28px; font-size: clamp(20px, 1.8vw, 25px); font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
.ab-prom__d { margin-top: 10px; max-width: 30ch; font-size: 16.5px; line-height: 1.6; color: var(--body-on-light); }

/* below 960px the four columns get narrower than the waiting gate: the strip runs down, the token moves down */
@media (max-width: 959px) {
  .ab-handoff { --pad: clamp(24px, 4vw, 36px); }
  .ab-prom { padding-left: 26px; padding-right: 26px; }
  .ab-handoff__list { grid-template-columns: minmax(0, 1fr); gap: 26px 0; }
  .ab-handoff__rail { left: calc(var(--pad) + 26px); top: calc(var(--pad) + 26px); width: 1px; height: calc(100% - 2 * var(--pad) - 52px); }
  .ab-ho { grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "node n" "node t" "node g"; column-gap: 18px; }
  .ab-ho__node { height: 52px; align-self: start; }
  .ab-ho__n { margin-top: 6px; }
  .ab-ho__t { margin-top: 9px; max-width: none; font-size: 18px; }
  .ab-ho--gate .ab-ho__node { visibility: visible; }
  .ab-ho__you {
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 1px solid var(--line-l2);
    transition: border-color .45s var(--ease), background-color .45s var(--ease);
  }
  .ab-ho__you::before {
    content: ''; width: 22px; height: 22px; background: var(--ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .ab-ho--gate.is-on .ab-ho__you, .ab-handoff:not(.is-armed) .ab-ho__you { border-color: var(--green-ink); background: #f1f6f1; }
  .ab-ho__gate { grid-area: g; align-self: start; margin-top: 14px; }
}
@media (max-width: 759px) {
  .ab-proms__list { grid-template-columns: minmax(0, 1fr); }
  .ab-prom, .ab-prom:first-child, .ab-prom:last-child { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 20px; padding: 28px 0; }
  .ab-prom + .ab-prom::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
  .ab-prom__ic { grid-row: 1 / span 2; }
  .ab-prom__t { margin-top: 6px; }
  .ab-prom__d { max-width: none; }
}

/* ==========================================================================
   4. What I build [ink]: copy left, the three layers and the agents as rows right
   ========================================================================== */
.ab-co {
  position: relative; overflow-x: clip; padding: var(--section-y) var(--gutter); color: var(--cream);
  background: radial-gradient(50% 60% at 0% 100%, rgba(138, 31, 23, .32), transparent 70%), var(--ink);
}
.ab-co__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.ab-co__copy { grid-column: 1 / span 5; position: sticky; top: 140px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.ab-co__copy .eyebrow { margin-bottom: -2px; }
.ab-co__lede { max-width: 34em; font-size: clamp(17px, 1.45vw, 19px); line-height: 1.65; color: var(--muted-light); }
.ab-co__lede strong { color: var(--cream); font-weight: 600; }
.ab-co__lede + .ab-co__lede { margin-top: -8px; }
.ab-co__proof {
  display: flex; align-items: baseline; gap: 12px; max-width: 34em; margin: 4px 0 0; padding: 16px 18px;
  border-radius: var(--r-md); background: var(--ink-raised); border: 1px solid var(--line-d);
  font-size: 15px; line-height: 1.55; color: var(--cream);
}
.ab-co__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 0 4px rgba(215, 55, 43, .18); transform: translateY(-1px); }
.ab-co__more { margin-top: 4px; }
.ab-co__list { grid-column: 7 / -1; position: relative; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-d2); }
.ab-sys { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line-d2); }
.ab-sys__n { padding-top: 10px; font: 500 12px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: .14em; color: var(--red-bright); }
.ab-sys__main { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.ab-sys__t { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; line-height: 1.15; letter-spacing: -.03em; color: var(--cream); }
.ab-sys__d { max-width: 36em; font-size: 16px; line-height: 1.6; color: var(--muted-light); }
/* the admin portal, the command center: the one lit row */
.ab-sys--back { --bx: clamp(14px, 2vw, 24px); isolation: isolate; }
.ab-sys--back::before {
  content: ''; position: absolute; z-index: -1; inset: 8px calc(-1 * var(--bx)); pointer-events: none;
  border-radius: var(--r-md); background: var(--ink-raised); box-shadow: inset 0 0 0 1px rgba(239, 90, 76, .35);
}
.ab-sys--back .serif { color: var(--red-bright); }

@media (max-width: 959px) {
  .ab-co__grid { row-gap: clamp(48px, 7vw, 72px); }
  .ab-co__copy { position: static; }
  .ab-co__copy, .ab-co__list { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .ab-sys { grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 26px 0; }
  .ab-sys--back { --bx: 10px; }
  .ab-sys__n { padding-top: 8px; }
}

/* ==========================================================================
   5. What I believe [sand]: four principle rows, each rule draws in
   ========================================================================== */
.ab-method { padding: var(--section-y) var(--gutter); background: var(--sand); color: var(--ink); }
.ab-method__head { display: flex; flex-direction: column; gap: 22px; max-width: 860px; }
.ab-method__lede { max-width: 34em; margin-top: 2px; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: var(--body-on-light); }
.ab-prins { margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; list-style: none; }
.ab-prin {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline;
  padding: 40px 0; border-top: 1px solid var(--line-l2);
}
.ab-prin:last-child { border-bottom: 1px solid var(--line-l2); }
.ab-prin__n { grid-column: 1 / span 2; font: 500 12px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: .14em; color: var(--red-deep); }
.ab-prin__t { grid-column: 3 / span 5; font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; line-height: 1.2; letter-spacing: -.03em; }
.ab-prin__d { grid-column: 8 / -1; justify-self: end; width: 100%; max-width: 34em; font-size: clamp(16.5px, 1.4vw, 18px); line-height: 1.6; color: var(--body-on-light); }
@media (max-width: 959px) {
  .ab-prin { grid-template-columns: 64px minmax(0, 1fr); row-gap: 12px; padding: 32px 0; }
  .ab-prin__n { grid-column: 1; grid-row: 1 / span 2; }
  .ab-prin__t, .ab-prin__d { grid-column: 2; }
}
.ab-method__links { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: clamp(40px, 5vw, 56px); }
@media (max-width: 599px) {
  .ab-prin { grid-template-columns: 44px minmax(0, 1fr); padding: 28px 0; }
  .ab-prin__t { font-size: 22px; }
}

/* ---------- Reduced motion: every part shows its final frame ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .ahero::before, .js .ahero__serif, .js .ahero__plate, .js .ahero__cut, .js .ahero__img, .js .ahero__lede, .js .ahero__actions { animation: none !important; }
  .ab-ho__tile--out::after, .ab-chap__node.is-ping::after { animation: none !important; }
}

/* 320px phones: the waiting gate is wider than its column, so it takes the full row */
@media (max-width: 359px) { .ab-ho__gate { grid-column: 1 / -1; justify-self: start; } }
@media (prefers-reduced-motion: reduce) { .js .ahero__art::before { animation: none !important; } }
