* { box-sizing: border-box; }
body { margin: 0; font-family: "Helvetica Neue", Arial, sans-serif; color-scheme: dark; }
main { min-height: 100svh; display: grid; place-items: center; }
canvas {
  position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none;
  filter: saturate(.76);
  mask-image: radial-gradient(ellipse 65% 59% at 54% 48%, black 27%, #000c 65%, transparent 100%);
}
#invitation { position: relative; z-index: 1; width: min(380px, calc(100% - 48px)); text-align: center; animation: glitch-in .6s steps(1) both; }
.coming-soon {
  position: relative; margin: 0; font-size: clamp(32px, 8vw, 46px); font-weight: 200; line-height: 1;
  padding-left: .08em; letter-spacing: .08em; text-transform: uppercase; color: #f2f2ef;
  animation: flicker 7s steps(1) 2.5s infinite;
}
/* Accent: a flight path that traces itself in, ending in a navigation light. */
.accent { display: block; width: 228px; height: 38px; margin: 14px auto 28px; overflow: visible; filter: drop-shadow(0 0 6px #b4f02d55); }
.accent .reveal { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace .9s cubic-bezier(.3, .7, .2, 1) .45s forwards; }
.accent .light { opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: flare .6s ease-out 1.2s forwards, strobe 2.6s ease-out 2.6s infinite; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes flare { 0% { opacity: 0; transform: scale(0); } 40% { opacity: 1; transform: scale(2.2); } 100% { opacity: 1; transform: scale(1); } }
@keyframes strobe { 0%, 12%, 100% { opacity: 1; transform: scale(1); } 4% { opacity: 1; transform: scale(1.8); } }
form { display: flex; align-items: center; border-bottom: 1px solid #3a3f44; transition: border-color .25s; }
form:focus-within { border-color: #b4f02d; }
input, button { background: transparent; color: inherit; border: 0; }
input { min-width: 0; flex: 1; padding: 12px 0; font: inherit; font-size: 15px; }
input::placeholder { color: #8a9096; }
button { min-height: 44px; padding: 0 4px; font: inherit; cursor: pointer; }
form button { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #d7dbde; transition: color .2s; }
button:hover { color: #b4f02d; }
#result { margin: 14px 0 0; font-size: 14px; color: #9aa0a6; }
#result:empty { margin: 0; }
:focus-visible { outline: 1px solid #b4f02d; }
input:focus-visible { outline: none; }
@keyframes glitch-in {
  0% { opacity: 0; }
  10% { opacity: 1; transform: translateX(-6px); clip-path: inset(18% 0 55% 0); text-shadow: 3px 0 #ff2a2a, -3px 0 #2ad4ff; }
  20% { transform: translateX(5px); clip-path: inset(60% 0 8% 0); }
  30% { opacity: 0; }
  42% { opacity: 1; transform: none; clip-path: inset(0 0 68% 0); text-shadow: -2px 0 #ff2a2a, 2px 0 #2ad4ff; }
  56% { transform: translateX(-2px); clip-path: inset(38% 0 0 0); }
  72% { transform: none; clip-path: inset(0); text-shadow: 1px 0 #ff2a2a88, -1px 0 #2ad4ff88; }
  100% { opacity: 1; transform: none; clip-path: inset(0); text-shadow: none; }
}
/* Every few seconds the headline catches a brief signal fault. */
@keyframes flicker {
  0%, 93%, 100% { transform: none; text-shadow: none; opacity: 1; }
  94% { transform: translateX(-3px) skewX(-8deg); text-shadow: 2px 0 #ff2a2a, -2px 0 #2ad4ff; }
  95% { transform: translateX(2px); opacity: .55; }
  96% { transform: none; text-shadow: -1px 0 #ff2a2a, 1px 0 #2ad4ff; opacity: 1; }
}
@media (max-width: 650px) {
  canvas { mask-image: radial-gradient(ellipse 79% 44% at 50% 48%, black 24%, #000c 59%, transparent 100%); }
}
@media (prefers-reduced-motion: reduce) {
  #invitation, .coming-soon, .accent * { animation: none !important; }
  .accent .reveal { stroke-dashoffset: 0; }
  .accent .light { opacity: 1; }
}
