@font-face {
  font-family: "Geist";
  src: url("fonts/geist-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-300-italic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #05070D;
  --navy: #0B1220;
  --bone: #ECE8E1;
  --slate: #7E8799;
  --ion: #6FD8FF;
  --halo: #8C7BFF;

  --display: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--void);
  color: var(--bone);
  overflow: hidden;
}

body {
  font-family: var(--mono);
  font-size: 12px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid var(--ion); outline-offset: 4px; }

/* ---------- stage (canvas) ---------- */

.stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  animation: stage-in 1.4s var(--ease) both;
}

/* ---------- overlays ---------- */

.grid, .vignette, .scrim {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
/* Static dot grid — an electrode-array texture that fades out around the brain. */
.grid {
  background-image: radial-gradient(circle, rgb(236 232 225 / .24) 1px, transparent 1.4px);
  background-size: 26px 26px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 48% 58% at 64% 45%, #000 0%, rgb(0 0 0 / .5) 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 48% 58% at 64% 45%, #000 0%, rgb(0 0 0 / .5) 45%, transparent 100%);
  animation: fade-in 2s var(--ease) .6s both;
}
.vignette {
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgb(5 7 13 / .85) 100%);
}
.scrim {
  background: linear-gradient(to top, var(--void) 0%, rgb(5 7 13 / .82) 22%, rgb(5 7 13 / 0) 52%);
}

/* ---------- ui ---------- */

.ui {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: var(--gutter);
  padding-inline: var(--gutter);
  pointer-events: none;
}
.ui a { pointer-events: auto; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.site-header { animation: fade-in 1s var(--ease) 2.1s both; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
  font-size: clamp(15px, 1.5vw, 19px);
  letter-spacing: .3em;
}
.wordmark svg { width: 1.7em; height: 1.7em; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--slate);
  font-size: 11px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ion);
  box-shadow: 0 0 10px var(--ion);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero { margin-top: auto; }

.eyebrow {
  margin: 0 0 clamp(14px, 2vw, 24px);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ion);
  animation: fade-in .9s var(--ease) 1.3s both;
}

.headline {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.3rem, 5.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.headline em { font-style: italic; color: var(--ion); }
.headline .line { display: block; animation: rise 1.3s var(--ease) both; }
.headline .line:nth-child(1) { animation-delay: 1.5s; }
.headline .line:nth-child(2) { animation-delay: 1.65s; }

.site-footer {
  margin-top: clamp(20px, 3.5vw, 40px);
  padding-top: 18px;
  border-top: 1px solid rgb(126 135 153 / .25);
  color: var(--slate);
  font-size: 11px;
  animation: fade-in 1s var(--ease) 2.3s both;
}
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--bone); }
.cohort strong {
  display: inline-block;
  margin-right: 6px;
  padding: 3px 7px 2px;
  border: 1px solid rgb(111 216 255 / .5);
  color: var(--ion);
  font-weight: 500;
  letter-spacing: .12em;
}
.footer-end { display: flex; gap: 32px; }

/* ---------- keyframes ---------- */

@keyframes stage-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(.35em); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.7); }
}

/* ---------- mobile ---------- */

@media (max-width: 720px) {
  .status { font-size: 10px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 10px; }
  .footer-end { flex-direction: column; gap: 10px; }
  .scrim { background: linear-gradient(to top, var(--void) 0%, rgb(5 7 13 / .85) 30%, rgb(5 7 13 / 0) 62%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
