.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* anchor content to the bottom */
  align-items: center;          /* center horizontally */
  text-align: center;
}

/* 1. Slate base + one drifting blue aurora layer */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #222B3A, #2C3749 60%, #26303F);
}
.hero-aurora {
  position: absolute;
  inset: -30% -10%;
  will-change: transform;
  filter: blur(34px);
  background:
    radial-gradient(40% 60% at 20% 40%, rgba(70,120,210,.40), transparent 60%),
    radial-gradient(45% 55% at 70% 55%, rgba(143,180,240,.28), transparent 60%),
    radial-gradient(35% 50% at 50% 70%, rgba(60,100,180,.34), transparent 60%);
  animation: heroFlow 44s ease-in-out infinite alternate;
}
@keyframes heroFlow {
  0%   { transform: translate(-4%,-2%) scale(1.05); }
  100% { transform: translate(6%,3%)  scale(1.15); }
}

/* 1b. Legibility veil — darkens the bottom so the headline always reads */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(20,26,36,.55) 0%, transparent 45%);
}

/* 1c. Twinkling star field — above the veil, below the grain */
#heroStars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;              /* above veil(1), below grain(3) */
  pointer-events: none;
}

/* 2. Grain overlay (reuses the site's fractal-noise texture) */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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");
}

/* 3. Content, anchored bottom-center */
.hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px clamp(56px, 9vh, 104px);
}

@media (prefers-reduced-motion: reduce) {
  .hero-aurora { animation: none; }
}

#heroSpiral {
  position: absolute;
  left: 50%;
  top: 34%;
  transform: translate(-50%, -50%);
  width: clamp(180px, 26vh, 280px);
  aspect-ratio: 1;
  z-index: 2;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #AEB7C6;
  border: 0.5px solid rgba(174, 183, 198, 0.4);
  border-radius: 999px;
  padding: 7px 16px;
  margin: 0 0 22px;
}

h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(44px, 8vw, 76px);
  letter-spacing: -0.01em;
  line-height: 1.04;
  max-width: 16ch;
  color: #ECEFF4;
  text-wrap: balance;
}
h1 em { font-style: italic; color: #8FB4F0; }

.hero-cta {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
  margin-top: clamp(28px, 4.5vh, 44px);
  transition: color 0.3s ease;
}
.hero-cta .arrow { transition: transform 0.3s ease; }
.hero-cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.3s ease;
}
.hero-cta:hover { color: var(--gold); }
.hero-cta:hover::after { width: 100%; }
.hero-cta:hover .arrow { transform: translateX(4px); }

/* Light header ONLY while it overlaps the slate hero. That state exists only on
   the homepage (body.has-dark-hero) and only before the header floats. Once the
   header floats over the light body — and on every inner page at any scroll
   position — it falls back to the shared dark styling in styles.css. */
.wordmark { transition: color 0.3s ease; }
.brand-logo { transition: filter 0.3s ease; }

.has-dark-hero header:not(.is-floating) .wordmark { color: #ECEFF4; }
.has-dark-hero header:not(.is-floating) .nav-contact,
.has-dark-hero header:not(.is-floating) .blog-trigger { color: #AEB7C6; }
.has-dark-hero header:not(.is-floating) .nav-contact:hover,
.has-dark-hero header:not(.is-floating) .blog-trigger:hover,
.has-dark-hero header:not(.is-floating) .nav-item:hover .blog-trigger,
.has-dark-hero header:not(.is-floating) .nav-item.open .blog-trigger { color: #ECEFF4; }
.has-dark-hero header:not(.is-floating) .brand-logo { filter: brightness(0) invert(1); }

.thesis {
  border-top: 0.5px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(64px, 10vh, 112px) 24px clamp(56px, 8vh, 88px);
}

.thesis p.body {
  color: var(--body);
  font-weight: 400;
  font-size: clamp(15.5px, 1.6vw, 18px);
  line-height: 1.9;
  letter-spacing: 0.005em;
  max-width: 30em;
  text-wrap: pretty;
}

.team {
  border-top: 0.5px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(64px, 10vh, 100px) 24px clamp(64px, 10vh, 100px);
}
.team-intro {
  color: var(--muted);
  font-weight: 300;
  font-size: clamp(14px, 1.4vw, 16px);
  letter-spacing: 0.04em;
  margin-bottom: clamp(28px, 4.5vh, 44px);
}
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  row-gap: clamp(20px, 3vh, 28px);
  column-gap: 0;                      /* dot margins define horizontal spacing now */
  max-width: 880px;
}
.logo {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.9vw, 20px);
  letter-spacing: 0.01em;
  color: var(--structure);
  white-space: nowrap;
}
.logos > *:not(:last-child)::after {
  content: "·";                       /* middle dot (U+00B7), not a bullet */
  margin: 0 .6em;
  color: var(--faint);
}

@media (max-width: 720px) {
  .hero {
    min-height: 86vh;
    padding: 0 20px;
  }

  .hero h1 {
    max-width: 11ch;
  }

  .team {
    min-height: auto;
    padding: 80px 20px 68px;
  }

  .logos {
    max-width: 420px;
    row-gap: 14px;
  }

  .logo {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 82vh;
  }

  .hero h1 {
    font-size: 42px;
  }

  .logos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .logos > *:not(:last-child)::after {
    content: "";
    margin: 0;
  }
}

#heroStars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

#heroSpiral {
  position: absolute;
  left: 50%;
  top: 34%;
  transform: translate(-50%, -50%);
  width: clamp(180px, 26vh, 280px);
  aspect-ratio: 1;
  z-index: 2;
  pointer-events: none;
}
