/* ===== CSS Variables ===== */
:root {
    --color-bg: #ffffff;
    --color-surface: #f8f9fa;
    --color-text: #1a1a2e;
    --color-text-muted: #6b7280;
    --color-navy: #00355f;
    --color-navy-light: #1a4a7a;
    --color-border: #e5e7eb;

    --font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.nav-logo {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-navy);
    position: relative;
}

.nav-logo.active::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-navy);
}

.nav-cta {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.nav-cta:hover {
    color: var(--color-navy);
}

/* ===== Hero ===== */
.hero {
    min-height: 744px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    gap: 1rem;
    position: relative;
}

.hero.hero-left {
    align-items: flex-start;
    text-align: left;
    padding: 0 10rem;
}

.hero-label {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-navy);
    padding-left: 7px;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 5.75rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--color-text);
}

.hero-title-italic {
    font-style: italic;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    line-height: 1.6;
    margin: 0 auto;
}

/* Hero Split — text left + phone right */
.hero.hero-split {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 5rem 6rem 3rem;
    min-height: 100vh;
}

.hero-split .hero-text {
    flex: 0 1 45%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-split .hero-title {
    font-size: clamp(1.75rem, 4vw, 4.5rem);
}

.hero-reel {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: min(82vh, 900px);
}

.hero-reel-video {
    height: 100%;
    width: auto;
    max-width: 100%;
    max-height: unset;
    object-fit: contain;
    display: block;
}

/* Hero reel toggle */
.hero-reel {
    position: relative;
}

.hero-reel-toggle {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    font-family: var(--font-family);
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: opacity 0.2s ease, background 0.2s ease;
    opacity: 0.7;
    z-index: 5;
}

.hero-reel-toggle:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
}

/* Hero scroll hint */
.hero-scroll-hint {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    opacity: 0.25;
    transition: opacity 0.6s ease;
    animation: scrollFade 3s ease-in-out infinite;
}

.hero-scroll-hint.hidden {
    opacity: 0 !important;
    animation: none;
    pointer-events: none;
}

.hero-scroll-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text);
}

.hero-scroll-arrow {
    font-size: 1.25rem;
    line-height: 1;
    color: var(--color-text);
    position: relative;
    top: -0.35em;
}

/* Alt: subtle hero reel wiggle — add class "hero-reel-wiggle" to .hero-reel to activate */
.hero-reel-wiggle .hero-reel-video {
    animation: reelWiggle 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    transform-origin: center center;
    will-change: transform;
}

@keyframes reelWiggle {
    0%   { transform: rotate(0deg)    translate(0, 0); }
    15%  { transform: rotate(0.4deg)  translate(0.5px, -0.3px); }
    30%  { transform: rotate(-0.3deg) translate(-0.4px, 0.2px); }
    50%  { transform: rotate(0.2deg)  translate(0.3px, 0.4px); }
    70%  { transform: rotate(-0.4deg) translate(-0.3px, -0.2px); }
    85%  { transform: rotate(0.15deg) translate(0.2px, 0.3px); }
    100% { transform: rotate(0deg)    translate(0, 0); }
}

/* Alt: static 3D tilt — add class "hero-reel-tilt" to .hero-reel to activate */
.hero-reel-tilt {
    perspective: 900px;
}
.hero-reel-tilt .hero-reel-video {
    transform: rotateY(-12deg) rotateX(3deg) rotateZ(1deg);
    transform-style: preserve-3d;
}

@keyframes scrollFade {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.55; }
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text-muted);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ===== Projects ===== */
.projects {
    padding: 0;
}

.project {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    min-height: 960px;
    align-items: center;
    padding-bottom: 88px;
}

.project-surface {
    background: var(--color-surface);
}

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

.project-alt .project-image {
    grid-column: 2;
    grid-row: 1;
}

.project-alt .project-info {
    grid-column: 1;
    grid-row: 1;
}

.project-image {
    height: 760px;
    min-height: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* ===== Carousel ===== */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: grab;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    opacity: 0;
    transition: opacity 0.6s ease;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
    z-index: 0;
}

.carousel-slide:first-child {
    position: relative;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    touch-action: pan-x;
}

.carousel .carousel-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.carousel .carousel-dot.active {
    background: rgba(0, 0, 0, 0.8);
    width: 24px;
    border-radius: 4px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 500px;
    background: linear-gradient(135deg, var(--color-surface) 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    position: relative;
}

.image-placeholder::before {
    content: attr(data-label);
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    opacity: 0.5;
}

.project-info {
    padding: 0 3rem;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.project-alt .project-info {
    padding: 0 3rem 0 10rem;
    max-width: none;
}

.project-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-navy);
    display: block;
}

.project-title {
    font-size: clamp(1.625rem, 4vw, 3.5rem);
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.project-surface {
    background: #f9f9f9;
}

.project-desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 384px;
}

.project-meta {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    display: block;
    margin-top: 1rem;
}

.project-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-navy);
    display: inline-block;
    transition: transform var(--transition);
}

.project-link:hover {
    transform: translateX(4px);
}

/* ===== Gallery ===== */
.gallery {
    padding: 6rem 2rem;
    background: var(--color-surface);
}

.gallery-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.image-placeholder.small {
    min-height: auto;
    height: 100%;
    border-radius: 8px;
}

/* ===== Contact ===== */
.contact {
    padding: 8rem 2rem 8rem 10rem;
    text-align: left;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.contact .contact-links {
    margin-top: 1rem;
}

.contact-label {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-navy);
    margin-bottom: 0;
}

.contact-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--color-navy);
}

.contact-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all var(--transition);
    background: var(--color-navy);
    color: #fff;
}

.btn:hover {
    background: var(--color-navy);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-border);
    color: var(--color-text);
    background: transparent;
}

/* ===== Footer ===== */
.footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
}

/* ===== Hero height — fills viewport exactly at desktop+ ===== */
@media (min-width: 901px) {
    .hero.hero-split {
        min-height: unset;
        height: 100vh;
        max-height: unset;
    }

    /* Visuals 25% larger at desktop+ */
    .hero-reel {
        height: min(88vh, 950px);
    }

    .project-image {
        height: 950px;
    }
}

/* ===== Scroll hint — desktop and up (medium, large, XL) ===== */
@media (min-width: 901px) {
    .hero-scroll-hint {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        position: fixed;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 50;
        opacity: 0.25;
        transition: opacity 0.6s ease;
        animation: scrollFade 3s ease-in-out infinite;
    }

    .hero-scroll-hint.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .hero-scroll-label {
        font-size: 0.6875rem;
        font-weight: 500;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--color-text);
    }

    .hero-scroll-arrow {
        font-size: 0.625rem;
        color: var(--color-text);
    }

    @keyframes scrollFade {
        0%, 100% { opacity: 0.2; }
        50% { opacity: 0.35; }
    }
}

/* ===== XL (1920+) ===== */
@media (min-width: 1600px) {
    .nav {
        padding: 1.5rem 4rem;
    }

    .hero {
        padding: 0 4rem;
    }

    .hero.hero-left {
        padding: 0 10rem;
    }

    .hero.hero-split {
        padding: 5rem 6rem 3rem;
        gap: 2rem;
    }

    .hero-split .hero-text {
        flex: 0 1 50%;
    }

    .hero-split .hero-title {
        font-size: 3.5rem;
    }

    .hero-split .hero-label {
        font-size: 0.875rem;
    }

    .hero-reel {
        flex: 0 0 45%;
    }

    .hero-reel-video {
        height: 100%;
        width: auto;
        max-width: 100%;
    }


    .hero-title {
        font-size: 5.75rem;
        max-width: 1319px;
    }

    .project-info {
        padding: 0 4rem;
        max-width: 520px;
    }

    .project-alt .project-info {
        padding: 0 4rem 0 16rem;
    }

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

    .contact {
        padding: 8rem 4rem 8rem 10rem;
    }

    /* Case study XL overrides */
    .case-hero.case-hero-centered {
        padding: 8rem 4rem 2rem;
    }

    .case-hero.case-hero-centered .case-title {
        max-width: 1100px;
    }

    .case-hero.case-hero-centered .case-question {
        max-width: 800px;
    }

    .case-content {
        padding: 0 4rem;
    }

    .case-image.full,
    .case-image-grid.case-image-grid-wide {
        max-width: 1400px;
    }

    .case-image.case-image-extra-wide {
        max-width: 1400px;
    }

    .case-image-row.three-up {
        max-width: 1440px;
    }

    .case-image-row .case-image-item img {
        height: 800px;
    }

    .next-project {
        padding: 5rem 4rem;
    }

    .footer {
        padding: 2rem 4rem;
    }
}

/* ===== Tablet (≤900px) — matches M (768) ===== */
@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 4rem;
        gap: 1rem;
    }

    .hero.hero-left {
        padding: 6rem 3rem 4rem;
    }

    .hero.hero-split {
        flex-direction: column;
        padding: 6rem 3rem 3rem;
        gap: 2rem;
        text-align: left;
        align-items: flex-start;
    }

    .hero-scroll-hint {
        display: none;
    }

    .hero-split .hero-reel {
        order: -1;
        flex: none;
        width: 100%;
    }

    .hero-split .hero-reel-video {
        width: 100%;
        max-height: 70vh;
        object-fit: contain;
    }

    .hero-split .hero-text {
        flex: none;
        align-items: flex-start;
        text-align: left;
        gap: 0.5rem;
    }

    .hero-split .hero-label {
        font-size: 0.75rem;
        font-weight: 500;
        letter-spacing: 1.5px;
        color: var(--color-text-muted);
        padding-left: 0;
    }

    .hero-split .hero-title {
        font-size: 2.5rem;
        font-weight: 400;
    }

    .hero-title {
        font-size: 2.75rem;
        max-width: none;
    }

    .hero-sub {
        max-width: 450px;
    }

    .project {
        display: flex;
        flex-direction: column;
        min-height: auto;
        padding-bottom: 0;
    }

    .project-alt {
        flex-direction: column;
    }

    .project-alt .project-image,
    .project-alt .project-info {
        grid-column: auto;
        grid-row: auto;
    }

    .project-image {
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 1.5rem 1.5rem 0;
    }

    .project-image img {
        height: auto;
        object-fit: contain;
        object-position: center;
        transform: none;
        border-radius: 12px;
    }

    .carousel {
        display: flex;
        flex-direction: column;
    }

    .carousel-track {
        flex: 1;
        height: 62vh;
    }

    .carousel-slide img,
    .carousel-slide video {
        object-fit: cover;
        object-position: center top;
        border-radius: 12px;
    }

    .carousel-slide.carousel-slide-video video {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    .phone-frame {
        border-radius: 20px;
        padding: 2px;
    }

    .phone-frame video {
        border-radius: 18px;
    }

    .phone-frame::after {
        top: 9px;
        width: 48px;
        height: 14px;
    }


    .carousel .carousel-dots {
        position: static;
        transform: none;
        justify-content: center;
        padding: 16px 0 48px 0;
    }

    .project-info {
        padding: 0 3rem 4.5rem 3rem;
        max-width: none;
        gap: 0.75rem;
    }

    .project-alt .project-info {
        padding: 0 3rem 4.5rem 3rem;
    }

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

    .project-desc {
        max-width: none;
        line-height: 1.7;
    }

    .contact {
        padding: 5rem 2rem 5rem 3rem;
    }

    .contact-label {
        font-size: 0.8125rem;
        font-weight: 600;
        letter-spacing: 2px;
    }

    .contact-title {
        font-size: 3.5rem;
        color: var(--color-text);
    }

    .btn {
        border-radius: 8px;
    }

    .footer {
        padding: 1.5rem 2rem;
        font-size: 0.8125rem;
        border-top: none;
    }

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

/* ===== Mobile (≤480px) — matches S (393) ===== */
@media (max-width: 480px) {
    .nav {
        padding: 1rem 1.25rem;
    }

    .nav-logo {
        color: var(--color-text);
        font-size: 0.875rem;
    }

    .nav-logo.active::before,
    .nav-link.active::before {
        top: -1rem;
    }

    .nav-cta {
        font-size: 0.6875rem;
    }

    .hero {
        min-height: 70vh;
        padding: 8rem 2rem 4rem;
        gap: 0.5rem;
    }

    .hero.hero-left {
        padding: 8rem 1.25rem 4rem;
    }

    .hero.hero-split {
        flex-direction: column;
        padding: 5.5rem 1.25rem 2rem;
        gap: 1.5rem;
        min-height: auto;
        text-align: left;
        align-items: flex-start;
    }

    .hero-split .hero-reel {
        order: -1;
        flex: none;
        width: 100%;
    }

    .hero-split .hero-reel-video {
        width: 100%;
        max-height: 70vh;
        object-fit: contain;
    }

    .hero-split .hero-text {
        flex: none;
        align-items: flex-start;
        text-align: left;
        gap: 0.375rem;
    }

    .hero-split .hero-label {
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 2px;
        color: var(--color-text-muted);
        padding-left: 0;
    }

    .hero-split .hero-title {
        font-size: 2rem;
        font-weight: 400;
        line-height: 1.2;
    }

    .hero-label {
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 2px;
        padding-left: 2px;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.15;
        max-width: none;
    }

    .hero-sub {
        font-size: 0.9375rem;
        line-height: 1.5;
        max-width: none;
    }

    .project-image {
        height: auto;
        min-height: 70vh;
        padding: 1rem 0 0;
        overflow: visible;
    }

    .project-image img {
        height: 100%;
        min-height: 70vh;
        transform: none;
        object-fit: contain;
        object-position: center top;
        border-radius: 0;
    }

    .carousel-slide img,
    .carousel-slide video {
        min-height: 70vh;
        transform: none;
        object-fit: cover;
        object-position: center top;
        border-radius: 0;
    }

    .project-info {
        padding: 0 2rem 4.5rem 2rem;
        gap: 0.625rem;
    }

    .project-alt .project-info {
        padding: 0 2rem 4.5rem 1.25rem;
    }

    .project-label {
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 2px;
    }

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

    .project-desc {
        font-size: 0.9375rem;
    }

    .project-meta {
        font-size: 0.75rem;
    }

    .view-project {
        font-size: 0.8125rem;
        font-weight: 600;
    }

    .contact {
        padding: 3.75rem 1.25rem 5rem;
        gap: 0.25rem;
    }

    .contact-label {
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 2px;
    }

    .contact-title {
        font-size: 2.5rem;
        color: var(--color-text);
    }

    .contact-links {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        border-radius: 8px;
    }

    .footer {
        padding: 1.25rem;
        font-size: 0.75rem;
        border-top: none;
    }

    .gallery {
        padding: 4rem 1.5rem;
    }

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

/* ===== Project Link Wrapper (Home) ===== */
.project-link-wrapper {
    display: block;
    color: inherit;
    text-decoration: none;
}

.view-project {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-navy);
    transition: transform var(--transition);
}

.project-link-wrapper:hover .view-project {
    transform: none;
}

/* ===== Case Study Hero ===== */
.case-hero {
    padding: 8rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.case-hero.case-hero-centered {
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 8rem 2rem 2rem;
}

.case-hero.case-hero-centered .case-title {
    max-width: 900px;
}

.case-hero.case-hero-centered .case-question {
    max-width: 700px;
    margin-bottom: 0;
}

.case-hero.case-hero-centered .case-meta {
    justify-content: center;
}

.case-hero-content {
    max-width: 700px;
}

.back-link {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    display: inline-block;
    margin-bottom: 2rem;
    transition: color var(--transition);
}

.back-link:hover {
    color: var(--color-navy);
}

.case-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.case-question {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

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

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.meta-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

/* ===== Case Study Content ===== */
.case-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.case-section {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 0;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.section-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

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

.section-text.large {
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--color-text);
    font-weight: 500;
}

.section-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-navy);
    display: inline-block;
    margin-top: 1rem;
    transition: transform var(--transition);
}

.section-link:hover {
    transform: translateX(4px);
}

.case-section.outcome {
    padding: 4rem 0;
    border-top: none;
    margin-top: 0;
}

/* Alternating grey content blocks */
.case-block-grey {
    background: var(--color-surface);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
}

/* ===== Case Study Images ===== */

/* 3-up image row (hero phone mockups) */
.case-image-row.three-up {
    display: flex;
    gap: 8px;
    padding: 0;
    width: 100%;
    max-width: 1036px;
}

.case-image-row .case-image-item {
    flex: 1;
}

.case-image-row .case-image-item img {
    width: 100%;
    height: 720px;
    display: block;
    object-fit: cover;
}

/* Carousel dots - hidden by default, shown on mobile */
.carousel-dots {
    display: none;
}

.case-image {
    margin: 2rem 0;
    overflow: hidden;
    border-radius: 8px;
}

.case-image.full {
    margin: 0;
    border-radius: 0;
    width: 100%;
    max-width: 1200px;
}

.case-image.full img {
    width: 100%;
    height: 500px;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

.case-image.case-image-wide {
    max-width: 1200px;
    padding: 3rem 0;
}

.case-image.case-image-extra-wide {
    max-width: 1400px;
    padding: 3rem 0;
}

.case-image .image-placeholder {
    min-height: 400px;
    border-radius: 8px;
}

.case-image.full .image-placeholder {
    min-height: 500px;
    border-radius: 12px;
}

.case-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 0;
    padding: 2rem 0;
    width: 100%;
    max-width: 1200px;
}

.case-image-grid.case-image-grid-wide {
    max-width: 1200px;
    height: 400px;
}

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

.case-image-grid img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
}

.case-image-grid .image-placeholder {
    min-height: 300px;
    border-radius: 8px;
}

/* ===== Case Results ===== */
.case-results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto;
    padding: 3rem;
    background: var(--color-surface);
    border-radius: 12px;
}

.result-item {
    text-align: center;
}

.result-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

/* ===== Case Partners ===== */
.case-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 700px;
    margin: 2rem auto 4rem;
}

.partner {
    padding: 0.75rem 1.5rem;
    background: var(--color-surface);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

/* ===== Next Project ===== */
.next-project {
    padding: 5rem 2rem;
    text-align: center;
    background: var(--color-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.next-project-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.next-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.next-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-navy);
    transition: transform var(--transition);
    display: inline-block;
}

.next-project-link:hover .next-title {
    transform: translateX(8px);
}

/* ===== Case Study Responsive — Tablet (≤900px) ===== */
@media (max-width: 900px) {
    .case-hero.case-hero-centered {
        padding: 6rem 2rem 2rem;
        gap: 1.25rem;
    }

    .case-hero.case-hero-centered .case-title {
        max-width: 600px;
    }

    .case-hero.case-hero-centered .case-question {
        max-width: 500px;
    }

    .case-title {
        font-size: 2.75rem;
    }

    .case-question {
        font-size: 1.125rem;
    }

    .case-hero {
        max-width: none;
    }

    .case-meta {
        gap: 2rem;
        justify-content: space-between;
    }

    .case-content {
        padding: 0 2rem;
    }

    .case-section {
        padding: 3rem 0;
    }

    .section-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .case-image-row.three-up {
        padding: 0;
        max-width: 676px;
    }

    .case-image-row .case-image-item img {
        height: 440px;
    }

    .case-image.full img {
        height: 400px;
    }

    .case-image.case-image-wide,
    .case-image.case-image-extra-wide {
        max-width: 100%;
    }

    .case-image-grid,
    .case-image-grid.case-image-grid-wide {
        max-width: 100%;
        height: 320px;
    }

    .case-image-grid.three {
        grid-template-columns: 1fr;
        height: auto;
    }

    .next-project {
        padding: 3.75rem 2rem;
    }

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

    .case-results {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    .case-hero.case-hero-centered {
        padding: 5rem 1.25rem 1.5rem;
        gap: 0.875rem;
    }

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

    .case-question {
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    .case-hero.case-hero-centered .case-title,
    .case-hero.case-hero-centered .case-question {
        max-width: 100%;
    }

    .case-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem 2rem;
    }

    .case-content {
        padding: 0;
    }

    .case-section {
        padding: 2rem 0;
        max-width: 100%;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

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

    .section-text {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .section-text.large {
        font-size: 1.25rem;
    }

    .case-image-row.three-up {
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .case-image-row.three-up::-webkit-scrollbar {
        display: none;
    }

    .case-image-row .case-image-item {
        min-width: 100%;
        scroll-snap-align: center;
    }

    .case-image-row .case-image-item img {
        height: 520px;
    }

    /* Carousel dots */
    .carousel .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 1.25rem 0 1rem 0;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--color-border);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .carousel-dot.active {
        background: var(--color-navy);
    }

    .case-image.full img {
        height: 280px;
    }

    .case-image.case-image-wide,
    .case-image.case-image-extra-wide {
        max-width: 100%;
        padding: 1.5rem 0;
    }

    .case-image-grid,
    .case-image-grid.case-image-grid-wide {
        max-width: 100%;
        height: 220px;
        gap: 1rem;
        padding: 1rem 0;
    }

    .case-image-grid.three {
        grid-template-columns: 1fr;
        height: auto;
    }

    .case-image .image-placeholder,
    .case-image.full .image-placeholder {
        min-height: 250px;
    }

    .case-image-grid .image-placeholder {
        min-height: 200px;
    }

    .case-results {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }

    .result-value {
        font-size: 2rem;
    }

    .case-partners {
        gap: 0.5rem;
    }

    .partner {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .next-project {
        padding: 3rem 1.25rem;
    }

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

    .case-section.outcome {
        padding: 2rem 1.25rem;
    }
}

/* ===== Nav Links (multi-link nav) ===== */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.7px;
    transition: color var(--transition);
    position: relative;
    padding-left: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-navy);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-navy);
}

@media (max-width: 480px) {
    .nav-link.active::before {
        top: -1rem;
    }
}

/* ===== My Vibe Page ===== */
.vibe-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
}

.vibe-hero-content {
    max-width: 600px;
}

.vibe-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* Vibe Sections */
.vibe-section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--color-border);
}

.vibe-section:last-child {
    border-bottom: none;
}

.vibe-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.vibe-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.vibe-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-navy);
}

/* Vibe Cards (books, albums, movies, concerts) */
.vibe-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.vibe-card {
    padding: 1.5rem;
    background: var(--color-surface);
    border-radius: 10px;
    transition: transform var(--transition);
}

.vibe-card:hover {
    transform: translateY(-2px);
}

.vibe-card-number {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-navy);
    opacity: 0.5;
    display: block;
    margin-bottom: 0.5rem;
}

.vibe-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.vibe-card-detail {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* Vibe Pills (trips, hobbies) */
.vibe-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.vibe-pill {
    padding: 0.625rem 1.25rem;
    background: var(--color-surface);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    transition: all var(--transition);
}

.vibe-pill:hover {
    background: var(--color-navy);
    color: #fff;
}

.vibe-pill.dream {
    background: transparent;
    border: 1px dashed var(--color-border);
    color: var(--color-text-muted);
}

.vibe-pill.dream:hover {
    border-color: var(--color-navy);
    background: var(--color-navy);
    color: #fff;
}

.vibe-pill.hobby {
    background: var(--color-navy);
    color: #fff;
    opacity: 0.85;
}

.vibe-pill.hobby:hover {
    opacity: 1;
}

/* Karaoke */
.vibe-section-highlight {
    text-align: center;
    padding: 4rem 0;
}

.vibe-section-highlight .vibe-section-header {
    justify-content: center;
}

.vibe-karaoke {
    padding: 2.5rem;
    background: var(--color-navy);
    border-radius: 12px;
    color: #fff;
}

.vibe-karaoke-song {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.vibe-karaoke-artist {
    font-size: 1rem;
    opacity: 0.7;
}

/* Personality Cards */
.vibe-personality-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.vibe-personality-card {
    padding: 2rem;
    background: var(--color-surface);
    border-radius: 12px;
    text-align: center;
}

.personality-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.personality-value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.personality-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.personality-desc {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Hypothetical Cards */
.vibe-hypothetical-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.vibe-hypothetical-card {
    padding: 2rem;
    background: var(--color-surface);
    border-radius: 12px;
}

.hypothetical-prompt {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.hypothetical-answer {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.hypothetical-reason {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ===== Build Your Own Section ===== */
.build-your-own {
    background: var(--color-surface);
    padding: 5rem 2rem;
}

.build-header {
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

.build-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.build-sub {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.build-form {
    max-width: 700px;
    margin: 0 auto;
}

.build-section {
    margin-bottom: 1.5rem;
    flex: 1;
}

.build-section-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0;
}

.build-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.build-hint {
    font-weight: 400;
    color: var(--color-text-muted);
}

.build-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-family: var(--font-family);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color var(--transition);
}

.build-input:focus {
    outline: none;
    border-color: var(--color-navy);
}

.build-input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.5;
}

.build-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.build-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* ===== Comparison Section ===== */
.comparison-section {
    padding: 5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-header {
    text-align: center;
    margin-bottom: 3rem;
}

.comparison-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.comparison-sub {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

.compare-summary {
    text-align: center;
    padding: 3rem;
    background: var(--color-navy);
    border-radius: 16px;
    color: #fff;
    margin-bottom: 3rem;
}

.compare-score {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.compare-score-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-bottom: 0.75rem;
}

.compare-score-desc {
    font-size: 1.125rem;
    opacity: 0.85;
}

.compare-row {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.compare-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

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

.compare-col-name {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.compare-item {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--color-surface);
    border-radius: 100px;
    font-size: 0.8125rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    color: var(--color-text);
}

.compare-item.match {
    background: var(--color-navy);
    color: #fff;
}

.compare-item.single {
    display: block;
    text-align: left;
    border-radius: 8px;
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

.compare-item.empty {
    color: var(--color-text-muted);
    opacity: 0.5;
    font-style: italic;
}

.comparison-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* ===== Shared Vibe View ===== */
.shared-vibe-section {
    padding: 8rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.shared-vibe-header {
    text-align: center;
    margin-bottom: 3rem;
}

.shared-vibe-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.shared-vibe-sub {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

.shared-category {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.shared-category:last-child {
    border-bottom: none;
}

.shared-category-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.shared-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.shared-value {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text);
}

.shared-vibe-actions {
    text-align: center;
    margin-top: 3rem;
}

/* ===== Toast ===== */
.vibe-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 0.875rem 1.5rem;
    background: var(--color-navy);
    color: #fff;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-family);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 200;
    pointer-events: none;
}

.vibe-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== My Vibe Responsive ===== */
@media (max-width: 900px) {
    .vibe-personality-grid,
    .vibe-hypothetical-grid {
        grid-template-columns: 1fr;
    }

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

    .build-section-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 600px) {
    .vibe-hero {
        padding: 6rem 1.5rem 3rem;
    }

    .vibe-content {
        padding: 0 1.5rem 3rem;
    }

    .vibe-cards {
        grid-template-columns: 1fr;
    }

    .vibe-section {
        padding: 2rem 0;
    }

    .build-your-own {
        padding: 3rem 1.5rem;
    }

    .build-actions {
        flex-direction: column;
    }

    .build-actions .btn {
        width: 100%;
    }

    .comparison-section {
        padding: 3rem 1.5rem;
    }

    .shared-vibe-section {
        padding: 6rem 1.5rem 3rem;
    }

    .nav-links {
        gap: 1rem;
    }
}

/* ===== Play Theme (Dark) ===== */
.play-theme {
    background: #111111;
    color: #ffffff;
}

.play-theme .nav {
    background: rgba(17, 17, 17, 0.93);
}

.play-theme .nav-logo {
    color: #ffffff;
}

.play-theme .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

.play-theme .nav-link:hover,
.play-theme .nav-link.active {
    color: #ffffff;
}

.play-theme .nav-link.active::before {
    background: #ffffff;
}

.play-theme .hero-label {
    color: rgba(255, 255, 255, 0.5);
}

.play-theme .hero-title {
    color: #ffffff;
}

.play-theme .project-surface {
    background: #1a1a1a;
}

.play-theme .project {
    background: #111111;
}

.play-theme .project-alt {
    background: #1a1a1a;
}

.play-theme .project-label {
    color: rgba(255, 255, 255, 0.4);
}

.play-theme .project-title {
    color: #ffffff;
}

.play-theme .project-desc {
    color: rgba(255, 255, 255, 0.7);
}

.play-theme .project-meta {
    color: rgba(255, 255, 255, 0.4);
}

.play-theme .view-project {
    color: #ffffff;
}

.play-theme .contact {
    background: #111111;
}

.play-theme .contact-label {
    color: rgba(255, 255, 255, 0.5);
}

.play-theme .contact-title {
    color: #ffffff;
}

.play-theme .btn {
    background: #ffffff;
    color: #111111;
}

.play-theme .btn:hover {
    background: #ffffff;
}

.play-theme .btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.play-theme .btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    background: transparent;
}

.play-theme .footer {
    color: rgba(255, 255, 255, 0.4);
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* ===== Play Page (tighter projects) ===== */
.play-page .project {
    min-height: 700px;
    padding-bottom: 0;
}

.play-page .project:has(.carousel) {
    padding-bottom: 88px;
}

.play-page .project-image img {
    object-fit: contain;
    object-position: center;
}

@media (max-width: 900px) {
    .play-page .project-image {
        height: 70vh;
    }

    .play-page .project-image:has(.carousel) {
        height: auto;
    }

    .play-page .project-image img {
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
}

@media (max-width: 480px) {
    .play-page .project-image {
        height: 70vh;
    }

    .play-page .project-image:has(.carousel) {
        height: auto;
    }

    .play-page .project-image img {
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
}

/* Video carousel slides */
.carousel-slide.carousel-slide-video {
    background: inherit;
}

.carousel-slide.carousel-slide-video video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

/* CSS phone frame for raw screen recordings */
.phone-frame {
    position: relative;
    width: 37%;
    max-width: 260px;
    aspect-ratio: 1172 / 2304;
    background: #1a1a1a;
    border-radius: 24px;
    padding: 3px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.phone-frame video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 21px;
    display: block;
    pointer-events: none;
}

.phone-frame::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 18px;
    background: #000;
    border-radius: 100px;
    z-index: 10;
    pointer-events: none;
}

/* ===== Wabi-Sabi Hero ===== */
.wabi-hero {
    background-color: #fafaf8;
    background-image:
        /* Vertical lines -- irregular spacing */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 79px,
            rgba(120, 110, 100, 0.06) 79px,
            rgba(120, 110, 100, 0.06) 80px,
            transparent 80px,
            transparent 162px,
            rgba(120, 110, 100, 0.04) 162px,
            rgba(120, 110, 100, 0.04) 163px,
            transparent 163px,
            transparent 237px,
            rgba(120, 110, 100, 0.05) 237px,
            rgba(120, 110, 100, 0.05) 238px,
            transparent 238px,
            transparent 320px
        ),
        /* Horizontal lines -- irregular spacing */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 63px,
            rgba(120, 110, 100, 0.05) 63px,
            rgba(120, 110, 100, 0.05) 64px,
            transparent 64px,
            transparent 141px,
            rgba(120, 110, 100, 0.035) 141px,
            rgba(120, 110, 100, 0.035) 142px,
            transparent 142px,
            transparent 198px,
            rgba(120, 110, 100, 0.06) 198px,
            rgba(120, 110, 100, 0.06) 199px,
            transparent 199px,
            transparent 280px
        );
}

.wabi-hero .hero-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 3.5px;
    color: var(--color-navy);
}

.wabi-rule {
    border: none;
    height: 1px;
    background: rgba(120, 110, 100, 0.15);
    width: 3rem;
    margin: 0.25rem 0;
}

.wabi-hero .hero-title {
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #1a1a2e;
}

.wabi-hero .hero-reel {
    position: relative;
}

.wabi-hero .hero-reel::before {
    content: '';
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(120, 110, 100, 0.08);
    pointer-events: none;
}

/* Tablet -- hide wabi grid accents */
@media (max-width: 900px) {
    .wabi-hero .hero-reel::before {
        display: none;
    }

    .wabi-rule {
        width: 2rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .wabi-rule {
        width: 1.5rem;
    }
}

/* ===== Diff Page ===== */

/* Diff Hero — Hot Takes Carousel (extends .hero .hero-left) */
/* Hero — Image + Intro Split */
.diff-hero-split {
    display: flex;
    align-items: center;
    max-width: calc(900px + 4rem);
    margin: 0 auto;
    padding: 6rem 2rem 5rem;
    gap: 5rem;
    min-height: 80vh;
}

.diff-hero-image {
    flex: 0 0 340px;
    width: 340px;
    height: 340px;
}

.diff-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.diff-hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.25rem;
}

.diff-hero-text .hero-title {
    font-size: clamp(1.5rem, 2.5vw, 2.125rem);
    line-height: 1.2;
    max-width: 580px;
    font-weight: 400;
    color: var(--color-text);
}

.diff-hero-body p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    max-width: 520px;
}

.diff-hero-body p + p {
    margin-top: 1rem;
}

/* Hero responsive — stack on mobile */
@media (max-width: 900px) {
    .diff-hero-split {
        flex-direction: column;
        min-height: auto;
        padding-top: 5rem;
        gap: 2.5rem;
        align-items: flex-start;
    }

    .diff-hero-image {
        flex: 0 0 260px;
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 480px) {
    .diff-hero-split {
        padding: 4.5rem 1.25rem 3rem;
        gap: 2rem;
    }

    .diff-hero-image {
        flex: 0 0 200px;
        width: 200px;
        height: 200px;
    }
}

/* Recommendation Cover Cards */
.diff-rec-covers {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
}

.diff-rec-covers::-webkit-scrollbar {
    display: none;
}

.diff-rec-cover-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 160px;
}

.diff-rec-cover-img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 0.5rem;
    background: var(--color-border);
    margin-bottom: 1rem;
}

.diff-rec-cover-img.diff-rec-cover-square {
    aspect-ratio: 1/1;
}

/* Advice Carousel */
.diff-advice-carousel {
    position: relative;
    min-height: 100px;
    overflow: hidden;
}

.diff-advice {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    padding: 1.5rem 2rem;
    background: var(--color-bg);
    border-left: 3px solid var(--color-navy);
    border-radius: 0 8px 8px 0;
}

.diff-advice.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.diff-advice p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
    font-style: italic;
}

.diff-advice-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.diff-advice-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.diff-advice-dot.active {
    background: var(--color-navy);
    transform: scale(1.25);
}

/* Tools Section */
.diff-tools {
    background: var(--color-bg);
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.diff-hero-take.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
    visibility: visible;
}

.diff-hero-take em {
    font-style: italic;
}

.diff-hero-counter {
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.diff-hero-current {
    color: var(--color-navy);
    font-weight: 700;
    min-width: 1.25em;
}

.diff-hero-divider {
    opacity: 0.3;
}

.diff-hero-total {
    opacity: 0.4;
}

.diff-section {
    padding: 7.5rem 2rem;
    border-bottom: 1px solid var(--color-border);
}

.diff-section:last-of-type {
    border-bottom: none;
}

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

.diff-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-navy);
    display: block;
    margin-bottom: 0.5rem;
}

.diff-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 3rem;
}

.diff-body p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.diff-body p:last-child {
    margin-bottom: 0;
}

/* Philosophy */
.diff-philosophy {
    background: var(--color-surface);
}

.diff-principles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.diff-principle {
    padding: 2rem 0;
}

.diff-principle-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.diff-principle-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.diff-principle-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* Services */
.diff-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem;
}

.diff-service {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.diff-service-number {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-navy);
}

.diff-service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

.diff-service-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* Recommendations */
.diff-recs {
    background: var(--color-surface);
    overflow: hidden;
}

.diff-rec-group {
    margin-bottom: 4rem;
}

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

.diff-rec-category {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.diff-rec-category-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--color-text);
}

.diff-rec-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.diff-rec-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.diff-rec-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.15rem;
}

.diff-rec-title a,
.diff-rec-cover-img-link {
    color: inherit;
    text-decoration: none;
}

.diff-rec-title a:hover {
    text-decoration: underline;
}

.diff-rec-by {
    font-size: 0.875rem;
    color: var(--color-navy);
    font-weight: 500;
}

.diff-rec-why {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-top: 0.25rem;
}

.diff-rec-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.diff-rec-pill {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
}

.diff-rec-quotes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.diff-rec-quote {
    padding: 1.5rem 2rem;
    background: var(--color-bg);
    border-left: 3px solid var(--color-navy);
    border-radius: 0 8px 8px 0;
}

.diff-rec-quote p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
    font-style: italic;
}

/* Impact Metrics */
.diff-impact {
    background: var(--color-surface);
}

.diff-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem 2.5rem;
}

.diff-metric {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.diff-metric-number {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(2.625rem, 7.5vw, 6rem);
    font-weight: 400;
    line-height: 1;
    color: var(--color-navy);
    letter-spacing: -0.02em;
}

.diff-metric-label {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

/* Client Logos */
.diff-clients {
    border-bottom: none;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.diff-clients .diff-label,
.diff-tools .diff-label {
    margin-bottom: 3.5rem;
}

.diff-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.diff-logo-mark {
    font-family: var(--font-family);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    opacity: 0.4;
    text-align: center;
    letter-spacing: 0.02em;
    padding: 1.25rem 0.5rem;
    transition: opacity 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.diff-logo-mark svg {
    width: 48px;
    height: 48px;
    transition: fill 0.3s ease;
}

.diff-logo-mark[data-brand="condenast"] svg {
    width: 225px;
    height: auto;
}

.diff-logo-mark[data-brand="vrbo"] svg {
    width: 150px;
    height: auto;
}

.diff-logo-mark[data-brand="tesco"] svg {
    width: 72px;
    height: 72px;
}

.diff-logo-mark[data-brand="nike"] svg {
    width: 72px;
    height: auto;
}

.diff-logo-mark[data-brand="alexa"] svg {
    width: 75px;
    height: auto;
}

.diff-logo-wordmark {
    font-family: var(--font-family);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.diff-logo-mark:hover { opacity: 1; }

/* Brand colors on hover */
.diff-logo-mark[data-brand="expedia"]:hover { color: #FBCC33; }
.diff-logo-mark[data-brand="openai"]:hover { color: #412991; }
.diff-logo-mark[data-brand="condenast"]:hover { color: #C6A664; }
.diff-logo-mark[data-brand="tesco"]:hover { color: #00539F; }
.diff-logo-mark[data-brand="alexa"]:hover { color: #00CAFF; }
.diff-logo-mark[data-brand="nike"]:hover { color: #111111; }
.diff-logo-mark[data-brand="hotels"]:hover { color: #D32F2F; }
.diff-logo-mark[data-brand="vrbo"]:hover { color: #3145F5; }

/* Tools brand colors on hover */
.diff-logo-mark[data-brand="figma"]:hover { color: #A259FF; }
.diff-logo-mark[data-brand="claude"]:hover { color: #D97757; }
.diff-logo-mark[data-brand="cursor"]:hover { color: #00E5A0; }
.diff-logo-mark[data-brand="swiftui"]:hover { color: #F05138; }
.diff-logo-mark[data-brand="pencil"]:hover { color: #FF6B35; }
.diff-logo-mark[data-brand="miro"]:hover { color: #FFD02F; }
.diff-logo-mark[data-brand="strava"]:hover { color: #FC4C02; }
.diff-logo-mark[data-brand="alltrails"]:hover { color: #428813; }

/* Logo links */
.diff-logo-link {
    color: inherit;
    text-decoration: none;
    display: contents;
}

/* Tools Logo Grid */

.diff-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
}

.diff-tool-mark {
    font-family: var(--font-family);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    opacity: 0.4;
    text-align: center;
    padding: 1rem 0.5rem;
    transition: opacity 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diff-tools .diff-logo-mark {
    padding: 2.75rem 0.5rem;
}

.diff-tool-mark svg {
    width: 28px;
    height: 28px;
    transition: fill 0.3s ease;
}

.diff-tool-mark[data-brand="pencil"] svg {
    width: 80px;
    height: auto;
}

.diff-tool-mark:hover { opacity: 1; }

/* Tool brand colors on hover */
.diff-tool-mark[data-brand="figma"]:hover { color: #F24E1E; }
.diff-tool-mark[data-brand="claude"]:hover { color: #D97757; }
.diff-tool-mark[data-brand="cursor"]:hover { color: #111111; }
.diff-tool-mark[data-brand="swiftui"]:hover { color: #F05138; }
.diff-tool-mark[data-brand="pencil"]:hover { color: #64927B; }
.diff-tool-mark[data-brand="miro"]:hover { color: #FFD02F; }

/* Testimonials — Carousel */
.diff-testimonials {
    background: var(--color-text);
    border-bottom-color: rgba(255,255,255,0.1);
    overflow: hidden;
}

.diff-testimonials .diff-label {
    color: rgba(255,255,255,0.4);
    margin-bottom: 3rem;
}

.diff-testimonial-carousel {
    position: relative;
    min-height: 440px;
}

.diff-testimonial {
    border: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.diff-testimonial.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.diff-testimonial-text {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.45;
    color: #ffffff;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
    padding-left: 0;
}

.diff-testimonial-text::before {
    content: '\201C';
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(5rem, 10vw, 8rem);
    font-style: normal;
    color: rgba(255,255,255,0.2);
    position: absolute;
    top: -0.1em;
    left: -0.08em;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

.diff-testimonial-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.diff-testimonial-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6);
    font-family: var(--font-family);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
}

.diff-testimonial-cite {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-family: var(--font-family);
    font-size: 0.9375rem;
    font-style: normal;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
}

.diff-testimonial-role {
    font-size: 0.8125rem;
    font-weight: 400;
    color: rgba(255,255,255,0.35);
}

.diff-testimonial-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.diff-testimonial-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diff-testimonial-arrow:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.diff-testimonial-arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.diff-testimonial-counter {
    font-family: var(--font-family);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.35);
}

/* Diff Responsive — Tablet */
@media (max-width: 900px) {
    .diff-section {
        padding: 5.5rem 2rem;
    }

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

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

    .diff-rec-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .diff-metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 2rem;
    }

    .diff-impact .diff-section-inner {
        max-width: 700px;
    }

    .diff-metric {
        gap: 0.25rem;
    }

    .diff-metric-number {
        font-size: 4.7rem;
    }

    .diff-testimonial-text {
        font-size: 1.75rem;
    }

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

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

    .diff-tools .diff-logo-mark {
        padding: 1.25rem 0.5rem;
    }

    .diff-testimonial-carousel {
        min-height: 420px;
    }

    .diff-hero-carousel {
        min-height: 220px;
    }

    .diff-rec-covers {
        gap: 1.5rem;
    }

}

/* Diff Responsive — Mobile */
@media (max-width: 480px) {
    .diff-section {
        padding: 4.5rem 1.25rem;
    }

    .diff-heading {
        font-size: 2rem;
    }

    .diff-body p {
        font-size: 1rem;
    }

    .diff-rec-quote {
        padding: 1.25rem 1.5rem;
    }

    .diff-rec-pills {
        gap: 0.5rem;
    }

    .diff-rec-pill {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

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

    .diff-metric-number {
        font-size: 4.7rem;
    }

    .diff-testimonial-text {
        font-size: 1.5rem;
    }

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

    .diff-logo-mark {
        font-size: 0.9375rem;
        padding: 0.75rem 0.25rem;
        overflow: hidden;
    }

    .diff-logo-mark svg {
        max-width: 100%;
        height: auto;
    }

    .diff-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .diff-tools .diff-logo-mark {
        padding: 2.75rem 0.5rem;
    }

    .diff-testimonial-carousel {
        min-height: 480px;
    }

    .diff-testimonial-text::before {
        font-size: 5rem;
    }

    .diff-rec-cover-card {
        flex: 0 0 120px;
    }

    .diff-hero-carousel {
        min-height: 180px;
    }
}

/* ===== Partnerships — Split Layout ===== */

/* Full-width 3-up image rows (1440px max) */
/* Case study carousel — 3-up on desktop, single carousel on tablet/mobile */
.case-carousel {
    width: 100%;
    max-width: 1440px;
}

.case-carousel .carousel {
    height: auto;
}

.case-carousel .carousel-track {
    display: flex;
    gap: 8px;
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
}

.case-carousel .carousel-slide {
    flex: 1;
    min-width: 0;
    height: auto;
    position: relative;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
}

.case-carousel .carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.case-carousel .carousel-dots {
    display: none;
}

/* 4-up variant */
.case-carousel.four-up-full .carousel-slide img {
    height: auto;
}

/* Surface/cream background for image rows */
.case-image-row-surface,
.case-carousel.case-image-row-surface {
    background: #fdfcfa;
}

/* Side-by-side: image + text */
.case-split {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 1440px;
    min-height: 800px;
    overflow: hidden;
}

.case-split-reverse {
    flex-direction: row;
}

.case-split-image {
    flex: 0 0 400px;
    min-height: 800px;
    display: flex;
    align-items: center;
}

.case-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.case-split-image-blend img {
    mix-blend-mode: multiply;
}

.case-split-content {
    flex: 0 1 576px;
    padding: 96px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.case-split-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1;
    color: var(--color-text);
}

.case-split-desc {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

/* Standalone centered text block (e.g., Condé Nast under images) */
.case-split-text {
    width: 100%;
    max-width: 1440px;
    padding: 0 360px 97px;
}

.case-split-text-surface {
    background: #fdfcfa;
}

.case-split-text .case-split-title {
    margin-bottom: 16px;
}

.case-split-text .case-split-desc {
    max-width: 550px;
}

/* Dark results section */
.case-results-dark {
    background: #191e3b;
    width: 100%;
    max-width: none;
    padding: 0 160px;
    min-height: 960px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 64px;
}

.results-dark-label {
    font-size: 1.3125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.31px;
    color: #fddb32;
}

.results-dark-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px 40px;
}

.results-dark-item {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 540px;
}

.results-dark-value {
    font-size: clamp(4rem, 10vw, 10rem);
    font-weight: 300;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -0.04em;
}

.results-dark-desc {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 30px;
    color: #ffffff;
    letter-spacing: -0.045em;
}

/* Dark results — quote variant (Intelligence page) */
.results-dark-quote-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 5vw, 4.375rem);
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: 0.01em;
    max-width: 1095px;
}

/* ===== Case Study Footer (two-column contact + explore) ===== */
.case-footer {
    display: flex;
    gap: 184px;
    padding: 8rem 10rem;
    background: #fbfbfb;
    align-items: flex-start;
}

.case-footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.case-footer-left .contact-label {
    margin-bottom: 0.25rem;
}

.case-footer-left .contact-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
}

.case-footer-left .contact-links {
    display: flex;
    gap: 1rem;
}

.case-footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    flex-shrink: 0;
}

.case-footer-right .explore-label {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-navy);
    margin-bottom: 0.25rem;
}

.case-footer-right .explore-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--color-navy);
    text-decoration: none;
    transition: transform var(--transition);
    display: inline-block;
}

.case-footer-right .explore-title:hover {
    transform: translateX(8px);
}

/* Case Footer Responsive — XL */
@media (min-width: 1200px) {
    .case-footer {
        padding: 8rem 10rem;
    }
}

/* Case Footer Responsive — Tablet */
@media (max-width: 900px) {
    .case-footer {
        flex-direction: column-reverse;
        gap: 0;
        padding: 0;
        align-items: stretch;
    }

    .case-footer-left {
        padding: 3rem 2rem 5rem;
        align-items: stretch;
    }

    .case-footer-right {
        padding: 10rem 2rem;
        background: #f3f4f5;
        width: 100%;
        flex-shrink: unset;
    }

    .case-footer-left .contact-label,
    .case-footer-right .explore-label {
        margin-bottom: 0.5rem;
    }

    .case-footer-left .contact-title {
        margin-bottom: 1rem;
    }

    .case-footer-left .contact-links {
        flex-direction: column;
        width: 100%;
    }

    .case-footer-left .contact-links .btn {
        width: 100%;
    }
}

/* Case Footer Responsive — Mobile */
@media (max-width: 600px) {
    .case-footer-left {
        padding: 3.5rem 1.25rem 3.75rem;
    }

    .case-footer-right {
        padding: 8rem 1.25rem;
    }

    .case-footer-left .contact-label,
    .case-footer-right .explore-label {
        margin-bottom: 0.25rem;
    }

    .case-footer-left .contact-title {
        margin-bottom: 0.75rem;
    }

    .case-footer-left .contact-links {
        flex-direction: column;
        width: 100%;
    }

    .case-footer-left .contact-links .btn {
        width: 100%;
    }
}

/* Partnerships Responsive — Tablet */
@media (max-width: 900px) {
    .case-carousel .carousel {
        display: flex;
        flex-direction: column;
    }

    .case-carousel .carousel-track {
        flex: 1;
        gap: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .case-carousel .carousel-track::-webkit-scrollbar {
        display: none;
    }

    .case-carousel .carousel-slide {
        flex: 0 0 100%;
        scroll-snap-align: start;
    }

    .case-carousel .carousel-slide img {
        height: 100%;
        object-fit: cover;
        object-position: center top;
        border-radius: 12px;
    }

    .case-carousel .carousel-track {
        height: 70vh;
    }

    .case-carousel .carousel .carousel-dots {
        position: static;
        transform: none;
        display: flex;
        justify-content: center;
        padding: 16px 0;
    }

    .case-split {
        flex-direction: column;
        min-height: auto;
    }

    .case-split-reverse {
        flex-direction: column;
    }

    .case-split-image {
        flex: none;
        width: 100%;
        height: 70vh;
    }

    .case-split-image img {
        border-radius: 12px;
    }

    .case-split-content {
        flex: none;
        width: 100%;
        max-width: 700px;
        padding: 48px 32px;
    }

    .case-split-text {
        padding: 0 32px 64px;
    }

    .case-results-dark {
        padding: 64px 32px;
        min-height: auto;
        gap: 48px;
    }

    .results-dark-grid {
        gap: 48px 32px;
    }

    .results-dark-value {
        font-size: 5rem;
    }

    .results-dark-desc {
        font-size: 1.25rem;
    }
}

/* Partnerships Responsive — Mobile */
@media (max-width: 600px) {
    .case-image-row.three-up.three-up-full {
        max-width: 100%;
    }

    .case-image-row.three-up.three-up-full .case-image-item img {
        height: 520px;
    }

    .case-split-image {
        height: 70vh;
    }

    .case-split-content {
        padding: 32px 20px;
        gap: 16px;
    }

    .case-split-title {
        font-size: 2rem;
    }

    .case-split-desc {
        font-size: 1rem;
    }

    .case-split-text {
        padding: 0 20px 48px;
    }

    .case-split-text .case-split-desc {
        max-width: 100%;
    }

    .case-results-dark {
        padding: 48px 20px;
        gap: 32px;
    }

    .results-dark-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .results-dark-value {
        font-size: 3.5rem;
    }

    .results-dark-desc {
        font-size: 1.125rem;
    }
}
