/* jev-seo proof-sheet world. Seed d118b247 — see contract comment in index.html.
   OKLCH substrate, print geometry (radius 0), 2+1 font ceiling. */

:root {
  --ink: oklch(0.16 0.01 280);
  --ink-2: oklch(0.21 0.01 280);
  --paper: oklch(0.93 0.02 85);
  --paper-dim: oklch(0.72 0.02 85);
  --phos: oklch(0.92 0.21 135);
  --mag: oklch(0.7 0.29 330);
  --amber: oklch(0.84 0.16 80);
  --red: oklch(0.62 0.23 28);
  --line: oklch(0.93 0.02 85 / 0.14);
  --line-strong: oklch(0.93 0.02 85 / 0.32);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ball: cubic-bezier(0.34, 1.56, 0.64, 1);
  --disp: "Archivo Expanded", "Arial Black", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --body: "Instrument Sans", system-ui, sans-serif;
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- browser surfaces ---------- */
::selection { background: var(--phos); color: var(--ink); }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

a { color: inherit; }
a:hover { color: var(--phos); }
code, .term, .install-cmd {
  font-family: var(--mono);
  font-size: 0.875rem;
}

/* ---------- sheet machinery: crop marks + registration ---------- */
.sheethead, footer.sheetfoot { position: relative; }

.cropmark {
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--line-strong);
  pointer-events: none;
}
.crop-tl { top: -1px; left: 24px; border-right: 0; border-bottom: 0; }
.crop-tr { top: -1px; right: 24px; border-left: 0; border-bottom: 0; }
.crop-bl { bottom: -1px; left: 24px; border-right: 0; border-top: 0; }
.crop-br { bottom: -1px; right: 24px; border-left: 0; border-top: 0; }

.reg-cross { position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; opacity: 0.5; pointer-events: none; }
.reg-cross::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 26px;
  background: var(--paper); transform: translateX(-50%);
}
.reg-cross::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 26px; height: 1px;
  background: var(--paper); transform: translateY(-50%);
}
.reg-cross { border: 1px solid var(--paper); border-radius: 50%; }

/* ---------- header ---------- */
.sheethead { padding: 22px 24px 0; border-bottom: 1px solid var(--line); }

.topline {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: baseline; gap: 28px;
  padding-bottom: 14px;
}
.wordmark {
  font-family: var(--disp); font-weight: 900; font-size: 1.35rem;
  letter-spacing: -0.02em; text-decoration: none;
}
.ink-g { color: var(--phos); }
.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a {
  font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--paper-dim); text-decoration: none;
  position: relative; padding: 2px 0;
}
.topnav a:hover { color: var(--paper); }
.topnav a::after {
  content: "→"; position: absolute; left: 0; top: 100%;
  color: var(--mag); opacity: 0; transition: opacity 0.3s var(--ease);
  font-size: 0.9rem; line-height: 1;
}
.topnav a:hover::after { opacity: 1; }
.toplink {
  font-family: var(--mono); font-size: 0.75rem; text-decoration: none;
  border: 1px solid var(--line-strong); padding: 5px 10px; color: var(--paper);
}
.toplink:hover { border-color: var(--phos); color: var(--phos); }

.rule { height: 1px; background: var(--line); max-width: var(--max); margin: 0 auto; }

.jobno {
  max-width: var(--max); margin: 0 auto; padding: 10px 0 14px;
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.14em;
  color: var(--paper-dim); text-transform: uppercase;
}

/* ---------- main sheet ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- title block ---------- */
.titleblock { padding: 64px 0 8px; position: relative; }
.tb-meta {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  color: var(--paper-dim); border-bottom: 1px solid var(--line); padding-bottom: 14px;
}
.specimen {
  font-family: var(--disp); font-weight: 900;
  font-size: clamp(4rem, 13vw, 7.5rem);
  line-height: 0.95; letter-spacing: -0.04em;
  margin: 34px 0 22px; text-wrap: balance;
}
.subtitle {
  font-size: 1.25rem; line-height: 1.5; color: var(--paper-dim);
  max-width: 68ch; margin-bottom: 26px;
}
.paper { color: var(--paper); font-weight: 600; }

.foldline {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px dashed var(--line-strong); margin: 40px 0 26px; padding-top: 8px;
}
.foldline span {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.22em;
  color: var(--paper-dim);
}

.titleblock-cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding-bottom: 60px; }
.install-cmd {
  background: var(--ink-2); border: 1px solid var(--line-strong);
  padding: 14px 18px; font-size: 0.95rem; white-space: nowrap;
}
.btn-primary {
  display: inline-block; background: var(--phos); color: var(--ink);
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  padding: 14px 20px; transition: transform 0.25s var(--ease);
}
.btn-primary:hover { color: var(--ink); transform: translateY(-2px); }
.btn-ghost {
  display: inline-block; border: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; padding: 13px 18px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-ghost:hover { border-color: var(--phos); color: var(--phos); }

/* ---------- mechanism section ---------- */
.mechanism {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px;
  padding: 26px 0 80px;
}
.spec-card {
  border: 1px solid var(--line-strong); background: var(--ink-2);
  padding: 20px;
}
.spec-head {
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--paper-dim);
}
.spec-no { color: var(--mag); }
.spec-title { color: var(--paper); }
.spec-stat { margin-left: auto; color: var(--amber); }
.spec-caption {
  font-size: 0.82rem; color: var(--paper-dim); margin-top: 12px;
  font-family: var(--body); text-transform: none; letter-spacing: 0;
  max-width: 60ch;
}

.term {
  font-size: 0.85rem; line-height: 1.7;
  min-height: 220px; white-space: pre-wrap; word-break: break-word;
}
.term .amber { color: var(--amber); }
.term .ok { color: var(--phos); }
.term .bad { color: var(--red); }
.term .dim { color: var(--paper-dim); }
.term .c { color: var(--mag); }
.term .blink { animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

.spec-cards-side { display: flex; flex-direction: column; gap: 18px; }

.needle { margin-bottom: 14px; }
.needle-bar {
  height: 14px; width: 100%;
  background: linear-gradient(90deg, var(--line) 0 60%, oklch(0.93 0.02 85 / 0.35) 60% 78%, oklch(0.93 0.02 85 / 0.55) 78% 92%, var(--red) 92%);
  position: relative; overflow: hidden;
}
.needle-bar::after {
  content: ""; position: absolute; inset: 0;
  transform: scaleX(0); transform-origin: left;
  background: var(--phos);
  animation: needle-hit 1.1s var(--ease-ball) forwards;
}
.needle:nth-child(2) .needle-bar::after { animation-delay: 0.15s; }
.needle:nth-child(3) .needle-bar::after { animation-delay: 0.3s; }
@keyframes needle-hit {
  0% { transform: scaleX(0); }
  55% { transform: scaleX(calc(var(--lvl, 0.5) * 1.08)); }
  75% { transform: scaleX(calc(var(--lvl, 0.5) * 0.97)); }
  100% { transform: scaleX(var(--lvl, 0.5)); }
}
.needle-scale {
  display: block; margin-top: 4px; font-family: var(--mono); font-size: 0.6rem;
  color: var(--paper-dim); letter-spacing: 0.12em;
}

.robot-list { list-style: none; }
.robot-list li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.8rem; padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.robot-list li:last-child { border-bottom: 0; }
.chip { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.chip.ok { background: var(--phos); }
.chip.warn { background: var(--amber); }
.dim { color: var(--paper-dim); margin-left: auto; }

/* ---------- sections ---------- */
section { padding: 90px 0; }
.h2 {
  font-family: var(--disp); font-weight: 900;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance;
  margin: 0 0 18px;
}
.h2.arrow { position: relative; }
.arr {
  display: inline-block; color: var(--mag); font-family: var(--mono);
  font-size: 0.9em; letter-spacing: -0.3em; margin-left: 6px;
  vertical-align: middle;
}
.lede { color: var(--paper-dim); max-width: 64ch; margin-bottom: 42px; font-size: 1.05rem; }

/* why grid — specimen numbered cells, not equal cards */
.why-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.whyspec { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 24px; }
.whyspec-no {
  font-family: var(--mono); font-size: 0.7rem; color: var(--mag);
  letter-spacing: 0.14em; margin-bottom: 14px;
}
.whyspec h3 { font-family: var(--disp); font-weight: 700; font-size: 1.15rem; margin-bottom: 10px; }
.whyspec p:last-child { color: var(--paper-dim); font-size: 0.92rem; }

/* command radar grid */
.radar-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.cmd { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 22px; }
.cmd code { font-size: 0.78rem; color: var(--phos); display: block; word-break: break-all; }
.cmd-cap {
  display: block; margin-top: 8px; font-size: 0.84rem; color: var(--paper-dim);
}

/* oracle */
.phi-block { max-width: 96ch; }
.phi-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 6px;
}
.phi-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px; }
.phi-prim {
  display: block; font-family: var(--mono); font-size: 1rem; color: var(--mag);
  letter-spacing: 0.06em; margin-bottom: 8px;
}
.phi-desc { color: var(--paper-dim); font-size: 0.9rem; }
.phi-note {
  margin-top: 30px; border-left: 2px solid var(--amber); padding-left: 16px;
  color: var(--paper-dim); font-size: 0.92rem; max-width: 70ch;
}

/* proofed slop radar */
.proof-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.proof-item { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px; }
.proof-kw {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 10px;
}
.proof-line { font-family: var(--mono); font-size: 0.82rem; line-height: 1.6; margin-bottom: 10px; word-break: break-word; }
.flag { color: var(--red); white-space: nowrap; }
.proof-fix { color: var(--paper-dim); font-size: 0.82rem; }

/* install */
.install-code {
  border: 1px solid var(--line-strong); background: var(--ink-2);
  padding: 26px 28px; font-family: var(--mono); font-size: 0.95rem;
  line-height: 2; max-width: 720px;
}
.install-note { color: var(--paper-dim); margin: 22px 0 30px; max-width: 64ch; }
.install-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.sheetfoot { padding: 40px 24px 50px; }
.foot-row { max-width: var(--max); margin: 0 auto; }
.foot-h {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--paper-dim); margin: 22px 0 10px;
}
.foot-row ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot-row a { font-size: 0.9rem; text-decoration: none; color: var(--paper); }
.foot-row a:hover { color: var(--phos); }
.foot-note {
  max-width: var(--max); margin: 40px auto 0; padding-top: 18px;
  border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--paper-dim);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .mechanism, .why-grid, .radar-grid, .phi-grid, .proof-grid { grid-template-columns: 1fr; }
  .topnav { display: none; }
  .topline { justify-content: space-between; }
  .specimen { font-size: clamp(3.2rem, 15vw, 5rem); }
  .titleblock { padding-top: 44px; }
  section { padding: 64px 0; }
  .install-cmd { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .term .blink { animation: none; }
}

@media (prefers-reduced-transparency: reduce) {
  /* world is flat print ink; nothing to degrade */
}

@media print {
  body { background: #fff; color: #111; }
  .cropmark, .reg-cross, .toplink { display: none; }
}