/* Homepage architecture reveal: dimensions follow the Gridmorphic reference. */
@font-face {
    font-family: "SL Arch Outfit";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../img/arch-reveal/outfit-400.ttf") format("truetype");
}

@font-face {
    font-family: "SL Arch Outfit";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../img/arch-reveal/outfit-800.ttf") format("truetype");
}

.sl-arch-reveal {
    --sl-arch-pink: #f096d5;
    --sl-arch-purple: #8f6bef;
    --sl-arch-cyan: #28d3dd;
    --sl-arch-stage-height: calc(100vh - 80px);
    position: relative;
    isolation: isolate;
    width: 100%;
    margin: 0;
    color: #121212;
    background-color: #f9e6f5;
    background-image: linear-gradient(rgba(255, 255, 255, .76), rgba(255, 255, 255, .76)), linear-gradient(115deg, var(--sl-arch-pink) 0%, var(--sl-arch-purple) 32%, var(--sl-arch-cyan) 65%, var(--sl-arch-pink) 100%);
    background-size: 100% 100%, 250% 100%;
    background-position: 0 0, calc(var(--sl-arch-progress, 0) * 100%) 50%;
    font-family: "SL Arch Outfit", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    text-align: left;
}

@supports (height: 100svh) {
    .sl-arch-reveal { --sl-arch-stage-height: calc(100svh - 80px); }
}

.sl-arch-reveal,
.sl-arch-reveal *,
.sl-arch-reveal *::before,
.sl-arch-reveal *::after { box-sizing: border-box; }

.sl-arch-reveal[hidden] { display: none !important; }

.sl-arch-reveal .sl-arch-shell {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    padding: 2rem;
}

/* The shell provides edge spacing; do not add empty viewport-sized scroll space. */
.sl-arch-reveal .sl-arch-spacer { display: none; }

/* Paired rows remain readable when scripts are unavailable or motion is reduced. */
.sl-arch-reveal .sl-arch-layout {
    display: block;
    column-gap: 60px;
    justify-content: space-between;
    max-width: 1100px;
    margin-inline: auto;
}

.sl-arch-reveal .sl-arch-copy { display: block; }
.sl-arch-reveal .sl-arch-media { display: none; }

.sl-arch-reveal .sl-arch-info {
    display: grid;
    grid-template-columns: minmax(300px, 356px) minmax(0, 540px);
    align-items: center;
    justify-content: space-between;
    column-gap: 60px;
    width: 100%;
    min-height: var(--sl-arch-stage-height);
    margin: 0;
    padding: 0;
}

.sl-arch-reveal .sl-arch-content { width: 100%; min-width: 0; padding: 20px 0; overflow-wrap: anywhere; }

.sl-arch-reveal .sl-arch-title {
    margin: 0;
    color: #121212;
    font-family: inherit;
    font-size: 42px;
    font-weight: 800;
    line-height: normal;
    letter-spacing: -.84px;
    text-transform: none;
}

.sl-arch-reveal .sl-arch-description {
    margin: 6px 0 28px;
    padding: 0;
    color: rgba(18, 18, 18, .8);
    font-family: inherit;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -.54px;
}

.sl-arch-reveal .sl-arch-link {
    display: flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    margin: 0;
    padding: 16px 18px;
    border: 0;
    border-radius: 40px;
    color: #121212;
    font: inherit;
    letter-spacing: normal;
    text-decoration: none;
    text-transform: none;
}

.sl-arch-reveal .sl-arch-link:hover { color: #121212; text-decoration: none; }
.sl-arch-reveal .sl-arch-link:focus-visible { outline: 2px solid #121212 !important; outline-offset: 4px; }
.sl-arch-reveal .sl-arch-link > svg { display: block; flex: 0 0 11px; width: 11px; height: 11px; }

.sl-arch-reveal .sl-arch-image {
    position: relative;
    align-self: center;
    width: 100%;
    height: 400px;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
}

.sl-arch-reveal .sl-arch-image > img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    border: 0;
    object-fit: cover;
    object-position: center;
}

/* Enhancement changes only this section; native scrolling owns the page. */
@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
    .sl-arch-reveal[data-arch-enhanced="true"] .sl-arch-layout {
        display: flex;
        align-items: flex-start;
    }

    .sl-arch-reveal[data-arch-enhanced="true"] .sl-arch-copy {
        display: flex;
        flex: 1 1 356px;
        flex-direction: column;
        min-width: 300px;
        max-width: 356px;
    }

    .sl-arch-reveal[data-arch-enhanced="true"] .sl-arch-info { grid-template-columns: minmax(0, 1fr); }

    .sl-arch-reveal[data-arch-enhanced="true"] .sl-arch-media {
        position: sticky;
        top: 80px;
        display: block;
        flex: 1 1 540px;
        width: 100%;
        max-width: 540px;
        height: var(--sl-arch-stage-height);
    }

    .sl-arch-reveal[data-arch-enhanced="true"] .sl-arch-image {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
    }

}

@media (max-width: 900px) {
    .sl-arch-reveal .sl-arch-layout,
    .sl-arch-reveal .sl-arch-info { column-gap: 30px; }
}

@media (max-width: 768px) {
    .sl-arch-reveal .sl-arch-layout { display: block; }
    .sl-arch-reveal .sl-arch-info { display: flex; flex-direction: column; align-items: stretch; min-height: 0; gap: 20px; padding: 20px 0; }
    .sl-arch-reveal .sl-arch-content { padding: 0; }
    .sl-arch-reveal .sl-arch-image { position: static; height: 360px; margin-bottom: 20px; transform: none; }
}

@media (max-width: 560px) {
    .sl-arch-reveal .sl-arch-shell { padding: 10px; }
    .sl-arch-reveal .sl-arch-info { gap: 12px; }
    .sl-arch-reveal .sl-arch-image { height: 280px; border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .sl-arch-reveal .sl-arch-image > img { clip-path: none !important; object-position: center !important; }
}
