/**
 * Yakup Stucadoors — hero. Beeld edge-to-edge met een wit verloop links,
 * zodat de donkere tekst en het zwarte logo goed leesbaar blijven.
 */

.yk-hero {
    --yk-overlap: 96px;
    position: relative;
    display: flex;
    align-items: center;
    min-height: max(88svh, 620px);
    padding-top: 150px;
    padding-bottom: calc(var(--yk-overlap) + 110px);
    overflow: hidden;
    isolation: isolate;
    background: var(--dc-bg-alt);
}

@media (min-width: 768px) {
    .yk-hero {
        --yk-overlap: 150px;
    }
}

@media (min-width: 1024px) {
    .yk-hero {
        --yk-overlap: 240px;
        min-height: max(92svh, 760px);
    }
}

.yk-hero__media {
    position: absolute;
    inset: -40px 0;
    z-index: -2;
    animation: yk-hero-settle 1.2s var(--dc-ease-default) both;
}

.yk-hero .yk-hero__img {
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: 70% 50%;
    will-change: transform;
}

@keyframes yk-hero-settle {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

.yk-hero__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 34%, rgba(255, 255, 255, 0.45) 58%, rgba(255, 255, 255, 0) 78%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 26%);
}

.yk-hero__inner {
    position: relative;
}

.yk-hero__content {
    display: grid;
    gap: 22px;
    max-width: 640px;
}

/* Staande projectvideo rechts, in een witte lijst die bij 9:16 past. */

.yk-hero__visual {
    display: none;
    margin: 0;
}

@media (min-width: 1024px) {
    .yk-hero__inner {
        display: grid;
        grid-template-columns: minmax(0, 640px) auto;
        align-items: center;
        justify-content: space-between;
        gap: clamp(32px, 5vw, 80px);
    }

    .yk-hero__visual {
        display: block;
        animation: yk-fade-up 0.9s var(--dc-ease-default) 0.5s both;
    }
}

.yk-hero__frame {
    position: relative;
    height: clamp(420px, 62svh, 580px);
    aspect-ratio: 9 / 16;
    padding: 8px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 30px 70px rgba(24, 29, 35, 0.24), 0 4px 12px rgba(24, 29, 35, 0.1);
    transform: rotate(1.5deg);
}

.yk-hero__video {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    object-fit: cover;
    background: var(--dc-bg-alt);
}

.yk-hero__sound {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dc-title);
    box-shadow: 0 4px 14px rgba(24, 29, 35, 0.18);
    cursor: pointer;
    transition: transform var(--dc-duration-normal) ease-out;
}

.yk-hero__sound[hidden] {
    display: none;
}

.yk-hero__sound .yk-hero__sound-on,
.yk-hero__sound[aria-pressed="true"] .yk-hero__sound-off {
    display: none;
}

.yk-hero__sound[aria-pressed="true"] .yk-hero__sound-on {
    display: block;
}

@media (hover: hover) {
    .yk-hero__sound:hover {
        transform: scale(1.06);
    }
}

.yk-hero__sound:focus-visible {
    outline: 2px solid var(--dc-primary-dark);
    outline-offset: 3px;
}

.yk-hero__title {
    display: grid;
    font-size: var(--dc-text-5xl);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.yk-hero__line {
    display: block;
    clip-path: inset(0 -0.2em 100% -0.2em);
    animation: yk-line-clip 0.9s var(--dc-ease-default) both;
    animation-delay: calc(0.15s + var(--line, 0) * 60ms);
}

.yk-hero__line > span {
    display: block;
    animation: yk-line-rise 0.9s var(--dc-ease-default) both;
    animation-delay: calc(0.15s + var(--line, 0) * 60ms);
}

@keyframes yk-line-clip {
    from { clip-path: inset(0 -0.2em 100% -0.2em); }
    to { clip-path: inset(-0.2em -0.2em -0.2em -0.2em); }
}

@keyframes yk-line-rise {
    from { transform: translateY(70%); }
    to { transform: none; }
}

.yk-hero__intro {
    max-width: 52ch;
    font-size: var(--dc-text-lg);
    color: var(--dc-title) !important;
    opacity: 0.85;
    animation: yk-fade-up 0.8s var(--dc-ease-default) 0.4s both;
}

.yk-hero__areas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-size: 15px;
    color: var(--dc-title);
    animation: yk-fade-up 0.8s var(--dc-ease-default) 0.5s both;
}

.yk-hero__areas .yk-icon {
    color: var(--dc-primary-dark);
}

.yk-hero__areas-label {
    font-weight: 600;
}

.yk-hero__area {
    padding: 4px 12px;
    border-radius: var(--dc-radius-full);
    background: rgba(var(--dc-primary-rgb), 0.22);
    font-weight: 500;
}

.yk-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
    animation: yk-fade-up 0.8s var(--dc-ease-default) 0.6s both;
}

.yk-hero__call {
    box-shadow: var(--dc-shadow-md);
}

@keyframes yk-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

/* ----------------------------------------------------- scroll-indicator */

.yk-scroll {
    position: absolute;
    left: 50%;
    bottom: calc(var(--yk-overlap) + 26px);
    display: grid;
    place-items: center;
    width: 48px;
    height: 64px;
    margin-left: -24px;
    border-radius: var(--dc-radius-full);
    transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.yk-scroll.is-hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

/* Verfroller die een strook stuc/verf op de "muur" zet en daarna opnieuw begint */

.yk-scroll__svg {
    width: 28px;
    height: 56px;
    overflow: visible;
}

.yk-scroll__svg path,
.yk-scroll__svg rect {
    fill: none;
    stroke: var(--dc-primary-dark, #8c7f69);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.yk-scroll .yk-scroll__wall,
.yk-scroll .yk-scroll__coat {
    stroke: var(--dc-primary, #b2a590);
    stroke-width: 14;
    stroke-linecap: butt;
}

.yk-scroll .yk-scroll__wall {
    opacity: 0.18;
}

.yk-scroll .yk-scroll__coat {
    stroke-dasharray: 1 1;
    stroke-dashoffset: 1;
    animation: yk-scroll-coat 2.6s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

.yk-scroll__roller {
    animation: yk-scroll-roll 2.6s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

.yk-scroll .yk-scroll__sleeve {
    fill: var(--dc-primary, #b2a590);
}

.yk-scroll .yk-scroll__handle {
    stroke-width: 3.5;
}

.yk-scroll__head {
    animation: yk-scroll-head 2.6s ease-in-out infinite;
}

/* 0–10% verschijnen, 10–70% rollen, 70–85% vasthouden, 85–100% vervagen */
@keyframes yk-scroll-roll {
    0% { transform: translateY(0); opacity: 0; }
    10% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(28px); opacity: 1; }
    85% { transform: translateY(28px); opacity: 1; }
    100% { transform: translateY(28px); opacity: 0; }
}

@keyframes yk-scroll-coat {
    0%, 10% { stroke-dashoffset: 1; opacity: 0.9; }
    70%, 85% { stroke-dashoffset: 0; opacity: 0.9; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes yk-scroll-head {
    0%, 60%, 100% { transform: translateY(0); }
    75% { transform: translateY(4px); }
}

.yk-scroll:hover .yk-scroll__roller,
.yk-scroll:hover .yk-scroll__coat,
.yk-scroll:focus-visible .yk-scroll__roller,
.yk-scroll:focus-visible .yk-scroll__coat {
    animation-duration: 1.6s;
}

@media (max-width: 767px) {
    .yk-hero {
        align-items: flex-start;
        min-height: max(88svh, 600px);
        padding-top: 136px;
        padding-bottom: calc(var(--yk-overlap) + 96px);
    }

    .yk-hero__veil {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 55%, rgba(255, 255, 255, 0.55) 100%);
    }

    .yk-hero__content {
        gap: 16px;
    }

    .yk-hero__actions {
        flex-direction: column;
    }

    .yk-hero__actions .yk-btn {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .yk-hero__intro {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yk-hero__line,
    .yk-hero__line > span,
    .yk-hero__media,
    .yk-hero__visual {
        animation: none;
        clip-path: none;
        transform: none;
    }

    .yk-scroll__roller,
    .yk-scroll .yk-scroll__coat,
    .yk-scroll__head {
        animation: none;
    }

    .yk-scroll__roller {
        transform: translateY(28px);
    }

    .yk-scroll .yk-scroll__coat {
        stroke-dashoffset: 0;
        opacity: 0.9;
    }
}
