:root {
  --bg: #161412;
  --bg-mid: #1c1915;
  --fde: #8a7d6b;
  --fde-soft: #a89a86;
  --fde-dim: #5c5348;
  --text: #d4cbbf;
  --text-soft: #b0a698;
  --max: 36rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 50% 0%,
      rgba(138, 125, 107, 0.08) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 70% 45% at 50% 100%,
      rgba(92, 83, 72, 0.12) 0%,
      transparent 50%
    ),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 50%, #1a1714 100%);
}

.glow {
  position: absolute;
  left: 50%;
  top: 35%;
  width: min(80vw, 36rem);
  height: 40vh;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(138, 125, 107, 0.07) 0%,
    transparent 70%
  );
  animation: breathe 10s var(--ease) infinite alternate;
}

.horizon {
  display: none;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 18vh, 8rem) 0 clamp(5rem, 12vh, 7rem);
  text-align: center;
}

.hero {
  min-height: min(72vh, 36rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.brand {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4.5rem, 18vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--fde-soft);
  animation: rise 1s var(--ease) both;
}

.headline {
  margin: 0.15em 0 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--fde);
  animation: rise 1s var(--ease) 0.12s both;
}

.lede {
  margin: 1.75rem 0 0;
  max-width: 32rem;
  color: var(--text);
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  font-weight: 400;
  opacity: 0.92;
  animation: rise 1s var(--ease) 0.28s both;
}

.section {
  margin-top: 2.75rem;
  animation: rise 1s var(--ease) 0.4s both;
}

.section + .section {
  animation-delay: 0.52s;
}

.section p,
.farewell p {
  margin: 0;
  color: var(--text-soft);
}

.section a {
  color: var(--fde-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

.section a:hover {
  color: var(--text);
}

.farewell {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(138, 125, 107, 0.22);
  animation: rise 1s var(--ease) 0.64s both;
}

.farewell p {
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
}

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

@keyframes breathe {
  from {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
