:root {
    --bg-deep:    #07060a;
    --bg-soft:    #0e0b0a;
    --gold:       #c9a961;
    --gold-warm:  #d4b876;
    --gold-bright:#e8c879;
    --gold-deep:  #8a6f3f;
    --gold-faint: rgba(201, 169, 97, 0.20);
    --ink:        #efe6d6;
    --ink-mute:   #7a6e5c;
    --ink-faint:  rgba(232, 223, 210, 0.30);

    --display: "Cormorant", "Times New Roman", serif;
    --body:    "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;
  }

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

  html, body {
    margin: 0; padding: 0;
    background: var(--bg-deep);
    color: var(--ink);
    font-family: var(--body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
  }

  body {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  /* ============ ATMOSPHERIC BACKDROP ============ */
  .backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg-deep);
  }

  /* Pulsing warm halo at base — a "lit room" feel */
  /* Halo removed */
  .halo { display: none; }

  /* Smoke canvases — gold-tinted particles at ~20% brightness.
     Both layers start invisible; fade in after the entrance cascade. */
  #smoke-ambient, #smoke-plume {
    position: absolute;
    inset: 0;
    mix-blend-mode: screen;
    opacity: 0;
  }
  #smoke-ambient { animation: smoke-enter-ambient 4s ease-out 2.6s forwards; }
  #smoke-plume   { animation: smoke-enter-plume   4s ease-out 2.8s forwards; }
  @keyframes smoke-enter-ambient { to { opacity: 0.45; } }
  @keyframes smoke-enter-plume   { to { opacity: 0.60; } }

  /* Centre glow — a large, persistent gold halo behind the hero content.
     Sits in the middle of the page, breathes slowly. Fades in with the
     smoke (2.6 s delay) so it joins the rest of the atmosphere. */
  .center-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 700px;
    transform: translate(-50%, -50%);
    background: radial-gradient(
      ellipse at center,
      rgba(212, 184, 118, 0.22) 0%,
      rgba(201, 169, 97, 0.12) 30%,
      rgba(150, 110, 65, 0.05) 55%,
      transparent 75%
    );
    filter: blur(40px);
    mix-blend-mode: screen;
    pointer-events: none;
    opacity: 0;
    animation:
      center-glow-enter 4s ease-out 2.6s forwards,
      center-glow-breathe 10s ease-in-out 6.6s infinite;
  }
  @keyframes center-glow-enter   { to { opacity: 0.85; } }
  @keyframes center-glow-breathe {
    0%, 100% { opacity: 0.85; }
    50%      { opacity: 1; }
  }

  /* Discreet shimmer spots — gold radial blobs that pulse in different
     parts of the page on staggered timers. The first one starts ~8 s in,
     so they only appear after the smoke has fully settled. Each one is
     soft-blurred and screen-blended to read as a faint glow, not a circle. */
  .shimmer-spot {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle,
      rgba(212, 184, 118, 0.18) 0%,
      rgba(201, 169, 97, 0.08) 35%,
      transparent 70%);
    filter: blur(42px);
    mix-blend-mode: screen;
    opacity: 0;
    pointer-events: none;
  }
  .shimmer-spot.sp1 { top: 12%; left:  6%; animation: shimmer-pulse 13s ease-in-out  8s infinite; }
  .shimmer-spot.sp2 { top: 22%; right: 9%; animation: shimmer-pulse 15s ease-in-out 14s infinite; }
  .shimmer-spot.sp3 { top: 55%; left: 14%; animation: shimmer-pulse 12s ease-in-out 19s infinite; }
  .shimmer-spot.sp4 { top: 62%; right: 12%; animation: shimmer-pulse 16s ease-in-out 24s infinite; }
  .shimmer-spot.sp5 { top: 38%; left: 50%; transform: translateX(-50%);
                      animation: shimmer-pulse 14s ease-in-out 30s infinite; }
  @keyframes shimmer-pulse {
    0%, 100% { opacity: 0; }
    50%      { opacity: 0.85; }
  }

  /* Stars — distant twinkles in the upper sky. Only opacity animates
     (GPU-compositable); the box-shadow halo is static. Stars sit behind
     main content (z-index 1) and never overlap the logo's centre column. */
  .stars {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  .star {
    position: absolute;
    width: 2px; height: 2px;
    background: #fff5dc;
    border-radius: 50%;
    box-shadow:
      0 0 4px rgba(255, 245, 220, 0.9),
      0 0 10px rgba(255, 245, 220, 0.45);
    opacity: 0.5;
    animation: twinkle 5.5s ease-in-out infinite;
  }
  .star.s2 {
    width: 3px; height: 3px;
    box-shadow:
      0 0 6px rgba(255, 245, 220, 0.95),
      0 0 14px rgba(255, 245, 220, 0.5);
    animation-duration: 6.5s;
  }
  .star.s3 {
    width: 3px; height: 3px;
    background: var(--gold-bright);
    box-shadow:
      0 0 7px rgba(232, 200, 121, 0.9),
      0 0 16px rgba(232, 200, 121, 0.45);
    animation-duration: 7.5s;
  }
  /* Faint distant pin-pricks — gives the sky depth */
  .star.tiny {
    width: 1px; height: 1px;
    box-shadow: 0 0 3px rgba(255, 245, 220, 0.65);
    animation: twinkle-tiny 4.5s ease-in-out infinite;
  }
  /* Cyclic delays so 40+ stars don't pulse in sync (8 phase groups) */
  .star:nth-child(8n+1) { animation-delay: 0.3s; }
  .star:nth-child(8n+2) { animation-delay: 0.9s; }
  .star:nth-child(8n+3) { animation-delay: 1.5s; }
  .star:nth-child(8n+4) { animation-delay: 2.1s; }
  .star:nth-child(8n+5) { animation-delay: 2.7s; }
  .star:nth-child(8n+6) { animation-delay: 3.3s; }
  .star:nth-child(8n+7) { animation-delay: 3.9s; }
  .star:nth-child(8n)   { animation-delay: 4.5s; }
  @keyframes twinkle {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 1; }
  }
  @keyframes twinkle-tiny {
    0%, 100% { opacity: 0.18; }
    50%      { opacity: 0.7; }
  }

  /* Shooting stars — a thin streak that crosses the upper sky.
     Each cycle: brief visible flight, then long off-screen wait.
     Trail = horizontal gradient (transparent tail → bright leading edge),
     plus a bright pseudo-element "head" at the right end with a soft halo,
     all rotated so the streak aligns with the diagonal motion. */
  .shooting-star {
    position: absolute;
    top: 0; left: 0;
    width: 140px;
    height: 1px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 245, 220, 0.0) 35%,
      rgba(255, 245, 220, 0.35) 70%,
      rgba(255, 245, 220, 0.8) 92%,
      #ffffff 100%);
    border-radius: 1px;
    opacity: 0;
    pointer-events: none;
    animation: shoot 11s linear 3s infinite;
  }
  /* Bright comet head at the leading (right) edge */
  .shooting-star::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 50%;
    width: 4px;
    height: 4px;
    margin-top: -2px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow:
      0 0 6px rgba(255, 245, 220, 0.95),
      0 0 14px rgba(255, 245, 220, 0.55),
      0 0 24px rgba(255, 245, 220, 0.25);
  }
  .shooting-star.ss2 {
    width: 110px;
    animation: shoot2 11s linear 8s infinite;
  }
  .shooting-star.ss2::after {
    width: 3px; height: 3px;
    margin-top: -1.5px;
    box-shadow:
      0 0 5px rgba(255, 245, 220, 0.9),
      0 0 12px rgba(255, 245, 220, 0.45);
  }
  @keyframes shoot {
    0%        { transform: translate(-15vw, 3vh)  rotate(13deg); opacity: 0; }
    1%        { opacity: 1; }
    7%        { opacity: 1; }
    9%        { transform: translate(115vw, 32vh) rotate(13deg); opacity: 0; }
    100%      { transform: translate(115vw, 32vh) rotate(13deg); opacity: 0; }
  }
  /* shoot2 starts from upper-right and streaks to lower-left.
     scaleX(-1) mirrors the bar so the bright head pseudo-element ends up
     on the leading (left) edge, and the slope flips to match the motion. */
  @keyframes shoot2 {
    0%        { transform: translate(115vw, 3vh)  scaleX(-1) rotate(13deg); opacity: 0; }
    1%        { opacity: 0.9; }
    6%        { opacity: 0.9; }
    8%        { transform: translate(-15vw, 32vh) scaleX(-1) rotate(13deg); opacity: 0; }
    100%      { transform: translate(-15vw, 32vh) scaleX(-1) rotate(13deg); opacity: 0; }
  }

  /* Edge vignette — keeps focus center */
  .vignette {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 75% 85% at 50% 45%,
        transparent 45%,
        rgba(7, 6, 10, 0.35) 80%,
        rgba(7, 6, 10, 0.80) 100%);
  }

  /* Film grain */
  .grain {
    position: absolute; inset: 0;
    opacity: 0.14;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    pointer-events: none;
  }


  /* ============ MAIN ============ */
  main {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 32px;
    text-align: center;
    width: 100%;
  }

  /* Logo — hero size */
  .logo-wrap {
    opacity: 0;
    animation: fade-in 2s ease-out 0.3s forwards;
  }
  .logo {
    width: clamp(220px, 42vw, 360px);
    height: auto;
    display: block;
    filter:
      drop-shadow(0 4px 28px rgba(201, 169, 97, 0.28))
      drop-shadow(0 0 60px rgba(201, 169, 97, 0.10));
  }

  /* Eyebrow */
  .eyebrow {
    margin-top: 14px;
    font-family: var(--body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.52em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0;
    animation: fade-in 1.6s ease-out 1.1s forwards;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding-left: 0.52em; /* compensate for tracking */
  }
  .eyebrow::before, .eyebrow::after {
    content: "";
    display: inline-block;
    width: 32px; height: 1px;
    background: var(--gold-faint);
  }

  /* Headline — plain warm-white text. No gold, no gradient, no glow. */
  .headline {
    margin: 56px 0 0;
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(22px, 3.6vw, 32px);
    line-height: 1.5;
    letter-spacing: 0.02em;
    max-width: 620px;
    opacity: 0;
    color: var(--ink);
    animation: fade-in 1.8s ease-out 1.4s forwards;
  }
  .headline em {
    font-style: italic;
  }

  /* Ornament */
  .ornament {
    margin: 48px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    animation: fade-in 1.6s ease-out 1.7s forwards;
  }
  .ornament .line {
    width: 56px; height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-deep), transparent);
  }
  .ornament .diamond {
    width: 6px; height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.6);
  }

  /* Countdown */
  .countdown {
    margin: 40px 0 0;
    display: flex;
    justify-content: center;
    gap: clamp(20px, 5.5vw, 48px);
    opacity: 0;
    animation: fade-in 1.6s ease-out 1.9s forwards;
  }
  .unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    position: relative;
  }
  .unit + .unit::before {
    content: "";
    position: absolute;
    left: calc(-1 * (clamp(20px, 5.5vw, 48px) / 2));
    top: 30%;
    transform: translateX(-50%);
    height: 1px;
    width: 14px;
    background: var(--gold-faint);
    opacity: 0.5;
  }
  .unit .num {
    font-family: "Marcellus", "Trajan Pro", "Times New Roman", serif;
    font-weight: 400;
    font-size: clamp(46px, 8vw, 72px);
    line-height: 1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    text-shadow: 0 0 28px rgba(201, 169, 97, 0.18);
  }
  .unit .label {
    margin-top: 16px;
    font-family: var(--body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--gold);
    padding-left: 0.42em;
  }

  /* Opening line */
  .opening {
    margin: 48px 0 0;
    font-family: var(--body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.46em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0;
    animation: fade-in 1.6s ease-out 2.1s forwards;
    padding-left: 0.46em;
  }

  /* VIP form */
  .vip {
    margin: 40px auto 0;
    max-width: 440px;
    width: 100%;
    opacity: 0;
    animation: fade-in 1.6s ease-out 2.3s forwards;
  }
  .vip-label {
    font-family: var(--body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 16px;
    padding-left: 0.4em;
  }
  .vip-form {
    display: flex;
    border: 1px solid var(--gold-faint);
    border-radius: 2px;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    background: rgba(7, 6, 10, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .vip-form:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold-faint), 0 0 32px rgba(201, 169, 97, 0.18);
  }
  .vip-form input[type="email"] {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    padding: 15px 18px;
    font-family: var(--body);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--ink);
    min-width: 0;
  }
  .vip-form input[type="email"]::placeholder {
    color: var(--ink-mute);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 10px;
  }
  .vip-form button {
    background: transparent;
    border: 0;
    border-left: 1px solid var(--gold-faint);
    padding: 0 24px;
    font-family: var(--body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--gold-deep);
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
  }
  .vip-form button:hover {
    background: var(--gold-deep);
    color: var(--ink);
  }
  .vip-form button:disabled { opacity: 0.5; cursor: wait; }
  .vip-msg {
    margin-top: 16px;
    font-family: var(--display);
    font-style: italic;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--gold-warm);
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  .vip-msg.show { opacity: 1; }

  /* Footer */
  footer {
    position: relative;
    z-index: 2;
    padding: 36px 24px 32px;
    text-align: center;
    font-family: var(--body);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--ink-faint);
    opacity: 0;
    animation: fade-in 1.6s ease-out 2.5s forwards;
  }
  footer .powered {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  footer a {
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.38em;
    transition: color 0.3s ease;
  }
  footer a:hover { color: var(--gold-warm); }

  @keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* === Mobile === */
  @media (max-width: 520px) {
    main { padding: 32px 20px 28px; }

    /* Extra galaxy-density stars are for wider screens only */
    .star.desktop-only { display: none; }
    /* Shimmer spots and centre glow are desktop-only — mobile stays uncluttered */
    .shimmer-spot, .center-glow { display: none; }

    .logo { width: clamp(180px, 60vw, 240px); }

    .eyebrow {
      font-size: 9px;
      letter-spacing: 0.38em;
      gap: 12px;
    }
    .eyebrow::before, .eyebrow::after { width: 22px; }

    .headline {
      margin-top: 38px;
      font-size: 19px;
      line-height: 1.55;
      letter-spacing: 0.01em;
      padding: 0 4px;
    }

    .ornament { margin-top: 36px; }
    .ornament .line { width: 40px; }

    .countdown {
      margin-top: 32px;
      gap: 18px;
    }
    .unit { min-width: 56px; }
    .unit + .unit::before { display: none; }
    .unit .num {
      font-size: 42px;
      letter-spacing: 0.03em;
    }
    .unit .label {
      margin-top: 10px;
      font-size: 9px;
      letter-spacing: 0.32em;
    }

    .opening {
      margin-top: 36px;
      font-size: 12px;
      letter-spacing: 0.36em;
    }

    .vip { margin-top: 32px; }
    .vip-label {
      font-size: 9px;
      letter-spacing: 0.32em;
      margin-bottom: 12px;
    }
    .vip-form input[type="email"] {
      padding: 14px 16px;
      font-size: 16px; /* 16px prevents iOS Safari from zooming on focus */
    }
    .vip-form input[type="email"]::placeholder {
      font-size: 11px;
    }
    .vip-form button {
      padding: 0 18px;
      font-size: 10px;
      letter-spacing: 0.28em;
    }

    footer {
      padding: 28px 20px 24px;
      font-size: 8.5px;
      letter-spacing: 0.32em;
    }
  }

  /* === Small phones (iPhone SE 1st gen, older Androids) === */
  @media (max-width: 360px) {
    .logo { width: clamp(160px, 56vw, 200px); }
    .headline { font-size: 17px; }
    .countdown { gap: 14px; flex-wrap: nowrap; max-width: 100%; }
    .unit { min-width: 48px; }
    .unit .num { font-size: 38px; }
  }

  /* === Short viewports (landscape phones) === */
  @media (max-height: 720px) and (max-width: 900px) {
    main { padding-top: 24px; padding-bottom: 20px; }
    .headline { margin-top: 28px; }
    .countdown { margin-top: 24px; }
    .opening { margin-top: 28px; }
    .vip { margin-top: 24px; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    /* Headline is already fully static — nothing to override */
  }