/* Smart Lighting only. Every selector is scoped to this component. */
.ligled-smart-sequence {
    --ligled-smart-phase: 0;
    position: relative;
    width: 100%;
    min-height: clamp(620px, 78vw, 900px);
    overflow: hidden;
    background: #07162a;
    color: #fff;
    isolation: isolate;
}

.ligled-smart-sequence .ligled-smart-sequence__scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ligled-smart-sequence .ligled-smart-sequence__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.015);
}

.ligled-smart-sequence .ligled-smart-sequence__image--dusk {
    z-index: 0;
}

.ligled-smart-sequence .ligled-smart-sequence__image--night {
    z-index: 1;
    opacity: var(--ligled-smart-phase);
    transition: opacity 120ms linear;
}

.ligled-smart-sequence .ligled-smart-sequence__shade {
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(2, 12, 27, 0.86) 0%, rgba(2, 12, 27, 0.61) 31%, rgba(2, 12, 27, 0.12) 61%, rgba(2, 12, 27, 0.02) 100%),
        linear-gradient(180deg, rgba(2, 12, 27, 0.12), transparent 55%, rgba(2, 12, 27, 0.28));
}

.ligled-smart-sequence .ligled-smart-sequence__copy {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: max(6vw, calc((100vw - 1180px) / 2));
    width: min(520px, 42vw);
    transform: translateY(-50%);
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.62);
}

.ligled-smart-sequence .ligled-smart-sequence__eyebrow {
    margin: 0 0 16px;
    color: #8bd8ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ligled-smart-sequence .ligled-smart-sequence__copy h2 {
    max-width: 11ch;
    margin: 0;
    color: #fff;
    font-size: clamp(46px, 5.2vw, 78px);
    font-weight: 700;
    line-height: 1.01;
    letter-spacing: -0.045em;
}

.ligled-smart-sequence .ligled-smart-sequence__copy > p:last-child {
    max-width: 455px;
    margin: 24px 0 0;
    color: rgba(239, 247, 253, 0.83);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.65;
}

.ligled-smart-sequence .ligled-smart-sequence__clock {
    position: absolute;
    z-index: 3;
    top: clamp(92px, 11vh, 126px);
    right: max(6vw, calc((100vw - 1180px) / 2));
    display: grid;
    min-width: 176px;
    padding: 18px 20px 17px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: rgba(5, 18, 35, 0.42);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ligled-smart-sequence .ligled-smart-sequence__clock-label {
    color: rgba(230, 243, 252, 0.68);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ligled-smart-sequence .ligled-smart-sequence__clock strong {
    margin: 2px 0 5px;
    color: #fff;
    font-size: 31px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.ligled-smart-sequence .ligled-smart-sequence__clock-status {
    color: #9bdcff;
    font-size: 11px;
    font-weight: 600;
}

.ligled-smart-sequence .ligled-smart-sequence__meter {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
}

.ligled-smart-sequence .ligled-smart-sequence__meter span {
    display: block;
    width: calc(var(--ligled-smart-phase) * 100%);
    height: 100%;
    background: linear-gradient(90deg, #4fa9d7, #ffe5a1);
    box-shadow: 0 0 12px rgba(255, 223, 139, 0.45);
}

@media (max-width: 820px) {
    .ligled-smart-sequence {
        min-height: 680px;
    }

    .ligled-smart-sequence .ligled-smart-sequence__image {
        object-position: 58% center;
    }

    .ligled-smart-sequence .ligled-smart-sequence__shade {
        background: linear-gradient(180deg, rgba(2, 12, 27, 0.78) 0%, rgba(2, 12, 27, 0.46) 49%, rgba(2, 12, 27, 0.2) 100%);
    }

    .ligled-smart-sequence .ligled-smart-sequence__copy {
        top: 92px;
        right: 24px;
        left: 24px;
        width: auto;
        transform: none;
    }

    .ligled-smart-sequence .ligled-smart-sequence__copy h2 {
        max-width: 12ch;
        font-size: clamp(40px, 11vw, 58px);
    }

    .ligled-smart-sequence .ligled-smart-sequence__copy > p:last-child {
        max-width: 36ch;
        margin-top: 17px;
    }

    .ligled-smart-sequence .ligled-smart-sequence__clock {
        top: auto;
        right: 24px;
        bottom: 30px;
        min-width: 155px;
        padding: 14px 16px;
    }

    .ligled-smart-sequence .ligled-smart-sequence__clock strong {
        font-size: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ligled-smart-sequence {
        --ligled-smart-phase: 1 !important;
    }

    .ligled-smart-sequence .ligled-smart-sequence__image--night {
        transition: none;
    }
}
