/* ═══════════════════════════════════════════════════════════════
   LIVERA — coming-soon.css
   Kinetic Facade · Countdown · Cursor
═══════════════════════════════════════════════════════════════ */

/* ── Cursor override ────────────────────────────────────────── */
body.cs-active          { cursor: none; }
body.cs-active *        { cursor: none; }

/* ── Container ──────────────────────────────────────────────── */
#coming-soon {
  position: fixed;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  overflow: hidden;
}

#coming-soon.hidden {
  visibility: hidden;
}

/* ── Three.js canvas ────────────────────────────────────────── */
#cs-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Overlay vignette ───────────────────────────────────────── */
#cs-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 120% 100% at 50% 50%,
      transparent 0%,
      rgba(5, 6, 8, 0.10) 45%,
      rgba(5, 6, 8, 0.60) 100%
    ),
    linear-gradient(
      to top,
      rgba(5, 6, 8, 0.95) 0%,
      rgba(5, 6, 8, 0.10) 40%,
      rgba(5, 6, 8, 0.30) 100%
    );
}

/* ── Content ────────────────────────────────────────────────── */
#cs-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 40px 56px;
  overflow: hidden;
}

/* ── Logo ───────────────────────────────────────────────────── */
.cs-logo-img {
  width: 220px;
  max-width: 36vw;
  height: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(16px);
  filter: drop-shadow(0 2px 32px rgba(255, 255, 255, 0.08));
  transition:
    opacity   1.1s var(--ease-out-expo) 0.3s,
    transform 1.1s var(--ease-out-expo) 0.3s;
}

/* ── Gold divider ───────────────────────────────────────────── */
.cs-divider {
  width: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold) 40%, var(--gold) 60%, transparent);
  margin-bottom: 34px;
  transition: width 0.9s var(--ease-out-expo) 0.9s;
}

/* ── Headline ───────────────────────────────────────────────── */
.cs-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 3.9rem);
  font-weight: 300;
  line-height: 1.22;
  color: var(--white);
  max-width: 760px;
  letter-spacing: 0.01em;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity   1.3s var(--ease-out-expo) 1.1s,
    transform 1.3s var(--ease-out-expo) 1.1s;
}

.cs-headline em {
  font-style: italic;
  color: var(--gold-light);
}

/* ── Countdown ──────────────────────────────────────────────── */
#cs-countdown {
  display: flex;
  align-items: flex-start;
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity   1.0s ease 1.5s,
    transform 1.0s ease 1.5s;
}

.cs-count-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(54px, 8.5vw, 92px);
}

.cs-count-num {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.2vw, 4.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.03em;
}

.cs-count-label {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.40em;
  text-transform: uppercase;
  color: rgba(140, 140, 145, 0.65);
  margin-top: 10px;
}

.cs-count-sep {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  font-weight: 300;
  color: var(--gold-dim);
  line-height: 1;
  padding: 0 2px;
  align-self: flex-start;
  opacity: 0.65;
}

/* ── Email sub ──────────────────────────────────────────────── */
.cs-sub {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.8s ease 2.0s;
}

.cs-sub a {
  color: var(--gold-light);
  border-bottom: 1px solid rgba(201, 168, 76, 0.22);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.cs-sub a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold-dim);
}

/* ── Revealed state ─────────────────────────────────────────── */
#coming-soon.revealed .cs-logo-img  { opacity: 1; transform: translateY(0); }
#coming-soon.revealed .cs-divider   { width: 60px; }
#coming-soon.revealed .cs-headline  { opacity: 1; transform: translateY(0); }
#coming-soon.revealed #cs-countdown { opacity: 1; transform: translateY(0); }
#coming-soon.revealed .cs-sub       { opacity: 1; }

/* ── Custom cursor ──────────────────────────────────────────── */
#cs-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201, 168, 76, 0.48);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  display: none;
  will-change: transform;
}

#cs-cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  display: none;
  will-change: transform;
  opacity: 0.9;
}

body.cs-active #cs-cursor-ring,
body.cs-active #cs-cursor-dot { display: block; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-height: 700px) {
  #cs-content       { padding: 20px 40px 40px; }
  .cs-logo-img      { width: 160px; margin-bottom: 18px; }
  .cs-divider       { margin-bottom: 20px; }
  .cs-headline      { margin-bottom: 28px; font-size: clamp(1.4rem, 4vw, 2.5rem); }
  #cs-countdown     { margin-bottom: 24px; }
  .cs-count-num     { font-size: clamp(2rem, 5vw, 3.2rem); }
}

@media (max-width: 600px) {
  .cs-logo-img      { width: 160px; max-width: 55vw; }
  .cs-headline      { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .cs-count-unit    { min-width: 50px; }
  .cs-count-num     { font-size: clamp(2.2rem, 9vw, 3.4rem); }
  .cs-count-sep     { font-size: clamp(1.8rem, 7.5vw, 2.8rem); }
}
