:root {
  --coal: #111315;
  --graphite: #24272a;
  --chalk: #f3f0e8;
  --white: #fffef9;
  --signal: #e84932;
  --gold: #f0bd2f;
  --steel: #5f6b73;
  --line: rgba(17, 19, 21, .22);
  --max: 1240px;
  --rail: 5.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--coal);
  background: var(--chalk);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.58;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(17,19,21,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(17,19,21,.055) 1px, transparent 1px);
  background-size: 40px 40px;
  content: "";
}

a { color: inherit; }
:focus-visible { outline: 4px solid var(--gold); outline-offset: 4px; }

.skip {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  color: white;
  background: var(--signal);
  transform: translateY(-180%);
}
.skip:focus { transform: translateY(0); }

.status-line {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: .45rem max(1rem, calc((100vw - var(--max)) / 2));
  color: white;
  background: var(--coal);
  font: 700 .72rem/1.3 "Courier New", monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.status-line strong { color: var(--gold); }

.site-head {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 15rem 1fr auto;
  gap: 1rem;
  align-items: stretch;
  max-width: var(--max);
  min-height: 5rem;
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgba(243, 240, 232, .96);
  backdrop-filter: blur(12px);
}

.wordmark {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  align-items: center;
  text-decoration: none;
}
.wordmark b {
  display: grid;
  align-self: stretch;
  place-items: center;
  color: white;
  background: var(--signal);
  font: 900 .82rem/1 "Courier New", monospace;
}
.wordmark span { padding-left: 1rem; font-weight: 900; line-height: 1.05; text-transform: uppercase; }
.wordmark small { display: block; margin-top: .25rem; color: var(--steel); font: 700 .64rem/1.2 "Courier New", monospace; letter-spacing: .06em; }

.menu-button {
  display: none;
  align-self: center;
  margin-right: 1rem;
  padding: .65rem .8rem;
  border: 2px solid var(--coal);
  background: transparent;
  font: 800 .82rem Arial, sans-serif;
}

.nav { display: flex; align-items: stretch; justify-content: center; }
.nav a {
  display: grid;
  place-items: center;
  padding: .7rem .55rem;
  border-bottom: 5px solid transparent;
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--signal); }

.head-action {
  display: grid;
  min-width: 9rem;
  padding: 0 1rem;
  place-items: center;
  color: white;
  background: var(--coal);
  font-weight: 850;
  text-decoration: none;
}
.head-action:hover { background: var(--signal); }

main { overflow: hidden; }
.frame { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; border-right: 1px solid var(--line); border-left: 1px solid var(--line); }

.hero {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1.2fr) minmax(280px, .75fr);
  min-height: 38rem;
  border-bottom: 1px solid var(--line);
}
.rail-label {
  padding: 2rem .7rem;
  border-right: 1px solid var(--line);
  font: 800 .7rem/1 "Courier New", monospace;
  letter-spacing: .15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 6vw, 5rem); }
.eyebrow { margin: 0 0 1.25rem; color: var(--signal); font: 900 .77rem/1.2 "Courier New", monospace; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: .98; text-wrap: balance; }
h1 { max-width: 13ch; margin-bottom: 1.5rem; font-size: clamp(3.2rem, 7vw, 6.9rem); letter-spacing: -.065em; }
h2 { font-size: clamp(2rem, 4.2vw, 4rem); letter-spacing: -.045em; }
h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.lead { max-width: 66ch; color: #394247; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }

.hero-panel { position: relative; display: grid; align-content: end; padding: 2rem; overflow: hidden; color: white; background: var(--graphite); }
.hero-panel::before { position: absolute; top: -4rem; right: -5rem; width: 17rem; height: 17rem; border: 2.7rem solid var(--signal); border-radius: 50%; content: ""; }
.hero-panel::after { position: absolute; top: 9rem; right: 2rem; width: 7rem; height: 7rem; border: 1rem solid var(--gold); content: ""; transform: rotate(45deg); }
.hero-panel dl { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: .8rem; margin: 0; padding-top: 15rem; font-family: "Courier New", monospace; }
.hero-panel dt { color: rgba(255,255,255,.66); }
.hero-panel dd { margin: 0; font-weight: 900; text-align: right; }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  min-height: 3rem;
  padding: .75rem 1rem;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--signal);
  border: 2px solid var(--coal);
  box-shadow: 5px 5px 0 var(--coal);
  font-weight: 900;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}
.button:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--coal); }
.button.alt { color: var(--coal); background: var(--gold); }
.inline-link { padding: .75rem .25rem; font-weight: 850; text-underline-offset: .25rem; }

.sheet { display: grid; grid-template-columns: var(--rail) 1fr; border-bottom: 1px solid var(--line); }
.sheet-body { padding: clamp(3rem, 6vw, 6rem); }
.sheet-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.sheet-head h2, .sheet-head p { margin-bottom: 0; }
.sheet-head p { color: var(--steel); }

.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--coal); border: 1px solid var(--coal); }
.module { min-height: 16rem; padding: 1.5rem; background: var(--white); }
.module .code { display: block; margin-bottom: 3rem; color: var(--signal); font: 900 .72rem/1 "Courier New", monospace; letter-spacing: .14em; }
.module p { color: var(--steel); }
.module a { font-weight: 850; text-underline-offset: .2rem; }

.process { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--coal); border-bottom: 2px solid var(--coal); }
.process article { position: relative; padding: 1.3rem; border-right: 1px solid var(--coal); }
.process article:last-child { border-right: 0; }
.process span { color: var(--signal); font: 900 1.6rem/1 "Courier New", monospace; }
.process p { color: var(--steel); font-size: .9rem; }

.route-stack { display: grid; }
.route-stack a { display: grid; grid-template-columns: 5rem 1fr auto; gap: 1rem; align-items: center; padding: 1.2rem; border-top: 1px solid var(--line); text-decoration: none; }
.route-stack a:last-child { border-bottom: 1px solid var(--line); }
.route-stack a:hover { color: white; background: var(--coal); }
.route-stack span { color: var(--signal); font: 900 .78rem "Courier New", monospace; }
.route-stack strong { font-size: 1.05rem; }
.route-stack b { font-size: 1.6rem; }

.page-hero { display: grid; grid-template-columns: var(--rail) 1fr; border-bottom: 1px solid var(--line); }
.page-title { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); gap: 3rem; padding: clamp(3rem, 7vw, 6rem); }
.page-title h1 { font-size: clamp(3rem, 6vw, 5.8rem); }
.stamp { align-self: end; padding: 1.25rem; border: 2px solid var(--coal); background: var(--white); box-shadow: 8px 8px 0 var(--gold); }
.stamp span { display: block; color: var(--signal); font: 900 .7rem "Courier New", monospace; letter-spacing: .13em; text-transform: uppercase; }
.stamp strong { display: block; margin: .65rem 0; font-size: 1.25rem; line-height: 1.18; }
.stamp p { margin-bottom: 0; color: var(--steel); }

.split { display: grid; grid-template-columns: .7fr 1.3fr; gap: 3rem; }
.side-note { align-self: start; padding: 1.25rem; color: white; background: var(--graphite); border-top: 8px solid var(--signal); }
.side-note h2 { font-size: 1.5rem; }
.side-note p { color: rgba(255,255,255,.72); }
.side-note a { color: var(--gold); font-weight: 800; }

.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 1rem 1rem 1rem 3.4rem; border-top: 1px solid var(--line); background: rgba(255,255,255,.55); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before { position: absolute; top: 1rem; left: 1rem; content: "□"; color: var(--signal); font: 900 1.4rem/1 "Courier New", monospace; }

.matrix { width: 100%; border-collapse: collapse; background: var(--white); }
.matrix th, .matrix td { padding: 1rem; border: 1px solid var(--coal); text-align: left; vertical-align: top; }
.matrix th { color: white; background: var(--coal); font: 800 .78rem "Courier New", monospace; letter-spacing: .06em; text-transform: uppercase; }
.matrix tbody tr:nth-child(even) { background: #e8e4dc; }

.source-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.source { padding: 1.5rem; border: 2px solid var(--coal); background: var(--white); box-shadow: 6px 6px 0 var(--signal); }
.source:nth-child(even) { box-shadow-color: var(--gold); }
.source .domain { color: var(--signal); font: 900 .72rem "Courier New", monospace; letter-spacing: .1em; text-transform: uppercase; }
.source p { color: var(--steel); }
.source a { font-weight: 850; }

.notice { margin: 2rem 0; padding: 1.4rem; color: white; background: var(--coal); border-left: .8rem solid var(--gold); }
.notice p:last-child { margin-bottom: 0; color: rgba(255,255,255,.73); }

.contact {
  display: grid;
  grid-template-columns: var(--rail) 1fr auto;
  gap: 2rem;
  align-items: center;
  width: min(calc(100% - 2rem), var(--max));
  margin: 3rem auto 5rem;
  color: white;
  background: var(--signal);
  border: 2px solid var(--coal);
  box-shadow: 10px 10px 0 var(--coal);
}
.contact .rail-label { border-color: rgba(255,255,255,.4); }
.contact-copy { padding: 2rem 0; }
.contact-copy h2 { max-width: 15ch; margin-bottom: .5rem; }
.contact-copy p { max-width: 60ch; margin: 0; color: rgba(255,255,255,.83); }
.contact .actions { margin: 0 2rem 0 0; }
.contact .button { color: var(--coal); background: var(--gold); }

.site-foot { color: white; background: var(--coal); }
.foot-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 2rem; width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: 3rem 0; }
.site-foot p, .site-foot a { color: rgba(255,255,255,.72); }
.foot-links { display: grid; gap: .5rem; align-content: start; }
.legal-note { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.2); font-size: .82rem; }
.error { min-height: 60vh; text-align: center; }
.error h1 { max-width: none; }
.error .actions { justify-content: center; }

@media (max-width: 980px) {
  .site-head { grid-template-columns: 1fr auto; }
  .menu-button { display: block; }
  .nav { grid-column: 1 / -1; display: none; flex-direction: column; border-top: 1px solid var(--line); }
  .nav[data-open="true"] { display: flex; }
  .nav a { min-height: 2.8rem; }
  .head-action { display: none; }
  .hero { grid-template-columns: 3.5rem 1fr; }
  .hero-panel { grid-column: 2; min-height: 25rem; }
  .sheet, .page-hero { grid-template-columns: 3.5rem 1fr; }
  .sheet-head, .page-title, .split { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .process article { border-right: 0; border-bottom: 1px solid var(--coal); }
  .process article:last-child { border-bottom: 0; }
}

@media (max-width: 650px) {
  :root { --rail: 3.5rem; }
  .status-line { display: block; }
  .status-line span { display: none; }
  .wordmark { grid-template-columns: 3.5rem 1fr; }
  .hero, .sheet, .page-hero { grid-template-columns: 1fr; }
  .rail-label { display: none; }
  .hero-panel { grid-column: 1; }
  .hero-copy, .sheet-body, .page-title { padding: 2rem 1.2rem; }
  .module-grid, .source-grid, .contact, .foot-grid { grid-template-columns: 1fr; }
  .contact { padding: 1.5rem; }
  .contact-copy { padding: 0; }
  .contact .actions { margin: 0; }
  .legal-note { grid-column: auto; }
  .matrix { display: block; overflow-x: auto; }
}

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