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

:root {
  --green-deep:  #061208;
  --green-base:  #0a1f0f;
  --green-mid:   #122318;
  --gold:        #C9A84C;
  --gold-dim:    rgba(201, 168, 76, 0.3);
  --white:       #f8f8f6;
  --white-dim:   rgba(248, 248, 246, 0.5);
  --border:      rgba(248, 248, 246, 0.1);
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--green-base);
  color: var(--white);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Nav ────────────────────────────────────────────────── */

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6,18,8,0.7) 0%, transparent 100%);
  pointer-events: none;
}

.nav-wordmark {
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  opacity: 0.9;
}

.nav-cta {
  position: relative;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { color: var(--white); }

/* ─── Hero ───────────────────────────────────────────────── */

#hero {
  position: relative;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport — excludes mobile browser chrome */
  min-height: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.6;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(6,18,8,0.55) 0%,
      rgba(6,18,8,0.05) 30%,
      rgba(6,18,8,0.05) 55%,
      rgba(6,18,8,0.8) 88%,
      rgba(6,18,8,1) 100%
    ),
    radial-gradient(ellipse at center, transparent 25%, rgba(6,18,8,0.45) 100%);
  z-index: 1;
}

#hud {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.5s ease;
}
#hud.visible { opacity: 1; }

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 28px;
  max-width: 900px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: rise 1s var(--ease) 0.4s forwards;
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(4rem, 10vw, 9.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 52px;
  opacity: 0;
  animation: rise 1.1s var(--ease) 0.65s forwards;
}

.hero-form-wrap {
  opacity: 0;
  animation: rise 1s var(--ease) 1.05s forwards;
}

/* ─── Shared form style ──────────────────────────────────── */

.hero-form {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid var(--gold-dim);
  background: rgba(10, 31, 15, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s;
}
.hero-form:focus-within { border-color: rgba(201, 168, 76, 0.6); }

.hero-form input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.9rem 1.25rem;
}
.hero-form input::placeholder {
  color: rgba(248, 248, 246, 0.28);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.hero-form button {
  background: var(--gold);
  border: none;
  color: var(--green-deep);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.hero-form button:hover    { background: #d9b96b; }
.hero-form button:disabled { opacity: 0.5; cursor: default; }

.form-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  animation: rise 0.7s var(--ease) forwards;
}
.success-rule {
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0;
  animation: rise 1s ease 1.8s forwards;
}
.scroll-cue span {
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(248,248,246,0.3), transparent);
  animation: pulse 2.4s ease infinite 2.2s;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ─── Overhead image grid ────────────────────────────────── */

#overhead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.overhead-cell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.overhead-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
  filter: brightness(0.82) saturate(0.8);
}
.overhead-cell:hover img {
  transform: scale(1.04);
  filter: brightness(0.92) saturate(0.9);
}
.cell-label {
  position: absolute;
  bottom: 20px; left: 20px;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(248, 248, 246, 0.38);
}

/* ─── Statement ──────────────────────────────────────────── */

#statement {
  padding: 130px 48px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.statement-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  line-height: 1.15;
  color: rgba(248, 248, 246, 0.88);
}
.statement-text em {
  font-style: italic;
  color: var(--white);
}
.statement-rule {
  width: 38px; height: 1px;
  background: var(--gold);
  margin: 44px auto;
  opacity: 0.65;
}
.statement-sub {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 248, 246, 0.38);
}

/* ─── Gallery / aerial ───────────────────────────────────── */

#gallery {
  position: relative;
  height: 72vh;
  min-height: 380px;
  overflow: hidden;
}
#gallery img {
  position: absolute;
  inset: 0;
  width: 100%; height: 120%;
  object-fit: cover;
  object-position: center 50%;
  filter: brightness(0.7) saturate(0.85);
  will-change: transform;
}
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6,18,8,0.75) 0%,
    transparent 28%,
    transparent 60%,
    rgba(6,18,8,0.85) 100%
  );
}
.gallery-quote {
  position: absolute;
  bottom: 12%;
  left: 50%; transform: translateX(-50%);
  width: 88%; max-width: 580px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 3.2vw, 2.6rem);
  line-height: 1.4;
  color: rgba(248, 248, 246, 0.88);
}

/* ─── Waitlist section ───────────────────────────────────── */

#waitlist {
  padding: 140px 24px 130px;
  text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(18,35,24,0.6), transparent);
}
.waitlist-eyebrow {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.waitlist-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.8rem, 6.5vw, 5.8rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 16px;
}
.waitlist-sub {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(248, 248, 246, 0.28);
  margin-bottom: 52px;
}

/* ─── Footer ─────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 248, 246, 0.3);
  margin-bottom: 4px;
}
.footer-copy {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(248, 248, 246, 0.18);
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 248, 246, 0.22);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(248, 248, 246, 0.6); }

/* ─── Scroll reveal ──────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in     { opacity: 1; transform: none; }
.r-delay-1     { transition-delay: 0.12s; }
.r-delay-2     { transition-delay: 0.24s; }
.r-delay-3     { transition-delay: 0.36s; }

/* ─── Keyframes ──────────────────────────────────────────── */

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

/* ═══════════════════════════════════════════════════════════
   MOBILE — max-width: 680px
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 680px) {

  /* Nav: tighten spacing so wordmark + CTA fit side by side */
  #nav {
    padding: 20px 20px;
  }
  .nav-wordmark {
    font-size: 0.82rem;
    letter-spacing: 0.13em;
  }
  .nav-cta {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  /* Hero: smaller headline, tighter margin, shift image to show ball */
  .hero-headline {
    font-size: clamp(3rem, 14vw, 4.5rem);
    margin-bottom: 36px;
    line-height: 1;
  }
  .hero-img {
    object-position: 55% 50%;
  }
  .hero-eyebrow {
    margin-bottom: 20px;
  }

  /* Form: stack vertically, full width, generous touch targets */
  .hero-form {
    flex-direction: column;
    width: min(360px, 92vw);
    max-width: none;
  }
  .hero-form input[type="email"] {
    padding: 1rem 1.1rem;
    font-size: 1rem; /* Prevents iOS zoom on focus */
    border-bottom: 1px solid var(--gold-dim);
  }
  .hero-form button {
    padding: 1rem;
    font-size: 0.65rem;
    min-height: 48px; /* Comfortable touch target */
  }

  /* Overhead: single column with landscape crop — more editorial */
  #overhead {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .overhead-cell {
    aspect-ratio: 4 / 3;
  }
  .cell-label {
    font-size: 0.55rem;
    bottom: 16px; left: 16px;
  }

  /* Statement: tighter padding, slightly smaller text */
  #statement {
    padding: 80px 28px;
  }
  .statement-text {
    font-size: clamp(2rem, 8.5vw, 3rem);
  }
  .statement-rule {
    margin: 32px auto;
  }

  /* Gallery: shorter on mobile, disable parallax overflow */
  #gallery {
    height: 58vh;
    min-height: 300px;
  }
  #gallery img {
    height: 100%;   /* No overflow needed — parallax disabled on mobile */
    object-position: center 35%;
  }
  .gallery-quote {
    font-size: clamp(1.5rem, 6vw, 2rem);
    width: 92%;
    bottom: 10%;
    line-height: 1.45;
  }

  /* Waitlist: reduce the heavy desktop padding */
  #waitlist {
    padding: 90px 24px 80px;
  }
  .waitlist-heading {
    font-size: clamp(2.6rem, 11vw, 3.8rem);
  }
  .waitlist-sub {
    margin-bottom: 40px;
  }

  /* Footer: stack, align left */
  footer {
    padding: 28px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }

  /* Scroll cue: hide — too close to browser chrome on mobile */
  .scroll-cue {
    display: none;
  }

}
