/* ==========================================================
   Chang Tong Core 2.0
   UI-015 · About page
========================================================== */

.ct-page-about,
.ct-page-about #page,
.ct-page-about #content,
.ct-page-about #content > .ast-container,
.ct-about-page {
    background-color: var(--ct-color-background);
}

.ct-about-page {
    overflow: clip;
}

.ct-about-page .ct-container {
    width: min(100% - (2 * var(--ct-space-lg)), var(--ct-width-container));
    margin-inline: auto;
}

.ct-about-intro,
.ct-about-section,
.ct-about-curry,
.ct-about-next {
    padding-block: var(--ct-space-2xl);
}

.ct-about-intro,
.ct-about-curry {
    background-color: var(--ct-color-secondary);
}

.ct-about-intro__grid,
.ct-about-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: var(--ct-space-xl);
}

.ct-about-split--media-first {
    grid-template-areas: "media content";
}

.ct-about-split--media-first .ct-about-section__content {
    grid-area: content;
}

.ct-about-split--media-first .ct-about-media {
    grid-area: media;
}

.ct-about-intro__content,
.ct-about-section__content {
    min-width: 0;
}

.ct-about-page__kicker,
.ct-about-person__role {
    margin-bottom: var(--ct-space-sm);
    color: var(--ct-color-primary-dark);
    font-size: var(--ct-fs-sm);
    font-weight: var(--ct-fw-bold);
    letter-spacing: .12em;
    line-height: var(--ct-lh-tight);
    text-transform: uppercase;
}

.ct-about-intro .ct-about-page__kicker,
.ct-about-curry .ct-about-page__kicker {
    color: var(--ct-color-primary);
}

.ct-about-intro h1,
.ct-about-intro__lead,
.ct-about-intro__motto,
.ct-about-curry h2,
.ct-about-curry__intro > p:not(.ct-about-page__kicker) {
    color: var(--ct-color-text-white);
}

.ct-about-intro h1 {
    max-width: 13ch;
}

.ct-about-intro__lead {
    max-width: var(--ct-width-content);
    font-size: var(--ct-fs-lg);
}

.ct-about-intro__motto {
    display: grid;
    gap: var(--ct-space-xs);
    margin-bottom: 0;
    padding-left: var(--ct-space-md);
    border-left: var(--ct-border-thick) solid var(--ct-color-primary);
}

.ct-about-intro__motto q {
    font-family: var(--ct-font-heading);
    font-size: var(--ct-fs-2xl);
    font-weight: var(--ct-fw-bold);
}

.ct-about-intro__motto span {
    color: var(--ct-color-border);
    font-size: var(--ct-fs-sm);
}

.ct-about-media,
.ct-about-curry-card {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: var(--ct-radius-xl);
    background-color: var(--ct-color-surface);
    box-shadow: var(--ct-shadow-md);
}

.ct-about-media img,
.ct-about-curry-card img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.ct-about-media img {
    aspect-ratio: 4 / 3;
}

.ct-about-media--portrait img {
    aspect-ratio: 3 / 2;
    object-position: center 38%;
}

.ct-about-section--surface {
    background-color: var(--ct-color-surface);
}

.ct-about-section__content p:last-child,
.ct-about-section__heading p:last-child,
.ct-about-person p:last-child,
.ct-about-curry__intro p:last-child {
    margin-bottom: 0;
}

.ct-about-section__heading,
.ct-about-curry__intro {
    max-width: var(--ct-width-content);
    margin-bottom: var(--ct-space-xl);
}

.ct-about-people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ct-space-lg);
}

.ct-about-people-media {
    max-width: 900px;
    margin: 0 auto var(--ct-space-xl);
    overflow: hidden;
    border: var(--ct-border-thin) solid var(--ct-color-border);
    border-radius: var(--ct-radius-xl);
    background-color: var(--ct-color-surface);
    box-shadow: var(--ct-shadow-md);
}

.ct-about-people-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.ct-about-person {
    min-width: 0;
    padding: var(--ct-space-lg);
    border: var(--ct-border-thin) solid var(--ct-color-border);
    border-radius: var(--ct-radius-xl);
    background-color: var(--ct-color-surface);
    box-shadow: var(--ct-shadow-md);
}

.ct-about-person h3 {
    margin-bottom: var(--ct-space-md);
}

.ct-about-curry__gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ct-space-lg);
}

.ct-about-curry-card img {
    aspect-ratio: 4 / 3;
}

.ct-about-curry-card figcaption {
    padding: var(--ct-space-md);
    color: var(--ct-color-text);
    font-size: var(--ct-fs-sm);
    font-weight: var(--ct-fw-semibold);
}

.ct-about-next__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ct-space-lg);
}

.ct-about-next-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: var(--ct-space-md);
    padding: var(--ct-space-lg);
    border: var(--ct-border-thin) solid var(--ct-color-border);
    border-radius: var(--ct-radius-xl);
    background-color: var(--ct-color-surface);
    box-shadow: var(--ct-shadow-md);
    color: var(--ct-color-text);
    text-decoration: none;
    transition:
        border-color var(--ct-transition-fast),
        box-shadow var(--ct-transition-fast),
        transform var(--ct-transition-fast);
}

.ct-about-next-card:hover {
    border-color: var(--ct-color-primary);
    box-shadow: var(--ct-shadow-lg);
    color: var(--ct-color-text);
    transform: translateY(-2px);
}

.ct-about-next-card:focus-visible {
    outline: var(--ct-border-thick) solid var(--ct-color-accent);
    outline-offset: var(--ct-space-xs);
}

.ct-about-next-card__title {
    color: var(--ct-color-secondary);
    font-family: var(--ct-font-heading);
    font-size: var(--ct-fs-3xl);
    font-weight: var(--ct-fw-bold);
    line-height: var(--ct-lh-tight);
}

.ct-about-next-card__action {
    display: inline-flex;
    min-height: var(--ct-button-height);
    align-items: center;
    gap: var(--ct-space-sm);
    margin-top: auto;
    padding-inline: var(--ct-space-md);
    border-radius: var(--ct-radius-lg);
    background-color: var(--ct-color-primary);
    color: var(--ct-color-black);
    font-weight: var(--ct-fw-semibold);
}

@media (max-width: 991px) {
    .ct-about-intro__grid,
    .ct-about-split {
        gap: var(--ct-space-lg);
    }

    .ct-about-next__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .ct-about-page .ct-container {
        width: min(100% - (2 * var(--ct-space-md)), var(--ct-width-container));
    }

    .ct-about-intro,
    .ct-about-section,
    .ct-about-curry,
    .ct-about-next {
        padding-block: var(--ct-space-xl);
    }

    .ct-about-intro__grid,
    .ct-about-split,
    .ct-about-people,
    .ct-about-curry__gallery {
        grid-template-columns: 1fr;
    }

    .ct-about-split--media-first {
        grid-template-areas:
            "content"
            "media";
    }

    .ct-about-intro h1 {
        max-width: none;
    }

    .ct-about-person,
    .ct-about-next-card {
        padding: var(--ct-space-md);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ct-about-next-card {
        transition: none;
    }

    .ct-about-next-card:hover {
        transform: none;
    }
}
