:root {
    --background: #090909;
    --foreground: #f3f3f3;
    --silver: #c4c6c8;
    --muted: #aaa;
    --header-height: 94px;
    --progress-height: 20px;

    /* Doorlopend patroon zonder naden tussen afbeeldingen */
    --stripes: repeating-linear-gradient(
        135deg,
        #c4c6c8 0px,
        #c4c6c8 12px,
        #191919 12px,
        #191919 24px
    );
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: "Geist", sans-serif;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
main:focus-visible {
    outline: 2px solid white;
    outline-offset: 5px;
}

/* Navigatie */

.site-header {
    position: relative;
    z-index: 10;
    background: var(--background);
}

.wallpaper-strip {
    height: 14px;
    background: var(--stripes);
}

.navigation {
    min-height: 80px;
    padding: 18px 3vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid #333;
}

.party-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--foreground);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.8px;
    white-space: nowrap;
    cursor: pointer;
}

.party-button:hover {
    color: var(--silver);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.nav-links a {
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: white;
}

/* Horizontale pagina */

.journey {
    display: flex;
    height: calc(
        100dvh - var(--header-height) - var(--progress-height)
    );
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.journey::-webkit-scrollbar {
    display: none;
}

.panel {
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
    border-right: 1px solid #303030;
}

/* Homepage */

.intro {
    width: max(94vw, 900px);
    padding: clamp(24px, 4vh, 48px) 4vw;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 3vw;
}

.intro-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.intro-label {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.intro h1 {
    margin: 0 0 28px;
    font-size: clamp(60px, 7.3vw, 140px);
    line-height: 0.94;
    letter-spacing: -0.065em;
    font-weight: 900;
}

.silver-text {
    display: block;
    color: var(--silver);
    background: linear-gradient(
        120deg,
        #85888c,
        #f5f5f5 25%,
        #b5b8bc 48%,
        white 65%,
        #92969b
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-description {
    max-width: 370px;
    margin: 0;
    color: #ccc;
    font-size: 18px;
    line-height: 1.6;
}

.intro-photo {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}

.intro-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Tekstblokken */

.story {
    width: clamp(660px, 64vw, 980px);
    padding: clamp(24px, 4vh, 48px) clamp(32px, 4vw, 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-inner {
    width: 100%;
}

.story h2 {
    margin: 0 0 24px;
    font-size: clamp(32px, 3vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.story p {
    margin: 0;
    color: #ccc;
    font-size: 17px;
    line-height: 1.65;
}

.story .signature {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.text-link {
    display: inline-block;
    margin-top: 24px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--silver);
    font-size: 16px;
    text-decoration: none;
}

.text-link:hover {
    color: var(--silver);
}

/* Foto's */

.photo-panel {
    width: 80vw;
    margin: 0;
    overflow: hidden;
    background: #151515;
}

.photo-panel img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Sfeerpagina */

.gallery-intro {
    width: clamp(420px, 44vw, 700px);
    padding: 4vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

.gallery-intro::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -60px;
    bottom: -65px;
    background: url("./img/discobal.png") center / contain no-repeat;
    opacity: 0.22;
    z-index: -1;
    transform: rotate(-20deg);
}

.gallery-intro h1 {
    margin: 0;
    font-size: clamp(64px, 7vw, 125px);
    line-height: 0.94;
    letter-spacing: -0.065em;
}

.gallery-intro p {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.gallery .photo-panel {
    border-right: 10px solid var(--background);
}

/* Afsluiting */

.closing {
    width: 80vw;
    padding: 6vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    isolation: isolate;
    background: #111;
}

.closing::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: repeating-linear-gradient(
        135deg,
        #c4c6c8 0px,
        #c4c6c8 90px,
        #191919 90px,
        #191919 180px
    );
    opacity: 0.08;
    pointer-events: none;
}

.closing::after {
    content: "";
    position: absolute;
    right: -7%;
    bottom: -15%;
    width: min(48vw, 650px);
    aspect-ratio: 1;
    z-index: -1;
    background: url("./img/discobal.png") center / contain no-repeat;
    opacity: 0.5;
    transform: rotate(-18deg);
    pointer-events: none;
}

.closing h2 {
    margin: 0;
    font-size: clamp(60px, 9vw, 150px);
    line-height: 0.95;
    letter-spacing: -0.065em;
    text-shadow: 0 2px 30px black;
}

/* Klikbare en versleepbare voortgang */

.scrollbar {
    --progress: 0%;
    position: relative;
    height: var(--progress-height);
    background: #252525;
}

.scrollbar-fill {
    position: absolute;
    inset: 0;
    background: var(--stripes);
    clip-path: inset(0 calc(100% - var(--progress)) 0 0);
    pointer-events: none;
}

.scrollbar input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    touch-action: none;
}

.scrollbar:focus-within {
    outline: 2px solid white;
    outline-offset: -2px;
}

/* Tekstanimaties */

.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translate3d(
        var(--enter-x, 0px),
        var(--enter-y, 0px),
        0
    );
    transition:
        opacity 650ms ease,
        transform 850ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0ms;
}

.reveal-ready.is-visible [data-reveal] {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: var(--delay, 0ms);
}

/* Discoballen */

.party-layer {
    position: fixed;
    inset: 0;
    z-index: 100;
    overflow: hidden;
    pointer-events: none;
}

.party-ball {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    object-fit: contain;
    user-select: none;
    filter: drop-shadow(0 7px 10px rgb(0 0 0 / 40%));
    will-change: transform, opacity;
}

/* Verticale versie voor mobiel en sterke zoom */

body.vertical {
    padding-bottom: var(--progress-height);
}

body.vertical .journey {
    display: block;
    height: auto;
    overflow: visible;
}

body.vertical .panel {
    width: 100% !important;
    border-right: 0;
    border-bottom: 1px solid #303030;
}

body.vertical .intro {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 48px 24px 24px;
}

body.vertical .intro h1 {
    font-size: clamp(46px, 12vw, 110px);
}

body.vertical .intro-photo {
    height: auto;
}

body.vertical .intro-photo img,
body.vertical .photo-panel img {
    height: auto;
    width: 100%;
}

body.vertical .story {
    padding: 48px 24px;
}

body.vertical .story h2 {
    font-size: clamp(30px, 7vw, 48px);
}

body.vertical .photo-panel {
    height: auto;
}

body.vertical .gallery .photo-panel {
    border-bottom: 10px solid var(--background);
}

body.vertical .gallery-intro {
    min-height: 300px;
    padding: 48px 24px;
}

body.vertical .gallery-intro h1 {
    font-size: clamp(60px, 15vw, 110px);
}

body.vertical .closing {
    min-height: 65svh;
    padding: 48px 24px;
}

body.vertical .closing h2 {
    font-size: clamp(46px, 12vw, 110px);
}

body.vertical .closing::after {
    width: 75vw;
    right: -18%;
    bottom: -12%;
    opacity: 0.35;
}

body.vertical .scrollbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 20;
}

@media (max-width: 800px) {
    .navigation {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        padding: 18px 24px;
    }

    .nav-links {
        gap: 12px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }

    .party-layer {
        display: none;
    }
}