:root {
  --ink: #080908;
  --forest: #101916;
  --mist: #f2eadc;
  --mist-soft: rgba(242, 234, 220, 0.72);
  --mist-faint: rgba(242, 234, 220, 0.5);
  --line: rgba(242, 234, 220, 0.26);
  --honey: #c9a461;
  --panel: rgba(9, 10, 9, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
  color: var(--mist);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--ink);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

p,
h1,
h2 {
  margin: 0;
}

.site-shell {
  overflow: hidden;
}

.scene {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
}

.hero {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-media,
.waitlist-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.hero-media img,
.waitlist-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.08) brightness(0.82);
  transform: scale(1.05);
  will-change: transform;
}

.hero-shade,
.waitlist-scene::before,
.ritual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.hero-shade {
  background:
    radial-gradient(circle at 50% 47%, rgba(242, 234, 220, 0.1) 0%, rgba(8, 9, 8, 0.08) 24%, rgba(8, 9, 8, 0.62) 100%),
    linear-gradient(180deg, rgba(8, 9, 8, 0.26) 0%, rgba(8, 9, 8, 0.02) 34%, rgba(8, 9, 8, 0.76) 100%);
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(22px, 4vw, 64px);
  color: var(--mist);
  mix-blend-mode: screen;
}

.wordmark,
.nav-link {
  text-decoration: none;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  letter-spacing: 0.02em;
}

.nav-link {
  color: var(--mist-soft);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy {
  width: min(760px, calc(100% - 44px));
  padding-top: 5vh;
  text-align: center;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.72);
}

.overline {
  color: var(--mist-soft);
  font-size: clamp(0.72rem, 1.1vw, 0.86rem);
  font-weight: 740;
  letter-spacing: 0.22em;
  line-height: 1.55;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin-top: clamp(14px, 2vw, 22px);
  color: #fff7e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 12vw, 12rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.86;
}

.tagline {
  margin-top: clamp(18px, 2vw, 26px);
  color: #fff7e8;
  font-size: clamp(1.05rem, 1.8vw, 1.55rem);
  letter-spacing: 0.02em;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 5vw, 58px);
  display: grid;
  width: 34px;
  height: 54px;
  place-items: start center;
  border: 1px solid rgba(242, 234, 220, 0.42);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  display: block;
  width: 4px;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--mist);
  animation: cue-drift 1.9s ease-in-out infinite;
}

.ritual {
  display: grid;
  align-items: end;
  padding: clamp(110px, 14vw, 190px) clamp(22px, 7vw, 108px);
  background:
    linear-gradient(180deg, rgba(8, 9, 8, 0.2), rgba(8, 9, 8, 0.82)),
    var(--forest);
}

.ritual::before {
  background:
    linear-gradient(90deg, rgba(18, 28, 24, 0.98) 0%, rgba(18, 28, 24, 0.74) 44%, rgba(18, 28, 24, 0.12) 100%),
    url("assets/ermid-hero-premium.png") center / cover;
  filter: saturate(0.82) contrast(1.04) brightness(0.7);
}

.ritual-copy {
  max-width: 840px;
}

.ritual-copy h2,
.waitlist-panel h2 {
  margin-top: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7.8vw, 8.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.94;
}

.ritual-copy p:last-child,
.waitlist-panel > p {
  max-width: 660px;
  margin-top: 28px;
  color: var(--mist-soft);
  font-size: clamp(1.05rem, 1.65vw, 1.45rem);
  line-height: 1.65;
}

.waitlist-scene {
  display: grid;
  min-height: 100svh;
  align-items: center;
  padding: clamp(96px, 12vw, 150px) clamp(22px, 6vw, 88px);
  overflow: hidden;
}

.waitlist-scene::before {
  background:
    linear-gradient(90deg, rgba(8, 9, 8, 0.82), rgba(8, 9, 8, 0.46), rgba(8, 9, 8, 0.76)),
    radial-gradient(circle at 72% 32%, rgba(201, 164, 97, 0.12), transparent 34%);
}

.waitlist-bg img {
  filter: saturate(0.84) contrast(1.08) brightness(0.55);
}

.waitlist-panel {
  width: min(640px, 100%);
  padding: clamp(26px, 4.8vw, 56px);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(10, 11, 10, 0.68), rgba(10, 11, 10, 0.4));
  backdrop-filter: blur(22px);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.38);
}

.waitlist-panel h2 {
  font-size: clamp(3rem, 6.5vw, 6.8rem);
}

.waitlist-form {
  margin-top: clamp(30px, 4vw, 46px);
}

.waitlist-form label {
  display: block;
  margin-bottom: 12px;
  color: var(--mist-faint);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid rgba(242, 234, 220, 0.58);
}

.field-row input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 18px 0;
  background: transparent;
  color: var(--mist);
}

.field-row input::placeholder {
  color: rgba(242, 234, 220, 0.5);
}

.field-row button {
  border: 0;
  padding: 18px 0 18px 24px;
  background: transparent;
  color: var(--mist);
  cursor: pointer;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-note {
  min-height: 24px;
  margin-top: 16px;
  color: var(--mist-faint);
  font-size: 0.92rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(0.2, 0.85, 0.22, 1);
}

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

@keyframes cue-drift {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(18px);
  }
}

@media (max-width: 760px) {
  .site-nav {
    padding: 22px 20px;
  }

  .hero-media img,
  .waitlist-bg img {
    object-position: center;
  }

  .hero-copy {
    padding-top: 0;
  }

  .ritual,
  .waitlist-scene {
    padding-left: 22px;
    padding-right: 22px;
  }

  .ritual-copy h2,
  .waitlist-panel h2 {
    font-size: clamp(3.1rem, 15vw, 5.6rem);
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .field-row button {
    padding-left: 0;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

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