/* ============ ROUTE D - THE FLUID EDITORIAL v2 ============ */
@font-face { font-family: 'Khand'; src: url('./assets/fonts/Khand-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Khand'; src: url('./assets/fonts/Khand-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Sentient'; src: url('./assets/fonts/Sentient-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Sentient'; src: url('./assets/fonts/Sentient-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Sentient'; src: url('./assets/fonts/Sentient-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'JBMono'; src: url('./assets/fonts/JetBrainsMono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JBMono'; src: url('./assets/fonts/JetBrainsMono-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --bone: #F1F2ED; --ink: #0E1F19; --ink2: #14281F; --moss: #00674F; --red: #E0393F;
  --grey: #55615A; --line: #D8DDD5; --card: #FFFFFF;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bone); color: var(--ink); }
body { font-family: 'Sentient', Georgia, serif; line-height: 1.58; overflow-x: clip; font-size: 16.5px; }
.mono { font-family: 'JBMono', ui-monospace, Menlo, monospace; }
::selection { background: var(--moss); color: var(--bone); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 4px; }
img, video { max-width: 100%; display: block; }

/* ---- the two materials ----
   plate = screenshot: full colour, hard edge, never tinted
   cut   = photograph: grayscale, multiplied into the bone   */
.plate { border: 2px solid var(--ink); border-radius: 0; overflow: hidden; background: var(--card); }
.plate img { filter: contrast(1.05) saturate(.9); width: 100%; }
.cut img { filter: grayscale(1) contrast(1.2) brightness(1.05); mix-blend-mode: multiply; }
.pcap { margin-top: 10px; font-size: 10.5px; letter-spacing: .14em; color: var(--grey); font-family: 'JBMono', monospace; text-transform: uppercase; }

/* cursor */
.cur { position: fixed; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--ink);
  z-index: 999; pointer-events: none; transform: translate(-50%,-50%); opacity: 0;
  transition: width .18s, height .18s, background .18s, border .18s, opacity .22s; border: 0 solid transparent; }
.cur.act { width: 38px; height: 38px; background: rgba(224,57,63,.12); border: 1.5px solid var(--red); }
.cur.view { width: 66px; height: 66px; background: var(--red); border: 0; }
.cur .vt { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 10px;
  letter-spacing: .16em; opacity: 0; transition: opacity .2s; font-family: 'JBMono', monospace; }
.cur.view .vt { opacity: 1; }
@media (hover: none) { .cur { display: none; } }

/* ---- header: monogram · nav · linkedin ---- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; gap: 22px; align-items: center;
  padding: 13px 26px; font-size: 11px; letter-spacing: .16em; color: var(--grey); text-transform: uppercase;
  font-family: 'JBMono', monospace; background: rgba(241,242,237,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216,221,213,.8); }
.bar .mark { font-family: 'Khand', sans-serif; font-weight: 700; font-size: 21px; letter-spacing: .02em; color: var(--ink); line-height: 1; }
.bar .mark i { font-style: normal; color: var(--red); }
.bar nav { display: flex; gap: 20px; margin: 0; }
.bar nav a { position: relative; padding: 4px 0; white-space: nowrap; }
.bar nav a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: var(--red); transition: width .25s; }
.bar nav a:hover::after, .bar nav a.on::after { width: 100%; }
.bar nav a.on { color: var(--ink); }
.bar .soc { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.bar .soc a { white-space: nowrap; }
.bar .abbr { display: none; }
.bar .lk { color: var(--moss); font-weight: 600; white-space: nowrap; }
.bar .lk:hover { color: var(--red); }
@media (max-width: 640px) {
  .bar { gap: 12px; padding: 12px 16px; font-size: 10px; letter-spacing: .08em; }
  .bar .mark { font-size: 19px; }
  .bar nav { gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .bar nav::-webkit-scrollbar { display: none; }
  .bar .soc { gap: 10px; padding-left: 4px; }
  .bar .full { display: none; }
  .bar .abbr { display: inline; }
  .bar nav a:last-child { padding-right: 0; margin-right: 0; }
}
@media (max-width: 400px) {
  .bar .soc a:not(.lk) { display: none; }
}

/* ---- ticker: contextual left, linkedin right ---- */
.ticker { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ink); color: #B9C6BF;
  font-family: 'JBMono', monospace; font-size: 11px; height: 32px; padding: 0 18px; display: flex; align-items: center; gap: 10px;
  white-space: nowrap; overflow: hidden; clip-path: inset(0); text-transform: uppercase; letter-spacing: .1em; }
.ticker .sig { color: #58C99F; flex-shrink: 0; }
.ticker .slot { overflow: hidden; height: 100%; display: flex; align-items: center; flex: 1; min-width: 0; }
.ticker .txt { display: block; overflow: hidden; text-overflow: ellipsis; transition: transform .28s cubic-bezier(.2,.7,.2,1), opacity .28s; }
.ticker .txt.out { transform: translateY(-120%); opacity: 0; }
.ticker .lk { margin-left: auto; color: var(--bone); flex-shrink: 0; padding-left: 16px; font-weight: 600; }
.ticker .lk:hover { color: #58C99F; }
.ticker .prog b { color: var(--bone); font-weight: 600; }

/* reveals */
.rv { opacity: 0; transform: translateY(18px); }
.rv.seen { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 4vw; }
/* full-bleed variant - matches the SYSTEMS section width (his call, one width structure) */
.wrap.wide { max-width: none; }
.k { font-size: 11px; letter-spacing: .2em; color: var(--moss); font-family: 'JBMono', monospace; text-transform: uppercase; }
.k .disc, .disc { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: 1px; }
.sec { padding: 8vh 0 4vh; }
.sec-h { display: flex; align-items: baseline; gap: 18px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 5vh; flex-wrap: wrap; }
.sec-h h2 { font-family: 'Khand', sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 5rem); line-height: .9; word-spacing: .06em; }
.sec-h .c { margin-left: auto; font-size: 11px; letter-spacing: .16em; color: var(--grey); font-family: 'JBMono', monospace; text-transform: uppercase; }

/* receipts - quote cards */
.receipts { display: grid; gap: 16px; }
.receipt { background: var(--card); border: 1px solid var(--line); padding: 24px 28px; }
.receipt .q { font-family: 'JBMono', monospace; font-size: 13.5px; line-height: 1.8; color: var(--ink); white-space: pre-wrap; }
.receipt .q::before { content: '> '; color: var(--red); font-weight: 600; }
.receipt .src { margin-top: 12px; font-size: 10.5px; letter-spacing: .12em; color: var(--grey); font-family: 'JBMono', monospace; text-transform: uppercase; }
.receipt .why { margin-top: 6px; font-size: .92rem; color: var(--grey); font-style: italic; }
.receipt.std .q::before { content: '§ '; color: var(--moss); }
.receipt.inc .q::before { content: '! '; color: var(--red); }
.receipt.hero { background: transparent; border: none; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); padding: 34px 4px;
  /* the "hero" variant name collides with the homepage section's .hero rule - without
     these resets the figure inherits min-height:88vh and ships ~620px of empty bone */
  min-height: 0; display: block; }
.receipt.hero .q { font-size: clamp(1.05rem, 1.8vw, 1.45rem); line-height: 1.55; }

/* stats - stamped, hairline draws, math visible */
.stats { display: flex; gap: 5vw; flex-wrap: wrap; }
.stat b { display: block; font-family: 'Khand', sans-serif; font-weight: 700; font-size: clamp(2.6rem, 5.4vw, 4.6rem); color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.stat b i { font-style: normal; color: var(--red); }
.stat span { font-size: 10.5px; letter-spacing: .16em; color: var(--grey); font-family: 'JBMono', monospace; text-transform: uppercase; }
.stat .rule { display: block; height: 1.5px; background: var(--ink); margin: 10px 0 8px; transform: scaleX(0); transform-origin: left; }
.stat.seen .rule, .rv.seen .stat .rule { transform: scaleX(1); transition: transform .9s cubic-bezier(.2,.7,.2,1) .15s; }
.stat .math { display: block; margin-top: 6px; font-size: 10.5px; letter-spacing: .08em; color: var(--grey); font-family: 'JBMono', monospace; }
.src-note { font-size: 10.5px; letter-spacing: .12em; color: var(--grey); font-family: 'JBMono', monospace; text-transform: uppercase; }

/* browser frame = a plate with a bar */
.bframe { border: 2px solid var(--ink); overflow: hidden; background: var(--card); }
.bframe img { max-height: 72vh; object-fit: cover; object-position: top; filter: contrast(1.04) saturate(.84); width: 100%; }
.bbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--grey); font-family: 'JBMono', monospace; }
.td { width: 10px; height: 10px; border-radius: 50%; background: #D9DED7; }
.bbar .url { margin-left: 8px; background: var(--bone); padding: 3px 14px; }
.bbar .go { margin-left: auto; color: var(--red); }

/* system hero */
.shero { padding: 17vh 0 6vh; }
.shero h1 { font-family: 'Khand', sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(3.4rem, 11vw, 9.5rem); line-height: .85; word-spacing: .06em; }
.shero h1 .dot { color: var(--red); }
.shero .one { margin-top: 20px; max-width: 68ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--grey); }
.shero .one b { color: var(--ink); font-weight: 500; }
.btnrow { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-block; padding: 15px 30px; border-radius: 999px; background: var(--ink); color: var(--bone);
  font-size: 12px; letter-spacing: .12em; font-family: 'JBMono', monospace; will-change: transform; transition: background .2s; }
.btn:hover { background: var(--moss); }
.btn.ghost { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bone); }

.prose { max-width: 88ch; font-size: clamp(1.08rem, 1.7vw, 1.35rem); line-height: 1.62; color: var(--grey); }
.prose b, .prose strong { color: var(--ink); font-weight: 500; }
/* 46ch, not 30ch: the column is only ~41ch wide, so the cap no longer bites at normal sizes
   (30ch stopped the line dead at ~68% and read as a bug) - it now only guards an ultrawide
   monitor. Italic joins it to .aside / .fs-take, the site's editorial-statement voice.
   His 2026-07-16 note. Shared with the case pages' 01 THE PROBLEM. */
.lead-xl { font-size: clamp(1.7rem, 3.8vw, 3.2rem); line-height: 1.18; letter-spacing: -.01em; word-spacing: .14em;
  max-width: 46ch; font-style: italic; }
.lead-xl .em { font-style: italic; color: var(--moss); }
/* the single crucial word, in THE accent (red) - no new hue */
.lead-xl .hl { color: var(--red); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.fact { background: var(--card); border: 1px solid var(--line); padding: 16px 18px; font-size: .93rem; color: var(--grey); }
.fact b { color: var(--ink); font-weight: 600; }

.media2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .media2 { grid-template-columns: 1fr; } }
.cap { margin-top: 10px; font-size: 10.5px; letter-spacing: .14em; color: var(--grey); font-family: 'JBMono', monospace; text-transform: uppercase; }

/* ---- case study: numbered chapters, sticky arch, direction object ---- */
.chapter { padding: 10vh 0 2vh; }
.chapter .ch-k { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .2em; color: var(--ink);
  font-family: 'JBMono', monospace; text-transform: uppercase; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 4vh; }
.chapter .ch-k .sub { margin-left: auto; color: var(--grey); letter-spacing: .12em; }
.arch2 { display: grid; grid-template-columns: 300px 1fr; gap: 4vw; align-items: start; }
@media (max-width: 900px) { .arch2 { grid-template-columns: 1fr; } }
.arch { position: sticky; top: 90px; border: 2px solid var(--ink); background: var(--card); padding: 20px; font-family: 'JBMono', monospace; font-size: 12px; }
@media (max-width: 900px) { .arch { position: static; } }
.arch .an { padding: 9px 10px; border: 1px solid var(--line); background: var(--bone); margin: 6px 0; }
.arch .an.hot { border-color: var(--moss); color: var(--moss); font-weight: 600; }
.arch .aa { text-align: center; color: var(--grey); font-size: 12px; line-height: 1; padding: 1px 0; }
.arch .at { font-size: 10px; letter-spacing: .16em; color: var(--grey); text-transform: uppercase; margin-bottom: 10px; }
.promptzero { border: 2px solid var(--ink); background: var(--card); padding: 26px 30px; }
.promptzero .q { font-family: 'JBMono', monospace; font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.promptzero .q::before { content: '> '; color: var(--red); font-weight: 600; }
.promptzero .src { margin-top: 14px; font-size: 10.5px; letter-spacing: .12em; color: var(--grey); font-family: 'JBMono', monospace; text-transform: uppercase; }
.moves { display: grid; gap: 14px; margin-top: 4vh; counter-reset: mv; }
.move { position: relative; border: 2px solid var(--ink); background: var(--bone); padding: 20px 24px 20px 28px; counter-increment: mv; }
.move::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--moss);
  transform: scaleY(0); transform-origin: top; }
.move.seen::before { transform: scaleY(1); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.move .ix { position: absolute; top: -12px; right: 14px; background: var(--bone); padding: 0 8px; font-family: 'JBMono', monospace; font-size: 11px; color: var(--grey); }
.move .ix::before { content: counter(mv, decimal-leading-zero); }
.move .tag { display: inline-block; font-family: 'JBMono', monospace; font-size: 10px; letter-spacing: .16em; padding: 3px 9px; margin-bottom: 10px;
  background: var(--red); color: #fff; text-transform: uppercase; }
.move .tag.std { background: var(--moss); }
.move .q { font-family: 'JBMono', monospace; font-size: 13px; line-height: 1.75; white-space: pre-wrap; }
.move .because { margin-top: 10px; font-size: .92rem; color: var(--grey); font-style: italic; }
.move .when { margin-top: 8px; font-size: 10px; letter-spacing: .12em; color: var(--grey); font-family: 'JBMono', monospace; text-transform: uppercase; }

/* next chain */
.nextsys { border-top: 2px solid var(--ink); margin-top: 12vh; }
.nextsys a { display: block; padding: 7vh 0 10vh; }
.nextsys .n { font-family: 'Khand', sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(3rem, 9vw, 7.5rem); line-height: .9; word-spacing: .06em;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), color .25s; display: inline-block; }
.nextsys a:hover .n { transform: translateX(2vw) skewX(-3deg); color: var(--moss); }

/* ---- journey ---- */
.tl-era { display: grid; grid-template-columns: 200px 1fr; gap: 4vw; padding: 9vh 0; border-top: 1px solid var(--line); align-items: start; }
@media (max-width: 860px) { .tl-era { grid-template-columns: 1fr; gap: 16px; } }
.tl-era .yr { font-family: 'Khand', sans-serif; font-weight: 700; font-size: clamp(2.6rem, 5vw, 4.2rem); color: var(--ink); line-height: .9; position: sticky; top: 90px; }
@media (max-width: 860px) { .tl-era .yr { position: static; } }
.tl-era h3 { font-family: 'Khand', sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(1.7rem, 3.4vw, 2.8rem); line-height: .95; margin-bottom: 12px; word-spacing: .06em; }
.tl-era p { max-width: 84ch; color: var(--grey); margin-bottom: 10px; }
.tl-era p b { color: var(--ink); font-weight: 500; }
.tl-photo { margin-top: 26px; max-width: 640px; }
.clipping { transform: rotate(-1.5deg); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); background: var(--card); overflow: hidden; max-width: 560px; }
.clipping img { width: 100%; display: block; }
.trophies { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-top: 20px; }
.trophy { border: 1px solid var(--line); padding: 14px 16px; font-size: .9rem; color: var(--grey); background: var(--card); }
.trophy b { color: var(--ink); display: block; font-weight: 600; }
.trophy .gold { color: var(--red); }

/* flight map */
.flightmap { border: 2px solid var(--ink); background: var(--card); position: relative; }
.flightmap canvas { display: block; width: 100%; height: auto; }
.flightmap .fmcap { position: absolute; left: 14px; bottom: 12px; font-family: 'JBMono', monospace; font-size: 11px;
  letter-spacing: .14em; color: var(--ink); text-transform: uppercase; background: rgba(241,242,237,.88); padding: 4px 10px; }
.flightmap .fmyr { position: absolute; right: 14px; top: 10px; font-family: 'Khand', sans-serif; font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem); color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
/* even 4-up strip - same structure as the receipts scoreboard (.proof.sb .band .grid), so the
   page's two stat strips read as one object. flex+gap left-clustered the tiles and stranded
   ~200px of bone on the right (his 2026-07-16 note). */
.fm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 4vh;
  border-top: 1px solid var(--line); }
.fm-stats .stat { padding: 26px 22px 0; border-right: 1px solid var(--line); }
.fm-stats .stat:first-child { padding-left: 0; }
.fm-stats .stat:last-child { border-right: 0; padding-right: 0; }
/* 4.6rem cannot fit "305,022 km" in a quarter column - scoreboard sizing does */
.fm-stats .stat b { font-size: clamp(2rem, 4vw, 3.4rem); line-height: .9; }
@media (max-width: 760px) {
  .fm-stats { grid-template-columns: repeat(2, 1fr); }
  .fm-stats .stat { padding: 22px 18px 0; }
  .fm-stats .stat:nth-child(2n+1) { padding-left: 0; }
  .fm-stats .stat:nth-child(2n) { border-right: 0; padding-right: 0; }
  .fm-stats .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
  /* the 3.4rem floor left "305,022 km" just 5px of slack in a half-column at 360px -
     let the longest number scale with the viewport instead of sitting on a hard floor */
  .fm-stats .stat b { font-size: clamp(1.75rem, 7.5vw, 2.6rem); }
}

/* dark band */
.band { background: var(--ink); color: var(--bone); padding: 9vh 0 10vh; }
.band .stat b { color: var(--bone); }
.band .stat .rule { background: var(--bone); }
.band .stat span, .band .stat .math, .band .src-note { color: rgba(241,242,237,.55); }

/* consult */
.offer { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.offer .card { background: var(--card); border: 1px solid var(--line); padding: 26px; }
.offer h3 { font-family: 'Khand', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 1.6rem; margin: 8px 0 10px; line-height: 1; }
.offer p { font-size: .95rem; color: var(--grey); }
.clients { display: flex; gap: 14px 34px; flex-wrap: wrap; align-items: baseline; margin-top: 18px; }
.clients .cl { font-family: 'Khand', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 1.5rem; }
.clients .role { font-size: .8rem; color: var(--grey); font-family: 'JBMono', monospace; }

/* footer */
.foot { border-top: 2px solid var(--ink); margin-top: 14vh; padding: 44px 0 70px; }
.foot .row { display: flex; gap: 24px; flex-wrap: wrap; font-size: 11px; letter-spacing: .14em; color: var(--grey); font-family: 'JBMono', monospace; text-transform: uppercase; }
.foot .r { margin-left: auto; }
.foot .big { font-family: 'Khand', sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(1.8rem, 4.4vw, 3.4rem); margin-bottom: 24px; line-height: .95; word-spacing: .06em; }
.foot .big a { color: var(--moss); display: inline-block;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), color .25s; }
.foot .big a:hover { transform: skewX(-3deg); color: var(--red); }
.foot .colo { margin-top: 18px; font-size: 10px; letter-spacing: .14em; color: var(--grey); font-family: 'JBMono', monospace; text-transform: uppercase; opacity: .7; }

/* method + misc generated */
.thumbwall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.thumbwall img { border: 1px solid var(--line); transition: transform .3s; }
.thumbwall img:hover { transform: scale(1.05) rotate(-1deg); }
.loop { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.loopstep { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); padding: 22px; }
.loopstep .num { color: var(--red); font-weight: 600; font-size: 13px; }
.loopstep h3 { font-family: 'Khand', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 1.3rem; margin-bottom: 6px; }
.loopstep p { font-size: .92rem; color: var(--grey); }
.orgtree { background: var(--card); border: 1px solid var(--line); padding: 40px 20px; text-align: center; }
.orgtree .node { display: inline-block; background: var(--bone); border: 1px solid var(--line); padding: 10px 18px; font-family: 'JBMono', monospace; font-size: 12px; margin: 6px; }
.orgtree .root { border-color: var(--red); color: var(--red); }
.orgtree .tier { margin: 18px 0; }
.orgtree .leafnote { border-style: dashed; color: var(--grey); }

/* mobile density + tap targets (critique round) */
.bar nav a, .bar .soc a, .foot .row a, .ticker .lk { padding: 12px 6px; margin: -12px -6px; }
@media (max-width: 480px) {
  /* keep the launcher reachable on mobile (the incident room is the point);
     drop the 01/06 counter to make room, the rotating context truncates as designed. */
  .ticker .chix { display: none; }
  .ticker .lk { padding-left: 10px; }
  .chapter .ch-k { flex-direction: column; align-items: flex-start; gap: 4px; }
  .chapter .ch-k .sub { margin-left: 0; }
  .band .src { letter-spacing: .02em; text-align: left; padding: 0 4vw; }
}
@media (max-width: 640px) {
  .nextsys a { padding: 4vh 0 6vh; }
  .sec { padding: 8vh 0 3vh; }
}

@media (prefers-reduced-motion: reduce) {
  .cur { display: none; }
  .rv { opacity: 1 !important; transform: none !important; }
  .stat .rule { transform: scaleX(1) !important; }
  .move::before { transform: scaleY(1) !important; }
  * { animation-duration: .001s !important; }
}

/* ---- interactive forks (case pages) ---- */
.fork { border: 2px solid var(--ink); background: var(--card); margin-top: 3vh; }
.fork .fk-top { padding: 22px 26px 8px; }
.fk-setup { font-family: 'Sentient', serif; color: var(--grey); max-width: 90ch; }
.fk-q { font-family: 'Sentient', serif; font-weight: 500; color: var(--ink); margin-top: 10px; }
.fk-opts { display: grid; gap: 10px; padding: 14px 26px 24px; }
@media (min-width: 860px) { .fk-opts { grid-template-columns: repeat(3, 1fr); } }
.fk-opt { text-align: left; font-family: 'JBMono', monospace; font-size: 12.5px; line-height: 1.6; padding: 14px 16px; background: var(--bone);
  border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s, transform .2s; color: var(--ink); }
.fk-opt { box-shadow: 0 2px 0 rgba(14,31,25,.10); border-color: #C6CCC2; }
.fk-opt b { display: inline-block; background: var(--ink); color: #fff; padding: 1px 8px; margin-right: 10px; }
.fk-opt:hover { border-color: var(--ink); transform: translateY(-2px); }
.fork.done .fk-opt { opacity: .45; pointer-events: none; transform: none; cursor: default; }
.fork.done .fk-opt.picked { opacity: 1; border: 2px solid var(--moss); }
.fork.done .fk-opt.his { opacity: 1; border: 2px solid var(--red); position: relative; }
.fork.done .fk-opt.his::after { content: 'MY CALL'; position: absolute; top: -10px; right: 10px; background: var(--red);
  color: #fff; font-size: 9px; letter-spacing: .14em; padding: 2px 7px; }
.fk-reveal { display: none; border-top: 2px solid var(--ink); padding: 20px 26px 26px; background: var(--bone); }
.fork.done .fk-reveal { display: block; }
@keyframes fkIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.fork.done .fk-verdict { animation: fkIn .3s both; }
.fork.done .fk-reveal .move { animation: fkIn .45s .35s both; }
.fork.done .fk-reveal .because, .fork.done .fk-reveal .when { animation: fkIn .4s .8s both; }
@media (prefers-reduced-motion: reduce) { .fork.done .fk-verdict, .fork.done .fk-reveal .move,
  .fork.done .fk-reveal .because, .fork.done .fk-reveal .when { animation: none; } }
.fk-verdict { font-family: 'JBMono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.fk-verdict.hit { color: var(--moss); }
.fk-verdict.miss { color: var(--red); }

/* ---- direction-sim: a Warp-style window ---- */
.tlaunch { background: none; border: 0; cursor: pointer; font-family: 'JBMono', monospace; font-size: 11px;
  letter-spacing: .1em; color: #58C99F; text-transform: uppercase; font-weight: 600; padding: 12px 6px; margin: -12px -6px; }
.tlaunch:hover { color: #fff; }
.tlaunch .tgo { display: inline-block; margin-left: 7px; color: #58C99F; animation: tnudge 1.5s ease-in-out infinite; }
.tlaunch:hover .tgo { color: #fff; animation: none; transform: translateX(4px); }
.tlaunch .tcur2 { display: inline-block; margin-left: 4px; color: #58C99F; animation: tblink 1.1s steps(1) infinite; }
@keyframes tblink { 50% { opacity: 0; } }
@keyframes tnudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
.ir{ --w:#16181D; --wbar:#1C1F26; --wln:#2A2D35; --wln2:#3A3F4B; --wic:#10131A;
  --wtx:#C9CDD6; --wbr:#E6E9EF; --wdim:#7C818D; --wft:#5C616D; --wmoss:#58C99F; --wmossbg:#123B2E;
  --wred:#FF6B6E; --wamber:#E8B341; --wpur:#9A7FE8;
  position:fixed; inset:0; z-index:95; background:rgba(6,9,7,.62); backdrop-filter:blur(7px);
  display:none; align-items:center; justify-content:center; padding:3vh 3vw; opacity:0;
  transition:opacity .26s ease; font-family:'JBMono',monospace; }
.ir.open{ display:flex; }
.ir.in{ opacity:1; }
.ir .win{ width:min(1240px,100%); height:min(800px,100%); background:var(--w); border:1px solid var(--wln);
  border-radius:14px; overflow:hidden; display:flex; flex-direction:column; color:var(--wtx);
  box-shadow:0 50px 130px rgba(0,0,0,.6); transform:translateY(16px) scale(.985); opacity:.6;
  transition:transform .3s cubic-bezier(.2,.7,.2,1), opacity .3s, width .3s, height .3s, border-radius .3s; }
.ir.in .win{ transform:none; opacity:1; }
.ir.max .win{ width:96vw; height:94vh; }
/* header + working traffic lights */
.ir .wh{ display:flex; align-items:center; gap:14px; padding:11px 15px; background:var(--wbar); border-bottom:1px solid var(--wln); flex-shrink:0; }
.ir .tl{ display:flex; gap:8px; }
.ir .tl button{ width:13px; height:13px; border-radius:50%; border:0; padding:0; cursor:pointer; position:relative; display:flex; align-items:center; justify-content:center; }
.ir .tl .r{ background:#FF5F57; } .ir .tl .y{ background:#FEBC2E; } .ir .tl .grn{ background:#28C840; }
.ir .tl button .g{ font-family:Arial,sans-serif; font-size:9px; line-height:1; color:#00000088; font-weight:700; opacity:0; transition:opacity .12s; }
.ir .tl:hover button .g{ opacity:1; }
.ir .tl .grn .g{ font-size:8px; }
.ir .tl .tip{ position:absolute; top:22px; left:0; font-size:9px; letter-spacing:.1em; color:var(--wdim); background:#0E1013;
  border:1px solid var(--wln); padding:3px 7px; border-radius:5px; white-space:nowrap; opacity:0; pointer-events:none; text-transform:uppercase; transition:opacity .12s; z-index:5; }
.ir .tl button:hover .tip{ opacity:1; }
.ir .wh .title{ flex:1; text-align:center; font-size:11.5px; color:var(--wdim); letter-spacing:.05em; background:#23262E; border-radius:7px; padding:6px 12px; max-width:520px; margin:0 auto; }
.ir .wh .x{ background:none; border:0; color:var(--wdim); font-size:15px; cursor:pointer; padding:4px 8px; }
.ir .wh .x:hover{ color:var(--wred); }
/* progress rail */
.ir .rail{ display:flex; align-items:center; gap:14px; padding:13px 24px; border-bottom:1px solid var(--wln); flex-shrink:0; }
.ir .segs{ display:flex; gap:6px; }
.ir .segs i{ width:34px; height:5px; border-radius:3px; background:#2A2D35; transition:background .3s; }
.ir .segs i.done{ background:var(--wmoss); }
.ir .segs i.cur{ background:var(--wamber); }
.ir .idx{ font-size:11px; letter-spacing:.14em; color:var(--wdim); }
.ir .idx b{ color:var(--wbr); }
.ir .sys{ margin-left:auto; font-size:10px; letter-spacing:.16em; color:var(--wpur); text-transform:uppercase; border:1px solid #3a2f55; background:var(--wpurbg,#33234B); padding:5px 11px; border-radius:20px; }
/* two-pane body */
.ir .body{ flex:1; display:grid; grid-template-columns:1.02fr 1fr; min-height:0; }
.ir .pane{ min-height:0; overflow-y:auto; scrollbar-width:thin; scrollbar-color:#2E323C transparent; }
.ir .pL{ padding:26px 28px 28px; border-right:1px solid var(--wln); }
.ir .pR{ padding:26px 28px 28px; display:flex; flex-direction:column; }
.ir .pane::-webkit-scrollbar{ width:8px; height:8px; }
.ir .pane::-webkit-scrollbar-thumb{ background:#2E323C; border-radius:8px; border:2px solid var(--w); }
.ir .pane::-webkit-scrollbar-thumb:hover{ background:#3d424e; }
.ir .pane::-webkit-scrollbar-track{ background:transparent; }
/* left pane */
.ir .plabel{ font-size:10px; letter-spacing:.22em; color:var(--wft); text-transform:uppercase; }
.ir .ttl{ font-family:'Khand',sans-serif; font-weight:700; text-transform:uppercase; color:#F4F5F1; font-size:clamp(1.9rem,3.4vw,2.6rem); line-height:.95; margin:9px 0 16px; letter-spacing:.01em; }
.ir .ctx p{ font-size:13px; line-height:1.72; color:#BCC1CA; margin-bottom:11px; }
.ir .ctx p b{ color:#EDEFF3; font-weight:400; }
.ir .aiwants{ margin-top:16px; border-left:2px solid var(--wamber); background:#1b1810; border-radius:0 8px 8px 0; padding:12px 15px; }
.ir .aiwants .h{ font-size:9.5px; letter-spacing:.16em; color:var(--wamber); text-transform:uppercase; margin-bottom:6px; }
.ir .aiwants .b{ font-size:12.5px; line-height:1.6; color:#DED9C8; }
.ir .aiwants .b b{ color:#fff; font-weight:400; }
.ir .viz{ margin-top:20px; background:var(--wic); border:1px solid var(--wln); border-radius:12px; padding:18px; position:relative; overflow:hidden; }
.ir .viz .vh{ font-size:9.5px; letter-spacing:.16em; color:var(--wft); text-transform:uppercase; margin-bottom:14px; display:flex; justify-content:space-between; }
.ir .viz .vh .st{ color:var(--wdim); }
/* right pane - question */
.ir .qlabel{ font-size:10px; letter-spacing:.2em; color:var(--wmoss); text-transform:uppercase; }
.ir .q{ font-size:15px; line-height:1.5; color:#EDEFF3; margin:10px 0 20px; }
.ir .opts{ display:flex; flex-direction:column; gap:11px; }
.ir .opt{ text-align:left; width:100%; background:var(--wbar); border:1px solid var(--wln); border-radius:10px; padding:15px 16px; cursor:pointer; color:var(--wtx); font-family:inherit; font-size:13px; line-height:1.55; display:flex; gap:13px; align-items:flex-start; transition:border-color .16s, background .16s, transform .16s; }
.ir .opt:hover{ border-color:var(--wpur); background:#20242c; transform:translateX(2px); }
.ir .opt .k{ flex-shrink:0; width:24px; height:24px; border-radius:6px; background:#262a33; color:var(--wpur); display:flex; align-items:center; justify-content:center; font-weight:600; font-size:12px; }
.ir .opt.picked{ border-color:var(--wmoss); background:#12211b; }
.ir .opt.picked .k{ background:var(--wmoss); color:#0A0C0A; }
.ir .opt.dim{ opacity:.4; }
.ir .rhint{ margin-top:auto; padding-top:18px; font-size:10.5px; letter-spacing:.06em; color:var(--wft); }
.ir .rhint kbd{ background:#23262E; border:1px solid var(--wln2); border-radius:4px; padding:1px 6px; color:var(--wdim); font-family:inherit; font-size:10px; }
/* right pane - verdict */
.ir .chose{ font-size:11px; letter-spacing:.06em; color:var(--wdim); margin-bottom:16px; }
.ir .chose b{ color:var(--wmoss); }
.ir .stamp{ font-family:'Khand',sans-serif; font-weight:700; text-transform:uppercase; font-size:clamp(2.1rem,4.4vw,3rem); line-height:.92; margin-bottom:16px; }
.ir .stamp.hit{ color:var(--wmoss); } .ir .stamp.miss{ color:var(--wred); }
.ir .actual{ border:1px solid var(--wln2); background:var(--wic); border-radius:10px; padding:16px 18px; }
.ir .actual .q2{ white-space:pre-wrap; font-size:13px; line-height:1.75; color:#EAEDF2; }
.ir .actual .q2::before{ content:'> '; color:var(--wred); font-weight:600; }
.ir .actual .src{ display:block; margin-top:11px; font-size:9.5px; letter-spacing:.14em; color:var(--wft); text-transform:uppercase; }
.ir .why{ font-size:12.5px; line-height:1.7; color:#A7ACB6; margin-top:16px; }
.ir .why b{ color:#D7DBE2; font-weight:400; }
.ir .rctrls{ display:flex; gap:11px; margin-top:22px; }
.ir .nx{ flex:1; background:var(--wmoss); color:#08130E; border:0; border-radius:10px; padding:14px 16px; cursor:pointer; font-family:inherit; font-weight:600; font-size:12.5px; letter-spacing:.06em; display:flex; align-items:center; justify-content:space-between; transition:filter .16s; }
.ir .nx:hover{ filter:brightness(1.08); }
.ir .cl{ background:var(--wbar); color:var(--wdim); border:1px solid var(--wln); border-radius:10px; padding:14px 18px; cursor:pointer; font-family:inherit; font-size:12.5px; letter-spacing:.06em; }
.ir .cl:hover{ border-color:var(--wred); color:var(--wred); }
.ir .fade{ animation:irfin .34s both; }
.ir .b1{ animation:irfin .3s both; } .ir .b2{ animation:irfin .32s .12s both; } .ir .b3{ animation:irfin .34s .26s both; }
@keyframes irfin{ from{ opacity:0; transform:translateY(9px); } to{ opacity:1; transform:none; } }
/* window footer */
.ir .wf{ display:flex; align-items:center; gap:10px; padding:10px 16px; background:var(--wbar); border-top:1px solid var(--wln); flex-shrink:0; }
.ir .chip{ font-size:10px; letter-spacing:.05em; padding:4px 10px; border-radius:6px; }
.ir .chip.v{ background:var(--wmossbg); color:var(--wmoss); }
.ir .chip.k{ background:#23262E; color:var(--wdim); margin-left:auto; }
/* signoff */
.ir .signoff{ text-align:center; margin:auto; max-width:440px; }
.ir .signoff .big{ font-family:'Khand',sans-serif; font-weight:700; text-transform:uppercase; color:#F4F5F1; font-size:2.2rem; line-height:.95; }
.ir .signoff p{ font-size:13px; line-height:1.7; color:#A7ACB6; margin:16px 0 22px; }
.ir .signoff a{ display:inline-flex; gap:9px; align-items:center; background:var(--wmoss); color:#08130E; text-decoration:none; padding:13px 22px; border-radius:10px; font-weight:600; font-size:12.5px; letter-spacing:.05em; }
/* generic resolve-state text swap */
.ir .s1{ display:none; } .ir .resolved .s0{ display:none; } .ir .resolved .s1{ display:inline; }
/* ---- visual: phones (blank safari) ---- */
.ir .phones{ display:flex; gap:20px; align-items:flex-end; justify-content:center; }
.ir .phone{ width:120px; }
.ir .phone .scr{ height:180px; border:2px solid #3A3F4B; border-radius:14px; background:#fff; position:relative; overflow:hidden; }
.ir .phone.blank .scr{ background:#fbfbfb; }
.ir .phone .pbar{ height:22px; background:#e9e9ec; display:flex; align-items:center; gap:4px; padding:0 8px; font-size:8px; color:#8a8a90; font-family:Arial,sans-serif; }
.ir .phone .pdot{ width:5px; height:5px; border-radius:50%; background:#ccc; display:inline-block; }
.ir .phone .pcontent{ padding:9px; }
.ir .phone .row{ display:block; height:9px; border-radius:3px; background:#d3d9e6; margin-bottom:6px; }
.ir .phone .row.a{ width:70%; background:#c3ccdd; } .ir .phone .row.b{ width:90%; } .ir .phone .row.c{ width:55%; }
.ir .phone .pcard{ display:block; height:44px; border-radius:6px; background:#e2e7f0; margin:8px 0; }
.ir .phone .plbl{ text-align:center; font-size:9px; letter-spacing:.1em; color:var(--wdim); margin-top:9px; text-transform:uppercase; }
.ir .phone.blank .flag{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:9px; letter-spacing:.08em; color:var(--wred); border:1px solid #5a2b2d; background:#241315; padding:4px 8px; border-radius:5px; text-transform:uppercase; white-space:nowrap; }
.ir .phone.blank .render{ opacity:0; transition:opacity .5s; padding:9px; }
.ir .resolved .phone.blank .scr{ background:#fff; }
.ir .resolved .phone.blank .flag{ display:none; }
.ir .resolved .phone.blank .render{ opacity:1; }
.ir .rootchip{ margin-top:16px; text-align:center; font-size:10px; letter-spacing:.06em; color:var(--wmoss); opacity:0; height:0; overflow:hidden; transition:opacity .4s; }
.ir .resolved .rootchip{ opacity:1; height:auto; }
.ir .rootchip b{ color:#8fe3c4; }
/* ---- visual: calendar (friday) ---- */
.ir .week{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.ir .day{ border:1px solid var(--wln); border-radius:8px; padding:9px 4px 10px; text-align:center; background:#14171d; }
.ir .day .dn{ font-size:9px; letter-spacing:.08em; color:var(--wdim); text-transform:uppercase; }
.ir .day .dbar{ height:30px; margin:8px auto 0; width:11px; border-radius:3px; background:#2f3742; }
.ir .day.wknd{ background:#1b1510; border-color:#4a3a1e; }
.ir .day.wknd .dn{ color:var(--wamber); }
.ir .day.fri .dbar{ background:#7a5a24; }
.ir .wklabel{ display:flex; justify-content:space-between; margin-top:12px; font-size:9.5px; letter-spacing:.05em; color:var(--wft); }
.ir .friNote{ margin-top:14px; font-size:11px; line-height:1.55; color:var(--wdim); border-top:1px dashed var(--wln2); padding-top:12px; }
.ir .friNote .ai{ color:var(--wamber); }
.ir .d32{ display:none; margin-top:14px; font-size:10px; letter-spacing:.05em; color:var(--wmoss); border:1px solid #2c4a3c; background:#12211b; border-radius:7px; padding:9px 12px; line-height:1.5; }
.ir .resolved .d32{ display:block; }
.ir .resolved .day.fri .dbar{ background:var(--wmoss); }
.ir .resolved .friNote .ai{ text-decoration:line-through; opacity:.5; }
/* ---- visual: deck grid (half-assed) ---- */
.ir .decks{ display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.ir .deck{ aspect-ratio:16/10; background:#0d1117; border:1px solid var(--wln); border-radius:6px; position:relative; overflow:hidden; padding:8px; }
.ir .deck .t1{ display:block; height:6px; width:60%; background:#3a4150; border-radius:2px; }
.ir .deck .t2{ display:block; height:4px; width:80%; background:#2a303c; border-radius:2px; margin-top:5px; }
.ir .deck.bad.overlap .t1{ width:75%; } .ir .deck.bad.overlap .t2{ margin-top:-3px; width:70%; background:#4a2f30; }
.ir .deck.bad.empty::after{ content:''; position:absolute; right:6px; bottom:6px; width:55%; height:45%; border:1px dashed #4a2f30; border-radius:4px; }
.ir .deck .flagd{ position:absolute; bottom:5px; left:6px; font-size:7px; letter-spacing:.05em; color:var(--wred); text-transform:uppercase; }
.ir .deck .okd{ position:absolute; top:6px; right:6px; width:12px; height:12px; border-radius:50%; background:#1e2a22; color:var(--wmoss); display:none; align-items:center; justify-content:center; font-size:8px; }
.ir .resolved .deck{ border-color:#2c4a3c; }
.ir .resolved .deck .t1{ width:58%; background:#4a5568; } .ir .resolved .deck .t2{ width:82%; margin-top:6px; background:#333b47; }
.ir .resolved .deck.bad.empty::after{ display:none; } .ir .resolved .deck .flagd{ display:none; }
.ir .resolved .deck .okd{ display:flex; }
.ir .craftchip{ display:none; margin-top:14px; font-size:10px; letter-spacing:.04em; color:var(--wmoss); background:#12211b; border:1px solid #2c4a3c; border-radius:7px; padding:9px 12px; line-height:1.5; }
.ir .resolved .craftchip{ display:block; }
/* ---- visual: threat panel (security) ---- */
.ir .threat{ font-size:11.5px; }
.ir .threat .scanhead{ display:flex; justify-content:space-between; margin-bottom:6px; }
.ir .threat .scanhead .a{ color:var(--wdim); } .ir .threat .scanhead .b{ color:var(--wft); }
.ir .threat .rowt{ display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--wln); }
.ir .threat .rowt .ic{ width:20px; height:20px; border-radius:5px; display:flex; align-items:center; justify-content:center; font-size:11px; flex-shrink:0; background:#241315; color:var(--wred); }
.ir .threat .found{ opacity:0; height:0; overflow:hidden; transition:opacity .4s; }
.ir .resolved .threat .found{ opacity:1; height:auto; }
.ir .shield{ margin-top:16px; text-align:center; padding:12px; border:1px solid var(--wln2); border-radius:9px; background:#14171d; }
.ir .shield .sn{ font-family:'Khand',sans-serif; font-weight:700; font-size:1.5rem; color:var(--wred); }
.ir .resolved .shield{ border-color:#2c4a3c; background:#12211b; }
.ir .resolved .shield .sn{ color:var(--wmoss); font-size:1.15rem; }
.ir .shield .slbl{ font-size:9px; letter-spacing:.12em; color:var(--wdim); text-transform:uppercase; margin-top:4px; }
/* ---- visual: loop diagram (permission) ---- */
.ir .loopviz{ position:relative; }
.ir .loopring{ height:210px; display:flex; align-items:center; justify-content:center; }
.ir .loopring svg{ width:210px; height:210px; overflow:visible; }
.ir .loopcap{ margin-top:6px; font-size:10.5px; line-height:1.55; color:var(--wdim); text-align:center; }
.ir .resolved .loopcap .s1{ color:var(--wmoss); }
.ir .lanes{ display:none; }
.ir .resolved .lanes{ display:block; }
.ir .resolved .loopring{ display:none; }
.ir .laneRow{ display:flex; align-items:center; gap:10px; padding:11px 12px; border-radius:9px; margin-bottom:9px; font-size:11px; line-height:1.4; }
.ir .laneRow.perm{ background:#14171d; border:1px solid var(--wln); color:var(--wft); }
.ir .laneRow.dec{ background:#12211b; border:1px solid #2c4a3c; color:var(--wmoss); }
.ir .laneRow .ltag{ flex-shrink:0; font-size:8.5px; letter-spacing:.1em; padding:3px 8px; border-radius:20px; text-transform:uppercase; }
.ir .laneRow.perm .ltag{ background:#23262E; color:var(--wdim); }
.ir .laneRow.dec .ltag{ background:var(--wmoss); color:#08130E; }
/* minimized restore pill (outside .ir - hardcoded palette) */
.ir-restore{ position:fixed; left:50%; bottom:46px; transform:translateX(-50%) translateY(30px); z-index:96;
  background:#20242C; border:1px solid #3A3F4B; border-radius:30px; padding:10px 18px; color:#F1F2ED;
  font-family:'JBMono',monospace; font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; cursor:pointer;
  display:none; gap:10px; align-items:center; box-shadow:0 18px 50px rgba(0,0,0,.5); font-weight:600; opacity:0;
  transition:transform .3s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.ir-restore .rd{ width:9px; height:9px; border-radius:50%; background:#FEBC2E; }
.ir-restore.show{ display:inline-flex; }
.ir-restore.in{ transform:translateX(-50%) translateY(0); opacity:1; }
/* responsive: stack the panes */
@media (max-width: 900px){
  .ir{ padding:0; }
  .ir .win{ width:100%; height:100%; border-radius:0; }
  .ir.max .win{ width:100%; height:100%; }
  .ir .body{ grid-template-columns:1fr; }
  .ir .pL{ border-right:0; border-bottom:1px solid var(--wln); }
  .ir .rail .sys{ display:none; }
  .ir .segs i{ width:22px; }
}
@media (prefers-reduced-motion: reduce){
  .ir, .ir .win, .ir .segs i, .ir .fade, .ir .b1, .ir .b2, .ir .b3, .ir-restore,
  .ir .phone.blank .render, .ir .rootchip, .ir .threat .found { transition:none; animation:none; }
  .tlaunch .tgo, .cctick .cclk .tcur2 { animation:none; }
}

/* ---- the loop, run on a real incident (method page) ---- */
.looprail { display: flex; gap: 0; flex-wrap: wrap; align-items: stretch; margin-bottom: 3vh; }
.lr-node { flex: 1; min-width: 150px; text-align: left; background: var(--card); border: 1.5px solid var(--line); border-left-width: 0;
  padding: 14px 16px; cursor: pointer; font-family: 'JBMono', monospace; transition: background .2s, border-color .2s; position: relative; }
.lr-node:first-child { border-left-width: 1.5px; }
.lr-node .n { font-size: 10px; color: var(--grey); letter-spacing: .14em; display: block; }
.lr-node .t { font-family: 'Khand', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 1.25rem; color: var(--ink); }
.lr-node:hover { border-color: var(--ink); }
.lr-node.on { background: var(--ink); border-color: var(--ink); }
.lr-node.on .t { color: var(--bone); } .lr-node.on .n { color: #9FE8C8; }
.lr-node.seenit::after { content: '✓'; position: absolute; top: 8px; right: 10px; color: var(--moss); font-size: 11px; }
.lr-panel { border: 2px solid var(--ink); background: var(--card); padding: 26px 30px; min-height: 210px; }
.lr-panel .gl { font-family: 'Sentient', serif; color: var(--grey); margin-bottom: 14px; max-width: 90ch; }
.lr-panel .q { font-family: 'JBMono', monospace; font-size: 13.5px; line-height: 1.8; white-space: pre-wrap; }
.lr-panel .q::before { content: '> '; color: var(--red); font-weight: 600; }
.lr-panel .q.fact::before { content: '§ '; color: var(--moss); }
.lr-panel .src { margin-top: 12px; font-size: 10.5px; letter-spacing: .12em; color: var(--grey); font-family: 'JBMono', monospace; text-transform: uppercase; }
.lr-hint { margin-top: 14px; font-size: 10.5px; letter-spacing: .14em; color: var(--grey); font-family: 'JBMono', monospace; text-transform: uppercase; }
@media (max-width: 860px) { .lr-node { min-width: 33%; border-left-width: 1.5px; margin: -1px 0 0 -1px; } }

/* ---- memory console - skinned as HIS real Warp terminal ---- */
.jconsole { border: 1px solid #2A2D35; border-radius: 14px; overflow: hidden; background: #16181D; color: #C9CDD6;
  font-family: 'JBMono', monospace; box-shadow: 0 30px 80px rgba(14,31,25,.22); }
.jc-bar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; font-size: 11px; letter-spacing: .12em;
  color: #7C818D; background: #1C1F26; border-bottom: 1px solid #2A2D35; text-transform: uppercase; }
.jc-bar .tl { display: flex; gap: 7px; }
.jc-bar .tl .d { width: 12px; height: 12px; border-radius: 50%; display: block; }
.jc-bar .tl .r { background: #FF5F57; } .jc-bar .tl .y { background: #FEBC2E; } .jc-bar .tl .g { background: #28C840; }
.jc-bar #jcProg { margin-left: auto; }
.jc-out { height: min(56vh, 520px); overflow-y: auto; padding: 18px 18px 10px; font-size: 13px; line-height: 1.85; }
.jc-out .cmd { color: #9A7FE8; }
.jc-out .err { color: #FF6B6E; }
.jc-out b { color: #fff; }
.jc-out .jc-para { margin-bottom: 1.1em; }
.jc-out .jc-para:last-child { margin-bottom: 0; }
.jc-out .med { margin: 14px 0 10px; max-width: 520px; clip-path: inset(0 100% 0 0); transition: clip-path .55s cubic-bezier(.16,1,.3,1); border: 1px solid #2A2D35; border-radius: 8px; overflow: hidden; }
.jc-out .med img { width: 100%; display: block; }
.jc-out .med.in { clip-path: inset(0 0 0 0); }
.jc-out .medcap { font-size: 10px; letter-spacing: .14em; color: #7C818D; margin-bottom: 10px; text-transform: uppercase; }
.jc-out .frow { display: flex; justify-content: space-between; max-width: 500px; gap: 20px; }
.jc-out .frow i { font-style: normal; color: #58C99F; white-space: nowrap; }
.jc-line { display: flex; gap: 10px; align-items: center; padding: 12px 18px; border-top: 1px solid #2A2D35; background: #1C1F26; }
.jc-ps1 { color: #58C99F; }
#jcIn { flex: 1; background: none; border: 0; outline: none; color: #fff; font-family: 'JBMono', monospace; font-size: 16px; min-width: 0; }
/* Reserve a constant box so changing the hint text NEVER reflows the input
   field's width (his catch: the hint "randomly increases the width"). Fades
   softly instead of snapping. */
.jc-ghost { font-size: 11px; color: #7C818D; white-space: nowrap; letter-spacing: .06em;
  min-width: 196px; text-align: right; display: inline-block; flex: 0 0 auto;
  transition: opacity .25s ease; }
@media (max-width: 480px) { .jc-ghost { display: none; } }

.jc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid #2A2D35; }
.jc-chip { font-family: 'JBMono', monospace; font-size: 11px; letter-spacing: .08em; color: #C9CDD6; background: #1C1F26;
  border: 1px solid #2A2D35; border-radius: 8px; padding: 8px 12px; cursor: pointer; text-transform: uppercase;
  transition: border-color .2s, color .2s, transform .2s; }
.jc-chip:hover { border-color: #9A7FE8; color: #fff; transform: translateY(-1px); }
.jc-chip.done { background: rgba(88,201,159,.1); border-color: #58C99F; color: #9FE8C8; }

/* ============ V6 - ONE PAGE, ONE ARGUMENT ============ */

/* cross-document view transitions: plate + title morph into the case page,
   root does a directional lift instead of a plain crossfade */
@view-transition { navigation: auto; }
.bar { view-transition-name: site-bar; }
.ticker { view-transition-name: site-ticker; }
@keyframes vt-lift-out { to { opacity: 0; transform: translateY(-18px); } }
@keyframes vt-lift-in { from { opacity: 0; transform: translateY(22px); } }
::view-transition-old(root) { animation: vt-lift-out .3s cubic-bezier(.2,.7,.2,1) both; }
::view-transition-new(root) { animation: vt-lift-in .38s cubic-bezier(.2,.7,.2,1) .05s both; }
::view-transition-group(case-hero), ::view-transition-group(case-title) {
  animation-duration: .45s; animation-timing-function: cubic-bezier(.2,.7,.2,1); z-index: 50; }
::view-transition-group(case-hero) { animation-duration: .6s; }
::view-transition-old(case-hero), ::view-transition-old(case-title) { display: none; }
::view-transition-new(case-hero), ::view-transition-new(case-title) { animation: none; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-image-pair(*),
  ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ink curtain (non-VT browsers) - exit from the index */
.curt { position: fixed; inset: 0; z-index: 998; background: var(--ink); transform: translateY(101%);
  transition: transform .3s cubic-bezier(.2,.7,.2,1); display: grid; place-items: center; }
.curt.on { transform: none; }
.curt span { color: var(--bone); font-family: 'JBMono', monospace; font-size: 12px; letter-spacing: .18em; }

/* ink curtain - arrival on a case page (class set pre-paint) */
html.curtained::before { content: ''; position: fixed; inset: 0; background: var(--ink); z-index: 998;
  transition: transform .32s cubic-bezier(.2,.7,.2,1); }
html.curtained::after { content: attr(data-curt); position: fixed; left: 50%; top: 50%;
  transform: translate(-50%,-50%); color: var(--bone); font-family: 'JBMono', monospace; font-size: 12px;
  letter-spacing: .18em; z-index: 999; transition: opacity .18s; white-space: nowrap; }
html.curtained.lift::before { transform: translateY(-101%); }
html.curtained.lift::after { opacity: 0; }

/* the red thread - fixed progress spine (desktop) */
#spine { position: fixed; left: max(14px, 1.6vw); top: 0; bottom: 0; width: 2px; z-index: 25; pointer-events: none; }
#spine i { position: absolute; inset: 0; background: var(--red); transform: scaleY(0); transform-origin: top; }
@media (max-width: 900px) { #spine { display: none; } }

/* chapter handoffs: a stem + the question the next chapter answers */
.handoff { padding: 6vh 4vw 0; display: flex; flex-direction: column; gap: 12px; }
.handoff .hstem { width: 2px; height: 46px; background: var(--red); transform: scaleY(0); transform-origin: top; }
.handoff.seen .hstem { transform: scaleY(1); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.handoff .hq { font-family: 'JBMono', monospace; font-size: 11px; letter-spacing: .18em; color: var(--ink); text-transform: uppercase; }
.handoff .hq b { color: var(--red); }

/* serif asides - the human voice in every chapter */
.aside { font-family: 'Sentient', serif; font-style: italic; color: var(--grey);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.55; }
.aside b, .aside em { color: var(--ink); font-weight: 500; }
.aside em { color: var(--moss); }

/* anchors clear the fixed header */
section[id], [id="method"], [id="journey"], [id="consult"] { scroll-margin-top: 64px; }

/* ten-more expanded anatomy: PROBLEM / DIRECTION / OUTCOME */
.pdo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 6px 6px 18px; }
.pdo .cell { padding: 10px 16px 4px; border-left: 1px solid var(--line); }
.pdo .cell:first-child { border-left: 0; padding-left: 0; }
.pdo .cl { display: block; font-family: 'JBMono', monospace; font-size: 9.5px; letter-spacing: .18em;
  color: var(--red); margin-bottom: 6px; text-transform: uppercase; }
.pdo p { font-family: 'Sentient', serif; font-size: .95rem; color: var(--grey); max-width: 76ch; }
.pdo p b { color: var(--ink); font-weight: 500; }
.pdo p a { color: var(--moss); border-bottom: 1px solid var(--moss); }
@media (max-width: 700px) {
  .pdo { grid-template-columns: 1fr; }
  .pdo .cell { border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 4px; }
  .pdo .cell:first-child { border-top: 0; }
}
.tdetail.open { max-height: 620px; }

/* ticker chapter index */
.ticker .chix { color: var(--bone); font-weight: 600; flex-shrink: 0; }

/* memory console: boot + query results */
.jc-boot { color: #7C818D; }
.jc-boot b { color: #C9CDD6; }
.jc-boot .lock { color: #E8B341; }
.jc-res { border: 1px solid #2A2D35; border-radius: 8px; background: #1C1F26; padding: 12px 14px; margin: 10px 0; max-width: 640px; }
.jc-res .q { white-space: pre-wrap; color: #C9CDD6; }
.jc-res .q::before { content: '> '; color: #FF6B6E; font-weight: 600; }
.jc-res .s { display: block; margin-top: 8px; font-size: 10px; letter-spacing: .12em; color: #7C818D; text-transform: uppercase; }
.jc-res a { color: #58C99F; border-bottom: 1px solid rgba(88,201,159,.4); }
.jc-out .jc-link { color: #58C99F; border-bottom: 1px solid rgba(88,201,159,.4); }
.jc-out .lock { color: #E8B341; }
.jc-chip.ask { color: #E8B341; border-color: rgba(232,179,65,.45); }
.jc-chip.ask:hover { border-color: #E8B341; color: #fff; }

/* run-an-incident overlay CSS moved to .ir (v7 situation room) */
@keyframes iIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.bt1 { animation: iIn .28s both; }
.bt2 { animation: iIn .3s .22s both; }
.bt3 { animation: iIn .3s .5s both; }
@media (prefers-reduced-motion: reduce) { .bt1, .bt2, .bt3 { animation: none; } }

/* the loop: panel content lands in three beats, moss bar redraws per stage */
.lr-panel { position: relative; }
.lr-panel::before { content: ''; position: absolute; left: -2px; top: -2px; bottom: -2px; width: 3px; background: var(--moss);
  transform: scaleY(0); transform-origin: top; }
.lr-panel.flash::before { transform: scaleY(1); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.lr-panel .gl.bt1, .lr-panel .q.bt2, .lr-panel .src.bt3 { will-change: opacity, transform; }
@media (prefers-reduced-motion: reduce) { .lr-panel.flash::before { transition: none; } }

/* ---- v6.1 micro-motion layer (animation-scope audit) ---- */

/* incident overlay: arrives instead of snapping */
/* .term arrival transitions removed (v7) */

/* ten-more anatomy cells land in sequence */
.tdetail .pdo .cell { opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,.7,.2,1); }
.tdetail.open .pdo .cell { opacity: 1; transform: none; }
.tdetail.open .pdo .cell:nth-child(2) { transition-delay: .07s; }
.tdetail.open .pdo .cell:nth-child(3) { transition-delay: .14s; }

/* work rows arm themselves: red underline draws in from the left, exits right */
.wrow::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: right;
  transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.wrow:hover::after { transform: scaleX(1); transform-origin: left; }

/* cursor press feedback */
.cur { transition: width .18s, height .18s, background .18s, border .18s, opacity .22s, transform .15s; }
.cur.press { transform: translate(-50%,-50%) scale(.72); }

/* loop rail: red top edge draws on the active node, seen-check pops */
.lr-node { position: relative; }
.lr-node .n, .lr-node .t { transition: color .2s; }
.lr-node::before { content: ''; position: absolute; left: 0; right: 0; top: -1.5px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.lr-node.on::before { transform: scaleX(1); }
@keyframes seenPop { from { opacity: 0; transform: scale(.6); } }
.lr-node.seenit::after { animation: seenPop .25s both; }

/* prompt zero: red stem draws down the box on entry */
.promptzero { position: relative; }
.promptzero::before { content: ''; position: absolute; left: -2px; top: -2px; bottom: -2px; width: 3px;
  background: var(--red); transform: scaleY(0); transform-origin: top; }
.promptzero.seen::before { transform: scaleY(1); transition: transform .6s cubic-bezier(.2,.7,.2,1) .15s; }

/* fork MY CALL tag joins the reveal rhythm */
.fork.done .fk-opt.his::after { animation: fkIn .3s .55s both; }

/* receipts strip underlines itself as it arrives */
.proof { border-top: 0; }
.proof::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left; }
.proof.seen::before { transform: scaleX(1); transition: transform .8s cubic-bezier(.2,.7,.2,1); }

/* case-study chapter kickers: rule draws, disc pops (noscript-safe: text stays visible) */
.chapter .ch-k { border-bottom: 0; }
.chapter .ch-k::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; }
.chapter .ch-k { position: relative; padding-bottom: 12px; }
.chapter .ch-k.seen::after { transform: scaleX(1); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.chapter .ch-k .disc { transform: scale(0); }
.chapter .ch-k.seen .disc { transform: scale(1); transition: transform .3s cubic-bezier(.34,1.56,.64,1) .2s; }

/* architecture diagram boots top-down */
.arch .an, .arch .aa { opacity: 0; transform: translateY(6px); }
.arch.seen .an, .arch.seen .aa { opacity: 1; transform: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.7,.2,1); }
.arch.seen > *:nth-child(2) { transition-delay: .05s; }
.arch.seen > *:nth-child(3) { transition-delay: .1s; }
.arch.seen > *:nth-child(4) { transition-delay: .15s; }
.arch.seen > *:nth-child(5) { transition-delay: .2s; }
.arch.seen > *:nth-child(6) { transition-delay: .25s; }
.arch.seen > *:nth-child(7) { transition-delay: .3s; }
.arch.seen > *:nth-child(8) { transition-delay: .35s; }
.arch.seen > *:nth-child(9) { transition-delay: .4s; }
.arch.seen > *:nth-child(10) { transition-delay: .45s; }
.arch.seen > *:nth-child(11) { transition-delay: .5s; }

/* console input focus + handoff question lands after the stem */
.jc-line { transition: border-color .25s; }
.jconsole:focus-within .jc-line { border-top-color: rgba(88,201,159,.5); }
.handoff .hq { opacity: 0; transform: translateY(6px); }
.handoff.seen .hq { opacity: 1; transform: none;
  transition: opacity .3s ease .35s, transform .3s cubic-bezier(.2,.7,.2,1) .35s; }

/* live streak dot - the one allowed infinite pulse (moss = live states) */
.livedot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--moss);
  margin-right: 5px; animation: lpulse 2.2s ease-in-out infinite; }
@keyframes lpulse { 50% { opacity: .25; } }

/* CTA arrows nudge */
.btn .ar { display: inline-block; transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.btn:hover .ar { transform: translateX(4px); }

/* numbers stay stable while counting */
.proof li .n, .proof .agg .n { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .arch .an, .arch .aa, .handoff .hq, .tdetail .pdo .cell { opacity: 1 !important; transform: none !important; }
  .chapter .ch-k::after, .promptzero::before, .proof::before, .lr-node.on::before { transform: none !important; }
  .chapter .ch-k .disc { transform: scale(1) !important; }
  .livedot { animation: none; }
}

/* ---- v6.2: console chat suggestions ---- */
.jc-sugs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid #2A2D35; background: #16181D; min-height: 53px; box-sizing: border-box; }
.jc-sugs .jc-chip { text-transform: none; letter-spacing: .02em; }
.jc-sugs .jc-chip::before { content: '? '; color: #9A7FE8; font-weight: 600; }

/* ---- v6.2: ten-more expanded - room + a real visual per build ---- */
.texp { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; padding: 20px 6px 28px; align-items: start; }
.texp.solo { grid-template-columns: 1fr; max-width: 760px; }
.texp .pdo { display: flex; flex-direction: column; gap: 16px; padding: 0; }
.texp .pdo .cell { border: 0; border-left: 2px solid var(--line); padding: 2px 0 2px 18px; }
.texp .pdo p { font-size: 1.02rem; max-width: 82ch; }
.tviz { margin: 0; }
/* one shared 16:10 plate per row; odd-shaped screenshots ship pre-baked onto blurred
   self-backdrop plates (tools/bake-plates.py) - no runtime blur cost, no bare white mat */
.tviz .tshots { position: relative; aspect-ratio: 16 / 10; border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(14,31,25,.14); background: var(--ink); overflow: hidden;
  /* own stacking context - swap z-indexes must never escape and beat the ticker (30) / term (85) */
  isolation: isolate; }
.tviz .tshots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  display: block; filter: contrast(1.04) saturate(.92); opacity: 0; transition: opacity .5s ease; }
.tviz .tshots img.on { opacity: 1; }
.tviz figcaption { margin-top: 10px; font-family: 'JBMono', monospace; font-size: 9.5px; letter-spacing: .16em;
  color: var(--grey); text-transform: uppercase; }
.tdetail .tviz { opacity: 0; transform: translateY(8px); transition: opacity .35s ease .18s, transform .35s cubic-bezier(.2,.7,.2,1) .18s; }
.tdetail.open .tviz { opacity: 1; transform: none; }
@media (max-width: 800px) { .texp { grid-template-columns: 1fr; gap: 18px; } }

/* ---- v6.2: index -> case transition: the preview grows to a full-screen cover,
   which then clips away to reveal the page (VT browsers only) ---- */
#casecover { display: none; position: fixed; inset: 0; z-index: 997; background: var(--ink); overflow: hidden; }
#casecover.show { display: block; }
#casecover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
#casecover .ccl { position: absolute; left: 26px; bottom: 44px; color: var(--bone); font-family: 'JBMono', monospace;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; background: rgba(14,31,25,.82); padding: 8px 14px; }
#casecover.txt { display: none; place-items: center; }
#casecover.txt.show { display: grid; }
#casecover.txt .ccl { position: static; background: none; font-family: 'Khand', sans-serif; font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700; letter-spacing: .04em; }
#casecover { transition: clip-path .55s cubic-bezier(.2,.7,.2,1); clip-path: inset(0 0 0 0); }
#casecover.away { clip-path: inset(0 0 100% 0); }
@media (prefers-reduced-motion: reduce) { #casecover { display: none !important; } }

/* hover:none copy swaps - GLOBAL so case pages get them too (the cover hint reads
   CLICK on desktop, TAP on a touch tablet). Lived inline in index.html until
   2026-07-15; DESIGN.md always claimed this file, so this is where they belong. */
.taphint { display: none; }
@media (hover: none) { .hoverhint { display: none; } .taphint { display: inline; } }

/* v7 live cover: the usage clip loops until you scroll; scroll scrubs it away 1:1.
   Bottom bar reuses the site ticker grammar so the overlay is on-brand by construction.
   The whole cover is the dismiss target (click = the scroll's exit, run to completion). */
#casecover.vid { will-change: transform; cursor: pointer; }
#casecover.vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
#casecover.vid.sq { background: var(--bone); }
#casecover.vid.sq video { object-fit: contain; }
.cctick { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; background: var(--ink); color: #B9C6BF;
  font-family: 'JBMono', monospace; font-size: 11px; height: 32px; padding: 0 18px; display: flex; align-items: center; gap: 10px;
  white-space: nowrap; overflow: hidden; text-transform: uppercase; letter-spacing: .1em; }
.cctick .csig { color: #58C99F; flex-shrink: 0; }
.cctick .cctxt { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cctick .cclk { margin-left: auto; color: var(--bone); flex-shrink: 0; padding-left: 16px; font-weight: 600; opacity: 0; transition: opacity .5s; }
.cctick .cclk.on { opacity: 1; }
.cctick .cclk .tcur2 { display: inline-block; margin-left: 4px; color: #58C99F; animation: tblink 1.1s steps(1) infinite; }
html.cclock, html.cclock body { overflow: hidden; }
/* The live cover is JS-gated to >700px (see the pagereveal handler in build.py's
   VT_REVEAL_JS) - below this it never shows, so these are the fallback shape only,
   kept in case that gate is ever widened. */
@media (max-width: 700px) {
  .cctick { font-size: 9.5px; padding: 0 12px; }
  #casecover.vid video { object-fit: contain; }
}

/* ---- v6.2: THE LOOP as an orbit - scroll sweeps the red arc around the ring ---- */
.lgrid { display: grid; grid-template-columns: minmax(300px, 460px) 1fr; gap: 4vw; align-items: center; min-height: 82vh; }
.lring { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; }
.lring svg { width: 100%; height: 100%; display: block; }
.lbase { fill: none; stroke: var(--line); stroke-width: 2; }
.lprog { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; }
.ln-node { position: absolute; transform: translate(-50%,-50%); background: var(--bone); border: 1.5px solid var(--line);
  padding: 7px 12px; text-align: center; cursor: pointer; font-family: 'JBMono', monospace;
  transition: border-color .25s, background .25s; }
.ln-node .n { display: block; font-size: 9px; color: var(--grey); letter-spacing: .14em; transition: color .25s; }
.ln-node .t { display: block; font-family: 'Khand', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 1.02rem;
  line-height: 1.05; color: var(--ink); transition: color .25s; }
.ln-node.on { background: var(--ink); border-color: var(--ink); }
.ln-node.on .t { color: var(--bone); }
.ln-node.on .n { color: #9FE8C8; }
.ln-node.seenit { border-color: var(--moss); }
.lcenter { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.lcenter > * { grid-area: 1 / 1; }
.lcenter .lcount { font-family: 'Khand', sans-serif; font-weight: 700; font-size: clamp(2.2rem, 3.4vw, 3.2rem); line-height: 1;
  color: var(--ink); transform: translateY(-14px); font-variant-numeric: tabular-nums; }
.lcenter .lcount i { font-style: normal; color: var(--grey); font-size: .55em; }
.lcenter .lw { font-family: 'JBMono', monospace; font-size: 9.5px; letter-spacing: .22em; color: var(--grey);
  text-transform: uppercase; transform: translateY(26px); transition: color .3s; }
.loopwrap.closed .lcenter .lw { color: var(--red); }
.loopwrap .lr-hint { margin-top: 2vh; }
.loopwrap .lr-hint b { color: var(--ink); font-weight: 600; }
.lstack { display: grid; gap: 14px; }
.loopwrap.flat .lgrid { grid-template-columns: 1fr; min-height: 0; gap: 24px; }
.loopwrap.flat .lring { max-width: 280px; margin: 0 auto; }
@media (max-width: 900px) {
  .lgrid { grid-template-columns: 1fr; min-height: 0; gap: 24px; }
  .lring { max-width: 300px; margin: 0 auto; }
  .ln-node { padding: 5px 8px; }
  .ln-node .t { font-size: .85rem; }
}

/* v6.2 spacing trims: less dead air after the next-system link and above the footer */
.nextsys { margin-top: 7vh; }
.nextsys a { padding: 6vh 0 7vh; }
.foot { margin-top: 6vh; padding: 40px 0 56px; }

/* ---- MEMORY console v2: conversation styling (rail removed - his call) ----
   Visitor turns render as a raised Warp command block (his terminal metaphor):
   a charcoal band with a moss left-border, so each exchange has a clear start.
   Responses sit on the base window bg. His v3 call, 2026-07-13. */
.jc-yline { margin-top: 22px; margin-bottom: 16px; background: #1C1F26; border-left: 2px solid #58C99F;
  border-radius: 6px; padding: 10px 14px; }
.jc-yline:first-child { margin-top: 4px; }
.jc-yline .jc-yp { color: #58C99F; font-weight: 600; }
.jc-yline .jc-you { color: #EDEFF4; }
.jc-out .soft { color: #8B93A3; }
.jc-nomodel { text-transform: none; letter-spacing: .04em; color: #5A6472; font-size: 10px; }
@media (max-width: 560px) { .jc-nomodel { display: none; } }
.jc-tool { color: #6B7180; font-size: 12px; }
.jc-tool i { font-style: normal; color: #58C99F; }
.tb-cur { display: inline-block; width: 7px; height: 11px; background: #7C818D; margin-left: 6px;
  vertical-align: -1px; animation: tbblink .7s steps(1) infinite; }
@keyframes tbblink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tb-cur { animation: none; } }
/* verbatim quotes flow in-conversation but stay visibly verbatim (no card box) */
.jc-vq { margin: 10px 0 10px 2px; padding-left: 14px; border-left: 2px solid rgba(88,201,159,.45); max-width: 620px; }
.jc-vq .vq-q { color: #E4E7EE; font-style: italic; white-space: pre-wrap; }
.jc-vq .vq-s { display: block; margin-top: 5px; font-size: 10px; letter-spacing: .1em; color: #6B7180; text-transform: uppercase; }
.jc-vq .vq-s a { text-transform: none; letter-spacing: 0; font-size: 11px; }
.jc-out > div { max-width: 820px; }
.jc-out .med { max-width: 520px; }

/* ================= CH 04 · THE MACHINE + THE METHOD FILE (scoped under .mm) ================= */
.mm .beat { padding: 2vh 0; }
.mm .beat-k { font-family: 'JBMono', monospace; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 600; }
/* beat 1 - the ratio */
.mm .ratio { display: flex; align-items: center; gap: clamp(16px, 3vw, 52px); flex-wrap: wrap; margin-top: 14px; }
.mm .ratio .n { font-family: 'Khand', sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; line-height: .82; letter-spacing: .004em; }
.mm .ratio .n.a { font-size: clamp(2.6rem, 6vw, 5rem); color: var(--ink); }
.mm .ratio .n.b { font-size: clamp(3.4rem, 10vw, 8.5rem); color: var(--ink); }
.mm .ratio .op { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--red); }
.mm .ratio .op .x { font-family: 'Khand', sans-serif; font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1; }
.mm .ratio .op svg { display: block; width: clamp(60px, 8vw, 120px); height: 22px; margin: 5px auto 3px; overflow: visible; color: var(--red); }
.mm .ratio .op .rlab { text-align: center; }
.mm .rlab { font-family: 'JBMono', monospace; font-size: 11px; letter-spacing: .05em; color: var(--grey); text-transform: uppercase; }
.mm .ratio-cap { font-family: 'Sentient', serif; font-size: clamp(1.15rem, 2vw, 1.6rem); line-height: 1.35; margin-top: 26px; }
.mm .ratio-cap b { color: var(--ink); } .mm .ratio-cap .em { font-style: italic; color: var(--moss); }
.mm .ratio-dek { font-family: 'JBMono', monospace; font-size: 10.5px; letter-spacing: .1em; color: var(--grey); text-transform: uppercase; margin-top: 16px; }
/* beat 2 - the fleet */
.mm .fleetbeat { margin-top: 7vh; }
.mm .beat-cap { font-family: 'JBMono', monospace; font-size: 10.5px; letter-spacing: .06em; color: var(--grey); margin-top: 18px; line-height: 1.7; text-transform: uppercase; }
.mm .beat-cap b { color: var(--ink); font-weight: 600; }
.mm .fleetline { margin-top: 22px; }
.mm .ms-instr { font-family: 'JBMono', monospace; font-size: clamp(12px, 1.5vw, 15px); color: var(--ink); letter-spacing: .01em; margin-bottom: 10px; min-height: 1.6em; line-height: 1.75; }
.mm .ms-instr .ps { color: var(--moss); font-weight: 600; }
.mm .ms-instr .typed { white-space: pre-wrap; overflow-wrap: anywhere; }
.mm .ms-instr .caret { display: inline-block; width: 8px; height: 1.05em; background: var(--red); vertical-align: -2px; margin-left: 2px; }
.mm .ms-instr .caret.blink { animation: mmblink 1s steps(1) infinite; }
@keyframes mmblink { 50% { opacity: 0; } }
/* THE FLEET v13 (2026-07-17, his pick B) - the assembly line. Five stations on a shared grid.
   ALIGNMENT LAW (his note on the demo): every station is grid rows label/gloss/pips/done and all
   stations stretch to one row height, so the pips, the build bar and the done-lines sit on ONE
   shared baseline no matter how a gloss wraps. Do not let any station opt out of the grid. */
.mm .fl-flow { display: grid; grid-template-columns: 6fr 2.6fr 6.4fr 4fr 5fr; border-top: 1px solid var(--line); padding-top: 4.5vh; }
.mm .fl-st { display: grid; grid-template-rows: auto 1fr auto auto; padding: 0 clamp(8px, 1.4vw, 22px) 24px 0; }
.mm .fl-st + .fl-st { padding-left: clamp(8px, 1.4vw, 22px); }
.mm .fl-st .fph { font-family: 'JBMono', monospace; font-size: clamp(10px, 1.1vw, 12px); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); font-weight: 600; white-space: nowrap; }
.mm .fl-st .fph .n { color: var(--red); }
.mm .fl-st .fph .mt { color: var(--grey); font-weight: 400; letter-spacing: .1em; }
.mm .fl-st .gl { font-family: 'Sentient', serif; font-style: italic; font-size: clamp(.86rem, 1.25vw, 1.05rem); color: var(--grey); margin-top: 6px; line-height: 1.4; align-self: start; }
.mm .fl-st .pips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; min-height: 15px; align-items: center; align-self: end; }
.mm .pip { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent;
           opacity: 0; transform: scale(.4); transition: opacity .3s cubic-bezier(.2,.7,.2,1), transform .3s cubic-bezier(.34,1.56,.64,1), background .25s; }
.mm .pip.dart { width: 16px; height: 5px; border-radius: 2px; }
.mm .pip.out { opacity: 1; transform: scale(1); }
.mm .pip.back { background: var(--ink); }
.mm .fl-st .done { font-family: 'JBMono', monospace; font-size: 10px; letter-spacing: .12em; color: var(--moss); font-weight: 600; margin-top: 10px; opacity: 0; transition: opacity .35s; text-transform: uppercase; white-space: nowrap; }
.mm .fl-st .done.on { opacity: 1; }
.mm .fl-st.build .fbar { height: 13px; border: 1.5px solid var(--ink); margin-top: 14px; align-self: end; overflow: hidden; }
.mm .fl-st.build .fbar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.mm .fl-st.build .bmin { font-family: 'JBMono', monospace; font-size: 10px; letter-spacing: .12em; color: var(--grey); margin-top: 10px; text-transform: uppercase; }
.mm .fl-st.build .bmin b { color: var(--ink); }
.mm .fl-spine { height: 2px; background: var(--line); }
.mm .fl-spine i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.mm .fl-after { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-top: 3.5vh; }
.mm .fl-legend { display: flex; flex-direction: column; gap: 8px; }
.mm .fl-legend .lk { display: flex; align-items: center; gap: 9px; font-family: 'JBMono', monospace; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); font-weight: 600; }
.mm .fl-legend .lk b { color: var(--red); font-weight: 600; }
.mm .fl-legend .lk i { display: inline-block; flex: none; background: var(--ink); }
.mm .fl-legend .g-opus { width: 12px; height: 12px; border-radius: 50%; }
.mm .fl-legend .g-sonnet { width: 10px; height: 7px; }
.mm .fl-legend .g-fable { width: 10px; height: 7px; }
.mm .fl-legend .g-haiku { width: 15px; height: 4px; border-radius: 2px; }
.mm .fl-anno { text-align: right; max-width: 26ch; opacity: 0; transition: opacity .6s; }
.mm .fl-anno b { font-family: 'Sentient', serif; font-style: italic; font-weight: 400; font-size: clamp(1.15rem, 2vw, 1.7rem); color: var(--ink); line-height: 1.15; display: block; }
.mm .fl-anno span { font-family: 'JBMono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); display: block; margin-top: 8px; }
.mm .fl-anno.on { opacity: 1; }
@media (max-width: 820px) {
  .mm .fl-flow { grid-template-columns: 1fr 1fr; }
  .mm .fl-st { padding: 0 14px 22px 0; }
  .mm .fl-st.build { grid-column: 1 / 3; }
  .mm .fl-spine { display: none; }
  .mm .fl-after { flex-direction: column; }
  .mm .fl-anno { text-align: left; }
}
/* beat 3 - the rhythm. v12 (2026-07-16): a Sun-to-Sat histogram replaces the dated calendar
   heatmap (the old axis was DATES, so it aged the moment the window moved).
   Built in HTML/CSS, NOT SVG, on purpose: a fixed-viewBox SVG scales its <text> down with the
   artboard, so the day labels rendered ~4px at 390. As DOM text they hold their real size at
   every width. Seven rectangles do not need SVG.
   Bars are MOSS, not ink - his call, the solid-black bars "felt too daunting". Moss is the
   site's live/active token, and it ties the bars to the moss "58 of 60" above them. No new hue. */
.mm .rhythmbeat { margin-top: 7vh; }
.mm .rhythmbeat .big { font-family: 'Khand', sans-serif; font-weight: 700; font-size: clamp(2rem, 4vw, 3.4rem); line-height: .95; margin-top: 12px; }
.mm .rhythmbeat .big i { font-style: normal; color: var(--moss); }
.mm .rb-unit { font-family: 'JBMono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin: 3.4vh 0 16px; }
/* Row 1 is PINNED to a fixed height (bar + its number + the gap). It must not be `auto`: the bars
   animate their real height, and an auto row would resize to the tallest current bar - so the axis
   and the day labels would slide up and down as the bars grew. */
.mm .bars { --h: clamp(150px, 21vw, 250px); display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: calc(var(--h) + 3.4rem) auto auto; align-items: end; column-gap: clamp(4px, 1vw, 20px); }
.mm .bars .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.mm .bars .col .v { font-family: 'Khand', sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; font-size: clamp(1.5rem, 2.9vw, 2.5rem); line-height: 1; color: var(--ink); margin-bottom: 10px; }
/* HEIGHT, not transform: scaleY - see the long note in method.js. scaleY bars did not paint at
   intermediate values on his machine, and real height gives the number a free ride via flex.
   The calc() here IS the final height and the no-JS/reduced-motion resting state; method.js
   overrides it inline while animating and measures it back by clearing that inline height. */
.mm .bars .col .b { width: min(64%, 96px); background: var(--moss); display: block; height: calc(var(--frac) * var(--h)); }
/* transition only on .rvfall (the no-gsap fallback). The scrub writes height every frame from
   scroll progress, and a transition there would lag a step behind his scroll and fight it. */
.mm .bars.rvfall .col .b { transition: height .62s cubic-bezier(.2, .7, .2, 1); }
.mm .bars .axis { height: 1.5px; background: var(--ink); }
.mm .bars .xl { font-family: 'JBMono', monospace; font-size: clamp(10px, 1.05vw, 13px); letter-spacing: .16em; font-weight: 600; color: var(--ink); text-align: center; padding-top: 12px; }
/* THE METHOD FILE */
.mm .mfile { background: var(--card); border: 2px solid var(--ink); box-shadow: 10px 10px 0 rgba(14, 31, 25, .12); }
.mm .mf-bar { display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bone); padding: 11px 16px; font-family: 'JBMono', monospace; font-size: 11px; letter-spacing: .06em; }
.mm .mf-bar .dots { display: flex; gap: 6px; } .mm .mf-bar .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mm .mf-bar .path b { color: #7FE0BF; font-weight: 600; } .mm .mf-bar .meta { margin-left: auto; opacity: .55; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.mm .mf-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; background: #fbfbf8; }
.mm .mf-tabs::-webkit-scrollbar { display: none; }
.mm .mf-tab { font-family: 'JBMono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); padding: 14px 18px; cursor: pointer; white-space: nowrap; border: 0; background: transparent; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.mm .mf-tab:hover { color: var(--ink); }
.mm .mf-tab.on { color: var(--ink); border-bottom-color: var(--red); font-weight: 600; }
.mm .mf-tab.base.on { border-bottom-color: var(--ink); }
.mm .mf-body { padding: clamp(22px, 3vw, 40px) clamp(20px, 3.2vw, 50px); min-height: 340px; }
.mm .mf-lead { font-family: 'JBMono', monospace; font-size: 11px; letter-spacing: .05em; color: var(--grey); margin-bottom: 22px; line-height: 1.7; }
.mm .mf-lead b { color: var(--ink); }
.mm .mf-inherit { padding: 16px 0 6px; border-top: 1px solid var(--line); margin-bottom: 8px; }
.mm .mf-inherit .g { font-family: 'JBMono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--moss); font-weight: 600; }
.mm .mf-inherit .chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.mm .mf-inherit .chip { font-family: 'JBMono', monospace; font-size: 10px; letter-spacing: .04em; color: var(--grey); border: 1px solid var(--line); border-radius: 2px; padding: 4px 9px; background: #fbfbf8; }
.mm .mf-grp { margin-bottom: 26px; } .mm .mf-grp:last-child { margin-bottom: 0; }
.mm .mf-gh { font-family: 'JBMono', monospace; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); margin-bottom: 12px; }
.mm .rule { padding: 11px 0 11px 20px; border-top: 1px solid var(--line); position: relative; }
.mm .rule .mk { position: absolute; left: 0; top: 13px; font-family: 'JBMono', monospace; font-size: 12px; font-weight: 600; line-height: 1; }
.mm .rule .t { font-family: 'Sentient', serif; font-size: 1.03rem; line-height: 1.5; color: var(--ink); }
.mm .rule.base .mk { color: var(--ink); } .mm .rule.base .mk::before { content: '\00a7'; }
.mm .rule.spec .mk { color: var(--red); } .mm .rule.spec .mk::before { content: '+'; }
/* v11 (2026-07-15, his call): the site-copy gloss was deleted - the verbatim CLAUDE.md
   line IS the rule now, so it renders as the primary line. Mono is the file's own
   material, so it labels itself as quoted; no "in the file" tag needed. */
.mm .rule.spec .t .vb { display: block; font-family: 'JBMono', monospace; font-size: .95rem; color: var(--ink); padding-left: 12px; border-left: 2px solid var(--moss); line-height: 1.62; }
.mm .rule.spec .t .vb b { font-weight: 600; }
@media (max-width: 820px) {
  .mm .ratio { gap: 14px; } .mm .ratio .op svg { width: 52px; }
  .mm .mf-body { padding: 22px 16px; }
  .mm .rule .t { font-size: .97rem; }
  .mm .rule.spec .t .vb { font-size: .8rem; padding-left: 10px; }
  .mm .mf-tabs { flex-wrap: wrap; overflow-x: visible; }
  .mm .mf-tab { padding: 12px 14px; }
}

/* ===== v10 case rework: traces, reasons rail, fork story, rot plates (2026-07-14) ===== */
/* the ~72ch reading measure (Q2 pick A) - scoped to case pages so the homepage .prose is untouched */
.case .prose { max-width: 72ch; }
.case .shero .one { max-width: 72ch; }
.m72 { max-width: 72ch; }

/* ---- 03 UNDER THE HOOD : trigger tabs + boot-line trace ---- */
.tr-intro { max-width: 72ch; font-family: 'Sentient', serif; font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.4; color: var(--grey); margin-bottom: 30px; }
.tr-intro b { color: var(--ink); font-weight: 500; }
.tr-tabs { display: flex; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; background: #fbfbf8; }
.tr-tabs::-webkit-scrollbar { display: none; }
.tr-tab { font-family: 'JBMono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey);
  padding: 15px 20px; cursor: pointer; white-space: nowrap; border: 0; background: transparent; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s; display: flex; align-items: center; gap: 9px; }
.tr-tab .tn { font-size: 9.5px; color: var(--grey); opacity: .7; }
.tr-tab:hover { color: var(--ink); }
.tr-tab.on { color: var(--ink); border-bottom-color: var(--red); font-weight: 600; }
.tr-tab.on .tn { color: var(--red); opacity: 1; }
.tr-panel { padding: 34px 2px 8px; }
.tr-panel[hidden] { display: none; }

.tbeat { display: grid; grid-template-columns: 38px minmax(0, 60ch) 1fr auto; gap: 0 16px; align-items: start;
  padding: 15px 0; border-top: 1px solid var(--line);
  opacity: 0; transform: translateX(-8px); transition: opacity .32s ease, transform .32s cubic-bezier(.2,.7,.2,1); }
.tbeat:first-child { border-top: 0; }
.tbeat.on { opacity: 1; transform: none; }
.tbeat .no { font-family: 'JBMono', monospace; font-size: 12px; color: var(--grey); padding-top: 4px; }
.tbeat .no.cno { color: var(--red); font-weight: 600; }
.tbeat .tb-txt { font-family: 'Sentient', serif; font-size: 1.06rem; line-height: 1.52; color: var(--ink); }
.tbeat.clever .tb-txt { font-weight: 500; color: var(--ink); }
.tbeat .tb-txt .cb { display: block; font-family: 'JBMono', monospace; font-size: 9.5px; letter-spacing: .16em; color: var(--red); font-weight: 600; margin-bottom: 6px; }
.tbeat .tb-lead { align-self: start; margin-top: 13px; height: 1px; border-bottom: 1px dotted rgba(85,97,90,.5);
  clip-path: inset(0 100% 0 0); transition: clip-path .5s cubic-bezier(.2,.7,.2,1) .06s; }
.tbeat.on .tb-lead { clip-path: inset(0 0 0 0); }
.tbeat .tb-chip { justify-self: end; align-self: start; margin-top: 5px; font-family: 'JBMono', monospace; font-size: 10.5px;
  letter-spacing: .03em; color: var(--grey); background: #fbfbf8; border: 1px solid var(--line); border-radius: 2px;
  padding: 6px 11px; white-space: nowrap; opacity: 0; transform: translateY(-3px);
  transition: opacity .32s ease .34s, transform .32s ease .34s; }
.tbeat.on .tb-chip { opacity: 1; transform: none; }
.tbeat.clever .tb-chip { border-color: #e7b9bb; color: var(--red); background: #fdf1f1; }
.tfact { max-width: 74ch; margin-top: 26px; padding-left: 16px; border-left: 2px solid var(--moss);
  font-family: 'Sentient', serif; font-size: 1.02rem; line-height: 1.55; color: var(--grey); }
.tfact b { color: var(--ink); font-weight: 500; }

/* ---- 04 WHY NOT ONE PROMPT ---- */
.hood04 { display: grid; grid-template-columns: minmax(0, 72ch) 1fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.reasons { list-style: none; display: grid; gap: 26px; counter-reset: r; max-width: 72ch; }
.reasons li { position: relative; padding-left: 52px; counter-increment: r;
  font-family: 'Sentient', serif; font-size: clamp(1.05rem, 1.55vw, 1.28rem); line-height: 1.55; color: var(--grey); }
.reasons li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 3px;
  font-family: 'JBMono', monospace; font-size: 13px; font-weight: 600; color: var(--red); }
.reasons li b { color: var(--ink); font-weight: 600; }
.hood04 .rail { position: sticky; top: 80px; }
.railcard { border: 1px solid var(--line); background: var(--card); padding: 18px 20px; }
.railcard .rh { font-family: 'JBMono', monospace; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); margin-bottom: 16px; }
.gate { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.gate:first-of-type { border-top: 0; }
.gate .gn { font-family: 'Khand', sans-serif; font-weight: 700; font-size: 2.4rem; line-height: .8; color: var(--ink); font-variant-numeric: tabular-nums; }
.gate .gl { font-family: 'JBMono', monospace; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); line-height: 1.5; }
.gate .gl b { color: var(--ink); }

/* ---- 05 THE FORK : told story (Q3 pick A) ---- */
.forkstory { border: 2px solid var(--ink); background: var(--card); box-shadow: 10px 10px 0 rgba(14,31,25,.10); }
.fs-setup { padding: 22px 24px; border-bottom: 1px solid var(--line); font-family: 'Sentient', serif; color: var(--grey);
  max-width: 78ch; line-height: 1.55; }
.fs-setup b { color: var(--ink); font-weight: 500; }
.fs-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fs-card { padding: 24px 26px; min-width: 0; }
.fs-card.ai { background: #f2f3ef; border-right: 1px solid var(--line); }
.fs-card.me { background: var(--card); border-left: 3px solid var(--red); }
.fs-card .lbl { font-family: 'JBMono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.fs-card.ai .lbl { color: var(--grey); }
.fs-card.me .lbl { color: var(--red); font-weight: 600; }
/* verbatim quotes can carry a long unbreakable URL (teacher-os) - let it wrap, never overflow */
.fs-card .q { font-family: 'JBMono', monospace; font-size: 12.5px; line-height: 1.75; color: var(--ink); overflow-wrap: anywhere; }
/* liveweek fork: ai_text is NARRATIVE, not the model's words - serif italic, never quote-framed */
.fs-card .fs-narr { font-family: 'Sentient', serif; font-style: italic; font-size: 1.05rem; line-height: 1.55; color: var(--grey); overflow-wrap: anywhere; }
.fs-proof { padding: 20px 26px; border-top: 1px solid var(--line); }
.fs-proof p { font-family: 'Sentient', serif; font-style: italic; color: var(--moss); font-size: 1.05rem; line-height: 1.5; max-width: 82ch; }
.fs-proof p b { font-style: normal; color: var(--moss); font-weight: 600; }
.fs-prov { padding: 0 26px 22px; font-family: 'JBMono', monospace; font-size: 10px; letter-spacing: .1em; color: var(--grey); text-transform: uppercase; }
/* 44ch, not 24ch: the case column measures ~44.5ch, so the takeaway now fills it instead of
   stacking 4-6 lines tall (his 2026-07-16 note - takeaways run 56-144 chars) */
.fs-take { margin-top: 5vh; font-family: 'Sentient', serif; font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.2; color: var(--ink); max-width: 44ch; }

/* the harness chips (facts moved here from old 03) */
.fchips { display: flex; flex-wrap: wrap; gap: 10px 8px; margin-top: 6vh; align-items: center; }
.fchips .hc { font-family: 'JBMono', monospace; font-size: 10.5px; letter-spacing: .05em; color: var(--grey);
  border: 1px solid var(--line); border-radius: 2px; padding: 8px 12px; background: #fbfbf8; }
.fchips .hc b { color: var(--ink); font-weight: 600; }
.fchips .hnote { font-family: 'JBMono', monospace; font-size: 10px; letter-spacing: .1em; color: var(--grey); text-transform: uppercase; margin-left: 4px; }

/* ---- 02 rotating plate ---- */
.rotwrap { display: grid; grid-template-columns: 1fr minmax(300px, 380px); gap: clamp(28px, 4vw, 60px); align-items: center; margin-top: 6vh; }
/* keep the stats on one clean line beside a portrait/square plate (no 2+1 orphan); land wraps naturally */
.rotwrap:not(.land) .stats { gap: clamp(20px, 3vw, 44px); flex-wrap: nowrap; }
.rotwrap .stat b { font-size: clamp(2.1rem, 3.2vw, 3.3rem); }
.rotcol .rotplate { position: relative; border: 2px solid var(--ink); background: var(--card); overflow: hidden;
  aspect-ratio: 62/100; box-shadow: 8px 8px 0 rgba(14,31,25,.10); }
.rotplate.square { aspect-ratio: 1/1; }
.rotplate.land { aspect-ratio: 16/10.4; }
.rotwrap.land { grid-template-columns: minmax(0, 640px) 1fr; }
.rotplate .rf { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  opacity: 0; transition: opacity .5s ease; filter: contrast(1.02) saturate(.94); }
.rotplate .rf.on { opacity: 1; }
.rdots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.rdot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .3s; }
.rdot.on { background: var(--red); }
.rotcol .pcap { text-align: center; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .hood04 { grid-template-columns: 1fr; gap: 34px; }
  .hood04 .rail { position: static; }
  .rotwrap, .rotwrap.land { grid-template-columns: 1fr; }
  .rotcol { max-width: 360px; margin: 0 auto; }
  .rotwrap:not(.land) .stats { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .fs-cards { grid-template-columns: minmax(0, 1fr); }
  .fs-card.ai { border-right: 0; border-bottom: 1px solid var(--line); }
  .tr-tab { padding: 12px 14px; }
}
@media (max-width: 640px) {
  /* tabs stay a horizontally scrollable strip on mobile; beats drop leaders + show chips under text */
  .tbeat { grid-template-columns: 30px 1fr; gap: 6px 12px; }
  .tbeat .tb-lead { display: none; }
  .tbeat .tb-chip { grid-column: 2; justify-self: start; margin-top: 8px; opacity: 1; transform: none; transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tbeat { opacity: 1 !important; transform: none !important; }
  .tbeat .tb-lead { clip-path: inset(0 0 0 0) !important; }
  .tbeat .tb-chip { opacity: 1 !important; transform: none !important; }
  .rotplate .rf { transition: none; }
  /* rhythm bars sit at their FINAL height - no scrub, no grow, no count. method.js returns
     before wiring any of it, so the CSS calc() height and the rendered numbers ARE the
     finished chart; there is nothing to undo here. */
  .mm .bars .col .b { transition: none !important; }
}


/* THE FLEET v13 - live clock (kept from v11) + replay affordance */
.mm .ms-clock { font-family: 'JBMono', monospace; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin: 16px 0 0; }
.mm .ms-clock b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.mm .ms-clock .cmp { color: var(--red); }
.mm .fleetline { cursor: pointer; }

/* THE METHOD FILE v14 - the re-cat bar + the sliding underline (his pick C, 2026-07-17) */
.mm .mf-bar .path .mf-cmd b { color: #7FE0BF; font-weight: 600; }
.mm .mf-caret { display: none; width: 7px; height: 1.05em; background: var(--red); vertical-align: -2px; margin-left: 3px; }
.mm .mf-caret.blink { display: inline-block; animation: mmblink 1s steps(1) infinite; }
.mm .mf-tabs { position: relative; }
.mm .mf-underline { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--red); pointer-events: none; }
/* the shared underline replaces the per-tab border - keep the tab's own border transparent */
.mm .mf-tab.on { border-bottom-color: transparent; }
.mm .mf-tab.base.on { border-bottom-color: transparent; }

@media (max-width: 720px) {
  .mm .ms-clock { white-space: normal; line-height: 1.7; }
  .mm .ms-instr { word-break: break-word; min-height: 3.4em; }
}

/* ===== v11 UNDER THE HOOD: the flow stage (2026-07-17, his GO on Option A) =====
   Component contract lives in flows.js + build.py uh_ch03. Node semantics reuse the
   site's own grammar: grey card = the model (.fs-card.ai), red left bar = the human
   (.fs-card.me), dashed = a check, moss = public/live, red = THE CLEVER BIT,
   grey = a dead-end. No infinite motion (taste law). */
.dg { margin-top: 26px; }
.dg-stage { position: relative; background: var(--card); border: 1px solid var(--line);
  padding: clamp(8px, 1.4vw, 18px) clamp(8px, 1.4vw, 18px) 0;
  background-image: radial-gradient(rgba(14,31,25,.05) 1px, transparent 1.2px);
  background-size: 22px 22px; }
.dg-stage .crop { position: absolute; width: 10px; height: 10px; border: 0 solid var(--ink); opacity: .55; z-index: 2; }
.dg-stage .crop.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.dg-stage .crop.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.dg-stage .crop.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.dg-stage .crop.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.dg-svg { display: block; width: 100%; height: auto; }
.dg-bar { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); margin-top: 6px;
  padding: 9px 2px; font-family: 'JBMono', monospace; font-size: 9.5px; letter-spacing: .08em; color: var(--grey);
  text-transform: uppercase; background: var(--card); position: relative; z-index: 1; }
.dg-bar .lg { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.dg-bar .sw { width: 11px; height: 11px; display: inline-block; border: 1px solid var(--ink); background: var(--card); }
.dg-bar .sw.model { background: #f2f3ef; }
.dg-bar .sw.human { border-left: 3px solid var(--red); }
.dg-bar .sw.gate { border-style: dashed; }
.dg-bar .sw.clever { border-color: var(--red); background: #fdf1f1; }
.dg-bar .right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.dg-bar .ct { font-variant-numeric: tabular-nums; letter-spacing: .14em; }
.dg-replay { font-family: 'JBMono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey); background: transparent; border: 0; cursor: pointer; padding: 14px 4px; margin: -14px 0;
  transition: color .15s; }
.dg-replay:hover { color: var(--red); }

.dg .nd { opacity: .16; transition: opacity .4s ease; cursor: default; }
.dg .nd .shadow { fill: rgba(14,31,25,.12); opacity: 0; transition: opacity .35s ease; }
.dg .nd.on { opacity: 1; }
.dg .nd.on .shadow { opacity: 1; }
.dg .nd.dim60 { opacity: .6; }
.dg .nd .body { fill: var(--card); stroke: var(--ink); stroke-width: 1.5; }
.dg .nd text { font-family: 'JBMono', monospace; fill: var(--ink); }
.dg .nd .lbl { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; }
.dg .nd .sub { font-size: 9.5px; fill: var(--grey); letter-spacing: .03em; }
.dg .nd.k-entry .body { fill: var(--ink); }
.dg .nd.k-entry .lbl { fill: var(--bone); }
.dg .nd.k-entry .sub { fill: rgba(241,242,237,.62); }
.dg .nd.k-model .body { fill: #f2f3ef; }
.dg .nd.k-gate .body { stroke-dasharray: 5 3.5; }
.dg .nd.k-store .db { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.dg .nd.k-output .body { stroke: var(--moss); }
.dg .nd.k-output .lbl { fill: var(--moss); }
.dg .nd.k-human .hbar { fill: var(--red); }
.dg .nd.k-clever .body { stroke: var(--red); stroke-width: 1.75; fill: #fdf1f1; }
.dg .nd.k-clever .lbl { fill: var(--red); }
.dg .nd.k-dead .body { stroke: var(--grey); stroke-dasharray: 0; }
.dg .nd.k-dead .lbl { fill: var(--grey); }
.dg .nd.k-dead .shadow { display: none; }
.dg .flagG { opacity: 0; transform-origin: center; transform: scale(.6);
  transition: opacity .3s ease, transform .35s cubic-bezier(.34,1.56,.64,1); }
.dg .flagG.on { opacity: 1; transform: scale(1); }
.dg .flagG .fbg { fill: var(--red); }
.dg .flagG text { font-family: 'JBMono', monospace; font-size: 8px; font-weight: 600; letter-spacing: .14em; fill: var(--bone); }

.dg .ed { transition: opacity .35s ease; }
.dg .ed .guide { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-dasharray: 3 5; opacity: .16; }
.dg .ed .main { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.dg .ed .arr { fill: var(--ink); stroke: none; opacity: 0; transition: opacity .25s ease; }
.dg .ed.lit .arr { opacity: 1; }
.dg .ed text { font-family: 'JBMono', monospace; font-size: 9.5px; letter-spacing: .1em; }
.dg .ed .elbl { fill: var(--grey); opacity: 0; transition: opacity .3s ease; }
.dg .ed.lit .elbl { opacity: 1; }
.dg .ed.k-yes .elbl { fill: var(--moss); font-weight: 600; }
.dg .ed.k-no .elbl, .dg .ed.k-reject .elbl { fill: var(--red); font-weight: 600; }
.dg .ed.alt .main { stroke-dasharray: 4 4; stroke: var(--grey); opacity: 0; transition: opacity .45s ease; }
.dg .ed.alt .arr { fill: var(--grey); }
.dg .ed.alt.lit .main { opacity: .85; }
.dg .ed.alt .guide { display: none; }

/* mobile portrait: fonts boosted to compensate the ~0.77 viewBox scale (his call:
   the small text must stay readable on a phone) */
.dg .dg-svg.portrait .lbl { font-size: 14px; }
.dg .dg-svg.portrait .sub { font-size: 11px; }
.dg .dg-svg.portrait .ed text { font-size: 11px; }
.dg .dg-svg.portrait .flagG text { font-size: 9.5px; }

.dg-svg.focus .nd:not(.spot) { opacity: .14; }
.dg-svg.focus .ed:not(.spot) { opacity: .18; }
@keyframes dgCleverPulse { 0%, 100% { stroke-width: 1.75; } 50% { stroke-width: 3.4; } }
.dg .nd.pulse .body { animation: dgCleverPulse .8s cubic-bezier(.2,.7,.2,1) 2; }
.dg .pkt { fill: var(--ink); }

.dg-steps { margin-top: 18px; border-top: 1px solid var(--line); }
.dstep { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 0 14px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--line); opacity: .26; transition: opacity .35s ease; }
.dstep.on { opacity: 1; }
.dstep .no { font-family: 'JBMono', monospace; font-size: 11px; color: var(--grey); }
.dstep.active .no { color: var(--red); font-weight: 600; }
.dstep.clever .no { color: var(--red); font-weight: 600; }
.dstep .t { font-family: 'Sentient', serif; font-size: 1.03rem; line-height: 1.5; color: var(--grey); }
.dstep.active .t, .dstep.clever.on .t { color: var(--ink); }
.dstep.clever .t { font-weight: 500; }
.dstep .cb { font-family: 'JBMono', monospace; font-size: 9px; letter-spacing: .14em; color: var(--red); font-weight: 600; white-space: nowrap; }
.dg-note { margin-top: 14px; font-family: 'JBMono', monospace; font-size: 9.5px; letter-spacing: .12em; color: var(--grey); text-transform: uppercase; }

@media (max-width: 760px) {
  .dstep { grid-template-columns: 28px 1fr; }
  .dstep .cb { grid-column: 2; }
  .dg-bar .lg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dg .nd, .dg .ed .main, .dg .ed .arr, .dg .ed .elbl, .dstep { opacity: 1 !important; transition: none !important; }
  .dg .ed.alt .main { opacity: .85 !important; }
  .dg .nd .shadow { opacity: 1 !important; }
  .dg .flagG { opacity: 1 !important; transform: none !important; }
  .dg .pkt { display: none; }
  .dg-replay { display: none; }
}

/* the ledger is the voiceover (his call, 2026-07-17): diagram = what, rows = why */
.dg-whyk { margin-top: 20px; font-family: 'JBMono', monospace; font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--grey); }
.dg-whyk + .dg-steps { margin-top: 8px; }


/* ===== LET'S DIRECT AI TOGETHER - the docked beat (2026-07-17, his pick A from
   demos/direct-ai-cta.html). Full-bleed ink band, red top rule (the receipts material).
   The dock re-declares the situation-room palette on its own scope - never inherit the
   light :root (the .ir leak lesson). FIXED-HEIGHT law (his note on the demo): .dctx is
   height-locked so the window cannot grow while it boots; the question line and the
   button occupy their final space from the start and only fade in. ===================== */
.dabeat { padding: 6vh 0 0; }
.daband { --w: #16181D; --wbar: #1C1F26; --wln: #2A2D35; --wln2: #3A3F4B; --wtx: #C9CDD6; --wbr: #E6E9EF;
          --wdim: #7C818D; --wft: #5C616D; --wmoss: #58C99F; --wpur: #9A7FE8;
          background: var(--ink); color: var(--bone); border-top: 3px solid var(--red);
          padding: 9vh 4vw 10vh; }
.dagrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); max-width: 1400px; margin: 0 auto; align-items: center; }
.dak { font-family: 'JBMono', monospace; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #8BE0C9; }
.dak .dsig { margin-right: 8px; }
.daband h3 { font-family: 'Khand', sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: .9; word-spacing: .06em; margin-top: 18px; }
.dasub { font-family: 'Sentient', serif; font-style: italic; font-size: clamp(1.05rem, 1.7vw, 1.4rem); color: rgba(241, 242, 237, .72); margin-top: 20px; max-width: 34ch; line-height: 1.5; }
.dameta { font-family: 'JBMono', monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(241, 242, 237, .5); margin-top: 26px; }
.daband .dock { background: var(--w); border: 1px solid var(--wln); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(26px);
  transition: opacity .5s cubic-bezier(.2, .7, .2, 1), transform .5s cubic-bezier(.2, .7, .2, 1); }
.daband .dock.on { opacity: 1; transform: none; }
.daband .dbar { display: flex; align-items: center; gap: 14px; background: var(--wbar); border-bottom: 1px solid var(--wln); padding: 10px 16px; font-family: 'JBMono', monospace; font-size: 10.5px; letter-spacing: .1em; color: var(--wdim); text-transform: uppercase; }
.daband .dts { display: flex; gap: 6px; } .daband .dts i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.daband .dfk { display: flex; gap: 7px; padding: 13px 16px 0; flex-wrap: wrap; min-height: 24px; }
.daband .dfkc { font-family: 'JBMono', monospace; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--wdim); border: 1px solid var(--wln); border-radius: 3px; padding: 4px 8px; opacity: 0; transform: translateY(4px); transition: opacity .3s cubic-bezier(.2, .7, .2, 1), transform .3s cubic-bezier(.2, .7, .2, 1); }
.daband .dfkc.on { opacity: 1; transform: none; }
.daband .dfkc.hot { color: var(--wbr); border-color: var(--wln2); background: var(--wbar); }
.daband .dbody { padding: 16px 18px 20px; font-family: 'JBMono', monospace; }
.daband .dctx { font-size: 12px; line-height: 1.85; color: var(--wtx); height: calc(1.85em * 3); overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.daband .dctx b { color: var(--wbr); }
.daband .dq { font-size: clamp(13px, 1.5vw, 15.5px); color: var(--wbr); font-weight: 600; margin-top: 16px; line-height: 1.7; min-height: 1.7em; opacity: 0; transform: translateY(6px); transition: opacity .35s cubic-bezier(.2, .7, .2, 1), transform .35s cubic-bezier(.2, .7, .2, 1); }
.daband .dq.on { opacity: 1; transform: none; }
.daband .dq .qm { color: var(--wpur); margin-right: 8px; }
.daband .dgo { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; font-family: 'JBMono', monospace; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink); background: #8BE0C9; border: 0; cursor: pointer; border-radius: 999px; padding: 12px 22px; opacity: 0; transform: translateY(6px); transition: opacity .35s cubic-bezier(.2, .7, .2, 1), transform .35s cubic-bezier(.2, .7, .2, 1), background .2s; }
.daband .dgo.on { opacity: 1; transform: none; }
.daband .dgo:hover { background: var(--bone); }
.daband .dgo:hover .ar { transform: translateX(4px); }
.daband .dgo .ar { display: inline-block; transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
@media (max-width: 900px) {
  .dagrid { grid-template-columns: 1fr; }
  .dasub { max-width: none; }
  .daband .dctx { height: calc(1.85em * 5); -webkit-line-clamp: 5; }
}
@media (prefers-reduced-motion: reduce) {
  .daband .dock, .daband .dfkc, .daband .dq, .daband .dgo { transition: none; }
}

/* ===== THE COMPOSER (2026-07-17, his pick A from demos/contact-form.html; his notes:
   full width, hidden by default, revealed on the site's motion grammar). A light mail
   window on the plate signature - 2px ink border, hard offset shadow, neutral dots (the
   colored traffic lights are dark-terminal material; .bframe uses neutral on light).
   Reveal = grid-rows unfold + plate rise; rows cascade via transition-delay; the focused
   row draws a 2px ink underline (emphasis is a hairline that draws). ================== */
.composer { display: grid; grid-template-rows: 0fr; visibility: hidden; scroll-margin-top: 76px;
  transition: grid-template-rows .6s cubic-bezier(.2, .7, .2, 1), visibility 0s .6s; }
.composer.open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .6s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.cm-clip { overflow: hidden; min-height: 0; }
.cm-plate { background: var(--card); border: 2px solid var(--ink); box-shadow: 10px 10px 0 rgba(14, 31, 25, .12);
  margin: 5vh 10px 14px 0; opacity: 0; transform: translateY(14px);
  transition: opacity .45s cubic-bezier(.2, .7, .2, 1) .15s, transform .45s cubic-bezier(.2, .7, .2, 1) .15s; }
.composer.open .cm-plate { opacity: 1; transform: none; }
.cm-bar { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--ink); padding: 11px 16px;
  font-family: 'JBMono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.cm-dots { display: flex; gap: 6px; } .cm-dots i { width: 10px; height: 10px; border-radius: 50%; background: #D9DED7; display: block; }
.cm-bar .cm-t { font-weight: 600; }
.cm-bar .cm-r { margin-left: auto; color: var(--grey); font-size: 10px; }
.composer form { padding: 6px clamp(16px, 2.4vw, 34px) clamp(18px, 2.4vw, 28px); }
.cm-row { position: relative; display: grid; grid-template-columns: 130px 1fr auto; align-items: baseline; gap: 14px;
  padding: 15px 0 13px; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(8px); transition: opacity .35s cubic-bezier(.2, .7, .2, 1), transform .35s cubic-bezier(.2, .7, .2, 1); }
.composer.open .cm-row { opacity: 1; transform: none; }
.composer.open .cm-row:nth-child(1) { transition-delay: .28s; }
.composer.open .cm-row:nth-child(2) { transition-delay: .36s; }
.composer.open .cm-row:nth-child(3) { transition-delay: .44s; }
.composer.open .cm-row:nth-child(4) { transition-delay: .52s; }
.cm-row::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.cm-row:focus-within::after { transform: scaleX(1); }
.cm-row.bad::after { transform: scaleX(1); background: var(--red); }
.cm-row label { font-family: 'JBMono', monospace; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.cm-row .cm-to { font-family: 'JBMono', monospace; font-size: 13.5px; color: var(--ink); font-weight: 600; }
.cm-row .cm-lock { font-family: 'JBMono', monospace; font-size: 9px; letter-spacing: .12em; color: var(--grey); border: 1px solid var(--line); border-radius: 2px; padding: 3px 7px; }
.cm-row input, .cm-row textarea { grid-column: 2 / 4; border: 0; background: none; outline: none; width: 100%;
  font-family: 'Sentient', Georgia, serif; font-size: 1.05rem; color: var(--ink); padding: 0; resize: vertical; }
.cm-row input::placeholder, .cm-row textarea::placeholder { color: #A6ADA6; font-style: italic; }
.cm-row.ta { align-items: start; }
.cm-row.ta label { padding-top: 4px; }
.cm-foot { display: flex; align-items: center; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.cm-alt { font-family: 'JBMono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.cm-alt a { color: var(--moss); border-bottom: 1.5px solid var(--moss); padding-bottom: 2px; }
.cm-alt a:hover { color: var(--red); border-color: var(--red); }
.cm-state { font-family: 'JBMono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-top: 16px; min-height: 1.6em; color: var(--grey); }
.cm-state.ok { color: var(--moss); font-weight: 600; }
.cm-state.err { color: var(--red); }
@media (max-width: 640px) {
  .cm-row { grid-template-columns: 1fr; gap: 6px; padding: 13px 0 12px; }
  .cm-row input, .cm-row textarea { grid-column: 1; }
  .cm-row .cm-lock { position: absolute; right: 0; top: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .composer, .composer .cm-plate, .composer .cm-row, .cm-row::after { transition: none; }
}

/* Homepage compositions */

  #veil { position: fixed; inset: 0; z-index: 90; background: var(--bone); display: grid; place-items: center; clip-path: inset(0% 0% 0% 0%); }
  #veil .line { font-family: 'JBMono', monospace; font-size: clamp(14px, 2vw, 19px); letter-spacing: .14em; color: var(--ink); text-transform: uppercase; }
  #veil .line .c { color: var(--red); }

  /* CH 01 - OPERATOR */
  .hero { min-height: 88vh; min-height: 88svh; padding: 14vh 4vw 0; position: relative; display: flex; flex-direction: column; }
  .hero .names { position: relative; z-index: 3; }
  .hero h1 { font-family: 'Khand', sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(3.6rem, 13.2vw, 13rem); line-height: .84; word-spacing: .08em; }
  .hero h1 .row { display: block; overflow: hidden; }
  .hero h1 .row > span { display: inline-block; transform: translateY(112%); }
  .hero .fig { position: absolute; right: 6vw; bottom: -34px; z-index: 4; height: min(54vh, 520px); margin: 0; cursor: pointer; }
  .hero .fig .faces { position: relative; height: 100%; filter: grayscale(1) contrast(1.12) brightness(1.03);
    transition: filter .45s ease, transform .35s cubic-bezier(.2,.7,.2,1); clip-path: inset(0% 0% 100% 0%); }
  .hero .fig:hover .faces, .hero .fig.alive .faces { filter: none; transform: translateY(-4px); }
  .hero .fig .face { display: block; height: 100%; width: auto; opacity: 0; transition: opacity .45s ease; position: relative; }
  .hero .fig .face ~ .face { position: absolute; left: 0; top: 0; }
  /* swap = EXIT then RISE IN, strictly sequenced (his rule: the two photos are never
     on screen together). The outgoing face exits alone, fast: */
  .hero .fig .face.exit { opacity: 0 !important; transition: opacity .12s ease; }
  /* a face only becomes visible once its pixels have actually arrived (.ld),
     so a slow network fades the photo in instead of popping it */
  .hero .fig .face.on.ld { opacity: 1; }
  .hero .fig .disc { position: absolute; left: 50%; top: 54%; width: clamp(200px, 24vw, 360px); height: clamp(200px, 24vw, 360px);
    background: var(--red); border-radius: 50%; z-index: -1; transform: translate(-50%,-50%) scale(0); }
  .hero .fig .hi { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); font-family: 'JBMono', monospace;
    font-size: 10px; letter-spacing: .18em; color: var(--grey); text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .3s; }
  .hero .fig:hover .hi { opacity: 1; }
  /* caption swaps in sync with the face (set C): quick blink out, new text fades in */
  .hero .fig .hi.blink { opacity: 0 !important; transition: opacity .12s ease; }
  /* the "· TAP ME" hint lives only on the default face; drop it once cycling (mobile) */
  .hero .fig .hi.hidetap .taphint { display: none; }
  .tstart { position: absolute; left: 4vw; bottom: 7vh; display: flex; flex-direction: column; gap: 18px; z-index: 3; max-width: min(660px, 48vw); }
  .tstart .stem { width: 2px; height: 52px; background: var(--red); transform-origin: top; transform: scaleY(0); }
  .tstart.on .stem { transform: scaleY(1); transition: transform .8s cubic-bezier(.2,.7,.2,1) .4s; }
  .tstart .hsub { font-family: 'Sentient', serif; font-style: italic; font-size: clamp(1.4rem, 2.5vw, 2.05rem); line-height: 1.5;
    color: var(--grey); opacity: 0; transform: translateY(8px); }
  .tstart .hsub b { color: var(--ink); font-weight: 500; }
  .tstart.on .hsub { opacity: 1; transform: none; transition: opacity .5s ease .55s, transform .5s cubic-bezier(.2,.7,.2,1) .55s; }
  .tstart .cl { font-family: 'JBMono', monospace; font-size: 10.5px; letter-spacing: .18em; color: var(--ink); text-transform: uppercase; opacity: 0; }
  .tstart.on .cl { opacity: 1; transition: opacity .4s ease .95s; }
  .tstart .cl b { color: var(--red); }
  .tstart:hover .cl { color: var(--red); }

  /* the photo arrives: decode-gated disc pop + clip/fade rise (static path;
     the GSAP intro path animates these inline, so the transitions live on .st only) */
  .hero .fig .disc.st { transition: transform .55s cubic-bezier(.34,1.56,.64,1); }
  .hero .fig .disc.st.up { transform: translate(-50%,-50%) scale(1); }
  .hero .fig .faces.st { opacity: 0; transition: clip-path .8s cubic-bezier(.2,.7,.2,1), opacity .55s ease,
    filter .45s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
  .hero .fig .faces.st.up { clip-path: inset(0% 0% 0% 0%); opacity: 1; }
  @media (max-width: 900px) {
    .hero { padding-top: 17vh; }
    .hero h1 { font-size: clamp(3.4rem, 19vw, 8rem); }
    .hero .fig { position: relative; right: 0; bottom: 0; align-self: flex-end; height: min(34vh, 320px); margin-top: 1vh; }
    .hero .fig .hi { opacity: 1; bottom: -24px; }
    .tstart { position: relative; left: 0; bottom: 0; margin-top: 5vh; padding-bottom: 5vh; max-width: 90vw; }
  }

  /* CH 02 - THE CORRECTION (the one pinned scrub) */
  .corrwrap { position: relative; }
  .corrk { display: flex; align-items: center; gap: 10px; margin: 0 4vw; padding: 26px 0 12px; border-top: 1.5px solid var(--ink);
    font-family: 'JBMono', monospace; font-size: 11px; letter-spacing: .2em; color: var(--ink); text-transform: uppercase; }
  .corr { min-height: 78vh; padding: 6vh 4vw 6vh; max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; }
  .corr .rail { font-family: 'JBMono', monospace; font-size: clamp(15px, 1.7vw, 20px); letter-spacing: .05em; color: var(--ink); min-height: 1.6em; }
  .corr .rail .ps { color: var(--moss); margin-right: 12px; }
  .corr .rail .cursor { display: inline-block; width: .55em; height: 1.05em; background: var(--red); vertical-align: -2px; animation: tblink 1.1s steps(1) infinite; }
  .corr .dead { margin-top: 3vh; max-width: 54ch; color: var(--grey); font-size: 1rem; line-height: 1.7; opacity: 0; transition: opacity .3s; }
  .corr .dead.struck .dl { text-decoration: line-through; text-decoration-color: rgba(85,97,90,.65); }
  .corr .dead .deadcap { display: block; margin-top: 10px; font-family: 'JBMono', monospace; font-size: 9.5px; letter-spacing: .18em; color: var(--grey); text-transform: uppercase; text-decoration: none; }
  .corr .ctx { margin-top: 3.5vh; max-width: 620px; font-family: 'JBMono', monospace; font-size: clamp(12px, 1.3vw, 14px); letter-spacing: .04em; }
  /* the context gauge on the rail - what the sources load INTO */
  .corr .cmeter { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-family: 'JBMono', monospace; font-size: 10px;
    letter-spacing: .16em; color: var(--grey); text-transform: uppercase; opacity: 0; transition: opacity .3s ease; }
  .corr .cmeter.on { opacity: 1; }
  .corr .cmeter .cl { display: grid; }
  .corr .cmeter .cl > span { grid-area: 1/1; white-space: nowrap; transition: opacity .25s ease; }
  .corr .cmeter .cl .l2 { color: var(--moss); opacity: 0; }
  .corr .cmeter.rdy .cl .l1 { opacity: 0; }
  .corr .cmeter.rdy .cl .l2 { opacity: 1; }
  .corr .cmeter .segs { display: grid; grid-template-columns: repeat(6, 26px); gap: 4px; }
  .corr .cmeter .segs i { height: 2px; background: var(--line); transition: background .25s ease; }
  .corr .cmeter .segs i.on { background: var(--moss); }
  .corr .cmeter .cn { font-variant-numeric: tabular-nums; }
  .corr .cmeter.rdy .cn { color: var(--moss); }
  /* boot-leader mount rows: pending READING resolves to a moss ok */
  .corr .cxk { font-family: 'JBMono', monospace; font-size: 10px; letter-spacing: .18em; color: var(--grey); text-transform: uppercase;
    padding-bottom: 9px; border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .3s ease; }
  .corr .cxk.on { opacity: 1; }
  .corr .cx { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink);
    opacity: 0; transform: translateX(-8px); transition: opacity .25s ease, transform .25s cubic-bezier(.2,.7,.2,1); }
  .corr .cx b { color: var(--grey); transition: color .2s ease; }
  .corr .cx.ok b { color: var(--moss); }
  .corr .cx.on { opacity: 1; transform: none; }
  .corr .cx .lead { flex: 1; align-self: center; height: 1px; margin: 0 2px; border-bottom: 1px dotted rgba(85,97,90,.55);
    clip-path: inset(0 100% 0 0); transition: clip-path .4s cubic-bezier(.2,.7,.2,1); }
  .corr .cx.on .lead { clip-path: inset(0 0 0 0); }
  .corr .cx .st { display: grid; }
  .corr .cx .st > span { grid-area: 1/1; white-space: nowrap; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
    padding-left: 12px; text-align: right; }
  .corr .cx .pend { color: var(--grey); opacity: 0; }
  .corr .cx.on:not(.ok) .pend { opacity: 1; }
  .corr .cx .pend::after { content: ''; display: inline-block; width: 6px; height: 9px; background: var(--grey); margin-left: 7px;
    animation: tblink 1.1s steps(1) infinite; }
  .corr .cx .done { color: var(--grey); opacity: 0; transition: opacity .2s ease; }
  .corr .cx.ok .done { opacity: 1; }
  .corr .cx.ok .pend { opacity: 0; }
  .corr .cx .done .okm { font-weight: 600; color: var(--moss); margin-right: 10px; text-transform: none; }
  .corr .cxdone { margin-top: 10px; font-family: 'JBMono', monospace; font-size: 10px; letter-spacing: .18em; color: var(--moss);
    text-transform: uppercase; opacity: 0; transition: opacity .3s ease; }
  .corr .cxdone.on { opacity: 1; }
  .corr .ccap { margin-top: 4vh; font-size: clamp(1.25rem, 2.4vw, 1.9rem); transition: opacity .45s ease; max-width: 32ch; line-height: 1.3; }
  .corr .ccap .no { color: var(--grey); }
  .corr .ccap em { font-style: italic; color: var(--moss); }
  .corr .ccap b { font-weight: 500; }
  @media (max-width: 800px) {
    .corr { min-height: 0; padding: 10vh 4vw 4vh; }
  }
  @media (max-width: 640px) {
    /* long paths + fact labels cannot share a line - status wraps under, boot-log style */
    .corr .cx { flex-wrap: wrap; row-gap: 2px; }
    .corr .cx .lead { display: none; }
    .corr .cx .st { margin-left: auto; }
  }

  /* receipts strip */
  .proof { border-top: 3px solid var(--red); padding: 9vh 4vw 0; position: relative; }
  /* the ink stat slab is the section's own closing plate (one chapter, not two sections) */
  .proof .band { margin: 6vh -4vw 0; }
  .proof .bridge { font-family: 'Sentient', serif; font-style: italic; color: var(--grey); font-size: 1.05rem; margin-top: 10px; }
  .proof .k { color: var(--ink); }
  .proof .agg { margin-top: 4vh; }
  .proof .agg .n { font-family: 'Khand', sans-serif; font-weight: 700; font-size: clamp(2.8rem, 7.5vw, 6rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
  .proof .agg .lbl { font-family: 'JBMono', monospace; font-size: 11px; letter-spacing: .18em; color: var(--grey); text-transform: uppercase; margin-left: 14px; }
  .proof .agg .math { display: block; font-family: 'JBMono', monospace; font-size: clamp(11px, 1.4vw, 14px); letter-spacing: .1em; color: var(--grey); margin-top: 10px; }
  .proof ul { list-style: none; margin-top: 3.5vh; display: grid; gap: 2.4vh; }
  .proof li { font-size: clamp(1.35rem, 2.8vw, 2.3rem); line-height: 1.25; max-width: 34ch; }
  .proof li b { font-weight: 500; }
  .proof li .n { font-family: 'Khand', sans-serif; font-weight: 700; color: var(--ink); }
  .proof .all { display: inline-block; margin-top: 4vh; font-family: 'JBMono', monospace; font-size: 12px; letter-spacing: .16em; color: var(--moss); border-bottom: 1.5px solid var(--moss); padding-bottom: 3px; }
  .proof .all:hover { color: var(--red); border-color: var(--red); }

  /* --- scoreboard variant (his 2026-07-12 pick): the whole receipts section is ONE
        dark band - dominant reach number + a single even 4-stat strip. No addition
        line under the number (his call); the breakdown lives in the .src footnote. --- */
  .proof.sb { background: var(--ink); color: var(--bone); padding: 9vh 4vw 10vh; }
  .proof.sb .k { color: #8BE0C9; }
  .proof.sb .agg { margin-top: 5vh; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
  .proof.sb .agg .n { color: var(--bone); font-size: clamp(3.4rem, 10vw, 8rem); line-height: .85; }
  .proof.sb .agg .lbl { color: rgba(241,242,237,.6); letter-spacing: .2em; margin-left: 0; }
  .proof.sb .aggsub { margin-top: 16px; font-family: 'JBMono', monospace; font-size: clamp(11px, 1.3vw, 13px); letter-spacing: .12em; text-transform: uppercase; color: rgba(241,242,237,.5); }
  .proof.sb .band { background: transparent; margin: 6vh 0 0; padding: 0; }
  .proof.sb .band .grid { grid-template-columns: repeat(4, 1fr); gap: 0; max-width: none; margin: 0; padding: 0; border-top: 1px solid rgba(241,242,237,.18); }
  .proof.sb .band .stat { padding: 26px 22px 0; border-right: 1px solid rgba(241,242,237,.14); }
  .proof.sb .band .stat:last-child { border-right: 0; padding-right: 0; }
  .proof.sb .band .stat b { font-size: clamp(2rem, 4vw, 3.4rem); line-height: .9; }
  .proof.sb .band .stat .rule { display: none; }
  .proof.sb .band .stat span { display: block; margin-top: 10px; font-size: 10px; letter-spacing: .14em; color: rgba(241,242,237,.55); line-height: 1.6; }
  .proof.sb .band .stat .math { margin-top: 2px; letter-spacing: .1em; }
  .proof.sb .band .src { text-align: left; margin-top: 6vh; padding: 0; color: rgba(241,242,237,.42); letter-spacing: .1em; }
  .proof.sb .all { color: #8BE0C9; border-color: #8BE0C9; margin-top: 6vh; }
  .proof.sb .all:hover { color: var(--red); border-color: var(--red); }
  @media (max-width: 760px) {
    .proof.sb .band .grid { grid-template-columns: 1fr 1fr; }
    .proof.sb .band .stat { border-bottom: 1px solid rgba(241,242,237,.14); padding: 22px 18px 20px; }
    .proof.sb .band .stat:nth-child(2n) { border-right: 0; }
    .proof.sb .band .stat:last-child { padding-right: 18px; }
  }

  /* CH 03 - systems index */
  .work { padding: 6vh 4vw 4vh; }
  .work-head { display: flex; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
  .work-head h2 { font-family: 'Khand', sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: .9; word-spacing: .08em; }
  .work-head .c { margin-left: auto; font-size: 11px; letter-spacing: .16em; color: var(--grey); font-family: 'JBMono', monospace; text-transform: uppercase; }
  .work .aside { margin-top: 3vh; }
  .wrow { position: relative; display: grid; grid-template-columns: 74px 1fr auto; gap: 18px; align-items: baseline;
    padding: 3.2vh 6px; border-bottom: 1px solid var(--line); }
  .wrow .no { font-family: 'JBMono', monospace; font-size: 12px; color: var(--grey); transition: color .2s; }
  .wrow .t { font-family: 'Khand', sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(1.9rem, 5vw, 4rem); line-height: .9; word-spacing: .08em;
    transition: transform .3s cubic-bezier(.2,.7,.2,1), color .25s; }
  .wrow .what { display: block; font-family: 'Sentient', serif; font-size: .98rem; color: var(--grey); margin-top: 6px; text-transform: none; font-weight: 400; }
  .wrow:hover .no { color: var(--red); }
  .wrow:hover .t { transform: translateX(8px); color: var(--moss); }
  .wrow .m { font-size: 11px; letter-spacing: .14em; color: var(--grey); text-align: right; text-transform: uppercase; font-family: 'JBMono', monospace; }
  .wrow .m b { display: block; color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
  @media (max-width: 700px) { .wrow { grid-template-columns: 44px 1fr; } .wrow .m { grid-column: 2; text-align: left; margin-top: 4px; } }

  .trow { cursor: pointer; }
  .trow .tgl { font-size: 14px; color: var(--grey); transition: transform .3s, color .2s; justify-self: end; }
  .trow.open .tgl { transform: rotate(45deg); color: var(--red); }
  .trow:hover .tgl { color: var(--red); }
  .tdetail { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.2,.7,.2,1); border-bottom: 0 solid var(--line); }
  .tdetail.open { border-bottom: 1px solid var(--line); }
  /* .hoverhint / .taphint now live in style.css (global - case pages need them too) */
  .tenmore { margin-top: 8vh; }
  .tenmore .th { display: flex; align-items: baseline; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
  .tenmore .th h3 { font-family: 'Khand', sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.6rem); word-spacing: .08em; }
  .tenmore .th .c { margin-left: auto; font-size: 10.5px; letter-spacing: .16em; color: var(--grey); font-family: 'JBMono', monospace; text-transform: uppercase; }
  .trow { display: grid; grid-template-columns: 220px 1fr auto 20px; gap: 14px; padding: 14px 6px; border-bottom: 1px solid var(--line);
    font-family: 'JBMono', monospace; font-size: 12px; letter-spacing: .06em; align-items: baseline; }
  .trow .n { color: var(--ink); font-weight: 600; text-transform: uppercase; }
  .trow .w { color: var(--grey); }
  .trow .r { color: var(--ink); text-align: right; text-transform: uppercase; font-size: 11px; }
  .trow a { border-bottom: 1px solid var(--line); }
  .trow a:hover { color: var(--moss); border-color: var(--moss); }
  @media (max-width: 700px) { .trow { grid-template-columns: 1fr auto 20px; } .trow .w { display: none; } }
  @media (max-width: 480px) {
    .trow { grid-template-columns: 1fr 20px; gap: 4px 10px; }
    .trow .n { grid-column: 1; grid-row: 1; }
    .trow .tgl { grid-column: 2; grid-row: 1; }
    .trow .r { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  }

  /* preview card */
  .preview { position: fixed; top: 0; left: 0; z-index: 30; width: 272px; pointer-events: none; opacity: 0; overflow: hidden;
    border: 2px solid var(--ink); background: var(--card); box-shadow: 10px 10px 0 rgba(14,31,25,.16); will-change: transform; }
  .preview .imgs { position: relative; aspect-ratio: 16/10; overflow: hidden; }
  .preview .imgs img, .preview .imgs video, .preview .imgs .pvc { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
    opacity: 0; transition: opacity .2s; }
  .preview .imgs .on { opacity: 1; }
  .preview .chip { font-family: 'JBMono', monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    padding: 8px 12px; border-top: 2px solid var(--ink); background: var(--bone); color: var(--ink); transition: opacity .1s linear; }
  .pvc { display: grid; place-items: center; background: #101D3C; color: var(--bone); font-family: 'Khand', sans-serif; font-weight: 700; font-size: 2.4rem; }

  /* numbers band */
  .band .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 48px 34px; max-width: 1240px; margin: 0 auto; padding: 0 4vw; }
  .band .src { text-align: center; margin-top: 8vh; font-size: 11px; color: rgba(241,242,237,.4); letter-spacing: .14em; font-family: 'JBMono', monospace; text-transform: uppercase; }

  /* consult thread payoff */
  .tend { display: block; width: 2px; height: 46px; background: var(--red); margin-bottom: 18px; }
  .btn.red { background: var(--red); }
  .btn.red:hover { background: var(--ink); }

/* Local identity and component adapters. Geometry above follows the reference. */
[hidden] { display: none !important; }
html { scroll-padding-top: 70px; }
section[id], .composer, .lstack article { scroll-margin-top: 70px; }
.bar nav a.on::after { width: 100%; }
button { color: inherit; }
.hero .fig { width: auto; }
.hero .fig .faces { z-index: 1; }
.hero .fig .face { width: auto; object-fit: contain; }
.hero .fig .disc { z-index: 0; }
.hero .fig .hi { z-index: 2; }
.fleet-replay { margin-top: 16px; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 8px 0; font: 10px 'JBMono', monospace; letter-spacing: .14em; cursor: pointer; }
#flSpine { transition: transform .8s; }
.mm .mf-underline { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--red); transition: transform .3s, width .3s; pointer-events: none; }
.mm .mf-body.diff .rule.base { opacity: .5; }
.mm .mf-add-label { margin: 22px 0 12px; font: 10px 'JBMono', monospace; text-transform: uppercase; letter-spacing: .16em; color: var(--moss); }
.mm .rule.addition .mk { color: var(--moss); }
.jc-sugs { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 18px; }
.jc-sugs button { border: 1px solid #3a3f4b; background: #1c1f26; color: #c9cdd6; border-radius: 4px; padding: 8px 12px; font: 11px 'JBMono', monospace; cursor: pointer; }
.jc-out .memory-query { margin: 16px 0 12px; padding: 12px; color: #c9cdd6; background: #1c1f26; border-left: 2px solid #58c99f; }
.jc-out .memory-answer { color: #c9cdd6; line-height: 1.85; margin-bottom: 20px; white-space: pre-wrap; }
.jc-out .memory-hint { color: #a3a9b2; margin-bottom: 12px; font-size: 11px; }
.daband .dfkc { background: transparent; cursor: pointer; text-align: left; }

.ir .scope-viz { display: flex; gap: 16px; padding: 32px 20px; }
.ir .scope-viz > div { flex: 1; border: 1px solid #3a3f4b; padding: 20px 12px; }
.ir .scope-viz span { font: 9px 'JBMono', monospace; color: #9fa6ae; }
.ir .scope-viz b { display: block; font: 30px 'Khand', sans-serif; color: #ff6b6e; }
.ir .scope-fixed { display: none; }
.ir .resolved .scope-fixed { display: block; }
.ir .resolved .scope-extra { display: none; }
.ir .resolved .scope-fixed b { color: #58c99f; }
.cm-state a { color: var(--moss); border-bottom: 1px solid currentColor; }
.cur { user-select: none; }
@media (max-width: 640px) {
  .bar { gap: 10px; padding-inline: 12px; }
  .bar nav { gap: 12px; min-width: 0; overflow-x: auto; }
  .bar .soc { flex-shrink: 0; gap: 8px; }
  .ticker .slot { min-width: 0; }
  .ticker .txt { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  .cur { display: none; }
}
@view-transition { navigation: auto; }
#casecover.case-cover { position: fixed; inset: 0; width: 100%; height: 100svh; z-index: 80; border: 0; background: var(--ink); color: var(--bone); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.case-locked { overflow: hidden; }
.cover-title { font: 700 clamp(3rem, 11vw, 10rem)/.9 'Khand', sans-serif; text-transform: uppercase; }
.cover-title i { color: var(--red); font-style: normal; }
.cover-note { font: 10px 'JBMono', monospace; letter-spacing: .16em; margin-top: 24px; }
.cover-ticker { position: absolute; bottom: 0; width: 100%; border-top: 1px solid #36473e; display: flex; justify-content: space-between; gap: 20px; padding: 20px 4vw; font: 10px/1.6 'JBMono', monospace; letter-spacing: .1em; }
.case-system { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; }
.trace-tabs { display: flex; border-bottom: 2px solid var(--ink); gap: 8px; margin-top: 32px; }
.trace-tabs button { border: 0; padding: 16px 24px; background: transparent; font: 11px 'JBMono', monospace; cursor: pointer; }
.trace-tabs [aria-selected=true] { background: var(--ink); color: var(--bone); }
.trace-panel { border: 1px solid var(--line); padding: 32px; }
.trace-panel p { color: var(--grey); margin: 24px 0; }
.trace-flow { display: flex; align-items: center; gap: 16px; }
.trace-flow span { flex: 1; padding: 22px 14px; border: 1px solid var(--line); font: 11px 'JBMono', monospace; }
.trace-flow i { color: var(--red); }
.trace-replay { border: 0; background: none; padding: 8px 0; font: 10px 'JBMono', monospace; cursor: pointer; }
.trace-panel.playing .trace-flow span { animation: trace-in .5s both; }
.trace-panel.playing .trace-flow span:nth-of-type(2) { animation-delay: .15s; }
.trace-panel.playing .trace-flow span:nth-of-type(3) { animation-delay: .3s; }
@keyframes trace-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media(max-width:700px) { .case-system { grid-template-columns:1fr; } .trace-flow { flex-direction:column; align-items:stretch; } .trace-flow i { transform:rotate(90deg); align-self:center; } .cover-ticker { flex-direction:column; } .cover-title { overflow-wrap:anywhere; } }
/* Content-length tolerance: keep the stem below the shorter local name. */
@media (min-width: 901px) {
  .hero .tstart { position: relative; left: 0; bottom: auto; margin-top: 28px; padding-bottom: 7vh; }
}

/* Set entry colours explicitly before Safari starts transitions. */
a.wrow { color: var(--ink); }
.case .shero .rv { opacity: 1; transform: none; }

/* Completed-project content and clearly labelled media slots. */
.wrow { grid-template-columns: 64px minmax(0,1fr) minmax(160px,240px); }
.wrow .t { overflow-wrap: anywhere; font-size: clamp(1.9rem,4.1vw,3.8rem); }
.wrow .m b { font-size: 11px; line-height: 1.7; }
.wrow .what { line-height: 1.55; }
.trow .n { overflow-wrap: anywhere; }
.preview .imgs img { object-fit: contain; background: #E8EBE4; }
.asset-slot { border: 1px solid var(--line); background: #E8EBE4; margin: 0; min-width: 0; }
.asset-inner { min-height: 260px; aspect-ratio: 16/9; padding: clamp(20px,4vw,54px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.asset-symbol { color: var(--red); font: 38px 'Khand', sans-serif; }
.asset-inner strong { max-width: 32ch; font: 600 clamp(1.7rem,3vw,2.9rem)/1.15 'Khand', sans-serif; text-transform: uppercase; }
.asset-note, .asset-slot figcaption { font: 10px/1.7 'JBMono', monospace; color: var(--grey); }
.asset-slot figcaption { border-top: 1px solid var(--line); padding: 12px 20px; }
.case-demo { padding-top: 2vh; }
.case-back { display: inline-block; margin-top: 24px; color: var(--moss); font: 11px/1.7 'JBMono', monospace; border-bottom: 1px solid currentColor; }
.feature-list, .decision-list { margin: 24px 0 36px; padding-left: 22px; }
.feature-list li, .decision-list li { margin: 14px 0; }
.stack-line { margin-top: 32px; font: 11px/2 'JBMono', monospace; color: var(--grey); }
.stack-line b { display: block; color: var(--ink); }
.case .shero h1 { overflow-wrap: anywhere; max-width: 15ch; font-size: clamp(3rem,9vw,8.5rem); }
.cover-title { max-width: 16ch; text-align: center; padding: 0 20px; overflow-wrap: anywhere; }
.cover-note { text-align: center; padding: 0 20px; }
.nextsys .n { overflow-wrap: anywhere; }
.system-paths { margin-top: 6vh; }
.system-paths article { border-top: 1px solid var(--line); padding: 32px 0 48px; }
.system-paths h3 { font: 700 clamp(2rem,4vw,3.8rem)/1 'Khand',sans-serif; text-transform: uppercase; margin: 16px 0; }
.system-paths p { max-width: 64ch; color: var(--grey); margin-bottom: 28px; }
.system-paths .trace-flow { max-width: 860px; }
@media (max-width: 900px) { .wrow { grid-template-columns: 48px minmax(0,1fr); } .wrow .m { grid-column: 2; text-align: left; } }
@media (max-width: 700px) { .asset-inner { aspect-ratio: auto; min-height: 230px; } .trace-tabs button { padding: 14px 18px; } .trace-panel { padding: 22px; } .system-paths .trace-flow span { width: 100%; } }
