/* AM — mobile / tablet adaptation */

@media (hover: none), (pointer: coarse) {
    body,
    button {
        cursor: auto;
    }

    .cursor,
    .cursor-dot {
        display: none !important;
    }
}

@media (max-width: 1100px) {
    .figma-panel,
    .figma-inspect,
    .figma-colors,
    .figma-comment,
    .fig-collab {
        display: none !important;
    }

    .hero-inner {
        padding: 72px 40px 100px;
        max-width: 100%;
    }

    .folders-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

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

    .svc-card {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .svc-card:nth-child(odd) {
        border-right: 1px solid rgba(0, 0, 0, 0.06);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .fc-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .navbar {
        padding: 0 20px;
        height: 56px;
    }

    .nav-burger {
        display: inline-flex;
    }

    .nav-panel {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 86vw);
        height: 100dvh;
        height: 100vh;
        margin: 0;
        padding: 88px 28px 36px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 28px;
        background: rgba(12, 12, 12, 0.98);
        border-left: 1px solid var(--border-hi);
        box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45);
        transform: translateX(104%);
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
        pointer-events: none;
        z-index: 1;
    }

    .navbar.menu-open .nav-panel {
        transform: translateX(0);
        pointer-events: auto;
    }

    .navbar .nav-burger {
        z-index: 5;
    }

    .navbar.menu-open .btn-nav {
        background: var(--white) !important;
        color: var(--black) !important;
        border-color: transparent !important;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-links {
        flex-direction: column;
        gap: 4px;
        margin-left: 0;
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 4px;
        font-size: 22px;
        font-weight: 600;
        letter-spacing: -0.02em;
        color: var(--white);
    }

    .nav-links a::after {
        display: none;
    }

    .btn-nav {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        margin-top: auto;
    }

    .hero {
        min-height: 100svh;
        padding-top: 56px;
    }

    .hero-inner {
        padding: 48px 20px 88px;
    }

    .hero-eyebrow {
        font-size: 10px;
        letter-spacing: 0.12em;
        margin-bottom: 24px;
        line-height: 1.5;
    }

    .selection-frame {
        display: block;
        padding: 10px 6px;
        margin-bottom: 24px;
    }

    .figma-comp-badge {
        font-size: 10px;
        top: -22px;
    }

    .hero-title {
        font-size: clamp(34px, 11vw, 52px);
    }

    .hero-sub {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .hero-desc {
        font-size: 14px;
        margin-bottom: 36px;
    }

    .hero-desc br {
        display: none;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .btn-primary {
        padding: 14px 18px;
        font-size: 14px;
        line-height: 1.35;
    }

    .btn-ghost {
        padding: 12px 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .hero-badge {
        left: 20px;
        right: 20px;
        bottom: 16px;
        transform: none;
        width: auto;
        justify-content: center;
        white-space: normal;
        text-align: center;
        font-size: 10px;
        padding: 8px 12px;
        line-height: 1.4;
    }

    .hw-float,
    .hw-hero {
        font-size: 17px;
    }

    .section-inner,
    .nb-inner {
        padding: 64px 20px;
    }

    .section-label {
        margin-bottom: 18px;
    }

    .section-h {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 36px;
    }

    .section-h br {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-copy p {
        font-size: 15px;
    }

    .about-punch {
        font-size: 19px !important;
    }

    .about-stats {
        gap: 10px;
    }

    .stat-card {
        padding: 22px 18px;
    }

    .stat-n {
        font-size: 36px;
    }

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

    .svc-card,
    .svc-card:nth-child(odd) {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .svc-card:last-child {
        border-bottom: none;
    }

    .svc-card:hover {
        transform: none;
    }

    .svc-card {
        padding: 28px 22px;
    }

    .win-title-bar {
        font-size: 11px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .process-step {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 40px 0;
        min-height: 0;
    }

    .step-num {
        position: static;
        font-size: 48px;
        opacity: 0.35;
        margin-bottom: 4px;
    }

    .process-step.step-active .step-num {
        opacity: 1;
    }

    .step-body {
        opacity: 1;
        transform: none;
    }

    .step-body h3 {
        font-size: 20px;
    }

    .step-body p {
        font-size: 15px;
    }

    .clients-text {
        font-size: 15px;
        margin-bottom: 36px;
    }

    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .logo-cell {
        min-height: 88px;
        padding: 16px 12px;
    }

    .folders-wrap {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-top: 12px;
    }

    .brief-sub {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .brief-block {
        padding: 24px 18px;
    }

    .brief-q {
        font-size: 17px;
    }

    .brief-fields {
        grid-template-columns: 1fr;
    }

    .btn-submit {
        width: 100%;
        padding: 15px 24px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 56px 20px 48px;
    }

    .fc-brand {
        grid-column: auto;
    }

    .fc-desc,
    .fc-note {
        max-width: none;
    }

    .footer-bar {
        padding: 18px 20px 28px;
        flex-direction: column;
        gap: 12px;
    }

    .footer-bar-offer {
        max-width: none;
    }

    .ticker-wrap {
        height: 44px;
    }
}

@media (max-width: 420px) {
    .hero-title {
        font-size: 32px;
    }

    .btn-primary .cat {
        display: none;
    }

    .tile,
    .pill-btn span {
        padding-left: 14px;
        padding-right: 14px;
        font-size: 13px;
    }
}
