:root {
  color-scheme: dark;
  --bg: #020304;
  --panel: #080b0e;
  --panel-2: #0e1216;
  --text: #e8ecf0;
  --muted: #7a858f;
  --line: rgba(211, 219, 226, 0.12);
  --accent: #4fc9c4;
  --accent-dim: rgba(79, 201, 196, 0.10);
  --accent-glow: rgba(79, 201, 196, 0.18);
  --silver: #d8dde2;
  --silver-2: #6b757e;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background: linear-gradient(rgba(2, 3, 4, 0.78), rgba(2, 3, 4, 0.95)), url("/assets/nasa-deep-field.jpg") center top / cover fixed, #020304;
}

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

.site-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
  padding: 0.85rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(2, 3, 4, 0.78);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; min-width: 0; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand span { display: grid; gap: 0.1rem; min-width: 0; }
.brand strong {
  overflow: hidden; font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem; font-weight: 700;
  text-overflow: ellipsis; white-space: nowrap;
}
.brand small {
  color: var(--accent); font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}

.eyebrow {
  color: var(--accent); font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin: 0 0 1rem;
}

nav { display: flex; align-items: center; gap: 0.35rem; color: var(--muted); font-size: 0.9rem; }
nav a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 0 0.85rem; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-button { border: 1px solid rgba(79, 201, 196, 0.3); color: var(--accent) !important; }
.nav-button:hover { background: var(--accent-dim) !important; border-color: rgba(79, 201, 196, 0.5); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.15rem;
  border: 1px solid transparent; border-radius: 6px;
  font-weight: 700; font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.02em; transition: transform 0.15s, box-shadow 0.2s;
}
.button.primary {
  color: #020304; background: linear-gradient(180deg, var(--accent), #38a09c);
  box-shadow: 0 1rem 2.5rem rgba(79, 201, 196, 0.18);
}
.button.primary:hover { transform: translateY(-1px); box-shadow: 0 1rem 3rem rgba(79, 201, 196, 0.28); }
.button.secondary {
  color: var(--silver); border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}
.button.secondary:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.08); }

main { overflow: hidden; }

.hero {
  position: relative; display: grid;
  grid-template-columns: minmax(19rem, 0.8fr) minmax(0, 1fr);
  align-items: center; gap: clamp(2rem, 6vw, 6rem);
  min-height: calc(86svh - 72px);
  padding: clamp(2rem, 6vw, 6rem) clamp(1rem, 6vw, 6rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(2, 3, 4, 0.72), rgba(2, 3, 4, 0.24) 48%, rgba(2, 3, 4, 0.78)), radial-gradient(circle at 78% 34%, rgba(79, 201, 196, 0.06), transparent 24rem);
}

.hero-panel {
  position: relative; display: grid; grid-template-rows: 1fr auto;
  gap: 1.25rem; aspect-ratio: 1; width: min(100%, 35rem);
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid rgba(79, 201, 196, 0.12); border-radius: 8px;
  justify-self: center; overflow: hidden;
  background: linear-gradient(145deg, rgba(79, 201, 196, 0.05), transparent 32%), rgba(2, 3, 4, 0.58);
  box-shadow: inset 0 0 5rem rgba(79, 201, 196, 0.03), 0 2rem 5rem rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(4px);
}

.hero-panel::before {
  position: absolute; content: ""; inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 45%, rgba(79, 201, 196, 0.04) 48%, rgba(79, 201, 196, 0.08) 50%, rgba(79, 201, 196, 0.04) 52%, transparent 55%, transparent 100%);
  animation: scan 8s ease-in-out infinite; pointer-events: none; z-index: 2;
}

@keyframes scan {
  0%, 100% { transform: translateY(-100%); }
  50% { transform: translateY(100%); }
}

.hero-panel::after {
  position: absolute; content: ""; inset: 5%;
  border: 1px solid rgba(79, 201, 196, 0.08); border-radius: 50%;
}

.orbital-ring {
  position: absolute; inset: 15%;
  border: 1px solid rgba(79, 201, 196, 0.14); border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 201, 196, 0.06), transparent 62%);
  box-shadow: inset 0 0 5rem rgba(79, 201, 196, 0.04), 0 0 8rem rgba(79, 201, 196, 0.04);
}

.orbital-ring-2 {
  position: absolute; inset: 24%;
  border: 1px solid rgba(79, 201, 196, 0.1); border-radius: 50%;
  transform: rotate(-18deg) scaleX(1.32);
}

.hero-panel img {
  position: relative; z-index: 1; align-self: center; justify-self: center;
  width: min(74%, 24rem); height: auto; object-fit: contain;
  filter: drop-shadow(0 0 3rem rgba(79, 201, 196, 0.15));
}

.hero-panel dl {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; margin: 0; overflow: hidden;
  border: 1px solid rgba(79, 201, 196, 0.1); border-radius: 6px;
  background: rgba(79, 201, 196, 0.1);
}
.hero-panel dl div { min-width: 0; padding: 0.85rem; background: rgba(4, 6, 8, 0.85); }
.hero-panel dt {
  margin-bottom: 0.3rem; color: var(--accent);
  font-family: "Space Grotesk", sans-serif; font-size: 0.66rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-panel dd {
  margin: 0; overflow-wrap: anywhere;
  font-family: "Space Grotesk", sans-serif; font-size: 0.82rem; font-weight: 700;
}

.hero-copy { max-width: 56rem; }
h1, h2, p { margin-top: 0; }

h1 {
  max-width: 12ch; margin-bottom: 1.25rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 8vw, 6.5rem); line-height: 0.92;
  font-weight: 700; letter-spacing: -0.02em;
}
h2 { font-family: "Space Grotesk", sans-serif; letter-spacing: -0.01em; }

.lede {
  max-width: 42rem; color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.65;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(1.25rem, 4vw, 2rem); }

.ops-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; padding: 1px; border-bottom: 1px solid var(--line); background: var(--line);
}
.ops-strip div { padding: 1.1rem clamp(1rem, 3vw, 2rem); background: rgba(6, 8, 10, 0.88); }
.ops-strip strong, .ops-strip span { display: block; }
.ops-strip strong { margin-bottom: 0.25rem; font-family: "Space Grotesk", sans-serif; font-size: 0.92rem; font-weight: 600; }
.ops-strip span { color: var(--muted); font-size: 0.88rem; }

.values-intro { max-width: 82rem; padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 6vw, 6rem); }
.values-intro h2 { max-width: 16ch; margin-bottom: 1.25rem; font-size: clamp(2.35rem, 5.8vw, 4.8rem); line-height: 0.95; }
.values-intro h2 span { display: block; }
.values-intro h2 span:nth-child(2) { color: var(--accent); }
.values-intro > p { max-width: 58rem; margin-bottom: 0; color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.2rem); line-height: 1.7; }

.section-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; padding: 1px; background: var(--line);
}
.section-grid article {
  min-height: 18rem; padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(8, 11, 14, 0.92); transition: background 0.3s;
}
.section-grid article:hover { background: rgba(12, 16, 20, 0.92); }
.section-grid .card-marker {
  display: block; width: 2rem; height: 2px; margin-bottom: 3rem;
  background: var(--accent); opacity: 0.5;
  transition: width 0.3s, opacity 0.3s;
}
.section-grid article:hover .card-marker { width: 3rem; opacity: 1; }
.section-grid h2 { margin-bottom: 0.75rem; font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1.05; }
.section-grid p, .band p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }

.band {
  display: grid; grid-template-columns: minmax(14rem, 0.55fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 5vw, 5rem); align-items: start;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 6vw, 6rem);
  border-top: 1px solid var(--line); background: rgba(2, 3, 4, 0.56);
}
.band h2 { margin-bottom: 0.75rem; font-size: clamp(1.45rem, 3vw, 2.35rem); line-height: 1.05; }
.band.lore {
  background: linear-gradient(90deg, rgba(2, 3, 4, 0.78), rgba(10, 14, 18, 0.78)), radial-gradient(circle at 20% 20%, rgba(79, 201, 196, 0.04), transparent 24rem);
}
.band.contact {
  align-items: center;
  grid-template-columns: minmax(14rem, 0.5fr) minmax(0, 1fr) auto;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--accent-dim), rgba(2, 3, 4, 0.68));
}
.compact { white-space: nowrap; }

.site-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.5rem clamp(1rem, 4vw, 4rem);
  color: var(--silver-2); font-size: 0.8rem;
  border-top: 1px solid var(--line);
}
.site-footer .footer-brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.site-footer .footer-brand::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%; opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  .hero-panel::before { animation: none; }
  .card-marker { transition: none; }
}

@media (max-width: 820px) {
  .site-header { position: static; align-items: flex-start; flex-direction: column; }
  nav { width: 100%; overflow-x: auto; padding-bottom: 0.2rem; }
  nav a { flex: 0 0 auto; }
  body { background-attachment: scroll; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 1rem; padding-bottom: 1.5rem; gap: 1rem; }
  .hero-panel { order: -1; width: min(17rem, 78vw); aspect-ratio: 1 / 1.08; }
  h1 { max-width: 10ch; }
  .section-grid, .ops-strip, .band, .band.contact { grid-template-columns: 1fr; }
  .section-grid article { min-height: 13rem; }
  .section-grid .card-marker { margin-bottom: 2rem; }
  .compact { width: max-content; }
  .site-footer { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
  .brand strong { max-width: 70vw; }
  .actions, .button { width: 100%; }
  .hero-panel { width: min(15rem, 70vw); padding: 0.85rem; }
  .hero-panel dl { display: none; }
  h1 { font-size: clamp(2.3rem, 12.5vw, 3.1rem); }
  .lede { font-size: 1rem; line-height: 1.45; }
}