﻿/* === base.css === */
/* ============================================
   BASE.CSS  -  Reset, Variables, Typography
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Mono:wght@300;400;500&display=swap');

:root {
  /* Colors */
  --base: #050505;
  --base-1: #0a0a0a;
  --base-2: #111111;
  --base-3: #1a1a1a;
  --base-4: #242424;
  --surface: rgba(255,255,255,0.03);
  --surface-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.07);
  --border-active: rgba(0,240,255,0.3);

  --cyan: #00f0ff;
  --blue: #0055ff;
  --cyan-dim: rgba(0,240,255,0.15);
  --blue-dim: rgba(0,85,255,0.15);
  --cyan-glow: rgba(0,240,255,0.08);

  --text-primary: #f0f0f0;
  --text-secondary: rgba(240,240,240,0.55);
  --text-muted: rgba(240,240,240,0.3);
  --text-accent: #00f0ff;

  /* Typography */
  --font-head: 'Space Grotesk', sans-serif;
  --font-mono: 'DM Mono', monospace;

  /* Spacing */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --s7: 6rem;
  --s8: 8rem;

  /* Radius */
  --r1: 4px;
  --r2: 8px;
  --r3: 12px;
  --r4: 16px;
  --r5: 24px;

  /* Transitions */
  --t1: 0.15s ease;
  --t2: 0.3s ease;
  --t3: 0.5s ease;
  --t4: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--base);
  color: var(--text-primary);
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 700; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); letter-spacing: -0.02em; }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
h5 { font-size: 1rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500; }

p {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t1);
}

a:hover { color: var(--cyan); }

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-head);
}

::selection {
  background: var(--cyan-dim);
  color: var(--cyan);
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--base); }
::-webkit-scrollbar-thumb { background: var(--base-4); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

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

.mono { font-family: var(--font-mono); }
.accent { color: var(--cyan); }
.accent-blue { color: var(--blue); }
.dim { color: var(--text-muted); }

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}


/* === layout.css === */
/* ============================================
   LAYOUT.CSS  -  Grid, Containers, Nav, Footer
   ============================================ */

/* ============================================
   HERO  -  Home Page
   ============================================ */
.hero--home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--s8);
  padding-bottom: var(--s8);
  overflow: hidden;
}

.hero__container {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 900px;
}

.hero__label {
  margin-bottom: var(--s3);
}

.hero__headline {
  margin-bottom: var(--s4);
}

.hero__sub {
  margin-bottom: var(--s5);
}

.hero__sub-text {
  font-size: 1.15rem;
  max-width: 520px;
}

.hero__flow {
  margin-bottom: var(--s5);
}

/* ============================================
   SECTION MODIFIERS
   ============================================ */
.section--border-top {
  border-top: 1px solid var(--border);
}

.section--border-y {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--alt {
  background: var(--base-1);
}

/* ============================================
   PHILOSOPHY GRID
   ============================================ */
.grid-philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s7);
  align-items: center;
}

.ecosystem-list {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

/* 4-column grid for Ecosystem Pillars */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
}

@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   PATHWAYS GRID
   ============================================ */
.grid-pathways {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s7);
  align-items: start;
}

.pathways-list {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

/* ============================================
   CTA STRIP
   ============================================ */
.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s3);
}

.cta-strip__text {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ============================================
   UTILITY  -  Spacing & Small helpers
   ============================================ */
.mt-1 { margin-top: var(--s1); }
.mt-2 { margin-top: var(--s2); }
.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mt-5 { margin-top: var(--s5); }

.mb-1 { margin-bottom: var(--s1); }
.mb-2 { margin-bottom: var(--s2); }
.mb-3 { margin-bottom: var(--s3); }
.mb-4 { margin-bottom: var(--s4); }
.mb-5 { margin-bottom: var(--s5); }
.mb-6 { margin-bottom: var(--s6); }

.py-1 { padding-top: var(--s1); padding-bottom: var(--s1); }
.py-2 { padding-top: var(--s2); padding-bottom: var(--s2); }
.py-3 { padding-top: var(--s3); padding-bottom: var(--s3); }
.py-4 { padding-top: var(--s4); padding-bottom: var(--s4); }

.pt-5 { padding-top: var(--s5); }
.pb-none { padding-bottom: 0 !important; }
.border-b-none { border-bottom: none !important; }

.max-w-header { max-width: 560px; }
.max-w-sidebar { max-width: 400px; }
.max-w-content { max-width: 460px; }

.order-1 { order: 1; }
.order-2 { order: 2; }

.text-xs { font-size: 0.8rem; }
.text-sm { font-size: 0.9rem; }
.text-md { font-size: 1rem; }
.text-lg { font-size: 1.25rem; }
.text-xl { font-size: 1.4rem; }

.line-tight { line-height: 1.05; }

.flex-column-gap-2 { display: flex; flex-direction: column; gap: var(--s2); }
.flex-column-gap-4 { display: flex; flex-direction: column; gap: var(--s4); }

.flex-align-center-gap-2 { display: flex; align-items: center; gap: var(--s2); }
.flex-wrap-gap-1 { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.flex-center-gap-none { justify-content: center; gap: 0; }

.px-2 { padding-left: var(--s2); padding-right: var(--s2); }
.px-3 { padding-left: var(--s3); padding-right: var(--s3); }
.px-4 { padding-left: var(--s4); padding-right: var(--s4); }

.py-4-top { padding-top: var(--s4); }

.dim { color: var(--text-muted); }
.accent { color: var(--cyan); }
.font-light { font-weight: 300; }
.letter-widest { letter-spacing: 0.15em; }

.border-top-muted { border-top: 1px solid var(--border); }
.border-cyan-light { border-color: rgba(0,240,255,0.2) !important; }
.bg-cyan-ultra-low { background: rgba(0,240,255,0.03) !important; }

.section--rounded-lg { border-radius: var(--r4); }
.section--surface { background: var(--surface); }
.section--border-muted { border-color: var(--border); }

.grid-2-col-start { display: grid;  grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: start; }

.section-h2 {
  margin-bottom: var(--s4);
}

.section-h2--sm {
  margin-bottom: var(--s3);
}

.section-sub--center {
  margin: var(--s2) auto 0;
}

/* ============================================
   SYSTEM LAYOUT PATTERNS
   ============================================ */
.system-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s7);
  align-items: start;
  position: relative;
}

.system-list {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.system-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
}

.system-footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s3);
}

.flex-center-gap-none {
  justify-content: center;
  gap: 0;
}

.w-full { width: 100% !important; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-column-gap-3 { display: flex; flex-direction: column; gap: var(--s3); }
.flex-align-center-gap-3 { display: flex; align-items: center; gap: var(--s3); }

.bg-base-2 { background: var(--base-2); }
.bg-cyan-ultra-low { background: rgba(0,240,255,0.03) !important; }

.text-danger-dim { color: rgba(255,80,80,0.6); }

.section--rounded { border-radius: var(--r3); }

.form-select-custom {
  appearance: none;
  cursor: pointer;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="rgba(255,255,255,0.3)" stroke-width="2"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.form-success-block {
  display: none;
  margin-top: var(--s3);
  padding: var(--s3);
  border: 1px solid rgba(0,240,255,0.25);
  border-radius: var(--r3);
  background: rgba(0,240,255,0.04);
}

.form-success-block.visible {
  display: block;
}

.grid-3--spaced {
  margin-top: var(--s6);
}

.grid-3--compact {
  margin-top: var(--s5);
  gap: var(--s3);
}

.btn--spaced-top {
  margin-top: var(--s4);
  display: inline-flex;
}

/* Footer small helpers */
.footer-dot {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
}

.footer__copy {
  font-size: 0.75rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s4);
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--s4);
}

.container--wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--s4);
}

/* Sections */
.section {
  padding: var(--s8) 0;
}

.section--sm {
  padding: var(--s6) 0;
}

.section--lg {
  padding: calc(var(--s8) * 1.5) 0;
}

/* Grid Systems */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--s3) 0;
  transition: background var(--t3), padding var(--t3), border-color var(--t3);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5,5,5,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--s2) 0;
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s3);
  gap: var(--s2);
}

.nav__logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.nav__logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  display: inline-block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: nowrap;
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  transition: color var(--t1);
  position: relative;
  white-space: nowrap;
  text-decoration: none;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width var(--t2);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__cta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--border-active);
  padding: 0.5rem 1.2rem;
  border-radius: var(--r2);
  transition: all var(--t2);
  background: var(--cyan-glow);
}

.nav__cta:hover {
  background: var(--cyan-dim);
  color: var(--cyan);
  transform: translateY(-1px);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all var(--t2);
  transform-origin: center;
}

.nav__toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--base);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t3);
}

.nav__mobile.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.nav__mobile-link {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-secondary);
  transition: color var(--t2);
  text-align: center;
}

.nav__mobile-link:hover {
  color: var(--cyan);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--s7) 0 var(--s5);
  border-top: 1px solid var(--border);
  margin-top: var(--s8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s6);
  margin-bottom: var(--s6);
}

.footer__brand h3 {
  font-size: 1.3rem;
  margin-bottom: var(--s2);
}

.footer__brand p {
  font-size: 0.9rem;
  max-width: 280px;
  margin-bottom: var(--s3);
}

.footer__col h5 {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--s2);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}

.footer__col ul li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--t1);
}

.footer__col ul li a:hover {
  color: var(--cyan);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__social {
  display: flex;
  gap: var(--s2);
}

.footer__social a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color var(--t1);
}

.footer__social a:hover {
  color: var(--cyan);
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
  padding: calc(var(--s8) + var(--s6)) 0 var(--s7);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s8);
}

.page-header__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: var(--s3);
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.page-header__label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--cyan);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .grid-pathways { grid-template-columns: 1fr 1.5fr; gap: var(--s5); }
}

@media (max-width: 768px) {
  .btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  .btn-group .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .container { padding: 0 var(--s3); }
  .section { padding: var(--s6) 0; }
  .section--lg { padding: var(--s7) 0; }

  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  /* All standard grids collapse to single column */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Philosophy and Pathways custom grids collapse */
  .grid-philosophy,
  .grid-pathways {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  /* Flow pipeline wraps gracefully on mobile */
  .flow {
    gap: 0.25rem;
    flex-wrap: wrap;
  }

  .flow__label {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }

  /* Hero adjustments */
  .hero--home {
    padding-top: calc(var(--s8) + var(--s4));
    min-height: auto;
    padding-bottom: var(--s6);
  }

  .hero__sub-text {
    font-size: 1rem;
    max-width: 100%;
  }

  /* CTA Strip stacks on mobile */
  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s4);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--s2);
    text-align: center;
  }

  h1 { font-size: clamp(2.4rem, 10vw, 4rem); }
}

@media (max-width: 480px) {
  :root { --s4: 1.25rem; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }

  .flow {
    gap: 0.15rem;
  }

  .flow__label {
    font-size: 0.72rem;
    padding: 0.35rem 0.6rem;
  }

  /* Card buttons stay consistent on small screens */
  .btn--sm {
    font-size: 0.78rem;
    padding: 0.55rem 0.9rem;
  }
}


/* === components.css === */
/* ============================================
   COMPONENTS.CSS  -  Buttons, Cards, UI Elements
   ============================================ */

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.875rem 1.75rem;
  border-radius: var(--r2);
  transition: all var(--t2);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--t2);
  background: radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 70%);
}

.btn:hover::before { opacity: 1; }

/* Primary */
.btn--primary {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 0 0 var(--cyan-dim);
}

.btn--primary:hover {
  background: #20f5ff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,240,255,0.25);
}

/* Secondary */
.btn--secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.18);
}

.btn--secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-2px);
  color: var(--text-primary);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--border-active);
}

.btn--ghost:hover {
  background: var(--cyan-dim);
  transform: translateY(-2px);
  color: var(--cyan);
}

/* Icon Arrow */
.btn__arrow {
  font-size: 1rem;
  transition: transform var(--t2);
  display: inline-block;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* Small size modifier */
.btn--sm {
  font-size: 0.8rem;
  padding: 0.6rem 1rem;
}

.btn-group {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  padding: var(--s4);
  transition: all var(--t3);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity var(--t3);
}

.card:hover {
  border-color: rgba(0,240,255,0.15);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,240,255,0.05);
}

.card:hover::before { opacity: 1; }

.card__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--s2);
  display: flex;
  align-items: center;
  gap: var(--s1);
}

.card__label::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--cyan);
}

.card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--s2);
  letter-spacing: -0.025em;
}

.card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--s3);
}

.card__features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: var(--s4);
}

.card__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.card__feature::before {
  content: '';
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
}

/* System Card (larger) */
.system-card {
  background: var(--base-2);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  padding: var(--s5);
  position: relative;
  overflow: hidden;
  transition: all var(--t3);
}

.system-card__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  transition: opacity var(--t4);
  pointer-events: none;
}

.system-card--cyan .system-card__glow {
  background: var(--cyan);
  top: -100px;
  right: -100px;
}

.system-card--blue .system-card__glow {
  background: var(--blue);
  bottom: -100px;
  left: -100px;
}

.system-card:hover .system-card__glow {
  opacity: 0.06;
}

.system-card:hover {
  border-color: rgba(0,240,255,0.12);
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

/* Pathway Card */
.pathway-card {
  padding: var(--s5);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  background: var(--surface);
  position: relative;
  transition: all var(--t3);
}

.pathway-card__number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: var(--s3);
}

.pathway-card__title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: var(--s1);
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pathway-card__tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  margin-bottom: var(--s3);
}

.pathway-card__steps {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
}

.pathway-card__step {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--s2);
  align-items: start;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pathway-card__step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-top: 2px;
}

.pathway-card:hover {
  border-color: rgba(0,240,255,0.15);
  background: var(--surface-hover);
  transform: translateY(-4px);
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
  margin-bottom: var(--s6);
}

.section-header--center {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--s6);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s3);
}

.section-label--center {
  justify-content: center;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--cyan);
  flex-shrink: 0;
}

.section-label--center::before,
.section-label--center::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--cyan);
  flex-shrink: 0;
}

.section-label--center::before { order: -1; }

.section-title {
  line-height: 1.05;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-top: var(--s2);
  line-height: 1.75;
}

/* ============================================
   DIVIDER / SEPARATOR
   ============================================ */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: var(--s6) 0;
}

.divider--glow {
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.3;
}

/* ============================================
   BADGE / TAG
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
}

.badge--cyan {
  color: var(--cyan);
  border-color: rgba(0,240,255,0.25);
  background: rgba(0,240,255,0.05);
}

.badge--blue {
  color: #6b9fff;
  border-color: rgba(0,85,255,0.25);
  background: rgba(0,85,255,0.05);
}

/* ============================================
   STAT / METRIC
   ============================================ */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat__value {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

/* ============================================
   FLOW / PIPELINE DISPLAY
   ============================================ */
.flow {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.flow__step {
  display: flex;
  align-items: center;
  gap: 0;
}

.flow__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r2);
  background: var(--surface);
  transition: all var(--t2);
  white-space: nowrap;
}

.flow__label:hover,
.flow__label.active {
  color: var(--cyan);
  border-color: rgba(0,240,255,0.3);
  background: var(--cyan-glow);
}

.flow__arrow {
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0 0.5rem;
  flex-shrink: 0;
}

/* ============================================
   GLASS PANEL
   ============================================ */
.glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r4);
}

/* ============================================
   AI CHAT (TERMINAL HUD)
   ============================================ */
.chat-trigger {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: var(--r2);
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(0,240,255,0.4), inset 0 0 15px rgba(0,240,255,0.3);
  transition: all var(--t2);
}

.chat-trigger:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(0,240,255,0.4), inset 0 0 15px rgba(0,240,255,0.2);
  background: rgba(0,240,255,0.05);
}

.chat-trigger__icon {
  width: 24px;
  height: 24px;
  color: var(--cyan);
}

.chat-trigger__pulse {
  position: absolute;
  inset: -4px;
  border-radius: var(--r2);
  border: 1px dashed rgba(0,240,255,0.4);
  animation: spin-slow 10s linear infinite;
}

@keyframes spin-slow {
  100% { transform: rotate(360deg); }
}

.chat-panel {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  width: 380px;
  height: 520px;
  background: rgba(10, 10, 12, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(0,240,255,0.3);
  border-radius: var(--r3);
  z-index: 899;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.8), 0 0 30px rgba(0,240,255,0.05);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all var(--t3) cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-mono);
}

.chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.chat-panel__header {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111;
  -webkit-user-select: none;
  user-select: none;
}

.chat-panel__controls {
  display: flex;
  gap: 6px;
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.close-dot { background: #ff5f56; cursor: pointer; }
.close-dot:hover { filter: brightness(1.2); }
.min-dot { background: #ffbd2e; cursor: default; }
.max-dot { background: #27c93f; cursor: default; }

.chat-panel__title {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: auto;
}

.chat-panel__messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: #0a0a0c;
}

.chat-panel__messages::-webkit-scrollbar {
  width: 6px;
}

.chat-panel__messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.system-bootup {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.chat-msg {
  font-size: 0.8rem;
  line-height: 1.5;
  animation: fadeInUp 0.2s ease;
  word-wrap: break-word;
}

.chat-msg--system {
  color: #27c93f; /* Terminal Green */
}

.chat-msg--system::before {
  content: "SYS>";
  color: var(--text-muted);
  margin-right: 8px;
}

.chat-msg--user {
  color: var(--cyan);
}

.chat-msg--user::before {
  content: "USR>";
  color: var(--text-muted);
  margin-right: 8px;
}

#typing-indicator {
  color: var(--text-muted);
}

#typing-indicator::before {
  content: "SYS>";
}

.chat-panel__input {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #111;
}

.cli-prompt {
  color: var(--cyan);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.chat-panel__input input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  min-width: 0;
}

.chat-panel__input input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.chat-panel__send {
  width: 24px;
  height: 24px;
  background: transparent;
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  border: none;
  transition: transform var(--t1);
  padding: 0;
}

.chat-panel__send:hover {
  transform: translateX(2px) scale(1.1);
  color: #fff;
}

.cli-icon {
  width: 16px;
  height: 16px;
}

/* ============================================
   PHILOSOPHY QUOTE
   ============================================ */
.hindi-quote {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  border-left: 3px solid var(--cyan);
  padding-left: var(--s3);
  margin: var(--s4) 0;
  line-height: 1.3;
}

.hindi-quote span {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--s1);
  font-weight: 400;
}

/* ============================================
   ECOSYSTEM GRID
   ============================================ */
.ecosystem-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
}

.ecosystem-item:last-child { border-bottom: none; }

.ecosystem-item__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-top: 4px;
  flex-shrink: 0;
  width: 24px;
}

.ecosystem-item__body h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.ecosystem-item__body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   CONTACT FORM ELEMENTS
   ============================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--s3);
}

.form-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.form-input,
.form-textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 0.875rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-head);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--t1), background var(--t1);
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(0,240,255,0.3);
  background: rgba(0,240,255,0.02);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Contact Link */
.contact-link {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  background: var(--surface);
  transition: all var(--t2);
  text-decoration: none;
  color: var(--text-primary);
}

.contact-link:hover {
  border-color: rgba(0,240,255,0.2);
  background: var(--surface-hover);
  transform: translateX(6px);
  color: var(--text-primary);
}

.contact-link__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r2);
  background: var(--cyan-glow);
  border: 1px solid rgba(0,240,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--cyan);
}

.contact-link__body h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  letter-spacing: -0.01em;
}

.contact-link__body p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Priority Routing Banner */
.priority-banner {
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--r3);
  padding: 1rem 1.25rem;
  margin-bottom: var(--s4);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.priority-banner p {
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.priority-banner strong {
  color: var(--cyan);
}

/* Dedicated Scope Inbox Cards */
.inbox-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: var(--s4);
}

.inbox-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.875rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--r2);
  background: var(--surface);
  transition: all var(--t2);
  text-decoration: none;
}

.inbox-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  background: var(--surface-hover);
  transform: translateX(4px);
}

.inbox-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.inbox-card__address {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 500;
}

.inbox-card__scope {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.inbox-card__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  white-space: nowrap;
}

/* About positioning items */
.position-block {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--s4);
  align-items: start;
}

.position-block:last-child { border-bottom: none; }

.position-block__era {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  padding-top: 4px;
}

.position-block__content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.position-block__content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .chat-panel {
    width: calc(100vw - 2rem);
    right: 1rem;
    bottom: 5.5rem;
  }

  .flow { gap: 0.25rem; }
  .flow__label { font-size: 0.78rem; padding: 0.4rem 0.7rem; }

  .position-block {
    grid-template-columns: 1fr;
    gap: var(--s2);
  }
}

/* ============================================
   ACCORDION (System Log)
   ============================================ */
.timeline-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--r3);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--t2), background var(--t2);
}

.accordion-item:hover {
  border-color: var(--border-active);
  background: var(--surface-hover);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  color: var(--text-primary);
  font-weight: 500;
  text-align: left;
}

.accordion-year {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.9rem;
  min-width: 60px;
}

.accordion-title {
  flex: 1;
  font-size: 1.1rem;
}

.accordion-icon {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  transition: transform var(--t2), color var(--t2);
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
  color: var(--cyan);
}

.accordion-content {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.accordion-header[aria-expanded="false"] + .accordion-content {
  opacity: 0;
}

.accordion-header[aria-expanded="true"] + .accordion-content {
  opacity: 1;
}

.accordion-inner {
  padding: 0 var(--s4) var(--s4) calc(var(--s4) + 60px + var(--s3));
  color: var(--text-secondary);
}

.accordion-inner p {
  margin-bottom: var(--s2);
}

.accordion-inner ul {
  list-style: disc;
  padding-left: var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}

.accordion-inner li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .accordion-header {
    flex-wrap: wrap;
    gap: var(--s1);
    padding: var(--s2) var(--s3);
  }
  .accordion-year {
    width: 100%;
    margin-bottom: 4px;
  }
  .accordion-inner {
    padding: 0 var(--s3) var(--s3) var(--s3);
  }
}

/* ============================================
   PERSONAL BRAND & FOUNDER HERO COMPONENTS
   ============================================ */
.personal-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--s6);
  align-items: center;
}

.founder-portrait-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-active);
  border-radius: var(--r4);
  padding: var(--s4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(0,240,255,0.06);
  text-align: center;
  transition: all var(--t3);
}

.founder-portrait-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 40px rgba(0,240,255,0.12);
}

.founder-img-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto var(--s3);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--cyan);
  box-shadow: 0 0 25px rgba(0,240,255,0.3);
  background: var(--base-2);
}

.founder-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.founder-portrait-meta h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.founder-portrait-meta .hindi-name {
  font-size: 1.05rem;
  color: var(--cyan);
  margin-bottom: var(--s2);
  font-weight: 500;
}

.founder-portrait-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: var(--s2);
}

.founder-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--r1);
  background: var(--base-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.founder-badge--highlight {
  border-color: rgba(0,240,255,0.4);
  color: var(--cyan);
  background: rgba(0,240,255,0.06);
}

/* Quick Merit Pills */
.merit-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--s4);
}

.merit-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  color: var(--text-secondary);
  transition: all var(--t2);
}

.merit-pill:hover {
  border-color: var(--cyan);
  color: var(--text-primary);
}

.merit-pill__icon {
  color: var(--cyan);
}

/* Hero Social Fast Links */
.hero-social-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--border);
}

.hero-social-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.25rem 0.6rem;
  border-radius: var(--r1);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--t2);
}

.hero-social-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

/* ============================================
   STATS / METRICS STRIP
   ============================================ */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  margin-bottom: var(--s6);
}

.metric-item {
  text-align: center;
  padding: var(--s2);
}

.metric-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   CREDENTIALS CARDS
   ============================================ */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
}

.credential-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: var(--s4);
  transition: all var(--t2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.credential-card:hover {
  border-color: var(--border-active);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.credential-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--s2);
}

.credential-card__icon {
  font-size: 1.5rem;
}

.credential-card__score {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--r1);
  background: rgba(0,240,255,0.1);
  color: var(--cyan);
  border: 1px solid rgba(0,240,255,0.25);
}

.credential-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.credential-card__inst {
  font-size: 0.875rem;
  color: var(--cyan);
  margin-bottom: var(--s2);
}

.credential-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   PUBLISHED WORKS & BOOKS
   ============================================ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}

.book-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--t2);
  position: relative;
  overflow: hidden;
}

.book-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--cyan);
}

.book-card:hover {
  border-color: var(--border-active);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.book-card__badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: var(--s2);
}

.book-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--s2);
  color: var(--text-primary);
  line-height: 1.35;
}

.book-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--s3);
  flex-grow: 1;
}

.book-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.book-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.45rem;
  background: var(--base-2);
  border-radius: var(--r1);
  color: var(--text-muted);
}

/* ============================================
   COMPACT ECOSYSTEM SISTER SITES (SMALL SPACE)
   ============================================ */
.compact-eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.compact-eco-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: var(--s3) var(--s4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--t2);
}

.compact-eco-card:hover {
  border-color: rgba(0,240,255,0.3);
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.compact-eco-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.compact-eco-pillar {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
}

.compact-eco-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.compact-eco-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--s3);
}

.compact-eco-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  padding: 0.4rem 0.8rem;
  border-radius: var(--r1);
  background: rgba(0,240,255,0.06);
  border: 1px solid rgba(0,240,255,0.15);
  transition: all var(--t2);
  text-decoration: none;
}

.compact-eco-link:hover {
  background: var(--cyan);
  color: #000;
  border-color: var(--cyan);
}

/* ============================================
   SOCIAL MATRIX & CHANNELS
   ============================================ */
.social-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.social-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: var(--s3) var(--s4);
  transition: all var(--t2);
  text-decoration: none;
  color: var(--text-primary);
}

.social-card:hover {
  border-color: var(--cyan);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.social-card__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-card__icon {
  font-size: 1.25rem;
  color: var(--cyan);
}

.social-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
}

.social-card__handle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.social-card__arrow {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 1.1rem;
  transition: transform var(--t2);
}

.social-card:hover .social-card__arrow {
  transform: translateX(4px);
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .personal-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }
  .founder-portrait-card {
    order: -1;
    max-width: 360px;
    margin: 0 auto;
  }
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .credentials-grid {
    grid-template-columns: 1fr;
  }
  .books-grid {
    grid-template-columns: 1fr;
  }
  .compact-eco-grid {
    grid-template-columns: 1fr;
  }
  .social-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .metrics-strip {
    grid-template-columns: 1fr;
  }
  .social-matrix-grid {
    grid-template-columns: 1fr;
  }
}



/* === animations.css === */
/* ============================================
   ANIMATIONS.CSS  -  Keyframes & Motion Systems
   ============================================ */

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes pulse-ring {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes glitch {
  0% { clip-path: inset(0 0 95% 0); transform: translate(-3px, 0); }
  10% { clip-path: inset(40% 0 50% 0); transform: translate(3px, 0); }
  20% { clip-path: inset(80% 0 5% 0); transform: translate(-3px, 0); }
  30% { clip-path: inset(20% 0 70% 0); transform: translate(0px, 0); }
  40% { clip-path: inset(60% 0 30% 0); transform: translate(3px, 0); }
  50% { clip-path: inset(0 0 95% 0); transform: translate(-3px, 0); }
  60% { clip-path: inset(0 0 0 0); transform: translate(0, 0); }
  100% { clip-path: inset(0 0 0 0); transform: translate(0, 0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes beam {
  0% { transform: translateX(-100%) skewX(-20deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(400%) skewX(-20deg); opacity: 0; }
}

@keyframes borderGlow {
  0%, 100% { border-color: rgba(0,240,255,0.1); }
  50% { border-color: rgba(0,240,255,0.4); }
}

@keyframes gridMove {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(60px, 60px, 0); }
}

/* ============================================
   HERO ANIMATIONS
   ============================================ */
.hero {
  animation: fadeIn 0.5s ease;
}

.hero__label { animation: fadeInUp 0.6s ease 0.1s both; }
.hero__headline { animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.2s both; }
.hero__sub { animation: fadeInUp 0.6s ease 0.4s both; }
.hero__flow { animation: fadeInUp 0.6s ease 0.5s both; }
.hero__ctas { animation: fadeInUp 0.6s ease 0.6s both; }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  transform: translateX(-30px);
}

.reveal--left.revealed {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(30px);
}

.reveal--right.revealed {
  transform: translateX(0);
}

.reveal--scale {
  transform: scale(0.94);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.reveal--scale.revealed {
  transform: scale(1);
  opacity: 1;
}

/* Stagger delays */
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  top: -60px;
  left: -60px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  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: 60px 60px;
  will-change: transform;
  animation: gridMove 20s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}

.hero__glow-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,240,255,0.08) 0%, transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  animation: float 8s ease-in-out infinite;
}

.hero__glow-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,85,255,0.06) 0%, transparent 70%);
  bottom: -100px;
  right: 10%;
  animation: float 12s ease-in-out infinite reverse;
}

/* Scanline effect on hero */
.hero__scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    transparent 0%,
    rgba(0,240,255,0.02) 50%,
    transparent 100%
  );
  background-size: 100% 4px;
  pointer-events: none;
}

/* ============================================
   HOVER EFFECTS
   ============================================ */
.hover-lift {
  transition: transform var(--t2), box-shadow var(--t2);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.hover-glow {
  transition: box-shadow var(--t3);
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(0,240,255,0.15);
}

/* ============================================
   BEAM / SHIMMER
   ============================================ */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.08),
    transparent
  );
  animation: beam 4s ease infinite 2s;
}

/* ============================================
   TEXT EFFECTS
   ============================================ */
.text-gradient {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-subtle {
  background: linear-gradient(160deg, #f0f0f0 40%, rgba(240,240,240,0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cursor blink */
.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--cyan);
  vertical-align: middle;
  animation: pulse-dot 1s ease-in-out infinite;
  margin-left: 2px;
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */
.page-enter {
  animation: fadeInUp 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   STEP 2  -  MICRO-INTERACTION HOOKS
   ============================================ */

/* Section entered  -  subtle fade-up for non-reveal sections */
section,
header.page-header {
  opacity: 1;
}

/* Card glow layer  -  CSS fallback (JS injects inline styles) */
.card-glow-layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
  will-change: background;
}

/* Ensure card content sits above glow layer */
.card > *,
.system-card > *,
.contact-link > *,
.pathway-card > * {
  position: relative;
  z-index: 1;
}

/* Prevent border-trace from blocking card content */
.system-card {
  isolation: isolate;
}

/* Magnetic button  -  smooth snap-back handled by JS */
.btn--primary,
.nav__cta {
  will-change: transform;
}

/* Hero content  -  3D tilt prep */
.hero__content {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Flow label  -  enhanced active transition */
.flow__label {
  transition: color var(--t2), border-color var(--t2), background var(--t2), transform 0.2s ease;
}

.flow__label.active {
  transform: translateY(-2px);
}

/* Section entered utility */
.section--entered > .container {
  animation: fadeInUp 0.5s cubic-bezier(0.16,1,0.3,1) both;
}



/* === frankbase-auth.css === */
/* ==============================================================================
   🌐 FrankBase Universal Auth & SSO CSS Framework (WCAG 2.1 AA Dual Theme)
   ============================================================================== */

:root {
  --fb-modal-bg: #ffffff;
  --fb-modal-text: #0f172a;
  --fb-modal-sub: #64748b;
  --fb-modal-border: #e2e8f0;
  --fb-modal-shadow: rgba(0, 0, 0, 0.15);
  --fb-modal-primary: #4f46e5;
  --fb-modal-backdrop: rgba(15, 23, 42, 0.65);
}

[data-theme="dark"], body.dark, .dark {
  --fb-modal-bg: #0f172a;
  --fb-modal-text: #f8fafc;
  --fb-modal-sub: #94a3b8;
  --fb-modal-border: #334155;
  --fb-modal-shadow: rgba(0, 0, 0, 0.45);
  --fb-modal-primary: #6366f1;
  --fb-modal-backdrop: rgba(0, 0, 0, 0.8);
}

.fb-auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--fb-modal-backdrop);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1rem;
  animation: fbFadeIn 0.2s ease-out forwards;
}

.fb-auth-modal-backdrop.active {
  display: flex;
}

.fb-auth-modal-card {
  position: relative;
  background: var(--fb-modal-bg);
  border: 1px solid var(--fb-modal-border);
  border-radius: 1.5rem;
  max-width: 420px;
  width: 100%;
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: 0 20px 25px -5px var(--fb-modal-shadow), 0 8px 10px -6px var(--fb-modal-shadow);
  color: var(--fb-modal-text);
  font-family: inherit;
}

.fb-auth-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--fb-modal-sub);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all 0.2s;
}

.fb-auth-close-btn:hover {
  color: var(--fb-modal-text);
  background: var(--fb-modal-border);
}

.fb-auth-brand-badge {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.fb-auth-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--fb-modal-text);
}

.fb-auth-modal-sub {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--fb-modal-sub);
  margin: 0 0 1.75rem 0;
}

.fb-gsi-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  margin-bottom: 1.5rem;
}

.fb-auth-modal-footer {
  font-size: 0.75rem;
  color: var(--fb-modal-sub);
  padding-top: 1rem;
  border-top: 1px solid var(--fb-modal-border);
}

@keyframes fbFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}


