/* ==========================================================================
   CreatorsJourney — "The Journey" fullscreen cinematic
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: #04080f;
  color: #fff;
  overflow: hidden;
  cursor: default;
}

#stage { position: fixed; inset: 0; display: block; width: 100vw; height: 100vh; }

/* ---- Overlay UI -------------------------------------------------------- */
.ui { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.ui > * { pointer-events: auto; }

.brand-mark {
  position: fixed; top: clamp(16px, 3vw, 32px); left: clamp(16px, 3vw, 32px);
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transition: opacity 1s ease 0.4s;
}
.brand-mark.show { opacity: 0.92; }
.brand-mark__star { width: 24px; height: 24px; filter: drop-shadow(0 0 8px rgba(127,232,255,0.55)); }
.brand-mark__name { font: 700 17px/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: -0.01em; color: #fff; white-space: nowrap; }
.brand-mark__name b { color: #7fe8ff; font-weight: 700; }

/* Skip / replay controls */
.controls {
  position: fixed; bottom: clamp(18px, 4vw, 40px); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 18px;
}
.btn-ui {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font: 600 13px/1 "Space Grotesk", sans-serif; letter-spacing: 0.04em;
  color: #f3effb; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16); backdrop-filter: blur(8px);
  transition: background 0.25s, border-color 0.25s, transform 0.15s, opacity 0.6s;
  cursor: pointer;
}
.btn-ui:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }
.btn-ui svg { width: 15px; height: 15px; }

/* Timeline progress */
.timeline {
  position: fixed; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255,255,255,0.08);
}
.timeline__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #38bdf8, #2dd4bf, #ffc24b);
  box-shadow: 0 0 12px rgba(45,212,191,0.7);
  transition: width 0.1s linear;
}

/* Scene caption (subtitles) */
.caption {
  position: fixed; left: 50%; bottom: clamp(70px, 14vh, 130px); transform: translateX(-50%) translateY(8px);
  text-align: center; max-width: min(80vw, 640px);
  font: 500 clamp(15px, 2.4vw, 22px)/1.4 "Space Grotesk", sans-serif;
  letter-spacing: 0.01em; color: #efeaff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
  opacity: 0; transition: opacity 0.8s ease, transform 0.8s ease;
}
.caption.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.caption small { display: block; margin-top: 6px; font-size: 0.6em; letter-spacing: 0.22em; text-transform: uppercase; color: #b9add6; }

/* Final call to action — revealed at the grail */
.finale {
  position: fixed; left: 50%; bottom: clamp(74px, 15vh, 150px); top: auto;
  transform: translateX(-50%) translateY(10px);
  text-align: center; opacity: 0;
  transition: opacity 1.2s ease 0.3s, transform 1.2s ease 0.3s;
}
.finale.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.finale p { font: 500 clamp(15px, 2vw, 19px)/1.5 "Inter", sans-serif; color: #fff; margin-bottom: 18px; letter-spacing: 0.02em; text-shadow: 0 2px 24px rgba(20,8,4,0.85), 0 1px 3px rgba(20,8,4,0.9); }
.finale a.cta {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px;
  font: 600 15px/1 "Space Grotesk", sans-serif;
  color: #1a0b2e; background: linear-gradient(135deg, #ffe9a8, #ffc24b);
  box-shadow: 0 10px 40px rgba(255,194,75,0.45); text-decoration: none;
  transition: transform 0.18s, box-shadow 0.3s;
}
.finale a.cta:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(255,194,75,0.6); }

/* Discrete contact — always reachable (app stores require a support contact) */
.site-contact {
  position: fixed; right: clamp(14px, 3vw, 30px); bottom: clamp(14px, 3vw, 26px);
  z-index: 60; /* above the start gate so it's findable before the animation */
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
  text-align: right; text-decoration: none;
  opacity: 0.5; transition: opacity 0.3s ease;
}
.site-contact:hover { opacity: 1; }
.site-contact span {
  font: 600 9.5px/1 "Space Grotesk", system-ui, sans-serif;
  letter-spacing: 0.16em; text-transform: uppercase; color: #8fb3c8;
}
.site-contact strong {
  font: 500 13px/1 "Inter", system-ui, sans-serif; color: #dbe9f4;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
@media (max-width: 560px) {
  .site-contact span { font-size: 9px; }
  .site-contact strong { font-size: 12px; }
}

/* Start gate (autoplay-safe) */
.gate {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: radial-gradient(60% 60% at 50% 45%, #0b2236 0%, #04080f 75%);
  transition: opacity 0.9s ease;
}
.gate.hide { opacity: 0; pointer-events: none; }
.gate__inner { text-align: center; }
.gate__title {
  font: 700 clamp(30px, 7vw, 68px)/1.22 "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
  padding: 0.04em 0.06em 0.14em;   /* room for J/y descenders under background-clip:text */
  background: linear-gradient(120deg, #7fe8ff, #2dd4bf 52%, #ffc24b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}
.gate__sub { margin-top: 14px; color: #b9add6; font: 400 clamp(13px,2vw,17px)/1.5 "Inter", sans-serif; letter-spacing: 0.04em; }
.gate__btn {
  margin-top: 30px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font: 600 16px/1 "Space Grotesk", sans-serif;
  color: #06222e; background: linear-gradient(135deg, #5eead4, #38bdf8);
  border: none; box-shadow: 0 14px 44px rgba(45,212,191,0.45);
  transition: transform 0.18s, box-shadow 0.3s;
}
.gate__btn:hover { transform: translateY(-3px); box-shadow: 0 20px 60px rgba(56,189,248,0.5); }
.gate__pulse { display:inline-block; width:9px; height:9px; border-radius:50%; background:#ffc24b; box-shadow:0 0 0 0 rgba(255,194,75,0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,194,75,0.6);} 70%{box-shadow:0 0 0 14px rgba(255,194,75,0);} 100%{box-shadow:0 0 0 0 rgba(255,194,75,0);} }

@media (prefers-reduced-motion: reduce) {
  .gate__pulse { animation: none; }
}
