/* Made by AlpinePages.com */

/* ============================================
   HERO LAYOUT
   ============================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: clip;
  padding-bottom: 5rem;
  background: linear-gradient(
    178deg,
    #02040a 0%,
    #05080f 26%,
    #080d1a 52%,
    #0a0f1c 74%,
    #06090f 100%
  );
}

/* Stars background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 12%, rgba(255,255,255,0.55) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 28% 7%, rgba(255,255,255,0.45) 0%, transparent 100%),
    radial-gradient(1px 1px at 42% 18%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 58% 5%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 72% 13%, rgba(255,255,255,0.55) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 9%, rgba(255,255,255,0.45) 0%, transparent 100%),
    radial-gradient(1px 1px at 8% 28%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 22%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(2px 2px at 50% 3%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 25%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 30%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 40%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 80% 35%, rgba(255,255,255,0.25) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Cool haze at the horizon */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(70, 110, 165, 0.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   SCENE
   ============================================ */
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-house-svg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  min-width: 1180px;
  height: auto;
  display: block;
}

/* Dark scrim so headline stays readable over the glass */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 34% at 50% 44%, rgba(3,5,10,0.62) 0%, rgba(3,5,10,0.32) 55%, transparent 80%),
    linear-gradient(to bottom, rgba(3,5,10,0.55) 0%, transparent 30%);
}

/* Snowfall canvas */
#snowCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

/* ============================================
   SCENE PARTS
   ============================================ */
#sceneLayers .scene-layer { will-change: opacity; }

.roof-snow {
  fill: none;
  stroke: url(#gSnowRoof);
  stroke-width: 11;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.88;
}

.roof-snow.thin { stroke-width: 6; opacity: 0.75; }

.drift-edge {
  fill: none;
  stroke: #33405222;
  stroke-width: 3;
}

.roof-edge {
  fill: none;
  stroke: #1c242f;
  stroke-width: 3;
  stroke-linejoin: round;
}

.siding path {
  stroke-width: 1;
  opacity: 0.5;
}

.mullion path {
  stroke: #070b11;
  stroke-width: 4;
  opacity: 0.85;
  fill: none;
}

.mullion.thin path {
  stroke-width: 1.6;
  opacity: 0.55;
}

.sill { fill: #16202c; }

.sconce { opacity: 0; }
.sconce-glow { fill: url(#haloWarm); }
.sconce-core { fill: #ffdda6; }

.light-wires path {
  fill: none;
  stroke: #26201a;
  stroke-width: 1.6;
  stroke-linejoin: round;
  opacity: 0;
}

/* Windows start dark so the timeline can bring them up */
.window-glow {
  fill: url(#gWindow);
  opacity: 0;
}

.window-glow.cool { fill: url(#gWindowCool); }
.window-glow.soft { fill: #ffb055; }

/* ============================================
   BULBS
   ============================================ */
.bulb { opacity: 0; }

.bulb-halo { mix-blend-mode: screen; }

.bulb-core { fill: #fff6e2; }
.bulb.c-red   .bulb-core { fill: #ffe2e2; }
.bulb.c-green .bulb-core { fill: #e6fff2; }

.bulb-cap {
  fill: #1a1512;
}

/* Idle shimmer -- added once the light-up finishes */
.lights-live .bulb {
  animation-name: bulbBreathe;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-direction: alternate;
}

@keyframes bulbBreathe {
  from { opacity: 0.82; }
  to   { opacity: 1; }
}

.path-light-glow { fill: url(#haloWarm); }
.path-light-core { fill: #ffe9c4; }
.path-light { opacity: 0; }

/* ============================================
   HERO CONTENT
   ============================================ */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 820px;
  padding: 0 1.5rem;
  padding-top: 6rem; /* nav clearance */
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 1.5rem;
  display: block;
  filter: drop-shadow(0 0 8px #1d1010);
}

.hero-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 2rem;
  gap: 0;
}

.hero-line {
  display: block;
  text-shadow:
    0 0 90px rgba(3,5,10,0.9),
    0 2px 40px rgba(0,0,0,0.6);
}

.hero-line-italic {
  font-style: italic;
  color: var(--accent);
  text-shadow:
    0 0 80px rgba(3,5,10,0.9),
    0 2px 40px rgba(0,0,0,0.6);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btns .btn-primary {
  font-size: 0.82rem;
  padding: 1.05rem 2.4rem;
  box-shadow:
    0 0 32px rgba(29, 16, 16, 0.3),
    0 8px 24px rgba(0,0,0,0.4);
}

.hero-btns .btn-ghost {
  font-size: 0.82rem;
  padding: 1.05rem 2.4rem;
  backdrop-filter: blur(2px);
}

/* ============================================
   SCROLL HINT
   ============================================ */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  opacity: 0;
  pointer-events: none;
  overflow: visible;
}

.hero-scroll-hint > span {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  position: relative;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(163, 140, 140, 0.5), rgba(163, 140, 140, 0.05));
  overflow: visible;
}

.scroll-line-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 12px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--accent-warm);
  box-shadow: 0 0 10px rgba(179, 48, 48, 0.55);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-house-svg { min-width: 1000px; }
}

@media (max-width: 600px) {
  .hero-content {
    padding-top: 5rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .hero-btns .btn {
    width: 100%;
    max-width: 300px;
  }

  .hero-scroll-hint {
    display: none;
  }

  .hero-house-svg { min-width: 860px; }

  .hero-scrim {
    background:
      radial-gradient(ellipse 70% 30% at 50% 40%, rgba(3,5,10,0.7) 0%, rgba(3,5,10,0.35) 60%, transparent 85%),
      linear-gradient(to bottom, rgba(3,5,10,0.6) 0%, transparent 34%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lights-live .bulb { animation: none; }
}
