/* ===== Scroll-driven cinematic hero ===== */
.sh {
    --sh-accent: var(--color4, #f5b700);
    position: relative;
    height: 500vh;
    background: #0b0d12;
}

.sh-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.sh-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.sh-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(5, 7, 12, .88) 0%, rgba(5, 7, 12, .55) 38%, rgba(5, 7, 12, .05) 70%),
        linear-gradient(0deg, rgba(5, 7, 12, .85) 0%, rgba(5, 7, 12, 0) 35%),
        linear-gradient(180deg, rgba(5, 7, 12, .55) 0%, rgba(5, 7, 12, 0) 22%);
}

.sh-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .06;
    background-image: radial-gradient(rgba(255, 255, 255, .8) 1px, transparent 1px);
    background-size: 3px 3px;
    mix-blend-mode: overlay;
}

/* loader */
.sh-loader {
    position: absolute;
    left: 50%;
    bottom: 48px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 4;
    transition: opacity .6s ease;
}
.sh-loader.is-done { opacity: 0; pointer-events: none; }
.sh-loader-bar {
    width: 140px; height: 2px;
    background: rgba(255, 255, 255, .15);
    border-radius: 2px; overflow: hidden;
}
.sh-loader-bar i {
    display: block; height: 100%; width: 0;
    background: var(--sh-accent);
    transition: width .2s ease;
}
.sh-loader-txt {
    font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

/* text stages */
.sh-content {
    position: relative;
    z-index: 3;
    height: 100%;
}

.sh-stage {
    position: absolute;
    top: 50%;
    left: 12px;
    right: 12px;
    max-width: 620px;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    will-change: opacity, transform;
}
.sh-stage.is-active { visibility: visible; }

.sh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.sh-title {
    color: #fff;
    font-size: clamp(32px, 4.6vw, 60px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
    text-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

.sh-accent {
    color: var(--sh-accent);
}
.sh .typed-cursor { color: var(--sh-accent); font-weight: 300; }

.sh-lead {
    color: rgba(255, 255, 255, .78);
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.65;
    max-width: 500px;
    margin: 0 0 26px;
}

.sh-tags {
    display: flex; flex-wrap: wrap; gap: 10px;
    list-style: none; padding: 0; margin: 0;
}
.sh-tags li {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff; font-size: 14px; font-weight: 500;
}
.sh-tags i { color: var(--sh-accent); }

.sh-stats {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    gap: 34px;
    margin: 6px 0 30px;
}
.sh-stats b {
    display: block;
    color: #fff;
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 800;
    line-height: 1;
}
.sh-stats small {
    display: block; margin-top: 6px;
    color: rgba(255, 255, 255, .6);
    font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}

.sh-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    background: var(--sh-accent);
    border: 1px solid var(--sh-accent);
    color: #0b0d12 !important;
    font-weight: 700;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.sh-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.sh-btn-ghost {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .35);
    color: #fff !important;
    backdrop-filter: blur(8px);
}
.sh-btn-ghost:hover { background: rgba(255, 255, 255, .14); }

/* progress rail */
.sh-progress {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    gap: 14px;
    align-items: stretch;
}
.sh-progress-track {
    width: 2px;
    background: rgba(255, 255, 255, .18);
    border-radius: 2px;
    overflow: hidden;
}
.sh-progress-track i {
    display: block; width: 100%; height: 0;
    background: var(--sh-accent);
}
.sh-progress ol {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 26px;
}
.sh-progress li {
    color: rgba(255, 255, 255, .4);
    font-size: 12px; font-weight: 700; letter-spacing: .1em;
    transition: color .3s ease, transform .3s ease;
}
.sh-progress li.is-active { color: #fff; transform: translateX(4px); }

/* scroll hint */
.sh-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex; align-items: center; gap: 12px;
    color: rgba(255, 255, 255, .7);
    font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
    transition: opacity .4s ease;
}
.sh-mouse {
    width: 22px; height: 34px;
    border: 2px solid rgba(255, 255, 255, .6);
    border-radius: 12px;
    position: relative;
}
.sh-mouse i {
    position: absolute; left: 50%; top: 6px;
    width: 3px; height: 7px; margin-left: -1.5px;
    border-radius: 2px; background: #fff;
    animation: shWheel 1.6s ease-in-out infinite;
}
@keyframes shWheel {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(12px); }
}

/* ---- responsive ---- */
@media (max-width: 991px) {
    .sh { height: 420vh; }
    .sh-shade {
        background:
            linear-gradient(0deg, rgba(5, 7, 12, .92) 0%, rgba(5, 7, 12, .6) 45%, rgba(5, 7, 12, .15) 75%),
            linear-gradient(180deg, rgba(5, 7, 12, .6) 0%, rgba(5, 7, 12, 0) 25%);
    }
    .sh-stage { top: auto; bottom: 90px; transform: none; }
    .sh-progress { right: 16px; }
    .sh-progress ol { display: none; }
    .sh-progress-track { height: 120px; }
}

@media (max-width: 575px) {
    .sh-content { padding: 0; max-width: none; }
    .sh-stage { left: 16px; right: 16px; bottom: 80px; max-width: none; width: auto; }
    .sh-progress { display: none; }
    .sh-title { font-size: 30px; margin-bottom: 14px; }
    .sh-lead { font-size: 14px; margin-bottom: 20px; max-width: none; }
    .sh-eyebrow { font-size: 10px; margin-bottom: 16px; padding: 6px 12px; }
    .sh-stats { grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; width: 100%; }
    .sh-stats b { font-size: 22px; }
    .sh-stats small { font-size: 9px; letter-spacing: .08em; }
    .sh-tags li { font-size: 13px; padding: 7px 12px; }
    .sh .hero-buttons { display: flex; flex-direction: row; gap: 10px; width: 100%; }
    .sh .hero-buttons > a { flex: 1 1 0; justify-content: center; margin: 0; padding: 12px 14px; }
    .sh-scroll-hint { bottom: 22px; }
}
