/* =========================================================
   SECTION: FULL-BLEED PHOTO HERO  (HTML: <section class="hx">)
   Variants: .hx--center (centred text) · .hx--short (70vh)
   Bottom glass bar: .hx__bar (company links / quick facts)
   ========================================================= */

.hx {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  color: #fff;
  background: var(--c-dark-900);
}
.hx--short { min-height: 78vh; min-height: 78svh; }
.hx__bg { position: absolute; inset: 0; z-index: -2; }
.hx__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: hx-zoom 16s var(--ease) forwards; }
.hx::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 9, 11, .6) 0%, rgba(9, 9, 11, .15) 32%, rgba(9, 9, 11, .55) 70%, rgba(9, 9, 11, .95) 100%),
    linear-gradient(90deg, rgba(9, 9, 11, .75) 0%, rgba(9, 9, 11, 0) 65%);
}
.hx--center::before { background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(9, 9, 11, .35), rgba(9, 9, 11, .85)); }
.hx::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); opacity: .08; pointer-events: none; }

.hx__content { padding-bottom: 3rem; }
.hx--center .hx__content { text-align: center; margin: auto; padding-bottom: 0; }
.hx .eyebrow { color: var(--accent-2); }
.hx--center .eyebrow { justify-content: center; }
.hx h1 { color: #fff; font-size: clamp(2.6rem, min(7.4vw, 10.5vh), 6.2rem); line-height: 1; letter-spacing: -.045em; max-width: 15ch; margin-bottom: 1.4rem; }
.hx--center h1 { margin-inline: auto; }
.hx__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .8); max-width: 600px; margin-bottom: 2.2rem; }
.hx--center .hx__lead { margin-inline: auto; }
.hx__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hx--center .hx__actions { justify-content: center; }

/* Glass bar with 4 links at the bottom */
.hx__bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: var(--radius-lg); overflow: hidden; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.hx__bar a, .hx__bar div { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; background: rgba(9, 9, 11, .45); transition: background .3s; }
.hx__bar a:hover { background: rgba(9, 9, 11, .2); }
.hx__bar-logo { width: 64px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #fff; }
.hx__bar-logo img { max-width: 52px; max-height: 32px; }
.hx__bar b { display: block; font-family: var(--font-display); font-size: 1rem; }
.hx__bar small { display: block; font-size: .8rem; color: rgba(255, 255, 255, .65); }
.hx__bar strong { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }

.hx__scroll { position: absolute; right: 2rem; bottom: 2rem; writing-mode: vertical-rl; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }

@keyframes hx-zoom { to { transform: scale(1); } }

@media (max-width: 960px) { .hx__bar { grid-template-columns: 1fr 1fr; } .hx__scroll { display: none; } }
@media (max-width: 520px) { .hx__bar a, .hx__bar div { padding: .9rem; gap: .7rem; } .hx__bar-logo { width: 48px; height: 36px; } .hx__bar small { display: none; } }
/* Centered short hero is followed by overlapping cards (calculator) — leave room */
.hx--center.hx--short { padding-bottom: 8rem; }

/* Background video (Home). Poster shows until the video plays; reduced-motion users get the poster only. */
.hx__bg video { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .hx__bg video { display: none; } .hx__bg--video { background: url("../../video/hero-solar-poster.webp") center / cover; } }
