:root {
  --bg: #0a0a0a;
  --fg: #e8e0d0;
  --accent: #c8a96e;
  --dim: #4a4540;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Courier Prime', monospace;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.noise {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

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

.label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadein 0.5s ease forwards 0.3s;
}

.title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
  position: relative;
  display: inline-block;
}

.title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 0.6s ease forwards 1.4s;
}

.cursor {
  display: inline-block;
  font-size: 2rem;
  color: var(--accent);
  margin-left: 4px;
  opacity: 0;
  animation: fadein 0.1s ease forwards 1.5s, blink 1s step-end infinite 1.6s;
}

.sub {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--dim);
  letter-spacing: 0.1em;
  min-height: 1.2em;
  opacity: 0;
  animation: fadein 0.4s ease forwards 1.8s;
}

@keyframes fadein {
  to { opacity: 1; }
}

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

@keyframes underline {
  to { transform: scaleX(1); }
}

@keyframes blink {
  50% { opacity: 0; }
}
