#intro-overlay { display: none; }

/* Keep the page's content width identical before and after scroll unlock. */
html { scrollbar-gutter: stable; }
html.intro-active {
  overflow: hidden;
  --intro-reveal: 0;
  --intro-content: 0;
  --intro-top: 0px;
  --intro-left: 0px;
  --intro-width: 100vw;
  --intro-height: 100dvh;
}
.intro-active body { overflow: hidden; background: var(--night); }
/* Preserve the opening's framing if the SVG remains the active renderer. */
.hero.intro-scene .hero-art { inset: 0; opacity: 1; }
.intro-active body > :not(main):not(script):not(#intro-overlay),
.intro-active main > :not(.hero) { visibility: hidden; }
.intro-active .hero > :not(.hero-art) { visibility: hidden !important; }
.intro-active .hero .hero-art {
  position: fixed;
  inset: auto;
  top: var(--intro-top);
  left: var(--intro-left);
  width: var(--intro-width);
  height: var(--intro-height);
  opacity: 1;
  z-index: 40;
  overflow: hidden;
  pointer-events: none;
}
.intro-active .hero::after {
  position: fixed;
  inset: auto;
  top: var(--intro-top);
  left: var(--intro-left);
  width: var(--intro-width);
  height: var(--intro-height);
  z-index: 41;
  opacity: var(--intro-reveal);
}
.intro-active .hero .h3d-labels { opacity: var(--intro-reveal); }
.intro-active #intro-overlay {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  overflow: hidden;
}
.intro-logo {
  grid-area: 1 / 1;
  position: relative;
  width: min(440px, 70vw, 64dvh);
  aspect-ratio: 367 / 280;
  opacity: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 12px 28px #000a) drop-shadow(0 0 16px #dbad5830);
}
.intro-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.intro-shimmer {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(112deg, transparent 35%, #b77a1599 42%, #edb746 47%, #fff4cc 50%, #edbd56 53%, #bd862899 58%, transparent 65%) 150% 50% / 300% 100% no-repeat;
  -webkit-mask: url('assets/land-surveyors-united-logo.webp') center / contain no-repeat;
  mask: url('assets/land-surveyors-united-logo.webp') center / contain no-repeat;
  mix-blend-mode: screen;
}
.intro-halo {
  grid-area: 1 / 1;
  width: min(760px, 110vw);
  aspect-ratio: 1;
  opacity: 0;
  background: radial-gradient(ellipse, #dda64828 0%, #d5a54613 30%, transparent 65%);
  will-change: transform, opacity;
}
.intro-revealing body > :not(main):not(script):not(#intro-overlay),
.intro-revealing main > :not(.hero) {
  visibility: visible;
  opacity: var(--intro-content);
}
.intro-revealing body > .topbar,
.intro-revealing body > .community-subnav,
.intro-revealing body > .mobile-actions {
  z-index: 60;
}
.intro-revealing .hero > :not(.hero-art) {
  visibility: visible !important;
  opacity: var(--intro-content);
}
.intro-revealing .hero-grid { z-index: 42; transform: translateY(calc((1 - var(--intro-content)) * 14px)); }
.intro-revealing .hero .h3d-hud,
.intro-revealing .hero .hero-motion-controls,
.intro-revealing .hero .hero-note { z-index: 43; }
@media print {
  #intro-overlay { display: none !important; }
}
