/* =========================================================
   Silbermann Media Group — Studio
   Design system: SMG house style (recap site unified)
   Typography: Cormorant Garamond (display) / Barlow (body)
   Palette: #0a0a0a background, #C9A86C gold, #f5f0e8 cream
   ========================================================= */

:root {
    --bg: #0a0a0a;
    --bg-raised: #141414;
    --bg-subtle: #1a1a1a;
    --bg-panel: #161616;
    --text-primary: #f5f0e8;
    --text-secondary: #a8a29a;
    --text-muted: #6b655e;
    --gold: #C9A86C;
    --gold-soft: rgba(201, 168, 108, 0.3);
    --gold-faint: rgba(201, 168, 108, 0.12);
    --border: rgba(201, 168, 108, 0.2);
    --border-soft: rgba(245, 240, 232, 0.08);
    --border-hard: #2a2a2a;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-condensed: 'Barlow Condensed', 'Barlow', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

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

/* ---------------- HEADER ---------------- */
.site-header {
    border-bottom: 1px solid var(--border-soft);
    padding: 1.25rem 2rem;
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.brand-mark {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--gold);
    letter-spacing: 0.01em;
}

.primary-nav {
    display: flex;
    gap: 2.25rem;
    align-items: center;
}

.primary-nav a {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.primary-nav a:hover {
    color: var(--gold);
}

.primary-nav .nav-contact {
    color: var(--gold);
    padding: 0.5rem 1rem;
    border: 1px solid var(--gold-soft);
    border-radius: 2px;
}

.primary-nav .nav-contact:hover {
    background: var(--gold-faint);
}

/* ---------------- HERO ---------------- */
.hero {
    padding: 8rem 2rem 6rem;
    border-bottom: 1px solid var(--border-soft);
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.75rem, 6vw, 5rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
}

.hero-lede {
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 780px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-family: var(--font-condensed);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 400;
}

.hero-meta-divider {
    color: var(--gold-soft);
}

/* ---------------- SECTION BASE ---------------- */
.section {
    padding: 7rem 2rem;
    border-bottom: 1px solid var(--border-soft);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.75rem;
    font-weight: 500;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -0.005em;
    color: var(--text-primary);
    margin-bottom: 3rem;
    max-width: 950px;
}

.section-lede {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 780px;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* ---------------- PULL QUOTE ---------------- */
.pullquote-section {
    background: var(--bg);
    padding: 5rem 2rem;
    border-bottom: 1px solid var(--border-soft);
}

.pullquote-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.pullquote {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.5rem, 3.2vw, 2.35rem);
    line-height: 1.35;
    color: var(--text-primary);
    letter-spacing: -0.005em;
    border-left: 2px solid var(--gold);
    padding-left: 2rem;
    max-width: 900px;
    margin: 0;
    quotes: none;
}

.pullquote::before,
.pullquote::after {
    content: none;
}

/* ---------------- THESIS ---------------- */
.section-thesis {
    background: var(--bg);
}

.mechanism-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 1.25rem;
    align-items: stretch;
    margin-bottom: 4rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.mechanism-stage {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 0.5rem;
}

.mechanism-stage-label {
    font-family: var(--font-condensed);
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin: 0;
}

.mechanism-stage-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.005em;
}

.mechanism-stage-body {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 300;
}

.mechanism-arrow {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1.75rem;
}

.thesis-body {
    max-width: 820px;
}

.thesis-body p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    font-weight: 300;
}

.thesis-body p.thesis-close {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--text-primary);
    border-left: 2px solid var(--gold);
    padding-left: 1.75rem;
    margin-top: 3rem;
}

/* ---------------- HOW WE WORK ---------------- */
.section-how {
    background: var(--bg-raised);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 4rem;
    margin-top: 2rem;
}

.how-block {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.how-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.65rem;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.005em;
}

.how-block p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ---------------- CAPABILITIES ---------------- */
.section-capabilities {
    background: var(--bg);
}

.capability-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.capability {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-soft);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.capability:last-child {
    border-bottom: 1px solid var(--border-soft);
}

.capability-head {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.capability-role {
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin: 0;
}

.capability h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: 0.005em;
    line-height: 1.25;
    margin: 0;
}

.capability p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ---------------- WORK ---------------- */
.section-work {
    background: var(--bg-raised);
    padding-top: 9rem;
}

.work-group {
    margin-top: 3.5rem;
}

.work-group-label {
    font-family: var(--font-condensed);
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 500;
}

.work-group-note {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-style: italic;
    max-width: 780px;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-soft);
    font-weight: 300;
}

.case-study {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border-soft);
}

.case-study:last-child {
    border-bottom: none;
}

.case-study-featured {
    background: linear-gradient(180deg, var(--gold-faint) 0%, transparent 100%);
    padding: 3.5rem 2.5rem;
    margin: 0 -2.5rem 2rem;
    border-bottom: 1px solid var(--border);
    border-radius: 2px;
}

.case-study-meta {
    margin-bottom: 1rem;
}

.case-study-client {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.case-study-scope {
    font-family: var(--font-condensed);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 400;
}

.case-study-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
    letter-spacing: -0.005em;
}

.case-study-body {
    max-width: 820px;
    margin-bottom: 2rem;
}

.case-study-body p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 300;
}

.case-study-body em {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--text-primary);
    font-size: 1.08em;
}

.case-study-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-soft);
    border: 1px solid var(--border-soft);
    margin-bottom: 2rem;
    max-width: 820px;
}

/* 3-stat case studies render as 3 columns, not 4, to avoid orphan cell */
.case-study-stats:has(.stat:nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
}

.case-study-stats .stat {
    background: var(--bg-panel);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 400;
}

/* ---------------- CASE STUDY VISUALS ---------------- */
.case-study-visual {
    margin-top: 2.5rem;
    max-width: 980px;
}

.case-visual-hero {
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.case-visual-hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* Portrait layout: poster sized reasonably, centered, not stretched */
.case-study-visual-portrait .case-visual-hero {
    max-width: 460px;
    margin: 0 0 1.25rem 0;
}

/* Landscape layout: hero fills the column width */
.case-study-visual-landscape .case-visual-hero {
    width: 100%;
}

/* Gallery: 2-column grid of landscape recap images */
.case-visual-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* Three-image variant: display as 3 columns at desktop width */
.case-visual-gallery-three {
    grid-template-columns: repeat(3, 1fr);
}

.case-visual-gallery img {
    width: 100%;
    height: auto;
    display: block;
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Featured image within a visual section (e.g., Nasdaq Tower leading Premiere OOH) */
.case-visual-feature {
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.case-visual-feature img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contain variant: for screenshots and document-style images where the WHOLE image is the message
   (social posts, newsletter ads, Spotify takeovers, FYC trade ads). Letterboxes within the cell
   so no content is cropped. */
.case-visual-gallery-contain img {
    object-fit: contain;
    background: var(--bg);
}

/* Featured case study (Monument) gets slightly more breathing room */
.case-study-featured .case-study-visual {
    margin-top: 3rem;
}

/* Secondary gallery section within a case study (for sub-sections like retail vs OOH) */
.case-visual-section {
    margin-top: 2.5rem;
    max-width: 980px;
}

.case-visual-section-label {
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 1.25rem;
}

/* ---------------- PODCAST GRID (square logo tiles) ---------------- */
.case-podcast-grid {
    margin-top: 2.5rem;
    max-width: 980px;
}

.podcast-grid-label {
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.podcast-tiles {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.podcast-tile {
    aspect-ratio: 1 / 1;
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    overflow: hidden;
}

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

/* ---------------- AUDIO PLAYERS ---------------- */
.case-audio {
    margin-top: 2.5rem;
    max-width: 820px;
    padding-top: 2rem;
    border-top: 1px solid var(--border-soft);
}

.case-audio-label {
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.audio-group {
    margin-bottom: 2rem;
}

.audio-group:last-child {
    margin-bottom: 0;
}

.audio-group-label {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.005em;
}

.audio-spots {
    display: flex;
    flex-direction: column;
    gap: 0;
}

audio {
    display: none;
}

.spot-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-soft);
}

.spot-row:last-child {
    border-bottom: none;
}

.spot-info {
    flex: 1;
    min-width: 0;
}

.spot-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.15rem;
}

.spot-meta {
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 400;
}

.custom-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 300px;
    flex-shrink: 0;
}

.play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
    font-size: 11px;
    padding-left: 2px;
    font-family: var(--font-body);
}

.play-btn:hover {
    background: var(--gold);
    color: var(--bg);
}

.play-btn.playing {
    background: var(--gold);
    color: var(--bg);
}

.player-track {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-progress {
    width: 100%;
    height: 2px;
    background: var(--border-soft);
    border-radius: 1px;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.player-bar {
    height: 100%;
    background: var(--gold);
    border-radius: 1px;
    width: 0%;
    transition: width 0.1s linear;
    pointer-events: none;
}

.player-time {
    font-family: var(--font-condensed);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 400;
}

.case-study-link {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--gold-soft);
    margin-top: 0.5rem;
}

.case-study-link:hover {
    border-bottom-color: var(--gold);
}

.case-study-link[data-status="pending"],
.case-study-link[data-status="private"] {
    color: var(--text-muted);
    border-bottom-color: var(--border-soft);
    cursor: default;
    pointer-events: none;
}

/* ---------------- SELECTED EXPERIENCE ---------------- */
.section-experience {
    background: var(--bg);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-soft);
    border: 1px solid var(--border-soft);
    margin-top: 1rem;
}

.logo-cell {
    background: var(--bg-panel);
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    transition: background 0.25s ease, color 0.25s ease;
    min-height: 90px;
}

.logo-cell:hover {
    background: var(--bg-raised);
    color: var(--gold);
}

/* ---------------- ABOUT ---------------- */
.section-about {
    background: var(--bg-raised);
}

.about-body {
    max-width: 820px;
    margin-bottom: 4rem;
}

.about-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.about-founder {
    border-top: 1px solid var(--border);
    padding-top: 2.5rem;
    max-width: 820px;
}

.founder-label {
    font-family: var(--font-condensed);
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.founder-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.founder-bio p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ---------------- CONTACT ---------------- */
.section-contact {
    background: var(--bg);
    padding: 8rem 2rem;
}

.section-title-contact {
    margin-bottom: 2rem;
}

.closing-body {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 780px;
    margin-bottom: 4rem;
    font-weight: 300;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.contact-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-label {
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

.contact-value {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
}

a.contact-value:hover {
    color: var(--gold);
}

/* ---------------- FOOTER ---------------- */
.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border-soft);
    padding: 2.5rem 2rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--gold);
    font-weight: 400;
}

.footer-meta {
    font-family: var(--font-condensed);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 400;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
    .primary-nav {
        gap: 1.25rem;
    }

    .primary-nav a {
        font-size: 0.7rem;
    }

    .primary-nav .nav-contact {
        padding: 0.4rem 0.75rem;
    }

    .how-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .capability {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    /* 3-stat case studies: render as 3 narrow columns on mobile to avoid orphan cell.
       Detected via :has() — last .stat is the 3rd child and has no siblings after it. */
    .case-study-stats:has(.stat:nth-child(3):last-child) {
        grid-template-columns: repeat(3, 1fr);
    }

    .case-study-stats:has(.stat:nth-child(3):last-child) .stat {
        padding: 1.25rem 0.5rem;
    }

    .case-study-stats:has(.stat:nth-child(3):last-child) .stat-value {
        font-size: 1.35rem;
    }

    .case-study-stats:has(.stat:nth-child(3):last-child) .stat-label {
        font-size: 0.65rem;
        letter-spacing: 0.14em;
    }

    .logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mechanism-flow {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2rem 0;
        margin-bottom: 3rem;
    }

    .mechanism-arrow {
        transform: rotate(90deg);
        padding-top: 0;
        padding: 0.25rem 0;
    }

    .mechanism-stage {
        gap: 0.5rem;
    }

    .mechanism-stage-body {
        line-height: 1.5;
    }

    .case-study-visual-portrait .case-visual-hero {
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 1rem 1.25rem;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .primary-nav {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.75rem 1.25rem;
    }

    .hero {
        padding: 5rem 1.25rem 4rem;
    }

    .section {
        padding: 5rem 1.25rem;
    }

    .section-work {
        padding-top: 6.5rem;
    }

    .pullquote-section {
        padding: 3rem 1.25rem;
    }

    .pullquote {
        padding-left: 1.25rem;
    }

    .hero-lede {
        font-size: 1.05rem;
    }

    .case-study-featured {
        padding: 2.5rem 1.5rem;
        margin: 0 -1.5rem 2rem;
    }

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

    .logo-cell {
        padding: 1.5rem 0.75rem;
        font-size: 0.95rem;
        min-height: 75px;
    }

    .section-contact {
        padding: 5rem 1.25rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .case-visual-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .case-visual-gallery-three {
        grid-template-columns: 1fr;
    }

    .case-study-visual-portrait .case-visual-hero {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .spot-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .custom-player {
        width: 100%;
    }

    .podcast-tiles {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.96);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    cursor: zoom-out;
}

.lightbox.is-open {
    display: flex;
    flex-direction: column;
    opacity: 1;
}

.lightbox-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 5rem 1rem;
    overflow: hidden;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-caption {
    padding: 0 3rem 0.75rem;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.5;
}

.lightbox-counter {
    padding: 0 3rem 1.5rem;
    text-align: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: transparent;
    border: 1px solid rgba(201, 168, 108, 0.3);
    color: var(--gold);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Cormorant Garamond', serif;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 108, 0.08);
}

.lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 2rem;
    padding-bottom: 4px;
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-prev[hidden],
.lightbox-next[hidden] {
    display: none;
}

/* Zoomable case study images — cursor hint */
.case-study-visual img {
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.case-study-visual img:hover {
    opacity: 0.92;
}

/* Mobile lightbox */
@media (max-width: 768px) {
    .lightbox-stage {
        padding: 4rem 0.5rem 0.5rem;
    }

    .lightbox-caption {
        padding: 0 1rem 0.5rem;
        font-size: 0.875rem;
    }

    .lightbox-counter {
        padding: 0 1rem 1rem;
        font-size: 0.7rem;
    }

    .lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}
