:root {
  --bg: #0a0a0b;
  --bg-alt: #0f0e10;
  --fg: #f2ede4;
  --fg-dim: #7d7871;
  --accent: #ffffff;
  --line: rgba(242, 237, 228, 0.14);
  --font-display: "Unbounded", sans-serif;
  --font-mono: "Space Mono", monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  overflow-x: hidden;
  position: relative;
}

/* subtle grain overlay, fixed so it never taxes scroll perf */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* faint radial glow, off-black not pure black */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 78% 12%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(50% 40% at 15% 90%, rgba(255, 255, 255, 0.03), transparent 60%),
    var(--bg);
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 6rem);
}

.tag {
  position: absolute;
  display: flex;
  gap: 0.6em;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.tag--top {
  top: clamp(1.5rem, 4vw, 3rem);
  left: clamp(1.5rem, 6vw, 6rem);
  animation: fade-in 0.9s ease both 0.1s;
}

.tag__dash {
  color: var(--accent);
}

.tag--bottom {
  bottom: clamp(1.5rem, 4vw, 3rem);
  right: clamp(1.5rem, 6vw, 6rem);
  animation: fade-in 0.9s ease both 1.1s;
}

.name {
  margin: 0 0 0 clamp(-0.3rem, -1vw, 0);
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 10.5vw, 9rem);
  text-transform: none;
  max-width: 100%;
  color: #ffffff;
}

.name__line {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.name__line { animation-delay: 0.05s; }

.tagline {
  margin: clamp(1.6rem, 4vw, 2.6rem) 0 0 clamp(0.15rem, 0.6vw, 0.4rem);
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55em;
  opacity: 0;
  animation: fade-in 0.9s ease both 0.6s;
}

.tagline .dot {
  color: var(--accent);
}

.links {
  margin-top: clamp(3.5rem, 9vw, 6.5rem);
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 30rem;
  opacity: 0;
  animation: fade-in 0.9s ease both 0.85s;
}

.link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.1rem 0;
  text-decoration: none;
  color: var(--fg);
  border-top: 1px solid var(--line);
  position: relative;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.links .link:last-child {
  border-bottom: 1px solid var(--line);
}

.link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.link:hover,
.link:focus-visible {
  color: var(--accent);
  padding-left: 1rem;
}

.link:hover::before,
.link:focus-visible::before {
  transform: scaleY(1);
}

.link__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  letter-spacing: -0.01em;
}

.link__url {
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--fg-dim);
}

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

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

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

@media (max-width: 520px) {
  .tag--top, .tag--bottom {
    position: static;
    margin-bottom: 2rem;
  }
  .tag--bottom {
    margin-top: 3rem;
    margin-bottom: 0;
  }
  .stage {
    padding: 2rem 1.5rem;
  }
  .link {
    flex-direction: column;
    gap: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .name__line, .tagline, .links, .tag--top, .tag--bottom {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
