
/* =========================
   Steps and story layout
   ========================= */

.roof-story {
	position: relative;
    isolation: isolate;
    overflow: visible;
}

.step {
    min-height: var(--roof-height, 80vh);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
	
    position: relative;
    z-index: 1;
	
	padding: 5rem 0 1rem;
}

.mobile-roof-spacer {
    display: none;
}

/* =========================
   Decorative background logo
   ========================= */

.geregie-logo-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.geregie-logo-background .logo {
    position: fixed;
    top: 0%;
    left: -25%;
    width: 70%;
    height: 100vh;

    object-fit: contain;
    object-position: right center;

    opacity: 0.15;
    filter: grayscale(100%);
    pointer-events: none;
}


/* =========================
   Roof and annotations
   Desktop: >= 1200px
   ========================= */

.roof-column {
    position: relative;
    min-height: 100vh;
}

.roof-sticky {
    position: absolute;
    top: 0;
	left: 0;

	width: 100%;
    height: 100vh;
	z-index: 5;

    display: flex;
    align-items: flex-start;
    justify-content: center;
	
	overflow: hidden;
	
}

.roof-wrapper {
    position: relative;
    width: 100%;
	height: 100%;
    overflow: hidden;
}

.roof {
    display: block;
    width: 100%;
	height: 100%;
    object-fit: cover;
    object-position: center top;
}

.annotation {
    position: absolute;
	inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: top center;

    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.annotation.show {
    opacity: 1;
}


/* =========================
   Medium screens: 768–1199px
   ========================= */

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

    .roof-sticky {
        overflow: hidden;
    }

    .roof-wrapper {
        width: auto;
        height: 100vh;
        flex-shrink: 0;
    }

    .roof {
        width: auto;
        height: 100vh;
        max-width: none;
        object-fit: contain;
    }

    .annotation {
        width: auto;
        height: 100%;
        max-width: none;
        object-fit: contain;
    }
}


/* =========================
   Mobile: < 768px
   ========================= */

@media (max-width: 767.98px) {
	
	
	/* Shared grid layout */
	.roof-story .row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .roof-story .row > div {
        width: 100%;
        grid-column: 1;
    }

    .roof-story .row > div:has(.roof-sticky) {
        grid-row: 1;
        position: static;
    }
	
	.roof-story .row > div:has(.step-column) {
        grid-row: 1;
        align-self: stretch;
    }
	
	/* Roof */
	.roof-column {
        min-height: 50svh;
    }

    .roof-sticky {
		height: 50vh;
		height: 50svh;
    }

    .roof-wrapper {
		width: 100%;
        height: auto;
        flex-shrink: 1;
    }

    .roof,
    .annotation {
        width: 100%;
        height: auto;
		max-height: none;
        object-fit: unset;
        object-position: top center;
    }
	/* Steps */
	.mobile-roof-spacer {
        display: block;
		height: 50vh;
        height: 50svh;
		flex-shrink: 0;
		
    }
		
	.step-column {
        display: flex;
        flex-direction: column;
    }
	.step {
		flex: 0 0 auto;
		min-height: 50vh;
		min-height: 50svh;
		height: auto;
		
        box-sizing: border-box;

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

    }
		
	
    /* Avoid oversized decorative branding on phones */
    .geregie-logo-background .logo {
        width: 100%;
        left: -35%;
        opacity: 0.08;
    }
	
	.border-mobile-bottom {
        border-bottom: 1px solid var(--bs-primary) !important;
    }
}
