/* Homepage gallery. All carousel styles stay scoped to the slider. */
.page-home .hero {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(28px, 4vw, 58px);
}
.hero-slider {
    --slide-progress: 1;
    --slider-accent: #fa5965;
    position: relative;
    isolation: isolate;
    min-width: 0;
    border: 1px solid #ffffff18;
    border-radius: 26px;
    background: linear-gradient(145deg, #27272d, #18181d 65%);
    box-shadow: 0 30px 64px #0005, inset 0 1px 0 #ffffff0a;
}
.hero-slider::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -36px -24px;
    pointer-events: none;
    background: radial-gradient(ellipse at 75% 35%, #e7323822, transparent 66%);
    filter: blur(24px);
}
.hero-slider [hidden] {
    display: none !important;
}
.hero-slider [data-slider-controls][hidden] {
    /* Reserve the initialized height without exposing inactive controls. */
    display: flex !important;
    visibility: hidden;
}
.hero-slider .slider-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 74px;
    padding: 18px 22px;
}
.hero-slider .slider-wordmark {
    display: inline-flex;
    align-items: center;
    flex: none;
    color: #faf9fa;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.09em;
}
.hero-slider .slider-brand-mark {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    margin-right: 9px;
    border: 1px solid #ff8e9538;
    border-radius: 8px;
    background: linear-gradient(145deg, #e33c4b, #ac1c2c);
    color: white;
    font-size: 20px;
    font-weight: 800;
    font-style: italic;
    line-height: 1;
    letter-spacing: -0.08em;
    box-shadow: 0 4px 12px #dc293326;
}
.hero-slider .slider-brand-dot {
    color: var(--slider-accent);
}
.hero-slider .slider-collection {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    min-height: 38px;
    color: #c9c7cc;
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
    transition: color 0.3s ease;
}
.hero-slider .slider-collection .icon {
    width: 17px;
    height: 17px;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}
.hero-slider .slider-collection:hover {
    color: white;
}
.hero-slider .slider-collection:hover .icon {
    transform: translate(2px, -2px) rotate(-45deg);
}
.hero-slider .slider-stage {
    padding: 0 12px;
}
.hero-slider .hero-slides {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    aspect-ratio: 1280 / 577;
    border-radius: 15px;
    background: #130d10;
    box-shadow: 0 12px 24px #0003;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}
.hero-slider.is-dragging .hero-slides {
    cursor: grabbing;
}
.hero-slider .hero-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.025);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.hero-slider .hero-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.hero-slider picture {
    display: block;
    width: 100%;
    height: 100%;
}
.hero-slider .hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    -webkit-user-drag: none;
}
.hero-slider .slider-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 22px 19px;
}
.hero-slider .slider-caption-copy {
    min-width: 0;
}
.hero-slider .slider-counter {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    color: #88858f;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}
.hero-slider [data-slider-current] {
    color: var(--slider-accent);
}
.hero-slider .slider-counter-divider {
    color: #5f5c66;
}
.hero-slider .slider-titles {
    display: grid;
    align-items: center;
}
.hero-slider .slider-title {
    grid-area: 1 / 1;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.hero-slider .slider-title.is-active {
    visibility: visible;
    opacity: 1;
}
.hero-slider .slider-caption h2 {
    color: #f7f5f7;
    font-size: clamp(18px, 1.8vw, 23px);
    line-height: 1.4;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}
.hero-slider .slider-arrows {
    display: flex;
    flex: none;
    align-items: center;
    gap: 7px;
}
.hero-slider .slider-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #ffffff20;
    border-radius: 50%;
    background: #ffffff03;
    color: #dfdce2;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.hero-slider .slider-control:hover {
    transform: translateY(-3px);
    border-color: #ffffff6b;
    background: #ffffff0e;
    color: white;
}
.hero-slider .slider-control:active {
    transform: translateY(0);
}
.hero-slider .slider-control .icon {
    width: 19px;
    height: 19px;
}
.hero-slider .slider-previous .icon {
    transform: rotate(180deg);
}
.hero-slider .slider-next {
    border-color: #ded9dd;
    background: #f1edef;
    color: #1c191d;
}
.hero-slider .slider-next:hover {
    border-color: white;
    background: white;
    color: #1c191d;
}
.hero-slider .slider-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 15px 22px 18px;
    border-top: 1px solid #ffffff0d;
}
.hero-slider .slider-progress-list {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.hero-slider .slider-progress {
    position: relative;
    flex: 0 1 88px;
    width: 88px;
    min-width: 44px;
    height: 46px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #ffffff20;
    border-radius: 8px;
    background: #171217;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-slider .slider-progress img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
    transition: opacity 0.3s ease;
}
.hero-slider .slider-progress.is-active {
    border-color: var(--slider-accent);
    box-shadow: 0 0 0 3px #fa59651a;
}
.hero-slider .slider-progress.is-active img,
.hero-slider .slider-progress:hover img {
    opacity: 1;
}
.hero-slider .slider-progress:hover {
    transform: translateY(-2px);
    border-color: #fbb3b9;
}
.hero-slider .slider-thumbnail-number {
    position: absolute;
    right: 4px;
    bottom: 5px;
    padding: 0 4px;
    border-radius: 3px;
    background: #140e12b8;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.6;
    font-variant-numeric: tabular-nums;
}
.hero-slider .slider-progress-track {
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: transparent;
}
.hero-slider .slider-progress-fill {
    display: block;
    width: 100%;
    height: 100%;
    background: #ffadb3;
    transform: scaleX(0);
    transform-origin: left center;
}
.hero-slider .slider-progress.is-active .slider-progress-fill {
    transform: scaleX(var(--slide-progress));
}
.hero-slider .slider-toggle {
    width: 48px;
    height: 48px;
    border: 0;
    color: #e2dde3;
    background: transparent;
}
.hero-slider .slider-timer {
    position: absolute;
    inset: 0;
    width: 48px;
    height: 48px;
    fill: none;
    stroke-width: 1.5;
    transform: rotate(-90deg);
    pointer-events: none;
}
.hero-slider .slider-timer-track {
    stroke: #ffffff18;
}
.hero-slider .slider-timer-progress {
    stroke: var(--slider-accent);
    stroke-dasharray: 100;
    stroke-dashoffset: calc(100 * (1 - var(--slide-progress)));
    stroke-linecap: round;
}
.hero-slider :is(button, a, .hero-slides):focus-visible {
    outline: 2px solid #ff9fa8;
    outline-offset: 4px;
}
@media (max-width: 1050px) {
    .page-home .hero {
        grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
        gap: 28px;
    }
    .hero-slider .slider-heading,
    .hero-slider .slider-caption,
    .hero-slider .slider-toolbar {
        padding-inline: 18px;
    }
}
@media (max-width: 800px) {
    .page-home .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .page-home .hero-copy .lead {
        max-width: 590px;
    }
    .hero-slider {
        width: 100%;
        max-width: 680px;
        justify-self: center;
    }
}
@media (max-width: 600px) {
    .hero-slider {
        border-radius: 20px;
    }
    .hero-slider::before {
        inset: -16px 0;
    }
    .hero-slider .slider-heading {
        min-height: 62px;
        gap: 12px;
        padding: 12px 16px;
    }
    .hero-slider .slider-wordmark {
        font-size: 11px;
        letter-spacing: 0.06em;
    }
    .hero-slider .slider-brand-mark {
        width: 24px;
        height: 24px;
        margin-right: 7px;
        font-size: 18px;
    }
    .hero-slider .slider-collection {
        gap: 6px;
        font-size: 11px;
    }
    .hero-slider .slider-stage {
        padding-inline: 8px;
    }
    .hero-slider .hero-slides {
        border-radius: 11px;
    }
    .hero-slider .slider-caption {
        gap: 12px;
        padding: 17px 16px;
    }
    .hero-slider .slider-caption h2 {
        font-size: 17px;
    }
    .hero-slider .slider-arrows {
        gap: 5px;
    }
    .hero-slider .slider-toolbar {
        gap: 16px;
        padding: 12px 16px 15px;
    }
    .hero-slider .slider-progress-list {
        gap: 8px;
    }
    .hero-slider .slider-progress {
        flex-basis: 78px;
        width: 78px;
        border-radius: 7px;
    }
}
