/* About page (site/about/). One bone section: why inertia exists, how we work with operators, the founders, a close with the ways in.
   Default (no JS, reduced motion): everything flows and the join figure is drawn complete. Motion exists only under html.js:not(.static):not(.fx-fail).
   No paper here (D2) and no controls. Nothing animates box-shadow or filter. */
/* The swarm canvas is fixed at z-index 3, above the default 2 of section children: copy stacks above it so dust never strikes through words. */
#about > * { z-index: 4; }
/* ---- head: the 96 px IMPULSE seal beside the page h1. The markup is the canonical seal (cuts at full reach), so no-JS and reduced motion
   read it static; with motion the cuts start closed and founders.mjs draws them in, then sets [data-drawn] and hands back to the markup. */
.about__head { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
.about__seal { flex: none; display: block; width: 96px; height: 96px; overflow: visible; --seal: var(--on-bone); }
.about__title { min-width: 0; }
html.js:not(.static):not(.fx-fail) .about__seal:not([data-drawn]) .seal__cut { width: 0; }
@media (min-width: 721px) { .about__head { flex-direction: row; align-items: flex-start; gap: clamp(1.4rem, 3vw, 2.6rem); } .about__seal { margin-top: 2.2rem; } }
.founders__sub { max-width: 52ch; margin-top: 1.2rem; color: var(--mut); }
.founders { --plate: clamp(150px, 15vw, 210px); position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.6rem; margin-block: clamp(1.4rem, 3vw, 2.6rem) 1.2rem; }
.founder {
  position: relative; z-index: 2; display: grid; gap: .5rem; align-content: start;
  padding: clamp(1.2rem, 2vw, 1.8rem); padding-left: calc(clamp(1.2rem, 2vw, 1.8rem) + 6px);
  background: var(--bone-2); color: var(--on-bone);
  box-shadow: inset 0 0 0 1px var(--line-bone), inset 4px 0 0 var(--signal);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  transform: translate3d(0, var(--ty, 0px), 0) rotate(var(--rz, 0deg));
  transform-origin: 50% 60%;
}
html.js:not(.static):not(.fx-fail) .founder { transform: translate3d(0, var(--ty, 0px), 0) rotate(var(--rz, 0deg)) perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.founder::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(280px circle at var(--gx, 50%) var(--gy, 30%), rgb(255 255 255 / .6), transparent 62%);
  opacity: calc(var(--glare, 0) * .55);
}
/* The portrait plate: an ink panel with the dot-matrix initial large, its dots arriving from the plate's edge (clipped, so they never cross the name). */
.founder .mono {
  position: relative; display: grid; place-items: center; width: 100%; height: var(--plate); margin-bottom: .8rem; line-height: 0; overflow: clip;
  background: var(--bg); color: var(--fg); clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.founder .mono::before { content: attr(data-n); position: absolute; left: .9rem; top: .8rem; font-family: var(--font-mono); font-size: .875rem; letter-spacing: .1em; color: var(--mut); line-height: 1; }
.founder .mono::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--signal); }
.mono__svg { display: block; height: calc(var(--plate) * .7); width: auto; overflow: visible; fill: var(--fg); }
.founder h3 { font-size: clamp(1.4rem, 2.3vw, 2.1rem); }
.founder__role { font-family: var(--font-mono); font-size: .875rem; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; color: var(--mut); }
.founder ul { display: grid; gap: .55rem; margin-top: .3rem; }
.founder li { padding-left: 1.1rem; position: relative; max-width: 60ch; font-size: max(1rem, 14px); line-height: 1.45; }
.founder li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5rem; height: 1px; background: currentColor; }
.founders__bridge { display: none; }
.founders__trail { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.trail__dot { fill: var(--signal); opacity: 0; }
.founders-live .founders__bridge::before, .founders-live .bridge__packet { display: none; }

@media (min-width: 901px) {
  .founders { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); gap: 0; align-items: stretch; }
  .founders__bridge { display: block; position: relative; align-self: start; height: 14px; margin-top: calc(clamp(1.2rem, 2vw, 1.8rem) + var(--plate) * .5 - 7px); overflow: clip; }
  .founders__bridge::before {
    content: ""; position: absolute; left: -4px; right: -4px; top: 6px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--on-bone) 0 7px, transparent 7px 11px);
  }
  .bridge__gate { position: absolute; left: 50%; top: 0; width: 14px; height: 14px; margin-left: -7px; border: 1px solid var(--on-bone); border-radius: 50%; background: var(--bone); }
  .bridge__packet { position: absolute; left: 0; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
}

html.js:not(.static):not(.fx-fail) .founders__bridge::before { animation: lane-flow .9s linear infinite; }
html.js:not(.static):not(.fx-fail) .bridge__packet { animation: bridge-packet 3.4s cubic-bezier(.31, -.01, .55, .99) infinite; }
@keyframes lane-flow { to { transform: translateX(11px); } }
@keyframes bridge-packet { 0% { transform: translateX(-10px); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(80px); opacity: 0; } }


/* ---- page rhythm -------------------------------------------------------------------------------------------- */
#about { --pad-block: clamp(104px, 8vw, 128px); }
.about__lede { max-width: 56ch; margin-top: 1.4rem; font-size: clamp(1.1rem, 1.5vw, 1.45rem); line-height: 1.4; }
.about__block { position: relative; margin-top: clamp(3.5rem, 8vw, 7.5rem); }
.about__h { font-size: clamp(1.6rem, 3.4vw, 3.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; max-width: 18ch; }
.about__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.4rem, 2.6vw, 2.4rem); margin-top: clamp(1.4rem, 3vw, 2.4rem); }
.about__col { position: relative; display: grid; gap: .55rem; align-content: start; padding-top: 1.1rem; border-top: 2px solid var(--on-bone); }
.about__col h3 { font-size: clamp(1.15rem, 1.7vw, 1.55rem); line-height: 1.12; }
.about__col p { max-width: 38ch; font-size: max(1rem, 14px); line-height: 1.45; color: var(--mut); }
.about__n { font-family: var(--font-mono); font-size: .875rem; letter-spacing: .08em; color: var(--signal); }
@media (min-width: 901px) {
  .about__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about__cols--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.2rem, 2vw, 2rem); }
}

/* ---- the join: two sides, one system -------------------------------------------------------------------------- */
/* --u is 1 by default (composed). The scene writes it from scroll under html.js; each dot starts --sx px away from its resting place. */
.about__join { --u: 1; margin: clamp(2rem, 4vw, 3.4rem) 0 0; }
.about__join svg { display: block; width: 100%; height: auto; max-height: 190px; overflow: visible; }
.join__line { fill: none; stroke: var(--on-bone); stroke-width: 1.5; opacity: .55; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--u)); vector-effect: non-scaling-stroke; }
.join__dot { fill: var(--on-bone); transform: translateX(calc((1 - var(--u)) * var(--sx))); }
.join__hub { fill: var(--signal); transform-box: fill-box; transform-origin: center; transform: scale(calc(.3 + .7 * var(--u))); }
.about__join figcaption { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; margin-top: 1rem; font-size: max(1rem, 14px); }
.about__join figcaption b { margin-right: .5em; font-family: var(--font-mono); font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 901px) {
  .about__join figcaption { grid-template-columns: 1fr 1fr; }
  .about__join figcaption span:last-child { text-align: right; }
}

/* ---- founders in the page ------------------------------------------------------------------------------------- */
.about__people .founders { margin-top: clamp(1.6rem, 3.4vw, 2.8rem); }

/* ---- the close: an ink plate with the ways in --------------------------------------------------------------- */
.about__close {
  position: relative; display: grid; gap: 1.1rem; justify-items: start;
  margin-top: clamp(3.5rem, 8vw, 7.5rem); padding: clamp(1.8rem, 4.6vw, 4rem);
  background: var(--bg); color: var(--fg);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.about__close > p:not(.label):not(.about__cta) { max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.4; }
.about__close .about__h { max-width: 14ch; }
.about__cta { display: flex; flex-wrap: wrap; gap: .9rem 1.2rem; align-items: center; margin-top: .6rem; }
.about__cta .btn { white-space: normal; text-align: center; }
@media (max-width: 900px) {
  .about__cta .link { display: inline-flex; align-items: center; min-height: 44px; }
}
/* A quiet echo of the mark on the plate's empty half: a vermilion core inside two hairline rings. Desktop only, never behind the words. */
@media (min-width: 901px) {
  .about__close::after {
    content: ""; position: absolute; right: clamp(2rem, 8vw, 9rem); top: 50%; z-index: 0; width: clamp(160px, 20vw, 300px); aspect-ratio: 1; translate: 0 -50%; pointer-events: none;
    background: radial-gradient(circle closest-side, var(--signal) 0 15%, transparent 16% 49%, var(--line) 50% 50.6%, transparent 51% 79%, var(--line) 80% 80.5%, transparent 81%);
  }
}
.about__close > * { position: relative; z-index: 1; }

/* ---- You stay in the room: a weekly cycle that draws itself with the scroll ----------------------------------- */
/* --u is 1 by default (composed); the scene writes it from scroll under html.js. Four nodes light in turn and a vermilion packet rides the line. */
.about__room { --u: 1; margin: clamp(1.6rem, 3.4vw, 2.8rem) 0 0; }
.about__room svg { display: block; width: 100%; height: auto; overflow: visible; }
.room__line, .room__loop { fill: none; stroke: var(--on-bone); stroke-width: 1.5; stroke-dasharray: 1; }
.room__line { stroke-dashoffset: calc(1 - var(--u)); opacity: .7; }
.room__loop { vector-effect: non-scaling-stroke; stroke-dasharray: 5 6; stroke-dashoffset: 0; opacity: calc(.55 * var(--u)); }
.room__node { --k: clamp(0, calc(var(--u) * 4.4 - var(--i)), 1); fill: var(--on-bone); transform-box: fill-box; transform-origin: center; transform: scale(calc(.4 + .6 * var(--k))); opacity: calc(.25 + .75 * var(--k)); }
.room__packet { fill: var(--signal); transform: translateX(calc(var(--u) * 900px)); }
.about__room figcaption { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1rem; margin-top: .6rem; font-size: max(1rem, 14px); line-height: 1.35; }
@media (min-width: 901px) { .about__room figcaption { grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; } }

/* ---- the founders header: headline left, the balance right ----------------------------------------------------- */
.people__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.6rem, 3vw, 2.4rem); align-items: end; }
.about__balance { margin: 0; max-width: 460px; }
.about__balance svg { display: block; width: 100%; height: auto; overflow: visible; }
.about__balance figcaption { margin-top: .8rem; max-width: 34ch; font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.35; font-weight: 600; }
.bal__base { fill: none; stroke: var(--on-bone); stroke-width: 1.5; stroke-linejoin: round; opacity: .55; }
.bal__beam line { stroke: var(--on-bone); stroke-width: 2; }
.bal__k circle { fill: var(--on-bone); }
.bal__s circle, .bal__pivot { fill: var(--signal); }
.bal__beam { transform-box: view-box; transform-origin: 180px 112px; }
html.js:not(.static):not(.fx-fail) .bal__beam { animation: bal-rock 7s ease-in-out infinite; }
@keyframes bal-rock { 0%, 100% { transform: rotate(-3.5deg); } 50% { transform: rotate(3.5deg); } }
@media (min-width: 901px) {
  .people__head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .about__balance { justify-self: end; }
}
