:root {
  --nnx-ink: #0b1220;
  --nnx-navy: #0d1728;
  --nnx-navy-2: #13233a;
  --nnx-panel: #17263f;
  --nnx-line: rgba(255, 255, 255, 0.14);
  --nnx-text: #eaf2ff;
  --nnx-muted: #b7c4d8;
  --nnx-soft: #f4f7fb;
  --nnx-soft-2: #e8edf4;
  --nnx-accent: #2dd4bf;
  --nnx-accent-2: #8bd3ff;
  --nnx-warm: #f7c873;
  --nnx-radius: 8px;
  --nnx-shadow: 0 22px 60px rgba(10, 18, 32, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--nnx-ink);
  background: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--nnx-navy);
  outline-offset: 3px;
}

/* Invert focus outline on dark backgrounds */
.site-header a:focus-visible,
.site-header button:focus-visible,
.site-footer a:focus-visible,
.nnx-section--dark a:focus-visible,
.nnx-section--dark button:focus-visible {
  outline-color: var(--nnx-accent-2);
}

.nnx-skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 30;
  padding: 12px 16px;
  border-radius: var(--nnx-radius);
  background: #ffffff;
  color: var(--nnx-navy);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.nnx-skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 23, 40, 0.94);
  color: #ffffff;
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  position: relative;
}

.site-brand {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.nnx-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nnx-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--nnx-muted);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nnx-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nnx-section,
.nnx-hero,
.nnx-project-hero {
  width: 100%;
  padding: clamp(56px, 7vw, 96px) 0;
}

.nnx-hero,
.nnx-project-hero,
.nnx-open-source-preview {
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.16), rgba(139, 211, 255, 0.08) 40%, rgba(247, 200, 115, 0.1)),
    var(--nnx-navy);
  color: var(--nnx-text);
}

.nnx-hero .nnx-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.nnx-hero h1,
.nnx-project-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.nnx-hero p,
.nnx-project-hero p {
  color: var(--nnx-muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.nnx-eyebrow {
  margin: 0 0 12px;
  color: var(--nnx-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nnx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.nnx-button,
.nnx-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--nnx-radius);
  font-weight: 800;
  text-decoration: none;
}

.nnx-button--primary,
.nnx-card-link {
  background: var(--nnx-accent);
  color: #04201d;
}

.nnx-button--secondary {
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.nnx-button:hover,
.nnx-card-link:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.nnx-hero-panel,
.nnx-contact-panel {
  border: 1px solid var(--nnx-line);
  border-radius: var(--nnx-radius);
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--nnx-shadow);
}

.nnx-hero-panel h2,
.nnx-contact-panel h2 {
  margin: 0 0 16px;
  color: #ffffff;
}

.nnx-signal-list,
.nnx-feature-list,
.nnx-process-list,
.nnx-deliverable-list,
.nnx-logo-grid,
.nnx-contact-methods,
.nnx-archive-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nnx-signal-list li {
  padding: 12px 14px;
  border: 1px solid var(--nnx-line);
  border-radius: var(--nnx-radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--nnx-text);
}

.nnx-section--light { background: var(--nnx-soft); }
.nnx-section--white { background: #ffffff; }
.nnx-section--dark { background: var(--nnx-navy); color: var(--nnx-text); }
.nnx-section--dark p,
.nnx-section--dark li { color: var(--nnx-muted); }

.nnx-section-head {
  max-width: 860px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.nnx-section-head h2,
.nnx-content h2,
.nnx-metadatapp h2,
.nnx-form-panel h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.nnx-section-head p,
.nnx-content p,
.nnx-metadatapp p,
.nnx-form-panel p {
  font-size: 1.06rem;
  line-height: 1.72;
}

.nnx-card-grid,
.nnx-project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.nnx-card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nnx-card-grid--3,
.nnx-project-grid,
.nnx-project-grid--preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.nnx-card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(13, 23, 40, 0.12);
  border-radius: var(--nnx-radius);
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(10, 18, 32, 0.08);
}

.nnx-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.nnx-card p {
  margin: 0;
  color: #42516a;
  line-height: 1.62;
}

.nnx-service-card,
.nnx-partner-card,
.nnx-profile-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nnx-service-card .nnx-status,
.nnx-partner-card .nnx-status,
.nnx-profile-card .nnx-status {
  width: fit-content;
}

.nnx-two-column,
.nnx-founder,
.nnx-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.nnx-founder {
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
}

.nnx-contact-grid {
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
}

.nnx-feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nnx-feature-list li {
  padding: 14px 16px;
  border: 1px solid rgba(13, 23, 40, 0.12);
  border-radius: var(--nnx-radius);
  background: rgba(255, 255, 255, 0.76);
  color: var(--nnx-ink);
  font-weight: 700;
}

.nnx-tools,
.nnx-form-panel {
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--nnx-radius);
  background: var(--nnx-soft-2);
  color: #29364d;
  line-height: 1.7;
}

.nnx-process-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.nnx-deliverable-list,
.nnx-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.nnx-process-list li,
.nnx-deliverable-list li,
.nnx-archive-list li {
  border: 1px solid rgba(13, 23, 40, 0.12);
  border-radius: var(--nnx-radius);
  background: #ffffff;
}

.nnx-process-list li { padding: 18px; }
.nnx-deliverable-list li,
.nnx-archive-list li {
  padding: 16px 18px;
  color: #29364d;
  font-weight: 750;
}

.nnx-step {
  display: block;
  margin-bottom: 9px;
  color: #047868;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nnx-logo-card {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  padding: 26px;
  border: 1px solid rgba(13, 23, 40, 0.12);
  border-radius: var(--nnx-radius);
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(10, 18, 32, 0.08);
}

.nnx-logo-card img {
  display: block;
  max-width: min(100%, 280px);
  max-height: 78px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.nnx-partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.nnx-founder img,
.nnx-profile-card img {
  width: 100%;
  border-radius: var(--nnx-radius);
  box-shadow: var(--nnx-shadow);
}

.nnx-profile-card img {
  width: min(100%, 280px);
  aspect-ratio: 1;
  object-fit: cover;
}

.nnx-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.nnx-link-list a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(13, 23, 40, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: var(--nnx-ink);
  font-weight: 800;
  text-decoration: none;
}

.nnx-contact-methods li {
  padding: 18px;
  border: 1px solid rgba(13, 23, 40, 0.12);
  border-radius: var(--nnx-radius);
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(10, 18, 32, 0.08);
}

.nnx-contact-methods strong {
  display: block;
  margin-bottom: 5px;
  color: var(--nnx-ink);
}

.nnx-contact-methods a {
  color: #17689b;
  font-weight: 800;
}

.nnx-metadatapp {
  border: 1px solid rgba(45, 212, 191, 0.32);
  border-radius: var(--nnx-radius);
  padding: clamp(24px, 5vw, 46px);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.16), rgba(139, 211, 255, 0.1)), #ffffff;
  box-shadow: var(--nnx-shadow);
}

.nnx-faq {
  display: grid;
  gap: 14px;
}

.nnx-faq details {
  padding: 20px 22px;
  border: 1px solid rgba(13, 23, 40, 0.12);
  border-radius: var(--nnx-radius);
  background: #ffffff;
}

.nnx-faq summary {
  cursor: pointer;
  font-weight: 800;
}

.nnx-faq p {
  margin-bottom: 0;
  color: #42516a;
}

.nnx-contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.nnx-contact-line li {
  padding: 10px 12px;
  border: 1px solid var(--nnx-line);
  border-radius: var(--nnx-radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--nnx-muted);
}

.nnx-project-card {
  display: flex;
  min-height: 0;
  height: auto;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--nnx-radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--nnx-text);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.15);
}

.nnx-section:not(.nnx-open-source-preview) .nnx-project-card {
  border-color: rgba(13, 23, 40, 0.12);
  background: #ffffff;
  color: var(--nnx-ink);
}

.nnx-project-card[hidden],
.nnx-private-section[hidden] {
  display: none;
}

.nnx-private-section {
  margin-top: clamp(38px, 6vw, 72px);
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid rgba(13, 23, 40, 0.12);
  border-radius: var(--nnx-radius);
  background: var(--nnx-soft);
}

.nnx-project-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nnx-status,
.nnx-visibility {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.nnx-status {
  background: rgba(45, 212, 191, 0.15);
  color: #047868;
}

.nnx-visibility {
  background: rgba(139, 211, 255, 0.14);
  color: #17689b;
}

.nnx-project-card h3 {
  margin: 0;
  color: inherit;
  font-size: 1.24rem;
}

.nnx-category {
  margin: 0;
  color: #17689b;
  font-weight: 800;
}

.nnx-project-card p,
.nnx-project-card li {
  color: inherit;
  line-height: 1.58;
}

.nnx-project-card ul {
  display: grid;
  gap: 6px;
  margin: 0 0 4px;
  padding-left: 20px;
}

.nnx-card-link {
  width: fit-content;
}

.nnx-project-card > .nnx-card-link {
  align-self: flex-start;
  min-height: 40px;
  margin-top: 6px;
  padding: 10px 14px;
  font-size: 0.92rem;
  line-height: 1.15;
}

.nnx-card-link--inactive {
  background: rgba(13, 23, 40, 0.08);
  color: #42516a;
}

.nnx-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.nnx-filter {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(13, 23, 40, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: var(--nnx-ink);
  cursor: pointer;
  font-weight: 800;
}

.nnx-filter.is-active,
.nnx-filter:hover {
  border-color: var(--nnx-accent);
  background: var(--nnx-accent);
  color: #04201d;
}

.nnx-project-hero {
  padding-top: clamp(72px, 9vw, 130px);
}

.nnx-archive-section {
  background: var(--nnx-soft);
}

.nnx-archive-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-footer {
  padding: 34px 0;
  background: #08111f;
  color: var(--nnx-muted);
}

.site-footer__inner {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .nnx-hero .nnx-wrap,
  .nnx-two-column,
  .nnx-founder,
  .nnx-contact-grid {
    grid-template-columns: 1fr;
  }

  .nnx-card-grid,
  .nnx-project-grid,
  .nnx-project-grid--preview,
  .nnx-archive-list,
  .nnx-process-list,
  .nnx-deliverable-list,
  .nnx-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header__inner {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nnx-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  body.nnx-nav-ready .site-nav {
    display: none;
    padding: 12px 0 4px;
  }

  body.nnx-nav-ready .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  body.nnx-nav-ready .site-nav a {
    width: 100%;
    justify-content: flex-start;
    border-radius: var(--nnx-radius);
    padding: 12px 14px;
  }
}

@media (max-width: 640px) {
  .nnx-wrap,
  .site-header__inner,
  .site-footer__inner {
    width: min(100% - 28px, 1180px);
  }

  .nnx-card-grid,
  .nnx-feature-list,
  .nnx-project-grid,
  .nnx-project-grid--preview,
  .nnx-archive-list,
  .nnx-process-list,
  .nnx-deliverable-list,
  .nnx-logo-grid {
    grid-template-columns: 1fr;
  }

  .nnx-actions,
  .nnx-button,
  .nnx-card-link {
    width: 100%;
  }

  .nnx-hero h1,
  .nnx-project-hero h1 {
    font-size: clamp(2.35rem, 14vw, 3.5rem);
  }
}

/* ─── Notes — article pages ────────────────────────────────── */

.nnx-note-hero {
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
}

.nnx-note-hero h1 {
  max-width: 700px;
  margin: 12px 0 16px;
  color: #ffffff;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  text-wrap: balance;
}

.nnx-note-meta {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  color: var(--nnx-muted);
  font-size: 0.9rem;
}

.nnx-note-lead {
  max-width: 640px;
  color: var(--nnx-muted);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.65;
}

.nnx-note-body {
  max-width: 700px;
}

.nnx-note-body h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.nnx-note-body p,
.nnx-note-body li {
  line-height: 1.75;
  color: #2a3a4a;
}

.nnx-note-body ul,
.nnx-note-body ol {
  padding-left: 1.4rem;
}

.nnx-source-list {
  padding-left: 1.4rem;
}

.nnx-source-list li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: var(--nnx-ink);
}

/* ─── Notes — index listing grid ───────────────────────────── */

.nnx-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 12px;
}

.nnx-note-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--nnx-soft-2);
  border-radius: var(--nnx-radius);
  background: #ffffff;
}

.nnx-note-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.nnx-note-card h3 a {
  color: var(--nnx-navy);
  text-decoration: none;
}

.nnx-note-card h3 a:hover {
  text-decoration: underline;
}

.nnx-note-card__meta {
  margin: 0;
  color: var(--nnx-muted);
  font-size: 0.85rem;
}

.nnx-note-card p:not(.nnx-eyebrow):not(.nnx-note-card__meta) {
  flex: 1;
  margin: 0;
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.6;
}

.nnx-note-card .nnx-card-link {
  align-self: flex-start;
  margin-top: 4px;
}
