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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 12% 8%, color-mix(in srgb, var(--brand) 28%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 18%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 50%),
    linear-gradient(165deg, var(--paper) 0%, color-mix(in srgb, var(--brand-soft) 55%, var(--paper)) 48%, var(--paper) 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 11px,
    color-mix(in srgb, var(--line) 55%, transparent) 11px,
    color-mix(in srgb, var(--line) 55%, transparent) 12px
  );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 70%);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4.5rem);
  max-width: 42rem;
  animation: rise 0.9s ease-out both;
}

.wordmark {
  margin: 0 0 1.25rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--ink);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fade-in 1s ease-out 0.1s both;
}

.identity {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--body);
  animation: fade-in 1s ease-out 0.25s both;
}

.outcome {
  margin: 0 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  animation: fade-in 1s ease-out 0.35s both;
}

.lede {
  margin: 0 0 2.25rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--body);
  max-width: 34rem;
  animation: fade-in 1s ease-out 0.45s both;
}

.cta {
  margin: 0;
  animation: fade-in 1s ease-out 0.55s both;
}

.cta-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--on-ink);
  text-decoration: none;
  background: var(--ink);
  padding: 0.85rem 1.25rem;
  border-radius: calc(var(--radius) - 2px);
  transition: background 160ms ease, transform 160ms ease;
}

.cta-link:hover,
.cta-link:focus-visible {
  background: var(--brand);
  transform: translateY(-1px);
  outline: none;
}

.cta-link:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent);
}

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

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

@media (prefers-reduced-motion: reduce) {
  .hero,
  .wordmark,
  .identity,
  .outcome,
  .lede,
  .cta {
    animation: none;
  }
}
