:root {
  --bg: #07070b;
  --bg-soft: #0d0d14;
  --panel: #11121a;
  --panel-2: #14151f;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e9eaf2;
  --text-dim: #9398aa;
  --text-faint: #61667a;
  --accent: #ffd66b;
  --accent-2: #b794ff;
  --accent-3: #7ad1ff;
  --radius: 16px;
  --radius-sm: 9px;
  --shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 12px 32px -12px rgba(0, 0, 0, 0.5);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; }

/* Atmospherics */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.bg-glow {
  position: fixed; z-index: -1;
  top: -240px; left: 50%; transform: translateX(-50%);
  width: 1300px; height: 900px; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 50% at 28% 38%, rgba(183, 148, 255, 0.20), transparent 60%),
    radial-gradient(ellipse 40% 60% at 72% 30%, rgba(122, 209, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 72%, rgba(255, 214, 107, 0.10), transparent 60%);
  filter: blur(24px);
}

/* Header */
.site-header {
  max-width: 1320px; margin: 0 auto;
  padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  display: block;
  width: 44px; height: 44px; border-radius: 13px;
  box-shadow: 0 6px 20px -6px rgba(183, 148, 255, 0.5);
}
.brand-text { line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.brand-sub { color: var(--text-faint); font-size: 12px; margin-top: 2px; }
.header-nav { display: flex; gap: 6px; align-items: center; }
.header-nav a {
  text-decoration: none; font-size: 13px; color: var(--text-dim);
  padding: 9px 15px; border-radius: 999px; border: 1px solid var(--border);
  transition: color .2s, border-color .2s, background .2s;
}
.header-nav a:hover { color: var(--text); border-color: var(--border-strong); background: var(--panel); }
.header-nav .nav-cta {
  color: var(--bg); background: var(--text); border-color: var(--text); font-weight: 600;
}
.header-nav .nav-cta:hover { background: #fff; color: #000; }

/* Main */
main { max-width: 1320px; margin: 0 auto; padding: 0 32px 96px; }

/* Hero */
.hero {
  padding: 64px 0 52px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-left { min-width: 0; }
.hero-eyebrow {
  display: inline-block; font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-faint); padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--panel); margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(40px, 5vw, 72px); line-height: 1.0;
  letter-spacing: -0.04em; font-weight: 900; margin: 0 0 26px;
}
.hero-line { display: block; }
.hero-accent {
  background: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 48%, var(--accent-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { font-size: 18px; color: var(--text-dim); margin: 0 0 42px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 460px;
}

/* Hero quote panel */
.hero-quote {
  position: relative;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px 34px;
  overflow: hidden;
}
.hero-quote::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 100% 0%, rgba(183,148,255,0.16), transparent 55%),
              radial-gradient(120% 90% at 0% 100%, rgba(122,209,255,0.14), transparent 55%);
}
.hero-quote-mark {
  position: relative;
  display: block; font-family: Georgia, "Times New Roman", serif;
  font-size: 96px; line-height: 0.7; height: 48px;
  background: linear-gradient(110deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-quote blockquote {
  position: relative; margin: 0 0 20px;
  font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3;
  font-weight: 600; letter-spacing: -0.02em; color: var(--text);
}
.hero-quote cite {
  position: relative; font-style: normal;
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint);
}
.stat {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
}
.stat-n { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.stat-l { display: block; color: var(--text-faint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* Controls */
.controls {
  position: sticky; top: 12px; z-index: 10;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  background: rgba(7, 7, 11, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; margin-bottom: 36px;
}
.control-search {
  flex: 1 1 260px; display: flex; align-items: center; gap: 10px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; color: var(--text-dim); transition: border-color .2s;
}
.control-search:focus-within { border-color: var(--border-strong); color: var(--text); }
.control-search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font-family: inherit; font-size: 14px; }
.control-search input::placeholder { color: var(--text-faint); }

/* Hero schema strip */
.hero-schema {
  margin: 22px 0 0;
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-faint);
}
.hero-schema span { color: var(--text-dim); }
.hero-schema span + span { margin-left: 4px; }

/* ============================================================
   Sections
   ============================================================ */
#sections { display: flex; flex-direction: column; gap: 72px; }
.vsection { scroll-margin-top: 80px; }
.vsection-head { margin-bottom: 28px; max-width: 800px; }
.vsection-title {
  margin: 0; font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1; letter-spacing: -0.025em; font-weight: 800;
  color: var(--text);
}
.vsection-subtitle {
  margin: 8px 0 0;
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.vsection-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* Section variants */
.g-featured      { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-constellation { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-engineering   { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.g-praxis        { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-marginalia    { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* Trio: three pillar columns */
.trio-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pillar {
  display: flex; flex-direction: column; gap: 14px;
  background: rgba(255,255,255,0.012);
  border: 1px solid var(--border); border-radius: 18px;
  padding: 20px;
}
.pillar-head { padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.pillar-name {
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--text);
}
.pillar-sub {
  margin-top: 2px;
  font-size: 12px; color: var(--text-faint);
}
.pillar-supporters {
  display: flex; flex-direction: column; gap: 8px;
}

/* Compact supporter row (used inside the Trio columns) */
.vsupporter {
  position: relative;
  display: grid; grid-template-columns: 44px 1fr auto; gap: 12px;
  align-items: center;
  text-decoration: none; color: inherit;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 12px 8px 8px;
  transition: border-color .15s, transform .15s, background .15s;
}
.vsupporter:hover { border-color: var(--border-strong); transform: translateX(2px); }
.vsupporter-thumb {
  position: relative; width: 44px; height: 44px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 500; font-size: 14px;
  color: rgba(255,255,255,0.9); overflow: hidden;
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--a1) 55%, transparent), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, color-mix(in srgb, var(--a2) 55%, transparent), transparent 60%),
    linear-gradient(135deg, #14151f, #0c0d14);
}
.vsupporter-shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0; transition: opacity .35s;
}
.vsupporter-shot.loaded { opacity: 1; }
.vsupporter-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.vsupporter-name { font-weight: 600; font-size: 14px; color: var(--text); }
.vsupporter-sub  { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.vsupporter-arr  { color: var(--text-faint); font-size: 14px; }

/* Flagship card emphasis (used for the top card of each pillar) */
.vcard-flagship { border-color: rgba(255,255,255,0.18); }
.vcard-flagship .vcard-flag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #0b0b11; background: linear-gradient(110deg, var(--accent), var(--accent-2), var(--accent-3));
  padding: 5px 10px; border-radius: 7px; font-weight: 600;
}
.vcard-flag.vcard-role {
  background: rgba(7,7,11,0.55); color: var(--text);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  background-image: none;
}

/* Constellation: slightly larger taglines */
.g-constellation .vcard-tagline { -webkit-line-clamp: 4; }

/* Grid */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px;
}

/* Venture card */
.vcard {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: inherit; overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.vcard::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,0.06), transparent 45%);
  opacity: 0; transition: opacity .25s;
}
.vcard:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.vcard:hover::after { opacity: 1; }

.vcard-preview {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--a1) 55%, transparent), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, color-mix(in srgb, var(--a2) 55%, transparent), transparent 60%),
    linear-gradient(135deg, #14151f, #0c0d14);
  border-bottom: 1px solid var(--border);
}
.vcard-mono {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 56px; letter-spacing: -0.04em;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
  mix-blend-mode: overlay;
}
.vcard-shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0; transition: opacity .5s ease;
}
.vcard-shot.loaded { opacity: 1; }
.vcard-sector {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text); padding: 5px 9px; border-radius: 7px;
  background: rgba(7,7,11,0.55); border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

.vcard-body { padding: 20px 20px 8px; flex: 1; }
.vcard-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.vcard-tagline {
  margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.vcard-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 20px 18px; margin-top: 4px;
}
.vcard-host { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.vcard-visit {
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 5px; transition: color .15s, gap .15s;
}
.vcard:hover .vcard-visit { color: var(--text); gap: 8px; }

.grid-empty { text-align: center; color: var(--text-faint); padding: 80px 20px; }

/* Footer */
.site-footer { max-width: 1320px; margin: 0 auto; padding: 40px 32px; border-top: 1px solid var(--border); }
.footer-main { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { color: var(--text-dim); font-size: 15px; max-width: 560px; }
.footer-cta {
  text-decoration: none; font-weight: 600; font-size: 14px; color: var(--bg);
  background: var(--text); padding: 11px 18px; border-radius: 999px; transition: background .2s;
}
.footer-cta:hover { background: #fff; }
.footer-sub { color: var(--text-faint); font-size: 12px; margin-top: 22px; }

@media (max-width: 1100px) {
  .trio-cols { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero-stats { max-width: none; }
  .g-featured, .g-constellation, .g-praxis { grid-template-columns: 1fr; }
  .g-marginalia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #sections { gap: 56px; }
}

@media (max-width: 640px) {
  .site-header { padding: 20px; flex-wrap: wrap; }
  main { padding: 0 20px 64px; }
  .hero { padding: 36px 0 44px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-quote { padding: 32px 26px 28px; }
  .controls { position: static; }
  .grid { grid-template-columns: 1fr; }
  .g-marginalia { grid-template-columns: 1fr; }
  .site-footer { padding: 28px 20px; }
}
