/* PAGE */

.about-page {
    margin: 0;
    background: #fff;
    color: var(--ink, #4a4a4a);
    font-family: "Nunito", sans-serif;
}

.about-page,
.about-page * {
    box-sizing: border-box;
}

.about-page .about-main {
    --left-column: clamp(220px, 24vw, 320px);
    --column-gap: clamp(24px, 3vw, 46px);

    position: relative;
    isolation: isolate;
    width: min(calc(100% - 80px), 1200px);
    margin: 76px auto 100px;

    font-size: 17px;
    line-height: 1.5;
}

.about-page .about-main h1,
.about-page .about-main h2,
.about-page .about-main h3,
.about-page .about-main p {
    margin: 0;
}

.about-page .about-main img {
    display: block;
    max-width: 100%;
}

.about-page a:focus-visible,
.about-page button:focus-visible {
    outline: 2px solid var(--accent, #0bb08a);
    outline-offset: 5px;
}



/* SHARED INTRO AND JOURNEY COLUMNS */

.about-page .about-introduction,
.about-page .about-journey-layout {
    display: grid;
    grid-template-columns: var(--left-column) minmax(0, 1fr);
    gap: var(--column-gap);
    width: 100%;
    max-width: none;
}

.about-page .about-introduction {
    align-items: stretch;
}

.about-page .about-journey-layout {
    align-items: start;
}

/* INTRODUCTION */

.about-page .about-intro-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    font-size: 17px;
    font-weight: 400;
    text-align: left;
}

.about-page .about-intro-copy h1 {
    margin-bottom: 24px;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.3;
}

.about-page .about-intro-copy p {
    width: 100%;
    max-width: none;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
}

.about-page .about-intro-copy .about-intro-blurb {
    margin-top: 30px;
}

.about-page .about-education-line .about-berkeley-logo {
    display: inline-block;
    width: 28px;
    height: 28px;
    margin-left: 8px;
    object-fit: contain;
    vertical-align: middle;
}

.about-page .about-journey-link {
    display: grid;
    justify-items: center;
    align-self: flex-end;
    gap: 6px;
    margin-top: auto;
    padding-top: 30px;
    padding-bottom: 12px;
    color: var(--accent, #0bb08a);
    font-size: 17px;
    text-align: center;
    text-decoration: none;
    animation: about-link-float 2.6s ease-in-out infinite;
}

.about-page .about-journey-link > span {
    font-size: 28px;
    line-height: 1;
}

/* PHOTOS */

.about-page .about-photo {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    border-radius: 8px;
    background: #edf3f3;
}

.about-page .about-photo img:not([src]),
.about-page .about-photo img[src=""] {
    display: none;
}

.about-page .about-photo-label {
    padding: 16px;
    color: #7a8989;
    font-size: 13px;
    text-align: center;
}

.about-page .about-photo.has-image .about-photo-label {
    display: none;
}

.about-page .about-portrait {
    width: 100%;
    aspect-ratio: 400 / 453;
    overflow: hidden;
    border-radius: 28px;
    background: var(--mint-light, #d2f9ef);
}

.about-page .about-portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

/* MINI RÉSUMÉ */

.about-page .about-resume {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 50px;
    align-items: start;
    margin-top: 60px;
}

.about-page .about-resume-copy {
    min-width: 0;
}

.about-page .about-resume-group + .about-resume-group {
    margin-top: 38px;
}

.about-page .about-resume-group h2 {
    margin-bottom: 22px;
    font-size: 20px;
    font-weight: 700;
}

.about-page .about-experience-list {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-page .about-experience-list li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    font-size: 16px;
}

.about-page .about-company-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    font-weight: 800;
}

.about-page .about-company-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-page .about-date,
.about-page .about-muted {
    color: #969696;
}

.about-page .about-date {
    font-size: 14px;
    font-style: italic;
    white-space: nowrap;
}

.about-page .about-smiley {
    position: relative;
    width: 220px;
    aspect-ratio: 280 / 234;
    margin-top: 46px;
}

.about-page .about-smiley > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* JOURNEY */

.about-page .about-journey {
    width: 100%;
    max-width: none;
    margin: 150px 0 0;
    scroll-margin-top: 40px;
}

.about-page .about-main .about-journey-heading {
    width: auto;
    max-width: none;

    margin: 0 0 64px;
    margin-left: calc(var(--left-column) + var(--column-gap));

    font-size: clamp(24px, 2vw, 30px);
    font-weight: 600;
    font-style: italic;
    text-align: right;
    white-space: normal;
}

.about-page .about-graphic-stage {
    position: sticky;
    top: max(80px, calc(50vh - 150px));
    height: 300px;
    min-width: 0;
}

.about-page .about-chapters {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
}

.about-page .about-chapter {
    width: 100%;
    min-width: 0;
    min-height: 65svh;
    padding-bottom: 200px;
}

.about-page .about-chapter:last-child {
    padding-bottom: 80px;
}

.about-page .about-chapter > h3 {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    font-size: clamp(20px, 1.7vw, 25px);
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    text-wrap: wrap;
    white-space: normal;
}

.about-page .about-chapter-details {
    width: 100%;
    min-width: 0;
    margin-top: 26px;
}

.about-page .about-accent {
    width: 100%;
    max-width: none;
    color: var(--accent, #0bb08a);
    font-size: 18px;
    line-height: 1.55;
    text-align: left;
    text-wrap: wrap;
    white-space: normal;
}

/* PHOTO GROUPS */

.about-page .about-photo-pair,
.about-page .about-art-gallery {
    display: grid;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 10px;
}

.about-page .about-photo-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
}

.about-page .about-art-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* Preserve the full image proportions */

.about-page .about-photo-pair .about-photo,
.about-page .about-art-gallery .about-photo {
    display: block;
    width: 100%;
    aspect-ratio: auto;
    overflow: visible;
    background: transparent;
}

.about-page .about-photo-pair .about-photo img,
.about-page .about-art-gallery .about-photo img {
    position: static;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Empty placeholders */

.about-page .about-photo-pair .about-photo:not(.has-image),
.about-page .about-art-gallery .about-photo:not(.has-image) {
    display: grid;
    aspect-ratio: 4 / 5;
    background: #edf3f3;
}

/* Gentle tilts */

.about-page .about-photo-pair .about-photo:nth-child(1) {
    transform: rotate(-4deg);
}

.about-page .about-photo-pair .about-photo:nth-child(2) {
    transform: rotate(3deg);
}

.about-page .about-art-gallery .about-photo:nth-child(1) {
    transform: rotate(-3deg);
}

.about-page .about-art-gallery .about-photo:nth-child(2) {
    transform: rotate(2deg);
}

.about-page .about-art-gallery .about-photo:nth-child(3) {
    transform: rotate(2deg);
}

.about-page .about-art-gallery .about-photo:nth-child(4) {
    transform: rotate(-4deg);
}

.about-page .about-chapter-details .about-caption {
    width: 100%;
    max-width: none;
    margin: 20px 0 0;
    padding-inline: 10px;
    color: #969696;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

/* SELECTION BOXES */

.about-page .about-selection {
    position: absolute;
    inset: 0;
    border: 1px solid #a5a9a9;
}

.about-page .about-handle {
    position: absolute;
    width: 6px;
    height: 6px;
    border: 1px solid #a5a9a9;
    background: #fff;
    transform: translate(-50%, -50%);
}

.about-page .about-handle-tl { left: 0; top: 0; }
.about-page .about-handle-tr { left: 100%; top: 0; }
.about-page .about-handle-bl { left: 0; top: 100%; }
.about-page .about-handle-br { left: 100%; top: 100%; }

/* MORPHING GRAPHIC */

.about-page .about-morph {
    position: fixed;
    z-index: 0;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 450ms ease;
}

.about-page .about-morph.is-visible {
    opacity: 1;
}

.about-page .about-morph.is-floating {
    animation: about-graphic-float 4s ease-in-out infinite;
}

.about-page .about-morph-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.about-page .about-fallback-art {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ANIMATIONS */

@keyframes about-link-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -5px; }
}

@keyframes about-graphic-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -6px; }
}

/* REPEATABLE FADES */

.about-page .about-fade-pending {
    opacity: 0;
    transition: opacity 650ms ease;
}

.about-page .about-fade-pending.is-revealed {
    opacity: 1;
}

/* Keep chapter space while its content is hidden */

.about-page .about-chapter.about-fade-pending {
    opacity: 1;
    transition: none;
}

.about-page .about-chapter.about-fade-pending > h3,
.about-page .about-chapter.about-fade-pending
> .about-chapter-details {
    opacity: 0;
    pointer-events: none;
    transition: none;
}

.about-page .about-chapter.about-fade-pending.is-revealed > h3 {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 650ms ease;
}

.about-page .about-chapter.about-fade-pending.is-revealed
> .about-chapter-details {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 650ms ease 200ms;
}

.about-page .about-fade-pending:focus-within,
.about-page .about-chapter.about-fade-pending:focus-within > h3,
.about-page .about-chapter.about-fade-pending:focus-within
> .about-chapter-details {
    opacity: 1;
    pointer-events: auto;
}

/* TABLET */

@media (max-width: 1100px) {
    .about-page .about-main {
        --left-column: 220px;
        --column-gap: 30px;
        width: calc(100% - 56px);
    }

    .about-page .case-top-nav {
        gap: 8px;
    }

    .about-page .case-top-nav .nav-button {
        padding-inline: 18px;
    }

    .about-page .about-resume {
        grid-template-columns: minmax(0, 1fr) 160px;
        gap: 30px;
    }

    .about-page .about-smiley {
        width: 160px;
    }

    .about-page .about-experience-list li {
        grid-template-columns: 26px minmax(0, 1fr);
    }

    .about-page .about-date {
        grid-column: 2;
    }

    .about-page .about-art-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

/* SWITCH NAV BEFORE IT BECOMES CRAMPED */

@media (max-width: 900px) {
    .about-page .hero-nav.case-top-nav {
        display: none;
    }

    .about-page .mobile-navigation {
        display: block;
    }
}

/* MOBILE */

@media (max-width: 750px) {
    .about-page .about-main {
        --left-column: 90px;
        --column-gap: 20px;
        width: calc(100% - 40px);
        margin-top: 36px;
        margin-bottom: 50px;
    }

    .about-page .about-introduction {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-page .about-portrait {
        width: min(100%, 280px);
        margin-inline: auto;
    }

    .about-page .about-intro-copy h1 {
        margin-bottom: 20px;
        font-size: 28px;
    }

    .about-page .about-journey-link {
        margin-top: 32px;
        font-size: 15px;
    }

    .about-page .about-resume {
        grid-template-columns: minmax(0, 1fr) 90px;
        gap: 16px;
        margin-top: 54px;
    }

    .about-page .about-smiley {
        width: 90px;
    }

    .about-page .about-experience-list li {
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 8px;
        font-size: 14px;
    }

    .about-page .about-company-icon {
        width: 22px;
        height: 22px;
    }

    .about-page .about-date {
        font-size: 12px;
        white-space: normal;
    }

    .about-page .about-resume-group h2 {
        font-size: 18px;
    }

    .about-page .about-journey {
        margin-top: 90px;
    }

    .about-page .about-journey-heading {
        margin-bottom: 40px;
        font-size: 24px;
    }

    .about-page .about-graphic-stage {
        height: 180px;
        top: max(80px, calc(50vh - 90px));
    }

    .about-page .about-chapter {
        min-height: 55svh;
        padding-bottom: 120px;
    }

    .about-page .about-chapter:last-child {
        padding-bottom: 60px;
    }

    .about-page .about-chapter > h3 {
        font-size: 20px;
    }

    .about-page .about-chapter-details {
        margin-top: 20px;
    }

    .about-page .about-accent {
        font-size: 16px;
    }

    .about-page .about-photo-pair {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-page .about-art-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        padding: 6px;
    }

    .about-page .about-chapter-details .about-caption {
        font-size: 12px;
        padding-inline: 6px;
    }
}

/* VERY SMALL SCREENS */

@media (max-width: 380px) {
    .about-page .about-main {
        --left-column: 72px;
        --column-gap: 14px;
        width: calc(100% - 32px);
    }

    .about-page .about-resume {
        grid-template-columns: minmax(0, 1fr) 72px;
        gap: 12px;
    }

    .about-page .about-smiley {
        width: 72px;
    }

    .about-page .about-chapter > h3 {
        font-size: 18px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .about-page .about-fade-pending,
    .about-page .about-chapter.about-fade-pending > h3,
    .about-page .about-chapter.about-fade-pending
    > .about-chapter-details {
        opacity: 1;
        pointer-events: auto;
        transition: none;
    }

    .about-page .about-journey-link,
    .about-page .about-morph.is-floating {
        animation: none;
    }

    .about-page .about-morph {
        transition: none;
    }
}

.about-page .about-resume {
    grid-template-columns: minmax(0, 1fr);
}

.about-page .about-photo-pair {
    width: min(100%, 560px);
    margin-left: auto;
    margin-right: 0;
    gap: 30px;
}

.about-page .about-experience-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.about-page .about-experience-heading h2 {
    margin: 0;
}

.about-page .about-resume-button {
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--mint-light, #d2f9ef);
    color: var(--ink, #4a4a4a);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 180ms ease;
}

.about-page .about-resume-button:hover {
    background: var(--mint, #a8f5de);
}

.about-page .about-journey-link {
    align-self: flex-start;
    justify-items: center;
    text-align: left;
}

.about-page .about-main .about-journey-heading {
    margin-bottom: 10px;
}

.about-page .about-main .about-scroll-hint {
    margin: 0 0 54px;
    color: #a5aaaa;
    font-size: 15px;
    text-align: right;
}

.about-page .about-scroll-hint span {
    display: inline-block;
    margin-left: 5px;
    animation: about-link-float 2.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .about-page .about-scroll-hint span {
        animation: none;
    }
}

.about-page .about-education-line .about-berkeley-logo {
    display: inline-block;
    width: 28px;
    height: 28px;
    margin-left: 8px;
    object-fit: contain;
    vertical-align: middle;
}