/* Complete previews and a spatial, character-based section navigator. */
.slide {
    background-size: 100% 100%;
    background-position: center;
    transform: none
}

.slide:not(:first-child) {
    transform: none
}

.stage {
    aspect-ratio: 1.6
}

.hero {
    padding-top: 155px;
    min-height: 1150px
}

.hero-copy {
    max-width: 850px
}

.showcase {
    width: min(870px, 72vw);
    margin: 40px auto 0
}

.window {
    box-shadow: 0 50px 110px #000a, 0 0 130px #168cff20
}

.browserbar {
    height: 34px
}

.browserbar>span {
    font-size: 9px
}

.ghost {
    top: 390px;
    left: 7%;
    font-size: 24vw;
    opacity: .8
}

.scroll-note {
    margin-top: 30px
}

.index {
    display: block;
    top: 105px;
    right: 22px;
    width: 250px;
    height: calc(100dvh - 145px);
    padding: 0;
    pointer-events: none;
    gap: 0
}

.index:before {
    left: auto;
    right: 0;
    background: #ffffff25
}

.index i {
    left: auto;
    right: -1px;
    top: 0;
    transition: none
}

.index a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    color: var(--paper);
    font-family: 'Manrope', Arial, sans-serif;
    pointer-events: none !important
}

.rail-letter {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
    transform-origin: 0 50%;
    will-change: transform;
    pointer-events: auto
}

.section {
    padding-right: max(260px, 17%)
}

.heading-line {
    display: block;
    will-change: transform
}

h2 {
    font-size: clamp(55px, 7.7vw, 114px);
    letter-spacing: -.07em
}

.section-top {
    margin-bottom: 55px
}

.work-intro {
    margin-bottom: 80px
}

.project-list {
    display: block
}

.project,
.project:nth-child(2) {
    position: sticky;
    top: 90px;
    min-height: calc(100dvh - 140px);
    padding: 55px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    background: var(--ink);
    border-top: 1px solid var(--line);
    transform-origin: 50% 0;
    align-content: center
}

.project:nth-child(2) .project-view {
    order: 0
}

.project-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: 35px
}

.project-info>span:first-child {
    grid-column: 1/-1
}

.project-info h3 {
    font-size: 39px;
    line-height: 1.1;
    margin: 16px 0
}

.project-info p {
    grid-column: 2;
    grid-row: 2;
    max-width: 340px;
    margin: 0;
    font-size: 15px
}

.project-arrow {
    display: none
}

.project-view {
    width: 100%;
    display: block;
    position: relative;
    padding: 0;
    border: 0;
    background: #111;
    overflow: hidden;
    cursor: zoom-in
}

.project-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1.6;
    object-fit: contain;
    border-radius: 0;
    background: none
}

.project-view>span {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--paper);
    color: var(--ink);
    padding: 12px 18px;
    border-radius: 30px;
    font-size: 11px;
    opacity: 0;
    transform: translateY(15px);
    transition: .3s
}

.project-view:hover>span,
.project-view:focus-visible>span {
    opacity: 1;
    transform: none
}

.services {
    background: #10151b
}

.services h2 em {
    color: #77b9ff
}

.service-list details:hover summary h3 {
    color: var(--blue)
}

.service-list summary h3 {
    transition: color .25s;
    font-size: clamp(24px, 3vw, 43px)
}

.service-list details {
    padding: 35px 0
}

.studio {
    background: radial-gradient(ellipse at 0 80%, #07315855, transparent 60%)
}

.studio-bottom>p {
    font-size: 26px
}

.word-marquee {
    font-size: 120px;
    width: 250%;
    margin-top: 110px
}

.word-marquee span {
    animation: none
}

.contact h2 {
    font-size: clamp(60px, 9vw, 145px)
}

.contact-button {
    padding: 22px 32px;
    font-size: 17px
}

.contact {
    min-height: 80dvh
}

#project-dialog {
    padding: 55px 16px 16px;
    background: #111820;
    border: 1px solid #ffffff30;
    width: min(1150px, 92vw);
    max-height: 92dvh;
    color: var(--paper)
}

#project-dialog::backdrop {
    background: #000d;
    backdrop-filter: blur(12px)
}

#project-dialog img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80dvh;
    object-fit: contain
}

#project-dialog>button {
    position: absolute;
    right: 20px;
    top: 16px;
    background: none;
    border: 0;
    font-size: 13px
}

header nav {
    margin-right: 80px
}

footer {
    padding-right: 260px
}

@media(max-width:1100px) {
    .index {
        width: 200px;
        right: 15px
    }

    .hero-copy {
        max-width: 75%
    }

    .hero {
        min-height: 1050px
    }

    h1 {
        font-size: 10vw
    }

    .showcase {
        width: 76%;
        margin-left: 0
    }

    .section {
        padding-right: 205px
    }

    .section-top>span {
        display: none
    }

    .project-info {
        grid-template-columns: 1fr
    }

    .project-info p {
        grid-column: 1;
        grid-row: 3;
        max-width: none
    }

    .project-info h3 {
        font-size: 32px
    }

    .studio-bottom {
        grid-template-columns: 1fr;
        gap: 35px
    }

    .studio-bottom>p {
        font-size: 22px
    }
}

@media(max-width:900px) {
    .index {
        display: block;
        width: 180px
    }

    .hero {
        min-height: 0
    }

    .showcase {
        margin: 40px 0 0;
        width: 80%
    }

    .section {
        padding: 80px 190px 80px 6%
    }

    .project,
    .project:nth-child(2) {
        min-height: 65dvh;
        padding: 35px 0
    }

    .project-info h3 {
        font-size: 29px
    }

    .work-intro>span {
        font-size: 9px
    }

    h2 {
        font-size: 7vw
    }

    .section-top .eyebrow {
        font-size: 9px
    }

    .services summary {
        gap: 15px
    }

    .services summary h3 {
        font-size: 23px
    }

    .word-marquee {
        font-size: 80px
    }

    footer {
        padding-right: 190px
    }

    .desktop {
        display: none
    }
}

@media(max-width:679px) {
    .index {
        width: 108px;
        right: 8px;
        top: 100px;
        height: calc(100dvh - 145px)
    }

    .rail-letter {
        font-size: 13px
    }

    .hero {
        padding-top: 140px;
        padding-right: 32px
    }

    .hero-copy {
        max-width: 90%
    }

    h1 {
        font-size: 18vw
    }

    .lede {
        font-size: 15px;
        max-width: 260px
    }

    .showcase {
        width: calc(100% - 25px);
        margin-top: 45px
    }

    .browserbar>span {
        font-size: 6px
    }

    .stage {
        aspect-ratio: 1.6
    }

    .section {
        padding: 70px 45px 70px 6%
    }

    h2 {
        font-size: 13vw
    }

    .project,
    .project:nth-child(2) {
        position: relative;
        top: auto;
        min-height: 0;
        padding: 35px 0;
        filter: none !important;
        transform: none !important
    }

    .project-info h3 {
        font-size: 28px
    }

    .project-info p {
        font-size: 14px
    }

    .project-view>span {
        display: none
    }

    .services summary h3 {
        font-size: 21px
    }

    .services summary {
        gap: 12px
    }

    .services details p {
        margin-left: 0
    }

    .section-top .eyebrow {
        max-width: 220px
    }

    .studio-bottom>p {
        font-size: 19px
    }

    .contact h2 {
        font-size: 14vw
    }

    .contact>p:not(.eyebrow) {
        font-size: 16px;
        max-width: 250px
    }

    .contact-button {
        font-size: 13px;
        gap: 25px
    }

    .word-marquee {
        font-size: 70px;
        margin-bottom: 0
    }

    footer {
        padding: 35px 45px 35px 6%
    }

    .scroll-note {
        justify-content: flex-start
    }

    .ghost {
        top: 380px
    }

    .work-intro {
        display: block;
        margin-bottom: 40px
    }

    .work-intro p {
        font-size: 15px
    }

    .work-intro>span {
        display: block
    }

    .project-list {
        isolation: isolate
    }
}

@media(max-width:679px) {
    .hero-copy {
        max-width: 100%
    }

    h1 {
        font-size: 16.5vw
    }

    h1 em {
        white-space: nowrap
    }
}

@media(prefers-reduced-motion:reduce) {
    .rail-letter {
        will-change: auto
    }
}
