/* ==========================================================================
   EXORDIUM // SYSTEMS GALAXY (home page header) — drawn by assets/js/galaxy.js
   ========================================================================== */

/* Full-bleed stage: the galaxy canvas spans the whole window width, the text is laid over it. */
.galaxy-hero {
  position: relative;
  width: 100%;
  height: clamp(560px, 90vh, 960px);
  margin: 0;
  background:
    radial-gradient(ellipse at 63% 50%, rgba(20, 184, 166, 0.07), transparent 55%),
    #050808;
}

.galaxy-canvas {
  position: absolute;
  inset: 0;
  display: block;
  touch-action: manipulation;
}

.galaxy-sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.galaxy-tip {
  position: absolute;
  left: 0; top: 0;
  max-width: 260px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  background: #0a1010;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  line-height: 1.35;
  color: #cbd5e1;
  pointer-events: none;
  z-index: 5;
}
.galaxy-tip[hidden] { display: none; }
.galaxy-tip-title {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--tip-accent, var(--brand-teal));
}
.galaxy-tip-go .ph { margin-inline-start: 0.2em; }
.galaxy-tip em { color: var(--text-muted); font-size: 12px; }
.galaxy-tip-go { font-family: var(--font-mono); font-size: 11.5px; color: #5eead4; }

.galaxy-hint {
  margin: 0 0 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(143, 165, 160, 0.75);
}

.galaxy-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 46px;
}

.galaxy-chip {
  --chip: var(--brand-teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--chip) 28%, transparent);
  background: color-mix(in srgb, var(--chip) 6%, transparent);
  color: #e2f3ef;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}
a.galaxy-chip:hover,
a.galaxy-chip:focus-visible {
  background: color-mix(in srgb, var(--chip) 14%, transparent);
  border-color: var(--chip);
  outline: none;
}
span.galaxy-chip { opacity: 0.72; }

@media (max-width: 640px) {
  .galaxy-chip { font-size: 12px; padding: 4px 9px; }
  .galaxy-hint { font-size: 10px; }
}

/* live 3D logo (assets/js/logo3d.js): a transparent canvas the size of the whole stage, under the
   galaxy canvas, so the logo can turn any way without being cut off. No frame, no overflow clipping. */
.galaxy-logo3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.galaxy-canvas { touch-action: pan-y; }   /* sideways drags rotate; vertical swipes still scroll the page */

/* the text lies over the stage; only the text itself takes the pointer, so drags work everywhere else */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.hero-overlay::before {            /* soft dark wash behind the text */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 8, 8, 0.88) 0%, rgba(5, 8, 8, 0.62) 34%, rgba(5, 8, 8, 0) 58%);
  pointer-events: none;
}
.hero-copy-wrap { position: relative; width: 100%; padding-top: 0; padding-bottom: 0; }
.hero-copy { max-width: 460px; }
.hero-copy > * { pointer-events: auto; }
.hero-copy .hero-title { margin-top: 10px; font-size: clamp(30px, 3.2vw, 52px); line-height: 1.08; }
.hero-copy .hero-lead { margin-top: 14px; }
/* marks where the galaxy and the logo live (read by galaxy.js): the right ~74% of the stage */
.galaxy-focus { position: absolute; top: 0; bottom: 0; left: 34%; right: 0; pointer-events: none; visibility: hidden; }
.hero-after { padding-top: 16px; }

/* phones and tablets in portrait: text across the top of the stage, the galaxy below it, still full-bleed */
@media (max-width: 1099px) {
  .galaxy-hero { height: auto; padding-top: 6px; }
  .hero-overlay { position: relative; align-items: flex-start; padding-top: 20px; }
  .hero-overlay::before { background: linear-gradient(180deg, rgba(5, 8, 8, 0.85) 0%, rgba(5, 8, 8, 0.55) 70%, rgba(5, 8, 8, 0) 100%); }
  .hero-copy { max-width: 640px; }
  .hero-copy .hero-title { font-size: clamp(28px, 7.4vw, 44px); }
  .galaxy-focus { position: relative; left: auto; right: auto; top: auto; bottom: auto; height: clamp(400px, 92vw, 620px); margin-top: -10px; }
}
