/* Styles for the landing variants (/v7 …). */

.vpage h1, .vpage h1 span, .vpage h2, .vpage h2 span { color: var(--ink); }
.vpage h1 { max-width: 22ch; text-wrap: balance; }
/* Three fixed lines at every width: leave room for "Debug and improve"
   while keeping the same headline rhythm on phones and desktop. */
.vpage h1:has(.l) {
  max-width: none;
  font-size: min(3.6rem, calc((100vw - 2 * clamp(20px, 5vw, 64px)) / 9.5));
}
@media (min-width: 960px) {
  .vpage h1:has(.l) { font-size: min(3.6rem, calc((min(100vw, 1280px) - 2 * clamp(20px, 5vw, 64px) - 32px) * 0.6 / 9.5)); }
}
.vpage h1 .l { display: block; white-space: nowrap; }
.vpage h1 .hl, .vpage h1 .hl span { color: var(--accent); }
.vpage h2 { font-family: var(--font-heading); font-weight: 400; font-size: var(--type-section-title); line-height: 1.12; margin: 0; }

.vpage main { display: block; max-width: 1280px; }
.vpage .vsection { padding: clamp(40px, 6vw, 80px) 0 0; }
.vpage .vsection:last-child { padding-bottom: clamp(48px, 6vw, 80px); }
.vpage .vsection:first-child { padding-top: 0; }
.vsection-window { padding-top: clamp(28px, 4vw, 48px) !important; padding-bottom: clamp(22px, 3vw, 34px); }

.vlead {
  margin: 26px 0 0;
  font-weight: 300;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  color: var(--soft);
  max-width: 54ch;
}
.vlead b { color: var(--ink); font-weight: 500; }
.vlead.vfollow { margin-top: 12px; }
.vkicker { margin: 22px 0 0; font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: var(--ink); }
.vpage .cta { margin-top: 26px; }

/* Teammate feeder cards */
.feeders { display: grid; gap: 14px; margin-top: clamp(56px, 8vw, 96px); }
@media (min-width: 880px) { .feeders { grid-template-columns: 1fr 1fr 1fr; } }
.feeder {
  background: var(--theme-surface-raised);
  border: 1px solid color-mix(in srgb, var(--theme-ink) 12%, transparent);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}
.feeder-who { margin: 0; display: flex; align-items: center; gap: 9px; }
.feeder-name { color: var(--theme-ink-strong); font-size: 13.5px; font-weight: 500; }
.feeder-h {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--theme-ink-faint);
}
.feeder-h img { display: block; opacity: 0.9; }
.feeder-what { margin: 10px 0 0; font-size: 0.93rem; color: var(--theme-ink-muted); font-weight: 300; }
.feeder code, .cd-a code, .l-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  color: var(--theme-ink-strong);
  background: color-mix(in srgb, var(--theme-ink-strong) 10%, transparent);
  padding: 1px 6px;
  border-radius: 6px;
  white-space: nowrap;
}
.ava { border-radius: 50%; display: block; }
.ava-s { border-radius: 50%; vertical-align: -3px; margin-right: 7px; }

/* Mini-conversation feeders (v10) */
.feeder-convo .f-q {
  margin: 12px 0 0;
  justify-self: end;
  margin-left: auto;
  width: fit-content;
  max-width: 92%;
  padding: 8px 13px;
  background: var(--theme-surface-raised-strong);
  color: var(--theme-ink-strong);
  border-radius: 12px;
  font-size: 0.88rem;
}
.feeder-convo { display: grid; }
.feeder-convo .f-a { margin: 10px 0 0; font-size: 0.88rem; color: var(--theme-ink-muted); font-weight: 300; }

/* Beams into the MCP node */
.beams { display: block; width: 100%; height: clamp(52px, 7.5vw, 92px); }
.beams path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.55;
  stroke-dasharray: 1 9;
  animation: beamflow 1.4s linear infinite;
}
@keyframes beamflow { to { stroke-dashoffset: -10; } }
@media (prefers-reduced-motion: reduce) { .beams path { animation: none; stroke-dasharray: none; opacity: 0.3; } }
.beams-sq path, .beams-trunk path { stroke-linejoin: miter; stroke-linecap: square; }
.mcp-node {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px auto 0;
  width: fit-content;
}
.mcp-node svg { width: 17px; height: 17px; fill: var(--accent); }
.mcp-node > img { display: block; width: clamp(124px, 15vw, 156px); height: auto; }
.mcp-word {
  font-family: 'Stack Sans Headline', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.mcp-word .t { font-family: 'Stack Sans Notch', sans-serif; }
.mcp-sub { font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); }
.beams-down { display: block; width: 10px; height: clamp(36px, 5vw, 60px); margin: 6px auto 0; }
.beams-down path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.55;
  stroke-dasharray: 1 9;
  animation: beamflow 1.4s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .beams-down path { animation: none; stroke-dasharray: none; opacity: 0.3; } }

/* Harness fan-out chips (v11) */
.hrow { display: grid; gap: 12px; margin: 0 auto; width: 100%; }
@media (min-width: 640px) { .hrow { grid-template-columns: 1fr 1fr 1fr; } }
.hchip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--theme-surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--soft);
}
.hchip img { display: block; opacity: 0.9; }

/* Claude Desktop window */
.cd-glow { position: relative; }
.cd-glow::before {
  content: "";
  position: absolute;
  inset: -80px -60px;
  background: radial-gradient(closest-side at 50% 30%, color-mix(in srgb, var(--theme-accent) 7%, transparent), transparent 75%);
  pointer-events: none;
}
.cd {
  position: relative;
  display: grid;
  background: var(--theme-surface-raised);
  border: 1px solid color-mix(in srgb, var(--theme-ink) 12%, transparent);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color: var(--theme-ink-strong);
  font-size: clamp(0.92rem, 1.4vw, 0.98rem);
  line-height: 1.55;
  pointer-events: none;
  user-select: none;
}
@media (min-width: 960px) { .cd:has(.cd-side) { grid-template-columns: 218px 1fr; } }

.cd-side {
  display: none;
  background: var(--theme-surface);
  border-right: 1px solid color-mix(in srgb, var(--theme-ink) 8%, transparent);
  padding: 14px 10px;
  font-size: 13px;
  color: var(--theme-ink-muted);
}
@media (min-width: 960px) { .cd-side { display: flex; flex-direction: column; gap: 2px; } }
.tl-row { display: flex; gap: 7px; padding: 2px 6px 14px; }
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl-r { background: #ff5f57; }
.tl-y { background: #febc2e; }
.tl-g { background: #28c840; }
.cd-side p { margin: 0; padding: 6px 10px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-new { color: var(--theme-ink-strong); font-weight: 500; }
.cd-side-label { margin-top: 10px !important; font-size: 11.5px; color: var(--theme-ink-faint); }
.cd-sess { color: var(--theme-ink-muted); cursor: pointer; }
.cd-sess-active { background: color-mix(in srgb, var(--theme-ink-strong) 8%, transparent); color: var(--theme-ink-strong); }
.cd-user { margin-top: auto !important; display: flex; align-items: center; gap: 8px; color: var(--theme-ink-strong); }
.cd-ava img { border-radius: 50%; display: block; }

.cd-main { min-width: 0; display: flex; flex-direction: column; }
.cd-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-ink) 8%, transparent);
}
.cd-bar .tl { width: 10px; height: 10px; }
@media (min-width: 960px) { .cd-bar .tl { display: none; } }
.cd-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-ink-strong);
}
.cd-brand img { display: block; }
.cd-title { margin-left: 10px; font-size: 13px; font-weight: 400; color: var(--theme-ink-muted); }
.cd-tag {
  font-size: 11.5px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--theme-accent) 35%, transparent);
  background: color-mix(in srgb, var(--theme-accent) 8%, transparent);
  border-radius: 6px;
  padding: 2px 8px;
}
.mock-tag {
  margin-left: auto;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--theme-ink-faint);
  border: 1px solid color-mix(in srgb, var(--theme-ink-strong) calc(0.18 * 100%), transparent);
  border-radius: 999px;
  padding: 2px 9px;
}

.cd-chat {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px) clamp(16px, 3vw, 30px);
  min-height: 320px;
}
.ex { display: grid; gap: 14px; align-content: start; }
.cd-u {
  justify-self: end;
  width: fit-content;
  max-width: min(88%, 46ch);
  margin: 0;
  padding: 12px 18px;
  background: var(--theme-surface-raised-strong);
  color: var(--theme-ink-strong);
  border-radius: 16px;
}
.cd-a { display: grid; gap: 10px; max-width: 58ch; color: var(--theme-ink-soft); font-weight: 300; }
.cd-a p { margin: 0; }
.cd-response-footer { display: flex; align-items: center; gap: 10.5px; margin-top: 3px; color: var(--theme-ink-muted); font-size: 9.75px; font-weight: 400; line-height: 1.4; }
.cd-response-footer svg { display: block; width: 13.5px; height: 13.5px; flex: none; }
.cd-a .a-list b, .cd-a b { color: var(--theme-ink-strong); font-weight: 500; }
.a-list { margin: 0; padding: 0; list-style: none; }
.cd-a .a-list li + li { margin-top: 5px; }

.cd-tool { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; font-size: 13px; color: var(--theme-ink-muted); }
.cd-tool svg { width: 13px; height: 13px; fill: var(--accent); flex: none; }
.cd-tool > img { width: 16px; height: 16px; flex: none; }
.cd-tool b { color: var(--accent); font-weight: 500; }
.cd-tool-run { display: none; }
.cd-tool-run::after {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: 8px;
  vertical-align: -1px;
  border: 1.5px solid color-mix(in srgb, var(--theme-accent) 30%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: cdspin 0.8s linear infinite;
}
@keyframes cdspin { to { transform: rotate(360deg); } }

.cd-composer { padding: 0 clamp(16px, 3vw, 30px) 16px; }
.cd-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--theme-ink-strong) 14%, transparent);
  background: var(--theme-surface);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14.5px;
  color: var(--theme-ink-faint);
  min-height: 46px;
}
.cd-input .typing { color: var(--theme-ink-strong); }
.cd-input .typing::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 15px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--theme-ink-strong);
  animation: caretblink 0.9s steps(1) infinite;
}
@keyframes caretblink { 50% { opacity: 0; } }
.cd-enter { color: var(--theme-ink-faint); }
.cd-input-row { display: flex; justify-content: space-between; margin-top: 9px; font-size: 12px; color: var(--theme-ink-faint); }

/* Window animation states. Default (no JS / reduced motion): all visible, tools resolved. */
.cd .cd-tool-done { display: inline; }
.cd.anim .ex .cd-u,
.cd.anim .ex .cd-tool,
.cd.anim .ex .rv,
.cd.anim .ex .a-list {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.cd.anim .ex.s-user .cd-u { opacity: 1; transform: none; }
.cd.anim .ex.s-tool .cd-tool { opacity: 1; transform: none; }
.cd.anim .ex.s-tool:not(.s-answer) .cd-tool-run { display: inline; }
.cd.anim .ex.s-tool:not(.s-answer) .cd-tool-done { display: none; }
.cd.anim .ex.s-answer .rv, .cd.anim .ex.s-answer .a-list { opacity: 1; transform: none; }
.cd.anim .ex.s-answer .rv:nth-of-type(2) { transition-delay: 0.15s; }
.cd.anim .ex.s-answer .a-list .rv:nth-child(1) { transition-delay: 0.15s; }
.cd.anim .ex.s-answer .a-list .rv:nth-child(2) { transition-delay: 0.3s; }
.cd.anim .ex.s-answer .a-list .rv:nth-child(3) { transition-delay: 0.45s; }

/* Feeder reveal: keyframe animation (not transitions) so entrance stagger
   delays never interfere with the holo hover-tilt transition. */
.feeders.prep .feeder { opacity: 0; }
.feeders.in .feeder {
  opacity: 1;
  animation: feedin 0.55s cubic-bezier(0.25, 1, 0.5, 1) backwards;
}
.feeders.in .feeder:nth-child(2) { animation-delay: 0.12s; }
.feeders.in .feeder:nth-child(3) { animation-delay: 0.24s; }
@keyframes feedin { from { opacity: 0; transform: translateY(12px) rotate(var(--tilt, 0deg)); } }

/* V9: floating message moments on an aurora ground */
/* z-index: 0 creates a stacking context so the fixed z:-1 background layers
   paint above the body's opaque background instead of being buried under it. */
/* Pages with fixed background layers (dot canvas, grid) need their own
   stacking context so z:-1 layers sit above the body background. */
.vfx { position: relative; z-index: 0; overflow-x: clip; }

/* Animated strike-through: the line draws across the word after load */
.strike { position: relative; white-space: nowrap; }
.strike::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  top: 55%;
  height: 0.085em;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  animation: strikeDraw 0.45s cubic-bezier(0.25, 1, 0.5, 1) 1s forwards;
}
@keyframes strikeDraw { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .strike::after { animation: none; transform: scaleX(1); } }
#fx-dots { position: fixed; inset: 0; z-index: -1; }
.cta-mag { transition: background 0.15s ease, transform 0.18s ease, box-shadow 0.06s ease; will-change: transform; }
.v9-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(640px 420px at 78% 12%, color-mix(in srgb, var(--theme-accent) 13%, transparent), transparent 70%),
    radial-gradient(700px 520px at 12% 55%, color-mix(in srgb, var(--theme-good) 20%, transparent), transparent 70%),
    radial-gradient(560px 460px at 85% 88%, color-mix(in srgb, var(--theme-ink) 9%, transparent), transparent 70%);
}
.v9-hero { min-height: 62svh; display: grid; align-content: center; justify-items: center; text-align: center; padding-top: 0 !important; }
.v9-hero h1 { max-width: 18ch; }
.v9-hero .vlead { max-width: 44ch; }
.v9-moment {
  min-height: 46svh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(30px, 5vw, 56px) 0;
}
.v9-cap { margin: 22px 0 0; font-size: clamp(0.98rem, 1.5vw, 1.1rem); color: var(--soft); font-weight: 300; text-align: center; max-width: 46ch; }
.v9-cap b { color: var(--ink); font-weight: 500; }

.l-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 620px);
  background: var(--ink);
  color: var(--theme-surface-raised);
  border-radius: 999px;
  padding: 10px 10px 10px 20px;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.l-plus { color: var(--theme-ink-faint); font-size: 20px; }
.l-ptext { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.l-ptext.typing::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 16px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--theme-surface-raised);
  animation: caretblink 0.9s steps(1) infinite;
}
.l-send {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--cta-ink);
  display: grid;
  place-items: center;
  font-size: 17px;
}
.l-card {
  width: min(100%, 620px);
  background: var(--theme-surface);
  border: 1px solid color-mix(in srgb, var(--theme-ink) 12%, transparent);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
  display: grid;
  gap: 14px;
}
.l-u {
  justify-self: end;
  width: fit-content;
  max-width: 90%;
  margin: 0;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--theme-accent) 12%, transparent);
  color: var(--ink);
  border-radius: 14px;
}
.l-tool { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.l-tool svg { width: 12px; height: 12px; fill: var(--accent); }
.l-tool b { color: var(--accent); font-weight: 500; }
.l-a { margin: 0; color: var(--soft); font-weight: 300; max-width: 52ch; }
.l-a b { color: var(--ink); font-weight: 500; }
.l-title { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: var(--ink); }
.l-title svg { width: 15px; height: 15px; fill: var(--accent); }
.l-step { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--soft); font-weight: 300; }
.l-step .ok {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--theme-good);
  color: var(--theme-good-ink);
  font-size: 11px;
  display: grid;
  place-items: center;
}
.l-step .spin {
  flex: none;
  width: 14px; height: 14px;
  margin: 2px;
  border: 1.5px solid color-mix(in srgb, var(--theme-accent) 30%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: cdspin 0.8s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .l-step .spin, .cd-tool-run::after { animation: none; } }
.l-bar { height: 5px; border-radius: 999px; background: color-mix(in srgb, var(--theme-ink) 14%, transparent); overflow: hidden; }
.l-bar span { display: block; height: 100%; width: 72%; border-radius: 999px; background: var(--accent); }
.l-eta { margin: 0; font-size: 13px; color: var(--muted); }

.v9-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1); }
.v9-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .v9-reveal { opacity: 1; transform: none; transition: none; } }

/* V9 single-stage animation */
.v9-stage {
  display: grid;
  justify-items: center;
  padding: clamp(24px, 4vw, 56px) 0 clamp(50px, 7vw, 90px);
}
.lstage { width: min(100%, 620px); display: grid; }
.lx { display: grid; gap: 14px; }
.lstage .l-pill { width: 100%; }
.lstage .l-card { margin-top: 18px; }
.l-tool .l-tool-run { display: none; }
.l-tool .l-tool-done { display: inline; }
.l-tool .l-tool-run::after {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: 8px;
  vertical-align: -1px;
  border: 1.5px solid color-mix(in srgb, var(--theme-accent) 30%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: cdspin 0.8s linear infinite;
}
.l-prog { display: grid; gap: 12px; }
.l-cin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  border: 1px solid color-mix(in srgb, var(--theme-ink) 16%, transparent);
  background: var(--theme-surface);
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 14px;
  color: var(--muted);
  min-height: 44px;
}
.l-cin .typing { color: var(--ink); }
.l-cin .typing::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 15px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--ink);
  animation: caretblink 0.9s steps(1) infinite;
}
.l-ptext.typing::after { animation: caretblink 0.9s steps(1) infinite; }
.l-send { transition: transform 0.12s ease; }
.l-send.pressed { transform: scale(0.82); }

.v9-stage.anim .l-card {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.12s, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.12s;
}
.v9-stage.anim.st-card .l-card { opacity: 1; transform: none; }
.pill-wrap { display: grid; grid-template-rows: 1fr; }
.pill-clip { min-height: 0; }
.v9-stage.anim .pill-wrap {
  transition: grid-template-rows 0.55s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}
.v9-stage.anim .pill-clip { overflow: hidden; }
.v9-stage.anim.st-card .pill-wrap { grid-template-rows: 0fr; opacity: 0; }
.v9-stage.anim .lx .l-u,
.v9-stage.anim .lx .l-tool,
.v9-stage.anim .lx .l-prog-wrap,
.v9-stage.anim .lx .l-a {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.v9-stage.anim .lx.s-user .l-u { opacity: 1; transform: none; }
.v9-stage.anim .lx.s-tool .l-tool { opacity: 1; transform: none; }
.v9-stage.anim .lx.s-tool:not(.s-answer) .l-tool-run { display: inline; }
.v9-stage.anim .lx.s-tool:not(.s-answer) .l-tool-done { display: none; }
.v9-stage.anim .lx.s-tool .l-prog-wrap { opacity: 1; transform: none; }
.v9-stage.anim .lx.s-tool:not(.s-answer) .l-prog .l-step { opacity: 0; transform: translateY(6px); }
.v9-stage.anim .lx.s-tool .l-prog .l-step { transition: opacity 0.4s ease, transform 0.4s ease; }
.v9-stage.anim .lx.s-tool.p1 .l-prog .l-step:nth-of-type(1) { opacity: 1; transform: none; }
.v9-stage.anim .lx.s-tool.p2 .l-prog .l-step:nth-of-type(2) { opacity: 1; transform: none; }
.v9-stage.anim .lx.s-tool.p3 .l-prog .l-step:nth-of-type(3) { opacity: 1; transform: none; }
.l-bar span { width: 86%; transform-origin: left; }
.v9-stage.anim .lx.s-tool:not(.s-answer) .l-bar span { animation: barGrow 2.4s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
@keyframes barGrow { from { transform: scaleX(0.1); } to { transform: scaleX(1); } }
.l-prog-wrap { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.45s ease, opacity 0.35s ease; }
.l-prog-wrap .l-prog { min-height: 0; overflow: hidden; }
.v9-stage.anim .lx.s-answer .l-prog-wrap { grid-template-rows: 0fr; opacity: 0; }
.v9-stage.anim .lx.s-answer .l-a { opacity: 1; transform: none; }
.v9-stage.anim .lx.s-answer .l-tool { opacity: 1; transform: none; }

/* V12: quiet grid + single warm light */
.v12-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
}
.v12-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--theme-ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--theme-ink) 5%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(90% 70% at 50% 12%, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(90% 70% at 50% 12%, black 25%, transparent 80%);
}

/* V13: split all-caps hero */
.vpage h1.sh, .vpage h2.sh {
  max-width: none;
  width: 100%;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: start;
  gap: 12px clamp(24px, 5vw, 80px);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(1.55rem, 3.6vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: initial;
}
.sh .ln { display: block; white-space: nowrap; }
.sh-l { text-align: left; }
.sh-r { text-align: right; }
@media (max-width: 720px) {
  .vpage h1.sh, .vpage h2.sh { grid-template-columns: 1fr; justify-content: start; }
  .sh-r { justify-self: end; }
}

/* V14: poster type + mosaic bands (Wild-inspired) */
.v14-hero { padding-bottom: clamp(48px, 8vw, 110px); }
.v14-hero .sh { font-size: clamp(2rem, 5.4vw, 5.4rem); }
.mosaic {
  display: block;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  height: clamp(20px, 2.6vw, 32px);
  background-image: url("/img/mosaic.svg");
  background-size: auto 100%;
  background-repeat: repeat-x;
}
.v14-closer { padding-bottom: clamp(20px, 3vw, 40px); }
.v14-closer .sh { font-size: clamp(1.5rem, 3.4vw, 3.2rem); }
.v14-closer .vlead { max-width: 60ch; }

/* V15: cinematic dark terminal atmosphere (Overmind-inspired) */
.v15 { position: relative; z-index: 0; }
.v15-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, color-mix(in srgb, var(--theme-ink) 50%, transparent), transparent 100%),
    radial-gradient(1px 1px at 34% 62%, color-mix(in srgb, var(--theme-ink) 35%, transparent), transparent 100%),
    radial-gradient(1.5px 1.5px at 58% 9%, color-mix(in srgb, var(--theme-ink) 40%, transparent), transparent 100%),
    radial-gradient(1px 1px at 71% 44%, color-mix(in srgb, var(--theme-ink) 30%, transparent), transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 27%, color-mix(in srgb, var(--theme-accent) 40%, transparent), transparent 100%),
    radial-gradient(1px 1px at 22% 84%, color-mix(in srgb, var(--theme-ink) 30%, transparent), transparent 100%),
    radial-gradient(1px 1px at 66% 91%, color-mix(in srgb, var(--theme-ink) 35%, transparent), transparent 100%),
    radial-gradient(1.5px 1.5px at 93% 76%, color-mix(in srgb, var(--theme-ink) 30%, transparent), transparent 100%),
    radial-gradient(1000px 700px at 50% 120%, color-mix(in srgb, var(--theme-accent) 5%, transparent), transparent 70%);
}
.v15-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
}
.v15-hero {
  min-height: 56svh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 8px;
}
.v15-label {
  margin: 0 0 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.vpage h1.v15-lede { max-width: 46ch; }
.v15-lede {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.1vw, 1.5rem);
  line-height: 1.6;
  letter-spacing: -0.01em;
  max-width: 52ch;
  text-transform: none;
}
.v15 .cd { box-shadow: 0 0 0 1px color-mix(in srgb, var(--theme-accent) 7%, transparent), 0 30px 80px rgba(0, 0, 0, 0.6); }
.v15-out {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  padding-bottom: clamp(30px, 4vw, 50px);
}
.v15-out .v15-label { color: var(--muted); margin: 0; }

/* V17: split-screen duet */
.duet { display: grid; gap: 20px; margin-top: clamp(30px, 5vw, 48px); align-items: start; }
@media (min-width: 960px) {
  .duet { grid-template-columns: 1fr 1fr; }
  .duet > div:last-child { transform: translateY(38px); }
}
.duet .cd { grid-template-columns: 1fr; }
.duet-who {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--soft);
}
.duet-who .ava { display: inline-block; }
.duet-who .h { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.duet-cap { margin: 26px 0 0; font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink); }

/* V18: session ticker */
.ticker {
  overflow: hidden;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.ticker + .ticker { border-top: 0; }
.ticker-track {
  display: flex;
  gap: 56px;
  width: max-content;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  animation: tickmove 36s linear infinite;
}
.ticker-rev .ticker-track { animation-duration: 48s; animation-direction: reverse; }
.ticker-track span { display: inline-flex; gap: 8px; }
.ticker-track .who { color: var(--ink); }
.ticker-track b { color: var(--accent); font-weight: 500; }
@keyframes tickmove { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
.v18-mid { margin-top: clamp(40px, 6vw, 72px); }

/* V19: typographic Q&A */
.qa { display: grid; gap: clamp(56px, 9vw, 120px); padding: clamp(44px, 7vw, 90px) 0 0; }
.qa-item { display: grid; justify-items: start; }
.qa-item.right { justify-items: end; }
.qa-q {
  margin: 0;
  font-family: 'Stack Sans Headline', sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 4.6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 18ch;
  text-wrap: balance;
}
.qa-item.right .qa-q { text-align: right; }
.qa-a { margin: 20px 0 0; display: grid; gap: 10px; max-width: 48ch; }
.qa-a p { margin: 0; color: var(--soft); font-weight: 300; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.qa-a p b { color: var(--ink); font-weight: 500; }
.qa-item .qa-a { text-align: left; }
.v19-close { padding-top: clamp(56px, 9vw, 120px); }

/* V20: product-first hero */
.v20-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-bottom: clamp(34px, 5vw, 56px) !important;
}
.v20-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.v20-hero .vlead { max-width: 46ch; }
.v20 .cd-glow { max-width: 980px; margin: 0 auto; }
.v20-out { display: grid; justify-items: center; text-align: center; }

/* V21: scroll story with pinned window */
.scrolly { margin-top: clamp(30px, 5vw, 56px); }
.scrolly-steps .step { max-width: 44ch; padding: clamp(24px, 4vw, 40px) 0; }
.step h3 {
  margin: 0;
  font-family: 'Stack Sans Headline', sans-serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.15;
  color: var(--ink);
}
.step p { margin: 10px 0 0; font-weight: 300; color: var(--soft); max-width: 40ch; }
@media (min-width: 960px) {
  .scrolly { display: grid; grid-template-columns: minmax(0, 2fr) minmax(480px, 3fr); gap: clamp(28px, 4vw, 72px); }
  .scrolly-steps { order: -1; }
  .scrolly.js .scrolly-steps .step { min-height: 78vh; display: grid; align-content: center; padding: 0; }
  .scrolly.js .step { opacity: 0.35; transition: opacity 0.4s ease; }
  .scrolly.js .step.on { opacity: 1; }
  .scrolly-sticky { position: sticky; top: 0; height: 100svh; display: grid; align-content: center; }
  .scrolly.js .sc-ex {
    grid-area: 1 / 1;
    align-content: start;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1), transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
  }
  .scrolly.js .sc-ex.on { opacity: 1; transform: none; }
}
@media (max-width: 959px) { .scrolly-sticky { margin-top: 10px; } }

/* V22: one exchange at poster scale */
.v22-hero { padding-bottom: clamp(40px, 6vw, 72px) !important; }
.v22-hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
.bigx { display: grid; gap: clamp(18px, 3vw, 28px); max-width: 820px; }
.big-u {
  justify-self: end;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: clamp(14px, 2vw, 22px) clamp(20px, 3vw, 34px);
  background: var(--theme-surface-raised);
  border: 1px solid color-mix(in srgb, var(--theme-ink) 12%, transparent);
  color: var(--ink);
  border-radius: 22px;
  font-family: 'Stack Sans Headline', sans-serif;
  font-size: clamp(1.3rem, 2.8vw, 2.1rem);
  line-height: 1.15;
}
.big-tool { font-size: 14px; }
.big-a { margin: 0; padding: 0; list-style: none; display: grid; gap: clamp(14px, 2vw, 20px); }
.big-a li { display: flex; align-items: center; gap: 14px; }
.big-a li span {
  font-size: clamp(1.15rem, 2.3vw, 1.7rem);
  line-height: 1.35;
  font-weight: 300;
  color: var(--soft);
}
.big-a b { color: var(--ink); font-weight: 500; }
.big-a code { font-size: 0.8em; }
.bigx.anim .big-u,
.bigx.anim .big-tool,
.bigx.anim .rv {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s cubic-bezier(0.25, 1, 0.5, 1), transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}
.bigx.anim.s-user .big-u { opacity: 1; transform: none; }
.bigx.anim.s-tool .big-tool { opacity: 1; transform: none; }
.bigx.anim.s-tool:not(.s-answer) .cd-tool-run { display: inline; }
.bigx.anim.s-tool:not(.s-answer) .cd-tool-done { display: none; }
.bigx.anim.s-answer .rv { opacity: 1; transform: none; }
.bigx.anim.s-answer .rv:nth-child(2) { transition-delay: 0.18s; }
.bigx.anim.s-answer .rv:nth-child(3) { transition-delay: 0.36s; }
.v22-out .vkicker { max-width: 54ch; }

/* Holographic conversation cards (v6) */
.holo {
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
  transition: transform 0.16s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}
.holo:hover {
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
  z-index: 10;
}
.holo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(380px circle at var(--mx) var(--my), color-mix(in srgb, var(--theme-ink-strong) 16%, transparent), transparent 58%);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.holo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 24%,
    color-mix(in srgb, var(--theme-accent) 12%, transparent) 38%,
    color-mix(in srgb, var(--theme-ink-strong) 14%, transparent) 47%,
    color-mix(in srgb, var(--theme-accent-hover) 14%, transparent) 55%,
    color-mix(in srgb, var(--theme-ink-muted) 10%, transparent) 63%,
    transparent 76%
  );
  background-size: 230% 230%;
  background-position: var(--mx) var(--my);
  mix-blend-mode: color-dodge;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.holo:hover::before,
.holo:hover::after { opacity: 1; }

/* One-time glint sweep after the cards land, hinting they respond to hover.
   Transform-only so it runs on the compositor and stays smooth. */
.glint {
  position: absolute;
  top: -45%;
  bottom: -45%;
  left: 0;
  width: 46%;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent,
    color-mix(in srgb, var(--theme-accent-hover) 3.5%, transparent) 30%,
    color-mix(in srgb, var(--theme-ink-strong) 5%, transparent) 50%,
    color-mix(in srgb, var(--theme-accent) 3%, transparent) 70%,
    transparent
  );
  transform: translateX(-140%) rotate(9deg);
  opacity: 0;
  will-change: transform;
}
.feeders.in .holo .glint { animation: glintSweep 1.7s ease-in-out 1.1s both; }
.feeders.in .holo:nth-child(2) .glint { animation-delay: 1.35s; }
.feeders.in .holo:nth-child(3) .glint { animation-delay: 1.6s; }

/* The cards themselves breathe slightly as their glint passes */
.feeders.in .holo { animation: feedin 0.55s cubic-bezier(0.25, 1, 0.5, 1) backwards, cardNudge 1.7s ease-in-out 1.1s; }
.feeders.in .holo:nth-child(2) { animation-delay: 0.12s, 1.35s; }
.feeders.in .holo:nth-child(3) { animation-delay: 0.24s, 1.6s; }
@keyframes cardNudge {
  0%, 100% { transform: rotate(var(--tilt, 0deg)); }
  45% { transform: perspective(750px) translateY(-4px) rotateX(1.6deg) rotateY(-1.6deg) rotate(var(--tilt, 0deg)); }
}
@media (prefers-reduced-motion: reduce) { .feeders.in .holo { animation: none; } }
@keyframes glintSweep {
  0% { transform: translateX(-140%) rotate(9deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(400%) rotate(9deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .holo::before, .holo::after, .glint { display: none; }
}

/* Extra air under a hero */
.roomy { padding-bottom: clamp(72px, 11vw, 160px) !important; }

/* V7: pixelation as accent, V8: full pixel-art */
.v7px .ava, .v8px .ava, .v7px .ava-s, .v8px .ava-s { image-rendering: pixelated; }
.v7px .feeder, .v8px .feeder, .v7px .cd, .v8px .cd {
  border-radius: 0;
  clip-path: polygon(
    0 16px, 8px 16px, 8px 8px, 16px 8px, 16px 0,
    calc(100% - 16px) 0, calc(100% - 16px) 8px, calc(100% - 8px) 8px, calc(100% - 8px) 16px, 100% 16px,
    100% calc(100% - 16px), calc(100% - 8px) calc(100% - 16px), calc(100% - 8px) calc(100% - 8px), calc(100% - 16px) calc(100% - 8px), calc(100% - 16px) 100%,
    16px 100%, 16px calc(100% - 8px), 8px calc(100% - 8px), 8px calc(100% - 16px), 0 calc(100% - 16px)
  );
}
.v7px .cd-u, .v8px .cd-u, .v7px .f-q, .v8px .f-q { border-radius: 0; }
.v7px .cta, .v8px .cta { border-radius: 0; }
.v7px .beams path, .v8px .beams path, .v7px .beams-down path, .v8px .beams-down path {
  stroke-dasharray: 4 6;
  stroke-linecap: butt;
}
.v8px h1, .v8px h2, .v8px .cta, .v8px .feeder-name, .v8px .cd-brand, .v8px .cd-title, .v8px .vkicker, .v8px .mcp-word {
  font-family: 'Pixelify Sans', 'Stack Sans Headline', sans-serif;
}
.v8px h1 { letter-spacing: 0; }
.v8px .cd-chat, .v8px .cd-composer { filter: url(#pxf); }


/* Feedback annotations: a pulsing dot + note marking what changed and why */
.fb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
}
.fb-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: fbpulse 2s ease-out infinite;
}
@keyframes fbpulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}
@media (prefers-reduced-motion: reduce) { .fb-dot { animation: none; } }

/* Question picker (Allen: front the questions, let the buyer choose) */
.qchips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.qchips button {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--soft);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.qchips button:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.qchips button:focus-visible { outline: 2px solid var(--cta-hover); outline-offset: 2px; }
.qchips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--cta-ink); }
.qstack { align-content: start; min-height: clamp(400px, 48vh, 560px); }
.qpick.js .qstack .ex {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}
.qpick.js .qstack .ex.on { opacity: 1; transform: none; }

/* The session that stays local (Allen: show what does NOT go in) */
.feeder-local { opacity: 0.55; }
.feeder-local .flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  width: fit-content;
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}
@media (min-width: 880px) { .feeders-4 { grid-template-columns: repeat(4, 1fr); } }

/* The dealt pile (Allen, Sep 2: a pile not worth reading, overlapping by half).
   Who and which agent stay readable on every card; the rest is glimpsed. Each
   card carries its resting tilt in --tilt so the holo hover can build on it.
   Phone and tablet: a vertical stack, each card peeking out from under the
   next, private card first (most covered) so it never sits on the trunk. */
.feeders-pile {
  --pile-layer-highlighted: 20;
  --pile-layer-hovered: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.feeders-pile .feeder {
  width: min(100%, 330px);
  --tilt: 0deg;
  transform: rotate(var(--tilt));
  background: color-mix(in srgb, var(--theme-surface-raised) 84%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}
.feeders-pile .feeder-h { margin-left: 0; padding-left: 9px; border-left: 1px solid var(--line); }
/* The private card sits under the stack on the right, so its identity lives on its right edge */
.feeders-pile .feeder-local .feeder-who { justify-content: flex-end; }
.feeders-pile .feeder-local .flag { margin-left: auto; }
.feeders-pile .feeder-local { order: -1; z-index: 1; --tilt: -1.5deg; }
.feeders-pile .feeder:nth-child(1) { margin-top: -78px; z-index: 2; --tilt: 1.2deg; }
.feeders-pile .feeder:nth-child(2) { margin-top: -78px; z-index: 3; --tilt: -1deg; }
.feeders-pile .feeder:nth-child(3) { margin-top: -78px; z-index: 4; --tilt: 0.8deg; }
.feeders-pile .feeder:nth-child(4) { margin-top: -78px; z-index: 5; --tilt: -0.8deg; }
.feeders-pile .feeder:nth-child(5) { margin-top: -78px; z-index: 6; --tilt: 1deg; }
/* Initials stand in for a teammate with no photo yet */
.ava-i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--theme-surface-raised-strong); color: var(--theme-ink-strong); font-size: 12px; font-weight: 600; }
/* The cards an answer drew on rise to the top of the pile and light up while Powerplant reads them */
.feeders-pile .feeder { transition: transform 0.16s ease-out, border-color 0.35s ease, box-shadow 0.35s ease, translate 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.feeders-pile .feeder.lit {
  z-index: var(--pile-layer-highlighted);
  translate: 0 -16px;
  border-color: var(--hl-strong);
  box-shadow: 0 0 0 1px var(--hl-strong), 0 0 32px color-mix(in srgb, var(--hl) 28%, transparent), 0 14px 34px rgba(0, 0, 0, 0.42);
}
@media (min-width: 1200px) {
  /* Five work cards (300 wide, 150 step: half of each showing) plus the private one tucked 180
     under the last, centred as one 1080px group so the trunk rises from the middle of the pile. */
  .feeders-pile { display: block; position: relative; }
  .feeders-pile .feeder { position: absolute; width: 300px; margin: 0; }
  .feeders-pile .feeder:nth-child(1) { left: calc(50% - 540px); top: 14px; margin-top: 0; --tilt: -3deg; }
  .feeders-pile .feeder:nth-child(2) { left: calc(50% - 390px); top: 6px; margin-top: 0; --tilt: -1.5deg; }
  /* This card stays in flow so the pile is exactly as tall as it is and the trunk meets its edge */
  .feeders-pile .feeder:nth-child(3) { position: relative; left: calc(50% - 240px); top: 2px; margin-top: 0; --tilt: 0deg; }
  .feeders-pile .feeder:nth-child(4) { left: calc(50% - 90px); top: 6px; margin-top: 0; --tilt: 1.5deg; }
  .feeders-pile .feeder:nth-child(5) { left: calc(50% + 60px); top: 14px; margin-top: 0; --tilt: 3deg; }
  /* Sits a little lower than the work cards, as on the round-three canvas */
  .feeders-pile .feeder-local { left: calc(50% + 240px); top: 26px; --tilt: 4deg; }
  /* Half a card shows, so agent names give way to their marks unless the card is on top */
  .feeders-pile .feeder:not(:nth-child(5)):not(.lit) .feeder-h-t { display: none; }
  .feeders-pile .feeder:not(:nth-child(5)):not(.lit) .feeder-h { padding-left: 8px; }
}
/* Hover must stay above highlighted cards; lowering a lit card switches the
   pointer target to its neighbour and makes the overlapping cards flutter. */
.feeders-pile .holo:hover { z-index: var(--pile-layer-hovered); }

/* Claude caricature (Allen, Sep 1: window must read as Claude, not our app).
   Claude dark palette: Crail coral #D97757, Pampas #F4F3EE, Cloudy #B1ADA1,
   warm charcoal grounds, serif wordmark. Powerplant gold appears only on
   powerplant elements (the tag and the MCP tool line). */
.cd {
  --cl-bg: #1b1a16;
  --cl-side: #151410;
  --cl-raised: #2b2925;
  --cl-field: #201f1b;
  --cl-ink: #f4f3ee;
  --cl-muted: #b1ada1;
  --cl-faint: #8b877c;
  --cl-coral: #d97757;
  --cl-line: rgba(244, 243, 238, 0.09);
  background: var(--cl-bg);
  border-color: var(--cl-line);
  color: var(--cl-ink);
}
.cd-side { background: var(--cl-side); border-right-color: var(--cl-line); color: var(--cl-muted); }
.cd-new, .cd-user { color: var(--cl-ink); }
.cd-side-label { color: var(--cl-faint); }
.cd-sess { color: var(--cl-muted); }
.cd-sess-active { background: rgba(244, 243, 238, 0.07); color: var(--cl-ink); }
.cd-bar { border-bottom-color: var(--cl-line); }
.cd-brand {
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--cl-ink);
}
.cd-side .cd-brand { display: flex; align-items: center; gap: 8px; padding: 2px 6px 12px; font-size: 17px; }
.cd-side .cd-brand .cd-seg { margin-left: auto; }
.cd-user .cd-ava img { border-radius: 50%; display: block; }
.cd-title { color: var(--cl-muted); }
.cd .mock-tag { color: var(--cl-faint); border-color: var(--cl-line); }
.cd-u { background: var(--cl-raised); color: var(--cl-ink); }
.cd-a { color: color-mix(in srgb, var(--cl-ink) 86%, transparent); }
.cd-a b, .cd-a .a-list b { color: var(--cl-ink); }
.cd-a code { background: rgba(244, 243, 238, 0.08); color: var(--cl-ink); }
.cd-tool { color: var(--cl-muted); }
.cd-input { background: var(--cl-field); border-color: var(--cl-line); color: var(--cl-faint); }
.cd-input .typing { color: var(--cl-ink); }
.cd-enter, .cd-input-row { color: var(--cl-faint); }

/* Private session card: unmistakably not uploading */
.feeder-local { opacity: 0.65; border-style: dashed; }
.feeder-local .flag { color: var(--soft); border-style: dashed; gap: 5px; }
.feeder-local .flag svg, .feeder-local .feeder-h svg { flex: none; }


/* Story labels + jade highlight (Erica's updated scheme: jade for highlights,
   gold stays reserved for the brand itself: logo, CTA, powerplant elements) */
.vpage h2.story {
  margin: clamp(48px, 7vw, 80px) 0 18px;
  font-family: 'Stack Sans Headline', sans-serif;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  line-height: 1.15;
  color: var(--ink);
}
.vj { --hl: var(--palette-holly-400); --hl-strong: var(--palette-holly-500); --hl-ink: var(--palette-holly-50); }
.hl-j, .vpage h2 .hl-j, .vpage h1 .hl-j { color: var(--hl); }
.vj .strike::after { background: var(--hl-strong); }
.vj .beams path, .vj .beams-down path { stroke: var(--hl-strong); }
.vj .qchips button:hover { border-color: color-mix(in srgb, var(--hl-strong) 60%, transparent); }
.vj .qchips button[aria-pressed="true"] { background: var(--hl-strong); border-color: var(--hl-strong); color: var(--hl-ink); }
.vj .qchips button:focus-visible { outline-color: var(--hl); }


/* Question chips as in-app suggestions, beside the composer (Claude-style) */
.cd .qchips {
  margin: 0;
  padding: 14px clamp(16px, 3vw, 30px) 0;
  pointer-events: auto;
}
.cd .qchips button {
  font-size: 12.5px;
  padding: 7px 14px;
  background: var(--cl-field);
  border: 1px solid var(--cl-line);
  color: var(--cl-muted);
}
.cd .qchips button:hover { color: var(--cl-ink); border-color: color-mix(in srgb, var(--hl-strong) 60%, transparent); }
.cd .qchips button[aria-pressed="true"] { background: var(--hl-strong); border-color: var(--hl-strong); color: var(--hl-ink); }


/* Connector section: the dotted line runs from the MCP node straight into the
   window below; the story heading sits to the left of the line */
.drop-sec {
  position: relative;
  padding: clamp(20px, 3vw, 32px) 0 14px;
}
.drop-sec .beams-down {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  margin: 0;
  transform: translateX(-50%);
}
.drop-sec .story { position: relative; margin: 0; max-width: 44%; }


/* Real-app title bar pieces */
.cd-lap { color: var(--cl-muted); flex: none; }
.cd-bar .cd-title { margin-left: 2px; font-size: 13.5px; font-weight: 500; color: var(--cl-ink); }
.cd-repo {
  font-size: 12px;
  color: var(--cl-muted);
  background: rgba(244, 243, 238, 0.1);
  border-radius: 999px;
  padding: 2px 10px;
}
.cd-icons { display: inline-flex; align-items: center; gap: 14px; margin-left: 14px; color: var(--cl-faint); }
.cd-icons svg { display: block; }
.cd-icons .ic { position: relative; display: inline-flex; }
.cd-icons .ic i {
  position: absolute;
  top: -2px;
  right: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}


/* Hero with Erica's context-stack illustration */
.vhero { display: grid; gap: 32px; align-items: center; padding-top: clamp(32px, 5vw, 72px) !important; }
@media (min-width: 960px) { .vhero { grid-template-columns: minmax(0, 12fr) minmax(0, 8fr); } }
.vhero-art { display: block; width: min(100%, 448px); height: auto; margin: 0 auto; }

/* Keep the app names together beside the hero CTA when there is room. */
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 26px; }
.vpage .hero-actions .cta { margin-top: 0; }
.hero-actions .works { display: grid; gap: 6px; }
.hero-actions .works-l { color: var(--theme-ink-muted); }
.hero-actions .works-apps { display: flex; align-items: center; gap: 14px; }
.hero-actions .works-i { gap: 6px; white-space: nowrap; }
.hero-actions .works-i img { width: 20px; height: 20px; }
@media (min-width: 600px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .vpage .hero-actions .cta { width: auto; flex-shrink: 0; }
}

/* Align rows (header / prompt / answer / badge) across the four-column cards (v2, v6 to v8) */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 880px) {
    .feeders-4 .feeder-convo {
      grid-template-rows: subgrid;
      grid-row: span 4;
      align-content: start;
    }
    .feeders-4 .feeder-convo .f-q { align-self: start; }
  }
}

/* Works-in rail: a row under the window on phones, a gutter beside it from 960px */
.cd-row { display: flex; flex-direction: column; }
.cd-row .works { margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.works-l { margin: 0; flex-basis: 100%; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--theme-ink-faint); }
.works-i { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--soft); }
.works-i img { display: block; width: 20px; height: 20px; }
@media (min-width: 960px) {
  .cd-row { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: start; }
  .cd-row .works { margin: 6px 0 0; flex-direction: column; align-items: flex-start; gap: 14px; }
  .works-l { flex-basis: auto; }
  .works-i img { width: 22px; height: 22px; }
}


/* Chip-to-composer spacing, send-press feedback, Claude-native active chip */
.cd .qchips { padding-bottom: 12px; }
.cd .cd-composer { padding-top: 2px; }
.cd-enter { transition: transform 0.12s ease, color 0.12s ease; }
.cd-enter.pressed { color: var(--hl-strong, var(--cl-ink)); transform: scale(1.2); }

/* Harness toggle (v7): Claude vs Codex */
.htoggle { display: flex; gap: 8px; margin: 0 0 14px; }
.htoggle button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--soft);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
}
.htoggle button img { display: block; }
.htoggle button[aria-pressed="true"] { background: var(--theme-surface-raised-strong); border-color: var(--soft); color: var(--ink); }
.htoggle button:focus-visible { outline: 2px solid var(--cta-hover); outline-offset: 2px; }

/* Codex skin: near-exact Codex CLI, mildly simplified */
.cd[data-h="codex"] {
  --cl-bg: #0e0e0e;
  --cl-side: #0a0a0a;
  --cl-raised: #1b1b1b;
  --cl-field: #141414;
  --cl-ink: #ececec;
  --cl-muted: #9a9a9a;
  --cl-faint: #6e6e6e;
  --cl-coral: #ececec;
  --cl-line: rgba(255, 255, 255, 0.1);
  grid-template-columns: 1fr !important;
}
.cd[data-h="codex"] .cd-side { display: none !important; }
.cd[data-h="codex"] .cd-bar .tl { display: inline-block; }
.cd[data-h="codex"] .cd-chat,
.cd[data-h="codex"] .cd-composer,
.cd[data-h="codex"] .cd-bar {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.cd[data-h="codex"] .cd-u {
  background: transparent;
  border-radius: 0;
  padding: 0 0 0 20px;
  position: relative;
  justify-self: start;
  font-weight: 600;
}
.cd[data-h="codex"] .cd-u::before { content: "\203A"; position: absolute; left: 2px; color: var(--cl-faint); }
.cd[data-h="codex"] .cd-input { border-radius: 6px; }
.cd[data-h="codex"] .qchips button { border-radius: 6px; font-family: inherit; }
.hb-codex { display: none; }
.cd[data-h="codex"] .hb-claude { display: none !important; }
.cd[data-h="codex"] .hb-codex { display: inline-flex; align-items: center; gap: 7px; }


/* Dynamic trace from the node to the selected pill (v6/v7/v8) */
.qlink { position: relative; height: clamp(60px, 8.5vw, 100px); }
.qlink2 { height: clamp(26px, 4vw, 44px); margin-bottom: 2px; }
.qlink svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.qlink path {
  fill: none;
  stroke: var(--hl-strong, var(--accent));
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
  opacity: 0.55;
  stroke-dasharray: 1 9;
  animation: beamflow 1.4s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .qlink path { animation: none; stroke-dasharray: none; opacity: 0.3; } }
.qpick > .qchips { justify-content: center; margin-bottom: 18px; position: relative; z-index: 1; }


/* Chat/code segmented control in the window bar */
.cd-seg {
  display: inline-flex;
  margin-left: 10px;
  background: var(--cl-field);
  border: 1px solid var(--cl-line);
  border-radius: 9px;
  padding: 2px;
}
.cd-seg .seg { position: relative; display: inline-flex; padding: 4px 9px; border-radius: 7px; color: var(--cl-faint); }
.cd-seg .seg.on { background: var(--cl-raised); color: var(--cl-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.cd-seg .segdot { position: absolute; top: 2px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Light-mode Claude window on the dark page (v8) */
.cd-light {
  --cl-bg: #faf9f5;
  --cl-side: #f0efe9;
  --cl-raised: #e9e6dd;
  --cl-field: #f2f1ec;
  --cl-ink: #2d2c28;
  --cl-muted: #6f6c64;
  --cl-faint: #98948a;
  --cl-line: rgba(45, 44, 40, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
}
.cd-light .cd-sess-active { background: rgba(45, 44, 40, 0.08); }
.cd-light .cd-a code { background: rgba(45, 44, 40, 0.08); }
.cd-light .cd-tool svg { fill: var(--palette-golden-600); }
.cd-light .cd-tool b { color: var(--palette-golden-600); }
.cd-light .cd-seg .seg.on { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); background: #ffffff; }


/* Sidebar item icons */
.cd-new, .cd-side-item { display: flex; align-items: center; gap: 9px; }
.cd-side-item svg { flex: none; color: var(--cl-faint); }
.s-plus {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cl-ink) 12%, transparent);
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  color: var(--cl-ink);
}


/* PR status chip above the composer */
.cd-pr {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 12px clamp(16px, 3vw, 30px) 0;
  padding: 9px 14px;
  background: var(--cl-field);
  border: 1px solid var(--cl-line);
  border-radius: 12px;
  font-size: 13px;
  color: var(--cl-muted);
}
.cd-pr .pr-ic { color: #3fb950; flex: none; }
.pr-repo { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-num { color: var(--cl-ink); font-weight: 500; }
.pr-diff .add { color: #3fb950; font-weight: 600; }
.pr-diff .del { color: #f85149; font-weight: 600; }
.pr-ci {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  background: var(--cl-raised);
  border-radius: 8px;
  padding: 4px 10px;
  color: var(--cl-ink);
  font-weight: 500;
}
.pr-ci i { width: 7px; height: 7px; border-radius: 50%; background: #f85149; }
.pr-x { color: var(--cl-faint); font-size: 16px; line-height: 1; }
.cd-light .pr-diff .add, .cd-light .cd-pr .pr-ic { color: #1a7f37; }
.cd-light .pr-diff .del { color: #cf222e; }


/* Chonky control-panel buttons: a face over an edge; the selected one is pressed in */
.qpick { --chip-face: var(--palette-greyscale-700); --chip-hover: var(--palette-greyscale-600); --chip-edge: var(--palette-greyscale-900); --chip-outline: color-mix(in srgb, var(--ink) 14%, transparent); }
.qpick > .qchips { gap: 14px; margin-bottom: 8px; }
.qpick > .qchips button {
  background: var(--chip-face);
  border: 1px solid var(--chip-outline);
  color: var(--ink);
  padding: 12px 22px;
  box-shadow: 0 5px 0 var(--chip-edge);
  transform: translateY(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.15s ease, color 0.15s ease;
}
.qpick > .qchips button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 0 var(--chip-edge);
  background: var(--chip-hover);
  border-color: var(--chip-outline);
  color: var(--ink);
}
.qpick > .qchips button[aria-pressed="true"],
.qpick > .qchips button:active {
  background: var(--hl-strong);
  border-color: var(--palette-holly-700);
  color: var(--hl-ink);
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--palette-holly-700), inset 0 2px 5px rgba(0, 0, 0, 0.28);
}
@media (prefers-reduced-motion: reduce) { .qpick > .qchips button { transition: none; } }

/* Electricity: glowing core with sparks racing along the traces */
.beams path.spark, .qlink path.spark, .qlink path.glow { display: none; }
.qlink path.glow, .qlink path.core { }
.qlink path.glow {
  stroke-width: 6;
  opacity: 0.12;
  stroke-dasharray: none;
  animation: none;
  filter: blur(2px);
}
.beams path.spark, .qlink path.spark {
  stroke: var(--palette-holly-200);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.95;
  stroke-dasharray: 16 640;
  stroke-dashoffset: 656;
  animation: sparkrun 1.7s linear infinite;
  filter: drop-shadow(0 0 4px var(--palette-holly-300));
}
.beams path.spark:nth-of-type(7) { animation-delay: 0.55s; }
.beams path.spark:nth-of-type(8) { animation-delay: 1.1s; }
.qlink2 path.spark { animation-delay: 0.85s; }
@keyframes sparkrun { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .beams path.spark, .qlink path.spark { animation: none; opacity: 0; }
  .beams path, .beams-down path, .qlink path { filter: none; }
}


/* Brand footer: raised panel, bolt top-left, wordmark running along the bottom */
footer.ft {
  display: block;
  margin-top: clamp(48px, 7vw, 96px);
  padding: clamp(40px, 5vw, 64px) clamp(20px, 5vw, 64px) 0;
  background: var(--palette-greyscale-900);
  border-top: 0;
  overflow: hidden;
}
.ft-inner { max-width: 1152px; margin: 0 auto; }
.ft-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ft-bolt { display: block; width: 44px; height: 44px; }
.ft-copy { margin: clamp(28px, 4vw, 52px) 0 0; font-size: 12.5px; color: var(--muted); }
.ft-copy a { color: inherit; text-decoration: none; }
.ft-word {
  margin: clamp(8px, 2vw, 20px) 0 0;
  font-family: 'Stack Sans Headline', sans-serif;
  font-weight: 700;
  font-size: clamp(4.5rem, 17.6vw, 16rem);
  line-height: 0.8;
  letter-spacing: -0.035em;
  color: var(--accent);
  text-align: center;
  white-space: nowrap;
  transform: translateY(0.04em);
  user-select: none;
}
.ft-word .t { font-family: 'Stack Sans Notch', sans-serif; }


/* Tablet and small laptops: six chips as an even three-by-two panel, never five and an orphan */
@media (min-width: 721px) and (max-width: 1279px) {
  .qpick > .qchips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; max-width: 760px; margin-left: auto; margin-right: auto; }
  .qpick > .qchips button { text-align: center; padding-left: 12px; padding-right: 12px; }
}

/* Mobile: less chrome, same story */
@media (max-width: 720px) {
  .cd-icons, .cd-repo, .cd-pr { display: none; }
  .cd-bar { gap: 8px; padding: 11px 14px; }
  .cd-bar .cd-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 0; }
  .cd .mock-tag { margin-left: 0; }
  .qlink { height: 56px; }
  /* Even two-column grid so the chips read as one control panel, not a ragged wrap */
  .qpick > .qchips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; margin: 18px 0 14px; }
  .qpick > .qchips button { padding: 11px 8px; font-size: 13px; text-align: center; }
  .cd-chat { padding: 16px 14px; }
  .qstack { min-height: 300px; }
  .cd-input { font-size: 13.5px; padding: 11px 13px; }
  .cd-input-row { font-size: 11px; }
  .vhero-art { width: min(100%, 320px); }
  .feeders { margin-top: clamp(36px, 8vw, 56px); }
}
/* Four-column feeders (v2, v6 to v8): the bus collapses to one trunk from the stack into the node */
.beams-sq path.mob { display: none; }
@media (max-width: 879px) {
  .beams-sq path:not(.mob) { display: none; }
  .beams-sq path.mob { display: block; }
  /* the private card must not sit on the trunk into powerplant */
  .feeders-4 .feeder-local { order: -1; }
}
@media (max-width: 420px) {
  .cd .mock-tag { display: none; }
  .ft-word { font-size: 18vw; }
}

/* Variant switcher */
.vnav {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--theme-surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12.5px;
}
.vnav span { color: var(--muted); margin-right: 4px; }
.vnav a { color: var(--soft); text-decoration: none; padding: 3px 8px; border-radius: 999px; }
.vnav a:hover { background: color-mix(in srgb, var(--theme-ink) 10%, transparent); color: var(--ink); }
.vnav a[aria-current="page"] { background: var(--accent); color: var(--cta-ink); font-weight: 600; }
.vnav .vnav-live { color: var(--accent); }
