/* ─────────────────────────────────────────
   SENVIRRA — Coming Soon
   Cream · Forest Green · Gold
───────────────────────────────────────── */

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

:root {
  --bg:        #f0ebe2;
  --green:     #1c3328;
  --gold:      #b8924a;
  --gold-lt:   #d4ad6a;
  --text:      #1a1610;
  --text-mid:  #6b5f50;
  --text-lt:   #9e8e7a;
  --cream:     #f8f4ee;
  --glass-bg:  rgba(240, 235, 226, 0.62);
  --glass-br:  rgba(184, 146, 74, 0.28);
  --glass-hi:  rgba(255, 255, 255, 0.45);
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Jost', system-ui, sans-serif;
}

html { background: var(--bg); }
body { background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }


/* ══════════════════════════════
   LOADER
══════════════════════════════ */

#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-brand {
  font-family: var(--sans); font-weight: 300;
  letter-spacing: 0.55em; font-size: 0.9rem; color: var(--text);
}
.loader-track {
  width: 200px; height: 1px;
  background: rgba(26,22,16,0.12); position: relative; overflow: hidden;
}
#loader-bar {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: var(--gold); transition: width 0.08s linear;
}
#loader-percent {
  font-family: var(--sans); font-weight: 200;
  font-size: 0.65rem; letter-spacing: 0.2em; color: var(--text-lt);
}


/* ══════════════════════════════
   COUNTDOWN — LIQUID GLASS
══════════════════════════════ */

.countdown-widget {
  position: fixed;
  top: 28px; left: 28px;
  z-index: 900;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  animation: heartbeatGlow 2.8s ease-in-out infinite;
}

.countdown-widget::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: inset 2px 2px 0px -2px rgba(255, 255, 255, 0.7), inset 0 0 3px 1px rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.countdown-widget::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 14px;
  -webkit-backdrop-filter: blur(0px);
          backdrop-filter: blur(0px);
  -webkit-filter: url(#container-glass);
          filter: url(#container-glass);
  overflow: hidden;
  isolation: isolate;
}

.countdown-widget.visible { opacity: 1; transform: translateY(0); }

.countdown-glass-content { padding: 14px 18px 12px; }

/* Double-pulse heartbeat glow — outer drop shadow only */
@keyframes heartbeatGlow {
  0%, 28%, 58%, 100% { filter: drop-shadow(0 2px 12px rgba(184,146,74,0.10)); }
  14%  { filter: drop-shadow(0 2px 22px rgba(184,146,74,0.30)); }
  42%  { filter: drop-shadow(0 2px 28px rgba(184,146,74,0.38)); }
}

.countdown-label {
  font-family: var(--sans); font-weight: 300;
  font-size: 0.52rem; letter-spacing: 0.38em;
  color: var(--text-mid); margin-bottom: 8px;
}

.countdown-digits { display: flex; align-items: flex-start; gap: 2px; }

.count-unit { display: flex; flex-direction: column; align-items: center; gap: 2px; }

.count-num {
  font-family: var(--serif); font-weight: 300;
  font-size: 1.85rem; line-height: 1;
  color: var(--text); min-width: 2ch; text-align: center; display: block;
}

.count-unit-label {
  font-family: var(--sans); font-weight: 300;
  font-size: 0.42rem; letter-spacing: 0.18em; color: var(--text-lt);
}

.count-sep {
  font-family: var(--serif); font-weight: 300;
  font-size: 1.6rem; color: var(--gold); line-height: 1; margin-top: 1px; padding: 0 1px;
}


/* ══════════════════════════════
   SITE HEADER
══════════════════════════════ */

.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 800; padding: 26px 40px;
  display: flex; justify-content: flex-end;
  pointer-events: none;
}

.site-header nav { display: flex; align-items: center; gap: 24px; pointer-events: all; }

.nav-logo {
  font-family: var(--sans); font-weight: 300;
  letter-spacing: 0.48em; font-size: 0.78rem; color: var(--text);
}

.nav-tag {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 0.82rem; color: var(--text-mid);
}


/* ══════════════════════════════
   HERO
══════════════════════════════ */

.hero-standalone {
  position: relative; height: 100vh;
  background: var(--bg);
  display: flex; align-items: center; padding: 0 8vw;
  overflow: hidden; z-index: 2;
}

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-inner { max-width: 44vw; position: relative; z-index: 1; }

.hero-standalone .scroll-indicator { position: relative; z-index: 1; }

.hero-eyebrow {
  display: block;
  font-family: var(--sans); font-weight: 300;
  font-size: 0.58rem; letter-spacing: 0.42em; color: var(--gold);
  margin-bottom: 32px;
  opacity: 0; transform: translateY(14px);
}

.hero-heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4rem, 8vw, 9rem);
  line-height: 0.9;
  color: var(--text);
  margin-bottom: 20px;
  overflow: visible;
  white-space: nowrap;
}

.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
}

.hero-tagline {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(0.95rem, 1.8vw, 1.6rem);
  color: var(--text-mid); letter-spacing: 0.04em;
  opacity: 0; transform: translateY(16px);
}

.scroll-indicator {
  position: absolute; bottom: 44px; left: 8vw;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  opacity: 0;
}

.scroll-label {
  font-family: var(--sans); font-weight: 300;
  font-size: 0.52rem; letter-spacing: 0.42em; color: var(--text-mid);
}

.scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.2s ease infinite; transform-origin: top;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.35; transform: scaleY(0.5); }
}


/* ══════════════════════════════
   CANVAS — full cover
══════════════════════════════ */

.canvas-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1;
  height: 100vh;
  height: 100dvh;
  clip-path: circle(0% at 50% 50%);
}

#canvas { width: 100%; height: 100%; display: block; }


/* ══════════════════════════════
   GLASS CARD PAIRS
══════════════════════════════ */

.glass-pair {
  position: fixed; top: 0; left: 0; right: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5vw;
  pointer-events: none;
  /* each pair starts invisible — JS controls entry */
}

.glass-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 28vw;
  border-radius: 20px;
  pointer-events: all;
  opacity: 0;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: inset 2px 2px 0px -2px rgba(255, 255, 255, 0.7), inset 0 0 3px 1px rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.glass-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(0px);
          backdrop-filter: blur(0px);
  -webkit-filter: url(#container-glass);
          filter: url(#container-glass);
  overflow: hidden;
  isolation: isolate;
}

/* WebGL canvas layer — countdown only (cards use CSS filter) */
.glass-bg-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block; z-index: 0;
}

/* Tint layer — countdown only */
.glass-tint {
  position: absolute; inset: 0;
  z-index: 1;
  background: rgba(240, 235, 226, 0.24);
  pointer-events: none;
}

.glass-content {
  position: relative; z-index: 2;
  padding: 32px 36px;
}

.section-label {
  display: block;
  font-family: var(--sans); font-weight: 300;
  font-size: 0.55rem; letter-spacing: 0.42em; color: var(--gold);
  margin-bottom: 18px;
}

.section-heading {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1.15; color: var(--text);
}

.section-body {
  font-family: var(--sans); font-weight: 300;
  font-size: 0.84rem; line-height: 1.82; color: var(--text-mid);
}

.card-divider {
  width: 40px; height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 20px 0;
}

.card-footnote {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 0.78rem; color: var(--text-lt); display: block;
}


/* ─── Stats Cards ─── */

.stats-card .glass-content { display: flex; flex-direction: column; gap: 0; }

.stat-row {
  display: flex; flex-direction: column; gap: 4px;
}

.stat-figure { display: flex; align-items: baseline; gap: 3px; }

.stat-number {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: var(--text); line-height: 1;
}

.stat-suffix {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  color: var(--gold); line-height: 1;
}

.stat-label {
  font-family: var(--sans); font-weight: 300;
  font-size: 0.58rem; letter-spacing: 0.22em; color: var(--text-lt);
  text-transform: uppercase; line-height: 1.7;
}

.stat-quote {
  font-style: italic; font-family: var(--serif);
  font-size: 0.88rem; color: var(--text-mid); line-height: 1.7;
}


/* ─── CTA Card ─── */

.cta-heading { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 12px; }

.cta-card .glass-content {
  display: flex; flex-direction: column; justify-content: center;
}

.notify-form {
  display: flex; flex-direction: column;
  width: 100%; margin-bottom: 14px;
}

.notify-input {
  padding: 14px 18px;
  background: rgba(255,255,255,0.3);
  border: 1px solid rgba(184,146,74,0.3);
  border-bottom: none;
  font-family: var(--sans); font-weight: 300;
  font-size: 0.82rem; color: var(--text);
  outline: none; letter-spacing: 0.04em;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.notify-input::placeholder { color: var(--text-lt); }
.notify-input:focus { border-color: var(--gold); background: rgba(255,255,255,0.45); }

.notify-btn {
  padding: 14px 18px;
  background: var(--gold); border: 1px solid var(--gold);
  color: var(--cream);
  font-family: var(--sans); font-weight: 400;
  font-size: 0.62rem; letter-spacing: 0.4em;
  cursor: pointer; transition: background 0.3s ease, border-color 0.3s ease;
}
.notify-btn:hover:not(:disabled) { background: var(--green); border-color: var(--green); }
.notify-btn:disabled { cursor: default; }

.section-note {
  font-family: var(--sans); font-weight: 300;
  font-size: 0.6rem; letter-spacing: 0.18em; color: var(--text-lt);
}


/* ══════════════════════════════
   MARQUEE — very subtle watermark
══════════════════════════════ */

.marquee-wrap {
  position: fixed; top: 50%; left: 0; right: 0;
  z-index: 4; transform: translateY(-50%);
  overflow: hidden; opacity: 0; pointer-events: none;
  white-space: nowrap;
}

.marquee-text {
  display: inline-block;
  font-family: var(--sans); font-weight: 200;
  font-size: 11vw;
  color: rgba(26, 22, 16, 0.04);
  letter-spacing: 0.06em;
  white-space: nowrap; will-change: transform;
}


/* ══════════════════════════════
   SCROLL CONTAINER — pure scroll driver
══════════════════════════════ */

#scroll-container {
  position: relative; height: 900vh;
  z-index: 0; pointer-events: none;
}


/* ══════════════════════════════
   MOBILE
══════════════════════════════ */

@media (max-width: 900px) {
  .countdown-widget { top: auto; bottom: 16px; left: 50%; transform: translateX(-50%); }
  .countdown-widget.visible { transform: translateX(-50%); }
  .countdown-glass-content { padding: 9px 14px 8px; }
  .countdown-label { font-size: 0.46rem; margin-bottom: 5px; }
  .count-num { font-size: 1.4rem; }
  .count-sep { font-size: 1.15rem; }
  .count-unit-label { font-size: 0.36rem; }

  .glass-pair { flex-direction: column; justify-content: flex-end; padding: 0 4vw 130px; gap: 12px; }
  .glass-card { width: 100%; }
  .glass-content { padding: 22px 24px; }

  .hero-inner { max-width: 90vw; }
  .hero-heading { font-size: clamp(3rem, 11vw, 5rem); white-space: normal; }

  .hero-video { object-fit: contain; }

  #scroll-container { height: 620vh; }
  .marquee-text { font-size: 18vw; }
  .site-header { padding: 18px 20px; }
}
