/* 8404 Quixilver — dark + glass theme. Restrained glass: header, hero card,
   and feature cards only. Solid cyan accents, no gradients on text. */
:root {
  --bg: #0b0e11;
  --bg-2: #10151a;
  --ink: #e9f1f6;
  --muted: #9fb3c0;
  --cyan: #55c6f6;
  --cyan-dim: rgba(85, 198, 246, 0.16);
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(16, 22, 28, 0.62);
  --radius-s: 10px;
  --radius-m: 16px;
  --max: 1080px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Tahoma, sans-serif;
  background: #000;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
/* Site-wide plexus canvas sits behind everything. */
#bg-plexus { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
main, footer.site { position: relative; z-index: 1; }
/* Homepage chrome: the header floats over the cinematic (fixed, fading in
   only after the intro) and the banner lives below the hero — so nothing
   above or around the sequence ever changes layout, and the reveal can't
   oscillate or yank the scroll position. */
.site-header { transition: opacity 0.45s ease; }
body.home .site-header { position: fixed; top: 0; left: 0; right: 0; }
body.home #afterHero { scroll-margin-top: 70px; }
body.in-intro .site-header,
html.js-intro body:not(.intro-done) .site-header {
  opacity: 0; pointer-events: none;
}
.display { font-family: Orbitron, "Segoe UI", sans-serif; letter-spacing: 0.04em; }
a { color: var(--cyan); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  max-width: var(--max); margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: 44px; object-fit: contain; }
.brand b { color: var(--cyan); font-size: 20px; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
nav.main { display: flex; gap: 22px; }
nav.main a {
  color: var(--ink); text-decoration: none; font-size: 15px; padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--cyan); }
nav.main a[aria-current="page"] { color: var(--cyan); border-bottom-color: var(--cyan); }
@media (max-width: 760px) {
  nav.main { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  nav.main a { font-size: 14px; }
}

/* Sections */
.section { padding: 56px 0; }
.section h2 {
  color: var(--cyan); font-size: 26px; margin-bottom: 10px;
  font-family: Orbitron, "Segoe UI", sans-serif;
}
.section .lede { color: var(--muted); max-width: 70ch; margin-bottom: 22px; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }

/* Cards — glass only where it aids legibility over art */
.card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 20px;
}
.card.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.card h3 { font-size: 17px; margin-bottom: 8px; color: var(--ink); }
.card p, .card li { color: #c7d4dd; font-size: 15px; }
.card ul { margin: 8px 0 0 18px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--cyan); border: 1px solid rgba(85,198,246,.4);
  border-radius: 999px; padding: 3px 10px; margin-bottom: 10px;
}
footer.site {
  border-top: 1px solid var(--line); margin-top: 24px;
  padding: 28px 0 34px; color: var(--muted); font-size: 14px;
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 14px; flex-wrap: wrap; }
footer.site nav a { color: var(--muted); text-decoration: none; }
footer.site nav a:hover { color: var(--cyan); }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px;
  color: #06222f; background: var(--cyan); border-radius: 999px; padding: 10px 22px;
}
.btn.ghost { background: transparent; color: var(--cyan); border: 1px solid rgba(85,198,246,.5); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--cyan);
  color: #06222f; padding: 8px 14px; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* Prism hero (index only) */
.prism-scroll { position: relative; height: 340vh; background: #000; }
.prism-sticky {
  position: sticky; top: 0; height: 100vh; min-height: 560px; overflow: hidden;
}
#gl { position: absolute; inset: 0; }
#gl canvas { display: block; width: 100%; height: 100%; }
.hero-fallback {
  position: absolute; inset: 0; z-index: 2; display: none;
  align-items: center; justify-content: center;
  background: #000;
  padding: 24px;
}
.hero-fallback.show { display: flex; }
.hero-fallback img { width: min(240px, 60vw); }
.team-photo { width: 100%; border-radius: var(--radius-m); border: 1px solid var(--line); }
.member-photo {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px;
  background: #182028; border: 1px solid var(--line);
}
.robot-photo {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line);
  margin: 10px 0 12px; background: #10161c;
}
.member-name { font-size: 16px; margin: 10px 0 4px; }
.fun-fact { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.timeline li, .robot-features li { margin-bottom: 6px; }
label.field { display: block; font-size: 14px; margin: 12px 0 4px; }
input.field, textarea.field {
  width: 100%; background: #0f151b; border: 1px solid var(--line);
  border-radius: 8px; color: var(--ink); padding: 10px 12px; font-size: 15px;
}
