/* Breakpoints: 360 / 390 / 430 / tablet / laptop / 1440 / 1920 */

@media (max-width: 1280px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 1100px) {
    .nav {
        display: none;
    }

    .header .btn--desktop {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .brand,
    .about-split,
    .contact-grid,
    .visit__layout {
        grid-template-columns: 1fr;
    }

    .hours-card {
        justify-self: stretch;
        width: 100%;
    }

    .workshop.visit {
        min-height: auto;
    }

    .visit__veil {
        background:
            linear-gradient(180deg, rgba(5, 5, 5, 0.5) 0%, rgba(5, 5, 5, 0.28) 28%, rgba(5, 5, 5, 0.9) 62%, #050505 100%);
    }

    .brand__media,
    .brand__media img {
        min-height: 320px;
    }

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

    .feature,
    .process__item {
        border-bottom: 1px solid var(--border);
    }

    .feature:nth-child(2n),
    .process__item:nth-child(2n) {
        border-right: 0;
    }

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

    .masonry__item--wide {
        grid-column: span 12;
    }

    .masonry__item,
    .masonry__item--tall,
    .masonry__item--square {
        grid-column: span 6;
    }
}

@media (max-width: 860px) {
    :root {
        --nav-h: 72px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        min-height: 92vh;
        justify-content: flex-end;
    }

    .hero__title {
        font-size: clamp(2.35rem, 12vw, 3.6rem);
        max-width: 12ch;
    }

    .hero__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }

    .hero__actions {
        width: 100%;
    }

    .hero__actions .btn {
        flex: 1 1 100%;
    }

    .features,
    .process,
    .services-grid,
    .form__row {
        grid-template-columns: 1fr;
    }

    .feature,
    .process__item {
        border-right: 0;
    }

    .mobile-cta {
        display: flex;
    }

    body.has-mobile-cta .back-top {
        bottom: 6.6rem;
    }

    .footer__brand {
        font-size: clamp(2.2rem, 14vw, 4rem);
    }

    .footer__bottom {
        flex-direction: column;
    }

    .masonry {
        grid-auto-rows: 12px;
    }

    .masonry__item,
    .masonry__item--wide,
    .masonry__item--tall,
    .masonry__item--square {
        grid-column: span 12;
        grid-row: span 16;
    }

    .masonry__item--tall {
        grid-row: span 22;
    }

    .lightbox {
        padding: 4.5rem 0.8rem 1.2rem;
    }

    .lightbox__nav--prev { left: 0.5rem; }
    .lightbox__nav--next { right: 0.5rem; }

    .cursor {
        display: none !important;
    }
}

@media (max-width: 430px) {
    .btn {
        letter-spacing: 0.12em;
        padding: 0 1rem;
    }

    .service-card {
        min-height: 280px;
    }

    .workshop {
        min-height: 58vh;
    }

    .workshop.visit {
        min-height: auto;
    }

    .map-frame iframe {
        height: 320px;
    }

    .page-hero {
        padding-top: calc(var(--nav-h) + 3rem);
    }
}

@media (max-width: 360px) {
    .hero__title {
        font-size: 2.15rem;
    }

    .section__title,
    .contact-aside h1,
    .page-hero h1 {
        font-size: 2rem;
    }
}

@media (min-width: 1440px) {
    .hero__title {
        font-size: clamp(4.5rem, 7vw, 8rem);
    }
}

@media (min-width: 1920px) {
    :root {
        --max: 1680px;
    }
}

@media (hover: none) {
    .cursor {
        display: none !important;
    }

    body.has-custom-cursor,
    body.has-custom-cursor a,
    body.has-custom-cursor button {
        cursor: auto;
    }
}
