:root {
  --bg: #05070b;
  --surface: #0a0e16;
  --surface-hover: #0e1420;
  --rule: rgba(255, 255, 255, 0.09);
  --rule-strong: rgba(255, 255, 255, 0.22);
  --text: #cbd5e1;
  --bright: #f8fafc;
  --muted: #8492a6;
  --dim: #5c6a7e;
  --accent: #7dd3fc;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── MASTHEAD ── */
.topbar {
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--bright);
}
.masthead-note {
  font-size: 12.5px;
  color: var(--muted);
}
.masthead-note a {
  color: var(--text);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 1px;
}
.masthead-note a:hover {
  color: var(--bright);
  border-color: var(--bright);
}

/* ── MAIN ── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 72px;
  gap: 52px;
}

.intro {
  max-width: 720px;
}
.kicker {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.headline {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--bright);
}
.lede {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted);
}

/* ── ARCHITECTURAL DOORS ── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}

.door {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 26px;
  border-right: 1px solid var(--rule);
  transition: background-color 0.16s ease;
}
.door:last-child { border-right: 0; }
.door:hover {
  background: var(--surface-hover);
}
.door:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.door-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.door-idx { color: var(--dim); }
.door-scope { color: var(--muted); text-transform: uppercase; }

.door-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--bright);
}
.door-role {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}
.door-body {
  margin: 0 0 32px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--muted);
  flex: 1;
}

.door-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.door-stat {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.door-arrow {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--muted);
  transition: transform 0.16s ease, color 0.16s ease;
}
.door:hover .door-arrow {
  color: var(--bright);
  transform: translateX(4px);
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--rule);
}
.footer-inner {
  padding-top: 20px;
  padding-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--bright); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .main { padding-top: 40px; padding-bottom: 48px; gap: 36px; }
  .grid { grid-template-columns: 1fr; }
  .door {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 26px 22px 22px;
  }
  .door:last-child { border-bottom: 0; }
  .door-meta { margin-bottom: 16px; }
  .door-body { margin-bottom: 22px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .main { padding-top: 32px; gap: 28px; }
}
