/* Latest owner direction: retain the introduction line and brand strip.
   Higher specificity overrides the supplied module's injected display:none
   without modifying hero-lamp.js or lamp.bin. */

/* The flat artwork is a fallback, not a loading frame for the 3D effect.
   boot.js removes this state on the supplied first-frame marker or timeout. */
.lamp-boot-pending #lamp-intro .intro-lamp img,
.lamp-boot-pending .hero-container .hero-background,
.lamp-boot-pending .hero-container .htext2 { visibility: hidden; }
.lamp-boot-pending #lamp-intro .intro-invitation > :not([data-lamp-loading]) { visibility: hidden; }
[data-lamp-loading] { color: #e5d4ef; font-size: 14px; line-height: 1.5; text-align: center; }
#lamp-intro [data-lamp-loading] { margin: 0 0 8px; }
.hero-container [data-lamp-loading] { margin: 24px 0; }

/* Save the logo for the animated reveal; give the opening message more presence. */
#lamp-intro .intro-header { justify-content: flex-end; }
#lamp-intro .intro-copy h1 { font-size: clamp(42px, 6vw, 80px); }
@media (max-width: 700px) {
  #lamp-intro .intro-copy h1 { font-size: clamp(40px, 10.5vw, 56px); }
}
@media (max-height: 650px) {
  #lamp-intro .intro-copy h1 { font-size: clamp(30px, 6.8svh, 38px); }
}

/* The supplied gold letters own the logo handoff when 3D is available.
   Keep the original title/whole-page reveal only for the fallback. */
.hero-container.has-3d-lamp .hero-wordmark.magic-title-reveal {
  opacity: 1;
  animation: none !important;
  transition: none !important;
  transform: none;
  filter: none;
}
.lamp-3d-ready.intro-site-reveal #root { animation: none; filter: none; }

#root .hero-container.has-3d-lamp > .hero-bottom {
  display: flex;
}

/* Reserve room for the retained brand strip within the compact hero. */
#root .hero-container.has-3d-lamp > .hero-lamp-space {
  height: clamp(300px, min(70vw, 44vh), 460px);
}

/* Latest owner direction: the next section begins directly after the logos. */
#root .hero-container.has-3d-lamp {
  padding-bottom: 0;
}

#root .hero-container.has-3d-lamp + .endorsements-container {
  padding-top: 0;
}

/* Brighter existing background stars, behind the face and lamp. */
#lamp-intro .intro-stars i {
  width: 3px;
  height: 3px;
  background: #fff0c8;
  box-shadow: 0 0 5px #ffe3aacc, 0 0 12px #eebaff80;
  animation-name: intro-clear-twinkle;
}
#lamp-intro .intro-stars i:nth-child(4n) {
  width: 6px;
  height: 6px;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
#lamp-intro .intro-portrait-sparkle-field { filter: drop-shadow(0 0 7px #ffdfa8bb); }
@keyframes intro-clear-twinkle {
  from { opacity: .5; transform: translateY(4px) scale(.8); }
  to { opacity: 1; transform: translateY(-5px) scale(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  #lamp-intro .intro-stars i { animation: none; opacity: .65; }
}
