.lilyee-rhythm {
    position: relative;
    background: #14110f;
    color: var(--color-surface);
}

.lilyee-rhythm__sections {
    position: relative;
}

.lilyee-rhythm__item {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(6rem, 10vh, 8rem) clamp(1.5rem, 6vw, 7rem);
}

.lilyee-rhythm__media,
.lilyee-rhythm__overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.lilyee-rhythm__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition:
        opacity 1200ms cubic-bezier(.22,.61,.36,1),
        transform 1600ms cubic-bezier(.22,.61,.36,1);
    will-change: opacity, transform;
}

.lilyee-rhythm__overlay {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(15, 12, 12, 0.74) 0%, rgba(15, 12, 12, 0.44) 34%, rgba(15, 12, 12, 0.1) 72%),
        linear-gradient(0deg, rgba(15, 12, 12, 0.76) 0%, rgba(15, 12, 12, 0.28) 46%, rgba(15, 12, 12, 0.18) 100%);
}

.lilyee-rhythm__content {
    width: min(100%, 48rem);
    display: grid;
    gap: clamp(0.9rem, 1.4vw, 1.25rem);
    margin-bottom: clamp(1rem, 4vh, 3rem);
}

.lilyee-rhythm__eyebrow {
    display: inline-block;
    width: fit-content;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(0.68rem, 0.8vw, 0.78rem);
    font-weight: 700;
    letter-spacing: 0.28em;
    line-height: 1.4;
    text-transform: uppercase;
    transform: translateY(14px);
    opacity: 0;
    transition:
        opacity 700ms ease,
        transform 700ms cubic-bezier(.22,.61,.36,1);
}

.lilyee-rhythm__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 400;
    line-height: 0.94;
    letter-spacing: 0;
    text-wrap: balance;
    transform: translateY(42px);
    opacity: 0;
    transition:
        opacity 900ms ease 100ms,
        transform 900ms cubic-bezier(.22,.61,.36,1) 100ms;
}

.lilyee-rhythm__text {
    max-width: 42rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 1.35vw, 1.28rem);
    line-height: 1.75;
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 800ms ease 260ms,
        transform 800ms cubic-bezier(.22,.61,.36,1) 260ms;
}

.lilyee-rhythm__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0;
    margin: clamp(0.3rem, 1vw, 0.85rem) 0 0;
    list-style: none;
}

.lilyee-rhythm__chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(251, 250, 248, 0.1);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 620ms ease,
        transform 620ms cubic-bezier(.22,.61,.36,1),
        border-color var(--transition-fast),
        background-color var(--transition-fast);
    transition-delay: calc(380ms + (var(--chip-index) * 95ms));
}

.lilyee-rhythm__shop {
    position: absolute;
    right: clamp(1.5rem, 6vw, 7rem);
    bottom: clamp(1.5rem, 6vh, 4.5rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--color-surface);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 760ms ease 520ms,
        transform 760ms cubic-bezier(.22,.61,.36,1) 520ms,
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}

.lilyee-rhythm__shop:hover,
.lilyee-rhythm__shop:focus-visible {
    background: rgba(185, 156, 203, 0.28);
    border-color: rgba(255, 255, 255, 0.64);
    color: var(--color-surface);
}

.lilyee-rhythm__progress {
    position: fixed;
    top: 50%;
    right: clamp(1rem, 2.2vw, 2rem);
    z-index: 20;
    display: grid;
    gap: 0.7rem;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

.lilyee-rhythm__progress.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.lilyee-rhythm__indicator {
    display: grid;
    grid-template-columns: 2.2rem auto;
    align-items: center;
    gap: 0.65rem;
    min-height: 2rem;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.lilyee-rhythm__indicator::before {
    content: "";
    width: 1.4rem;
    height: 1px;
    grid-column: 1;
    justify-self: end;
    background: currentColor;
    opacity: 0.58;
    transform-origin: right center;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.lilyee-rhythm__indicator-count {
    display: none;
}

.lilyee-rhythm__indicator-label {
    grid-column: 2;
}

.lilyee-rhythm__indicator:hover,
.lilyee-rhythm__indicator:focus-visible,
.lilyee-rhythm__indicator.is-active {
    color: var(--color-surface);
}

.lilyee-rhythm__indicator.is-active {
    transform: translateX(-0.35rem);
}

.lilyee-rhythm__indicator.is-active::before {
    opacity: 1;
    transform: scaleX(1.75);
    color: var(--color-primary);
}

.lilyee-rhythm__item.is-active .lilyee-rhythm__image,
.lilyee-rhythm__item.is-active .lilyee-rhythm__eyebrow,
.lilyee-rhythm__item.is-active .lilyee-rhythm__title,
.lilyee-rhythm__item.is-active .lilyee-rhythm__text,
.lilyee-rhythm__item.is-active .lilyee-rhythm__chip,
.lilyee-rhythm__item.is-active .lilyee-rhythm__shop {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (max-width: 1023px) {
    .lilyee-rhythm__item {
        padding-right: clamp(1.5rem, 5vw, 3rem);
    }

    .lilyee-rhythm__progress {
        right: 1rem;
        gap: 0.45rem;
    }

    .lilyee-rhythm__indicator {
        grid-template-columns: 1.5rem;
        gap: 0;
    }

    .lilyee-rhythm__indicator-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .lilyee-rhythm__indicator::before {
        width: 1.05rem;
    }

    .lilyee-rhythm__indicator.is-active::before {
        transform: scaleX(1.55);
    }
}

@media (max-width: 767px) {
    .lilyee-rhythm__item {
        min-height: 100svh;
        padding: 5rem 1.25rem 7rem;
    }

    .lilyee-rhythm__overlay {
        background:
            linear-gradient(90deg, rgba(15, 12, 12, 0.74) 0%, rgba(15, 12, 12, 0.32) 70%),
            linear-gradient(0deg, rgba(15, 12, 12, 0.84) 0%, rgba(15, 12, 12, 0.42) 54%, rgba(15, 12, 12, 0.2) 100%);
    }

    .lilyee-rhythm__content {
        width: calc(100% - 1.5rem);
        margin-bottom: 0;
    }

    .lilyee-rhythm__title {
        font-size: clamp(2.75rem, 14vw, 4rem);
    }

    .lilyee-rhythm__text {
        max-width: 30rem;
        font-size: 1rem;
        line-height: 1.65;
    }

    .lilyee-rhythm__chips {
        gap: 0.5rem;
    }

    .lilyee-rhythm__chip {
        min-height: 2rem;
        padding: 0 0.72rem;
        font-size: 0.65rem;
        letter-spacing: 0.07em;
    }

    .lilyee-rhythm__shop {
        right: auto;
        left: 1.25rem;
        bottom: 1.25rem;
        min-height: 2.9rem;
        padding: 0 1.1rem;
        font-size: 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lilyee-rhythm__image,
    .lilyee-rhythm__eyebrow,
    .lilyee-rhythm__title,
    .lilyee-rhythm__text,
    .lilyee-rhythm__chip,
    .lilyee-rhythm__shop,
    .lilyee-rhythm__progress,
    .lilyee-rhythm__indicator,
    .lilyee-rhythm__indicator::before {
        transition: none;
    }
}
