/* About page — shares global navigation and footer styles with Home. */
.about-wrap {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--pad);
}

.about-hero {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 90px;
    padding-top: 180px;
    padding-bottom: 110px;
}

.about-bio h1 {
    font-size: clamp(56px, 7vw, 99px);
    line-height: 1.02;
    white-space: normal;
    margin: 28px 0 32px;
    font-weight: 400;
}

.about-bio h1 em {
    font-style: normal;
    color: var(--gold);
}

.about-bio p:not(.eyebrow) {
    max-width: 43ch;
    color: var(--muted);
    line-height: 1.85;
}

.about-bio .about-lead {
    font-size: 20px;
    color: var(--cream);
}

.about-link {
    display: inline-block;
    margin-top: 22px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gold);
    font-size: 14px;
}

.about-link:hover {
    color: var(--gold);
}

.image-slot {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 16px;
    background: #203547;
    color: #b5c4cf;
    padding: 28px;
}

.image-slot span {
    font-size: 11px;
    letter-spacing: .12em;
}

.image-slot small {
    max-width: 25ch;
    font-size: 13px;
    line-height: 1.7;
}

.about-portrait {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 4px;
}

.about-services {
    background: var(--cream);
    color: var(--navy);
    padding-block: 95px;
}

.about-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    margin: 25px 0 55px;
}

.about-section-heading h2,
.about-invite h2 {
    font-size: clamp(36px, 4.5vw, 62px);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: 1.15;
    margin: 0;
}

.about-section-heading>p {
    max-width: 27ch;
    line-height: 1.7;
    color: var(--muted);
}

.about-services .about-section-heading>p {
    color: #536273;
}

.about-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.about-service {
    padding-top: 25px;
    border-top: 1px solid #07142633;
}

.about-service>span {
    font-size: 11px;
    color: #867025;
}

.about-service h3 {
    font-size: 25px;
    font-weight: 400;
    margin: 22px 0 12px;
}

.about-service p {
    font-size: 14px;
    line-height: 1.8;
    color: #536273;
}

.about-journey {
    padding-block: 110px;
}

.journey-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.journey-entry {
    position: relative;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 50px;
    padding-bottom: 55px;
}

.journey-entry::before {
    content: '';
    position: absolute;
    top: 9px;
    bottom: -9px;
    left: 198px;
    width: 1px;
    background: #9aa8ba44;
}

.journey-entry:last-child::before {
    bottom: 55px;
}

.journey-entry::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 194px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
}

.journey-date span {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: .1em;
}

.journey-date p {
    font-size: 14px;
    color: var(--muted);
}

.journey-card {
    padding: 28px;
    border: 1px solid #9aa8ba33;
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 28px;
}

.journey-text h3 {
    font-size: 25px;
    font-weight: 400;
    margin: 0 0 15px;
}

.journey-text p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.journey-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.about-invite {
    padding-bottom: 100px;
    text-align: center;
}

.about-invite h2 {
    margin: 25px 0 30px;
}

@media(max-width:700px) {
    .about-hero {
        grid-template-columns: 1fr;
        gap: 42px;
        padding-top: 130px;
        padding-bottom: 70px;
    }

    .about-portrait {
        max-width: 400px;
    }

    .about-section-heading {
        display: block;
    }

    .about-section-heading>p {
        margin-top: 22px;
    }

    .about-service-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .about-services {
        padding-block: 70px;
    }

    .journey-entry {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-left: 27px;
        padding-bottom: 36px;
    }

    .journey-entry::before {
        left: 4px;
    }

    .journey-entry::after {
        left: 0;
    }

    .journey-entry:last-child::before {
        bottom: 36px;
    }

    .journey-card {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .about-journey {
        padding-block: 75px;
    }
}


/* Compact timeline cards expand as a whole; the rail tracks reading progress. */
.journey-card {
    display: block;
    padding: 24px 28px;
    transition: padding 650ms ease, border-color 400ms, background 400ms;
}

.journey-text p {
    margin-bottom: 0;
}

.journey-photo-reveal {
    display: grid;
    grid-template-rows: 1fr;
    opacity: 1;
    transition: grid-template-rows 650ms cubic-bezier(.22, 1, .36, 1), opacity 500ms ease;
}

.journey-photo-clip {
    min-height: 0;
    overflow: hidden;
}

.journey-photo-clip .journey-photo {
    display: block;
    margin-top: 24px;
    max-height: 300px;
}

.journey-photo-clip .image-slot {
    display: flex;
}

.journey-entry.timeline-enabled:not(.is-expanded) .journey-photo-reveal {
    grid-template-rows: 0fr;
    opacity: 0;
}

.journey-entry.is-expanded .journey-card {
    padding: 32px;
    border-color: #d4af3770;
    background: #0c1c2d;
}

.journey-entry::before {
    background: linear-gradient(to bottom, var(--gold) 0%, var(--gold) var(--rail-fill, 0%), #9aa8ba44 var(--rail-fill, 0%), #9aa8ba44 100%);
}

.journey-entry::after {
    background: var(--navy);
    border: 1px solid #9aa8ba88;
    transition: background 300ms, border-color 300ms, box-shadow 300ms;
}

.journey-entry.is-reached::after {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px #d4af3715;
}

.journey-entry.is-reached .journey-date p {
    color: var(--cream);
}

@media(hover:hover) {
    .journey-entry:hover .journey-card {
        border-color: var(--gold);
    }

    .journey-entry:hover::after {
        border-color: var(--gold);
        box-shadow: 0 0 0 4px #d4af371f;
    }
}

@media(max-width:700px) {

    .journey-card,
    .journey-entry.is-expanded .journey-card {
        padding: 22px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .journey-entry.timeline-enabled .journey-photo-reveal {
        grid-template-rows: 1fr;
        opacity: 1;
        transition: none;
    }

    .journey-card {
        transition: none;
    }
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-top: 28px;
}

.about-actions .about-link {
    margin-top: 0;
}

.about-cv {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cv-button {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--gold);
    color: var(--cream);
    background: transparent;
    border-radius: 30px;
    padding: 13px 24px;
    font-size: 14px;
    text-decoration: none;
    transition: background 200ms, color 200ms;
}

.cv-button:not(:disabled):hover {
    background: var(--gold);
    color: var(--navy);
}

.cv-button:disabled {
    cursor: default;
    opacity: .65;
}

.about-cv small {
    color: var(--muted);
    font-size: 11px;
}

/* Split introduction: title left, biography and actions right. */
.about-hero {
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 7vw, 90px);
    align-items: center;
}

.about-intro-details>p {
    max-width: 43ch;
    color: var(--muted);
    line-height: 1.85;
}

.about-intro-details>.about-lead {
    font-size: 20px;
    color: var(--cream);
    margin-top: 0;
}

@media(max-width:700px) {
    .about-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-bio h1 {
        margin-bottom: 0;
    }

    .about-intro-details>p {
        max-width: none;
    }
}

.journey-date .journey-location {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
}

.journey-date .location-label {
    display: block;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .06em;
    margin-bottom: 3px;
}

/* Both expanded layouts: description only, or description followed by a photo. */
/* Institution is metadata; expanded text has its own reading area. */
.journey-text h3 {
    margin-bottom: 12px;
    line-height: 1.3;
}

.journey-text .editable-note {
    margin: 0;
    color: #c8b77d;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: .015em;
}

.journey-detail {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid #9aa8ba26;
    color: #b9c3cf;
    font-size: 15px;
    line-height: 1.8;
}

@media(max-width:700px) {
    .journey-detail {
        font-size: 14px;
        margin-top: 18px;
        padding-top: 16px;
    }
}

.journey-photo-clip img.journey-photo {
    display: block;
    width: 100%;
    height: clamp(200px, 30vw, 300px);
    object-fit: cover;
    object-position: center;
    margin-top: 20px;
}