/* ============ Responsive ============ */
@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        background: #0a0a0a;
        padding: 0.5rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links > li > a {
        padding: 0.85rem 1.5rem;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: #111;
        border: none;
        min-width: 0;
    }

    .has-dropdown.dropdown-open .dropdown {
        display: block;
    }

    .dropdown li a {
        padding-left: 2.5rem;
    }

    .navbar {
        position: relative;
    }

    .hero {
        min-height: 60vh;
    }

    .hero-text-block {
        padding: 2rem 1rem;
    }


    .clients-track img {
        height: 40px;
    }

    .section-statement {
        font-size: 1.3rem;
        padding: 0 1rem;
    }

    .showcase-section {
        height: 75vh;
    }

    .showcase-content {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 4.5rem;
    }

    .showcase-text h2 {
        font-size: 2rem;
    }

    .showcase-client-logo {
        display: none;
    }

    /* Founder section stacks */
    .founder-grid {
        grid-template-columns: 1fr;
    }

    .founder-portrait {
        height: 50vh;
    }

    .founder-portrait::after {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 40%;
        background: linear-gradient(to bottom, transparent, var(--color-bg-dark));
    }

    .founder-statement {
        padding: 3rem 2rem;
    }

    .founder-quote {
        font-size: 1.6rem;
    }

    /* Proof mosaic 2-col */
    .proof-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .mosaic-item:nth-child(n) { grid-column: auto; grid-row: auto; }

    /* Stats: 2x2 grid so the numbers never overflow / get cut off */
    .proof-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 1.5rem;
        padding: 3.5rem 1.5rem;
    }
    .proof-stat-divider {
        display: none;
    }
    .proof-stat-number {
        font-size: 2.6rem;
    }

    /* Timeline nodes smaller */
    .timeline-node {
        width: 220px;
    }

    .loop-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .loop-card-featured .loop-card-img {
        height: 200px;
    }

    .loop-card-sm {
        flex-direction: row;
    }

    .loop-card-sm .loop-card-img {
        width: 35%;
    }

    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
        order: -1;
    }

    .news-category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .news-category-list li {
        margin-bottom: 0;
    }

    .news-category-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.82rem;
        border: 1px solid var(--color-border);
        border-radius: 20px;
    }

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

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-locations-grid {
        grid-template-columns: 1fr;
    }

    .contact-map-embed iframe {
        height: 350px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-cta-left,
    .footer-cta-right {
        order: 1;
    }

    .footer-center {
        order: 0;
    }

    .hiring-inner h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {

    .clients-track img {
        height: 30px;
    }

    .contact-map-embed iframe {
        height: 280px;
    }

    .contact-method-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .contact-method-icon svg {
        width: 20px;
        height: 20px;
    }

    .loop-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .loop-card-sm {
        flex-direction: column;
    }

    .loop-card-sm .loop-card-img {
        width: 100%;
        height: 160px;
    }

    /* Mosaic single column */
    .proof-mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .mosaic-item:nth-child(n) { grid-column: auto; grid-row: auto; }

    .founder-quote {
        font-size: 1.35rem;
    }

    .founder-statement {
        padding: 2rem 1.25rem;
    }
}
