/* ----------------------------------------------------------------
   Smokewoods — Coming Soon
   Warm, smoky, wood-fired dusk palette
------------------------------------------------------------------- */

:root {
  --ember:      #ff7a1f;
  --ember-deep: #e2561b;
  --fire:       #ff3d14;
  --cream:      #f6ecdd;
  --cream-dim:  #d8c7af;
  --wood:       #6e4128;
  --char:       #0c0807;
  --smoke:      #b9aa9a;

  --font-display: 'Anton', 'Oswald', Impact, sans-serif;
  --font-head:    'Oswald', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --pad: clamp(20px, 4vw, 56px);
}

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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--char);
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- 3D canvas fills the viewport ---- */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  touch-action: none;       /* let us handle drag */
}

/* ---- Cinematic overlays ---- */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 18%, transparent 38%, rgba(8,4,2,0.55) 100%),
    radial-gradient(100% 70% at 50% 120%, rgba(255,90,20,0.10), transparent 60%);
}
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -2%); }
  60% { transform: translate(-2%, 4%); }
  80% { transform: translate(4%, -3%); }
}

/* ---- Foreground UI shares one stacking context above the canvas ---- */
.topbar, .hero, .footer { position: fixed; z-index: 2; }

/* ---- Top bar ---- */
.topbar {
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 3vw, 30px) var(--pad);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cream);
}
.brand__icon { color: var(--ember); filter: drop-shadow(0 0 8px rgba(255,122,31,.6)); }
.brand__name {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .28em;
  font-size: clamp(14px, 1.6vw, 18px);
  padding-left: .28em;
}
.topbar__pill {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--cream-dim);
  border: 1px solid rgba(246,236,221,.18);
  border-radius: 999px;
  padding: 6px 14px;
  backdrop-filter: blur(4px);
}

/* ---- Hero ---- */
.hero {
  left: 0; bottom: 0;
  max-width: min(600px, 92vw);
  padding: var(--pad);
  padding-bottom: clamp(48px, 8vh, 84px);
}
.hero__eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .42em;
  font-size: clamp(11px, 1.4vw, 14px);
  color: var(--ember);
  margin-bottom: 12px;
  padding-left: .42em;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(54px, 10.5vw, 124px);
  line-height: .85;
  letter-spacing: .01em;
  color: var(--cream);
  text-shadow: 0 6px 40px rgba(255,90,20,.30), 0 2px 6px rgba(0,0,0,.5);
}
.hero__sub {
  margin-top: 16px;
  max-width: 46ch;
  font-size: clamp(14px, 1.7vw, 17px);
  line-height: 1.5;
  color: var(--cream-dim);
}

/* ---- Countdown ---- */
.countdown {
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 1.6vw, 16px);
  margin-top: 24px;
}
.countdown__unit { display: flex; flex-direction: column; align-items: center; min-width: 52px; }
.countdown__num {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 10px;
  color: var(--smoke);
  margin-top: 8px;
}
.countdown__sep {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 38px);
  color: var(--ember-deep);
  padding-bottom: 18px;
  opacity: .8;
}

/* ---- Notify form ---- */
.notify {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  max-width: 440px;
}
.notify__input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--cream);
  background: rgba(20,12,8,.55);
  border: 1px solid rgba(246,236,221,.20);
  border-radius: 999px;
  padding: 14px 20px;
  outline: none;
  backdrop-filter: blur(6px);
  transition: border-color .2s, box-shadow .2s;
}
.notify__input::placeholder { color: rgba(184,170,154,.7); }
.notify__input:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(255,122,31,.18);
}
.notify__btn {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 14px;
  color: #1a0d05;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  background: linear-gradient(135deg, #ffae42, var(--ember) 45%, var(--ember-deep));
  box-shadow: 0 6px 22px rgba(255,90,20,.40);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.notify__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,90,20,.55); filter: brightness(1.05); }
.notify__btn:active { transform: translateY(0); }
.notify__msg {
  min-height: 20px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--ember);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .3s;
}
.notify__msg.show { opacity: 1; transform: translateY(0); }
.notify__msg.error { color: #ff7a6a; }

/* ---- Socials ---- */
.socials { display: flex; gap: 14px; margin-top: 22px; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  color: var(--cream-dim);
  border: 1px solid rgba(246,236,221,.18);
  border-radius: 50%;
  text-decoration: none;
  transition: color .2s, border-color .2s, transform .2s, background .2s;
}
.socials a:hover {
  color: #1a0d05;
  background: var(--ember);
  border-color: var(--ember);
  transform: translateY(-3px);
}

/* ---- Footer ---- */
.footer {
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--pad);
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--smoke);
  pointer-events: none;
}
.footer span { pointer-events: auto; }
.footer__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: .85;
  transition: opacity .6s;
}
.footer__hint::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--smoke);
}
.footer__hint.hide { opacity: 0; }

/* ---- Loader ---- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: radial-gradient(80% 80% at 50% 45%, #1a0f08, #0c0807 80%);
  transition: opacity .8s ease, visibility .8s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader__flame { color: var(--ember); animation: flicker 1.1s ease-in-out infinite; filter: drop-shadow(0 0 16px rgba(255,122,31,.7)); }
.loader__text {
  font-family: var(--font-head);
  letter-spacing: .32em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--cream-dim);
}
@keyframes flicker {
  0%,100% { transform: scale(1) rotate(-2deg); opacity: 1; }
  50% { transform: scale(1.14) rotate(2deg); opacity: .82; }
}

/* ---- Fallback ---- */
.fallback {
  position: fixed; inset: 0;
  display: grid; place-content: center;
  text-align: center; padding: 40px;
  font-family: var(--font-head); letter-spacing: .2em;
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .topbar__pill { display: none; }
  .footer__loc, .footer__hint { display: none; }
  .footer { justify-content: center; }
  .hero { padding-bottom: clamp(40px, 8vh, 70px); }
  .countdown__unit { min-width: 42px; }
}

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