:root {
  color-scheme: dark;
  --bg: #090d14;
  --bg-soft: #0f1522;
  --bg-elev: rgba(15, 21, 34, 0.88);
  --bg-elev-strong: rgba(21, 30, 45, 0.94);
  --body-start: #070b11;
  --body-mid: #090d14;
  --body-end: #0c1119;
  --text: #f5f7fb;
  --muted: #a6b0c3;
  --muted-strong: #c8d0df;
  --line: rgba(154, 173, 201, 0.16);
  --line-strong: rgba(154, 173, 201, 0.24);
  --accent: #89cbff;
  --accent-soft: #8ee1c0;
  --accent-warm: #e8c791;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
  --header-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
  --primary-shadow: 0 14px 40px rgba(137, 203, 255, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shell: min(1180px, calc(100vw - 32px));
  --grid-color: rgba(255, 255, 255, 0.03);
  --surface-glass: rgba(9, 13, 20, 0.78);
  --surface-overlay: rgba(255, 255, 255, 0.03);
  --surface-overlay-soft: rgba(255, 255, 255, 0.02);
  --surface-overlay-strong: rgba(255, 255, 255, 0.05);
  --field-bg: rgba(255, 255, 255, 0.03);
  --placeholder-bg: rgba(255, 255, 255, 0.02);
  --code-bg: rgba(255, 255, 255, 0.07);
  --orb-a-color: rgba(137, 203, 255, 0.18);
  --orb-b-color: rgba(142, 225, 192, 0.16);
  --card-glow: rgba(137, 203, 255, 0.14);
  --pill-border: rgba(137, 203, 255, 0.22);
  --pill-bg: rgba(137, 203, 255, 0.08);
  --theme-toggle-bg: rgba(255, 255, 255, 0.04);
  --theme-toggle-active-bg: rgba(137, 203, 255, 0.18);
  --theme-toggle-active-text: #f5f7fb;
}

* {
  box-sizing: border-box;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fc;
  --bg-soft: #eef3f8;
  --bg-elev: rgba(255, 255, 255, 0.9);
  --bg-elev-strong: rgba(252, 253, 255, 0.96);
  --body-start: #f9fbff;
  --body-mid: #f4f7fc;
  --body-end: #eef3f8;
  --text: #0e1625;
  --muted: #5f6b81;
  --muted-strong: #253248;
  --line: rgba(15, 26, 42, 0.12);
  --line-strong: rgba(15, 26, 42, 0.2);
  --accent: #2f7dff;
  --accent-soft: #1d9a72;
  --accent-warm: #b97813;
  --shadow: 0 24px 70px rgba(20, 40, 70, 0.12);
  --header-shadow: 0 18px 44px rgba(20, 40, 70, 0.1);
  --primary-shadow: 0 14px 36px rgba(47, 125, 255, 0.18);
  --grid-color: rgba(7, 17, 34, 0.045);
  --surface-glass: rgba(255, 255, 255, 0.82);
  --surface-overlay: rgba(7, 17, 34, 0.03);
  --surface-overlay-soft: rgba(7, 17, 34, 0.02);
  --surface-overlay-strong: rgba(7, 17, 34, 0.06);
  --field-bg: rgba(7, 17, 34, 0.035);
  --placeholder-bg: rgba(7, 17, 34, 0.03);
  --code-bg: rgba(7, 17, 34, 0.07);
  --orb-a-color: rgba(91, 162, 255, 0.16);
  --orb-b-color: rgba(0, 181, 138, 0.1);
  --card-glow: rgba(47, 125, 255, 0.11);
  --pill-border: rgba(47, 125, 255, 0.18);
  --pill-bg: rgba(47, 125, 255, 0.08);
  --theme-toggle-bg: rgba(7, 17, 34, 0.05);
  --theme-toggle-active-bg: rgba(47, 125, 255, 0.14);
  --theme-toggle-active-text: #0e1625;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, var(--orb-a-color), transparent 24%),
    radial-gradient(circle at 84% 20%, var(--orb-b-color), transparent 22%),
    linear-gradient(180deg, var(--body-start) 0%, var(--body-mid) 38%, var(--body-end) 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 220ms ease, color 220ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 84%);
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-orb {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
}

.site-orb-a {
  top: -12rem;
  right: -9rem;
  background: var(--orb-a-color);
}

.site-orb-b {
  left: -10rem;
  bottom: -11rem;
  background: var(--orb-b-color);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 0 0;
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-glass);
  backdrop-filter: blur(18px);
  box-shadow: var(--header-shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo-set {
  display: grid;
  width: min(198px, 42vw);
}

.brand-logo {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
}

.theme-asset-light {
  display: none;
}

html[data-theme="light"] .theme-asset-dark {
  display: none;
}

html[data-theme="light"] .theme-asset-light {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--theme-toggle-bg);
}

.theme-option {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.theme-option:hover,
.theme-option:focus-visible {
  color: var(--text);
}

.theme-option:focus-visible {
  outline: 2px solid var(--line-strong);
  outline-offset: 1px;
}

.theme-option[aria-pressed="true"] {
  background: var(--theme-toggle-active-bg);
  color: var(--theme-toggle-active-text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, rgba(137, 203, 255, 0.94), rgba(142, 225, 192, 0.92));
  color: #0b1118;
  box-shadow: var(--primary-shadow);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface-overlay-soft);
  color: var(--text);
}

.section {
  padding: 34px 0;
}

.hero {
  padding-top: 56px;
}

.hero-layout,
.page-hero-grid,
.two-column-grid,
.platform-grid,
.feature-band,
.contact-grid {
  display: grid;
  gap: 24px;
}

.hero-layout,
.page-hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: start;
}

.hero-copy {
  padding-top: 38px;
}

.eyebrow,
.mini-label,
.platform-badge,
.action-kicker,
.panel-title {
  margin: 0 0 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3.15rem, 7vw, 5.9rem);
  line-height: 0.96;
  max-width: 11ch;
}

.page-hero h1 {
  font-size: clamp(2.9rem, 6vw, 4.7rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.18;
}

.hero-text,
.section-intro,
.card p,
.platform-card p,
.prose-card p,
.section-note,
.form-note,
.form-status,
.quiet-note {
  color: var(--muted);
  line-height: 1.76;
  font-size: 1rem;
}

.hero-text {
  max-width: 60ch;
  margin: 24px 0 0;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, var(--surface-overlay), transparent),
    var(--bg-elev);
  box-shadow: var(--shadow);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -10% -28% auto;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-glow), transparent 68%);
  pointer-events: none;
}

.dashboard-panel {
  padding: 22px;
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-chip,
.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--pill-border);
  background: var(--pill-bg);
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  margin-bottom: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface-overlay-soft);
}

.dashboard-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  max-width: 14ch;
}

.dashboard-icon-set {
  display: grid;
  width: 96px;
  flex: 0 0 auto;
}

.dashboard-mark {
  grid-area: 1 / 1;
  width: 96px;
  height: 96px;
  opacity: 0.9;
}

.dashboard-grid,
.audience-grid,
.principle-grid,
.article-grid,
.footer-grid {
  display: grid;
  gap: 16px;
}

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

.action-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-overlay-soft);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.action-card:hover,
.action-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--surface-overlay-strong);
}

.action-card strong {
  font-size: 1rem;
}

.action-copy,
.panel-footer-link {
  color: var(--muted);
  line-height: 1.55;
}

.panel-footer-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent-soft);
  font-weight: 600;
}

.strip-section {
  padding-top: 10px;
}

.positioning-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.positioning-strip::-webkit-scrollbar {
  display: none;
}

.positioning-strip span {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-overlay-soft);
  color: var(--muted-strong);
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 64ch;
  margin-bottom: 22px;
}

.two-column-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prose-card,
.audience-card,
.principle-card,
.platform-card,
.side-note,
.mini-card,
.support-callout,
.closing-cta,
.form-shell {
  padding: 24px;
}

.prose-card p:first-of-type:last-of-type {
  margin-bottom: 0;
}

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

.audience-card {
  min-height: 156px;
  display: flex;
  align-items: flex-end;
}

.quiet-note {
  margin: 18px 0 0;
  text-align: center;
}

.align-left {
  text-align: left;
}

.feature-band {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  padding: 26px;
}

.feature-band-copy p {
  max-width: 62ch;
}

.feature-band-side,
.slack-panel,
.mini-stack {
  display: grid;
  gap: 14px;
}

.collective-art-card {
  margin: 0;
  padding: 14px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    #020202;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.collective-art {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.mini-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-overlay-soft);
}

.events-showcase,
.event-stamp,
.distribution-grid {
  display: grid;
  gap: 16px;
}

.events-showcase {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: start;
}

.featured-event-card {
  padding: 26px;
}

.featured-event-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.featured-event-copy {
  max-width: 62ch;
}

.status-badge,
.listing-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-overlay-soft);
  color: var(--muted-strong);
  font-weight: 700;
}

.status-badge {
  padding: 10px 14px;
  font-size: 0.92rem;
}

.event-stamp {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.listing-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.listing-chip {
  padding: 12px 16px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.listing-chip:hover,
.listing-chip:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-overlay-strong);
}

.event-side-stack {
  display: grid;
  gap: 16px;
}

.distribution-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card strong {
  display: block;
  font-size: 1rem;
}

.compact-band {
  align-items: center;
}

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

.platform-head {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.embed-placeholder {
  display: grid;
  gap: 10px;
  padding: 22px;
  margin: 18px 0 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 22px;
  background: var(--placeholder-bg);
  color: var(--muted-strong);
}

.tall-placeholder {
  min-height: 220px;
  align-content: center;
}

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

.principle-card {
  min-height: 220px;
}

.support-callout,
.closing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.side-note {
  display: grid;
  gap: 12px;
  align-content: start;
}

.emphatic-card {
  display: grid;
  place-items: center;
}

.emphatic-card p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text);
  text-align: center;
}

.section-note {
  margin: 16px 0 0;
}

.contact-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: start;
}

.contact-aside {
  display: grid;
  gap: 18px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 10px;
}

.field label {
  font-size: 0.92rem;
  color: var(--muted-strong);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--field-bg);
  color: var(--text);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(137, 203, 255, 0.22);
  outline-offset: 0;
  border-color: rgba(137, 203, 255, 0.4);
}

.form-note,
.form-status {
  margin: 0;
}

.form-status {
  color: var(--accent-soft);
}

.form-status[data-state="error"] {
  color: #d55b6a;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
}

.button:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.site-footer {
  padding: 42px 0 30px;
}

.footer-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-brand p,
.footer-brand a,
.footer-links a {
  color: var(--muted);
}

.footer-lockup {
  width: min(240px, 100%);
  height: auto;
}

.footer-logo-set {
  display: grid;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px 20px;
}

code {
  padding: 0.15rem 0.35rem;
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--text);
}

@media (max-width: 1080px) {
  .site-header .shell,
  .footer-grid {
    border-radius: 26px;
  }

  .hero-layout,
  .page-hero-grid,
  .feature-band,
  .events-showcase,
  .contact-grid,
  .platform-grid,
  .two-column-grid,
  .article-grid,
  .principle-grid,
  .audience-grid,
  .distribution-grid,
  .event-stamp {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 16px;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: static;
  }

  .site-header .shell {
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .brand-logo-set {
    width: min(184px, 58vw);
  }

  .site-nav {
    width: 100%;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .theme-switch {
    width: 100%;
    justify-content: center;
  }

  .header-cta {
    width: 100%;
  }

  .dashboard-grid,
  .field-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .support-callout,
  .closing-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(100vw - 20px, 100%);
  }

  h1 {
    font-size: clamp(2.6rem, 12vw, 3.7rem);
  }

  h2 {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .site-header .shell,
  .dashboard-panel,
  .card,
  .feature-band,
  .prose-card,
  .platform-card,
  .featured-event-card,
  .form-shell {
    border-radius: 22px;
  }

  .hero,
  .page-hero {
    padding-top: 22px;
  }

  .button {
    width: 100%;
  }

  .button-row {
    width: 100%;
  }

  .listing-chip-row {
    align-items: stretch;
  }
}
