/* ============================================================
   THE SCIENCE BLUEPRINT - DESIGN SYSTEM
   myscienceblueprint.com | TSB-WEB-2026-STYLESHEET v1.0
   ============================================================ */

/* ===== 0. GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,400&display=swap');

/* ===== 1. CSS CUSTOM PROPERTIES ===== */
:root {
  /* Canvas */
  --bg:             #0A0E1A;
  --bg-2:           #0D1220;
  --bg-3:           #111827;

  /* Accents */
  --cyan:           #00D4FF;
  --cyan-05:        rgba(0, 212, 255, 0.05);
  --cyan-10:        rgba(0, 212, 255, 0.10);
  --cyan-15:        rgba(0, 212, 255, 0.15);
  --cyan-25:        rgba(0, 212, 255, 0.25);
  --cyan-40:        rgba(0, 212, 255, 0.40);
  --magenta:        #FF2D78;
  --magenta-10:     rgba(255, 45, 120, 0.10);
  --magenta-15:     rgba(255, 45, 120, 0.15);

  /* Text */
  --text:           #FFFFFF;
  --text-2:         #94A3B8;
  --text-3:         #475569;

  /* Glass system */
  --glass:          rgba(255, 255, 255, 0.03);
  --glass-h:        rgba(0, 212, 255, 0.06);
  --glass-border:   rgba(0, 212, 255, 0.12);
  --glass-border-h: rgba(0, 212, 255, 0.30);
  --glass-blur:     blur(16px);
  --glass-shadow:   0 8px 32px rgba(0, 0, 0, 0.5);

  /* Layout */
  --nav-h:          72px;
  --container:      1200px;
  --gap:            1.5rem;
  --radius:         12px;
  --radius-lg:      20px;

  /* Type */
  --f-head:         'Montserrat', sans-serif;
  --f-mono:         'DM Mono', monospace;

  /* Easing */
  --ease:           150ms ease;
  --ease-md:        300ms ease;
  --ease-lg:        600ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark mode only - no light mode support */

/* ===== 2. 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(--bg);
  color: var(--text);
  font-family: var(--f-mono);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--ease-md), color var(--ease-md);
}

/* Blueprint grid overlay - subtle technical texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Subtle noise overlay - adds premium depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: 9999;
}

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

a { color: var(--cyan); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--magenta); }

ul { list-style: none; }

/* ===== 3. TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.accent-cyan    { color: var(--cyan); }
.accent-magenta { color: var(--magenta); }
.text-2         { color: var(--text-2); }
.text-3         { color: var(--text-3); }

/* ===== 4. LAYOUT ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section       { padding: 100px 0; }
.section--sm   { padding: 60px 0; }
.section--xs   { padding: 40px 0; }

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 5. SECTION LABELS & HEADERS ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

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

.section-header { margin-bottom: 3rem; }

/* ===== 6. GLASS COMPONENTS ===== */
.glass {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  transition: background var(--ease-md), border-color var(--ease-md), box-shadow var(--ease-md);
}

.glass-card {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--glass-shadow);
  transition: border-color var(--ease-md), box-shadow var(--ease-md), transform var(--ease-md);
}

.glass-card:hover {
  border-color: var(--glass-border-h);
  box-shadow: 0 12px 48px rgba(0, 212, 255, 0.10);
  transform: translateY(-2px);
}

/* ===== 7. BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--ease-md);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--cyan);
  color: #0A0E1A;
}
.btn-primary:hover {
  background: var(--magenta);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 45, 120, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
}
.btn-outline:hover {
  background: var(--cyan-10);
  transform: translateY(-1px);
  color: var(--cyan);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover {
  color: var(--cyan);
  border-color: var(--glass-border-h);
}

.btn-magenta {
  background: var(--magenta);
  color: #FFFFFF;
}
.btn-magenta:hover {
  background: var(--cyan);
  color: #0A0E1A;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.4);
}

/* ===== 8. NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: all var(--ease-md);
}

.nav--scrolled {
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Dark mode only - no light mode nav override */

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo { height: 34px; width: 34px; object-fit: contain; }

.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.nav-brand-name {
  font-family: var(--f-head);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-brand-tag {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-link {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--ease);
  text-decoration: none;
}

.nav-link:hover, .nav-link--active {
  color: var(--cyan);
  background: var(--cyan-10);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Theme toggle removed - dark mode only */
.theme-toggle {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--ease-md);
}
.menu-toggle--open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle--open span:nth-child(2) { opacity: 0; }
.menu-toggle--open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== 9. HERO (HOMEPAGE) ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  padding: 0.35rem 1rem;
  border: 1px solid var(--cyan-15);
  border-radius: 100px;
  background: var(--cyan-10);
}

.hero-headline {
  font-size: clamp(3rem, 8vw, 5.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-subline {
  font-family: var(--f-mono);
  font-size: 1rem;
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto 2.75rem;
  line-height: 1.9;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Page hero (sub-pages) */
.page-hero {
  padding: calc(var(--nav-h) + 56px) 0 56px;
  border-bottom: 1px solid var(--glass-border);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

.page-hero__tag {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.page-hero__title { margin-bottom: 0.75rem; }

.page-hero__sub {
  color: var(--text-2);
  font-size: 0.95rem;
  max-width: 580px;
}

/* ===== 10. PLATFORM CARDS ===== */
.platform-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.platform-card {
  padding: 2rem 1.75rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: border-color var(--ease-md), transform var(--ease-md), box-shadow var(--ease-md);
}

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

.platform-card:hover {
  border-color: var(--glass-border-h);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,212,255,0.08);
}

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

.platform-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--cyan-10);
  border: 1px solid var(--cyan-25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--cyan);
}

.platform-card-icon svg { width: 20px; height: 20px; }

.platform-card-name {
  font-family: var(--f-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.platform-card-desc {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.platform-card-link {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--ease);
}

.platform-card-link:hover { gap: 0.55rem; color: var(--cyan); }

/* ===== 11. MANIFESTO ===== */
.manifesto-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-rule {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  margin: 2rem auto;
}

.manifesto-quote {
  font-family: var(--f-head);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.manifesto-body {
  font-family: var(--f-mono);
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.95;
}

/* ===== 12. LATEST SIGNAL (HOMEPAGE) ===== */
.signal-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  align-items: start;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--bg-3);
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.signal-sub-label {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.signal-post-date {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 0.5rem;
}

.signal-post-title {
  font-family: var(--f-head);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.signal-post-teaser {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

/* ===== 13. NEWSLETTER ===== */
.newsletter-wrap {
  background: linear-gradient(135deg, var(--cyan-10) 0%, var(--magenta-10) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
}

/* ===== 14. ARCHIVE ===== */
.archive-entry {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.archive-entry:first-child { border-top: 1px solid var(--glass-border); }

.archive-idx {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--text-3);
  letter-spacing: 0.14em;
  margin-bottom: 0.6rem;
}

.archive-title {
  font-family: var(--f-head);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.archive-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.archive-authors {
  font-size: 0.8rem;
  color: var(--text-2);
  flex: 1;
  min-width: 200px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-oa {
  background: var(--cyan-10);
  color: var(--cyan);
  border: 1px solid var(--cyan-25);
}

.badge-type {
  background: var(--magenta-10);
  color: var(--magenta);
  border: 1px solid var(--magenta-15);
}

.doi-link {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--ease);
}

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

.abstract-row {
  margin-top: 0.75rem;
}

.abstract-toggle {
  background: none;
  border: none;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--ease);
}

.abstract-toggle:hover { color: var(--magenta); }

.abstract-toggle .chevron {
  display: inline-block;
  transition: transform var(--ease-md);
}

.abstract-toggle.open .chevron { transform: rotate(180deg); }

.abstract-body {
  display: none;
  margin-top: 0.85rem;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  background: var(--cyan-05);
  border-left: 2px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.9;
  animation: fadeSlide 220ms ease;
}

.abstract-body.open { display: block; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ===== 15. ABOUT ===== */
.about-founder-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.founder-photo-wrap { position: relative; }

.founder-photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

.founder-photo-ring {
  position: absolute;
  inset: -10px;
  border: 1px solid var(--cyan-15);
  border-radius: calc(var(--radius-lg) + 10px);
  pointer-events: none;
}

.constraint-block {
  padding: 1rem 1.25rem;
  background: var(--cyan-10);
  border-left: 2px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.constraint-block strong { color: var(--cyan); font-weight: 600; }

.orcid-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--text-3);
  margin-top: 0.5rem;
}

/* ===== 16. CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: var(--f-mono);
  font-size: 0.875rem;
  color: var(--text);
  transition: all var(--ease);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

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

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--cyan);
  background: var(--cyan-05);
  box-shadow: 0 0 0 3px var(--cyan-10);
}

.form-select {
  cursor: pointer;
  background-color: var(--bg-3);
  color: var(--text);
}

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

.turnstile-box {
  height: 65px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--text-3);
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
}

/* ===== 17. SIGNAL PAGE ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.video-card { }
.video-card .video-container { margin-bottom: 1rem; }
.video-card-date { font-size: 0.68rem; color: var(--text-3); margin-bottom: 0.35rem; }
.video-card-title { font-family: var(--f-head); font-size: 0.9rem; font-weight: 700; line-height: 1.35; }

/* ===== 18. FOOTER ===== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--glass-border);
  padding: 3.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-name {
  font-family: var(--f-head);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.footer-tagline { font-size: 0.78rem; color: var(--cyan); margin-bottom: 1rem; }

.footer-desc { font-size: 0.78rem; color: var(--text-3); line-height: 1.75; max-width: 300px; }

.footer-socials { display: flex; gap: 0.6rem; margin-top: 1.25rem; }

.footer-social {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--f-mono);
  transition: all var(--ease);
  text-decoration: none;
}

.footer-social:hover {
  color: var(--cyan);
  border-color: var(--glass-border-h);
  background: var(--cyan-10);
}

.footer-col-title {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  color: var(--text-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-nav a {
  font-size: 0.82rem;
  color: var(--text-2);
  transition: color var(--ease);
  text-decoration: none;
}

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

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copyright, .footer-doc-id {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--text-3);
}

/* ===== 19. SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 400ms cubic-bezier(0.16,1,0.3,1), transform 400ms cubic-bezier(0.16,1,0.3,1);
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.fade-in:nth-child(2) { transition-delay: 60ms; }
.fade-in:nth-child(3) { transition-delay: 120ms; }
.fade-in:nth-child(4) { transition-delay: 180ms; }
.fade-in:nth-child(5) { transition-delay: 240ms; }

/* ===== 20a. BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-3);
  border: 1px solid var(--glass-border);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 300ms ease, transform 300ms ease, border-color var(--ease), color var(--ease);
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.back-to-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--glass-border-h);
  color: var(--cyan);
}

.back-to-top svg { width: 16px; height: 16px; }

/* ===== 20b. SVG ICON SYSTEM ===== */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon svg {
  display: block;
  fill: currentColor;
}

/* Footer social icons upgrade */
.footer-social svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
  transition: fill var(--ease);
}

/* ===== 21. RESPONSIVE ===== */
@media (max-width: 1024px) {
  .signal-grid         { grid-template-columns: 1fr; }
  .about-founder-grid  { grid-template-columns: 1fr; }
  .contact-grid        { grid-template-columns: 1fr; }
  .footer-grid         { grid-template-columns: 1fr 1fr; }
  .platform-cards      { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .menu-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.2rem;
  }

  .nav-links--open { display: flex; }

  .nav-link { width: 100%; text-align: center; padding: 0.8rem; }
  .nav-cta  { display: none; }

  .section  { padding: 64px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .stat-item { padding: 1rem 1.25rem; min-width: 120px; }

  .newsletter-wrap { padding: 2.5rem 1.25rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .hero-cta { flex-direction: column; align-items: center; }

  .about-founder-grid .founder-photo { max-width: 240px; }
}

@media (max-width: 480px) {
  .back-to-top { bottom: 1.25rem; right: 1.25rem; }
}
