/* ============================================
   OUR WORK — Immersive Portfolio
   ============================================ */

/* Inline SVG icons (replacing Font Awesome <i> glyphs): baseline nudge so
   they sit like text glyphs when not inside a flex row. */
.svg-icon {
    vertical-align: -0.125em;
    flex-shrink: 0;
}

/* --------- Reveal primitive --------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal[data-delay='100'] { transition-delay: 0.1s; }
.reveal[data-delay='200'] { transition-delay: 0.2s; }
.reveal[data-delay='300'] { transition-delay: 0.3s; }
.reveal[data-delay='400'] { transition-delay: 0.4s; }

/* --------- Hero: Showcase ---------- */
.work-hero {
    position: relative;
    padding: 9rem 0 6rem;
    background: linear-gradient(135deg, #0f0c29 0%, #24243e 50%, #1e1f63 100%);
    color: var(--white);
    overflow: hidden;
    isolation: isolate;
}

.work-hero::before {
    content: '';
    position: absolute;
    inset: -10% -10% -10% -10%;
    background:
        radial-gradient(ellipse 60% 50% at 15% 25%, rgba(113, 23, 242, 0.55) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 85% 35%, rgba(255, 200, 87, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 50% 100%, rgba(151, 71, 255, 0.3) 0%, transparent 55%);
    animation: meshDrift 22s ease-in-out infinite alternate;
    z-index: -1;
}

.work-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 70% 60%, rgba(255, 200, 87, 0.4), transparent),
        radial-gradient(1px 1px at 30% 80%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 85% 15%, rgba(151, 71, 255, 0.5), transparent),
        radial-gradient(1px 1px at 55% 45%, rgba(255, 255, 255, 0.4), transparent);
    background-size: 600px 400px;
    animation: sparkleDrift 28s linear infinite;
    opacity: 0.7;
    z-index: -1;
}

@keyframes meshDrift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, 30px) scale(1.12); }
}

@keyframes sparkleDrift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-300px); }
}

.work-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}

.work-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.work-hero h1 .accent {
    color: var(--gold);
}

.work-hero p {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.78);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 780px;
    margin: 3rem auto 0;
}

.hero-metric {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
    transition: all 0.4s ease;
}

.hero-metric:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 200, 87, 0.3);
    transform: translateY(-4px);
}

.hero-metric-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -0.02em;
}

.hero-metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.25rem;
}

/* --------- Showcase lineup --------- */
.showcase {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
}

.section-lead {
    max-width: 720px;
    margin: 0 auto 5rem;
    text-align: center;
    padding: 0 1.5rem;
}

.section-lead h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-lead p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Featured case study (full-width, alternating) */
.case-study {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.case-study:nth-child(odd) { background: var(--white); }
.case-study:nth-child(even) { background: var(--bg-light); }

.case-study-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.case-study.reverse .case-study-inner {
    direction: rtl;
}
.case-study.reverse .case-study-inner > * {
    direction: ltr;
}

.case-visual {
    position: relative;
    perspective: 1400px;
}

.browser-frame {
    position: relative;
    background: linear-gradient(180deg, #1a1a1f 0%, #0f0f14 100%);
    border-radius: 14px 14px 12px 12px;
    padding: 12px 12px 0;
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.3),
        0 30px 60px -30px rgba(113, 23, 242, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    transform: rotateY(-4deg) rotateX(2deg);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.case-study.reverse .browser-frame {
    transform: rotateY(4deg) rotateX(2deg);
}

.browser-frame:hover {
    transform: rotateY(0) rotateX(0) translateY(-6px);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0 10px;
}
.browser-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #424249;
}
.browser-bar span:nth-child(1) { background: #ff5f57; }
.browser-bar span:nth-child(2) { background: #febc2e; }
.browser-bar span:nth-child(3) { background: #28c840; }

.browser-url {
    flex: 1;
    margin-left: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 5px 12px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.76rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browser-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0 0 10px 10px;
    background: #fff;
}

/* Decorative float cards around the frame */
.case-visual .float-chip {
    position: absolute;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.18);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: chipFloat 6s ease-in-out infinite;
    z-index: 2;
}

.case-visual .float-chip i,
.case-visual .float-chip .svg-icon {
    color: var(--primary-color);
}

.case-visual .float-chip.top-left {
    top: -20px;
    left: -30px;
    animation-delay: 0s;
}

.case-visual .float-chip.bottom-right {
    bottom: 30px;
    right: -40px;
    animation-delay: 2s;
}

.case-visual .float-chip.middle-left {
    top: 40%;
    left: -50px;
    animation-delay: 4s;
}

@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.case-visual .mobile-float {
    position: absolute;
    bottom: -40px;
    right: -30px;
    width: 130px;
    border-radius: 20px;
    border: 8px solid #111;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
    background: #fff;
    overflow: hidden;
    transition: transform 0.5s ease;
    animation: chipFloat 7s ease-in-out infinite;
    animation-delay: 1s;
    z-index: 3;
}

.case-visual .mobile-float img {
    display: block;
    width: 100%;
}

.case-study.reverse .case-visual .mobile-float {
    right: auto;
    left: -30px;
}

/* Content side */
.case-content .case-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.case-content .case-tag i,
.case-content .case-tag .svg-icon {
    color: var(--primary-color);
}

.case-content h3 {
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.case-content .case-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.case-content .case-lead {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.case-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.case-pill {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.case-study:nth-child(even) .case-pill { background: var(--white); }

.case-pill:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: 0 10px 25px -12px rgba(113, 23, 242, 0.25);
}

.case-pill i,
.case-pill .svg-icon {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.case-outcomes {
    display: flex;
    gap: 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 100%);
    color: var(--white);
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.case-outcomes::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(255, 200, 87, 0.18), transparent 60%);
}

.outcome {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 0 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.outcome:last-child { border-right: none; }

.outcome-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.outcome-label i,
.outcome-label .svg-icon { color: var(--gold); font-size: 0.75rem; }

.outcome-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
}

.case-meta-row {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.case-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.case-meta-row i,
.case-meta-row .svg-icon { color: var(--primary-color); }

.case-ctas {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.case-ctas .btn {
    padding: 0.85rem 1.65rem;
    font-size: 0.92rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.case-ctas .btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 14px 30px -10px rgba(113, 23, 242, 0.45);
}

.case-ctas .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px rgba(113, 23, 242, 0.6);
}

.case-ctas .btn-ghost {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid rgba(0, 0, 0, 0.1);
}

.case-ctas .btn-ghost:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* --------- Compact cards (supporting projects) --------- */
.supporting {
    padding: 6rem 0;
    background: var(--bg-light);
}

.supporting-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.mini-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}

.mini-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px -25px rgba(113, 23, 242, 0.25);
}

.mini-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0c29, #302b63);
}

.mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.mini-card:hover .mini-img img {
    transform: scale(1.06);
}

.mini-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.mini-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mini-meta .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    display: inline-block;
    margin-right: 6px;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.mini-body h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.mini-body p {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 1rem;
}

.mini-tag {
    padding: 0.35rem 0.8rem;
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.mini-link {
    margin-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.mini-link:hover { gap: 0.85rem; }

/* --------- Scrolling tech marquee --------- */
.tech-marquee {
    padding: 3rem 0;
    background: var(--white);
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.marquee-track {
    display: flex;
    gap: 3rem;
    animation: marqueeScroll 38s linear infinite;
    width: max-content;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.marquee-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.tech-marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* --------- Stats ribbon --------- */
.stats-ribbon {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #1e1f63 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stats-ribbon::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 40% at 25% 30%, rgba(113, 23, 242, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 50% 35% at 75% 70%, rgba(255, 200, 87, 0.15) 0%, transparent 55%);
    animation: meshDrift 20s ease-in-out infinite alternate;
}

.stats-ribbon .container {
    position: relative;
    z-index: 1;
}

.stats-ribbon h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.stats-ribbon .sub {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    max-width: 620px;
    margin: 0 auto 3.5rem;
}

.stats-grid-ribbon {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-pod {
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all 0.4s ease;
}

.stat-pod:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 200, 87, 0.25);
}

.stat-pod-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--gold), #ff9f43);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 14px 30px -12px rgba(255, 200, 87, 0.5);
}

.stat-pod-icon i,
.stat-pod-icon .svg-icon {
    font-size: 1.3rem;
    color: var(--accent-color);
}

.stat-pod-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-pod-label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.02em;
}

/* --------- Testimonials --------- */
.testimonials {
    padding: 6rem 0;
    background: var(--white);
}

.testi-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.testi-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    transition: all 0.4s ease;
}

.testi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.12);
    border-color: rgba(113, 23, 242, 0.2);
}

.testi-quote {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 25px -10px rgba(113, 23, 242, 0.4);
}

.testi-card p {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.testi-info strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.testi-info span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --------- CTA --------- */
.work-cta {
    padding: 6rem 0;
    background: var(--bg-light);
}

.work-cta-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4.5rem 3rem;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #1e1f63 100%);
    border-radius: var(--radius-2xl);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.work-cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 20%, rgba(151, 71, 255, 0.4) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(255, 200, 87, 0.22) 0%, transparent 55%);
    animation: meshDrift 18s ease-in-out infinite alternate;
}

.work-cta-inner > * { position: relative; z-index: 1; }

.work-cta-inner h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.work-cta-inner p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.work-cta-inner .btn-primary {
    background: var(--gold);
    color: var(--accent-color);
    padding: 1rem 2.25rem;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 18px 40px -15px rgba(255, 200, 87, 0.6);
}

.work-cta-inner .btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 24px 50px -15px rgba(255, 200, 87, 0.8);
}

.work-cta-pills {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.work-cta-pills span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.work-cta-pills i,
.work-cta-pills .svg-icon { color: var(--gold); }

/* --------- Responsive --------- */
@media (max-width: 1100px) {
    .case-study-inner {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .case-study.reverse .case-study-inner { direction: ltr; }

    .case-visual .float-chip.top-left,
    .case-visual .float-chip.bottom-right,
    .case-visual .float-chip.middle-left { display: none; }

    .case-visual .mobile-float {
        right: 10px;
        bottom: -20px;
        width: 100px;
    }

    .case-study.reverse .case-visual .mobile-float {
        right: 10px;
        left: auto;
    }

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

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

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

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

@media (max-width: 768px) {
    .work-hero { padding: 6rem 0 4rem; }

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

    .case-study-inner { gap: 3rem; }

    .browser-frame { transform: none !important; }

    .case-visual .mobile-float { display: none; }

    .case-outcomes { flex-direction: column; gap: 1.25rem; padding: 1.5rem; }
    .outcome { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 0 0 1.25rem; }
    .outcome:last-child { border-bottom: none; padding-bottom: 0; }

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

    .case-ctas { flex-direction: column; }
    .case-ctas .btn { justify-content: center; }

    .supporting, .stats-ribbon, .testimonials, .work-cta { padding: 4rem 0; }

    .work-cta-inner { padding: 3rem 1.5rem; }
}

@media (max-width: 480px) {
    .hero-metrics { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .hero-metric-value { font-size: 1.45rem; }

    .stats-grid-ribbon { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .stat-pod { padding: 1.5rem 1rem; }
    .stat-pod-number { font-size: 2rem; }

    .testi-card { padding: 1.75rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .work-hero::before,
    .work-hero::after,
    .stats-ribbon::before,
    .work-cta-inner::before,
    .marquee-track,
    .case-visual .float-chip,
    .case-visual .mobile-float {
        animation: none !important;
    }

    .reveal { opacity: 1; transform: none; transition: none; }

    .browser-frame { transform: none !important; }
}
