/* ============================================================
   Primidac Network — Dark Org
   Black / white / mono. No blue.
   ============================================================ */

:root {
  --paper: #070708;
  --surface: #111114;
  --surface-subtle: #18181c;
  --ink: #F4F4F5;
  --muted: #A1A1AA;
  --hairline: rgba(255, 255, 255, 0.1);
  --accent: #FFFFFF;
  --accent-bg: rgba(255, 255, 255, 0.08);
  --on-accent: #070708;
  --radius: 14px;
  --space: 8px;
  --font-sans: 'Manrope', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-display: 'Syne', 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --max: 76rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark only;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--paper);
  color: var(--ink);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}

@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/syne.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/manrope.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/jetbrains-mono.woff2') format('woff2');
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.mono { font-family: var(--font-mono); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.page-container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-sm {
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  letter-spacing: -0.035em;
}

.section-lede {
  margin-top: 0.9rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.65;
}

.hairline { border: 1px solid var(--hairline); }
.hairline-b { border-bottom: 1px solid var(--hairline); }
.hairline-t { border-top: 1px solid var(--hairline); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: #e4e4e7;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--accent-bg);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}

.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.brand img {
  height: 1.85rem;
  width: auto;
}

.brand-name { color: var(--ink); }
.brand-mark { color: var(--muted); font-weight: 500; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.6rem;
}

.nav-desktop a {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-desktop a:hover { color: var(--ink); }

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 999px;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 1.5rem 2rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.35s ease;
}

.mobile-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-drawer a:not(.btn) {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.mobile-drawer .btn {
  margin-top: 1rem;
  align-self: flex-start;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.mobile-drawer .btn-primary {
  color: var(--on-accent);
}

@media (min-width: 960px) {
  .nav-desktop,
  .nav-actions { display: flex; }
  .menu-toggle { display: none; }
}

/* ============================================================
   Hero — dark org manifesto
   One column. Brand first. No side card.
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(4rem, 12vw, 7.5rem) clamp(3.5rem, 9vw, 6rem);
  border-bottom: 1px solid var(--hairline);
}

.hero-shell {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  /* left-aligned inside page-container — never center the shell */
  margin-inline: 0;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.hero-status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.35rem, 6vw, 3.9rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  max-width: 16ch;
  font-weight: 700;
}

.hero-lede {
  margin-top: 1.35rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 34rem;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-meta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta strong {
  color: var(--ink);
  font-weight: 500;
}

.hero-proof {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-proof a {
  color: var(--ink);
}

.hero-parent {
  margin-top: 1.25rem;
  color: var(--muted);
  max-width: 36rem;
}

.hero-parent a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.step-list,
.program-list {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 800px) {
  .step-list { grid-template-columns: repeat(4, 1fr); }
  .program-list { grid-template-columns: repeat(2, 1fr); }
}

.step,
.program {
  padding: 1.35rem 1.25rem 1.45rem;
  background: var(--surface);
}

.step h3,
.program h3 {
  font-size: 1.05rem;
  margin: 0.35rem 0 0.45rem;
}

.step p,
.program p {
  color: var(--muted);
  font-size: 0.95rem;
}

.impact-figure {
  margin-top: 1.5rem;
  padding: 1.4rem 1.35rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  max-width: 28rem;
}

.impact-figure strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.impact-figure span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.prose-inline a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.verify-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  max-width: 40rem;
}

.verify-form .admin-input {
  flex: 1 1 16rem;
}

.verify-result {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  max-width: 40rem;
}

.verify-result h2 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.verify-result p {
  color: var(--muted);
}

.verify-result strong {
  color: var(--ink);
}

/* Purpose */
.purpose-grid {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 768px) {
  .purpose-grid { grid-template-columns: repeat(3, 1fr); }
}

.purpose-item {
  padding: 1.5rem 1.4rem;
  background: var(--surface);
}

.purpose-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  margin-bottom: 0.85rem;
}

.purpose-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
}

.purpose-item p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Protocol — clearance board (membership, not a course catalog) */
.clearance-board {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.clearance-head,
.clearance-row {
  display: grid;
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding: 1rem 1.15rem;
}

@media (min-width: 800px) {
  .clearance-head,
  .clearance-row {
    grid-template-columns: 9.5rem minmax(0, 1.4fr) 8.5rem auto;
  }
}

.clearance-head {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}

@media (min-width: 800px) {
  .clearance-head { display: grid; }
}

.clearance-row {
  border-top: 1px solid var(--hairline);
  background: var(--surface);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.clearance-row:first-of-type { border-top: 0; }

@media (min-width: 800px) {
  .clearance-row:first-of-type { border-top: 0; }
  .clearance-board .clearance-row:first-of-type { border-top: 0; }
}

.clearance-row.is-featured {
  background: var(--surface-subtle);
}

.clearance-row[data-shell]:hover,
.clearance-row[data-shell]:focus-visible,
.clearance-row[data-shell].is-armed {
  background: #16161a;
  box-shadow: inset 2px 0 0 var(--ink);
}

.clearance-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.clearance-chip {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--hairline);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.clearance-access {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.clearance-access strong {
  color: var(--ink);
  font-weight: 500;
}

.clearance-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.clearance-price span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.clearance-action {
  justify-self: start;
}

@media (min-width: 800px) {
  .clearance-action { justify-self: end; }
}

.clearance-note {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.clearance-note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Focus — operating domains, not course tracks */
.domain-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.domain {
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  gap: 0.85rem 2.5rem;
}

@media (min-width: 800px) {
  .domain {
    grid-template-columns: 11rem minmax(0, 1fr);
    align-items: start;
  }
}

.domain-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.35rem;
}

.domain h3 {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  margin-bottom: 0.55rem;
}

.domain p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 40rem;
}

.domain-link {
  display: inline-flex;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 0.15rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.domain-link:hover {
  border-color: var(--ink);
}

.domain-bridge {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  max-width: 40rem;
}

.domain-bridge h4 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.domain-bridge p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.ethic-note {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Creed — operating manifesto */
.creed-wrap {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 900px) {
  .creed-wrap {
    grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.35fr);
    align-items: start;
  }
}

.creed-intro {
  max-width: 22rem;
}

@media (min-width: 900px) {
  .creed-intro {
    position: sticky;
    top: 5.5rem;
  }
}

.creed-intro .section-title {
  max-width: 8ch;
}

.creed-seal {
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 18rem;
  line-height: 1.5;
}

.creed-panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

.creed-articles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.creed-item {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0.85rem 1.1rem;
  padding: clamp(1.15rem, 2.4vw, 1.45rem) clamp(1.1rem, 2.5vw, 1.5rem);
  border-bottom: 1px solid var(--hairline);
  outline: none;
  transition: background 0.2s ease;
}

.creed-item:last-child {
  border-bottom: 0;
}

.creed-item[data-shell]:hover,
.creed-item[data-shell]:focus-visible,
.creed-item[data-shell].is-armed {
  background: #16161a;
  box-shadow: inset 2px 0 0 var(--ink);
}

.creed-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-top: 0.35rem;
}

.creed-item:hover .creed-index,
.creed-item.is-armed .creed-index,
.creed-item:focus-visible .creed-index {
  color: var(--ink);
}

.creed-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.creed-body p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 36rem;
}

.creed-close {
  margin: 0;
  padding: clamp(1.2rem, 2.5vw, 1.5rem) clamp(1.1rem, 2.5vw, 1.5rem);
  border-top: 1px solid var(--hairline);
  background: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* Field notes */
.notes-teaser {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.notes-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.notes-teaser a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 700px) {
  .notes-teaser a {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}

.notes-teaser a:hover h3 { color: var(--muted); }

.notes-teaser h3 {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 36ch;
}

.notes-teaser span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  flex: none;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 1.1rem;
}

.faq-item[open] summary::after { content: '–'; }

.faq-item p {
  padding: 0 1.2rem 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Join */
.join-band { text-align: left; }

.join-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  width: 100%;
}

.join-panel .section-title { max-width: 16ch; }
.join-panel .section-lede { margin-top: 0.65rem; }
.join-panel .btn { flex: none; }

/* Footer */
.site-footer {
  background: #000;
  color: rgba(244, 244, 245, 0.72);
  margin-top: auto;
  border-top: 1px solid var(--hairline);
}

.site-footer a {
  color: rgba(244, 244, 245, 0.68);
  transition: color 0.2s ease;
}

.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 1.75rem 2rem;
    align-items: start;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}

.footer-brand img { height: 1.5rem; }

.footer-blurb {
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 28rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
}

.footer-col a { font-size: 0.9rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(244, 244, 245, 0.45);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-backdrop.is-open { display: flex; }

.modal {
  width: 100%;
  max-width: 32rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  margin: auto;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
}

.modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.modal-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-bg);
  border: 1px solid var(--hairline);
  color: var(--ink);
}

.modal h3 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.modal-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.modal-step {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--paper);
  margin-bottom: 0.85rem;
}

.modal-step label,
.modal-step-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.modal-step input,
.admin-input,
select.admin-input,
textarea.admin-input {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.modal-step input:focus,
.admin-input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.25);
  outline-offset: 1px;
  border-color: rgba(255, 255, 255, 0.35);
}

.modal-hint {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.modal-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 520px) {
  .modal-row { flex-direction: row; align-items: flex-start; }
}

.modal-qr {
  flex: none;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.modal-qr img {
  width: 7.5rem;
  height: 7.5rem;
}

.modal-addr { flex: 1; min-width: 0; }

.deposit-address {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  word-break: break-all;
  padding: 0.65rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  margin: 0.45rem 0 0.65rem;
}

.amount-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.payment-status {
  margin-top: 0.85rem;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  display: none;
}

.payment-status.is-visible { display: block; }
.payment-status.is-ok {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
  color: #86efac;
}
.payment-status.is-err {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
}

.modal-fallback {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.modal-fallback button {
  background: none;
  border: none;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

/* Legal / prose */
.page-hero {
  padding-block: clamp(3rem, 8vw, 5rem);
  border-bottom: 1px solid var(--hairline);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  max-width: 14ch;
}

.page-hero p {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 40rem;
  font-size: 1.05rem;
}

.prose-measure {
  max-width: 42rem;
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.prose-block {
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--hairline);
}

.prose-block:last-child { border-bottom: 0; }
.prose-block .section-tag { margin-bottom: 0.5rem; }

.prose-block h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 0.85rem;
}

.prose-block p,
.prose-block li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.prose-block p + p { margin-top: 0.85rem; }

.prose-block ul {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.45rem;
  list-style: disc;
  padding-left: 1.25rem;
}

.prose-callout {
  margin-top: 1rem;
  padding: 0.95rem 1.1rem;
  background: var(--surface);
  border-left: 2px solid var(--ink);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1.55;
}

/* Merch */
.merch-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.merch-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.merch-img {
  position: relative;
  aspect-ratio: 1;
  background: #0c0c0e;
}

.merch-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.merch-chip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--muted);
  border: 1px solid var(--hairline);
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
}

.merch-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.merch-body h3 { font-size: 1.02rem; }

.merch-body p {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.merch-price {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.35rem 0 0.65rem;
}

/* Field notes cards */
.notes-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .notes-grid { grid-template-columns: 1fr 1fr; }
}

.note-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.25s var(--ease);
  height: 100%;
}

.note-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.note-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.note-cat { color: var(--ink); }

.note-card h2 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  letter-spacing: -0.025em;
}

.note-card p {
  color: var(--muted);
  font-size: 0.94rem;
  flex: 1;
}

.note-author {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--hairline);
}

.markdown-body {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  max-width: 46rem;
  margin-inline: auto;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  margin: 1.5rem 0 0.75rem;
}

.markdown-body h1 { font-size: 2rem; }
.markdown-body h2 { font-size: 1.4rem; }
.markdown-body p,
.markdown-body li {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.markdown-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--paper);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.markdown-body pre {
  background: #000;
  color: #E4E4E7;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--hairline);
}

.markdown-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.back-link:hover { color: var(--ink); }

/* ============================================================
   Admin — ops console
   ============================================================ */

body.is-admin {
  min-height: 100vh;
}

.admin-shell {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1rem, 3.5vw, 2rem) 4rem;
}

/* Gate */
.admin-gate {
  min-height: calc(100vh - 2rem);
  display: grid;
  place-items: center;
  padding-block: 2rem;
}

.admin-gate-inner {
  width: 100%;
  max-width: 22rem;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s var(--ease) forwards;
}

.admin-gate-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 4vw, 2rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.35rem;
}

.admin-gate-lede {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.admin-gate-form {
  display: grid;
  gap: 0.75rem;
}

.admin-gate-form .admin-input {
  margin-bottom: 0;
}

.admin-error {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #f87171;
  text-align: center;
  min-height: 1.2em;
}

/* Console chrome */
.admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--hairline);
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.55s var(--ease) 0.05s forwards;
}

.admin-bar-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-bar-brand strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.admin-path {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-path::before {
  content: '~/';
  color: rgba(255, 255, 255, 0.35);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-stack {
  display: grid;
  gap: 2.25rem;
}

.admin-section {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.6s var(--ease) forwards;
}

.admin-section:nth-child(1) { animation-delay: 0.12s; }
.admin-section:nth-child(2) { animation-delay: 0.2s; }
.admin-section:nth-child(3) { animation-delay: 0.28s; }

.admin-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1rem;
}

.admin-section-head h2 {
  font-size: 1.15rem;
}

.admin-section-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* Intelligence readout */
.admin-readout {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--muted);
  padding: 1.15rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  border-left: 2px solid rgba(255, 255, 255, 0.45);
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-readout strong {
  display: inline-block;
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.admin-readout strong:first-child {
  margin-top: 0;
}

/* Schedule timeline */
.admin-timeline {
  display: grid;
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.cal-row {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.2s var(--ease);
}

.cal-row:last-child { border-bottom: 0; }
.cal-row:hover { background: rgba(255, 255, 255, 0.02); }

@media (min-width: 720px) {
  .cal-row {
    grid-template-columns: minmax(8.5rem, 10rem) 1fr;
    align-items: start;
    gap: 1.25rem;
  }
}

.cal-row.is-past {
  opacity: 0.42;
}

.cal-when {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.45;
}

.cal-when strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.cal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.4rem;
}

.cal-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--hairline);
  background: var(--accent-bg);
  color: var(--ink);
}

.cal-title {
  font-weight: 600;
  color: var(--ink);
}

.cal-desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.admin-empty {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 1.25rem 1.15rem;
}

/* Objectives grid */
.admin-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .admin-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.admin-col-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.task-list {
  display: grid;
  gap: 0.55rem;
}

.task-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.task-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--surface-subtle);
}

.task-card.is-done {
  opacity: 0.48;
}

.task-check {
  flex: none;
  width: 1.55rem;
  height: 1.55rem;
  margin-top: 0.1rem;
  border: 1px solid var(--hairline);
  border-radius: 5px;
  background: var(--paper);
  display: grid;
  place-items: center;
  color: var(--on-accent);
  font-size: 0.75rem;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.task-check:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.task-check.is-on {
  background: var(--accent);
  border-color: var(--accent);
}

.task-body {
  flex: 1;
  min-width: 0;
}

.task-body p {
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}

.task-body p.is-struck {
  text-decoration: line-through;
}

.task-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}

.task-exec {
  margin-top: 0.7rem;
}

.admin-input {
  margin-bottom: 1rem;
}

.btn-danger {
  background: transparent;
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.55);
  color: #fca5a5;
}

.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
}

@media (prefers-reduced-motion: reduce) {
  .admin-gate-inner,
  .admin-bar,
  .admin-section {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Motion */
[data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal]:not(.is-in) {
    transform: translateY(10px);
  }

  html.js [data-reveal] {
    transition: transform 0.65s var(--ease);
  }

  html.js [data-reveal].is-in {
    transform: none;
  }
}

.hero-shell > * {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.75s var(--ease) forwards;
}

.hero-status { animation-delay: 0.04s; }
.hero-brand { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.16s; }
.hero-lede { animation-delay: 0.24s; }
.hero-ctas { animation-delay: 0.32s; }
.hero-meta { animation-delay: 0.4s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal],
  .hero-shell > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

.hidden { display: none !important; }

::selection {
  background: #fff;
  color: #000;
}

/* ============================================================
   Shell feel — interactive, not a terminal
   ============================================================ */

body.has-shell-rail {
  padding-bottom: 3.25rem;
}

.caret {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 0.15em;
  background: var(--ink);
  vertical-align: -0.12em;
  animation: caret-blink 1.05s steps(1) infinite;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

.shell-rail {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.92);
  border-top: 1px solid var(--hairline);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.shell-rail-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem clamp(1.1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  gap: 0.85rem 1.25rem;
  flex-wrap: wrap;
  min-height: 2.75rem;
}

.shell-path {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.shell-path::before {
  content: '› ';
  color: var(--muted);
}

.shell-msg {
  flex: 1;
  min-width: 10rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell-msg.is-flash {
  color: var(--ink);
}

.shell-keys {
  display: none;
  gap: 0.85rem;
  color: rgba(244, 244, 245, 0.45);
  white-space: nowrap;
}

.shell-keys kbd {
  font: inherit;
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  margin-right: 0.25rem;
}

@media (min-width: 900px) {
  .shell-keys { display: inline-flex; }
}

/* Active section / interactive selection */
.section.is-active .section-tag {
  color: var(--ink);
}

.section-tag.is-path::before {
  content: '~/';
  color: var(--muted);
}

[data-shell] {
  cursor: pointer;
  outline: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.purpose-item[data-shell]:hover,
.purpose-item[data-shell]:focus-visible,
.purpose-item[data-shell].is-armed {
  background: #16161a;
  box-shadow: inset 2px 0 0 var(--ink);
}

.domain[data-shell]:hover .domain-label,
.domain[data-shell].is-armed .domain-label {
  color: var(--ink);
}

.nav-desktop a[data-shell] {
  position: relative;
}

.nav-desktop a[data-shell]:hover::before,
.nav-desktop a[data-shell]:focus-visible::before {
  content: '›';
  position: absolute;
  left: -0.85rem;
  color: var(--muted);
}

.btn[data-shell]:active {
  transform: translateY(1px);
}

.notes-teaser a[data-shell]:hover,
.notes-teaser a[data-shell]:focus-visible {
  background: rgba(255, 255, 255, 0.03);
  padding-inline: 0.5rem;
  margin-inline: -0.5rem;
}

.faq-item[data-shell] summary:hover {
  color: #fff;
}

/* Focus ring — block-ish, shell adjacent */
:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; opacity: 1; }
}

/* ============================================================
   Marketing system — 2026
   Dark paper, self-hosted Syne, Manrope, and JetBrains Mono.
   ============================================================ */

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 100;
  transform: translateY(-160%);
  background: #fff;
  color: #070708;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  background: rgba(7, 7, 8, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-header-inner {
  min-height: 4.25rem;
}

.brand img {
  height: 2.4rem;
  width: auto;
}

.nav-desktop {
  gap: 0.25rem 1.35rem;
}

.nav-desktop a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.9rem;
  letter-spacing: -0.011em;
  color: #c4c4cc;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: #fff;
}

.nav-desktop a[data-shell]:hover::before,
.nav-desktop a[data-shell]:focus-visible::before {
  content: none;
}

.menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
}

.btn {
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  letter-spacing: -0.011em;
  font-weight: 600;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.btn-primary:hover { background: #fff; }
.btn-secondary { background: rgba(255, 255, 255, 0.03); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.07); }

.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section-tag {
  letter-spacing: 0.14em;
  color: #b4b4be;
}

.section-tag.is-path::before { content: none; }

.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 1.02;
}

.section-lede {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #b4b4be;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(7.25rem, 16vh, 10.5rem) clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 0;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 48% 70% at 82% 42%, #000 0%, transparent 72%);
}

.hero-shell {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin-inline: auto;
}

.hero-stage {
  display: grid;
  align-items: center;
  gap: 2.5rem;
}

.hero-copy { max-width: 38rem; }

.hero-mark {
  display: none;
  width: min(100%, 18.5rem);
  height: auto;
  justify-self: end;
  opacity: 0.72;
}

.eyebrow,
.hero-brand {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4c4cc;
  margin-bottom: 1.25rem;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.hero-lede {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: #c8c8d0;
}

.hero-ctas { margin-top: 2.25rem; gap: 0.7rem; }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: none;
}

.stat {
  display: flex;
  flex: 1 1 46%;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.4rem;
  min-height: 0;
  padding: 0.7rem 1.15rem 0.7rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

a.stat:hover .stat-label { color: #fff; }

.stat[hidden] { display: none !important; }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}

.stat-label {
  color: #b4b4be;
  font-size: 0.82rem;
  line-height: 1.35;
}

.card-grid,
.support-grid,
.partner-types,
.path-list,
.tier-grid {
  display: grid;
  gap: 0.85rem;
}

.audience-grid {
  display: grid;
  gap: 0.85rem;
}

.surface-card,
.purpose-item,
.program,
.step,
.tier,
.track-card,
.support-card,
.partner-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  transition: border-color 0.2s ease, transform 0.25s var(--ease), background 0.2s ease;
}

.purpose-item,
.program,
.step,
.support-card,
.partner-card,
.track-card {
  padding: 1.35rem 1.3rem 1.4rem;
}

.purpose-item:hover,
.program:hover,
.step:hover,
.support-card:hover,
.partner-card:hover,
.track-card:hover,
.tier:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.icon-badge svg { width: 1.15rem; height: 1.15rem; }

.purpose-item h3,
.program h3,
.step h3,
.support-card h3,
.partner-card h3,
.track-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.45rem;
}

.purpose-item p,
.program p,
.step p,
.support-card p,
.partner-card p,
.track-card p,
.tier li {
  color: #b4b4be;
  font-size: 0.96rem;
  line-height: 1.6;
}

.track-grid {
  display: grid;
  gap: 0.85rem;
}

.track-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.6rem 1.5rem 1.5rem;
}

.track-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4c4cc;
  margin-bottom: 0.85rem;
}

.track-card h3 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  letter-spacing: -0.04em;
}

.track-card .text-link { margin-top: auto; padding-top: 1.25rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.011em;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.text-link:hover { color: #fff; }

.path-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #c4c4cc;
  margin-bottom: 0.85rem;
}

.tier {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.45rem 1.35rem 1.35rem;
  min-height: 100%;
}

.tier-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.tier-price span {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  margin-left: 0.25rem;
  color: #b4b4be;
  font-weight: 500;
}

.tier-note {
  margin-top: -0.35rem;
  color: #b4b4be;
  font-size: 0.86rem;
}

.tier ul {
  display: grid;
  gap: 0.5rem;
  margin: 0.25rem 0 0.5rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.tier li {
  position: relative;
  padding-left: 0.95rem;
}

.tier li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 1px;
  background: currentColor;
}

.tier .btn { width: 100%; margin-top: auto; }

.tier.is-featured {
  background: #f4f4f5;
  border-color: #f4f4f5;
  color: #070708;
}

.tier.is-featured .tier-price span,
.tier.is-featured .tier-note,
.tier.is-featured li { color: #3f3f46; }

.tier.is-featured .btn-primary {
  background: #070708;
  color: #fff;
}

.tier.is-featured .btn-primary:hover { background: #18181b; }

.tier.is-featured:hover { border-color: #fff; }

.clearance-note {
  margin-top: 1.15rem;
  color: #c4c4cc;
}

.clearance-note a { color: #fff; }

.partner-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.partner-sub {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.check-list {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
  color: #c8c8d0;
  line-height: 1.55;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 1px;
  background: #fff;
}

.faq-list { border-top: 1px solid rgba(255, 255, 255, 0.1); }

.faq-item { border-bottom-color: rgba(255, 255, 255, 0.1); }

.faq-item summary {
  min-height: 3.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.faq-item p { color: #c4c4cc; }

.support-card a,
.step a,
.purpose-item a,
.section-lede a,
.track-card a.text-link,
.prose-block a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.split-faq {
  display: block;
}

.join-panel {
  align-items: flex-end;
  gap: 1.5rem 2rem;
  padding: clamp(1.6rem, 4vw, 2.75rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(255, 255, 255, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.join-panel .section-title { max-width: 14ch; }

.site-footer {
  background: #070708;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #c4c4cc;
}

.site-footer a { color: #c4c4cc; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 1.25rem;
  padding-block: clamp(2.75rem, 6vw, 4.25rem);
}

.footer-grid > :first-child { grid-column: 1 / -1; }

.footer-brand { color: #fff; margin-bottom: 0.9rem; }
.footer-brand img { height: 2.4rem; }

.footer-blurb,
.footer-contact {
  color: #c4c4cc;
  max-width: 26rem;
}

.footer-contact { margin-top: 0.9rem; }
.footer-contact a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-label {
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 500;
  margin: 0 0 1rem;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  color: #c4c4cc;
}

.footer-bottom {
  color: #b4b4be;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.footer-bottom a { color: #c4c4cc; }

.page-hero {
  padding-block: clamp(4.5rem, 10vw, 6.5rem) clamp(2.5rem, 6vw, 3.5rem);
}

.page-hero h1 {
  max-width: 16ch;
  font-weight: 700;
  letter-spacing: -0.045em;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.page-hero .hero-ctas { margin-top: 1.75rem; }

.modal-step-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.modal { border-radius: 18px; }
.modal-close { width: 2.75rem; height: 2.75rem; }

@media (max-width: 720px) {
  .hero h1 { max-width: none; }

  .hero-ctas .btn,
  .join-panel .btn,
  .page-hero .hero-ctas .btn { width: 100%; }

}

.support-grid { margin-top: 0.85rem; }

.modal-step-head .modal-step-label { margin: 0; }

@media (min-width: 640px) {
  .partner-types { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .audience-grid,
  .support-grid { grid-template-columns: 1fr 1fr; }
  .path-list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(16rem, 1.45fr) repeat(3, minmax(0, 1fr));
    gap: 2rem 2.5rem;
  }

  .footer-grid > :first-child { grid-column: auto; }
}

@media (min-width: 960px) {
  .hero-stage { grid-template-columns: minmax(0, 1.2fr) minmax(14rem, 0.62fr); column-gap: clamp(3rem, 6vw, 5.5rem); }
  .hero-mark { display: block; }
  .stat-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
  .stat { min-width: 0; padding: 0.15rem 1.5rem 0.15rem 0; }
  .stat-row > .stat:not([hidden]) + .stat {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: 1.5rem;
  }
}

@media (min-width: 980px) {
  .audience-grid,
  .track-grid,
  .tier-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .track-grid { grid-template-columns: 1.15fr 1fr; }
  .support-grid,
  .path-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .partner-layout { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 4rem; }
  .split-faq {
    display: grid;
    grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 1.3fr);
    gap: 4rem;
    align-items: start;
  }
  .split-faq .section-head { position: sticky; top: 6rem; margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-grid { animation: none !important; }
}
