/* =========================================================
   VIDEO INTRO
   Source: Homepage/Video Intro.html
========================================================= */
html.kirst-intro-active,
    body.kirst-intro-active {
        /* Keep the root scrolling tree stable for Safari sticky sections. */
        overscroll-behavior: none;
    }

    html.kirst-returning-home #kirst-intro {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .kirst-intro {
        position: fixed;
        inset: 0;
        z-index: 999999;
        width: 100%;
        height: 100vh;
        height: 100svh;
        overflow: hidden;
        touch-action: none;
        overscroll-behavior: none;
        background: #111310;
        opacity: 1;
        visibility: visible;
        transition:
            opacity 0.9s cubic-bezier(0.65, 0, 0.35, 1),
            visibility 0.9s;
    }

    .kirst-intro.is-closing {
        opacity: 0;
        visibility: hidden;
        pointer-events: none !important;
    }

    .kirst-intro.is-hidden {
        display: none;
    }

    .kirst-intro__video {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        transform: scale(1.002);
    }

    .kirst-intro__overlay {
        position: absolute;
        inset: 0;
        pointer-events: none;
        background:
            linear-gradient(
                90deg,
                rgba(7, 10, 8, 0.22) 0%,
                rgba(7, 10, 8, 0.04) 35%,
                transparent 70%
            ),
            linear-gradient(
                0deg,
                rgba(7, 10, 8, 0.28) 0%,
                transparent 35%
            );
    }

    .kirst-intro__content {
        position: absolute;
        z-index: 3;
        top: 50%;
        left: clamp(24px, 6vw, 110px);
        width: min(620px, 72vw);
        transform: translateY(-50%);
        pointer-events: none;
        color: #f3f0e9;
    }

    .kirst-intro__eyebrow,
    .kirst-intro__title,
    .kirst-intro__subtitle {
        display: block;
    }

    .kirst-intro__eyebrow:empty,
    .kirst-intro__title:empty,
    .kirst-intro__subtitle:empty {
        display: none;
    }

    .kirst-intro__eyebrow {
        margin-bottom: 16px;
        font-family: "Montserrat", Arial, sans-serif;
        font-size: clamp(9px, 0.72vw, 12px);
        font-weight: 500;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        opacity: 0.82;
    }

    .kirst-intro__title {
        max-width: 12ch;
        font-family: "Manrope", Arial, sans-serif;
        font-size: clamp(38px, 5.8vw, 92px);
        font-weight: 500;
        line-height: 0.98;
        letter-spacing: -0.045em;
    }

    .kirst-intro__subtitle {
        max-width: 46ch;
        margin-top: 20px;
        font-family: "Manrope", Arial, sans-serif;
        font-size: clamp(13px, 1.05vw, 17px);
        font-weight: 400;
        line-height: 1.55;
        opacity: 0.78;
    }

    .kirst-intro:not([data-show-progress="yes"]) .kirst-intro__progress {
        display: none;
    }

    .kirst-intro__skip {
        position: absolute;
        left: clamp(24px, 4vw, 72px);
        bottom: clamp(30px, 4vw, 62px);
        z-index: 10;

        display: inline-flex;
        align-items: center;
        gap: 18px;

        padding: 12px 0;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.48);
        background: transparent;

        color: #f3f0e9;
        font-family: "Montserrat", Arial, sans-serif;
        font-size: 10px;
        font-weight: 500;
        line-height: 1;
        letter-spacing: 0.22em;
        text-transform: uppercase;

        cursor: pointer;
        pointer-events: auto;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
        opacity: 0;
        transform: translateY(10px);
        animation: kirstSkipReveal 0.8s ease 1s forwards;

        transition:
            border-color 0.3s ease,
            color 0.3s ease;
    }

    .kirst-intro__skip span:last-child {
        font-size: 16px;
        transition: transform 0.35s ease;
    }

    .kirst-intro__skip:hover,
    .kirst-intro__skip:focus-visible {
        color: #ffffff;
        border-color: #b6a078;
        outline: none;
    }

    .kirst-intro__skip:hover span:last-child {
        transform: translateX(6px);
    }

    .kirst-intro__progress {
        position: absolute;
        right: clamp(24px, 4vw, 72px);
        bottom: clamp(37px, 4vw, 69px);
        z-index: 3;

        width: clamp(90px, 12vw, 180px);
        height: 1px;
        overflow: hidden;

        background: rgba(255, 255, 255, 0.25);
    }

    .kirst-intro__progress span {
        display: block;
        width: 0;
        height: 100%;
        background: #f3f0e9;
        transition: width 0.08s linear;
    }

    @keyframes kirstSkipReveal {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @media (max-width: 767px) {
        .kirst-intro__video {
            object-position: center center;
        }

        .kirst-intro__content {
            top: 47%;
            left: 24px;
            width: calc(100vw - 48px);
        }

        .kirst-intro__title {
            max-width: 10ch;
        }

        .kirst-intro__subtitle {
            max-width: 34ch;
        }

        .kirst-intro__progress {
            width: 72px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .kirst-intro__skip {
            animation: none;
            opacity: 1;
            transform: none;
        }

        .kirst-intro {
            transition-duration: 0.01ms;
        }
    }

/* =========================================================
   PORTALS
   Source: Homepage/Homepage 4 Banners.html
========================================================= */
/* =========================================================
   1. GLOBAL / ELEMENTOR CONTAINER
========================================================= */
html.kirst-returning-home #kirst-intro {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.kirst-scene-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0 !important;
    overflow: visible !important;
    isolation: isolate;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.kirst-scene-container > .e-con-inner {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
}

.kirst-scene-container .elementor-widget-html,
.kirst-scene-container .elementor-widget-html > .elementor-widget-container {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
}

/* Keep the Astra / Elementor header above the portals. */
.elementor-location-header,
#masthead,
#ast-mobile-header,
.ast-mobile-header-wrap,
.ast-primary-header-bar,
header.site-header,
.site-header,
header[role="banner"] {
    z-index: 1000 !important;
}

/* =========================================================
   2. TOKENS
========================================================= */
:root {
    --kirst-ivory: #f2efe7;
    --kirst-white: #ffffff;
    --kirst-ink: #101412;
    --kirst-header-space: clamp(96px, 8vw, 138px);
    --kirst-mobile-header-offset: 92px;
    --kirst-card-cut: clamp(14px, 1.3vw, 24px);
    --kirst-ease: cubic-bezier(.22, 1, .36, 1);
    --kirst-ease-inout: cubic-bezier(.76, 0, .24, 1);
}

.kirst-portal-stage,
.kirst-portal-stage * {
    box-sizing: border-box;
}

/* =========================================================
   3. STAGE
========================================================= */
.kirst-portal-stage {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    align-content: stretch;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    padding:
        calc(var(--kirst-header-space) + 18px)
        clamp(20px, 3.5vw, 68px)
        clamp(25px, 3.2vw, 48px);
    overflow: visible;
    isolation: isolate;
    color: var(--kirst-ivory);
    touch-action: pan-y pinch-zoom;
}

@supports (height: 100svh) {
    .kirst-portal-stage {
        height: 100svh;
        min-height: 100svh;
    }
}

.kirst-portal-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 46%, rgba(2,5,4,.24), rgba(2,5,4,.72) 78%),
        rgba(3,6,5,.30);
    opacity: 0;
    transition: opacity 420ms var(--kirst-ease);
}

.kirst-portal-stage__atmosphere,
.kirst-portal-stage__grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.kirst-portal-stage__atmosphere {
    z-index: -2;
    background:
        radial-gradient(circle at 50% 43%, rgba(255,255,255,.055), transparent 35%),
        linear-gradient(180deg, rgba(7,10,9,.03), rgba(7,10,9,.12) 70%, rgba(7,10,9,.28));
}

.kirst-portal-stage__grain {
    z-index: -1;
    opacity: .10;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

/* =========================================================
   4. DESKTOP GRID
========================================================= */
.kirst-portal-grid {
    position: relative;
    touch-action: pan-y pinch-zoom;
    display: flex;
    align-items: stretch;
    align-self: center;
    gap: clamp(10px, 1.05vw, 20px);
    width: min(94vw, 1660px);
    height: min(68vh, 650px);
    min-height: clamp(430px, 56vh, 560px);
    max-height: 650px;
    margin: 0 auto;
    padding: 0;
}

/* =========================================================
   5. PORTAL CARD
========================================================= */
.kirst-portal {
    --portal-accent: 169, 145, 105;
    --portal-soft: 215, 205, 188;
    --pointer-x: 50%;
    --pointer-y: 40%;
    --kirst-portal-overlay-color: transparent;
    --kirst-portal-overlay-opacity: 0;
    --kirst-portal-journey-color: #030504;

    position: relative;
    display: block;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    isolation: isolate;
    color: var(--kirst-ivory);
    text-decoration: none;
    background: rgba(14,18,16,.18);
    clip-path: polygon(
        0 var(--kirst-card-cut),
        var(--kirst-card-cut) 0,
        100% 0,
        100% 100%,
        0 100%
    );
    box-shadow:
        0 30px 72px rgba(4,8,6,.22),
        0 8px 24px rgba(4,8,6,.13);
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    filter: saturate(.92) brightness(.94);
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y pinch-zoom;
    backface-visibility: hidden;
    will-change: auto;
    transition:
        flex-grow 680ms var(--kirst-ease),
        transform 700ms var(--kirst-ease),
        filter 620ms ease,
        opacity 620ms ease,
        box-shadow 620ms var(--kirst-ease);
}

.kirst-portal::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    clip-path: inherit;
    border: 1px solid rgba(255,255,255,.24);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.13),
        inset 0 -1px 0 rgba(255,255,255,.05);
}

.kirst-portal::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(var(--portal-accent), 0),
        rgba(var(--portal-soft), .92) 30%,
        rgba(var(--portal-accent), .95) 62%,
        rgba(var(--portal-accent), 0)
    );
    transform: scaleX(.62);
    transform-origin: left center;
    opacity: .72;
    transition: transform 700ms var(--kirst-ease), opacity 420ms ease;
}

.kirst-portal.is-reveal-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: saturate(1) brightness(1);
}

/* =========================================================
   6. BRAND ACCENTS
========================================================= */
.kirst-portal--estate {
    --portal-accent: 49, 92, 73;
    --portal-soft: 181, 205, 188;
}

.kirst-portal--atelier {
    --portal-accent: 172, 148, 115;
    --portal-soft: 224, 210, 189;
}

.kirst-portal--emil {
    --portal-accent: 113, 76, 53;
    --portal-soft: 205, 174, 146;
}

.kirst-portal--mafi {
    --portal-accent: 148, 113, 76;
    --portal-soft: 226, 207, 176;
}

/* =========================================================
   7. IMAGE / GRADING
========================================================= */
.kirst-portal__media,
.kirst-portal__wash,
.kirst-portal__glint {
    position: absolute;
    inset: 0;
}

.kirst-portal__wash::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--kirst-portal-overlay-color, transparent);
    opacity: var(--kirst-portal-overlay-opacity, 0);
}

.kirst-portal__media {
    z-index: 0;
    overflow: hidden;
    clip-path: inherit;
    background: #151918;
}

.kirst-portal__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translate3d(0,0,0) scale(1.045);
    filter: saturate(.84) brightness(.82) contrast(1.035);
    backface-visibility: hidden;
    will-change: auto;
    transition:
        transform 1000ms var(--kirst-ease),
        filter 760ms var(--kirst-ease);
}

.kirst-portal--estate .kirst-portal__media img { object-position: 58% center; }
.kirst-portal--atelier .kirst-portal__media img { object-position: 54% center; }
.kirst-portal--mafi .kirst-portal__media img { object-position: 52% center; }
.kirst-portal--emil .kirst-portal__media img { object-position: 56% center; }

.kirst-portal__wash {
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(5,8,7,.08), transparent 30%, rgba(5,8,7,.15) 58%, rgba(5,8,7,.88) 100%),
        radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255,255,255,.12), transparent 28%),
        radial-gradient(ellipse at 50% 110%, rgba(var(--portal-accent), .44), transparent 64%);
    transition: opacity 650ms var(--kirst-ease);
}

.kirst-portal__glint {
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(112deg, transparent 20%, rgba(255,255,255,.15) 47%, transparent 68%);
    opacity: 0;
    transform: translate3d(-70%,0,0);
    transition: transform 950ms var(--kirst-ease), opacity 420ms ease;
}

/* =========================================================
   8. COPY
========================================================= */
.kirst-portal__copy {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding:
        clamp(23px, 1.8vw, 34px)
        clamp(18px, 1.5vw, 29px)
        clamp(28px, 2.2vw, 42px);
    font-family: "Manrope", Arial, sans-serif;
}

.kirst-portal__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    opacity: 0;
    transform: translateY(-7px);
    transition: opacity 600ms ease, transform 760ms var(--kirst-ease);
}

.kirst-portal__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 600ms ease, transform 760ms var(--kirst-ease);
}

.kirst-portal.is-reveal-visible .kirst-portal__top,
.kirst-portal.is-reveal-visible .kirst-portal__bottom {
    opacity: 1;
    transform: translateY(0);
}

.kirst-portal.is-reveal-visible .kirst-portal__top {
    transition-delay: 80ms;
}

.kirst-portal.is-reveal-visible .kirst-portal__bottom {
    transition-delay: 130ms;
}

.kirst-portal__number {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.82);
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .2em;
}

.kirst-portal__number::after {
    content: "";
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--portal-soft),.92), rgba(255,255,255,.16));
}

.kirst-portal__symbol {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    color: rgba(var(--portal-soft),.96);
    border: 1px solid rgba(255,255,255,.27);
    border-radius: 2px;
    background: rgba(12,16,14,.18);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition:
        color 380ms ease,
        background 380ms ease,
        border-color 380ms ease,
        transform 560ms var(--kirst-ease);
}

.kirst-portal__symbol svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kirst-portal__category {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 7px 10px;
    color: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 2px;
    background: rgba(var(--portal-accent),.46);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    font-size: 8px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.kirst-portal__title {
    display: block;
    max-width: 11ch;
    color: #fff;
    font-size: clamp(25px, 2vw, 39px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.kirst-portal__meta {
    display: block;
    max-width: 31ch;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    color: rgba(255,255,255,.76);
    font-size: clamp(10px, .76vw, 12px);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: .012em;
    opacity: 0;
    transform: translateY(10px);
    transition:
        max-height 600ms var(--kirst-ease),
        margin-top 600ms var(--kirst-ease),
        opacity 360ms ease,
        transform 600ms var(--kirst-ease);
}

.kirst-portal__action {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 17px;
    margin-top: 22px;
    padding-bottom: 9px;
    color: rgba(255,255,255,.94);
    font-size: 8px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.kirst-portal__action::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--portal-soft),.96) 0 34%, rgba(255,255,255,.22) 34% 100%);
    transform-origin: left center;
    transition: transform 520ms var(--kirst-ease);
}

.kirst-portal__arrow {
    display: inline-block;
    font-size: 15px;
    font-weight: 300;
    transition: transform 420ms var(--kirst-ease);
}

/* =========================================================
   9. DESKTOP FOCUS INTERACTION
========================================================= */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
    .kirst-portal-stage.is-portal-focused::after {
        opacity: .70;
    }

    .kirst-portal-stage.is-portal-focused .kirst-portal-stage__caption {
        opacity: .18;
        transition-delay: 0ms;
    }

    .kirst-portal-stage.is-portal-focused .kirst-portal:not(.is-focus-target) {
        flex-grow: .82;
        filter: saturate(.52) brightness(.50) contrast(.96);
        opacity: .54;
        transform: translate3d(0, 4px, 0) scale(.985);
    }

    .kirst-portal-stage.is-pointer-armed .kirst-portal:hover,
    .kirst-portal:focus-visible,
    .kirst-portal.is-focus-target {
        flex-grow: 1.42;
        z-index: 8;
        outline: none;
        transform: translate3d(0,-16px,0) scale(1.012);
        filter: none;
        opacity: 1;
        box-shadow:
            0 56px 135px rgba(0,3,2,.55),
            0 20px 48px rgba(0,3,2,.30),
            0 0 0 1px rgba(var(--portal-soft),.30),
            0 0 54px rgba(var(--portal-accent),.16);
    }

    .kirst-portal-stage.is-pointer-armed .kirst-portal:hover::before,
    .kirst-portal:focus-visible::before,
    .kirst-portal.is-focus-target::before {
        border-color: rgba(255,255,255,.56);
    }

    .kirst-portal-stage.is-pointer-armed .kirst-portal:hover::after,
    .kirst-portal:focus-visible::after,
    .kirst-portal.is-focus-target::after {
        transform: scaleX(1);
        opacity: 1;
    }

    .kirst-portal-stage.is-pointer-armed .kirst-portal:hover .kirst-portal__media img,
    .kirst-portal:focus-visible .kirst-portal__media img,
    .kirst-portal.is-focus-target .kirst-portal__media img {
        transform: translate3d(var(--image-x,0), var(--image-y,0), 0) scale(1.105);
        filter: saturate(1.02) brightness(1) contrast(1.02);
    }

    .kirst-portal-stage.is-pointer-armed .kirst-portal:hover .kirst-portal__glint,
    .kirst-portal:focus-visible .kirst-portal__glint,
    .kirst-portal.is-focus-target .kirst-portal__glint {
        opacity: .82;
        transform: translate3d(58%,0,0);
    }

    .kirst-portal-stage.is-pointer-armed .kirst-portal:hover .kirst-portal__symbol,
    .kirst-portal:focus-visible .kirst-portal__symbol,
    .kirst-portal.is-focus-target .kirst-portal__symbol {
        color: #fff;
        border-color: rgba(var(--portal-soft),.88);
        background: rgba(var(--portal-accent),.48);
        transform: rotate(4deg) scale(1.07);
    }

    .kirst-portal-stage.is-pointer-armed .kirst-portal:hover .kirst-portal__category,
    .kirst-portal:focus-visible .kirst-portal__category,
    .kirst-portal.is-focus-target .kirst-portal__category {
        background: rgba(var(--portal-accent),.70);
        border-color: rgba(var(--portal-soft),.48);
    }

    .kirst-portal-stage.is-pointer-armed .kirst-portal:hover .kirst-portal__meta,
    .kirst-portal:focus-visible .kirst-portal__meta,
    .kirst-portal.is-focus-target .kirst-portal__meta {
        max-height: 58px;
        margin-top: 12px;
        opacity: 1;
        transform: translateY(0);
    }

    .kirst-portal-stage.is-pointer-armed .kirst-portal:hover .kirst-portal__arrow,
    .kirst-portal:focus-visible .kirst-portal__arrow,
    .kirst-portal.is-focus-target .kirst-portal__arrow {
        transform: translateX(7px);
    }

    .kirst-portal-stage.is-pointer-armed .kirst-portal:hover .kirst-portal__action::after,
    .kirst-portal:focus-visible .kirst-portal__action::after,
    .kirst-portal.is-focus-target .kirst-portal__action::after {
        transform: scaleX(1.1);
    }
}

/* =========================================================
   10. CAPTION
========================================================= */
.kirst-portal-stage__caption {
    position: absolute;
    right: clamp(20px,3.5vw,68px);
    bottom: clamp(22px,2.2vw,34px);
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255,255,255,.68);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-shadow: 0 2px 15px rgba(0,0,0,.30);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 600ms ease, transform 760ms var(--kirst-ease);
}

.kirst-portal-stage.is-revealed .kirst-portal-stage__caption {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 700ms;
}

.kirst-portal-stage__caption-dot {
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(205,190,165,.9);
}

/* =========================================================
   11. NAVIGATION TRANSITION — GPU / FLIP
========================================================= */

.kirst-portal-clone {
    position: fixed !important;
    z-index: 9999998 !important;
    margin: 0 !important;
    max-width: none !important;
    pointer-events: none !important;
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
    transform: translate3d(0,0,0);
    transform-origin: 0 0;
    contain: layout paint style;
    backface-visibility: hidden;
    will-change: transform, opacity, filter, clip-path;
}

.kirst-portal-clone .kirst-portal__media,
.kirst-portal-clone .kirst-portal__media img {
    backface-visibility: hidden;
}

.kirst-portal-clone .kirst-portal__meta {
    max-height: 58px;
    margin-top: 12px;
    opacity: 1;
    transform: none;
}

.kirst-portal-journey-curtain {
    position: fixed;
    inset: 0;
    z-index: 9999997;
    pointer-events: none;
    background: #030504;
    opacity: 0;
    will-change: opacity;
}

/* =========================================================
   12. TABLET — 2 x 2
========================================================= */
@media (max-width: 1024px) {
    .kirst-portal-stage {
        padding:
            calc(var(--kirst-header-space) + 18px)
            18px
            24px;
    }

    .kirst-portal-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
        max-width: 930px;
        height: 100%;
        min-height: 0;
        max-height: none;
    }

    .kirst-portal {
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .kirst-portal__meta {
        display: none;
    }
}

/* =========================================================
   13. MOBILE — STABLE VIEWPORT
========================================================= */
@media (max-width: 640px) {
    :root {
        --kirst-header-space: 68px;
        --kirst-card-cut: 11px;
    }

    /*
     * The scene stays in the normal document flow.
     * No rule below changes the page scroll behaviour.
     */
    .kirst-scene-container {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        touch-action: pan-y pinch-zoom;
    }

    .kirst-portal-stage {
        width: 100%;
        height: 100vh;
        min-height: 100vh;
        padding:
            calc(
                var(--kirst-mobile-header-offset, 92px) +
                env(safe-area-inset-top, 0px) +
                8px
            )
            8px
            calc(12px + env(safe-area-inset-bottom, 0px));
        overflow: visible;
        touch-action: pan-y pinch-zoom;
    }

    @supports (height: 100svh) {
        .kirst-portal-stage {
            height: 100svh;
            min-height: 100svh;
        }
    }

    .kirst-portal-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 7px;
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
    }

    .kirst-portal {
        width: 100%;
        height: auto;
        min-height: 0;
        transform: translate3d(0, 12px, 0);
        filter: saturate(.96) brightness(.97);
        box-shadow: 0 10px 24px rgba(4,8,6,.16);
    }

    .kirst-portal::before {
        border-color: rgba(255,255,255,.18);
    }

    .kirst-portal__media img {
        transform: translate3d(0,0,0) scale(1.03);
        filter: saturate(.90) brightness(.84) contrast(1.025);
    }

    .kirst-portal__glint {
        display: none;
    }

    .kirst-portal__copy {
        padding: 11px 10px 13px;
    }

    .kirst-portal__symbol {
        width: 27px;
        height: 27px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(12,16,14,.28);
    }

    .kirst-portal__symbol svg {
        width: 12px;
        height: 12px;
    }

    .kirst-portal__number {
        gap: 6px;
        font-size: 6px;
    }

    .kirst-portal__number::after {
        width: 11px;
    }

    .kirst-portal__category {
        max-width: 100%;
        margin-bottom: 7px;
        padding: 4px 5px;
        font-size: 4.8px;
        letter-spacing: .085em;
        white-space: nowrap;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .kirst-portal__title {
        max-width: 10ch;
        font-size: clamp(17px, 5.4vw, 23px);
        line-height: .98;
        letter-spacing: -.04em;
    }

    .kirst-portal__meta {
        display: none;
    }

    .kirst-portal__action {
        gap: 6px;
        margin-top: 9px;
        padding-bottom: 5px;
        font-size: 5.4px;
        letter-spacing: .09em;
    }

    .kirst-portal__arrow {
        font-size: 10px;
    }

    .kirst-portal-stage__caption {
        display: none;
    }

    .kirst-portal--estate .kirst-portal__media img { object-position: 58% center; }
    .kirst-portal--atelier .kirst-portal__media img { object-position: 54% center; }
    .kirst-portal--mafi .kirst-portal__media img { object-position: 52% center; }
    .kirst-portal--emil .kirst-portal__media img { object-position: 56% center; }

    .kirst-portal-clone {
        box-shadow: none !important;
    }

    .kirst-portal-clone::before,
    .kirst-portal-clone::after,
    .kirst-portal-clone .kirst-portal__glint {
        display: none !important;
    }

    .kirst-portal-clone .kirst-portal__symbol,
    .kirst-portal-clone .kirst-portal__category {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* =========================================================
   14. VERY SMALL / SHORT MOBILE
========================================================= */
@media (max-width: 380px), (max-height: 680px) and (max-width: 640px) {
    .kirst-portal-stage {
        padding-right: 6px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        padding-left: 6px;
    }

    .kirst-portal-grid {
        gap: 5px;
    }

    .kirst-portal__copy {
        padding: 9px 8px 10px;
    }

    .kirst-portal__symbol {
        width: 24px;
        height: 24px;
    }

    .kirst-portal__category {
        margin-bottom: 5px;
        font-size: 4.4px;
    }

    .kirst-portal__title {
        font-size: 16px;
    }

    .kirst-portal__action {
        margin-top: 7px;
        font-size: 4.8px;
    }
}

/* =========================================================
   15. BF-CACHE RESTORE
========================================================= */
.kirst-portal-stage.is-restoring,
.kirst-portal-stage.is-restoring .kirst-portal,
.kirst-portal-stage.is-restoring .kirst-portal__top,
.kirst-portal-stage.is-restoring .kirst-portal__bottom,
.kirst-portal-stage.is-restoring .kirst-portal__media img,
.kirst-portal-stage.is-restoring .kirst-portal__glint,
.kirst-portal-stage.is-restoring .kirst-portal__symbol,
.kirst-portal-stage.is-restoring .kirst-portal__meta,
.kirst-portal-stage.is-restoring .kirst-portal__arrow,
.kirst-portal-stage.is-restoring .kirst-portal__action::after {
    transition: none !important;
    animation: none !important;
}

/* =========================================================
   16. REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
    .kirst-portal-stage__caption,
    .kirst-portal,
    .kirst-portal__top,
    .kirst-portal__bottom {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }

    .kirst-portal-stage::after,
    .kirst-portal__media img,
    .kirst-portal__glint,
    .kirst-portal__symbol,
    .kirst-portal__meta,
    .kirst-portal__arrow,
    .kirst-portal__action::after {
        transition: none !important;
    }
}

/* =========================================================
   BEYOND PROPERTY
   Source: Homepage/Beyon Propriete Bloc cu tranzitie text de la alb la negru.html
========================================================= */
/* =========================================================
   RESET
========================================================= */

#kirst-beyond-property,
#kirst-beyond-property *,
#kirst-beyond-property *::before,
#kirst-beyond-property *::after {
    box-sizing: border-box;
}

/* =========================================================
   SECTION
========================================================= */

#kirst-beyond-property {
    --kb-white: #FDFDFC;
    --kb-black: #000000;
    --kb-text: #171717;
    --kb-grey: #A6A6A2;
    --kb-ivory: #F7F4ED;

    /*
     * JavaScript replaces both values with stable pixels.
     * The vh fallbacks keep the block usable before JS runs.
     */
    --kb-viewport-height: 100vh;
    --kb-section-height: 320vh;
    --kb-sticky-overscan: 2px;

    position: relative;
    display: block;

    width: 100%;
    height: var(--kb-section-height);

    margin: 0 0 -2px;
    padding: 0;

    background-color: var(--kb-black);

    isolation: isolate;

    /*
     * A sticky element must not sit inside an ancestor that
     * creates an overflow scrolling box in WebKit.
     * Horizontal clipping is already handled by the sticky layer.
     */
    overflow: visible;
}

/*
 * Prevents subpixel seams between this section
 * and the following black section.
 */
#kirst-beyond-property::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: -4px;
    left: 0;

    height: 8px;

    background-color: var(--kb-black);

    pointer-events: none;
    z-index: 20;
}

/* =========================================================
   STICKY VIEWPORT — DESKTOP
========================================================= */

.kirst-beyond__sticky {
    position: -webkit-sticky;
    position: sticky;

    /*
     * Tiny overscan hides the 1-2 px WebKit seam that can appear
     * while Safari promotes/demotes a sticky layer during scroll.
     */
    top: calc(0px - var(--kb-sticky-overscan));

    width: 100%;
    height: calc(
        var(--kb-viewport-height) +
        var(--kb-sticky-overscan) +
        var(--kb-sticky-overscan)
    );
    min-height: calc(
        580px +
        var(--kb-sticky-overscan) +
        var(--kb-sticky-overscan)
    );

    overflow: hidden;

    background-color: var(--kb-white);

    isolation: isolate;

    font-family: "Manrope", Arial, sans-serif;
    font-size: 16px;
    line-height: normal;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    text-rendering: auto;

    /* Never transform the sticky box itself in Safari. */
    -webkit-transform: none;
    transform: none;
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
}

.kirst-beyond__backdrop {
    position: absolute;
    inset: 0;

    background: var(--kb-black);

    opacity: 0;

    pointer-events: none;
    z-index: 0;

    /* Only this simple layer is promoted, not the sticky box. */
    transform: translateZ(0);
    will-change: opacity;
}

/* =========================================================
   INTRO
========================================================= */

.kirst-beyond__intro {
    position: absolute;
    top: calc(clamp(64px, 14vh, 140px) + var(--kb-sticky-overscan));
    left: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: clamp(16px, 1.5vw, 28px);

    width: min(92vw, 760px);

    color: rgba(23, 23, 23, 0.58);

    opacity: 1;

    transform: translate3d(-50%, 0, 0);

    pointer-events: none;
    z-index: 7;

    will-change:
        opacity,
        transform,
        color;
}

.kirst-beyond__intro-text {
    display: block;
    flex: 0 0 auto;

    font-family: "Manrope", Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;

    letter-spacing: -0.015em;
    text-align: center;

    white-space: nowrap;
}

.kirst-beyond__intro-line {
    display: block;
    flex: 1 1 auto;

    width: 100%;
    max-width: 100px;
    height: 1px;

    background-color: currentColor;

    opacity: 0.34;
}

/* =========================================================
   BEYOND PROPERTY
========================================================= */

.kirst-beyond__headline {
    position: absolute;
    top: 51%;
    left: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: clamp(32px, 3.2vw, 74px);

    width: 100%;
    padding: 0 2vw;

    white-space: nowrap;

    transform: translate3d(-50%, -50%, 0);

    pointer-events: none;
    z-index: 3;
}

.kirst-beyond__word {
    display: block;

    color: var(--kb-text);

    font-family: "Manrope", Arial, sans-serif;
    font-size: 9.5em;
    font-weight: 800;
    line-height: 0.9;

    letter-spacing: -0.06em;

    font-kerning: normal;
    font-feature-settings:
        "kern" 1,
        "liga" 1;

    opacity: 1;

    transform: translate3d(0, 0, 0);
    backface-visibility: visible;

    will-change:
        transform,
        opacity;
}

/* =========================================================
   DISCIPLINES
========================================================= */

.kirst-beyond__disciplines {
    position: absolute;
    top: 50%;
    left: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: clamp(9px, 1.1vh, 18px);

    width: min(94vw, 1500px);

    transform:
        translate3d(-50%, -50%, 0)
        translate3d(0, 230px, 0);

    pointer-events: none;
    z-index: 4;

    backface-visibility: hidden;

    will-change: transform;
}

.kirst-beyond__discipline {
    display: block;

    width: 100%;

    color: var(--kb-text);

    font-family: "Manrope", Arial, sans-serif;
    font-size: clamp(44px, 5.4vw, 104px);
    font-weight: 800;
    line-height: 1;

    letter-spacing: -0.045em;

    font-kerning: normal;
    font-feature-settings:
        "kern" 1,
        "liga" 1;

    text-align: center;
    white-space: nowrap;

    opacity: 0;
    filter: blur(7px);

    transform: translate3d(0, 96px, 0);
    backface-visibility: visible;

    will-change:
        opacity,
        transform;
}

.kirst-beyond__discipline--wide {
    font-size: clamp(36px, 4.55vw, 88px);
}

/* =========================================================
   FINAL MESSAGE
========================================================= */

.kirst-beyond__final {
    position: absolute;
    top: 50%;
    left: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: clamp(16px, 1.8vh, 28px);

    width: min(94vw, 1650px);

    color: var(--kb-ivory);

    font-family: "Manrope", Arial, sans-serif;
    font-size: clamp(52px, 6.6vw, 128px);
    font-weight: 800;
    line-height: 1;

    text-align: center;

    font-kerning: normal;
    font-feature-settings:
        "kern" 1,
        "liga" 1;

    opacity: 0;
    filter: blur(9px);

    transform:
        translate3d(-50%, -50%, 0)
        translate3d(0, 105px, 0);

    pointer-events: none;
    z-index: 6;

    backface-visibility: visible;

    will-change:
        opacity,
        transform;
}

.kirst-beyond__final span {
    display: block;

    max-width: 100%;

    overflow: visible;
}

.kirst-beyond__final-primary {
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.kirst-beyond__final-secondary {
    color: rgba(247, 244, 237, 0.54);

    line-height: 1.12;

    /*
     * Neutral tracking prevents letters such as
     * r and y from overlapping.
     */
    letter-spacing: 0;
    word-spacing: 0.025em;

    padding:
        0.02em
        0.04em
        0.13em;
}

/* =========================================================
   SAFARI / WEBKIT STABILITY
========================================================= */

.kirst-beyond--webkit .kirst-beyond__discipline,
.kirst-beyond--webkit .kirst-beyond__final {
    filter: none !important;
}

.kirst-beyond--webkit .kirst-beyond__word,
.kirst-beyond--webkit .kirst-beyond__discipline,
.kirst-beyond--webkit .kirst-beyond__final {
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
}

/* =========================================================
   PROGRESS INDICATOR
========================================================= */

.kirst-beyond__progress {
    position: absolute;
    left: 50%;
    bottom: calc(clamp(22px, 3.5vh, 38px) + var(--kb-sticky-overscan));

    width: min(220px, 38vw);
    height: 1px;

    overflow: hidden;

    background-color: rgba(23, 23, 23, 0.14);

    transform: translateX(-50%);

    pointer-events: none;
    z-index: 10;

    will-change: background-color;
}

.kirst-beyond__progress-fill {
    display: block;

    width: 100%;
    height: 100%;

    color: var(--kb-text);
    background-color: currentColor;

    transform: scaleX(0);
    transform-origin: left center;

    will-change:
        transform,
        color;
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

.kirst-beyond__sr-only {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;

    border: 0 !important;
}

/* =========================================================
   MEDIUM DESKTOP
========================================================= */

@media (max-width: 1500px) {
    .kirst-beyond__word {
        font-size: clamp(
            108px,
            10.2vw,
            152px
        );
    }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {
    #kirst-beyond-property {
        --kb-section-height: 330vh;
    }

    .kirst-beyond__sticky {
        min-height: 560px;
    }

    .kirst-beyond__intro {
        top: clamp(52px, 12vh, 100px);
    }

    .kirst-beyond__headline {
        gap: clamp(22px, 2.8vw, 40px);
    }

    .kirst-beyond__word {
        font-size: clamp(
            70px,
            10.3vw,
            112px
        );

        letter-spacing: -0.055em;
    }

    .kirst-beyond__discipline {
        font-size: clamp(
            39px,
            5.9vw,
            65px
        );
    }

    .kirst-beyond__discipline--wide {
        font-size: clamp(
            32px,
            5vw,
            54px
        );
    }

    .kirst-beyond__final {
        font-size: clamp(
            48px,
            7.3vw,
            78px
        );
    }
}

/* =========================================================
   MOBILE ONLY
========================================================= */

@media (max-width: 767px) {
    #kirst-beyond-property {
        --kb-section-height: 340vh;
        --kb-sticky-overscan: 4px;

        background-color: var(--kb-black);

        /*
         * Keep this ancestor overflow-visible for Safari sticky.
         * The sticky viewport itself clips the animated words.
         */
        overflow: visible;
    }

    .kirst-beyond__sticky {
        /*
         * Fallback for older mobile browsers.
         * It covers the additional space exposed when
         * the browser toolbar retracts.
         */
        top: calc(0px - var(--kb-sticky-overscan));

        height: calc(
            var(--kb-viewport-height) +
            var(--kb-sticky-overscan) +
            var(--kb-sticky-overscan)
        );
        min-height: calc(
            var(--kb-viewport-height) +
            var(--kb-sticky-overscan) +
            var(--kb-sticky-overscan)
        );

        overflow: hidden;

        /*
         * Do not use contain: paint here.
         * On some mobile browsers it can make the sticky
         * layer move vertically during toolbar changes.
         */
        contain: none;

        -webkit-transform: none;
        transform: none;
        -webkit-backface-visibility: visible;
        backface-visibility: visible;
    }

    .kirst-beyond__intro {
        top: calc(clamp(38px, 10vh, 72px) + var(--kb-sticky-overscan));

        gap: 0;

        width: calc(100% - 28px);
    }

    .kirst-beyond__intro-text {
        width: 100%;

        font-size: 18px;
        line-height: 1.35;

        text-align: center;
        white-space: normal;
    }

    .kirst-beyond__intro-line {
        display: none;
    }

    .kirst-beyond__headline {
        top: 50%;

        gap: clamp(15px, 4.2vw, 22px);

        padding: 0 10px;
    }

    .kirst-beyond__word {
        font-size: 11.55vw;
        line-height: 0.96;

        letter-spacing: -0.045em;
    }

    .kirst-beyond__disciplines {
        gap: clamp(13px, 1.8vh, 18px);

        width: calc(100% - 24px);
    }

    .kirst-beyond__discipline {
        font-size: clamp(
            31px,
            8.65vw,
            46px
        );

        line-height: 1.03;
        letter-spacing: -0.03em;

        /*
         * Blur is intentionally disabled on mobile
         * to reduce GPU repainting.
         */
        filter: none !important;
    }

    .kirst-beyond__discipline--wide {
        font-size: clamp(
            25px,
            6.75vw,
            37px
        );

        letter-spacing: -0.02em;
    }

    .kirst-beyond__final {
        gap: clamp(16px, 2.2vh, 24px);

        width: calc(100% - 24px);

        font-size: clamp(
            38px,
            10vw,
            58px
        );

        line-height: 1.04;

        /*
         * Blur is disabled during the black transition
         * to prevent mobile compositing flicker.
         */
        filter: none !important;
    }

    .kirst-beyond__final-primary {
        line-height: 1.04;
        letter-spacing: -0.025em;
    }

    .kirst-beyond__final-secondary {
        line-height: 1.15;

        letter-spacing: 0;
        word-spacing: 0.02em;

        padding-bottom: 0.15em;
    }

    .kirst-beyond__progress {
        bottom: calc(
            max(20px, env(safe-area-inset-bottom)) +
            var(--kb-sticky-overscan)
        );

        width: min(180px, 45vw);
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 390px) {
    .kirst-beyond__intro-text {
        font-size: 18px;
    }

    .kirst-beyond__headline {
        gap: 13px;
    }

    .kirst-beyond__word {
        font-size: 11.25vw;
    }

    .kirst-beyond__discipline {
        font-size: clamp(
            28px,
            8.1vw,
            35px
        );
    }

    .kirst-beyond__discipline--wide {
        font-size: clamp(
            22px,
            6.25vw,
            29px
        );
    }

    .kirst-beyond__final {
        font-size: clamp(
            35px,
            9.5vw,
            47px
        );
    }
}

/* =========================================================
   NEXT SECTION
========================================================= */

/*
 * Add the CSS class "kirst-method-section" to the
 * Elementor container immediately below this widget.
 */
.kirst-method-section {
    position: relative;
    z-index: 1;

    margin-top: 0 !important;

    background-color: #000000 !important;
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    #kirst-beyond-property {
        --kb-sticky-overscan: 0px;

        height: auto;

        background-color: var(--kb-black);
    }

    .kirst-beyond__sticky {
        position: relative;
        top: 0;

        height: auto;
        min-height: 0;

        overflow: hidden;
        contain: none;

        background-color: var(--kb-white);
    }

    .kirst-beyond__intro,
    .kirst-beyond__headline,
    .kirst-beyond__disciplines,
    .kirst-beyond__final {
        position: relative;

        top: auto;
        left: auto;

        width: 100%;

        transform: none !important;
    }

    .kirst-beyond__intro {
        padding: 60px 20px 0;
        margin: 0 auto 80px;
    }

    .kirst-beyond__headline {
        flex-wrap: wrap;

        padding: 0 20px;
        margin-bottom: 100px;
    }

    .kirst-beyond__word {
        color: var(--kb-text) !important;

        opacity: 1 !important;

        transform: none !important;
    }

    .kirst-beyond__disciplines {
        gap: 22px;

        padding: 0 20px;
        margin: 0 auto 110px;
    }

    .kirst-beyond__discipline {
        color: var(--kb-text) !important;

        opacity: 1 !important;
        filter: none !important;

        transform: none !important;
    }

    .kirst-beyond__final {
        padding: 110px 20px;

        background-color: var(--kb-black);

        opacity: 1 !important;
        filter: none !important;

        transform: none !important;
    }

    .kirst-beyond__progress {
        display: none;
    }

}

/* =========================================================
   GLOBAL PRESENCE
   Source: Homepage/Shape Projects Plus Map BLock.html
========================================================= */
/* =========================================================
   RESET
========================================================= */

#kirst-global-presence-v6,
#kirst-global-presence-v6 *,
#kirst-global-presence-v6 *::before,
#kirst-global-presence-v6 *::after {
    box-sizing: border-box;
}


/* =========================================================
   SECTION
========================================================= */

#kirst-global-presence-v6 {
    --kgv6-white: #FDFDFC;
    --kgv6-black: #171717;
    --kgv6-vh: 100vh;

    position: relative;
    display: block;

    width: 100%;
    max-width: 100%;

    /*
     * JavaScript replaces this fallback with a stable
     * pixel-based height.
     */
    height: 265vh;

    margin: 0;
    padding: 0;

    /*
     * Keep overflow visible here so position: sticky
     * is not affected.
     */
    overflow: visible;

    background-color: var(--kgv6-white);

    isolation: isolate;
}


/* =========================================================
   STICKY VIEWPORT
========================================================= */

.kgv6-sticky {
    position: -webkit-sticky;
    position: sticky;

    top: 0;

    width: 100%;
    max-width: 100vw;

    height: var(--kgv6-vh);
    min-height: 560px;

    overflow: hidden;

    background-color: var(--kgv6-white);

    font-family: "Manrope", Arial, sans-serif;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    text-rendering: geometricPrecision;

    isolation: isolate;

    transform: translateZ(0);
    backface-visibility: hidden;
}


/* =========================================================
   BACKGROUND GRID
========================================================= */

.kgv6-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            to right,
            rgba(23, 23, 23, 0.052) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(23, 23, 23, 0.052) 1px,
            transparent 1px
        );

    background-size:
        clamp(96px, 9vw, 175px)
        clamp(96px, 9vw, 175px);

    background-position: center;

    opacity: 0.72;

    pointer-events: none;

    z-index: 0;
}


/* =========================================================
   KINETIC TYPOGRAPHY
========================================================= */

.kgv6-kinetic {
    position: absolute;
    inset: 0;

    width: 100%;
    max-width: 100vw;

    overflow: hidden;

    pointer-events: none;

    z-index: 5;
}

.kgv6-line {
    position: absolute;
    left: 50%;

    display: block;

    width: max-content;

    font-family: "Manrope", Arial, sans-serif;
    font-size: clamp(94px, 10.8vw, 208px);
    font-weight: 800;
    line-height: 0.9;

    letter-spacing: -0.07em;

    white-space: nowrap;

    opacity: 0;

    transform: translate3d(-50%, -50%, 0);

    will-change:
        opacity,
        transform;

    backface-visibility: hidden;
}

.kgv6-line--one {
    top: 27%;

    color: #A5A5A2;
}

.kgv6-line--two {
    top: 50%;

    color: #201E1F;
}

.kgv6-line--three {
    top: 72%;

    color: #696765;
}


/* =========================================================
   FINAL TWO-COLUMN STAGE
========================================================= */

.kgv6-final-stage {
    position: absolute;
    inset: 0;

    display: grid;

    grid-template-columns:
        minmax(0, 50%)
        minmax(0, 50%);

    align-items: center;

    width: 100%;
    height: 100%;

    opacity: 0;

    pointer-events: none;

    z-index: 7;

    will-change: opacity;
}


/* =========================================================
   LEFT CONTENT
========================================================= */

.kgv6-content {
    position: relative;

    width: min(
        760px,
        calc(100% - clamp(64px, 8vw, 150px))
    );

    margin-left: clamp(32px, 5.3vw, 110px);

    opacity: 0;

    transform: translate3d(0, 42px, 0);

    will-change:
        opacity,
        transform;
}

.kgv6-eyebrow {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: clamp(22px, 2.8vh, 38px);

    color: rgba(23, 23, 23, 0.58);

    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.kgv6-eyebrow-dot {
    display: block;
    flex: 0 0 auto;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background-color: #171717;

    box-shadow:
        0 0 0 7px rgba(23, 23, 23, 0.055);
}

.kgv6-title {
    margin: 0 0 24px;

    color: #171717;

    font-family: "Manrope", Arial, sans-serif;
    font-size: clamp(52px, 4.35vw, 84px);
    font-weight: 800;
    line-height: 0.96;

    letter-spacing: -0.065em;
}

.kgv6-title span {
    display: block;

    width: max-content;
    max-width: 100%;

    white-space: nowrap;
}

.kgv6-description {
    max-width: 540px;
    margin: 0;

    color: rgba(23, 23, 23, 0.66);

    font-size: clamp(15px, 1.05vw, 19px);
    font-weight: 400;
    line-height: 1.65;

    letter-spacing: -0.015em;
}

.kgv6-markets {
    margin-top: 24px;

    color: rgba(23, 23, 23, 0.46);

    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;

    letter-spacing: 0.045em;
}

.kgv6-signature {
    display: flex;
    flex-direction: column;

    margin-top: clamp(36px, 4.8vh, 64px);

    color: #171717;

    font-size: clamp(30px, 2.8vw, 54px);
    font-weight: 800;
    line-height: 0.98;

    letter-spacing: -0.055em;
}

.kgv6-signature span:last-child {
    color: #8D8C89;
}


/* =========================================================
   RIGHT GLOBE COLUMN
========================================================= */

.kgv6-globe-column {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    opacity: 0;

    transform: translate3d(35px, 0, 0);

    pointer-events: none;

    will-change:
        opacity,
        transform;
}

.kgv6-globe-shell {
    position: relative;

    width: clamp(360px, 42vw, 760px);
    height: clamp(360px, 42vw, 760px);

    max-width: 80vh;
    max-height: 80vh;

    cursor: grab;

    user-select: none;
    -webkit-user-select: none;

    /*
     * Vertical page scrolling remains native.
     * Horizontal dragging controls the globe.
     */
    touch-action: pan-y;

    outline-offset: 8px;
}

.kgv6-globe-shell.is-dragging {
    cursor: grabbing;
}


/* =========================================================
   GLOBE CANVAS
========================================================= */

.kgv6-globe-canvas {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    opacity: 0;

    transition: opacity 420ms ease;

    cursor: inherit;

    z-index: 3;
}

.kgv6-globe-shell.is-ready .kgv6-globe-canvas {
    opacity: 1;
}


/* =========================================================
   LOADING FALLBACK
========================================================= */

.kgv6-fallback {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 82%;
    height: 82%;

    overflow: hidden;

    border: 1px solid rgba(23, 23, 23, 0.18);
    border-radius: 50%;

    opacity: 1;

    transform: translate(-50%, -50%);

    transition: opacity 320ms ease;

    pointer-events: none;

    z-index: 1;
}

.kgv6-globe-shell.is-ready .kgv6-fallback {
    opacity: 0;
}

.kgv6-fallback-dots {
    position: absolute;
    inset: 0;

    border-radius: inherit;

    background-image:
        radial-gradient(
            circle,
            rgba(23, 23, 23, 0.54) 0 1px,
            transparent 1.35px
        );

    background-size: 10px 10px;

    opacity: 0.64;

    animation:
        kgv6FallbackRotate
        18s
        linear
        infinite;
}

.kgv6-fallback::after {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    background:
        radial-gradient(
            circle at 32% 34%,
            rgba(253, 253, 252, 0) 0 18%,
            rgba(253, 253, 252, 0.18) 40%,
            rgba(253, 253, 252, 0.88) 84%
        );
}

.kgv6-fallback-latitude,
.kgv6-fallback-longitude {
    position: absolute;
    top: 50%;
    left: 50%;

    border: 1px solid rgba(23, 23, 23, 0.13);
    border-radius: 50%;

    transform: translate(-50%, -50%);

    z-index: 2;
}

.kgv6-fallback-latitude--one {
    width: 100%;
    height: 35%;
}

.kgv6-fallback-latitude--two {
    width: 100%;
    height: 68%;
}

.kgv6-fallback-longitude--one {
    width: 36%;
    height: 100%;
}

.kgv6-fallback-longitude--two {
    width: 68%;
    height: 100%;
}

@keyframes kgv6FallbackRotate {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100px 0;
    }
}


/* =========================================================
   DRAG GUIDE
========================================================= */

.kgv6-globe-guide {
    position: absolute;
    right: 8%;
    bottom: 7%;

    display: flex;
    align-items: center;

    gap: 9px;

    color: rgba(23, 23, 23, 0.44);

    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;

    opacity: 0;

    transform: translate3d(0, 8px, 0);

    transition:
        opacity 300ms ease,
        transform 300ms ease;

    pointer-events: none;

    z-index: 5;
}

.kgv6-globe-shell.is-ready .kgv6-globe-guide {
    opacity: 1;

    transform: translate3d(0, 0, 0);
}

.kgv6-guide-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border: 1px solid rgba(23, 23, 23, 0.18);
    border-radius: 50%;

    font-size: 13px;
}


/* =========================================================
   LARGE DESKTOPS
========================================================= */

@media (min-width: 1700px) {
    .kgv6-final-stage {
        grid-template-columns:
            minmax(0, 52%)
            minmax(0, 48%);
    }

    .kgv6-content {
        width: min(800px, calc(100% - 130px));
    }

    .kgv6-title {
        font-size: clamp(68px, 4.2vw, 86px);
    }

    .kgv6-globe-shell {
        width: min(42vw, 760px);
        height: min(42vw, 760px);
    }
}


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 1100px) {
    .kgv6-final-stage {
        grid-template-columns:
            minmax(0, 51%)
            minmax(0, 49%);
    }

    .kgv6-line {
        font-size: clamp(72px, 11vw, 122px);
    }

    .kgv6-content {
        width: calc(100% - 62px);

        margin-left: 34px;
    }

    .kgv6-title {
        font-size: clamp(43px, 4.8vw, 64px);
    }

    .kgv6-description {
        max-width: 490px;
    }

    .kgv6-globe-shell {
        width: clamp(320px, 47vw, 610px);
        height: clamp(320px, 47vw, 610px);

        max-width: 72vh;
        max-height: 72vh;
    }
}


/* =========================================================
   SHORT LAPTOPS
========================================================= */

@media
    (min-width: 768px)
    and (max-height: 760px) {

    .kgv6-content {
        width: calc(100% - 60px);

        margin-left: 34px;
    }

    .kgv6-eyebrow {
        margin-bottom: 16px;

        font-size: 14px;
    }

    .kgv6-title {
        margin-bottom: 16px;

        font-size: clamp(40px, 4vw, 62px);
    }

    .kgv6-description {
        max-width: 520px;

        font-size: 14px;
        line-height: 1.5;
    }

    .kgv6-markets {
        margin-top: 14px;
    }

    .kgv6-signature {
        margin-top: 22px;

        font-size: clamp(27px, 2.35vw, 42px);
    }

    .kgv6-globe-shell {
        width: min(40vw, 68vh);
        height: min(40vw, 68vh);

        min-width: 320px;
        min-height: 320px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    .kgv6-sticky {
        min-height: 520px;
    }

    .kgv6-grid {
        background-size: 82px 82px;
    }

    .kgv6-line {
        font-size: clamp(55px, 16.8vw, 86px);
        line-height: 0.94;

        letter-spacing: -0.055em;
    }

    .kgv6-line--one {
        top: 28%;
    }

    .kgv6-line--two {
        top: 50%;
    }

    .kgv6-line--three {
        top: 70%;
    }

    .kgv6-final-stage {
        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: flex-start;

        gap: clamp(5px, 1.4vh, 14px);

        padding:
            max(24px, env(safe-area-inset-top))
            18px
            max(18px, env(safe-area-inset-bottom));
    }

    .kgv6-content {
        flex: 0 0 auto;

        width: 100%;

        margin: 0;

        text-align: center;
    }

    .kgv6-eyebrow {
        justify-content: center;

        margin-bottom: 14px;

        font-size: 13px;
    }

    .kgv6-title {
        margin-bottom: 12px;

        font-size: clamp(34px, 9.7vw, 49px);
        line-height: 0.98;

        letter-spacing: -0.055em;
    }

    .kgv6-title span {
        width: 100%;

        white-space: nowrap;
    }

    .kgv6-description {
        max-width: 520px;

        margin: 0 auto;

        font-size: 13px;
        line-height: 1.48;
    }

    .kgv6-markets {
        margin-top: 11px;

        font-size: 9px;
        line-height: 1.45;

        letter-spacing: 0.025em;
    }

    .kgv6-signature {
        display: none;
    }

    .kgv6-globe-column {
        flex: 1 1 auto;

        min-height: 0;

        align-items: center;
    }

    .kgv6-globe-shell {
        width: min(79vw, 390px);
        height: min(79vw, 390px);

        min-width: 245px;
        min-height: 245px;

        max-width: 44vh;
        max-height: 44vh;
    }

    .kgv6-globe-guide {
        right: 50%;
        bottom: 0;

        transform:
            translate3d(50%, 8px, 0);

        white-space: nowrap;
    }

    .kgv6-globe-shell.is-ready .kgv6-globe-guide {
        transform:
            translate3d(50%, 0, 0);
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 390px) {
    .kgv6-line {
        font-size: 16vw;
    }

    .kgv6-title {
        font-size: clamp(29px, 9vw, 35px);
    }

    .kgv6-description {
        font-size: 12px;
    }

    .kgv6-globe-shell {
        width: min(76vw, 325px);
        height: min(76vw, 325px);

        min-width: 230px;
        min-height: 230px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    #kirst-global-presence-v6 {
        height: 100vh;
        min-height: 680px;
    }

    .kgv6-kinetic {
        display: none;
    }

    .kgv6-final-stage,
    .kgv6-content,
    .kgv6-globe-column {
        opacity: 1 !important;

        transform: none !important;
    }

    .kgv6-final-stage,
    .kgv6-globe-column {
        pointer-events: auto !important;
    }

    .kgv6-fallback-dots {
        animation: none;
    }
}


/* =========================================================
   SCREEN READER
========================================================= */

.kgv6-sr-only {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;

    border: 0 !important;
}
