/* Portfolio styles. Sections follow the existing cascade order.
   Mobile, hover, focus, and reduced-motion rules are intentional. */
/* Base page colors and default font */
body {
    font-family: 'Manrope', sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f4ef;
    color: #364152;
}

/* Site header: name, underline, and subtitle */
header {
    background: #ffffff;
    color: #1f2937;
    text-align: center;
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

header h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 3.0rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: #1e3a5f;
}

header h1::after {
    content: "";
    display: block;
    width: 150px;
    height: 3px;
    background: #2f4f7a;
    margin: 16px auto 0;
    border-radius: 2px;
}

header p {
    margin-top: 0.8rem;
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

/* Navigation: tab buttons and their active/hover states */
nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: #8ea8c3;
    padding: 0.9rem;
    flex-wrap: wrap;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

nav button {
    background: none;
    border: none;
    color: #e5edf5;
    padding: 11px 22px;
    cursor: pointer;
    font-size: 15px;
    margin: 4px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

nav button:hover,
nav button.active {
    background: rgba(255, 255, 255, 0.85);
    color: #2f4156;
}

/* Main layout: centered content and JavaScript-controlled tab visibility */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem 3rem;
}

section {
    display: none;
    padding: 1rem 0;
}

section.active {
    display: block;
}

/* Shared typography: headings, paragraphs, and lists */
h2 {
    border-bottom: 2px solid #dbeafe;
    padding-bottom: 12px;
    margin-top: 0;
    color: #1e3a5f;
    font-size: 1.7rem;
    font-weight: 700;
}

h3 {
    color: #111827;
    font-weight: 650;
    font-family: Georgia, serif;
}

h4 {
    color: #111827;
    font-weight: 600;
}

p {
    line-height: 1.7;
    color: #374151;
}

ul {
    line-height: 1.8;
}

/* Resume: profile layout and portrait */
.profile-layout {
    display: flex;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
}

.profile-layout img {
    width: 300px;
    height: 350px;
    overflow: hidden;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(47, 65, 86, 0.15);
}

/* Shared button links: primary appearance and hover movement */
.button-link {
    display: inline-flex;
    background: #1e3a5f;
    color: #ffffff;
    padding: 11px 18px;
    text-decoration: none;
    margin-top: 10px;
    font-weight: 600;
    transition: all 0.25s ease;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(111, 143, 179, 0.18);
    border-radius: 22px;
    box-shadow: 0 3px 10px rgba(111, 143, 179, 0.10);
    font-size: 0.78rem;
    white-space: nowrap;
}

.button-link:hover {
    background: #142842;
    transform: translateY(-2px);
}

/* Shared information panels: home focus list and project descriptions */
.skills-box,
.course-card {
    background: #f1f7fc;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 1.4rem;
    margin-top: 1.7rem;
}

/* Project listings: grids, cards, thumbnails, badges, and technology icons */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin-bottom: 2.2rem;
}

.project-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    background: #ffffff;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #bfd7ea;
    box-shadow: 0 8px 20px rgba(30, 58, 95, 0.13);
}

.project-card h3 {
    margin-top: 0;
}

.project-card a {
    color: #1e3a5f;
    font-weight: 700;
    text-decoration: none;
}

.project-card a:hover {
    text-decoration: underline;
}

.project-thumbnail {
    width: 260px;
    min-width: 260px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

.project-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-title-row h3 {
    margin-bottom: 0;
}

.status-badge {
    background: #e8f3e8;
    color: #47704a;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.project-type-badge {
    background: #add8e6;
    color: cornflowerblue;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.project-tech {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 12px 0;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
}

.tech-item span {
    margin-left: -3px;
    margin-right: -3px;
}

.tech-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.featured-projects {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 2.2rem;
}

.featured-projects .project-card {
    display: flex;
    align-items: stretch;
    gap: 24px;
}

/* Contact: introduction, featured email card, social cards, and footer */
#contact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 0 18px;
}

.contact-intro {
    margin-bottom: 18px;
}

.contact-intro .contact-eyebrow {
    margin: 0 0 4px;
    color: #718096;
    font-size: .8rem;
    letter-spacing: .26em;
    font-weight: 500;
}

.contact-intro h2 {
    border: 0;
    padding: 0;
    margin: 0 0 4px;
    font-family: Georgia, serif;
    color: #10192b;
    font-size: clamp(3.5rem, 7.2vw, 5.7rem);
    line-height: 1.08;
    letter-spacing: -.055em;
}

.contact-intro h2 span {
    color: #758298;
}

.contact-intro > p:last-child {
    margin: 0;
    color: #738096;
    font-size: 1.08rem;
    line-height: 1.55;
}

/* Desktop card layout: email spans both rows; social cards stack beside it. */
.contact-grid {
    display: grid;
    grid-template-columns: 1.11fr 1fr;
    grid-template-rows: repeat(2, minmax(178px, auto));
    gap: 14px 18px;
}

/* Featured email card: supplied sky photo with a dark readability overlay. */
.contact-card-email {
    grid-row: span 2;
    border-radius: 13px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(9, 22, 37, .44), rgba(9, 22, 37, .06)), url('images/contact-email.png') center / cover;
    padding: 30px 40px 34px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(26, 38, 53, .08);
}

.contact-email-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(214, 224, 241, .2);
    margin-bottom: 20px;
}

.contact-email-icon svg {
    width: 32px;
    height: 32px;
}

#contact .contact-label {
    font-size: .65rem;
    letter-spacing: .2em;
    margin: 0 0 5px;
    line-height: 1.4;
    color: #718096;
}

#contact .contact-card-email .contact-label {
    color: #f2f3f6;
    font-size: .75rem;
}

#contact h3 {
    font-family: Georgia, serif;
    font-weight: 500;
    letter-spacing: -.035em;
}

.contact-card-email h3 {
    font-size: 2.65rem;
    line-height: .97;
    margin: 8px 0 20px;
    color: #fff;
}

/* Email address, clipboard control, and reserved confirmation space. */
.contact-address {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.contact-address a {
    color: #f2f3f6;
    text-decoration: none;
    font-size: 1.1rem;
    overflow-wrap: anywhere;
}

#copy-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 7px;
    border-radius: 4px;
    cursor: pointer;
}

#copy-email svg {
    width: 21px;
    height: 21px;
}

#copy-email:hover {
    background: rgba(255, 255, 255, .15);
}

#copy-email-status {
    display: block;
    font-size: .75rem;
    min-height: 19px;
    color: #fff;
}

/* Email action and the small arrow movement shared by contact links. */
.contact-email-button {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    padding: 16px 24px;
    border-radius: 24px;
    background: #faf9f6;
    color: #10192b;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 7px;
    transition: background-color 180ms ease;
}

.contact-email-button:hover {
    background: #e4ebf3;
}

.contact-email-button span,
.contact-action span {
    display: inline-block;
    transition: transform 180ms ease;
}

.contact-email-button:hover span,
.contact-social-card:hover .contact-action span {
    transform: translate(2px, -2px);
}

/* Social cards: text on the left, cropped photography on the right. */
.contact-social-card {
    display: grid;
    grid-template-columns: 59% 41%;
    border: 1px solid #dededc;
    border-radius: 13px;
    overflow: hidden;
    background: #faf9f6;
    color: #10192b;
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.contact-social-content {
    padding: 20px 20px 18px 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 7px;
    margin-bottom: 10px;
}

.contact-social-card h3 {
    color: #10192b;
    font-size: clamp(1.3rem, 2.1vw, 1.7rem);
    line-height: 1.04;
    margin: 0 0 14px;
}

.contact-action {
    display: inline-flex;
    gap: 16px;
    align-items: center;
    font-size: .78rem;
    font-weight: 600;
    margin-top: auto;
}

/* Photo wrappers crop the supplied images without changing card height. */
.contact-photo {
    overflow: hidden;
    min-width: 0;
    position: relative;
}

.contact-photo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% center;
    transition: transform 300ms ease;
}

.contact-photo-github img {
    object-position: 70% center;
}

.contact-social-card:hover {
    border-color: #93a7be;
    box-shadow: 0 6px 18px rgba(30, 58, 95, .08);
    transform: translateY(-2px);
}

.contact-social-card:hover .contact-photo img {
    transform: scale(1.025);
}

/* Visible keyboard focus for contact links and the copy button. */
#contact a:focus-visible,
#contact button:focus-visible {
    outline: 3px solid #8ea8c3;
    outline-offset: 4px;
}

/* Muted footer labels with a flexible divider between them. */
.contact-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
    color: #718096;
    font-size: .62rem;
    letter-spacing: .18em;
}

.contact-footer > span:last-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-footer svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.contact-footer-line {
    flex: 1;
    height: 1px;
    background: #c6cbd0;
}

/* Contact spacing for narrower desktop and tablet screens. */
@media(max-width:900px) {
    .contact-social-content {
        padding-left: 20px;
    }

    .contact-card-email {
        padding-left: 28px;
        padding-right: 24px;
    }

    .contact-footer {
        letter-spacing: .1em;
        gap: 12px;
    }

}

/* Mobile contact layout: email, LinkedIn, then GitHub in one column. */
@media(max-width:700px) {
    #contact {
        padding-top: 24px;
    }

    .contact-intro h2 {
        font-size: clamp(2.7rem, 10vw, 4rem);
    }

    .contact-intro > p:last-child {
        font-size: .95rem;
    }

    .contact-desktop-break {
        display: none;
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        gap: 16px;
    }

    .contact-card-email {
        grid-row: auto;
        padding: 28px;
        min-height: 315px;
    }

    .contact-social-card {
        min-height: 190px;
        grid-template-columns: 60% 40%;
    }

    .contact-social-card h3 {
        font-size: 1.5rem;
    }

    .contact-address a {
        font-size: 1rem;
    }

    .contact-footer {
        flex-wrap: wrap;
        line-height: 1.7;
        margin-top: 24px;
    }

    .contact-footer-line {
        display: none;
    }

    .contact-footer > span {
        flex-basis: 100%;
    }

}

/* Accessibility: disable contact animation when reduced motion is requested. */
@media(prefers-reduced-motion:reduce) {
    #contact *,
    #contact *::before,
    #contact *::after {
        transition: none;
    }

    .contact-social-card:hover,
    .contact-social-card:hover .contact-photo img,
    .contact-email-button:hover span,
    .contact-social-card:hover .contact-action span {
        transform: none;
    }

}

/* Shared mobile adjustments: header, section spacing, resume, and navigation */
@media (max-width: 700px) {
    header h1 {
        font-size: 2rem;
    }

    section {
        padding: 2rem 1.4rem;
    }

    .profile-layout {
        text-align: center;
        justify-content: center;
    }

    .profile-layout img {
        width: 165px;
        height: 165px;
    }

    nav button {
        padding: 10px 16px;
        font-size: 14px;
    }

}

/* Home hero: campus background, dark overlay, and large introductory text. */
.hero-banner {
    background-image: url("images/horseshoe.png");
    width: 1240px;
    height: 530px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 3rem;
    color: white;
    background-size: cover;
    background-position: center 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hero-content {
    max-width: 620px;
    color: white;
}

.hero-content h2 {
    border-bottom: none;
    color: white;
    font-family: Georgia, serif;
    font-size: 3.5rem;
    line-height: 0.95;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    color: white;
    font-size: 1.40rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
    margin-top: 1rem;
}

.hero-buttons {
    margin-top: 1.5rem;
}

/* Light button variant used alongside primary actions. */
.button-link.secondary {
    background: rgba(255, 255, 255, 0.85);
    color: #2f4156;
    margin-left: 10px;
}

/* Project detail pages: breadcrumb, two-column hero, and cover image */
.project-breadcrumb {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0 0 22px;
}

.project-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
    padding-bottom: 35px;
    border-bottom: 1px solid #dbeafe;
}

.project-hero-text h2 {
    font-family: Georgia, serif;
    font-size: 2.7rem;
    line-height: 1.08;
    color: #1e3a5f;
    border: none;
    padding: 0;
    margin: 0 0 12px;
}

.project-hero-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 20px;
}

.project-hero-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #475569;
    max-width: 650px;
    margin: 0;
}

.project-hero-badges {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 10px;
}

.project-hero-visual img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center 55%;
    display: block;
    border-radius: 14px;
}

/* Project detail pages: overview text, summary badges, and supporting documents */
.project-overview {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin-top: 24px;
    overflow: hidden;
}

.overview-intro {
    padding: 24px 28px 18px;
}

.overview-intro h3 {
    font-family: Georgia, serif;
    color: #1e3a5f;
    font-size: 1.3rem;
    margin: 0 0 6px;
}

.overview-intro h3:not(:first-child) {
    margin-top: 16px;
}

.overview-intro p {
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
    max-width: 900px;
    color: #475569;
}

.overview-intro ul {
    margin: 8px 0 0;
    padding-left: 24px;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.6;
}

.overview-stats {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px 28px 24px;
}

.overview-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    background: rgba(173, 216, 230, 0.38);
    border: 1px solid rgba(111, 143, 179, 0.18);
    border-radius: 22px;
    box-shadow: 0 3px 10px rgba(111, 143, 179, 0.10);
    color: #475569;
    font-size: 0.78rem;
    white-space: nowrap;
}

.overview-badge img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.overview-badge strong {
    color: #2f4156;
    font-weight: 700;
}

.overview-badge span {
    color: #596779;
    font-weight: 500;
}

.next-steps ul {
    margin: 0;
    padding-left: 20px;
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.55;
}

/* Supporting project details: document summary and next steps columns. */
.project-details-row {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 32px;
    margin: 20px 28px 8px;
    align-items: start;
}

.srs-summary,
.next-steps {
    margin: 0;
}

.srs-summary h3,
.next-steps h3 {
    font-family: Georgia, serif;
    color: #1e3a5f;
    font-size: 1.15rem;
    margin: 0 0 7px;
}

.srs-summary p {
    font-size: 0.82rem;
    line-height: 1.55;
    margin: 0 0 9px;
    color: #475569;
}

/* Compact document button inside a project summary. */
.srs-summary .button-link {
    padding: 7px 12px;
    font-size: 0.75rem;
    margin-top: 2px;
}

/* About page: editorial introduction and resume content.
   All rules are scoped to About so other tabs retain their existing appearance. */
#about {
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 0 20px;
    color: #405678;
}

#about *, #about *::before, #about *::after {
    box-sizing: border-box;
}

#about p, #about li {
    color: #405678;
    line-height: 1.45;
}

#about .about-label {
    margin: 0 0 9px;
    font-size: 0.67rem;
    line-height: 1.4;
    letter-spacing: 0.2em;
    font-weight: 500;
}

#about h2, #about h3, #about h4 {
    font-family: Georgia, serif;
    color: #0b203e;
    font-weight: 600;
    letter-spacing: -0.035em;
}

/* Hero: two aligned photographs frame the introduction. */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: stretch;
    gap: 36px;
}

.about-portrait, .about-workspace {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    max-height: 440px;
    object-fit: cover;
    border-radius: 12px;
}

.about-portrait {
    object-position: center 35%;
}

.about-workspace {
    object-position: 56% center;
}

.about-hero-copy {
    padding: 12px 0 4px;
    min-width: 0;
}

#about h2 {
    border: 0;
    padding: 0;
    margin: 0 0 14px;
    font-size: clamp(2.8rem, 4.9vw, 4.7rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

#about h2 span {
    color: #8299b3;
}

.about-hero-copy > p:not(.about-label) {
    margin: 0 0 16px;
    font-size: 1rem;
}

/* Subtle tags are reused for interests, project technologies, and skills. */
#about .about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0;
    margin: 0;
    list-style: none;
}

#about .about-tags li {
    border: 1px solid #cdd5df;
    background: #eeefef;
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 0.72rem;
    color: #0b203e;
    line-height: 1.25;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.about-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid #193452;
    border-radius: 30px;
    background: #142e48;
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
}

.about-button-outline {
    background: #fff;
    color: #0b203e;
    border-color: #8496ac;
}

/* Equal-height feature cards with integrated vertical photo panels. */
.about-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 30px 0;
}

.about-feature {
    display: grid;
    grid-template-columns: 58% 42%;
    border: 1px solid #d3d8df;
    border-radius: 10px;
    overflow: hidden;
    background: #faf8f4;
}

.about-feature-copy {
    padding: 20px 20px 22px;
}

.about-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border-radius: 7px;
    background: #8299b3;
    color: #fff;
}

.about-icon svg {
    width: 27px;
    height: 27px;
}

#about .about-feature h3 {
    margin: 0 0 12px;
    font-size: 1.6rem;
    line-height: 1.06;
}

.about-feature-copy > p:last-child {
    font-size: 0.87rem;
    margin: 0;
}

.about-feature > img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

/* Experience/projects and education/skills form two aligned editorial rows. */
.about-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-panel {
    border-top: 1px solid #cdd5df;
    padding: 12px 26px 26px 0;
    min-width: 0;
}

.about-panel:nth-child(even) {
    border-left: 1px solid #cdd5df;
    padding-left: 26px;
    padding-right: 0;
}

#about .about-panel > h3 {
    font-size: 2.55rem;
    line-height: 1.05;
    margin: 0 0 20px;
}

/* Timeline dots and dates remain attached to their respective experience. */
.about-timeline {
    border-left: 1px solid #bac8d7;
    margin-left: 10px;
    padding-left: 30px;
}

.about-job {
    position: relative;
    margin-bottom: 36px;
}

.about-job:last-child {
    margin-bottom: 0;
}

.about-job::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #8299b3;
}

.about-job-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

#about h4 {
    font-size: 1.15rem;
    margin: 0;
    letter-spacing: -0.015em;
}

#about .about-job-heading p {
    margin: 0;
    font-size: 0.83rem;
}

#about .about-role {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 1rem;
}

.about-meta {
    text-align: right;
    flex-shrink: 0;
}

.about-job ul {
    padding-left: 20px;
    margin: 9px 0;
    font-size: 0.85rem;
}

#about .about-job-tech {
    margin: 10px 0 0;
    font-size: 0.78rem;
}

/* Compact project summaries link to the existing full project sections. */
.about-project {
    display: block;
    margin-bottom: 18px;
    border: 1px solid #d3d8df;
    border-radius: 12px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.about-project:last-child {
    margin-bottom: 0;
}

.about-project-main {
    display: grid;
    grid-template-columns: 35% 65%;
}

.about-project-main > img {
    width: 100%;
    height: 100%;
    min-height: 225px;
    object-fit: cover;
}

.about-project-main > div {
    padding: 16px 18px;
    min-width: 0;
}

#about .about-project h4 {
    font-size: 1.55rem;
}

#about .about-project .about-label {
    font-size: 0.58rem;
    margin-bottom: 12px;
}

.about-project-main p:not(.about-label) {
    margin: 0 0 16px;
    font-size: 0.82rem;
}

#about .about-project .about-tags li {
    font-size: 0.65rem;
    padding: 5px 10px;
}

#about .about-project-event {
    padding: 12px 0;
    margin: 0 16px;
    border-top: 1px solid #d3d8df;
    font-size: 0.76rem;
}

.about-project-event span {
    margin-left: 6px;
}

/* Education details and skill groups; integrations are explicitly identified. */
.about-education {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 18px;
}

.about-education-icon svg {
    width: 32px;
    height: 32px;
    color: #718ba6;
}

#about .about-coursework {
    font-size: 0.83rem;
    margin: 12px 0 0;
}

.about-skills [role='group'] {
    margin-bottom: 9px;
}

#about .about-integration-label {
    margin: 12px 0 7px;
    font-size: 0.72rem;
}

/* Reuse the contact footer without changing its existing page. */
#about .contact-footer {
    border-top: 1px solid #cdd5df;
    padding-top: 22px;
    margin-top: 0;
}

#about a:focus-visible {
    outline: 3px solid #8299b3;
    outline-offset: 4px;
}

.about-button:hover, .about-project:hover {
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.1);
}

/* Tablet: give the introduction space and stack feature cards horizontally. */
@media (max-width: 1100px) {
    .about-hero {
        grid-template-columns: 0.85fr 2fr;
        gap: 28px;
    }

    .about-workspace {
        grid-column: 1 / -1;
        height: 200px;
        min-height: 0;
        object-position: center 65%;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .about-feature {
        grid-template-columns: 65% 35%;
    }

    .about-feature > img {
        min-height: 0;
        max-height: 260px;
    }

    .about-job-heading {
        flex-wrap: wrap;
    }

    .about-meta {
        text-align: left;
    }

    #about .about-panel > h3 {
        font-size: 2.1rem;
    }
}

/* Mobile: one reading column, generous tap targets, and usable photo crops. */
@media (max-width: 700px) {
    #about {
        padding: 22px 0;
    }

    .about-hero, .about-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-portrait {
        height: 350px;
        min-height: 0;
        max-width: 310px;
        object-position: center 25%;
    }

    .about-workspace {
        display: block;
        height: 220px;
        min-height: 0;
        object-position: center 65%;
    }

    #about h2 {
        font-size: clamp(2.5rem, 10vw, 3.7rem);
    }

    .about-features {
        gap: 18px;
    }

    .about-feature {
        grid-template-columns: 60% 40%;
    }

    .about-feature-copy {
        padding: 18px 14px;
    }

    .about-feature > img {
        max-height: none;
    }

    #about .about-feature h3 {
        font-size: 1.4rem;
    }

    .about-panel, .about-panel:nth-child(even) {
        padding: 20px 0;
        border-left: 0;
    }

    .about-project-main {
        grid-template-columns: 32% 68%;
    }

    .about-project-main > div {
        padding: 14px 12px;
    }

    .about-education {
        gap: 10px;
    }

    #about .contact-footer {
        margin-top: 10px;
    }
}

/* Coursework: academic introduction and decorative editorial quote.
   These styles are scoped to Coursework; the existing navbar is unchanged. */
#coursework {
    padding: 28px 0 18px;
    color: #446585;
}

#coursework *, #coursework *::before, #coursework *::after {
    box-sizing: border-box;
}

.coursework-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: center;
    gap: 60px;
    padding: 0 10px 22px;
    border-bottom: 1px solid #d9dfe3;
}

#coursework .coursework-eyebrow {
    margin: 0 0 4px;
    font-size: 0.78rem;
    letter-spacing: 0.23em;
    font-weight: 600;
    color: #46799f;
}

#coursework h2 {
    border: 0;
    padding: 0;
    margin: 0 0 4px;
    font-family: Georgia, serif;
    font-size: clamp(3.3rem, 5.5vw, 5.25rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    color: #0b203e;
}

#coursework .coursework-intro {
    max-width: 760px;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
    color: #446b8d;
}

.coursework-hero blockquote {
    margin: 30px 0 0;
    padding-left: 30px;
    border-left: 1px solid #93aabd;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.4;
    color: #537b9d;
    text-align: center;
}

/* Category buttons and the live visible-course count. */
.coursework-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 4px 18px;
}

.coursework-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.coursework-filters button {
    font: inherit;
    font-size: 0.82rem;
    color: #0b203e;
    border: 1px solid #ccd6e0;
    border-radius: 28px;
    background: transparent;
    padding: 10px 25px;
    min-height: 42px;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.coursework-filters button[aria-pressed='true'] {
    background: #082542;
    border-color: #082542;
    color: #fff;
}

.coursework-filters button:hover:not([aria-pressed='true']) {
    background: #e9eef3;
    border-color: #91a8bd;
}

.coursework-filters button:focus-visible {
    outline: 3px solid #7896b2;
    outline-offset: 3px;
}

#coursework-count {
    margin: 0;
    flex-shrink: 0;
    color: #46799f;
    font-size: 0.69rem;
    letter-spacing: 0.2em;
    font-weight: 600;
}

/* Four equal desktop columns; hidden cards are removed from grid flow. */
.coursework-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.coursework-card {
    display: flex;
    flex-direction: column;
    padding: 16px 20px 20px;
    border: 1px solid #d6dce1;
    border-radius: 11px;
    background: #faf8f3;
    min-width: 0;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.coursework-card[hidden] {
    display: none;
}

.coursework-card:hover {
    border-color: #9eafbf;
    box-shadow: 0 5px 16px rgba(26, 50, 75, 0.07);
    transform: translateY(-2px);
}

.coursework-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.coursework-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    flex-shrink: 0;
}

.coursework-icon svg {
    width: 29px;
    height: 29px;
}

/* Coordinated pastel icon tiles distinguish subject areas. */
.coursework-icon-blue {
    background: #dfe8f3;
    color: #2c5b8c;
}
.coursework-icon-coral {
    background: #fae4dc;
    color: #914d3d;
}
.coursework-icon-lavender {
    background: #e9e1ee;
    color: #334b78;
}
.coursework-icon-sage {
    background: #e0e9de;
    color: #357382;
}
.coursework-icon-mint {
    background: #e0eae2;
    color: #357382;
}

.coursework-code {
    color: #46799f;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    padding-top: 8px;
    white-space: nowrap;
}

#coursework .coursework-category {
    margin: 0 0 5px;
    font-size: 0.64rem;
    letter-spacing: 0.18em;
    line-height: 1.4;
    color: #46799f;
}

#coursework .coursework-card h3 {
    font-family: Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.06;
    color: #0b203e;
    margin: 0 0 10px;
}

#coursework .coursework-description {
    color: #446585;
    font-size: 0.91rem;
    line-height: 1.3;
    margin: 0 0 16px;
}

/* Concept badges sit at the bottom while card heights follow each row. */
.coursework-concepts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 9px;
    list-style: none;
    padding: 0;
    margin: auto 0 0;
}

.coursework-concepts li {
    padding: 5px 12px;
    border: 1px solid #dde2e6;
    border-radius: 25px;
    background: #edeeef;
    color: #264967;
    font-size: 0.73rem;
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Decorative closing footer belongs only to the Coursework section. */
.coursework-footer {
    display: flex;
    align-items: center;
    gap: 22px;
    border-top: 1px solid #d9dfe3;
    padding-top: 12px;
    margin-top: 12px;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    color: #46799f;
}

.coursework-footer-line {
    height: 1px;
    flex: 1;
    background: #8ca2b8;
}

.coursework-footer > span:last-child {
    display: flex;
    align-items: center;
    gap: 20px;
}

.coursework-footer svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Medium screens retain comfortable card widths; tablets use two columns. */
@media (min-width: 901px) and (max-width: 1150px) {
    .coursework-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .coursework-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .coursework-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
    .coursework-hero blockquote {
        margin: 0;
        max-width: 380px;
        text-align: left;
    }
    .coursework-toolbar {
        align-items: flex-start;
    }
    .coursework-footer {
        flex-wrap: wrap;
        gap: 12px;
    }
    .coursework-footer-line {
        display: none;
    }
}

/* Phones: one column and wrapped filters without horizontal page scrolling. */
@media (max-width: 560px) {
    #coursework {
        padding: 22px 0 18px;
    }
    #coursework h2 {
        font-size: clamp(2.5rem, 10vw, 3.3rem);
    }
    #coursework .coursework-intro {
        font-size: 1rem;
    }
    .coursework-hero {
        padding-left: 0;
        padding-right: 0;
    }
    .coursework-hero blockquote {
        font-size: 1.05rem;
        padding-left: 18px;
    }
    .coursework-toolbar {
        flex-direction: column;
    }
    .coursework-filters {
        gap: 8px;
    }
    .coursework-filters button {
        padding: 10px 16px;
        font-size: 0.78rem;
    }
    .coursework-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .coursework-footer > span {
        flex-basis: 100%;
    }
    .coursework-footer {
        font-size: 0.57rem;
        letter-spacing: 0.14em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .coursework-card, .coursework-filters button {
        transition: none;
    }
    .coursework-card:hover {
        transform: none;
    }
}

/* Projects: selected-work introduction and editorial quote.
   Work-prefixed components keep the redesign separate from project detail pages. */
#projects {
    padding: 28px 0 18px;
}
#projects *, #projects *::before, #projects *::after {
    box-sizing: border-box;
}
.work-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 50px;
    align-items: center;
    margin: 0 6px 44px;
}
#projects .work-eyebrow {
    margin: 0 0 9px;
    color: #35698f;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.24em;
}
#projects h2 {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    color: #103353;
    font-family: Georgia, serif;
    font-size: clamp(3rem, 5.5vw, 5.15rem);
    letter-spacing: -0.045em;
    line-height: 1.05;
}
.work-hero > div > p:last-child {
    color: #466c8f;
    font-size: 1.08rem;
    line-height: 1.4;
    margin: 0;
}
.work-hero blockquote {
    color: #456787;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.5;
    margin: 25px 0 0;
    padding-left: 32px;
    border-left: 1px solid #7c9ab5;
}

/* Numbered section labels and project counts flank a flexible divider. */
.work-section-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 32px 5px 15px;
    color: #35698f;
    font-size: 0.68rem;
    letter-spacing: 0.21em;
}
#projects .work-section-heading h3 {
    font: inherit;
    color: inherit;
    margin: 0;
}
.work-section-heading h3 > span {
    color: #0b203e;
    font-weight: 700;
    margin-right: 8px;
}
.work-section-heading > span:last-child {
    white-space: nowrap;
}
.work-section-line {
    flex: 1;
    height: 1px;
    background: #7c9ab5;
}

/* Featured cards: consistent thumbnails, category pills, metadata, and actions. */
.work-featured {
    display: grid;
    gap: 16px;
}
.work-featured-card {
    display: grid;
    grid-template-columns: 27% minmax(0, 1fr);
    gap: 28px;
    padding: 13px;
    border: 1px solid #e0ddd7;
    border-radius: 12px;
    background: #faf8f3;
    box-shadow: 0 3px 12px rgba(35, 49, 65, 0.025);
}
.work-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 205px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #c9d0d4;
}
.work-featured-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 9px 10px 4px 0;
}
.work-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
}
#projects .work-title-row h4 {
    margin: 0;
    font-family: Georgia, serif;
    font-weight: 600;
    font-size: 1.65rem;
    line-height: 1.1;
    color: #0b2949;
    letter-spacing: -0.035em;
}
.work-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.work-categories li {
    background: #d9e9f5;
    color: #143b61;
    border-radius: 25px;
    padding: 4px 13px;
    font-size: 0.72rem;
    line-height: 1.2;
}
.work-categories li:nth-child(2) {
    background: #e2eddf;
    color: #31523f;
}
#projects .work-meta {
    margin: 0 0 0 auto;
    font-size: 0.67rem;
    color: #537595;
    letter-spacing: 0.02em;
}
#projects .work-description {
    color: #345578;
    font-size: 0.96rem;
    line-height: 1.4;
    margin: 16px 0 8px;
}
#projects .work-note {
    margin: 0 0 16px;
    color: #58738d;
    font-size: 0.72rem;
    line-height: 1.4;
}
.work-card-bottom {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    justify-content: space-between;
    margin-top: auto;
}

/* Featured badges pair local brand logos or meaningful outline symbols with labels. */
.work-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.work-tags li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 4px 10px;
    border-radius: 25px;
    background: #eeeff0;
    color: #133a60;
    font-size: 0.7rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.work-featured .work-tags img,
.work-featured .work-tech-icon,
.home-building .work-tags img,
.home-building .work-tech-icon,
.cam-stack .work-tech-icon,
.cam-stack .work-tags img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Tint the monochrome brand assets to the same navy as the outline symbols. */
.work-featured .work-tags img,
.home-building .work-tags img,
.cam-stack .work-tags img {
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(18%) sepia(27%) saturate(1471%) hue-rotate(168deg) brightness(94%) contrast(95%);
}
.work-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #0b2949;
    text-decoration: none;
    font-size: 0.8rem;
    min-height: 36px;
    white-space: nowrap;
    flex-shrink: 0;
}
.work-link svg {
    width: 22px;
    height: 22px;
    transition: transform 180ms ease;
}
.work-link:hover svg {
    transform: translateX(3px);
}
.work-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}
#projects .work-link:focus-visible {
    outline: 3px solid #7896b2;
    outline-offset: 4px;
    border-radius: 3px;
}

/* Coursework card anchors: restrained icon tiles and collection numbering. */
.work-course-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.work-course-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    color: #264967;
}

.work-course-icon svg {
    width: 21px;
    height: 21px;
}

.work-course-icon-blue { background: #dfe8f3; }
.work-course-icon-sage { background: #e2eadd; }
.work-course-icon-lavender { background: #e9e2ef; }
.work-course-icon-coral { background: #f5e3dc; }

.work-course-number {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    color: #647e96;
    font-variant-numeric: tabular-nums;
}

/* Coursework cards: four equal desktop columns, compact content, and code links. */
.work-coursework-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.work-course-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #e0ddd7;
    border-radius: 10px;
    background: #faf8f3;
    padding: 16px 18px 12px;
}
#projects .work-course-card h4 {
    margin: 0 0 10px;
    font-family: Georgia, serif;
    font-size: 1.18rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: #0b203e;
}
.work-course-card > p {
    color: #466585;
    font-size: 0.82rem;
    line-height: 1.35;
    margin: 0 0 10px;
}
.work-course-card .work-tags {
    margin: 0 0 6px;
    gap: 6px;
}

.work-course-card .work-tags li {
    font-size: 0.65rem;
    padding: 4px 9px;
}
.work-course-card .work-link {
    margin-top: auto;
    font-weight: 600;
    align-self: flex-start;
    gap: 6px;
}
.work-course-card .work-link svg {
    width: 17px;
    height: 17px;
}
.work-featured-card, .work-course-card {
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.work-featured-card:hover, .work-course-card:hover {
    border-color: #a2b3c1;
    box-shadow: 0 5px 15px rgba(30, 58, 95, 0.07);
    transform: translateY(-2px);
}

/* Closing element within Projects; the other page footers remain independent. */
.work-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 28px 5px 0;
    color: #35698f;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
}
.work-footer-line {
    flex: 1;
    height: 1px;
    background: #7c9ab5;
}
.work-footer > span:last-child {
    display: flex;
    align-items: center;
    gap: 15px;
}
.work-footer svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Tablets: wrap technology rows and use two coursework columns. */
@media (max-width: 1000px) {
    .work-hero {
        grid-template-columns: minmax(0, 1fr) 170px;
        gap: 25px;
    }
    .work-featured-card {
        grid-template-columns: 30% minmax(0, 1fr);
        gap: 20px;
    }
    .work-card-bottom {
        flex-wrap: wrap;
        gap: 8px;
    }
    #projects .work-meta {
        margin-left: 0;
    }
    .work-coursework-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .work-desktop-break {
        display: none;
    }
    .work-footer {
        flex-wrap: wrap;
    }
    .work-footer-line {
        display: none;
    }
}

/* Phones: full-width project photographs above text and one coursework column. */
@media (max-width: 600px) {
    #projects {
        padding: 22px 0 18px;
    }
    .work-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        margin: 0 0 28px;
    }
    #projects h2 {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
    .work-hero > div > p:last-child {
        font-size: 1rem;
    }
    .work-hero blockquote {
        margin: 0;
        padding-left: 20px;
        max-width: 300px;
    }
    .work-section-heading {
        gap: 9px;
        font-size: 0.57rem;
        letter-spacing: 0.1em;
        margin-left: 0;
        margin-right: 0;
    }
    .work-section-heading h3 > span {
        margin-right: 2px;
    }
    .work-featured-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }
    .work-thumbnail {
        height: 200px;
        min-height: 0;
    }
    .work-featured-content {
        padding: 4px;
    }
    #projects .work-title-row h4 {
        font-size: 1.6rem;
    }
    .work-coursework-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .work-link {
        min-height: 44px;
    }
    .work-footer {
        margin-left: 0;
        margin-right: 0;
        font-size: 0.55rem;
        gap: 12px;
    }
    .work-footer > span {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .work-featured-card, .work-course-card, .work-link svg {
        transition: none;
    }
    .work-featured-card:hover, .work-course-card:hover, .work-link:hover svg {
        transform: none;
    }
}

/* Home: align the new showcase with the existing hero's outer desktop width.
   Hero image, desktop dimensions, crop, overlay, and alignment remain unchanged. */
#home .hero-banner {
    max-width: calc(100% - 6rem);
}

.home-building {
    width: calc(1240px + 6rem);
    max-width: 100%;
    margin-top: 28px;
}

.home-building-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 18px;
}

#home .home-eyebrow {
    margin: 0 0 7px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.21em;
    color: #607b95;
}

#home .home-building h2 {
    font-family: Georgia, serif;
    color: #0b2949;
    font-size: clamp(2rem, 3vw, 2.7rem);
    letter-spacing: -0.035em;
    line-height: 1.1;
    border: 0;
    padding: 0;
    margin: 0 0 8px;
}

.home-building-heading > div > p:last-child {
    color: #60778d;
    font-size: 0.92rem;
    margin: 0;
}

.home-all-projects {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-height: 44px;
    color: #315b7c;
    text-decoration: none;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
}

.home-all-projects svg {
    width: 22px;
    height: 22px;
    transition: transform 180ms ease;
}

.home-all-projects:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.home-all-projects:hover svg {
    transform: translateX(3px);
}

/* Three equal cards reuse Projects badges, icons, and link styling. */
.home-building-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-building-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    border: 1px solid #d7dfe5;
    border-radius: 12px;
    background: #faf8f3;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.home-project-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    flex-shrink: 0;
}

.home-project-icon svg {
    width: 25px;
    height: 25px;
}

.home-project-icon-coral {
    background: #f7e8df;
    color: #a3665c;
}

.home-project-icon-sage {
    background: #e6eddf;
    color: #5c7a61;
}

.home-project-icon-blue {
    background: #e1eaf4;
    color: #4b7398;
}

.home-project-category {
    color: #607b95;
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-align: right;
}

#home .home-building-card h3 {
    margin: 0 0 12px;
    font-family: Georgia, serif;
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0b2949;
}

.home-project-description {
    color: #4b6780;
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0 0 10px;
}

.home-project-status {
    color: #63798e;
    font-size: 0.7rem;
    line-height: 1.4;
    margin: 0 0 14px;
}

.home-building-card .work-tags {
    margin-bottom: 12px;
}

.home-building-card .work-link {
    margin-top: auto;
    align-self: flex-start;
    min-height: 44px;
}

.home-building-card:hover {
    border-color: #98aebf;
    box-shadow: 0 5px 16px rgba(30, 58, 95, 0.07);
    transform: translateY(-2px);
}

.home-building a:focus-visible {
    outline: 3px solid #7896b2;
    outline-offset: 4px;
}

/* Compact information strip with desktop dividers. */
.home-info-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    list-style: none;
    padding: 18px 0 0;
    margin: 22px 0 0;
    border-top: 1px solid #d1dbe3;
}

.home-info-strip li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 14px;
    color: #4e6981;
    font-size: 0.78rem;
    line-height: 1.4;
}

.home-info-strip li + li {
    border-left: 1px solid #d1dbe3;
}

.home-info-strip svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}

/* Tablet: two cards per row without changing the campus image treatment. */
@media (max-width: 1000px) {
    .home-building-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-info-strip li {
        font-size: 0.7rem;
        padding: 0 10px;
    }
}

/* Mobile: adapt only the Home content; the navbar retains its existing rules. */
@media (max-width: 700px) {
    #home {
        padding-left: 0;
        padding-right: 0;
    }

    #home .hero-banner {
        max-width: calc(100% - 3rem);
        padding: 2rem 1.5rem;
        height: auto;
        min-height: 466px;
    }

    #home .hero-content {
        min-width: 0;
    }

    #home .hero-content h2 {
        font-size: clamp(2rem, 7.5vw, 3.2rem);
    }

    #home .hero-content p {
        font-size: 1rem;
        line-height: 1.5;
    }

    #home .hero-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    #home .hero-buttons .button-link {
        min-height: 44px;
        margin: 0;
    }

    .home-building-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .home-building-grid, .home-info-strip {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-building-card {
        padding: 22px;
    }

    .home-info-strip {
        gap: 14px;
    }

    .home-info-strip li {
        justify-content: flex-start;
        padding: 0;
        font-size: 0.78rem;
    }

    .home-info-strip li + li {
        border-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-building-card, .home-all-projects svg {
        transition: none;
    }

    .home-building-card:hover, .home-all-projects:hover svg {
        transform: none;
    }
}

/* Camellia case study: scoped editorial styles leave other project pages intact. */
#camellia-project {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 0;
    color: #4f607a;
}
#camellia-project *, #camellia-project *::before, #camellia-project *::after {
    box-sizing: border-box;
}
#camellia-project p {
    color: #4f607a;
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 14px;
}
#camellia-project h2, #camellia-project h3, #camellia-project h4 {
    font-family: Georgia, serif;
    color: #17253d;
    letter-spacing: -0.025em;
}
#camellia-project h3 {
    font-size: clamp(1.8rem, 2.6vw, 2.35rem);
    line-height: 1.03;
    margin: 0 0 12px;
}
#camellia-project h4 {
    font-size: 1.15rem;
    margin: 0 0 8px;
}
#camellia-project a:focus-visible, #camellia-project button:focus-visible {
    outline: 3px solid #b85c60;
    outline-offset: 4px;
}
.cam-breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.76rem;
    margin: 0 0 20px;
}
.cam-breadcrumb a {
    color: #34465e;
    text-decoration: none;
}
.cam-breadcrumb a:hover {
    text-decoration: underline;
}
.cam-breadcrumb > span:nth-child(2) {
    color: #a75a5f;
}

/* Hero: existing hospital photograph and a compact row of project resources. */
.cam-hero {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 20px 42px;
}
#camellia-project h2 {
    font-size: clamp(3.5rem, 5.5vw, 5rem);
    line-height: 1;
    border: 0;
    padding: 0;
    margin: 0;
}
#camellia-project .cam-subtitle {
    font-family: Georgia, serif;
    font-size: 1.9rem;
    line-height: 1.08;
    margin: 0 0 18px;
    color: #5d708b;
    letter-spacing: -0.025em;
}
.cam-hero-image {
    width: 100%;
    height: 100%;
    max-height: 390px;
    min-height: 320px;
    object-fit: cover;
    border-radius: 8px;
}
.cam-awards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.cam-award {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e6c6c4;
    border-radius: 30px;
    padding: 9px 14px;
    background: #fcf5f1;
}
.cam-award > svg {
    width: 27px;
    height: 27px;
    color: #bd585f;
    flex-shrink: 0;
}
.cam-award strong {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #20314b;
}
.cam-award span {
    display: block;
    font-size: 0.65rem;
    color: #52627b;
    margin-top: 3px;
}
.cam-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.cam-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border: 1px solid #d7cfca;
    border-radius: 30px;
    min-height: 44px;
    padding: 11px 20px;
    color: #17253d;
    text-decoration: none;
    font-size: 0.76rem;
}
.cam-button svg, .cam-button img {
    width: 19px;
    height: 19px;
}
.cam-button-primary {
    background: #1a293d;
    color: #fff;
    border-color: #1a293d;
}
.cam-button:hover {
    background: #f3e9e5;
}
.cam-button-primary:hover {
    background: #30425b;
}

/* Divided sections: problem statement and three restrained blush cards. */
.cam-section {
    border-top: 1px solid #ddd6d0;
    margin-top: 30px;
    padding-top: 28px;
}
#camellia-project .cam-label {
    color: #ad454d;
    font-size: 0.63rem;
    letter-spacing: 0.23em;
    margin-bottom: 10px;
}
.cam-label span {
    margin: 0 8px;
    color: #a68e8d;
}
.cam-problem-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-self: stretch;
}
.cam-problem-cards article {
    background: #f8eeeb;
    border-radius: 8px;
    padding: 26px 22px;
}
.cam-problem-cards svg {
    width: 29px;
    height: 29px;
    color: #bd585f;
    margin-bottom: 15px;
}
#camellia-project .cam-problem-cards p {
    margin: 0;
}

/* Application screenshots: uncropped images, small browser chrome, and captions. */
.cam-figure {
    margin: 0;
    min-width: 0;
}
.cam-browser {
    display: block;
    border: 1px solid #d9d5d4;
    border-radius: 7px;
    overflow: hidden;
    background: #f1eeec;
    box-shadow: 0 4px 14px rgba(28, 34, 49, 0.08);
}
.cam-browser-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    background: #e8e4e5;
}
.cam-browser-bar i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c76c70;
}
.cam-browser-bar i:nth-child(2) {
    background: #c8ab64;
}
.cam-browser-bar i:nth-child(3) {
    background: #7c9b7b;
}
.cam-browser img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
.cam-browser:hover {
    border-color: #b97779;
}
.cam-figure figcaption {
    margin-top: 9px;
}
.cam-figure figcaption strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #17253d;
}
.cam-figure figcaption span {
    display: block;
    font-size: 0.88rem;
    color: #5d6c82;
    line-height: 1.4;
    margin-top: 3px;
}
#camellia-project .cam-demo-note {
    margin: 10px 0 0;
    font-size: 0.82rem;
    color: #6b4b52;
}
.cam-features {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}
.cam-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 13px;
}
.cam-features li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f6e9e5;
    color: #b9515a;
}
.cam-features svg {
    width: 21px;
    height: 21px;
}
.cam-features strong {
    display: block;
    color: #26334b;
    font-size: 0.95rem;
    font-weight: 600;
}
#camellia-project .cam-features p {
    font-size: 0.9rem;
    margin: 3px 0 0;
}

/* Hardware remains explicitly conceptual; the full architecture opens separately. */
.cam-wearable {
    margin: 0;
    min-width: 0;
}
.cam-wearable img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.cam-wearable figcaption {
    font-size: 0.85rem;
    color: #6a5d67;
    margin-top: 8px;
}
#camellia-project .cam-concept-note {
    color: #8f4850;
    font-size: 0.85rem;
}
.cam-text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: #344b68;
    font-size: 0.75rem;
    text-decoration: none;
}
.cam-text-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.cam-text-link:hover {
    text-decoration: underline;
}
/* Recognition, future plans, and resources form a compact final editorial row. */
#camellia-project .cam-closing h3 {
    font-size: 1.65rem;
}
.cam-resources {
    padding-left: 20px;
    border-left: 1px solid #e1dad5;
}
.cam-resources a {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d9d0ca;
    border-radius: 8px;
    padding: 10px 12px;
    min-height: 44px;
    margin-bottom: 8px;
    text-decoration: none;
    font-size: 0.73rem;
    color: #34465e;
}
.cam-resources a > svg, .cam-resources img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.cam-resources a > svg:last-child {
    margin-left: auto;
    width: 16px;
}
.cam-resources a:hover {
    background: #f6eae5;
    border-color: #c49191;
}
.cam-stack {
    padding-top: 20px;
}

/* Native image dialog: focus containment and Escape behavior come from the browser. */
.cam-image-dialog {
    width: min(1400px, 96vw);
    max-width: 96vw;
    max-height: 94vh;
    padding: 14px;
    border: 1px solid #d4c6c4;
    border-radius: 12px;
    background: #faf8f4;
    color: #17253d;
}
.cam-image-dialog::backdrop {
    background: rgba(14, 24, 40, 0.75);
}
.cam-dialog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 12px;
}
#camellia-project .cam-dialog-toolbar h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    margin: 0;
}
.cam-dialog-toolbar button {
    font: inherit;
    font-size: 0.85rem;
    padding: 10px 15px;
    border: 1px solid #b8a4a5;
    border-radius: 20px;
    color: #24354b;
    background: #fff;
    cursor: pointer;
}
.cam-image-dialog > img {
    display: block;
    width: 100%;
    height: auto;
}


/* Each grid has explicit shrinkable tracks and children; images cannot size the tracks. */
#camellia-project {
    width: 100%;
}
#camellia-project img {
    max-width: 100%;
}
#camellia-project :is(.cam-hero, .cam-problem, .cam-platform, .cam-gallery, .cam-hardware, .cam-next) > * {
    min-width: 0;
}
#camellia-project .cam-hero {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}
#camellia-project .cam-hero-copy > p:not(.cam-subtitle) {
    font-size: 0.95rem;
}
.cam-problem {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 2fr);
    gap: 28px;
}
.cam-problem-cards {
    min-width: 0;
}
.cam-problem-cards article {
    min-width: 0;
    padding: 22px 18px;
}
#camellia-project .cam-problem-cards p {
    font-size: 0.95rem;
    line-height: 1.5;
}
.cam-platform, .cam-hardware {
    display: grid;
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
    align-items: center;
    gap: 32px;
}
.cam-platform .cam-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cam-platform .cam-features li {
    margin: 0;
}
.cam-features li > div {
    min-width: 0;
}
.cam-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 20px;
}
.cam-figure figcaption {
    line-height: 1.5;
}
.cam-gallery .cam-browser img {
    aspect-ratio: 2880 / 1450;
    object-fit: contain;
    background: #fff;
}
.cam-wearable a {
    display: block;
    background: #fff;
    border: 1px solid #e1dcda;
    border-radius: 12px;
    overflow: hidden;
}
.cam-wearable img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.cam-wearable figcaption {
    line-height: 1.5;
    margin-top: 10px;
}

/* Architecture expands across the full content width and can also be enlarged. */
.cam-architecture {
    border: 1px solid #ded6d1;
    border-radius: 10px;
    margin-top: 24px;
    padding: 22px;
}
#camellia-project .cam-architecture h4 {
    font-size: 1.4rem;
}
.cam-architecture > div > p {
    max-width: 780px;
}
.cam-architecture-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #b88e90;
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #384a61;
    list-style: none;
}
.cam-architecture-details summary::-webkit-details-marker {
    display: none;
}
.cam-architecture-details summary svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.cam-architecture-details[open] summary svg {
    transform: rotate(90deg);
}
.cam-architecture-details summary:hover {
    background: #f6eae5;
}
.cam-architecture-details summary:focus-visible {
    outline: 3px solid #b85c60;
    outline-offset: 4px;
}
.cam-architecture-content {
    margin-top: 20px;
}
.cam-architecture-content img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
#camellia-project .cam-architecture-content .cam-concept-note {
    margin-top: 12px;
}
.cam-architecture .cam-text-link {
    white-space: normal;
    line-height: 1.5;
}
.cam-stack {
    padding-top: 4px;
}
.cam-stack .work-tags li {
    padding: 7px 12px;
    font-size: 0.85rem;
}
.cam-next {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 36px;
}
.cam-next .cam-actions {
    margin-top: 18px;
}
.cam-resources a {
    font-size: 0.85rem;
}
#camellia-project .cam-resources h4 {
    font-size: 1.15rem;
}
.cam-image-dialog {
    overscroll-behavior: contain;
}

/* Laptop/tablet: simplify before either text or image becomes cramped. */
@media (max-width: 1100px) {
    .cam-problem {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .cam-problem > div:first-child {
        max-width: 850px;
    }
    .cam-platform, .cam-hardware {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }
    .cam-platform .cam-features {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 24px;
    }
    .cam-hardware .cam-features {
        max-width: 680px;
    }
    .cam-wearable {
        width: 100%;
        max-width: 850px;
        justify-self: center;
    }
}

/* Mobile: natural reading order, full-width images, and no fixed text heights. */
@media (max-width: 700px) {
    #camellia-project {
        padding: 22px 0;
    }
    #camellia-project .cam-hero, .cam-problem-cards, .cam-gallery, .cam-next {
        grid-template-columns: minmax(0, 1fr);
    }
    .cam-hero-image {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 1.65;
        object-fit: cover;
    }
    #camellia-project h2 {
        font-size: 3.6rem;
    }
    #camellia-project .cam-subtitle {
        font-size: 1.65rem;
    }
    .cam-platform .cam-features {
        display: flex;
    }
    .cam-section {
        margin-top: 26px;
        padding-top: 24px;
    }
    .cam-problem-cards article {
        padding: 20px;
    }
    .cam-actions {
        gap: 9px;
    }
    .cam-button {
        padding: 11px 16px;
    }
    .cam-award {
        border-radius: 14px;
    }
    .cam-resources {
        border-left: 0;
        padding-left: 0;
    }
    .cam-architecture {
        padding: 18px;
    }
    .cam-image-dialog {
        padding: 10px;
    }
}

/* HOPE client case study: every selector is scoped to this page.
   Major sections are siblings; multi-column layouts stay within each section. */
#HOPE-project {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 0;
    color: #4e6479;
}
#HOPE-project *, #HOPE-project *::before, #HOPE-project *::after {
    box-sizing: border-box;
}
#HOPE-project p {
    color: #4e6479;
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 14px;
}
#HOPE-project h2, #HOPE-project h3, #HOPE-project h4 {
    color: #132c46;
    font-family: Georgia, serif;
    letter-spacing: -0.035em;
}
#HOPE-project h3 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.08;
    margin: 0 0 16px;
}
#HOPE-project a:focus-visible {
    outline: 3px solid #718da4;
    outline-offset: 5px;
    border-radius: 3px;
}
#HOPE-project .hope-eyebrow {
    color: #52768e;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1.5;
    margin: 0 0 14px;
}
#HOPE-project .hope-eyebrow > span {
    margin-right: 8px;
    color: #213d56;
}
#HOPE-project .hope-breadcrumb {
    display: flex;
    gap: 9px;
    font-size: 0.78rem;
    margin-bottom: 24px;
}
#HOPE-project .hope-breadcrumb a {
    color: #34566d;
    text-decoration: none;
}
#HOPE-project .hope-breadcrumb a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Hero and compact project facts, with the existing prosthetic-hand photograph. */
#HOPE-project .hope-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 26px 42px;
    align-items: center;
}
#HOPE-project .hope-hero > * {
    min-width: 0;
}
#HOPE-project h2 {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: 1;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}
#HOPE-project .hope-subtitle {
    font-family: Georgia, serif;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    color: #5a748b;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    max-width: 510px;
}
#HOPE-project .hope-hero-copy > p:last-child {
    margin-bottom: 0;
}
#HOPE-project .hope-hero-photo {
    margin: 0;
}
#HOPE-project .hope-hero-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1.35;
    object-fit: cover;
    object-position: 55% center;
    border-radius: 12px;
}
#HOPE-project .hope-metadata {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.35fr 0.7fr 1.3fr 0.9fr;
    gap: 14px;
    margin: 0;
    padding: 18px 0 0;
    border-top: 1px solid #d4dce1;
}
#HOPE-project .hope-metadata > div {
    min-width: 0;
}
#HOPE-project dt {
    color: #617c92;
    font-size: 0.67rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
#HOPE-project dd {
    font-size: 0.85rem;
    color: #26465e;
    margin: 0;
    line-height: 1.5;
}
#HOPE-project .hope-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    color: #426450;
    background: #e9eee5;
    border: 1px solid #d3dfcf;
    border-radius: 20px;
    font-size: 0.73rem;
}

/* Mission: a balanced introduction followed by lightly divided design principles. */
#HOPE-project .hope-section {
    border-top: 1px solid #d4dce1;
    padding-top: 28px;
    margin-top: 32px;
}
#HOPE-project .hope-mission-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 42px;
}
#HOPE-project .hope-principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 16px;
}
#HOPE-project .hope-principles article {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
}
#HOPE-project .hope-principles article + article {
    border-left: 1px solid #d9dfe3;
    padding-left: 24px;
}
#HOPE-project .hope-line-icon {
    color: #67869a;
    flex-shrink: 0;
}
#HOPE-project .hope-line-icon svg {
    width: 29px;
    height: 29px;
}
#HOPE-project .hope-principles h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 0.69rem;
    letter-spacing: 0.12em;
    margin: 0 0 7px;
}
#HOPE-project .hope-principles p {
    font-size: 0.9rem;
    margin: 0;
}

/* Contribution: the approved design and the current implementation, with a real timeline. */
#HOPE-project .hope-contribution-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 48px;
    border: 1px solid #d4dce1;
    background: #faf9f5;
    border-radius: 12px;
    padding: 30px;
}
#HOPE-project .hope-contribution-copy h4 {
    font-size: 1.8rem;
    line-height: 1.12;
    margin: 0 0 16px;
}
#HOPE-project .hope-contribution-copy p:last-child {
    margin-bottom: 0;
}
#HOPE-project .hope-progress {
    list-style: none;
    margin: 0;
    padding: 0;
    align-self: center;
}
#HOPE-project .hope-progress li {
    position: relative;
    display: flex;
    gap: 18px;
    padding-bottom: 25px;
}
#HOPE-project .hope-progress li:last-child {
    padding-bottom: 0;
}
#HOPE-project .hope-progress li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 18px;
    top: 38px;
    bottom: 0;
    width: 1px;
    background: #bdcccf;
}
#HOPE-project .hope-progress-marker {
    width: 37px;
    height: 37px;
    border: 1px solid #8aa1b2;
    background: #eef2f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #416151;
}
#HOPE-project .hope-progress-complete .hope-progress-marker {
    background: #e5eee4;
    border-color: #b5c9b4;
}
#HOPE-project .hope-progress-marker svg {
    width: 20px;
    height: 20px;
}
#HOPE-project .hope-progress-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #597e99;
}
#HOPE-project .hope-step-number {
    font-size: 0.67rem;
    letter-spacing: 0.15em;
    color: #6a8498;
}
#HOPE-project .hope-progress h5 {
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #25425b;
    line-height: 1.4;
    margin: 3px 0 5px;
}
#HOPE-project .hope-progress-state {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4b687f;
}
#HOPE-project .hope-progress-complete .hope-progress-state {
    color: #4d6b50;
}

/* Process: an open four-step sequence, explicitly not a completion checklist. */
#HOPE-project .hope-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}
#HOPE-project .hope-section-heading > p {
    max-width: 340px;
    font-size: 0.86rem;
}
#HOPE-project .hope-process {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    gap: 24px;
}
#HOPE-project .hope-process li {
    border-top: 2px solid #c5d3dd;
    padding-top: 14px;
}
#HOPE-project .hope-process h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    margin: 9px 0;
}
#HOPE-project .hope-process p {
    font-size: 0.9rem;
    margin: 0 0 10px;
}
#HOPE-project .hope-process-state {
    display: inline-block;
    font-size: 0.66rem;
    color: #55738b;
    border-bottom: 1px solid #c5d3dd;
    padding-bottom: 3px;
}

/* Collaboration and current status use complementary two-column editorial rows. */
#HOPE-project .hope-stack-section, #HOPE-project .hope-current-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 42px;
}
#HOPE-project .hope-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}
#HOPE-project .hope-tech-tags li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid #e0e4e6;
    border-radius: 24px;
    background: #eef0f1;
    color: #26465e;
    font-size: 0.83rem;
}
#HOPE-project .hope-tech-tags img, #HOPE-project .hope-tech-tags svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
#HOPE-project .hope-tech-tags img {
    filter: brightness(0) saturate(100%) invert(18%) sepia(27%) saturate(1471%) hue-rotate(168deg) brightness(94%) contrast(95%);
}
#HOPE-project .hope-status-active {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    padding: 7px 12px;
}
#HOPE-project .hope-closing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid #d4dce1;
    margin-top: 30px;
    padding-top: 24px;
}
#HOPE-project .hope-closing p {
    font-size: 0.85rem;
    margin-bottom: 5px;
}
#HOPE-project .hope-connect, #HOPE-project .hope-back {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #203f5a;
    text-decoration: none;
    min-height: 44px;
}
#HOPE-project .hope-connect {
    font-family: Georgia, serif;
    font-size: 1.65rem;
}
#HOPE-project .hope-back {
    font-size: 0.85rem;
}
#HOPE-project .hope-closing svg {
    width: 22px;
    height: 22px;
}
#HOPE-project .hope-closing a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* Tablet: retain readable text widths and simplify the process into two columns. */
@media (max-width: 1000px) {
    #HOPE-project .hope-hero {
        gap: 26px;
    }
    #HOPE-project .hope-metadata {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #HOPE-project .hope-mission-intro, #HOPE-project .hope-stack-section, #HOPE-project .hope-current-section {
        gap: 28px;
    }
    #HOPE-project .hope-contribution-panel {
        gap: 30px;
        padding: 24px;
    }
    #HOPE-project .hope-process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile: one reading column; all timeline labels and project links remain visible. */
@media (max-width: 700px) {
    #HOPE-project {
        padding: 22px 0;
    }
    #HOPE-project .hope-hero, #HOPE-project .hope-mission-intro, #HOPE-project .hope-principles, #HOPE-project .hope-contribution-panel, #HOPE-project .hope-stack-section, #HOPE-project .hope-current-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }
    #HOPE-project .hope-hero-photo img {
        aspect-ratio: 1.65;
    }
    #HOPE-project h2 {
        font-size: 3.6rem;
    }
    #HOPE-project .hope-section {
        margin-top: 26px;
        padding-top: 24px;
    }
    #HOPE-project .hope-principles {
        gap: 0;
    }
    #HOPE-project .hope-principles article + article {
        border-left: 0;
        border-top: 1px solid #d9dfe3;
        padding-left: 0;
    }
    #HOPE-project .hope-contribution-panel {
        padding: 22px;
    }
    #HOPE-project .hope-section-heading {
        display: block;
    }
    #HOPE-project .hope-section-heading > p {
        max-width: none;
    }
    #HOPE-project .hope-process {
        gap: 20px;
    }
    #HOPE-project .hope-closing {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}
@media (max-width: 420px) {
    #HOPE-project .hope-metadata, #HOPE-project .hope-process {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Hurricane Relief: scoped editorial composition and source-code presentation. */
#hurricane-project {
    max-width: 1320px;
    margin: 0 auto;
    padding: 26px 0;
    color: #4c6378;
}

#hurricane-project *, #hurricane-project *::before, #hurricane-project *::after {
    box-sizing: border-box;
}

#hurricane-project p {
    color: #4c6378;
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 16px;
}

#hurricane-project h2, #hurricane-project h3, #hurricane-project h4 {
    font-family: Georgia, serif;
    color: #152e48;
    letter-spacing: -0.035em;
}

#hurricane-project h3 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.08;
    margin: 0 0 18px;
}

#hurricane-project h4 {
    font-size: 1.25rem;
    line-height: 1.15;
    margin: 0 0 10px;
}

#hurricane-project a:focus-visible {
    outline: 3px solid #718da5;
    outline-offset: 5px;
    border-radius: 3px;
}

#hurricane-project .relief-label {
    font-size: 0.67rem;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: #577b95;
    margin: 0 0 14px;
}

#hurricane-project .relief-breadcrumb {
    display: flex;
    gap: 9px;
    font-size: 0.78rem;
    margin-bottom: 24px;
}

#hurricane-project .relief-breadcrumb a {
    color: #335770;
    text-decoration: none;
}

#hurricane-project .relief-breadcrumb a:hover {
    text-decoration: underline;
}

#hurricane-project .relief-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

#hurricane-project .relief-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    padding: 11px 17px;
    border: 1px solid #bdcbd5;
    border-radius: 28px;
    color: #24465f;
    text-decoration: none;
    font-size: 0.8rem;
}

#hurricane-project .relief-button-primary {
    background: #213e57;
    color: #fff;
    border-color: #213e57;
}

#hurricane-project .relief-button:hover {
    background: #e7edf1;
}

#hurricane-project .relief-button-primary:hover {
    background: #345772;
}

#hurricane-project a > svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

#hurricane-project .relief-metadata {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    border-top: 1px solid #cdd8e0;
    padding-top: 18px;
    margin: 26px 0 12px;
}

#hurricane-project dt {
    color: #627d94;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    margin-bottom: 7px;
}

#hurricane-project dd {
    margin: 0;
    font-size: 0.85rem;
    color: #25445e;
    line-height: 1.5;
}

#hurricane-project .relief-status {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #bfceda;
    border-radius: 20px;
    background: #eaf0f4;
    color: #3b5c76;
    font-size: 0.72rem;
}

#hurricane-project .relief-scope, #hurricane-project .relief-note {
    font-size: 0.79rem;
    line-height: 1.5;
    color: #64788a;
}

#hurricane-project .relief-section {
    border-top: 1px solid #cdd8e0;
    padding-top: 28px;
    margin-top: 30px;
}

#hurricane-project .relief-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

#hurricane-project .relief-tags li {
    padding: 6px 11px;
    background: #e9eff3;
    border: 1px solid #d4dee6;
    border-radius: 20px;
    color: #375870;
    font-size: 0.75rem;
}

#hurricane-project .relief-contributions a, #hurricane-project .relief-document-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: #2e5877;
    font-size: 0.87rem;
    text-underline-offset: 4px;
}

#hurricane-project .relief-closing {
    display: flex;
    align-items: flex-end;
    gap: 40px;
    justify-content: space-between;
}

#hurricane-project .relief-closing > div {
    max-width: 850px;
}

#hurricane-project .relief-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    white-space: nowrap;
    color: #2e5877;
    font-size: 0.85rem;
    text-decoration: none;
}

#hurricane-project .relief-back:hover {
    text-decoration: underline;
}


/* Hero image blends into the existing warm page background, without replacing the photo. */
#hurricane-project .relief-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 0;
    position: relative;
}
#hurricane-project .relief-hero > div {
    position: relative;
    z-index: 1;
    padding: 20px 0;
}
#hurricane-project h2 {
    font-size: clamp(2.65rem, 4.3vw, 4.4rem);
    line-height: 1;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}
#hurricane-project .relief-subtitle {
    font-family: Georgia, serif;
    color: #28435e;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    line-height: 1.14;
}
#hurricane-project .relief-hero-photo {
    margin: 0 0 0 -85px;
    align-self: stretch;
    min-width: 0;
}
#hurricane-project .relief-hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    object-position: center;
    mask-image: linear-gradient(to right, transparent, #000 24%);
}
#hurricane-project .relief-section {
    padding-top: 22px;
    margin-top: 22px;
}
#hurricane-project .relief-metadata {
    margin-top: 12px;
}
#hurricane-project .relief-scope {
    margin-bottom: 0;
}
#hurricane-project :is(.storm-split, .storm-problem, .storm-technical, .relief-hero) > * {
    min-width: 0;
}

/* Flood photograph sits between the introductory copy and one unified challenge panel. */
#hurricane-project .storm-problem {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 0.72fr);
    gap: 18px;
    align-items: stretch;
}
#hurricane-project .storm-flood {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    border-radius: 5px;
}
#hurricane-project .storm-challenges {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    background: #e8eff4;
    border-radius: 7px;
    padding: 22px 18px;
}
#hurricane-project .storm-challenges article {
    display: flex;
    gap: 14px;
}
#hurricane-project .storm-challenges svg {
    width: 30px;
    height: 30px;
    color: #3b6283;
    flex-shrink: 0;
}
#hurricane-project .storm-challenges h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 0.83rem;
    letter-spacing: 0;
    line-height: 1.3;
    margin-bottom: 6px;
}
#hurricane-project .storm-challenges p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
}
#hurricane-project .storm-split {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
    gap: 30px;
    align-items: start;
}
#hurricane-project .storm-section-copy p {
    margin-bottom: 0;
}

/* A central backend with four surrounding domain nodes and visible connectors. */
#hurricane-project .storm-system {
    margin: 0;
    padding: 16px;
    border-radius: 10px;
    background: #e9eff4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 24px;
    align-items: center;
}
#hurricane-project .storm-role {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #d4dfe7;
    padding: 18px 14px;
    border-radius: 9px;
    background: #f7f9fb;
    box-shadow: 0 2px 5px rgba(25, 45, 66, 0.04);
}
#hurricane-project .storm-role svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #3e6586;
}
#hurricane-project .storm-role h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    margin-bottom: 5px;
}
#hurricane-project .storm-role p {
    font-size: 0.76rem;
    line-height: 1.4;
    margin: 0;
}
#hurricane-project .storm-requester {
    grid-column: 1;
    grid-row: 1;
}
#hurricane-project .storm-volunteer {
    grid-column: 1;
    grid-row: 2;
}
#hurricane-project .storm-coordinator {
    grid-column: 3;
    grid-row: 1;
}
#hurricane-project .storm-shelter {
    grid-column: 3;
    grid-row: 2;
}
#hurricane-project .storm-role::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 24px;
    height: 1px;
    background: #738fa6;
}
#hurricane-project :is(.storm-requester, .storm-volunteer)::after {
    right: -25px;
}
#hurricane-project :is(.storm-coordinator, .storm-shelter)::after {
    left: -25px;
}
#hurricane-project .storm-core {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: #254662;
    color: #fff;
    border-radius: 9px;
    padding: 20px 15px;
}
#hurricane-project .storm-core > svg {
    width: 30px;
    height: 30px;
    margin: 0 auto 12px;
}
#hurricane-project .storm-core h4 {
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    line-height: 1.25;
    letter-spacing: 0;
    margin: 0;
}
#hurricane-project .storm-core p {
    color: #edf3f7;
    font-size: 0.8rem;
}
#hurricane-project .storm-core ul {
    text-align: left;
    padding-left: 16px;
    font-size: 0.74rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
    margin: 0;
}
#hurricane-project .storm-core > span {
    font-size: 0.7rem;
    margin-top: 10px;
    color: #d5e2ec;
}
#hurricane-project .storm-system figcaption {
    grid-column: 1 / -1;
    font-size: 0.7rem;
    line-height: 1.4;
    color: #526e85;
    margin-top: -10px;
}

/* Open workflow timelines, with icon circles and readable captions. */
#hurricane-project .storm-workflow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
#hurricane-project .storm-workflow li {
    position: relative;
    text-align: center;
    min-width: 0;
}
#hurricane-project .storm-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dce8f3;
    color: #355f82;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
}
#hurricane-project .storm-step-icon svg {
    width: 30px;
    height: 30px;
}
#hurricane-project .storm-workflow strong {
    font-size: 0.82rem;
    color: #243e57;
}
#hurricane-project .storm-workflow p {
    font-size: 0.76rem;
    line-height: 1.4;
    margin: 6px 0 0;
}
#hurricane-project .storm-workflow li > svg {
    position: absolute;
    top: 27px;
    right: -20px;
    width: 23px;
    height: 16px;
    color: #58748b;
}
#hurricane-project .storm-process {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
#hurricane-project .storm-process [aria-current='step'] .storm-step-icon {
    background: #254662;
    color: #fff;
}

/* Real source excerpts are rendered as selectable code, not imagery. */
#hurricane-project .storm-technical {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr) minmax(0, 0.65fr);
    gap: 22px;
}
#hurricane-project .storm-editor {
    background: #142c3e;
    color: #e7eef4;
    border: 1px solid #344f64;
    border-radius: 7px;
    overflow: hidden;
    align-self: start;
    min-width: 0;
}
#hurricane-project .storm-code-tabs {
    display: flex;
    background: #1c3448;
    border-bottom: 1px solid #355065;
}
#hurricane-project .storm-code-tabs button {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 13px 15px;
    font: inherit;
    font-size: 0.76rem;
    color: #adbccc;
    cursor: pointer;
    min-height: 44px;
}
#hurricane-project .storm-code-tabs [aria-selected='true'] {
    color: #fff;
    border-bottom-color: #90bacf;
    background: #223e54;
}
#hurricane-project .storm-code-tabs button:focus-visible {
    outline: 2px solid #bed8ea;
    outline-offset: -4px;
}
#hurricane-project .storm-editor pre {
    margin: 0;
    padding: 18px 12px 12px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    tab-size: 4;
}
#hurricane-project .storm-editor code {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.55;
}
#hurricane-project .storm-code-line {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 8px;
}
#hurricane-project .storm-code-number {
    color: #8ba0b2;
    user-select: none;
    text-align: right;
}
#hurricane-project .storm-code-keyword {
    color: #e7a5bb;
}
#hurricane-project .storm-code-string {
    color: #e9cd9b;
}
#hurricane-project .storm-code-comment {
    color: #9eb6a6;
}
#hurricane-project .storm-code-source {
    margin: 0;
    padding: 10px 16px;
    border-top: 1px solid #355065;
    color: #b8cad7;
    font-size: 0.69rem;
    line-height: 1.4;
}
#hurricane-project .storm-editor [hidden] {
    display: none;
}
#hurricane-project .storm-architecture-note {
    background: #e8eff4;
    padding: 22px 18px;
    border-radius: 7px;
}
#hurricane-project .storm-architecture-note > svg {
    width: 35px;
    height: 35px;
    color: #3e6484;
    margin-bottom: 18px;
}
#hurricane-project .storm-architecture-note p {
    font-size: 0.88rem;
}
#hurricane-project .storm-architecture-note code {
    font-size: 0.78rem;
    line-height: 1.7;
    color: #345872;
}
#hurricane-project .storm-architecture-note .relief-note {
    margin-top: 18px;
    margin-bottom: 0;
    font-size: 0.76rem;
}

/* Two contribution panels sit beside the editorial introduction. */
#hurricane-project .storm-contributions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
#hurricane-project .storm-contributions article {
    display: flex;
    gap: 16px;
    min-width: 0;
    padding: 22px;
    background: #e8eff5;
    border-radius: 7px;
}
#hurricane-project .storm-contribution-icon > svg {
    width: 26px;
    height: 26px;
    color: #315d81;
}
#hurricane-project .storm-contributions h4 {
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}
#hurricane-project .storm-contributions p {
    font-size: 0.82rem;
    margin-bottom: 12px;
}
#hurricane-project .storm-contributions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#hurricane-project .storm-contributions li {
    display: flex;
    gap: 9px;
    margin-bottom: 7px;
    font-size: 0.82rem;
    line-height: 1.4;
}
#hurricane-project .storm-contributions li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}
#hurricane-project .storm-contributions .relief-note {
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 0.73rem;
}

/* Laptop/tablet: widen the diagram and editor instead of squeezing their contents. */
@media (max-width: 1150px) {
    #hurricane-project .storm-problem {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #hurricane-project .storm-challenges {
        grid-column: 1 / -1;
        flex-direction: row;
    }
    #hurricane-project .storm-challenges article {
        flex: 1;
    }
    #hurricane-project .storm-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
    #hurricane-project .storm-technical {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    }
    #hurricane-project .storm-architecture-note {
        grid-column: 1 / -1;
    }
}
@media (max-width: 700px) {
    #hurricane-project {
        padding: 22px 0;
    }
    #hurricane-project .relief-hero, #hurricane-project .storm-problem, #hurricane-project .storm-technical, #hurricane-project .storm-contributions {
        grid-template-columns: minmax(0, 1fr);
    }
    #hurricane-project .relief-hero-photo {
        margin: 0;
    }
    #hurricane-project .relief-hero-photo img {
        height: auto;
        min-height: 0;
        aspect-ratio: 1.5;
        mask-image: none;
        border-radius: 8px;
    }
    #hurricane-project .relief-metadata {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #hurricane-project .storm-flood {
        height: auto;
        min-height: 0;
        aspect-ratio: 1.4;
    }
    #hurricane-project .storm-challenges {
        flex-direction: column;
    }
    #hurricane-project .storm-system {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    #hurricane-project :is(.storm-requester, .storm-volunteer, .storm-coordinator, .storm-shelter, .storm-core) {
        grid-column: 1;
        grid-row: auto;
    }
    #hurricane-project .storm-core {
        grid-row: 1;
    }
    #hurricane-project .storm-role::after {
        display: none;
    }
    #hurricane-project .storm-system figcaption {
        margin-top: 0;
    }
    #hurricane-project .storm-workflow {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    #hurricane-project .storm-workflow li {
        display: grid;
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 0 15px;
        text-align: left;
    }
    #hurricane-project .storm-step-icon {
        grid-row: 1 / 3;
        margin: 0;
        width: 50px;
        height: 50px;
    }
    #hurricane-project .storm-workflow li > svg {
        display: none;
    }
    #hurricane-project .storm-architecture-note {
        grid-column: auto;
    }
    #hurricane-project .relief-closing {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }
}

/* Vesta case study: warm ivory, burgundy typography, and page-native demo visuals.
   Scope all styling to Vesta; header, navigation, and other case studies remain intact. */
#vesta-project {
    --vesta-wine: #65102c;
    --vesta-rose: #831d3d;
    --vesta-blush: #f4e5e2;
    --vesta-ivory: #faf7f1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0 26px;
    color: #50494a;
}
#vesta-project *, #vesta-project *::before, #vesta-project *::after {
    box-sizing: border-box;
}
#vesta-project p {
    font-size: 0.96rem;
    line-height: 1.5;
    color: #50494a;
    margin: 0 0 16px;
}
#vesta-project h2, #vesta-project h3, #vesta-project h4 {
    font-family: Georgia, serif;
    color: var(--vesta-wine);
    letter-spacing: -0.035em;
}
#vesta-project h3 {
    font-size: clamp(1.8rem, 2.65vw, 2.6rem);
    line-height: 1.05;
    margin: 0 0 14px;
}
#vesta-project h4 {
    font-size: 1.15rem;
    line-height: 1.2;
    margin: 0 0 9px;
}
#vesta-project .vesta-label {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--vesta-wine);
    margin-bottom: 12px;
}
#vesta-project a:focus-visible, #vesta-project pre:focus-visible {
    outline: 3px solid #a2566b;
    outline-offset: 4px;
}
#vesta-project .vesta-small {
    font-size: 0.77rem;
    line-height: 1.45;
    color: #766768;
}
#vesta-project .vesta-section {
    border-top: 1px solid #dfd0ca;
    padding-top: 24px;
    margin-top: 24px;
}
#vesta-project :is(.vesta-hero, .vesta-problem, .vesta-split, .vesta-modeling, .vesta-ai, .vesta-technical) > * {
    min-width: 0;
}

/* Prominent supplied hero image: no extra screen mockup, border, or cropping. */
#vesta-project .vesta-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 20px;
}
#vesta-project .vesta-breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.76rem;
}
#vesta-project .vesta-breadcrumb a {
    color: var(--vesta-wine);
    text-decoration: none;
}
#vesta-project .vesta-breadcrumb a:hover {
    text-decoration: underline;
}
#vesta-project h2 {
    font-size: clamp(4.5rem, 8vw, 7.4rem);
    line-height: 0.95;
    padding: 0;
    border: 0;
    margin: 0 0 10px;
}
#vesta-project .vesta-subtitle {
    font-family: Georgia, serif;
    color: var(--vesta-wine);
    font-size: clamp(1.6rem, 2.6vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}
#vesta-project .vesta-hero-image {
    display: block;
    width: 100%;
    height: auto;
    /* Fade only the outer botanical margins. The bezel begins beyond 23%
       horizontally and 9% vertically, inside the fully opaque region.
       Percentage masks scale with the uncropped image on every viewport. */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 19%, #000 98%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 6%, #000 97%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0%, #000 19%, #000 98%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 6%, #000 97%, transparent 100%);
    mask-composite: intersect;
}
#vesta-project .vesta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
#vesta-project .vesta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid #a46a78;
    border-radius: 26px;
    color: var(--vesta-wine);
    font-size: 0.77rem;
    text-decoration: none;
}
#vesta-project .vesta-button-primary {
    background: var(--vesta-wine);
    color: #fff;
    border-color: var(--vesta-wine);
}
#vesta-project .vesta-button:hover {
    background: #f0dedb;
}
#vesta-project .vesta-button-primary:hover {
    background: #831d3d;
}
#vesta-project a > svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}
#vesta-project .vesta-metadata {
    display: grid;
    grid-template-columns: 0.85fr 1.4fr 0.65fr 1.4fr 1fr;
    gap: 18px;
    border-top: 1px solid #dfd0ca;
    padding-top: 15px;
    margin: 22px 0 0;
}
#vesta-project dt {
    color: var(--vesta-wine);
    font-size: 0.61rem;
    letter-spacing: 0.12em;
    margin-bottom: 7px;
}
#vesta-project dd {
    margin: 0;
    color: #50494a;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Three-part problem composition uses an existing warm planning photograph. */
#vesta-project .vesta-problem {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.05fr) minmax(0, 0.9fr);
    gap: 22px;
}
#vesta-project .vesta-lifestyle {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    object-position: 50% center;
    border-radius: 8px;
}
#vesta-project .vesta-challenges {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#vesta-project .vesta-challenges article {
    display: flex;
    gap: 13px;
    padding: 17px;
    background: #f6eae4;
    border-radius: 8px;
    flex: 1;
}
#vesta-project .vesta-challenges svg {
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    color: var(--vesta-wine);
}
#vesta-project .vesta-challenges h4 {
    font-size: 1.04rem;
    margin-bottom: 6px;
}
#vesta-project .vesta-challenges p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
}

/* Shared finances: intentionally labeled visualization, not a fabricated screenshot. */
#vesta-project .vesta-split, #vesta-project .vesta-modeling {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.8fr);
    gap: 30px;
}
#vesta-project .vesta-feature-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}
#vesta-project .vesta-feature-list li {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #f4e6df;
    border-radius: 18px;
    margin-bottom: 7px;
    padding: 8px 12px;
    color: var(--vesta-wine);
    font-size: 0.82rem;
}
#vesta-project .vesta-feature-list svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
#vesta-project .vesta-shared-visual {
    margin: 0;
    border: 1px solid #e1cdc7;
    background: #faf3ed;
    border-radius: 10px;
    padding: 24px;
}
#vesta-project .vesta-visual-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e1cdc7;
    color: var(--vesta-wine);
}
#vesta-project .vesta-visual-header > strong {
    font-family: Georgia, serif;
    font-size: 1.7rem;
}
#vesta-project .vesta-visual-header > span {
    align-self: center;
    font-size: 0.7rem;
}
#vesta-project .vesta-shared-visual > h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}
#vesta-project .vesta-workspaces {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
#vesta-project .vesta-workspaces article {
    padding: 20px;
    border: 1px solid #e4d8d0;
    background: #fdfaf5;
    border-radius: 7px;
}
#vesta-project .vesta-workspaces article > div {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    justify-content: space-between;
}
#vesta-project .vesta-workspaces h5 {
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a2731;
    margin: 0;
}
#vesta-project .vesta-readiness {
    border-radius: 12px;
    padding: 4px 8px;
    background: #e9efdf;
    color: #476347;
    font-size: 0.66rem;
}
#vesta-project .vesta-readiness-risk {
    background: #f3deda;
    color: #8a293f;
}
#vesta-project .vesta-workspaces article > p {
    font-size: 0.76rem;
    margin-top: 10px;
}
#vesta-project .vesta-workspaces dl {
    margin: 18px 0;
}
#vesta-project .vesta-workspaces dl > div {
    border-bottom: 1px solid #e7dcd4;
    padding: 12px 0;
}
#vesta-project .vesta-workspaces dt {
    font-size: 0.77rem;
    letter-spacing: 0;
    color: #65595a;
}
#vesta-project .vesta-workspaces dd {
    font-size: 1.5rem;
    font-weight: 600;
    color: #45252e;
}
#vesta-project .vesta-workspaces dd span {
    font-size: 0.75rem;
    font-weight: 400;
    margin-left: 7px;
    color: #627454;
}
#vesta-project .vesta-shared-visual figcaption {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #7b6465;
    margin-top: 18px;
}

/* Native SVG comparison charts use only verified obligation/readiness amounts. */
#vesta-project .vesta-chart-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}
#vesta-project .vesta-chart {
    margin: 0;
    padding: 20px 16px;
    background: #fcf6f2;
    border: 1px solid #e2cfca;
    border-radius: 10px;
}
#vesta-project .vesta-chart-after {
    background: #fcf7eb;
}
#vesta-project .vesta-chart figcaption {
    color: var(--vesta-wine);
    font-weight: 600;
    font-size: 0.83rem;
    margin-bottom: 12px;
}
#vesta-project .vesta-chart-value {
    color: var(--vesta-wine);
    font-size: 1.7rem;
    font-weight: 600;
}
#vesta-project .vesta-chart-value span {
    display: block;
    color: #8b7474;
    font-size: 0.7rem;
    font-weight: 400;
    margin-top: 4px;
}
#vesta-project .vesta-comparison {
    display: block;
    width: 100%;
    height: auto;
    margin: 12px 0;
}
#vesta-project .vesta-comparison text {
    fill: #75595c;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
}
#vesta-project .vesta-chart-grid {
    stroke: #e8d9d3;
    stroke-width: 1;
}
#vesta-project .vesta-bar-target {
    fill: #dfc2c3;
}
#vesta-project .vesta-bar-result {
    fill: #831d3d;
}
#vesta-project .vesta-bar-gap {
    fill: #f7eeea;
    stroke: #a6586e;
    stroke-dasharray: 4 3;
}
#vesta-project .vesta-chart-after .vesta-bar-target {
    fill: #eddbb6;
}
#vesta-project .vesta-chart-after .vesta-bar-result {
    fill: #b88836;
}
#vesta-project .vesta-chart p {
    font-size: 0.78rem;
    margin: 0;
}
#vesta-project .vesta-chart-arrow {
    display: flex;
    align-items: center;
    color: var(--vesta-wine);
}
#vesta-project .vesta-chart-arrow svg {
    width: 20px;
    height: 20px;
}

/* Contextual guidance stays on the ivory page, with soft panels and burgundy accents. */
#vesta-project .vesta-ai {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 0.65fr);
    gap: 24px;
    padding: 28px;
    background: transparent;
    border-top: 1px solid #dfd0ca;
    border-radius: 0;
}
#vesta-project .vesta-ai h3, #vesta-project .vesta-ai .vesta-label {
    color: var(--vesta-wine);
}
#vesta-project .vesta-ai > div:first-child p {
    color: #50494a;
}
#vesta-project .vesta-ai > div:first-child .vesta-label {
    color: var(--vesta-wine);
}
#vesta-project .vesta-ai > div:first-child .vesta-small {
    color: #766768;
}
#vesta-project .vesta-conversation {
    background: #fcf2ed;
    border-radius: 9px;
    padding: 20px;
}
#vesta-project .vesta-conversation > div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid #e3d1ca;
    margin-bottom: 16px;
    color: var(--vesta-wine);
}
#vesta-project .vesta-conversation > div > span {
    font-size: 0.67rem;
}
#vesta-project .vesta-conversation p {
    font-size: 0.88rem;
}
#vesta-project .vesta-conversation .vesta-question {
    background: #f3dfd9;
    border-radius: 8px;
    padding: 13px;
    color: #702b40;
}
#vesta-project .vesta-memory {
    padding: 20px;
    background: #f1dfd5;
    border-radius: 9px;
}
#vesta-project .vesta-memory > svg {
    width: 29px;
    height: 29px;
    color: var(--vesta-wine);
    margin-bottom: 14px;
}
#vesta-project .vesta-memory p {
    font-size: 0.85rem;
}

/* Verified TypeScript source is selectable, scrollable, and never rendered as an image. */
#vesta-project .vesta-technical {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr) minmax(0, 0.7fr);
    gap: 24px;
}
#vesta-project .vesta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0;
    list-style: none;
    margin: 18px 0;
}
#vesta-project .vesta-tags li {
    padding: 6px 11px;
    background: #f0dfd9;
    color: var(--vesta-wine);
    border-radius: 18px;
    font-size: 0.77rem;
}
#vesta-project .vesta-editor {
    min-width: 0;
    background: #241c25;
    color: #f0e6e8;
    border: 1px solid #49333e;
    border-radius: 8px;
    align-self: start;
    overflow: hidden;
}
#vesta-project .vesta-editor-tab {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid #5a3d4b;
    font-size: 0.8rem;
}
#vesta-project .vesta-editor-tab span {
    color: #bb9da8;
    font-size: 0.69rem;
}
#vesta-project .vesta-editor pre {
    margin: 0;
    padding: 16px 12px;
    overflow-x: auto;
}
#vesta-project .vesta-editor code {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 1.55;
}
#vesta-project .vesta-code-line {
    display: grid;
    grid-template-columns: 24px max-content;
    gap: 12px;
}
#vesta-project .vesta-code-line > span:first-child {
    color: #b89aa6;
    user-select: none;
    text-align: right;
}
#vesta-project .vesta-code-line b {
    font-weight: normal;
    color: #e7aac4;
}
#vesta-project .vesta-editor > p {
    font-size: 0.7rem;
    color: #c3a8b4;
    border-top: 1px solid #5a3d4b;
    padding: 12px 16px;
    margin: 0;
}
#vesta-project .vesta-technical-notes {
    background: #f3e4de;
    border-radius: 8px;
    padding: 18px;
}
#vesta-project .vesta-technical-notes > div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}
#vesta-project .vesta-technical-notes svg {
    width: 23px;
    height: 23px;
    color: var(--vesta-wine);
    flex-shrink: 0;
}
#vesta-project .vesta-technical-notes p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
}
#vesta-project .vesta-technical-notes strong {
    display: block;
    color: var(--vesta-wine);
    margin-bottom: 4px;
}
#vesta-project .vesta-process {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    padding: 0;
    margin: 0;
    list-style: none;
}
#vesta-project .vesta-process li {
    position: relative;
    text-align: center;
}
#vesta-project .vesta-process-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #f0ded9;
    color: var(--vesta-wine);
}
#vesta-project .vesta-process-icon svg {
    width: 26px;
    height: 26px;
}
#vesta-project .vesta-process h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    line-height: 1.25;
    letter-spacing: 0;
}
#vesta-project .vesta-process p {
    font-size: 0.79rem;
    line-height: 1.4;
}
#vesta-project .vesta-process li > svg {
    position: absolute;
    width: 27px;
    height: 17px;
    top: 22px;
    right: -24px;
    color: var(--vesta-wine);
}
#vesta-project .vesta-closing > p {
    max-width: 850px;
}
#vesta-project .vesta-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--vesta-wine);
    min-height: 44px;
    padding: 10px;
    font-size: 0.85rem;
    text-underline-offset: 4px;
}

/* Simplify tablet compositions before the visual and copy become cramped. */
@media (max-width: 1100px) {
    #vesta-project .vesta-problem {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #vesta-project .vesta-challenges {
        grid-column: 1 / -1;
        flex-direction: row;
    }
    #vesta-project .vesta-challenges article {
        min-width: 0;
    }
    #vesta-project .vesta-split, #vesta-project .vesta-modeling {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    #vesta-project .vesta-ai, #vesta-project .vesta-technical {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #vesta-project .vesta-memory, #vesta-project .vesta-technical-notes {
        grid-column: 1 / -1;
    }
    #vesta-project .vesta-metadata {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 700px) {
    #vesta-project .vesta-hero, #vesta-project .vesta-problem, #vesta-project .vesta-ai, #vesta-project .vesta-technical, #vesta-project .vesta-workspaces {
        grid-template-columns: minmax(0, 1fr);
    }
    #vesta-project .vesta-challenges {
        flex-direction: column;
    }
    #vesta-project .vesta-hero-image {
        margin-top: 8px;
    }
    #vesta-project h2 {
        font-size: 5rem;
    }
    #vesta-project .vesta-lifestyle {
        height: auto;
        min-height: 0;
        aspect-ratio: 1.4;
    }
    #vesta-project .vesta-metadata {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #vesta-project .vesta-chart-pair {
        grid-template-columns: minmax(0, 1fr);
    }
    #vesta-project .vesta-chart-arrow {
        justify-content: center;
        transform: rotate(90deg);
    }
    #vesta-project .vesta-ai {
        padding: 22px;
    }
    #vesta-project .vesta-shared-visual {
        padding: 18px;
    }
    #vesta-project .vesta-process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
    #vesta-project .vesta-process li > svg {
        display: none;
    }
}
@media (max-width: 420px) {
    #vesta-project .vesta-process {
        grid-template-columns: minmax(0, 1fr);
    }
    #vesta-project .vesta-process li {
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr);
        text-align: left;
        gap: 0 15px;
    }
    #vesta-project .vesta-process-icon {
        grid-row: 1 / 3;
        margin: 0;
    }
}

/* Vesta visual refinement. The shared navigation changes only while Vesta is active. */
body:has(#vesta-project.active) {
    background: #faf7f1;
}
body:has(#vesta-project.active) > nav {
    background: #65102c;
}
body:has(#vesta-project.active) > nav button {
    color: #faeee7;
}
body:has(#vesta-project.active) > nav button:hover, body:has(#vesta-project.active) > nav button.active {
    color: #65102c;
    background: #f6e9df;
}
#vesta-project .vesta-hero {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 12px;
}
#vesta-project .vesta-metadata {
    margin-top: 16px;
    padding-top: 13px;
}
#vesta-project .vesta-problem {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.12fr) minmax(0, 0.95fr);
}
#vesta-project .vesta-challenges article {
    padding: 18px;
    gap: 16px;
    background: #f5e8e0;
}
#vesta-project .vesta-challenges svg {
    width: 36px;
    height: 36px;
}

/* Labeled application illustration: branding, sidebar, health states, and readiness. */
#vesta-project .vesta-shared-visual {
    padding: 0;
    overflow: hidden;
    background: #fcf5ed;
}
#vesta-project .vesta-app-frame {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
}
#vesta-project .vesta-app-sidebar {
    padding: 22px 15px;
    background: #f3e5d7;
    border-right: 1px solid #e5d5ca;
    color: #65102c;
}
#vesta-project .vesta-app-sidebar > strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 2.1rem;
    font-variant: small-caps;
    letter-spacing: -0.04em;
}
#vesta-project .vesta-app-sidebar > span {
    display: block;
    color: #a97a77;
    font-size: 0.53rem;
    letter-spacing: 0.14em;
    margin: 14px 0;
}
#vesta-project .vesta-app-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    font-size: 0.7rem;
    line-height: 1.4;
}
#vesta-project .vesta-app-sidebar li {
    padding: 11px 8px;
    margin: 3px -5px;
    border-radius: 6px;
}
#vesta-project .vesta-app-selected {
    background: #ebcec5;
    font-weight: 600;
}
#vesta-project .vesta-app-sidebar > div {
    background: #f0d8bd;
    padding: 17px 12px;
    border-radius: 7px;
    margin-bottom: 20px;
}
#vesta-project .vesta-app-sidebar b {
    font-family: Georgia, serif;
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1;
}
#vesta-project .vesta-app-sidebar > div > span {
    display: block;
    font-size: 0.66rem;
    margin-top: 12px;
    color: #936967;
}
#vesta-project .vesta-app-sidebar > p {
    font-size: 0.73rem;
    color: #65102c;
    margin: 0;
}
#vesta-project .vesta-app-sidebar small {
    font-size: 0.61rem;
    color: #8e7774;
}
#vesta-project .vesta-app-main {
    padding: 20px;
    min-width: 0;
}
#vesta-project .vesta-app-main > h4 {
    font-size: 1.6rem;
    margin-bottom: 5px;
}
#vesta-project .vesta-app-intro {
    color: #88716e;
    font-size: 0.75rem;
    margin-bottom: 20px;
}
#vesta-project .vesta-visual-header {
    margin: 0 0 22px;
    padding-bottom: 14px;
}
#vesta-project .vesta-app-search {
    font-size: 0.68rem;
    color: #897a76;
}
#vesta-project .vesta-workspaces article {
    padding: 17px;
}
#vesta-project .vesta-shared-visual figcaption {
    border-top: 1px solid #e3d4ca;
    padding: 12px 18px;
    margin: 0;
    background: #fcf7f0;
}
#vesta-project .vesta-readiness-track {
    height: 5px;
    background: #e5e8dc;
    border-radius: 8px;
    margin-top: 16px;
    overflow: hidden;
}
#vesta-project .vesta-readiness-track > span {
    display: block;
    height: 100%;
    background: #6a7e53;
    border-radius: inherit;
}
#vesta-project .vesta-readiness-track-risk {
    background: #ead4d2;
}
#vesta-project .vesta-readiness-track-risk > span {
    background: #9a435a;
}

/* Dated forecasts use matching axes and scales; color distinguishes the two scenarios. */
#vesta-project .vesta-chart {
    padding: 18px 16px;
    background: #fdf8f4;
    box-shadow: 0 3px 15px rgba(101, 16, 44, 0.025);
}
#vesta-project .vesta-chart-after {
    background: #fcf8ef;
}
#vesta-project .vesta-chart-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
#vesta-project .vesta-chart-callout {
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.66rem;
    color: #831d3d;
    background: #f6e1df;
    text-align: center;
    line-height: 1.4;
}
#vesta-project .vesta-chart-after .vesta-chart-callout {
    color: #815b21;
    background: #f5e7cc;
}
#vesta-project .vesta-comparison text {
    font-size: 11px;
}
#vesta-project .vesta-forecast-line {
    fill: none;
    stroke: #831d3d;
    stroke-width: 2.2;
    stroke-linejoin: round;
}
#vesta-project .vesta-forecast-point {
    fill: #831d3d;
}
#vesta-project .vesta-chart-after .vesta-forecast-line {
    stroke: #b68632;
}
#vesta-project .vesta-chart-after .vesta-forecast-point {
    fill: #b68632;
}
#vesta-project .vesta-minimum-ring {
    fill: #fff9f1;
    stroke: #831d3d;
    stroke-width: 2;
}
#vesta-project .vesta-chart-after .vesta-minimum-ring {
    stroke: #b68632;
}
#vesta-project .vesta-comparison .vesta-low-label {
    font-weight: 700;
    fill: #65102c;
}
#vesta-project .vesta-chart-after .vesta-comparison .vesta-low-label {
    fill: #855c20;
}
#vesta-project .vesta-comparison .vesta-chart-date {
    font-size: 10px;
}

/* Keep the existing AI layout and spacing; remove the viewport-wide background paint. */
#vesta-project .vesta-ai {
    padding: 34px 0;
    border-radius: 0;
    gap: 26px;
    position: relative;
    isolation: isolate;
    box-shadow: none;
    clip-path: none;
}
#vesta-project .vesta-conversation {
    border: 1px solid #ead2ca;
}
#vesta-project .vesta-conversation .vesta-question {
    margin-left: 32px;
    border-radius: 14px 14px 3px 14px;
    background: #eed1cf;
}
#vesta-project .vesta-memory {
    background: #f5e8e2;
    align-self: stretch;
}
#vesta-project .vesta-assistant-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #65102c;
    color: #fff4e9;
    border-radius: 5px;
    margin-right: 6px;
    font-family: Georgia, serif;
}
#vesta-project .vesta-answer {
    background: #fbf2e9;
    padding: 14px;
    border-radius: 3px 14px 14px 14px;
}
#vesta-project .vesta-conversation-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #e1cac3;
    border-radius: 25px;
    padding: 9px 12px;
    color: #927a76;
    font-size: 0.72rem;
}
#vesta-project .vesta-conversation-input > span:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #831d3d;
    color: #fff;
}
#vesta-project .vesta-editor-tab {
    padding: 0 14px;
    align-items: center;
}
#vesta-project .vesta-editor-tab .vesta-editor-active {
    color: #fff2e9;
    font-size: 0.78rem;
    border-bottom: 2px solid #cf9aaa;
    padding: 13px 0;
}
#vesta-project .vesta-code-line i {
    color: #e4c899;
    font-style: normal;
}
#vesta-project .vesta-process-icon {
    width: 62px;
    height: 62px;
    background: #f1ddd7;
    border: 1px solid #ead0cb;
}
#vesta-project .vesta-process li > svg {
    top: 24px;
    width: 34px;
    right: -27px;
}

@media (max-width: 1100px) {
    #vesta-project .vesta-problem {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #vesta-project .vesta-app-frame {
        grid-template-columns: 135px minmax(0, 1fr);
    }
}
@media (max-width: 700px) {
    #vesta-project .vesta-hero, #vesta-project .vesta-problem {
        grid-template-columns: minmax(0, 1fr);
    }
    #vesta-project .vesta-ai {
        padding: 26px 0;
    }
    #vesta-project .vesta-app-frame {
        grid-template-columns: minmax(0, 1fr);
    }
    #vesta-project .vesta-app-sidebar {
        border-right: 0;
        border-bottom: 1px solid #e5d5ca;
        padding: 14px 18px;
    }
    #vesta-project .vesta-app-sidebar > strong {
        font-size: 1.7rem;
    }
    #vesta-project .vesta-app-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin: 10px 0 0;
    }
    #vesta-project .vesta-app-sidebar li {
        margin: 0;
        padding: 8px;
    }
    #vesta-project .vesta-app-sidebar > div, #vesta-project .vesta-app-sidebar > p, #vesta-project .vesta-app-sidebar > span {
        display: none;
    }
    #vesta-project .vesta-app-main {
        padding: 18px;
    }
    #vesta-project .vesta-process-icon {
        width: 54px;
        height: 54px;
    }
}

/* Vesta hero composition: the image includes ~24% botanical margin before the
   monitor. At 74% hero width, the monitor itself occupies about 53%.
   Position the image independently; never crop, blur, or lower its opacity. */
#vesta-project .vesta-hero {
    position: relative;
    display: block;
    isolation: isolate;
    min-height: clamp(380px, 32vw, 465px);
    padding: 12px 0 18px;
}

#vesta-project .vesta-hero-copy {
    position: relative;
    z-index: 1;
    width: 44%;
    padding: 0;
}

#vesta-project .vesta-hero-image {
    position: absolute;
    z-index: 0;
    top: -8px;
    right: -2%;
    width: 74%;
    max-width: none;
    height: auto;
    margin: 0;
    pointer-events: none;
}

#vesta-project .vesta-hero .vesta-subtitle {
    margin-bottom: 14px;
}

#vesta-project .vesta-hero-copy > p:not(.vesta-subtitle) {
    margin-bottom: 14px;
}

#vesta-project .vesta-hero .vesta-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
}

#vesta-project .vesta-hero .vesta-button {
    padding: 11px 14px;
    white-space: nowrap;
}

/* Five metadata columns remain a single row on desktop and laptop screens. */
@media (min-width: 1000px) {
    #vesta-project .vesta-metadata {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr) minmax(0, 0.6fr) minmax(0, 1.25fr) minmax(0, 1fr);
        gap: 18px;
        margin-top: 10px;
    }
}

/* Narrower screens restore natural image flow rather than shrinking the desktop
   composition. The existing background-only masks scale with the image. */
@media (max-width: 900px) {
    #vesta-project .vesta-hero {
        min-height: 0;
        padding: 0;
    }

    #vesta-project .vesta-hero-copy {
        width: 100%;
        max-width: 620px;
    }

    #vesta-project .vesta-hero-image {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        max-width: 100%;
        margin-top: 14px;
    }

    #vesta-project .vesta-hero .vesta-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 420px) {
    #vesta-project .vesta-hero .vesta-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Recruiter polish: retain existing cards and hero, with a quiet resume link. */
#home .home-resume-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    margin: 10px 0 0 14px;
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

#home .home-resume-link:hover {
    text-decoration-thickness: 2px;
}

#home .hero-buttons :focus-visible,
nav > .tab-btn:focus-visible {
    outline: 3px solid #d4e5f3;
    outline-offset: 4px;
}

/* Four cards where they remain readable; balanced pairs at intermediate widths. */
.home-building-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1300px) {
    .home-building-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .home-building-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #home .home-resume-link {
        margin: 0;
        padding: 0 5px;
    }
}

/* Home hero readability: preserve the photograph, crop, size, and headline type. */
#home .hero-banner {
    background-image: url("images/horseshoe.png");
}

#home .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

#home .hero-content h2 {
    margin: 0;
}

#home .hero-content .hero-subtitle {
    max-width: 550px;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #fff;
}

#home .home-availability {
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    padding: 10px 15px;
    border: 1px solid #e6e5dc;
    border-radius: 24px;
    background: #faf7ef;
    color: #1e3a5f;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.45;
}

#home .hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

#home .hero-buttons .button-link,
#home .hero-buttons .home-resume-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    margin: 0;
    padding: 11px 18px;
    border-radius: 22px;
    font-size: 0.8rem;
    line-height: 1.25;
}

#home .hero-buttons .home-resume-link {
    border: 1px solid #e4edf5;
    background: rgba(16, 37, 56, 0.78);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

#home .hero-buttons .home-resume-link:hover {
    background: #203f59;
    text-decoration: underline;
    text-underline-offset: 4px;
}

#home .hero-buttons .button-link.secondary {
    background: #faf7ef;
    color: #1e3a5f;
}

@media (max-width: 700px) {
    #home .hero-banner {
        background-image: url("images/horseshoe.png");
    }

    #home .hero-content {
        gap: 16px;
    }

    #home .hero-content .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    #home .home-availability {
        font-size: 0.74rem;
        padding: 10px 13px;
    }
}

/* Restore the unfiltered campus image. Contrast adjustments apply only to lettering. */
#home .hero-banner {
    background-image: url("images/horseshoe.png");
}
#home .hero-content h2 {
    text-shadow: 0 2px 5px rgba(17, 35, 48, 0.6);
}
#home .hero-content .hero-subtitle {
    text-shadow: 0 1px 3px rgba(17, 35, 48, 0.7);
    font-weight: 500;
}
#home .hero-buttons .button-link {
    font-family: inherit;
}

/* Desktop tabs are unchanged; the menu toggle occupies no desktop space. */
.mobile-nav-toggle {
    display: none;
}

/* Tablet adaptations: remove cramped project previews and contact columns. */
@media (max-width: 1100px) {
    #about .about-project-main {
        grid-template-columns: minmax(0, 1fr);
    }
    #about .about-project-main > img {
        height: 180px;
        min-height: 0;
        object-position: center;
    }
    #contact .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
    }
    #contact .contact-card-email {
        grid-row: auto;
    }
}

/* Mobile: fix container sizing and intrinsic widths rather than hiding overflow. */
@media (max-width: 700px) {
    main {
        padding: 1rem 1rem 2rem;
    }
    main > section {
        padding-left: 0;
        padding-right: 0;
        min-width: 0;
    }

    #site-navigation {

        gap: 8px;

        padding: 8px 16px;

    }
    #site-navigation .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 1 0 100%;
        margin: 0;
        min-height: 44px;
        padding: 10px 12px;
        color: #1e3a5f;
        background: #f7f4ef;
        font: inherit;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    #site-navigation.mobile-nav-ready:not(.mobile-menu-open) > .tab-btn {
        display: none;
    }
    #site-navigation > .tab-btn {
        flex: 1 1 calc(50% - 8px);
        min-height: 44px;
        margin: 0;
        padding: 10px 12px;
    }
    #site-navigation button:focus-visible {
        outline: 3px solid #1e3a5f;
        outline-offset: 2px;
    }
    body:has(#vesta-project.active) #site-navigation .mobile-nav-toggle {
        color: #65102c;
        background: #faf0e7;
    }

    #home .hero-banner {

        width: 100%;

        max-width: 100%;

        box-sizing: border-box;

        min-height: 530px;

        height: auto;

        padding: 28px 22px;

    }
    #home .hero-content {
        max-width: 100%;
        width: 100%;
    }
    #home .hero-content h2 {
        font-size: clamp(2rem, 8vw, 3.2rem);
    }
    #home .hero-buttons {
        width: 100%;
        gap: 10px;
    }
    #home .hero-buttons .button-link {
        flex: 1 1 auto;
    }
    .home-building, .home-building-card, .home-info-strip {
        box-sizing: border-box;
        min-width: 0;
    }
    .home-building-heading, .work-title-row, .work-card-bottom {
        min-width: 0;
    }
    .home-project-category {
        overflow-wrap: anywhere;
    }

    #projects .work-featured-card {

        grid-template-columns: minmax(0, 1fr);

    }
    #projects .work-thumbnail {
        width: 100%;
        min-width: 0;
        height: auto;
        aspect-ratio: 1.6;
    }
    #projects .work-coursework-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    #projects .work-link {
        min-height: 44px;
    }

    #coursework .coursework-toolbar {

        flex-direction: column;

        align-items: flex-start;

    }
    #coursework .coursework-filters {
        gap: 8px;
    }
    #coursework .coursework-filters button {
        min-height: 44px;
        padding: 10px 14px;
    }

    #about .about-hero > *, #about .about-education > *, #about .about-feature > * {

        min-width: 0;

    }
    #about .about-portrait {
        max-width: 100%;
    }
    #about .about-feature {
        grid-template-columns: minmax(0, 1fr);
    }
    #about .about-feature > img {
        height: 190px;
        min-height: 0;
        max-height: none;
        object-fit: cover;
    }
    #about .about-education {
        grid-template-columns: minmax(0, 1fr);
    }
    #about .about-job-heading {
        gap: 8px;
    }
    #about .about-meta {
        flex-shrink: 1;
    }

    #contact .contact-card-email, #contact .contact-social-card, #contact .contact-copy {

        box-sizing: border-box;

        min-width: 0;

    }
    #contact .contact-card-email {
        padding: 24px;
        min-height: 0;
    }
    #contact .contact-address {
        gap: 6px;
    }
    #contact .contact-social-content {
        min-width: 0;
        padding: 18px 14px;
    }
    #contact .contact-social-card h3 {
        font-size: 1.35rem;
    }
    #contact #copy-email {
        min-width: 44px;
        min-height: 44px;
    }

    #camellia-project .cam-award {

        max-width: 100%;

        flex: 1 1 210px;

    }
    #camellia-project .cam-actions, #vesta-project .vesta-actions {
        min-width: 0;
    }
    #camellia-project .cam-button, #vesta-project .vesta-button {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    #hurricane-project .storm-editor pre {

        overflow-x: auto;

        white-space: pre;

        overflow-wrap: normal;

    }
    #hurricane-project .storm-editor code {
        white-space: pre;
    }
    #hurricane-project .storm-code-line {
        grid-template-columns: 25px max-content;
    }
    #hurricane-project .storm-code-tabs {
        flex-wrap: wrap;
    }
    #hurricane-project .storm-code-tabs button {
        flex: 1 1 auto;
    }

    #HOPE-project .hope-progress li > div, #HOPE-project .hope-metadata > div {

        min-width: 0;

    }

    #vesta-project .vesta-ai, #vesta-project .vesta-technical {

        grid-template-columns: minmax(0, 1fr);

    }
    #vesta-project .vesta-chart-pair, #vesta-project .vesta-workspaces {
        grid-template-columns: minmax(0, 1fr);
    }
    #vesta-project .vesta-chart-arrow {
        justify-content: center;
    }
    #vesta-project .vesta-editor, #hurricane-project .storm-editor {
        max-width: 100%;
        min-width: 0;
    }
    #vesta-project .vesta-visual-header {
        flex-wrap: wrap;
    }
    #vesta-project .vesta-conversation .vesta-question {
        margin-left: 12px;
    }
}

/* Small phones: give social photographs and metadata their own reading rows. */
@media (max-width: 380px) {
    #contact .contact-social-card {
        grid-template-columns: minmax(0, 1fr);
    }
    #contact .contact-photo {
        height: 155px;
    }
    #contact .contact-social-content {
        padding: 20px;
    }
    #vesta-project .vesta-metadata, #hurricane-project .relief-metadata {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    #site-navigation .mobile-nav-toggle {
        box-sizing: border-box;
        min-width: 0;
    }

    #contact .contact-card-email h3 {
        font-size: clamp(1.9rem, 7vw, 2.65rem);
    }

    #vesta-project .vesta-comparison text,
    #vesta-project .vesta-comparison .vesta-chart-date {
        font-size: 15px;
    }
}

/* Consulting: extend the existing navy/cream editorial system without changing other pages. */
#consulting {
    --consulting-navy: #102a4b;
    --consulting-blue: #315b8d;
    --consulting-border: #d2d9e4;
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 0 28px;
    color: #43516a;
}

#consulting *, #consulting *::before, #consulting *::after {
    box-sizing: border-box;
}

#consulting p {
    color: #43516a;
    line-height: 1.6;
    margin: 0;
}

#consulting h2, #consulting h3, #consulting h4 {
    font-family: Georgia, serif;
    font-weight: 600;
    color: var(--consulting-navy);
    letter-spacing: -0.03em;
}

#consulting .consulting-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.23em;
    color: var(--consulting-blue);
    margin-bottom: 12px;
}

/* The campus image remains unaltered; its left edge fades into the warm page surface. */
#consulting .consulting-hero {
    position: relative;
    isolation: isolate;
    min-height: 400px;
    display: flex;
    align-items: center;
}

#consulting .consulting-hero-copy {
    position: relative;
    z-index: 1;
    width: 53%;
    padding: 34px 0;
}

#consulting h2 {
    font-size: clamp(3.4rem, 5.6vw, 5.4rem);
    line-height: 1.05;
    border: 0;
    padding: 0;
    margin: 0 0 24px;
}

#consulting .consulting-hero-copy > p:last-child {
    max-width: 570px;
    font-size: 1.12rem;
    line-height: 1.65;
}

#consulting .consulting-hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 57%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 33%);
    mask-image: linear-gradient(to right, transparent, #000 33%);
}

/* One substantial horizontal project, rather than a grid of small tiles. */
#consulting .consulting-featured {
    padding-top: 38px;
    margin-top: 14px;
}

#consulting h3 {
    font-size: clamp(2rem, 3.1vw, 3rem);
    line-height: 1.12;
    margin: 0 0 30px;
}

#consulting .consulting-project-card {
    display: grid;
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
    border: 1px solid var(--consulting-border);
    border-radius: 18px;
    overflow: hidden;
    background: #fcfbf8;
}

#consulting .consulting-project-card > * {
    min-width: 0;
}

#consulting .consulting-project-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
    object-position: 45% center;
}

#consulting .consulting-project-content {
    display: flex;
    flex-direction: column;
    padding: 30px 32px 24px;
}

#consulting .consulting-category {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--consulting-blue);
    margin-bottom: 8px;
}

#consulting .consulting-project-content h4 {
    font-size: clamp(1.9rem, 2.7vw, 2.8rem);
    line-height: 1.1;
    margin: 0 0 14px;
}

#consulting .consulting-project-description {
    font-size: 1.08rem;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 10px;
}

#consulting .consulting-event {
    font-size: 0.82rem;
    color: #536b87;
    margin-bottom: 20px;
}

#consulting .consulting-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

#consulting .consulting-tags li {
    padding: 6px 13px;
    border-radius: 20px;
    background: #e6eaf4;
    color: #163b70;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
}

#consulting .consulting-card-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--consulting-border);
    margin-top: auto;
}

#consulting .consulting-metadata {
    display: flex;
    flex-wrap: wrap;
    flex: 1 1 340px;
    gap: 16px;
    margin: 0;
}

#consulting .consulting-metadata > div {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

#consulting .consulting-metadata svg {
    width: 21px;
    height: 21px;
    color: #49627e;
    flex-shrink: 0;
}

#consulting .consulting-metadata dt {
    color: #596d85;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    margin-bottom: 3px;
}

#consulting .consulting-metadata dd {
    font-size: 0.75rem;
    font-weight: 600;
    color: #233a58;
    margin: 0;
    line-height: 1.4;
}

#consulting .consulting-project-link {
    min-height: 44px;
    padding: 12px 20px;
    margin: 0;
    font-family: inherit;
    font-size: 0.83rem;
    white-space: nowrap;
}

#consulting .consulting-project-link svg,
#boeing-project .button-link svg {
    width: 19px;
    height: 19px;
}

/* Strengths are open columns with thin dividers, not four boxed cards. */
#consulting .consulting-strengths {
    border-top: 1px solid var(--consulting-border);
    padding-top: 26px;
    margin-top: 44px;
}

#consulting .consulting-strength-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

#consulting .consulting-strength-grid article {
    min-width: 0;
}

#consulting .consulting-strength-grid article + article {
    border-left: 1px solid #dde2eb;
    padding-left: 26px;
}

#consulting .consulting-strength-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eaeef7;
    color: #183f74;
    margin-bottom: 14px;
}

#consulting .consulting-strength-icon svg {
    width: 28px;
    height: 28px;
}

#consulting .consulting-strength-grid h4 {
    font-size: 1.3rem;
    line-height: 1.18;
    margin: 0 0 10px;
}

#consulting .consulting-strength-grid p {
    font-size: 0.95rem;
    line-height: 1.55;
}

#consulting a:focus-visible,
#boeing-project a:focus-visible {
    outline: 3px solid #5278a0;
    outline-offset: 5px;
}

#consulting ::selection,
#boeing-project ::selection {
    background: #dce6f3;
    color: #102a4b;
}

/* Minimal destination, intentionally separate from the future Boeing case study. */
#boeing-project {
    max-width: 1100px;
    margin: 0 auto;
    padding: 42px 0;
}

#boeing-project h2 {
    font-family: Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #102a4b;
    border: 0;
    line-height: 1.1;
}

#boeing-project .button-link {
    min-height: 44px;
    box-sizing: border-box;
    white-space: normal;
}

@media (max-width: 1050px) {
    #consulting .consulting-hero-copy {
        width: 58%;
    }

    #consulting .consulting-hero-image {
        width: 55%;
    }

    #consulting .consulting-project-card {
        grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
    }

    #consulting .consulting-project-content {
        padding: 26px;
    }

    #consulting .consulting-strength-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    #consulting .consulting-strength-grid article:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 700px) {
    #consulting {
        padding: 12px 0 24px;
    }

    #consulting .consulting-hero {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    #consulting .consulting-hero-copy {
        width: 100%;
        padding: 14px 0 24px;
    }

    #consulting h2 {
        font-size: clamp(2.9rem, 12vw, 4.2rem);
        margin-bottom: 18px;
    }

    #consulting .consulting-hero-copy > p:last-child {
        font-size: 1rem;
        line-height: 1.6;
    }

    #consulting .consulting-hero-image {
        position: static;
        display: block;
        width: 100%;
        height: auto;
        border-radius: 8px;
        -webkit-mask-image: none;
        mask-image: none;
    }

    #consulting .consulting-featured {
        padding-top: 24px;
        margin-top: 8px;
    }

    #consulting h3 {
        font-size: clamp(1.9rem, 7.5vw, 2.4rem);
        margin-bottom: 22px;
    }

    #consulting .consulting-project-card {
        grid-template-columns: minmax(0, 1fr);
    }

    #consulting .consulting-project-image {
        height: auto;
        min-height: 0;
        aspect-ratio: 1.5;
        object-position: center;
    }

    #consulting .consulting-project-content {
        padding: 24px 20px;
    }

    #consulting .consulting-project-content h4 {
        font-size: 2rem;
    }

    #consulting .consulting-project-description {
        font-size: 1rem;
    }

    #consulting .consulting-metadata {
        flex-basis: 100%;
        gap: 16px 22px;
    }

    #consulting .consulting-project-link {
        min-height: 46px;
    }

    #consulting .consulting-strengths {
        margin-top: 30px;
    }

    #consulting .consulting-strength-grid,
    #consulting .consulting-strength-grid article + article {
        gap: 22px;
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 430px) {
    #consulting .consulting-strength-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #consulting .consulting-strength-grid article + article {
        border-top: 1px solid #dde2eb;
        padding-top: 22px;
    }
}


/* Boeing case study ---------------------------------------------------------
   All rules stay inside this page. Desktop editorial compositions become
   stacked reading layouts; the phase arrows become a connected mobile path. */
#boeing-project {
    --boeing-ink: #102a4b;
    --boeing-blue: #1456a0;
    --boeing-line: #dbe2ec;
    --boeing-paper: #f7f4ef;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 0 24px;
    color: var(--boeing-ink);
}
#boeing-project *, #boeing-project *::before, #boeing-project *::after { box-sizing: border-box; }
#boeing-project h2, #boeing-project h3, #boeing-project h4, #boeing-project p,
#boeing-project ul, #boeing-project ol, #boeing-project dl, #boeing-project dd,
#boeing-project figure { margin: 0; }
#boeing-project h2, #boeing-project h3 { font-family: Georgia, serif; letter-spacing: -.035em; color: var(--boeing-ink); border: 0; padding: 0; }
#boeing-project h3 { font-size: clamp(1.7rem, 2.5vw, 2.35rem); line-height: 1.12; margin-bottom: 12px; }
#boeing-project h4 { font-size: 1rem; line-height: 1.3; }
#boeing-project p, #boeing-project li { font-size: .98rem; line-height: 1.65; }
#boeing-project svg { width: 25px; height: 25px; flex: 0 0 auto; }
#boeing-project a:focus-visible { outline: 3px solid #2873bd; outline-offset: 5px; }
#boeing-project .boeing-eyebrow { color: var(--boeing-blue); font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px; }
#boeing-project .boeing-row { padding: 38px 0; border-top: 1px solid var(--boeing-line); }

/* Large aircraft photograph with a fade confined to its left background. */
#boeing-project .boeing-hero { position: relative; isolation: isolate; min-height: 470px; display: flex; align-items: center; }
#boeing-project .boeing-hero-copy { position: relative; z-index: 1; width: 56%; padding: 22px 0 38px; }
#boeing-project .boeing-back { display: inline-flex; align-items: center; gap: 8px; color: var(--boeing-ink); font-size: .84rem; font-weight: 700; text-decoration: none; margin-bottom: 28px; }
#boeing-project .boeing-back svg { width: 19px; height: 19px; }
#boeing-project #boeing-title { max-width: 630px; font-size: clamp(2.5rem, 4.3vw, 4.15rem); line-height: 1.01; margin-bottom: 15px; }
#boeing-project .boeing-subtitle { max-width: 570px; font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.5; font-style: italic; }
#boeing-project .boeing-hero-photo { position: absolute; inset: 0 0 0 47%; z-index: 0; overflow: hidden; }
#boeing-project .boeing-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
#boeing-project .boeing-hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--boeing-paper), rgba(247,244,239,.92) 5%, rgba(247,244,239,.45) 17%, rgba(247,244,239,0) 32%); pointer-events: none; }
#boeing-project .boeing-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin-top: 20px; }
#boeing-project .boeing-tags li { border-radius: 20px; background: #dde8f8; padding: 3px 14px; font-size: .77rem; font-weight: 700; line-height: 1.6; }
#boeing-project .boeing-metadata { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; }
#boeing-project .boeing-metadata > div { display: flex; align-items: center; gap: 9px; }
#boeing-project .boeing-metadata dt { font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: #49617e; margin-bottom: 3px; }
#boeing-project .boeing-metadata dd { font-size: .76rem; font-weight: 700; }
#boeing-project .boeing-metadata svg { width: 21px; height: 21px; }

/* Overview and role: one quiet divider, no enclosing cards. */
#boeing-project .boeing-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
#boeing-project .boeing-overview > div + div { border-left: 1px solid var(--boeing-line); padding-left: 50px; }
#boeing-project .boeing-checklist { list-style: none; padding: 0; display: grid; gap: 9px; }
#boeing-project .boeing-checklist li { display: flex; align-items: flex-start; gap: 10px; }
#boeing-project .boeing-checklist svg { width: 20px; height: 20px; margin-top: 3px; color: var(--boeing-blue); }
#boeing-project .boeing-checklist strong { display: block; margin-bottom: 2px; }

/* Connected engine photograph and pale-blue editorial panel. */
#boeing-project .boeing-challenge { display: grid; grid-template-columns: 39% 1fr; border-radius: 15px; overflow: hidden; background: #eaf0f7; margin: 10px 0 38px; }
#boeing-project .boeing-challenge > img { display: block; width: 100%; height: 100%; min-height: 245px; object-fit: cover; }
#boeing-project .boeing-challenge > div { padding: 32px 38px; align-self: center; }

/* Arrow ribbons remain linked across the three proposed phases. */
#boeing-project .boeing-strategy { border-top: 0; padding-top: 0; }
#boeing-project .boeing-section-intro { max-width: 830px; }
#boeing-project .boeing-phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin-top: 25px; gap: 10px; }
#boeing-project .boeing-phases > li { min-width: 0; }
#boeing-project .boeing-phase-heading { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 13px 26px 13px 28px; background: #173b65; color: white; clip-path: polygon(0 0, 94% 0, 100% 50%, 94% 100%, 0 100%, 5% 50%); }
#boeing-project .boeing-phase-heading svg { width: 30px; height: 30px; }
#boeing-project .boeing-phase-heading h4 { font-size: .88rem; }
#boeing-project .boeing-phase-heading h4 span { display: block; font-size: .68rem; letter-spacing: .07em; margin-bottom: 3px; }
#boeing-project .boeing-phases > li:nth-child(2) .boeing-phase-heading { background: #a9c8ee; color: #102a4b; }
#boeing-project .boeing-phases > li:nth-child(3) .boeing-phase-heading { background: #dfe9f8; color: #102a4b; }
#boeing-project .boeing-phases > li > p { padding: 16px 22px 4px; font-size: .9rem; }

/* Contributions alongside a native, accessible tuition chart. Dashed lines
   connect confirmed endpoints only; no unverified annual values are plotted. */
#boeing-project .boeing-analysis { display: grid; grid-template-columns: .83fr 1.4fr; gap: 42px; }
#boeing-project .boeing-contributions { padding-right: 38px; border-right: 1px solid var(--boeing-line); }
#boeing-project .boeing-contribution { display: flex; align-items: flex-start; gap: 15px; margin-top: 22px; }
#boeing-project .boeing-contribution > svg { box-sizing: content-box; padding: 10px; background: #edf0f4; border-radius: 12px; }
#boeing-project .boeing-contribution p { font-size: .88rem; line-height: 1.5; margin-top: 5px; }
#boeing-project .boeing-financial { min-width: 0; }
#boeing-project .boeing-financial h3 { font-size: clamp(1.5rem, 2.1vw, 2rem); margin-bottom: 8px; }
#boeing-project .boeing-financial figcaption p { font-size: .86rem; }
#boeing-project .boeing-chart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 160px; align-items: center; gap: 10px; margin-top: 20px; }
#boeing-project .boeing-chart { width: 100%; height: auto; display: block; overflow: visible; }
#boeing-project .boeing-grid { stroke: #dce2ea; stroke-width: 1; }
#boeing-project .boeing-axis { fill: none; stroke: #c7d1de; }
#boeing-project .boeing-axis-labels, #boeing-project .boeing-axis-title { font-family: 'Manrope', sans-serif; font-size: 13px; fill: #102a4b; }
#boeing-project .boeing-axis-title { font-size: 12px; }
#boeing-project .boeing-cost-long, #boeing-project .boeing-cost-short { fill: none; stroke-width: 2.5; stroke-dasharray: 7 5; }
#boeing-project .boeing-cost-long { stroke: #173b65; }
#boeing-project .boeing-cost-short { stroke: #7ea8dc; }
#boeing-project .boeing-points-long { fill: #173b65; }
#boeing-project .boeing-points-short { fill: #7ea8dc; }
#boeing-project .boeing-legend { list-style: none; padding: 0; display: grid; gap: 13px; }
#boeing-project .boeing-legend li { position: relative; padding-left: 17px; font-size: .73rem; line-height: 1.4; }
#boeing-project .boeing-legend small { font-size: .68rem; color: #4d617d; }
#boeing-project .boeing-dot { position: absolute; left: 0; top: 4px; height: 9px; width: 9px; border-radius: 50%; }
#boeing-project .boeing-dot-long { background: #173b65; }
#boeing-project .boeing-dot-short { background: #7ea8dc; }
#boeing-project .boeing-cost-summary { margin-top: 18px; padding: 15px; border-radius: 12px; background: #e0eafa; }
#boeing-project .boeing-cost-summary h4 { font-size: .83rem; }
#boeing-project .boeing-cost-summary p { font-size: .7rem; line-height: 1.4; margin: 7px 0 12px; }
#boeing-project .boeing-cost-summary dl > div + div { margin-top: 10px; }
#boeing-project .boeing-cost-summary dt { font-size: .72rem; }
#boeing-project .boeing-cost-summary dd { font-size: 1.05rem; font-weight: 800; }
#boeing-project .boeing-chart-note { font-size: .73rem; color: #4d617d; line-height: 1.55; margin-top: 12px; }

/* The real demonstration occupies the larger column, with a native player. */
#boeing-project .boeing-twin { padding-top: 38px; padding-bottom: 42px; }
#boeing-project .boeing-twin-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; margin-top: 24px; }
#boeing-project .boeing-video { aspect-ratio: 16 / 9; border-radius: 14px; background: #102236; border: 1px solid #253d56; overflow: hidden; }
#boeing-project .boeing-video iframe { display: block; width: 100%; height: 100%; border: 0; }
#boeing-project .boeing-video-caption { color: #4d617d; font-size: .74rem; margin-top: 11px; }
#boeing-project .boeing-twin-copy > h4 { font-family: Georgia, serif; font-size: 1.45rem; margin-bottom: 12px; }
#boeing-project .boeing-twin-copy > p { font-size: .92rem; }
#boeing-project .boeing-twin-copy .boeing-checklist { margin-top: 20px; gap: 13px; }
#boeing-project .boeing-twin-copy .boeing-checklist li { font-size: .83rem; line-height: 1.5; }
#boeing-project .boeing-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
#boeing-project .button-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 17px; min-height: 46px; font-size: .77rem; line-height: 1.4; text-align: center; white-space: normal; background: #173b65; color: white; border: 1px solid #173b65; text-decoration: none; }
#boeing-project .button-link svg { width: 18px; height: 18px; }
#boeing-project .boeing-button-light { background: #f5f8ff; color: #102a4b; }
#boeing-project .button-link:hover { background: #284e7d; color: white; }
#boeing-project .boeing-button-light:hover { background: #dfe9f8; color: #102a4b; }

/* Intended benefits and a final link to the team's actual presentation. */
#boeing-project .boeing-outcomes { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 25px; align-items: start; }
#boeing-project .boeing-outcomes h3 { font-size: 1.8rem; }
#boeing-project .boeing-outcomes > div { display: flex; gap: 13px; border-left: 1px solid var(--boeing-line); padding-left: 22px; }
#boeing-project .boeing-outcomes > div svg { width: 29px; height: 29px; }
#boeing-project .boeing-outcomes p { font-size: .79rem; line-height: 1.55; }
#boeing-project .boeing-outcomes strong { display: block; font-size: .85rem; margin-bottom: 5px; }
#boeing-project .boeing-presentation { display: flex; align-items: center; gap: 22px; background: #102e54; border-radius: 15px; color: white; padding: 30px 34px; }
#boeing-project .boeing-presentation > svg { width: 38px; height: 38px; }
#boeing-project .boeing-presentation > div { flex: 1; }
#boeing-project .boeing-presentation h3 { color: white; font-size: 1.8rem; margin-bottom: 7px; }
#boeing-project .boeing-presentation p { font-size: .87rem; max-width: 760px; }
#boeing-project .boeing-presentation .button-link { flex-shrink: 0; padding-inline: 22px; }

/* Tablet: retain generous imagery while giving complex content full width. */
@media (max-width: 1100px) {
    #boeing-project .boeing-hero-copy { width: 59%; }
    #boeing-project .boeing-metadata { gap: 15px; }
    #boeing-project .boeing-overview { gap: 30px; }
    #boeing-project .boeing-overview > div + div { padding-left: 30px; }
    #boeing-project .boeing-analysis { grid-template-columns: .8fr 1.2fr; gap: 26px; }
    #boeing-project .boeing-contributions { padding-right: 24px; }
    #boeing-project .boeing-chart-layout { grid-template-columns: minmax(0, 1fr); }
    #boeing-project .boeing-chart-aside { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; }
    #boeing-project .boeing-cost-summary { margin-top: 0; }
    #boeing-project .boeing-twin-layout { gap: 26px; }
    #boeing-project .boeing-outcomes { grid-template-columns: 1fr 1fr 1fr; }
    #boeing-project .boeing-outcomes h3 { grid-column: 1 / -1; }
    #boeing-project .boeing-outcomes > div:first-of-type { padding-left: 0; border-left: 0; }
}
@media (max-width: 850px) {
    #boeing-project .boeing-hero { display: flex; flex-direction: column; align-items: stretch; }
    #boeing-project .boeing-hero-copy { width: 100%; padding-bottom: 26px; }
    #boeing-project #boeing-title { max-width: 650px; }
    #boeing-project .boeing-hero-photo { position: relative; inset: auto; height: 320px; }
    #boeing-project .boeing-hero-photo img { object-position: center 45%; }
    #boeing-project .boeing-hero-photo::after { background: linear-gradient(180deg, var(--boeing-paper), rgba(247,244,239,0) 22%); }
    #boeing-project .boeing-challenge { grid-template-columns: 40% 1fr; }
    #boeing-project .boeing-challenge > div { padding: 25px; }
    #boeing-project .boeing-analysis { grid-template-columns: 1fr; gap: 32px; }
    #boeing-project .boeing-contributions { border: 0; padding-right: 0; }
    #boeing-project .boeing-contribution { max-width: 650px; }
    #boeing-project .boeing-chart-layout { grid-template-columns: minmax(0, 1fr) 175px; }
    #boeing-project .boeing-chart-aside { display: block; }
    #boeing-project .boeing-cost-summary { margin-top: 18px; }
    #boeing-project .boeing-twin-layout { grid-template-columns: 1fr; }
    #boeing-project .boeing-presentation { flex-wrap: wrap; }
    #boeing-project .boeing-presentation > div { flex-basis: calc(100% - 60px); }
}
/* Phone: a connected vertical phase timeline, readable chart and full video. */
@media (max-width: 600px) {
    #boeing-project .boeing-row { padding: 30px 0; }
    #boeing-project .boeing-back { margin-bottom: 23px; }
    #boeing-project .boeing-hero-copy { padding-top: 12px; }
    #boeing-project #boeing-title { font-size: clamp(2.35rem, 10vw, 3.2rem); }
    #boeing-project .boeing-subtitle { font-size: 1rem; }
    #boeing-project .boeing-tags { gap: 7px; }
    #boeing-project .boeing-tags li { padding-inline: 11px; font-size: .72rem; }
    #boeing-project .boeing-metadata { gap: 18px 22px; }
    #boeing-project .boeing-metadata > div:last-child { flex-basis: 100%; }
    #boeing-project .boeing-hero-photo { height: 270px; }
    #boeing-project .boeing-overview { grid-template-columns: 1fr; gap: 28px; }
    #boeing-project .boeing-overview > div + div { border-left: 0; border-top: 1px solid var(--boeing-line); padding: 26px 0 0; }
    #boeing-project .boeing-challenge { grid-template-columns: 1fr; margin: 0 0 30px; }
    #boeing-project .boeing-challenge > img { min-height: 0; height: 220px; }
    #boeing-project .boeing-challenge > div { padding: 25px 22px; }
    #boeing-project .boeing-strategy { padding-top: 0; }
    #boeing-project .boeing-phases { grid-template-columns: 1fr; gap: 25px; position: relative; padding-left: 20px; }
    #boeing-project .boeing-phases::before { content: ''; position: absolute; left: 6px; top: 30px; bottom: 40px; width: 2px; background: #b8cbe2; }
    #boeing-project .boeing-phases > li { position: relative; }
    #boeing-project .boeing-phases > li::before { content: ''; position: absolute; left: -18px; top: 30px; width: 10px; height: 10px; background: #396699; border: 2px solid var(--boeing-paper); border-radius: 50%; }
    #boeing-project .boeing-phase-heading { min-height: 74px; padding-left: 21px; }
    #boeing-project .boeing-phases > li > p { padding: 12px 10px 0 21px; }
    #boeing-project .boeing-chart-layout { grid-template-columns: minmax(0, 1fr); }
    #boeing-project .boeing-chart-aside { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; }
    #boeing-project .boeing-cost-summary { margin-top: 0; }
    #boeing-project .boeing-chart .boeing-axis-labels { font-size: 15px; }
    #boeing-project .boeing-twin-layout { margin-top: 20px; }
    #boeing-project .boeing-actions { flex-direction: column; }
    #boeing-project .boeing-outcomes { grid-template-columns: 1fr; gap: 20px; }
    #boeing-project .boeing-outcomes > div, #boeing-project .boeing-outcomes > div:first-of-type { border-left: 0; border-top: 1px solid var(--boeing-line); padding: 20px 0 0; }
    #boeing-project .boeing-outcomes p { font-size: .88rem; }
    #boeing-project .boeing-presentation { padding: 26px 22px; gap: 15px; }
    #boeing-project .boeing-presentation > svg { width: 30px; height: 30px; }
    #boeing-project .boeing-presentation h3 { font-size: 1.6rem; }
    #boeing-project .boeing-presentation .button-link { width: 100%; }
}

/* Keep definition-list metadata semantic while aligning icon and label. */
#boeing-project .boeing-metadata > div { display: grid; gap: 3px; }
#boeing-project .boeing-metadata dt { display: flex; align-items: center; gap: 7px; }
#boeing-project .boeing-metadata dd { padding-left: 28px; }

/* Explicit text inheritance keeps dark ribbons and the final banner legible. */
#boeing-project .boeing-phase-heading h4 { color: inherit; }
#boeing-project .boeing-presentation p { color: #edf3ff; }
