/* ═══════════════════════════════════════════════════════
   SevenTrain Ventures — Dark Institutional / Tech Luxury
   Aesthetic: Bloomberg Terminal meets a16z
   ═══════════════════════════════════════════════════════ */

/* ── @property Declarations (Houdini) ───────────────── */
@property --mesh-hue-1 {
  syntax: '<angle>';
  initial-value: 230deg;
  inherits: false;
}

@property --mesh-hue-2 {
  syntax: '<angle>';
  initial-value: 260deg;
  inherits: false;
}

@property --mesh-hue-3 {
  syntax: '<angle>';
  initial-value: 210deg;
  inherits: false;
}

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

:root {
  /* Palette */
  --bg-dark: #0a0e1a;
  --bg-darker: #060911;
  --bg-card: #0f1423;
  --bg-card-hover: #141a2e;
  --bg-accent: #1a2240;
  --surface: #161c30;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);

  --text-primary: #e8eaf0;
  --text-secondary: rgba(232,234,240,0.7);
  --text-muted: rgba(232,234,240,0.4);
  --text-accent: #6b8aff;
  --text-accent-bright: #8ba4ff;

  --accent: #4a6cf7;
  --accent-glow: rgba(74,108,247,0.15);
  --accent-warm: #c9a84c;

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Sizing */
  --nav-height: 72px;
  --container: 1280px;
  --container-wide: 1440px;
  --gap: clamp(1.5rem, 4vw, 3rem);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration: 0.6s;
}

html {
  font-size: 16px;
  /* scroll-behavior handled by Lenis */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-darker);
}

html::-webkit-scrollbar {
  width: 5px;
}

html::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

html::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--text-accent-bright);
}

/* ── Text Selection ─────────────────────────────────── */
::selection {
  background: var(--accent);
  color: #fff;
  text-shadow: none;
}

::-moz-selection {
  background: var(--accent);
  color: #fff;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: default;
}

/* ── Page Overlay (Load Wipe) ───────────────────────── */
.page-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-darker);
  z-index: 9999;
  transform-origin: top;
  animation: overlayWipe 0.8s cubic-bezier(0.83, 0, 0.17, 1) 0.1s forwards;
  pointer-events: none;
}

@keyframes overlayWipe {
  0%   { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(100% 0 0 0); }
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

button, [role="button"] {
  cursor: pointer;
}

ul, ol { list-style: none; }

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

/* ── Cursor Glow ────────────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* ── Navigation ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10,14,26,0.8);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(6,9,17,0.85);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(74,108,247,0.12);
  box-shadow:
    0 1px 0 rgba(74,108,247,0.1),
    0 4px 24px rgba(0,0,0,0.3);
}

.nav__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gap);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.nav__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: white;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  border-radius: 6px;
}

.nav__logo-text {
  color: var(--text-primary);
}

.nav__logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.footer__logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.nav__logo-ampersand {
  color: var(--text-accent);
  font-family: var(--font-display);
  font-style: italic;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.825rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
  line-height: 36px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

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

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

.nav__link--cta {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border-hover);
  border-radius: 4px;
  color: var(--text-primary);
  transition: all 0.3s;
}

.nav__link--cta::after { display: none; }

.nav__link--cta:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s;
}

.nav__burger.active span:first-child {
  transform: rotate(45deg) translate(2.5px, 2.5px);
}

.nav__burger.active span:last-child {
  transform: rotate(-45deg) translate(2.5px, -2.5px);
}

/* ── Mobile Menu ────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-darker);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--text-primary);
  transition: color 0.3s;
}

.mobile-menu__link:hover {
  color: var(--text-accent);
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn svg {
  transition: transform 0.3s var(--ease-out);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* Shine sweep on all buttons */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.08) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.5s var(--ease-out);
  pointer-events: none;
}

.btn:hover::after {
  left: 160%;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: #5a7aff;
  border-color: #5a7aff;
  box-shadow: 0 0 30px rgba(74,108,247,0.35), 0 0 60px rgba(74,108,247,0.15);
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 25px rgba(74,108,247,0.35), 0 0 50px rgba(74,108,247,0.12); }
  50%       { box-shadow: 0 0 40px rgba(74,108,247,0.55), 0 0 80px rgba(74,108,247,0.22); }
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: transparent;
  background-image: linear-gradient(var(--bg-dark), var(--bg-dark)),
                    linear-gradient(135deg, rgba(74,108,247,0.5), rgba(139,164,255,0.5));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 1px solid transparent;
}

.btn--ghost:hover {
  color: var(--text-accent);
  background-image: linear-gradient(var(--bg-card), var(--bg-card)),
                    linear-gradient(135deg, var(--accent), var(--text-accent-bright));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 20px rgba(74,108,247,0.15);
}

.btn--light {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}

.btn--light:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.btn--small {
  padding: 0.6rem 1.25rem;
  font-size: 0.75rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ── Section utilities ──────────────────────────────── */
.section-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-accent);
  letter-spacing: 0.15em;
  margin-right: 1rem;
  padding: 0.25rem 0.6rem;
  background: rgba(74,108,247,0.08);
  border: 1px solid rgba(74,108,247,0.15);
  border-radius: 4px;
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 4rem) var(--gap) 4rem;
  overflow: hidden;
  background: #050508;
}

/* Full-bleed background photo */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: 0;
}

/* Top gradient fade — black → transparent */
.hero__gradient--top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.7) 35%, rgba(0,0,0,0.3) 60%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Bottom gradient fade — transparent → black */
.hero__gradient--bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.7) 35%, rgba(0,0,0,0.3) 60%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Noise texture for services and contact sections */
.services::after,
.contact::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  max-width: 860px;
  z-index: 2;
}

/* Glassmorphism panel — pure background blur, minimal tint */
.hero__glass {
  backdrop-filter: blur(40px) saturate(1.1);
  -webkit-backdrop-filter: blur(40px) saturate(1.1);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3.5rem);
}

.hero__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero__label-line {
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero__label-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-accent);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 2rem;
}

.hero__title-line {
  display: block;
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  /* Initial hidden state — GSAP overrides with clip-path reveal */
  opacity: 0;
  will-change: clip-path, transform;
}

.hero__title-line em {
  font-style: italic;
  background: linear-gradient(135deg, var(--text-accent-bright) 0%, #a8bfff 50%, var(--text-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(107,138,255,0.35));
}

.hero__title-line--accent {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
}

.hero__sub {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero__sub--bold {
  color: #fff;
  font-weight: 500;
  margin-bottom: 2.5rem;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

/* (hero trails + hero image removed — replaced by hero__bg photo) */

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  right: var(--gap);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
}

.hero__scroll-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Quantum Banner ─────────────────────────────────── */
.quantum-banner {
  position: relative;
  padding: 8rem var(--gap);
  min-height: 420px;
  background: #000;
  overflow: hidden;
  text-align: center;
}

/* Animated gradient top border */
.quantum-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 30%,
    var(--text-accent-bright) 50%,
    var(--accent-warm) 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: bannerBorderFlow 4s linear infinite;
  z-index: 2;
}

/* Animated gradient bottom border */
.quantum-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-warm) 30%,
    var(--accent) 50%,
    var(--text-accent-bright) 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: bannerBorderFlow 4s linear infinite reverse;
  z-index: 2;
}

@keyframes bannerBorderFlow {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.quantum-banner__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.quantum-banner__inner {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  margin: 0 auto;
}

.quantum-banner__headline {
  margin-bottom: 0.75rem;
}

.quantum-banner__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.quantum-banner .btn {
  margin-top: 1.5rem;
  border-color: var(--accent-warm);
  color: var(--accent-warm);
  text-shadow: none;
}

.quantum-banner .btn:hover {
  background: rgba(201,168,76,0.1);
}

/* ── OpenSiva Banner ───────────────────────────────── */
.opensiva-banner {
  position: relative;
  padding: 5rem var(--gap);
  min-height: 320px;
  background: #000;
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opensiva-banner__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.opensiva-banner__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.opensiva-banner__logo {
  height: clamp(80px, 12vw, 140px);
  width: auto;
  object-fit: contain;
}

.opensiva-banner__sub {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.opensiva-banner .btn {
  margin-top: 0.5rem;
  border-color: rgba(255,255,255,0.2);
  color: var(--text-primary);
}

.opensiva-banner .btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.35);
}

/* ── Philosophy ─────────────────────────────────────── */
.philosophy {
  padding: 8rem var(--gap);
  background: var(--bg-dark);
}

.philosophy__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.philosophy__label {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.philosophy__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.philosophy__title em {
  font-style: italic;
  color: var(--text-accent-bright);
}

.philosophy__text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.philosophy__ctas {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ── Services ───────────────────────────────────────── */
.services {
  padding: 6rem var(--gap) 8rem;
  background: var(--bg-darker);
  position: relative;
}

.services__inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.services__header {
  margin-bottom: 3.5rem;
}

.services__label {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

/* ── Glassmorphism blobs behind service cards ──────── */
.services__grid {
  position: relative;
}

.services__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* Blob sizes/positions/colors set inline in HTML for variety */

.service-card {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 3rem;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
  z-index: 1;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Radial highlight at top of card */
.service-card::after {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(74,108,247,0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}

/* Animated top accent line */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--text-accent-bright), var(--accent), transparent);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.4s, left 0.0s;
  animation: none;
}

.service-card:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.7);
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 20px 60px rgba(0,0,0,0.4),
    0 0 0 1px rgba(74,108,247,0.1);
}

.service-card:hover::before {
  opacity: 1;
  left: 0;
  animation: accentLineSlide 1.5s ease-in-out infinite;
}

@keyframes accentLineSlide {
  0%   { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

.service-card:hover::after {
  opacity: 1;
}

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

.service-card__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.service-card__desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.service-card__divider {
  width: 40px;
  height: 1px;
  background: var(--border-hover);
  margin: 1.5rem 0;
}

.service-card__subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-accent);
  margin-bottom: 1rem;
}

.service-card__list {
  margin-bottom: 2rem;
}

.service-card__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* ── Marquee ────────────────────────────────────────── */
.marquee-section {
  padding: 2rem 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  animation: marqueeScroll 30s linear infinite;
  will-change: transform;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.marquee__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Contact ────────────────────────────────────────── */
.contact {
  padding: 8rem var(--gap);
  background: var(--bg-dark);
  position: relative;
}

.contact__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  position: relative;
  z-index: 1;
  align-items: start;
}

.contact__label {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

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

.contact__email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-accent);
  margin-bottom: 2rem;
  transition: color 0.3s;
}

.contact__email:hover {
  color: var(--text-accent-bright);
}

.contact__social {
  display: flex;
  gap: 1rem;
}

.contact__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-hover);
  border-radius: 6px;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.contact__social-link:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ── Form ───────────────────────────────────────────── */
.contact__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.form-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--text-accent-bright));
  border-radius: 0 0 4px 4px;
  transition: width 0.4s var(--ease-out);
  pointer-events: none;
}

.form-group:focus-within::after {
  width: 100%;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-required {
  color: var(--text-accent);
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.3s, box-shadow 0.4s var(--ease-out);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(74,108,247,0.12),
    0 0 16px rgba(74,108,247,0.08),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

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

/* ── Footer ─────────────────────────────────────────── */
.footer {
  padding: 1.5rem var(--gap);
  border-top: 1px solid var(--border);
  background: var(--bg-darker);
}

.footer__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.footer__brand {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Team Page ──────────────────────────────────────── */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 6rem) var(--gap) 4rem;
  text-align: center;
  overflow: hidden;
}

.page-hero__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 1.5rem;
  display: block;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.page-hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 70%);
}

/* Story section */
.story {
  padding: 4rem var(--gap) 6rem;
  max-width: 800px;
  margin: 0 auto;
}

.story__text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  position: relative;
}

.story__text::before {
  content: '"';
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: -2rem;
  left: -1rem;
  font-family: var(--font-display);
  line-height: 1;
}

/* Team grid */
.team-section {
  padding: 0 var(--gap) 8rem;
}

.team-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Featured founder card — full width, centered */
.team-card--featured {
  grid-column: 1 / -1;
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

.team-card--featured .team-card__photo {
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
}

.team-card:hover {
  border-color: rgba(74,108,247,0.4);
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    0 0 0 1px rgba(74,108,247,0.15),
    0 0 30px rgba(74,108,247,0.08);
}

.team-card__photo-wrap {
  position: relative;
  overflow: hidden;
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.5s, transform 0.6s var(--ease-out);
  display: block;
}

.team-card:hover .team-card__photo {
  filter: grayscale(0%);
  transform: scale(1.04);
}

/* Subtle scan-line effect on photo */
.team-card__photo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.04) 3px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* Gradient overlay that shifts on hover */
.team-card__photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(10,14,26,0.7) 100%
  );
  opacity: 0.6;
  transition: opacity 0.4s var(--ease-out), background 0.4s;
  z-index: 1;
}

.team-card:hover .team-card__photo-wrap::after {
  opacity: 0.4;
  background: linear-gradient(
    180deg,
    rgba(74,108,247,0.06) 0%,
    transparent 40%,
    rgba(10,14,26,0.6) 100%
  );
}

.team-card__info {
  padding: 1.5rem;
}

.team-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.team-card__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 0.75rem;
}

.team-card__bio {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Thesis Page ────────────────────────────────────── */
.thesis-content {
  padding: 4rem var(--gap) 6rem;
  max-width: 800px;
  margin: 0 auto;
}

.thesis-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.focus-grid {
  padding: 0 var(--gap) 8rem;
}

.focus-grid__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.focus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

/* Conic gradient border trick on hover */
.focus-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 9px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--accent) 60deg,
    var(--text-accent-bright) 120deg,
    transparent 180deg,
    transparent 360deg
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  z-index: 0;
  animation: none;
}

.focus-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  background: var(--bg-card-hover);
  z-index: 1;
}

.focus-card > * {
  position: relative;
  z-index: 2;
}

.focus-card:hover {
  border-color: transparent;
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(74,108,247,0.2), 0 4px 16px rgba(0,0,0,0.4);
}

.focus-card:hover::before {
  opacity: 1;
  animation: rotateConic 3s linear infinite;
}

@keyframes rotateConic {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.focus-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 12px;
  color: var(--text-accent);
  transition: all 0.4s var(--ease-out);
  position: relative;
}

/* Pulse ring on icon hover */
.focus-card__icon::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  border: 1px solid var(--accent);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s var(--ease-out);
}

.focus-card:hover .focus-card__icon {
  background: rgba(74,108,247,0.25);
  box-shadow: 0 0 20px rgba(74,108,247,0.3);
}

.focus-card:hover .focus-card__icon::before {
  opacity: 0.6;
  transform: scale(1);
  animation: iconPulse 1.5s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.1); }
}

.focus-card__name {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Quantum Page ───────────────────────────────────── */
.quantum-hero {
  position: relative;
  padding: calc(var(--nav-height) + 8rem) var(--gap) 6rem;
  min-height: 100vh;
  background: #000;
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantum-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.aec-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% center;
  pointer-events: none;
  image-rendering: high-quality;
  z-index: 1;
}

/* Dark haze layer — sits BETWEEN canvas (z:1) and text (z:3) */
.quantum-hero__haze {
  position: absolute;
  top: 5%;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.5) 35%, rgba(0,0,0,0.2) 60%, transparent 80%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 42%, black 0%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 42%, black 0%, black 30%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}

.quantum-hero__text-wrap {
  position: relative;
  z-index: 3;
}

/* "Quantum Fund" label in gold */
.quantum-hero__text-wrap .page-hero__label {
  color: var(--accent-warm);
}

/* Innovation — glowing blue gradient text with visible light emission */
.quantum-hero__glow-word {
  font-style: italic;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--text-accent-bright) 0%, #a8bfff 50%, var(--text-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glow layer behind the word — uses text-shadow for actual visible light */
.quantum-hero__glow-word::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--text-accent-bright);
  text-shadow:
    0 0 20px rgba(107,138,255,0.8),
    0 0 40px rgba(107,138,255,0.5),
    0 0 80px rgba(107,138,255,0.3),
    0 0 120px rgba(107,138,255,0.15);
  z-index: -1;
  -webkit-text-fill-color: transparent;
}

/* ── Reusable glow text classes ─────────────────────── */
.glow-blue {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--text-accent-bright) 0%, #a8bfff 50%, var(--text-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-blue::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--text-accent-bright);
  text-shadow:
    0 0 15px rgba(107,138,255,0.7),
    0 0 35px rgba(107,138,255,0.45),
    0 0 70px rgba(107,138,255,0.25),
    0 0 110px rgba(107,138,255,0.1);
  z-index: -1;
  -webkit-text-fill-color: transparent;
}

.glow-gold {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #e8d48c 0%, #c9a84c 50%, #b8943e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-gold::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--accent-warm);
  text-shadow:
    0 0 15px rgba(201,168,76,0.7),
    0 0 35px rgba(201,168,76,0.45),
    0 0 70px rgba(201,168,76,0.25),
    0 0 110px rgba(201,168,76,0.1);
  z-index: -1;
  -webkit-text-fill-color: transparent;
}

.quantum-section {
  padding: 6rem var(--gap);
  position: relative;
}

/* Subtle ambient radial glow */
.quantum-section::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(74,108,247,0.04), transparent 70%);
  pointer-events: none;
}

.quantum-section--alt {
  background: var(--bg-darker);
}

.quantum-section--alt::after {
  right: auto;
  left: -10%;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.03), transparent 70%);
}

.quantum-section__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.quantum-section__inner--reverse {
  direction: rtl;
}

.quantum-section__inner--reverse > * {
  direction: ltr;
}

.quantum-section__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 1.5rem;
}

.quantum-section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.quantum-section__text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.quantum-section__visual {
  aspect-ratio: 4/3;
  background:
    radial-gradient(1px 1px at 25% 35%, rgba(107,138,255,0.25), transparent),
    radial-gradient(1px 1px at 55% 15%, rgba(107,138,255,0.15), transparent),
    radial-gradient(1px 1px at 75% 65%, rgba(201,168,76,0.15), transparent),
    radial-gradient(1px 1px at 45% 85%, rgba(107,138,255,0.2), transparent),
    var(--bg-card);
  background-size: 150px 150px, 120px 120px, 180px 180px, 100px 100px, 100% 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.quantum-section__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(74,108,247,0.08), transparent 60%);
  animation: visualPulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.quantum-section__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
}

@keyframes visualPulse {
  0%   { opacity: 0.4; }
  100% { opacity: 1; }
}

/* ── Investors Page ─────────────────────────────────── */
.investors-content {
  padding: 4rem var(--gap) 6rem;
  max-width: 800px;
  margin: 0 auto;
}

.investors-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.investors-content ul {
  margin-bottom: 2rem;
}

.investors-content li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.investors-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.logos-section {
  padding: 0 var(--gap) 8rem;
}

.logos-section__inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}

.logos-section__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.logo-item {
  color: var(--text-muted);
  transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item svg {
  height: 40px;
  width: auto;
}

.logo-item:hover {
  color: var(--text-primary);
  filter: drop-shadow(0 0 20px rgba(107,138,255,0.5)) drop-shadow(0 0 40px rgba(107,138,255,0.2));
  transform: translateY(-2px);
}

/* ── Newsletter Section ─────────────────────────────── */
.newsletter {
  padding: 5rem var(--gap);
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.newsletter__title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.newsletter__sub {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ── Research Section ───────────────────────────────── */
.research-section {
  padding: 6rem var(--gap);
  position: relative;
  background: var(--bg-dark);
}

.research-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(74,108,247,0.2) 30%,
    rgba(201,168,76,0.15) 50%,
    rgba(74,108,247,0.2) 70%,
    transparent 100%
  );
}

.research-section::after {
  content: '';
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 40%;
  background: radial-gradient(ellipse at center, rgba(74,108,247,0.03), transparent 70%);
  pointer-events: none;
}

.research-section__inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}

.research-section__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.research-section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 1rem;
}

.research-section__desc {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .philosophy__inner,
  .contact__inner,
  .quantum-section__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .quantum-section__inner--reverse {
    direction: ltr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .focus-grid__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero__title-line {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero__title-line--accent {
    font-size: clamp(1.8rem, 7vw, 3rem);
  }

  .hero__scroll-indicator { display: none; }

  .contact__form-row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .focus-grid__inner {
    grid-template-columns: 1fr;
  }

  .logos-grid {
    gap: 2rem;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

/* ── Split-text animation helpers ───────────────────── */
.st-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.st-word-inner {
  display: inline-block;
  will-change: transform, opacity;
}

.st-char {
  display: inline-block;
  will-change: transform, opacity;
}

/* Prevent layout shift during clip-path animations */
.hero__title-line,
.st-word,
.st-char {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Top-line gradient overlay on service cards */
.st-card-topline {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #4a6cf7, #8ba4ff);
  border-radius: 2px 2px 0 0;
  pointer-events: none;
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════
   MODERN ENHANCEMENTS — Phase 2
   ═══════════════════════════════════════════════════════ */

/* ── Section Dividers ───────────────────────────────── */
/* Gradient accent line between major sections */
.philosophy::before,
.services::before,
.contact::before,
.team-section::before,
.focus-grid::before,
.logos-section::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(74,108,247,0.25) 30%,
    rgba(139,164,255,0.4) 50%,
    rgba(74,108,247,0.25) 70%,
    transparent 100%
  );
  margin-bottom: 3rem;
  pointer-events: none;
}

/* ── Submit Button Shimmer ──────────────────────────── */
.btn--full.btn--primary {
  overflow: hidden;
}

.btn--full.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.15) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: shimmerLoop 3s ease-in-out infinite;
}

@keyframes shimmerLoop {
  0%   { left: -150%; }
  50%  { left: 160%; }
  100% { left: 160%; }
}

/* ── Quantum Banner Inner z-index fix ───────────────── */
/* (positioned and z-indexed in the base .quantum-banner__inner rule above) */

/* ── Team card photo direct enhancements ────────────── */
/* Photos are plain divs — apply scan-line via a layered background */
.team-card__photo {
  position: relative;
}

/* Scan-line + gradient overlay applied as CSS background layers */
.team-card__photo[style] {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(0,0,0,0.04) 3px,
      rgba(0,0,0,0.04) 4px
    ),
    linear-gradient(180deg, transparent 40%, rgba(10,14,26,0.55) 100%),
    linear-gradient(135deg, var(--bg-card), var(--surface)) !important;
  transition: background-image 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}

.team-card:hover .team-card__photo[style] {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(0,0,0,0.04) 3px,
      rgba(0,0,0,0.04) 4px
    ),
    linear-gradient(180deg, rgba(74,108,247,0.06) 0%, transparent 40%, rgba(10,14,26,0.45) 100%),
    linear-gradient(135deg, var(--bg-card), var(--surface)) !important;
}

/* ── Nav scrolled state triggered by JS ─────────────── */
/* (already defined above as .nav.scrolled) */

/* ── Investor page section accent ───────────────────── */
.investors-content strong,
.thesis-content strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ── Philosophy em accent ───────────────────────────── */
.philosophy__title em {
  background: linear-gradient(135deg, var(--text-accent-bright) 0%, #a8bfff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(107,138,255,0.25));
}

/* ── Quantum section visual glow ────────────────────── */
.quantum-section__visual {
  transition: box-shadow 0.5s var(--ease-out), border-color 0.5s;
}

.quantum-section__visual:hover {
  border-color: rgba(74,108,247,0.3);
  box-shadow: 0 0 40px rgba(74,108,247,0.12), 0 20px 60px rgba(0,0,0,0.4);
}

/* ── Nav CTA cursor ─────────────────────────────────── */
.nav__link--cta,
.nav__link {
  cursor: pointer;
}

/* ── Interactive cursor for focus cards ─────────────── */
.focus-card {
  cursor: default;
}

/* ── Page hero subtle mesh ──────────────────────────── */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(74,108,247,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── Ensure page-hero content is above mesh ─────────── */
.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero__grid-bg {
  z-index: 0;
}

/* ── Scrollbar on firefox for body ─────────────────── */
body {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-darker);
}

/* ── Scroll Progress Bar ──────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--text-accent-bright), var(--accent-warm));
  z-index: 9998;
  transition: none;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(74,108,247,0.4);
}

/* ── Enhanced Footer ──────────────────────────────── */
.footer {
  padding: 3rem var(--gap) 2rem;
}

.footer__inner {
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer__nav-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer__nav-link:hover {
  color: var(--text-accent);
}

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

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-hover);
  border-radius: 5px;
  color: var(--text-muted);
  transition: all 0.3s;
}

.footer__social-link:hover {
  color: var(--text-accent);
  border-color: var(--accent);
  background: var(--accent-glow);
}

.footer__divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

/* ── No-JS Fallback ───────────────────────────────── */
.no-js .hero__label,
.no-js .hero__title-line,
.no-js .hero__sub,
.no-js .hero__ctas,
.no-js .hero__scroll-indicator,
.no-js .philosophy__left,
.no-js .philosophy__right,
.no-js .philosophy__text,
.no-js .philosophy__ctas,
.no-js .service-card,
.no-js .service-card__list li,
.no-js .contact__label,
.no-js .contact__title .st-word-inner,
.no-js .contact__note,
.no-js .contact__email,
.no-js .contact__social-link,
.no-js .form-group,
.no-js .contact__form .btn--full,
.no-js .section-number,
.no-js .services__header,
.no-js .footer,
.no-js .quantum-banner__title .st-char,
.no-js .quantum-banner__sub,
.no-js .quantum-banner .btn {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
  visibility: visible !important;
}

/* ── Hero text readability overlay ────────────────── */
.hero__content::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: -3rem;
  right: -3rem;
  bottom: -2rem;
  background: radial-gradient(ellipse 120% 100% at 30% 50%, rgba(10,14,26,0.55) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  border-radius: 16px;
}

/* ── Team Member Modal ──────────────────────────────── */
.team-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.team-modal.is-open {
  pointer-events: all;
  visibility: visible;
}

.team-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 17, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.team-modal__card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 10px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(74, 108, 247, 0.12),
    0 0 40px rgba(74, 108, 247, 0.06);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-card);
}

/* Blurred photo background inside modal */
.team-modal__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  filter: blur(30px) brightness(0.2);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
  transform: scale(1.2);
}

/* Floating blurry accents */
.team-modal__bg::before,
.team-modal__bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  animation: modalBlobDrift 8s ease-in-out infinite alternate;
}

.team-modal__bg::before {
  width: 200px;
  height: 200px;
  top: 10%;
  right: -5%;
  background: radial-gradient(circle, rgba(74,108,247,0.25), transparent 70%);
}

.team-modal__bg::after {
  width: 160px;
  height: 160px;
  bottom: 15%;
  left: -5%;
  background: radial-gradient(circle, rgba(139,164,255,0.2), transparent 70%);
  animation-delay: -4s;
  animation-direction: alternate-reverse;
}

@keyframes modalBlobDrift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(20px, -30px); }
}


.team-modal__card::-webkit-scrollbar {
  width: 4px;
}

.team-modal__card::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

.team-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.team-modal__close:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--surface);
}

.team-modal__body {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0;
}

.team-modal__photo-col {
  flex: 0 0 220px;
  min-height: 280px;
}

.team-modal__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 10px 0 0 10px;
  filter: grayscale(20%);
}

.team-modal__info-col {
  flex: 1;
  padding: 2rem 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.team-modal__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 0.6rem;
}

.team-modal__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.team-modal__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-accent);
}

.team-modal__divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 1.25rem 0;
}

.team-modal__bio {
  font-size: 0.925rem;
  line-height: 1.75;
  color: var(--text-secondary);
  flex: 1;
}

/* Card read-more indicator */
.team-card__read-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-accent);
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.team-card:hover .team-card__read-more {
  opacity: 1;
  color: var(--text-accent-bright);
}

/* Mobile: stack vertically, scrollable */
@media (max-width: 768px) {
  .team-modal__card {
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .team-modal__body {
    flex-direction: column;
  }

  .team-modal__photo-col {
    flex: none;
    min-height: 220px;
    max-height: 280px;
  }

  .team-modal__photo {
    border-radius: 10px 10px 0 0;
    max-height: 280px;
  }

  .team-modal__info-col {
    padding: 1.5rem;
    padding-bottom: 3rem;
  }

  .team-modal__name {
    font-size: 1.4rem;
  }

  .team-modal__bio {
    padding-bottom: 2rem;
  }
}
