/* ==========================================================================
   VBW homepage — story layer
   Claude Code replica (faithful terminal), chapters, Mission Control,
   SHA seal demo, VBW Wrapped. Shares tokens with styles.css.
   ========================================================================== */

:root {
  /* Terminal replica */
  --cc-bg: #0c0f16;
  --cc-bg-2: #11151e;
  --cc-line: rgba(255, 255, 255, 0.07);
  --cc-line-2: rgba(255, 255, 255, 0.13);
  --cc-text: #d7dce5;
  --cc-dim: #7f899b;
  --cc-faint: #535d70;

  /* VBW panel role palette (docs/panel.md) */
  --r-arch: #d97de2;
  --r-lead: #6f9df8;
  --r-dev: #5dd08e;
  --r-qa: #e8cf57;
  --r-scout: #4dcad5;
  --r-debug: #f26c71;
  --r-docs: #f39dcc;
  --s-run: #f2b33d;
  --s-done: #4fd18f;
  --s-fail: #ff7479;
  --s-cost: #b49cff;
}

/* --------------------------------------------------------------------------
   Claude Code replica
   -------------------------------------------------------------------------- */

.cc {
  --h: 460px;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--cc-bg);
  /* macOS Tahoe window: hairline near-white ring, brighter along the top edge */
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 50px 100px -40px rgba(4, 8, 16, 0.85),
    0 24px 40px -24px rgba(4, 8, 16, 0.6);
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--cc-text);
  text-align: left;
  isolation: isolate;
}
.light .cc { box-shadow: 0 0 0 1px rgba(18, 24, 38, 0.08), 0 50px 90px -40px rgba(18, 24, 38, 0.55), 0 20px 40px -24px rgba(18, 24, 38, 0.35); }

.cc-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  background: var(--cc-bg-2);
  border-bottom: 1px solid var(--cc-line);
}
.cc-bar i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18); }
.cc-bar i:nth-child(1) { background: #ff5f57; }
.cc-bar i:nth-child(2) { background: #febc2e; }
.cc-bar i:nth-child(3) { background: #28c840; }
.cc-bar .title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11.5px;
  color: var(--cc-dim);
  white-space: nowrap;
}
.cc-bar .replay {
  margin-left: auto;
  font: inherit;
  font-size: 11px;
  color: var(--cc-faint);
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.cc-bar .replay:hover { color: var(--cc-text); border-color: var(--cc-line-2); }

.cc-main {
  position: relative;
  display: flex;
  min-height: 0;
  height: var(--h);
}
.cc-col {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 18px 10px;
}
.cc-tx {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  mask-image: linear-gradient(to bottom, transparent 0, #000 36px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 36px);
}

/* Transcript lines */
.l {
  display: flex;
  gap: 8px;
  white-space: pre-wrap;
  word-break: break-word;
  animation: lineIn .28s var(--ease) both;
}
@keyframes lineIn { from { opacity: 0; transform: translateY(3px); } }
.l > .g { flex: 0 0 auto; width: 1.1em; text-align: center; }
.l.sp-top { margin-top: 8px; }
.l.u {
  margin: 8px 0 4px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
  color: #eef1f6;
}
.l.u > .g { color: var(--cc-dim); width: auto; }
.l.a > .g { color: #e7ebf2; }
.l.t > .g { color: var(--s-done); }
.l.t.err > .g { color: var(--s-fail); }
.l.t b, .l.a b { color: #f3f5f9; font-weight: 600; }
.l.o { display: block; padding-left: 1.1em; color: var(--cc-dim); }
.l.o .k { color: var(--cc-faint); }
.l.o.first::before { content: "⎿"; margin-right: 8px; color: var(--cc-faint); }
.l.o:not(.first) { padding-left: calc(1.1em + 8px + 1ch); }
.l.spin { color: var(--s-run); }
.l.spin .meta { color: var(--cc-dim); }
.l.vbw-note { color: var(--cc-dim); }
.l.vbw-note b { color: var(--teal-bright); font-weight: 500; }
.l.big { font-size: 13px; }

.c-arch { color: var(--r-arch); }
.c-lead { color: var(--r-lead); }
.c-dev { color: var(--r-dev); }
.c-qa { color: var(--r-qa); }
.c-scout { color: var(--r-scout); }
.c-debug { color: var(--r-debug); }
.c-docs { color: var(--r-docs); }
.c-run { color: var(--s-run); }
.c-ok { color: var(--s-done); }
.c-fail { color: var(--s-fail); }
.c-cost { color: var(--s-cost); }
.c-dim { color: var(--cc-dim); }
.c-faint { color: var(--cc-faint); }
.c-teal { color: var(--teal-bright); }
.c-white { color: #f3f5f9; }
.c-need { color: #f5d565; }

/* The band (docs/panel.md) */
.cc-band {
  flex: 0 0 auto;
  margin-top: 8px;
  padding: 7px 0 2px;
  border-top: 1px solid var(--cc-line);
  display: none;
  font-size: 12px;
}
.cc-band.on { display: block; animation: lineIn .3s var(--ease) both; }
.band-head {
  display: flex;
  gap: 10px;
  color: var(--cc-dim);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
}
.band-head b { color: #eef1f6; font-weight: 500; }
.band-head .mc { margin-left: auto; color: var(--cc-faint); }
.band-row {
  display: grid;
  grid-template-columns: 1.1em 6.2em 3.4em minmax(0, 1fr) 4.4em 3.4em;
  gap: 8px;
  white-space: nowrap;
  animation: lineIn .3s var(--ease) both;
}
.band-row > span { overflow: hidden; text-overflow: ellipsis; }
.band-row .ba .v { color: inherit; }
.band-row .ba .obj { color: var(--cc-dim); }
.band-row .t, .band-row .tok { color: var(--cc-faint); text-align: right; }
.band-row.flash { animation: flash .9s var(--ease) both; }
@keyframes flash { 0%, 40% { background: rgba(255, 255, 255, .12); } 100% { background: transparent; } }
.band-card {
  padding: 4px 0 2px;
}
.band-card .need { color: #f5d565; margin-bottom: 6px; }
.band-card .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.band-card .btns span {
  padding: 1px 8px;
  border: 1px solid var(--cc-line-2);
  border-radius: 4px;
  color: var(--cc-text);
}
.band-card .btns span.hot { border-color: rgba(245, 213, 101, .55); color: #f5d565; }

/* Prompt box */
.cc-prompt {
  flex: 0 0 auto;
  margin-top: 8px;
  padding: 7px 10px;
  border: 1px solid #3a4253;
  border-radius: 6px;
  display: flex;
  gap: 8px;
  min-height: 36px;
  align-items: center;
}
.cc-prompt .g { color: var(--cc-dim); }
.cc-input { flex: 1; min-width: 0; color: #eef1f6; white-space: nowrap; overflow: hidden; }
.cc-input .ph { color: var(--cc-faint); }
.caret {
  display: inline-block;
  width: 7px;
  height: 1.15em;
  vertical-align: -0.22em;
  background: #e7ebf2;
  margin-left: 1px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.cc-hint {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 0;
  font-size: 11px;
  color: var(--cc-faint);
  white-space: nowrap;
  overflow: hidden;
}
.cc-hint .need { color: #f5d565; }
.cc-hint .auto { color: var(--cc-dim); }

/* Question box (Claude Code's own question UI) */
.cc-q {
  flex: 0 0 auto;
  margin-top: 8px;
  padding: 10px 2px 2px;
  border-top: 1px solid var(--cc-line-2);
  display: none;
}
.cc-q.on { display: block; animation: lineIn .3s var(--ease) both; }
.cc-q .chip {
  display: inline-block;
  padding: 0 7px;
  margin-bottom: 6px;
  border-radius: 3px;
  background: rgba(111, 157, 248, .18);
  color: #a9c3fb;
  font-size: 11px;
}
.cc-q .q { color: #f3f5f9; font-weight: 600; margin-bottom: 6px; white-space: pre-wrap; }
.cc-q .opt { display: grid; grid-template-columns: 1.4em minmax(0, 1fr); color: var(--cc-text); }
.cc-q .opt .cur { color: transparent; }
.cc-q .opt.sel .cur { color: var(--teal-bright); }
.cc-q .opt.sel .lbl { color: var(--teal-bright); }
.cc-q .opt .d { grid-column: 2; color: var(--cc-dim); font-size: 11.5px; margin: -1px 0 3px 2.2ch; }
.cc-q .foot { margin-top: 6px; color: var(--cc-faint); font-size: 11px; }

/* Status line (docs/statusline.md) */
.cc-status {
  flex: 0 0 auto;
  padding: 7px 18px 9px;
  border-top: 1px solid var(--cc-line);
  background: rgba(0, 0, 0, .22);
  font-size: 10.8px;
  line-height: 1.55;
  color: var(--cc-dim);
  white-space: nowrap;
  overflow: hidden;
}
.cc-status .sl { overflow: hidden; text-overflow: ellipsis; }
.cc-status b { color: var(--cc-text); font-weight: 500; }
.cc-status .vbw { color: var(--teal-bright); }
.cc-status .bar { letter-spacing: -1px; }

/* Mission Control side pane */
.cc-side {
  flex: 0 0 38%;
  min-width: 0;
  border-left: 1px solid var(--cc-line);
  background: rgba(255, 255, 255, .015);
  display: flex;
  flex-direction: column;
  font-size: 11.8px;
}

/* --------------------------------------------------------------------------
   Mission Control (shared by side pane and the big feature)
   -------------------------------------------------------------------------- */

.mc { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.mc-tabs {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--cc-line);
  overflow-x: auto;
  scrollbar-width: none;
}
.mc-tabs::-webkit-scrollbar { display: none; }
.mc-portrait {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  margin-right: 8px;
  overflow: hidden;
  background: #222;
}
.mc-portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.mc-tab {
  flex: 0 0 auto;
  font: inherit;
  color: var(--cc-dim);
  background: none;
  border: 0;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast) var(--ease);
}
.mc-tab:hover { color: var(--cc-text); }
.cc-side .mc-tab { padding: 3px 6px; }
.mc-tab[aria-selected="true"] { color: var(--cc-bg); background: var(--teal-bright); }
.mc-tab + .mc-tab::before { content: none; }
.mc-body { flex: 1; min-height: 0; overflow: hidden; padding: 12px 14px; }
.mc-panel { display: none; }
.mc-panel.on { display: block; animation: lineIn .3s var(--ease) both; }
.mc-s { margin-bottom: 9px; }
.mc-s p { margin: 0; color: var(--cc-text); }
.mc-s small { display: block; font-size: 10.5px; color: var(--cc-faint); letter-spacing: .02em; }
.mc-s .need { color: #f5d565; }
.mc-h { color: #f3f5f9; font-weight: 600; margin: 4px 0 8px; }
.mc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.mc-card {
  border: 1px solid var(--rc, var(--cc-line-2));
  border-radius: 5px;
  padding: 5px 7px;
  font-size: 10.8px;
  line-height: 1.45;
}
.mc-card .who { color: var(--rc); }
.mc-card .st { color: var(--s-run); }
.mc-card .st.ok { color: var(--s-done); }
.mc-card .wh { color: var(--cc-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fill, 26px); gap: 6px; margin: 6px 0 10px; }
.proof-grid i {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: #2b3242;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 9.5px;
  color: rgba(0, 0, 0, .55);
  transition: background var(--dur-base);
}
.proof-grid i.p { background: var(--s-done); }
.proof-grid i.f { background: var(--s-fail); }
.mc-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dashed var(--cc-line); }
.mc-row span:last-child { color: var(--cc-dim); text-align: right; }
.mc-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 9px;
  border: 1px solid var(--cc-line-2);
  border-radius: 4px;
  color: var(--cc-text);
}
.lane { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 8px; align-items: center; margin: 5px 0; }
.lane .track { position: relative; height: 8px; background: rgba(255,255,255,.04); border-radius: 3px; }
.lane .track i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--rc); opacity: .85; }

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

.hero2 {
  padding: calc(var(--nav-h) + clamp(40px, 6vw, 80px)) 0 clamp(72px, 9vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 0%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 0%, #000 25%, transparent 75%);
}
.hero2::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 1100px;
  height: 1000px;
  left: 50%;
  top: -560px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(27, 154, 160, .24), transparent 62%);
  pointer-events: none;
}
.hero2-copy { text-align: center; max-width: 980px; margin: 0 auto; }
.hero2 .pill { margin-bottom: 30px; }
.hero2 h1 {
  font-size: clamp(42px, 7vw, 96px);
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 28px;
}
.hero2 h1 .accent { color: var(--teal-bright); display: block; }
.hero2 .lead { margin: 0 auto 36px; max-width: 64ch; }
.hero2 .hero-actions { justify-content: center; }
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 34px auto 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--text-dark-2);
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 15px; height: 15px; color: var(--teal-bright); }
.hero2-stage {
  position: relative;
  margin: clamp(56px, 7vw, 88px) auto 0;
  max-width: 1080px;
}
.hero2-stage .cc { --h: 400px; }
.hero2-stage::after {
  content: "";
  position: absolute;
  inset: auto 8% -40px;
  height: 80px;
  background: radial-gradient(ellipse at center, rgba(27, 154, 160, .35), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}
.stage-labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--slate);
  flex-wrap: wrap;
}
.stage-labels span::before { content: "↑ "; color: var(--teal-bright); }

/* --------------------------------------------------------------------------
   Hook: the lie
   -------------------------------------------------------------------------- */

.lie-head { text-align: center; max-width: 900px; margin: 0 auto clamp(48px, 6vw, 72px); }
.lie-head .big-q {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(56px, 10vw, 136px);
  letter-spacing: -0.05em;
  line-height: .9;
  margin: 0 0 20px;
}
.lie-head .big-q span { color: var(--slate); }
.lie-head .sub {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  color: #4a5468;
  margin: 0 0 22px;
}
.lie-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.lie-grid .cc { --h: 300px; }
.lie-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.lie-label .bad { color: var(--red); }
.lie-label .good { color: var(--teal-deep); }
.lie-cap { margin: 16px 2px 0; font-size: 15px; color: #4a5468; }
.lie-cap b { color: var(--ink); }

/* --------------------------------------------------------------------------
   Story chapters
   -------------------------------------------------------------------------- */

.story-intro { text-align: center; max-width: 820px; margin: 0 auto; }
.story-intro .h2 { margin-bottom: 24px; }
.story-intro .lead { margin: 0 auto; }
.persona {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.persona span {
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--mist);
  background: var(--white);
  color: #4a5468;
}

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.chapter.flip { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
.chapter.flip .ch-copy { order: 2; }
.chapter + .chapter { margin-top: clamp(112px, 14vw, 176px); }

.ch-num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: var(--c, var(--teal-deep));
}
.dark .ch-num { color: var(--c, var(--teal-bright)); }
.ch-num b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--c, var(--teal));
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0;
}
.ch-copy h2 {
  font-size: clamp(34px, 4.4vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 24px;
}
.ch-copy p { margin: 0 0 16px; max-width: 52ch; }
.light .ch-copy p { color: #4a5468; }
.dark .ch-copy p { color: var(--text-dark-2); }
.ch-copy p strong { font-weight: 600; }
.light .ch-copy p strong { color: var(--ink); }
.dark .ch-copy p strong { color: var(--paper); }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; max-width: 52ch; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: 15.5px; }
.light .ticks li { color: #4a5468; }
.dark .ticks li { color: var(--text-dark-2); }
.ticks li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ticks li b { font-weight: 600; }
.light .ticks li b { color: var(--ink); }
.dark .ticks li b { color: var(--paper); }

.punch,
.ch-copy .punch {
  margin: 32px 0 0;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--c, var(--teal));
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 34ch;
}
.light .punch { color: var(--ink); }
.dark .punch { color: var(--paper); }
.punch em { font-style: normal; color: var(--c, var(--teal-deep)); }
.dark .punch em { color: var(--c, var(--teal-bright)); }

.ch-mock { position: relative; min-width: 0; }
.ch-mock .cc { --h: 440px; }
.mock-cap {
  margin-top: 14px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--slate);
}
.mock-cap span { display: inline-flex; align-items: center; gap: 7px; }
.mock-cap i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

/* Act break headings inside long sections */
.act {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(72px, 9vw, 112px);
}
.act .h2 { margin-bottom: 20px; }
.act .lead { margin: 0 auto; }

/* --------------------------------------------------------------------------
   SHA seal demo
   -------------------------------------------------------------------------- */

.seal {
  margin-top: clamp(64px, 8vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line-dark-2);
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink-2);
}
.seal-left { padding: clamp(28px, 4vw, 44px); border-right: 1px solid var(--line-dark); }
.seal-left h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; margin-bottom: 14px; }
.seal-left p { color: var(--text-dark-2); margin: 0 0 22px; font-size: 15.5px; }
.seal-files { display: grid; gap: 6px; margin-bottom: 18px; }
.seal-file {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-dark);
  color: var(--text-dark-2);
}
.seal-file span:last-child { color: var(--slate); }
.seal-edit label {
  display: block;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 8px;
}
.seal-edit textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-dark-2);
  background: #0a0e16;
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.7;
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.seal-edit textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(27, 154, 160, .18); }
.seal-right {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  background:
    radial-gradient(circle at 70% 20%, rgba(27, 154, 160, .14), transparent 55%),
    #0d121c;
  transition: background var(--dur-slow);
}
.seal[data-state="void"] .seal-right {
  background:
    radial-gradient(circle at 70% 20%, rgba(229, 72, 77, .16), transparent 55%),
    #120e14;
}
.hash-label { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.hash {
  font-family: var(--f-mono);
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.7;
  word-break: break-all;
  color: var(--text-dark-2);
}
.hash b { color: var(--paper); font-weight: 500; background: rgba(27, 154, 160, .2); border-radius: 4px; padding: 1px 3px; }
.seal[data-state="void"] .hash b { background: rgba(229, 72, 77, .22); }
.hash .chg { color: #ff9a9d; }
.verdict {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(47, 166, 106, .4);
  background: rgba(47, 166, 106, .08);
  transition: border-color var(--dur-base), background var(--dur-base);
}
.verdict .ic {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--white);
}
.verdict .ic svg { width: 22px; height: 22px; }
.verdict .ic .x { display: none; }
.verdict strong { display: block; font-family: var(--f-head); font-size: 19px; letter-spacing: -0.02em; color: var(--paper); }
.verdict span { font-size: 14px; color: var(--text-dark-2); }
.seal[data-state="void"] .verdict { border-color: rgba(229, 72, 77, .45); background: rgba(229, 72, 77, .09); }
.seal[data-state="void"] .verdict .ic { background: var(--red); animation: shake .4s; }
.seal[data-state="void"] .verdict .ic .ok { display: none; }
.seal[data-state="void"] .verdict .ic .x { display: block; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.seal-reset {
  align-self: flex-start;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark-2);
  background: none;
  border: 1px solid var(--line-dark-2);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base), color var(--dur-fast), transform var(--dur-fast) var(--ease);
}
.seal-reset:hover { color: var(--paper); }
.seal[data-state="void"] .seal-reset { opacity: 1; pointer-events: auto; }

/* --------------------------------------------------------------------------
   Kernel: model vs kernel
   -------------------------------------------------------------------------- */

.mind {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  margin-bottom: clamp(80px, 10vw, 128px);
}
.mind-card {
  padding: clamp(28px, 3.6vw, 40px);
  border-radius: 20px;
  border: 1px solid var(--line-dark-2);
  background: var(--ink-2);
}
.mind-card.kernel {
  background: #080b12;
  border: 1.5px solid var(--paper);
  box-shadow: 0 40px 100px -40px rgba(27, 154, 160, .45);
}
.mind-card .tag {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
}
.mind-card.kernel .tag { color: var(--teal-bright); }
.mind-card h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.035em; margin-bottom: 8px; }
.mind-card .kind { font-family: var(--f-head); font-weight: 500; font-size: 18px; margin-bottom: 22px; }
.mind-card:not(.kernel) .kind { color: var(--slate); }
.mind-card.kernel .kind { color: var(--teal-bright); }
.mind-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mind-card li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 15px; color: var(--text-dark-2); }
.mind-card li::before { content: "~"; color: var(--slate); font-family: var(--f-mono); }
.mind-card.kernel li { color: var(--paper); }
.mind-card.kernel li::before { content: "="; color: var(--teal-bright); }
.mind-mid {
  display: grid;
  place-items: center;
  padding: 0 clamp(14px, 2vw, 28px);
}
.mind-mid span {
  writing-mode: vertical-rl;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate);
}

.law-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(64px, 8vw, 96px);
}
.law {
  padding: 26px;
  border-radius: 18px;
  border: 1px solid var(--line-dark);
  background: var(--ink-2);
}
.law .n { font-family: var(--f-mono); font-size: 11.5px; color: var(--teal-bright); margin-bottom: 14px; letter-spacing: .1em; }
.law h4 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 10px; color: var(--paper); }
.law p { margin: 0; font-size: 15px; color: var(--text-dark-2); }

/* --------------------------------------------------------------------------
   Mission Control feature
   -------------------------------------------------------------------------- */

.mcx { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.mcx-frame .cc { --h: 520px; }
.mcx-frame .cc-side { flex-basis: 48%; font-size: 12.4px; }
.mcx-notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mcx-note {
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--line-dark);
  background: var(--ink-2);
}
.mcx-note h4 { font-size: 17px; letter-spacing: -0.015em; margin-bottom: 6px; color: var(--paper); }
.mcx-note p { margin: 0; font-size: 14.5px; color: var(--text-dark-2); }
.mcx-note code { color: var(--teal-bright); font-size: .9em; }

/* --------------------------------------------------------------------------
   VBW Wrapped
   -------------------------------------------------------------------------- */

.wrapped {
  position: relative;
  border-radius: 24px;
  background:
    radial-gradient(circle at 15% 0%, rgba(27, 154, 160, .35), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(61, 79, 196, .35), transparent 50%),
    var(--ink);
  color: var(--paper);
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(18, 24, 38, .6);
}
.wrapped .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.wrapped .k { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-bright); }
.wrapped h3 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.035em; margin-top: 8px; }
.wrapped .shipped {
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(47, 166, 106, .18);
  color: #6fe0a5;
  white-space: nowrap;
}
.w-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.w-stat {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-dark);
}
.w-stat .wv { font-family: var(--f-head); font-weight: 700; font-size: clamp(30px, 3.2vw, 42px); letter-spacing: -0.04em; line-height: 1; }
.w-stat .wv small { font-size: .5em; color: var(--text-dark-2); letter-spacing: 0; }
.w-stat .l2 { margin-top: 8px; font-size: 13px; color: var(--text-dark-2); }
.w-stat.green .wv { color: #6fe0a5; }
.w-steps { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.w-steps div { padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-dark); font-size: 14px; color: var(--text-dark-2); }
.w-steps b { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); font-weight: 500; margin-bottom: 4px; }
.w-steps span { color: var(--paper); }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i {
  position: absolute;
  top: -12px;
  width: 7px;
  height: 11px;
  border-radius: 2px;
  opacity: 0;
}
.wrapped.boom .confetti i { animation: fall 2.2s var(--ease) forwards; }
@keyframes fall {
  0% { opacity: 1; transform: translateY(0) rotate(0); }
  100% { opacity: 0; transform: translateY(420px) rotate(540deg); }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { display: grid; gap: 10px; max-width: 880px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--mist);
  border-radius: 16px;
  background: var(--white);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.faq details[open] { border-color: #c4ccd8; box-shadow: 0 20px 40px -30px rgba(18, 24, 38, .3); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121826' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform var(--dur-base) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 26px 24px; color: #4a5468; font-size: 16px; max-width: 70ch; }
.faq .ans p { margin: 0 0 10px; }
.faq .ans p:last-child { margin: 0; }

/* --------------------------------------------------------------------------
   Install v2
   -------------------------------------------------------------------------- */

.install2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.steps2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps2 > li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--mist);
}
.steps2 > li::before {
  content: counter(s);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: var(--white);
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
}
.steps2 h4 { font-size: 18px; letter-spacing: -0.02em; margin: 4px 0 6px; }
.steps2 p { margin: 0 0 12px; font-size: 15px; color: #4a5468; }
.steps2 p:last-child { margin-bottom: 0; }
.steps2 .codebox { font-size: 12.5px; }
.steps2 .codebox code { white-space: normal; overflow-wrap: anywhere; }
.tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--tint-teal);
  color: var(--teal-deep);
  font-size: 14px;
}
.tip svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; }
.install2 .cc { --h: 380px; position: sticky; top: calc(var(--nav-h) + 24px); }

/* --------------------------------------------------------------------------
   Story rail (chapter progress)
   -------------------------------------------------------------------------- */

.rail {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 140%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 16px;
  border-radius: 999px;
  background: rgba(18, 24, 38, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-dark-2);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5);
  color: var(--paper);
  transition: transform var(--dur-slow) var(--ease);
  font-size: 13px;
}
.rail.on { transform: translate(-50%, 0); }
.rail .now { font-weight: 500; white-space: nowrap; min-width: 12ch; }
.rail .now small { color: var(--slate); font-family: var(--f-mono); font-size: 11px; margin-right: 8px; }
.rail ol { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.rail a {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--slate);
  transition: background var(--dur-base), color var(--dur-base);
}
.rail a:hover { color: var(--paper); background: rgba(255, 255, 255, .06); }
.rail a.done { color: var(--teal-bright); }
.rail a.cur { background: var(--teal); color: var(--white); }

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

@media (max-width: 1080px) {
  .law-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mcx-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .chapter, .chapter.flip { grid-template-columns: minmax(0, 1fr); }
  .chapter.flip .ch-copy { order: 0; }
  .lie-grid { grid-template-columns: minmax(0, 1fr); }
  .seal { grid-template-columns: minmax(0, 1fr); }
  .seal-left { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .mind { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mind-mid span { writing-mode: horizontal-tb; }
  .install2 { grid-template-columns: minmax(0, 1fr); }
  .install2 .cc { position: relative; top: 0; }
  .cc-side { display: none; }
  .mcx-frame .cc-side { display: flex; flex-basis: 100%; border-left: 0; }
  .mcx-frame .cc-col { display: none; }
  .rail .now { display: none; }
}

@media (max-width: 760px) {
  .law-grid, .mcx-notes { grid-template-columns: minmax(0, 1fr); }
  .w-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-steps { grid-template-columns: minmax(0, 1fr); }
  .cc { font-size: 11px; }
  .cc-col { padding: 12px 12px 8px; }
  .cc-status { padding: 6px 12px 8px; font-size: 9.8px; }
  .cc-status .sl.opt { display: none; }
  .ch-mock .cc, .hero2-stage .cc { --h: 400px; }
  .band-row { grid-template-columns: 1.1em 5.4em 3em minmax(0, 1fr) 3.8em; }
  .band-row .tok { display: none; }
  .band-head .mc { display: none; }
  .cc-bar .title { display: none; }
  .stage-labels { display: none; }
  .rail { bottom: 12px; }
  .rail ol { gap: 0; }
  .rail a { width: 24px; height: 24px; }
  .faq summary { font-size: 17px; padding: 18px 20px; }
  .faq .ans { padding: 0 20px 20px; }
}
