@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/vendor/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("/vendor/fonts/martian-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #030908;
  --text: #eef3f1;
  --dim: #a3b4b0;
  --faint: #7d8f8a;
  --accent: #6fd3cc;
  --line: rgba(238, 243, 241, 0.14);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(20px, 4.5vw, 64px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
::selection { background: rgba(111, 211, 204, 0.3); color: var(--text); }

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1200ms var(--ease-out);
  pointer-events: none;
}
#stage.ready { opacity: 1; }

/* Shown only when WebGL is not available. */
.fallback {
  display: none;
  position: fixed;
  right: 0;
  top: 50%;
  width: min(62vw, 1100px);
  transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
.no-webgl .fallback { display: block; }

.page {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: max(var(--gutter), env(safe-area-inset-top)) var(--gutter) max(28px, env(safe-area-inset-bottom));
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 680;
  letter-spacing: -0.02em;
}
.logo { width: 28px; height: 28px; }
.logo .b { fill: var(--text); }
.logo .c { fill: var(--accent); }

.copy {
  align-self: center;
  max-width: 640px;
  padding: 48px 0;
}
h1 {
  margin: 0;
  font-size: clamp(40px, 4.1vw, 68px);
  line-height: 1.04;
  font-weight: 660;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede {
  margin: 26px 0 0;
  max-width: 40ch;
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.5;
  color: var(--dim);
  text-wrap: pretty;
}
.cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--text);
  color: #0b100f;
  font-size: 17px;
  font-weight: 620;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.soon {
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #f7faf9; }
}

@media (min-width: 1600px) {
  .copy { max-width: 780px; }
}

/* Phones and narrow windows: the mark sits on top, the words below. */
@media (max-width: 820px) {
  .page { grid-template-rows: auto 1fr auto; }
  .copy { grid-row: 3; align-self: end; padding: 0 0 36px; }
  h1 { font-size: clamp(32px, 8.4vw, 60px); }
  .lede { font-size: 17px; margin-top: 18px; }
  .cta { margin-top: 28px; gap: 18px; }
  .btn { height: 48px; font-size: 16px; }
  .fallback { top: 8vh; width: 100vw; height: 46vh; object-fit: cover; object-position: 78% 50%; transform: none; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  #stage { transition: opacity 300ms ease; }
}
