:root {
  --bg: #05070d;
  --bg-raised: #0b0f19;
  --line: #1c2333;
  --line-soft: #131824;
  --line-strong: #5b6578;
  --text: #f4f6fa;
  --text-soft: #d5d9e2;
  --text-muted: #9aa2b1;
  --pink: #f8c8de;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wordmark: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.7 var(--mono);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3 { font-weight: 500; color: var(--text); }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: max(100svh, 620px);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .8s ease;
}

.hero-canvas.is-ready { opacity: 1; }

.hero-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left bottom;
}

.nav {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 32px;
}

/* Wordmark. Each line's padding-left cancels its trailing letter-spacing so all three stay centered. */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--wordmark);
  color: #fff;
}

.brand-name {
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: .4em;
}

nav { display: flex; gap: 24px; padding-top: 4px; font-size: 14px; color: var(--text-soft); }
nav a:hover { color: #fff; }

.hero-copy { position: relative; padding-top: 56px; }

h1 {
  max-width: 15.5em;
  font-size: clamp(32px, 3.06vw, 44px);
  line-height: 1.15;
}

.lede {
  max-width: min(580px, 44vw);
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-soft);
  text-shadow: 0 0 10px rgba(3, 4, 15, .95), 0 0 3px rgba(3, 4, 15, .95);
}

.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.btn-primary { background: var(--pink); color: var(--bg); font-weight: 600; }
.btn-primary:hover { background: #fcdcea; }
.btn-ghost { border: 1px solid var(--line-strong); color: #fff; }
.btn-ghost:hover { border-color: #fff; }

/* Sections */
.band { padding-block: 96px; }
.band-ruled { border-top: 1px solid var(--line-soft); }

.eyebrow {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pink);
}

h2 { font-size: 32px; line-height: 1.25; }
.h-narrow { max-width: 680px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-grid li {
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h3 { font-size: 18px; line-height: 1.3; }

.service-grid p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.stat-grid strong {
  display: block;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.2;
  font-variant-ligatures: none;
}

.stat-grid p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.about {
  background: var(--bg-raised);
  border-block: 1px solid var(--line-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 586fr 518fr;
  gap: 48px;
}

.about-body { margin-top: 16px; color: var(--text-soft); }

.creds {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.name-note {
  align-self: center;
  padding-left: 32px;
  border-left: 1px solid var(--line-strong);
  color: var(--text-soft);
}

.contact { padding-block: 112px; }
.contact h2 { max-width: 660px; font-size: 36px; line-height: 1.22; }
.contact-line { margin: 20px 0 24px; color: var(--text-muted); }

.footer { padding-block: 32px; font-size: 12px; color: var(--text-muted); }

/* The page ends in a full-width rule, like the sections above it. */
footer { position: relative; }
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 1px;
  background: var(--line-soft);
  transform: translateX(-50%);
}

body { overflow-x: clip; }

/* Below this width the headline would cover the constellation, so the sky moves under the copy. */
@media (max-width: 1000px) {
  .hero {
    display: block;
    padding-bottom: 440px;
    background: #03040f;
  }

  .hero-sky {
    inset: auto 0 0;
    height: 430px;
    object-position: 59.4% bottom;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 36px);
    mask-image: linear-gradient(to bottom, transparent, #000 36px);
  }

  .nav { position: relative; top: 0; padding-top: 24px; }
  .hero-copy { padding-top: 56px; }
  .lede { max-width: 580px; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .name-note { justify-self: start; }
}

@media (max-width: 640px) {
  .nav { flex-direction: column; align-items: flex-start; }
  nav { padding-top: 0; }
  h2 { font-size: 26px; }
  .contact h2 { font-size: 28px; }
  .band { padding-block: 72px; }
  .contact { padding-block: 80px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid li { padding: 24px; }
  .stat-grid strong { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
