/* =========================================================
   VESTLYS — HERO
   Stable real-bar waveform version
   ========================================================= */

html,
body {
    margin: 0;
    padding: 0;
    background: #050607;
}

body { overflow-x: hidden; }

.site,
.site-main { width: 100%; }


/* HERO */

.vestlys-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 700px;
    overflow: hidden;
    background: #050607;
}

.vestlys-hero__background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
}

.vestlys-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg,
            rgba(2,5,8,.24) 0%,
            rgba(2,5,8,.10) 42%,
            rgba(2,5,8,.02) 72%,
            rgba(2,5,8,.05) 100%),
        linear-gradient(180deg,
            rgba(2,5,8,.12) 0%,
            rgba(2,5,8,0) 55%,
            rgba(2,5,8,.20) 100%);
    pointer-events: none;
}

.vestlys-hero__content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vestlys-hero__logo {
    display: block;
    width: clamp(280px, 22.5vw, 700px);
    height: auto;
    transform: translateY(-14vh);
}


/* STREAMING PROFILES */

.vestlys-streaming {
    position: absolute;
    left: 50%;
    top: 73%;
    z-index: 6;
    width: min(88vw, 1280px);
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
}

.vestlys-streaming__label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(84vw, 1380px);
    margin-bottom: 18px;
    color: rgba(216, 195, 165, 0.82);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.30em;
    white-space: nowrap;
}

.vestlys-streaming__label::before,
.vestlys-streaming__label::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    opacity: 0.72;
    background: linear-gradient(
        90deg,
        rgba(216, 195, 165, 0.08) 0%,
        rgba(216, 195, 165, 0.48) 35%,
        rgba(216, 195, 165, 0.58) 100%
    );
}
.vestlys-streaming__label::before { margin-right: 28px; }
.vestlys-streaming__label::after {
    margin-left: 28px;
    transform: scaleX(-1);
}


.vestlys-streaming__platforms {
    width: 100%;
    --vestlys-platform-gap: clamp(48px, 5.2vw, 110px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    gap: var(--vestlys-platform-gap);
}

.vestlys-streaming__platforms > .vestlys-platform {
    /* Keep the approved five-icon spacing when fewer accounts are present.
       This sizes existing links only; no empty items or columns are added. */
    --vestlys-reference-columns: max(5, var(--vestlys-layout-columns, var(--vestlys-columns)));
    flex: 0 0 calc((100% - (var(--vestlys-reference-columns) - 1) * var(--vestlys-platform-gap)) / var(--vestlys-reference-columns));
}

.vestlys-streaming__platforms--many {
    --vestlys-platform-gap: clamp(14px, 2vw, 40px);
}

/* Registry extensions beyond ten accounts stay within the existing hero area. */
.vestlys-streaming__platforms--overflow {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 28px;
    margin-bottom: -28px;
    scrollbar-width: thin;
}

.vestlys-platform {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(244,239,230,.86);
    text-decoration: none;
    transition: color 220ms ease, transform 220ms ease, opacity 220ms ease;
}

.vestlys-platform__icon {
    width: clamp(34px, 2.35vw, 48px);
    height: clamp(34px, 2.35vw, 48px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vestlys-platform__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: invert(94%) sepia(8%) saturate(332%) hue-rotate(337deg) brightness(103%) contrast(91%);
    opacity: .92;
    transition: opacity 220ms ease, filter 220ms ease;
}

.vestlys-platform:hover .vestlys-platform__icon img,
.vestlys-platform:focus-visible .vestlys-platform__icon img {
    opacity: 1;
}



.vestlys-platform:hover,
.vestlys-platform:focus-visible {
    color: #d8c3a5;
    transform: translateY(-2px);
}


@media (min-width: 2200px) {
    .vestlys-streaming__label { margin-bottom: 20px; font-size: 11px; }
    .vestlys-platform__icon { width: 50px; height: 50px; }
}



/* PLATFORM NAME ON HOVER */
.vestlys-platform { position: relative; }

.vestlys-platform::after {
    content: attr(data-platform);
    position: absolute;
    top: calc(100% + 13px);
    left: 50%;
    z-index: 20;
    transform: translate(-50%, 5px);
    color: rgba(216, 195, 165, 0);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.20em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, color 220ms ease, transform 220ms ease;
}
.vestlys-platform:hover::after,
.vestlys-platform:focus-visible::after {
    color: rgba(216, 195, 165, 0.92);
    opacity: 1;
    transform: translate(-50%, 0);
}
@media (hover: none) {
    .vestlys-platform::after { display: none; }
}

/* STUDIO / SEQUENCER */

.vestlys-sequencer {
    position: absolute;
    left: 5vw;
    right: 5vw;
    bottom: 4.5vh;
    z-index: 4;
    height: 128px;
    opacity: .52;
    pointer-events: none;
}

.vestlys-sequencer__timeline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 14px;
    border-top: 1px solid rgba(216,195,165,.12);
    background:
        repeating-linear-gradient(90deg,
            rgba(216,195,165,.48) 0,
            rgba(216,195,165,.48) 1px,
            transparent 1px,
            transparent 3.125%);
}

.vestlys-sequencer__timeline::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg,
            rgba(231,216,194,.62) 0,
            rgba(231,216,194,.62) 1px,
            transparent 1px,
            transparent 12.5%);
}

.vestlys-sequencer__track {
    position: absolute;
    left: 0;
    right: 0;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,.035);
    border-bottom: 1px solid rgba(255,255,255,.02);
    background: transparent;
}

.vestlys-sequencer__track::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    background:
        repeating-linear-gradient(90deg,
            transparent 0,
            transparent calc(6.25% - 1px),
            rgba(255,255,255,.032) calc(6.25% - 1px),
            rgba(255,255,255,.032) 6.25%);
    pointer-events: none;
}

.vestlys-sequencer__track--main {
    top: 21px;
    height: 55px;
}

.vestlys-sequencer__track--bass {
    top: 82px;
    height: 31px;
    opacity: .82;
}


/* REAL BARS — every bar is a persistent DOM element */

.vestlys-bars {
    position: absolute;
    inset: 5px 1.2%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1px, .12vw, 5px);
    z-index: 2;
}

.vestlys-bars i {
    display: block;
    flex: 1 1 0;
    min-width: 1px;
    max-width: 3px;
    height: var(--h);
    transform-origin: center center;
    border-radius: 1px;
    background:
        linear-gradient(180deg,
            rgba(239,225,204,.82),
            rgba(216,195,165,.42));
    animation:
        vestlys-bar-pulse 3.8s ease-in-out var(--d) infinite;
    will-change: transform, opacity;
}

.vestlys-bars--main i:nth-child(3n) {
    animation-duration: 3.2s;
}

.vestlys-bars--main i:nth-child(5n) {
    animation-duration: 4.5s;
}

.vestlys-bars--main i:nth-child(7n) {
    animation-duration: 5.1s;
}

.vestlys-bars--bass {
    inset: 5px 2%;
    gap: clamp(2px, .24vw, 9px);
}

.vestlys-bars--bass i {
    max-width: 4px;
    border-radius: 2px;
    opacity: .72;
    background:
        linear-gradient(180deg,
            rgba(231,216,194,.58),
            rgba(216,195,165,.20));
    animation-name: vestlys-bass-pulse;
    animation-duration: 5.8s;
}

@keyframes vestlys-bar-pulse {
    0%, 100% {
        transform: scaleY(.82);
        opacity: .72;
    }
    38% {
        transform: scaleY(1.08);
        opacity: .96;
    }
    68% {
        transform: scaleY(.93);
        opacity: .82;
    }
}

@keyframes vestlys-bass-pulse {
    0%, 100% {
        transform: scaleY(.78);
        opacity: .52;
    }
    50% {
        transform: scaleY(1.12);
        opacity: .78;
    }
}


/* PLAYHEAD */

.vestlys-sequencer__playhead {
    position: absolute;
    left: 0;
    top: -5px;
    width: 1px;
    height: 122px;
    z-index: 7;
    background:
        linear-gradient(180deg,
            rgba(239,225,204,.92) 0%,
            rgba(216,195,165,.62) 48%,
            rgba(216,195,165,.12) 100%);
    animation: vestlys-playhead-move 22s linear infinite;
}

.vestlys-sequencer__playhead::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 6px;
    height: 6px;
    transform: translate(-50%, -50%) rotate(45deg);
    background: rgba(239,225,204,.94);
}

@keyframes vestlys-playhead-move {
    0% {
        left: 1%;
        opacity: 0;
    }
    3% {
        opacity: 1;
    }
    97% {
        opacity: 1;
    }
    100% {
        left: 99%;
        opacity: 0;
    }
}


/* No painted edge fades: preserve the photograph between the marks. */
.vestlys-sequencer::before,
.vestlys-sequencer::after { content: none; }


/* MOBILE */

@media (max-width: 768px) {
    .vestlys-hero {
        min-height: 600px;
    }

    .vestlys-hero__background {
        object-position: 67% center;
    }

    .vestlys-hero__logo {
        width: min(58vw, 340px);
        transform: translateY(-3vh);
    }

    .vestlys-streaming {
        top: 69%;
        width: 88vw;
    }

    .vestlys-streaming__label {
        width: min(72vw, 320px);
        margin-bottom: 14px;
        font-size: 9px;
    }

    .vestlys-streaming__label::before { margin-right: 14px; }
    .vestlys-streaming__label::after { margin-left: 14px; }

    .vestlys-streaming__platforms {
        --vestlys-layout-columns: var(--vestlys-mobile-columns);
        --vestlys-platform-gap: 14px;
        row-gap: 28px;
    }

    .vestlys-platform__icon {
        width: 30px;
        height: 30px;
    }

    .vestlys-sequencer {
        left: 6vw;
        right: 6vw;
        bottom: 5vh;
        height: 94px;
        opacity: .34;
    }

    .vestlys-sequencer__track--main {
        top: 18px;
        height: 40px;
    }

    .vestlys-sequencer__track--bass {
        top: 64px;
        height: 22px;
    }

    .vestlys-bars {
        inset: 4px 1.5%;
        gap: 1px;
    }

    .vestlys-bars i {
        max-width: 2px;
    }

    .vestlys-bars--bass i {
        max-width: 3px;
    }

    .vestlys-sequencer__playhead {
        height: 91px;
    }
}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .vestlys-bars i {
        animation: none;
        transform: none;
    }

    .vestlys-sequencer__playhead {
        left: 63%;
        animation: none;
        opacity: 1;
    }
}


