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

@media (min-width: 900px) {
    .site-header__cta {
        display: inline-flex;
    }
}

@media (max-width: 900px) {
    .site-header-shell,
    .site-header-shell.is-scrolled {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .site-header,
    .site-header.is-compact {
        border-radius: 1.25rem;
    }

    .site-header__nav {
        position: fixed;
        top: var(--header-total-height, 4.75rem);
        right: 0;
        width: min(100%, 280px);
        height: calc(100vh - var(--header-total-height, 4.75rem));
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.25rem;
        background: var(--bg-alt);
        border-left: 1px solid var(--border);
        /* The header's backdrop-filter makes it the containing block, so push past its side padding too. */
        transform: translateX(calc(100% + 2rem));
        transition: transform 0.25s ease;
        z-index: 95;
    }

    .site-header__nav.is-open {
        transform: translateX(0);
    }

    .site-header__link {
        padding: 0.75rem 1rem;
    }

    .menu-btn {
        display: inline-flex;
    }

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

    .hero__visual {
        order: -1;
        max-width: 280px;
        margin: 0 auto;
    }

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

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

@media (max-width: 640px) {
    .main {
        padding: 1.75rem 1rem 3rem;
    }

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

    .site-header {
        padding: 0 1rem;
    }

    .site-header__role {
        display: none;
    }

    .journey__list::before {
        left: 5px;
        top: 6px;
        bottom: 6px;
    }

    .journey-item {
        position: relative;
        padding-left: 1.75rem;
        flex-direction: column;
        gap: 0.35rem;
        margin-bottom: 2rem;
    }

    .journey-item__date {
        text-align: left;
        width: auto;
        min-width: 0;
        font-size: 0.8125rem;
        padding-top: 0;
    }

    .journey-item__content {
        padding-left: 0;
    }

    .journey-item__content::before {
        display: none;
    }

    .journey-item::before {
        content: '';
        position: absolute;
        left: 1px;
        top: 4px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--accent);
        border: 2px solid var(--bg);
        box-shadow: 0 0 0 3px var(--accent-light);
        z-index: 2;
    }

    .contact__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact__actions .btn {
        width: 100%;
    }
}
