/* Floating portfolio scene and persistent official brand bar. */
body {
    overflow-x: clip
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    transform: translateY(-200%);
    background: var(--paper);
    color: var(--ink);
    padding: 12px 18px;
    z-index: 60
}

.skip-link:focus {
    transform: none
}

header.floating-header {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: min(680px, calc(100% - 40px));
    height: 70px;
    padding: 12px 16px 12px 22px;
    border: 1px solid #ffffff26;
    border-radius: 14px;
    background: #101419ec;
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 35px #0005;
    gap: 26px;
    z-index: 40
}

header.floating-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 22px;
    right: 22px;
    height: 1px;
    background: linear-gradient(90deg, #22d3ee, #a78bfa, #fb7185, #fbbf24, #4ade80);
    opacity: .7
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0
}

.brand-logo {
    display: block;
    width: 166px;
    height: auto
}

header.floating-header nav {
    display: flex;
    margin: 0;
    gap: 20px;
    font-size: 10px;
    letter-spacing: .08em
}

header.floating-header .pill {
    font-size: 10px;
    letter-spacing: .04em;
    padding: 11px 14px;
    gap: 15px;
    white-space: nowrap
}

.hero {
    height: 235svh;
    min-height: 0;
    padding: 0;
    overflow: visible;
    border: 0
}

.hero-scene {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 660px;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(ellipse at 50% 64%, #10304a80, transparent 63%), var(--ink)
}

#flow {
    opacity: .26;
    z-index: -1
}

.hero .ghost {
    top: 55%;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 28vw;
    line-height: 1;
    opacity: .55;
    letter-spacing: -.08em;
    -webkit-text-stroke: 1px #83bfff23;
    z-index: -1
}

.hero-copy {
    position: absolute;
    top: 18%;
    left: 10%;
    right: 10%;
    max-width: none;
    text-align: center;
    z-index: 1
}

.hero-copy .eyebrow {
    font-size: 10px;
    letter-spacing: .22em;
    margin-bottom: 20px;
    color: #c4c9ce
}

.hero-copy h1 {
    font-size: clamp(68px, 8.4vw, 140px);
    line-height: .96;
    margin-bottom: 20px
}

.hero-copy .lede {
    font-size: 17px;
    margin-bottom: 16px
}

.hero-copy .explore {
    margin-top: 0;
    font-size: 11px;
    gap: 10px
}

.hero-copy .explore>span {
    width: 30px;
    height: 30px;
    font-size: 16px
}

.floating-work {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3
}

.float-card {
    position: absolute;
    will-change: transform;
    pointer-events: auto
}

.float-daze {
    left: -3%;
    top: 56%;
    width: min(39vw, 620px);
    transform: rotate(-7deg);
    z-index: 2
}

.float-luxus {
    left: 34%;
    top: 67%;
    width: min(34vw, 550px);
    transform: rotate(5deg);
    z-index: 3
}

.float-fitbox {
    left: 67%;
    top: 52%;
    width: min(31vw, 510px);
    transform: rotate(8deg);
    z-index: 1
}

.card-float {
    animation: gentle-float 6s ease-in-out infinite alternate
}

.float-luxus .card-float {
    animation-duration: 7.5s;
    animation-delay: -3s
}

.float-fitbox .card-float {
    animation-duration: 6.8s;
    animation-delay: -1.6s
}

@keyframes gentle-float {
    from {
        transform: translateY(-7px)
    }

    to {
        transform: translateY(7px)
    }
}

.hero-project {
    overflow: hidden;
    background: #151b21;
    border: 1px solid #ffffff3a;
    border-radius: 10px;
    box-shadow: 0 28px 75px #0008, 0 0 1px #ffffff70;
    text-align: left;
    transition: box-shadow .25s
}

.hero-project:hover,
.hero-project:focus-within {
    box-shadow: 0 30px 75px #000b, 0 0 0 2px #168cff
}

.hero-project .browserbar {
    height: 28px;
    padding: 0 12px;
    border-bottom: 1px solid #ffffff0d;
    background: #1c242b
}

.hero-project .browserbar b {
    width: 5px;
    height: 5px
}

.hero-project .browserbar>span {
    font-size: 8px;
    letter-spacing: .03em;
    color: #c2c9cf
}

.hero-project .browserbar em {
    font-family: monospace;
    font-size: 8px;
    color: #8f9ba5
}

.site-snapshot {
    position: relative;
    width: 100%;
    aspect-ratio: 1.6;
    overflow: hidden;
    background: #111820
}

.site-snapshot>img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top
}

.site-snapshot>iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 1280px;
    height: 800px;
    border: 0;
    transform: scale(var(--snapshot-scale, .35));
    transform-origin: top left;
    pointer-events: none;
    user-select: none
}

.card-caption {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    background: #131a20;
    color: var(--paper)
}

.card-caption strong {
    font-size: 12px;
    font-weight: 500
}

.card-caption>span {
    font-size: 9px;
    color: #a6b0b8;
    margin-left: auto
}

.card-caption i {
    font-style: normal;
    font-size: 16px;
    color: #6eb7ff
}

.project-launch {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: none;
    border: 0;
    cursor: zoom-in;
    z-index: 1
}

.project-launch:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: -3px
}

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

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

.hero-project .project-launch {
    cursor: pointer
}

.hero-project .project-launch>span {
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    padding: 0
}

.hero-foot {
    position: absolute;
    bottom: 25px;
    left: 4.5%;
    right: 4.5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
    font: 9px monospace;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #b0bac3;
    pointer-events: none
}

.hero-foot button {
    pointer-events: auto;
    background: #101820e8;
    border: 1px solid #ffffff35;
    border-radius: 30px;
    padding: 10px 15px;
    font: 9px monospace;
    letter-spacing: .05em;
    color: #c3cbd2
}

.hero-foot button>span {
    margin-left: 8px
}

.hero-foot>span>span {
    margin-left: 12px
}

.mobile-direction {
    display: none
}

.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffffff12;
    z-index: 5
}

.hero-progress>span {
    display: block;
    width: 100%;
    height: 100%;
    background: #168cff;
    transform: scaleX(0);
    transform-origin: 0 50%
}

.motion-paused .card-float {
    animation-play-state: paused
}

.index {
    transition: opacity .25s
}

.project-view .project-media {
    border-radius: 3px
}

#project-dialog {
    padding: 0;
    border-radius: 12px;
    background: #111820;
    width: min(1200px, 94vw);
    max-height: 90svh;
    overflow: auto
}

.dialog-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 24px
}

.dialog-top h3 {
    font-size: 19px;
    margin: 0;
    letter-spacing: -.02em
}

.dialog-top button {
    position: static;
    background: none;
    border: 0;
    font-size: 12px
}

.dialog-media {
    background: #fff;
    line-height: 0
}

#project-dialog .dialog-media>img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain
}

.dialog-media>iframe {
    display: block;
    width: 100%;
    height: min(680px, 65svh);
    border: 0;
    background: white
}

#dialog-live {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    font-size: 13px;
    color: #91c7ff
}

@media(min-width:760px) and (max-height:760px) {
    .hero-copy {
        top: 17%
    }

    .hero-copy h1 {
        font-size: clamp(68px, 7vw, 100px)
    }

    .hero-copy .lede {
        font-size: 15px
    }

    .hero-copy .eyebrow {
        margin-bottom: 15px
    }

    .float-daze {
        top: 60%
    }

    .float-luxus {
        top: 72%
    }

    .float-fitbox {
        top: 48%
    }
}

@media(max-width:1050px) {
    header.floating-header {
        width: min(600px, calc(100% - 36px));
        gap: 18px
    }

    header.floating-header nav {
        gap: 16px
    }

    .brand-logo {
        width: 150px
    }

    .float-daze {
        width: 43vw
    }

    .float-luxus {
        left: 31%;
        width: 39vw
    }

    .float-fitbox {
        left: 65%;
        width: 37vw
    }

    .hero-copy {
        left: 7%;
        right: 7%
    }
}

@media(max-width:759px) {
    header.floating-header {
        top: 14px;
        width: calc(100% - 28px);
        height: 62px;
        padding: 12px 14px;
        gap: 15px;
        border-radius: 12px
    }

    .brand-logo {
        width: 136px
    }

    header.floating-header nav {
        margin-left: auto
    }

    header.floating-header nav a:not(:first-child) {
        display: none
    }

    header.floating-header .pill {
        font-size: 9px;
        padding: 10px 12px;
        gap: 8px
    }

    .hero {
        height: auto
    }

    .hero-scene {
        position: relative;
        height: auto;
        min-height: 100svh;
        padding: 130px 24px 70px
    }

    .hero-copy {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin: auto;
        max-width: 540px
    }

    .hero-copy h1 {
        font-size: clamp(62px, 13vw, 90px)
    }

    .hero-copy .eyebrow {
        font-size: 8px;
        letter-spacing: .13em;
        line-height: 1.8
    }

    .hero-copy .lede {
        font-size: 15px;
        max-width: 260px;
        margin: 0 auto 22px
    }

    .floating-work {
        position: relative;
        inset: auto;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 22px;
        margin: 38px -24px 0;
        padding: 15px 7% 30px;
        pointer-events: auto;
        scrollbar-width: thin;
        scrollbar-color: #326994 transparent
    }

    .float-card {
        position: relative;
        left: auto;
        top: auto;
        width: auto;
        flex: 0 0 88%;
        transform: none;
        scroll-snap-align: center;
        will-change: auto
    }

    .card-float {
        animation-duration: 5s
    }

    .hero-project .browserbar {
        height: 25px
    }

    .card-caption {
        padding: 12px
    }

    .card-caption strong {
        font-size: 11px
    }

    .card-caption>span {
        font-size: 8px
    }

    .hero .ghost {
        top: 53%;
        font-size: 30vw
    }

    .hero-foot {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 24px;
        font-size: 8px;
        letter-spacing: .07em;
        gap: 12px;
        flex-wrap: wrap
    }

    .desktop-direction,
    .project-count {
        display: none
    }

    .mobile-direction {
        display: inline
    }

    .hero-foot button {
        padding: 9px 12px;
        font-size: 8px
    }

    .hero-progress {
        display: none
    }

    .index {
        display: none
    }

    footer {
        padding-right: 6%
    }

    .section {
        padding-right: 6%
    }

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

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

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

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

    .contact h2 {
        font-size: clamp(52px, 11vw, 85px)
    }
}

@media(prefers-reduced-motion:reduce) {
    .hero {
        height: auto
    }

    .hero-scene {
        position: relative
    }

    .card-float {
        animation: none
    }

    .float-card {
        will-change: auto
    }

    .hero-progress,
    #motion-toggle {
        display: none
    }

    .index {
        transition: none
    }

    .hero-foot .desktop-direction {
        font-size: 0
    }

    .hero-foot .desktop-direction::before {
        content: 'Explore three recent projects';
        font-size: 9px
    }

    .hero-foot .desktop-direction>span {
        display: none
    }
}

@media(max-width:380px) {
    header.floating-header .brand-logo {
        width: 112px
    }

    header.floating-header {
        gap: 12px
    }

    header.floating-header .pill {
        padding: 9px 10px
    }
}
