:root {
  --bg: #FBFAF7;
  --ink: #141414;
  --cyan: #12D8C8;
  --pink: #FF4FA3;
  --maxw: 720px;
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 6vw 1.25rem;
  position: relative;
  overflow: hidden;
}

.card {
  max-width: var(--maxw);
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.name {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 9vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.tagline {
  margin-top: 1.1rem;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  color: #3a3a3a;
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}

.rotator {
  margin-top: 2.6rem;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 3.4vw, 1.7rem);
  line-height: 1.35;
}

.rotator__stem {
  display: block;
  color: var(--ink);
}

.links {
  margin-top: 2.8rem;
  display: flex;
  gap: 1.4rem;
  justify-content: center;
  align-items: center;
}

.links__item {
  color: var(--ink);
  display: inline-flex;
  padding: 0.5rem;
  border-radius: 999px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.links__item:hover {
  color: var(--pink);
  transform: translateY(-2px);
}

.links__item:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.rotator__word {
  display: block;
  min-height: 1.4em;
  margin-top: 0.35rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.rotator__word.is-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .rotator__word { transition: none; }
}

body::before {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: 0;
  background:
    radial-gradient(40% 40% at 20% 30%, rgba(18, 216, 200, 0.18), transparent 70%),
    radial-gradient(40% 40% at 80% 70%, rgba(255, 79, 163, 0.18), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}

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

.glow {
  position: fixed;
  top: 0; left: 0;
  width: 280px; height: 280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate3d(calc(var(--mx, 50vw) - 140px), calc(var(--my, 50vh) - 140px), 0);
  background: radial-gradient(circle, rgba(18,216,200,0.25), rgba(255,79,163,0.20) 45%, transparent 70%);
  transition: transform 0.18s ease-out;
}

.name, .tagline, .rotator {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.name    { animation-delay: 0.05s; }
.tagline { animation-delay: 0.18s; }
.rotator { animation-delay: 0.32s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .glow { display: none; }
  .name, .tagline, .rotator {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
