/* KITE intro — colors from helperFolder/style.css, fonts stay Outfit */

#preloader {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 1000;
  background: #7fc4e5;
}
#preloader.is-scrollable {
  position: relative;
  height: 100vh;
  width: 100%;
  inset: auto;
  z-index: 1;
}
.scene-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, #ffffff 0%, #bfe6f4 40%, #31a8d0 100%);
}
.cloud { position: absolute; pointer-events: none; }
.cloud img { width: 100%; height: auto; display: block; }
.cloud-1 { top: 5%; left: 2%; width: 220px; transform: scaleX(1.3); }
.cloud-2 { top: 18%; left: 20%; width: 200px; transform: scaleX(1.3); }
.cloud-3 { top: 32%; left: 4%; width: 180px; transform: scaleX(1.3); }
.cloud-4 { top: 5%; right: 2%; width: 220px; transform: scaleX(1.3); }
.cloud-5 { top: 18%; right: 20%; width: 200px; transform: scaleX(1.3); }
.cloud-6 { top: 32%; right: 4%; width: 180px; transform: scaleX(1.3); }
.ui {
  position: absolute; top: 12%; left: 50%; transform: translateX(-50%);
  text-align: center; z-index: 20; pointer-events: none;
}
.sun-wrapper {
  position: relative; width: 160px; height: 160px;
  transform: translateY(-50px); transform-origin: center center;
}
.sun-glow {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, #ffd84d 0%, #ffb300 60%, transparent 70%);
  opacity: .6; animation: sunPulse 2s infinite; z-index: 1;
}
.brand-ring {
  position: absolute; inset: -26px; opacity: 0; transform: scale(.88);
  z-index: 4; pointer-events: none;
}
.ring-char {
  position: absolute; top: 50%; left: 50%;
  color: #cc2222; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  transform-origin: center center; pointer-events: none;
  font-family: Outfit, sans-serif;
}
#preloader .circle {
  position: relative; width: 160px; height: 160px; border-radius: 50%;
  display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: center; z-index: 2;
  box-shadow: none; border: 0; background: none;
}
#preloader .circle img { width: 48px; z-index: 3; }
.counter { font-size: 14px; font-weight: 600; color: #c0392b; }
@keyframes sunPulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.5); opacity: 0; }
}
.skyline {
  position: absolute; bottom: 0; left: 130px;
  display: flex; align-items: flex-end; width: max-content; z-index: 10;
}
.house { position: relative; display: block; line-height: 0; }
.house img { display: block; height: auto; }
.house-01 img { height: 45vh; }
.house-02 img { height: 68vh; }
.house-03 img { height: 72vh; }
.house-04 img { height: 50vh; }
.house-05 img { height: 70vh; }
.house-06 img { height: 60vh; }
.house-07 img { height: 62vh; }
.house-08 img { height: 68vh; }
.house-09 img { height: 47vh; }
.house-01 { transform: translateX(0); }
.house-02 { transform: translateX(-40px); }
.house-03 { transform: translateX(-45px); }
.house-04 { transform: translateX(-80px); }
.house-05 { transform: translateX(-80px); }
.house-06 { transform: translateX(-85px); }
.house-07 { transform: translateX(-95px); }
.house-08 { transform: translateX(-110px); }
.house-09 { transform: translateX(-145px); }

#hero {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(214, 240, 249, .12);
  backdrop-filter: blur(4px) saturate(1.02);
  opacity: 0; z-index: 15; pointer-events: none;
}
.hero-copy {
  width: min(100% - 40px, 520px);
  margin-top: 180px; text-align: center;
}
#hero h1 {
  font-family: Outfit, sans-serif;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.1; font-weight: 600; letter-spacing: -.03em;
  max-width: 460px; margin-inline: auto; opacity: 0; color: #111;
}
#hero h1 em { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 500; color: #c0392b; }
#hero p {
  margin-top: 16px; color: rgba(17,17,17,.78); font-size: 15px;
  line-height: 1.6; max-width: 400px; margin-inline: auto; opacity: 0;
}
.hero-actions {
  display: flex; flex-direction: column; gap: 12px;
  align-items: center; margin-top: 24px; opacity: 0;
}
.btn-primary { background: #ffca1c; color: #111; border-color: #ffca1c; }
.btn-secondary { background: rgba(255,255,255,.82); color: #111; }

html, body {
  overflow-y: auto;
  overflow-x: hidden;
  height: auto;
}
html.scroll-unlocked, body.scroll-unlocked {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
}

@media (max-width: 900px) {
  .cloud-1, .cloud-4 { display: none; }
  .house-01, .house-02, .house-08, .house-09 { display: none !important; }
  .skyline { left: 50%; transform: translateX(-50%); }
  .house-03 { transform: translateX(0); }
  .hero-copy { margin-top: 82px; }
}
@media (max-width: 640px) {
  .ui { top: 8%; }
  .sun-wrapper, .circle { width: 132px; height: 132px; }
  .circle img { width: 40px; }
  .cloud-1, .cloud-4, .cloud-3, .cloud-6 { display: none; }
}
