/* ==========================================================================
   Who We Are: people-led editorial extension of the Peru Summit design system
   ========================================================================== */

/* The page keeps the shared white editorial canvas beneath the global header. */
.who-page {
    overflow: clip;
    background-color: #ffffff;
}

/* Team-led hero photography benefits from a slightly higher focal point. */
.who-page .tour-category-hero-image {
    object-position: center 42%;
}

/* ==========================================================================
   Company introduction
   ========================================================================== */

/* The opening composition balances the company statement with a single place-led image. */
.who-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: center;
}

/* The introduction remains a readable column rather than spanning the full canvas. */
.who-intro-copy {
    max-width: 660px;
}

/* The main image carries location and atmosphere without decorative masking. */
.who-intro-media {
    position: relative;
    min-height: 600px;
    margin: 0;
    overflow: hidden;
    border-radius: 7px;
    background-color: #e9e7e2;
}

.who-intro-media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The caption anchors the local-company message directly to the photograph. */
.who-intro-media figcaption {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: grid;
    gap: 0.2rem;
    max-width: 390px;
    padding: 1rem 1.15rem;
    border-radius: 7px;
    background-color: rgba(23, 23, 23, 0.88);
    color: #ffffff;
}

.who-intro-media figcaption strong {
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
}

.who-intro-media figcaption span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ==========================================================================
   Operating proof strip
   ========================================================================== */

/* Three concise operating truths create a dark transition between story sections. */
.who-proof {
    background-color: #171717;
    color: #ffffff;
}

.who-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.who-proof p {
    display: grid;
    align-content: center;
    min-height: 168px;
    gap: 0.45rem;
    padding: 2rem clamp(1.25rem, 3vw, 3rem);
    margin: 0;
}

.who-proof p + p {
    box-shadow: inset 1px 0 rgba(255, 255, 255, 0.16);
}

.who-proof strong {
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
}

.who-proof span {
    max-width: 34ch;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==========================================================================
   Company origin
   ========================================================================== */

/* Warm paper distinguishes the personal origin story from operational content. */
.who-origin {
    background-color: #fffaf5;
}

.who-origin-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(2.5rem, 8vw, 8rem);
    align-items: center;
}

/* Founder photography uses a direct portrait crop with a quiet caption. */
.who-origin-media {
    margin: 0;
}

.who-origin-media img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 7px;
    object-fit: cover;
}

.who-origin-media figcaption {
    margin-top: 0.75rem;
    color: #818181;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* The company motto is separated through tone and spacing, never a left rail. */
.who-origin-quote {
    padding: 1.35rem 1.5rem;
    margin: 2rem 0 0;
    border-radius: 7px;
    background-color: #ffffff;
}

.who-origin-quote p {
    margin: 0;
    color: #171717;
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 500;
    line-height: 1.25;
}

/* ==========================================================================
   Team profiles
   ========================================================================== */

/* The team section uses a calm neutral surface behind interactive profiles. */
.who-team {
    background-color: #f7f7f5;
}

.who-team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

/* Horizontal profile cards keep faces and biographies equally prominent. */
.who-team-card {
    display: grid;
    min-height: 330px;
    grid-template-columns: minmax(190px, 0.84fr) minmax(0, 1.16fr);
    overflow: hidden;
    border-radius: 7px;
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.07);
    transition: box-shadow 320ms cubic-bezier(0.16, 1, 0.3, 1), transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.who-team-card-media {
    position: relative;
    min-height: 330px;
    margin: 0;
    overflow: hidden;
    border-radius: 7px;
    background-color: #e8e6e1;
}

.who-team-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 320ms ease, transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
}

.who-team-card-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.4rem, 2.5vw, 2rem);
}

.who-team-card-role {
    margin: 0 0 0.75rem;
    color: #b90201;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    line-height: 1.35;
    text-transform: uppercase;
}

.who-team-card h3 {
    margin: 0;
    color: #171717;
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.who-team-card-bio {
    margin: 1rem 0 0;
    color: #5d5d5d;
    font-size: 0.92rem;
    line-height: 1.65;
}

/* Fine-pointer hover adds useful depth and keeps movement inside the profile. */
@media (hover: hover) and (pointer: fine) {
    .who-team-card:hover {
        box-shadow: 0 20px 42px rgba(17, 24, 39, 0.14);
        transform: translateY(-6px);
    }

    .who-team-card:hover .who-team-card-media img {
        filter: saturate(1.05) contrast(1.02);
        transform: scale(1.045);
    }
}

/* ==========================================================================
   Company values
   ========================================================================== */

/* The dark values section reads as a working code rather than a card collection. */
.who-values {
    background-color: #171717;
    color: #ffffff;
}

.who-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 5rem);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.who-value-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 1rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.who-value-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background-color: #f10100;
    color: #ffffff;
    font-size: 1rem;
}

.who-value-item h3 {
    margin: 0;
    color: #ffffff;
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.2;
}

.who-value-item p {
    margin: 0.55rem 0 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ==========================================================================
   Responsible travel
   ========================================================================== */

/* Responsibility pairs field evidence with a concise operating ledger. */
.who-responsibility-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: center;
}

.who-responsibility-media {
    margin: 0;
}

.who-responsibility-media img {
    display: block;
    width: 100%;
    min-height: 560px;
    border-radius: 7px;
    object-fit: cover;
}

.who-responsibility-media figcaption {
    margin-top: 0.75rem;
    color: #818181;
    font-size: 0.8rem;
}

.who-responsibility-list {
    border-top: 1px solid #e8e8e4;
}

.who-responsibility-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid #e8e8e4;
}

.who-responsibility-item > span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background-color: #f7f7f5;
    color: #b90201;
}

.who-responsibility-item h3 {
    margin: 0;
    color: #171717;
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
}

.who-responsibility-item p {
    margin: 0.45rem 0 0;
    color: #5d5d5d;
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ==========================================================================
   Operating credentials
   ========================================================================== */

/* The licensing section uses warm paper to close the proof sequence calmly. */
.who-licensed {
    background-color: #fffaf5;
}

.who-licensed-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: start;
}

.who-licensed-copy {
    position: sticky;
    top: 90px;
}

.who-licensed-copy > p {
    max-width: 54ch;
    margin: -1.4rem 0 0;
    color: #5d5d5d;
    font-size: 0.95rem;
    line-height: 1.75;
}

.who-credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

/* Credential cards keep document previews and labels in one verifiable unit. */
.who-credential-card {
    overflow: hidden;
    margin: 0;
    border-radius: 7px;
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.07);
    transition: box-shadow 280ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.who-credential-card > a {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 7px;
    background-color: #f7f7f5;
}

.who-credential-card img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 1rem;
    object-fit: contain;
    transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.who-credential-card figcaption {
    display: grid;
    gap: 0.35rem;
    padding: 1.2rem;
}

.who-credential-card strong {
    color: #171717;
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.25;
}

.who-credential-card span {
    color: #5d5d5d;
    font-size: 0.82rem;
    line-height: 1.55;
}

/* Fine-pointer hover lifts only actionable document cards. */
@media (hover: hover) and (pointer: fine) {
    .who-credential-card:hover {
        box-shadow: 0 18px 38px rgba(17, 24, 39, 0.13);
        transform: translateY(-5px);
    }

    .who-credential-card:hover img {
        transform: scale(1.025);
    }
}

/* ==========================================================================
   Responsive layouts
   ========================================================================== */

@media (max-width: 1199.98px) {
    /* Medium desktops stack the longer team biographies into a single profile column. */
    .who-team-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .who-team-card {
        grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
    }
}

@media (max-width: 991.98px) {
    /* Tablet layouts place narrative media before or after copy in one readable column. */
    .who-intro-grid,
    .who-origin-grid,
    .who-responsibility-grid,
    .who-licensed-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .who-intro-copy,
    .who-origin-copy,
    .who-responsibility-copy,
    .who-licensed-copy {
        max-width: 760px;
    }

    .who-origin-media {
        max-width: 680px;
    }

    .who-values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .who-licensed-copy {
        position: static;
    }
}

@media (max-width: 767.98px) {
    /* Mobile condenses proof points while keeping every item independently readable. */
    .who-proof-grid,
    .who-values-grid,
    .who-credentials-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .who-proof p {
        min-height: 0;
        padding: 1.5rem 0;
    }

    .who-proof p + p {
        box-shadow: inset 0 1px rgba(255, 255, 255, 0.16);
    }

    .who-intro-media {
        min-height: 470px;
    }

    .who-team-card {
        min-height: 0;
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .who-team-card-media {
        min-height: 300px;
    }

    .who-team-card-copy {
        padding: 1.25rem;
    }

    .who-team-card h3 {
        font-size: 1.4rem;
    }

    .who-team-card-bio {
        font-size: 0.86rem;
        line-height: 1.55;
    }

    .who-responsibility-media img {
        min-height: 360px;
    }
}

@media (max-width: 479.98px) {
    /* Narrow phones stack each profile so biographies never compete with the portrait width. */
    .who-team-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .who-team-card-media {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .who-team-card-copy {
        padding: 1.35rem;
    }

    .who-team-card-bio {
        font-size: 0.9rem;
    }

    .who-value-item,
    .who-responsibility-item {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 0.85rem;
    }

    .who-value-icon,
    .who-responsibility-item > span {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Reduced-motion visitors receive immediate states without card or image travel. */
    .who-team-card,
    .who-team-card-media img,
    .who-credential-card,
    .who-credential-card img {
        transition: none;
    }
}
