/*
 * EventFlow Labs — About presentation
 *
 * Page-scoped presentation extracted from components.css.
 * Shared by the canonical institutional About routes.
 */

/* ==========================================================
   ABOUT — INTRODUCTION
   ----------------------------------------------------------
   Full institutional statement followed by human evidence.
   Geometry supplied by EFDS Gutenberg Alignment Bridge.
   ========================================================== */

.ef-about-intro {
    box-sizing: border-box;

    padding-inline: var(--ef-page-gutter);
    padding-bottom: clamp(2rem, 3vw, 3.5rem);
}


/*
 * All direct children share the same institutional axis.
 */
.ef-about-intro > * {
    width: 100%;

    max-width: var(--ef-container-xl) !important;

    margin-left: auto !important;
    margin-right: auto !important;
}


/* Coordinate */

.ef-about-intro > .ef-type-system {
    margin-top: 0;
    margin-bottom: clamp(1.25rem, 2vw, 2rem);
}


/* Main statement */

.ef-about-intro__title {
    max-width: 20ch !important;

    margin-top: 0 !important;
    margin-bottom: clamp(2.25rem, 3.5vw, 3.75rem) !important;

    font-size: clamp(2.75rem, 4.1vw, 4.5rem);
    line-height: 0.96;
    letter-spacing: -0.05em;

    font-weight: 500;

    text-wrap: balance;
}


/*
 * Second editorial axis.
 *
 * Copy: compact explanatory column.
 * Media: dominant evidence column.
 */
.ef-about-intro__grid {
    display: flex !important;

    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: center !important;

    width: 100% !important;
    max-width: var(--ef-container-xl) !important;

    gap: clamp(2.5rem, 4vw, 4.5rem) !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


/* Copy */

.ef-about-intro__content {
    flex: 0 0 36% !important;

    width: 36% !important;
    max-width: 36% !important;

    min-width: 0;
}

.ef-about-intro__content .ef-type-lead {
    max-width: 22ch;

    margin-top: 0;
    margin-bottom: clamp(1.25rem, 2vw, 2rem);

    font-size: clamp(1.35rem, 1.8vw, 1.8rem);
    line-height: 1.35;
}

.ef-about-intro__content > p:not(.ef-type-lead) {
    max-width: 36rem;

    font-size: clamp(1rem, 1.15vw, 1.125rem);
    line-height: 1.65;
}

.ef-about-intro__content > p:not(.ef-type-lead) + p {
    margin-top: var(--ef-space-5);
}


/* Photograph */

.ef-about-intro__visual {
    flex: 1 1 64% !important;

    width: auto !important;
    max-width: none !important;

    min-width: 0;
}

.ef-about-intro__image {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
}

.ef-about-intro__image img {
    display: block;

    width: 100% !important;
    max-width: none !important;

    height: auto;

    aspect-ratio: 16 / 10;

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

    border-radius: 0;
}


/* Responsive */

@media (max-width: 64rem) {

    .ef-about-intro__title {
        max-width: 13ch !important;

        font-size: clamp(3.25rem, 9vw, 5.5rem);
    }

    .ef-about-intro__grid {
        flex-direction: column !important;

        align-items: stretch !important;

        gap: var(--ef-space-7) !important;
    }

    .ef-about-intro__content,
    .ef-about-intro__visual {
        flex: 0 0 100% !important;

        width: 100% !important;
        max-width: 100% !important;
    }

    .ef-about-intro__content {
        max-width: var(--ef-measure-body) !important;
    }
}


/* ABOUT PHOTO TREATMENT — START */

/*
 * Integrates the engineering photograph into the institutional
 * surface without card styling, glow or decorative framing.
 */

.ef-about-intro__image {
    overflow: hidden !important;
    border-radius: 1rem !important;
}

.ef-about-intro__image img {
    border-radius: inherit !important;

    opacity: 0.88;

    filter:
        saturate(0.90)
        contrast(0.96);

    transition:
        opacity 240ms ease,
        filter 240ms ease,
        transform 320ms ease;
}

.ef-about-intro__image:hover img {
    opacity: 1;

    filter:
        saturate(1)
        contrast(1);

    transform: scale(1.008);
}

/* ABOUT PHOTO TREATMENT — END */

/* ==========================================================
   ABOUT — ENGINEERING PROCESS / 3 × 2 GRID
   ========================================================== */

/*
 * The six process items are stored as alternating H3 + P
 * siblings. CSS Grid places each pair into one logical cell.
 */

.ef-about-section:has(> .ef-type-system:first-child:nth-last-child(n+1))
{
}

/*
 * Target the section containing "02 / ENGINEERING PROCESS"
 * through its process sequence structure.
 */
.ef-about-section .ef-process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(3rem, 5vw, 5.5rem) clamp(2.5rem, 4vw, 4.5rem);
}


/* Fallback for the current Gutenberg sibling structure */
.ef-about-section:has(> .ef-type-system + h2 + p + h3) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(2.5rem, 4vw, 4.5rem);
    row-gap: clamp(3rem, 5vw, 5.5rem);
}


/*
 * Intro elements span the complete grid width.
 */
.ef-about-section:has(> .ef-type-system + h2 + p + h3)
> .ef-type-system,
.ef-about-section:has(> .ef-type-system + h2 + p + h3)
> h2,
.ef-about-section:has(> .ef-type-system + h2 + p + h3)
> h2 + p {
    grid-column: 1 / -1;
}


/*
 * Pair each heading with the paragraph immediately following it.
 * Each H3 opens a cell and the following paragraph remains in
 * the same column.
 */

.ef-about-section:has(> .ef-type-system + h2 + p + h3)
> h3 {
    margin: 0 !important;
}

.ef-about-section:has(> .ef-type-system + h2 + p + h3)
> h3 + p {
    margin-top: -2.25rem !important;
    align-self: start;
}


/*
 * Explicit positions.
 */

.ef-about-section:has(> .ef-type-system + h2 + p + h3)
> h3:nth-of-type(2),
.ef-about-section:has(> .ef-type-system + h2 + p + h3)
> h3:nth-of-type(2) + p {
    grid-column: 1;
}

.ef-about-section:has(> .ef-type-system + h2 + p + h3)
> h3:nth-of-type(3),
.ef-about-section:has(> .ef-type-system + h2 + p + h3)
> h3:nth-of-type(3) + p {
    grid-column: 2;
}

.ef-about-section:has(> .ef-type-system + h2 + p + h3)
> h3:nth-of-type(4),
.ef-about-section:has(> .ef-type-system + h2 + p + h3)
> h3:nth-of-type(4) + p {
    grid-column: 3;
}

.ef-about-section:has(> .ef-type-system + h2 + p + h3)
> h3:nth-of-type(5),
.ef-about-section:has(> .ef-type-system + h2 + p + h3)
> h3:nth-of-type(5) + p {
    grid-column: 1;
}

.ef-about-section:has(> .ef-type-system + h2 + p + h3)
> h3:nth-of-type(6),
.ef-about-section:has(> .ef-type-system + h2 + p + h3)
> h3:nth-of-type(6) + p {
    grid-column: 2;
}

.ef-about-section:has(> .ef-type-system + h2 + p + h3)
> h3:nth-of-type(7),
.ef-about-section:has(> .ef-type-system + h2 + p + h3)
> h3:nth-of-type(7) + p {
    grid-column: 3;
}


/* Mobile */
@media (max-width: 64rem) {

    .ef-about-section:has(> .ef-type-system + h2 + p + h3) {
        grid-template-columns: 1fr;
    }

    .ef-about-section:has(> .ef-type-system + h2 + p + h3)
    > h3,
    .ef-about-section:has(> .ef-type-system + h2 + p + h3)
    > h3 + p {
        grid-column: 1 !important;
    }
}

