.service-carousel {
    --carousel-cream: #fff3e8;
    --carousel-soft: #e7cfd3;
    --carousel-rose: #f3acba;
    --carousel-dark: #241018;
    margin-block: clamp(36px, 6vw, 88px);
}
.service-carousel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 10px 24px;
    margin-bottom: clamp(14px, 2vw, 25px);
}
.service-carousel__head h2 {
    font: 400 clamp(2rem, 4.3vw, 3.9rem)/1.03 var(--type-display, Georgia, serif);
    letter-spacing: -.05em;
    text-wrap: balance;
}
.service-carousel__all {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    color: #81102e;
    font-weight: 700;
}
.service-carousel__all:hover { text-decoration: underline; text-underline-offset: 4px }
.service-carousel__all .icon { width: 16px; height: 16px }
.service-carousel__frame {
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #542933;
    border-radius: clamp(16px, 2.25vw, 28px);
    background: var(--carousel-dark);
    color: var(--carousel-cream);
}
.service-carousel__stage {
    display: grid;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}
.service-carousel__slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    min-height: clamp(360px, 37vw, 438px);
    position: relative;
    background: radial-gradient(ellipse at bottom left, #663148 0%, #361622 49%, #281019 80%);
}
.service-carousel__slide[hidden] { display: none }
.service-carousel__copy {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: clamp(13px, 2vw, 23px);
    padding: clamp(25px, 4.5vw, 64px);
    z-index: 2;
    min-width: 0;
}
.service-carousel__copy h3 {
    max-width: 16ch;
    font: 400 clamp(2.1rem, 4.3vw, 3.9rem)/1.02 var(--type-display, Georgia, serif);
    letter-spacing: -.048em;
    text-wrap: balance;
}
.service-carousel__copy p {
    max-width: 38ch;
    color: var(--carousel-soft);
    font-size: clamp(.97rem, 1.35vw, 1.13rem);
    line-height: 1.55;
}
.service-carousel__link {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    gap: 13px;
    padding: 10px 15px;
    border-radius: 10px;
    background: #ffe7e7;
    color: #421627;
    font-weight: 700;
}
.service-carousel__link:hover { background: #fff7ed }
.service-carousel__media {
    position: relative;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    background: #491724;
}
.service-carousel__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 56% center;
}
.service-carousel__media::before, .service-carousel__media::after {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
}
.service-carousel__media::before {
    inset: 0;
    background: linear-gradient(90deg, #32141ee0, #32141e25 18%, transparent 36%);
}
.service-carousel__media::after {
    inset: 16px 16px auto auto;
    width: 21px;
    height: 21px;
    border-top: 1px solid #fff3e8a8;
    border-right: 1px solid #fff3e8a8;
}
.service-carousel__toolbar {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(8px, 1.2vw, 16px);
    padding: 12px clamp(13px, 2.1vw, 27px);
    background: #29141c;
}
.service-carousel__toolbar[hidden] { display: none }
.service-carousel__progress {
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    overflow: hidden;
    background: #68414e;
}
.service-carousel__progress span {
    display: block;
    height: 100%;
    background: var(--carousel-rose);
    transform: scaleX(0);
    transform-origin: left;
}
.service-carousel__progress span.is-running {
    animation: cm360-carousel-progress var(--carousel-duration) linear forwards;
}
.service-carousel__position {
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.service-carousel__total { color: #c8aab3 }
.service-carousel__picker {
    display: flex;
    gap: 7px;
    align-items: center;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #805061 transparent;
    scrollbar-gutter: auto;
    padding: 4px;
}
.service-carousel__picker button, .service-carousel__buttons button {
    flex: none;
    min-height: 44px;
    border: 1px solid #774a5a;
    background: transparent;
    color: var(--carousel-cream);
}
.service-carousel__picker button {
    padding: 7px 12px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: .85rem;
    font-weight: 600;
}
.service-carousel__picker button[aria-current="true"] {
    background: #f3c1c9;
    border-color: #f3c1c9;
    color: #361622;
}
.service-carousel__picker button:not([aria-current]):hover, .service-carousel__buttons button:hover { background: #53313e }
.service-carousel__buttons { display: flex; gap: 6px }
.service-carousel__buttons button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    padding: 0;
    border-radius: 50%;
}
.service-carousel__buttons [data-service-next] {
    color: #361622;
    background: #f3c1c9;
    border-color: #f3c1c9;
}
.service-carousel__buttons [data-service-next]:hover { background: #fff0e7 }
.service-carousel__previous { transform: rotate(180deg) }
.service-carousel__play [class*="play-icon"], .service-carousel__play[data-paused] [class*="pause-icon"] { display: none }
.service-carousel__play[data-paused] [class*="play-icon"] { display: block }
.service-carousel__frame :focus-visible { outline: 2px solid #ffe7a9; outline-offset: 2px }
.service-carousel__fallback {
    columns: 250px;
    padding-inline-start: 22px;
}
.service-carousel__fallback li { margin-bottom: 6px }
.service-carousel__fallback a:hover { text-decoration: underline }
.service-carousel__slide.is-entering .service-carousel__media {
    animation: cm360-carousel-reveal 550ms cubic-bezier(.18, .72, .2, 1) both;
}
.service-carousel__slide.is-entering .service-carousel__media img {
    animation: cm360-carousel-image 740ms cubic-bezier(.18, .72, .2, 1) both;
}
.service-carousel__slide.is-entering .service-carousel__copy > * {
    animation: cm360-carousel-copy 380ms ease both;
}
.service-carousel__slide.is-entering .service-carousel__copy p { animation-delay: 65ms }
.service-carousel__slide.is-entering .service-carousel__link { animation-delay: 120ms }
@keyframes cm360-carousel-reveal {
    from { clip-path: inset(0 0 0 30%); opacity: .5 }
    to { clip-path: inset(0); opacity: 1 }
}
@keyframes cm360-carousel-image {
    from { transform: scale(1.065) }
    to { transform: scale(1) }
}
@keyframes cm360-carousel-copy {
    from { opacity: 0; transform: translateY(14px) }
    to { opacity: 1; transform: translateY(0) }
}
@keyframes cm360-carousel-progress { to { transform: scaleX(1) } }
@media (max-width: 759px) {
    .service-carousel__slide {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, auto) auto;
        min-height: 0;
    }
    .service-carousel__media { grid-row: 1; min-height: 0; aspect-ratio: 2 / 1 }
    .service-carousel__media::before { background: linear-gradient(0deg, #32141e91, transparent 29%) }
    .service-carousel__copy { padding: 21px 21px 25px }
    .service-carousel__copy h3 { max-width: 19ch }
    .service-carousel__toolbar { grid-template-columns: 1fr auto; grid-template-rows: auto auto; padding-block: 10px }
    .service-carousel__picker { grid-column: 1 / -1; grid-row: 2 }
    .service-carousel__buttons { grid-column: 2; grid-row: 1 }
}
@media (prefers-reduced-motion: reduce) {
    .service-carousel__slide.is-entering .service-carousel__media,
    .service-carousel__slide.is-entering .service-carousel__media img,
    .service-carousel__slide.is-entering .service-carousel__copy > *,
    .service-carousel__progress span.is-running { animation: none }
}
