:root {
  --void: #05060a;
  --obsidian: #0b0e17;
  --ink: #101525;
  --ash: #c9c7bd;
  --bone: #f0eadc;
  --brass: #b9975b;
  --blood: #7b1f2a;
  --bluefire: #76d8ff;
  --greenfire: #6fffc3;
  --panel: rgba(11,14,23,.88);
  --line: rgba(185,151,91,.34);
  --softline: rgba(201,199,189,.16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--bone);
  background:
    radial-gradient(circle at 15% 7%, rgba(118,216,255,.12), transparent 30rem),
    radial-gradient(circle at 88% 15%, rgba(123,31,42,.20), transparent 32rem),
    linear-gradient(140deg, #030408 0%, #080b14 52%, #130e14 100%);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.68;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.48) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(118,216,255,.25) 0 1px, transparent 1.8px);
  background-size: 210px 210px, 340px 340px;
  background-position: 18px 30px, 90px 110px;
}
a { color: var(--greenfire); text-decoration: none; }
a:hover, a:focus { color: var(--bluefire); text-decoration: underline; text-underline-offset: .18em; }
.skip-link { position: fixed; left: .75rem; top: .75rem; z-index: 100; padding: .65rem 1rem; border-radius: 999px; background: var(--bone); color: var(--void); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); color: var(--void); }
.site-shell { position: relative; z-index: 1; width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.cod-orbit-header { position: relative; z-index: 2; padding: 26px 0 18px; border-bottom: 1px solid var(--line); background: rgba(5,6,10,.42); }
.cod-orbit-masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cod-orbit-brand { color: var(--bone); }
.cod-orbit-brand strong { display: block; font-size: clamp(1.45rem, 3vw, 2.3rem); letter-spacing: .12em; text-transform: uppercase; font-weight: normal; }
.cod-orbit-brand span { color: var(--ash); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.cod-series-nav, .cod-primary-mini { display: flex; flex-wrap: wrap; gap: .55rem .9rem; align-items: center; }
.cod-series-nav a, .cod-primary-mini a { font-size: .9rem; }
.hero { padding: clamp(54px, 8vw, 96px) 0 44px; }
.eyebrow { margin: 0 0 12px; color: var(--brass); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
h1 { margin: 0 0 20px; max-width: 1000px; font-size: clamp(2.6rem, 7vw, 6rem); line-height: .97; letter-spacing: -.045em; font-weight: normal; text-wrap: balance; }
.hero p.lede { max-width: 900px; margin: 0; color: var(--ash); font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.series-strip { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.series-strip a { display: inline-block; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(16,21,37,.58); }
.grid-two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 24px; align-items: start; }
.panel, .article-card, .lab-card { border: 1px solid var(--line); border-radius: 1.25rem; background: var(--panel); box-shadow: 0 22px 60px rgba(0,0,0,.28); }
.article-card { padding: clamp(1.3rem, 4vw, 3rem); }
.article-card h2 { margin: 2.6rem 0 1rem; font-size: clamp(1.6rem, 3.3vw, 2.5rem); line-height: 1.08; font-weight: normal; }
.article-card h2:first-child { margin-top: 0; }
.article-card h3 { margin: 1.8rem 0 .65rem; color: var(--brass); font-size: 1.22rem; font-weight: normal; }
.article-card p, .article-card li { color: #ddd8cc; font-size: 1.04rem; }
.article-card ul { padding-left: 1.3rem; }
.pullquote { margin: 2rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--bluefire); background: rgba(118,216,255,.07); font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
.equation { margin: 1.1rem 0; padding: .9rem 1rem; overflow-x: auto; border: 1px solid rgba(111,255,195,.22); border-radius: .85rem; background: rgba(5,6,10,.6); color: var(--bone); font: .98rem/1.75 Consolas, "Courier New", monospace; white-space: nowrap; }
.lab-card { padding: clamp(1rem, 3vw, 1.5rem); }
.lab-card h2 { margin: 0 0 .5rem; color: var(--brass); font-size: 1.15rem; font-weight: normal; letter-spacing: .08em; text-transform: uppercase; }
.lab-card > p { margin-top: 0; color: var(--ash); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .9rem; }
.field { display: grid; gap: .3rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { color: var(--ash); font-size: .86rem; }
input, select { width: 100%; min-height: 44px; padding: .68rem .72rem; border: 1px solid var(--line); border-radius: .7rem; background: rgba(5,6,10,.72); color: var(--bone); font: inherit; }
input:focus, select:focus, button:focus, a:focus { outline: 2px solid var(--bluefire); outline-offset: 2px; }
button, .button { display: inline-block; min-height: 44px; padding: .66rem .95rem; border: 1px solid var(--greenfire); border-radius: 999px; background: var(--greenfire); color: var(--void); font: inherit; cursor: pointer; }
button:hover, .button:hover { filter: brightness(1.06); text-decoration: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; align-items: center; }
.preset-row { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0 0; }
.preset-row a { padding: .4rem .62rem; border: 1px solid var(--softline); border-radius: 999px; font-size: .82rem; }
.result-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; margin-top: 1rem; }
.metric { min-width: 0; padding: .75rem; border: 1px solid var(--softline); border-radius: .85rem; background: rgba(5,6,10,.48); }
.metric b { display: block; color: var(--ash); font-size: .72rem; font-weight: normal; letter-spacing: .08em; text-transform: uppercase; }
.metric span { display: block; margin-top: .22rem; color: var(--bone); font: 1rem/1.35 Consolas, "Courier New", monospace; overflow-wrap: anywhere; }
.status { margin-top: .9rem; padding: .85rem 1rem; border-left: 3px solid var(--greenfire); background: rgba(111,255,195,.07); color: var(--bone); }
.status.warning { border-left-color: var(--brass); background: rgba(185,151,91,.08); }
.diagram { margin: 1rem 0; overflow: hidden; border: 1px solid var(--softline); border-radius: 1rem; background: #060911; }
.diagram svg { display: block; width: 100%; height: auto; }
.caption { margin: .65rem 0 0; color: var(--ash); font-size: .88rem; }
.compare { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .94rem; }
.compare th, .compare td { padding: .7rem .55rem; border-bottom: 1px solid var(--softline); text-align: left; vertical-align: top; }
.compare th { color: var(--brass); font-weight: normal; }
.callout { margin: 1.4rem 0; padding: 1rem 1.1rem; border: 1px solid rgba(118,216,255,.2); border-radius: 1rem; background: rgba(118,216,255,.055); }
.callout strong { color: var(--bluefire); }
.side-stack { display: grid; gap: 1rem; position: sticky; top: 18px; }
.side-note { padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(11,14,23,.84); }
.side-note h2 { margin: 0 0 .55rem; color: var(--brass); font-size: .78rem; font-weight: normal; letter-spacing: .14em; text-transform: uppercase; }
.side-note p, .side-note li { color: var(--ash); font-size: .92rem; }
.side-note p { margin: 0; }
.side-note ul { margin: 0; padding-left: 1.05rem; }
.footer { position: relative; z-index: 1; margin-top: 60px; padding: 28px 0; border-top: 1px solid var(--line); color: var(--ash); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 12px; flex-wrap: wrap; }
.small { color: var(--ash); font-size: .86rem; }
.vector-key { display: flex; flex-wrap: wrap; gap: .7rem 1rem; color: var(--ash); font-size: .82rem; margin: .4rem 0 .8rem; }
.dot { display: inline-block; width: .72rem; height: .72rem; border-radius: 50%; margin-right: .3rem; vertical-align: -.04rem; }
.dot-blue { background: #76d8ff; }
.dot-green { background: #6fffc3; }
.dot-brass { background: #b9975b; }
@media (max-width: 900px) { .grid-two { grid-template-columns: 1fr; } .side-stack { position: static; } }
@media (max-width: 650px) { .site-shell { width: min(100% - 24px,1180px); } .form-grid, .result-grid { grid-template-columns: 1fr; } .field.full { grid-column: auto; } .compare { font-size: .85rem; } .compare th, .compare td { padding: .55rem .4rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
