* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: #05070a;
  overflow: hidden;
  font-family: 'Manrope', system-ui, sans-serif;
}

#scene-wrap {
  position: relative;
  width: 100%;
  height: 100dvh;
}

#scene {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  opacity: 0;
  transition: opacity 1.1s ease;
}

#scene:active {
  cursor: grabbing;
}

#site-header,
#site-footer,
#hero-copy {
  opacity: 0;
  transition: opacity 1.1s ease;
}

body.revealed #scene,
body.revealed #site-header,
body.revealed #site-footer,
body.revealed #hero-copy {
  opacity: 1;
}

#site-header {
  position: absolute;
  top: 32px;
  left: 32px;
  right: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#site-footer {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#corner-logo {
  width: 143px;
  height: 24px;
  display: block;
  user-select: none;
  flex-shrink: 0;
}

#corner-logo img {
  display: block;
  width: 100%;
  height: 100%;
}

#corner-email {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

#corner-email:hover {
  color: rgba(255, 255, 255, 0.5);
}

#btn-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: #ffffff;
  color: #0a0a08;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 100px;
  transition: transform 0.25s ease;
}

#btn-telegram:hover {
  transform: scale(0.94);
}

#copyright {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.5);
}

#hero-copy {
  position: absolute;
  top: 92px;
  left: 32px;
  right: 32px;
  z-index: 3;
  pointer-events: none;
}

#hero-copy h1 {
  margin: 0;
  max-width: 640px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #f5f1e6;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

#hero-copy p {
  margin: 14px 0 0;
  max-width: 460px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.5;
  color: rgba(245, 241, 230, 0.75);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
  #hero-copy h1 {
    font-size: 1.3rem;
  }
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05070a;
  transition: opacity 0.6s ease;
}

#preloader img {
  width: 52px;
  height: 52px;
  animation: preloader-pulse 1.6s ease-in-out infinite;
}

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes preloader-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}
