/* Entrance-only presentation layer. Keeps the studio itself unchanged. */

body.pre-entry #brand {
  color: #fff9ee;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.34);
  gap: 15px;
  font-size: 15px;
  letter-spacing: 1.7px;
}

body.pre-entry .brand-logo {
  width: 65px;
  height: 65px;
  filter: none;
}

body.pre-entry #brand small {
  margin-top: 5px;
  color: rgba(255, 249, 238, 0.76);
  font-size: 12px;
  letter-spacing: 0.35px;
  opacity: 1;
}

body.pre-entry #intro {
  left: clamp(42px, 4vw, 70px);
  top: 51%;
  width: clamp(300px, calc(27vw - 10px), 425px);
  color: #fff9ee;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.48);
}

body.pre-entry #intro .intro-name {
  font-size: 13px;
  letter-spacing: 0.11em;
  opacity: 0.95;
}

body.pre-entry #intro h1 {
  max-width: 425px;
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(36px, 2.85vw, 48px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: wrap;
}

body.pre-entry #intro p {
  max-width: 375px;
  margin-top: 20px;
  color: rgba(255, 249, 238, 0.95);
  font-size: clamp(15px, 1.08vw, 17px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  opacity: 1;
  text-transform: none;
}

/* Keep the original button available to keyboard users, but not visible. */
body.pre-entry #enter-studio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.pre-entry #enter-studio:focus-visible {
  position: static;
  width: auto;
  height: auto;
  margin-top: 26px;
  padding: 12px 18px;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(17, 34, 56, 0.9);
  color: #ffffff;
}

/* No entrance instruction under the intro copy. */
body.pre-entry .enter-hint {
  display: none;
}

/*
  Large invisible door target with the same hotspot language as the projects.
  The instruction sits ABOVE the ring, directly on the door.
*/
#door-hit-area {
  position: absolute;
  left: 29%;
  top: 2%;
  z-index: 7;
  display: none;
  width: 41%;
  height: 96%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff9ee;
  cursor: pointer;
  touch-action: manipulation;
}

body.pre-entry #door-hit-area {
  display: block;
}

#door-hit-area::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 47%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 11px rgba(255, 255, 255, 0.72);
}

#door-hit-area::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 47%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transition: width 0.16s ease, height 0.16s ease, border-color 0.16s ease;
}

#door-hit-area span {
  position: absolute;
  left: 50%;
  top: calc(47% - 49px);
  transform: translateX(-50%);
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 249, 238, 0.94);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.065em;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

#door-hit-area small {
  position: absolute;
  left: 50%;
  top: calc(47% + 34px);
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.3;
  color: rgba(255, 249, 238, 0.82);
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
  pointer-events: none;
}

#door-hit-area:hover::after,
#door-hit-area:focus-visible::after {
  width: 38px;
  height: 38px;
  border-color: rgba(255, 255, 255, 0.88);
}

#door-hit-area:hover span,
#door-hit-area:focus-visible span {
  transform: translateX(-50%) translateY(-2px);
}

#door-hit-area:focus-visible {
  outline: none;
}

body.pre-entry #scene canvas {
  pointer-events: auto;
}

@media (max-width: 1000px) {
  body.pre-entry .brand-logo {
    width: 50px;
    height: 50px;
  }

  body.pre-entry #intro {
    left: 28px;
    width: min(310px, calc(100vw - 56px));
  }

  body.pre-entry #intro h1 {
    font-size: clamp(32px, 3.6vw, 37px);
  }

  #door-hit-area {
    left: 26%;
    width: 48%;
  }
}

@media (max-width: 699px) {
  body.pre-entry #brand {
    color: #fff9ee;
  }

  body.pre-entry .brand-logo {
    width: 40px;
    height: 40px;
  }

  body.pre-entry #brand small {
    color: rgba(255, 249, 238, 0.72);
  }

  body.pre-entry #intro {
    left: 24px;
    right: 24px;
    top: 30%;
    width: auto;
    color: #fff9ee;
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.48);
  }

  body.pre-entry .intro-desktop-break {
    display: none;
  }

  body.pre-entry #intro h1 {
    max-width: none;
    font-size: clamp(34px, 9vw, 44px);
  }

  body.pre-entry #intro p {
    color: rgba(255, 249, 238, 0.82);
  }

  #door-hit-area {
    left: 20%;
    width: 60%;
  }
}
