/* "O nas": the story in the middle, an organiser portrait on each side. */

.about {
    --wave-height: clamp(28px, 3.6vw, 60px);
    --wave-color: var(--c-sand);
    position: relative;
    isolation: isolate;
    overflow-x: clip;
    padding: calc(var(--wave-height) + clamp(40px, 4.6vw, 76px)) 0 clamp(64px, 7vw, 112px);
    background: var(--c-ivory);
}

.about__inner { max-width: calc(1240px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr);
    grid-template-areas: "p1 c p2";
    align-items: center;
    column-gap: clamp(24px, 3vw, 56px);
}

/* ---------- centre column ---------- */

.about__center {
    --reveal-y: 16px;
    grid-area: c;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about__title { margin-top: .35em; font-size: clamp(3.3125rem, 6.4vw, 6.625rem); line-height: 1.05; }

.about__text {
    max-width: 29em;
    margin: clamp(20px, 2vw, 30px) 0 0;
    font-size: clamp(1rem, 1.3vw, 1.2188rem);
    line-height: 1.6;
    color: var(--c-ink-soft);
    text-wrap: pretty;
}

.about__quote {
    margin: clamp(22px, 2.4vw, 36px) 0 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2.125rem, 3.3vw, 3.375rem);
    line-height: 1.1;
    color: var(--c-accent);
}

.about__btn { margin-top: clamp(22px, 2.4vw, 34px); }
.about__btn svg { transition: transform .3s; }
.about__btn:hover svg { transform: translateX(4px); }

/* ---------- organisers ---------- */

.organiser {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: start;
    text-align: center;
}

.organiser--1 { --reveal-x: -28px; --reveal-y: 26px; --reveal-delay: .35s; grid-area: p1; }
.organiser--2 { --reveal-x: 28px; --reveal-y: 26px; --reveal-delay: .5s; grid-area: p2; }

.organiser__figure { display: flex; flex-direction: column; align-items: center; width: 100%; margin: 0; }
.organiser__portrait { position: relative; isolation: isolate; width: 100%; max-width: 300px; }
.organiser__frame { position: relative; margin: 0 14px 14px; }

.organiser__photo {
    --frame-bg: var(--c-ivory);
    --frame-shadow: 0 24px 40px -26px rgba(80, 30, 25, .45);
    position: relative;
    overflow: hidden;
    aspect-ratio: .78;
    border-radius: 22px;
    background: #E4D6C6;
    transform: translateZ(0);
}

/* frames point outwards: the left portrait's goes down-left */
.organiser--1 .organiser__photo { --frame-x: -14px; }

.organiser__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }


.organiser__name {
    margin: clamp(16px, 1.6vw, 22px) 0 0;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.875rem, 2.6vw, 2.625rem);
    line-height: 1.05;
    color: var(--c-accent);
    text-wrap: balance;
}

.organiser__role {
    margin: .7em 0 0;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--c-ink-2);
}

.organiser__bio {
    max-width: 26em;
    margin: clamp(16px, 1.6vw, 22px) 0 0;
    font-size: clamp(0.9688rem, 1.15vw, 1.0938rem);
    line-height: 1.6;
    color: var(--c-ink-soft);
    text-wrap: pretty;
}

/* first name above the bio, only once the bios move below both portraits */
.organiser__bio-name { display: none; }

/* ---------- responsive ---------- */

/* tablet: text first, then the organisers side by side */
@media (max-width: 1000px) {
    .about__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "c c" "p1 p2";
        align-items: start;
        row-gap: clamp(44px, 7vw, 64px);
        column-gap: clamp(18px, 4vw, 40px);
    }

    .about__center { max-width: 640px; margin: 0 auto; }
    .organiser__portrait { max-width: 280px; }
}

/* phone: two small portraits side by side, both bios underneath */
@media (max-width: 520px) {
    .about__grid {
        grid-template-areas: "c c" "f1 f2" "b1 b1" "b2 b2";
        row-gap: 0;
        column-gap: 14px;
    }

    .about__center { margin-bottom: 44px; }

    .organiser { --reveal-x: 0; display: contents; }
    .organiser--1 .organiser__figure { grid-area: f1; }
    .organiser--2 .organiser__figure { grid-area: f2; }
    .organiser--1 .organiser__bio { grid-area: b1; margin-top: 30px; }
    .organiser--2 .organiser__bio { grid-area: b2; margin-top: 18px; }

    .organiser__frame { margin: 0 8px 8px; }
    .organiser__photo { --frame-x: 8px; --frame-y: 8px; }
    .organiser--1 .organiser__photo { --frame-x: -8px; }
    .organiser__name { font-size: clamp(1.375rem, 6.4vw, 1.75rem); }
    .organiser__role { font-size: 0.75rem; letter-spacing: .16em; }
    .organiser__bio { justify-self: center; max-width: none; text-align: center; }

    .organiser__bio-name {
        display: block;
        margin-bottom: 4px;
        font-family: var(--font-serif);
        font-weight: 600;
        font-size: 1.3125rem;
        color: var(--c-accent);
    }
}
