:root {
  color-scheme: dark;
  --page-bg: #030303;
  --gold: #d8b467;
  --gold-soft: #f0d89c;
  --text: #f7f1e6;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--page-bg);
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  font-family: Georgia, "Times New Roman", serif;
}

.stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(8px, 1.6vw, 24px);
  background:
    radial-gradient(circle at 18% 18%, rgba(177, 128, 48, .10), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(213, 170, 79, .06), transparent 30%),
    #030303;
}

.desktop-artwork {
  position: relative;
  z-index: 2;
  width: min(100%, 1600px);
  margin: 0;
  opacity: 0;
  transform: translateY(18px) scale(.992);
  animation: reveal 1.15s cubic-bezier(.2,.72,.2,1) forwards;
}

.artwork {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100svh - clamp(16px, 3.2vw, 48px));
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,.48));
  animation: breathe 12s ease-in-out 1.2s infinite alternate;
}

.mobile-card { display: none; }

.ambient {
  position: absolute;
  z-index: 1;
  width: 42vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .12;
  pointer-events: none;
}
.ambient-one { top: -24vw; left: -18vw; background: #d8a94f; animation: drift-one 18s ease-in-out infinite alternate; }
.ambient-two { right: -20vw; bottom: -28vw; background: #a97730; animation: drift-two 20s ease-in-out infinite alternate; }

.noscript-message {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(210,171,90,.35);
  border-radius: 999px;
  background: rgba(0,0,0,.72);
  color: #f2eadc;
  font-size: 14px;
  text-align: center;
}

@keyframes reveal { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.008); } }
@keyframes drift-one { from { transform: translate3d(0,0,0) scale(.92); } to { transform: translate3d(8vw,5vw,0) scale(1.08); } }
@keyframes drift-two { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-7vw,-4vw,0) scale(1.1); } }
@keyframes mobileRise { to { opacity: 1; transform: translateY(0); } }
@keyframes glowPulse { 0%,100% { opacity: .45; } 50% { opacity: .85; } }

@media (max-width: 820px) {
  .stage {
    min-height: 100svh;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
    overflow-y: auto;
    place-items: center;
  }

  .desktop-artwork { display: none; }

  .mobile-card {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(100%, 620px);
    min-height: calc(100svh - 20px);
    overflow: hidden;
    border: 1px solid rgba(216,180,103,.72);
    border-radius: 22px;
    background: #050403;
    box-shadow: 0 24px 70px rgba(0,0,0,.58), inset 0 0 80px rgba(183,126,38,.05);
    opacity: 0;
    transform: translateY(16px);
    animation: mobileRise .9s cubic-bezier(.2,.72,.2,1) .1s forwards;
  }

  .mobile-visual {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.14) 36%, rgba(0,0,0,.86) 67%, #050403 100%),
      linear-gradient(90deg, rgba(0,0,0,.55) 0%, transparent 52%),
      url("assets/benqubi-coming-soon.png");
    background-repeat: no-repeat;
    background-size: auto 72%, auto 72%, auto 72%;
    background-position: center top, center top, 78% 2%;
    filter: saturate(.95) contrast(1.02);
  }

  .mobile-copy {
    position: relative;
    z-index: 2;
    align-self: end;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(300px, 58vh, 500px) 28px 42px;
    color: var(--text);
    text-align: center;
  }

  .brand {
    margin: 0;
    color: var(--gold-soft);
    font-size: clamp(30px, 8vw, 46px);
    line-height: 1.05;
  }

  .brand-line {
    width: min(240px, 62vw);
    height: 1px;
    margin: 16px 0 28px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    box-shadow: 0 0 14px rgba(216,180,103,.45);
  }

  .eyebrow {
    margin: 0 0 8px;
    font-size: clamp(18px, 5vw, 25px);
    letter-spacing: .14em;
    line-height: 1.25;
    text-transform: uppercase;
  }

  h1 {
    margin: 0;
    background: linear-gradient(180deg, #f4dda5, #c8953f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(48px, 14vw, 78px);
    font-weight: 400;
    letter-spacing: .015em;
    line-height: .94;
    text-transform: uppercase;
  }

  .ornament {
    width: min(320px, 78vw);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 26px 0 22px;
  }
  .ornament i { height: 1px; background: linear-gradient(90deg, transparent, rgba(216,180,103,.78)); }
  .ornament i:last-child { background: linear-gradient(90deg, rgba(216,180,103,.78), transparent); }
  .ornament b { width: 10px; height: 10px; transform: rotate(45deg); background: var(--gold-soft); box-shadow: 0 0 18px rgba(239,209,137,.85); animation: glowPulse 3s ease-in-out infinite; }

  .message, .closing {
    max-width: 520px;
    margin: 0;
    font-size: clamp(17px, 4.7vw, 23px);
    line-height: 1.5;
  }
  .closing { margin-top: 18px; }
}

@media (max-width: 430px) {
  .stage { padding-inline: 6px; }
  .mobile-card { min-height: calc(100svh - 12px); border-radius: 16px; }
  .mobile-visual {
    background-size: auto 58%, auto 58%, auto 58%;
    background-position: center top, center top, 76% 0;
  }
  .mobile-copy { padding: clamp(245px, 50vh, 390px) 20px 30px; }
  .brand-line { margin-bottom: 22px; }
  .ornament { margin: 21px 0 18px; }
}

@media (max-width: 360px) {
  .mobile-copy { padding-inline: 16px; }
  .message, .closing { font-size: 16px; }
}

@media (orientation: landscape) and (max-height: 600px) and (max-width: 1000px) {
  .stage { padding: 8px; }
  .mobile-card {
    width: min(100%, 920px);
    min-height: calc(100svh - 16px);
    grid-template-columns: 48% 52%;
  }
  .mobile-visual {
    position: relative;
    min-height: calc(100svh - 18px);
    background-size: cover, cover, auto 100%;
    background-position: center, center, 72% center;
  }
  .mobile-copy {
    align-self: center;
    padding: 28px 26px;
  }
  .brand { font-size: clamp(28px, 5vw, 42px); }
  h1 { font-size: clamp(42px, 8vw, 68px); }
  .eyebrow { font-size: 16px; }
  .message, .closing { font-size: 16px; line-height: 1.4; }
  .brand-line { margin: 12px 0 18px; }
  .ornament { margin: 18px 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-artwork, .artwork, .ambient, .mobile-card, .ornament b { animation: none !important; }
  .desktop-artwork, .mobile-card { opacity: 1; transform: none; }
}
