:root {
  --bg: #020202;
  --panel: #0d0d0d;
  --panel-2: #111111;
  --line: rgba(240, 230, 211, 0.12);
  --line-strong: rgba(240, 230, 211, 0.22);
  --ink: #f0e6d3;
  --muted: rgba(240, 230, 211, 0.58);
  --faint: rgba(240, 230, 211, 0.35);
  --red: #ff4444;
  --orange: #ff8c00;
  --gold: #ffd700;
  --green: #5bd68d;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --shell: 1080px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(240, 230, 211, 0.04), transparent 36rem),
    linear-gradient(180deg, #050505, #000 34rem),
    var(--bg);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
}
a { color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--bg);
}
.skip-link:focus { left: 10px; }
.shell {
  width: min(var(--shell), calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(2, 2, 2, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav-shell {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  text-decoration: none;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--ink);
}
.brand span { color: var(--green); }
.nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 10px;
}
.nav a:hover { color: var(--ink); }
.nav .nav-action {
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding-inline: 14px;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero * {
  max-width: 100%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(240, 230, 211, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 230, 211, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black, transparent 78%);
}
.trace {
  position: absolute;
  border: 1px solid rgba(240, 230, 211, 0.18);
  transform: rotate(-18deg) skewX(-8deg);
  opacity: 0.55;
  pointer-events: none;
}
.trace-a {
  left: 6vw;
  top: 16vh;
  width: 420px;
  height: 260px;
  border-right: 0;
  border-bottom: 0;
}
.trace-b {
  right: 10vw;
  bottom: 12vh;
  width: 360px;
  height: 160px;
  border-left: 0;
  opacity: 0.22;
}
.hero-content {
  position: relative;
  padding: 92px 0 86px;
}
.identity-panel {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  max-width: 920px;
  margin: 0 0 44px;
}
.avatar-mark {
  width: 132px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(240, 230, 211, 0.08), rgba(240, 230, 211, 0.02)),
    var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.9), var(--shadow);
  color: var(--green);
  font-size: 42px;
  font-weight: 900;
  text-transform: uppercase;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 900;
}
.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.88;
  letter-spacing: 0;
}
.lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
}
.hero-actions,
.cta-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  text-transform: lowercase;
  cursor: pointer;
}
.button.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.button.secondary {
  background: rgba(240, 230, 211, 0.04);
  color: var(--ink);
}
.button:hover { filter: brightness(1.08); }
.compact-button {
  min-height: 34px;
  margin-top: 14px;
}

.operator-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 18px;
}
.profile-card,
.research-card,
.feature-list article,
.info-card,
.ops-panel,
.program-list article,
.portal-form {
  background: linear-gradient(180deg, rgba(240, 230, 211, 0.035), rgba(240, 230, 211, 0.015)), var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.profile-card,
.research-card {
  padding: 18px;
}
.profile-card h2 {
  margin: 0 0 14px;
  font-size: 14px;
  text-transform: uppercase;
}
.profile-card dl {
  margin: 0;
  display: grid;
  gap: 9px;
}
.profile-card div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}
.profile-card dt {
  color: var(--faint);
  text-transform: uppercase;
  font-size: 11px;
}
.profile-card dd {
  margin: 0;
  color: var(--ink);
  text-align: right;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(91, 214, 141, 0.7);
}
.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1.1fr 64px 1fr;
  gap: 14px;
  align-items: center;
}
.table-head {
  padding: 0 0 10px;
  color: var(--faint);
  text-transform: uppercase;
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}
.table-row {
  padding: 13px 0;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.table-row:last-child { border-bottom: 0; }
.table-row:hover { color: var(--ink); }
.score {
  display: inline-flex;
  justify-content: center;
  padding: 2px 6px;
  border: 1px solid;
  font-size: 11px;
}
.score.high { color: var(--red); border-color: rgba(255, 68, 68, 0.38); background: rgba(255, 68, 68, 0.08); }
.score.med { color: var(--orange); border-color: rgba(255, 140, 0, 0.38); background: rgba(255, 140, 0, 0.08); }
.score.low { color: var(--gold); border-color: rgba(255, 215, 0, 0.38); background: rgba(255, 215, 0, 0.08); }

.band,
.quiet-band {
  background: #050505;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.metric-row div {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
}
.metric-row div:last-child { border-right: 0; }
.metric-row strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  text-transform: uppercase;
}
.metric-row span {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  padding: 86px 0;
}
.split-section h2,
.cta-panel h2,
.page-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.split-section p,
.text-band p,
.page-hero .lead {
  color: var(--muted);
}
.feature-list {
  display: grid;
  gap: 12px;
}
.feature-list article,
.info-card,
.program-list article {
  padding: 22px;
}
.card-index,
.program-list span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
}
.feature-list h3,
.info-card h2,
.program-list h2 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: 18px;
}
.feature-list p,
.info-card p,
.program-list p {
  margin: 0;
  color: var(--muted);
}
.cta-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 56px 0;
}

.page-hero {
  padding: 88px 0 34px;
}
.page-hero.narrow { max-width: 820px; }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 28px 0 78px;
}
.text-band {
  padding: 44px 0 82px;
  border-top: 1px solid var(--line);
}
.text-band h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 30px;
}
.program-list {
  display: grid;
  gap: 12px;
  padding: 28px 0 88px;
}
.program-list article {
  display: grid;
  grid-template-columns: 62px 0.75fr 1fr;
  gap: 22px;
  align-items: start;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 28px 0 14px;
}
.ops-panel {
  padding: 22px;
}
.ops-panel h2 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: 22px;
}
.ops-panel p {
  margin: 0;
  color: var(--muted);
}
.ops-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}
.ops-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.ops-list dt {
  color: var(--faint);
  text-transform: uppercase;
  font-size: 11px;
}
.ops-list dd {
  margin: 0;
  color: var(--ink);
  text-align: right;
}
.ops-section {
  padding: 14px 0 88px;
}
.ops-row span:first-child {
  overflow-wrap: anywhere;
}

.form-section {
  padding: 12px 0 88px;
}
.portal-form {
  max-width: 760px;
  padding: 24px;
}
.field {
  margin-bottom: 17px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  color: var(--ink);
  background: #050505;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font: inherit;
}
.field input[type="checkbox"] {
  width: auto;
  min-height: auto;
  margin-right: 8px;
  accent-color: var(--ink);
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}
.help {
  margin: 6px 0 0;
  color: var(--faint);
  font-size: 12px;
}
.field-error,
.form-errors {
  margin-top: 6px;
  color: var(--red);
  font-weight: 900;
}
.messages { margin-top: 18px; }
.message {
  padding: 10px 12px;
  border: 1px solid rgba(91, 214, 141, 0.34);
  background: rgba(91, 214, 141, 0.08);
  color: var(--ink);
}
.access-result {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 68, 68, 0.34);
  background: rgba(255, 68, 68, 0.08);
}
.access-result.success {
  border-color: rgba(91, 214, 141, 0.34);
  background: rgba(91, 214, 141, 0.08);
}
.access-result strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 22px;
}

.site-footer {
  color: var(--muted);
  background: #020202;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  padding: 42px 0;
}
.footer-brand { color: var(--ink); }
.site-footer p {
  max-width: 640px;
  margin: 8px 0 0;
}
.footer-links {
  display: flex;
  gap: 14px;
  align-items: start;
}
.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}
.fineprint {
  grid-column: 1 / -1;
  color: var(--faint);
  font-size: 12px;
}

@media (max-width: 820px) {
  .shell { width: min(100% - 28px, var(--shell)); }
  .site-header { position: static; }
  .nav-shell {
    min-height: auto;
    align-items: flex-start;
    padding: 14px 0;
  }
  .nav {
    justify-content: flex-start;
  }
  .hero {
    min-height: auto;
  }
  .trace-a {
    left: 24px;
    width: 220px;
    height: 210px;
  }
  .trace-b {
    display: none;
  }
  .hero-content {
    padding: 70px 0 62px;
  }
  .identity-panel,
  .operator-grid,
  .metric-row,
  .split-section,
  .grid-3,
  .ops-grid,
  .program-list article,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .avatar-mark {
    width: 104px;
  }
  .hero h1 {
    font-size: clamp(58px, 18vw, 86px);
  }
  .table-head,
  .table-row {
    grid-template-columns: 1fr 54px;
  }
  .table-head span:last-child,
  .table-row span:last-child {
    grid-column: 1 / -1;
  }
  .metric-row div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .metric-row div:last-child { border-bottom: 0; }
  .split-section {
    gap: 26px;
    padding: 58px 0;
  }
  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }
  .portal-form {
    padding: 18px;
  }
}
