/* HumansOut site.
   Layout: an editorial broadsheet for a protocol. Paper bands carry the explanation,
   night bands carry the stakes. Orange marks the human and nothing else. */
:root {
  color-scheme: light;
  --paper: #F3F3F0;
  --card: #FFFFFF;
  --ink: #0B0B0B;
  --muted: #55554F;
  --hair: #CFCFC7;
  --human: #FF5A1F;
  --night: #0B0B0B;
  --night-text: #F3F3F0;
  --night-muted: #A3A39C;
  --night-rule: #2C2C29;
  --planned: #7A6A00;
  --planned-bg: #F6EFB8;
  --display: "Archivo", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--human); outline-offset: 3px; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.9em; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { border-top: 1.5px solid var(--ink); }
.band > .wrap { padding-block: clamp(64px, 9vw, 120px); }
.night { background: var(--night); color: var(--night-text); border-top-color: var(--night); }

.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.night .label { color: var(--night-muted); }
.eyebrow { margin-bottom: 18px; color: var(--ink); }
.night .eyebrow { color: var(--night-text); }

h1, h2, h3 { margin: 0; text-wrap: balance; }
.display, h2 {
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.005em;
}
h2 { font-size: clamp(2.5rem, 6vw, 4.6rem); max-width: 20ch; }
h3 {
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.98;
  font-size: 1.75rem;
}
.lede { margin-top: 22px; max-width: 60ch; color: var(--muted); font-size: 1.125rem; }
.night .lede { color: var(--night-muted); }

.soon {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--planned);
  background: var(--planned-bg);
  padding: 2px 7px;
  vertical-align: 0.15em;
  white-space: nowrap;
}
.night .soon { color: var(--night); }
.now {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 2px 7px;
  vertical-align: 0.15em;
  white-space: nowrap;
}

/* ---------- header ---------- */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(243, 243, 240, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--ink);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.brand::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--human); }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 28px); }
.nav a { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .lang { border: 1.5px solid var(--ink); padding: 8px 10px; min-height: 36px; display: inline-flex; align-items: center; }
@media (max-width: 760px) { .nav a:not(.lang) { display: none; } }

/* ---------- hero ---------- */
.hero .wrap { padding-block: clamp(48px, 7vw, 96px) 0; }
.hero h1 {
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(5rem, 17vw, 13rem);
  line-height: 0.84;
  letter-spacing: -0.01em;
}
.hero h1 .dot { color: var(--human); }
.hero .sub {
  margin-top: 14px;
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 4.4vw, 3.2rem);
  line-height: 0.95;
  max-width: 22ch;
}
.hero .sub em { font-style: normal; color: var(--human); }
.hero-row {
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.hero-row .lede { margin-top: 0; color: var(--ink); }
.hero-row .lede + .lede { margin-top: 14px; color: var(--muted); font-size: 1.0625rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 860px) { .hero-row { grid-template-columns: 1fr; } .actions { justify-content: flex-start; } }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--paper);
  color: var(--ink);
}
.btn:hover { background: var(--card); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: #2a2a28; }
.night .btn { background: transparent; color: var(--night-text); border-color: var(--night-text); }
.night .btn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--human); }

.swarm { margin-top: clamp(32px, 5vw, 56px); position: relative; }
.swarm canvas { display: block; width: 100%; height: clamp(200px, 26vw, 300px); }
.swarm-key {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border-top: 1.5px solid var(--ink);
  padding-block: 16px 28px;
}
.swarm-key div { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 0.85rem; color: var(--muted); }
.swarm-key b { display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.swarm-key svg { width: 18px; height: 18px; margin-top: 2px; }
@media (max-width: 640px) { .swarm-key { grid-template-columns: 1fr; } }

/* ---------- why (night) ---------- */
.threats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 52px; border-top: 1.5px solid var(--night-text); }
.threat { padding: 26px 26px 0 0; min-width: 0; }
.threat + .threat { padding-left: 26px; border-left: 1px solid var(--night-rule); }
.threat .label { color: var(--human); }
.threat h3 { margin: 12px 0 10px; font-size: 2rem; }
.threat p { color: var(--night-muted); }
@media (max-width: 820px) {
  .threats { grid-template-columns: 1fr; }
  .threat, .threat + .threat { padding: 22px 0; border-left: 0; }
  .threat + .threat { border-top: 1px solid var(--night-rule); }
}
.verdict {
  margin-top: clamp(56px, 8vw, 96px);
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  max-width: 22ch;
}
.verdict em { font-style: normal; color: var(--human); }

/* ---------- objections that run ---------- */
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5px; background: var(--ink); border: 1.5px solid var(--ink); margin-top: 48px; }
.outcome { background: var(--card); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.outcome .label { color: var(--ink); }
.outcome h3 { font-size: 2rem; }
.outcome p { color: var(--muted); font-size: 0.98rem; }
.outcome code { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--hair); font-size: 0.75rem; overflow-wrap: anywhere; }
.outcome.human { background: var(--ink); color: var(--paper); }
.outcome.human .label, .outcome.human h3 { color: var(--human); }
.outcome.human p { color: var(--night-muted); }
.outcome.human code { color: var(--paper); border-top-color: var(--night-rule); }
@media (max-width: 860px) { .outcomes { grid-template-columns: 1fr; } }
.versus { margin-top: 48px; overflow-x: auto; }
.versus table { width: 100%; min-width: 560px; border-collapse: collapse; }
.versus th { text-align: left; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0 16px 12px 0; }
.versus th:last-child { color: var(--ink); }
.versus td { padding: 14px 16px 14px 0; border-top: 1.5px solid var(--ink); vertical-align: top; }
.versus td:first-child { font-weight: 700; width: 24%; }
.versus td:nth-child(2) { color: var(--muted); }
.versus tr:last-child td { border-bottom: 1.5px solid var(--ink); }

/* ---------- three ideas ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 44px; }
.trio > div { border-top: 1.5px solid var(--ink); padding-top: 18px; min-width: 0; }
.trio svg { width: 26px; height: 26px; }
.trio h3 { margin: 14px 0 10px; }
.trio p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 820px) { .trio { grid-template-columns: 1fr; } }
.sub-label { margin-top: 56px; }

/* ---------- five steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.step { border-top: 1.5px solid var(--ink); padding-top: 14px; min-width: 0; }
.step .head { display: flex; justify-content: space-between; align-items: center; }
.step .who { width: 10px; height: 10px; border-radius: 50%; background: var(--human); }
.step .who.agent { width: 14px; height: 14px; background: none; border-radius: 0; }
.step h3 { margin: 12px 0 10px; font-size: 1.6rem; }
.step p { color: var(--muted); font-size: 0.94rem; }
.step p + p { margin-top: 8px; }
.key-line { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 26px; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.key-line span { display: inline-flex; align-items: center; gap: 8px; }
.key-line .h::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--human); }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .steps { grid-template-columns: 1fr; } }
.rule-quote {
  margin-top: 56px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--card);
  border: 1.5px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
.rule-quote .display { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.rule-quote p { color: var(--muted); }
@media (max-width: 820px) { .rule-quote { grid-template-columns: 1fr; } }

/* ---------- mission log (night) ---------- */
.log { margin-top: 44px; overflow-x: auto; }
.log table { width: 100%; min-width: 640px; border-collapse: collapse; font-family: var(--mono); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.log td { padding: 11px 14px 11px 0; border-top: 1px solid var(--night-rule); vertical-align: top; }
.log tr:last-child td { border-bottom: 1px solid var(--night-rule); }
.log td:first-child { color: var(--night-muted); width: 72px; white-space: nowrap; }
.log td:nth-child(2) { width: 130px; white-space: nowrap; color: var(--night-muted); }
.log .hu td { color: var(--human); }
.log .hu td:nth-child(2)::before { content: "\25CF  "; }
.log em { font-style: normal; color: var(--night-muted); }
.log .tag { display: inline-block; border: 1px solid var(--night-text); padding: 0 5px; margin-right: 6px; font-size: 0.68rem; letter-spacing: 0.06em; }
.log-note { margin-top: 14px; font-family: var(--mono); font-size: 0.72rem; color: var(--night-muted); }
.tally { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 20px; margin-top: 44px; }
.tally > div { border-top: 1.5px solid var(--night-text); padding-top: 12px; }
.tally .display { font-size: clamp(2.6rem, 5vw, 3.6rem); }
.tally .hu .display { color: var(--human); }
.tally p { margin-top: 6px; font-size: 0.85rem; color: var(--night-muted); }
@media (max-width: 520px) { .tally { grid-template-columns: 1fr; } }

/* ---------- fears ---------- */
.fears { margin-top: 48px; border-top: 1.5px solid var(--ink); }
.fear { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 0 20px; padding-block: 36px; border-bottom: 1.5px solid var(--ink); }
.fear > .label { padding-top: 14px; }
.fear .display { font-size: clamp(2.4rem, 6.4vw, 5.2rem); }
.fear-body { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); }
.fear-body > p { max-width: 58ch; }
.facts { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1.5px solid var(--ink); display: grid; gap: 10px; font-family: var(--mono); font-size: 0.78rem; line-height: 1.5; }
.facts li { min-width: 0; }
.facts li.plan { color: var(--muted); }
@media (max-width: 820px) {
  .fear { grid-template-columns: 1fr; }
  .fear > .label { padding-top: 0; margin-bottom: 8px; }
  .fear-body { grid-template-columns: 1fr; }
}

/* ---------- under the hood ---------- */
.parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5px; background: var(--ink); border: 1.5px solid var(--ink); margin-top: 48px; }
.part { background: var(--paper); padding: 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.part h3 { font-family: var(--body); font-stretch: normal; text-transform: none; font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.part p { color: var(--muted); font-size: 0.96rem; }
.part code { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--hair); font-size: 0.75rem; overflow-wrap: anywhere; }
@media (max-width: 960px) { .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .parts > .part:last-child:nth-child(odd) { grid-column: span 2; } }
@media (max-width: 600px) { .parts { grid-template-columns: 1fr; } }

/* ---------- standard ---------- */
.stack { margin-top: 44px; border-top: 1.5px solid var(--ink); }
.stack-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 110px); gap: 16px; padding: 16px 14px; border-bottom: 1.5px solid var(--ink); align-items: center; }
.stack-row .label { color: var(--ink); }
.stack-row p { color: var(--muted); }
.stack-row .st { text-align: right; }
.stack-row.ours { background: var(--ink); color: var(--paper); }
.stack-row.ours .label, .stack-row.ours p { color: var(--paper); }
.stack-row.ours .now { background: var(--human); color: var(--ink); }
@media (max-width: 720px) {
  .stack-row { grid-template-columns: minmax(0, 1fr) auto; }
  .stack-row p { grid-column: 1 / -1; grid-row: 2; }
  .stack-row .st { grid-column: 2; grid-row: 1; }
}
.fine { margin-top: 16px; font-size: 0.82rem; color: var(--muted); max-width: 70ch; }

/* ---------- bring your agent ---------- */
.plug { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .plug { grid-template-columns: 1fr; } }
.harness { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.harness li { font-family: var(--mono); font-size: 0.75rem; border: 1.5px solid var(--ink); padding: 6px 11px; }
.term { background: var(--night); color: var(--night-text); min-width: 0; }
.term .bar { padding: 10px 16px; border-bottom: 1px solid var(--night-rule); font-family: var(--mono); font-size: 0.7rem; color: var(--night-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.term pre { margin: 0; padding: 18px 16px; overflow-x: auto; font-family: var(--mono); font-size: 0.8rem; line-height: 1.75; }
.term .c { color: var(--night-muted); }
.term .p { color: var(--human); }

/* ---------- status ---------- */
.status { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); margin-top: 48px; }
@media (max-width: 860px) { .status { grid-template-columns: 1fr; } }
.status h3 { font-family: var(--mono); font-stretch: normal; font-size: 0.75rem; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 14px; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.list li { padding: 14px 0; border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; }
.list b { font-family: var(--mono); font-weight: 600; }
.list span { color: var(--muted); }
.list strong { display: block; color: var(--ink); }
.list.plain li { grid-template-columns: minmax(0, 1fr); }

/* ---------- ways in ---------- */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 44px; }
.ways > div { border-top: 1.5px solid var(--ink); padding-top: 16px; min-width: 0; }
.ways h3 { display: flex; align-items: center; gap: 10px; font-size: 1.7rem; }
.ways h3 svg { width: 20px; height: 20px; flex-shrink: 0; }
.ways p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.ways p + p { margin-top: 8px; }
@media (max-width: 820px) { .ways { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 48px); margin-top: 44px; align-items: start; }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }
.faq details { border-top: 1.5px solid var(--ink); }
.faq-col details:last-child { border-bottom: 1.5px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 700; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 600; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 60ch; }

/* ---------- final ---------- */
.final h2 { font-size: clamp(3rem, 9vw, 7.4rem); max-width: 14ch; line-height: 0.88; }
.final .lede { max-width: 56ch; }
.final .closing { margin-top: 28px; font-family: var(--display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1; max-width: 30ch; }
.final .closing em { font-style: normal; color: var(--human); }
.final .actions { justify-content: flex-start; margin-top: 32px; }
.foot { background: var(--night); color: var(--night-muted); border-top: 1px solid var(--night-rule); }
.foot .wrap { padding-block: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-family: var(--mono); font-size: 0.72rem; }
.foot a { color: var(--night-text); }

/* The credit loop: spare limits become budget. A broadsheet flow of five stations; orange marks the human's two. */
.loop { margin: 48px 0 0; border: 1.5px solid var(--ink); background: var(--card); }
.loop-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 22px; border-bottom: 1.5px solid var(--ink); }
.loop-head .label:first-child { color: var(--ink); }
.loop-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.loop-step { position: relative; padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; border-right: 1.5px solid var(--ink); }
.loop-step:last-child { border-right: 0; }
.loop-step::after { content: "\2192"; position: absolute; right: -0.75em; top: 24px; z-index: 1; padding: 2px 4px; background: var(--card); font-family: var(--mono); font-size: 1.15rem; font-weight: 600; line-height: 1; }
.loop-step:last-child::after { content: none; }
.loop-num { font-family: var(--display); font-weight: 900; font-size: 2.4rem; line-height: 1; letter-spacing: -0.02em; }
.loop-step.human .loop-num, .loop-step.human .label { color: var(--human); }
.loop-step h3 { font-family: var(--body); font-stretch: normal; text-transform: none; font-weight: 700; font-size: 1.05rem; line-height: 1.3; margin: 0; }
.loop-step p { color: var(--muted); font-size: 0.93rem; }
.loop-step code { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--hair); font-size: 0.72rem; overflow-wrap: anywhere; }
.loop-back { display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 22px; border-top: 1.5px solid var(--ink); font-family: var(--mono); font-size: 0.8rem; }
.loop-back svg { flex: none; color: var(--human); }
.loop-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 26px; }
.loop-notes p { color: var(--muted); font-size: 0.95rem; }
.loop-notes strong { color: var(--ink); }
@media (max-width: 980px) {
  .loop-steps { grid-template-columns: 1fr; }
  .loop-step { border-right: 0; border-bottom: 1.5px solid var(--ink); padding-bottom: 26px; }
  .loop-step:last-child { border-bottom: 0; }
  .loop-step::after { content: "\2193"; right: auto; left: 22px; top: auto; bottom: -0.75em; }
  .loop-notes { grid-template-columns: 1fr; gap: 14px; }
}
