/**
 * Banner Hero for Creative Elements — front styles
 * Templates: .zdh--impact · .zdh--glass · .zdh--split
 *
 * @author    Z Digital
 * @copyright 2026 Z Digital
 */

@property --zdh-ang {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.zdh {
    --zdh-accent: #ff6a00;
    --zdh-title: #fff;
    --zdh-text: rgba(255, 255, 255, .88);
    --zdh-ov: #050505;
    --zdh-h: 620px;
    --zdh-cw: 640px;
    --zdh-box: 1240px;
    --zdh-gap: 22px;
    --zdh-dur: 900ms;
    --zdh-delay: 100ms;
    --zdh-stagger: 110ms;
    --zdh-base: 0ms;
    --zdh-ease: cubic-bezier(.22, .61, .36, 1);
    --zdh-radius: 4px;
    --zdh-pos: center center;
    --zdh-pos-m: 70% center;
    --zdh-panel: #0e0f11;
    --zdh-card: rgba(12, 12, 14, .42);
    --zdh-blur: 16px;
    --zdh-split-mh: 300px;
    --zdh-pw: 60%;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    background: #0b0b0c;
    color: var(--zdh-text);
}

.zdh *,
.zdh *::before,
.zdh *::after {
    box-sizing: border-box;
}

/* ------------------------------------------------------------------
 * Background image
 * ------------------------------------------------------------------ */
.zdh-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    translate: var(--zdh-px, 0px) var(--zdh-py, 0px);
}

.zdh-media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.zdh .zdh-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: var(--zdh-pos);
    transform-origin: 65% 50%;
}

.zdh--bg-kenburns .zdh-img {
    animation: zdh-kb 22s ease-in-out infinite alternate;
}

.zdh--bg-zoom .zdh-img {
    transition: transform 1.4s var(--zdh-ease);
}

.zdh--bg-zoom:hover .zdh-img {
    transform: scale(1.07);
}

.zdh--bg-parallax .zdh-media {
    inset: -14% 0;
}

.zdh--bg-mouse .zdh-media {
    inset: -28px;
    transition: translate .9s var(--zdh-ease);
}

/* ------------------------------------------------------------------
 * Overlay (solid colour shaped with a mask) + grain
 * ------------------------------------------------------------------ */
.zdh-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--zdh-ov);
    opacity: .85;
    pointer-events: none;
}

.zdh-grain {
    position: absolute;
    inset: -50%;
    z-index: 2;
    pointer-events: none;
    opacity: .14;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: zdh-grain 1.2s steps(5) infinite;
}

/* ------------------------------------------------------------------
 * Layout
 * ------------------------------------------------------------------ */
.zdh-container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: var(--zdh-box);
    min-height: var(--zdh-h);
    margin: 0 auto;
    padding: 64px 40px;
}

.zdh--v-top .zdh-container { justify-content: flex-start; }
.zdh--v-bottom .zdh-container { justify-content: flex-end; }
.zdh--h-center .zdh-container { align-items: center; }
.zdh--h-right .zdh-container { align-items: flex-end; }

.zdh-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--zdh-gap);
    width: 100%;
    max-width: var(--zdh-cw);
    text-align: left;
}

.zdh--al-center .zdh-content { align-items: center; text-align: center; }
.zdh--al-right .zdh-content { align-items: flex-end; text-align: right; }

/* ------------------------------------------------------------------
 * Typography
 * ------------------------------------------------------------------ */
.zdh-sub {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--zdh-sub, var(--zdh-accent));
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.zdh .zdh-title {
    margin: 0;
    padding: 0;
    color: var(--zdh-title);
    font-size: clamp(40px, 6.2vw, 92px);
    font-weight: 900;
    line-height: .95;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.zdh-line {
    display: block;
    overflow: hidden;
    /* room for accents (Ñ, É) and descenders inside the reveal mask */
    padding: .12em 0 .06em;
    margin: -.12em 0 -.06em;
}

.zdh-line-in {
    display: inline-block;
}

.zdh-accent {
    font-style: normal;
    color: var(--zdh-accent);
}

.zdh--outline .zdh-line-in {
    color: transparent;
    -webkit-text-stroke: 2px var(--zdh-title);
}

.zdh--outline .zdh-accent {
    color: var(--zdh-accent);
    -webkit-text-stroke: 0;
}

.zdh .zdh-text {
    max-width: 34em;
    margin: 0;
    color: var(--zdh-text);
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.5;
}

/* ------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------ */
.zdh-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: calc(var(--zdh-gap) * .45);
}

.zdh--al-center .zdh-btns { justify-content: center; }
.zdh--al-right .zdh-btns { justify-content: flex-end; }

.zdh .zdh-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 30px;
    border: 2px solid transparent;
    border-radius: var(--zdh-radius);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .3s, color .3s, border-color .3s, transform .35s var(--zdh-ease), box-shadow .35s var(--zdh-ease);
}

.zdh .zdh-btn:focus-visible {
    outline: 2px solid var(--zdh-accent);
    outline-offset: 3px;
}

.zdh .zdh-btn--1 {
    background: var(--zdh-b1-bg, var(--zdh-accent));
    border-color: var(--zdh-b1-bg, var(--zdh-accent));
    color: var(--zdh-b1-color, #fff);
}

.zdh .zdh-btn--1:hover {
    background: var(--zdh-b1-hbg, #fff);
    border-color: var(--zdh-b1-hbg, #fff);
    color: var(--zdh-b1-hcolor, #111);
}

.zdh .zdh-btn--outline {
    background: transparent;
    border-color: var(--zdh-b2-bg, rgba(255, 255, 255, .75));
    color: var(--zdh-b2-color, #fff);
}

.zdh .zdh-btn--solid {
    background: var(--zdh-b2-bg, #fff);
    border-color: var(--zdh-b2-bg, #fff);
    color: var(--zdh-b2-color, #111);
}

.zdh .zdh-btn--glass {
    background: var(--zdh-b2-bg, rgba(255, 255, 255, .12));
    border-color: rgba(255, 255, 255, .28);
    color: var(--zdh-b2-color, #fff);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.zdh .zdh-btn--outline:hover,
.zdh .zdh-btn--solid:hover,
.zdh .zdh-btn--glass:hover {
    background: var(--zdh-b2-hbg, #fff);
    border-color: var(--zdh-b2-hbg, #fff);
    color: var(--zdh-b2-hcolor, #111);
}

.zdh .zdh-btn--link {
    padding-left: 2px;
    padding-right: 2px;
    background: transparent;
    color: var(--zdh-b2-color, #fff);
    border-radius: 0;
}

.zdh .zdh-btn--link .zdh-btn-label {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
    padding-bottom: 4px;
    transition: background-size .4s var(--zdh-ease);
}

.zdh .zdh-btn--link:hover {
    color: var(--zdh-b2-hcolor, var(--zdh-accent));
}

.zdh .zdh-btn--link:hover .zdh-btn-label {
    background-size: 100% 2px;
}

.zdh-ico {
    flex: none;
    width: 1.3em;
    height: 1.3em;
    transition: transform .35s var(--zdh-ease);
}

.zdh-btn:hover .zdh-ico--arrow { transform: translateX(5px); }
.zdh-btn:hover .zdh-ico--whatsapp,
.zdh-btn:hover .zdh-ico--phone { transform: rotate(-10deg) scale(1.12); }
.zdh-btn:hover .zdh-ico--cart { transform: translateY(-2px); }

/* hover · shine */
.zdh--btn-shine .zdh-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}

.zdh--btn-shine .zdh-btn--1::after {
    animation: zdh-shine 5s 2.2s infinite;
}

.zdh--btn-shine .zdh-btn:hover::after {
    animation: zdh-shine-hover .8s var(--zdh-ease);
}

/* hover · lift */
.zdh--btn-lift .zdh-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .6);
}

.zdh--btn-lift .zdh-btn--1:hover {
    background: var(--zdh-b1-hbg, var(--zdh-b1-bg, var(--zdh-accent)));
    border-color: var(--zdh-b1-hbg, var(--zdh-b1-bg, var(--zdh-accent)));
    color: var(--zdh-b1-hcolor, var(--zdh-b1-color, #fff));
    box-shadow: 0 16px 36px -10px var(--zdh-b1-bg, var(--zdh-accent));
}

/* hover · fill (colour slides in) */
.zdh--btn-fill .zdh-btn:not(.zdh-btn--link)::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: var(--zdh-b2-hbg, #fff);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .55s var(--zdh-ease);
}

.zdh--btn-fill .zdh-btn--1::before {
    background: var(--zdh-b1-hbg, #fff);
}

.zdh--btn-fill .zdh-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.zdh--btn-fill .zdh-btn--1:hover {
    background: var(--zdh-b1-bg, var(--zdh-accent));
}

.zdh--btn-fill .zdh-btn--outline:hover,
.zdh--btn-fill .zdh-btn--glass:hover {
    background: transparent;
}

.zdh--btn-fill .zdh-btn--solid:hover {
    background: var(--zdh-b2-bg, #fff);
}

/* ==================================================================
 * TEMPLATE · IMPACTO
 * ================================================================== */
.zdh--impact .zdh-overlay {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .8) 30%, rgba(0, 0, 0, .25) 58%, transparent 78%), linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, transparent 32%);
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .8) 30%, rgba(0, 0, 0, .25) 58%, transparent 78%), linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, transparent 32%);
}

.zdh--impact.zdh--h-right .zdh-overlay {
    -webkit-mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, .8) 30%, rgba(0, 0, 0, .25) 58%, transparent 78%), linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, transparent 32%);
    mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, .8) 30%, rgba(0, 0, 0, .25) 58%, transparent 78%), linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, transparent 32%);
}

.zdh--impact.zdh--h-center .zdh-overlay {
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(0, 0, 0, .85), rgba(0, 0, 0, .45));
    mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(0, 0, 0, .85), rgba(0, 0, 0, .45));
}

.zdh--impact .zdh-accent {
    text-shadow: 0 0 40px color-mix(in srgb, var(--zdh-accent) 35%, transparent);
}

/* ==================================================================
 * TEMPLATE · CRISTAL
 * ================================================================== */
.zdh--glass {
    --zdh-base: 280ms;
}

.zdh--glass .zdh-overlay {
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0, 0, 0, .2) 20%, #000 100%);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0, 0, 0, .2) 20%, #000 100%);
}

.zdh--glass .zdh-content {
    padding: clamp(28px, 3.4vw, 50px);
    background: var(--zdh-card);
    -webkit-backdrop-filter: blur(var(--zdh-blur)) saturate(140%);
    backdrop-filter: blur(var(--zdh-blur)) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.zdh--glass .zdh-title {
    font-size: clamp(34px, 4.6vw, 68px);
}

.zdh--glass .zdh-sub {
    gap: 9px;
    padding: 8px 15px 8px 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    font-size: 12px;
}

.zdh--glass .zdh-sub::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--zdh-accent);
    box-shadow: 0 0 0 0 var(--zdh-accent);
    animation: zdh-pulse 2.2s infinite;
}

.zdh--glow .zdh-content::before {
    content: "";
    position: absolute;
    inset: -1px;
    padding: 1.5px;
    border-radius: inherit;
    background: conic-gradient(from var(--zdh-ang), transparent 0%, transparent 55%, var(--zdh-accent) 72%, #fff 76%, var(--zdh-accent) 80%, transparent 95%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: zdh-spin 6s linear infinite;
}

/* ==================================================================
 * TEMPLATE · DIAGONAL
 * ================================================================== */
.zdh--split {
    --zdh-base: 380ms;
}

.zdh--split .zdh-overlay {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .12) 60%, rgba(0, 0, 0, .3));
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .12) 60%, rgba(0, 0, 0, .3));
}

.zdh-panel,
.zdh-stripe {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}

.zdh-panel {
    width: var(--zdh-pw);
    background: var(--zdh-panel);
}

.zdh-stripe {
    width: calc(var(--zdh-pw) + 18px);
    background: var(--zdh-accent);
}

.zdh--split.zdh--h-right .zdh-panel,
.zdh--split.zdh--h-right .zdh-stripe {
    left: auto;
    right: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%);
}

.zdh--split .zdh-content {
    max-width: min(var(--zdh-cw), 42vw);
}

.zdh--split .zdh-sub::before {
    content: "";
    flex: none;
    width: 34px;
    height: 3px;
    background: var(--zdh-accent);
}

.zdh--split.zdh--al-right .zdh-sub {
    flex-direction: row-reverse;
}

/* ==================================================================
 * ENTRANCE ANIMATIONS (class .zdh--in is added by JS when visible)
 * ================================================================== */
.zdh--anim .zdh-an,
.zdh--anim .zdh-line-in {
    opacity: 0;
}

.zdh--anim.zdh--in .zdh-an {
    animation: zdh-up var(--zdh-dur) var(--zdh-ease) both;
    animation-delay: calc(var(--zdh-delay) + var(--zdh-base) + var(--i, 0) * var(--zdh-stagger));
}

.zdh--anim.zdh--in .zdh-line-in {
    animation: zdh-line var(--zdh-dur) var(--zdh-ease) both;
    animation-delay: calc(var(--zdh-delay) + var(--zdh-base) + var(--i, 0) * var(--zdh-stagger));
}

/* Cristal: the card focuses in first */
.zdh--glass.zdh--anim .zdh-content {
    opacity: 0;
}

.zdh--glass.zdh--anim.zdh--in .zdh-content {
    animation: zdh-focus calc(var(--zdh-dur) * 1.1) var(--zdh-ease) var(--zdh-delay) both;
}

/* Diagonal: panel + stripe wipe in, photo settles, lines slide sideways */
.zdh--split.zdh--anim .zdh-panel,
.zdh--split.zdh--anim .zdh-stripe {
    transform: translateX(-101%);
}

.zdh--split.zdh--anim.zdh--h-right .zdh-panel,
.zdh--split.zdh--anim.zdh--h-right .zdh-stripe {
    transform: translateX(101%);
}

.zdh--split.zdh--anim.zdh--in .zdh-stripe {
    animation: zdh-wipe var(--zdh-dur) var(--zdh-ease) var(--zdh-delay) both;
}

.zdh--split.zdh--anim.zdh--in .zdh-panel {
    animation: zdh-wipe var(--zdh-dur) var(--zdh-ease) calc(var(--zdh-delay) + 120ms) both;
}

.zdh--split.zdh--anim.zdh--in.zdh--h-right .zdh-stripe,
.zdh--split.zdh--anim.zdh--in.zdh--h-right .zdh-panel {
    animation-name: zdh-wipe-r;
}

.zdh--split.zdh--anim.zdh--in .zdh-media {
    animation: zdh-settle calc(var(--zdh-dur) * 2) var(--zdh-ease) both;
}

.zdh--split.zdh--anim.zdh--in .zdh-line-in {
    animation-name: zdh-slide;
}

/* ------------------------------------------------------------------
 * Keyframes
 * ------------------------------------------------------------------ */
@keyframes zdh-kb {
    from { transform: scale(1); }
    to { transform: scale(1.12); }
}

@keyframes zdh-up {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}

@keyframes zdh-line {
    from { opacity: 0; transform: translateY(105%); }
    to { opacity: 1; transform: none; }
}

@keyframes zdh-slide {
    from { opacity: 0; transform: translateX(-70px); }
    to { opacity: 1; transform: none; }
}

@keyframes zdh-focus {
    from { opacity: 0; transform: translateY(26px) scale(.96); filter: blur(12px); }
    to { opacity: 1; transform: none; filter: none; }
}

@keyframes zdh-wipe {
    from { transform: translateX(-101%); }
    to { transform: none; }
}

@keyframes zdh-wipe-r {
    from { transform: translateX(101%); }
    to { transform: none; }
}

@keyframes zdh-settle {
    from { transform: scale(1.16); }
    to { transform: none; }
}

@keyframes zdh-shine {
    0% { left: -80%; }
    22%, 100% { left: 130%; }
}

@keyframes zdh-shine-hover {
    from { left: -80%; }
    to { left: 130%; }
}

@keyframes zdh-spin {
    to { --zdh-ang: 360deg; }
}

@keyframes zdh-pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--zdh-accent) 70%, transparent); }
    70% { box-shadow: 0 0 0 10px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes zdh-grain {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-6%, 4%); }
    50% { transform: translate(5%, -7%); }
    75% { transform: translate(-3%, -4%); }
    100% { transform: translate(4%, 6%); }
}

/* ==================================================================
 * TABLET
 * ================================================================== */
@media (max-width: 1024px) {
    .zdh-container {
        padding: 56px 32px;
    }

    .zdh--split .zdh-content {
        max-width: min(var(--zdh-cw), 48vw);
    }

    .zdh--split {
        --zdh-pw: 66%;
    }
}

/* ==================================================================
 * MOBILE
 * ================================================================== */
@media (max-width: 767px) {
    .zdh .zdh-img {
        object-position: var(--zdh-pos-m);
    }

    .zdh-container {
        align-items: stretch;
        padding: 40px 20px 36px;
    }

    .zdh--h-center .zdh-container,
    .zdh--h-right .zdh-container {
        align-items: stretch;
    }

    .zdh--mv-top .zdh-container { justify-content: flex-start; }
    .zdh--mv-center .zdh-container { justify-content: center; }
    .zdh--mv-bottom .zdh-container { justify-content: flex-end; }

    .zdh-content {
        max-width: 100%;
    }

    .zdh--mal-left .zdh-content { align-items: flex-start; text-align: left; }
    .zdh--mal-center .zdh-content { align-items: center; text-align: center; }
    .zdh--mal-right .zdh-content { align-items: flex-end; text-align: right; }
    .zdh--mal-left .zdh-btns { justify-content: flex-start; }
    .zdh--mal-center .zdh-btns { justify-content: center; }
    .zdh--mal-right .zdh-btns { justify-content: flex-end; }

    .zdh .zdh-title {
        font-size: clamp(38px, 11.5vw, 60px);
    }

    .zdh .zdh-text {
        font-size: 16px;
    }

    .zdh-sub {
        font-size: 13px;
    }

    .zdh--stack-m .zdh-btns {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .zdh--stack-m .zdh-btn {
        width: 100%;
        white-space: normal;
    }

    .zdh .zdh-btn {
        padding: 16px 22px;
    }

    .zdh--bg-mouse .zdh-media {
        inset: 0;
    }

    /* Impacto: the dark fade goes from the text side (bottom by default) */
    .zdh--impact .zdh-overlay,
    .zdh--impact.zdh--h-right .zdh-overlay,
    .zdh--impact.zdh--h-center .zdh-overlay {
        -webkit-mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .88) 36%, rgba(0, 0, 0, .25) 66%, rgba(0, 0, 0, .1) 100%);
        mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .88) 36%, rgba(0, 0, 0, .25) 66%, rgba(0, 0, 0, .1) 100%);
    }

    .zdh--impact.zdh--mv-top .zdh-overlay {
        -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .88) 36%, rgba(0, 0, 0, .25) 66%, rgba(0, 0, 0, .1) 100%);
        mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .88) 36%, rgba(0, 0, 0, .25) 66%, rgba(0, 0, 0, .1) 100%);
    }

    .zdh--impact.zdh--mv-center .zdh-overlay {
        -webkit-mask-image: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7));
        mask-image: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7));
    }

    /* Cristal: card nearly full width */
    .zdh--glass .zdh-container {
        padding: 24px 14px;
    }

    .zdh--glass .zdh-content {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .zdh--glass .zdh-title {
        font-size: clamp(32px, 10vw, 50px);
    }

    /* Diagonal: photo on top, panel below with a diagonal top edge */
    .zdh--split {
        display: flex;
        flex-direction: column;
        background: var(--zdh-panel);
    }

    .zdh--split .zdh-media,
    .zdh--split.zdh--bg-parallax .zdh-media,
    .zdh--split.zdh--bg-mouse .zdh-media {
        position: relative;
        inset: auto;
        flex: none;
        height: var(--zdh-split-mh);
    }

    .zdh--split .zdh-overlay {
        bottom: auto;
        height: var(--zdh-split-mh);
        -webkit-mask-image: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent 55%);
        mask-image: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent 55%);
    }

    .zdh--split .zdh-panel,
    .zdh--split .zdh-stripe,
    .zdh--split.zdh--h-right .zdh-panel,
    .zdh--split.zdh--h-right .zdh-stripe {
        top: calc(var(--zdh-split-mh) - 44px);
        right: 0;
        left: 0;
        width: 100%;
        clip-path: polygon(0 44px, 100% 0, 100% 100%, 0 100%);
    }

    .zdh--split .zdh-stripe,
    .zdh--split.zdh--h-right .zdh-stripe {
        top: calc(var(--zdh-split-mh) - 52px);
    }

    .zdh--split .zdh-container {
        min-height: 0;
        padding-top: 22px;
    }

    .zdh--split .zdh-content {
        max-width: 100%;
    }

    .zdh--split.zdh--anim .zdh-panel,
    .zdh--split.zdh--anim .zdh-stripe,
    .zdh--split.zdh--anim.zdh--h-right .zdh-panel,
    .zdh--split.zdh--anim.zdh--h-right .zdh-stripe {
        transform: translateY(60px);
        opacity: 0;
    }

    .zdh--split.zdh--anim.zdh--in .zdh-panel,
    .zdh--split.zdh--anim.zdh--in .zdh-stripe,
    .zdh--split.zdh--anim.zdh--in.zdh--h-right .zdh-panel,
    .zdh--split.zdh--anim.zdh--in.zdh--h-right .zdh-stripe {
        animation-name: zdh-up;
    }
}

/* ------------------------------------------------------------------
 * Accessibility: no motion
 * ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .zdh *,
    .zdh *::before,
    .zdh *::after {
        animation: none !important;
        transition: none !important;
    }

    .zdh--anim .zdh-an,
    .zdh--anim .zdh-line-in,
    .zdh--anim .zdh-content,
    .zdh--anim .zdh-panel,
    .zdh--anim .zdh-stripe {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
