:root {
  --void: #030712;
  --navy: #07111f;
  --panel: rgba(7, 18, 36, 0.62);
  --line: rgba(78, 232, 255, 0.28);
  --cyan: #4ee8ff;
  --cyan-deep: #1aa7d4;
  --violet: #a979ff;
  --pink: #ff72cf;
  --ice: #eaf8ff;
  --mist: #9ec6d8;
  --glow: 0 0 40px rgba(78, 232, 255, 0.35);
  --font-display: "Oxanium", sans-serif;
  --font-body: "Sora", sans-serif;
  --font-mono: "Share Tech Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 70% 10%, rgba(26, 110, 210, 0.18), transparent 55%),
    radial-gradient(900px 600px at 15% 80%, rgba(169, 121, 255, 0.11), transparent 50%),
    radial-gradient(700px 500px at 90% 55%, rgba(255, 114, 207, 0.07), transparent 58%),
    linear-gradient(180deg, #030712 0%, #06101c 48%, #030712 100%);
  color: var(--ice);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

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

#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(3, 7, 18, 0.4), transparent 45%),
    linear-gradient(180deg, rgba(3, 7, 18, 0.15), transparent 20%, transparent 80%, rgba(3, 7, 18, 0.55));
}

.scan {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(78, 232, 255, 0.015) 3px,
    rgba(78, 232, 255, 0.015) 4px
  );
  mix-blend-mode: screen;
  animation: scan-drift 9s linear infinite;
}

@keyframes scan-drift {
  from { transform: translateY(0); }
  to { transform: translateY(4px); }
}

.cursor-halo {
  position: fixed;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle, rgba(78, 232, 255, 0.12), transparent 68%);
  transform: translate(-100vw, -100vh);
  transition: opacity 0.4s ease;
}

.nav,
main,
.footer,
.drawer {
  position: relative;
  z-index: 5;
}

.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 4vw;
  backdrop-filter: blur(18px);
  background: rgba(3, 7, 18, 0.55);
  border-bottom: 1px solid rgba(78, 232, 255, 0.12);
}

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

.brand-orb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 18px rgba(78, 232, 255, 0.45);
}

.brand-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  font-size: 0.92rem;
}

.brand-copy small {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--cyan);
  box-shadow: var(--glow);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--ice);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(78, 232, 255, 0.05);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.icon-btn img {
  width: 16px;
  height: 16px;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: var(--glow);
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--cyan);
}

.drawer {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 4vw 1.25rem;
  background: rgba(3, 7, 18, 0.92);
  border-bottom: 1px solid var(--line);
}

.drawer.open {
  display: flex;
}

.drawer a {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

main {
  padding: 0 4vw 6rem;
  max-width: 1560px;
  margin-inline: auto;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  padding: 3rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 600px);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.45; }
}

.wordmark {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.2rem, 10vw, 8.4rem);
  letter-spacing: 0.08em;
  line-height: 0.82;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 8%, #b9f6ff 52%, #7a8cff 78%, #ff72cf 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(78, 232, 255, 0.35));
}

.wm-a {
  position: relative;
}

.wm-a::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #4ee8ff;
  top: 18%;
  right: 6%;
}

.wordmark-sub {
  display: block;
  margin-top: 0.15em;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ice);
}

.symbol-row {
  display: flex;
  gap: 0.6rem;
  margin: 1.3rem 0 1rem;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  background: rgba(78, 232, 255, 0.08);
}

.chip.ghost {
  border-color: var(--line);
  color: var(--mist);
  background: transparent;
}

.tagline {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  margin-bottom: 0.9rem;
}

.spark {
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan);
  animation: spark 2.4s ease-in-out infinite;
}

@keyframes spark {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.lede {
  max-width: 36rem;
  color: var(--mist);
  line-height: 1.7;
  font-weight: 300;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.7rem 0 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.2rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  border: 1px solid var(--cyan);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn img {
  width: 16px;
  height: 16px;
}

.btn.primary {
  background: linear-gradient(135deg, rgba(78, 232, 255, 0.28), rgba(26, 122, 212, 0.35));
  box-shadow: var(--glow);
}

.btn.ghost {
  background: rgba(3, 7, 18, 0.4);
  border-color: var(--line);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-120%);
  animation: sheen 4.5s ease-in-out infinite;
}

@keyframes sheen {
  0%, 60% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 28px rgba(78, 232, 255, 0.5);
}

.ca-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 34rem;
  padding: 0.7rem 0.8rem;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.ca-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
}

#ca-text {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mist);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy-ca {
  border: 0;
  background: transparent;
  color: var(--ice);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
}

.stage {
  position: relative;
  min-height: 680px;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(78, 232, 255, 0.28);
  animation: spin 28s linear infinite;
}

.orbit-a {
  width: 78%;
  aspect-ratio: 1;
  box-shadow: inset 0 0 40px rgba(78, 232, 255, 0.08);
}

.orbit-b {
  width: 94%;
  aspect-ratio: 1;
  animation-duration: 42s;
  animation-direction: reverse;
  border-style: solid;
  border-color: rgba(78, 232, 255, 0.12);
}

.orbit-c {
  width: 110%;
  aspect-ratio: 1;
  animation-duration: 56s;
  border-color: rgba(78, 232, 255, 0.08);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.portrait {
  position: relative;
  width: min(86%, 470px);
  aspect-ratio: 3 / 4;
  border-radius: 48% 48% 22px 22px;
  overflow: hidden;
  z-index: 2;
  isolation: isolate;
  animation: float-y 6s ease-in-out infinite;
  border: 1px solid rgba(185, 246, 255, 0.52);
  box-shadow: 0 0 0 8px rgba(78, 232, 255, 0.03), 0 28px 90px rgba(24, 63, 170, 0.42);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
  transform: scale(1.02);
}

.portrait-glow {
  position: absolute;
  inset: auto -10% -18% -10%;
  height: 45%;
  background: radial-gradient(circle, rgba(78, 232, 255, 0.45), transparent 70%);
  filter: blur(8px);
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.shard {
  position: absolute;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #fff, var(--cyan));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 12px var(--cyan);
  animation: shard-orbit 14s linear infinite;
}

.s1 { top: 8%; left: 18%; animation-duration: 16s; }
.s2 { top: 22%; right: 6%; animation-duration: 21s; animation-direction: reverse; }
.s3 { bottom: 16%; left: 8%; animation-duration: 18s; }
.s4 { bottom: 10%; right: 16%; animation-duration: 24s; }

@keyframes shard-orbit {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0.9; }
  50% { transform: translate(18px, -22px) rotate(180deg); opacity: 0.4; }
  100% { transform: translate(0, 0) rotate(360deg); opacity: 0.9; }
}

.hud-chip {
  position: absolute;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.6);
  animation: hud-flicker 5s steps(2, end) infinite;
}

.hud-tl { top: 8%; left: 0; }
.hud-br { bottom: 10%; right: 0; }

.stage-caption {
  position: absolute;
  z-index: 4;
  right: 2%;
  bottom: 4%;
  min-width: 190px;
  padding: 0.8rem 1rem;
  text-align: right;
  border-right: 2px solid var(--pink);
  background: linear-gradient(90deg, transparent, rgba(3, 7, 18, 0.86));
  backdrop-filter: blur(10px);
}

.stage-caption span,
.stage-caption strong { display: block; }

.stage-caption span {
  color: var(--pink);
  font: 0.68rem var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stage-caption strong {
  margin-top: 0.25rem;
  font: 600 0.9rem var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes hud-flicker {
  0%, 92%, 100% { opacity: 1; }
  94% { opacity: 0.35; }
}

.section-head {
  margin: 5.5rem 0 2.2rem;
}

.section-head h2 {
  text-wrap: balance;
}

.kicker {
  font-family: var(--font-mono);
  color: var(--cyan);
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-note {
  color: var(--mist);
  margin-top: 0.7rem;
  max-width: 36rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 3rem;
  align-items: center;
}

.about-frame {
  position: relative;
  padding: 0.7rem;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}

.about-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 35%;
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.gallery-heading .section-note {
  max-width: 31rem;
  margin-bottom: 0.35rem;
  text-align: right;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 1rem;
}

.gallery-card {
  grid-column: span 4;
  grid-row: span 2;
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(78, 232, 255, 0.26);
  background: #07111f;
  color: var(--ice);
  cursor: zoom-in;
  text-align: left;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  isolation: isolate;
}

.gallery-card.tall { grid-row: span 3; }
.gallery-card.wide { grid-column: span 8; }

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  transition: inset 0.45s ease, border-color 0.45s ease;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1), filter 0.5s ease;
}

.gallery-card.wide img { object-position: 50% 28%; }

.gallery-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 48%, rgba(3, 7, 18, 0.88) 100%);
}

.gallery-index {
  position: absolute;
  z-index: 4;
  top: 1.35rem;
  right: 1.35rem;
  font: 0.72rem var(--font-mono);
  color: var(--cyan);
  letter-spacing: 0.16em;
}

.gallery-meta {
  position: absolute;
  z-index: 4;
  left: 1.4rem;
  bottom: 1.35rem;
}

.gallery-meta small,
.gallery-meta strong { display: block; }

.gallery-meta small {
  margin-bottom: 0.3rem;
  color: var(--pink);
  font: 0.68rem var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gallery-meta strong {
  font: 600 clamp(1rem, 2vw, 1.35rem) var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-card:hover img {
  transform: scale(1.055);
  filter: saturate(1.12) contrast(1.04);
}

.gallery-card:hover::before {
  inset: 15px;
  border-color: rgba(255, 114, 207, 0.48);
}

.lightbox {
  width: min(92vw, 760px);
  max-height: 92vh;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 1px solid var(--line);
  background: #030712;
  color: var(--ice);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.78), 0 0 50px rgba(78, 232, 255, 0.22);
}

.lightbox::backdrop {
  background: rgba(1, 4, 12, 0.88);
  backdrop-filter: blur(14px);
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  border: 0;
  background: transparent;
  color: var(--ice);
  font: 0.78rem var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

#lightbox-title {
  padding: 0.8rem 1rem;
  color: var(--cyan);
  font: 0.75rem var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-frame figcaption {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--cyan);
}

.about-copy p {
  color: var(--mist);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.stat-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.stat-list li {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(78, 232, 255, 0.04);
}

.stat-list span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.stat-list strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.path {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
}

.path::before {
  content: "";
  position: absolute;
  top: 58px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 12px var(--cyan);
  animation: beam 3.2s ease-in-out infinite;
}

@keyframes beam {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

.node {
  position: relative;
  padding: 1.4rem 1.1rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 280px;
}

.node-index {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  font-family: var(--font-mono);
  color: rgba(78, 232, 255, 0.45);
}

.node-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  background: rgba(78, 232, 255, 0.08);
  box-shadow: 0 0 18px rgba(78, 232, 255, 0.2);
}

.node-icon img {
  width: 22px;
  height: 22px;
}

.node-icon.mark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--cyan);
}

.node h3 {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
}

.node p {
  color: var(--mist);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.node a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border-bottom: 1px solid transparent;
}

.node a:hover {
  border-bottom-color: var(--cyan);
}

.chart-frame {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.7);
  min-height: 620px;
  overflow: hidden;
}

.chart-frame iframe {
  width: 100%;
  height: 640px;
  border: 0;
  background: #0b111b;
}

.frame-corners::before,
.frame-corners::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--cyan);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}

.frame-corners::before {
  top: 8px;
  left: 8px;
  border-width: 2px 0 0 2px;
}

.frame-corners::after {
  bottom: 8px;
  right: 8px;
  border-width: 0 2px 2px 0;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.banner-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.banner {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.banner-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.82) 0%, rgba(3, 7, 18, 0.28) 55%, rgba(3, 7, 18, 0.5) 100%),
    linear-gradient(180deg, transparent 40%, rgba(3, 7, 18, 0.55));
}

.banner-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.2rem, 4vw, 3rem);
  max-width: 42rem;
}

.banner-kicker {
  font-family: var(--font-mono);
  color: var(--cyan);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 0.45rem;
}

.banner-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.banner-copy p {
  color: var(--mist);
  margin-bottom: 1.1rem;
}

.join-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.join-card {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  background: rgba(3, 7, 18, 0.62);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.join-card img {
  width: 15px;
  height: 15px;
}

.join-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: var(--glow);
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 2rem 4vw 2.4rem;
  border-top: 1px solid rgba(78, 232, 255, 0.12);
}

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

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  border: 1px solid var(--line);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
}

.footer-brand span {
  color: var(--mist);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  gap: 1.1rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mist);
}

.footer-links img {
  width: 14px;
  height: 14px;
}

.disclaimer {
  grid-column: 1 / -1;
  color: rgba(158, 198, 216, 0.7);
  font-size: 0.78rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-launch {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 224px;
  padding: 0.55rem 0.8rem 0.55rem 0.55rem;
  color: var(--ice);
  border: 1px solid rgba(78, 232, 255, 0.42);
  background: linear-gradient(135deg, rgba(8, 23, 46, 0.94), rgba(18, 12, 42, 0.94));
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45), 0 0 28px rgba(78, 232, 255, 0.16);
  backdrop-filter: blur(18px);
  cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform 0.25s ease, border-color 0.25s ease, opacity 0.2s ease;
}

.chat-launch:hover {
  transform: translateY(-4px);
  border-color: var(--pink);
}

.chat-launch.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.chat-launch-avatar,
.chat-avatar,
.message-avatar {
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(78, 232, 255, 0.5);
  box-shadow: 0 0 18px rgba(78, 232, 255, 0.28);
}

.chat-launch-avatar { width: 42px; height: 42px; }
.chat-avatar { width: 46px; height: 46px; }
.message-avatar { width: 28px; height: 28px; margin-top: 0.15rem; }

.chat-launch-avatar img,
.chat-avatar img,
.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.chat-launch-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.chat-launch-copy small {
  color: var(--cyan);
  font: 0.62rem var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chat-launch-copy strong {
  font: 600 0.83rem var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chat-launch-spark {
  color: var(--pink);
  text-shadow: 0 0 12px var(--pink);
  animation: spark 2.4s ease-in-out infinite;
}

.chat-shell {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 41;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(390px, calc(100vw - 2rem));
  height: min(610px, calc(100vh - 3rem));
  overflow: hidden;
  border: 1px solid rgba(78, 232, 255, 0.36);
  background:
    linear-gradient(180deg, rgba(9, 22, 44, 0.97), rgba(3, 7, 18, 0.985)),
    #030712;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7), 0 0 55px rgba(78, 232, 255, 0.18);
  backdrop-filter: blur(24px);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(.2,.8,.2,1);
}

.chat-shell.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.chat-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 90% 5%, rgba(169, 121, 255, 0.17), transparent 30%),
    linear-gradient(rgba(78, 232, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 232, 255, 0.018) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  pointer-events: none;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid rgba(78, 232, 255, 0.16);
  background: rgba(78, 232, 255, 0.035);
}

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

.chat-identity > span:last-child { display: flex; flex-direction: column; }

.chat-identity strong {
  font: 600 0.9rem var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chat-identity small {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin-top: 0.25rem;
  color: var(--mist);
  font: 0.66rem var(--font-mono);
  letter-spacing: 0.05em;
}

.chat-identity i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #65ffb2;
  box-shadow: 0 0 10px #65ffb2;
}

.chat-close {
  width: 34px;
  height: 34px;
  color: var(--mist);
  border: 1px solid var(--line);
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
}

.chat-feed {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow-y: auto;
  padding: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(78, 232, 255, 0.35) transparent;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  max-width: 92%;
  animation: message-in 0.35s ease both;
}

.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-bubble {
  padding: 0.72rem 0.82rem;
  color: #d9edf7;
  border: 1px solid rgba(78, 232, 255, 0.17);
  background: rgba(78, 232, 255, 0.065);
  font-size: 0.84rem;
  line-height: 1.55;
  white-space: pre-wrap;
  border-radius: 2px 12px 12px 12px;
}

.chat-message.user .message-bubble {
  color: #fff;
  border-color: rgba(255, 114, 207, 0.25);
  background: linear-gradient(135deg, rgba(94, 78, 202, 0.42), rgba(212, 62, 166, 0.24));
  border-radius: 12px 2px 12px 12px;
}

.chat-message.error .message-bubble {
  border-color: rgba(255, 114, 126, 0.35);
  color: #ffc2ca;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 18px;
}

.typing-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  animation: typing 1s ease-in-out infinite;
}

.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-left: 2.2rem;
}

.chat-suggestions button {
  padding: 0.42rem 0.58rem;
  color: var(--cyan);
  border: 1px solid rgba(78, 232, 255, 0.22);
  background: rgba(78, 232, 255, 0.035);
  font: 0.66rem var(--font-mono);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.chat-suggestions button:hover {
  border-color: var(--cyan);
  background: rgba(78, 232, 255, 0.1);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border-top: 1px solid rgba(78, 232, 255, 0.14);
  background: rgba(1, 5, 14, 0.58);
}

.chat-form textarea {
  min-height: 42px;
  max-height: 110px;
  resize: none;
  padding: 0.7rem;
  color: var(--ice);
  border: 1px solid rgba(78, 232, 255, 0.22);
  outline: none;
  background: rgba(78, 232, 255, 0.035);
  font: 0.8rem var(--font-body);
  line-height: 1.45;
}

.chat-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(78, 232, 255, 0.1);
}

.chat-form textarea::placeholder { color: rgba(158, 198, 216, 0.62); }

.chat-send {
  align-self: end;
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.8rem;
  color: #fff;
  border: 1px solid rgba(78, 232, 255, 0.48);
  background: linear-gradient(135deg, rgba(26, 167, 212, 0.55), rgba(128, 79, 220, 0.55));
  font: 0.69rem var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.chat-send:disabled { opacity: 0.45; cursor: wait; }

.chat-foot {
  padding: 0 0.85rem 0.7rem;
  color: rgba(158, 198, 216, 0.52);
  background: rgba(1, 5, 14, 0.58);
  font: 0.58rem var(--font-mono);
  letter-spacing: 0.03em;
  text-align: center;
}

@keyframes message-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes typing {
  0%, 70%, 100% { opacity: 0.3; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-3px); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s ease forwards;
}

.delay { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.28s; }
.delay-3 { animation-delay: 0.42s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .hero-grid,
  .about-layout,
  .path {
    grid-template-columns: 1fr;
  }
  .path::before { display: none; }
  .stage { min-height: 640px; }
  .gallery-heading { align-items: start; flex-direction: column; }
  .gallery-heading .section-note { text-align: left; }
  .gallery-card,
  .gallery-card.wide { grid-column: span 6; }
  .chart-frame,
  .chart-frame iframe { min-height: 480px; height: 480px; }
  .banner-copy { max-width: none; }
  .footer,
  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wordmark-sub { letter-spacing: 0.22em; }
  .ca-bar { flex-wrap: wrap; }
  .banner {
    aspect-ratio: 3 / 1;
    min-height: 220px;
  }
  .stat-list { grid-template-columns: 1fr; }
  .stage { min-height: 530px; }
  .portrait { width: min(92%, 390px); }
  .stage-caption { right: 0; bottom: 1%; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 360px; }
  .gallery-card,
  .gallery-card.wide,
  .gallery-card.tall { grid-column: 1; grid-row: span 1; }
  .chat-launch {
    right: 0.8rem;
    bottom: 0.8rem;
    min-width: 0;
  }
  .chat-launch-copy { display: none; }
  .chat-shell {
    right: 0.55rem;
    bottom: 0.55rem;
    width: calc(100vw - 1.1rem);
    height: min(650px, calc(100dvh - 1.1rem));
  }
}
