/*
 * O nas: intro and cover photo, the story, values (.benefits, in
 * components.css), the founders, photos from the evenings and a burgundy
 * "join us" box.
 */

.about-page {
    position: relative;
    isolation: isolate;
    overflow-x: clip;
    padding-bottom: clamp(90px, 9vw, 150px);
    background: var(--c-sand);
}

.about-page__inner {
    position: relative;
    z-index: 2;
    max-width: calc(1180px + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.about-page__section { margin-top: clamp(90px, 10vw, 150px); }

.about-page__title {
    margin: .35em 0 0;
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(2.75rem, 4.4vw, 4.1875rem);
    line-height: 1.05;
    color: var(--c-accent);
    text-wrap: balance;
}

.about-page__sub {
    max-width: 36em;
    margin: .9em auto 0;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    color: var(--c-ink-2);
    text-wrap: balance;
}

.about-page__text { margin: 1em 0 0; font-size: clamp(1rem, 1.2vw, 1.125rem); color: var(--c-ink-soft); text-wrap: pretty; }

/* ---------- intro and cover ---------- */

.about-intro {
    max-width: 860px;
    margin: clamp(28px, 4.4vw, 64px) auto 0;
    text-align: center;
}

.about-intro__title {
    margin: .3em 0 0;
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(3.4375rem, 6.9vw, 6.875rem);
    line-height: 1.05;
    color: var(--c-accent);
    text-wrap: balance;
}

.about-intro__lead { max-width: 36em; margin: .9em auto 0; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); text-wrap: balance; }

.about-cover,
.about-story__photo,
.team-member__photo {
    --frame-shadow: 0 24px 40px -26px rgba(80, 30, 25, .45);
    margin: 0 14px 14px 0;
    overflow: hidden;
    border-radius: 22px;
    background: #E3D6C6;
}

.about-cover img,
.about-story__photo img,
.team-member__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.about-cover { margin-top: clamp(40px, 5vw, 72px); aspect-ratio: 2.3; }
.about-cover img { object-position: 50% 38%; }

/* ---------- story ---------- */

.about-story {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
}

.about-story__photo { aspect-ratio: .95; }
.about-story__photo img { object-position: 50% 45%; }

.about-story__quote {
    margin: clamp(22px, 2.4vw, 32px) 0 0;
    padding: 0 0 0 22px;
    border-left: 2px solid var(--c-gold);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.625rem, 2.4vw, 2.25rem);
    line-height: 1.2;
    color: var(--c-accent);
}

.about-page .benefit__title { font-size: clamp(1.625rem, 2vw, 1.875rem); }

/* ---------- founders: photo and text, alternating sides ---------- */

.team { display: grid; gap: clamp(60px, 7vw, 110px); margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; list-style: none; }

.team-member {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(36px, 5vw, 80px);
}

.team-member:nth-child(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.team-member:nth-child(even) .team-member__photo { order: 2; justify-self: end; }

.team-member__photo { width: 100%; max-width: 420px; aspect-ratio: .82; }

.team-member__name {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(2.375rem, 3.6vw, 3.375rem);
    line-height: 1;
    color: var(--c-accent);
}

.team-member__role {
    margin: 10px 0 0;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--c-ink-2);
}

.team-member__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }

.team-member__tags li {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--c-ivory);
    color: var(--c-accent);
    font-size: 0.875rem;
    box-shadow: inset 0 0 0 1px rgba(110, 20, 35, .2);
}

.team-member__quote {
    margin: 22px 0 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.375rem, 1.8vw, 1.625rem);
    line-height: 1.3;
}

/* ---------- photos from the evenings: the first one large ---------- */

.moments {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(0, clamp(150px, 16vw, 240px)));
    gap: clamp(10px, 1vw, 16px);
    margin: clamp(34px, 4vw, 56px) 0 0;
    padding: 0;
    list-style: none;
}

.moments li { overflow: hidden; border-radius: 16px; background: #E3D6C6; }
.moments li:first-child { grid-row: span 2; }
.moments img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* fewer photos than the five the grid is made for: one row */
.moments:not(.moments--5) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); grid-template-rows: clamp(180px, 20vw, 280px); }
.moments:not(.moments--5) li:first-child { grid-row: auto; }

.moments__cta { margin: clamp(24px, 2.6vw, 34px) 0 0; text-align: center; }

/* ---------- join us ---------- */

.about-join {
    position: relative;
    z-index: 2;
    max-width: calc(1180px + 2 * var(--gutter));
    margin: clamp(90px, 10vw, 150px) auto 0;
    padding: 0 var(--gutter);
}

.about-join__box {
    --eyebrow-color: var(--c-cream);
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 5vw, 72px) clamp(24px, 5vw, 72px);
    border-radius: 24px;
    text-align: center;
    color: var(--c-cream);
    background:
        radial-gradient(ellipse 70% 80% at 15% 20%, #7D1A2C 0, transparent 70%),
        radial-gradient(ellipse 50% 60% at 85% 80%, var(--c-accent-hover) 0, transparent 70%),
        var(--c-accent);
    box-shadow: 0 30px 60px -30px rgba(60, 10, 20, .6);
}

.about-join__box :focus-visible { outline-color: var(--c-cream); }
.about-join__box .about-page__title { color: var(--c-cream); }
.about-join__box > p:not(.eyebrow) { max-width: 34em; margin: .9em auto 0; font-size: clamp(1rem, 1.2vw, 1.125rem); color: var(--c-cream-2); }

.about-join__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(24px, 2.6vw, 34px); }

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

@media (min-width: 701px) and (max-width: 1180px) {
    .about-intro { padding: 0 clamp(40px, 8vw, 120px); }
}

@media (max-width: 860px) {
    .about-story,
    .team-member,
    .team-member:nth-child(even) { grid-template-columns: minmax(0, 1fr); }

    .team-member:nth-child(even) .team-member__photo { order: 0; justify-self: start; }
    .about-story__photo { max-width: 560px; aspect-ratio: 1.3; }
    .team-member__photo { max-width: 360px; }
    .about-cover { aspect-ratio: 1.6; }
}

@media (max-width: 640px) {
    .about-cover,
    .about-story__photo,
    .team-member__photo { --frame-x: 8px; --frame-y: 8px; margin-right: 8px; margin-bottom: 8px; }

    .about-cover { aspect-ratio: 1.25; }

    .moments.moments--5 { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: clamp(130px, 38vw, 180px); }
    .moments.moments--5 li:first-child { grid-row: auto; grid-column: span 2; }

    .about-join__buttons .btn { width: 100%; }
}
