:root {
  --bg: #000000;
  --fg: #eeeff2;
  --fg-muted: #8b909c;
  --cyan: #22d3ee;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.64, 0, 0.78, 0);
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Clash Display", "Bahnschrift", "Avenir Next Condensed",
    sans-serif;
  --font-body: "Satoshi", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

body.has-pointer {
  cursor: none;
}

body.has-pointer a,
body.has-pointer button {
  cursor: none;
}

::selection {
  background: color-mix(in srgb, var(--cyan) 80%, black);
  color: #000;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
}

.glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 52vmax;
  height: 52vmax;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: transform;
}

.glow-cyan {
  background: radial-gradient(
    circle,
    rgba(34, 211, 238, 0.11) 0%,
    rgba(34, 211, 238, 0.03) 38%,
    transparent 70%
  );
}

.glow-violet {
  width: 42vmax;
  height: 42vmax;
  background: radial-gradient(
    circle,
    rgba(167, 139, 250, 0.1) 0%,
    rgba(96, 165, 250, 0.03) 40%,
    transparent 70%
  );
}

html.is-ready .glow {
  opacity: 1;
  transition: opacity 700ms var(--ease-out);
}

.cursor {
  display: none;
  opacity: 0;
}

body.has-pointer .cursor {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  pointer-events: none;
}

.cursor-dot,
.cursor-ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  translate: -50% -50%;
}

.cursor-dot {
  width: 4px;
  height: 4px;
  background: var(--fg);
}

.cursor-ring {
  width: 22px;
  height: 22px;
  border: 1px solid color-mix(in srgb, var(--fg) 55%, transparent);
  transition:
    width 180ms var(--ease-out),
    height 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    background 180ms var(--ease-out);
}

.cursor.is-letter .cursor-ring {
  width: 34px;
  height: 34px;
  border-color: color-mix(in srgb, var(--cyan) 70%, transparent);
}

.cursor.is-link .cursor-dot {
  background: var(--bg);
}

.cursor.is-link .cursor-ring {
  width: 12px;
  height: 12px;
  border-color: transparent;
  background: var(--cyan);
}

.particles {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.particle {
  position: fixed;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  pointer-events: none;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  width: 100%;
}

.cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(100%, 72rem);
  min-width: 0;
}

.name {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.28em;
  row-gap: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.1rem, 12vw, 8.75rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--fg);
  visibility: hidden;
  max-width: 100%;
  min-width: 0;
}

.name.is-split {
  visibility: visible;
}

.word {
  display: flex;
}

.letter {
  display: block;
  padding: 0.04em 0.01em;
}

.letter-inner,
.letter-motion {
  display: block;
  position: relative;
}

.letter-motion {
  transform-origin: center bottom;
}

.letter-inner,
.link {
  opacity: 0;
}

.role-word {
  opacity: 0;
}

html.is-ready .letter-inner {
  animation: fade-rise 280ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 36ms + 40ms);
}

html.is-ready .role-word:nth-child(1) {
  animation: role-enter 380ms var(--ease-out) both;
  animation-delay: 700ms;
}

html.is-ready .role-word:nth-child(2) {
  animation: role-enter 380ms var(--ease-out) both;
  animation-delay: 780ms;
}

html.is-ready .link:nth-child(1) {
  animation: fade-rise 280ms var(--ease-out) both;
  animation-delay: 1280ms;
}

html.is-ready .link:nth-child(2) {
  animation: fade-rise 280ms var(--ease-out) both;
  animation-delay: 1320ms;
}

@keyframes role-enter {
  from {
    opacity: 0;
    filter: blur(5px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.role {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.34em;
  margin-top: clamp(1.1rem, 2.4vw, 1.6rem);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.role-word {
  color: color-mix(in srgb, var(--cyan) 22%, var(--fg-muted));
}

.role-word--accent {
  color: color-mix(in srgb, var(--violet) 38%, var(--fg-muted));
}

.links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.link {
  display: inline-flex;
  align-items: center;
  position: relative;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.2rem 0;
  transition:
    color 220ms var(--ease-out),
    transform 150ms var(--ease-out);
}

.link-label {
  position: relative;
}

.link-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms var(--ease-out);
}

.link:hover,
.link:focus-visible {
  color: var(--fg);
}

.link:hover .link-label::after,
.link:focus-visible .link-label::after {
  transform: scaleX(1);
}

.link:not(:hover):not(:focus-visible) .link-label::after {
  transition: transform 220ms var(--ease-in);
}

.link:active {
  transform: scale(0.98);
  transition: color 0ms, transform 120ms var(--ease-out);
}

.link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
  border-radius: 2px;
}

@media (max-width: 540px) {
  .name {
    flex-direction: column;
    align-items: center;
    row-gap: 0.02em;
  }

  .role {
    letter-spacing: 0.22em;
  }
}

@media (hover: none) {
  .link:active {
    color: var(--fg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.is-ready .letter-inner,
  html.is-ready .role-word,
  html.is-ready .link {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .glow,
  .cursor,
  .grain {
    display: none;
  }

  .link,
  .link-label::after {
    transition: none;
  }

  body.has-pointer {
    cursor: auto;
  }

  body.has-pointer a {
    cursor: pointer;
  }
}
