:root {
  --bg: #070910;
  --bg-soft: #10131d;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.085);
  --border: rgba(255, 255, 255, 0.12);
  --text: oklch(94% 0.012 260);
  --text-muted: oklch(72% 0.025 250);
  --text-faint: oklch(55% 0.025 250);
  --violet: oklch(74% 0.2 292);
  --violet-dim: oklch(58% 0.16 292);
  --amber: oklch(80% 0.18 78);
  --cyan: oklch(78% 0.16 205);
  --blue: oklch(66% 0.18 245);
  --green: oklch(72% 0.16 152);
  --f-display: 'Syne', sans-serif;
  --f-body: 'DM Sans', sans-serif;
  --f-mono: 'DM Mono', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, oklch(66% 0.16 245 / 0.14), transparent 32rem),
    radial-gradient(circle at 82% 28%, oklch(80% 0.18 78 / 0.1), transparent 28rem),
    linear-gradient(135deg, #06070d 0%, #10131d 52%, #070910 100%);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

#stars-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.62;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 72px;
  padding: 0 clamp(1rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(to bottom, rgba(7, 9, 16, 0.9), rgba(7, 9, 16, 0));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
nav.scrolled {
  background: rgba(7, 9, 16, 0.86);
  border-bottom: 1px solid var(--border);
}
.nav-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f-display);
  font-weight: 800;
}
.moon { color: var(--violet); }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }
.nav-cta,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255,255,255,0.035);
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.nav-cta:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: oklch(74% 0.2 292 / 0.45);
  background: rgba(255,255,255,0.07);
}

main,
footer {
  position: relative;
  z-index: 1;
}
.section-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
}
.hero-grid {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.hero-glow {
  position: absolute;
  width: min(720px, 70vw);
  aspect-ratio: 1;
  top: 48%;
  right: -10vw;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(74% 0.2 292 / 0.22), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}
.eyebrow {
  color: var(--cyan);
  font-family: var(--f-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
h1,
h2,
h3 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1;
}
h1 {
  max-width: 760px;
  font-size: clamp(3.6rem, 8vw, 7.3rem);
}
h2 {
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  max-width: 760px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.hero-sub {
  max-width: 620px;
  margin-top: 1.35rem;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 300;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}
.btn-primary,
.email-form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.68rem 1.18rem;
  border-radius: 8px;
  background: var(--text);
  color: #070910;
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 800;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.btn-primary:hover,
.email-form-btn:hover {
  transform: translateY(-1px);
  opacity: 0.88;
}
.btn-primary svg,
.email-form-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.hero-orbital {
  display: grid;
  place-items: center;
  min-height: 420px;
}

.moon-system {
  position: relative;
  width: clamp(280px, 38vw, 470px);
  aspect-ratio: 1;
  perspective: 1000px;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.4s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.moon-system::before {
  content: '';
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(74% 0.2 292 / 0.2), transparent 66%);
  filter: blur(18px);
}
.moon-system-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: moonBob 7s ease-in-out infinite;
}
@keyframes moonBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.moon-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  animation: moonGlowPulse 5s ease-in-out infinite;
}
.moon-core img {
  width: 100%;
  height: 100%;
}
@keyframes moonGlowPulse {
  0%, 100% { filter: drop-shadow(0 0 22px oklch(74% 0.2 292 / 0.45)) drop-shadow(0 0 58px oklch(78% 0.16 205 / 0.14)); }
  50% { filter: drop-shadow(0 0 36px oklch(74% 0.2 292 / 0.75)) drop-shadow(0 0 84px oklch(80% 0.18 78 / 0.22)); }
}
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid oklch(74% 0.2 292 / 0.18);
  transform-style: preserve-3d;
  pointer-events: none;
}
.orbit-1 {
  width: 62%;
  height: 62%;
  transform: translate(-50%, -50%) rotateX(68deg) rotateZ(12deg);
  border-color: oklch(80% 0.18 78 / 0.28);
}
.orbit-2 {
  width: 82%;
  height: 82%;
  transform: translate(-50%, -50%) rotateX(72deg) rotateZ(-22deg);
  border-color: oklch(78% 0.16 205 / 0.22);
}
.orbit-3 {
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) rotateX(65deg) rotateZ(36deg);
  border-color: oklch(66% 0.18 245 / 0.18);
  border-style: dashed;
}
.spinner {
  position: absolute;
  inset: 0;
  display: block;
  animation: orbitSpin linear infinite;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
}
.orbit-1 .spinner { animation-duration: 9s; }
.orbit-2 .spinner { animation-duration: 16s; animation-direction: reverse; }
.orbit-3 .spinner { animation-duration: 26s; }
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.satellite {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  display: block;
}
.satellite::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: inherit;
  filter: blur(10px);
  opacity: 0.8;
  z-index: -1;
}
.sat-amber { background: var(--amber); box-shadow: 0 0 16px var(--amber), 0 0 4px #fff7 inset; }
.sat-cyan { background: var(--cyan); box-shadow: 0 0 16px var(--cyan), 0 0 4px #fff7 inset; width: 10px; height: 10px; margin-left: -5px; top: -5px; }
.sat-blue { background: var(--blue); box-shadow: 0 0 18px var(--blue), 0 0 4px #fff7 inset; width: 14px; height: 14px; margin-left: -7px; top: -7px; }

.signal-section,
.studio-section,
.contact-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.signal-card {
  min-height: 230px;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--surface), rgba(255,255,255,0.025));
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}
.signal-card:nth-child(2) { margin-top: 1.5rem; }
.signal-card:nth-child(3) { margin-top: 3rem; }
.card-kicker {
  display: block;
  margin-bottom: 2.6rem;
  color: var(--text-faint);
  font-family: var(--f-mono);
  font-size: 0.76rem;
}
.signal-card p,
.studio-text,
.contact-panel p {
  color: var(--text-muted);
  font-weight: 300;
}

.studio-section {
  background: linear-gradient(to right, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.studio-text {
  font-size: 1.08rem;
  max-width: 520px;
  padding-top: 2.2rem;
}

.contact-panel {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.028)),
    radial-gradient(circle at 50% 0%, oklch(74% 0.2 292 / 0.18), transparent 70%);
  box-shadow: 0 30px 90px rgba(0,0,0,0.32);
}
.moon-sm {
  display: block;
  color: var(--violet);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.contact-panel h2 {
  margin: 0 auto;
}
.contact-panel p {
  max-width: 440px;
  margin: 1rem auto 1.6rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .moon-system { transform: none !important; }
}

@media (max-width: 860px) {
  nav { height: 64px; }
  .nav-links { display: none; }
  .hero {
    padding-top: 6rem;
  }
  .hero-grid,
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .hero-orbital {
    order: -1;
    min-height: 300px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .signal-grid {
    grid-template-columns: 1fr;
  }
  .signal-card,
  .signal-card:nth-child(2),
  .signal-card:nth-child(3) {
    min-height: auto;
    margin-top: 0;
  }
  .card-kicker {
    margin-bottom: 1.4rem;
  }
  .studio-text {
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-logo { font-size: 0.92rem; }
  .nav-cta { display: none; }
  h1 { font-size: clamp(3rem, 16vw, 4.2rem); }
  .hero-orbital {
    min-height: 250px;
  }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
