html,
body {
  overflow-x: clip;
}
/* lore.dev — the homepage. Same tokens as the report. */

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}
a {
  color: inherit;
}
code {
  font-family: var(--mono);
  font-size: 0.88em;
}
h2 {
  font-weight: 300;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 14px 0 16px;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  /* solid, not blurred: a backdrop blur re-renders on every scroll frame */
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  border-bottom: 1px solid var(--rule);
}
.nav .wordmark {
  font-size: 20px;
}
.wordmark.small {
  font-size: 15px;
}
.nav-in {
  max-width: 1240px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
}
.links {
  display: flex;
  gap: 22px;
  flex: 1;
  justify-content: center;
}
.links a {
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
}
.links a:hover {
  color: var(--ink);
}

/* the command button, everywhere */
.cmd {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 8px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.1s;
}
.cmd:active {
  transform: translateY(1px);
}
.cmd .dollar {
  color: var(--accent);
}
.cmd .copy {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 16%, transparent);
  color: color-mix(in srgb, var(--bg) 80%, transparent);
}
.cmd.small {
  height: 34px;
  font-size: 12.5px;
  padding-left: 12px;
}
.cmd.small .copy {
  display: none;
}
.cmd.big {
  height: 56px;
  font-size: 17px;
  padding-left: 22px;
}
.cmd.copied .copy {
  background: var(--good);
  color: #fff;
}
.btn-link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 6px;
}
.btn-link:hover {
  color: var(--accent-ink);
}

/* run it: the command, or a prompt for your agent */
.run {
  margin-bottom: 16px;
  max-width: 34em;
}
.run-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
}
.run-tabs button {
  border: 0;
  background: none;
  padding: 6px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
}
.run-tabs button[aria-selected="true"] {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
/* the big run box sits centered: the toggle and the command share one axis */
.final-run {
  margin: 0 auto 16px;
  text-align: left;
}
.final-run .run-tabs {
  display: flex;
  width: max-content;
  margin: 0 auto 14px;
}
.final-run [data-pane="term"] {
  text-align: center;
}

/* frame and bands: the dashed rails */
.frame {
  max-width: 1240px;
  margin: 0 auto;
  border-left: 1px dashed var(--rail);
  border-right: 1px dashed var(--rail);
}
/* windows raise themselves when touched; this keeps every one of them under the nav */
main.frame {
  isolation: isolate;
}
.band {
  position: relative;
  padding: 88px 56px;
  border-bottom: 1px dashed var(--rail);
}
.band::before,
.band::after {
  content: "+";
  position: absolute;
  bottom: -9px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1;
  color: var(--ink-4);
  background: var(--bg);
  padding: 2px 0;
}
.band::before {
  left: -4.5px;
}
.band::after {
  right: -4.5px;
}
.label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.label b {
  color: var(--accent);
  font-weight: 500;
  margin-right: 8px;
}
.fine {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}
.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 40px;
}
.split-head p {
  color: var(--ink-2);
  font-size: 16px;
  margin: 0 0 18px;
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 56px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 190px;
  overflow: hidden;
}
.hero h1 {
  font-weight: 300;
  font-size: clamp(46px, 6.2vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 22px 0 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .sub {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 32em;
  margin: 0 0 30px;
}
.cta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-copy,
.hero-visual {
  position: relative;
  z-index: 2;
}
.hero-visual {
  position: relative;
  min-height: 460px;
}
.term {
  position: relative;
  z-index: 2;
  width: 92%;
  background: var(--term-bg);
  color: var(--term-ink);
  border: 1px solid var(--term-line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.term.dragging {
  box-shadow:
    0 2px 4px rgba(11, 11, 10, 0.05),
    0 40px 80px -30px rgba(11, 11, 10, 0.35);
}
.term-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--term-line);
  background: var(--term-bar);
  user-select: none;
}
.term-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}
.term-bar i:nth-child(2) {
  background: #febc2e;
}
.term-bar i:nth-child(3) {
  background: #28c840;
}
.term-bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--term-dim);
}
.term-bar b {
  margin-left: auto;
  color: var(--ink-4);
  font-weight: 400;
  font-size: 14px;
}
.term pre {
  margin: 0;
  padding: 16px 18px 20px;
  min-height: 330px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--term-ink);
  white-space: pre;
  overflow-x: auto;
}
.term .p,
.term b {
  color: var(--ink);
  font-weight: 500;
}
.term .g {
  color: var(--term-green);
}
.term .a {
  color: var(--accent);
}
.term .d {
  color: var(--term-dim);
}
.term .w {
  color: var(--warn);
}
.term .caret {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: var(--ink);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
.hero-card {
  position: absolute;
  z-index: 3;
  right: -28px;
  bottom: -170px;
  width: 240px;
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(11, 11, 10, 0.45);
  transform: rotate(4deg) translateY(30px);
  opacity: 0;
  transition:
    opacity 0.8s,
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-card.in {
  opacity: 1;
  transform: rotate(4deg) translateY(0);
}
.dither {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 230px;
  z-index: 1;
  image-rendering: pixelated;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 80%);
  mask-image: linear-gradient(to bottom, transparent, #000 80%);
}

/* episodes */
.ep-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
  margin-top: 8px;
}
.ep-grid .body {
  color: var(--ink-2);
  font-size: 16px;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 8px;
}
.ticks li {
  font-size: 14px;
  color: var(--ink-2);
}
.ticks li::before {
  content: "✓";
  color: var(--good);
  margin-right: 10px;
}
.ep-mock {
  border: 1px solid var(--rule-2);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.ep-mock .row {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 6px;
}
.ep-mock .who {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ep-mock .steer {
  background: color-mix(in srgb, var(--accent-wash) 70%, var(--card));
}
.ep-mock .steer .who {
  color: var(--accent-ink);
}
.ep-mock .steer .txt {
  font-size: 17px;
}
.ep-mock pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow-x: auto;
}
.ep-mock pre > span {
  display: block;
  padding: 0 10px;
  /* rows keep their color when a long line scrolls */
  min-width: 100%;
  width: max-content;
}
.ep-mock pre .add {
  background: color-mix(in srgb, var(--good) 11%, transparent);
  color: color-mix(in srgb, var(--good) 75%, var(--ink));
}
.ep-mock pre .del {
  background: color-mix(in srgb, var(--bad) 10%, transparent);
  color: color-mix(in srgb, var(--bad) 75%, var(--ink));
}
.ep-mock pre .hdr {
  color: var(--ink-3);
  background: var(--bg-2);
}
.ep-mock .foot-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 18px;
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}
.ep-mock .foot-row .go {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
}
.ep-mock .ev {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
}
.ep-mock .ev b {
  color: var(--good);
  font-weight: 500;
}
.redact {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--ink);
  color: var(--bg);
  border-radius: 4px;
  padding: 0 5px;
}

/* final */
.final {
  text-align: center;
  padding: 110px 24px;
}
.final h2 {
  max-width: 14em;
  margin: 0 auto 28px;
}
.final .fine {
  margin-top: 16px;
}
.foot {
  border-top: 1px solid var(--rule);
}
.foot-in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 24px 40px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-3);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1080px) {
  .hero,
  .ep-grid,
  .split-head {
    /* minmax(0, …): a wide terminal line must not widen the page */
    grid-template-columns: minmax(0, 1fr);
  }
  .links {
    display: none;
  }
  .nav-in {
    justify-content: space-between;
  }
}
@media (max-width: 640px) {
  .band {
    padding: 64px 16px;
  }
  .frame {
    border: 0;
  }
  .band::before,
  .band::after {
    display: none;
  }
  .hero {
    padding-bottom: 120px;
  }
  .hero-visual {
    min-height: 0;
  }
  .term {
    width: 100%;
  }
  .hero-card {
    /* in the flow under the terminal, so it never covers the last line */
    position: relative;
    display: block;
    width: 180px;
    right: auto;
    bottom: auto;
    margin: -28px 6px 0 auto;
  }
  .hero {
    padding-bottom: 90px;
  }
  .foot-in {
    flex-direction: column;
    align-items: flex-start;
  }
  .cmd.big {
    font-size: 15px;
  }
}

/* card strip */
.card-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 232px;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 18px;
  scrollbar-width: thin;
}
.strip-card {
  margin: 0;
  scroll-snap-align: start;
  display: grid;
  gap: 8px;
}
.sc-img {
  aspect-ratio: 1080 / 1350;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.strip-card:nth-child(odd) .sc-img {
  transform: rotate(-0.8deg);
}
.strip-card:nth-child(even) .sc-img {
  transform: rotate(0.8deg) translateY(6px);
}
.strip-card:hover .sc-img {
  transform: rotate(0) translateY(-4px);
}
.sc-img img {
  width: 100%;
  height: 100%;
  display: block;
}
.strip-card figcaption {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

/* four letters, on the dark deck band */
.letters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 56px;
}
.letter-col {
  padding: 22px 20px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.letter-col + .letter-col {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.lt-axis {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.5);
}
.lt-pair {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lt-pair span {
  display: grid;
  justify-items: center;
  gap: 4px;
}
.lt-pair b {
  width: 50px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 500;
  color: rgba(246, 241, 232, 0.55);
}
.lt-pair span.on b {
  background: #ff6a2b;
  border-color: #ff6a2b;
  color: #0b0b0a;
}
.lt-pair i,
.lt-pair em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(246, 241, 232, 0.45);
}
.lt-pair span.on i {
  color: #f6f1e8;
}
.letter-col p {
  margin: 0;
  font-size: 13px;
  color: rgba(246, 241, 232, 0.7);
}
.letters-note {
  font-size: 14px;
  color: rgba(246, 241, 232, 0.6);
  margin: 16px 0 0;
}
.letters-note b {
  color: #f6f1e8;
}

.tier-tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #a86b00;
  color: #a86b00;
  background: #fff4dc;
}
/* ── v0.4 homepage ── */

/* the deck: a dark, full-bleed table for the cards */
.deck-band {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background:
    radial-gradient(70% 50% at 50% 0%, #26201b 0%, transparent 70%), #0d0c0b;
  color: #f6f1e8;
}
.deck-in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px 48px 96px;
}
.deck-band .label {
  color: rgba(246, 241, 232, 0.55);
}
.deck-band .label b {
  color: #ff6a2b;
}
.deck-band h2 em {
  font-style: normal;
  color: #ff6a2b;
}
.deck-band .split-head p {
  color: rgba(246, 241, 232, 0.7);
}
.deck {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.flip {
  position: relative;
  aspect-ratio: 5 / 7;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  perspective: 1400px;
  text-align: left;
  font: inherit;
  color: inherit;
}
.flip-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.flip:hover .flip-inner {
  transform: translateY(-6px) rotateX(4deg);
}
.flip.flipped .flip-inner {
  transform: rotateY(180deg);
}
.face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.face.front .lcard {
  width: 100%;
  height: 100%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 30px 50px -28px rgba(0, 0, 0, 0.8);
}
.face.back {
  transform: rotateY(180deg);
  border-radius: 5.5% / 3.93%;
  background: #f6f1e8;
  color: #0b0b0a;
  /* the back's text scales with the card (its children use cqw), so it always fits */
  container-type: inline-size;
  padding: 7% 7% 6%;
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow: hidden;
}
.b-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 3.6cqw;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b8a85;
}
.b-lore {
  font-size: 5.1cqw;
  line-height: 1.45;
}
.b-row {
  display: grid;
  gap: 1cqw;
  font-size: 4.4cqw;
  line-height: 1.4;
  color: #4a4a46;
}
.b-row b {
  font-family: var(--mono);
  font-size: 3.4cqw;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b8400f;
}
.b-opp {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 3.6cqw;
  color: #8b8a85;
}

/* the lore index */
.index-band h2 em {
  font-style: normal;
  color: var(--accent);
}
.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35d07f;
  animation: live-pulse 1.8s ease-in-out infinite;
}
@keyframes live-pulse {
  50% {
    box-shadow: 0 0 0 5px rgba(53, 208, 127, 0.18);
  }
}
/* the /live pill */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  padding: 4px 11px 4px 9px;
  background: var(--card);
}
.unlock {
  margin-top: 14px;
}
.ul-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.ul-row b {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink);
}
.ul-bar {
  display: grid;
  grid-template-columns: repeat(25, 1fr);
  gap: 3px;
}
.ul-bar i {
  height: 10px;
  border-radius: 3px;
  background: var(--bg-3);
  border: 1px solid var(--rule);
}
.ul-bar i.on {
  background: var(--accent);
  border-color: var(--accent);
}

/* the /live page */
.live-hero {
  padding-top: 72px;
}
.live-hero h1 {
  font-weight: 300;
  font-size: clamp(48px, 6vw, 84px);
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 20px 0 16px;
}
.live-hero .sub {
  max-width: 40em;
  font-size: 17px;
  color: var(--ink-2);
  margin: 0 0 26px;
}
.live-hero .unlock {
  max-width: 560px;
  margin-bottom: 30px;
}
.dsf {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 18px;
}
.dsf h2 {
  margin-top: 0;
}

@media (max-width: 1080px) {
  .dsf {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .dsf-card {
    max-width: 240px;
  }
}

/* terminal windows you can move around: light, like the rest of the page */
:root {
  --term-bg: #fdfcf8;
  --term-bar: #f2f1ec;
  --term-line: #e1dfd8;
  --term-ink: #33312c;
  --term-dim: #8f8c84;
  --term-green: #1f8a4c;
  --term-track: #e6e3db;
}
.tw {
  position: relative;
  background: var(--term-bg);
  color: var(--term-ink);
  border: 1px solid var(--term-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(11, 11, 10, 0.04),
    0 18px 40px -24px rgba(11, 11, 10, 0.22);
  transition: box-shadow 0.2s;
}
.tw.dragging {
  box-shadow:
    0 2px 4px rgba(11, 11, 10, 0.05),
    0 40px 80px -30px rgba(11, 11, 10, 0.35);
}
.tw-bar {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  background: var(--term-bar);
  border-bottom: 1px solid var(--term-line);
  cursor: grab;
  user-select: none;
}
.tw.dragging .tw-bar {
  cursor: grabbing;
}
.tw-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}
.tw-bar i:nth-child(2) {
  background: #febc2e;
}
.tw-bar i:nth-child(3) {
  background: #28c840;
}
.tw-bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--term-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tw-grip {
  margin-left: auto;
  color: var(--ink-4);
  font-weight: 400;
  font-size: 14px;
}
.tw-body {
  margin: 0;
  padding: 14px 16px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
  min-height: 1em;
}
.tw .p,
.tw .g {
  color: var(--term-green);
}
.tw .d {
  color: var(--term-dim);
}
.tw .a {
  color: var(--accent);
}
.tw .t {
  color: var(--term-track);
}
.tw b {
  color: var(--ink);
  font-weight: 500;
}
.tw a {
  color: var(--accent-ink);
  text-decoration: none;
}
.tw a:hover {
  text-decoration: underline;
}
.tw .caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 2px;
  background: var(--ink);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
.term-desk {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 18px;
  align-items: start;
}
.term-desk.one {
  grid-template-columns: minmax(0, 1fr);
  max-width: 780px;
}
/* the builders, as figurines */
.twins-wall {
  margin-top: 40px;
}
.tww-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 16px;
}
.tww-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.tww-head p {
  margin: 0;
  max-width: 34em;
  font-size: 14px;
  color: var(--ink-3);
}
.tww-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.tww {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--bg);
  opacity: 0.6;
}
.tww.on {
  opacity: 1;
  border-color: var(--accent);
}
.tww b {
  font-size: 13px;
  font-weight: 500;
}
.tww i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
.tww.on i {
  color: var(--accent-ink);
}

/* the redirect supply: the bridge to episodes */
.supply {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 28px;
  align-items: center;
  margin-top: 28px;
  padding: 26px 30px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}
.supply .sp-k {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 60%, transparent);
}
.supply b {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.supply .sp-d {
  font-size: 15px;
  line-height: 1.5;
  max-width: 40em;
}
.supply u {
  text-decoration: none;
  color: var(--accent);
  white-space: nowrap;
}
.supply:hover u {
  text-decoration: underline;
}
@media (max-width: 1080px) {
  .tww-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .supply {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 20px;
  }
}

.desk-hint {
  font-size: 13px;
  color: var(--ink-3);
  margin: 8px 0 18px;
}
.hero-live {
  position: relative;
  z-index: 4;
  margin-top: 22px;
  max-width: 500px;
}
.hero .term-bar,
.hero-card {
  cursor: grab;
}
.hero .term.dragging,
.hero-card.dragging {
  cursor: grabbing;
  z-index: 20;
}
@media (max-width: 640px) {
  .term-desk {
    grid-template-columns: minmax(0, 1fr);
  }
  .tw-body,
  .term pre {
    font-size: 10.5px;
  }
}

/* ───────────────────────── the manifesto: the loud part */
.manifesto-band {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background:
    radial-gradient(60% 55% at 18% 0%, #2a1d14 0%, transparent 70%),
    radial-gradient(50% 40% at 90% 100%, #1d1712 0%, transparent 70%), #0b0a09;
  color: #f6f1e8;
  overflow: hidden;
}
.mf-in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 120px 56px 112px;
}
.mf-line {
  margin: 0;
  max-width: 17em;
  font-weight: 300;
  font-size: clamp(34px, 5.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: rgba(246, 241, 232, 0.42);
}
.mf-line:first-of-type {
  margin-top: 28px;
  color: #f6f1e8;
}
.mf-line + .mf-line {
  margin-top: 26px;
}
.mf-line.mf-loud {
  color: #ff6a2b;
  font-weight: 400;
}
.mf-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  margin-top: 72px;
  padding-top: 26px;
  border-top: 1px solid rgba(246, 241, 232, 0.14);
  font-size: 16px;
  color: rgba(246, 241, 232, 0.72);
}
.mf-foot p {
  margin: 0;
}
.btn-link.light {
  color: #f6f1e8;
  white-space: nowrap;
}
.btn-link.light:hover {
  color: #ff6a2b;
}
/* lines arrive as they scroll in */
.pending {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pending.in {
  opacity: 1;
  transform: none;
}

/* ───────────────────────── what we send */
.take h2 em,
.page-head h1 em,
.audit h2 em {
  font-style: normal;
  color: var(--accent);
}
/* the homepage's diff: what stays (−) and what leaves (+) */
.take-diff {
  margin-top: 30px;
}
.diff-body {
  padding: 14px 0 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
}
.diff-body p {
  margin: 0;
}
.diff-body .dh,
.diff-body .dstat,
.diff-body .shell-line,
.diff-body .shell-echo {
  padding: 0 18px;
}
.diff-body .dh {
  color: var(--term-dim);
}
.diff-body .dh + .dh {
  color: #6f5bd6;
  margin-bottom: 6px;
}
.dl {
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr) auto;
  gap: 1ch;
  padding: 3px 18px;
}
.dl .dt {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dl .dc {
  font-size: 11.5px;
  color: var(--term-dim);
}
.dl.del {
  background: #fcebe9;
  color: #9b2c22;
}
.dl.del .dt {
  text-decoration: line-through;
  text-decoration-color: rgba(155, 44, 34, 0.45);
}
.dl.add {
  background: #e6f4ea;
  color: #1b6b3a;
}
.dl .dm {
  user-select: none;
}
.diff-body .dstat {
  margin-top: 12px;
}
.dstat .del {
  color: #b5372c;
}
.dstat .add {
  color: var(--term-green);
}
.diff-body .shell-line {
  margin-top: 10px;
}
.take-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  margin-top: 18px;
}
.take-off {
  font-size: 13px;
  color: var(--ink-3);
}
.take-off code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
}
@media (max-width: 640px) {
  .dl {
    grid-template-columns: 2ch minmax(0, 1fr);
  }
  .dl .dc {
    grid-column: 2;
  }
  .dl .dt {
    white-space: normal;
  }
  .diff-body {
    font-size: 11.5px;
  }
}

/* privacy page */
.page-head {
  padding-top: 110px;
}
.page-head h1 {
  margin: 20px 0 22px;
  font-weight: 300;
  font-size: clamp(46px, 6.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.page-head .sub {
  max-width: 36em;
  font-size: 18px;
  color: var(--ink-2);
  margin: 0;
}
/* the deck page and the archetype wall on /live */
.deck-h1 {
  margin: 14px 0 0;
  font-weight: 300;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1;
  letter-spacing: -0.045em;
}
.deck-h1 em {
  font-style: normal;
  color: #ff6a2b;
}
.arch-wall {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 26px;
}
/* the wall's cards use the deck page's flip; the back says less, in bigger type */
.arch {
  transition:
    opacity 0.3s,
    filter 0.3s;
}
.arch:not(.on):not(.flipped) {
  opacity: 0.45;
  filter: grayscale(0.5);
}
.flip.mini .face.front .lcard {
  box-shadow: 0 14px 30px -20px rgba(11, 11, 10, 0.5);
}
.flip.mini .face.back {
  gap: 6cqw;
  padding: 9% 8%;
  box-shadow: inset 0 0 0 1px rgba(11, 11, 10, 0.08);
}
.flip.mini .b-top {
  font-size: 5.4cqw;
}
.flip.mini .b-row {
  gap: 2cqw;
  font-size: 7.4cqw;
  line-height: 1.32;
}
.flip.mini .b-row b {
  font-size: 5.2cqw;
}

.foot-links {
  display: flex;
  gap: 18px;
}
.foot-links a {
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.foot-links a:hover {
  color: var(--accent-ink);
}

@media (max-width: 1080px) {
  .mf-foot {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .arch-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .mf-in {
    padding: 80px 16px 72px;
  }
  .arch-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-in {
    flex-wrap: wrap;
  }
}

.manifesto-band .label {
  color: rgba(246, 241, 232, 0.5);
}
.manifesto-band .label b {
  color: #ff6a2b;
}
.mf-line em {
  font-style: normal;
  color: #f6f1e8;
}
/* the homepage manifesto excerpt, in mono at full volume */
.manifesto-band .mf-line {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 26em;
}
.manifesto-band .mf-line:first-of-type {
  margin-top: 30px;
  color: #f6f1e8;
}
.manifesto-band .mf-line + .mf-line {
  margin-top: 18px;
}
.manifesto-band .mf-foot {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
}

/* the manifesto: what `lore manifesto` prints, in a terminal window */
.man-band {
  display: grid;
  gap: 26px;
  justify-items: center;
}
.man {
  width: 100%;
  max-width: 900px;
}
.man-body {
  padding: 26px 44px 34px;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.75;
  color: var(--term-ink);
}
.man-cmd {
  margin: 0 0 10px;
}
.man-name {
  margin: 18px 0 34px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.man section {
  margin: 0 0 32px;
}
.man h2 {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: var(--accent);
  text-wrap: auto;
}
.man section > p {
  margin: 0 0 12px 4ch;
  max-width: 66ch;
}
.man b {
  font-weight: 600;
  color: var(--ink);
}
.man code {
  font-size: 1em;
  color: var(--ink);
  background: var(--term-bar);
  padding: 1px 5px;
  border-radius: 4px;
}
.man a {
  color: var(--accent-ink);
}
.man-status {
  margin-left: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-wash);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  white-space: nowrap;
}
.man .caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  margin-left: 4px;
  background: var(--ink);
  vertical-align: -3px;
  animation: blink 1s steps(1) infinite;
}
@media (max-width: 640px) {
  .man-body {
    padding: 18px 16px 24px;
    font-size: 13.5px;
  }
  .man section > p {
    margin-left: 0;
  }
}

@keyframes flow {
  to {
    background-position: 32px 0;
  }
}

.payload {
  max-width: 100%;
}
.payload-body {
  padding: 18px 22px 22px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--term-ink);
  overflow-x: auto;
}
.payload-body p {
  margin: 0;
}
.payload-body .pl {
  display: grid;
  grid-template-columns: minmax(0, 27em) minmax(0, 1fr);
  gap: 18px;
  padding-left: 2ch;
}
/* repo stats: sent only when someone turns them on */
.payload-body .pl.opt .pk {
  opacity: 0.7;
}
.payload-body .pl.opt .pk b::before {
  content: "+ ";
  color: var(--term-green);
}
.payload-body .pl:hover {
  background: var(--term-bar);
}
.payload-body .pk {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.payload-body b {
  font-weight: 500;
  color: var(--ink);
}
.payload-body .pv {
  color: var(--accent-ink);
}
.payload-body .c {
  color: var(--term-dim);
}
.payload-body .p {
  color: var(--term-green);
}
.kill p {
  padding: 2px 0;
}
.kill .c {
  margin-left: 10px;
}
@media (max-width: 860px) {
  .payload-body .pl {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 6px;
  }
  .payload-body .pk {
    white-space: normal;
  }
}
main h2 em {
  font-style: normal;
  color: var(--accent);
}

/* terminals you can type at: the input is invisible; the line, cursor and suggestion are drawn */
.shell-line {
  position: relative;
  display: block;
  white-space: pre-wrap;
  word-break: break-all;
  cursor: text;
}
.shell-line[hidden] {
  display: none;
}
.shell-line input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  font-size: 16px; /* no zoom-on-focus on phones */
  caret-color: transparent;
}
.sh-cur {
  outline: 1px solid var(--term-dim);
  outline-offset: -1px;
}
.shell-line.focus .sh-cur {
  outline: 0;
  background: var(--ink);
  color: var(--term-bg);
  animation: sh-blink 1.06s steps(1) infinite;
}
/* the block blinks; the letter under it doesn't */
@keyframes sh-blink {
  50% {
    background: transparent;
    color: inherit;
  }
}
.sh-ghost {
  color: var(--term-dim);
  opacity: 0.75;
}
.sh-spin {
  white-space: pre;
}
.shell-echo {
  white-space: pre-wrap;
  margin: 0 0 10px;
}
.shell-echo .d {
  color: var(--term-dim);
}
.shell-echo a {
  color: var(--accent-ink);
}
.term pre .shell-echo {
  margin: 0;
}

/* ───────────────────────── windows that behave like windows */
.tw-bar i,
.term-bar i {
  position: relative;
  cursor: pointer;
  flex: none;
}
/* the glyphs show when you reach for the lights, like macOS */
.tw-bar i::after,
.term-bar i::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 8px/1 var(--sans, system-ui);
  color: rgba(0, 0, 0, 0.55);
  opacity: 0;
}
.tw-bar i:nth-child(1)::after,
.term-bar i:nth-child(1)::after {
  content: "×";
  font-size: 10px;
}
.tw-bar i:nth-child(2)::after,
.term-bar i:nth-child(2)::after {
  content: "−";
}
.tw-bar i:nth-child(3)::after,
.term-bar i:nth-child(3)::after {
  content: "+";
  font-size: 9px;
}
.tw-bar:hover i::after,
.term-bar:hover i::after,
.tw-bar i:focus-visible::after,
.term-bar i:focus-visible::after {
  opacity: 1;
}
.tw-bar i:focus-visible,
.term-bar i:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.tw.shaded > :not(.tw-bar),
.term.shaded > :not(.term-bar) {
  display: none;
}
.tw-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 11, 10, 0.35);
  backdrop-filter: blur(3px);
}
.tw.zoomed,
.term.zoomed {
  position: fixed !important;
  inset: 5vh 5vw;
  z-index: 91 !important;
  width: auto;
  max-width: none;
  translate: none !important;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 120px -20px rgba(11, 11, 10, 0.5);
}
.zoomed > :not(.tw-bar):not(.term-bar):not(.tw-dialog):not(.tw-closed) {
  flex: 1;
  max-height: none !important;
  overflow: auto;
}

/* red: Claude Code's permission prompt, inside the window */
/* the strip it sits on hides the lines behind it, as in a real terminal */
.tw-dialog {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px;
  background: var(--term-bg);
  z-index: 5;
  outline: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: normal;
  animation: tw-pop 0.18s ease-out;
}
.tw-dialog::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 32px;
  background: linear-gradient(transparent, var(--term-bg));
  pointer-events: none;
}
.tw-perm {
  padding: 12px 14px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--term-bg);
  color: var(--term-ink);
  box-shadow: 0 18px 40px -18px rgba(11, 11, 10, 0.4);
}
.tw-perm > b {
  color: var(--accent);
  font-weight: 500;
}
.tw-perm-cmd {
  margin: 8px 0 8px 2ch;
}
.tw-perm p {
  margin: 0 0 4px;
}
.tw-perm ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tw-perm li {
  cursor: pointer;
  white-space: pre-wrap;
  color: var(--term-dim);
}
.tw-perm li.on,
.tw-perm li:hover {
  color: var(--accent-ink);
}
.tw-perm .sel {
  display: inline-block;
  width: 1.5ch;
}
.tw-perm .d {
  color: var(--term-dim);
}
.tw-perm-in {
  display: flex;
  gap: 1ch;
}
.tw-perm-in input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  color: var(--term-ink);
  caret-color: var(--accent);
}
@keyframes tw-pop {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.tw-closed {
  position: absolute;
  inset: 32px 0 0;
  z-index: 4;
  padding: 14px 16px;
  background: var(--term-bg);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--term-ink);
}
.term > .tw-closed {
  inset: 34px 0 0;
}
.tw-closed pre {
  margin: 0;
  font: inherit;
}
.tw-closed .d {
  margin: 10px 0 12px;
  color: var(--term-dim);
}
.tw-reopen {
  font: inherit;
  padding: 5px 12px;
  border: 1px solid var(--term-line);
  border-radius: 999px;
  background: var(--term-bar);
  color: var(--term-ink);
  cursor: pointer;
}
.tw-reopen:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* dark windows: the ones that should pop off a light page */
.tw.dark {
  --term-bg: #0f0f0e;
  --term-bar: #1b1b19;
  --term-line: #2c2b27;
  --term-ink: #e8e5dc;
  --term-dim: #8b887f;
  --term-green: #4cc27e;
  --term-track: #2e2d29;
  --accent-ink: #ff8a5b;
  border-color: #0b0b0a;
  box-shadow:
    0 2px 4px rgba(11, 11, 10, 0.12),
    0 30px 60px -26px rgba(11, 11, 10, 0.55);
}
.tw.dark b,
.tw.dark .p {
  color: #fff;
}
.tw.dark .p {
  color: var(--term-green);
}
.tw.dark .tw-grip {
  color: #55534c;
}
.tw .h {
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.live-dot {
  color: var(--term-green);
  animation: dot-pulse 1.8s ease-in-out infinite;
}
@keyframes dot-pulse {
  50% {
    opacity: 0.35;
  }
}
@media (max-width: 1080px) {
  .hero-live {
    max-width: none;
    margin-top: 18px;
  }
}

/* the homepage index: one big terminal, laid out like a system monitor */
#index-term {
  margin-top: 26px;
}
.ix-body {
  white-space: normal;
}
.ix-body pre {
  margin: 0;
  font: inherit;
  white-space: pre;
}
.ix-head {
  margin-bottom: 18px !important;
}
.panes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 14px;
}
.pane {
  position: relative;
  min-width: 0;
  padding: 16px 14px 12px;
  border: 1px solid var(--term-line);
  border-radius: 6px;
}
.pane pre {
  overflow-x: auto;
}
.pane.wide {
  grid-column: 1 / -1;
}
.pane.wide pre {
  columns: 2;
  column-gap: 40px;
}
.pane h3 {
  position: absolute;
  top: -0.8em;
  left: 10px;
  margin: 0;
  padding: 0 6px;
  background: var(--term-bg);
  font: 500 11.5px/1.6 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.ix-foot {
  margin-top: 20px !important;
}
@media (max-width: 1080px) {
  .panes {
    grid-template-columns: minmax(0, 1fr);
  }
  .pane.wide pre {
    columns: 1;
  }
}

/* ───────────────────────── easter eggs */
.egg-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  translate: -50% 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: 13px/1.3 var(--mono);
  box-shadow: var(--shadow-lg);
  animation: tw-pop 0.2s ease-out;
}
/* konami: every terminal becomes a phosphor monitor */
.crt .tw,
.crt .term {
  --term-bg: #08110a;
  --term-bar: #0e1a10;
  --term-line: #1c3320;
  --term-ink: #6dff8f;
  --term-dim: #2f8f45;
  --term-green: #6dff8f;
  --term-track: #133018;
  --accent: #b6ff6d;
  --accent-ink: #b6ff6d;
  --ink: #6dff8f;
  text-shadow: 0 0 6px rgba(109, 255, 143, 0.55);
}
.crt .tw > :not(.tw-bar)::after,
.crt .term > pre::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.22) 0 1px,
    transparent 1px 3px
  );
}
.crt .tw > :not(.tw-bar),
.crt .term > pre {
  position: relative;
}
.crt .tw b,
.crt .term b,
.crt .tw .p,
.crt .term .p {
  color: #b6ff6d;
}

/* ───────────────────────── privacy: the network monitor and why.ts */
.netmon {
  margin-top: 34px;
}
.nm-body {
  padding: 16px 18px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  min-height: 330px;
}
.nm-body p {
  margin: 0;
}
.nm-cmd {
  margin-bottom: 12px !important;
}
.nm-row {
  display: grid;
  grid-template-columns: 5ch 7ch minmax(0, 1.1fr) minmax(0, 1.6fr) 9ch;
  gap: 2ch;
  padding: 3px 0;
}
.nm-row > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nm-h {
  color: var(--term-dim);
  border-bottom: 1px solid var(--term-line);
  margin-bottom: 4px;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.08em;
}
.nm-where {
  color: var(--term-dim);
}
.nm-dir {
  text-align: right;
}
.nm-row.out {
  margin: 2px -8px 0;
  padding: 3px 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.nm-row.out .nm-where,
.nm-row.out .nm-what {
  color: var(--term-ink);
}
.nm-peek {
  padding: 2px 0 6px 9ch;
  color: var(--term-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nm-sum {
  margin-top: 12px !important;
  padding-top: 10px;
  border-top: 1px dashed var(--term-line);
}
.nm-in {
  animation: nm-in 0.35s ease-out;
}
@keyframes nm-in {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
}
.netmon .shell-line {
  margin-top: 12px;
}
@media (max-width: 760px) {
  /* a phone gets two lines per connection: who and where, then what */
  .nm-row {
    grid-template-columns: 4ch 6ch minmax(0, 1fr) auto;
    row-gap: 0;
  }
  .nm-what {
    grid-column: 3 / -1;
    white-space: normal;
    color: var(--term-ink);
  }
  .nm-dir {
    grid-row: 1;
    grid-column: 4;
  }
  .nm-h .nm-what {
    display: none;
  }
  .nm-peek {
    padding-left: 0;
    white-space: normal;
  }
  .nm-body {
    font-size: 11px;
  }
}

.why-file {
  margin-top: 18px;
}
.why-code {
  counter-reset: ln;
  list-style: none;
  margin: 0;
  padding: 10px 0;
}
.why-code li {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px 26px 18px 76px;
  border-bottom: 1px dashed var(--term-line);
}
.why-code li:last-child {
  border-bottom: 0;
}
/* a gutter of line numbers, like the editor it pretends to be */
.why-code li::before {
  counter-increment: ln;
  content: counter(ln, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  width: 52px;
  text-align: right;
  font: 12px/1.9 var(--mono);
  color: var(--term-dim);
}
.why-code code {
  font: 13px/1.9 var(--mono);
  color: var(--term-dim);
}
.why-code code b {
  color: var(--accent-ink);
  font-weight: 500;
}
.why-code .kw {
  color: var(--term-green);
}
.why-code h3 {
  margin: 2px 0 0;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.why-code p {
  margin: 0;
  max-width: 46em;
  color: var(--ink-2);
  font-size: 15px;
}
.why-code .rule {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.why-code .rule h3 {
  color: var(--accent-ink);
}
@media (max-width: 640px) {
  .why-code li {
    padding: 16px 16px 16px 46px;
  }
  .why-code li::before {
    width: 30px;
  }
}

/* ───────────────────────── an editor: a file explorer, tabs, line numbers, a status bar */
.ide {
  margin-top: 22px;
}
.ide-body {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}
.ide-tree {
  padding: 12px 0;
  border-right: 1px solid var(--term-line);
  background: var(--term-bar);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}
.ide-tree p {
  margin: 0;
  padding: 4px 14px;
}
.ide-tree .it-h {
  margin-top: 6px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--term-dim);
}
.ide-tree .it-h + .it-d,
.ide-tree .it-h + .it-f {
  margin-top: 2px;
}
.ide-tree .it-h span {
  float: right;
  color: var(--term-green);
  text-transform: none;
  letter-spacing: 0;
}
.ide-tree .it-d {
  color: var(--term-ink);
}
.ide-tree .it-d::before {
  content: "▸ ";
  color: var(--term-dim);
}
.ide-tree .it-d span {
  display: block;
  padding-left: 2ch;
  font-size: 11px;
  color: var(--term-dim);
}
.ide-tree .it-d.dim {
  opacity: 0.6;
}
.ide-tree .it-f.on {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: inset 2px 0 0 var(--accent);
  color: var(--accent-ink);
}
.ide-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ide-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--term-line);
  background: var(--term-bar);
  font-family: var(--mono);
  font-size: 12px;
}
.ide-tabs > span {
  padding: 8px 16px;
  color: var(--term-dim);
}
.ide-tabs > span.on {
  background: var(--term-bg);
  color: var(--term-ink);
  box-shadow: inset 0 2px 0 var(--accent);
}
.ide-tabs .cmd {
  margin: 0 8px 0 auto;
}
/* line numbers down the gutter */
.ide-code {
  counter-reset: ln;
  max-height: 620px;
  overflow: auto;
  padding: 12px 18px 16px 0;
}
.ide-code > p {
  counter-increment: ln;
  position: relative;
  padding-left: 58px;
}
.ide-code > p::before {
  content: counter(ln);
  position: absolute;
  left: 0;
  width: 40px;
  text-align: right;
  color: var(--term-dim);
  opacity: 0.6;
}
.ide-code > p.pl {
  padding-left: calc(58px + 2ch);
}
.ide-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 5px 14px;
  border-top: 1px solid var(--term-line);
  background: var(--term-bar);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--term-dim);
}
.ide-status span:last-child {
  margin-left: auto;
}
@media (max-width: 760px) {
  .ide-body {
    grid-template-columns: minmax(0, 1fr);
  }
  /* on a phone the explorer folds to the one line that matters */
  .ide-tree {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    padding: 8px 4px;
    border-right: 0;
    border-bottom: 1px solid var(--term-line);
  }
  .ide-tree .it-d span,
  .ide-tree .it-h span {
    display: none;
  }
  .ide-tree .it-h {
    flex-basis: 100%;
  }
  .ide-status span:last-child {
    margin-left: 0;
  }
}

/* holding the hero card turns it over to another one */
.hero-card.shuffling {
  animation: card-turn 0.3s ease-in-out;
}
@keyframes card-turn {
  50% {
    scale: 0.02 1;
  }
}
/* the 404 */
.nf-band {
  min-height: 60vh;
  display: grid;
  align-content: center;
}
.nf {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}
.nf-body {
  padding: 18px 20px 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
}
.nf-body p {
  margin: 0;
  white-space: pre-wrap;
}

/* ───────────────────────── a prompt to paste into an agent: label, copy, numbered steps */
.prompt-card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
  text-align: left;
}
.audit .prompt-card {
  margin-top: 22px;
}
.pc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 8px 7px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pc-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg);
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.pc-copy:hover {
  border-color: var(--ink-4);
  color: var(--ink);
}
.pc-copy svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.pc-copy.copied {
  border-color: var(--good);
  color: var(--good);
}
.pc-body {
  padding: 14px 18px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.pc-body p {
  margin: 0 0 6px;
  color: var(--ink);
}
.pc-body ol {
  margin: 0;
  padding-left: 2.6ch;
}
.pc-body li {
  padding-left: 0.6ch;
  margin-top: 4px;
}
.pc-body li::marker {
  color: var(--ink-4);
}
.pc-body code {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--bg-2);
  color: var(--ink);
}
.pc-note {
  margin: 10px 2px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ───────────────────────── the waitlist: one line in the manifesto's terminal, and a remove form */
.wl {
  margin: 18px 0 6px;
  padding: 14px 16px;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  font-family: var(--mono);
  font-size: 13px;
}
.man .wl,
.man .wl-ask {
  margin-left: 6ch;
}
.wl p {
  margin: 0;
}
.wl-cmd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6ch;
}
.wl-cmd .p {
  color: var(--term-green);
}
.wl input[type="email"] {
  flex: 1 1 22ch;
  min-width: 0;
  padding: 2px 2px 3px;
  border: 0;
  border-bottom: 1px solid var(--accent);
  background: none;
  font: inherit;
  font-size: max(13px, 1em);
  color: var(--ink);
  outline: 0;
}
.wl input[type="email"]::placeholder {
  color: var(--ink-4);
}
.wl button {
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  font: 500 12px/1.2 var(--mono);
  color: #fff;
  cursor: pointer;
}
.wl button:disabled {
  opacity: 0.6;
}
.wl-msg {
  margin-top: 8px !important;
  font-size: 12px;
  color: var(--ink-3);
}
.wl-msg a {
  color: var(--accent-ink);
}
.wl-ask {
  padding-left: 17px;
  font-family: var(--mono);
}
.wl-ask a {
  white-space: nowrap;
}
.wl-msg.good {
  color: var(--good);
}
.wl-msg.bad {
  color: var(--accent-ink);
}
.wl-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.wl-row {
  display: flex;
  gap: 1ch;
  align-items: center;
}
.wl-remove {
  max-width: 560px;
  margin-top: 22px;
}
@media (max-width: 640px) {
  .man .wl,
  .man .wl-ask {
    margin-left: 0;
  }
}

/* ───────────────────────── /live: how a run becomes the index, as a pipeline */
.pipeline {
  counter-reset: step;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 26px 0 0;
  padding: 0;
}
.pipeline li {
  counter-increment: step;
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 18px 20px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--bg);
}
.pipeline li::before {
  content: "0" counter(step);
  font: 11px var(--mono);
  color: var(--ink-4);
}
/* the arrow to the next step */
.pipeline li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -22px;
  translate: 0 -50%;
  font: 15px var(--mono);
  color: var(--accent);
}
.pipeline li > code {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-2);
  font: 12px var(--mono);
  color: var(--accent-ink);
}
.pipeline li > b {
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.015em;
}
.pipeline li > span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.pipeline li > span code {
  font: 12.5px var(--mono);
}
.pipeline a {
  color: var(--accent-ink);
}
@media (max-width: 1080px) {
  .pipeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .pipeline li:not(:last-child)::after {
    content: "↓";
    top: auto;
    bottom: -22px;
    right: auto;
    left: 24px;
    translate: none;
  }
}
