.hanly-element-link {
    display: inline-flex;
    max-width: 100%;
    line-height: 0;
    text-decoration: none;
    color: inherit;
}

.hanly-element-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.hanly-element-link > .hanly-element {
    flex: 0 1 auto;
}

.hanly-element-link canvas,
.hanly-element-link iframe,
.hanly-element-link img,
.hanly-element-link svg,
.hanly-element-link video {
    pointer-events: none;
}

.elementor-editor-active .hanly-element-link,
.elementor-editor-preview .hanly-element-link {
    pointer-events: none;
}

.hanly-element {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.hanly-element--constrained {
    width: min(100%, var(--hc-motion-constrained-width, 220px));
    max-width: min(100%, var(--hc-motion-constrained-max-width, 100%));
    max-height: var(--hc-motion-constrained-max-height, 100%);
    flex: 0 1 auto;
    contain: layout paint;
}

.hanly-element--constrained canvas,
.hanly-element--constrained iframe,
.hanly-element--constrained img,
.hanly-element--constrained svg,
.hanly-element--constrained video,
.hanly-element--constrained .hanly-element-inline-svg,
.hanly-element--constrained .hanly-element-svg-frame,
.hanly-element--constrained .hanly-element-svg-img,
.hanly-element--constrained .hanly-element-video {
    max-width: 100%;
    max-height: 100%;
}

.hanly-element canvas,
.hanly-element > svg,
.hanly-element-svg-img,
.hanly-element-video {
    display: block;
    width: 100%;
    height: var(--hc-motion-media-height, 100%);
    max-width: 100%;
    max-height: 100%;
}

.hanly-element-svg-img,
.hanly-element-video {
    object-fit: contain;
}

.hanly-element--background {
    display: block;
    width: 100%;
    min-height: 80vh;
}

.hanly-element--background canvas,
.hanly-element--background .hanly-element-svg-img,
.hanly-element--background .hanly-element-video {
    position: absolute;
    inset: 0;
    object-fit: cover;
}

.hanly-element-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.hanly-element--background + .elementor-widget,
.hanly-element--background ~ .elementor-widget {
    position: relative;
    z-index: 3;
}

.hanly-element-content-waiting {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.hanly-element-content-visible {
    opacity: 1;
    transform: translateY(0);
}

.hanly-element-hero-active {
    transition: transform 900ms cubic-bezier(.2,.8,.2,1), opacity 500ms ease;
}

.hanly-element-settled {
    transform: scale(var(--hanly-settle-scale, .85));
}

@media (prefers-reduced-motion: reduce) {
    .hanly-element-content-waiting,
    .hanly-element-content-visible,
    .hanly-element-hero-active {
        transition: none;
        transform: none;
        opacity: 1;
    }
}


.hanly-element-inline-svg {
    display: block;
    width: 100%;
    height: var(--hc-motion-media-height, 100%);
    max-width: 100%;
    max-height: 100%;
    overflow: visible;
    flex: 0 1 auto;
}

.hanly-element-theme--light {
    --hc-motion-primary: #111111;
    --hc-motion-secondary: #ffffff;
}

.hanly-element-theme--dark {
    --hc-motion-primary: #ffffff;
    --hc-motion-secondary: #111111;
}

.hanly-element-theme--auto {
    --hc-motion-primary: currentColor;
    --hc-motion-secondary: transparent;
}

.hanly-element-theme--custom .hanly-element-inline-svg [fill]:not([fill="none"]),
.hanly-element-theme--light .hanly-element-inline-svg [data-hc-theme="primary"],
.hanly-element-theme--dark .hanly-element-inline-svg [data-hc-theme="primary"],
.hanly-element-theme--auto .hanly-element-inline-svg [data-hc-theme="primary"] {
    fill: var(--hc-motion-primary) !important;
}

.hanly-element-theme--custom .hanly-element-inline-svg [stroke]:not([stroke="none"]),
.hanly-element-theme--light .hanly-element-inline-svg [data-hc-theme="line"],
.hanly-element-theme--dark .hanly-element-inline-svg [data-hc-theme="line"],
.hanly-element-theme--auto .hanly-element-inline-svg [data-hc-theme="line"] {
    stroke: var(--hc-motion-primary) !important;
}


/* Hanly Motion SVG theming modes */
.hanly-element-theme--light.hanly-element--svg .hanly-element-inline-svg .hc-theme-fill,
.hanly-element-theme--dark.hanly-element--svg .hanly-element-inline-svg .hc-theme-fill,
.hanly-element-theme--auto.hanly-element--svg .hanly-element-inline-svg .hc-theme-fill,
.hanly-element-theme--custom.hanly-element--svg .hanly-element-inline-svg .hc-theme-fill {
    fill: var(--hc-motion-primary) !important;
}

.hanly-element-theme--light.hanly-element--svg .hanly-element-inline-svg .hc-theme-stroke,
.hanly-element-theme--dark.hanly-element--svg .hanly-element-inline-svg .hc-theme-stroke,
.hanly-element-theme--auto.hanly-element--svg .hanly-element-inline-svg .hc-theme-stroke,
.hanly-element-theme--custom.hanly-element--svg .hanly-element-inline-svg .hc-theme-stroke {
    stroke: var(--hc-motion-primary) !important;
}

/* Force recolor is useful for one-color logos/icons. It deliberately avoids fill="none" and stroke="none". */
.hanly-element-theme--light.hanly-motion-colorize .hanly-element-inline-svg [fill]:not([fill="none"]),
.hanly-element-theme--dark.hanly-motion-colorize .hanly-element-inline-svg [fill]:not([fill="none"]),
.hanly-element-theme--auto.hanly-motion-colorize .hanly-element-inline-svg [fill]:not([fill="none"]),
.hanly-element-theme--custom.hanly-motion-colorize .hanly-element-inline-svg [fill]:not([fill="none"]) {
    fill: var(--hc-motion-primary) !important;
}

.hanly-element-theme--light.hanly-motion-colorize .hanly-element-inline-svg [stroke]:not([stroke="none"]),
.hanly-element-theme--dark.hanly-motion-colorize .hanly-element-inline-svg [stroke]:not([stroke="none"]),
.hanly-element-theme--auto.hanly-motion-colorize .hanly-element-inline-svg [stroke]:not([stroke="none"]),
.hanly-element-theme--custom.hanly-motion-colorize .hanly-element-inline-svg [stroke]:not([stroke="none"]) {
    stroke: var(--hc-motion-primary) !important;
}


.hanly-element-svg-frame {
    display: block;
    width: 100%;
    height: var(--hc-motion-media-height, 100%);
    max-width: 100%;
    max-height: 100%;
    border: 0;
    background: transparent;
    overflow: hidden;
}

.hc-svg-layer-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-left: 4px solid #4c7dff;
    border-radius: 4px;
    background: #0b1f4a;
    color: #dbeafe;
    font-size: 12px;
    line-height: 1.45;
}

.hc-svg-layer-sidebar strong {
    color: #fff;
    font-size: 13px;
}

.hc-svg-layer-sidebar span {
    color: #c7d2fe;
}

.hc-svg-layer-sidebar__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow: auto;
}

.hc-svg-layer-sidebar__row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
    align-items: start;
}

.hc-svg-layer-sidebar__copy {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 6px;
    text-transform: uppercase;
}

.hc-svg-layer-sidebar__copy:hover,
.hc-svg-layer-sidebar__copy:focus {
    background: rgba(255, 255, 255, 0.16);
}

.hc-svg-layer-sidebar__details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hc-svg-layer-sidebar__label {
    min-width: 0;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.hc-svg-layer-sidebar__value {
    min-width: 0;
    color: #bfdbfe;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}


/* Hanly Motion layout engine: containers own layout, assets fill the box. */
.hanly-element-layout--fill {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.hanly-element-layout--fill > canvas,
.hanly-element-layout--fill > iframe,
.hanly-element-layout--fill > svg,
.hanly-element-layout--fill > img,
.hanly-element-layout--fill > video,
.hanly-element-layout--fill > .hanly-element-inline-svg,
.hanly-element-layout--fill > .hanly-element-svg-frame,
.hanly-element-layout--fill > .hanly-element-svg-img,
.hanly-element-layout--fill > .hanly-element-video {
    width: 100%;
    height: 100%;
    display: block;
    max-width: none;
    max-height: none;
}

.hanly-element-layout--fixed > canvas,
.hanly-element-layout--fixed > iframe,
.hanly-element-layout--fixed > svg,
.hanly-element-layout--fixed > img,
.hanly-element-layout--fixed > video,
.hanly-element-layout--fixed > .hanly-element-inline-svg,
.hanly-element-layout--fixed > .hanly-element-svg-frame,
.hanly-element-layout--fixed > .hanly-element-svg-img,
.hanly-element-layout--fixed > .hanly-element-video {
    object-position: center;
}

.hanly-element-fit--contain > img,
.hanly-element-fit--contain > video,
.hanly-element-fit--contain > .hanly-element-svg-img,
.hanly-element-fit--contain > .hanly-element-video,
.hanly-element-fit--contain > .hanly-element-svg-frame {
    object-fit: contain;
}

.hanly-element-fit--cover > img,
.hanly-element-fit--cover > video,
.hanly-element-fit--cover > .hanly-element-svg-img,
.hanly-element-fit--cover > .hanly-element-video,
.hanly-element-fit--cover > .hanly-element-svg-frame {
    object-fit: cover;
}

.hanly-element-fit--fill > img,
.hanly-element-fit--fill > video,
.hanly-element-fit--fill > .hanly-element-svg-img,
.hanly-element-fit--fill > .hanly-element-video,
.hanly-element-fit--fill > .hanly-element-svg-frame {
    object-fit: fill;
}

.hanly-element[data-alignment="left center"]{justify-content:flex-start;align-items:center;}
.hanly-element[data-alignment="right center"]{justify-content:flex-end;align-items:center;}
.hanly-element[data-alignment="center top"]{justify-content:center;align-items:flex-start;}
.hanly-element[data-alignment="center bottom"]{justify-content:center;align-items:flex-end;}
.hanly-element[data-alignment="left top"]{justify-content:flex-start;align-items:flex-start;}
.hanly-element[data-alignment="right top"]{justify-content:flex-end;align-items:flex-start;}
.hanly-element[data-alignment="left bottom"]{justify-content:flex-start;align-items:flex-end;}
.hanly-element[data-alignment="right bottom"]{justify-content:flex-end;align-items:flex-end;}

@media (max-width: 767px) {
    .hanly-element--constrained {
        max-width: min(100%, var(--hc-motion-mobile-max-width, var(--hc-motion-constrained-max-width, 100%)));
        max-height: var(--hc-motion-mobile-max-height, var(--hc-motion-constrained-max-height, 100%));
    }
}

.hanly-element-layout--original {
    width: auto;
    height: auto;
}

/* Hanly Motion v0.1 reveal engine */
[data-hanly-motion] {
    --hanly-motion-delay: 0ms;
    --hanly-motion-distance: 18px;
    --hanly-motion-duration: 650ms;
    --hanly-motion-ease: cubic-bezier(.2,.8,.2,1);
}

[data-hanly-motion]:not([data-hanly-motion="none"]) {
    opacity: 0;
    transition-delay: var(--hanly-motion-delay);
    transition-duration: var(--hanly-motion-duration);
    transition-property: opacity, transform, filter, clip-path;
    transition-timing-function: var(--hanly-motion-ease);
    will-change: opacity, transform, filter, clip-path;
}

[data-hanly-motion="fade-up"],
[data-hanly-motion="slide-up"],
[data-hanly-motion="cascade"] {
    transform: translateY(var(--hanly-motion-distance));
}

[data-hanly-motion="fade-down"] {
    transform: translateY(calc(var(--hanly-motion-distance) * -1));
}

[data-hanly-motion="fade-left"] {
    transform: translateX(var(--hanly-motion-distance));
}

[data-hanly-motion="fade-right"] {
    transform: translateX(calc(var(--hanly-motion-distance) * -1));
}

[data-hanly-motion="soft-scale"] {
    transform: scale(0.985);
}

[data-hanly-motion="blur-fade"] {
    filter: blur(10px);
}

[data-hanly-motion].is-visible,
[data-hanly-motion].hanly-motion-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

.hanly-motion-child {
    opacity: 0;
    transition-delay: var(--hanly-motion-child-delay, var(--hanly-motion-delay));
    transition-duration: var(--hanly-motion-duration);
    transition-property: opacity, transform, filter;
    transition-timing-function: var(--hanly-motion-ease);
}

.hanly-motion-child--fade-up,
.hanly-motion-child--slide-up,
.hanly-motion-child--cascade {
    transform: translateY(var(--hanly-motion-distance));
}

.hanly-motion-child--fade-down {
    transform: translateY(calc(var(--hanly-motion-distance) * -1));
}

.hanly-motion-child--fade-left {
    transform: translateX(var(--hanly-motion-distance));
}

.hanly-motion-child--fade-right {
    transform: translateX(calc(var(--hanly-motion-distance) * -1));
}

.hanly-motion-child--soft-scale {
    transform: scale(0.985);
}

.hanly-motion-child--blur-fade {
    filter: blur(10px);
}

[data-hanly-motion].is-visible .hanly-motion-child,
[data-hanly-motion].hanly-motion-visible .hanly-motion-child {
    opacity: 1;
    transform: none;
    filter: none;
}

[data-hanly-text-motion] {
    --hanly-text-stagger: 45ms;
}

.hanly-text-unit {
    display: inline-block;
    transition-delay: calc(var(--hanly-motion-delay) + (var(--hanly-text-index, 0) * var(--hanly-text-stagger)));
    transition-duration: var(--hanly-motion-duration);
    transition-property: opacity, transform, filter, color, background-position, clip-path;
    transition-timing-function: var(--hanly-motion-ease);
    white-space: pre;
}

[data-hanly-text-motion="line-rise"] .hanly-text-line,
[data-hanly-text-motion="word-rise"] .hanly-text-word,
[data-hanly-text-motion="letter-rise"] .hanly-text-letter {
    opacity: 0;
    transform: translateY(var(--hanly-motion-distance));
}

[data-hanly-text-motion="word-fade"] .hanly-text-word {
    opacity: 0;
}

[data-hanly-text-motion="mask-reveal"] {
    clip-path: inset(0 100% 0 0);
    transition-delay: var(--hanly-motion-delay);
    transition-duration: var(--hanly-motion-duration);
    transition-property: clip-path;
    transition-timing-function: var(--hanly-motion-ease);
}

[data-hanly-text-motion="gradient-sweep"] {
    background-image: linear-gradient(90deg, var(--hanly-primitive-color, currentColor), var(--hc-motion-primary, var(--hanly-primitive-accent, currentColor)), var(--hanly-primitive-color, currentColor));
    background-position: 120% 50%;
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition-delay: var(--hanly-motion-delay);
    transition-duration: var(--hanly-motion-duration);
    transition-property: background-position;
    transition-timing-function: var(--hanly-motion-ease);
}

[data-hanly-text-motion="scroll-grey-reveal"] .hanly-text-word {
    color: rgba(128, 128, 128, 0.42);
}

[data-hanly-text-motion].is-visible .hanly-text-unit,
[data-hanly-text-motion].hanly-motion-visible .hanly-text-unit {
    opacity: 1;
    transform: none;
    filter: none;
}

[data-hanly-text-motion="mask-reveal"].is-visible,
[data-hanly-text-motion="mask-reveal"].hanly-motion-visible {
    clip-path: inset(0 0 0 0);
}

[data-hanly-text-motion="gradient-sweep"].is-visible,
[data-hanly-text-motion="gradient-sweep"].hanly-motion-visible {
    background-position: 0 50%;
}

[data-hanly-text-motion="scroll-grey-reveal"].is-visible .hanly-text-word,
[data-hanly-text-motion="scroll-grey-reveal"].hanly-motion-visible .hanly-text-word {
    color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
    [data-hanly-motion],
    [data-hanly-motion] *,
    .hanly-motion-child,
    .hanly-text-unit {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        clip-path: none !important;
        transition: none !important;
    }

    [data-hanly-text-motion="gradient-sweep"] {
        background-image: none !important;
        color: inherit !important;
    }
}

.elementor-editor-active [data-hanly-motion],
.elementor-editor-active [data-hanly-motion] *,
.elementor-editor-preview [data-hanly-motion],
.elementor-editor-preview [data-hanly-motion] * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
}
