/* ================================================================
   THE VAGUS VISION — style.css
   ================================================================
   TABLE OF CONTENTS
   1.  CSS Variables (Design Tokens)
   2.  Reset & Base
   3.  Typography
   4.  Layout Utilities
   5.  Navigation
   6.  Hero Section
   7.  About Section
   8.  Research Pillars Section
   9.  Team Section
   10. Notes / Methodology Section
   11. Contact Section
   12. Footer
   13. Buttons
   14. Reveal Animations (Intersection Observer)
   15. Responsive Breakpoints
   ================================================================ */
 
 
/* ================================================================
   1. CSS VARIABLES — Edit these to retheme the entire site
   ================================================================ */
:root {
  /* --- Colour Palette --- */
  --color-bg:           #0A0F1E;   /* Deep space navy */
  --color-surface:      #111828;   /* Slightly lighter surface */
  --color-surface-2:    #1A2744;   /* Card / panel background */
  --color-border:       #1E2D50;   /* Subtle borders */
  --color-accent:       #00D4FF;   /* Cyan — the "vision" accent */
  --color-accent-dim:   rgba(0, 212, 255, 0.12); /* Accent fills */
  --color-accent-glow:  rgba(0, 212, 255, 0.25); /* Glows / shadows */
  --color-text:         #F0F4FF;   /* Primary text (near-white) */
  --color-text-muted:   #8A9BBF;   /* Secondary text */
  --color-text-faint:   #3D5080;   /* Labels, decorative */
 
  /* --- Typography --- */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
 
  /* --- Type Scale --- */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  2rem;       /* 32px */
  --text-4xl:  2.75rem;    /* 44px */
  --text-5xl:  3.75rem;    /* 60px */
  --text-6xl:  5rem;       /* 80px */
 
  /* --- Spacing --- */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;
  --space-4xl: 8rem;
 
  /* --- Layout --- */
  --max-width: 1200px;
  --section-padding: 7rem 0;
 
  /* --- Transitions --- */
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-base: 400ms;
  --duration-slow: 700ms;
 
  /* --- Border Radius --- */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
}
 
 
/* ================================================================
   2. RESET & BASE
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
 
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
 
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
 
img {
  display: block;
  max-width: 100%;
}
 
a {
  color: inherit;
  text-decoration: none;
}
 
ul { list-style: none; }
 
/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
 
 
/* ================================================================
   3. TYPOGRAPHY
   ================================================================ */
 
/* Display headings use Space Grotesk */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
 
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}
 
.section-heading {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  margin-bottom: var(--space-lg);
}
 
.section-subheading {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 55ch;
  line-height: 1.6;
}
 
.body-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 65ch;
}
 
 
/* ================================================================
   4. LAYOUT UTILITIES
   ================================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
 
.section {
  padding: var(--section-padding);
}
 
.section-header {
  margin-bottom: var(--space-3xl);
}
 
 
/* ================================================================
   5. NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-2xl);
  /* Glassmorphism background — applied via JS on scroll */
  transition: background var(--duration-base) var(--ease),
              padding var(--duration-base) var(--ease),
              backdrop-filter var(--duration-base) var(--ease);
}
 
/* Scrolled state — added by JS */
.nav.nav--scrolled {
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) var(--space-2xl);
}
 
.nav__logo {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text);
}
 
.nav__logo-mark {
  color: var(--color-accent);
  font-size: 1.2em;
}
 
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
 
.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  transition: color var(--duration-fast) var(--ease);
  position: relative;
}
 
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--duration-base) var(--ease);
}
 
.nav__link:hover {
  color: var(--color-text);
}
 
.nav__link:hover::after {
  width: 100%;
}
 
/* CTA link in nav */
.nav__link--cta {
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease);
}
 
.nav__link--cta::after { display: none; }
 
.nav__link--cta:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}
 
/* Mobile hamburger toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}
 
.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform var(--duration-base) var(--ease),
              opacity var(--duration-base) var(--ease);
}
 
/* Toggle open state */
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
 
 
/* ================================================================
   6. HERO SECTION
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 var(--space-xl);
}
 
/* Neural network canvas fills the entire hero */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
 
/* Subtle gradient overlay to ground the text */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, transparent 30%, var(--color-bg) 80%),
              linear-gradient(to bottom, transparent 60%, var(--color-bg) 100%);
  z-index: 1;
  pointer-events: none;
}
 
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding-top: 6rem; /* Clear fixed nav */
}
 
.hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}
 
.hero__headline {
  font-size: clamp(var(--text-4xl), 7vw, var(--text-6xl));
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
  max-width: 12ch;
}
 
.hero__headline-accent {
  color: var(--color-accent);
  font-style: italic;
}
 
.hero__subline {
  font-size: clamp(var(--text-base), 1.5vw, var(--text-lg));
  color: var(--color-text-muted);
  max-width: 52ch;
  line-height: 1.75;
  margin-bottom: var(--space-2xl);
}
 
.hero__actions {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
 
/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
 
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-text-faint), transparent);
  animation: scroll-drop 2s var(--ease) infinite;
}
 
@keyframes scroll-drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
 
 
/* ================================================================
   7. ABOUT SECTION
   ================================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-3xl);
  align-items: start;
}
 
.about__label-col {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: var(--space-xs);
}
 
.about__accent-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  margin-top: var(--space-lg);
  margin-left: 2px;
}
 
/* About content spacing */
.about__content .body-text + .body-text {
  margin-top: var(--space-lg);
}
 
/* Stats bar */
.about__stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}
 
.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-xs);
}
 
.stat__label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: 18ch;
  line-height: 1.5;
}
 
 
/* ================================================================
   8. RESEARCH PILLARS SECTION
   ================================================================ */
.research {
  background: var(--color-surface);
}
 
.research__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
 
.pillar {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: border-color var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease);
}
 
.pillar:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px var(--color-accent-glow);
}
 
.pillar__icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: var(--space-xl);
}
 
.pillar__title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
}
 
.pillar__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}
 
.pillar__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-dim);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
}
 
 
/* ================================================================
   9. TEAM SECTION
   ================================================================ */
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-xl);
}
 
.team__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease);
}
 
.team__card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-3px);
}
 
.team__photo-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-surface-2);
}
 
.team__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter var(--duration-slow) var(--ease),
              transform var(--duration-slow) var(--ease);
}
 
.team__card:hover .team__photo {
  filter: grayscale(0%);
  transform: scale(1.03);
}
 
.team__info {
  padding: var(--space-xl);
}
 
.team__name {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
 
.team__role {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}
 
.team__bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}
 
 
/* ================================================================
   10. NOTES / METHODOLOGY SECTION
   ================================================================ */
.notes {
  background: var(--color-surface);
}
 
.notes__inner {
  max-width: 800px;
  margin: 0 auto;
}
 
.notes__header {
  margin-bottom: var(--space-3xl);
}
 
.notes__body {
  display: flex;
  flex-direction: column;
  gap: 0;
}
 
.note-block {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}
 
.note-block:last-child {
  border-bottom: none;
}
 
.note-block__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--color-text-faint);
  line-height: 1;
  padding-top: 0.2rem;
  letter-spacing: -0.02em;
}
 
.note-block__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}
 
.note-block__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
}
 
 
/* ================================================================
   11. CONTACT SECTION
   ================================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-4xl);
  align-items: start;
}
 
.contact__info {
  position: sticky;
  top: 7rem;
}
 
.contact__info .section-heading {
  margin-top: var(--space-md);
}
 
.contact__info .body-text {
  margin-bottom: var(--space-2xl);
}
 
.contact__detail {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
 
.contact__detail-label {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
 
.contact__detail-value {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease);
}
 
.contact__detail-value:hover {
  color: var(--color-accent);
}
 
/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
 
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
 
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
 
.form-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
 
.form-input {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: 0.85rem 1.1rem;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease),
              box-shadow var(--duration-fast) var(--ease);
  width: 100%;
  -webkit-appearance: none;
}
 
.form-input::placeholder {
  color: var(--color-text-faint);
}
 
.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-dim);
}
 
.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}
 
.form-feedback {
  font-size: var(--text-sm);
  min-height: 1.4em;
  transition: opacity var(--duration-base) var(--ease);
}
 
.form-feedback--success { color: #34D399; }
.form-feedback--error   { color: #FC8181; }
 
 
/* ================================================================
   12. FOOTER
   ================================================================ */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-2xl) 0;
}
 
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
 
.footer__brand {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
}
 
.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
 
.footer__links {
  display: flex;
  gap: var(--space-lg);
}
 
.footer__links a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--duration-fast) var(--ease);
}
 
.footer__links a:hover { color: var(--color-accent); }
 
 
/* ================================================================
   13. BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease),
              border-color var(--duration-fast) var(--ease),
              transform var(--duration-fast) var(--ease),
              box-shadow var(--duration-fast) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
 
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
 
/* Filled primary button */
.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}
 
.btn--primary:hover {
  background: #33DDFF;
  border-color: #33DDFF;
  box-shadow: 0 8px 32px var(--color-accent-glow);
}
 
/* Ghost / outline button */
.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
 
.btn--ghost:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}
 
/* Full-width button */
.btn--full { width: 100%; justify-content: center; }
 
.btn__icon {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease);
}
 
.btn:hover .btn__icon {
  transform: translateX(4px);
}
 
 
/* ================================================================
   14. REVEAL ANIMATIONS (Intersection Observer)
   ================================================================ */
 
/* Initial state — elements are invisible and shifted down.
   NOTE: we use a wrapper approach via CSS custom properties
   so that reveal doesn't clobber other transforms (e.g. hero
   elements that already have translateX/Y from layout).        */
.reveal {
  opacity: 0;
  translate: 0 24px;           /* modern `translate` property — independent of `transform` */
  transition: opacity var(--duration-slow) var(--ease),
              translate var(--duration-slow) var(--ease);
}
 
/* Delay variants — stagger effect for grouped elements */
.reveal--delay-1 { transition-delay: 120ms; }
.reveal--delay-2 { transition-delay: 240ms; }
.reveal--delay-3 { transition-delay: 360ms; }
 
/* Visible state — added by IntersectionObserver in main.js */
.reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}
 
/* Safety net: if JS fails or is slow, never leave content hidden */
.no-js .reveal,
.reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}
 
 
/* ================================================================
   15. RESPONSIVE BREAKPOINTS
   ================================================================ */
 
/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  .research__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
 
  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }
 
  .contact__info {
    position: static;
  }
 
  .about__grid {
    grid-template-columns: 1fr;
  }
 
  .about__label-col {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--space-lg);
  }
 
  .about__accent-line {
    width: 60px;
    height: 1px;
    margin: 0;
    background: linear-gradient(to right, var(--color-accent), transparent);
  }
}
 
/* Mobile: ≤ 768px */
@media (max-width: 768px) {
  :root {
    --section-padding: 5rem 0;
  }
 
  /* --- Nav Mobile --- */
  .nav {
    padding: var(--space-md) var(--space-lg);
  }
 
  .nav__toggle {
    display: flex;
    z-index: 1100;
  }
 
  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-base) var(--ease);
    z-index: 1050;
  }
 
  .nav__links.nav__links--open {
    opacity: 1;
    pointer-events: all;
  }
 
  .nav__link {
    font-size: var(--text-2xl);
    font-family: var(--font-display);
  }
 
  .nav__link--cta {
    font-size: var(--text-xl);
  }
 
  /* --- Hero Mobile --- */
  .hero__headline {
    max-width: none;
  }
 
  /* --- Team Mobile --- */
  .team__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
 
  /* --- About stats --- */
  .about__stats {
    flex-direction: column;
    gap: var(--space-xl);
  }
 
  /* --- Form --- */
  .form-row {
    grid-template-columns: 1fr;
  }
 
  /* --- Footer --- */
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
 
  /* --- Notes --- */
  .note-block {
    grid-template-columns: 40px 1fr;
    gap: var(--space-md);
  }
}
 
/* Small mobile: ≤ 480px */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-lg);
  }
 
  .hero__actions {
    flex-direction: column;
  }
 
  .btn { width: 100%; justify-content: center; }
}
 
 
/* ================================================================
   16. SCI-FI ANIMATION ADDITIONS
   ================================================================ */
 
/* ── Hide default cursor when magnetic cursor is active ── */
@media (pointer: fine) {
  body { cursor: none; }
  a, button, .pillar, .form-input, .btn { cursor: none; }
}
 
/* ── Magnetic Cursor ── */
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid rgba(0, 212, 255, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition: width 0.3s var(--ease),
              height 0.3s var(--ease),
              border-color 0.3s var(--ease),
              background 0.3s var(--ease);
  mix-blend-mode: screen;
}
 
#cursor-ring.cursor-ring--expanded {
  width: 64px; height: 64px;
  border-color: var(--color-accent);
  background: rgba(0, 212, 255, 0.06);
  margin-top: -12px; margin-left: -12px;
}
 
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  box-shadow: 0 0 8px var(--color-accent), 0 0 16px var(--color-accent);
}
 
/* ── Scroll Progress Bar ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #00D4FF, #7B5CFF, #00D4FF);
  background-size: 200% 100%;
  animation: progress-shimmer 2s linear infinite;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}
 
@keyframes progress-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
 
/* ── CRT Scanlines ── */
#scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.07) 3px,
    rgba(0, 0, 0, 0.07) 4px
  );
  pointer-events: none;
  z-index: 9000;
  mix-blend-mode: multiply;
  animation: scanline-drift 12s linear infinite;
}
 
@keyframes scanline-drift {
  from { background-position: 0 0; }
  to   { background-position: 0 100vh; }
}
 
/* ── Holographic Sheen (injected by JS) ── */
.holo-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  border-radius: inherit;
}
 
/* ── Boot / Loading Overlay ── */
#boot-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
 
#boot-overlay.boot--flicker {
  animation: boot-flicker 0.4s steps(2);
}
 
#boot-overlay.boot--exit {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}
 
@keyframes boot-flicker {
  0%  { opacity: 1; }
  25% { opacity: 0; }
  50% { opacity: 1; }
  75% { opacity: 0.3; }
  100%{ opacity: 1; }
}
 
.boot__inner {
  width: min(480px, 90vw);
  font-family: var(--font-display);
  color: var(--color-accent);
}
 
.boot__logo {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-2xl);
  text-shadow: 0 0 20px var(--color-accent);
  animation: flicker-glow 3s ease-in-out infinite;
}
 
@keyframes flicker-glow {
  0%, 100% { text-shadow: 0 0 20px var(--color-accent), 0 0 40px rgba(0,212,255,0.4); }
  50%       { text-shadow: 0 0 8px  var(--color-accent); }
}
 
.boot__line {
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}
 
.boot__cursor {
  display: inline-block;
  animation: blink 0.8s step-end infinite;
}
 
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
 
.boot__bar-wrap {
  width: 100%;
  height: 2px;
  background: rgba(0, 212, 255, 0.15);
  margin: var(--space-lg) 0;
  position: relative;
  overflow: hidden;
}
 
.boot__bar {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 0.08s linear;
  box-shadow: 0 0 12px var(--color-accent), 0 0 24px rgba(0,212,255,0.5);
  position: relative;
}
 
/* Trailing shimmer on bar */
.boot__bar::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 40px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6));
}
 
.boot__pct {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-top: var(--space-md);
}
 
/* ── Hero: additional ambient glow orbs ── */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 60%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.07) 0%,
    rgba(123, 92, 255, 0.04) 50%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 14s ease-in-out infinite alternate;
}
 
@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 40px) scale(1.15); }
}
 
/* ── Glitch text — extra CSS layer for clip-rect flicker ── */
.hero__headline {
  position: relative;
}
 
.hero__headline::before,
.hero__headline::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
 
/* Activated by JS .glitch class */
.hero__headline.glitch::before {
  animation: glitch-clip-1 0.2s steps(2) forwards;
  color: rgba(0, 212, 255, 0.7);
  left: 2px;
}
 
.hero__headline.glitch::after {
  animation: glitch-clip-2 0.2s steps(2) forwards;
  color: rgba(123, 92, 255, 0.7);
  left: -2px;
}
 
@keyframes glitch-clip-1 {
  0%   { clip-path: inset(40% 0 50% 0); opacity: 1; transform: translateX(-3px); }
  50%  { clip-path: inset(10% 0 80% 0); opacity: 1; }
  100% { clip-path: inset(0); opacity: 0; }
}
 
@keyframes glitch-clip-2 {
  0%   { clip-path: inset(60% 0 20% 0); opacity: 1; transform: translateX(3px); }
  50%  { clip-path: inset(80% 0 5% 0);  opacity: 1; }
  100% { clip-path: inset(0); opacity: 0; }
}
 
/* ── Stat numbers — cyan glow when animating ── */
.stat__number {
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
  transition: text-shadow 1s ease;
}
 
/* ── Section label — typing underline effect ── */
.section-label {
  position: relative;
  display: inline-block;
}
 
.section-label::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
 
.is-visible .section-label::after,
.section-label.is-visible::after {
  transform: scaleX(1);
}
 
/* ── Pillar cards — left border accent on hover ── */
.pillar {
  position: relative;
  overflow: hidden;
}
 
.pillar::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease);
  box-shadow: 0 0 12px var(--color-accent);
}
 
.pillar:hover::before { transform: scaleY(1); }
 
/* ── Team card — simple cyan border on hover only ── */
.team__card {
  position: relative;
}
 
/* ── Note blocks — left accent line animation ── */
.note-block {
  position: relative;
  padding-left: var(--space-sm);
}
 
.note-block::before {
  content: '';
  position: absolute;
  left: -1px; top: var(--space-2xl); bottom: var(--space-2xl);
  width: 1px;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.7s var(--ease);
  box-shadow: 0 0 8px var(--color-accent);
}
 
.note-block.is-visible::before { transform: scaleY(1); }
 
/* ── Form inputs — scan effect on focus ── */
.form-input {
  position: relative;
}
 
.form-input:focus {
  box-shadow:
    0 0 0 2px var(--color-accent-dim),
    0 0 20px rgba(0, 212, 255, 0.15),
    inset 0 1px 0 rgba(0, 212, 255, 0.1);
  animation: input-scan 1s ease forwards;
}
 
@keyframes input-scan {
  0%  { background-position: -100% 0; }
  100%{ background-position: 200% 0; }
}
 
/* ── Hero eyebrow — typewriter reveal ── */
.hero__eyebrow {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--color-accent);
  width: 0;
  animation: typewriter 1.2s steps(30) 0.8s forwards,
             blink-caret 0.8s step-end 2.4s 3;
}
 
@keyframes typewriter {
  from { width: 0; }
  to   { width: 100%; }
}
 
@keyframes blink-caret {
  0%, 100% { border-color: var(--color-accent); }
  50%       { border-color: transparent; }
}
 
/* After animation, remove the fake caret */
.hero__eyebrow.is-visible {
  /* keep visible but let typewriter handle opacity */
  opacity: 1;
  translate: 0 0;
}
 
/* ── Hero buttons — sci-fi ripple on click ── */
.btn--primary {
  position: relative;
  overflow: hidden;
}
 
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%),
    rgba(255,255,255,0.25) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}
 
.btn--primary:active::after { opacity: 1; }
 
/* ── About section — floating particle dots (CSS only) ── */
.about {
  position: relative;
  overflow: hidden;
}
 
.about::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.04) 0%, transparent 70%);
  pointer-events: none;
  animation: orb-drift 18s ease-in-out infinite alternate-reverse;
}
 
/* ── Research section — grid line background ── */
.research {
  position: relative;
}
 
.research::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
 
/* ── Footer — subtle top glow ── */
.footer {
  position: relative;
}
 
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  box-shadow: 0 0 20px rgba(0,212,255,0.4);
}
 