/* ============ 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; }
.lead-xl { font-size: clamp(1.7rem, 3.8vw, 3.2rem); line-height: 1.18; letter-spacing: -.01em; word-spacing: .14em; max-width: 30ch; }
.lead-xl .em { font-style: italic; color: var(--moss); }

.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; }
.fm-stats { display: flex; gap: 30px 5vw; flex-wrap: wrap; margin-top: 4vh; }
@media (max-width: 560px) { .fm-stats { flex-direction: column; gap: 26px; } }

/* 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 .muster { 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; } }
.mm .ms-stage { position: relative; border-top: 1px solid var(--line); }
.mm .ms-field { width: 100%; height: auto; display: block; overflow: visible; }
.mm .ms-field .mk { transform-box: fill-box; transform-origin: center; }
.mm .ms-field .seed { fill: var(--red); }
.mm .ms-anno { position: absolute; right: 8px; top: 16px; text-align: right; max-width: 22ch; opacity: 0; transition: opacity .6s; }
.mm .ms-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 .ms-anno span { font-family: 'JBMono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); display: block; margin-top: 8px; }
.mm .ms-anno.on { opacity: 1; }
.mm .ms-legend { position: absolute; left: 0; bottom: 6px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transition: opacity .6s .4s; background: rgba(241, 242, 237, .9); padding: 9px 12px 9px 4px; border-radius: 3px; }
.mm .ms-legend.on { opacity: 1; }
.mm .ms-legend .lk { display: flex; align-items: center; gap: 8px; font-family: 'JBMono', monospace; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); font-weight: 600; }
.mm .ms-legend .lk b { color: var(--red); font-weight: 600; }
.mm .ms-legend .lk i { display: inline-block; flex: none; background: var(--ink); }
.mm .ms-legend .g-opus { width: 11px; height: 11px; border-radius: 50%; }
.mm .ms-legend .g-sonnet { width: 10px; height: 7px; }
.mm .ms-legend .g-haiku { width: 12px; height: 2px; }
.mm .ms-crop { position: absolute; width: 10px; height: 10px; border: 1px solid var(--grey); opacity: .35; }
.mm .ms-crop.tl { left: 0; top: 0; border-right: 0; border-bottom: 0; } .mm .ms-crop.tr { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.mm .ms-crop.bl { left: 0; bottom: 0; border-right: 0; border-top: 0; } .mm .ms-crop.br { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.ms-tag { position: fixed; z-index: 80; background: var(--ink); color: var(--bone); font-family: 'JBMono', monospace; font-size: 10px; letter-spacing: .05em; padding: 5px 9px; border-radius: 3px; pointer-events: none; opacity: 0; transform: translate(-50%, -130%); transition: opacity .1s; white-space: nowrap; text-transform: uppercase; }
.ms-tag.on { opacity: 1; } .ms-tag b { color: #7FE0BF; }
/* 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; }
.mm .bars { --h: clamp(150px, 21vw, 250px); display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: auto 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; }
/* scaleY (not height) so the bar grows without reflowing the number parked above it.
   NO transition by default: the scrub path (method.js) writes transform every frame from scroll
   progress, and a transition would lag one step behind his scroll and fight it. The transition
   exists ONLY on .rvfall - the no-gsap fallback, which fires once on enter with an 80ms stagger. */
.mm .bars .col .b { width: min(64%, 96px); background: var(--moss); display: block; transform: scaleY(0); transform-origin: 50% 100%; }
.mm .bars.rvfall .col .b { transition: transform .62s cubic-bezier(.2, .7, .2, 1); }
.mm .bars.rvfall.grown .col .b { transform: scaleY(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; }
.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: 24ch; }

/* 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 render at their FINAL height - no scrub, no grow, no stagger.
     method.js returns before wiring any of it and renders the numbers final. */
  .mm .bars .col .b { transform: scaleY(1) !important; transition: none !important; }
}


/* THE FLEET v11 (2026-07-16) - phase ledger, live clock, in-field phase label.
   The ledger is the practical spine of the beat: it names the real phases of the real run in order
   and lights the one in flight. Spacing here is deliberate and he called it twice - do not tighten. */
.mm .ms-ledger { display: flex; align-items: center; gap: 14px 0; flex-wrap: wrap; margin: 26px 0 26px; min-height: 20px; }
.mm .ph { font-family: 'JBMono', monospace; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--line); display: flex; align-items: center; transition: color .3s cubic-bezier(.2,.7,.2,1); }
.mm .ph .pn { color: inherit; }
.mm .ph .pc { opacity: .75; margin-left: 8px; }
.mm .ph.seen { color: var(--grey); } .mm .ph.seen .pc { color: var(--grey); }
.mm .ph.live { color: var(--ink); font-weight: 600; } .mm .ph.live .pc { color: var(--red); }
.mm .ms-ledger .arw { color: var(--line); margin: 0 28px; }
.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 .ms-field .fl { fill: none; stroke: var(--ink); stroke-width: 1; }
.mm .ms-field .plab { font-family: 'JBMono', monospace; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; fill: var(--grey); transition: opacity .3s cubic-bezier(.2,.7,.2,1); }
.mm .ms-field .plab.live { fill: var(--ink); font-weight: 600; }
.mm .ms-stage { cursor: crosshair; }

@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; }
  .mm .ph { font-size: 9px; letter-spacing: .12em; } .mm .ms-ledger .arw { margin: 0 14px; }
  .mm .ms-ledger { margin: 18px 0 16px; }
}
