@font-face {
  font-family: Inter;
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #000;
  --text: #f4f4f4;
  --mute: #8a8a8a;
  --dim: #5c5c5c;
  --line: #ffffff22;
  --gutter: clamp(22px, 4.2vw, 64px);
  --col: min(43rem, calc(100% - 2 * var(--gutter)));
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 1rem/1.55 Inter, system-ui, sans-serif;
}
h1, h2, p, figure, ol, ul, address { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }
a:focus-visible, button:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 4px;
}
img, svg, canvas { display: block; }
.skip {
  position: absolute; z-index: 8; top: 8px; left: 8px;
  padding: 8px 12px; background: #fff; color: #000;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.site-header {
  position: absolute; z-index: 3;
  inset: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter) 0;
  pointer-events: none;
}
.site-header::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 150px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.7) 0%, rgba(0,0,0,.28) 58%, transparent 100%);
  z-index: -1;
}
.site-header a { pointer-events: auto; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.9);
  font-size: .875rem;
  font-weight: 300;
  letter-spacing: .01em;
  line-height: 1;
}
.brand:hover { color: #fff; }
.brand-mark {
  flex: none;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("symbol.svg") center / contain no-repeat;
  mask: url("symbol.svg") center / contain no-repeat;
}
.wordmark { white-space: nowrap; }
nav { display: flex; gap: clamp(22px, 3vw, 40px); }
nav a {
  color: rgba(255,255,255,.9);
  font-size: .875rem;
  font-weight: 300;
  letter-spacing: .01em;
  text-shadow: 0 1px 12px rgba(0,0,0,.55);
}
nav a:hover { color: #fff; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
  background: #000;
}
.moon-canvas, .moon-slot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.moon-canvas { z-index: 0; opacity: 0; }
.moon-slot { z-index: 0; overflow: hidden; }
.moon-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #000 0 22%, #0000 52%),
    radial-gradient(circle at 64.5% 47%, #fff0 46%, #000 78%);
}
.moon-slot img {
  position: absolute;
  width: 96vh; height: 96vh;
  max-width: none;
  left: 67.5%;
  top: 44.5%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(.4) brightness(.78) contrast(1.18);
}
.hero.has-moon .moon-canvas { opacity: 1; }
.hero.has-moon .moon-slot { opacity: 0; }

/* Keep typography readable if the dark limb sits near the copy. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.75) 16%, rgba(0,0,0,.28) 32%, transparent 46%);
}

.hero-copy {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  width: var(--col);
  min-height: 100vh; min-height: 100svh;
  margin-left: var(--gutter);
  padding: 110px 0 clamp(36px, 6vh, 64px);
}
.kicker {
  color: #9a9a9a;
  font-size: .95rem;
  font-weight: 300;
  letter-spacing: .04em;
}
.deck {
  margin-top: 18px;
  max-width: 36rem;
  color: #9a9a9a;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  font-weight: 300;
  letter-spacing: .01em;
  line-height: 1.45;
}
h1 {
  margin-top: 18px;
  font-size: clamp(2.75rem, 5.7vw, 5.15rem);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.h1-line { white-space: nowrap; }

.stages {
  list-style: none;
  padding: 0;
  margin-top: clamp(28px, 4vh, 46px);
  border-top: 1px solid var(--line);
}
.stages li { border-bottom: 1px solid var(--line); }
.stages button {
  display: grid;
  grid-template-columns: 6.4rem minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 15px 0 16px;
  border: 0;
  background: none;
  color: var(--dim);
  font: inherit;
  font-size: .97rem;
  font-weight: 300;
  letter-spacing: .01em;
  text-align: left;
  cursor: pointer;
}
.stages button[aria-current="true"] { color: var(--text); }
.stage-label { display: block; }

.section {
  position: relative; z-index: 2;
  width: var(--col);
  margin-left: var(--gutter);
  padding: clamp(72px, 10vw, 120px) 0;
  border-top: 1px solid var(--line);
  background: #000;
}
h2 {
  font-size: .95rem;
  font-weight: 300;
  color: var(--mute);
  letter-spacing: .04em;
  margin-bottom: 28px;
}
.prose { display: grid; gap: 16px; max-width: 38rem; }
.lead {
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.25;
}
.prose p:not(.lead) { color: var(--mute); font-weight: 300; }
.prose a { color: var(--text); }
.prose a:hover { text-decoration: underline; text-underline-offset: 4px; }

.rows { list-style: none; padding: 0; border-top: 1px solid var(--line); font-style: normal; }
.row, a.row {
  display: grid;
  grid-template-columns: minmax(7.5rem, .36fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 300;
}
#products .row, #products a.row {
  grid-template-columns: minmax(10rem, .7fr) minmax(0, 1fr) auto;
}
.row-label { color: var(--mute); }
a.row:hover .row-label,
a.row:hover .row-copy { color: #fff; }
.row-copy { color: var(--text); }
.row-meta { color: var(--dim); font-size: .875rem; }

.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 10px 28px;
  padding: 22px var(--gutter) 32px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: .8125rem;
  font-weight: 300;
}
.site-footer a { color: var(--mute); }
.site-footer a:hover { color: #fff; }
.footer-left {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.site-footer .brand { color: var(--mute); }
.site-footer .brand:hover { color: #fff; }
.site-footer .brand-mark { width: 18px; height: 18px; }

@media (max-width: 820px) {
  .hero::before {
    background: none;
  }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 30%, #000 58%);
  }
  .hero-copy {
    width: min(100% - 2 * var(--gutter), 36rem);
    justify-content: flex-end;
    padding-bottom: clamp(28px, 6vh, 48px);
  }
  h1 { font-size: clamp(2.35rem, 9.8vw, 3.2rem); }
  .stages button, .row, a.row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .stages button { padding-block: 13px; }
  .moon-slot img { width: min(88vw, 50vh); height: min(88vw, 50vh); left: 58%; top: 23.5%; }
}

@media (max-width: 600px) {
  nav { gap: 16px; }
  .brand-mark { width: 18px; height: 18px; }
  .section { width: calc(100% - 2 * var(--gutter)); }
}

@media (prefers-reduced-motion: reduce) {
  .moon-canvas { transition: none; }
}
