html, body {
    height: 100%;
    margin: 0;
    font-family: var(--font-ubuntu);
    font-weight: 100;
    overflow-x: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d9dedc;
    position: relative;
}



/* Container */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container .scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: var(--scroll-indicator-bottom, clamp(1.6rem, 4vh, 2.8rem));
    width: max-content;
    margin-top: 0;
    transform: translate(-50%, 8px) scale(var(--scroll-indicator-scale, 1));
}

.container .scroll-indicator.revealed {
    transform: translate(-50%, 0) scale(var(--scroll-indicator-scale, 1));
}

.hero-media {
    position: relative;
    display: inline-block;
    margin-top: 0;
}

/* Billedet */
.hero-base {
    max-width: 90vw;
    max-height: 77vh;
    margin-top: 0;
    object-fit: contain;
    display: block;
    transition: box-shadow 0.25s ease, filter 0.25s ease;
}

/* Toplogo */
.hero-brand {
    position: absolute;
    top: 60%;
    left: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #e6fd53;
    --logo-color: currentColor;
    pointer-events: none;
    z-index: 3;
}

.hero-logo {
    --hero-logo-h: clamp(150px, 25vw, 500px);
    height: var(--hero-logo-h);
    width: calc(var(--hero-logo-h) * 2.6);
}

.hero-logo .vd-logo {
    height: 100%;
    width: 100%;
    transform: translate(-20%, -60%);
    display: block;
}

.hero-words {
    position: absolute;
    top: 10%;
    left: 5%;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: clamp(5rem, 5vw, 5rem);
    line-height: 0.85;
    letter-spacing: -0.05em;
    color: #fff;
    opacity: 1;
    transition: opacity 360ms ease;
    pointer-events: none;
    z-index: 4;
}

.hero-words.is-fading {
    opacity: 0;
}

.hero-word {
    display: inline-block;
    margin-right: 0.24em;
    opacity: 0;
    transition: none;
}

.hero-word--accent {
    color: #fff;
}

.hero-word.is-visible {
    opacity: 1;
}

.hero-cta {
    position: absolute;
    right: 5%;
    bottom: 5%;
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: clamp(5rem, 5vw, 5rem);
    letter-spacing: -0.01em;
    color: #fa4e00;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 260ms ease, transform 260ms ease;
    pointer-events: none;
    z-index: 4;
}

.hero-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-cta.is-visible:hover,
.hero-cta.is-visible:focus-visible {
    animation: hero-shake 0.5s infinite;
}

@keyframes hero-shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

@media (max-width: 768px) {
    .hero-brand {
        top: 55%;
    }

    .hero-logo {
        --hero-logo-h: clamp(180px, 45vw, 340px);
    }

    .hero-words {
        top: 10%;
        left: 6%;
        font-size: clamp(1.2rem, 7vw, 2.4rem);
    }

    .hero-cta {
        right: 6%;
        bottom: 12%;
        font-size: clamp(1rem, 6vw, 1.8rem);
    }
}

@media (max-width: 600px) {
    .hero-base {
        max-width: 94vw;
        max-height: 70vh;
    }

    .hero-brand {
        top: 58%;
        width: min(70vw, 260px);
    }

    .hero-logo {
        width: 100%;
        height: auto;
        --hero-logo-h: clamp(160px, 40vw, 260px);
    }

    .hero-logo .vd-logo {
        width: 100%;
        height: 100%;
    }

    .hero-words {
        font-size: clamp(1rem, 8vw, 2rem);
        letter-spacing: -0.02em;
    }

    .hero-cta {
        bottom: 8%;
        font-size: clamp(0.9rem, 7vw, 1.4rem);
    }
}

@media (hover: none) {
    .hero-cta.is-visible:hover,
    .hero-cta.is-visible:focus-visible {
        animation: none;
    }
}


/* Overlay (tekst + knap) */
.hero-overlay {
    position: absolute;
    inset: 0;
    margin-right: 50%;
    margin-left: 15%;
    margin-top: 25%;
    margin-bottom: 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    pointer-events: none;
    z-index: 2;
}

/* HERO-TITEL – IDENTISK STIL SOM FORSIDEN */
.hero-title {
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 0.7;

    position: relative;
    isolation: isolate;
    display: inline-block;
    padding: 0.4em 0.6em;
    background: transparent;
    --hero-border-delay: 1s;
    --hero-border-duration: 1s;
    --hero-fill-duration: 2s;
    --hero-fade-duration: 1.2s;
    --hero-cta-delay: 400ms;
    font-size: var(--hero-font-size, clamp(1.6rem, 4vw, 3.4rem));
    color: #fff;
}

.hero-title::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(#fff 0 0) 0 0 / 0% 2px no-repeat,
        linear-gradient(#fff 0 0) 100% 0 / 2px 0% no-repeat,
        linear-gradient(#fff 0 0) 100% 100% / 0% 2px no-repeat,
        linear-gradient(#fff 0 0) 0 100% / 2px 0% no-repeat;
    animation:
        heroBorderDraw var(--hero-border-duration) linear forwards var(--hero-border-delay),
        heroBorderFade var(--hero-fill-duration) ease forwards calc(var(--hero-border-delay) + var(--hero-border-duration));
    z-index: 1;
    pointer-events: none;
}

.hero-title::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #fdfdfc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    opacity: 0;
    animation: heroBoxFill var(--hero-fill-duration) ease forwards calc(var(--hero-border-delay) + var(--hero-border-duration));
    z-index: 0;
    pointer-events: none;
}

/* Ord (krævet for animation) */
.hero-title span {
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 0.15em 0.25em;
    opacity: 0;
    background: #9e8603;
    color: #fff;
    transition: opacity 300ms ease, background 0.25s ease, color 0.25s ease;
}

.hero-title span.revealed {
    opacity: 1;
}

/* Aktivt ord */
.hero-title span.highlight {
    color: #1f3ff7;
}

/* Sluttilstand */
.hero-title span.fade-red {
    transition: color var(--hero-fade-duration) ease;
    color: #fff;
}

.hero-title span.keep-strike {
    color: #1f3ff7;
}

@keyframes heroBorderDraw {
    0% {
        background-size: 0% 2px, 2px 0%, 0% 2px, 2px 0%;
    }
    25% {
        background-size: 100% 2px, 2px 0%, 0% 2px, 2px 0%;
    }
    50% {
        background-size: 100% 2px, 2px 100%, 0% 2px, 2px 0%;
    }
    75% {
        background-size: 100% 2px, 2px 100%, 100% 2px, 2px 0%;
    }
    100% {
        background-size: 100% 2px, 2px 100%, 100% 2px, 2px 100%;
    }
}

@keyframes heroBorderFade {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes heroBoxFill {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-title::before {
        animation: none;
        opacity: 0;
        background-size: 0% 2px, 2px 0%, 0% 2px, 2px 0%;
    }

    .hero-title::after {
        animation: none;
        opacity: 1;
    }

    .hero-title span {
        opacity: 1;
    }

    .hero-cta {
        transition: none;
        transform: none;
    }

    .hero-words {
        transition: none;
    }

    .hero-cta.is-visible:hover,
    .hero-cta.is-visible:focus-visible {
        animation: none;
    }

    .scroll-arrow {
        animation: none;
    }
}
