/* Urban Slider cinematic hero
 * 1. Stage  2. Independent motion layers  3. Content and masks
 * 4. Chapter navigation  5. Responsive and reduced motion
 */

/* 1. Stage. The first slide remains visible before JavaScript starts. */
.elementor-widget-ug_hero_carousel { width: 100%; min-width: 0; }
.ug-hero {
    --ug-hero-height: clamp(620px, calc(100svh - 180px), 820px);
    --ug-hero-gutter: clamp(28px, 5vw, 80px);
    --ug-hero-accent: #a72d48;
    --ug-hero-ease: cubic-bezier(.22, .61, .36, 1);
    position: relative;
    isolation: isolate;
    width: min(100%, 100vw);
    margin-inline: auto;
    min-width: 0;
    min-height: var(--ug-hero-height);
    overflow: hidden;
    color: #fff;
    background: #102837;
    -webkit-tap-highlight-color: transparent;
}
.ug-hero .ug-hero__viewport {
    position: relative;
    z-index: 0;
    width: 100%;
    height: var(--ug-hero-height);
    min-height: var(--ug-hero-height);
    overflow: hidden;
    touch-action: pan-y;
}
.ug-hero[data-fill-viewport="yes"] {
    --ug-hero-height: max(620px, calc(100svh - var(--ug-hero-top, 180px)));
}
.ug-hero .ug-hero__slides {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    min-height: var(--ug-hero-height);
    margin: 0;
    padding: 0;
    box-sizing: content-box;
    transition-property: transform;
    transition-timing-function: var(--ug-hero-ease);
}
.ug-hero .ug-hero__slide {
    position: relative;
    display: grid;
    grid-area: 1 / 1;
    align-items: center;
    flex: 0 0 100%;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: var(--ug-hero-height);
    margin: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    background: #102837;
    transition-property: transform;
}
.ug-hero .ug-hero__slide.is-active { visibility: visible; opacity: 1; }
.ug-hero.is-enhanced .ug-hero__slides { display: flex; align-items: stretch; }
.ug-hero.is-enhanced .ug-hero__slide { grid-area: auto; visibility: visible; opacity: 1; }
.ug-hero .ug-hero__slide::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(90deg, rgb(9 26 39 / 88%) 0%, rgb(12 32 46 / 69%) 37%, rgb(13 34 47 / 28%) 69%, rgb(13 34 47 / 9%) 100%), linear-gradient(0deg, rgb(8 22 33 / 92%) 0%, rgb(8 22 33 / 46%) 20%, transparent 49%);
}
.ug-hero.ug-hero--dark .ug-hero__slide::after {
    background: linear-gradient(90deg, rgb(7 20 30 / 92%) 0%, rgb(7 20 30 / 74%) 40%, rgb(7 20 30 / 29%) 78%, rgb(7 20 30 / 17%) 100%), linear-gradient(0deg, rgb(7 20 30 / 80%), transparent 43%);
}

/* 2. Swiper, scroll and drift each own an independent transform layer. */
.ug-hero .ug-hero__visual {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition-timing-function: var(--ug-hero-ease);
}
.ug-hero .ug-hero__scroll { position: absolute; inset: -8% 0; }
.ug-hero .ug-hero__drift {
    position: absolute;
    inset: 0;
    transform: scale(1.045);
    transform-origin: 62% 50%;
    animation: ug-hero-image-drift 22s ease-in-out infinite alternate;
    animation-play-state: paused;
}
.ug-hero[data-ug-playing="yes"][data-ug-visible="yes"] .ug-hero__slide.is-active .ug-hero__drift,
.ug-hero[data-ug-playing="yes"][data-ug-visible="yes"] .ug-hero__slide.is-leaving .ug-hero__drift { animation-play-state: running; }
.ug-hero.is-enhanced .ug-hero__slide.is-active .ug-hero__visual,
.ug-hero.is-enhanced .ug-hero__slide.is-prev .ug-hero__visual,
.ug-hero.is-enhanced .ug-hero__slide.is-next .ug-hero__visual { will-change: transform; }
.ug-hero .ug-hero__media,
.ug-hero .ug-hero__image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.ug-hero .ug-hero__image {
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
}
@keyframes ug-hero-image-drift {
    from { transform: translate3d(0, 0, 0) scale(1.045); }
    to { transform: translate3d(-1.2%, .6%, 0) scale(1.105); }
}

/* 3. Editorial content and clipped headline motion. */
.ug-hero .ug-hero__image-disclosure {
    overflow-wrap: anywhere;
    position: absolute;
    z-index: 3;
    top: 18px;
    right: var(--ug-hero-gutter);
    box-sizing: border-box;
    max-width: calc(100% - var(--ug-hero-gutter) * 2);
    margin: 0;
    padding: 4px 8px;
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 4px;
    color: rgb(255 255 255 / 90%);
    background: rgb(7 22 31 / 34%);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 10.5px;
    font-weight: 400;
    line-height: 14px;
    text-align: right;
    pointer-events: none;
}
.ug-hero .ug-hero__content {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding: 72px var(--ug-hero-gutter) 176px;
    text-align: left;
}
.ug-hero [data-swiper-parallax],
.ug-hero [data-swiper-parallax-x],
.ug-hero [data-swiper-parallax-y] { transition-timing-function: var(--ug-hero-ease); }
.ug-hero .ug-hero__eyebrow {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 24px;
    padding: 7px 14px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background-color: #1eb2861c;
    -webkit-backdrop-filter: saturate(180%) blur(40px);
    backdrop-filter: saturate(180%) blur(40px);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .02em;
}
.ug-hero .ug-hero__title {
    max-width: 780px;
    margin: 0 0 28px;
    padding: 0;
    color: #fff;
    font-family: "Titillium Web", Arial, sans-serif;
    font-size: clamp(56px, 5.8vw, 84px);
    font-weight: 700;
    line-height: 1.045;
    letter-spacing: -.025em;
    overflow-wrap: break-word;
    text-wrap: balance;
}
.ug-hero .ug-hero__title-mask {
    display: block;
    overflow: hidden;
    padding-bottom: .08em;
    margin-bottom: -.08em;
}
.ug-hero .ug-hero__title-motion,
.ug-hero .ug-hero__title-line { display: block; }
.ug-hero.is-enhanced .ug-hero__title-line {
    transform: translate3d(0, 112%, 0);
    transition: transform 1000ms cubic-bezier(.16, 1, .3, 1);
    transition-delay: 0ms;
}
.ug-hero.is-enhanced .ug-hero__slide.is-active .ug-hero__title-line { transform: translate3d(0, 0, 0); transition-delay: 120ms; }
.ug-hero.is-enhanced .ug-hero__slide.is-active .ug-hero__title-mask:nth-child(2) .ug-hero__title-line { transition-delay: 190ms; }
.ug-hero.is-enhanced .ug-hero__slide.is-active .ug-hero__title-mask:nth-child(3) .ug-hero__title-line { transition-delay: 260ms; }
.ug-hero.is-enhanced .ug-hero__slide.is-leaving .ug-hero__title-line { transform: translate3d(0, -112%, 0); transition-delay: 0ms; }
.ug-hero .ug-hero__description {
    max-width: 560px;
    margin: 0 0 34px;
    color: rgb(255 255 255 / 88%);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: -.015em;
    text-wrap: pretty;
}
.ug-hero .ug-hero__actions { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 20px 32px; }
.ug-hero .ug-hero__button,
.ug-hero .ug-hero__calendar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 56px;
    color: #fff;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
}
.ug-hero .ug-hero__button {
    min-width: 198px;
    max-width: 100%;
    padding: 17px 30px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: var(--ug-hero-accent);
    transition: background-color 180ms ease, border-color 180ms ease;
}
.ug-hero .ug-hero__button:hover { color: #fff; border-color: rgb(255 255 255 / 18%); background: #bd3855; }
.ug-hero .ug-hero__calendar { gap: 12px; padding: 0; border: 0; background: transparent; }
.ug-hero .ug-hero__calendar > svg { flex: 0 0 25px; box-sizing: border-box; width: 25px; height: 25px; padding: 0; border: 0; border-radius: 0; }
.ug-hero .ug-hero__calendar:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.ug-hero .ug-hero__slide--center .ug-hero__content { text-align: center; }
.ug-hero .ug-hero__slide--center .ug-hero__eyebrow,
.ug-hero .ug-hero__slide--center .ug-hero__title,
.ug-hero .ug-hero__slide--center .ug-hero__description { margin-inline: auto; }
.ug-hero .ug-hero__slide--center .ug-hero__actions { justify-content: center; }

/* 4. Persistent named chapters and quiet transport controls. */
.ug-hero .ug-hero__controls {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: clamp(28px, 3.5vh, 42px);
    left: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--ug-hero-gutter);
}
.ug-hero .ug-hero__controls[hidden],
.ug-hero .ug-hero__controls [hidden] { display: none; }
.ug-hero .ug-hero__navigation { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 42px; }
.ug-hero .ug-hero__chapters { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: start; gap: 22px; min-width: 0; }
.ug-hero .ug-hero__chapter {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 64px;
    margin: 0;
    padding: 17px 0 0;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: transparent;
    box-shadow: none;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
}
.ug-hero .ug-hero__chapter-track { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 2px; overflow: hidden; background: rgb(255 255 255 / 34%); transition: background-color 180ms ease; }
.ug-hero .ug-hero__chapter[aria-current="true"] .ug-hero__chapter-track { background: rgb(255 255 255 / 65%); }
.ug-hero .ug-hero__chapter-fill { display: block; width: 100%; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left center; }
.ug-hero .ug-hero__chapter-label { display: block; opacity: .78; transition: opacity 240ms ease; }
.ug-hero .ug-hero__chapter[aria-current="true"] .ug-hero__chapter-label,
.ug-hero .ug-hero__chapter:hover .ug-hero__chapter-label { opacity: 1; }
.ug-hero .ug-hero__transport { display: flex; align-items: center; gap: 8px; min-height: 64px; padding-bottom: 4px; }
.ug-hero .ug-hero__fraction {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 69px;
    margin-right: 10px;
    color: rgb(255 255 255 / 74%);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}
.ug-hero .ug-hero__fraction > span:first-child { color: #fff; font-size: 25px; font-weight: 500; }
.ug-hero .ug-hero__arrow,
.ug-hero .ug-hero__pause {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 38%);
    border-radius: 50%;
    color: #fff;
    background: transparent;
    box-shadow: none;
    line-height: 1;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease;
}
.ug-hero .ug-hero__pause { border-color: transparent; opacity: .7; }
.ug-hero .ug-hero__arrow svg,
.ug-hero .ug-hero__pause svg { display: block; width: 18px; height: 18px; }
.ug-hero .ug-hero__arrow:hover,
.ug-hero .ug-hero__pause:hover { color: #fff; border-color: rgb(255 255 255 / 80%); background: rgb(255 255 255 / 8%); opacity: 1; }
.ug-hero .ug-hero__current-label { display: none; }
.ug-hero a:focus-visible,
.ug-hero button:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.ug-hero .ug-hero__status,
.ug-hero .ug-hero__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* 5. Responsive layouts and reduced motion. */
@media (min-width: 1024px), (min-width: 768px) and (min-height: 601px) {
    .ug-hero[data-fill-viewport="yes"] .ug-hero__content,
    .ug-hero[data-fill-viewport="yes"] .ug-hero__controls {
        max-width: none;
        padding-inline: var(--ug-home-logo-gutter, var(--ug-hero-gutter));
    }
}
@media (min-width: 768px) and (max-height: 840px) {
    .ug-hero .ug-hero__content { padding-top: 48px; padding-bottom: 140px; }
    .ug-hero .ug-hero__title { margin-bottom: 22px; font-size: clamp(50px, 4.8vw, 72px); }
    .ug-hero .ug-hero__eyebrow { margin-bottom: 18px; }
    .ug-hero .ug-hero__description { max-width: 620px; margin-bottom: 28px; font-size: 18px; line-height: 1.55; }
}
@media (max-width: 1100px) and (min-width: 768px) {
    .ug-hero .ug-hero__navigation { gap: 28px; }
    .ug-hero .ug-hero__chapters { gap: 16px; }
    .ug-hero .ug-hero__chapter { font-size: 13px; }
    .ug-hero .ug-hero__fraction { min-width: 56px; margin-right: 2px; }
}
@media (max-width: 767px), (max-width: 1023px) and (max-height: 600px) and (orientation: landscape) {
    .ug-hero .ug-hero__image-disclosure {
        top: calc(var(--ug-mobile-header-height, 0px) + 12px);
        right: 18px;
        max-width: calc(100% - 36px);
    }
    .ug-hero {
        --ug-hero-height: max(560px, var(--ug-mobile-min-height, 560px));
        --ug-hero-gutter: 24px;
        --ug-mobile-copy-shift: 0px;
        --ug-mobile-photo-shift: clamp(0px, calc((100svh - 680px) * .39), 64px);
    }
    .ug-hero[data-fill-viewport="yes"] {
        --ug-hero-height: max(var(--ug-mobile-min-height, 560px), calc(100svh - var(--ug-hero-top, 0px)));
    }
    @supports (height: 100dvh) {
        .ug-hero[data-fill-viewport="yes"] {
            --ug-hero-height: max(var(--ug-mobile-min-height, 560px), calc(100dvh - var(--ug-hero-top, 0px)));
        }
    }
    .ug-hero .ug-hero__slide {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: var(--ug-mobile-header-height, 0px) minmax(0, 1fr);
        align-items: center;
    }
    .ug-hero .ug-hero__slide::after,
    .ug-hero.ug-hero--dark .ug-hero__slide::after {
        display: block;
        background: linear-gradient(180deg, rgb(7 22 31 / 16%) 0%, rgb(7 22 31 / 50%) 18%, rgb(7 22 31 / 74%) 28%, rgb(7 22 31 / 82%) 72%, rgb(7 22 31 / 66%) 100%);
    }
    .ug-hero .ug-hero__visual {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
    .ug-hero .ug-hero__scroll { inset: 0; transform: none !important; }
    .ug-hero .ug-hero__drift { transform: scale(1.015); animation-name: ug-hero-mobile-drift; }
    .ug-hero .ug-hero__image { object-fit: cover; object-position: 68% center; }
    .ug-hero .ug-hero__content {
        grid-column: 1;
        grid-row: 2;
        align-self: end;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-height: 0;
        margin: 0;
        padding: calc(28px + var(--ug-mobile-copy-shift)) 24px calc(88px - var(--ug-mobile-copy-shift));
        color: #fff;
        background: transparent;
        text-align: center;
    }
    .ug-hero .ug-hero__copy { display: flow-root; min-width: 0; }
    .ug-hero .ug-hero__eyebrow {
        display: inline-block;
        width: auto;
        max-width: 100%;
        margin: 0 auto 20px;
        padding: 5px 12px;
        border: 0;
        border-radius: 4px;
        color: #fff;
        font-size: 11px;
        font-weight: 600;
        line-height: 16px;
        letter-spacing: .035em;
        text-align: center;
    }
    .ug-hero .ug-hero__title {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 16px;
        padding: 0;
        color: #fff;
        font-family: "Titillium Web", Arial, sans-serif;
        font-size: clamp(28px, 7.8vw, 34px);
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: 0;
        white-space: normal;
        text-align: center;
        text-wrap: balance;
    }
    .ug-hero .ug-hero__title-mask,
    .ug-hero .ug-hero__title-motion,
    .ug-hero .ug-hero__title-line {
        display: inline;
        overflow: visible;
        margin: 0;
        padding: 0;
        transform: none !important;
        transition: none !important;
    }
    .ug-hero .ug-hero__description {
        box-sizing: border-box;
        max-width: 100%;
        margin: 0 auto 24px;
        padding: 0;
        color: rgb(255 255 255 / 92%);
        font-family: "DM Sans", Arial, sans-serif;
        font-size: 14.5px;
        font-weight: 400;
        line-height: 1.55;
        letter-spacing: 0;
        text-align: center;
        text-wrap: wrap;
    }
    .ug-hero .ug-hero__actions {
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }
    .ug-hero .ug-hero__button {
        flex: 0 0 auto;
        width: auto;
        min-width: 198px;
        min-height: 52px;
        padding: 12px 24px;
        border-radius: 4px;
        color: #fff;
        background: #b21e3f;
        font-family: "DM Sans", Arial, sans-serif;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.4;
    }
    .ug-hero .ug-hero__calendar {
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: auto;
        height: 44px;
        min-height: 44px;
        padding: 0;
        border: 0;
        border-radius: 0;
        color: #fff;
        background: transparent;
        font-family: "DM Sans", Arial, sans-serif;
        font-size: 13px;
        font-weight: 600;
    }
    .ug-hero .ug-hero__calendar > svg {
        flex: 0 0 40px;
        box-sizing: border-box;
        width: 40px;
        height: 40px;
        padding: 10px;
        border: 1px solid rgb(255 255 255 / 72%);
        border-radius: 50%;
    }
    .ug-hero .ug-hero__calendar > span {
        position: static;
        display: inline;
        width: auto;
        height: auto;
        padding: 0;
        overflow: visible;
        clip-path: none;
        white-space: normal;
        border: 0;
    }
    .ug-hero .ug-hero__controls {
        right: 0;
        bottom: 20px;
        left: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 15px;
    }
    .ug-hero .ug-hero__navigation {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
    }
    .ug-hero .ug-hero__chapters {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        min-width: 0;
    }
    .ug-hero .ug-hero__chapter {
        flex: 0 0 24px;
        width: 24px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }
    .ug-hero .ug-hero__chapter-track {
        top: 50%;
        left: 50%;
        box-sizing: border-box;
        width: 8px;
        height: 8px;
        border: 1px solid #fff;
        border-radius: 50%;
        background: #fff;
        transform: translate(-50%, -50%);
        transition: none;
    }
    .ug-hero .ug-hero__chapter[aria-current="true"] .ug-hero__chapter-track { width: 12px; height: 12px; border-width: 2px; background: transparent; }
    .ug-hero .ug-hero__chapter-fill,
    .ug-hero .ug-hero__transport,
    .ug-hero .ug-hero__fraction,
    .ug-hero .ug-hero__current-label { display: none; }
    .ug-hero .ug-hero__chapter-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }
}
@media (max-width: 767px) and (orientation: portrait) {
    .ug-hero .ug-hero__media--portrait .ug-hero__image {
        inset: calc(0px - var(--ug-mobile-photo-shift)) 0 auto;
        height: auto;
        aspect-ratio: var(--ug-mobile-image-ratio, 9 / 16);
        object-fit: contain;
        object-position: center top;
        -webkit-mask-image: linear-gradient(#000 0%, #000 65%, transparent 100%);
        mask-image: linear-gradient(#000 0%, #000 65%, transparent 100%);
    }
}
@keyframes ug-hero-mobile-drift {
    from { transform: scale(1.015); }
    to { transform: translate3d(-.5%, .3%, 0) scale(1.045); }
}
.ug-hero[data-ug-reduced="yes"] .ug-hero__drift { animation: none; transform: scale(1.045); }
.ug-hero[data-ug-reduced="yes"] .ug-hero__scroll { transform: none !important; }
.ug-hero[data-ug-reduced="yes"] .ug-hero__title-line,
.ug-hero[data-ug-reduced="yes"] .ug-hero__slides,
.ug-hero[data-ug-reduced="yes"] [data-swiper-parallax] { transition-duration: 0ms !important; transition-delay: 0ms !important; }
@media (prefers-reduced-motion: reduce) {
    .ug-hero .ug-hero__drift { animation: none; transform: scale(1.045); }
    .ug-hero .ug-hero__scroll { transform: none !important; }
    .ug-hero .ug-hero__title-line,
    .ug-hero .ug-hero__slides,
    .ug-hero [data-swiper-parallax],
    .ug-hero .ug-hero__button,
    .ug-hero .ug-hero__chapter-label { transition-duration: 0ms !important; transition-delay: 0ms !important; }
}
