/* ============================================================
   DOOKUN.COM
   Responsive layout only
   ============================================================ */


/* ------------------------------------------------------------
   TABLET
   ------------------------------------------------------------ */

@media (max-width: 1050px) {

    .primary-nav {
        display: none;

        position: absolute;

        top: 70px;
        left: 24px;
        right: 24px;

        flex-direction: column;
        align-items: stretch;

        gap: 18px;

        padding: 26px;

        background: var(--bg);

        border: 1px solid var(--line);

        box-shadow:
            0 20px 60px rgba(12, 30, 65, .12);
    }

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

    .mobile-menu-toggle {
        display: grid;

        gap: 5px;

        padding: 10px;
    }

    .mobile-menu-toggle span:not(.sr-only) {
        display: block;

        width: 24px;
        height: 2px;

        background: currentColor;
    }


    /* HERO */

    .hero-grid {
        grid-template-columns: 1fr;

        min-height: auto;
    }

    .hero-copy {
        padding: 72px 0 28px;
    }

    .hero-visual {
        min-height: 420px;
    }


    /* AIRPORT */

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

    .airport-copy {
        padding: 58px 42px;
    }

    .airport-image {
        min-height: 390px;
        height: 390px;
    }


    /* TIMELINE */

    .timeline-section {
        width: 100%;

        border-radius: 0;
    }

    .timeline-layout {
        width: min(calc(100% - 48px), var(--shell));

        grid-template-columns: 1fr;

        gap: 28px;
    }

    .timeline-intro h2 {
        max-width: 500px;
    }

    .timeline {
        overflow-x: auto;

        grid-template-columns:
            repeat(5, minmax(170px, 1fr));
    }


    /* AI */

    .ai-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }
}


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 700px) {

    .shell {
        width: min(calc(100% - 34px), var(--shell));
    }


    /* HERO */

    .hero-copy {
        padding-top: 52px;
    }

    .hero h1 {
        font-size: clamp(3rem, 14vw, 4.35rem);
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;

        gap: 24px;
    }

    .hero-visual {
        min-height: 355px;
    }

    .hero-visual img {
        max-height: 355px;
    }

    .handwritten-note {
        display: none;
    }


    /* AIRPORT */

    .airport-copy {
        padding: 54px 24px;
    }

    .airport-image {
        min-height: 285px;
        height: 285px;
    }


    /* SECTIONS */

    .section-space {
        padding-block: 62px;
    }

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


    /* WORK */

    .work-carousel {
        grid-auto-columns: 76vw;
    }


    /* AI */

    .technology-layers {
        min-height: 300px;

        grid-template-columns: minmax(0, 1fr) 110px;
    }

    .technology-stack {
        height: 280px;
    }

    .technology-labels {
        height: 280px;
    }

    .tech-layer {
        width: 90%;
    }

    .technology-label {
        height: 48px;
    }

    .label-line {
        width: 18px;
    }

    .technology-label strong {
        font-size: .56rem;
        letter-spacing: .08em;
    }


    /* FOOTER */

    .footer-inner {
        flex-direction: column;

        gap: 24px;
    }
}
