/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Lora', serif;
}

/* ============================================================
   SIDE NAVIGATION — Shared Base
   ============================================================ */

/* ---- Color variants ---- */

.side-nav.light {
    color: white;
}

.side-nav.dark {
    color: #056AE0;
}

.side-nav.dark .back-text {
    color: #333;
}

/* ============================================================
   PROJECT NAV VARIANT
   Adds a blue panel behind the nav that extends with a
   curved/wave lower edge, matching the design mock.
   ============================================================ */

.side-nav.project-nav {
    /* Override transparent bg — the panel itself provides bg */
    background: transparent !important;
    color: white;
    /* Keep hover width but remove white bg flash */
}

.side-nav.project-nav:hover {
    background: transparent !important;
}



/* Nav links inherit white from project-nav */
.side-nav.project-nav .nav-brand,
.side-nav.project-nav .nav-back {
    color: white;
}

.side-nav.project-nav .back-text {
    color: white;
}

.side-nav.project-nav .nav-back:hover,
.side-nav.project-nav .nav-brand:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   Nav Brand & Back — Shared
   ============================================================ */
/*
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-brand:hover {
    background: rgba(255, 255, 255, 0.1);
}

.side-nav.dark .nav-brand:hover {
    background: rgba(30, 111, 217, 0.1);
}

.brand-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.brand-text {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.side-nav:hover .brand-text {
    opacity: 1;
}

.nav-back {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.nav-back:hover {
    background: rgba(255, 255, 255, 0.1);
}

.side-nav.dark .nav-back:hover {
    background: rgba(30, 111, 217, 0.1);
}

.back-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.back-text {
    opacity: 0;
    transition: opacity 0.3s ease;
    color: inherit;
}

.side-nav:hover .back-text {
    opacity: 1;
}

.project-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    padding-left: 12.5rem;
}

*/

/*Side nav v2*/
/* Side Navigation */
.side-nav {
    position: fixed;
    top: 2rem;
    left: 2.5rem; /* 40px page margin */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background: transparent;
    padding: 24px 12px 12px 12px; /* 24px top, 12px right, 12px bottom, 12px left */
    border-radius: 8px;
    transition: all 0.3s ease;
}

.side-nav:hover {
    background: transparent;
}

/* Nav color variants */
.side-nav.light {
    color: white;
}

.side-nav.dark {
    color: #056AE0;
}

.side-nav.dark .nav-text {
    color: #2D2D2D;
}

.side-nav.dark .brand-text {
    color: #2D2D2D;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    font-weight: 500;
    font-size: 32px;
    white-space: nowrap;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    padding: 4px 8px; /* 4px vertical, 8px horizontal */
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-brand:hover {
    background: transparent; /* No hover state for brand */
}

.side-nav.dark .nav-brand:hover {
    background: transparent; /* No hover state for brand */
}

.brand-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.brand-text {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.side-nav:hover .brand-text {
    opacity: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0; /* No gap in collapsed state */
    color: inherit;
    text-decoration: none;
    font-size: 24px;
    font-weight: 400;
    padding: 4px 8px; /* 4px vertical, 8px horizontal */
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: visible;
    position: relative;
    width: fit-content; /* Hug content in collapsed state */
}

/* When nav is expanded (hovered), add gap; hug icon + label (8px left / 16px right)
   instead of filling the nav container */
.side-nav:hover .nav-link {
    gap: 12px;
    width: fit-content;
    padding: 4px 16px 4px 8px;
}

.nav-link:hover {
    background: #0B60E0;
}

.side-nav.dark .nav-link:hover {
    background: #F4F4F4;
}

/* Base nav is pinned .dark, but each link's hover pill still needs to read as the "white
   nav on blue" color whenever the clip-path overlay's white layer is the one currently
   visible *at that link's own position* — checked per link (see the nav color-switching
   IIFE in project-script.js, which toggles this class on each .nav-link every frame)
   rather than once for the whole nav, since the blue/white boundary can cross through the
   middle of the nav itself instead of sitting cleanly above or below it. #sideNav (ID)
   beats .side-nav.dark .nav-link:hover's class-only specificity. */
#sideNav .nav-link.link-over-blue:hover {
    background: #0B60E0;
}

.side-nav:hover .nav-link.active {
    width: fit-content;
}

/* Selection reads via the underline only — no pill fill or inset shadow. (Currently
   unused on project pages: the single "Back" link never gets .active, since there's no
   in-page section for it to track — kept identical to the home page for consistency,
   in case that ever changes.) */
.nav-link.active {
    background: transparent;
}

.side-nav.dark .nav-link.active {
    background: transparent;
}

/* Underline: 2px thick, flush against the nav element, rounded caps */
.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0px;
    height: 2px;
    border-radius: 999px;
    background: white; /* light nav (white text) */
}

.side-nav.dark .nav-link.active::after {
    background: #056AE0; /* dark nav (primary blue text) */
}

/* An active link is already communicated by its underline — a hover pill on top of it
   is redundant/conflicting. !important because several context-specific hover rules
   (.dark, .link-over-blue) all need to be overridden uniformly. */
.nav-link.active:hover {
    background: transparent !important;
}

.nav-link.active .nav-text {
    font-weight: 500;
}

.nav-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    /* Icon sits in a 40x40 container */
    padding: 8px;
    box-sizing: content-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Hide all icon variations by default */
.nav-icon svg,
.brand-icon svg {
    position: absolute;
    display: none;
}

/* Show blue icons on dark nav (light backgrounds) by default */
.side-nav.dark .nav-icon .icon-blue,
.side-nav.dark .brand-icon .icon-blue {
    display: block;
}

/* Show white icons on light nav (dark backgrounds) by default */
.side-nav.light .nav-icon .icon-white,
.side-nav.light .brand-icon .icon-white {
    display: block;
}

/* Show blue selected icons when active on dark nav */
.side-nav.dark .nav-link.active .nav-icon .icon-blue {
    display: none;
}

.side-nav.dark .nav-link.active .nav-icon .icon-blue-selected {
    display: block;
}

/* Show white selected icons when active on light nav */
.side-nav.light .nav-link.active .nav-icon .icon-white {
    display: none;
}

.side-nav.light .nav-link.active .nav-icon .icon-white-selected {
    display: block;
}

.nav-text {
    opacity: 0;
    transition: opacity 0.3s ease;
    color: inherit;
    width: 0;
    overflow: hidden;
}

.side-nav:hover .nav-text {
    opacity: 1;
    width: auto;
}

/* --- Nav color switching via clip-path ---
   Duplicated verbatim from the home page (styles.css/script.js), which is confirmed
   working — an earlier project-page-specific variant of this (different hover-expand
   width mechanics, JS-driven hover mirroring) diverged just enough to hit an unresolved
   bug, so this reuses the exact same CSS/JS pattern rather than parallel-maintaining a
   variant. Two full copies of the nav sit stacked at the identical fixed position: the
   real, interactive "base" copy (#sideNav, permanently .dark/blue) always renders; a
   decorative "overlay" clone (permanently .light/white, inserted by project-script.js)
   sits on top, clipped with a live clip-path to only show over the page's blue region.
   Where the overlay is visible it fully repaints over the base copy beneath it, giving a
   hard, pixel-accurate split instead of a class-based swap. Both copies get all their
   color (text, icons, hover pill) from the ordinary .dark/.light rules above — each
   copy's class is just pinned rather than scroll-driven.
   Unlike the home page, project pages have no separate mobile hamburger-menu nav state
   (just minor position tweaks at narrow widths, see the @media blocks below), so this
   runs at all viewport widths — no breakpoint gating needed. */
.nav-overlay {
    pointer-events: none;
    /* Fully visible by default, matching the top of the hero (blue, white nav needed) —
       safe if the geometry script can't run. JS clips this from the bottom once it
       measures the real split. */
    clip-path: inset(0px 0px 0px 0px);
    /* .side-nav sets `transition: all 0.3s ease` for its hover expand/collapse
       animation. The overlay is a clone, so it inherits that — which would silently
       ease every clip-path update over 300ms. This needs to be a hard, instant split. */
    transition: none;
    /* .side-nav never sets align-items, so its flex children (.nav-brand, .nav-links)
       default to align-items: stretch — trying to fill .side-nav's own width, while
       .side-nav's width is itself computed via shrink-to-fit based on those same
       children. That circular dependency is what was clipping "Back"/"Tanner" mid-word
       on hover: browsers resolve it correctly for the original, parse-time DOM (base)
       but not reliably for a JS-cloned subtree inserted after the fact (overlay).
       Forcing flex-start here breaks the circularity for the overlay specifically,
       without touching base's (already-working) layout. */
    align-items: flex-start;
}

.nav-overlay[aria-hidden] * {
    pointer-events: none;
}

/* Base nav's real :hover expands it; mirror that onto the overlay (which can never
   receive a genuine :hover of its own, since pointer-events is off) via :has() rather
   than duplicating the hover state in JS. */
body:has(#sideNav:hover) .nav-overlay .nav-link {
    gap: 12px;
    width: fit-content;
    padding: 4px 16px 4px 8px;
}

body:has(#sideNav:hover) .nav-overlay .nav-text {
    opacity: 1;
    width: auto;
}

body:has(#sideNav:hover) .nav-overlay .brand-text {
    opacity: 1;
}

.nav-icon .icon-white path {
    stroke: white;
}

.nav-icon .icon-blue path {
    stroke: #056AE0;
}

.nav-icon .icon-white,
.nav-icon .icon-blue {
    width: 24px;
    height: 24px;
}


/* ============================================================
   Hero Section
   ============================================================ */

.hero-section {
    background: white;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding-left: 12.5rem;
}

.hero-image {
    width: 100%;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ============================================================
   Title Section
   ============================================================ */

.title-section {
    background: white;
    padding: 3rem 2rem 2rem;
}

.title-section .section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.project-title {
    font-size: 3rem;
    color: #2d2d2d;
    font-weight: 400;
    margin: 0;
}

.project-subtitle {
    font-size: 1.5rem; /* 24px */
    color: #74767E;
    font-weight: 400;
    margin-top: 0.5rem;
}

/* Gold underline accent — sits below subtitle (or title if no subtitle present) */
.project-subtitle::after,
.project-title:not(:has(~ .project-subtitle))::after {
    content: '';
    display: block;
    width: 7.5rem; /* 120px */
    height: 2px;
    background: #F5A623;
    margin-top: 1rem;
}

/* Phase heading — optional, for multi-phase project pages */
.phase-title {
    font-family: 'Lora', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #2D2D2D;
    margin-bottom: 0.25rem;
}

.phase-date {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #74767E;
    display: block;
    margin-bottom: 1.5rem;
}

/* ============================================================
   Content Sections
   ============================================================ */

.content-section {
    background: white;
    padding: 1rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    padding-left: 12.5rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2d2d2d;
    font-weight: 400;
}

.section-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.section-text:last-child {
    margin-bottom: 0;
}

/* ============================================================
   Pull Quote
   ============================================================ */

.pull-quote {
    border-left: 2px solid #F5A623;
    margin: 2.5rem 0 2.5rem 2.5rem; /* 40px left margin indents the border */
    padding: 0 2.5rem 0 0.75rem; /* 40px right, 12px between border and text */
}

.pull-quote p {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.25rem; /* 20px */
    font-style: italic;
    color: #2D2D2D;
    line-height: 1.7;
    margin: 0;
}

.pull-quote cite {
    display: block;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem; /* 16px */
    font-style: normal;
    color: #74767E;
    margin-top: 0.75rem;
}

/* ============================================================
   Two-column text + image layout
   ============================================================ */

.two-col {
    display: grid;
    grid-template-columns: 1fr 40%;
    gap: 3rem;
    align-items: start;
    margin: 2.5rem 0;
}

/* Reverse variant: image left, text right */
.two-col.two-col--reverse {
    grid-template-columns: 40% 1fr;
}

.two-col--reverse .two-col-image {
    order: -1;
}

.two-col-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Remove max-width constraint on text inside two-col */
.two-col .section-text {
    max-width: none;
}

@media (max-width: 768px) {
    .two-col,
    .two-col.two-col--reverse {
        grid-template-columns: 1fr;
    }

    .two-col--reverse .two-col-image {
        order: 0;
    }

    .two-col-image {
        order: 1;
    }
}

/* ============================================================
   Case Study Card
   ============================================================ */

.case-study-card {
    display: grid;
    grid-template-columns: 60% 1fr;
    gap: 3rem;
    align-items: start;
    margin: 2.5rem 0;
}

.case-card-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    background: #D9D9D9;
}

.case-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.case-card-title {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #2D2D2D;
    margin: 0;
}

.case-card-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

.case-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.meta-tag {
    background: #F4F4F4;
    border-radius: 99px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: #74767E;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
}

.case-card-cta {
    display: inline-block;
    border: 1.5px solid #056AE0;
    color: #056AE0;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 0.875rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.case-card-cta:hover {
    background: #056AE0;
    color: white;
}

@media (max-width: 768px) {
    .case-study-card {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Section List
   ============================================================ */

.section-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.section-list li {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.section-list li:last-child {
    margin-bottom: 0;
}

/* ============================================================
   Full-width Image
   ============================================================ */

.full-width-image {
    margin: 2.5rem 0;
}

.full-width-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ============================================================
   Two-column Card pair (equal-width, stacked layout per card)
   ============================================================ */

.two-col-card-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2.5rem 0;
}

.two-col-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.two-col-card-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.two-col-card-title {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #2D2D2D;
    margin: 0;
}

/* Override .two-col to support equal-width card pair */
.two-col.two-col--equal {
    grid-template-columns: 1fr 1fr;
}

/* ============================================================
   Research Stats Bar
   ============================================================ */

.research-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #056AE0;
    border-radius: 8px;
    margin: 2.5rem 0;
    overflow: hidden;
}

.research-stat {
    padding: 1.75rem 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.research-stat:last-child {
    border-right: none;
}

.research-stat-number {
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: white;
    line-height: 1;
}

.research-stat-label {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .research-stats {
        grid-template-columns: 1fr 1fr;
    }

    .research-stat:nth-child(2) {
        border-right: none;
    }

    .research-stat:nth-child(1),
    .research-stat:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* ============================================================
   Numbered Findings
   ============================================================ */

.numbered-findings {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.finding-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.finding-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: block;
}

.finding-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.25rem;
}

.finding-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #2D2D2D;
    line-height: 1.5;
}

.finding-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

/* ============================================================
   Rotating Features List
   ============================================================ */

.rotating-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: block;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.25rem;
}

.feature-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #2D2D2D;
}

.feature-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}


/* ============================================================
   Project Partners / Logos
   ============================================================ */

.project-partners {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.project-partners img {
    height: 32px;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
}

/* ============================================================
   Three-Column Image Grid (process iterations)
   ============================================================ */

.three-col-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

@media (max-width: 768px) {
    .three-col-images {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Image Placeholders
   ============================================================ */

.img-placeholder {
    background: #D9D9D9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    padding: 1rem;
    width: 100%;
}

.img-placeholder--hero {
    min-height: 380px;
}

.img-placeholder--full {
    min-height: 320px;
}

.img-placeholder--process {
    min-height: 180px;
}

.img-placeholder--card {
    width: 100%;
    aspect-ratio: 12 / 5;
}

/* ============================================================
   Behavior Carousel
   (reusable — pair with the [data-carousel] JS in project-script.js)
   ============================================================ */

.carousel {
    border: 2px solid #1A1D24;
    border-radius: 24px;
    overflow: hidden;
    margin: 2.5rem 0;
    background: #EAEFFC;
}

.carousel-viewport {
    position: relative;
    height: 480px; /* fixed — keeps carousel height consistent regardless of each slide's image aspect ratio */
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    display: flex;
}

.carousel-slide .img-placeholder {
    background: white;
    border: 1px solid #D9D9D9;
    border-radius: 12px;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.carousel-caption {
    background: #333A49;
    padding: 2rem 1.5rem 1.75rem;
}

.carousel-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
    margin: 0 0 0.5rem;
}

.carousel-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #C7CAD4;
    margin: 0 0 1.75rem;
    max-width: 900px;
    min-height: 3.2rem; /* reserves space for 2 lines so the caption bar doesn't resize between slides */
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.carousel-arrow {
    background: none;
    border: none;
    padding: 0.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F5A623;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.carousel-arrow:hover {
    opacity: 0.65;
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    opacity: 1;
}

.carousel-dot.active {
    background: transparent;
    border: 1.5px solid white;
}

@media (max-width: 768px) {
    .carousel-viewport {
        height: 260px;
        padding: 1.5rem;
    }

    .carousel-caption {
        padding: 1.5rem;
    }

    .carousel-title {
        font-size: 1.4rem;
    }
}

/* ============================================================
   Footer
   ============================================================ */

.project-footer {
    background: white;
    padding: 3rem 2rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-links a {
    color: #056AE0;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

/* ============================================================
   Responsive Design
   ============================================================ */

@media (max-width: 968px) {
    .hero-section {
        min-height: 40vh;
        padding: 3rem 0 1.5rem;
    }

    .hero-content {
        /* Collapsed .side-nav's visible icon (not its oversized layout box — see the
           .section-container comment below) has a right edge at 84px (16px nav position
           + 12px nav padding + 56px icon hit target). The home page leaves a 56px gap
           past its own collapsed nav icon at this breakpoint, so matching that here
           means content should start at 84 + 56 = 140px = 8.75rem. */
        padding-left: 8.75rem;
        padding-right: 1.5rem; /* 24px — matches content-section right edge */
    }

    .project-title {
        font-size: 2.5rem;
    }

    .title-section {
        padding: 2rem 1.5rem 1.5rem;
    }

    .content-section {
        padding: 1.5rem; /* 24px on all sides — handles right edge spacing */
    }

    .section-container {
        /* Same 140px target as .hero-content above (see its comment), minus the 24px
           .content-section already contributes via its own padding: 140 - 24 = 116px
           = 7.25rem, landing content 56px past the collapsed nav icon — matching the
           gap the home page leaves past its own collapsed nav at this breakpoint. */
        padding-left: 7.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .side-nav {
        top: 1rem;
        left: 1rem;
    }

    /* Drop the desktop-only 40px left margin/right padding so the quote's
       border and text line up with the surrounding paragraphs instead of
       sitting narrower than the rest of the content column. */
    .pull-quote {
        margin-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .side-nav {
        padding: 0.75rem;
    }

    .hero-content {
        /* Same 140px target as the 968px breakpoint above — the collapsed nav's own
           geometry (left position + icon hit target) doesn't change at this narrower
           breakpoint, so neither does the padding needed to clear it. */
        padding-left: 8.75rem;
        padding-right: 1.5rem;
    }

    .section-container {
        /* Same 116px (7.25rem) target as the 968px breakpoint above. */
        padding-left: 7.25rem;
    }

    .project-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .two-col,
    .two-col.two-col--reverse,
    .two-col.two-col--equal {
        grid-template-columns: 1fr;
    }

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

    .finding-item,
    .feature-item {
        grid-template-columns: 48px 1fr;
        gap: 1rem;
    }

    .finding-icon,
    .feature-icon {
        width: 48px;
        height: 48px;
    }

    /* Corner radius scaled to 50% of its desktop value, matching images shrinking down
       to the mobile breakpoint. */
    .hero-image img,
    .two-col-image img,
    .case-card-image img,
    .full-width-image img,
    .two-col-card-image img,
    .img-placeholder {
        border-radius: 4px; /* 8px desktop */
    }

    .carousel {
        border-radius: 12px; /* 24px desktop */
    }

    .carousel-slide .img-placeholder,
    .carousel-slide img {
        border-radius: 6px; /* 12px desktop */
    }
}