/* orimusu.com top pages. Mobile-first. Identity: off-white, red mark, system type. */
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #fafaf8;
  --fg: #20231f;
  --muted: #efefeb;
  --muted-fg: #5c6058;
  --border: #d3d5ce;
  --accent: #c64526;
  --card: #fff;
  --ink: #20231f;
  --term-bg: #161b22;
  --term-fg: #e6edf3;
  --term-dim: #9aa4af;
  --ok: #1a7f37;
  --ok-bg: #e8f5ec;
  --no: #c64526;
  --no-bg: #fdecee;
  --un: #9a6700;
  --un-bg: #f8f1d8;
  --gutter: 20px;
  --header-h: 64px;
  --radius: 12px;
  --sans: Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd, dt, figure { margin: 0; }
h1, h2, h3 { line-height: 1.25; font-weight: 700; }
ul { padding: 0; list-style: none; }

a {
  color: inherit;
  text-underline-offset: 3px;
}
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 12px;
  top: -100px;
  background: var(--fg);
  color: #fff;
  padding: 12px 16px;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.wordmark:hover { text-decoration: none; }

.brand-mark {
  width: 7px;
  height: 7px;
  background: var(--accent);
  align-self: flex-start;
  margin-top: 6px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  font-size: 14px;
}
.header nav a { text-decoration: none; padding-block: 8px; }
.header nav a:hover { text-decoration: underline; }
.header nav a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 12px;
  white-space: nowrap;
}
.language-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.language-switch a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.language-switch > span { opacity: 0.4; }

/* Buttons — only 試す (primary) and GitHub (secondary) */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-primary:hover { background: #000; }
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--fg); background: var(--muted); }

/* Hero */
.hero {
  padding: 36px 0 16px;
}
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted-fg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2rem, 8vw, 3.25rem);
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.value {
  font-size: clamp(1.15rem, 3.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 12px;
}
.problem {
  color: var(--muted-fg);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 38rem;
}

/* Terminal */
.terminal {
  margin: 28px 0 8px;
  background: var(--term-bg);
  color: var(--term-fg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgb(0 0 0 / 12%);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #30363d;
  color: var(--term-dim);
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.term-dots { display: flex; gap: 6px; }
.term-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30363d;
  display: block;
}
.term-body { padding: 8px 0 4px; }
.term-row {
  padding: 12px 14px;
  border-bottom: 1px solid #21262d;
}
.term-row:last-child { border-bottom: 0; }
.term-row pre, .term-row .out {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.term-row .cmd { color: var(--term-fg); }
.term-row .cmd .p { color: var(--term-dim); }
.term-result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 8px;
}
.term-row .out { font-weight: 700; font-size: 13.5px; }
.term-row .ok { color: #3fb950; }
.term-row .no { color: #f85149; }
.term-row .un { color: #d29922; }
.plain {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #fff;
  font-family: var(--sans);
}
.term-row .meta {
  margin-top: 4px;
  color: var(--term-dim);
  font-size: 11.5px;
  line-height: 1.5;
}
.term-note {
  padding: 12px 14px 16px;
  border-top: 1px solid #30363d;
  color: var(--term-dim);
  font-size: 12.5px;
  line-height: 1.6;
}

/* Sections */
.section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.section h2 {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.lead {
  color: var(--muted-fg);
  max-width: 40rem;
  margin-bottom: 24px;
}

/* Breakdown steps */
.steps {
  display: grid;
  gap: 14px;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
}
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-fg);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.step h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.step p + p { margin-top: 8px; }
.step p { font-size: 15.5px; line-height: 1.7; }

/* Verdict cards */
.verdicts {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.verdict {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  border-left-width: 4px;
}
.verdict.ok { border-left-color: var(--ok); background: var(--ok-bg); }
.verdict.no { border-left-color: var(--no); background: var(--no-bg); }
.verdict.un { border-left-color: var(--un); background: var(--un-bg); }
.verdict .name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 4px;
}
.verdict.ok .name { color: var(--ok); }
.verdict.no .name { color: var(--no); }
.verdict.un .name { color: var(--un); }
.verdict .plain-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}
.verdict p { font-size: 14.5px; line-height: 1.6; color: var(--fg); }

/* Simple flow diagram */
.flow {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  font-size: 13.5px;
}
.flow-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.chip {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
}
.chip.mono { font-family: var(--mono); font-size: 12px; }
.arrow { color: var(--muted-fg); }
.flow-note {
  color: var(--muted-fg);
  font-size: 13px;
  margin-top: 8px;
}

.limits li {
  padding: 8px 0 8px 1.1em;
  position: relative;
  font-size: 15.5px;
  line-height: 1.65;
}
.limits li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--muted-fg);
}
.limits a { color: var(--fg); }

/* Company / about compact */
.split {
  display: grid;
  gap: 28px;
}
.facts {
  margin-top: 10px;
}
.facts div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.6;
}
.facts dt { color: var(--muted-fg); margin: 0; word-break: keep-all; }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.prose p + p { margin-top: 8px; }
.prose p { font-size: 15.5px; line-height: 1.75; max-width: 38rem; }

/* Closing CTA */
.cta-block {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
}
.cta-block h2 { margin-bottom: 10px; }
.cta-block .lead { margin-bottom: 0; }
.cta-proof {
  position: relative;
  margin: 20px 0 0;
  max-width: 40rem;
}
.cta-proof-still,
.cta-proof-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0d1117;
}
.cta-proof-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}
.cta-proof figcaption {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-fg);
}
@media (prefers-reduced-motion: reduce) {
  .cta-proof-video { display: none; }
}

/* What we want to prevent — light, sits tight against the CTA */
.prevent-section { padding-bottom: 16px; }
.prevent-copy h2 { margin-bottom: 16px; }
.prevent-copy p {
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 42rem;
}
.prevent-copy p + p { margin-top: 10px; }
.prevent-copy code {
  font-family: var(--mono);
  font-size: 0.95em;
  font-weight: 600;
  background: rgb(32 35 31 / 6%);
  padding: 0.05em 0.22em;
  border-radius: 3px;
  white-space: nowrap;
}
.prevent-points {
  margin: 18px 0;
  display: grid;
  gap: 10px;
  max-width: 42rem;
}
.prevent-points li {
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.prevent-term {
  margin: 14px 0 10px;
  background: var(--term-bg);
  color: var(--term-fg);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prevent-term code { font-family: inherit; font-size: inherit; background: none; padding: 0; border-radius: 0; }
.prevent-term .cmd { color: var(--term-fg); display: block; }
.prevent-term .out { color: #ff8b83; font-weight: 600; display: block; margin-top: 6px; }
.prevent-caption {
  color: var(--muted-fg);
  font-size: 13px;
  line-height: 1.7;
  max-width: 42rem;
  margin: 0;
}
.prevent-caption a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.section-follow {
  padding-top: 0;
  border-top: 0;
}



/* Draft legal / privacy documents */
.draft-banner {
  background: #f8f1d8;
  border-bottom: 1px solid #e4d59a;
  color: #5c4a10;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  padding: 10px var(--gutter);
}
.doc-page {
  padding: 40px 0 64px;
}
.doc-page .doc-body { max-width: 42rem; }
.doc-page h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.05rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.doc-page .doc-meta {
  color: var(--muted-fg);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0 0 28px;
}
.doc-page .doc-meta p + p { margin-top: 2px; }
.doc-page h2 {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  margin: 28px 0 10px;
}
.doc-page p,
.doc-page li {
  font-size: 1.02rem;
  line-height: 1.75;
}
.doc-page p + p { margin-top: 10px; }
.doc-page ul {
  list-style: disc;
  padding-left: 1.3em;
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
}
.doc-page a { text-decoration: underline; text-underline-offset: 3px; }
.draft-mark {
  display: inline;
  font-family: var(--mono);
  font-size: 0.86em;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #7a5b12;
  background: #f8f1d8;
  border: 1px solid #e4d59a;
  border-radius: 4px;
  padding: 0.05em 0.4em;
}

/* Footer — standard company trust block, not marketing */
.footer {
  border-top: 1px solid var(--border);
  background: #f3f3ef;
  padding: 40px 0 28px;
  font-size: 14px;
  color: var(--fg);
}
.footer-grid {
  display: grid;
  gap: 28px;
}
.footer h3 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
  font-weight: 700;
  margin-bottom: 10px;
}
html[lang="ja"] .footer h3 {
  letter-spacing: 0.04em;
  text-transform: none;
}
.footer ul { display: grid; gap: 6px; }
.footer a { text-decoration: none; text-underline-offset: 3px; }
.footer a:hover { text-decoration: underline; }
.footer a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  text-decoration: underline;
}
.todo-link {
  color: var(--muted-fg);
}
.todo-flag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted-fg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 5px;
  margin-left: 4px;
}

.footer-legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted-fg);
  font-size: 13px;
  line-height: 1.7;
}
.footer-legal strong { color: var(--fg); font-weight: 700; }
.footer-legal p + p { margin-top: 4px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  margin-top: 0;
  font-size: 12px;
}
.footer-bottom-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 2px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--fg);
  text-decoration: none;
}
.footer-social a:hover { color: var(--muted-fg); text-decoration: none; }
.footer-social svg { width: 18px; height: 18px; display: block; }
.todo-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted-fg);
}
.todo-note + .todo-note { margin-top: 4px; }

html[lang="ja"] .value,
html[lang="ja"] .hero h1,
html[lang="ja"] .step h3,
html[lang="ja"] .section h2,
html[lang="ja"] .problem,
html[lang="ja"] .lead,
html[lang="ja"] .step p,
html[lang="ja"] .verdict p,
html[lang="ja"] .limits li,
html[lang="ja"] .prevent-copy p,
html[lang="ja"] .prevent-points li,
html[lang="ja"] .prevent-caption,
html[lang="ja"] .doc-page p,
html[lang="ja"] .doc-page li,
html[lang="ja"] .doc-page .doc-meta { word-break: auto-phrase; line-break: strict; overflow-wrap: anywhere; }
html[lang="ja"] .value { word-break: keep-all; }
html[lang="ja"] body { line-height: 1.75; }


@media (max-width: 639px) {
  :root { --header-h: 108px; }
  .header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
  }
  .header-controls { display: contents; }
  .wordmark { grid-column: 1; grid-row: 1; }
  .language-switch {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 4px 16px;
    font-size: 13.5px;
  }
}

@media (min-width: 640px) {
  :root { --gutter: 28px; --header-h: 72px; }
  .header nav { display: flex; }
  .actions .btn { min-width: 140px; }
  .verdicts { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 9em 1fr; }
}

@media (min-width: 880px) {
  :root { --gutter: 36px; }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 40px;
    align-items: start;
  }
  .hero { padding: 56px 0 32px; }
  .terminal { margin-top: 0; }
  .verdicts { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 64px 0; }
  .doc-page { padding: 56px 0 80px; }
  .prevent-section { padding-bottom: 20px; }
  .section-follow { padding-top: 0; }
  .cta-block { padding: 36px 32px; }
}

@media (min-width: 1100px) {
  :root { --gutter: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Diagram-led sections (replace the old numbered breakdown) */
.hero-copy { max-width: 42rem; }
.diagram-section { padding: 48px 0; border-top: 1px solid var(--border); }
.diagram-section h2 {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.caption {
  color: var(--muted-fg);
  max-width: 42rem;
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: 1.75;
}
.caption + .caption, .note + .limits-link, .caption + .note { margin-top: 8px; }
.note, .limits-link {
  color: var(--muted-fg);
  max-width: 42rem;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
}
.limits-link a { color: var(--fg); }

.diagram {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 16px;
}

.flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.node {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
}
.node .sub {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted-fg);
  margin-top: 4px;
}
.node.is-system { background: var(--muted); }
.node.is-guard {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.node.is-guard .sub { color: #c9d1d9; }
.node.is-missing {
  border: 1.5px dashed var(--accent);
  background: #fdecee;
  color: var(--accent);
  font-weight: 700;
}

.arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted-fg);
  font-size: 12.5px;
  text-align: center;
  line-height: 1.4;
  padding: 2px 0;
}
.arrow .dir::before { content: "↓"; font-size: 16px; line-height: 1; display: block; color: var(--fg); }
.arrow.is-warn { color: var(--accent); }
.arrow.after-flow { margin-top: 8px; }
.arrow.is-warn .dir::before { color: var(--accent); }

.branch {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.branch .verdict { margin: 0; }

.compare {
  display: grid;
  gap: 10px;
}
.compare-row {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.compare-row:first-child { border-top: 0; padding-top: 0; }
.compare-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-fg);
  font-weight: 700;
  text-transform: uppercase;
}
.compare-cell {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.6;
}
.compare-cell strong { display: block; font-size: 12px; letter-spacing: 0.04em; color: var(--muted-fg); font-weight: 700; margin-bottom: 4px; }
.compare-cell.is-ours {
  background: #fff;
  border-color: var(--ink);
}

html[lang="ja"] .caption,
html[lang="ja"] .note,
html[lang="ja"] .node,
html[lang="ja"] .compare-cell,
html[lang="ja"] .arrow { word-break: auto-phrase; line-break: strict; }

@media (min-width: 800px) {
  .diagram { padding: 28px 24px; }
  .diagram-section { padding: 64px 0; }
  .flow.is-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .flow.is-row .node { flex: 1 1 0; min-width: 0; }
  .flow.is-row .arrow { flex: 0 1 9.5rem; padding: 0 4px; }
  .flow.is-row .arrow .dir::before { content: "→"; }
  .branch { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .compare-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
  }
}

@media (min-width: 880px) {
  .hero { padding: 56px 0 48px; }
}


/* Dark current-pulse diagram (with-Guard only) */
.viz-band {
  background: #0a0c10;
  color: #e6edf3;
  padding: 48px 0 56px;
  border-top: 1px solid #1c2128;
}
.viz-band h2 {
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: #f0f3f6;
}
.viz-band .lead {
  color: #9aa4af;
  margin: 0 0 22px;
  max-width: 40rem;
}

.viz-stage {
  background: #05070a;
  border: 1px solid #262c33;
  border-radius: 16px;
  padding: 28px 18px 36px;
  overflow: visible;
}

.viz-chart { display: grid; }
.viz-head-icons {
  display: grid;
  grid-template-columns: 6% 1fr 6%;
  justify-items: center;
  margin: 0 0 8px;
}
.viz-node .ico {
  width: 40px;
  height: 40px;
  color: #e6edf3;
  display: grid;
  place-items: center;
  background: #14181f;
  border: 1px solid #4a5560;
  border-radius: 11px;
}
.viz-node .ico svg {
  width: 20px;
  height: 20px;
  display: block;
}
.viz-node.is-gate .ico {
  border-color: #7b8692;
  background: #1a1f27;
  box-shadow: 0 0 0 1px rgb(123 134 146 / 22%);
}
.viz-head-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  color: #d7dee6;
}

.viz-lanes {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.lane {
  display: grid;
  gap: 8px;
  min-height: 72px;
}
.lane-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  min-height: 1.5em;
}
.lane-meta b {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lane-meta span {
  font-size: 14.5px;
  color: #c8d0d8;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.lane.is-ok .lane-meta b { color: #3fb950; }
.lane.is-un .lane-meta b { color: #e3b341; }
.lane.is-no .lane-meta b { color: #f85149; }




.lane-svg {
  width: 100%;
  height: 56px;
  display: block;
  overflow: visible;
}
.rail {
  fill: none;
  stroke: #3d4550;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.port {
  fill: #0a0c10;
  stroke: #4a5560;
  stroke-width: 1.5;
}
.gate-bar {
  fill: #12161c;
  stroke: #5a6570;
  stroke-width: 1.5;
}
.lane.is-ok .gate-glow { fill: #3fb950; }
.lane.is-un .gate-glow { fill: #d29922; }
.lane.is-no .gate-glow { fill: #f85149; }
.gate-glow { opacity: 0; }

.spark-ring {
  fill: none;
  stroke-width: 1.4;
  opacity: 0;
}
.lane.is-ok .spark-ring { stroke: #7ee787; }
.lane.is-un .spark-ring { stroke: #e8c056; }
.lane.is-no .spark-ring { stroke: #ff8b83; }

.target-halo {
  fill: #3fb950;
  opacity: 0;
}
.lane.is-ok .port.end {
  fill: #0a0c10;
  stroke: #4a5560;
}

.deny-x { opacity: 0; }
.deny-x line {
  stroke: #ff6b63;
  stroke-width: 4;
  stroke-linecap: round;
}

.stream {
  offset-path: path("M 24 26 L 776 26");
  offset-distance: 0%;
  offset-rotate: auto;
  opacity: 0;
}
.lane.is-ok .dot { fill: #3fb950; }
.lane.is-un .dot { fill: #d29922; }
.lane.is-no .dot { fill: #f85149; }
.lane.is-ok .dot.head { fill: #9ef0a5; }
.lane.is-un .dot.head { fill: #f0cc5a; }
.lane.is-no .dot.head { fill: #ff9a93; }
.lane.is-ok .dot-core { fill: #f7fff8; }
.lane.is-un .dot-core { fill: #fff8de; }
.lane.is-no .dot-core { fill: #ffeceb; }
.stream .d1 { opacity: 0.95; }
.stream .d2 { opacity: 0.82; }
.stream .d3 { opacity: 0.68; }
.stream .d4 { opacity: 0.52; }
.stream .d5 { opacity: 0.38; }
.stream .d6 { opacity: 0.24; }

/* 10s wave: travel, ~4s hold of all three states, short reset */
.viz-run .lane.is-ok .stream { animation: stream-ok 10s infinite; }
.viz-run .lane.is-un .stream { animation: stream-un 10s infinite; }
.viz-run .lane.is-no .stream { animation: stream-no 10s infinite; }
.viz-run .lane.is-ok .gate-glow { animation: glow-ok 10s linear infinite; }
.viz-run .lane.is-un .gate-glow { animation: glow-un-blink 10s linear infinite; }
.viz-run .lane.is-no .gate-glow { animation: glow-no 10s linear infinite; }
.viz-run .lane.is-ok .gate-bar { animation: bar-ok 10s linear infinite; }
.viz-run .lane.is-un .gate-bar { animation: bar-un-blink 10s linear infinite; }
.viz-run .lane.is-no .gate-bar { animation: bar-no 10s linear infinite; }
.viz-run .lane.is-ok .target-halo { animation: target-halo 10s linear infinite; }
.viz-run .lane.is-ok .port.end { animation: target-port 10s linear infinite; }
.viz-run .lane.is-no .deny-x { animation: deny-x 10s linear infinite; }
.viz-run .lane.is-ok .spark-ring { animation: spark-ok 10s linear infinite; }
.viz-run .lane.is-un .spark-ring { animation: spark-un 10s linear infinite; }
.viz-run .lane.is-no .spark-ring { animation: spark-no 10s linear infinite; }

@keyframes stream-ok {
  0%, 5% { offset-distance: 0%; opacity: 0; animation-timing-function: ease; }
  8% { offset-distance: 0%; opacity: 1; animation-timing-function: cubic-bezier(.42,0,.2,1); }
  30% { offset-distance: 50%; opacity: 1; animation-timing-function: cubic-bezier(.42,0,.2,1); }
  46% { offset-distance: 100%; opacity: 1; animation-timing-function: linear; }
  86% { offset-distance: 100%; opacity: 1; animation-timing-function: ease; }
  93%, 100% { offset-distance: 100%; opacity: 0; }
}
/* Amber arrives at the gate (50%) and blinks steadily through the hold */
@keyframes stream-un {
  0%, 5% { offset-distance: 0%; opacity: 0; animation-timing-function: ease; }
  8% { offset-distance: 0%; opacity: 1; animation-timing-function: cubic-bezier(.42,0,.2,1); }
  30% { offset-distance: 50%; opacity: 1; animation-timing-function: linear; }
  34% { offset-distance: 50%; opacity: 0.2; }
  38% { offset-distance: 50%; opacity: 1; }
  42% { offset-distance: 50%; opacity: 0.2; }
  46% { offset-distance: 50%; opacity: 1; }
  50% { offset-distance: 50%; opacity: 0.2; }
  54% { offset-distance: 50%; opacity: 1; }
  58% { offset-distance: 50%; opacity: 0.2; }
  62% { offset-distance: 50%; opacity: 1; }
  66% { offset-distance: 50%; opacity: 0.2; }
  70% { offset-distance: 50%; opacity: 1; }
  74% { offset-distance: 50%; opacity: 0.2; }
  78% { offset-distance: 50%; opacity: 1; }
  82% { offset-distance: 50%; opacity: 0.2; }
  86% { offset-distance: 50%; opacity: 1; animation-timing-function: ease; }
  93%, 100% { offset-distance: 50%; opacity: 0; }
}
/* Red hits the gate and dies there; the × takes over */
@keyframes stream-no {
  0%, 5% { offset-distance: 0%; opacity: 0; animation-timing-function: ease; }
  8% { offset-distance: 0%; opacity: 1; animation-timing-function: cubic-bezier(.42,0,.2,1); }
  30% { offset-distance: 50%; opacity: 1; animation-timing-function: ease; }
  38% { offset-distance: 50%; opacity: 0; }
  39%, 100% { offset-distance: 50%; opacity: 0; }
}
@keyframes glow-ok {
  0%, 28%, 93%, 100% { opacity: 0; }
  32%, 86% { opacity: 0.28; }
}
@keyframes glow-un-blink {
  0%, 28%, 93%, 100% { opacity: 0; }
  32% { opacity: 0.7; }
  34% { opacity: 0.12; }
  38% { opacity: 0.7; }
  42% { opacity: 0.12; }
  46% { opacity: 0.7; }
  50% { opacity: 0.12; }
  54% { opacity: 0.7; }
  58% { opacity: 0.12; }
  62% { opacity: 0.7; }
  66% { opacity: 0.12; }
  70% { opacity: 0.7; }
  74% { opacity: 0.12; }
  78% { opacity: 0.7; }
  82% { opacity: 0.12; }
  86% { opacity: 0.7; }
}
@keyframes glow-no {
  0%, 28%, 93%, 100% { opacity: 0; }
  30% { opacity: 0.8; }
  36%, 86% { opacity: 0; }
}
@keyframes bar-ok {
  0%, 28%, 93%, 100% { stroke: #5a6570; }
  32%, 86% { stroke: #3fb950; }
}
@keyframes bar-un-blink {
  0%, 28%, 93%, 100% { stroke: #5a6570; }
  32% { stroke: #e3b341; }
  34% { stroke: #5a6570; }
  38% { stroke: #e3b341; }
  42% { stroke: #5a6570; }
  46% { stroke: #e3b341; }
  50% { stroke: #5a6570; }
  54% { stroke: #e3b341; }
  58% { stroke: #5a6570; }
  62% { stroke: #e3b341; }
  66% { stroke: #5a6570; }
  70% { stroke: #e3b341; }
  74% { stroke: #5a6570; }
  78% { stroke: #e3b341; }
  82% { stroke: #5a6570; }
  86% { stroke: #e3b341; }
}
@keyframes bar-no {
  0%, 28%, 93%, 100% { stroke: #5a6570; opacity: 1; fill: #12161c; }
  30% { stroke: #f85149; opacity: 1; fill: #12161c; }
  34%, 86% { stroke: #f85149; opacity: 0; fill: transparent; }
}
@keyframes target-halo {
  0%, 44%, 93%, 100% { opacity: 0; }
  48%, 86% { opacity: 0.45; }
}
@keyframes target-port {
  0%, 44%, 93%, 100% { fill: #0a0c10; stroke: #4a5560; }
  48%, 86% { fill: #1a7f37; stroke: #7ee787; }
}
@keyframes deny-x {
  0%, 29% { opacity: 0; }
  34% { opacity: 1; }
  86% { opacity: 1; }
  93%, 100% { opacity: 0; }
}
@keyframes spark-ok {
  0%, 29%, 36%, 100% { opacity: 0; r: 8px; }
  31% { opacity: 0.85; r: 14px; }
  35% { opacity: 0; r: 18px; }
}
@keyframes spark-un {
  0%, 29%, 36%, 100% { opacity: 0; r: 8px; }
  31% { opacity: 0.9; r: 14px; }
  35% { opacity: 0; r: 18px; }
}
@keyframes spark-no {
  0%, 29%, 38%, 100% { opacity: 0; r: 8px; }
  31% { opacity: 1; r: 16px; }
  35% { opacity: 0.2; r: 20px; }
}

.viz-band .note,
.viz-band .limits-link {
  color: #9aa4af;
  max-width: 42rem;
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
}
.viz-band .limits-link a { color: #58a6ff; }
.br-sm { display: none; }
@media (max-width: 799px) {
  .br-sm { display: block; }
}

@media (min-width: 800px) {
  .viz-band { padding: 64px 0 72px; }
  .viz-stage { padding: 28px 28px 32px; }
  .viz-chart {
    grid-template-columns: 228px 1fr;
    column-gap: 16px;
  }
  .viz-head-icons,
  .viz-head-labels { grid-column: 2; }
  .viz-lanes { grid-column: 1 / -1; gap: 10px; }
  .viz-head-labels {
    font-size: 15px;
    margin-bottom: 12px;
    grid-template-columns: 6% 1fr 6%;
    justify-items: center;
  }
  .viz-head-labels span {
    width: max-content;
    max-width: 16rem;
  }
  .viz-head-labels span:last-child {
    justify-self: end;
    text-align: right;
  }
  .lane {
    grid-template-columns: 228px 1fr;
    align-items: center;
    gap: 12px 16px;
    min-height: 56px;
    padding: 6px 0;
  }
  .lane-meta b { font-size: 14px; }
  .lane-meta span { font-size: 15.5px; }
  .lane-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .lane-meta span {
    overflow-wrap: anywhere;
    max-width: 100%;
  }
  .lane-svg { height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .viz-run .stream,
  .viz-run .gate-glow,
  .viz-run .gate-bar,
  .viz-run .target-halo,
  .viz-run .port.end,
  .viz-run .deny-x,
  .viz-run .spark-ring { animation: none !important; }
  .lane.is-ok .stream { offset-distance: 100%; opacity: 1; }
  .lane.is-un .stream { offset-distance: 50%; opacity: 1; }
  .lane.is-no .stream { offset-distance: 50%; opacity: 0; }
  .lane.is-ok .gate-glow { opacity: 0.28; }
  .lane.is-un .gate-glow { opacity: 0.55; }
  .lane.is-no .gate-glow { opacity: 0; }
  .lane.is-ok .gate-bar { stroke: #3fb950; }
  .lane.is-un .gate-bar { stroke: #e3b341; }
  .lane.is-no .gate-bar { stroke: #f85149; opacity: 0; fill: transparent; }
  .lane.is-no .gate-glow { opacity: 0; }
  .lane.is-ok .target-halo { opacity: 0.45; }
  .lane.is-ok .port.end { fill: #1a7f37; stroke: #7ee787; }
  .lane.is-no .deny-x { opacity: 1; }
  .spark-ring { opacity: 0 !important; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
