/* ===== RESET ===== */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
}

/* ===== INTRO ROOT ===== */
.intro {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;

  padding:
    env(safe-area-inset-top)
    env(safe-area-inset-right)
    env(safe-area-inset-bottom)
    env(safe-area-inset-left);

  opacity: 1;
  transform: scale(1);
  transition: opacity 650ms ease, transform 650ms ease;
}

@supports (-webkit-touch-callout: none) {
  .intro { height: -webkit-fill-available; }
}

.intro.exiting {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

/* ===== BACKGROUND BLUR ===== */
.bg-blur {
  position: absolute;
  inset: 0;

  background-image: url("./Websiteintroscene.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform: scale(1.06);
  filter: blur(22px) saturate(1.05) brightness(0.9);
  opacity: 0.85;

  /* Fade blur toward edges */
  -webkit-mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
  mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
}

/* ===== SHARP FRAMED IMAGE ===== */
.bg-frame {
  position: absolute;
  inset: 0;

  background-image: url("./Websiteintroscene.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: clamp(320px, 70vw, 1100px) auto;

  /* Subtle frame / portal edge */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 20px 90px rgba(0, 0, 0, 0.6);

  /* Feather the edges */
  -webkit-mask-image: radial-gradient(circle at center, black 78%, transparent 100%);
  mask-image: radial-gradient(circle at center, black 78%, transparent 100%);
}

/* ===== OVERLAY ===== */
.overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.4) 70%,
      rgba(0, 0, 0, 0.65) 100%
    );
}

/* ===== TEXT ===== */
.content {
  position: relative;
  text-align: center;
  padding: 20px;
  user-select: none;
}

h1 {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-weight: 400;

  font-size: clamp(46px, 8vw, 96px);
  letter-spacing: 0.5px;

  color: #d7b66a;
  text-shadow:
    0 0 8px rgba(215,182,106,0.35),
    0 0 18px rgba(215,182,106,0.25),
    0 0 32px rgba(215,182,106,0.18);

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 2400ms ease, transform 2400ms ease;
}

p {
  margin-top: 14px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(14px, 2.8vw, 16px);
  color: rgba(255, 255, 255, 0.78);

  opacity: 0;
  transform: translateY(6px);
  transition: opacity 1600ms ease 400ms, transform 1600ms ease 400ms;
}

.content.visible h1,
.content.visible p {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  h1, p { opacity: 1 !important; transform: none !important; }
}
