@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=Space+Grotesk:wght@400;500;700&display=swap');

/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
    --primary: #ff6d5a;
    --secondary: #ea4b71;
    --accent: #f39c12;
    --dark: #0a0a0a;
    --dark-2: #111111;
    --dark-3: #1a1a1a;
    --light: #ffffff;
    --gray: #8892b0;
    --gray-2: #4a5568;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.08);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --text-gradient: linear-gradient(120deg, var(--primary), var(--secondary), var(--accent));
    --font-main: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================================
   ANIMATED BACKGROUND
   ============================================================ */
.animated-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; right: -100px; }
.orb-2 { width: 400px; height: 400px; background: var(--secondary); bottom: 20%; left: -150px; animation-delay: -7s; }
.orb-3 { width: 300px; height: 300px; background: var(--accent); bottom: -100px; right: 20%; animation-delay: -14s; opacity: 0.06; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -30px) scale(1.05); }
    66%       { transform: translate(-20px, 20px) scale(0.95); }
}

/* ============================================================
   NAVBAR (shared)
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0.875rem 2rem;
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-back:hover { color: var(--primary); border-color: rgba(255,109,90,0.4); transform: translateX(-3px); }

/* project detail nav controls */
.nav-project-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-ctrl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--gray);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
    flex-shrink: 0;
}
.nav-ctrl-btn:hover { color: var(--primary); border-color: rgba(255,109,90,0.4); }

.nav-counter {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-sn-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

/* ============================================================
   INDEX PAGE  - PAGE HEADER
   ============================================================ */
.page-header {
    position: relative;
    z-index: 1;
    padding: 7rem 2rem 4rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 1rem;
    padding: 0.4rem 1.1rem;
    border: 1px solid rgba(255,109,90,0.3);
    border-radius: 20px;
    background: rgba(255,109,90,0.07);
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-decoration {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 1.5rem;
}
.title-decoration span { height: 3px; border-radius: 2px; background: var(--gradient); }
.title-decoration span:nth-child(1) { width: 40px; }
.title-decoration span:nth-child(2) { width: 20px; opacity: 0.6; }
.title-decoration span:nth-child(3) { width: 10px; opacity: 0.3; }

.page-subtitle {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.contact-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s;
}
.contact-links a:hover { color: var(--primary); }
.contact-links .separator { color: var(--gray-2); }

.nda-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1.25rem;
    padding: 0.75rem 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    max-width: 520px;
    text-align: left;
}
.nda-note .nda-icon { font-size: 0.85rem; margin-top: 1px; flex-shrink: 0; }
.nda-note p {
    font-size: 0.78rem;
    color: var(--gray);
    line-height: 1.55;
    margin: 0;
}

.pdf-download-btn {
    margin-top: 1.5rem;
    padding: 0.65rem 1.6rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.02em;
    transition: opacity 0.2s, transform 0.2s;
}
.pdf-download-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* ============================================================
   INDEX PAGE  - FILTER BAR
   ============================================================ */
.filter-bar {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0.625rem;
    margin: 0 auto 3rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    padding: 0 2rem;
}

.filter-btn {
    padding: 7px 16px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--gray);
    transition: var(--transition);
    font-weight: 500;
    font-family: var(--font-main);
    backdrop-filter: blur(10px);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); background: rgba(255,109,90,0.07); }
.filter-btn.active { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 4px 15px rgba(255,109,90,0.3); }

/* ============================================================
   INDEX PAGE  - PROJECTS GRID
   ============================================================ */
.projects-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
    backdrop-filter: blur(10px);
}
.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,109,90,0.4);
    box-shadow: 0 24px 48px rgba(255,109,90,0.12);
    background: rgba(255,255,255,0.07);
}

.project-card .project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: var(--dark-3);
    transition: transform 0.4s ease;
}
.project-card:hover .project-image { transform: scale(1.03); }

.project-content { padding: 1.5rem; }

.case-number {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    background: rgba(255,109,90,0.1);
    color: var(--primary);
    border: 1px solid rgba(255,109,90,0.25);
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    line-height: 1.3;
    color: var(--light);
}

.project-meta {
    font-size: 0.78rem;
    color: var(--gray);
    margin-bottom: 0.875rem;
}

.project-snippet {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.tech-preview { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1rem; }
.tech-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.68rem;
    color: var(--gray);
    font-weight: 500;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.825rem;
    font-weight: 600;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: gap 0.3s;
}
.project-card:hover .read-more { gap: 10px; }

/* ============================================================
   DETAIL PAGES  - HERO
   ============================================================ */
.project-hero {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 62vh;
    min-height: 420px;
    max-height: 640px;
    overflow: hidden;
    margin-top: 57px; /* navbar height */
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.85);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,10,10,1) 0%,
        rgba(10,10,10,0.65) 40%,
        rgba(10,10,10,0.15) 100%
    );
}

.hero-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--light);
    margin: 0.6rem 0 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-tag {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

/* ============================================================
   DETAIL PAGES  - MAIN LAYOUT
   ============================================================ */
.page-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
    align-items: start;
}

/* Sidebar */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 80px;
}

.sidebar-block {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    backdrop-filter: blur(10px);
}

.sidebar-block-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--card-border);
}

.meta-rows { display: flex; flex-direction: column; gap: 0.75rem; }

.meta-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.meta-key {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
}

.meta-val {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--light);
}

/* Tech icons grid in sidebar */
.tech-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
    margin-top: 0.25rem;
}

.tech-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 6px;
    border-radius: 10px;
    transition: var(--transition);
    cursor: default;
    border: 1px solid transparent;
}
.tech-icon-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--card-border);
    transform: translateY(-2px);
}

.tool-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.tool-emoji {
    font-size: 1.5rem;
    line-height: 1;
    display: block;
    width: 30px;
    height: 30px;
    text-align: center;
}

.tool-name {
    font-size: 0.62rem;
    color: var(--gray);
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
}

.back-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--gray);
    text-decoration: none;
    font-size: 0.825rem;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}
.back-all-btn:hover { color: var(--primary); border-color: rgba(255,109,90,0.4); transform: translateX(-3px); }

/* Main content */
.detail-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-block {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}
.content-block:hover { border-color: rgba(255,109,90,0.25); }

.block-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.block-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.block-heading {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--light);
}

.block-text {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.72);
}

/* ============================================================
   DETAIL PAGES  - RESULTS SECTION
   ============================================================ */
.results-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.results-heading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--light);
}
.results-heading::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--gradient);
    border-radius: 2px;
    display: block;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}

.result-card {
    background: linear-gradient(135deg, rgba(255,109,90,0.07) 0%, rgba(234,75,113,0.07) 100%);
    border: 1px solid rgba(255,109,90,0.2);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    transition: var(--transition);
}
.result-card:hover {
    border-color: rgba(255,109,90,0.45);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255,109,90,0.12);
}

.result-value {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.result-label {
    font-size: 0.825rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.5;
}

/* ============================================================
   DETAIL PAGES  - FOOTER NAV
   ============================================================ */
.case-footer-nav {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    border-top: 1px solid var(--card-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.case-nav-btn {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}
.case-nav-btn.next-btn { text-align: right; }
.case-nav-btn:hover {
    border-color: rgba(255,109,90,0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255,109,90,0.1);
}

.case-nav-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
}

.case-nav-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--light);
    line-height: 1.3;
}

/* ============================================================
   PAGE FOOTER
   ============================================================ */
.page-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--card-border);
    padding: 1.75rem 2rem;
    text-align: center;
}
.page-footer p { color: var(--gray); font-size: 0.8rem; }
.page-footer a { color: var(--primary); text-decoration: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablets (900px) ── */
@media (max-width: 900px) {
    /* Detail layout: stack sidebar above main */
    .detail-layout {
        grid-template-columns: 1fr;
    }
    .detail-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .back-all-btn {
        grid-column: 1 / -1;
    }

    /* Hero */
    .project-hero {
        height: 50vh;
        min-height: 300px;
    }
    .hero-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    .hero-text {
        padding: 2rem;
    }

    /* Projects grid: smaller min so 2 columns fit on tablets */
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    /* Page header */
    .page-header {
        padding: 6rem 2rem 2.5rem;
    }
}

/* ── Large phones / small tablets (768px) ── */
@media (max-width: 768px) {
    /* Navbar */
    .navbar {
        padding: 0.75rem 1.25rem;
    }
    .nav-counter {
        display: none;
    }

    /* Sidebar: collapse to single column */
    .detail-sidebar {
        grid-template-columns: 1fr;
    }

    /* Page header */
    .page-header {
        padding: 5.5rem 1.25rem 2rem;
    }
    .page-header h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    /* Filter bar */
    .filter-bar {
        padding: 0 1.25rem;
        gap: 0.4rem;
        overflow-x: auto;
        flex-wrap: wrap;
        -webkit-overflow-scrolling: touch;
    }
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    /* Projects container + grid */
    .projects-container {
        padding: 0 1.25rem 4rem;
    }
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.25rem;
    }

    /* Project hero */
    .project-hero {
        height: 45vh;
        min-height: 260px;
        margin-top: 52px;
    }
    .hero-text {
        padding: 1.5rem;
    }

    /* Detail pages */
    .page-content {
        padding: 2rem 1.25rem 0;
    }
    .content-block {
        padding: 1.5rem;
    }
    .results-wrapper {
        padding: 0 1.25rem 2.5rem;
    }
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
    .result-card {
        padding: 1.25rem 1rem;
    }

    /* Footer nav */
    .case-footer-nav {
        padding: 2rem 1.25rem;
        gap: 0.875rem;
        grid-template-columns: 1fr;
    }

    /* NDA note */
    .nda-note {
        margin: 1.5rem 1.25rem;
    }

    /* PDF button */
    .pdf-download-btn {
        width: 100%;
        text-align: center;
    }
}

/* ── Phones (480px) ── */
@media (max-width: 480px) {
    /* Projects grid: full-width single column */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Project card image */
    .project-card .project-image {
        height: 180px;
    }

    /* Project content */
    .project-content {
        padding: 1.25rem;
    }
    .project-title {
        font-size: 1rem;
    }

    /* Page header */
    .page-header {
        padding: 5rem 1rem 1.75rem;
    }
    .page-header h1 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-header .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    /* Hero */
    .project-hero {
        height: 40vh;
        min-height: 220px;
    }
    .hero-title {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
    }
    .hero-text {
        padding: 1.25rem;
    }
    .hero-tags {
        gap: 0.35rem;
    }
    .hero-tag {
        font-size: 0.68rem;
        padding: 4px 8px;
    }

    /* Sidebar blocks */
    .sidebar-block {
        padding: 1rem;
    }
    .tech-icons-grid {
        grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    }

    /* Content blocks */
    .content-block {
        padding: 1.25rem;
    }
    .block-heading {
        font-size: 1rem;
    }
    .block-text {
        font-size: 0.875rem;
    }

    /* Results */
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .result-value {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }
    .result-card {
        padding: 1rem 0.875rem;
    }

    /* Footer nav */
    .case-nav-btn {
        padding: 1.25rem;
    }
    .case-nav-title {
        font-size: 0.875rem;
    }
}

/* ── Very small phones (375px) ── */
@media (max-width: 375px) {
    .filter-btn {
        font-size: 0.68rem;
        padding: 5px 10px;
    }
    .project-title {
        font-size: 0.95rem;
    }
    .results-grid {
        grid-template-columns: 1fr 1fr;
    }
    .result-value {
        font-size: 1.2rem;
    }
    .navbar {
        padding: 0.6rem 1rem;
    }
}

/* ── Print ── */
@media print {
    body { background: white; color: black; }
    .animated-bg, .navbar, .filter-bar, .case-footer-nav { display: none; }
    .detail-sidebar { position: static; }
    .content-block { break-inside: avoid; }
    .result-card { break-inside: avoid; }
}
