/*=============================================================
    HOMEPAGE
    Homepage sections only. Load after ukm-components.css.
*=============================================================*/

/*=============================================================
    HERO
*=============================================================*/

.hp-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: clamp(560px, calc(100vh - 200px), 780px);
    display: flex;
}

.hp-hero {
    --hp-split: max(40%, calc(50% - 100px));
}

.hp-hero__media,
.hp-hero__slash {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: var(--hp-split);
    clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}

.hp-hero__slash {
    left: calc(var(--hp-split) - 22px);
    background: var(--ukm-red);
    z-index: -1;
}

.hp-hero__media {
    z-index: -1;
    background: var(--ukm-navy);
}

.hp-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 62%;
    animation: hp-settle 1.6s var(--ukm-ease) both;
}

.hp-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 17, 63, 0) 55%, rgba(0, 17, 63, 0.45) 100%);
}

.hp-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
    align-items: center;
    padding-top: clamp(40px, 5vw, 72px);
    padding-bottom: clamp(56px, 7vw, 96px);
}

.hp-hero__copy {
    max-width: 620px;
    animation: hp-rise 0.9s var(--ukm-ease) both;
}

.hp-hero__title {
    margin-bottom: 28px !important;
    font-size: clamp(2.75rem, 0.4rem + 5.6vw, 6rem);
    font-weight: 600;
    line-height: 0.94;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.hp-hero__line {
    display: block;
    white-space: nowrap;
}

.hp-hero__line--outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--ukm-white);
}

.hp-hero__lead {
    max-width: 460px;
    margin-bottom: 36px !important;
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.hp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 32px;
}

/* Featured competition panel */

.hp-feature {
    justify-self: end;
    align-self: end;
    width: min(380px, 100%);
    padding: 28px 28px 26px;
    background: var(--ukm-white);
    border-top: 4px solid var(--ukm-red);
    box-shadow: 0 40px 70px -35px rgba(0, 6, 22, 0.75);
    color: var(--ukm-body);
    animation: hp-rise 0.9s 0.2s var(--ukm-ease) both;
}

.hp-feature__kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px !important;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase !important;
    color: var(--ukm-navy);
}

.hp-feature__title {
    font-size: 1.625rem;
    font-weight: 500;
    line-height: 1.12;
    text-transform: uppercase;
}

.hp-feature__title a {
    color: var(--ukm-ink);
}

.hp-feature__title a:hover {
    color: var(--ukm-navy);
}

.hp-feature__alt {
    margin: 6px 0 0 !important;
    font-family: var(--ukm-display);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase !important;
    color: var(--ukm-red);
}

.hp-feature__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 20px 0 16px;
}

/* Desktop: the featured competition becomes a listing strip hanging off the hero */

@media (min-width: 1200px) {
    .hp-hero {
        overflow: visible;
    }

    .hp-hero__media {
        overflow: hidden;
    }

    .hp-hero__inner {
        grid-template-rows: 1fr auto;
        padding-bottom: 0;
    }

    .hp-hero--nofeature .hp-hero__inner {
        padding-bottom: clamp(56px, 7vw, 96px);
    }

    .hp-feature {
        position: relative;
        grid-column: 1 / -1;
        justify-self: stretch;
        display: grid;
        grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr) auto minmax(200px, auto);
        grid-template-areas:
        "kicker specs row cta"
        "title  specs row cta"
        "alt    specs row cta";
        align-items: center;
        column-gap: clamp(24px, 3vw, 44px);
        width: auto;
        margin-top: clamp(32px, 4vw, 48px);
        padding: 28px 32px 24px;
        border-top: 0;
        transform: translateY(50%);
        animation-name: hp-rise-strip;
    }

    .hp-feature__kicker {
        grid-area: kicker; margin-bottom: 8px !important;
    }

    .hp-feature__title {
        grid-area: title; font-size: 1.5rem;
    }

    .hp-feature__alt {
        grid-area: alt;
    }

    .hp-feature .hp-specs {
        grid-area: specs;
        margin-top: 0 !important;
        border: 0;
        border-left: 1px solid var(--ukm-line);
    }

    .hp-feature .hp-specs div {
        padding: 6px 0 6px 20px;
    }

    .hp-feature .hp-specs div + div {
        border-left: 0;
    }

    .hp-feature__row {
        grid-area: row;
        gap: 32px;
        margin: 0;
        padding-left: clamp(24px, 3vw, 44px);
        border-left: 1px solid var(--ukm-line);
    }

    .hp-feature > .ukm-btn {
        grid-area: cta;
    }

    .hp-feature .hp-progress {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        margin: 0;
    }

    .hp-feature .hp-progress__track {
        height: 4px;
    }

    .hp-feature .hp-progress__label {
        position: absolute;
        top: 14px;
        right: 32px;
        font-size: 12px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--ukm-body);
    }

    .hp-facts {
        padding-top: 88px !important;
    }

    .hp-hero--nofeature + .hp-facts {
        padding-top: 0 !important;
    }
}

@keyframes hp-rise-strip {
    from { opacity: 0; transform: translateY(calc(50% + 18px)); }
        to { opacity: 1; transform: translateY(50%); }
}

.hp-dial__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1.5px solid var(--ukm-navy);
    border-radius: 2px;
    background: transparent;
    color: var(--ukm-navy);
    cursor: pointer;
    transition: background-color 0.25s var(--ukm-ease), color 0.25s var(--ukm-ease), opacity 0.25s;
}

.hp-dial__btn:hover {
    background: var(--ukm-navy);
    color: var(--ukm-white);
}

.hp-dial__btn--prev .ukm-arrow {
    transform: rotate(180deg);
}

/*=============================================================
    WINNERS & DRAWS
*=============================================================*/

.hp-winners {
    padding: clamp(72px, 9vw, 128px) 0 !important;
    background: var(--ukm-white);
}

.hp-winners__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: start;
}

/* Spotlight: every winner card is stacked in one grid cell; only the active one shows.
   Cards pivot around a point far below the stage, so switching swings them along an arc. */

.hp-stage {
    display: grid;
}

.hp-winner {
    grid-area: 1 / 1;
    margin: 0;
    visibility: hidden;
    transform-origin: 50% 170%;
}

.hp-winner.is-active,
.hp-winner.is-leaving {
    visibility: visible;
}

.hp-winner.is-active {
    z-index: 2;
}

.hp-winner.is-leaving {
    z-index: 1;
    pointer-events: none;
}

/* Rev-counter dial: one tick per winner, the needle sweeps to the one on show */

.hp-dial {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding-left: clamp(16px, 3vw, 32px);
}

.hp-dial__btn {
    width: 44px;
    height: 44px;
}

.hp-dial__gauge {
    flex: none;
    width: 88px;
    height: 48px;
    overflow: visible;
}

.hp-dial__arc {
    fill: none;
    stroke: var(--ukm-line);
    stroke-width: 2;
}

.hp-dial__tick {
    stroke: rgba(1, 1, 1, 0.28);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke 0.3s;
}

.hp-dial__tick.is-on {
    stroke: var(--ukm-red);
}

.hp-dial__needle {
    transform-box: view-box;
    transform-origin: 60px 60px;
    transition: transform 0.9s cubic-bezier(0.3, 1.5, 0.45, 1);
}

.hp-dial__needle line {
    stroke: var(--ukm-red);
    stroke-width: 3;
    stroke-linecap: round;
}

.hp-dial__hub {
    fill: var(--ukm-navy);
}

.hp-dial__count {
    min-width: 48px;
    margin: 0 !important;
    font-family: var(--ukm-display);
    font-size: 17px;
    font-weight: 500;
    color: var(--ukm-ink);
    font-variant-numeric: tabular-nums;
}

/* Results board: styled like a timing sheet */

.hp-board__table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.hp-board__table thead th {
    padding: 0 16px 12px 0;
    border-bottom: 2px solid var(--ukm-ink);
    font-family: var(--ukm-text);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ukm-body);
    text-align: left;
}

.hp-board__table thead th:last-child {
    padding-right: 0;
    text-align: right;
}

.hp-board__table tbody th,
.hp-board__table tbody td {
    padding: 18px 16px 18px 0;
    border-bottom: 1px solid var(--ukm-line);
    vertical-align: baseline;
    text-align: left;
}

/* Each result row selects that winner for the spotlight */

.hp-board__row {
    cursor: pointer;
    transition: background-color 0.25s var(--ukm-ease), box-shadow 0.25s var(--ukm-ease);
}

.hp-board__row:hover {
    background: var(--ukm-paper);
}

.hp-board__row.is-active {
    background: var(--ukm-paper);
    box-shadow: inset 3px 0 0 var(--ukm-red);
}

.hp-board__table thead th:first-child,
.hp-board__table tbody td:first-child {
    padding-left: 16px;
}

.hp-board__pick {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-align: left;
    color: inherit;
    cursor: pointer;
}

.hp-board__row.is-active .hp-board__pick,
.hp-board__pick:hover {
    color: var(--ukm-navy);
}

.hp-board__date {
    width: 80px;
    font-size: 14px;
    color: var(--ukm-body);
    white-space: nowrap;
}

.hp-board__name {
    font-family: var(--ukm-display);
    font-size: 19px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--ukm-ink);
    white-space: nowrap;
}

.hp-board__prize a {
    color: var(--ukm-body);
    font-size: 15px;
    line-height: 1.4;
}

.hp-board__prize a:hover {
    color: var(--ukm-navy);
}

.hp-board__table .hp-board__ticket {
    padding-right: 0;
    text-align: right;
    font-family: var(--ukm-display);
    font-size: 19px;
    font-weight: 500;
    color: var(--ukm-red);
    white-space: nowrap;
}

.hp-board__ticket::before {
    content: "#";
    margin-right: 1px;
    color: var(--ukm-body);
    font-size: 14px;
}

.hp-draws {
    margin-top: 40px;
    padding: 28px;
    background: var(--ukm-paper);
}

.hp-draws__title {
    margin-bottom: 12px !important;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hp-draws ul {
    margin: 0 0 20px;
}

.hp-draws li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ukm-line);
    color: var(--ukm-ink);
}

.hp-draws li a:hover .hp-draws__name {
    color: var(--ukm-navy);
}

.hp-draws__play {
    flex: none;
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ukm-red);
}

.hp-draws__play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -5px 0 0 -3px;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent var(--ukm-white);
}

.hp-draws__name {
    flex: 1;
    font-weight: 500;
    line-height: 1.35;
}

.hp-draws time {
    flex: none;
    font-size: 13px;
    color: var(--ukm-body);
}

/*=============================================================
    BRAND STORY
*=============================================================*/

.hp-story {
    padding: clamp(72px, 9vw, 128px) 0 !important;
    background: var(--ukm-paper);
}

.hp-story__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.hp-story__media {
    position: relative;
}

.hp-story__media::before {
    content: "";
    position: absolute;
    inset: 24px -24px -24px 24px;
    border: 2px solid var(--ukm-navy);
    z-index: 0;
}

.hp-story__media img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hp-story__copy {
    max-width: 560px;
}

.hp-story__copy .hp-h2 {
    margin-bottom: 24px;
}

.hp-quote {
    margin: 32px 0;
    padding: 4px 0 4px 24px;
    border-left: 4px solid var(--ukm-red);
}

.hp-quote p {
    margin-bottom: 8px !important;
    font-family: var(--ukm-display);
    font-size: clamp(1.375rem, 1rem + 1vw, 1.75rem);
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase !important;
    color: var(--ukm-navy);
}

.hp-quote footer {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    margin: 0 0 32px !important;
    border-top: 1px solid var(--ukm-line);
}

/* Figure first, label underneath; figures stay level when a label wraps */
.hp-stats div {
    display: flex;
    flex-direction: column;
    padding: 18px 16px 0 0;
}

.hp-stats dd {
    order: -1;
}

.hp-stats dd {
    font-family: var(--ukm-display);
    font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--ukm-ink);
    font-variant-numeric: tabular-nums;
}

.hp-stats dt {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Phones: too narrow for side-by-side figures like £6,000,000, so each becomes a row */
@media (max-width: 575.98px) {
    .hp-stats {
        grid-template-columns: 1fr;
    }

    .hp-stats div {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
        padding: 14px 0;
        border-bottom: 1px solid var(--ukm-line);
    }

    .hp-stats dd {
        margin: 0;
        font-size: 1.75rem;
    }

    .hp-stats dt {
        text-align: right;
    }
}

/*=============================================================
    CLOSING
*=============================================================*/

.hp-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(88px, 11vw, 160px) 0 !important;
}

.hp-cta__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hp-cta__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 50%;
}

.hp-cta__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 17, 63, 0.96) 0%, rgba(0, 17, 63, 0.88) 38%, rgba(0, 17, 63, 0.35) 75%, rgba(0, 17, 63, 0.2) 100%);
}

.hp-cta__title {
    margin-bottom: 24px !important;
    font-size: clamp(3rem, 1rem + 5vw, 5.75rem);
    font-weight: 600;
    line-height: 0.92;
    text-transform: uppercase;
}

.hp-cta__lead {
    max-width: 440px;
    margin-bottom: 36px !important;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.82);
}

.hp-cta__small {
    max-width: 520px;
    margin: 40px 0 0 !important;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.hp-cta__small a {
    color: var(--ukm-white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@keyframes hp-settle {
    from { transform: scale(1.06); }
        to { transform: none; }
}

@media (max-width: 1199.98px) {
    .hp-hero {
        display: block;
        min-height: 0;
    }

    .hp-hero__slash {
        display: none;
    }

    .hp-hero__media {
        position: relative;
        left: auto;
        aspect-ratio: 16 / 9;
        max-height: 62vh;
        width: 100%;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92%);
    }

    .hp-hero__media::after {
        background: linear-gradient(180deg, rgba(0, 17, 63, 0) 40%, rgba(0, 17, 63, 0.92) 100%);
    }

    .hp-hero__inner {
        display: block;
        margin-top: -104px;
        padding-top: 0;
        padding-bottom: 48px;
    }

    .hp-hero__copy {
        max-width: 640px;
    }

    .hp-feature {
        justify-self: start;
        width: 100%;
        max-width: 560px;
        margin-top: 44px;
    }
}

@media (max-width: 991.98px) {
    .hp-winners__grid,
    .hp-story__grid {
        grid-template-columns: 1fr;
    }

    .hp-story__media {
        max-width: 640px;
        margin-right: 24px;
    }

    .hp-cta__media::after {
        background: linear-gradient(180deg, rgba(0, 17, 63, 0.7) 0%, rgba(0, 17, 63, 0.94) 70%);
    }
}

@media (max-width: 767.98px) {
    .hp-hero__media {
        aspect-ratio: 4 / 3;
        max-height: 70vh;
    }

    .hp-board__table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .hp-board__table,
    .hp-board__table tbody {
        display: block;
    }

    .hp-board__table {
        border-top: 2px solid var(--ukm-ink);
    }

    .hp-board__table tr {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas: "name ticket" "prize prize" "date date";
        gap: 2px 16px;
        padding: 16px 14px;
        border-bottom: 1px solid var(--ukm-line);
    }

    .hp-board__table tbody th,
    .hp-board__table tbody td,
    .hp-board__table tbody td:first-child {
        display: block;
        width: auto;
        padding: 0;
        border: 0;
    }

    .hp-dial {
        padding-left: 0;
    }

    .hp-board__name {
        grid-area: name;
    }

    .hp-board__ticket {
        grid-area: ticket;
    }

    .hp-board__prize {
        grid-area: prize;
    }

    .hp-board__date {
        grid-area: date; font-size: 13px;
    }

    .hp-draws {
        margin-top: 32px;
        padding: 22px 18px;
    }

    .hp-draws li a {
        flex-wrap: wrap;
    }

    .hp-draws time {
        flex-basis: 100%;
        padding-left: 46px;
        margin-top: -6px;
    }

    .hp-story__media::before {
        inset: 16px -16px -16px 16px;
    }

    .hp-story__media {
        margin-right: 16px;
    }

}

@media (max-width: 479.98px) {
    .hp-hero__media {
        aspect-ratio: 1 / 1;
    }

    .hp-hero__inner {
        margin-top: -64px;
    }

    .hp-hero__lead {
        font-size: 1rem;
    }

    .hp-hero__actions .ukm-btn {
        width: 100%;
    }

    .hp-feature {
        padding: 22px 20px 20px;
    }

    .hp-feature__title {
        font-size: 1.375rem;
    }

    .hp-cta__actions .ukm-btn {
        width: 100%;
    }
}

/*=============================================================
    HERO CAROUSEL
    One slide per home slider banner. Photos, copy and the featured
    card are stacked in place and cross-fade, so nothing jumps.
*=============================================================*/

.hp-hero {
    --hp-hero-time: 8s;
}

/* Static photo, used when nothing is open */
.hp-hero__media > img {
    position: absolute;
    inset: 0;
}

/* Each slide's photo is a frame: the whole banner, fitted beside the diagonal so the cut never
   clips the car, over a blurred, darkened copy of itself that fills the rest of the panel */
.hp-hero__frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.9s var(--ukm-ease);
}

.hp-hero__frame.is-active {
    opacity: 1;
}

.hp-hero__frame img {
    position: absolute;
    animation: none;
}

.hp-hero__backdrop {
    inset: -48px;
    width: calc(100% + 96px) !important;
    height: calc(100% + 96px) !important;
    object-fit: cover;
    filter: blur(26px) saturate(0.85) brightness(0.5);
}

.hp-hero__photo {
    top: 0;
    right: 0;
    bottom: 0;
    left: 13%;
    width: 87% !important;
    height: 100%;
    object-fit: contain !important;
    object-position: 50% 50% !important;
}

.hp-hero__frame:first-child .hp-hero__photo {
    animation: hp-settle 1.6s var(--ukm-ease) both;
}

/* Main photos (close to the panel's shape) fill the panel, framed as the hero always was */
.hp-hero__frame--fill .hp-hero__photo {
    left: 0;
    width: 100% !important;
    object-fit: cover !important;
    object-position: 55% 62% !important;
}

/* Phones and tablets: no diagonal, so the banner spans the width and sits at the top,
   clear of the headline that overlaps the bottom of the photo */
@media (max-width: 1199.98px) {
    .hp-hero__photo {
        left: 0;
        width: 100% !important;
        object-position: 50% 0 !important;
    }

    .hp-hero--banners .hp-hero__frame--fill .hp-hero__photo {
        object-position: 55% 62% !important;
    }
}

.hp-hero__slides {
    display: grid;
}

.hp-hero__slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.45s var(--ukm-ease), transform 0.6s var(--ukm-ease), visibility 0s linear 0.6s;
}

.hp-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0.15s, 0.15s, 0s;
}

.hp-hero__sep {
    margin: 0 -4px;
    opacity: 0.6;
}

/* Car names are longer than the old slogan: scale the headline with the name and let it wrap */
.hp-hero__slide .hp-hero__line {
    white-space: normal;
    text-wrap: balance;
}

.hp-hero__title.is-m {
    font-size: clamp(2.5rem, 0.4rem + 4.6vw, 5.1rem);
}

.hp-hero__title.is-l {
    font-size: clamp(2.25rem, 0.5rem + 3.5vw, 4.2rem);
}

.hp-hero__title.is-xl {
    font-size: clamp(2rem, 0.5rem + 2.9vw, 3.5rem);
}

.hp-hero__slide .hp-hero__lead {
    min-height: 3.2em;
}

/* Controls: previous / slide lines / count / next / pause */
.hp-hero__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 40px;
}

.hp-hero__btn,
.hp-hero__pause {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: var(--ukm-white);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.hp-hero__btn:hover,
.hp-hero__btn:focus-visible {
    border-color: var(--ukm-white);
    background: var(--ukm-white);
    color: var(--ukm-navy);
}

.hp-hero__btn .ukm-arrow {
    width: 18px;
}

.hp-hero__btn--prev .ukm-arrow {
    transform: rotate(180deg);
}

.hp-hero__pause {
    width: 34px;
    height: 34px;
    border-color: transparent;
    border-radius: 50%;
}

.hp-hero__pause:hover,
.hp-hero__pause:focus-visible {
    border-color: rgba(255, 255, 255, 0.4);
}

.hp-hero__pause svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
}

.hp-hero__pause .i-play,
.hp-hero__pause[aria-pressed="true"] .i-pause {
    display: none;
}

.hp-hero__pause[aria-pressed="true"] .i-play {
    display: inline;
}

.hp-hero__dots {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-hero__dot {
    display: block;
    width: 40px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.hp-hero__dot span {
    position: relative;
    display: block;
    height: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.28);
}

.hp-hero__dot:hover span {
    background: rgba(255, 255, 255, 0.55);
}

.hp-hero__dot span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ukm-red);
    transform: scaleX(0);
    transform-origin: left;
}

.hp-hero__dot.is-active span::after {
    transform: scaleX(1);
}

/* While playing, the active line fills over the slide's time */
.hp-hero.is-playing .hp-hero__dot.is-active span::after {
    animation: hp-hero-fill var(--hp-hero-time) linear both;
}

.hp-hero.is-paused .hp-hero__dot.is-active span::after {
    animation-play-state: paused;
}

@keyframes hp-hero-fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.hp-hero__dot:focus-visible {
    outline: 2px solid var(--ukm-white);
    outline-offset: 2px;
}

.hp-hero__count {
    margin: 0 !important;
    font-family: var(--ukm-display);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
    font-variant-numeric: tabular-nums;
}

.hp-hero__count span {
    color: var(--ukm-white);
}

/* Featured cards stack in one cell */
.hp-feature-stack {
    display: grid;
    justify-self: end;
    align-self: end;
    width: min(380px, 100%);
    animation: hp-rise 0.9s 0.2s var(--ukm-ease) both;
}

.hp-feature-stack .hp-feature {
    grid-area: 1 / 1;
    width: auto;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    animation: none;
    transition: opacity 0.45s var(--ukm-ease), visibility 0s linear 0.45s;
}

.hp-feature-stack .hp-feature.is-active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.1s, 0s;
}

@media (min-width: 1200px) {
    .hp-feature-stack {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: auto;
        margin-top: clamp(32px, 4vw, 48px);
        transform: translateY(50%);
        animation-name: hp-rise-strip;
    }

    .hp-feature-stack .hp-feature {
        transform: none;
    }

    .hp-hero__controls {
        margin-top: 36px;
    }
}

@media (max-width: 1199.98px) {
    .hp-feature-stack {
        justify-self: start;
        width: 100%;
        max-width: 560px;
        margin-top: 44px;
    }

    .hp-feature-stack .hp-feature {
        max-width: none;
    }
}

@media (max-width: 479.98px) {
    .hp-hero__controls {
        gap: 10px 12px;
        margin-top: 28px;
    }

    .hp-hero__dot {
        width: 28px;
    }
}

/* Phones: a short hero that gets straight to the point. Car name, enter, see all and the
   slide controls; the featured card, lead text and trust strip go */
.hp-hero .hp-hero__enter,
.hp-hero .hp-hero__all {
    display: none;
}

@media (max-width: 767.98px) {
    .hp-hero__media {
        aspect-ratio: 3 / 2;
    }

    .hp-hero__inner {
        margin-top: -56px;
        padding-bottom: 32px;
    }

    /* Slides share one cell sized by the longest name: sit each on the bottom so the
       enter button keeps its place as the slides change */
    .hp-hero__slide {
        align-self: end;
    }

    .hp-hero__slide .ukm-eyebrow {
        flex-wrap: wrap;
        gap: 4px 8px;
        letter-spacing: 0.1em;
    }

    .hp-hero__slide .hp-hero__title {
        margin-bottom: 20px !important;
    }

    .hp-hero__slide .hp-hero__lead,
    .hp-hero--banners .hp-hero__actions > :not(.hp-hero__all),
    .hp-hero--banners .hp-feature-stack,
    .hp-hero--banners + .hp-facts {
        display: none;
    }

    .hp-hero .hp-hero__enter {
        display: flex;
    }

    .hp-hero--banners .hp-hero__all {
        display: inline-flex;
    }

    .hp-hero--banners .hp-hero__actions {
        justify-content: center;
        margin-top: 18px;
    }

    .hp-hero__actions .ukm-btn {
        width: 100%;
    }

    .hp-hero--banners .hp-hero__controls {
        margin-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hp-hero__frame,
    .hp-hero__slide,
    .hp-feature-stack .hp-feature {
        transition: none;
    }

    .hp-hero__frame:first-child .hp-hero__photo,
    .hp-feature-stack {
        animation: none;
    }
}
