:root {
  --green-deep: #0f241f;
  --green: #1a3a32;
  --green-mid: #243f37;
  --green-lift: #2d4f44;
  --cream: #ead9c8;
  --cream-soft: #f3e8dc;
  --cream-muted: rgba(234, 217, 200, 0.62);
  --cream-faint: rgba(234, 217, 200, 0.14);
  --cream-line: rgba(234, 217, 200, 0.22);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", sans-serif;
}

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

html {
  height: 100%;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--green-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, var(--green-lift) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(45, 79, 68, 0.55) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(26, 58, 50, 0.9) 0%, transparent 45%),
    linear-gradient(165deg, var(--green-mid) 0%, var(--green) 42%, var(--green-deep) 100%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  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;
  mix-blend-mode: overlay;
}

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

.orb-a {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: 8%;
  left: 50%;
  translate: -50% 0;
  background: rgba(234, 217, 200, 0.06);
  animation: drift-a 18s ease-in-out infinite;
}

.orb-b {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  bottom: 5%;
  right: 8%;
  background: rgba(45, 79, 68, 0.7);
  animation: drift-b 22s ease-in-out infinite;
}

@keyframes drift-a {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(28px) scale(1.06);
  }
}

@keyframes drift-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-36px, -24px);
  }
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem);
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(100px, 22vw, 148px);
  aspect-ratio: 1;
}

.logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 22%;
  box-shadow: 0 0 0 1px rgba(234, 217, 200, 0.08);
  animation: breath 6s ease-in-out infinite;
  animation-delay: 1.2s;
}

.pulse {
  position: absolute;
  inset: 0;
  border-radius: 22%;
  border: 1px solid rgba(234, 217, 200, 0.45);
  background: rgba(234, 217, 200, 0.04);
  animation: pulse 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}

.pulse-delay {
  animation-delay: 1.4s;
}

.name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 9vw, 4.25rem);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--cream-soft);
}

.headline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  letter-spacing: 0.04em;
  color: var(--cream);
  margin-bottom: 0.85rem;
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.lede {
  font-weight: 300;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.65;
  color: var(--cream-muted);
  max-width: 28rem;
  margin-bottom: clamp(2rem, 5vw, 2.75rem);
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

/* Notify form */
.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  width: 100%;
  max-width: 26rem;
  position: relative;
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.notify input {
  flex: 1 1 12rem;
  min-width: 0;
  appearance: none;
  border: 1px solid var(--cream-line);
  background: var(--cream-faint);
  color: var(--cream-soft);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.9rem 1.15rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.notify input::placeholder {
  color: var(--cream-muted);
}

.notify input:focus {
  border-color: var(--cream);
  background: rgba(234, 217, 200, 0.1);
}

.notify button {
  flex: 0 0 auto;
  appearance: none;
  border: none;
  background: var(--cream);
  color: var(--green-deep);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.9rem 1.4rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.notify button:hover {
  background: var(--cream-soft);
}

.notify button:active {
  transform: scale(0.98);
}

.form-note {
  flex: 1 0 100%;
  min-height: 1.25rem;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--cream-muted);
  transition: color 0.25s ease;
}

.form-note.success {
  color: var(--cream);
}

.form-note.error {
  color: #e8b4a0;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-muted);
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

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

@keyframes breath {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.55);
    opacity: 0;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

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

@media (max-width: 480px) {
  .notify {
    flex-direction: column;
  }

  .notify button {
    width: 100%;
  }
}
