/* ============================================================
   REDLINE AI — design system
   White editorial canvas · one red · giant condensed caps
   Pills are the ONLY rounded shape. Everything else: 0 radius.
   ============================================================ */
:root{
  --canvas:#FFFFFF; --ink:#0A0A0A;
  --red:#E8102D;
  --red-bright:#FF3B3B; /* a11y: red TEXT on near-black (AA ~5.6:1); brand --red stays for display + fills */
  --blue:#1043F9; --green:#34FF48; --purple:#E64AFF;
  --paper:#F4F3F0;
  --line:rgba(10,10,10,.15); --line-inv:rgba(255,255,255,.2);
  --mut:#777570; --mut-inv:rgba(255,255,255,.55);
  --disp:'Anton',sans-serif;
  --body:'Archivo',-apple-system,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,monospace;
  --wrap:1320px; --gutter:clamp(18px,4vw,56px);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:var(--canvas);color:var(--ink);font-family:var(--body);
  font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased}
img,video,canvas{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter)}
section{padding:clamp(72px,10vw,150px) 0}

/* ---- type ---- */
.disp{font-family:var(--disp);font-weight:400;text-transform:uppercase;
  line-height:.92;letter-spacing:.005em}
h1.disp{font-size:clamp(64px,12.5vw,230px);line-height:.88}
h2.disp{font-size:clamp(40px,7vw,110px)}
h3.disp{font-size:clamp(26px,3.4vw,48px)}
.disp .rd{color:var(--red)}
.eyebrow{font-family:var(--mono);font-size:12px;letter-spacing:.18em;
  text-transform:uppercase;color:var(--mut);display:block;margin-bottom:22px}
.on-black .eyebrow,.on-red .eyebrow{color:var(--mut-inv)}
.lead{font-size:clamp(17px,1.5vw,21px);max-width:640px;color:var(--ink)}
.on-black .lead{color:#fff}
.meta{font-family:var(--mono);font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--mut)}

/* ---- bands ---- */
.on-black{background:#0A0A0A;color:#fff}
.on-paper{background:var(--paper)}
.on-red{background:var(--red);color:#fff}

/* ---- pills (the single soft shape) ---- */
.pill{display:inline-flex;align-items:center;gap:10px;border:1px solid var(--ink);
  border-radius:999px;padding:13px 28px;font-family:var(--body);font-weight:600;
  font-size:14px;cursor:pointer;background:transparent;color:var(--ink);
  transition:transform .2s,background .2s,color .2s}
.pill:hover{background:var(--ink);color:#fff}
.pill:active{transform:scale(.97)}
.pill--red{background:var(--red);border-color:var(--red);color:#fff}
.pill--red:hover{background:#c00d25;border-color:#c00d25;color:#fff}
.on-black .pill,.on-red .pill{border-color:#fff;color:#fff}
.on-black .pill:hover,.on-red .pill:hover{background:#fff;color:var(--ink)}
.tag{display:inline-block;border:1px solid var(--line);border-radius:999px;
  padding:5px 14px;font-family:var(--mono);font-size:10px;letter-spacing:.12em;
  text-transform:uppercase;white-space:nowrap;color:var(--mut)}
.on-black .tag{border-color:var(--line-inv);color:var(--mut-inv)}
.tag--blue{border-color:rgba(16,67,249,.35);color:var(--blue)}
.tag--green{border-color:rgba(52,255,72,.35);color:#11891f}
.tag--purple{border-color:rgba(230,74,255,.38);color:var(--purple)}
.on-black .tag--blue{color:#9eb2ff}
.on-black .tag--green{color:#8cff98}
.on-black .tag--purple{color:#f0a1ff}

/* ---- nav ---- */
header.site{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
header.site .bar{display:flex;align-items:center;justify-content:space-between;
  height:66px}
.mark{font-family:var(--disp);font-size:24px;letter-spacing:.02em;
  text-transform:uppercase}
.mark i{font-style:normal;color:var(--red)}
.nav-right{display:flex;align-items:center;gap:18px}
.menu-btn{font-family:var(--disp);font-size:16px;letter-spacing:.08em;
  text-transform:uppercase;background:none;border:0;cursor:pointer;color:var(--ink)}
#menu{position:fixed;inset:0;background:#0A0A0A;color:#fff;z-index:60;
  display:none;flex-direction:column;justify-content:center;padding:0 var(--gutter)}
#menu.open{display:flex}
#menu a{font-family:var(--disp);font-size:clamp(40px,7vw,92px);
  text-transform:uppercase;line-height:1.12;display:flex;gap:22px;align-items:baseline}
#menu a em{font-family:var(--mono);font-style:normal;font-size:12px;color:var(--mut-inv)}
#menu a:hover{color:var(--red)}
#menu .close{position:absolute;top:20px;inset-inline-end:var(--gutter)}

/* ---- hero ---- */
.hero{padding-top:clamp(40px,6vw,90px)}
.hero h1{margin:10px 0 34px}
.actions{display:flex;gap:14px;flex-wrap:wrap}
.hero .actions{margin-top:8px}

/* ---- built-on strip ---- */
.stack-strip{border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  padding:18px 0}
.stack-strip .row{display:flex;align-items:center;gap:34px;flex-wrap:wrap}
.stack-strip .row b{font-family:var(--mono);font-weight:400;font-size:12px;
  letter-spacing:.12em;color:var(--mut);text-transform:uppercase}
.stack-strip .row span{font-family:var(--body);font-weight:700;font-size:15px;
  color:var(--mut);filter:grayscale(1)}

/* ---- statement band (scroll-brighten) ---- */
.statement{text-align:center}
.statement p{font-family:var(--body);font-weight:600;
  font-size:clamp(24px,3.6vw,46px);line-height:1.3;max-width:1000px;margin:0 auto}
.statement p .w{color:rgba(255,255,255,.22);transition:color .35s}
.statement p .w.lit{color:#fff}
/* problem band: full-bleed local image behind the statement (home only, .has-media) */
.statement.has-media{position:relative;overflow:hidden;
  min-height:clamp(440px,72vh,760px);display:flex;align-items:center}
.statement.has-media .wrap{position:relative;z-index:2;width:100%}
.statement-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:.85;filter:brightness(1.55) contrast(1.06) saturate(1.08);z-index:0}
/* light scrim — keeps the photo clearly visible; legibility comes from text-shadow */
.statement.has-media::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(10,10,10,.5) 0%,rgba(10,10,10,.16) 45%,rgba(10,10,10,.58) 100%)}
.statement.has-media p{text-shadow:0 2px 30px rgba(0,0,0,.85),0 1px 4px rgba(0,0,0,.75)}
.statement.has-media p .w{color:rgba(255,255,255,.55)}
.statement.has-media p .w.lit{color:#fff}
@media (prefers-reduced-motion: no-preference){
  .statement-bg{animation:kenburns 26s ease-in-out infinite alternate;transform-origin:60% 50%}
}

/* ---- marquee ---- */
.marquee{overflow:hidden;white-space:nowrap;padding:18px 0;border-top:1px solid var(--line);
  border-bottom:1px solid var(--line)}
.marquee .track{display:inline-block;animation:mq 28s linear infinite}
.marquee .track span{font-family:var(--disp);font-size:clamp(56px,9vw,150px);
  text-transform:uppercase;line-height:1;padding-inline-end:.5em}
.marquee .track span i{font-style:normal;color:var(--red)}
@keyframes mq{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ---- list rows ---- */
.rows{border-top:1px solid var(--line)}
.row-item{display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:26px 0;border-bottom:1px solid var(--line);position:relative;
  transition:padding .2s,opacity .2s}
.row-item::before{content:"";position:absolute;inset:0 auto 0 0;width:0;background:var(--red);
  transition:width .25s ease}
.row-item .t{font-size:clamp(20px,2.6vw,34px);font-weight:600}
.row-item .sub{color:var(--mut);font-size:15px;max-width:520px;margin-top:6px}
.row-item .end{display:flex;align-items:center;gap:14px;flex-shrink:0}
.row-item .arr{font-size:22px;transition:transform .2s}
a.row-item:hover .t{color:var(--red)}
a.row-item:hover::before,a.row-item.preview-live::before{width:4px}
a.row-item:hover{padding-inline-start:18px}
a.row-item:hover .arr{transform:translateX(6px)}
.on-black .rows,.on-black .row-item{border-color:var(--line-inv)}
.on-black .row-item .sub{color:var(--mut-inv)}
.row-item[hidden]{display:none}

/* ---- filters and hover previews ---- */
.filter-bar{display:flex;flex-wrap:wrap;gap:10px;margin-top:34px}
.filter-chip{border:1px solid var(--line);border-radius:999px;background:transparent;
  color:var(--ink);cursor:pointer;font-family:var(--mono);font-size:11px;
  letter-spacing:.12em;text-transform:uppercase;padding:9px 15px;
  transition:background .2s,color .2s,border-color .2s}
.filter-chip:hover,.filter-chip.active{background:var(--ink);border-color:var(--ink);color:#fff}
.row-preview-card{position:fixed;z-index:80;width:min(280px,32vw);aspect-ratio:4/3;
  left:0;top:0;pointer-events:none;opacity:0;background:#000 center/cover no-repeat;
  border:1px solid rgba(255,255,255,.32);box-shadow:0 24px 70px rgba(0,0,0,.28);
  transition:opacity .18s ease;will-change:transform}
.row-preview-card::after{content:"";position:absolute;inset:0;border:8px solid rgba(232,16,45,.82);
  mix-blend-mode:screen;opacity:.75}
.row-preview-card.show{opacity:1}

/* ---- scrub (pinned mark sequence) ---- */
.scrub{height:340vh;position:relative;background:#000;padding:0}
.scrub .stage{position:sticky;top:0;height:100vh;display:flex;align-items:center;
  justify-content:center;overflow:hidden}
.scrub canvas,.scrub img.poster{width:min(82vmin,900px);height:auto}
.scrub .cap{position:absolute;bottom:7vh;left:0;right:0;text-align:center}

/* ---- dark panels ---- */
.panel{background:#0A0A0A;color:#fff;border:1px solid #1c1c1c;padding:clamp(22px,3vw,40px)}
.panel .meta{color:var(--mut-inv)}
/* node canvas */
.nodes{display:flex;align-items:center;gap:0;flex-wrap:wrap;margin-top:26px}
.node{border:1px solid var(--line-inv);padding:14px 18px;min-width:150px}
.node b{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--red);margin-bottom:6px}
.node span{font-size:13px;color:#fff}
.edge{flex:1;min-width:34px;height:1px;border-top:1px dashed var(--line-inv);position:relative}
.edge::after{content:"";position:absolute;top:-3px;inset-inline-end:0;width:5px;height:5px;
  background:var(--red);border-radius:50%;animation:pulse 2.4s infinite}
@keyframes pulse{0%,100%{opacity:.2}50%{opacity:1}}
/* telemetry bento */
.bento{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:26px}
.bento .cell{border:1px solid #1c1c1c;background:#0E0E0E;padding:22px;min-height:150px}
.bento .cell.w2{grid-column:span 2}
.bento .num{font-family:var(--disp);font-size:clamp(38px,4.5vw,64px);line-height:1;color:#fff}
.bento .num i{font-style:normal;color:var(--red)}
.bento .lbl{font-family:var(--mono);font-size:10px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--mut-inv);margin-top:10px}
.bento .bar{height:4px;background:#1c1c1c;margin-top:16px;position:relative}
.bento .bar i{position:absolute;inset:0 auto 0 0;background:var(--red)}

/* ---- pinned promise ---- */
.promise{text-align:center}
.promise h2{margin-bottom:24px}
.promise p{max-width:560px;margin:0 auto}

/* ---- quote card ---- */
.quote-wrap{position:relative;text-align:center}
.quote-wrap h2{opacity:.96}
.quote-card{position:relative;z-index:2;background:#fff;border:1px solid var(--line);
  box-shadow:0 24px 60px rgba(0,0,0,.12);max-width:520px;margin:clamp(-60px,-6vw,-90px) auto 0;
  padding:36px;text-align:center}
.quote-card .who{font-family:var(--mono);font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--mut);margin-top:18px}

/* ---- forms ---- */
form .grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:720px){form .grid2{grid-template-columns:1fr}}
.field label{display:block;font-family:var(--mono);font-size:11px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--mut-inv);margin:18px 0 8px}
.field input,.field textarea{width:100%;background:#111;border:1px solid #262626;
  color:#fff;font-family:var(--body);font-size:15px;padding:14px 16px;outline:none;
  border-radius:0}
.field input:focus,.field textarea:focus{border-color:#fff}
.checks{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
@media(max-width:720px){.checks{grid-template-columns:1fr}}
.checks label{display:flex;gap:10px;align-items:center;font-size:14px;color:#fff;cursor:pointer}
.checks input{accent-color:var(--red);width:16px;height:16px}
.hp{position:absolute;left:-9999px;opacity:0;height:0;overflow:hidden}
#form-msg{font-family:var(--mono);font-size:12px;letter-spacing:.08em;margin-top:16px;min-height:18px}
#form-msg.err{color:var(--red)} #form-msg.ok{color:#7ce38b}
#form-msg a{text-decoration:underline;text-underline-offset:3px}

/* ---- footer ---- */
footer .red-band{background:var(--red);color:#fff;padding:clamp(56px,8vw,110px) 0 36px}
footer .red-band .giant{font-family:var(--disp);font-size:clamp(72px,14.5vw,260px);
  line-height:.85;text-transform:uppercase}
footer .cols{display:flex;gap:clamp(28px,6vw,90px);flex-wrap:wrap;margin-top:46px}
footer .cols h5{font-family:var(--mono);font-size:11px;letter-spacing:.16em;
  text-transform:uppercase;color:rgba(255,255,255,.7);margin-bottom:14px}
footer .cols a{display:block;font-size:16px;font-weight:600;padding:5px 0}
footer .cols a:hover{text-decoration:underline}
footer .legal{background:#0A0A0A;color:var(--mut-inv);padding:18px 0;
  font-family:var(--mono);font-size:11px;letter-spacing:.08em}

/* ---- article ---- */
.article{max-width:70ch;margin:0 auto}
.article h2{font-family:var(--body);font-weight:700;font-size:24px;margin:40px 0 14px;
  text-transform:none}
.article p{margin:0 0 18px}
.article .pull{border-inline-start:3px solid var(--red);padding-inline-start:20px;
  font-weight:600;font-size:20px;margin:30px 0}

/* ---- 404 ---- */
.lost{min-height:72vh;display:flex;flex-direction:column;justify-content:center}

/* ---- reveals & motion ---- */
.rv{opacity:0;transform:translateY(26px);
  transition:opacity .6s ease var(--rvd,0s),transform .6s ease var(--rvd,0s)}
.rv.in{opacity:1;transform:none}
/* eyebrows: quick fade + x-shift, lands before their headline */
.eyebrow.rv{transform:translateX(-18px);transition-duration:.45s}
.eyebrow.rv.in{transform:none}
/* masked line reveals (JS wraps display-headline lines in .ln > .ln-in) */
.ln{display:block;overflow:hidden;padding-bottom:.06em;margin-bottom:-.06em}
.ln-in{display:block;transform:translateY(110%);will-change:transform;
  transition:transform .9s cubic-bezier(.16,1,.3,1)}
.split.in .ln-in{transform:translateY(0)}
/* parallax hooks (driven by app.js rAF loop) */
[data-plx]{will-change:transform}
/* row hover: title shifts with the arrow */
.row-item .t{transition:transform .25s ease,color .2s ease}
a.row-item:hover .t{transform:translateX(6px)}
@media (prefers-reduced-motion: reduce){
  .rv{opacity:1;transform:none;transition:none}
  .marquee .track{animation:none}
  .edge::after{animation:none}
  html{scroll-behavior:auto}
  .ln{overflow:visible;padding-bottom:0;margin-bottom:0}
  .ln-in{transform:none;transition:none}
  .eyebrow.rv,.eyebrow.rv.in{transform:none}
  .row-item .t{transition:none}
  a.row-item:hover .t{transform:none}
  [data-plx]{transform:none!important}
  .pill,.row-item,.row-item .arr{transition:none}
  .row-preview-card{display:none}
}
@media(max-width:860px){
  .bento{grid-template-columns:1fr 1fr}
  .row-item{flex-direction:column;align-items:flex-start}
  .row-item .end{align-self:flex-end}
  .filter-bar{margin-top:28px}
}

/* ---- newsletter band ---- */
.nl-band form{display:flex;gap:12px;max-width:600px;margin-top:30px;flex-wrap:wrap;position:relative}
.nl-band input[type=email]{flex:1;min-width:240px;background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.45);color:#fff;padding:14px 16px;
  font-family:var(--body);font-size:15px;outline:none;border-radius:0}
.nl-band input[type=email]::placeholder{color:rgba(255,255,255,.55)}
.nl-band input[type=email]:focus{border-color:#fff}
#nl-msg{flex-basis:100%;font-family:var(--mono);font-size:12px;letter-spacing:.08em;
  color:#fff;min-height:18px}

/* ---- nav monogram (redline mark) ---- */
.mark svg{height:22px;width:auto;vertical-align:-3px;margin-inline-end:8px}

/* ---- media bands ---- */
.media-band{padding:0;overflow:hidden}
.media-band img{width:100%;height:min(72vh,720px);object-fit:cover}
.media-band--case img{height:min(56vh,560px)}

/* ============================================================
   AMBIENT MOTION LAYER — the page breathes even at rest.
   Every rule here is inert under prefers-reduced-motion.
   ============================================================ */
/* red scroll-progress line (JS-injected; sits above the sticky header) */
.progress-line{position:fixed;top:0;left:0;width:100%;height:2px;
  background:var(--red);transform:scaleX(0);transform-origin:0 0;
  z-index:80;pointer-events:none}
/* live status ticker (homepage hero eyebrow) — fixed-width word, fade swap */
.tick-clock{font-variant-numeric:tabular-nums}
.tick-word{display:inline-block;white-space:pre;transition:opacity .3s ease}
.tick-word.swap{opacity:0}
/* magnetic pills — JS lerps the transform; CSS transition must yield */
.pill.mag{transition:background .2s,color .2s}
@media (prefers-reduced-motion: no-preference){
  /* ken burns on media bands — slow breath, origin varied per band */
  .media-band img{animation:kenburns 22s ease-in-out infinite alternate}
  section.media-band:nth-of-type(odd) img{transform-origin:30% 38%}
  section.media-band:nth-of-type(even) img{transform-origin:70% 62%}
  /* living telemetry — red glyphs pulse slow, bars drift on a lazy sine */
  .bento .num i{animation:numpulse 3s ease-in-out infinite}
  .bento .cell:nth-child(2) .num i{animation-delay:-.8s}
  .bento .cell:nth-child(3) .num i{animation-delay:-1.6s}
  .bento .cell:nth-child(5) .num i{animation-delay:-2.2s}
  .bento .bar i{animation:bardrift 9s ease-in-out infinite alternate;transform-origin:0 50%}
  .bento .cell:nth-child(6) .bar i{animation-duration:12s;animation-delay:-5s}
  /* node pulse — desync the relay so the chain reads left-to-right alive */
  .nodes .edge:nth-child(2)::after{animation-delay:-.6s}
  .nodes .edge:nth-child(4)::after{animation-delay:-1.2s}
  .nodes .edge:nth-child(6)::after{animation-delay:-1.8s}
  .nodes .edge:nth-child(8)::after{animation-delay:-2.1s}
}
@keyframes kenburns{from{transform:scale(1)}to{transform:scale(1.045)}}
@keyframes numpulse{0%,100%{opacity:1}50%{opacity:.75}}
@keyframes bardrift{from{transform:scaleX(1)}to{transform:scaleX(.96)}}
@media (prefers-reduced-motion: reduce){
  .progress-line{display:none}
  .tick-word{transition:none}
  .media-band img,.bento .num i,.bento .bar i{animation:none}
  .marquee,.split .ln{transform:none!important}
  .row-preview-card{display:none}
}

/* ============================================================
   IGNITE MOTION PASS (1/2): page loader + richer menu.
   Spec: docs/ignite-interaction-contract.md. rl-* hooks.
   Guarded for prefers-reduced-motion at the foot of the block.
   ============================================================ */
/* page loader — covers on first paint via html.rl-loading (set by the inline
   head script once per session; auto-cleared at 2600ms even if app.js dies).
   Invisible by default, so it is safe-inert until the head script fires. */
.rl-loader{position:fixed;inset:0;z-index:200;background:var(--canvas);
  display:grid;place-items:center;opacity:0;visibility:hidden;
  transition:opacity .55s ease,visibility 0s linear .55s}
html.rl-loading .rl-loader{opacity:1;visibility:visible;transition:none}
html.rl-loading{overflow:hidden}
.rl-loader__mark{position:relative;width:78px;height:78px;color:var(--ink)}
.rl-loader__mark svg{width:100%;height:100%;display:block}
.rl-loader__bar{position:absolute;left:50%;bottom:-24px;transform:translateX(-50%);
  width:130px;height:2px;background:var(--line);overflow:hidden}
.rl-loader__bar::after{content:"";position:absolute;top:0;bottom:0;left:0;width:38%;
  background:var(--red);animation:rl-load 1.05s ease-in-out infinite}
@keyframes rl-load{0%{transform:translateX(-130%)}100%{transform:translateX(360%)}}

/* richer menu — clip-path wipe + staggered links. CSS-only: the existing
   .open toggle in app.js drives it. Base #menu becomes always-flex (was
   display:none) with visibility/clip doing the show/hide. */
#menu{display:flex;visibility:hidden;opacity:0;pointer-events:none;
  clip-path:inset(0 0 100% 0);
  transition:clip-path .62s cubic-bezier(.16,1,.3,1),opacity .4s ease,visibility 0s linear .62s}
#menu.open{visibility:visible;opacity:1;pointer-events:auto;clip-path:inset(0 0 0 0);
  transition:clip-path .72s cubic-bezier(.16,1,.3,1),opacity .3s ease}
#menu a{opacity:0;transform:translateY(38px);
  transition:opacity .5s ease,transform .6s cubic-bezier(.16,1,.3,1)}
#menu.open a{opacity:1;transform:none}
#menu.open a:nth-child(2){transition-delay:.16s} #menu.open a:nth-child(3){transition-delay:.22s}
#menu.open a:nth-child(4){transition-delay:.28s} #menu.open a:nth-child(5){transition-delay:.34s}
#menu.open a:nth-child(6){transition-delay:.40s}

@media (prefers-reduced-motion: reduce){
  .rl-loader{display:none} html.rl-loading{overflow:auto}
  #menu{transition:none} #menu.open{transition:none}
  #menu a,#menu.open a{transition:none;transform:none;opacity:1}
}

/* ============================================================
   AGENT RUN — interactive, scroll-driven lifecycle diagram.
   Direction (Refero): Eraser "obsidian command-center" — mono labels,
   sharp offset shadow (no blur, honours the flat/0-radius rule), and
   signal-colour node accents mapped onto --blue/--green/--purple.
   Progressive enhancement: static + fully lit by default; app.js adds
   .af-live (desktop, motion-ok only) to pin the stage and activate
   nodes by scroll progress. No JS / reduced-motion / mobile = static.
   ============================================================ */
.agentflow{background:#0A0A0A;color:#fff;overflow:clip}
.af-sticky{padding:clamp(72px,10vw,150px) 0}
.af-head .disp{margin-top:14px}
.af-sub{color:var(--mut-inv);max-width:560px;margin-top:18px;
  font-size:clamp(15px,1.4vw,18px);line-height:1.5}
.af-rail{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);
  margin-top:clamp(38px,5vw,66px);position:relative;--af-spine:31px}
/* the spine: dim baseline + a red fill that tracks scroll progress */
.af-rail::before{content:"";position:absolute;left:0;right:0;top:var(--af-spine);
  height:2px;background:var(--line-inv)}
.af-rail::after{content:"";position:absolute;left:0;top:var(--af-spine);height:2px;
  width:100%;background:var(--red);box-shadow:0 0 16px rgba(232,16,45,.55)}
.af-stage{position:relative;padding:0 clamp(8px,1vw,16px)}
.af-idx{position:absolute;top:0;left:clamp(8px,1vw,16px);font-family:var(--mono);
  font-size:11px;letter-spacing:.14em;color:#fff;transition:color .3s}
.af-dot{display:block;width:14px;height:14px;margin:24px auto 0;background:var(--red);
  border:2px solid var(--red);transition:border-color .3s,background .3s,transform .3s}
.af-node{margin-top:22px;border:1px solid var(--line-inv);background:#0E0E0E;
  padding:18px 18px 20px;opacity:1;
  transition:border-color .35s,box-shadow .35s,transform .35s,opacity .35s}
.af-kicker{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.16em;
  text-transform:uppercase;color:#fff;margin-bottom:10px}
.af-line{font-family:var(--body);font-weight:600;font-size:clamp(16px,1.5vw,20px);
  line-height:1.25}
.af-eg{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.06em;
  color:var(--mut-inv);margin-top:12px;line-height:1.55}
/* ---- live (desktop, motion-ok): pin + progressive activation ---- */
.agentflow.af-live{height:320vh}
.agentflow.af-live .af-sticky{position:sticky;top:0;min-height:100vh;
  display:flex;flex-direction:column;justify-content:center}
.af-live .af-rail::after{width:calc(var(--af-prog,0)*100%);transition:width .12s linear}
.af-live .af-node{opacity:.34}
.af-live .af-idx{color:var(--mut-inv)}
.af-live .af-dot{background:#0A0A0A;border-color:var(--mut-inv)}
.af-live .af-stage.active .af-node{opacity:1}
.af-live .af-stage.active .af-idx{color:#fff}
.af-live .af-stage.active .af-dot{background:var(--red);border-color:var(--red)}
.af-live .af-stage.current .af-dot{transform:scale(1.25)}
.af-live .af-stage.current .af-node{transform:translateY(-6px);
  box-shadow:6px 6px 0 0 rgba(232,16,45,.45)}
/* per-stage signal accents on the current node (system: states = blue/green/purple) */
.af-live .af-stage[data-accent=blue].current .af-node{border-color:rgba(16,67,249,.7);
  box-shadow:6px 6px 0 0 rgba(16,67,249,.4)}
.af-live .af-stage[data-accent=green].current .af-node{border-color:rgba(52,255,72,.6);
  box-shadow:6px 6px 0 0 rgba(52,255,72,.3)}
.af-live .af-stage[data-accent=purple].current .af-node{border-color:rgba(230,74,255,.7);
  box-shadow:6px 6px 0 0 rgba(230,74,255,.4)}
.af-live .af-stage[data-accent=red].current .af-node{border-color:rgba(232,16,45,.85)}
.af-live .af-stage[data-accent=blue].current .af-kicker{color:#9eb2ff}
.af-live .af-stage[data-accent=green].current .af-kicker{color:#8cff98}
.af-live .af-stage[data-accent=purple].current .af-kicker{color:#f0a1ff}
.af-live .af-stage[data-accent=red].current .af-kicker{color:#ff5d72}
@media(max-width:860px){
  .af-rail{grid-template-columns:1fr;gap:14px}
  .af-rail::before,.af-rail::after{display:none}
  .af-idx{position:static;display:block;margin-bottom:8px}
  .af-dot{display:none}
  .af-node{margin-top:0}
}
@media (prefers-reduced-motion: reduce){
  .agentflow.af-live{height:auto}
  .agentflow.af-live .af-sticky{position:static;min-height:0;display:block}
  .af-live .af-node{opacity:1}
  .af-live .af-rail::after{width:100%}
  .af-live .af-dot{background:var(--red);border-color:var(--red)}
  .af-node,.af-dot,.af-idx,.af-rail::after{transition:none}
}

/* ============================================================
   HERO SIGNATURE — live-telemetry / redline instrument
   Flat · one red · mono. Sits in the hero's negative space,
   never fights the Anton headline. Static + intentional with
   NO JS and under prefers-reduced-motion.
   Refs mapped: Index (mono tabular readout, hairline structure),
   Langbase (signal bars as live data, not decoration),
   Vapi (ambient signal field, single reserved accent = the redline).
   ============================================================ */
.hero--sig .wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"main sig";column-gap:clamp(28px,4vw,72px);align-items:end}
.hero-main{grid-area:main;min-width:0}
.hero-sig{grid-area:sig;align-self:end;justify-self:end;
  width:clamp(196px,21vw,268px);user-select:none;padding-bottom:6px}

/* --- the signal-bar field: a tachometer sweeping toward the redline --- */
.hero-sig-field{display:flex;align-items:flex-end;gap:clamp(3px,.5vw,5px);
  height:clamp(46px,6vw,74px);border-bottom:1px solid var(--line);
  padding-bottom:0;margin-bottom:14px}
.hero-sig-bar{flex:1 1 0;min-width:2px;background:var(--ink);
  height:var(--h,30%);opacity:.16;transform-origin:bottom;
  transition:height .9s cubic-bezier(.16,1,.3,1),opacity .6s ease}
/* the redline: the single peak bar carries the one red */
.hero-sig-bar.is-red{background:var(--red);opacity:.92}
/* static intentional heights (rise toward the peak, no JS needed) */
.hero-sig-bar:nth-child(1){--h:18%}
.hero-sig-bar:nth-child(2){--h:26%}
.hero-sig-bar:nth-child(3){--h:22%}
.hero-sig-bar:nth-child(4){--h:34%}
.hero-sig-bar:nth-child(5){--h:30%}
.hero-sig-bar:nth-child(6){--h:46%}
.hero-sig-bar:nth-child(7){--h:40%}
.hero-sig-bar:nth-child(8){--h:58%}
.hero-sig-bar:nth-child(9){--h:52%}
.hero-sig-bar:nth-child(10){--h:70%}
.hero-sig-bar:nth-child(11){--h:64%}
.hero-sig-bar:nth-child(12){--h:84%}
.hero-sig-bar:nth-child(13){--h:100%}
.hero-sig-bar:nth-child(14){--h:78%}
.hero-sig-bar:nth-child(15){--h:54%}
.hero-sig-bar:nth-child(16){--h:36%}
/* a faint sweep highlight rides the field when JS is live */
.hero-sig-bar.lit{opacity:.4}
.hero-sig-bar.is-red.lit{opacity:1}

/* --- the mono live readout --- */
.hero-sig-read{display:block;font-family:var(--mono)}
.hero-sig-row{display:flex;align-items:baseline;justify-content:space-between;
  gap:12px;padding:7px 0;border-top:1px solid var(--line)}
.hero-sig-row:first-child{border-top:0}
.hero-sig-k{font-size:9.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--mut)}
.hero-sig-v{font-size:11px;letter-spacing:.04em;color:var(--ink);
  font-variant-numeric:tabular-nums;white-space:nowrap}
.hero-sig-v .u{color:var(--mut)}
/* status line: single red dot = live, the only red in the readout */
.hero-sig-stat{display:flex;align-items:center;gap:8px;margin-top:10px;
  font-size:9.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--mut)}
.hero-sig-dot{width:6px;height:6px;background:var(--red);flex:0 0 auto}

/* the field breathes slowly only when motion is allowed. Opacity-only,
   so it never animates layout. Gentle baseline pulse on the redline +
   status dot even before JS runs. */
@media (prefers-reduced-motion: no-preference){
  .hero-sig-bar.is-red{animation:heroSigPulse 3.4s ease-in-out infinite}
  .hero-sig-dot{animation:heroSigPulse 2.2s ease-in-out infinite}
}
@keyframes heroSigPulse{0%,100%{opacity:.92}50%{opacity:.5}}

@media(max-width:860px){
  /* stack the signature beneath the copy as a deliberate full-width strip */
  .hero--sig .wrap{grid-template-columns:1fr;grid-template-areas:"main" "sig";
    row-gap:34px;align-items:stretch}
  .hero-sig{width:100%;justify-self:stretch;align-self:auto;
    border-top:1px solid var(--line);padding-top:26px}
  .hero-sig-field{height:clamp(40px,12vw,58px);margin-bottom:16px}
  .hero-sig-read{display:grid;grid-template-columns:1fr 1fr;
    column-gap:clamp(18px,5vw,40px)}
  .hero-sig-row{padding:8px 0}
  /* 2-col grid alignment: rows 1 & 2 are the column tops (no seam); rows
     3 & 4 are their seconds (restore the hairline) so both columns align. */
  .hero-sig-row:nth-child(1),.hero-sig-row:nth-child(2){border-top:0}
  .hero-sig-row:nth-child(3),.hero-sig-row:nth-child(4){border-top:1px solid var(--line)}
  .hero-sig-stat{grid-column:1 / -1;margin-top:6px}
}

@media (prefers-reduced-motion: reduce){
  /* JS never runs here, so .lit is never added; these rules just guarantee
     the static instrument is fully inert and intentional. */
  .hero-sig-bar{transition:none}
  .hero-sig-bar.is-red,.hero-sig-dot{animation:none}
  .hero-sig-bar.is-red,.hero-sig-bar.is-red.lit{opacity:.92}
}

/* ============================================================
   BUILT ON — precise credential rail (builton-*)
   Grounded in PlanetScale (mono-uppercase rail, 'Logo Grid Cell'
   hairline-divider discipline, single-neutral logos lifting to
   ink on hover, strict 0 radius) + Langbase (muted mono caption
   label, subtle status-dot 'live' signal, hierarchy by density
   not saturation). Pure CSS — no JS, fully intentional with
   scripting disabled. Additive: refines the existing
   .stack-strip markup via the added .builton class, removes
   nothing; the base .stack-strip rules remain as fallback.
   ============================================================ */
.stack-strip.builton{padding-top:16px;padding-bottom:16px}
.stack-strip.builton .row{column-gap:0;row-gap:14px;align-items:stretch}

/* label: keep 'Built on', make it a true rail caption with a hard red tick */
.stack-strip.builton .row b{display:inline-flex;align-items:center;gap:12px;
  font-size:11px;letter-spacing:.2em;color:var(--mut);
  padding-right:26px;margin-right:8px;border-right:1px solid var(--line)}
.stack-strip.builton .row b::before{content:"";width:18px;height:1px;
  background:var(--red);flex:0 0 auto}

/* each vendor = a credential cell: leading status dot (::before),
   mono uppercase name, hairline divider (border-left) between cells.
   All present with NO JS. */
.stack-strip.builton .row span{position:relative;display:inline-flex;
  align-items:center;gap:9px;font-family:var(--mono);font-weight:400;
  font-size:11px;letter-spacing:.13em;text-transform:uppercase;
  color:var(--mut);filter:none;padding:6px 22px;white-space:nowrap;
  transition:color .25s ease}

/* hairline divider before every vendor except the first */
.stack-strip.builton .row span + span{border-left:1px solid var(--line)}

/* status dot — a tiny flat square (preserves the no-radius rule),
   reads as a verified/online signal mark. */
.stack-strip.builton .row span::before{content:"";width:5px;height:5px;
  flex:0 0 auto;background:var(--mut);opacity:.5;
  transition:background .25s ease,opacity .25s ease}

/* hover: name lifts to full ink, dot ignites to the one red */
.stack-strip.builton .row span:hover{color:var(--ink)}
.stack-strip.builton .row span:hover::before{background:var(--red);opacity:1}

/* reduced motion: kill the transitions; rail sits quietly at rest */
@media (prefers-reduced-motion: reduce){
  .stack-strip.builton .row span,
  .stack-strip.builton .row span::before{transition:none}
}

/* mobile (<=860px): deliberate — drop vertical dividers, break the
   label onto its own line, left-align the dot+name pairs into a tidy
   stacked credential list. */
@media (max-width:860px){
  .stack-strip.builton .row{column-gap:0;row-gap:11px}
  .stack-strip.builton .row b{border-right:0;padding-right:0;margin-right:0;
    flex:0 0 100%;margin-bottom:4px}
  .stack-strip.builton .row span{padding:4px 16px 4px 0}
  .stack-strip.builton .row span + span{border-left:0}
}

/* ============================================================
   AGENTFLOW — instrument-panel deepening (additive, namespaced .afi-*)
   Refs: gt-planar (kinetic light-trail packet, 1px white-edge readouts,
   uppercase mono telemetry) + PlanetScale (monospaced blueprint grid,
   tabular-num precision, 0-radius). Palette mapped to Redline's
   flat/one-red system: ONE red on the spine + packet; node STATE accents
   reuse the EXISTING per-stage blue/green/purple signal tints already
   established on .af-stage[data-accent]. No new hues. Static + fully
   intentional with NO JS (connector + telemetry render from CSS/HTML
   baseline) and inert under reduced-motion. Live layer = .af-live
   (added by app.js) + .afi-on (added by afpanel.js); both desktop +
   motion-ok only, so they always co-exist with the live red spine.
   ============================================================ */

/* faint blueprint grid + scanline on the dark stage (behind everything) */
.agentflow .af-sticky{position:relative}
.afi-grid{position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.5;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:54px 54px,54px 54px;
  -webkit-mask-image:radial-gradient(120% 85% at 50% 42%,#000 38%,transparent 92%);
          mask-image:radial-gradient(120% 85% at 50% 42%,#000 38%,transparent 92%)}
.afi-scan{position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.6;
  background-image:repeating-linear-gradient(0deg,rgba(255,255,255,.028) 0 1px,transparent 1px 4px)}
.agentflow .af-sticky > .wrap{position:relative;z-index:1}

/* dot -> node connector: drawn (scaleY 1) BY DEFAULT so it is intentional
   with no JS. Only the live layer collapses it and re-draws it on .active. */
.af-stage .afi-link{position:absolute;left:50%;top:calc(var(--af-spine) + 7px);
  width:1px;height:17px;margin-left:-1px;background:var(--line-inv);
  transform:scaleY(1);transform-origin:top center;
  transition:background .35s,transform .35s}
.af-live .af-stage .afi-link{transform:scaleY(0)}
.af-live .af-stage.active .afi-link{transform:scaleY(1);background:var(--red)}
.af-live .af-stage[data-accent=blue].active .afi-link{background:rgba(16,67,249,.8)}
.af-live .af-stage[data-accent=green].active .afi-link{background:rgba(52,255,72,.7)}
.af-live .af-stage[data-accent=purple].active .afi-link{background:rgba(230,74,255,.8)}

/* travelling data packet on the red spine (gt-planar light-trail).
   Travels via `left` (resolves against the positioned .af-rail), NOT a
   transform percentage — so it spans the full rail like .af-rail::after. */
.afi-packet{position:absolute;top:var(--af-spine);left:0;z-index:2;width:9px;height:9px;
  background:var(--red);pointer-events:none;display:none;
  box-shadow:0 0 12px rgba(232,16,45,.9),0 0 3px #fff;
  transform:translate(-50%,-50%)}
.agentflow.af-live.afi-on .afi-packet{display:block;
  left:calc(var(--afi-x,0) * 100%);transition:left .12s linear}
.afi-packet::before{content:"";position:absolute;top:50%;right:100%;height:2px;width:46px;
  margin-top:-1px;background:linear-gradient(90deg,transparent,rgba(232,16,45,.85))}
.afi-packet::after{content:"";position:absolute;inset:-3px;border:1px solid rgba(232,16,45,.55)}

/* per-node micro-telemetry footer (PlanetScale mono readout) */
.afi-tel{display:flex;align-items:baseline;gap:10px;margin-top:13px;
  padding-top:11px;border-top:1px solid var(--line-inv);
  font-family:var(--mono);font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--mut-inv);line-height:1;transition:color .35s,border-color .35s}
.afi-tel .afi-st{position:relative;padding-left:13px;white-space:nowrap}
.afi-tel .afi-st::before{content:"";position:absolute;left:0;top:50%;width:6px;height:6px;
  margin-top:-3px;background:var(--mut-inv);transition:background .35s}
.afi-tel .afi-lat{margin-left:auto;font-variant-numeric:tabular-nums;color:var(--mut-inv);opacity:.85}
/* lit state mirrors the existing .current accent system — ONE red default */
.af-live .af-stage.current .afi-tel{color:#fff;border-color:rgba(232,16,45,.45)}
.af-live .af-stage.current .afi-tel .afi-st::before{background:var(--red);
  box-shadow:0 0 7px rgba(232,16,45,.9)}
.af-live .af-stage[data-accent=blue].current .afi-tel{border-color:rgba(16,67,249,.5)}
.af-live .af-stage[data-accent=blue].current .afi-tel .afi-st::before{background:#9eb2ff;box-shadow:0 0 7px rgba(16,67,249,.8)}
.af-live .af-stage[data-accent=green].current .afi-tel{border-color:rgba(52,255,72,.45)}
.af-live .af-stage[data-accent=green].current .afi-tel .afi-st::before{background:#8cff98;box-shadow:0 0 7px rgba(52,255,72,.7)}
.af-live .af-stage[data-accent=purple].current .afi-tel{border-color:rgba(230,74,255,.5)}
.af-live .af-stage[data-accent=purple].current .afi-tel .afi-st::before{background:#f0a1ff;box-shadow:0 0 7px rgba(230,74,255,.8)}
/* active-but-not-current = lit dot, dimmer text (the run has passed through) */
.af-live .af-stage.active:not(.current) .afi-tel .afi-st::before{background:rgba(232,16,45,.55)}

@media(max-width:860px){
  .afi-grid,.afi-scan,.afi-packet{display:none}
  .af-stage .afi-link{display:none}
  .afi-tel{margin-top:11px;font-size:9px}
}
@media (prefers-reduced-motion: reduce){
  .afi-scan{display:none}
  .afi-packet{display:none}
  .afi-grid{opacity:.4}
  .af-stage .afi-link,.af-live .af-stage .afi-link,.afi-tel,.afi-tel .afi-st::before{transition:none}
  /* connector reads as a settled, intentional red drop in every state */
  .af-stage .afi-link,.af-live .af-stage .afi-link{transform:scaleY(1);background:var(--red)}
  /* every node reads as a settled, intentional readout (no live ticking) */
  .afi-tel{color:rgba(255,255,255,.78);border-color:rgba(232,16,45,.4)}
  .afi-tel .afi-st::before{background:var(--red)}
}

/* ============================================================
   TELEMETRY CONSOLE — live ops readout over the metrics bento.
   Grounded in Index midnight-grid + Linear changelog timestamp cards.
   Additive: extends the existing .bento (style.css ~189-198) and the
   ambient pulse/drift layer (~325-345). Removes nothing.
   All motion inert under prefers-reduced-motion (foot of block).
   ============================================================ */
/* header strip: live dot + GST timestamp, mono, above the grid */
.tele-head{display:flex;align-items:center;gap:14px;margin-top:30px;
  padding-bottom:14px;border-bottom:1px solid var(--line-inv);
  font-family:var(--mono);font-size:11px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--mut-inv);flex-wrap:wrap}
.tele-live{display:inline-flex;align-items:center;gap:8px;color:#fff}
.tele-live .dot{width:7px;height:7px;background:var(--red);
  border-radius:50%;flex:none}
.tele-ts{color:var(--mut-inv);font-variant-numeric:tabular-nums}
.tele-ts b{color:#fff;font-weight:400}
.tele-head .tele-src{margin-inline-start:auto;color:var(--mut-inv)}
/* faint grid texture on each cell (Index midnight-grid) — pure CSS,
   sits under content, never intercepts clicks */
.bento .cell{position:relative;overflow:hidden}
.bento .cell::before{content:"";position:absolute;inset:0;pointer-events:none;
  background-image:
    linear-gradient(to right,rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(to bottom,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:26px 26px;mask-image:linear-gradient(160deg,#000,transparent 78%);
  -webkit-mask-image:linear-gradient(160deg,#000,transparent 78%)}
/* keep number / label / bar / sparkline above the grid */
.bento .num,.bento .lbl,.bento .bar,.tele-spark{position:relative;z-index:1}
/* count-up uses tabular figures so width never jitters mid-roll */
.bento .num,.bento .num i{font-variant-numeric:tabular-nums}
/* sparkline — contained, monochrome, one-red trace, NO fill wash
   (line-art-suggests-data; red stays a signal, never a surface tint) */
.tele-spark{display:block;width:100%;height:26px;margin-top:14px}
.tele-spark .grid{stroke:rgba(255,255,255,.07);stroke-width:1}
.tele-spark .trace{fill:none;stroke:var(--red);stroke-width:1.6;
  stroke-linejoin:round;stroke-linecap:round;
  vector-effect:non-scaling-stroke}
.tele-spark .head{fill:var(--red)}
/* on the wide cells the sparkline sits beside the bar, slightly tighter */
.bento .cell.w2 .tele-spark{margin-top:12px}
/* ambient: sparkline head blip + trace draw, in the spirit of the existing
   prefers-reduced-motion: no-preference block (style.css ~325) */
@media (prefers-reduced-motion: no-preference){
  .tele-live .dot{animation:teleLive 2.4s ease-in-out infinite}
  .tele-spark .head{animation:teleBlip 2.8s ease-in-out infinite}
  .bento .cell:nth-child(2) .tele-spark .head{animation-delay:-.7s}
  .bento .cell:nth-child(3) .tele-spark .head{animation-delay:-1.3s}
  .bento .cell:nth-child(4) .tele-spark .head{animation-delay:-1.9s}
  .bento .cell:nth-child(5) .tele-spark .head{animation-delay:-2.4s}
  /* trace draws in on reveal (JS sets --teleLen); falls back to drawn */
  .bento.tele-draw .tele-spark .trace{
    stroke-dasharray:var(--teleLen,0);stroke-dashoffset:var(--teleLen,0);
    animation:teleDraw 1.1s cubic-bezier(.16,1,.3,1) forwards}
  .bento.tele-draw .cell:nth-child(2) .tele-spark .trace{animation-delay:.08s}
  .bento.tele-draw .cell:nth-child(3) .tele-spark .trace{animation-delay:.16s}
  .bento.tele-draw .cell:nth-child(4) .tele-spark .trace{animation-delay:.24s}
  .bento.tele-draw .cell:nth-child(5) .tele-spark .trace{animation-delay:.32s}
  .bento.tele-draw .cell:nth-child(6) .tele-spark .trace{animation-delay:.40s}
}
@keyframes teleLive{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.82)}}
@keyframes teleBlip{0%,100%{opacity:1}50%{opacity:.3}}
@keyframes teleDraw{to{stroke-dashoffset:0}}
/* REDUCED MOTION: console is fully intentional, fully static.
   Numbers show final value (JS guards; CSS ensures trace is drawn). */
@media (prefers-reduced-motion: reduce){
  .tele-live .dot,.tele-spark .head{animation:none}
  .tele-spark .trace{stroke-dasharray:none;stroke-dashoffset:0;animation:none}
}
/* MOBILE: header wraps deliberately; source line drops below; sparklines
   keep full width inside the 2-col bento set elsewhere (style.css ~287). */
@media(max-width:860px){
  .tele-head{gap:10px 14px;font-size:10px;letter-spacing:.13em}
  .tele-head .tele-src{margin-inline-start:0;flex-basis:100%;
    padding-top:4px;order:3}
  .tele-spark{height:22px;margin-top:12px}
}

/* ================= PILLARS — command-center grid ================= *
   Elevates the six .row-item cells into a bordered instrument array.
   Hairline structure (mono X7), the existing 01-06 .meta promoted into a
   large mono index that sits ABOVE the title with a generous gap
   (Anthropic "Our Values" rhythm). One earned red on hover/focus. Pure
   CSS — fully intentional with no JS, inert under reduced-motion.
   Preserves every .t / .sub / .meta inside each cell. */
.pl-grid{
  border-top:1px solid var(--line);
  border-left:1px solid var(--line);
  display:grid;grid-template-columns:repeat(3,1fr);
  /* hairlines come from each cell's right/bottom border -> collapsed grid */
}
.pl-grid .pl-cell{
  position:relative;display:flex;flex-direction:column;
  padding:30px clamp(20px,2vw,34px) 32px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--canvas);
  /* override inherited .row-item flex/padding/border so it reads as a cell */
  align-items:stretch;justify-content:flex-start;gap:0;
  transition:transform .25s ease,box-shadow .25s ease;
  isolation:isolate;
}
/* top-edge red wipe — horizontal variant of the established ::before signal */
.pl-grid .pl-cell::before{
  content:"";position:absolute;inset:0 0 auto 0;height:0;
  background:var(--red);transition:height .25s ease;z-index:2;
}
/* header row of each cell: the promoted large mono index, generous gap below */
.pl-cell .pl-head{
  display:flex;align-items:flex-start;justify-content:flex-start;
  margin-bottom:clamp(34px,7vw,72px);
}
/* the existing .meta (01-06) is promoted into a large mono index anchor */
.pl-cell .pl-idx{
  font-family:var(--mono);font-size:clamp(30px,3.4vw,46px);
  letter-spacing:-.02em;line-height:.9;color:var(--ink);
  font-weight:500;transition:color .25s ease;
}
.pl-cell .pl-idx .meta{
  font-size:inherit;letter-spacing:inherit;color:inherit;line-height:inherit;
}
/* titles/subs keep their tokens but settle into the cell rhythm */
.pl-grid .pl-cell .t{
  font-size:clamp(20px,2.3vw,29px);font-weight:600;line-height:1.08;
}
.pl-grid .pl-cell .sub{
  color:var(--mut);font-size:14px;line-height:1.5;
  max-width:100%;margin-top:12px;
}

/* ---- hover: sharp offset + red index + top wipe (earned, pointer only) ---- */
@media (hover:hover) and (pointer:fine){
  .pl-grid .pl-cell:hover{
    transform:translate(-3px,-3px);
    box-shadow:6px 6px 0 0 var(--ink);
    z-index:3;
  }
  .pl-grid .pl-cell:hover::before{height:4px}
  .pl-grid .pl-cell:hover .pl-idx{color:var(--red)}
}

/* reduced motion: kill every transition/transform; hover stays legible & flat */
@media (prefers-reduced-motion: reduce){
  .pl-grid .pl-cell,
  .pl-grid .pl-cell::before,
  .pl-cell .pl-idx{transition:none}
  .pl-grid .pl-cell:hover{transform:none;box-shadow:none}
  .pl-grid .pl-cell:hover::before{height:0}
  /* with no motion the hairline grid + ink index is the statement */
}

/* mobile: single column, tightened padding, deliberate stack */
@media(max-width:860px){
  .pl-grid{grid-template-columns:1fr}
  .pl-grid .pl-cell{padding:24px 22px 26px}
  .pl-cell .pl-head{margin-bottom:24px}
}
@media(max-width:560px){
  .pl-cell .pl-idx{font-size:34px}
}
/* ================= /PILLARS ================= */

/* ================= INSIGHTS — changelog-grade entries (key: ins) =================
   Grounded in Linear changelog: mono technical meta (read-time, never a stale date),
   graphite hairline rhythm, a one-line dek under each title, restrained issue index.
   Purely additive: reuses .row-item / .t / .tag / .arr. Inert with no JS + reduced motion. */
.ins-rows .row-item{align-items:flex-start;padding-block:30px}
/* left issue index — mono, the "No.01" affordance on the graphite hairline */
.ins-rows .row-item .num{font-family:var(--mono);font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--mut);line-height:1;padding-top:.5em;
  flex-shrink:0;width:48px;transition:color .2s ease}
.ins-rows .row-item>.ins-body{display:flex;align-items:flex-start;gap:clamp(18px,2.4vw,34px);flex:1;min-width:0}
.ins-rows .row-item .ins-main{min-width:0}
/* the one-line dek — secondary, muted, sits under the title like a changelog body line */
.ins-rows .row-item .dek{color:var(--mut);font-size:15px;line-height:1.5;
  max-width:560px;margin-top:9px;transition:transform .25s ease,color .2s ease}
.ins-rows a.row-item:hover .dek{transform:translateX(6px)}
.ins-rows a.row-item:hover .num{color:var(--red)}
/* tighten the meta column so tag + read-time read as one technical unit */
.ins-rows .row-item .end{align-items:center;gap:14px;padding-top:.35em}
.ins-rows .row-item .meta{white-space:nowrap}

@media (prefers-reduced-motion: reduce){
  .ins-rows .row-item .dek{transition:none}
  .ins-rows a.row-item:hover .dek{transform:none}
  .ins-rows .row-item .num{transition:none}
}
@media(max-width:860px){
  /* stack deliberately: index sits inline above the title block, deks keep full width */
  .ins-rows .row-item>.ins-body{flex-direction:column;gap:8px;width:100%}
  .ins-rows .row-item .num{width:auto;padding-top:0}
  .ins-rows .row-item .dek{font-size:14px;margin-top:8px}
  .ins-rows .row-item .end{align-self:flex-start;padding-top:14px;flex-wrap:wrap}
}


/* ================= THREE WAYS WE WORK — service-line cells as LINKS (key: pl-link) =================
   Additive variant of the pillars grid for the 3 homepage service offerings.
   Each cell is an <a>, so it keeps href + Build/Advise/Integrate .tag + .arr (→),
   footered at the bottom as a clear link affordance, with one earned red on hover.
   Reuses .pl-grid / .pl-cell / .pl-head / .pl-idx / .t / .sub wholesale — adds nothing
   the pillars don't already define except the .end footer + a link-only red arrow. */
.pl-grid.pl-link .pl-cell{
  /* the cell is a link: ensure the footer can sink to the bottom regardless of sub length */
  min-height:100%;
}
/* tag + arrow become the cell's affordance footer, pinned to the bottom edge */
.pl-grid.pl-link .pl-cell .end{
  margin-top:auto;align-self:stretch;display:flex;align-items:center;justify-content:space-between;
  gap:14px;padding-top:clamp(26px,4vw,40px);
}
.pl-grid.pl-link .pl-cell .arr{transition:transform .2s ease,color .25s ease}
/* neutralize the row-list link hovers so only the clean cell offset reads inside the grid */
.pl-grid.pl-link a.pl-cell:hover{padding-inline-start:clamp(20px,2vw,34px)}
.pl-grid.pl-link a.pl-cell:hover .t{transform:none}
/* ---- earned red on hover: the arrow joins the red index (pointer only) ---- */
@media (hover:hover) and (pointer:fine){
  .pl-grid.pl-link a.pl-cell:hover .arr{color:var(--red)}
}
/* reduced motion: kill the arrow's added transition; flat red index stays the statement */
@media (prefers-reduced-motion: reduce){
  .pl-grid.pl-link .pl-cell .arr{transition:none}
}
/* mobile inherits .pl-grid single-column + tightened padding; keep the footer full-width
   (override the global .row-item .end{align-self:flex-end} so space-between still spans) */
@media(max-width:860px){
  .pl-grid.pl-link .pl-cell .end{align-self:stretch;padding-top:22px}
}
/* ================= /pl-link ================= */


/* ===== PILLARS grid — 2-up variant (exactly 4 parallel items) =====
   Additive desktop modifier on .pl-grid for an equal-weight set that reads
   best as a balanced 2x2 quartet rather than a 3+1 with an orphan cell.
   Reuses every .pl-cell / .pl-head / .pl-idx rule, hover signal and the
   reduced-motion inert path already defined for .pl-grid.
   Scoped to >=861px (the exact complement of the existing max-width:860px
   collapse) so at <=860px this rule does NOT apply and the existing
   .pl-grid{grid-template-columns:1fr} mobile rule wins cleanly — avoiding the
   specificity collision an unscoped .pl-grid.pl-grid--2 (0,2,0 > the mobile
   rule's 0,1,0) would cause, which would otherwise keep two columns on phones. */
@media(min-width:861px){
  .pl-grid.pl-grid--2{grid-template-columns:repeat(2,1fr)}
}


/* ============================================================
   A11Y — focus visibility, skip link, on-dark red TEXT contrast
   WCAG 2.4.7 (focus) + 1.4.3 (contrast). Additive; brand --red unchanged.
   ============================================================ */

/* visible keyboard focus everywhere (neutral ink/white ring, not the one-red) */
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.on-black :focus-visible,.on-red :focus-visible{outline-color:#fff}
.pill--red:focus-visible{outline-color:var(--ink);outline-offset:4px}
/* form fields set outline:none + a border cue; restore a real ring for keyboard users */
.field input:focus-visible,.field textarea:focus-visible,
.nl-band input[type=email]:focus-visible{outline:2px solid #fff;outline-offset:2px}

/* red TEXT on near-black fails AA at #E8102D (4.28:1) — use --red-bright on dark.
   Large display .rd + decorative dots/bars keep --red (large text only needs 3:1). */
.on-black a.row-item:hover .t,
.on-black .ins-rows a.row-item:hover .num,
.on-black .pl-grid.pl-link a.pl-cell:hover .arr{color:var(--red-bright)}

/* skip-to-content: first focusable element on every page, revealed on focus */
.skip{position:absolute;left:8px;top:-56px;z-index:200;
  background:var(--ink);color:#fff;text-decoration:none;
  font:600 14px/1 var(--body);padding:11px 16px;
  transition:top .15s ease}
.skip:focus{top:8px;outline:2px solid #fff;outline-offset:2px}
@media (prefers-reduced-motion: reduce){.skip{transition:none}}
