/* ----------------------------------------------------------
   RAIN — Real-World AI Network
   Design system + custom effects layered on top of Tailwind
   ---------------------------------------------------------- */

:root, [data-theme="dark"] {
  --bg-0: #05070d;
  --bg-1: #0a0f1c;
  --bg-2: #0e1424;
  --surface: rgba(15, 23, 42, 0.55);
  --surface-strong: rgba(20, 30, 55, 0.78);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary: #38bdf8;       /* sky-400 */
  --primary-2: #0ea5e9;     /* sky-500 */
  --primary-3: #6366f1;     /* indigo-500 */
  --gold: #fbbf24;          /* amber-400 */
  --gold-2: #f59e0b;        /* amber-500 */
  --rain: #60a5fa;
  --bolt: #facc15;

  /* Atmosphere — dark */
  --atm-grad-1: rgba(56, 189, 248, 0.18);
  --atm-grad-2: rgba(99, 102, 241, 0.18);
  --atm-grad-3: rgba(251, 191, 36, 0.10);
  --atm-base: linear-gradient(180deg, #05070d 0%, #060914 40%, #050811 100%);
  --grid-line: rgba(148, 163, 184, 0.04);

  /* Hero canvas */
  --node-fill: 224, 242, 254;       /* RGB triplet — used as rgb(var(--node-fill) / a) */
  --node-glow: 186, 230, 253;
  --link-color: 125, 211, 252;
  --canvas-tint: rgba(56, 189, 248, 0.06);
}

[data-theme="light"] {
  --bg-0: #f7f9fc;
  --bg-1: #eef2f8;
  --bg-2: #e6ebf3;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0b1424;
  --text-muted: #475569;
  --text-dim: #64748b;
  --primary: #0284c7;
  --primary-2: #0369a1;
  --primary-3: #4f46e5;
  --gold: #d97706;
  --gold-2: #b45309;

  /* Atmosphere — light */
  --atm-grad-1: rgba(56, 189, 248, 0.22);
  --atm-grad-2: rgba(99, 102, 241, 0.18);
  --atm-grad-3: rgba(251, 191, 36, 0.18);
  --atm-base: linear-gradient(180deg, #f5f8fc 0%, #eef3fa 50%, #e8eef7 100%);
  --grid-line: rgba(15, 23, 42, 0.05);

  /* Hero canvas — darker dots over light bg */
  --node-fill: 30, 64, 175;
  --node-glow: 56, 189, 248;
  --link-color: 56, 130, 246;
  --canvas-tint: rgba(56, 189, 248, 0.08);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

html, body {
  background: var(--bg-0);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

::selection { background: rgba(56, 189, 248, 0.35); color: white; }

/* Display font for headings */
.font-display { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.025em; }
.font-mono    { font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace; }

/* ----------------------------------------------------------
   Background atmosphere
   - Layered radial gradients + animated mesh
   ---------------------------------------------------------- */

.atmosphere {
  position: fixed; inset: 0; z-index: -10; pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -8%,  var(--atm-grad-1), transparent 60%),
    radial-gradient(700px 600px at 92% 8%,   var(--atm-grad-2), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, var(--atm-grad-3), transparent 60%),
    var(--atm-base);
  transition: background 0.6s ease;
}

.atmosphere::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.55;
}

[data-theme="light"] .noise { opacity: 0.03; mix-blend-mode: multiply; }
[data-theme="light"] body { color: var(--text); }
[data-theme="light"] .gradient-text {
  background: linear-gradient(120deg, #1e3a8a 0%, #0284c7 35%, #4f46e5 65%, #b45309 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="light"] .nav-shell.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: 0 12px 40px -16px rgba(15, 23, 42, 0.18);
}
[data-theme="light"] .card {
  background: linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.7) 100%);
  border-color: var(--border);
}
[data-theme="light"] .card:hover { border-color: rgba(2, 132, 199, 0.4); }
[data-theme="light"] .person { background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.78) 100%); }
[data-theme="light"] .org-card { background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.7) 100%); }
[data-theme="light"] .org-card:hover { background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85)); }
[data-theme="light"] .pill { background: rgba(15, 23, 42, 0.04); }
[data-theme="light"] .glass { background: var(--surface); }
[data-theme="light"] .btn-ghost { background: rgba(15, 23, 42, 0.04); color: var(--text); }
[data-theme="light"] .btn-ghost:hover { background: rgba(15, 23, 42, 0.08); border-color: rgba(15, 23, 42, 0.25); }
[data-theme="light"] .timeline-item::before { background: var(--bg-0); }
[data-theme="light"] input, [data-theme="light"] textarea, [data-theme="light"] select {
  background: rgba(15, 23, 42, 0.03) !important; border-color: rgba(15, 23, 42, 0.12) !important; color: var(--text) !important;
}
[data-theme="light"] input::placeholder, [data-theme="light"] textarea::placeholder { color: rgba(15, 23, 42, 0.4) !important; }
/* Tailwind text utility overrides for light mode */
[data-theme="light"] .text-slate-300,
[data-theme="light"] .text-slate-400 { color: var(--text-muted) !important; }
[data-theme="light"] .text-sky-400 { color: var(--primary) !important; }
[data-theme="light"] .text-amber-400 { color: var(--gold) !important; }
[data-theme="light"] .nav-link.active { background: rgba(2, 132, 199, 0.10); }

.noise {
  position: fixed; inset: 0; z-index: -9; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
  mix-blend-mode: overlay;
}

/* ----------------------------------------------------------
   Glass / surface
   ---------------------------------------------------------- */

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.glass-strong {
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}

.card {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20,28,45,0.65) 0%, rgba(10,15,28,0.6) 100%);
  border: 1px solid var(--border);
  transition: border-color 0.4s ease, transform 0.4s ease, background 0.4s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(56,189,248,0.0), rgba(56,189,248,0.5), rgba(99,102,241,0.0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-3px); border-color: rgba(148,163,184,0.22); }
.card:hover::before { opacity: 1; }

/* ----------------------------------------------------------
   Typography helpers
   ---------------------------------------------------------- */

.gradient-text {
  background: linear-gradient(120deg, #e0f2fe 0%, #38bdf8 35%, #818cf8 65%, #fbbf24 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 12s ease infinite;
}
@keyframes gradient-shift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-muted);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary));
}

.section-label {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--primary); opacity: 0.85;
}

.balance { text-wrap: balance; }
.pretty  { text-wrap: pretty; }

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.35rem; border-radius: 999px;
  font-weight: 500; font-size: 0.94rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  color: white;
  box-shadow: 0 10px 30px -10px rgba(56,189,248,0.55), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px -12px rgba(56,189,248,0.7), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(148,163,184,0.45);
  transform: translateY(-1px);
}
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ----------------------------------------------------------
   Navigation
   ---------------------------------------------------------- */

.nav-shell {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: padding 0.3s ease;
  padding: 1.25rem 0;
}
.nav-inner {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0.65rem 1rem 0.65rem 1.25rem;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(8, 12, 22, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav-shell.scrolled .nav-inner {
  background: rgba(6, 10, 20, 0.85);
  border-color: rgba(148,163,184,0.22);
  box-shadow: 0 12px 40px -16px rgba(0,0,0,0.6);
}
.nav-link {
  position: relative; padding: 0.5rem 0.9rem; border-radius: 999px;
  font-size: 0.92rem; color: var(--text-muted);
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-link.active { color: var(--text); background: rgba(56,189,248,0.10); }
.nav-link.active::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 999px; background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
}

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-strong);
  color: var(--text); cursor: pointer; transition: all 0.25s ease;
  position: relative; overflow: hidden;
}
.theme-toggle:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }
[data-theme="light"] .theme-toggle { background: rgba(15,23,42,0.04); }
[data-theme="light"] .theme-toggle:hover { background: rgba(15,23,42,0.08); }
.theme-toggle svg { transition: transform 0.4s cubic-bezier(.5,1.5,.5,1), opacity 0.3s ease; position: absolute; }
.theme-toggle .icon-sun  { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .icon-sun  { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }

.nav-logo { display: flex; align-items: center; gap: 0.7rem; }
.nav-logo img { height: 38px; width: auto; transition: filter 0.4s ease, transform 0.4s ease; }
.nav-logo:hover img { transform: rotate(-6deg) scale(1.04); filter: drop-shadow(0 0 12px rgba(56,189,248,0.55)); }
.site-footer .nav-logo img { height: 84px; }
[data-theme="light"] .site-footer .nav-logo img { filter: invert(1) hue-rotate(180deg) saturate(1.2); }
.nav-logo .lockup { display: flex; flex-direction: column; line-height: 1; }
.nav-logo .lockup .name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.nav-logo .lockup .sub { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 2px; }

/* Mobile nav */
.nav-toggle { display: none; }
.nav-mobile { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile {
    display: none;
    position: fixed; top: 92px; left: 1rem; right: 1rem; z-index: 60;
    border-radius: 22px; padding: 0.75rem;
    background: rgba(6,10,20,0.92);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(22px);
  }
  .nav-mobile.open { display: block; }
  .nav-mobile a { display: block; padding: 0.85rem 1rem; border-radius: 14px; color: var(--text); }
  .nav-mobile a:hover { background: rgba(255,255,255,0.05); }
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */

.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 9rem 1.5rem 5rem;
  overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0; z-index: 0;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; width: 100%; }

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 700;
  line-height: 1.02; letter-spacing: -0.035em;
  margin: 1.25rem 0 1.6rem;
}
.hero h1 .word { display: inline-block; }

.hero .sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-muted); max-width: 720px; line-height: 1.55;
}

.hero .meta {
  margin-top: 2rem; display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center;
}

.scroll-indicator {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: var(--text-dim); font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.2em; z-index: 2;
  opacity: 0.7;
}
.scroll-indicator .line { width: 1px; height: 36px; background: linear-gradient(180deg, transparent, var(--text-dim)); animation: pulse-line 2.4s ease infinite; }
@keyframes pulse-line { 0%,100% { opacity: 0.3; } 50% { opacity: 0.95; } }

/* ----------------------------------------------------------
   Sections
   ---------------------------------------------------------- */

section { position: relative; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

.section-pad { padding: 7rem 0; }
.section-pad-sm { padding: 4.5rem 0; }
@media (max-width: 768px) {
  .section-pad { padding: 4.5rem 0; }
  .section-pad-sm { padding: 3rem 0; }
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.03em;
  margin: 1rem 0 1.25rem;
}
.section-lead { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; max-width: 720px; }

/* ----------------------------------------------------------
   Bento grid
   ---------------------------------------------------------- */

.bento { display: grid; gap: 1.25rem; grid-template-columns: repeat(12, 1fr); }
.bento > * { grid-column: span 12; }
@media (min-width: 768px) {
  .bento > .span-4 { grid-column: span 4; }
  .bento > .span-6 { grid-column: span 6; }
  .bento > .span-8 { grid-column: span 8; }
  .bento > .span-12 { grid-column: span 12; }
}

.bento .card-body { padding: 1.75rem; height: 100%; display: flex; flex-direction: column; }
.bento .card-body h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.bento .card-body p { color: var(--text-muted); line-height: 1.6; }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  font-size: 0.74rem; color: var(--text-muted);
  border: 1px solid var(--border); background: rgba(255,255,255,0.025);
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em;
}
.pill .dot { width: 5px; height: 5px; border-radius: 999px; background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.pill.gold .dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* Pillars */
.pillar-num {
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--primary);
  letter-spacing: 0.18em; opacity: 0.85;
}
.pillar-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(56,189,248,0.15), rgba(99,102,241,0.15));
  border: 1px solid rgba(56,189,248,0.25);
  margin-bottom: 1.2rem;
}
.pillar-icon svg { width: 28px; height: 28px; color: #7dd3fc; }

/* ----------------------------------------------------------
   Marquee (orgs / partners scroll)
   ---------------------------------------------------------- */

.marquee {
  position: relative; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track > * { flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ----------------------------------------------------------
   Person card
   ---------------------------------------------------------- */

.person {
  position: relative; border-radius: 24px; padding: 1.5rem; height: 100%;
  background: linear-gradient(180deg, rgba(22,30,50,0.7) 0%, rgba(10,15,28,0.5) 100%);
  border: 1px solid var(--border);
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.person:hover { transform: translateY(-4px); border-color: rgba(56,189,248,0.35); }
.person .avatar {
  width: 140px; height: 140px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(135deg, rgba(56,189,248,0.22), rgba(99,102,241,0.22));
  margin-bottom: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  position: relative;
  box-shadow: 0 14px 40px -22px rgba(56,189,248,0.5);
}
.person .avatar.ph::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.18), transparent 55%);
  pointer-events: none;
}
.person .avatar.ph { font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; font-weight: 600; color: rgba(255,255,255,0.9); letter-spacing: -0.02em; }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.015em; }
.person .role { color: var(--primary); font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.35rem; }
.person .role.gold { color: var(--gold); }
.person .bio { color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; margin-top: 0.85rem; }
.person .links { margin-top: 1rem; display: flex; gap: 0.5rem; }
.person .link-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.8rem; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-muted);
  transition: all 0.25s ease;
}
.person .link-btn:hover { color: var(--text); background: rgba(56,189,248,0.1); border-color: rgba(56,189,248,0.4); }

/* Org card */
.org-card {
  position: relative; padding: 1.6rem; border-radius: 20px;
  background: linear-gradient(180deg, rgba(20,28,45,0.6) 0%, rgba(10,15,28,0.5) 100%);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.8rem;
  transition: all 0.35s ease;
  text-decoration: none; color: inherit;
}
.org-card:hover { transform: translateY(-3px); border-color: rgba(56,189,248,0.4); background: linear-gradient(180deg, rgba(28,38,60,0.7), rgba(15,22,38,0.6)); }
.org-card .org-mark {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem;
  background: linear-gradient(135deg, rgba(56,189,248,0.2), rgba(99,102,241,0.18));
  border: 1px solid rgba(56,189,248,0.3);
  letter-spacing: -0.01em;
  position: relative;
}
.org-card .org-mark.gold { background: linear-gradient(135deg, rgba(251,191,36,0.22), rgba(245,158,11,0.18)); border-color: rgba(251,191,36,0.35); color: #fde68a; }
.org-card .org-mark .abbr-fallback { display: none; position: absolute; }
.org-card .org-mark[data-fallback="1"] .abbr-fallback { display: inline; }
.org-card h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.1rem; }
.org-card p  { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.org-card .org-link { font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; color: var(--primary); margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem; }

/* ----------------------------------------------------------
   Timeline
   ---------------------------------------------------------- */

.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: 0.5rem; top: 0.6rem; bottom: 0.6rem; width: 1px;
  background: linear-gradient(180deg, var(--primary), rgba(56,189,248,0.05));
}
.timeline-item { position: relative; padding-bottom: 2.25rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -1.65rem; top: 0.3rem;
  width: 12px; height: 12px; border-radius: 999px;
  background: var(--bg-0); border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(56,189,248,0.15);
}
.timeline-item h4 { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 600; }
.timeline-item .quarter { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.35rem; }
.timeline-item p { color: var(--text-muted); margin-top: 0.4rem; line-height: 1.55; }

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */

footer.site-footer {
  padding: 4.5rem 1.5rem 2.5rem; border-top: 1px solid var(--border);
  margin-top: 6rem; position: relative;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; max-width: 1200px; margin: 0 auto 3rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.footer-bottom { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.85rem; font-family: 'JetBrains Mono', monospace; }
.footer-grid h5 { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; margin-bottom: 1rem; color: var(--text); font-weight: 600; }
.footer-grid a { display: block; color: var(--text-muted); padding: 0.3rem 0; font-size: 0.92rem; transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--text); }

/* ----------------------------------------------------------
   Reveal animations (no library required as fallback)
   ---------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in   { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.54s; }

/* ----------------------------------------------------------
   Misc
   ---------------------------------------------------------- */

.divider {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, rgba(148,163,184,0.25), transparent);
  margin: 4rem 0;
}

.kpi { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; }
.kpi-label { font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.18em; }

.cursor-glow {
  position: fixed; width: 380px; height: 380px; border-radius: 50%;
  pointer-events: none; z-index: -5;
  background: radial-gradient(circle, rgba(56,189,248,0.10) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .gradient-text { animation: none; }
}
