/* ==========================================================================
   VBW v3 — "The Proof Machine"
   Technical-editorial layer on top of styles.css + home.css.
   Blueprint grid, mono annotation, figures, signature canvases.
   ========================================================================== */

:root {
  --void: #0a0d14;
  --void-2: #0e121b;
  --rule: rgba(221, 227, 234, 0.08);
  --rule-2: rgba(221, 227, 234, 0.14);
  --rule-3: rgba(221, 227, 234, 0.24);
  --dim: #8a94a6;
  --dim-2: #aab3c3;
  --frame: 1240px;
}

html { background: var(--void); }
body.v3 { background: var(--void); color: var(--paper); }

/* Audience switch: plain words for vibe coders, specifics for engineers */
html[data-aud="vibe"] .e,
html[data-aud="eng"] .v { display: none !important; }

/* --------------------------------------------------------------------------
   Background: blueprint grid + cursor spotlight
   -------------------------------------------------------------------------- */

.bp {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--void);
}
.bp::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: calc(50% + 36px) 0;
  opacity: .45;
}
.bp .glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 900px;
  height: 900px;
  transform: translate3d(calc(50vw - 450px), -450px, 0);   /* resting place; fx.js moves it with the pointer */
  background: radial-gradient(circle, rgba(27, 154, 160, .07), transparent 60%);
  will-change: transform;
}
/* The teal grid revealed under the cursor: ONE 520px layer, so a pointer move repaints a small square, not the viewport */
.bp .spot {
  position: absolute;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  background-image:
    linear-gradient(rgba(60, 193, 199, .28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 193, 199, .28) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent 70%);
  mask-image: radial-gradient(closest-side, #000, transparent 70%);
  opacity: 0;
  will-change: transform;
  transition: opacity var(--dur-base) var(--ease);
}
.bp .spot.on { opacity: 1; }

/* Scroll progress hairline */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
}

/* Side rails */
.rail-l, .rail-r {
  position: fixed;
  top: 50%;
  z-index: 30;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(138, 148, 166, .55);
  writing-mode: vertical-rl;
  white-space: nowrap;
  pointer-events: none;
}
.rail-l { left: 18px; transform: translateY(-50%) rotate(180deg); }
.rail-r { right: 18px; transform: translateY(-50%); }
.rail-r b { color: var(--teal-bright); font-weight: 500; }
@media (max-width: 1320px) { .rail-l, .rail-r { display: none; } }

/* --------------------------------------------------------------------------
   Frame + sections
   -------------------------------------------------------------------------- */

.frame {
  position: relative;
  max-width: var(--frame);
  margin: 0 auto;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.sec {
  position: relative;
  border-top: 1px solid var(--rule);
  padding: clamp(80px, 10vw, 136px) clamp(20px, 4vw, 56px);
}
/* crosshair marks on the frame corners */
.sec::before,
.sec::after {
  content: "+";
  position: absolute;
  top: -11px;
  font-family: var(--f-mono);
  font-size: 15px;
  line-height: 20px;
  color: var(--rule-3);
}
.sec::before { left: -5px; }
.sec::after { right: -5px; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 56px);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}
.sec-head .tag { color: var(--teal-bright); }
.sec-head .tag b { color: var(--paper); font-weight: 500; margin-right: 10px; }
.sec-head .tail { color: rgba(138, 148, 166, .5); }

.h-xl {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(46px, 6.6vw, 104px);
  line-height: .94;
  letter-spacing: -0.052em;
  margin: 0;
}
.h-l {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(36px, 4.8vw, 68px);
  line-height: .98;
  letter-spacing: -0.045em;
  margin: 0;
}
.h-m {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
}
.t-teal { color: var(--teal-bright); }
.t-dim { color: var(--dim); }
.prose { font-size: 18px; line-height: 1.6; color: var(--dim-2); max-width: 58ch; margin: 0; }
.prose strong, .prose b { color: var(--paper); font-weight: 600; }
.prose + .prose { margin-top: 14px; }

.mono-lbl {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Punchline — deadpan, set like a caption */
.deadpan {
  margin-top: 28px;
  display: block;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--paper);
  max-width: 40ch;
}
.deadpan::before {
  content: "//";
  margin-right: 12px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--c, var(--teal-bright));
}
.deadpan em { font-style: normal; color: var(--c, var(--teal-bright)); }

/* --------------------------------------------------------------------------
   Nav v3
   -------------------------------------------------------------------------- */

.announce {
  position: relative;
  z-index: 51;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 9px 16px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--dim-2);
  border-bottom: 1px solid var(--rule);
  background: #080b11;
}
.announce b { color: var(--teal-bright); font-weight: 500; }
.announce a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--rule-3); text-underline-offset: 3px; }
.announce a:hover { text-decoration-color: var(--teal-bright); }

.nav.v3nav { position: sticky; top: 0; background: rgba(10, 13, 20, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
.nav.v3nav.is-scrolled { background: rgba(10, 13, 20, .92); }
.nav.v3nav .container { max-width: var(--frame); }
.keys { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.keys a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--dim-2);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.keys a:hover { color: var(--paper); background: rgba(255, 255, 255, .04); }
.keys kbd {
  font-family: var(--f-mono);
  font-size: 10.5px;
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  border: 1px solid var(--rule-2);
  color: var(--dim);
  background: rgba(255, 255, 255, .02);
}
.star-btn {
  display: inline-flex;
  align-items: stretch;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--rule-2);
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--paper);
  transition: border-color var(--dur-fast);
}
.star-btn:hover { border-color: var(--rule-3); }
.star-btn span { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; }
.star-btn svg { width: 15px; height: 15px; }
.star-btn .n { border-left: 1px solid var(--rule-2); font-family: var(--f-mono); font-size: 12.5px; color: var(--teal-bright); background: rgba(27, 154, 160, .08); }
.star-btn .n:empty { display: none; }
@media (max-width: 1100px) { .keys { display: none; } }
@media (max-width: 520px) { .star-btn .lbl { display: none; } .announce .long { display: none; } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero3 { padding-top: clamp(48px, 6vw, 80px); padding-bottom: 0; border-top: 0; }
.hero3::before, .hero3::after { display: none; }
.hero3-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.hero3 .eyebrow3 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 30px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero3 .eyebrow3 b { color: var(--teal-bright); font-weight: 500; }
.hero3 h1 { margin-bottom: 34px; font-size: clamp(42px, 5vw, 72px); }
.hero3 h1 .l2 { display: block; color: var(--teal-bright); }

/* Audience switch */
.aud {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.aud .q { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.seg {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--rule-2);
  background: rgba(255, 255, 255, .02);
}
.seg button {
  position: relative;
  z-index: 1;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border: 0;
  background: none;
  color: var(--dim-2);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-fast);
}
.seg button[aria-pressed="true"] { color: var(--void); }
.seg .thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 9px;
  background: var(--teal-bright);
  box-shadow: 0 0 24px rgba(60, 193, 199, .35);
  transition: transform var(--dur-base) var(--ease);
}
html[data-aud="eng"] .seg .thumb { transform: translateX(100%); }

.hero3 .prose { font-size: 18.5px; margin-bottom: 30px; min-height: 5.2em; }
.hero3-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.hero3-cta .star-btn { height: 48px; border-radius: 999px; }
.hero3-cta .star-btn span { padding: 0 18px; }

.inst {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  padding: 5px 5px 5px 16px;
  border-radius: 12px;
  border: 1px solid var(--rule-2);
  background: rgba(0, 0, 0, .3);
  font-family: var(--f-mono);
  font-size: 13px;
}
.inst code { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--paper); }
.inst code .p { color: var(--teal-bright); }
.inst .copy-btn { flex: 0 0 auto; }
.inst-note { margin-top: 10px; font-family: var(--f-mono); font-size: 11.5px; color: var(--dim); }
.inst-note a { color: var(--dim-2); text-decoration: underline; text-decoration-color: var(--rule-3); text-underline-offset: 3px; }

/* ASCII Lincoln */
.fig0 { position: relative; }
.fig0 canvas { display: block; width: 100%; height: auto; cursor: crosshair; }
.fig0 .cap {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--dim);
  text-transform: uppercase;
}
.fig0 .cap b { color: var(--paper); font-weight: 500; }
.fig0 .joke { margin-top: 10px; font-family: var(--f-head); font-size: 15.5px; color: var(--dim-2); letter-spacing: -0.01em; }
.fig0 .joke em { font-style: normal; color: var(--paper); }
.anno {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim-2);
  white-space: nowrap;
  pointer-events: none;
}
.anno::before {
  content: "";
  position: absolute;
  top: 50%;
  width: var(--len, 60px);
  height: 1px;
  background: var(--rule-3);
}
.anno.l { right: calc(100% - var(--x)); top: var(--y); padding-right: calc(var(--len, 60px) + 8px); }
.anno.l::before { right: 0; }
.anno.r { left: var(--x); top: var(--y); padding-left: calc(var(--len, 60px) + 8px); }
.anno.r::before { left: 0; }
.anno i { position: absolute; top: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 10px var(--teal-bright); }
.anno.l i { right: -3px; }
.anno.r i { left: -3px; }

/* Spec strip */
.spec {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--rule);
  margin-left: calc(-1 * clamp(20px, 4vw, 56px));
  margin-right: calc(-1 * clamp(20px, 4vw, 56px));
}
.spec > div {
  padding: 18px clamp(16px, 2vw, 24px) 22px;
  border-right: 1px solid var(--rule);
  font-family: var(--f-mono);
}
.spec > div:last-child { border-right: 0; }
.spec .k { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.spec .val { font-size: 13.5px; color: var(--paper); }
.spec .val b { color: var(--teal-bright); font-weight: 500; }

/* --------------------------------------------------------------------------
   §01 The lie
   -------------------------------------------------------------------------- */

.lie3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px) clamp(20px, 2.4vw, 32px); }
.lie3-head { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: end; margin-bottom: 12px; }
.lie3-head .h-xl { font-size: clamp(56px, 9vw, 140px); }
.lie3-head .h-xl span { color: var(--dim); }
.lie3 .cc { --h: 300px; }
.lbl-bad, .lbl-good { margin-bottom: 12px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.lbl-bad { color: #ff8a8d; }
.lbl-good { color: var(--teal-bright); }
.lie3 .cap { margin-top: 14px; font-size: 15px; color: var(--dim-2); }
.lie3 .cap b { color: var(--paper); }

/* --------------------------------------------------------------------------
   §02 Signal from noise
   -------------------------------------------------------------------------- */

.sig-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.scope {
  position: relative;
  border: 1px solid var(--rule-2);
  border-radius: 16px;
  background:
    linear-gradient(var(--rule) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, var(--rule) 1px, transparent 1px) 0 0 / 10% 100%,
    #070a10;
  overflow: hidden;
}
.scope canvas { display: block; width: 100%; height: auto; }
.scope .bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--dim);
  text-transform: uppercase;
  background: rgba(0, 0, 0, .25);
}
.scope .bar b { color: var(--paper); font-weight: 500; }
.scope .bar .pass { color: var(--s-done); }
.scope .bar .fail { color: var(--s-fail); }
.sig-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.sig-specs div { padding: 16px 18px; border-right: 1px solid var(--rule); }
.sig-specs div:last-child { border-right: 0; }
.sig-specs b { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-bright); font-weight: 500; margin-bottom: 6px; }
.sig-specs span { font-size: 14.5px; color: var(--dim-2); }

/* --------------------------------------------------------------------------
   §03 Pinned story
   -------------------------------------------------------------------------- */

.story3 { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 4vw, 64px); }
.story3-pin {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  align-self: start;
}
.story3-pin .cc { --h: min(520px, calc(100vh - 300px)); }
.story3-pin .now {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}
.story3-pin .now b { color: var(--teal-bright); font-weight: 500; }
.dots { display: flex; gap: 6px; }
.dots i { width: 22px; height: 3px; border-radius: 2px; background: var(--rule-2); transition: background var(--dur-base); }
.dots i.on { background: var(--teal-bright); }
.dots i.done { background: rgba(60, 193, 199, .4); }

.chap {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
  opacity: .3;
  transition: opacity var(--dur-slow) var(--ease);
}
.chap.on { opacity: 1; }
.chap:first-child { padding-top: 0; }
.chap .n {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c, var(--teal-bright));
}
.chap .n::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--c, var(--teal-bright)); box-shadow: 0 0 14px var(--c, var(--teal-bright)); }
.chap .h-m { margin-bottom: 18px; }
.chap .prose { font-size: 16.5px; }

/* --------------------------------------------------------------------------
   §04 Seal (instrument variant)
   -------------------------------------------------------------------------- */

.v3 .seal { margin-top: 0; background: var(--void-2); border-color: var(--rule-2); }
.v3 .seal-left { border-color: var(--rule); }

/* --------------------------------------------------------------------------
   §05 Mission Control
   -------------------------------------------------------------------------- */

.mc3-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 40px; }
.v3 .mcx-note { background: var(--void-2); border-color: var(--rule); }

/* --------------------------------------------------------------------------
   §06 Shipped (paper band)
   -------------------------------------------------------------------------- */

.paper-band { background: var(--paper); color: var(--ink); }
.paper-band .sec-head { color: var(--slate); }
.paper-band .sec-head .tag { color: var(--teal-deep); }
.paper-band .sec-head .tag b { color: var(--ink); }
.paper-band .prose { color: #4a5468; }
.paper-band .prose strong { color: var(--ink); }
.paper-band .deadpan { color: var(--ink); }
.paper-band .sec::before, .paper-band .sec::after { color: #b9c2ce; }
.paper-band .frame { border-color: #e2e7ee; }
.paper-band .sec { border-top-color: #e2e7ee; }
.ship3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.net { margin-top: 32px; padding: 18px 18px 14px; border: 1px solid var(--rule-2); border-radius: 16px; background: #070a10; }
.net-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.net-head .st { color: var(--paper); }
.net-head b { color: #6fe0a5; font-weight: 500; }
.net-grid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 5px; }
.net-grid i { aspect-ratio: 1; border-radius: 3px; background: rgba(255, 255, 255, .05); transition: background var(--dur-base), transform var(--dur-base); }
.net-grid i.p { background: var(--green); }
.net-grid i.r { background: var(--teal-bright); transform: scale(.78); box-shadow: 0 0 10px rgba(60, 193, 199, .6); }
.net-grid i.f { background: var(--red); transform: scale(1.18); box-shadow: 0 0 14px rgba(229, 72, 77, .8); }
.net-log { display: flex; align-items: center; gap: 10px; margin-top: 14px; min-height: 20px; font-family: var(--f-mono); font-size: 12px; color: var(--dim-2); }
.net-log i { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); transition: background var(--dur-base); }
.net-log[data-k="change"] i { background: var(--teal-bright); box-shadow: 0 0 8px var(--teal-bright); }
.net-log[data-k="fail"] i { background: var(--red); box-shadow: 0 0 8px var(--red); }
.net-log[data-k="fail"] span { color: #ff8a8d; }
.net-log[data-k="fix"] i { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.net-log[data-k="pass"] i { background: var(--green); box-shadow: 0 0 8px var(--green); }
.net-log[data-k="pass"] span { color: #6fe0a5; }
.wrapped { border: 1px solid var(--rule-2); }

/* --------------------------------------------------------------------------
   §07 Under the hood
   -------------------------------------------------------------------------- */

.hood-plain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.hood-plain div { background: var(--void); padding: 26px; }
.hood-plain h4 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 8px; color: var(--paper); }
.hood-plain p { margin: 0; font-size: 15px; color: var(--dim-2); }
.hood-plain .ic { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--teal-bright); margin-bottom: 14px; display: block; }
.v3 .compare { border-color: var(--rule-2); }
.v3 .threats { border-color: var(--rule); }
.v3 .note { background: var(--void-2); border-color: var(--rule); }

/* --------------------------------------------------------------------------
   §08 Open source
   -------------------------------------------------------------------------- */

.oss { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.repo {
  border: 1px solid var(--rule-2);
  border-radius: 18px;
  background: var(--void-2);
  overflow: hidden;
}
.repo-top { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--rule); }
.repo-top svg { width: 20px; height: 20px; color: var(--dim-2); }
.repo-top .name { font-family: var(--f-mono); font-size: 14px; color: var(--dim-2); }
.repo-top .name b { color: var(--paper); font-weight: 500; }
.repo-top .pub { margin-left: auto; font-size: 11px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--rule-2); color: var(--dim); }
.repo-body { padding: 20px 22px; }
.repo-body p { margin: 0 0 18px; color: var(--dim-2); font-size: 15px; }
.repo-stats { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--f-mono); font-size: 12.5px; color: var(--dim); }
.repo-stats b { color: var(--paper); font-weight: 500; }
.repo-stats .lang::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #89e051; margin-right: 7px; }
.repo-links { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.repo-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 22px;
  font-size: 14px;
  color: var(--dim-2);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.repo-links a:nth-child(2n) { border-right: 0; }
.repo-links a:hover { background: rgba(255, 255, 255, .03); color: var(--paper); }
.repo-links a span { font-family: var(--f-mono); font-size: 12px; color: var(--teal-bright); }
.tree3 {
  margin: 0;
  padding: 22px 24px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: #070a10;
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--dim-2);
  overflow-x: auto;
}
.tree3 .d { color: var(--teal-bright); }
.tree3 .c { color: rgba(138, 148, 166, .7); }
.tree3 .k { color: var(--paper); }

/* --------------------------------------------------------------------------
   §09 Install + FAQ
   -------------------------------------------------------------------------- */

.v3 .steps2 > li { background: var(--void-2); border-color: var(--rule); }
.v3 .steps2 h4 { color: var(--paper); }
.v3 .steps2 p { color: var(--dim-2); }
.v3 .tip { background: rgba(27, 154, 160, .1); color: var(--teal-bright); }
.v3 .codebox { background: #070a10; border: 1px solid var(--rule); }

.faq3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; }
.v3 .faq details { background: var(--void-2); border-color: var(--rule); }
.v3 .faq details[open] { border-color: var(--rule-2); box-shadow: none; }
.v3 .faq summary { color: var(--paper); font-size: 17px; }
.v3 .faq summary::after { background-color: rgba(255, 255, 255, .06); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5F7FA' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
.v3 .faq .ans { color: var(--dim-2); font-size: 15.5px; }

/* --------------------------------------------------------------------------
   Finale
   -------------------------------------------------------------------------- */

.fin3 { text-align: center; padding-top: clamp(112px, 14vw, 200px); padding-bottom: clamp(112px, 14vw, 180px); overflow: hidden; }
.fin3 .giant {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: clamp(40px, 8.4vw, 124px);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 30px;
  text-transform: uppercase;
}
.fin3 .giant .t-teal { display: block; }
.fin3 .prose { margin: 0 auto 36px; text-align: center; }
.fin3 .hero-actions { justify-content: center; }

/* Glyph scramble: keep layout stable while characters resolve */
[data-scramble] { font-variant-ligatures: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero3-grid, .sig-grid, .oss, .ship3, .mc3-head, .lie3-head { grid-template-columns: minmax(0, 1fr); }
  .fig0 { max-width: 620px; margin: 0 auto; }
  .anno { display: none; }
  .spec { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spec > div:nth-child(3) { border-right: 0; }
  .spec > div:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .hood-plain { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .story3 { grid-template-columns: minmax(0, 1fr); }
  .story3-pin { top: calc(var(--nav-h) + 8px); z-index: 5; }
  .story3-pin .cc { --h: 300px; }
  .story3-pin .cc .cc-status { display: none; }
  .chap { min-height: 64vh; padding: 28px 0; }
  .lie3 { grid-template-columns: minmax(0, 1fr); }
  .faq3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec > div { border-right: 1px solid var(--rule) !important; border-top: 1px solid var(--rule); }
  .spec > div:nth-child(2n) { border-right: 0 !important; }
  .sig-specs { grid-template-columns: minmax(0, 1fr); }
  .sig-specs div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .sec-head .tail { display: none; }
  .repo-links { grid-template-columns: minmax(0, 1fr); }
  .repo-links a { border-right: 0; }
  .seg button { padding: 9px 12px; font-size: 13px; }
  .net-grid { grid-template-columns: repeat(16, minmax(0, 1fr)); }
  .net-grid i:nth-child(n+97) { display: none; }
  .frame { border: 0; }
  .sec::before, .sec::after { display: none; }
}

@media (hover: none) { .hover-only { display: none; } }

/* ==========================================================================
   v4 — two versions of one page
   ========================================================================== */

/* Content swap: the newly shown version fades and rises in */
html.swapping[data-aud="vibe"] .v,
html.swapping[data-aud="eng"] .e {
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
  @starting-style { opacity: 0; transform: translateY(4px); filter: blur(2px); }
}
.prose .v, .prose .e { display: inline; }

/* The fork: the hero's primary choice */
.fork { margin: 0 0 30px; max-width: 640px; }
.fork-q {
  display: block;
  margin-bottom: 12px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--dim-2);
}
.fork-q b { color: var(--paper); font-weight: 600; }
.ping { position: relative; display: inline-block; vertical-align: 1px; margin-right: 12px; width: 9px; height: 9px; border-radius: 50%; background: #7584f0; }
.ping::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #7584f0; animation: ping 1.6s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
html[data-chosen] .ping { background: var(--teal-bright); }
html[data-chosen] .ping::after { display: none; }
.fork-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fork-btn {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  text-align: left;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1.5px solid var(--rule-2);
  background: rgba(255, 255, 255, .025);
  color: var(--paper);
  font: inherit;
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast);
}
.fork-btn:hover { border-color: var(--rule-3); background: rgba(255, 255, 255, .045); }
.fork-btn .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--teal-bright);
  background: rgba(27, 154, 160, .1);
  border: 1px solid rgba(60, 193, 199, .25);
}
.fork-btn b { display: block; font-family: var(--f-head); font-size: 18px; letter-spacing: -0.02em; margin-bottom: 3px; }
.fork-btn small { display: block; font-size: 13px; line-height: 1.4; color: var(--dim-2); }
.fork-btn .tick {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--void);
  background: var(--teal-bright);
  opacity: 0;
  transform: scale(.6);
  transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease);
}
.fork-btn[aria-pressed="true"] { border-color: var(--teal-bright); background: rgba(27, 154, 160, .1); box-shadow: 0 0 0 4px rgba(60, 193, 199, .12), 0 20px 40px -20px rgba(60, 193, 199, .5); }
.fork-btn[aria-pressed="true"] .tick { opacity: 1; transform: none; }
.fork-btn[aria-pressed="true"] .ico { background: var(--teal-bright); color: var(--void); }
/* ==========================================================================
   Attention glow: drawn once on a pseudo-element, only its OPACITY animates
   (compositor-only; the old loops animated box-shadow and repainted every frame)
   Per use, set --gl-rgb (and optionally --gl shadow, --gl-dur period).
   ========================================================================== */
.glow-loop { position: relative; }
:is(.glow-loop, html:not([data-chosen]) .fork-btn, html[data-chosen] .fork-btn[aria-pressed="true"], .aud-pill button[aria-pressed="true"])::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: var(--gl, 0 0 0 8px rgba(var(--gl-rgb), .24), 0 0 80px 18px rgba(var(--gl-rgb), .62));
  opacity: .4;
  animation: glowLoop var(--gl-dur, var(--dur-loop)) var(--ease-in-out) infinite;
}
@keyframes glowLoop { 50% { opacity: 1; } }
html:not([data-chosen]) .fork-btn { --gl-rgb: 117, 132, 240; --gl-dur: 2s; }
html:not([data-chosen]) .fork-btn + .fork-btn::after { animation-delay: -1s; }
html[data-chosen] .fork-btn[aria-pressed="true"] { --gl-rgb: 60, 193, 199; }
html[data-chosen] .fork-btn[data-aud-set="eng"][aria-pressed="true"] { --gl-rgb: 117, 132, 240; }
.aud-pill button[aria-pressed="true"] { --gl-rgb: var(--pc-rgb); --gl: 0 0 30px 9px rgba(var(--pc-rgb), .8); --gl-dur: 2.6s; }
.seal-edit .glow-loop { --gl-rgb: 242, 179, 61; --gl: 0 0 0 5px rgba(242, 179, 61, .18), 0 0 40px rgba(242, 179, 61, .35); --gl-dur: 1.6s; border-radius: 12px; }
.seal[data-touched] .seal-edit .glow-loop::after { animation: none; opacity: 0; }

/* Until someone actually chooses, both doors ask — loudly — to be opened */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
html:not([data-chosen]) .fork-btn {
  border-color: transparent;
  background:
    linear-gradient(#141821, #141821) padding-box,
    conic-gradient(from var(--ang), rgba(117,132,240,.18), #7584f0 12%, #c3caff 18%, #7584f0 24%, rgba(117,132,240,.18) 40%, rgba(117,132,240,.18) 60%, #7584f0 76%, #c3caff 82%, #7584f0 88%, rgba(117,132,240,.18)) border-box;
  border-width: 2px;
  animation: orbit var(--dur-loop) linear infinite;
}
html:not([data-chosen]) .fork-btn + .fork-btn { animation-delay: -1.6s; }
html:not([data-chosen]) .fork-btn .ico {
  color: #b3bcff;
  background: rgba(117, 132, 240, .14);
  border-color: rgba(117, 132, 240, .55);
  box-shadow: 0 0 18px rgba(117, 132, 240, .45);
}
@keyframes orbit { to { --ang: 360deg; } }
html:not([data-chosen]) .fork-btn[aria-pressed="true"] .tick { opacity: 0; }
html:not([data-chosen]) .fork-q { color: #c3caff; }
.fork { position: relative; }
html:not([data-chosen]) .fork::before {
  content: "";
  position: absolute;
  inset: -40px -60px;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 60%, rgba(117, 132, 240, .2), transparent 65%);
  animation: halo 2s var(--ease) infinite;
  pointer-events: none;
}
@keyframes halo { 50% { opacity: .55; } }
html:not([data-chosen]) .fork-q b { color: #7584f0; }
html:not([data-chosen]) .ping { width: 11px; height: 11px; box-shadow: 0 0 14px 3px rgba(117, 132, 240, .8); }

/* Persistent switch in the nav */
.aud-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 36px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  background: rgba(255, 255, 255, .02);
}
.aud-pill .lbl { padding: 0 8px 0 10px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.aud-pill button {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--dim-2);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.aud-pill button[aria-pressed="true"] { background: var(--teal-bright); color: var(--void); }
@media (max-width: 1100px) { .aud-pill .lbl { display: none; } }
@media (max-width: 520px) { .nav-cta .star-btn { display: none; } }

/* Toast */
.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 140%);
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid rgba(60, 193, 199, .35);
  background: rgba(10, 13, 20, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6);
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--paper);
  white-space: nowrap;
  transition: transform var(--dur-base) var(--ease);
  pointer-events: none;
}
.toast b { color: var(--teal-bright); font-weight: 500; }
.toast.on { transform: translate(-50%, 0); }
@media (max-width: 520px) { .toast { white-space: normal; width: calc(100% - 32px); text-align: center; } }

/* Stock vs VBW strip */
.vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 22px;
  border: 1px solid var(--rule-2);
  border-radius: 14px;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.5;
}
.vs > div { padding: 14px 16px; }
.vs b {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.vs .stock { color: var(--dim-2); background: rgba(255, 255, 255, .015); border-right: 1px solid var(--rule); }
.vs .stock b { color: var(--dim); }
.vs .stock b::before { content: "○"; color: var(--dim); }
.vs .vbw { color: var(--paper); background: rgba(27, 154, 160, .07); }
.vs .vbw b { color: var(--teal-bright); }
.vs .vbw b::before { content: "●"; color: var(--teal-bright); }
.vs span { display: block; }
.chap .vs { font-size: 13.5px; }
.paper-band .vs { border-color: #d6dde6; }
.paper-band .vs .stock { color: #5b6577; background: #eef1f5; border-color: #d6dde6; }
.paper-band .vs .stock b, .paper-band .vs .stock b::before { color: var(--slate); }
.paper-band .vs .vbw { color: var(--ink); background: var(--tint-teal); }
.paper-band .vs .vbw b, .paper-band .vs .vbw b::before { color: var(--teal-deep); }

/* § 02 method */
.method-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.method { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.m-row {
  display: grid;
  grid-template-columns: 64px minmax(0, .8fr) minmax(0, 1.4fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  transition: background var(--dur-base);
}
.m-row:hover { background: rgba(255, 255, 255, .015); }
.m-n { font-family: var(--f-mono); font-size: 13px; color: var(--teal-bright); padding-top: 4px; }
.m-step { font-family: var(--f-head); font-weight: 700; font-size: clamp(19px, 1.8vw, 23px); letter-spacing: -0.025em; line-height: 1.2; color: var(--paper); }
.m-tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--teal-bright);
  background: rgba(27, 154, 160, .1);
  border: 1px solid rgba(60, 193, 199, .22);
}
.m-tag.red { color: #ff8a8d; background: rgba(229, 72, 77, .1); border-color: rgba(229, 72, 77, .28); }
.m-tag.green { color: #6fe0a5; background: rgba(47, 166, 106, .1); border-color: rgba(47, 166, 106, .3); }
.m-tag.amber { color: var(--amber); background: rgba(242, 179, 61, .08); border-color: rgba(242, 179, 61, .26); }
.m-body p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--dim-2); max-width: 62ch; }
.m-body code { font-size: .86em; color: var(--teal-bright); }
#method .vs { margin-top: 32px; }

/* § 08 comparison */
.cmp { border: 1px solid var(--rule-2); border-radius: 18px; overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.15fr); border-top: 1px solid var(--rule); }
.cmp-row:first-child { border-top: 0; }
.cmp-row > div { padding: 17px 22px; font-size: 15px; line-height: 1.45; }
.cmp .k { font-family: var(--f-head); font-weight: 700; color: var(--paper); letter-spacing: -0.01em; }
.cmp .s { color: var(--dim); border-left: 1px solid var(--rule); display: flex; gap: 10px; }
.cmp .s::before { content: "○"; color: rgba(138, 148, 166, .6); font-size: 12px; margin-top: 3px; }
.cmp .w { color: var(--paper); border-left: 1px solid var(--rule); background: rgba(27, 154, 160, .06); display: flex; gap: 10px; }
.cmp .w::before {
  content: "";
  flex: 0 0 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.cmp .w code { font-size: .86em; color: var(--teal-bright); }
.cmp-head > div { padding: 14px 22px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.cmp-head .s { color: var(--dim); background: rgba(255, 255, 255, .02); }
.cmp-head .s::before, .cmp-head .w::before { display: none; }
.cmp-head .w { color: var(--teal-bright); background: rgba(27, 154, 160, .12); }
.cmp-row > div > span { display: inline; }

/* Finale: invite to read the other version */
.switch-other { margin-top: 40px; font-size: 15px; color: var(--dim-2); }
.switch-other button {
  font: inherit;
  color: var(--teal-bright);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(60, 193, 199, .4);
  text-underline-offset: 4px;
}

@media (max-width: 1080px) {
  .method-head { grid-template-columns: minmax(0, 1fr); }
  .m-row { grid-template-columns: 48px minmax(0, 1fr); }
  .m-body { grid-column: 2; }
}
@media (max-width: 760px) {
  .fork-opts { grid-template-columns: minmax(0, 1fr); }
  .vs { grid-template-columns: minmax(0, 1fr); }
  .vs .stock { border-right: 0; border-bottom: 1px solid var(--rule); }
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: minmax(0, 1fr); }
  .cmp-row > div { padding: 10px 18px; }
  .cmp .k { padding-top: 16px; padding-bottom: 2px; }
  .cmp .s, .cmp .w { border-left: 0; }
  .cmp .w { margin-bottom: 0; }
}

/* ==========================================================================
   v4.1 — hero punch, plugin badge, breathing selection
   ========================================================================== */

.plug {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding: 6px 6px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(60, 193, 199, .55);
  background: linear-gradient(90deg, rgba(27, 154, 160, .22), rgba(27, 154, 160, .06));
  box-shadow: 0 0 0 4px rgba(60, 193, 199, .08), 0 0 40px -6px rgba(60, 193, 199, .55);
  color: var(--paper);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast);
}
.plug:hover { box-shadow: 0 0 0 4px rgba(60, 193, 199, .14), 0 0 56px -4px rgba(60, 193, 199, .7); }
.plug-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal-bright);
  color: var(--void);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 13px;
}
.plug-txt {
  font-family: var(--f-mono);
  font-size: 14.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper);
}
.plug-txt b { color: var(--teal-bright); font-weight: 600; }
.plug-cmd {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--rule-2);
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--dim-2);
}

.hero3 h1.hero-punch {
  font-size: clamp(46px, 6vw, 92px);
  line-height: .92;
  letter-spacing: -0.055em;
  margin-bottom: 22px;
}
.hero-punch .l2 {
  display: block;
  color: var(--teal-bright);
  text-shadow: 0 0 40px rgba(60, 193, 199, .35);
}
.hero-kick {
  margin: 0 0 32px;
  max-width: 34ch;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--paper);
}

/* The chosen door breathes */

@media (max-width: 560px) {
  .plug-cmd { display: none; }
  .plug-txt { font-size: 12.5px; }
}

.hero3 { overflow-x: clip; }
@media (max-width: 760px) { html:not([data-chosen]) .fork::before { inset: -30px -16px; } }

/* ==========================================================================
   v4.2 — compact first fold, brag line, Claude colour
   ========================================================================== */

/* Claude Code, in Claude's own colour (overrides brandkit by request) */
.claude { color: #d97757; }
.paper-band .claude, .light .claude { color: #b9542f; }
.cmp .s .claude, .vs .stock .claude { color: #d97757; }

.hero3 { padding-top: clamp(28px, 3.4vw, 48px); }
.hero3-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: start; gap: clamp(20px, 3vw, 40px); }
.fig0 { align-self: start; margin-top: 6px; }
.fig0 .art { position: relative; width: min(100%, 54vh, 500px); margin: 0 auto; }
.fig0 canvas { display: block; width: 100%; height: auto; max-height: none; }

.plug-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 22px; }
.plug { margin-bottom: 0; padding: 5px 16px 5px 5px; }
.plug-ico { width: 30px; height: 30px; font-size: 12px; }
.plug-txt { font-size: 13px; }
.plug-brag {
  margin: 0;
  max-width: 46ch;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--dim-2);
}
.plug-brag em { font-style: normal; color: var(--paper); font-weight: 600; }

.hero3 h1.hero-punch {
  font-size: clamp(40px, 4.6vw, 70px);
  line-height: .98;
  margin-bottom: 16px;
}
.hero-punch .ln { display: block; }
@media (min-width: 1081px) { .hero-punch .ln { white-space: nowrap; } }
.hero-kick { font-size: clamp(18px, 1.6vw, 22px); margin-bottom: 22px; max-width: 46ch; }
.fork { margin-bottom: 26px; }
.fork-btn { padding: 13px 16px; }
.fork-btn .ico { width: 40px; height: 40px; }
.fork-btn b { font-size: 17px; }

@media (max-width: 1080px) {
  .hero3-grid { grid-template-columns: minmax(0, 1fr); }
  .fig0 canvas { height: auto; width: 100%; max-width: 520px; }
  .fig0 .art { width: auto; }
}

.fig0 .cap { white-space: nowrap; }

.fig0 { width: 100%; justify-self: stretch; }

/* Section-closing punchlines: bigger, centered */
.sec > .deadpan {
  max-width: 44ch;
  text-wrap: balance;
  margin: clamp(48px, 6vw, 72px) auto 0;
  text-align: center;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.3;
}
.sec > .deadpan::before { display: block; margin: 0 0 10px; }

/* Seal: nudge visitors to edit the contract */
.seal-lbl { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.seal-lbl label { margin-bottom: 8px; }
.nudge { position: relative; display: flex; align-items: flex-end; gap: 6px; margin-bottom: -6px; pointer-events: none; transition: opacity var(--dur-base); }
.nudge-txt {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--amber);
  transform: rotate(-4deg) translateY(-26px);
  text-shadow: 0 0 18px rgba(242, 179, 61, .55);
  animation: nudgeBob 1.6s var(--ease-in-out) infinite;
}
.nudge-arrow { width: 130px; height: 76px; overflow: visible; animation: nudgeWiggle 1.6s var(--ease-in-out) infinite; transform-origin: 90% 10%; }
.nudge-arrow path { stroke: var(--amber); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(242,179,61,.7)); }
.nd-path { stroke-dasharray: 200; stroke-dashoffset: 200; animation: nudgeDraw 2.4s var(--ease-in-out) infinite; }
.seal-left { padding-top: clamp(40px, 5vw, 56px); }
.nd-head { opacity: 0; animation: nudgeHead 2.4s var(--ease-in-out) infinite; }
@keyframes nudgeDraw { 0% { stroke-dashoffset: 200; } 35%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes nudgeHead { 0%, 30% { opacity: 0; } 38%, 100% { opacity: 1; } }
@keyframes nudgeWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg) translateX(-2px); } 75% { transform: rotate(4deg) translateX(2px); } }
@keyframes nudgeBob { 0%, 100% { transform: rotate(-4deg) translateY(-26px); } 50% { transform: rotate(-2deg) translateY(-32px); } }
.seal:not([data-touched]) .seal-edit textarea {
  border-color: rgba(242, 179, 61, .7);
}
.seal[data-touched] .nudge { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .nd-path { stroke-dashoffset: 0; } .nd-head { opacity: 1; } }
@media (max-width: 520px) { .nudge-txt { font-size: 15px; } .nudge-arrow { width: 70px; } }

.hcode { font-family: var(--f-mono); font-size: .78em; letter-spacing: -0.03em; color: var(--teal-bright); white-space: nowrap; }

/* red → green → refactor */
.rgr { font-family: var(--f-mono); font-size: .88em; white-space: nowrap; color: var(--dim); }
.rgr span { font-weight: 600; padding: 1px 7px; border-radius: 6px; }
.rgr .r { color: #ff8a8d; background: rgba(229, 72, 77, .14); box-shadow: 0 0 14px rgba(229, 72, 77, .25); }
.rgr .g { color: #6fe0a5; background: rgba(47, 166, 106, .14); box-shadow: 0 0 14px rgba(47, 166, 106, .25); }
.rgr .f { color: var(--teal-bright); background: rgba(27, 154, 160, .14); box-shadow: 0 0 14px rgba(60, 193, 199, .25); }

/* pass / fail words */
.t-pass { color: #6fe0a5; font-weight: 600; }
.t-fail { color: #ff8a8d; font-weight: 600; }

.t-amber { color: var(--amber); font-weight: 600; }

/* accent words beat the generic <strong> colour */
strong.t-amber, b.t-amber { color: var(--amber) !important; }
strong.t-fail, b.t-fail { color: #ff8a8d !important; }
strong.t-pass, b.t-pass { color: #6fe0a5 !important; }
.t-fail, .t-pass { font-weight: 600; }

/* accents inside styled containers */
em.t-amber, .plug-brag em.t-amber, .fig0 .joke em.t-amber { color: var(--amber) !important; }
.vs span.t-amber, .vs span.t-fail, .vs span.t-pass { display: inline; }
.docs3 .cmd.hero-cmd p span.t-amber { color: var(--amber); }
.docs3 .table td .t-amber { color: var(--amber); }

/* headline test: done = green, prove it = red */
.hero-punch .t-pass, .hero-punch .t-fail { font-weight: inherit; }
.hero-punch .t-fail { text-shadow: 0 0 40px rgba(229, 72, 77, .35); }

.hero-kick .ln { display: block; }
.hero-kick { max-width: none; }

/* ==========================================================================
   Reading-as pill: the selected version glows and breathes in its own colour
   Plain = Proof Teal · Technical = Contract Indigo (also on the chosen fork door)
   ========================================================================== */
.aud-pill button { position: relative; transition: background var(--dur-base), color var(--dur-base), box-shadow var(--dur-base), transform var(--dur-fast) var(--ease); }
.aud-pill button[data-aud-set="vibe"] { --pc: var(--teal-bright); --pc-rgb: 60, 193, 199; }
.aud-pill button[data-aud-set="eng"]  { --pc: var(--indigo-bright); --pc-rgb: 117, 132, 240; }
.aud-pill button:not([aria-pressed="true"]):hover { color: var(--pc); background: rgba(var(--pc-rgb), .1); }
.aud-pill button[aria-pressed="true"] {
  background: var(--pc);
  color: var(--void);
  font-weight: 600;
}
/* the pill itself picks up a faint ring in the active colour, so the whole control reads as live */
html[data-aud="vibe"] .aud-pill { border-color: rgba(60, 193, 199, .45); box-shadow: 0 0 24px -6px rgba(60, 193, 199, .5); }
html[data-aud="eng"]  .aud-pill { border-color: rgba(117, 132, 240, .5);  box-shadow: 0 0 24px -6px rgba(117, 132, 240, .6); }

/* the chosen fork door matches: Technical breathes indigo */
html[data-chosen] .fork-btn[data-aud-set="eng"][aria-pressed="true"] {
  border-color: var(--indigo-bright);
  background: rgba(117, 132, 240, .12);
}
html[data-chosen] .fork-btn[data-aud-set="eng"][aria-pressed="true"] .ico { background: var(--indigo-bright); color: var(--void); border-color: var(--indigo-bright); }
html[data-chosen] .fork-btn[data-aud-set="eng"][aria-pressed="true"] .tick { background: var(--indigo-bright); }

/* selected chip: a contour in the OPPOSITE version's colour, so the two hues fight for attention */
.aud-pill button[data-aud-set="vibe"] { --oc: var(--indigo-bright); --oc-rgb: 117, 132, 240; }
.aud-pill button[data-aud-set="eng"]  { --oc: var(--teal-bright);   --oc-rgb: 60, 193, 199; }
.aud-pill button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--oc), 0 0 0 4px rgba(var(--oc-rgb), .3); }

/* same idea on the chosen fork door */
html[data-chosen] .fork-btn[data-aud-set="vibe"][aria-pressed="true"] { outline: 2px solid var(--indigo-bright); outline-offset: 3px; }
html[data-chosen] .fork-btn[data-aud-set="eng"][aria-pressed="true"]  { outline: 2px solid var(--teal-bright);   outline-offset: 3px; }

em.t-teal { color: var(--teal-bright) !important; }

.h-l .t-amber { color: var(--amber); font-weight: inherit; }

em.t-white { color: var(--paper) !important; }

/* one-off: a rolling rainbow, for the droid */
.t-rainbow {
  font-weight: 600;
  background: linear-gradient(90deg, #ff5f57, #febc2e, #28c840, #3cc1c7, #7584f0, #d97de2, #ff5f57);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: rainbowRoll 3s linear infinite;
}
@keyframes rainbowRoll { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) { .t-rainbow { animation: none; } }

.hcode.t-rainbow { font-weight: 600; }

/* ==========================================================================
   Socials: GitHub (with live stars), Discord, X — nav and footer
   ========================================================================== */
.socials { display: inline-flex; align-items: center; gap: 6px; }
.soc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--rule-2);
  background: rgba(255, 255, 255, .03);
  color: var(--paper);
  font-size: 13.5px;
  font-weight: 500;
  transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease);
}
.soc svg { width: 17px; height: 17px; flex: 0 0 17px; }
.soc:hover { border-color: var(--rule-3); background: rgba(255, 255, 255, .06); }
.soc.gh { padding-right: 0; border-color: rgba(60, 193, 199, .45); box-shadow: 0 0 18px -6px rgba(60, 193, 199, .6); }
.soc.gh .lbl { font-weight: 600; }
.soc.gh .n {
  display: inline-flex;
  align-items: center;
  height: 100%;
  margin-left: 2px;
  padding: 0 11px;
  border-left: 1px solid rgba(60, 193, 199, .35);
  background: rgba(27, 154, 160, .14);
  color: var(--teal-bright);
  font-family: var(--f-mono);
  font-size: 12.5px;
  border-radius: 0 9px 9px 0;
}
.soc.gh .n:empty { display: none; }
.soc.gh .n:empty ~ * { display: none; }
.soc.gh:hover { border-color: var(--teal-bright); box-shadow: 0 0 22px -4px rgba(60, 193, 199, .8); }
/* Discord and X take their brand colour on hover, nothing more */
.socials a[title="Discord"]:hover { color: #8ea1ff; border-color: rgba(88, 101, 242, .6); }
.socials a[title="X"]:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.socials.foot { margin-top: 16px; }
.socials.foot .soc { color: var(--dim-2); }
.socials.foot .soc:hover { color: var(--paper); }
@media (max-width: 1100px) { .soc.gh .lbl { display: none; } .soc.gh { padding-right: 0; } }
@media (max-width: 520px) { .socials:not(.foot) .soc:not(.gh) { display: none; } .soc.gh .n { padding: 0 8px; } }

/* ==========================================================================
   Interaction states (kept last so it wins on order)
   - Hover movement only on devices that really hover; touch taps no longer leave a lifted button behind
   - One shared press dip: every pressable acknowledges the click
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn:hover svg.arrow-down { transform: translateY(2px); }
  .btn:hover svg.arrow-right { transform: translateX(3px); }
  .fork-btn:hover { transform: translateY(-2px); }
  html:not([data-chosen]) .fork-btn:hover { transform: translateY(-3px) scale(1.015); }
  .plug:hover, .soc:hover { transform: translateY(-1px); }
}
:is(.btn, .fork-btn, .soc, .copy, .aud-pill button, .mc-tab, .seal-reset, .plug):active,
:is(.btn, .fork-btn, .soc, .copy, .aud-pill button, .mc-tab, .seal-reset, .plug):hover:active {
  transform: scale(0.97);
  transition-duration: var(--dur-press);
}

/* 320px phones: the nav row (logo, audience switch, socials) is wider than the screen; drop the label and socials, both are in the footer */
@media (max-width: 360px) { .aud-pill .lbl { display: none; } .nav-cta .socials { display: none; } }

/* ---- Back to SWT Labs: shown only when hosted under /vbw (see swt-entry.js). Deliberately SWT-branded, not VBW-branded. ---- */
.nav-l { display: flex; align-items: center; gap: 18px; min-width: 0; }
.swt-back { flex: none; display: none; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px; background: #F5F2EA; color: #0D0D0D; border: 2px solid #0D0D0D; text-decoration: none; font: 400 17px/1 "Anton", Impact, sans-serif; letter-spacing: .02em; white-space: nowrap; box-shadow: 3px 3px 0 #FF4A12; transition: transform 160ms cubic-bezier(.23, 1, .32, 1), box-shadow 200ms cubic-bezier(.23, 1, .32, 1); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.swt-hosted .swt-back { display: inline-flex; }
.swt-back .arr { font: 600 15px/1 "Inter", sans-serif; transition: transform 200ms cubic-bezier(.23, 1, .32, 1); }
.swt-back i { font-style: normal; color: #C73A0A; }
.swt-back:active { transform: translate(2px, 2px) scale(.98); box-shadow: 1px 1px 0 #FF4A12; }
.swt-back:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .swt-back:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #FF4A12; } .swt-back:hover .arr { transform: translateX(-3px); } }
@media (max-width: 760px) { .swt-back .swt-t { display: none; } .swt-back { padding: 0 9px; gap: 6px; min-width: 44px; justify-content: center; height: 40px; } .nav-l { gap: 12px; } }
@media (max-width: 380px) { .swt-back .arr { display: none; } }
