:root {
  --color-night: #1a2218;
  --color-canopy: #243028;
  --color-moss: #3d4f3c;
  --color-leaf: #5a6f56;
  --color-ivory: #f3efe6;
  --color-mist: #c8c2b4;
  --color-gold: #c4a574;
  --color-gold-soft: rgba(196, 165, 116, 0.35);

  --font-display: "Cormorant Infant", "Times New Roman", serif;
  --font-body: "Outfit", "Helvetica Neue", sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 700ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--color-ivory);
  background: var(--color-night);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  isolation: isolate;
}

/* Atmospheric background */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, #2a3828 0%, transparent 55%),
    linear-gradient(165deg, #1f2a1d 0%, var(--color-night) 45%, #151c14 100%);
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  will-change: transform;
}

.glow--one {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: -8%;
  left: -6%;
  background: var(--color-moss);
  animation: drift-a 28s var(--ease-out) infinite alternate;
}

.glow--two {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  bottom: -18%;
  right: -12%;
  background: #2e3d2c;
  opacity: 0.55;
  animation: drift-b 34s var(--ease-out) infinite alternate;
}

.glow--three {
  width: min(40vw, 280px);
  height: min(40vw, 280px);
  top: 38%;
  left: 52%;
  background: var(--color-gold-soft);
  opacity: 0.28;
  filter: blur(100px);
  animation: drift-c 22s var(--ease-out) infinite alternate;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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 180px;
  mix-blend-mode: soft-light;
}

/* Main stage — one composition */
.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-5) var(--space-3) var(--space-4);
  max-width: 42rem;
  margin-inline: auto;
  width: 100%;
}

.eyebrow {
  margin: 0 0 var(--space-3);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.brand {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.15em 0.35em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.25rem, 12vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--color-ivory);
}

.brand__name {
  display: inline-block;
}

.brand__join {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.62em;
  color: var(--color-gold);
  transform: translateY(-0.05em);
}

.lede {
  margin: var(--space-4) 0 0;
  max-width: 28rem;
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  font-weight: 300;
  color: var(--color-mist);
  line-height: 1.7;
}

.mark {
  margin-top: var(--space-5);
  color: var(--color-gold);
  opacity: 0.7;
}

.mark__stem {
  display: block;
}

.footer {
  padding: var(--space-3) var(--space-3) calc(var(--space-3) + env(safe-area-inset-bottom));
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--color-leaf);
}

/* Reveal motion — only when JS is active */
.js .reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition:
    opacity var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(1) {
  transition-delay: 80ms;
}

.reveal:nth-child(2) {
  transition-delay: 200ms;
}

.reveal:nth-child(3) {
  transition-delay: 340ms;
}

.reveal:nth-child(4) {
  transition-delay: 460ms;
}

.footer.reveal {
  transition-delay: 580ms;
}

@keyframes drift-a {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(4%, 6%) scale(1.06);
  }
}

@keyframes drift-b {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-5%, -4%) scale(1.08);
  }
}

@keyframes drift-c {
  from {
    transform: translate(-8%, 0) scale(1);
  }
  to {
    transform: translate(6%, 5%) scale(1.12);
  }
}

@media (min-width: 768px) {
  .stage {
    padding: var(--space-6) var(--space-4);
  }

  .lede {
    margin-top: var(--space-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 380px) {
  .brand {
    flex-direction: column;
    gap: 0;
  }

  .brand__join {
    font-size: 0.45em;
    line-height: 1;
    margin-block: 0.1em;
  }
}
