@font-face{font-family:Jost;src:url(fonts/jost.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Instrument Serif";src:url(fonts/instrument-serif-italic.woff2) format("woff2");font-style:italic;font-weight:400;font-display:swap}
@font-face{font-family:Manrope;src:url(fonts/manrope.woff2) format("woff2");font-weight:200 800;font-display:swap}

:root{
  color-scheme:dark;
  --ground:#02040d;
  --ink:#f3f6fe;      /* wordmark */
  --line:#e6ecfa;     /* the line */
  --quiet:#c9d3ec;    /* status, footer */
  --dev:#9eafd6;      /* .dev suffix */
  --ember:#ffcb8e;    /* forming star */
  --ease-out:cubic-bezier(.22,.7,.2,1);
  --ease-settle:cubic-bezier(.16,1,.3,1);
}
*{box-sizing:border-box;margin:0}
html,body{height:100%;background:var(--ground);color:var(--ink);overflow:hidden}
body{font-family:Manrope,system-ui,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}

/* The CSS nebula: what you see with JS off, before WebGL, or without it.
   ridge.svg is the cliff (lit rim over dark dust); the gradients are the sky and a few stars. */
.fb{position:fixed;inset:0;background:
  url(ridge.svg) 100% 100%/100% 100% no-repeat,
  radial-gradient(circle 2px at 72% 30%,#fff,rgba(220,232,255,0)),
  radial-gradient(circle 1.6px at 88% 18%,#e8f0ff,rgba(220,232,255,0)),
  radial-gradient(circle 1.4px at 47% 12%,#ffe9cf,rgba(255,233,207,0)),
  radial-gradient(circle 1.4px at 93% 47%,#dfe8ff,rgba(220,232,255,0)),
  radial-gradient(circle 1.2px at 57% 44%,#fff,rgba(255,255,255,0)),
  radial-gradient(ellipse 38% 34% at 70% 52%,rgba(90,140,255,.42),rgba(50,80,220,.16) 50%,rgba(30,40,160,0) 78%),
  radial-gradient(ellipse 30% 26% at 82% 22%,rgba(70,110,255,.26),rgba(40,60,200,0) 72%),
  radial-gradient(ellipse 52% 46% at 18% 30%,rgba(1,2,10,.92),rgba(1,2,10,0) 72%),
  linear-gradient(#03061a,#081038 58%,#050a24)}
.js .fb{opacity:0}
.js.nogl .fb{opacity:1;transition:opacity 1.6s ease}

canvas{position:fixed;inset:0;width:100%;height:100%;display:block}
.nogl canvas{display:none}

main{position:fixed;left:clamp(24px,7vw,120px);top:clamp(64px,17vh,180px);max-width:min(44rem,88vw)}
.mark{font:250 clamp(54px,9vw,150px)/.95 Jost,system-ui,sans-serif;letter-spacing:.005em;color:var(--ink)}
.mark .dev{font-weight:400;font-size:.24em;letter-spacing:.08em;color:var(--dev);margin-left:.1em}
.line{margin-top:.55em;font:italic 400 clamp(22px,2.5vw,38px)/1.2 "Instrument Serif",Georgia,serif;color:var(--line);letter-spacing:.005em}
.status{margin-top:2.1rem;display:flex;align-items:center;gap:.85em;font:500 12px/1 Manrope,system-ui,sans-serif;letter-spacing:.22em;text-transform:uppercase;color:var(--quiet)}
.dot{width:7px;height:7px;flex:none;border-radius:50%;background:var(--ember);box-shadow:0 0 9px 2px rgba(255,170,90,.55);animation:breathe 7s ease-in-out infinite}
@keyframes breathe{0%,100%{opacity:.4;transform:scale(.78)}50%{opacity:1;transform:scale(1.12)}}

footer{position:fixed;left:clamp(24px,7vw,120px);bottom:calc(18px + env(safe-area-inset-bottom));font:500 12px/1 Manrope,system-ui,sans-serif;letter-spacing:.22em;text-transform:uppercase}
footer a{display:inline-block;padding:10px 0;color:var(--quiet);text-decoration:none}
footer a:hover,footer a:focus-visible{color:#fff;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
footer a:focus-visible{outline:1px solid rgba(230,236,250,.6);outline-offset:3px;border-radius:2px}

/* Arrival: only when JS runs. Nothing moves until the light has reached the crest (.go). */
.js .mark,.js .line,.js .status,.js footer{opacity:0;animation:failsafe 1.2s ease-out 8s forwards}
.js .mark{filter:blur(7px);transform:translateY(12px)}
.js .line{transform:translateY(9px)}
.js .status{transform:translateY(6px)}
@keyframes failsafe{to{opacity:1;filter:none;transform:none}}
.js.go .mark,.js.go .line,.js.go .status,.js.go footer{animation:none;opacity:1;filter:none;transform:none;
  transition:opacity 1.4s var(--ease-out),filter 1.6s var(--ease-out),transform 1.8s var(--ease-settle)}
.js.go .line{transition-delay:.6s}
.js.go .status{transition-delay:1.1s}
.js.go footer{transition-delay:1.6s}

/* Portrait (phones, tall windows): text at the top, the massif below */
@media (max-aspect-ratio:1/1){
  main{left:24px;right:24px;top:clamp(52px,8.5vh,96px)}
  .mark{font-size:clamp(54px,16.5vw,104px)}
  .line{font-size:clamp(22px,6.6vw,36px)}
  .status{margin-top:1.6rem}
  footer{left:24px}
  .fb{background:
    url(ridge.svg) 100% 100%/100% 100% no-repeat,
    radial-gradient(circle 2px at 80% 47%,#fff,rgba(220,232,255,0)),
    radial-gradient(circle 1.4px at 22% 52%,#ffe9cf,rgba(255,233,207,0)),
    radial-gradient(circle 1.4px at 90% 31%,#dfe8ff,rgba(220,232,255,0)),
    radial-gradient(ellipse 70% 30% at 62% 56%,rgba(90,140,255,.40),rgba(50,80,220,.15) 50%,rgba(30,40,160,0) 78%),
    radial-gradient(ellipse 90% 34% at 30% 14%,rgba(1,2,10,.9),rgba(1,2,10,0) 74%),
    linear-gradient(#03061a,#081038 60%,#050a24)}
}

@media (prefers-reduced-motion:reduce){
  .js .mark,.js .line,.js .status,.js footer{opacity:1;filter:none;transform:none;animation:none;transition:none}
  .dot{animation:none;opacity:.95}
  /* no swap from the CSS ridge to the WebGL frame: ground colour + text, then the nebula fades in once */
  .js canvas{opacity:0;transition:opacity .3s ease}
  .js.ready canvas{opacity:1}
}

/* 404: CSS only */
.nf main{top:auto;bottom:clamp(220px,50vh,520px)}
.nf .line a{color:inherit}
.nf .home{margin-top:2.1rem;font:500 12px/1 Manrope,system-ui,sans-serif;letter-spacing:.22em;text-transform:uppercase}
.nf .home a{display:inline-block;padding:10px 0;color:var(--quiet);text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
.nf .home a:hover,.nf .home a:focus-visible{color:#fff}
@media (max-aspect-ratio:1/1){
  .nf main{top:clamp(52px,8.5vh,96px);bottom:auto}
}
