/* ==============================================
   CSS VARIABLES
=============================================== */
:root {
  --clr-bg:       #000;
  --clr-white:    #fff;
  --clr-border:   #333;
  --clr-border-focus: #666;
  --clr-muted:    rgba(255,255,255,0.45);
  --clr-success:  #ef7c01;
  --font-main:    "Barlow Condensed", sans-serif;
}


/* ==============================================
   VIDEO STAGE — Layers 1–4
=============================================== */

body {
  background-color: var(--clr-bg);
  color: var(--clr-white);
  overflow-x: hidden;
}

.video-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--clr-bg);
  overflow: hidden;
}

.video-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ── Layer 1: Smoke ── */
.smoke-video {
  z-index: 1;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}
.smoke-video.smoke-visible  { opacity: 1; }
.smoke-video.smoke-fadeout  { opacity: 0; transition: opacity 1.5s ease-in-out; }

/* ── Layer 2: WakeUp-In ── */
.wakeup-in {
  z-index: 2;
  opacity: 1;
  transition: opacity 0.6s ease-out;
}
.wakeup-in.fade-out { opacity: 0; }

/* ── Layer 3: WakeUp-Out ── */
.wakeup-out {
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease-in;
}
.wakeup-out.active { opacity: 1; }

/* ── Layer 4: Teaser ── */
.teaser-video {
  z-index: 4;
  opacity: 0;
  transition: opacity 0.5s ease-in;
  background: var(--clr-bg);
}
.teaser-video.active { opacity: 1; }

/* ── Click overlay ── */
.click-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: pointer;
  display: none;
}
.click-overlay.ready { display: block; }
.click-overlay:focus-visible {
  outline: 2px solid rgba(255,255,255,0.4);
  outline-offset: -4px;
}

/* ── ENTER / click hint ── */
@keyframes pulseHint {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.click-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  bottom: 34%;
}
.click-overlay.ready .click-hint {
  opacity: 1;
  animation: pulseHint 2s ease-in-out infinite;
}

.click-hint__word {
  font-family: var(--font-main);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  line-height: 1;
}
.click-hint__sub {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}


/* ==============================================
   FORM FOLD — Stage 5
=============================================== */

.form-fold {
  background-color: var(--clr-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.form-fold.form-hidden  { display: none; }
.form-fold.form-visible {
  display: flex;
  animation: fadeInUp 0.8s ease-out both;
}

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

.fold-form {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background-image: url(../images/form-bg.jpg);
  background-size: cover;
  background-position: center;
  padding: 80px 20px 60px;
}

.fold-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 480px;
}

.fold-logo { text-align: center; }

.logo-img {
  display: inline-block;
  max-width: 375px;
  width: 100%;
  height: auto;
}

.fold-heading { text-align: center; }

.coming-soon-label {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 50px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-white);
}

/* ── Form elements ── */
.fold-form-inner { width: 100%; }

.form-group { margin-bottom: 1rem; }
.form-group:nth-child(1) { animation: slideUp 0.5s 0.1s ease-out both; }
.form-group:nth-child(2) { animation: slideUp 0.5s 0.2s ease-out both; }

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

label {
  display: block;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 9px;
  color: var(--clr-white);
}

input[type="email"] {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  color: var(--clr-white);
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 400;
  transition: border-color 0.3s ease;
}
input[type="email"]:focus { border-color: var(--clr-border-focus); }

.form-group-btn { padding-top: 1.5rem; }

.pledge-button {
  width: 100%;
  height: 50px;
  background: transparent;
  border: 1px solid var(--clr-white);
  color: var(--clr-white);
  font-family: var(--font-main);
  font-size: 21px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem;
  padding: 0 10px;
  transition: background 0.35s ease, color 0.35s ease;
}
.pledge-button:hover,
.pledge-button:focus-visible {
  background: var(--clr-white);
  color: var(--clr-bg);
  outline: none;
}
.pledge-button:hover svg path,
.pledge-button:focus-visible svg path { fill: var(--clr-bg); }
.pledge-button:disabled { opacity: 0.5; cursor: not-allowed; }
.pledge-button .arrow { display: flex; align-items: center; }

.formMessage {
  color: var(--clr-success);
  margin-top: 10px;
  display: none;
  text-align: center;
  font-family: var(--font-main);
  font-size: 16px;
}


/* ==============================================
   STORE LINKS
=============================================== */

.store-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 20px;
  height: 46px;
  border: 1px solid var(--clr-border);
  color: var(--clr-white);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.3s ease, background 0.3s ease;
  white-space: nowrap;
}
.store-btn:hover,
.store-btn:focus-visible {
  border-color: var(--clr-white);
  background: rgba(255,255,255,0.06);
  outline: none;
}
.store-icon { width: 18px; height: 18px; flex-shrink: 0; }


/* ==============================================
   FOOTER
=============================================== */

.site-footer {
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: var(--clr-bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--font-main);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}

.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.footer-link {
  font-family: var(--font-main);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.footer-link:hover,
.footer-link:focus-visible { color: var(--clr-white); outline: none; }


/* ==============================================
   RESPONSIVE
=============================================== */

@media screen and (max-width: 768px) {
  .logo-img { max-width: 280px; }
  .fold-form { padding: 60px 24px 48px; }
  .fold-inner { gap: 1.5rem; }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
}

@media screen and (max-width: 480px) {
  .logo-img { max-width: 200px; }
  .fold-form { padding: 50px 20px 40px; }
  .fold-inner { gap: 1.25rem; }
  .form-group-btn { padding-top: 0.75rem; }
  .pledge-button { font-size: 18px; }
  /* .click-hint { bottom: 24px; } */
  .click-hint__word { font-size: 28px; }
  .click-hint__sub { font-size: 10px; }
  .store-links { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; justify-content: center; }
}


/* ==============================================
   REDUCED MOTION
=============================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
