/* ───────────────────────────────────────────
   RESET & BASE
   ─────────────────────────────────────────── */

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

:root {
  --bg:       #0e0e0e;
  --bg-warm:  #121110;
  --text:     #e8e2d9;
  --text-dim: #7a756d;
  --accent:   #c4a882;
  --serif:    'Cormorant Garamond', 'Georgia', serif;
  --sans:     'Inter', 'Helvetica Neue', Arial, sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-warm);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}


/* ───────────────────────────────────────────
   GRAIN OVERLAY
   ─────────────────────────────────────────── */

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}


/* ───────────────────────────────────────────
   AMBIENT LIGHT
   ─────────────────────────────────────────── */

.ambient-light {
  position: fixed;
  top: 35%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse 60% 50%,
    rgba(196, 168, 130, 0.06) 0%,
    rgba(196, 168, 130, 0.025) 30%,
    rgba(196, 168, 130, 0.008) 55%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 0;
  animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
  }
}


/* ───────────────────────────────────────────
   PAGE LAYOUT
   ─────────────────────────────────────────── */

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 4rem 2rem;
  text-align: center;
}


/* ───────────────────────────────────────────
   DOMAIN
   ─────────────────────────────────────────── */

.domain {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--text-dim);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 1.2s ease-out 0.3s forwards;
}


/* ───────────────────────────────────────────
   HEADLINE
   ─────────────────────────────────────────── */

.headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 2.5rem;
}

.headline-line {
  display: block;
  opacity: 0;
  animation: fadeUp 1.4s ease-out forwards;
}

.headline-line:nth-child(1) {
  animation-delay: 0.6s;
}

.headline-line:nth-child(2) {
  animation-delay: 0.9s;
  font-style: italic;
  color: var(--accent);
}


/* ───────────────────────────────────────────
   DIVIDER DOT
   ─────────────────────────────────────────── */

.divider-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeIn 1.2s ease-out 1.1s forwards;
  box-shadow: 0 0 12px rgba(196, 168, 130, 0.3);
}


/* ───────────────────────────────────────────
   COUNTDOWN
   ─────────────────────────────────────────── */

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1.4s ease-out 1.3s forwards;
}

.countdown-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.countdown-number {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  transition: color 2s ease;
}

.countdown-label {
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--text-dim);
  margin-top: 0.75rem;
  transition: color 2s ease;
}

.countdown-sep {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
  color: var(--text-dim);
  opacity: 0.3;
  padding: 0 clamp(0.4rem, 2vw, 1.2rem);
  align-self: flex-start;
  margin-top: 0.15em;
}

/* Completed state */
.countdown.completed .countdown-number {
  color: var(--accent);
}

.countdown.completed .countdown-label {
  color: var(--accent);
  opacity: 0.6;
}

.countdown.completed .countdown-sep {
  opacity: 0.15;
}


/* ───────────────────────────────────────────
   COMING SOON
   ─────────────────────────────────────────── */

.coming-soon {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--text-dim);
  margin-bottom: 0;
  opacity: 0;
  animation: fadeUp 1.2s ease-out 1.7s forwards;
  display: flex;
  align-items: center;
  gap: 1.2em;
}

.coming-soon-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--text-dim);
  opacity: 0.25;
}


/* ───────────────────────────────────────────
   TEASE
   ─────────────────────────────────────────── */

.tease {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) scale(1);
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fadeIn 2s ease-out 2.8s forwards;
  cursor: default;
  z-index: 10;
  transition:
    transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
    color 0.8s ease,
    text-shadow 0.8s ease,
    font-size 0.8s ease,
    letter-spacing 0.8s ease;
  user-select: none;
  -webkit-user-select: none;
}

.tease::before,
.tease::after {
  content: '—';
  margin: 0 0.6em;
  opacity: 0.3;
  transition: opacity 0.8s ease;
}

/* Tease focus / active state */
.tease.focused {
  transform: translateX(-50%) scale(1.35);
  color: var(--text);
  letter-spacing: 0.08em;
  text-shadow:
    0 0 30px rgba(196, 168, 130, 0.15),
    0 0 60px rgba(196, 168, 130, 0.05);
}

.tease.focused::before,
.tease.focused::after {
  opacity: 0.6;
}

/* Full-page dim overlay */
.tease-dim {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 9, 0);
  pointer-events: none;
  z-index: 5;
  transition: background 0.8s ease;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.tease-dim.active {
  background: rgba(10, 10, 9, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}


/* ───────────────────────────────────────────
   ANIMATIONS
   ─────────────────────────────────────────── */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ───────────────────────────────────────────
   RESPONSIVE
   ─────────────────────────────────────────── */

@media (max-width: 600px) {
  .page {
    padding: 3rem 1.5rem;
  }

  .domain {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    margin-bottom: 2.5rem;
  }

  .headline {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 2rem;
  }

  .divider-dot {
    margin-bottom: 2rem;
  }

  .countdown {
    margin-bottom: 2rem;
  }

  .countdown-col {
    min-width: 70px;
  }

  .countdown-number {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .countdown-label {
    font-size: 0.45rem;
    letter-spacing: 0.25em;
    margin-top: 0.5rem;
  }

  .countdown-sep {
    font-size: clamp(2rem, 6vw, 3rem);
    padding: 0 0.3rem;
  }

  .coming-soon {
    font-size: 0.6rem;
  }

  .coming-soon-line {
    width: 24px;
  }

  .tease {
    font-size: 0.75rem;
    bottom: 2rem;
  }

  .tease.focused {
    transform: translateX(-50%) scale(1.25);
  }
}

@media (max-width: 360px) {
  .headline {
    font-size: 1.8rem;
  }

  .countdown-col {
    min-width: 55px;
  }

  .countdown-number {
    font-size: 2.4rem;
  }

  .countdown-sep {
    font-size: 1.6rem;
  }
}

@media (min-height: 900px) {
  .headline {
    margin-bottom: 3rem;
  }

  .divider-dot {
    margin-bottom: 3rem;
  }

  .countdown {
    margin-bottom: 3.5rem;
  }
}
