/* A-Frame story page (2026 revision). Plain CSS so it does not depend on the purged Tailwind build. */

/* Hero and closing banner run full width; the story column stays at 1280px */
.af-page {
    background: #fff;
    color: #3f3f46;
    font-family: 'Nunito Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 300;
}

.af-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero */
.af-hero {
    position: relative;
    background: #0d1420;
}

/* Taller than the image's natural 56vw, but capped at 60vw so the side crop leaves margin around the baked-in title */
.af-hero img {
    display: block;
    width: 100%;
    height: min(100vh, 60vw);
    object-fit: cover;
    object-position: 50% 45%;
}

/* Story + models */
.af-story {
    display: grid;
    gap: 2.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

.af-eyebrow,
.af-story__subtitle {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #52525b;
}

.af-story__title {
    margin: 0.75rem 0 1.25rem;
    font-size: clamp(1.875rem, 3.2vw, 2.5rem);
    font-weight: 300;
    line-height: 1.2;
    color: #3f3f46;
}

.af-story__body {
    margin-top: 1.75rem;
    max-width: 38rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #52525b;
}

.af-story__body p {
    margin: 0 0 1.1em;
}

.af-models {
    display: flex;
    flex-direction: column;
    max-width: 560px;
}

.af-model {
    position: relative;
    margin: 0;
    padding: 1.5rem 0;
}

.af-model + .af-model {
    border-top: 1px solid #a1a1aa;
}

.af-model__drawing {
    display: block;
    width: 72%;
    height: auto;
}

.af-model__label {
    position: absolute;
    top: 1.75rem;
    right: 0;
    width: 28%;
    max-width: 110px;
    height: auto;
}

/* Closing banner: the wording is baked into the image, so the HTML copy only shows on phones */
.af-rooted {
    position: relative;
    background: #0b0f14;
}

/* Phones: show only the tipi side of the image (right 30%), clear of the baked-in wording */
.af-rooted__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.2 / 1;
}

.af-rooted__media img {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    max-width: none;
    height: 100%;
}

.af-rooted__text {
    margin: 0;
    padding: 1.75rem 1.5rem 0.5rem;
    font-size: 0.8rem;
    line-height: 1.9;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e4e4e7;
}

@media (min-width: 900px) {
    .af-rooted__media {
        aspect-ratio: auto;
    }

    .af-rooted__media img {
        position: static;
        width: 100%;
        height: auto;
    }

    .af-rooted__text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

@media (min-width: 900px) {
    .af-story {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        gap: 1.5rem;
        padding: 3rem 2.5rem 3.5rem;
    }

    .af-models {
        max-width: none;
        padding-top: 1rem;
    }
}

.af-nowrap {
    white-space: nowrap;
}
