:root {
  --bg: #07080d;
  --text: #ece8e1;
  --muted: #8c8a86;
  --faint: rgba(236, 232, 225, 0.1);
  --hair: rgba(236, 232, 225, 0.08);
  --line: rgba(236, 232, 225, 0.12);
  --paper: rgba(236, 232, 225, 0.035);
  --gain: #9cbaa4;
  --loss: #c48989;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Space Grotesk", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -18%, rgba(78, 86, 140, 0.28), transparent 58%),
    radial-gradient(ellipse 45% 35% at 92% 88%, rgba(46, 58, 110, 0.16), transparent 55%),
    radial-gradient(ellipse 35% 28% at 8% 70%, rgba(90, 70, 110, 0.08), transparent 50%);
}

#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.5) 100%);
}

::selection {
  background: rgba(236, 232, 225, 0.18);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--text);
}

main,
.sheet {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.page {
  width: min(42rem, calc(100% - 2.5rem));
  max-width: 100%;
  margin: 0 auto;
  padding: 8vh 0 4rem;
  overflow-wrap: break-word;
}

.mark {
  width: 7px;
  height: 7px;
  margin: 0 auto 2.75rem;
  background: var(--text);
  transform: rotate(45deg);
  transform-origin: center;
  box-shadow: 0 0 16px rgba(236, 232, 225, 0.4);
}

.who {
  margin: 0 auto 3.25rem;
  max-width: 36rem;
  min-width: 0;
  font-family: var(--serif);
  font-size: clamp(1.22rem, 2.4vw + 0.85rem, 1.85rem);
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: break-word;
  letter-spacing: -0.01em;
  transform-origin: center;
}

.who em {
  font-style: italic;
}

.kicker {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
  text-align: center;
  text-wrap: balance;
  line-height: 1.45;
  overflow-wrap: break-word;
  transform-origin: center;
}

.signup {
  display: flex;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 2px;
  overflow: hidden;
  transform-origin: center;
  transition: border-color 0.2s ease;
}

.signup:focus-within {
  border-color: rgba(236, 232, 225, 0.42);
}

.signup label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 1.05rem 1.15rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  outline: none;
}

.signup input[type="email"]::placeholder {
  color: rgba(236, 232, 225, 0.38);
}

.signup button {
  flex-shrink: 0;
  margin: 0;
  padding: 1.05rem 1.45rem;
  border: 0;
  background: var(--text);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.signup button:hover {
  background: #fff;
}

.signup button:focus-visible,
.signup input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -2px;
}

.signup.is-busy {
  opacity: 0.65;
  pointer-events: none;
}

.signup-status {
  display: none;
  max-width: 36rem;
  margin: 0.75rem auto 0;
  font-size: 0.95rem;
  text-align: center;
}

.signup-status.is-on {
  display: block;
}

.signup-status.is-ok {
  color: var(--gain);
}

.signup-status.is-err {
  color: var(--loss);
}

.fineprint {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.fineprint a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  color: var(--muted);
}

.fineprint a:hover {
  color: var(--text);
}

.setup {
  display: none;
  max-width: 36rem;
  margin: 0.9rem auto 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.setup.is-on {
  display: block;
}

.block {
  margin-top: 5.5rem;
}

.block[hidden] {
  display: none;
}

.section-label {
  margin: 0 0 1.15rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.video-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 2px;
  overflow: visible;
  border-radius: 3px;
  background: #05060a;
}

.video-snake {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.video-snake-track,
.video-snake-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-snake-track {
  stroke: rgba(236, 232, 225, 0.14);
  stroke-width: 1.25;
}

.video-snake-line {
  stroke: #ece8e1;
  stroke-width: 2;
  stroke-dasharray: 160 840;
  animation: snake-chase 2.8s linear infinite;
}

.video-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1px;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.mast,
.foot {
  position: relative;
  z-index: 3;
  width: min(42rem, calc(100% - 2.5rem));
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  overflow-x: clip;
}

.mast {
  padding: 1.6rem 0 0.85rem;
  border-bottom: 0.5px solid var(--hair);
}

.foot {
  margin-top: 5.5rem;
  padding: 1.6rem 0 2.8rem;
  border-top: 0.5px solid var(--hair);
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.2rem 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.links li {
  flex: 0 1 auto;
  max-width: 100%;
}

.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 0.55rem;
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: rgba(236, 232, 225, 0.92);
  text-decoration: underline;
  text-decoration-color: rgba(236, 232, 225, 0.35);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.28em;
  transform-origin: center;
  transition:
    color 0.18s ease,
    transform 0.18s ease,
    text-shadow 0.18s ease,
    text-decoration-color 0.18s ease;
}

.links a:hover,
.links a:focus-visible {
  color: #fff;
  transform: scale(1.08);
  text-decoration-color: #fff;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.55),
    0 0 22px rgba(236, 232, 225, 0.9);
}

.links a:focus-visible {
  outline: 2px solid rgba(236, 232, 225, 0.7);
  outline-offset: 3px;
  border-radius: 2px;
}

.links:empty {
  display: none;
}

@keyframes link-idle {
  0%,
  100% {
    text-shadow: 0 0 0 transparent;
  }

  50% {
    text-shadow: 0 0 10px rgba(236, 232, 225, 0.16);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .links a {
    animation: link-idle 5.5s ease-in-out infinite;
  }

  html.is-launching .links a {
    animation: none;
  }

  .links a:hover,
  .links a:focus-visible {
    animation: none;
  }
}

.sheet {
  width: min(36rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 12vh 0 4rem;
}

.back {
  display: inline-block;
  margin-bottom: 2.5rem;
  padding: 0.35rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.back:hover {
  color: var(--text);
}

.sheet h1 {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.sheet p,
.sheet li {
  color: rgba(236, 232, 225, 0.82);
  font-size: 0.98rem;
  line-height: 1.65;
}

.sheet a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.sheet a.back {
  text-decoration: none;
}

.sheet ul {
  padding-left: 1.15rem;
}

.thanks {
  text-align: center;
}

.thanks h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

html.is-launching .mark {
  animation: launch-mark 0.4s cubic-bezier(0.22, 1.35, 0.36, 1) both;
}

html.is-launching .who {
  animation: launch-who 0.68s cubic-bezier(0.22, 1.2, 0.28, 1) 0.08s both;
}

html.is-launching .kicker {
  animation: launch-rise 0.46s cubic-bezier(0.22, 1.15, 0.36, 1) 0.32s both;
}

html.is-launching .signup {
  animation: launch-rise 0.46s cubic-bezier(0.22, 1.15, 0.36, 1) 0.44s both;
}

html.is-launching .fineprint {
  animation: launch-rise 0.4s cubic-bezier(0.22, 1.1, 0.36, 1) 0.56s both;
}

@keyframes launch-who {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  58% {
    opacity: 1;
    transform: scale(1.06);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes launch-mark {
  0% {
    opacity: 0;
    transform: rotate(45deg) scale(0.35);
  }

  68% {
    opacity: 1;
    transform: rotate(45deg) scale(1.2);
  }

  100% {
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }
}

@keyframes launch-rise {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }

  62% {
    opacity: 1;
    transform: scale(1.02) translateY(0);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes snake-chase {
  to {
    stroke-dashoffset: -1000;
  }
}


@media (max-width: 540px) {
  .page {
    padding-top: 5vh;
  }

  .signup {
    flex-direction: column;
  }

  .signup button {
    width: 100%;
    padding: 0.95rem 1.15rem;
  }

  .links {
    gap: 0.1rem 0.35rem;
  }

  .links a {
    font-size: 1.22rem;
    padding: 0.35rem 0.42rem;
  }
}

@media (max-width: 430px) {
  .page,
  .mast,
  .foot {
    width: min(42rem, calc(100% - 1.75rem));
  }

  .who {
    margin-bottom: 2.5rem;
  }

  .block {
    margin-top: 4rem;
  }

  .foot {
    margin-top: 4rem;
  }
}

@media (max-width: 360px) {
  .page,
  .mast,
  .foot {
    width: min(42rem, calc(100% - 1.25rem));
  }

  .links {
    gap: 0.05rem 0.18rem;
  }

  .links a {
    font-size: 1.2rem;
    padding: 0.28rem 0.3rem;
  }

  .signup input[type="email"],
  .signup button {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }
}

@media (min-width: 1440px) {
  .page {
    padding-top: 10vh;
  }
}

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

  .signup,
  .signup button,
  .links a {
    transition: none;
    animation: none;
  }

  .links a:hover,
  .links a:focus-visible {
    transform: none;
  }

  html.is-launching .mark,
  html.is-launching .who,
  html.is-launching .kicker,
  html.is-launching .signup,
  html.is-launching .fineprint {
    animation: none;
  }

  .video-snake-line {
    animation: none;
    stroke-dasharray: none;
    stroke: rgba(236, 232, 225, 0.38);
    stroke-width: 1.25;
  }
}
