/* ===================== TOKENS ===================== */
:root {
  --blue-deep: #1e45e1;
  --blue-mid: #5465ff;
  --blue-light: #788bff;
  --black: #000000;
  --ink: #131315;
  --white: #ffffff;

  --bg: var(--black);
  --bg-elevated: var(--ink);
  --text: var(--white);
  --text-dim: rgba(255, 255, 255, 0.64);
  --text-faint: rgba(255, 255, 255, 0.38);
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.06);

  --font: 'Rethink Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-geo: 'Rethink Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

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

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

::selection { background: var(--blue-mid); color: var(--white); }

/* ===================== TEXTURE / CURSOR GLOW ===================== */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(84, 101, 255, 0.14) 0%, rgba(84, 101, 255, 0) 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
  will-change: transform;
}
.cursor-glow.active { opacity: 1; }

@media (max-width: 860px) {
  .cursor-glow { display: none; }
}

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  height: 44px;
  width: auto;
}
.brand-name {
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}
.nav-links a {
  font-family: var(--font-geo);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-dim);
  position: relative;
  padding: 9px 18px;
  border-radius: 999px;
  transition: color 0.3s ease, background 0.3s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(84, 101, 255, 0.14);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:focus { outline: none; }
.nav-toggle:focus-visible {
  outline: 2px solid var(--blue-mid);
  outline-offset: 3px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.4s var(--ease), opacity 0.25s ease;
}

/* ===================== FULLSCREEN MENU ===================== */
.menu-overlay { display: none; }

@media (max-width: 860px) {
  .menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-h) + 20px) 26px 40px;
    background: #000;
    opacity: 0;
    visibility: hidden;
    clip-path: circle(0% at calc(100% - 42px) 42px);
    transition:
      opacity 0.3s ease 0.35s,
      visibility 0s linear 0.65s,
      clip-path 0.65s var(--ease);
  }
  .menu-overlay.open {
    opacity: 1;
    visibility: visible;
    clip-path: circle(150% at calc(100% - 42px) 42px);
    transition:
      opacity 0.25s ease,
      visibility 0s linear 0s,
      clip-path 0.7s var(--ease);
  }

  .menu-list {
    display: flex;
    flex-direction: column;
  }
  .menu-list a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 20px 2px;
    font-size: clamp(34px, 11vw, 54px);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 0.5s var(--ease),
      transform 0.5s var(--ease),
      color 0.3s ease;
  }
  .menu-list a:last-child { border-bottom: none; }
  .menu-list a:active { color: var(--blue-light); }

  .menu-overlay.open .menu-list a { opacity: 1; transform: translateY(0); }
  .menu-overlay.open .menu-list a:nth-child(1) { transition-delay: 0.26s; }
  .menu-overlay.open .menu-list a:nth-child(2) { transition-delay: 0.33s; }
  .menu-overlay.open .menu-list a:nth-child(3) { transition-delay: 0.40s; }
  .menu-overlay.open .menu-list a:nth-child(4) { transition-delay: 0.47s; }

  .menu-index {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--blue-light);
  }

  .menu-foot {
    margin-top: auto;
    padding-top: 34px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  .menu-overlay.open .menu-foot {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.56s;
  }
  .menu-foot p {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 300;
    color: var(--text-faint);
  }
  .menu-bar {
    display: block;
    position: relative;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
  }
  .menu-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 38%;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--blue-mid) 40%, var(--blue-light) 65%, transparent);
    box-shadow: 0 0 16px 2px rgba(84, 101, 255, 0.7);
    animation: barSweep 3.4s cubic-bezier(0.55, 0, 0.45, 1) infinite;
  }
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-geo);
  font-size: 14.5px;
  font-weight: 300;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s ease, border-color 0.35s ease;
  white-space: nowrap;
}
.btn-lg { padding: 17px 36px; font-size: 16px; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  color: var(--white);
  box-shadow: 0 0 0 0 rgba(84, 101, 255, 0.5), 0 8px 30px -8px rgba(30, 69, 225, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px 4px rgba(84, 101, 255, 0.45), 0 12px 34px -8px rgba(30, 69, 225, 0.7);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-outline:hover {
  border-color: var(--blue-light);
  background: rgba(84, 101, 255, 0.08);
  transform: translateY(-2px);
}


/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.orb-1 {
  width: 560px; height: 560px;
  top: -180px; left: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(30, 69, 225, 0.55), rgba(30, 69, 225, 0) 70%);
  animation: float1 16s ease-in-out infinite;
}
.orb-2 {
  width: 460px; height: 460px;
  bottom: -160px; right: -100px;
  background: radial-gradient(circle at 60% 60%, rgba(84, 101, 255, 0.45), rgba(84, 101, 255, 0) 70%);
  animation: float2 18s ease-in-out infinite;
}
.orb-3 {
  width: 340px; height: 340px;
  top: 40%; left: 50%;
  background: radial-gradient(circle, rgba(120, 139, 255, 0.28), rgba(120, 139, 255, 0) 70%);
  animation: float3 20s ease-in-out infinite;
}
.hero-glow {
  position: absolute;
  left: 50%;
  bottom: -30%;
  width: 140%;
  height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(30, 69, 225, 0.5), transparent 65%);
  filter: blur(20px);
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 50px) scale(1.08); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.1); }
}
@keyframes float3 {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, -40px) scale(0.92); }
}

.grid-plane {
  position: absolute;
  inset: -10% -10% -10% -10%;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 0%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-bar {
  position: relative;
  width: 210px;
  height: 3px;
  margin: 0 auto 40px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}
.hero-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 42%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--blue-mid) 35%, var(--blue-light) 60%, transparent);
  box-shadow: 0 0 20px 3px rgba(84, 101, 255, 0.75);
  animation: barSweep 3.4s cubic-bezier(0.55, 0, 0.45, 1) infinite;
}
@keyframes barSweep {
  0%   { transform: translateX(-130%); }
  100% { transform: translateX(330%); }
}

.hero-title {
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gradient-text {
  background: linear-gradient(100deg, var(--blue-light), var(--blue-mid) 45%, var(--blue-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  to { background-position: 200% center; }
}

.hero-sub {
  margin: 30px auto 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dim);
  font-weight: 400;
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-orb {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 84px;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.95), rgba(120, 139, 255, 0.55) 35%, rgba(30, 69, 225, 0.95) 78%);
  box-shadow:
    0 0 120px 18px rgba(84, 101, 255, 0.45),
    inset -22px -22px 44px rgba(0, 0, 0, 0.35),
    inset 16px 16px 34px rgba(255, 255, 255, 0.35);
  animation: bob 8s ease-in-out infinite;
}
.hero-orb img {
  width: 100%;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(3deg); }
}
@media (max-width: 900px) { .hero-orb { display: none; } }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-family: var(--font-geo);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.scroll-dot {
  position: absolute;
  top: -10px;
  left: -1.5px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 8px 2px var(--blue-mid);
  animation: scrollDown 2.2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -10px; opacity: 0; }
  30% { opacity: 1; }
  100% { top: 40px; opacity: 0; }
}

/* ===================== MARQUEE ===================== */
.marquee {
  position: relative;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg-elevated);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: 28px;
  padding-right: 28px;
}
.marquee-track span {
  font-family: var(--font-geo);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  white-space: nowrap;
}
.marquee-track span:nth-child(4n) { color: var(--blue-light); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================== SECTIONS COMMON ===================== */
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 140px 32px;
  position: relative;
  z-index: 2;
}

.tag {
  display: inline-block;
  font-family: var(--font-geo);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 720px;
}

.section-text {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 620px;
}

/* ===================== ABOUT ===================== */
.about { position: relative; }

.stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 720px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 0;
  border-top: 1px solid var(--border-soft);
}
.stat-num, .stat-suffix {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  background: linear-gradient(100deg, var(--blue-light), var(--blue-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.stat-label {
  margin-top: 10px;
  font-family: var(--font-geo);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-faint);
}

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; gap: 12px; }
}

/* ===================== FEATURES ===================== */
.features {
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}
.features::before {
  content: '';
  position: absolute;
  top: -12%;
  right: -8%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 69, 225, 0.18), transparent 65%);
  pointer-events: none;
}

.section-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}
.section-head-note {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-faint);
  border-left: 1px solid var(--border);
  padding-left: 22px;
}

.cards {
  margin-top: 62px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  padding: 38px 36px 42px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.042), rgba(255,255,255,0.012));
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.5s var(--ease),
    border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(84, 101, 255, 0.35);
  box-shadow: 0 22px 52px -22px rgba(30, 69, 225, 0.6);
}

/* spotlight that tracks the cursor */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
    rgba(84, 101, 255, 0.17), transparent 45%);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.card:hover::before { opacity: 1; }

/* gradient hairline border on hover */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(120,139,255,0.9), rgba(84,101,255,0.14) 45%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }

.card-num {
  position: absolute;
  top: 30px;
  right: 32px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.4s ease;
}
.card:hover .card-num { color: var(--blue-light); }

.card-icon {
  width: 54px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(84,101,255,0.28), rgba(30,69,225,0.07));
  border: 1px solid rgba(84,101,255,0.3);
  color: var(--blue-light);
  margin-bottom: 26px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover .card-icon {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 0 28px -3px rgba(84, 101, 255, 0.65);
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.card p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 38ch;
}

@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .section-head-note { padding-left: 18px; font-size: 14.5px; }
}
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
}

/* ===================== TEAM ===================== */
.team { position: relative; }

.team-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.team-card {
  position: relative;
  padding: 36px 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(84, 101, 255, 0.4);
}

.team-card h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.team-role {
  font-family: var(--font-geo);
  font-size: 12.5px;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 22px;
}

.team-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.team-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-geo);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-dim);
  width: fit-content;
  transition: color 0.25s ease, transform 0.25s ease;
}
.team-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.team-link:hover {
  color: var(--blue-light);
  transform: translateX(3px);
}

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

/* ===================== VISION ===================== */
.vision {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.vision-bg {
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(30, 69, 225, 0.25), transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(84, 101, 255, 0.18), transparent 60%);
  z-index: 0;
}
.vision-inner { display: flex; flex-direction: column; align-items: flex-start; }
.vision-logo {
  margin-top: 56px;
  width: 170px;
  opacity: 0.95;
  filter: drop-shadow(0 0 40px rgba(84,101,255,0.45));
}

/* ===================== FOOTER ===================== */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 48px 32px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer p {
  font-family: var(--font-geo);
  font-size: 13px;
  color: var(--text-faint);
}

/* ===================== REVEAL ANIMATIONS ===================== */
.reveal, .reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.12s);
}
.reveal.in-view, .reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.card.reveal-up { transition-delay: 0s; }
.cards .card:nth-child(1) { transition-delay: 0.05s; }
.cards .card:nth-child(2) { transition-delay: 0.15s; }
.cards .card:nth-child(3) { transition-delay: 0.25s; }
.cards .card:nth-child(4) { transition-delay: 0.35s; }

/* ===================== RESPONSIVE NAV ===================== */
@media (max-width: 860px) {
  .brand-mark { height: 34px; }
  .brand-name { font-size: 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  /* header sits above the black overlay so the logo + X stay visible */
  .brand, .nav-toggle { position: relative; z-index: 2; }
  .nav.menu-open {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===================== MOBILE SPACING ===================== */
@media (max-width: 760px) {
  .hero { padding: 116px 22px 150px; }
  .hero-bar { width: 150px; margin-bottom: 30px; }
  .hero-sub { font-size: 16px; margin-top: 22px; }
  .hero-actions { margin-top: 34px; gap: 12px; }
  .hero-actions .btn { padding: 12px 22px; font-size: 14px; }
  .scroll-cue { bottom: 30px; }

  .section-inner { padding: 88px 22px; }
  .section-text { margin-top: 20px; font-size: 16px; }
  .cards, .team-grid { margin-top: 40px; gap: 14px; }
  .card, .team-card { padding: 28px 24px; }
  .stats { margin-top: 44px; }
  .vision-logo { margin-top: 40px; width: 130px; }

  .marquee { padding: 18px 0; }
  .footer { padding: 36px 22px; }
  .footer-inner { justify-content: center; text-align: center; }
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
