@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #000;
  --text: #fff;
  --body: #c4c4c4;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --line: rgb(255 255 255 / .22);
  --shadow: 0 4px 14px rgb(0 0 0 / .16);
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --display: "Geist Pixel Circle", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 5; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Hero: one viewport — nav, statement, steps */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px); overflow: hidden; isolation: isolate; }
.bg { position: absolute; inset: 0; z-index: -1; background: #000; overflow: hidden; }
.sky { position: absolute; inset: 0; background:
  radial-gradient(90% 38% at 50% 0%, #9cc0c1 0%, #4d7a80 45%, rgb(36 72 77 / 0) 100%), linear-gradient(#24484d 0%, #1a363a 45%, #0d1a1d 75%); }
#field { position: absolute; inset: 0 0 45% 0; width: 100%; height: 55%; opacity: .25; }
.dune { position: absolute; left: 50%; top: 44%; width: 190vw; height: 120vh; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, #020303 70%, #0c1a1c 82%, #3f6e74 91%, rgb(143 180 182 / 0) 100%);
  filter: blur(4px); animation: breathe 16s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: translateY(-3%) scaleX(1.04); } }
.grain { position: absolute; inset: -50%; opacity: .22; mix-blend-mode: overlay; background-size: 180px; animation: grain .9s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(4%, -6%); } 60% { transform: translate(-3%, 7%); } 80% { transform: translate(6%, -2%); } 100% { transform: translate(-2%, 4%); } }
.fade { position: absolute; inset: auto 0 0; height: 28%; background: linear-gradient(transparent, #000); }

.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 900px; padding-block: 40px; text-align: center; }
.tag { margin: 0 0 clamp(16px, 2.5vh, 26px); padding: 8px 16px; border-radius: 999px; background: var(--pill-dark); border: 1px solid rgb(255 255 255 / .4); color: #c4c2c3; font-size: clamp(12px, 1.4vw, 13.5px); font-weight: 500; line-height: 1.2; }
h1 { margin: 0; font: 400 clamp(30px, 6.2vw, 80px)/1.12 var(--display); letter-spacing: 0; text-shadow: 0 2px 18px rgb(8 30 34 / .45); }
h1 .line { display: block; white-space: nowrap; }
.sub { margin: clamp(16px, 2.6vh, 24px) 0 8px; font-size: clamp(16px, 1.7vw, 19px); color: #e6e6e6; }
.intro { margin: 0; max-width: min(520px, 92%); text-wrap: balance; color: #dfe7e7; font-size: clamp(14.5px, 1.4vw, 16.5px); line-height: 1.55; }
.glow { display: inline-block; margin-top: clamp(22px, 3.4vh, 32px); padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px); border: 0; border-radius: 999px; background: #fff; color: #000; font: 600 clamp(13.5px, 1.5vw, 14.5px) var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .15), 0 0 22px rgb(255 255 255 / .32), 0 0 44px rgb(255 255 255 / .12); transition: transform .25s var(--ease), box-shadow .25s; }
.glow:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 0 1px rgb(255 255 255 / .25), 0 0 28px rgb(255 255 255 / .45), 0 0 60px rgb(255 255 255 / .2); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; width: 100%; max-width: 920px; margin: 0; padding: 0 0 8px; list-style: none; text-align: center; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.steps .g { font: 400 clamp(20px, 2.6vw, 28px)/1.2 var(--display); margin-bottom: 6px; }
.steps strong { font-size: clamp(16px, 1.8vw, 20px); font-weight: 500; letter-spacing: -.02em; }
.steps span:last-child { color: var(--muted); font-size: clamp(11.5px, 1.2vw, 12.5px); line-height: 1.4; }

/* Entrance */
.anim { opacity: 0; animation: reveal .85s var(--ease) var(--d, 0s) forwards; }
h1 .line { opacity: 0; animation: lineIn .85s var(--ease) var(--d) forwards; }
h1.typing .line { opacity: 1; animation: none; display: grid; justify-content: center; }
h1 .ghost, h1 .out { grid-area: 1 / 1; text-align: left; }
h1 .ghost { visibility: hidden; }
h1 .caret::after { content: ""; display: inline-block; width: .5em; height: .8em; margin-left: .08em; background: #fff; vertical-align: -.05em; animation: blink .9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes reveal { from { opacity: 0; transform: translateY(22px) scale(.98); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes lineIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Reading column */
.text { max-width: 660px; margin: 0 auto; padding: 0 16px; }
main > .text { padding-top: clamp(72px, 12vh, 120px); }
section { margin-bottom: 88px; scroll-margin-top: 24px; }
h2 { margin: 0 0 22px; font: 400 clamp(24px, 3.2vw, 32px)/1.25 var(--display); letter-spacing: -.03em; }
p { margin: 0 0 1em; }
section p { color: var(--body); }

form { margin-top: 40px; display: grid; }
label { margin-top: 20px; font-size: .95rem; font-weight: 500; color: #eee; }
.opt { color: var(--muted); font-weight: 400; }
input, textarea { font: inherit; color: #fff; background: transparent; border: 0; border-bottom: 1px solid rgb(255 255 255 / .35); border-radius: 0; padding: 8px 0; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-bottom: 2px solid #fff; padding-bottom: 7px; }
[aria-invalid="true"] { border-bottom-color: #ff8a80; }
.err { margin: 6px 0 0; color: #ff8a80 !important; font-size: .88rem; }
.err:empty, .status:empty { display: none; }
form .glow { justify-self: start; margin-top: 36px; }
button:disabled { opacity: .6; cursor: progress; }
.status { margin: 20px 0 0; color: #eee !important; font-size: .95rem; }

/* Closing: the hero's sky returns beneath the form */
.closing { margin: 0; padding: 48px 0 0; background: radial-gradient(130% 55% at 50% 100%, #4d7a80 0%, #2f5a60 20%, #1a363a 40%, #0d1a1d 60%, #000 80%); }
.foot { padding: 160px 16px 32px; color: #fff; font-size: .88rem; font-weight: 500; }

@media (max-width: 720px) {
  h1 { letter-spacing: -.02em; line-height: 1.1; font-size: clamp(26px, 9.8vw, 56px); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  body { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim, h1 .line { opacity: 1; animation: none; }
  .dune, .grain { animation: none; }
}
