/* ==========================================================
   Hero movie - animated showreel of V Tech Digital services
   (index.html hero; driven by assets/js/hero-movie.js)
   ========================================================== */

.hero__movie {
    --hm-accent: #bc2e90;
    --hm-purple: #8b4fd1;
    position: relative;
    overflow: hidden;
    padding: 40px 0 0;
    isolation: isolate;
}

/* ---------- background: glows, stars, grain, vignette ---------- */
.hm-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.hm-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .45;
    transition: background-color 1.4s ease;
}
.hm-glow-1 {
    width: 620px;
    height: 620px;
    right: -120px;
    top: -60px;
    background-color: var(--hm-accent);
    animation: hm-drift 16s ease-in-out infinite;
}
.hm-glow-2 {
    width: 520px;
    height: 520px;
    left: -160px;
    bottom: -200px;
    background-color: var(--hm-purple);
    opacity: .35;
    animation: hm-drift 20s ease-in-out infinite reverse;
}
.hm-stars,
.hm-stars:before {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    animation: hm-twinkle 5s ease-in-out infinite;
}
.hm-stars {
    box-shadow: 90px 120px #fff, 300px 60px #e9a3ff, 520px 210px #fff, 760px 90px #ffb27a,
        980px 260px #fff, 1180px 70px #e9a3ff, 1400px 190px #fff, 1650px 120px #fff,
        180px 420px #ffb27a, 640px 480px #fff, 1080px 520px #e9a3ff, 1500px 460px #fff;
}
.hm-stars:before {
    content: "";
    animation-delay: 2.5s;
    box-shadow: 40px 300px #fff, 420px 340px #e9a3ff, 860px 380px #fff, 1260px 330px #ffb27a,
        1760px 300px #fff, 700px 30px #fff, 1320px 600px #e9a3ff, 260px 600px #fff;
}
.hm-grain {
    position: absolute;
    inset: -50%;
    opacity: .07;
    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='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    animation: hm-grain 1s steps(6) infinite;
}
.hm-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 3, 15, .75) 100%);
}

/* ---------- cinema letterbox bars ---------- */
.hm-letterbox {
    position: absolute;
    left: 0;
    right: 0;
    height: 26px;
    background: #000;
    z-index: 3;
    transform: scaleY(0);
    animation: hm-letterbox 1.2s cubic-bezier(.7, 0, .2, 1) .3s forwards;
}
.hm-letterbox-top {
    top: 0;
    transform-origin: top;
}
.hm-letterbox-bottom {
    bottom: 0;
    transform-origin: bottom;
}

/* ---------- stage & scenes ---------- */
.hm-stage {
    position: relative;
    height: clamp(500px, 64vh, 600px);
}
.hm-scene {
    position: absolute;
    inset: 0;
    padding: 0 15px;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    transition: opacity .9s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1), filter .9s ease, visibility 0s linear .9s;
}
.hm-scene.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    filter: none;
    transition: opacity .9s ease .25s, transform 1.4s cubic-bezier(.2, .7, .2, 1) .25s, filter .9s ease, visibility 0s;
}
.hm-scene.is-leaving {
    opacity: 0;
    visibility: visible;
    transform: scale(.94);
    filter: blur(8px);
}
.hm-scene-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* staged text reveal */
.hm-reveal {
    opacity: 0;
    transform: translateY(28px);
}
.is-active .hm-reveal {
    animation: hm-reveal .8s cubic-bezier(.2, .7, .2, 1) .45s forwards;
}
.is-active .hm-reveal.hm-r2 { animation-delay: .6s; }
.is-active .hm-reveal.hm-r3 { animation-delay: .75s; }
.is-active .hm-reveal.hm-r4 { animation-delay: .9s; }

.hm-chapter {
    font-family: Archivo, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 18px;
}
.hm-chapter span {
    color: var(--hm-accent);
    transition: color 1.4s ease;
}
.hm-title {
    font-family: Archivo, sans-serif;
    font-size: 62px;
    line-height: 1.05;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}
.hm-desc {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .78);
    max-width: 480px;
    margin-bottom: 28px;
}
.hm-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: Archivo, sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--hm-accent);
}
.hm-link:hover {
    color: var(--hm-accent);
}
.hm-visual {
    display: flex;
    justify-content: center;
}

/* intro & outro */
.hm-intro .hm-intro-text,
.hm-outro .hm-intro-text {
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}
.hm-kicker {
    font-family: Archivo, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .4em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 14px;
}
.hm-intro-title {
    font-family: Archivo, sans-serif;
    font-size: 96px;
    line-height: 1.05;
    font-weight: 700;
    padding: 10px 0 16px;
    background: linear-gradient(90deg, #f6a13a 0%, #e2338f 45%, #8b4fd1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hm-outro .hm-intro-title {
    font-size: 76px;
}
.hm-intro-sub {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
}
.hm-intro-tags {
    font-size: 16px;
    color: rgba(255, 255, 255, .6);
}
.hm-intro-ribbon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 900px;
    max-width: 95%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.85) rotate(-4deg);
}
.hm-intro.is-active .hm-intro-ribbon {
    animation: hm-ribbon 4.5s ease-out .2s forwards;
}
.hm-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.hm-ghost-btn {
    font-family: Archivo, sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #fff;
    padding: 18px 30px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 6px;
    transition: all .3s ease;
}
.hm-ghost-btn:hover {
    color: #fff;
    border-color: var(--hm-accent);
    background: rgba(255, 255, 255, .06);
}

/* ---------- controls: play/pause + chapter timeline ---------- */
.hero__movie .hm-controls {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 10px;
    padding-bottom: 56px;
}
.hm-play {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .3s ease;
}
.hm-play:hover,
.hm-play:focus-visible {
    border-color: var(--hm-accent);
}
.hm-icon-pause,
.hm-icon-play {
    display: block;
    width: 10px;
    height: 12px;
}
.hm-icon-pause {
    border-left: 3px solid #fff;
    border-right: 3px solid #fff;
}
.hm-icon-play {
    width: 0;
    height: 0;
    margin-left: 3px;
    border-left: 11px solid #fff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}
.hm-timeline {
    flex: 1;
    display: flex;
    gap: 6px;
}
.hm-seg {
    flex: 1;
    padding: 12px 0;
    background: none;
    border: 0;
    cursor: pointer;
}
.hm-seg span {
    position: relative;
    display: block;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .18);
    overflow: hidden;
}
.hm-seg span:after {
    content: "";
    position: absolute;
    inset: 0;
    width: var(--fill, 0%);
    background: var(--hm-accent);
    transition: background-color 1.4s ease;
}
.hm-seg:hover span,
.hm-seg:focus-visible span {
    background: rgba(255, 255, 255, .4);
}

/* ---------- illustration base styles ---------- */
.hm-art {
    width: 100%;
    max-width: 480px;
    height: auto;
    overflow: visible;
}
/* elements with an SVG transform attribute keep the native origin */
:where(.hm-art *:not([transform])) {
    transform-box: fill-box;
    transform-origin: center;
}
.hm-frame {
    fill: rgba(255, 255, 255, .04);
    stroke: rgba(255, 255, 255, .35);
    stroke-width: 2;
}
.hm-line {
    fill: none;
    stroke: rgba(255, 255, 255, .35);
    stroke-width: 2;
}
.hm-block,
.hm-type,
.hm-pop,
.hm-bar,
.hm-keys circle {
    fill: rgba(255, 255, 255, .18);
}
.hm-soft {
    fill: rgba(255, 255, 255, .22);
}
.hm-card {
    fill: rgba(255, 255, 255, .12);
    stroke: rgba(255, 255, 255, .3);
    stroke-width: 1.5;
}
.hm-art .hm-accent {
    fill: var(--hm-accent);
    transition: fill 1.4s ease;
}
.hm-art .hm-accent2 {
    fill: var(--hm-purple);
}
.hm-draw {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
}

/* entrance helpers (only run while the scene is active) */
.hm-block,
.hm-pop,
.hm-type,
.hm-bar {
    opacity: 0;
}
.is-active .hm-block,
.is-active .hm-pop {
    animation: hm-pop .6s cubic-bezier(.3, 1.4, .5, 1) forwards;
}
.is-active .hm-type {
    transform-origin: left center;
    animation: hm-type .7s ease-out forwards;
}
.is-active .hm-bar {
    transform-origin: center bottom;
    animation: hm-bar .8s cubic-bezier(.3, 1.3, .5, 1) forwards;
}
.is-active .hm-draw {
    animation: hm-draw 1s ease-out forwards;
}
.hm-d1 { --d: .7s; }
.hm-d2 { --d: .9s; }
.hm-d3 { --d: 1.1s; }
.hm-d4 { --d: 1.3s; }
.hm-d5 { --d: 1.5s; }
.hm-d6 { --d: 1.7s; }
.hm-d7 { --d: 1.9s; }
.is-active .hm-block,
.is-active .hm-pop,
.is-active .hm-type,
.is-active .hm-bar,
.is-active .hm-draw {
    animation-delay: var(--d, .7s);
}

/* web */
.hm-cursor {
    fill: #fff;
    stroke: #000;
    stroke-width: 1;
    opacity: 0;
}
.is-active .hm-cursor {
    animation: hm-cursor 3.2s ease-in-out 1s forwards;
}

/* software */
.hm-code-tag {
    fill: var(--hm-accent);
    font: 700 28px/1 monospace;
}
.hm-gear-body,
.hm-gear-teeth rect {
    fill: var(--hm-purple);
}
.hm-gear-hole {
    fill: #0b0f2a;
}
.is-active .hm-gear {
    animation: hm-spin 6s linear infinite;
}

/* mobile */
.hm-notch {
    fill: rgba(255, 255, 255, .25);
}
.hm-notify {
    opacity: 0;
}
.is-active .hm-notify {
    animation: hm-slide-in .7s cubic-bezier(.2, .8, .3, 1) 2s forwards;
}
.hm-tap {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    opacity: 0;
}
.is-active .hm-tap {
    animation: hm-ripple 1.4s ease-out 2.5s 2;
}

/* it support */
.hm-unit {
    fill: rgba(255, 255, 255, .08);
    stroke: rgba(255, 255, 255, .2);
}
.hm-led {
    fill: #28c840;
}
.is-active .hm-led {
    animation: hm-blink 1.2s steps(2) infinite;
    animation-delay: var(--d, 0s);
}
.hm-shield-body {
    fill: rgba(47, 155, 255, .18);
    stroke: var(--hm-accent);
    stroke-width: 3;
}
.hm-shield {
    opacity: 0;
}
.is-active .hm-shield {
    animation: hm-pop .7s cubic-bezier(.3, 1.4, .5, 1) .8s forwards;
}
.hm-check {
    stroke: #fff;
    stroke-width: 10;
}
.is-active .hm-check {
    animation-delay: 1.4s;
}

/* marketing */
.hm-trend {
    stroke: #fff;
    stroke-width: 5;
}
.is-active .hm-trend {
    animation-delay: 1.6s;
    animation-duration: 1.4s;
}
.hm-arrow {
    fill: none;
    stroke: #fff;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
}
.is-active .hm-arrow {
    animation: hm-fade .3s ease 2.9s forwards;
}

/* social */
.hm-heart {
    fill: #ff4f8b;
}
.hm-pill {
    fill: var(--hm-accent);
}
.hm-pill-text {
    fill: #fff;
    font: 700 18px/1 Archivo, sans-serif;
    text-anchor: middle;
}
.hm-float {
    opacity: 0;
}
.is-active .hm-float {
    animation: hm-float-up 3s ease-in-out var(--d, .7s) infinite;
}

/* content writing */
.hm-pen {
    opacity: 0;
}
.is-active .hm-pen {
    animation: hm-pen 2.6s ease-in-out .8s forwards;
}

/* payment */
.hm-paycard {
    fill: var(--hm-purple);
}
.hm-stripe {
    fill: rgba(0, 0, 0, .35);
}
.hm-chip {
    fill: #f6c453;
}
.hm-cardslide {
    opacity: 0;
}
.is-active .hm-cardslide {
    animation: hm-card-in 1.4s cubic-bezier(.5, 0, .2, 1) .6s forwards;
}
.hm-ok {
    fill: #28c08a;
}
.hm-paid {
    opacity: 0;
}
.is-active .hm-paid {
    animation: hm-pop .6s cubic-bezier(.3, 1.4, .5, 1) 2.1s forwards;
}
.hm-check-small {
    stroke: #fff;
    stroke-width: 4;
}
.is-active .hm-check-small {
    animation-delay: 2.4s;
}

/* event gate */
.hm-qr rect {
    fill: #fff;
}
.hm-laser {
    fill: #ff3b5c;
    opacity: 0;
}
.is-active .hm-laser {
    animation: hm-laser 1s ease-in-out .8s 2 alternate;
}
.hm-gate-arm {
    fill: var(--hm-accent);
    transform-origin: left center;
}
.is-active .hm-gate-arm {
    animation: hm-gate 0.8s cubic-bezier(.5, 0, .3, 1) 2.8s forwards;
}
.hm-gate-light {
    fill: #ff3b5c;
}
.is-active .hm-gate-light {
    animation: hm-go 0.1s linear 2.8s forwards;
}

/* administration */
.hm-box {
    fill: none;
    stroke: rgba(255, 255, 255, .5);
    stroke-width: 2;
}
.hm-tick {
    stroke: var(--hm-accent);
    stroke-width: 4;
}
.hm-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, .12);
    stroke-width: 12;
}
.hm-ring {
    fill: none;
    stroke: var(--hm-accent);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 327;
    stroke-dashoffset: 327;
    transform-origin: 0 0;
    transform-box: view-box;
}
.is-active .hm-ring {
    animation: hm-ring 2s ease-out 1s forwards;
}
.hm-ring-text {
    fill: #fff;
    font: 700 24px/1 Archivo, sans-serif;
    text-anchor: middle;
}

/* digital media */
.hm-onair rect {
    fill: #ff3b5c;
}
.hm-onair text {
    fill: #fff;
    font: 700 18px/1 Archivo, sans-serif;
    letter-spacing: .2em;
    text-anchor: middle;
}
.is-active .hm-onair {
    animation: hm-onair 1.6s ease-in-out infinite;
}
.hm-mic {
    fill: var(--hm-purple);
}
.hm-wave {
    fill: none;
    stroke: var(--hm-accent);
    stroke-width: 5;
    stroke-linecap: round;
    opacity: 0;
}
.is-active .hm-wave {
    animation: hm-wave 1.8s ease-out infinite;
    animation-delay: var(--d, 0s);
}
.hm-eq rect {
    fill: var(--hm-accent);
    transform-origin: center bottom;
    transform: scaleY(.2);
}
.is-active .hm-eq rect {
    animation: hm-eq .9s ease-in-out infinite alternate;
    animation-delay: var(--d, 0s);
}

/* digital strategy */
.hm-route {
    stroke: #fff;
    stroke-width: 5;
}
.hm-art .hm-mile {
    fill: var(--hm-accent);
}
.hm-dart {
    fill: none;
    stroke: #fff;
    stroke-width: 5;
    stroke-linecap: round;
    opacity: 0;
}
.is-active .hm-dart {
    animation: hm-dart .5s cubic-bezier(.5, 0, .9, .6) 2.4s forwards;
}

/* branding */
.hm-logo {
    stroke: var(--hm-accent);
    stroke-width: 16;
}
.hm-art .hm-sw1 { fill: #e2338f; }
.hm-art .hm-sw2 { fill: #8b4fd1; }
.hm-art .hm-sw3 { fill: #f6a13a; }
.hm-art .hm-brand-type {
    fill: #fff;
    font: 700 72px/1 Archivo, sans-serif;
}

/* brand crisis */
.hm-recover {
    stroke: #fff;
    stroke-width: 5;
}
.is-active .hm-recover {
    animation-duration: 1.8s;
}
.hm-alert {
    opacity: 0;
}
.hm-alert path {
    fill: #ff3b5c;
}
.hm-alert text {
    fill: #fff;
    font: 700 30px/1 Archivo, sans-serif;
    text-anchor: middle;
}
.is-active .hm-alert {
    animation: hm-pop .5s cubic-bezier(.3, 1.4, .5, 1) 1.2s forwards, hm-fade-out .4s ease 2.6s forwards;
}
.hm-guard {
    opacity: 0;
}
.hm-guard-body {
    fill: rgba(255, 255, 255, .08);
    stroke: var(--hm-accent);
    stroke-width: 3;
}
.is-active .hm-guard {
    animation: hm-pop .7s cubic-bezier(.3, 1.4, .5, 1) 2.2s forwards;
}
.hm-guard-check {
    stroke: #fff;
    stroke-width: 10;
}
.is-active .hm-guard-check {
    animation-delay: 2.7s;
}

/* crypto */
.hm-coin-face {
    fill: var(--hm-accent);
}
.hm-coin-ring {
    fill: none;
    stroke: rgba(255, 255, 255, .45);
    stroke-width: 4;
}
.hm-coin-text {
    fill: #fff;
    font: 700 72px/1 Archivo, sans-serif;
    text-anchor: middle;
}
.is-active .hm-coin {
    animation: hm-coin 2.4s ease-in-out .6s infinite;
}
.hm-chain {
    stroke: rgba(255, 255, 255, .5);
    stroke-width: 4;
}
.is-active .hm-chain {
    animation-delay: 1.4s;
}
.hm-blk {
    opacity: 0;
}
.is-active .hm-blk {
    animation: hm-pop .6s cubic-bezier(.3, 1.4, .5, 1) var(--d, .7s) forwards;
}
.hm-blk-new {
    stroke: var(--hm-accent);
}

/* crowd management */
.hm-zone {
    stroke-dasharray: 8 8;
}
.hm-art .hm-person {
    fill: rgba(255, 255, 255, .7);
}
.hm-live {
    fill: #ff3b5c;
}
.is-active .hm-live {
    animation: hm-blink 1s steps(2) infinite;
}
.hm-count-label {
    fill: rgba(255, 255, 255, .7);
    font: 700 13px/1 Archivo, sans-serif;
    letter-spacing: .2em;
}
.hm-count {
    fill: #fff;
    font: 700 30px/1 Archivo, sans-serif;
}
.hm-cap {
    fill: var(--hm-accent);
    transform-origin: left center;
    transform: scaleX(0);
}
.is-active .hm-cap {
    animation: hm-cap 2s ease-out 1s forwards;
}

/* ---------- keyframes ---------- */
@keyframes hm-dart {
    from { opacity: 1; transform: translate(-70px, 48px); }
    to { opacity: 1; transform: translate(0, 0); }
}
@keyframes hm-fade-out {
    to { opacity: 0; }
}
@keyframes hm-coin {
    0%, 60%, 100% { transform: scaleX(1); }
    80% { transform: scaleX(.08); }
}
@keyframes hm-cap {
    to { transform: scaleX(1); }
}
@keyframes hm-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-70px, 40px) scale(1.12); }
}
@keyframes hm-twinkle {
    0%, 100% { opacity: .25; }
    50% { opacity: 1; }
}
@keyframes hm-grain {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-4%, 3%); }
    40% { transform: translate(3%, -5%); }
    60% { transform: translate(-6%, -2%); }
    80% { transform: translate(5%, 4%); }
    100% { transform: translate(0, 0); }
}
@keyframes hm-letterbox {
    to { transform: scaleY(1); }
}
@keyframes hm-reveal {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes hm-ribbon {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-4deg); }
    30% { opacity: .45; }
    100% { opacity: .45; transform: translate(-50%, -54%) scale(1) rotate(2deg); }
}
@keyframes hm-pop {
    from { opacity: 0; transform: scale(.6); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes hm-type {
    from { opacity: 1; transform: scaleX(0); }
    to { opacity: 1; transform: scaleX(1); }
}
@keyframes hm-bar {
    from { opacity: 1; transform: scaleY(0); }
    to { opacity: 1; transform: scaleY(1); }
}
@keyframes hm-draw {
    to { stroke-dashoffset: 0; }
}
@keyframes hm-fade {
    to { opacity: 1; }
}
@keyframes hm-cursor {
    0% { opacity: 0; transform: translate(380px, 300px); }
    10% { opacity: 1; transform: translate(380px, 300px); }
    40% { opacity: 1; transform: translate(240px, 165px); }
    48% { transform: translate(240px, 165px) scale(.85); }
    56% { transform: translate(240px, 165px) scale(1); }
    85% { opacity: 1; transform: translate(118px, 255px); }
    100% { opacity: 1; transform: translate(118px, 255px); }
}
@keyframes hm-spin {
    to { transform: rotate(360deg); }
}
@keyframes hm-slide-in {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes hm-ripple {
    0% { opacity: .9; transform: scale(.3); }
    100% { opacity: 0; transform: scale(1.6); }
}
@keyframes hm-blink {
    0% { opacity: 1; }
    100% { opacity: .25; }
}
@keyframes hm-float-up {
    0% { opacity: 0; transform: translateY(30px); }
    25% { opacity: 1; }
    75% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-40px); }
}
@keyframes hm-pen {
    0% { opacity: 0; transform: translate(150px, 128px) rotate(25deg); }
    8% { opacity: 1; }
    30% { transform: translate(340px, 128px) rotate(25deg); }
    32% { transform: translate(150px, 176px) rotate(25deg); }
    55% { transform: translate(335px, 176px) rotate(25deg); }
    57% { transform: translate(150px, 236px) rotate(25deg); }
    85% { transform: translate(340px, 236px) rotate(25deg); }
    100% { opacity: 1; transform: translate(300px, 260px) rotate(25deg); }
}
@keyframes hm-card-in {
    0% { opacity: 0; transform: translateX(-80px); }
    40% { opacity: 1; transform: translateX(0); }
    70% { opacity: 1; transform: translateX(70px) scale(.95); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes hm-laser {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 1; transform: translateY(80px); }
}
@keyframes hm-gate {
    to { transform: rotate(-80deg); }
}
@keyframes hm-go {
    to { fill: #28c840; }
}
@keyframes hm-ring {
    to { stroke-dashoffset: 0; }
}
@keyframes hm-onair {
    0%, 100% { opacity: 1; }
    50% { opacity: .55; }
}
@keyframes hm-wave {
    0% { opacity: 0; transform: scale(.85); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.15); }
}
@keyframes hm-eq {
    from { transform: scaleY(.2); }
    to { transform: scaleY(1); }
}

/* paused: freeze every running animation inside the scenes */
.hero__movie.is-paused .hm-scene *,
.hero__movie.is-paused .hm-scene {
    animation-play-state: paused !important;
}

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .hm-title { font-size: 52px; }
    .hm-intro-title { font-size: 80px; }
    .hm-outro .hm-intro-title { font-size: 64px; }
}
@media (max-width: 991px) {
    .hm-stage {
        height: 640px;
    }
    .hm-scene-inner {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    .hm-visual {
        order: -1;
    }
    .hm-art {
        max-width: 340px;
    }
    .hm-desc {
        margin-left: auto;
        margin-right: auto;
    }
}
@media (max-width: 767px) {
    .hero__movie {
        padding-top: 24px;
    }
    .hm-stage {
        height: 560px;
    }
    .hm-letterbox {
        height: 14px;
    }
    .hm-art {
        max-width: 260px;
    }
    .hm-title { font-size: 34px; margin-bottom: 12px; }
    .hm-desc { font-size: 16px; margin-bottom: 18px; }
    .hm-chapter { font-size: 12px; margin-bottom: 10px; }
    .hm-kicker { font-size: 12px; letter-spacing: .25em; }
    .hm-intro-title { font-size: 52px; }
    .hm-outro .hm-intro-title { font-size: 40px; }
    .hm-intro-sub { font-size: 18px; }
    .hm-intro-tags { font-size: 13px; }
    .hm-timeline { gap: 3px; }
    .hero__movie .hm-controls { padding-bottom: 36px; }
}

/* ---------- reduced motion: no autoplay, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
    .hero__movie *,
    .hero__movie *:before,
    .hero__movie *:after {
        animation: none !important;
        transition: none !important;
    }
    .hm-letterbox { transform: scaleY(1); }
    .hm-reveal,
    .hm-block, .hm-pop, .hm-type, .hm-bar,
    .hm-shield, .hm-notify, .hm-cardslide, .hm-paid, .hm-arrow, .hm-float, .hm-intro-ribbon,
    .hm-dart, .hm-guard, .hm-blk, .hm-cap {
        opacity: 1;
        transform: none;
    }
    .hm-intro-ribbon {
        opacity: .4;
        transform: translate(-50%, -50%);
    }
    .hm-draw, .hm-ring { stroke-dashoffset: 0; }
}
