.marem-video-carousel {
    --marem-accent: #b58a4a;
    --marem-ink: #1f242b;
    --marem-muted: #646b76;
    --marem-surface: #f6f1e8;
    width: 100%;
    max-width: none;
    margin-inline: auto;
    color: var(--marem-ink);
    container-type: inline-size;
}

.marem-video-carousel__viewport {
    overflow: hidden;
    border: none;
    border-radius: 0;
    background:
        radial-gradient(circle at 12% 12%, rgba(181, 138, 74, 0.16), transparent 32%),
        linear-gradient(120deg, var(--marem-surface), #fff 72%);
    box-shadow: none;
}

.marem-video-carousel__track {
    display: flex;
    will-change: transform;
    transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.marem-video-slide {
    display: grid;
    flex: 0 0 100%;
    grid-template-columns: minmax(260px, 400px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(36px, 7vw, 96px);
    box-sizing: border-box;
    height: clamp(620px, 78vh, 720px);
    padding: clamp(28px, 5vw, 72px);
}

.marem-video-slide__media {
    position: relative;
    justify-self: center;
    width: auto;
    max-width: 100%;
    height: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: clamp(18px, 2vw, 26px);
    background: #111;
    box-shadow: 0 24px 60px rgba(24, 27, 32, 0.22);
}

.marem-video-slide__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111;
}

.marem-video-slide__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(7, 10, 14, 0.74), transparent 58%);
}

.marem-video-slide__media-text {
    position: absolute;
    right: clamp(20px, 3vw, 30px);
    bottom: clamp(20px, 3vw, 30px);
    left: clamp(20px, 3vw, 30px);
    z-index: 1;
    display: grid;
    gap: 8px;
    color: #fff;
    pointer-events: none;
}

.marem-video-slide__label,
.marem-video-slide__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.marem-video-slide__label {
    color: rgba(255, 255, 255, 0.8);
}

.marem-video-slide__media-title {
    max-width: 15ch;
    font-size: clamp(1.2rem, 2vw, 1.75rem);
    font-weight: 600;
    line-height: 1.15;
}

.marem-video-slide__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    max-width: 620px;
}

.marem-video-slide__eyebrow {
    margin-bottom: 20px;
    color: var(--marem-accent);
}

.marem-video-slide__title {
    max-width: 13ch;
    margin: 0;
    color: var(--marem-ink);
    font-size: 4rem;
    font-size: clamp(2.4rem, 5.5cqi, 3.5rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.marem-video-slide__summary {
    max-width: 55ch;
    margin: clamp(24px, 3vw, 34px) 0 0;
    color: var(--marem-muted);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.75;
}

.marem-video-slide__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--marem-ink);
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: transform 220ms ease, background-color 220ms ease;
}

.marem-video-slide__link:hover {
    transform: translateY(-1px);
    background: var(--marem-accent);
    color: #fff;
}

.marem-video-slide__link:focus-visible {
    outline: 3px solid rgba(181, 138, 74, 0.42);
    outline-offset: 3px;
}

.marem-video-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 20px);
    margin-top: 24px;
}

.marem-video-carousel:not(.is-initialized) .marem-video-carousel__controls {
    visibility: hidden;
}

.marem-video-carousel__prev,
.marem-video-carousel__next,
.marem-video-carousel__dot {
    appearance: none;
    padding: 0;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.marem-video-carousel__prev,
.marem-video-carousel__next {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(31, 36, 43, 0.18);
    border-radius: 50%;
    background: #fff;
    color: var(--marem-ink);
    box-shadow: 0 8px 24px rgba(31, 36, 43, 0.08);
    transition: transform 220ms ease, background-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.marem-video-carousel__prev svg,
.marem-video-carousel__next svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 220ms ease;
}

.marem-video-carousel__prev:hover:not(:disabled),
.marem-video-carousel__next:hover:not(:disabled) {
    transform: translateY(-1px);
    background: var(--marem-ink);
    color: #fff;
    box-shadow: 0 12px 30px rgba(31, 36, 43, 0.2);
}

.marem-video-carousel__prev:hover:not(:disabled) svg {
    transform: translateX(-1px);
}

.marem-video-carousel__next:hover:not(:disabled) svg {
    transform: translateX(1px);
}

.marem-video-carousel__prev:active:not(:disabled),
.marem-video-carousel__next:active:not(:disabled) {
    transform: translateY(0) scale(0.94);
}

.marem-video-carousel__prev:disabled,
.marem-video-carousel__next:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.marem-video-carousel__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 96px;
}

.marem-video-carousel__dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(31, 36, 43, 0.22);
    transition: width 220ms ease, background-color 220ms ease;
}

.marem-video-carousel__dot.is-active {
    width: 28px;
    background: var(--marem-accent);
}

.marem-video-carousel__prev:focus-visible,
.marem-video-carousel__next:focus-visible,
.marem-video-carousel__dot:focus-visible {
    outline: 3px solid rgba(181, 138, 74, 0.42);
    outline-offset: 3px;
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .marem-video-slide {
        grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
        gap: clamp(28px, 4vw, 48px);
        padding: clamp(28px, 4vw, 48px);
    }

    .marem-video-slide__title {
        max-width: 16ch;
        font-size: clamp(2rem, 4.5cqi, 3rem);
    }
}

@media (max-width: 1024px) {
    .marem-video-slide {
        grid-template-columns: 1fr;
        gap: 30px;
        height: auto;
        min-height: 0;
        padding: clamp(18px, 5vw, 30px);
    }

    .marem-video-slide__media {
        width: min(100%, 360px);
        height: auto;
        margin-inline: auto;
    }

    .marem-video-slide__content {
        align-items: center;
        align-self: auto;
        max-width: none;
        padding: 0 4px 8px;
        text-align: center;
    }

    .marem-video-slide__link {
        margin-top: clamp(24px, 3vw, 34px);
    }

    .marem-video-slide__title {
        max-width: 16ch;
        font-size: clamp(2rem, 10vw, 3.4rem);
        margin-top: 0 !important;
    }

    .marem-video-slide__summary {
        line-height: 1.6;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marem-video-carousel__track {
        transition: none;
    }

    .marem-video-carousel__prev,
    .marem-video-carousel__next,
    .marem-video-carousel__dot,
    .marem-video-slide__link {
        transition: none;
    }
}
