/* ===== Base / Reset ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
}

:root {
    --ink: #022351;
    --bg-band: #f7f7f7;
    --rule: #eaeaea;
    --card-radius: 16px;
    --play-nudge: 2%;
    --play-nudge-lg: 1.5%;
}

/* ===== Generic section helpers ===== */
.case-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 3rem 0;
}

.case-section {
    flex: 1;
    padding: 1rem;
    background: #fafafa;
    border-radius: 10px;
}

.section-heading {
    font-family: 'Barlow', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: .5rem;
    letter-spacing: -.02em;
}

@media (min-width: 768px) {
    .case-sections {
        flex-direction: row;
    }
}

/* ===== Featured Work (band) ===== */
.featured-work {
    background: var(--bg-band);
    padding: 64px 0 76px;
    margin-top: 64px;
    border-top: 1px solid var(--rule);
}

.featured-work .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.featured-title {
    font: 800 clamp(1.6rem, 3.2vw, 2.4rem) / 1.1 'Barlow', system-ui, sans-serif;
    color: var(--ink);
    letter-spacing: -.02em;
    margin: 0 0 26px;
}

.fw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .fw-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.fw-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
    background: #000;
    isolation: isolate;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}

.fw-card .fw-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    filter: brightness(.85) contrast(1.06) saturate(.98);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), filter .35s ease;
}

.fw-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .34) 48%, rgba(0, 0, 0, 0) 100%);
}

.fw-overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 18px 20px;
    color: #fff;
}

.fw-h {
    margin: 0 0 2px;
    font: 800 clamp(1.05rem, 2vw, 1.45rem) / 1.15 'Barlow', system-ui, sans-serif;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .45);
}

.fw-sub {
    margin: 0 0 10px;
    font: 500 .98rem / 1.35 'Barlow', system-ui, sans-serif;
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}

.fw-cta {
    display: inline-block;
    font: 700 .9rem / 1 'Barlow', system-ui, sans-serif;
    background: #fff;
    color: #111;
    border-radius: 8px;
    padding: 8px 12px;
    transition: transform .25s ease;
}

.fw-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.fw-card:hover .fw-img {
    transform: scale(1.03);
    filter: brightness(.93) contrast(1.08) saturate(1.02);
}

.featured-work .fw-card picture,
.featured-work .fw-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    height: auto;
}

@supports not (aspect-ratio: 16 / 9) {
    .featured-work .fw-card .fw-img-wrap {
        position: relative;
        height: 0;
        padding-top: 56.25%;
    }

    .featured-work .fw-card .fw-img-wrap > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.featured-work .fw-h {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.featured-work .fw-sub {
    color: rgba(255, 255, 255, .9);
}

/* ===== Evidence / Case Study Grid ===== */
.evidence {
    max-width: 1200px;
    margin: 4rem auto 2rem;
    padding: 0 20px;
}

.evidence__title {
    font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2rem);
    font-weight: 800;
    margin: 0 0 .5rem;
}

.evidence__lede {
    margin: 0 0 1.25rem;
    color: #415066;
    max-width: 70ch;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    align-items: start;
}

@media (min-width: 880px) {
    .media-grid {
        gap: 1.25rem;
    }
}

.media-card {
    display: flex;
    flex-direction: column;
    grid-column: span 12;
    background: #fff;
    border: 1px solid #E7ECF2;
    border-radius: 1rem;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
    padding: .5rem;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.media-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
    border-color: #D8E1EB;
}

@media (min-width: 640px) {
    .media-card {
        grid-column: span 6;
    }
}

@media (min-width: 1040px) {
    .media-card {
        grid-column: span 4;
    }
}

.media-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    border-radius: .75rem;
    background: #0F172A;
}

.media-card__media picture,
.media-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.media-card[data-orientation="portrait"] .media-card__media {
    aspect-ratio: 3 / 4;
}

.media-card.is-expanded {
    grid-column: span 12;
}

.media-card.is-expanded .media-card__media {
    aspect-ratio: auto;
}

.media-card.is-expanded .media-card__media img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.media-card__caption {
    display: block;
    padding: .55rem .25rem .25rem;
    color: #0f2a41;
    font-weight: 700;
}

/* ===== Video badge & modal trigger ===== */
.media-card--video .media-card__badge {
    position: absolute;
    right: .6rem;
    bottom: .6rem;
    font-size: 1.25rem;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    border-radius: .6rem;
    padding: .35rem .5rem .4rem;
    line-height: 1;
    backdrop-filter: blur(2px);
    z-index: 2;
}

.media-card--video .media-card__badge {
    display: none !important;
}

/* Button hit-area */
.media-card--video .media-card__media > .video-card {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

/* Fix for media images */
.media-card--video .media-card__media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ===== Role note & meta ===== */
.role-note {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 10px;
    align-items: start;
    margin: 1rem 0 0;
    padding: .9rem .95rem;
    border-left: 3px solid #0a66c2;
    background: rgba(10, 102, 194, .06);
    border-radius: 8px;
    color: #333;
}

.role-icon {
    width: 24px;
    height: 24px;
    color: #0a66c2;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .role-note {
        grid-template-columns: 20px 1fr;
    }

    .role-icon {
        width: 20px;
        height: 20px;
    }
}

.big-quote-image {
    max-width: 1200px;
    margin: 48px auto;
    padding-inline: 16px;
}

.big-quote-image picture,
.big-quote-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.my-role {
    font-size: .95rem;
    color: #777;
    margin-top: .75rem;
    line-height: 1.45;
}

.my-role strong {
    color: inherit;
    font-weight: 600;
}

/* Case Study Navigation (Next/Back) */
.case-study-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f7f7f7;
  padding: 20px;
  font-family: 'Barlow', sans-serif;
}

.nav-link {
  font-size: 1.2rem;
  color: #022351;
  font-weight: bold;
  text-decoration: none;
}

.nav-link:hover {
  color: #024d76;
}

.case-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #022351;
  text-align: center;
  flex-grow: 1;
}

.progress-indicator {
  text-align: center;
  padding: 10px;
  font-size: 1rem;
  color: #022351;
}

/* Case Study Navigation (Next/Back) */
.case-study-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f7f7f7;
  padding: 20px;
  font-family: 'Barlow', sans-serif;
}

.nav-link {
  font-size: 1.2rem;
  color: #022351;
  font-weight: bold;
  text-decoration: none;
}

.nav-link:hover {
  color: #024d76;
}

/* Center the title */
.case-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #022351;
  text-align: center;
  flex-grow: 1; /* Ensures title is centered */
}

/* Progress Indicator */
.progress-indicator {
  text-align: center;
  padding: 10px;
  font-size: 1rem;
  color: #022351;
}
/* Case Study Navigation (Next/Back) */
.case-study-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f7f7f7;
  padding: 20px;
  font-family: 'Barlow', sans-serif;
}

.nav-link {
  font-size: 1rem; /* Reduced font size for a more subtle look */
  color: #022351;
  font-weight: bold;
  text-decoration: none;
}

.nav-link:hover {
  color: #024d76;
}

/* Center the title */
.case-title {
  font-size: 1.2rem; /* Smaller, more subtle title */
  font-weight: 600;
  color: #022351;
  text-align: center;
  flex-grow: 1; /* Ensures title is centered */
}

/* Progress Indicator */
.progress-indicator {
  text-align: center;
  padding: 10px;
  font-size: 0.9rem; /* Smaller font size for progress indicator */
  color: #022351;
}
/* Ensure full width and proper flex alignment */
.case-study-navigation {
  display: flex;
  justify-content: space-between; /* Keep the navigation links on left and right */
  align-items: center; /* Vertically center */
  width: 100%; /* Ensure the container takes up full width */
  padding: 20px;
  font-family: 'Barlow', sans-serif;
  box-sizing: border-box; /* Include padding in width calculations */
}

/* Ensure case title is centered */
.case-title {
  font-size: 1.2rem; /* Adjusted font size for subtlety */
  font-weight: 600;
  color: #022351;
  text-align: center;
  flex-grow: 1; /* Ensure title is centered */
}
/* Case Study Navigation (Next/Back) */
.case-study-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f7f7f7;
  padding: 20px;
  font-family: 'Barlow', sans-serif;
  width: 100%; /* Ensure the container takes up full width */
  box-sizing: border-box;
}

.nav-link {
  font-size: 0.9rem; /* Reduced font size for a more subtle look */
  color: #022351;
  font-weight: bold;
  text-decoration: none;
}

.nav-link:hover {
  color: #024d76;
}

/* Center the title */
.case-title {
  font-size: 1rem; /* Smaller, more subtle title */
  font-weight: 600;
  color: #022351;
  text-align: center;
  flex-grow: 1; /* Ensures title is centered */
}

/* Case Study Navigation (Next/Back) */
.case-study-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent; /* Keep the container transparent */
  padding: 16px;
  font-family: 'Barlow', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.nav-link {
  font-size: 0.8rem; /* smaller and subtler */
  color: #022351;
  font-weight: 600;
  text-decoration: none;
  background-color: #fff; /* White background */
  padding: 8px 12px; /* Add some padding for better clickable area */
  border-radius: 4px; /* Soft rounded corners */
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
}

.nav-link:hover {
  background-color: #f4f4f4; /* Subtle hover effect */
  color: #024d76;
}
