/* ============================================================
   HELIOCASTLE — HERO
   The opening frame: layout, the monument, its glow, the lit floor,
   the reflection and the scroll hint.
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--pad-x) 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 3.35vw, 54px);
  line-height: 1.14;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}
.hero-title em {
  font-style: normal;
  color: var(--gold);
  text-shadow: 0 0 50px rgb(var(--accent-rgb) / 0.35);
}

.hero-rule {
  display: block;
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin: 34px 0 30px;
}

.hero-sub {
  max-width: 40ch;
  font-size: 16.5px;
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 44px;
}

/* --- hero visual: the glowing monument --- */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(60vh, 620px);
}

.hero-halo {
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(42% 46% at 50% 46%, rgb(var(--emit-rgb) / calc(0.045 * var(--emit-a))), transparent 70%),
    radial-gradient(28% 32% at 50% 48%, rgb(var(--emit-rgb) / calc(0.04 * var(--emit-a))), transparent 70%);
  animation: halo-breathe 7s ease-in-out infinite;
}
@keyframes halo-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.hero-logo-wrap {
  position: relative;
  width: min(30vw, 430px);
}

.hero-logo { position: relative; width: 100%; z-index: 2; }

.hero-logo--glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  filter: blur(10px);
  opacity: 0.38;
  animation: logo-glow 5.5s ease-in-out infinite;
}
@keyframes logo-glow {
  0%, 100% { opacity: 0.3; filter: blur(9px); }
  50% { opacity: 0.48; filter: blur(12px); }
}

#pixel-canvas {
  position: absolute;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  z-index: 3;
}

/* --- illuminated floor beneath the monument --- */

.hero-ground {
  position: absolute;
  top: 96.5%;
  left: -80%;
  width: 260%;
  height: 40%;
  z-index: 0;
  pointer-events: none;
  background:
    /* bright pool right at the pillar bases */
    radial-gradient(17% 52% at 50% 4%, rgb(var(--emit-rgb) / calc(0.38 * var(--emit-a))), transparent 72%),
    /* mid spread */
    radial-gradient(34% 85% at 50% 2%, rgb(var(--emit-rgb) / calc(0.17 * var(--emit-a))), transparent 74%),
    /* wide faint wash across the floor */
    radial-gradient(62% 130% at 50% 0%, rgb(var(--emit-rgb) / calc(0.075 * var(--emit-a))), transparent 82%);
  filter: blur(3px);
  animation: ground-breathe 5.5s ease-in-out infinite;
}
@keyframes ground-breathe {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
/* subtle hot spots under each pillar base */
.hero-ground::before,
.hero-ground::after {
  content: "";
  position: absolute;
  top: -3%;
  width: 8%;
  height: 16%;
  background: radial-gradient(50% 50% at 50% 50%, rgb(var(--emit-rgb) / calc(0.65 * var(--emit-a))), transparent 75%);
  filter: blur(6px);
}
.hero-ground::before { left: 40%; }
.hero-ground::after { right: 40%; }

.hero-reflection {
  position: absolute;
  top: 96%;
  left: 0;
  width: 100%;
  height: 52%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.30;
  filter: blur(2.5px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 82%);
          mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 82%);
}
.hero-reflection img {
  width: 100%;
  display: block;
  transform: scaleY(-1);
}
@keyframes scroll-drop {
  0% { transform: translateY(0); opacity: 0; }
  30%, 60% { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}
