/* Load after existing style.css. Scoped to the new page; existing menu is preserved. */
body.av-lab {
    margin: 0;
    background: #f8f9fa;
    color: #202124;
    font-family: "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased
}

.av-lab .lab-content {
    --ink: #202124;
    --muted: #62666c;
    --line: #dadce0;
    --accent: #5941bb;
    box-sizing: border-box;
    max-width: 1440px;
    margin: auto;
    padding: 0 6%;
    height: auto;
    background: #f8f9fa
}

.lab-content * {
    box-sizing: border-box
}

.lab-content [hidden] {
    display: none !important
}

.lab-content a {
    color: inherit
}

.lab-content button,
.lab-content input,
.lab-content select {
    font: inherit
}

.lab-content :focus-visible {
    outline: 3px solid #5941bb;
    outline-offset: 4px
}

.lab-hero {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 88px 0 76px;
    border-bottom: 1px solid var(--line)
}

.lab-eyebrow {
    font-weight: 600;
    letter-spacing: .18em;
    color: var(--muted);
    margin: 0 0 28px
}

.lab-content h1 {
    font-size: clamp(48px, 6.4vw, 88px);
    line-height: 1.01;
    letter-spacing: -.065em;
    text-align: left;
    font-weight: 500;
    margin: 0 0 28px
}

.lab-content h1 span {
    color: #71757b
}

.lab-intro {
    max-width: 420px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 30px
}

.lab-explore {
    display: inline-flex;
    gap: 36px;
    align-items: center;
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    padding: 0 0 10px
}

.lab-art {
    position: relative;
    aspect-ratio: 1.15;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, #fff 0, transparent 70%)
}

.lab-orbit {
    position: absolute;
    width: 74%;
    height: 74%;
    border: 1px solid #c7c9ce;
    border-radius: 50%;
    transform: rotate(-25deg) scaleY(.62)
}

.orbit-b {
    transform: rotate(35deg) scaleY(.62);
    width: 84%;
    height: 84%
}

.orbit-c {
    transform: rotate(95deg) scaleY(.62);
    width: 84%;
    height: 84%
}

.lab-orbit:after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    background: #6451b7;
    border-radius: 50%;
    left: 16%;
    top: 10%;
    box-shadow: 0 0 0 7px #6451b708
}

.orbit-b:after {
    background: #202124;
    left: 85%;
    top: 74%
}

.orbit-c:after {
    background: #aaa;
    left: 40%;
    top: 0
}

.lab-core {
    font-size: 48px;
    letter-spacing: -.06em;
    font-weight: 500
}

.lab-core span {
    font-size: 20px;
    color: #8a8d92;
    font-weight: 300
}

.lab-art-note {
    position: absolute;
    bottom: 10px;
    letter-spacing: .23em;
    color: #777b82
}

.lab-section {
    padding: 40px 0 12px;
    scroll-margin-top: 25px
}

.lab-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px
}

.lab-section-heading h2 {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -.04em;
    margin: 0;
    text-align: left
}

.lab-section-heading>span,
.lab-section-heading output {
    color: var(--muted)
}

.lab-dot {
    color: var(--accent)
}

.lab-controls {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 18px 0 20px;
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px
}

.lab-filters {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center
}

.lab-filters button {
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 9px 12px;
    background: none;
    color: var(--muted);
    cursor: pointer;
}

.lab-filters button[aria-pressed=true] {
    color: #fff;
    background: var(--ink)
}

.lab-filters button:hover {
    border-color: #b3b5ba
}

.lab-inputs {
    display: flex;
    gap: 12px;
    align-items: center
}

.lab-inputs label {
    display: grid;
    gap: 6px;
    color: var(--muted)
}

.lab-inputs input,
.lab-inputs select {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    padding: 9px 10px;
    color: var(--ink);
    max-width: 190px
}

.lab-content .projects,
#lab-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%
}

.lab-content .project {
    position: relative;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0;
    margin: 0;
    max-height: none;
    background: #fff;
    overflow: hidden;
    transition: transform .2s, border-color .2s, box-shadow .2s
}

.lab-content .project-overlay {
    height: 100%;
    overflow: visible
}

.lab-content .project a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    max-height: none;
    overflow: visible;
    color: var(--ink)
}

.lab-content .project h2 {
    order: 2;
    font-size: 1.5rem;
    text-align: left;
    font-weight: 500;
    margin: 0;
    padding: 20px 22px 0
}

.lab-content .project a img {
    order: 1;
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: top;
    background: #f0f1f3;
    border-bottom: 1px solid #eee;
    padding: 0;
    transition: none;
    transform: none
}

.lab-content .project .descr {
    order: 3;
    line-height: 1.65;
    color: var(--muted);
    padding: 11px 22px 20px;
    margin: 0;
    flex: 1
}

.lab-content .project .lab-meta {
    order: 4;
    padding: 13px 22px;
    border-top: 1px solid #eee;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 12px
}

.lab-content .project:hover {
    transform: translateY(-3px);
    border-color: #b3b5bd;
    box-shadow: 0 8px 24px #2021240a
}

.lab-content .project a:hover img {
    transform: none
}

.lab-content .project a:focus-visible {
    outline-offset: -4px
}

#lab-featured-grid {
    grid-template-columns: 1.3fr 1fr 1fr
}

#lab-featured-grid .project a img {
    height: 210px
}

#lab-featured-grid .project .descr {
    display: none
}

#lab-featured-grid .project h2 {
    padding-bottom: 20px
}

.lab-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    margin-top: 64px;
    padding: 28px 0 40px;
    color: var(--muted)
}

.lab-footer a {
    text-decoration: none
}

#lab-empty {
    padding: 35px 0;
    color: var(--muted)
}

/* Standalone preview menu. */
body>#nav_menu nav {
    padding: 26px 6%;
    letter-spacing: .08em
}

body>#nav_menu nav>a {
    float: right;
    color: #62666c;
    text-decoration: none
}

@media(min-width:1500px) {
    .lab-content .project a img {
        height: 215px
    }
}

@media(max-width:950px) {
    .lab-hero {
        gap: 15px;
        padding: 60px 0
    }

    .lab-content .projects {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    #lab-featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    #lab-featured-grid .project a img {
        height: 140px
    }

    .lab-inputs {
        width: 100%
    }
}

@media(max-width:640px) {
    .av-lab .lab-content {
        padding: 0 6%
    }

    .lab-hero {
        grid-template-columns: 1fr;
        padding: 50px 0 38px;
        gap: 20px
    }

    .lab-art {
        display: none
    }

    .lab-content h1 {
        font-size: 54px
    }

    .lab-intro {
        font-size: 15px
    }

    .lab-content .projects,
    #lab-featured-grid {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .lab-content .project a img,
    #lab-featured-grid .project a img {
        height: auto;
        aspect-ratio: 1.7;
        object-fit: cover
    }

    .lab-section-heading h2 {
        font-size: 25px
    }

    .lab-filters {
        gap: 2px
    }

    .lab-filters button {
        padding: 9px 10px
    }

    .lab-inputs {
        gap: 10px
    }

    .lab-inputs label {
        flex: 1;
        min-width: 0
    }

    .lab-inputs input,
    .lab-inputs select {
        max-width: 100%;
        width: 100%
    }

    .lab-footer {
        margin-top: 42px
    }

    .lab-footer span:nth-child(2) {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {
    .lab-content * {
        transition: none !important;
        scroll-behavior: auto !important
    }
}