/* ── HERO SCROLL WRAPPER ── */
.hero-scroll-wrapper {
  height: 120vh;
  z-index: 0;
}

/* ── HERO SECTION ── */
.hero {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 40px 100px;
  overflow: hidden;
  will-change: transform, opacity;
  transform-origin: 50% 40%;
  background: transparent;
}

.hero.is-leaving { pointer-events: none }

/* Canvas sits behind content */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.hero > *:not(#hero-canvas) { position: relative; z-index: 5 }

/* Ambient backgrounds */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 60%, rgba(26, 125, 26, .13) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(58, 127, 213, .10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 50% 100%, rgba(245, 168, 0, .07) 0%, transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

/* Logo above headline — bigger, separated letter blocks with a colored glow */
.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 40px;
}
.hero-logo .lb {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  font-family: var(--ff-b);
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  animation: hero-lb-pulse 3.2s ease-in-out infinite;
}
.hero-logo .lb-r {
  width: 129px;
  padding: 0;
  font-size: 19px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.hero-logo .lb-g { box-shadow: 0 10px 36px rgba(26, 125, 26, 0.45) }
.hero-logo .lb-a { box-shadow: 0 10px 36px rgba(245, 168, 0, 0.45) }
.hero-logo .lb-b { box-shadow: 0 10px 36px rgba(58, 127, 213, 0.45) }
.hero-logo .lb-r { box-shadow: 0 10px 36px rgba(176, 48, 16, 0.45) }
.hero-logo .lb:nth-child(2) { animation-delay: 0.18s }
.hero-logo .lb:nth-child(3) { animation-delay: 0.36s }
.hero-logo .lb:nth-child(4) { animation-delay: 0.54s }
.hero-logo .lb:hover { transform: scale(1.1) }

/* Glow pulse — kept on filter so hover scale still works */
@keyframes hero-lb-pulse {
  0%, 100% { filter: brightness(1) }
  50%      { filter: brightness(1.22) }
}

.mobile-break { display: none; }

/* Headline — always a single line, scales with viewport so it never wraps */
.hero h1 {
  font-family: var(--ff-d);
  /* vw-based sizing keeps the full line within the viewport at any width */
  font-size: min(3.8vw, 54px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.022em;
  max-width: none;
  white-space: nowrap;
  margin-bottom: 14px;
}
.hero h1 em { font-style: italic; color: var(--muted) }

/* Sub-heading */
.hero-sub {
  font-family: var(--ff-b);
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 900px;
  margin: 0 auto 48px;
  font-weight: 300;
}

/* Scroll hint — circled arrow down indicator */
.hero-scroll-hint {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.5s ease;
}

.scroll-arrow-wrapper {
  width: 44px;
  height: 44px;
  border: 2px solid var(--a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--a);
  font-size: 18px;
  opacity: 0.85;
  animation: scroll-pulse 2s infinite ease-in-out;
  transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.hero-scroll-hint:hover .scroll-arrow-wrapper {
  opacity: 1;
  background: var(--a);
  color: var(--bg);
  box-shadow: 0 0 18px rgba(245, 168, 0, 0.45);
}

@keyframes scroll-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Hide arrow when scrolled past hero */
.hero-scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero { padding: 120px 24px 80px }
  .hero h1 {
    white-space: normal;
    font-size: clamp(32px, 6vw, 44px);
  }
}
@media (max-width: 600px) {
  .hero { padding: 100px 20px 80px }
  .hero-actions { flex-direction: column; align-items: center }
  
  .hero-logo { gap: 6px; margin-bottom: 24px; }
  .hero-logo .lb { width: 40px; height: 40px; border-radius: 10px; font-size: 20px; }
  .hero-logo .lb-r { width: 86px; padding: 0; font-size: 13px; letter-spacing: 0.02em; flex-shrink: 0; }
  
  .mobile-break { display: block; }
  .hero h1 {
    font-size: 38px;
    line-height: 1.15;
  }
  .hero-sub {
    font-size: 14px;
    padding: 0 20px;
  }
}
