@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #07080c;
  --ink: #f3f4f7;
  --muted: #8d93a5;
  --faint: #5d6274;
  --accent-a: #6ee7c8;
  --accent-b: #6aa9ff;
  --accent-c: #a48bfa;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Slow ambient light behind the wordmark */
.glow {
  position: fixed;
  inset: -30%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 34% at 34% 44%, rgba(110, 231, 200, 0.13), transparent 70%),
    radial-gradient(40% 36% at 66% 54%, rgba(164, 139, 250, 0.14), transparent 70%),
    radial-gradient(30% 28% at 52% 48%, rgba(106, 169, 255, 0.10), transparent 70%);
  filter: blur(20px);
  opacity: 0;
  animation:
    glow-in 2.4s ease-out 0.1s forwards,
    drift 26s ease-in-out 2.5s infinite alternate;
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
}

h1 {
  margin: 0;
  font-weight: inherit;
  font-size: inherit;
}

.wordmark {
  display: block;
  font-size: clamp(3.5rem, 17vw, 10rem);
  line-height: 1;
  letter-spacing: -0.045em;
  /* optical centring: negative tracking leaves a gap on the right */
  padding-right: 0.045em;
  white-space: nowrap;
  opacity: 0;
  animation: wordmark-in 1.5s var(--ease) 0.15s forwards;
}

.wm-light {
  font-weight: 300;
  color: var(--ink);
}

.wm-bold {
  font-weight: 700;
  background: linear-gradient(100deg, var(--accent-a) 0%, var(--accent-b) 50%, var(--accent-c) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.rule {
  display: block;
  width: clamp(3rem, 7vw, 5rem);
  height: 1px;
  margin: clamp(1.5rem, 3.4vw, 2.5rem) auto clamp(1.25rem, 2.8vw, 2rem);
  background: linear-gradient(90deg, transparent, rgba(243, 244, 247, 0.55), transparent);
  transform: scaleX(0);
  animation: rule-in 1.1s var(--ease) 0.95s forwards;
}

.tagline {
  display: block;
  font-size: clamp(0.8rem, 1.75vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  /* compensate trailing tracking so the line is optically centred */
  padding-left: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  animation: rise-in 1.1s var(--ease) 1.2s forwards;
}

.about {
  max-width: 34rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  opacity: 0;
  animation: rise-in 1.2s var(--ease) 1.65s forwards;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(0.95rem, 1.5vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.5;
  color: #c3c7d3;
}

.about p {
  margin: 0;
  font-size: clamp(0.875rem, 1.4vw, 0.9688rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: balance;
}

footer {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.5rem 1.5rem 1.75rem;
  opacity: 0;
  animation: rise-in 1.2s var(--ease) 2.1s forwards;
}

address {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0;
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

address > * + *::before {
  content: "·";
  margin: 0 0.7em;
  color: var(--faint);
}

address a {
  color: #c3c7d3;
  text-decoration: none;
  transition: color 0.2s ease;
}

address a:hover,
address a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

address a:focus-visible {
  outline: 2px solid var(--accent-b);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (max-width: 860px) {
  address {
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
  }

  address > * + *::before {
    content: none;
  }
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 404 */
.back {
  display: inline-block;
  margin-top: 2.5rem;
  padding-bottom: 0.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 244, 247, 0.35);
  transition: border-color 0.2s ease;
}

.back:hover,
.back:focus-visible {
  border-color: var(--accent-b);
}

.back:focus-visible {
  outline: 2px solid var(--accent-b);
  outline-offset: 6px;
  border-radius: 2px;
}

@keyframes wordmark-in {
  from {
    opacity: 0;
    letter-spacing: 0.06em;
    filter: blur(14px);
    transform: translateY(0.06em);
  }
  to {
    opacity: 1;
    letter-spacing: -0.045em;
    filter: blur(0);
    transform: none;
  }
}

@keyframes rule-in {
  to {
    transform: scaleX(1);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes glow-in {
  to {
    opacity: 1;
  }
}

@keyframes drift {
  from {
    transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1);
  }
  to {
    transform: translate3d(3%, 2%, 0) rotate(8deg) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow,
  .wordmark,
  .rule,
  .tagline,
  .about,
  footer {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .glow {
    filter: blur(20px);
  }
}

@media (max-height: 420px) {
  .about {
    margin-top: 1.5rem;
  }
}
