:root {
  /* Typography notes: Space Grotesk (Google Fonts), derived from Space Mono but proportionally spaced. Its slightly mechanical character supports calm precision. Interactive hover states use IntersectionObserver` or `scroll` event. By 80vh the wave settles; reveal uses `threshold: 0.15`. Inter (Google Fonts). */
  --void: #0a0a0a;
  --ink: #2a2a2a;
  --graphite: #5a5a5a;
  --ash: #8a8a8a;
  --mist: #c0c0c0;
  --rule: #d0d0d0;
  --fog: #e0e0e0;
  --silence: #f4f4f4;
  --absence: #fafafa;
  --grid-x: 50vw;
  --grid-y: 50vh;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--silence);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background-color: var(--silence);
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.03) 0, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.03) 0, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 64px);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--focus-opacity, 0);
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.07) 0, rgba(0,0,0,0.07) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.07) 0, rgba(0,0,0,0.07) 1px, transparent 1px, transparent 64px);
  mask-image: radial-gradient(circle 320px at var(--grid-x) var(--grid-y), #000 0, transparent 72%);
  -webkit-mask-image: radial-gradient(circle 320px at var(--grid-x) var(--grid-y), #000 0, transparent 72%);
}

main {
  position: relative;
  z-index: 1;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--void);
  z-index: 999;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0 4rem;
}

.hero-copy {
  position: absolute;
  top: calc(50% - 112px);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--void);
}

.waveform {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100vw;
  height: 240px;
  transform: translateY(-50%);
  overflow: visible;
}

#wave-path {
  fill: none;
  stroke: var(--mist);
  stroke-width: 1;
  stroke-linecap: round;
}

.hero-subtitle {
  position: absolute;
  left: 50%;
  top: calc(50% + 104px);
  transform: translateX(-50%);
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
  white-space: nowrap;
}

.content-section,
.site-footer {
  width: min(680px, calc(100vw - 8rem));
  margin: 0 auto;
  padding: 128px 0 0;
}

.content-section.alternate {
  background: linear-gradient(to right, transparent 0, var(--absence) 18%, var(--absence) 82%, transparent 100%);
}

.dot-grid {
  width: 18px;
  height: 18px;
  display: grid;
  grid-template-columns: repeat(3, 2px);
  grid-auto-rows: 2px;
  gap: 6px;
  margin: 0 auto 128px;
}

.dot-grid span {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--mist);
}

.section-rule {
  width: 100%;
  height: 1px;
  margin: 0 0 48px;
  background: var(--fog);
}

.section-label {
  margin: 0 0 48px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ash);
}

.section-content {
  padding-bottom: 128px;
  border-bottom: 1px solid var(--fog);
}

h2 {
  margin: 0 0 32px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--void);
}

p {
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.75;
  color: var(--ink);
}

.section-content p {
  margin: 0 0 24px;
}

.section-content p:last-child {
  margin-bottom: 0;
}

.reveal {
  opacity: 0;
  transition: opacity 1200ms ease-out;
}

.reveal.revealed {
  opacity: 1;
}

.site-footer {
  padding-bottom: 128px;
  text-align: center;
}

.site-footer .dot-grid {
  margin-bottom: 64px;
}

.site-footer .section-label {
  margin-bottom: 32px;
  text-align: left;
}

.site-footer p:last-child {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
}

@media (max-width: 640px) {
  body {
    background-image:
      repeating-linear-gradient(90deg, rgba(0,0,0,0.03) 0, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 48px),
      repeating-linear-gradient(0deg, rgba(0,0,0,0.03) 0, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 48px);
  }

  body::before {
    background-image:
      repeating-linear-gradient(90deg, rgba(0,0,0,0.07) 0, rgba(0,0,0,0.07) 1px, transparent 1px, transparent 48px),
      repeating-linear-gradient(0deg, rgba(0,0,0,0.07) 0, rgba(0,0,0,0.07) 1px, transparent 1px, transparent 48px);
  }

  .hero {
    padding: 0 1.5rem;
  }

  .hero-copy {
    top: calc(50% - 96px);
  }

  .waveform {
    height: 180px;
  }

  .hero-subtitle {
    top: calc(50% + 88px);
    font-size: 0.72rem;
  }

  .content-section,
  .site-footer {
    width: calc(100vw - 3rem);
    padding-top: 80px;
  }

  .dot-grid {
    margin-bottom: 80px;
  }

  .section-content {
    padding-bottom: 80px;
  }

  .site-footer {
    padding-bottom: 80px;
  }
}
