/* ==========================================================
   THE GREAT SWINGALI — THE HOLLOW BETWEEN WORLDS
   CLEAN LAYERED BUILD
   Background image, logo, text, and interaction are separate.
   ========================================================== */

:root {
  --cream: #ead7b4;
  --cream-bright: #f3e6cc;
  --purple: #bd82ff;
  --purple-bright: #e0bdff;
  --purple-glow: rgba(172, 93, 255, .72);
  --black-shadow: rgba(0, 0, 0, .96);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: #030409;
}

body {
  overflow: hidden;
  color: var(--cream);
  font-family: "IM Fell English", Georgia, serif;
}

/* ---------- SCREEN ---------- */

.hollow {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #030409;
}

/* Approved image only. It fills the screen. */
.background {
  position: absolute;
  inset: 0;
  z-index: -3;

  background-image: url("../assets/images/hollow-between-worlds.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

/* Soft readability shading; it does not alter the source image file. */
.hollow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, .53) 0%,
      rgba(0, 0, 0, .36) 30%,
      rgba(0, 0, 0, .07) 57%,
      rgba(0, 0, 0, .03) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, .18) 0%,
      transparent 38%,
      transparent 80%,
      rgba(0, 0, 0, .20) 100%
    );
}

/* ---------- LOGO / INTRO ---------- */

.intro-header {
  position: absolute;
  z-index: 4;
  top: clamp(14px, 2vh, 26px);
  left: clamp(18px, 2.2vw, 40px);
  right: clamp(18px, 2.2vw, 40px);
  height: clamp(120px, 14vh, 165px);
}


.logo {
  position: absolute;
  top: 0;
  right: 0;

  width: clamp(150px, 11.5vw, 200px);
  height: auto;
  object-fit: contain;

  filter:
    drop-shadow(0 4px 10px rgba(0, 0, 0, .95))
    drop-shadow(0 0 9px rgba(163, 82, 255, .12));
}


.presents {
  position: absolute;
  top: 0;
  left: 0;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;

  text-shadow:
    0 3px 12px var(--black-shadow),
    0 0 12px rgba(0, 0, 0, .7);
}


.brand-name {
  font-family: "Rye", Georgia, serif;
  font-size: clamp(1.55rem, 2vw, 2.18rem);
  letter-spacing: .035em;
  color: var(--cream-bright);
}

.presents-word {
  margin-left: .2em;
  font-family: "Rye", Georgia, serif;
  font-size: clamp(1.35rem, 1.65vw, 1.82rem);
  letter-spacing: .08em;
  color: var(--cream);
}

/* ---------- TEXT ---------- */

.copy-panel {
  position: absolute;
  z-index: 3;

  top: clamp(175px, 20vh, 220px);
  left: clamp(28px, 3.6vw, 68px);

  width: min(64vw, 1180px);
  text-align: left;

  text-shadow:
    0 3px 13px var(--black-shadow),
    0 0 8px rgba(0, 0, 0, .8);
}

.copy-panel h1 {
  margin: 0;

  white-space: nowrap;

  font-family: "Rye", Georgia, serif;
  font-size: clamp(2.65rem, 4.15vw, 5.15rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .008em;

  color: #eee1c6;

  text-shadow:
    0 3px 0 rgba(56, 29, 13, .66),
    0 5px 18px rgba(0, 0, 0, 1),
    0 0 17px rgba(173, 95, 255, .18);
}

.copy-panel h1 {
  max-width: 100%;
  overflow: visible;
}

.copy-panel h1::after {
  content: "";
  display: block;

  width: 96%;
  height: 2px;
  margin-top: clamp(12px, 1.6vh, 18px);

  background:
    linear-gradient(
      90deg,
      rgba(190, 123, 255, .12),
      rgba(196, 132, 255, .85),
      rgba(196, 132, 255, .16)
    );

  box-shadow: 0 0 8px rgba(182, 96, 255, .34);
}

.copy-panel p {
  margin-left: clamp(4px, .4vw, 9px);
}

.opening {
  margin-top: clamp(18px, 2.3vh, 28px);

  font-size: clamp(1.48rem, 1.92vw, 2.02rem);
  line-height: 1.38;
  font-weight: 700;

  color: var(--cream-bright);
}

.gateway {
  margin-top: clamp(13px, 1.7vh, 20px);

  font-size: clamp(1.34rem, 1.73vw, 1.84rem);
  line-height: 1.38;

  color: var(--cream);
}

.question {
  margin-top: clamp(15px, 1.9vh, 22px);

  font-size: clamp(1.48rem, 1.94vw, 2.05rem);
  line-height: 1.3;
  font-style: italic;
  font-weight: 700;

  color: var(--purple-bright);

  text-shadow:
    0 3px 12px var(--black-shadow),
    0 0 11px rgba(162, 87, 255, .32);
}

/* ---------- PORTAL ---------- */

.portal-hotspot {
  position: absolute;
  z-index: 6;

  /*
    Tuned to the approved widescreen background.
    These are intentionally easy to adjust later without changing the image.
  */
  left: 70.3%;
  top: 54.5%;

  width: clamp(210px, 21vw, 365px);
  aspect-ratio: 1 / 1.16;

  transform: translate(-50%, -50%);
  border-radius: 50%;

  display: grid;
  place-items: center;

  text-decoration: none;
  outline: none;
}

.portal-ring {
  position: absolute;
  inset: 5%;
  border-radius: 50%;

  opacity: .12;

  border: 2px solid rgba(226, 191, 255, .34);

  box-shadow:
    0 0 18px rgba(216, 181, 255, .54),
    0 0 48px rgba(164, 83, 255, .48),
    0 0 96px rgba(117, 45, 255, .30),
    inset 0 0 36px rgba(214, 178, 255, .18);

  transition:
    opacity .22s ease,
    transform .30s ease,
    box-shadow .30s ease;
}

.venture {
  position: relative;
  z-index: 1;

  opacity: 0;

  padding: 9px 14px;

  font-family: "Rye", Georgia, serif;
  font-size: clamp(1rem, 1.18vw, 1.28rem);
  line-height: 1.2;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;

  color: #f3e2ff;

  text-shadow:
    0 2px 8px rgba(0, 0, 0, .98),
    0 0 8px rgba(181, 103, 255, .66);

  transition: opacity .22s ease;
}

.portal-hotspot:hover .portal-ring,
.portal-hotspot:focus-visible .portal-ring {
  opacity: 1;
  transform: scale(1.09);

  animation: portal-pulse 1.55s ease-in-out infinite;
}

.portal-hotspot:hover .venture,
.portal-hotspot:focus-visible .venture {
  opacity: 1;
}

.portal-hotspot:focus-visible {
  outline: 2px solid rgba(234, 209, 255, .92);
  outline-offset: 9px;
}

/* ---------- WAITING TEXT ---------- */

.portal-waiting {
  position: absolute;
  z-index: 5;

  left: 70.3%;
  bottom: clamp(64px, 8.5vh, 92px);

  transform: translateX(-50%);

  width: max-content;
  max-width: 92vw;

  font-family: "Rye", Georgia, serif;
  font-size: clamp(1.52rem, 2.22vw, 2.34rem);
  line-height: 1;
  letter-spacing: .055em;

  color: var(--purple-bright);

  text-shadow:
    0 2px 9px rgba(0, 0, 0, .98),
    0 0 13px rgba(168, 89, 255, .68);

  animation: waiting-pulse 3.1s ease-in-out infinite;
}

/* ---------- ANIMATION ---------- */

@keyframes waiting-pulse {
  0%,
  100% {
    opacity: .44;
    transform: translateX(-50%) scale(.985);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.03);

    text-shadow:
      0 2px 9px rgba(0, 0, 0, .98),
      0 0 22px rgba(184, 111, 255, .92);
  }
}

@keyframes portal-pulse {
  0%,
  100% {
    box-shadow:
      0 0 18px rgba(216, 181, 255, .54),
      0 0 48px rgba(164, 83, 255, .48),
      0 0 96px rgba(117, 45, 255, .30),
      inset 0 0 36px rgba(214, 178, 255, .18);
  }

  50% {
    box-shadow:
      0 0 28px rgba(239, 218, 255, .90),
      0 0 68px rgba(184, 108, 255, .72),
      0 0 122px rgba(132, 54, 255, .42),
      inset 0 0 48px rgba(231, 202, 255, .30);
  }
}

/* ---------- SMALLER SCREENS ---------- */

@media (max-width: 900px) {

  .background {
    background-position: 66% center;
  }

  .intro-header {
    left: 14px;
    right: 14px;
  }

  .logo {
    width: 118px;
    right: 0;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .presents-word {
    font-size: .95rem;
  }

  .copy-panel {
    top: 132px;
    left: 18px;
    width: 72vw;
  }

  .copy-panel h1 {
    white-space: normal;
    font-size: clamp(1.8rem, 5.7vw, 3rem);
  }

  .opening {
    font-size: clamp(.92rem, 2.6vw, 1.15rem);
  }

  .gateway {
    font-size: clamp(.84rem, 2.35vw, 1.05rem);
  }

  .question {
    font-size: clamp(.92rem, 2.5vw, 1.12rem);
  }

  .portal-hotspot {
    left: 71%;
    top: 60%;
    width: clamp(150px, 33vw, 230px);
  }

  .portal-waiting {
    left: 70%;
    bottom: 15px;

    font-size: clamp(.8rem, 3vw, 1.08rem);
  }
}
