:root {
  --ink: #efe6da;
  --ink-dim: #b6a996;
  --bg: #1c1712;
  --bg-deep: #120e0a;
  --ember: #d97b3f;
  --ember-soft: #8a5334;
  --line: rgba(239, 230, 218, 0.14);
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-mono: "Space Mono", monospace;
}

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

html, body {
  height: 100%;
}

body {
  background:
    radial-gradient(ellipse 900px 600px at 20% -10%, rgba(217, 123, 63, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 85% 110%, rgba(217, 123, 63, 0.10), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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");
}

.stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8vh 6vw;
}

.content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  text-align: left;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.headline {
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.headline .line {
  display: block;
  opacity: 0;
  transform: translateY(0.5em);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.headline .line:nth-child(1) { animation-delay: 0.25s; }
.headline .line:nth-child(2) { animation-delay: 0.42s; }

.line--emph {
  font-style: italic;
  font-weight: 500;
}

.line--emph em {
  font-style: italic;
  color: var(--ember);
  font-weight: 500;
}

.subtext {
  margin-top: 2.1rem;
  max-width: 46ch;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-dim);
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.58s forwards;
}

.divider {
  display: flex;
  gap: 0.5rem;
  margin-top: 2.8rem;
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.74s forwards;
}

.divider span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember-soft);
  animation: pulse 2.4s ease-in-out infinite;
}

.divider span:nth-child(2) { animation-delay: 0.25s; background: var(--ember); }
.divider span:nth-child(3) { animation-delay: 0.5s; }

.signoff {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

.ember {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  background: radial-gradient(circle at 35% 35%, var(--ember), var(--ember-soft) 70%, transparent 100%);
  opacity: 0.55;
  animation: drift 14s ease-in-out infinite;
}

.ember--one {
  width: 10px;
  height: 10px;
  top: 22%;
  left: 12%;
  animation-duration: 11s;
}

.ember--two {
  width: 6px;
  height: 6px;
  top: 68%;
  left: 78%;
  animation-duration: 15s;
  animation-delay: -4s;
}

.ember--three {
  width: 4px;
  height: 4px;
  top: 40%;
  left: 88%;
  animation-duration: 9s;
  animation-delay: -2s;
}

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

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); opacity: 0.35; }
  50% { transform: translate(14px, -26px); opacity: 0.75; }
}

@media (prefers-reduced-motion: reduce) {
  .headline .line,
  .eyebrow,
  .subtext,
  .divider,
  .signoff,
  .ember {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 560px) {
  .stage {
    padding: 10vh 7vw;
  }
  .content {
    text-align: left;
  }
}
