/* Optional full-width hero treatment, isolated from the other HELOC sections. */
.heloc-hero--video {
    position: relative;
    isolation: isolate;
    background: #15191d;
    color: #fff;
    padding: 0;
    min-height: min(94vh, 900px);
    display: flex;
    align-items: center;
}
/* Shade the reading area more strongly while retaining the footage on the right. */
.heloc-hero--video .hero-video-media::after {
    background: linear-gradient(90deg, rgba(10,14,19,.96), rgba(10,14,19,.9) 45%, rgba(10,14,19,.8) 62%, rgba(10,14,19,.3)),
                linear-gradient(rgba(10,14,19,.35), transparent 35%);
}
.heloc-hero--video .heloc-grid { display: block; }
.heloc-hero--video .heloc-grid > div { max-width: 900px; }
.heloc-hero--video h1 { max-width: 900px; margin: 22px 0 0; }
.heloc-hero--video h1 em {
    color: #f0d8a7;
}
.heloc-hero--video .heloc-checks { max-width: 520px; margin: 28px 0 38px; }
.heloc-hero--video .heloc-checks li { font-size: 1.125rem; }
.heloc-hero--video .heloc-checks li::before { color: #eed6a1; }
.heloc-hero--video .heloc-checks a,
.heloc-hero--video .heloc-small,
.heloc-hero--video .heloc-small a { color: #fff; }
.heloc-hero--video .heloc-hero-actions { max-width: 660px; }
.heloc-hero--video .heloc-purpose label { background: #fff; color: #1b1b21; border-radius: 4px; }
.heloc-hero--video .heloc-cta { background: #f0d8a7; border-color: #f0d8a7; color: #17191d; }
.heloc-hero--video .heloc-cta:hover { background: #fff; border-color: #fff; color: #17191d; }
@media (max-width: 767px) {
    .heloc-hero--video .hero-video-media::after { background: rgba(10,14,19,.9); }
    .heloc-hero--video { min-height: 88svh; }
    .heloc-hero--video .heloc-hero-actions { flex-direction: column; align-items: stretch; }
    .heloc-hero--video .heloc-cta { width: 100%; }
}

/* Join Us hero geometry and introductory motion, scoped to HELOC. */
.heloc-hero--video .heloc-hero-wrap,
.heloc-page .heloc-proof > .heloc-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.heloc-hero--video .heloc-hero-wrap { padding-top: 150px; padding-bottom: 150px; text-align: left; }
.heloc-welcome { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: 3.2px; text-transform: uppercase; color: #C49742; }
.heloc-welcome::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.heloc-hero-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .25em; margin-bottom: -.17em; }
.heloc-hero-word > span { display: inline-block; padding-bottom: .2em; margin-bottom: -.2em; }
.heloc-effects-ready .heloc-hero-word > span { transform: translateY(105%); transition: transform 1.1s cubic-bezier(.16,1,.3,1); }
.heloc-effects-ready.heloc-intro-visible .heloc-hero-word > span { transform: none; }
.heloc-effects-ready .heloc-fade-up { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s cubic-bezier(.16,1,.3,1); }
.heloc-effects-ready.heloc-intro-visible .heloc-fade-up { opacity: 1; transform: none; }
.heloc-hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; pointer-events: none; }
.heloc-scroll-cue { position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 20px; }
.heloc-scroll-cue::after { content: ''; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #ECD085; animation: heloc-scroll-cue 1.8s ease-in-out infinite; }
@keyframes heloc-scroll-cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.heloc-page .heloc-proof { background: #fff; padding: 40px 0 96px; text-align: left; }
.heloc-page .heloc-proof-grid { gap: 0; margin: 0; }
.heloc-page .heloc-stat { padding: 10px 30px; border-left: 1px solid #E7E1D6; }
.heloc-page .heloc-stat:first-child { border-left: 0; padding-left: 0; }
.heloc-page .heloc-stat strong { font-family: var(--bs-font-serif); font-weight: 400; font-size: clamp(40px,4.4vw,62px); line-height: 1; letter-spacing: -1.5px; }
.heloc-page .heloc-stat strong span { display: inline; font: inherit; }
.heloc-page .heloc-stat > span { font-size: 13.5px; color: #6B6B6B; margin-top: 12px; line-height: 1.45; }
.heloc-stat-gold { background: linear-gradient(100deg,#6E501C 0%,#9A7430 30%,#C49742 50%,#9A7430 70%,#6E501C 100%); background-size: 220% 100%; background-clip: text; -webkit-background-clip: text; color: transparent; animation: heloc-stat-shine 7s linear infinite; }
@keyframes heloc-stat-shine { to { background-position: -220% 0; } }
.heloc-stats-ready .heloc-stat { opacity: 0; transform: translateY(40px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.16,1,.3,1); }
.heloc-stats-ready .heloc-stat.heloc-stat-visible { opacity: 1; transform: none; }
@media (max-width: 1024px) {
    .heloc-page .heloc-proof-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 40px; }
    .heloc-page .heloc-stat:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 680px) {
    .heloc-hero--video .heloc-hero-wrap { padding: 130px 22px; }
    .heloc-page .heloc-proof > .heloc-wrap { padding-left: 22px; padding-right: 22px; }
    .heloc-hero-wave { height: 46px; }
    .heloc-scroll-cue { display: none; }
    .heloc-page .heloc-stat { padding: 0 0 0 18px; }
    .heloc-page .heloc-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .heloc-effects-ready .heloc-hero-word > span,
    .heloc-effects-ready .heloc-fade-up,
    .heloc-stats-ready .heloc-stat { opacity: 1; transform: none; transition: none; }
    .heloc-stat-gold, .heloc-scroll-cue::after { animation: none; }
}
