

#kuhnya-intro {
    
    display: flex;
    flex-direction: column;
    align-items: start;
    height: clamp(4rem, 10vh, 20vh);
    padding-top: var(--space-xl);

    & h1{
        margin-block: 0.5em;
        width: 100%;
        height: 100%;
        line-height: 1;
        letter-spacing: -0.05em;
        font-size: var(--fs-display);
    }

    .kuhnya-intro__meta {
        display: flex;
        flex-direction: row;
        gap: var(--fs-base);
    }
}


.kuhnya-hero {
    margin-top: var(--space-sm);
}

.kunya-sticky-scope {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    position: relative;
    width: 100%;
    isolation: isolate;
}

.kunya-sticky-scope > section:not(.section-full) {
    width: var(--the-width);
    margin-left: auto;
    margin-right: auto;
}

.kunya-sticky-overview {
    position: sticky;
    top: calc(100vh - 30vh);
    z-index: 6;
    height: 30vh;
    display: grid;
    align-items: end;
    pointer-events: none;
}

.kunya-sticky-overview__inner {
    width: var(--the-width);
    padding-bottom: clamp(1rem, 2.5vw, 2.5rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
    gap: var(--space-base);
}

.kunya-sticky-overview__content {
    grid-column: 9 / span 4;
    align-self: end;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: clamp(1rem, 2vw, 2rem);
    background: var(--the-white);
    pointer-events: auto;
    border-radius: var(--space-xs);
    transition: color 0.3s var(--out);
}

.kunya-sticky-overview__eyebrow {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: var(--fs-xs);
}

.kunya-sticky-overview__title {
    margin: 0;
    font-size: var(--fs-lg);
}

.kunya-sticky-overview__intro {
    margin: 0;
    color: var(--jet-black);
    font-size: var(--fs-base);
}

.kunya-sticky-overview__facts {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.kunya-sticky-overview__fact-item {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    list-style: none;
}

.kunya-sticky-overview__fact-item--price {
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.kunya-sticky-overview__fact-label {
    color: var(--text-muted);
    text-transform: lowercase;
}

.kunya-sticky-overview__fact-value {
    color: var(--text-muted);
}

.kunya-sticky-overview__cta {
    flex-shrink: 0;
    font-size: var(--fs-sm);
    line-height: 1;
    text-transform: lowercase;
}

#kunya-hero {
    width: 100%;
    min-height: 100vh;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    isolation: isolate;
    background: var(--silver);
    overflow: hidden;
    --hero-arrow-offset: clamp(0.75rem, calc((100vw - var(--the-width)) / 2), 4rem);
}

.kunya-hero__shell {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    margin: 0;
}

.kunya-hero__media {
    position: relative;
    z-index: 1;
    height: 120vh;
    overflow: hidden;
    touch-action: pan-y;
}

.kunya-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.kunya-hero__container {
    display: flex;
    height: 100%;
}

.kunya-hero__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.kunya-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translate3d(0, 0, 0) scale(1.02);
    transform-origin: center;
    will-change: transform;
    border-radius: 0;
}

.kunya-hero__photo {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    cursor: zoom-in;
}

.kunya-hero__photo:focus-visible {
    outline-offset: -6px;
}

.kunya-hero__arrow {
    position: absolute;
    inset-block: 0;
    z-index: 3;
    width: 5vw;
    min-width: var(--tap-target-size);
    display: flex;
    align-items: center;
    color: var(--jet-black);
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    transition: color 320ms var(--out), opacity 320ms var(--out);
}

.kunya-hero__arrow::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 360ms var(--out);
}

.kunya-hero__arrow span {
    position: relative;
    z-index: 1;
    transition: transform 360ms var(--out), opacity 360ms var(--out);
}

.kunya-hero__arrow:hover,
.kunya-hero__arrow:focus-visible {
    color: var(--jet-black);
}

.kunya-hero__arrow:hover::before,
.kunya-hero__arrow:focus-visible::before {
    opacity: 1;
}

.kunya-hero__arrow:disabled {
    opacity: 0;
    cursor: default;
    pointer-events: none;
}

.kunya-hero__arrow--prev {
    inset-inline-start: 0;
    justify-content: flex-start;
    padding-inline-start: clamp(0.5rem, 1.2vw, 1.25rem);
}

.kunya-hero__arrow--next {
    inset-inline-end: 0;
    justify-content: flex-end;
    padding-inline-end: clamp(0.5rem, 1.2vw, 1.25rem);
}

.kunya-hero__arrow--prev:hover,
.kunya-hero__arrow--prev:focus-visible {
    background: transparent;
}

.kunya-hero__arrow--next:hover,
.kunya-hero__arrow--next:focus-visible {
    background: transparent;
}

.kunya-hero__arrow--prev::before {
    background: linear-gradient(to right, var(--the-white), transparent 75%);
}

.kunya-hero__arrow--next::before {
    background: linear-gradient(to left, var(--the-white), transparent 75%);
}

.kunya-hero__arrow--prev:hover span,
.kunya-hero__arrow--prev:focus-visible span {
    transform: translateX(0.15rem);
}

.kunya-hero__arrow--next:hover span,
.kunya-hero__arrow--next:focus-visible span {
    transform: translateX(-0.15rem);
}

@media (max-width: 64rem) {
    .kunya-sticky-overview {
        top: calc(100vh - 34vh);
        height: 34vh;
    }

    .kunya-sticky-overview__inner {
        width: var(--the-width);
        padding-bottom: clamp(1rem, 4vw, 2rem);
    }

    .kunya-sticky-overview__content {
        grid-column: 4 / -1;
    }
}

.kuhnya-features-list {
    margin: 0;
    margin-block: var(--space-lg);
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: var(--grid-col-gap);

    .kuhnya-features-list__item {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);

        .kuhnya-features-list__image{
            aspect-ratio: 1 / 1;
            width: clamp(40px, 8vw, 80px);
            height: auto;
            border-radius: 0;
        }
    }
}

@media (max-width: 48rem) {
    main.kuhnya-page {
        --space-base: 1rem;
        --space-xxs: 0.25rem;
        --space-xs: 0.5rem;
        --space-sm: 0.75rem;
        --space-md: 1.5rem;
        --space-lg: 2rem;
        --space-xl: 3rem;
        --space-xxl: 4rem;
        --the-width: calc(100% - 2rem);
        gap: 0;
    }

    .kuhnya-page > * + * {
        margin-top: 4rem;
    }

    .kuhnya-page section {
        min-height: 0;
    }

    .kuhnya-page :is(h1, h2, h3) {
        text-wrap: balance;
        overflow-wrap: anywhere;
    }

    .kuhnya-page p {
        line-height: 1.45;
    }

    #kuhnya-intro {
        width: 100%;
        max-width: var(--the-width);
        margin-inline: auto;
        padding: 6.5rem 0 0;
        box-sizing: border-box;
        height: auto;

        h1 {
            margin: 0;
            font-size: clamp(2.75rem, 14vw, 4rem);
        }
    }

    .kuhnya-page .kunya-sticky-scope {
        margin-top: 1.5rem;
        gap: 3rem;
    }

    .kunya-sticky-overview {
        position: static;
        top: auto;
        height: auto;
        pointer-events: auto;
    }

    .kunya-sticky-overview__inner {
        width: var(--the-width);
        margin-inline: auto;
        padding-inline: 0;
        padding-bottom: 0;
    }

    .kunya-sticky-overview__content {
        padding: 0;
        grid-column: 1 / -1;
        backdrop-filter: none;
        gap: 0.75rem;
    }

    .kunya-sticky-overview__title {
        display: none;
    }

    .kunya-sticky-overview__fact-item--price {
        flex-wrap: wrap;
        gap: 0.25rem 1rem;
    }

    .kunya-sticky-overview__fact-value {
        overflow-wrap: anywhere;
    }

    #kunya-hero {
        min-height: 0;
    }

    .kunya-hero__shell {
        min-height: 0;
    }

    .kunya-hero__media {
        height: 70svh;
        max-height: 44rem;
    }

    .kuhnya-page #cta {
        min-height: 0;
        gap: 1rem;
    }

    .kuhnya-page #cta .cta-media,
    .kuhnya-page #cta .cta-media img {
        height: 65svh;
        min-height: 0;
    }

    .kuhnya-page #cta > .section-sticky {
        margin-inline: 0;
        padding: 1.25rem;
    }

    .kuhnya-page .fabric-info__layout {
        gap: 1.5rem;
    }

    .kuhnya-page .fabric-info__map-empty {
        min-height: 12rem;
    }

    .kuhnya-page .fabric-info__logo {
        width: min(60%, 12rem);
        aspect-ratio: 2 / 1;
    }

    .kuhnya-page #faq.section-wrapper {
        padding-inline: 1rem;
        box-sizing: border-box;
        gap: 1.5rem;
    }

    .kuhnya-page #faq.section-wrapper h2 {
        padding: 0;
        font-size: 2rem;
    }

    .kuhnya-page #faq.section-wrapper .faq-section-content {
        margin-top: 0;
        padding: 0;
    }

    .kuhnya-page #faq .faq-category-tab {
        font-size: 1rem;
        min-width: 0;
    }

    .kuhnya-page #faq .faq-question-trigger {
        box-sizing: border-box;
        padding: 1rem 0;
        font-size: 1rem;
        line-height: 1.4;
    }

    .kuhnya-page #faq .faq-question-icon {
        flex-basis: 24px;
        inline-size: 24px;
        block-size: 24px;
    }

    .kuhnya-features-list {
        flex-wrap: wrap;
        gap: var(--space-md);

        .kuhnya-features-list__item {
            width: 100%;
            display: grid;
            grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
            align-items: center;
            column-gap: var(--space-sm);
            row-gap: var(--space-xs);

            .kuhnya-features-list__image {
                grid-column: 1 / span 1;
                width: 100%;
                max-width: 100%;
            }

            .kuhnya-features-list__text {
                grid-column: 2 / span 3;
                margin: 0;
                text-wrap: balance;
            }
        }
    }
}

/* target cta and set z index higher then sticky overview */
#cta { position: relative; z-index: 100; }



#benefits, #about-the-brand {
    margin-block: var(--space-xl);

    @media (max-width: 48rem) {
        margin-block: 0;
    }
}


#details {
    margin-block: var(--space-xl);
}

#details .kuhnya-layout-grid {
    align-items: start;
    row-gap: var(--space-lg);
}

#details .kuhnya-layout-card {
    position: relative;
    padding: 0;
    margin: 0;
    min-height: clamp(20rem, 52vh, 36rem);
    overflow: hidden;
    border-radius: var(--image-radius);
    cursor: pointer;
    z-index: 1200;
}

#details .kuhnya-layout-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

#details .kuhnya-layout-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    
    --kuhnya-layout-parallax-y: 0px;
    --kuhnya-layout-parallax-scale: 0;
    --kuhnya-layout-hover-scale: 1;
    transform: translate3d(0, var(--kuhnya-layout-parallax-y), 0)
        scale(calc((1.02 + var(--kuhnya-layout-parallax-scale)) * var(--kuhnya-layout-hover-scale)));
    transform-origin: center;
    transition: transform 2s var(--out);
    will-change: transform;
}

#details .kuhnya-layout-card.is-expanded .kuhnya-layout-media[data-gallery-layout-open] {
    cursor: zoom-in;
}

#details .kuhnya-layout-media:focus-visible {
    outline-offset: -6px;
}

#details .kuhnya-layout-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

#details .kuhnya-layout-toggle {
    opacity: 1;
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    z-index: 2;
    width: 1.6rem;
    height: 1.6rem;
    display: grid;
    place-items: center;
    color: var(--super-white);
    background-color: transparent;
    font-size: var(--fs-base);
}

#details .kuhnya-layout-toggle span {
    display: inline-block;
    line-height: 1;
}

#details .kuhnya-layout-toggle:hover,
#details .kuhnya-layout-toggle:focus-visible {
    color: var(--the-white);
    background-color: var(--jet-black);
}

#details .kuhnya-layout-card:hover .kuhnya-layout-media,
#details .kuhnya-layout-card:focus-within .kuhnya-layout-media {
    --kuhnya-layout-hover-scale: 1.01;
}

#details .kuhnya-layout-card.is-expanded {
    margin-top: 0 !important;
    min-height: 90vh;
    z-index: 8;
}

#details .kuhnya-layout-card.is-expanded .kuhnya-layout-toggle span {
    visibility: hidden;
    position: relative;
}

#details .kuhnya-layout-card.is-expanded .kuhnya-layout-toggle span::after {
    content: "\2013";
    visibility: visible;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 48rem) {
    #details {
        margin-block: 0;
    }

    #details .kuhnya-layout-grid {
        row-gap: 1rem;
    }

    #details .kuhnya-layout-card,
    #details .kuhnya-layout-card.is-expanded {
        grid-column: 1 / -1;
        min-height: 0;
        margin-top: 0 !important;
        border-radius: 0;
        z-index: auto;
    }

    #details .kuhnya-layout-media {
        position: relative;
        height: auto;
        display: block;
        transform: none;
        transition: none;
        will-change: auto;
    }

    #details .kuhnya-layout-media img {
        height: auto;
    }

    #details .kuhnya-layout-toggle {
        display: none;
    }
}
