/* =========================================================
   ENGINEERING DOSSIER
   Main stylesheet
   ========================================================= */

:root {
    --ink: #111318;
    --ink-soft: #242830;
    --paper: #f6f7f8;
    --surface: #ffffff;
    --muted: #e9ecef;
    --line: #d8dde3;
    --text: #1d2128;
    --text-soft: #606873;
    --text-light: #f6f7f8;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: var(--paper);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(var(--max-width), calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 1000;
    background: white;
    color: black;
    padding: 10px 14px;
}

.skip-link:focus {
    left: 10px;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(17, 19, 24, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-layout {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-photo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: cover;
    object-position: center 34%;
    border-radius: 50%;
    border: 1px solid #58606b;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    color: white;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.brand-role {
    color: #aeb6c1;
    font-size: 0.67rem;
    letter-spacing: 0.18em;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.navigation a {
    position: relative;
    color: #c9ced5;
    font-size: 0.86rem;
}

.navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 1px;
    background: white;
    transition: width 160ms ease;
}

.navigation a:hover,
.navigation a:focus-visible {
    color: white;
}

.navigation a:hover::after,
.navigation a:focus-visible::after {
    width: 100%;
}

.menu-button {
    display: none;
    background: transparent;
    color: white;
    border: 1px solid #58606b;
    padding: 8px 12px;
}

/* GENERAL */

.section {
    padding: 110px 0;
}

.section-dark {
    background: var(--ink);
    color: var(--text-light);
}

.section-muted {
    background: var(--muted);
}

.section-number {
    margin: 0 0 14px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #68717c;
}

.section-number.light {
    color: #9ea7b1;
}

.eyebrow {
    margin: 0 0 18px;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: #aeb6c1;
}

.eyebrow.dark {
    color: #59616c;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.12;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    letter-spacing: -0.045em;
}

h3 {
    font-size: 1.25rem;
}

.body-copy p {
    color: var(--text-soft);
}

.lead {
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    color: var(--text) !important;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.5fr);
    gap: 90px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 55px;
}

.section-heading > p {
    max-width: 480px;
    margin-bottom: 6px;
    color: var(--text-soft);
}


.photo-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.68fr);
    align-items: center;
}

.heading-description {
    max-width: 580px;
    margin: 24px 0 0;
    color: var(--text-soft);
}

.section-photo,
.experience-photo {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
}

.section-photo img,
.experience-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-photo-landscape {
    aspect-ratio: 3 / 2;
}

.section-photo-portrait {
    width: min(100%, 360px);
    justify-self: end;
    aspect-ratio: 2 / 3;
}

.experience-intro {
    display: flex;
    flex-direction: column;
}

.experience-photo {
    margin-top: 34px;
    aspect-ratio: 3 / 2;
    border-color: #3b424b;
}

/* HERO */

.hero {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    padding: 90px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(260px, 0.65fr);
    gap: 70px;
    align-items: center;
}

.hero h1 {
    max-width: 900px;
    margin-bottom: 30px;
    font-size: clamp(3.2rem, 7vw, 6.8rem);
    letter-spacing: -0.065em;
}

.hero h1 span {
    color: #b6bec8;
}

.hero-description {
    max-width: 720px;
    margin-bottom: 0;
    color: #bdc4cd;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 38px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    transition:
        transform 150ms ease,
        background 150ms ease,
        border-color 150ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: white;
    color: var(--ink);
}

.button-secondary {
    border-color: #5b626c;
    color: white;
}

.button-secondary:hover {
    border-color: white;
}

.button-dark {
    background: var(--ink);
    color: white;
}

.hero-panel {
    padding: 28px;
    border: 1px solid #3a414a;
    background: #242830;
}

.panel-label {
    margin-bottom: 24px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #aeb6c1;
}

.quick-facts {
    margin: 0;
}

.quick-facts > div {
    padding: 16px 0;
    border-top: 1px solid #404750;
}

.quick-facts dt {
    margin-bottom: 4px;
    color: #959ea9;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.quick-facts dd {
    margin: 0;
    color: white;
    font-size: 0.95rem;
}

.panel-note {
    margin: 22px 0 0;
    color: #8f98a4;
    font-size: 0.8rem;
}

/* ABOUT */

.principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 48px;
}

.principle {
    border-top: 2px solid var(--ink);
    padding-top: 18px;
}

.principle > span {
    font-size: 0.72rem;
    font-weight: 800;
    color: #7a828d;
}

.principle h3 {
    margin: 14px 0 10px;
}

.principle p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.profile-portrait {
    width: min(100%, 320px);
    margin: 28px 0 0;
    padding: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 20px 40px rgba(17, 19, 24, 0.08);
}

.profile-portrait img {
    display: block;
    width: 100%;
    height: auto;
}

.projects-heading-with-photo {
    align-items: start;
}

.heading-media-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 520px;
}

.heading-media-stack > p {
    margin: 0;
    color: var(--text-soft);
}

.projects-section-photo {
    height: 500px;
    max-width: 600px;
}

.projects-section-photo img {
    object-position: center 80%;
}

.skills-section-photo {
    width: min(100%, 330px);
    justify-self: end;
    aspect-ratio: 3 / 4;
}

.skills-section-photo img {
    object-position: center 28%;
}

/* PROJECTS */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.project-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid #d5d9de;
}

/*
 * Repeating project-card layout:
 *   1 wide card
 *   2 half-width cards
 *   repeat...
 *
 * Every 1st, 4th, 7th, 10th... project automatically spans both columns.
 * All project cards keep the same image-on-top structure.
 */
.featured-project {
    display: block;
}

.project-card:nth-child(3n + 1) {
    grid-column: 1 / -1;
}

.project-card:nth-child(3n + 1) .project-visual {
    min-height: 360px;
    height: 360px;
}

.project-visual {
    min-height: 360px;
    display: grid;
    place-items: center;
    padding: 30px;
    background:
        linear-gradient(90deg, transparent 49.6%, rgba(255,255,255,0.08) 50%),
        linear-gradient(transparent 49.6%, rgba(255,255,255,0.08) 50%),
        #252a31;
    background-size: 44px 44px;
    color: #aeb5be;
}

.project-visual.compact {
    min-height: 240px;
}

.project-visual span {
    padding: 10px 12px;
    border: 1px solid #58606a;
    background: rgba(17, 19, 24, 0.72);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.project-content {
    padding: 34px;
}

.project-content h3 {
    margin-bottom: 16px;
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
}

.project-content p {
    color: var(--text-soft);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    color: #6d7580;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.tag-list li {
    padding: 6px 9px;
    background: #edf0f2;
    border: 1px solid #dfe3e7;
    font-size: 0.73rem;
}

.text-link {
    display: inline-block;
    margin-top: 26px;
    font-weight: 800;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--ink);
}

/* CASE STUDY */

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.case-study-grid article {
    min-height: 220px;
    padding: 30px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: white;
}

.case-study-grid article > span {
    color: #737b86;
    font-size: 0.72rem;
    font-weight: 800;
}

.case-study-grid h3 {
    margin: 38px 0 12px;
}

.case-study-grid p {
    color: var(--text-soft);
    font-size: 0.92rem;
}

/* EXPERIENCE */

.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 28px;
    padding: 32px 0;
    border-top: 1px solid #3b424b;
}

.timeline-item:first-child {
    padding-top: 32px;
    border-top: 1px solid #3b424b;
}

.timeline-date {
    color: #9da6b0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.timeline-item h3 {
    margin-bottom: 6px;
    color: white;
    font-size: 1.4rem;
}

.timeline-company {
    margin-bottom: 14px;
    color: #b4bdc7;
    font-size: 0.9rem;
}

.timeline-item:last-child {
    padding-bottom: 32px;
    border-bottom: 1px solid #3b424b;
}

.timeline-item p:last-child {
    margin-bottom: 0;
    color: #aeb6c0;
}

/* SKILLS */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.skills-grid article {
    padding: 26px;
    background: white;
    border: 1px solid var(--line);
}

.skills-grid h3 {
    min-height: 54px;
    margin-bottom: 22px;
}

.skills-grid ul {
    margin: 0;
    padding-left: 18px;
    color: var(--text-soft);
}

.skills-grid li + li {
    margin-top: 8px;
}

/* CONTACT */

.contact-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 90px;
    align-items: start;
}

.contact-layout > div:first-child > p:last-child {
    max-width: 580px;
    margin-top: 24px;
    color: var(--text-soft);
}

.contact-card {
    padding: 30px;
    background: white;
    border: 1px solid #d0d5da;
}

.contact-card > div {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.contact-card span {
    color: #69717c;
    font-size: 0.8rem;
}

.contact-card strong {
    text-align: right;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.contact-card .button {
    width: 100%;
    margin-top: 26px;
}

.security-note {
    padding: 24px 0;
    background: #dfe4e8;
    border-top: 1px solid #ccd2d7;
}

.security-note p {
    margin: 0;
    color: #535b65;
    font-size: 0.82rem;
}

/* FOOTER */

.site-footer {
    padding: 26px 0;
    background: #0d0f13;
    color: #8d96a1;
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-layout p {
    margin: 0;
    font-size: 0.75rem;
}

/* RESPONSIVE */

@media (max-width: 920px) {
    .split-layout,
    .hero-grid,
    .contact-layout,
    .photo-heading {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card:nth-child(3n + 1) {
        grid-column: auto;
    }

    .case-study-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .principles {
        grid-template-columns: 1fr;
    }

    .section-photo-portrait {
        width: min(100%, 420px);
        justify-self: start;
    }

    .projects-heading-with-photo {
        display: grid;
        grid-template-columns: 1fr;
    }

    .heading-media-stack {
        max-width: 100%;
    }

    .projects-section-photo,
    .skills-section-photo {
        width: min(100%, 520px);
        justify-self: start;
    }
}


@media (max-width: 720px) {
    .section {
        padding: 78px 0;
    }

    .header-layout {
        min-height: 68px;
    }

    .brand-photo {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .brand-name {
        font-size: 0.72rem;
    }

    .brand-role {
        font-size: 0.58rem;
    }

    .menu-button {
        display: block;
    }

    .navigation {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 20px;
        background: var(--ink);
        border-bottom: 1px solid #3a414a;
    }

    .navigation.is-open {
        display: flex;
    }

    .navigation a {
        padding: 12px 0;
        border-bottom: 1px solid #333a43;
    }

    .navigation a::after {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 78px 0;
    }

    .hero h1 {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .section-heading {
        display: block;
    }

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

    .case-study-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contact-card > div {
        flex-direction: column;
    }

    .contact-card strong {
        text-align: left;
    }

    .footer-layout {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Portfolio project-card photography */
.project-visual.project-photo {
    padding: 0;
    overflow: hidden;
}

.project-visual.project-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.featured-project .project-visual.project-photo img {
    object-position: center bottom;
}'

/* WHO AM I */

.who-heading {
    align-items: end;
}

.who-intro {
    max-width: 540px;
    color: #b4bdc7 !important;
}

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

.personal-card {
    padding: 30px;
    background: var(--ink-soft);
    border: 1px solid #3b424b;
}

.personal-card > span {
    color: #8f99a5;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.personal-card h3 {
    margin: 28px 0 14px;
    color: white;
    font-size: 1.35rem;
}

.personal-card p {
    margin-bottom: 0;
    color: #aeb6c0;
}

/* SOFTWARE & TOOLS */

.software-intro {
    max-width: 540px;
    color: var(--text-soft);
}

/* SOFTWARE SECTION IMAGE */

.software-heading .software-intro {
    margin: 24px 0 0;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.software-card {
    min-height: 210px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 2px solid var(--ink);
}

.software-card h3 {
    margin: 0 0 24px;
    font-size: 1.15rem;
}

.software-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.software-card li {
    padding: 9px 0;
    border-top: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 0.92rem;
}

.software-card li:first-child {
    border-top: 0;
    padding-top: 0;
}

/* Keep the expanded navigation comfortable on medium-width screens. */

@media (max-width: 1080px) and (min-width: 721px) {
    .header-layout {
        gap: 20px;
    }

    .navigation {
        gap: 15px;
    }

    .navigation a {
        font-size: 0.78rem;
    }

    .brand-role {
        display: none;
    }
}

@media (max-width: 920px) {
    .personal-grid {
        grid-template-columns: 1fr;
    }
}

/* WHO AM I PHOTOS */

.who-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.who-photo {
    height: 1000px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #3b424b;
    background: var(--ink-soft);
}

.who-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@media (max-width: 720px) {
    .who-photo-grid {
        grid-template-columns: 1fr;
    }

    .who-photo {
        height: 380px;
    }
}

/* PROJECT ACCESS REQUEST */

.project-access-button {
    appearance: none;
    padding: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}

.project-access-button:hover,
.project-access-button:focus-visible {
    opacity: 0.72;
}

.project-access-note {
    max-width: 440px;
    margin: 10px 0 0;
    color: #7a828d !important;
    font-size: 0.76rem;
    line-height: 1.55;
}

.access-dialog {
    width: min(760px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
}

.access-dialog::backdrop {
    background: rgba(8, 10, 14, 0.78);
    backdrop-filter: blur(3px);
}

.access-dialog-shell {
    position: relative;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 38px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.access-dialog-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 1.45rem;
    line-height: 1;
}

.access-dialog-header {
    padding-right: 48px;
    margin-bottom: 28px;
}

.access-dialog-header h2 {
    margin: 8px 0 12px;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.access-dialog-description {
    max-width: 620px;
    margin: 0;
    color: var(--text-soft);
}

.access-form {
    display: grid;
    gap: 20px;
}

.access-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.access-field,
.access-project-field {
    display: grid;
    gap: 7px;
}

.access-field label,
.access-project-field label {
    color: #555e69;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.access-field input,
.access-project-field input,
.access-field textarea {
    width: 100%;
    border: 1px solid #cbd1d7;
    border-radius: 0;
    background: white;
    color: var(--text);
    padding: 12px 13px;
    outline: none;
}

.access-project-field input {
    background: var(--muted);
    font-weight: 700;
}

.access-field textarea {
    resize: vertical;
    min-height: 120px;
}

.access-field input:focus,
.access-field textarea:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 2px rgba(17, 19, 24, 0.1);
}

.access-privacy,
.access-preview-note,
.access-form-status {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.55;
}

.access-privacy {
    color: var(--text-soft);
}

.access-preview-note {
    padding: 12px 14px;
    background: #f1f3f5;
    border-left: 3px solid #7b848f;
    color: #565f69;
}

.access-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.access-form-actions .button {
    border-radius: 0;
    cursor: pointer;
}

.access-cancel {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
}

.access-form-status {
    min-height: 1.25em;
    color: #44505c;
    font-weight: 700;
}

body.access-dialog-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .access-dialog-shell {
        padding: 30px 20px 24px;
    }

    .access-form-grid {
        grid-template-columns: 1fr;
    }

    .access-dialog-header {
        padding-right: 38px;
    }
}



/* Project 01 lower crop + taller wide card */
.project-card:nth-child(3n + 1) .project-visual.project-photo {
    min-height: 410px !important;
    height: 410px !important;
}

.featured-project .project-visual.project-photo img[src*="02-robotics-computer-workstation-wide.jpg"] {
    object-position: center center !important;
}

/* EXPERIENCE BULLET LISTS */

.timeline-bullets {
    margin: 0;
    padding-left: 20px;
    color: #aeb6c0;
}

.timeline-bullets > li + li {
    margin-top: 9px;
}

.timeline-bullets ul {
    margin-top: 8px;
    padding-left: 20px;
}

.timeline-bullets ul li + li {
    margin-top: 6px;
}

.timeline-bullets li::marker {
    color: #9da6b0;
}

/* EXPERIENCE — HEADER/PHOTO ABOVE FULL-WIDTH TIMELINE */

#experience .split-layout {
    display: block;
}

#experience .experience-intro {
    display: grid;
    grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 64px;
    align-items: start;
    margin-bottom: 64px;
}

#experience .experience-intro > .section-number {
    grid-column: 1;
    grid-row: 1;
}

#experience .experience-intro > .eyebrow {
    grid-column: 1;
    grid-row: 2;
}

#experience .experience-intro > h2 {
    grid-column: 1;
    grid-row: 3;
    margin-bottom: 0;
}

#experience .experience-photo {
    grid-column: 2;
    grid-row: 1 / 4;
    width: 100%;
    margin: 0;
    aspect-ratio: 16 / 9;
}

#experience .timeline {
    width: 100%;
}

#experience .timeline-item {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 36px;
}

@media (max-width: 920px) {
    #experience .experience-intro {
        display: block;
        margin-bottom: 50px;
    }

    #experience .experience-photo {
        width: 100%;
        margin-top: 32px;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 720px) {
    #experience .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* EXPERIENCE INTRO DESCRIPTION */

#experience .experience-description {
    grid-column: 1;
    grid-row: 4;
    max-width: 520px;
    margin: 18px 0 0;
    color: #aeb6c0;
    line-height: 1.7;
}

#experience .experience-photo {
    grid-row: 1 / 5;
}

@media (max-width: 920px) {
    #experience .experience-description {
        max-width: 620px;
        margin-top: 16px;
    }
}

/* EXPERIENCE DESCRIPTION — KEEP DIRECTLY UNDER HEADING */

#experience .experience-intro {
    grid-template-rows: auto auto auto 1fr;
}

#experience .experience-description {
    align-self: start;
    margin-top: 14px;
}

