/* Neo Roads — cinematic hero film */
.hero.hero-film-section {
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    display: block;
    text-align: left;
    perspective: none;
    background: #05060c;
}

.hf {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(120% 70% at 70% 60%, rgba(188, 19, 254, 0.18), transparent 60%),
        radial-gradient(80% 60% at 30% 80%, rgba(0, 243, 255, 0.12), transparent 60%),
        linear-gradient(180deg, #05060c 0%, #0b0d1c 60%, #05060c 100%);
}
.hf canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hf-gl { opacity: 0; transition: opacity 1.2s ease; }
.hf.hf-ready .hf-gl { opacity: 1; }
.hf-hud { z-index: 2; pointer-events: none; }

.hf-vignette, .hf-grain, .hf-flash, .hf-fade, .hf-scrim { position: absolute; inset: 0; pointer-events: none; }
.hf-scrim {
    z-index: 3;
    background:
        linear-gradient(90deg, rgba(3, 4, 10, 0.62) 0%, rgba(3, 4, 10, 0.32) 30%, rgba(3, 4, 10, 0) 52%),
        linear-gradient(0deg, rgba(3, 4, 10, 0.7) 0%, rgba(3, 4, 10, 0) 26%);
}
.hf-vignette { z-index: 3; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%); }
.hf-grain {
    z-index: 4; opacity: 0.045; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    animation: hf-grain 1.2s steps(3) infinite;
}
@keyframes hf-grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-12px, 8px); } 66% { transform: translate(9px, -11px); } 100% { transform: translate(0, 0); } }
.hf-flash { z-index: 5; background: #e9fdff; opacity: 0; mix-blend-mode: screen; }
.hf-fade { z-index: 5; background: #000; opacity: 1; }
.hf.hf-fallback .hf-fade, .hf.hf-reduced .hf-fade { opacity: 0 !important; }
.hf-loading { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, 0.06); transition: opacity 0.6s ease; }
.hf-loading i { position: absolute; inset: 0; background: linear-gradient(90deg, #bc13fe, #00f3ff); transform: scaleX(0.03); transform-origin: left center; transition: transform 0.4s ease; box-shadow: 0 0 12px rgba(0, 243, 255, 0.8); }
.hf.hf-ready .hf-loading, .hf.hf-fallback .hf-loading { opacity: 0; }

/* loader shown until the film is ready (sits where the action will be) */
.hf-loader {
    position: absolute; z-index: 7; left: 70%; top: 50%; transform: translate(-50%, -56%);
    display: flex; flex-direction: column; align-items: center; gap: 18px; pointer-events: none; width: max-content; white-space: nowrap;
    transition: opacity 0.7s ease, visibility 0.7s;
}
.hf.hf-ready .hf-loader, .hf.hf-fallback .hf-loader { opacity: 0; visibility: hidden; }
.hf-loader-ring { position: relative; width: 112px; height: 112px; display: grid; place-items: center; }
.hf-loader-ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(0, 243, 255, 0.14); }
.hf-loader-ring span {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid transparent; border-top-color: #00f3ff; border-right-color: rgba(188, 19, 254, 0.85);
    filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.7)); animation: hf-spin 1.1s linear infinite;
}
.hf-loader-ring::after {
    content: ''; position: absolute; inset: 22px; border-radius: 50%;
    border: 1px dashed rgba(0, 243, 255, 0.35); animation: hf-spin 6s linear infinite reverse;
}
.hf-loader-pct { font: 700 1.05rem/1 'Orbitron', sans-serif; color: #e9fdff; letter-spacing: 0.04em; text-shadow: 0 0 12px rgba(0, 243, 255, 0.7); }
.hf-loader-txt {
    display: flex; align-items: center; gap: 10px;
    font: 600 0.72rem/1 'Orbitron', sans-serif; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(0, 243, 255, 0.9);
}
.hf-loader-txt i { width: 8px; height: 8px; border-radius: 50%; background: #ff2d55; box-shadow: 0 0 10px #ff2d55; animation: hf-rec 1s steps(2) infinite; }
.hf-loader-bar { width: 220px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.hf-loader-bar i { display: block; height: 100%; background: linear-gradient(90deg, #bc13fe, #00f3ff); box-shadow: 0 0 10px rgba(0, 243, 255, 0.8); transform: scaleX(0.02); transform-origin: left center; transition: transform 0.4s ease; }
@keyframes hf-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
    .hf-loader { left: 50%; top: 30%; transform: translate(-50%, -50%); gap: 14px; }
    .hf-loader-ring { width: 84px; height: 84px; }
    .hf-loader-ring::after { inset: 16px; }
    .hf-loader-pct { font-size: 0.9rem; }
    .hf-loader-bar { width: 170px; }
}
@media (max-width: 1100px) and (min-width: 761px) { .hf-loader { left: 68%; } }

/* verification steps (shown during the aerial shots) */
.hf-steps {
    position: absolute; z-index: 6; right: max(24px, 4vw); top: 50%; transform: translateY(-40%);
    list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px;
    width: min(340px, 34vw); pointer-events: none;
}
.hf-steps li {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 10px;
    background: rgba(4, 8, 18, 0.72); border: 1px solid rgba(0, 243, 255, 0.28);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    color: #e9f6ff; font: 500 0.92rem/1.3 'Inter', sans-serif;
    opacity: 0; transform: translateX(30px);
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(.2, .9, .2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.hf-steps li::before {
    content: '✓'; flex: 0 0 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 700; font-size: 0.85rem;
    color: #031015; background: #00f3ff; box-shadow: 0 0 14px rgba(0, 243, 255, 0.7);
}
.hf-steps li.on { opacity: 1; transform: none; }

/* hero copy */
.hero-film-section .hero-content.hf-copy {
    position: absolute; z-index: 8;
    left: max(24px, 6vw); bottom: 118px;
    max-width: 600px; padding: 0;
    background: none; border: 0; border-radius: 0; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    text-align: left;
}
.hf-kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font: 600 0.75rem/1 'Orbitron', sans-serif; letter-spacing: 0.22em; text-transform: uppercase;
    color: #00f3ff; margin-bottom: 18px;
}
.hf-kicker::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #ff2d55; box-shadow: 0 0 12px #ff2d55; animation: hf-rec 1s steps(2) infinite; }
@keyframes hf-rec { 50% { opacity: 0.2; } }
.hero-film-section .hf-copy h1 {
    font-size: clamp(2.3rem, 4.6vw, 4.2rem);
    line-height: 1.04; margin-bottom: 18px;
    text-shadow: 0 0 40px rgba(0, 243, 255, 0.45), 0 2px 18px rgba(0, 0, 0, 0.8);
}
.hero-film-section .hf-copy p {
    font-size: 1.05rem; line-height: 1.6; color: rgba(235, 242, 255, 0.82);
    margin-bottom: 0; max-width: 540px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}
.hf-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; }
.hf-cta .btn { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(0, 243, 255, 0.06); }

/* chapter bar */
.hf-chapters {
    position: absolute; z-index: 9; left: max(24px, 6vw); right: max(24px, 6vw); bottom: 28px;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.hf-chapters button {
    appearance: none; border: 0; background: none; padding: 10px 0 0; cursor: pointer; text-align: left;
    position: relative; color: rgba(255, 255, 255, 0.45);
    font: 600 0.68rem/1.2 'Orbitron', sans-serif; letter-spacing: 0.12em; text-transform: uppercase;
    transition: color 0.3s ease;
}
.hf-chapters button::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255, 255, 255, 0.16); border-radius: 2px;
}
.hf-chapters button i {
    position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, #bc13fe, #00f3ff); box-shadow: 0 0 10px rgba(0, 243, 255, 0.7);
    transform: scaleX(0); transform-origin: left center;
}
.hf-chapters button b { font-weight: 700; color: rgba(0, 243, 255, 0.7); margin-right: 6px; }
.hf-chapters button.active, .hf-chapters button:hover { color: #fff; }
.hf-chapters button.done { color: rgba(255, 255, 255, 0.65); }
.hf-chapters button:focus-visible { outline: 2px solid #00f3ff; outline-offset: 4px; }
.hf.hf-reduced ~ .hf-chapters { display: none; }

@media (max-width: 1100px) {
    .hf-steps { width: min(300px, 40vw); }
    .hf-steps li { font-size: 0.84rem; padding: 10px 12px; }
}
@media (max-width: 760px) {
    /* phones: the copy sits low and compact so the film keeps the upper ~60 % of the screen */
    .hf-scrim { background: linear-gradient(0deg, rgba(3, 4, 10, 0.95) 0%, rgba(3, 4, 10, 0.8) 26%, rgba(3, 4, 10, 0) 46%); }
    .hero-film-section .hero-content.hf-copy { left: 16px; right: 16px; bottom: 50px; max-width: none; }
    .hero-film-section .hf-copy h1 { font-size: 1.6rem; line-height: 1.06; margin-bottom: 8px; }
    .hero-film-section .hf-copy p { font-size: 0.82rem; line-height: 1.42; }
    .hf-kicker { font-size: 0.58rem; margin-bottom: 8px; }
    .hf-cta { margin-top: 12px; }
    .hf-cta .btn { padding: 8px 18px; font-size: 0.78rem; }
    .hf-steps { left: 14px; right: 14px; top: 84px; transform: none; width: auto; gap: 6px; }
    .hf-steps li { font-size: 0.76rem; padding: 7px 10px; gap: 8px; transform: translateY(-10px); }
    .hf-steps li::before { flex-basis: 20px; height: 20px; font-size: 0.7rem; }
    .hf-steps li:not(.on) { display: none; }
    .hf-chapters { left: 16px; right: 16px; bottom: 14px; gap: 6px; }
    .hf-chapters button { font-size: 0; padding-top: 6px; height: 16px; }
    .hf-chapters button b { font-size: 0.6rem; }
}
@media (max-height: 700px) and (min-width: 761px) {
    .hero-film-section .hf-copy h1 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
    .hero-film-section .hero-content.hf-copy { bottom: 96px; }
    .hf-chapters { bottom: 20px; }
}
