@font-face {
    font-family: "Geist";
    src: url("/static/fonts/Geist.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Geist Mono";
    src: url("/static/fonts/Geist-Mono.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: block;
}

:root {
    --bg: #f4f1ea;
    --ink: #111111;
    --muted: rgba(17, 17, 17, 0.33);
    --about-blend: #b1b1b1;
    --loading-bg: #111111;
    --loading-ink: #f5f3ef;
    --loading-muted-logo: #232323;
    --frame-x: 24px;
    --frame-top: 22px;
    --frame-bottom: 20px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Geist", Arial, sans-serif;
    overflow: hidden;
}

@media (min-width: 901px) {
    body,
    a,
    button,
    video {
        cursor: none;
    }
}

a,
button {
    color: inherit;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: var(--loading-bg);
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loading-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-logo {
    position: fixed;
    top: var(--frame-top);
    left: var(--frame-x);
    width: min(60.5vw, 830px);
    height: auto;
    z-index: 1;
    pointer-events: none;
}

.loading-band {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 34px;
    color: var(--loading-ink);
    font-family: "Geist Mono", "Courier New", monospace;
    font-size: clamp(12px, 0.95vw, 16px);
    letter-spacing: 0;
}

.loading-name,
.loading-status {
    margin: 0;
    line-height: 1;
}

.loading-name {
    justify-self: start;
}

.loading-status {
    justify-self: end;
}

.loading-gif {
    width: min(23vw, 420px);
    height: auto;
    justify-self: center;
}

.viewport {
    position: relative;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

.brand-logo {
    position: fixed;
    top: var(--frame-top);
    left: var(--frame-x);
    width: min(60.5vw, 830px);
    height: auto;
    z-index: 0;
    pointer-events: none;
}

.topbar {
    position: fixed;
    top: calc(var(--frame-top) + 6px);
    right: var(--frame-x);
    z-index: 2;
}

.menu {
    display: flex;
    font-family: "Geist Mono", "Courier New", monospace;
    font-size: clamp(10px, 0.9vw, 15px);
    letter-spacing: 0;
    gap: clamp(40px, 4.4vw, 70px);
    align-items: center;
}

.menu a,
.menu-link {
    text-decoration: none;
    line-height: 1;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
    background: transparent;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.menu a:hover,
.menu-link:hover {
    border-bottom-color: currentColor;
}

.hero {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.video-frame {
    position: relative;
    width: min(77.17vw, calc((100vh - 108px) * 1.545));
    height: min(77.43vh, calc((100vw - 160px) / 1.545));
    aspect-ratio: 1700 / 956;
    margin-top: 12px;
    background: transparent;
    overflow: hidden;
    box-shadow: none;
    filter: none;
    isolation: isolate;
    -webkit-mask-image: none;
    mask-image: none;
    transform: scale(0.18);
    transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-ready .video-frame {
    transform: scale(1);
}

body.page-ready .video-frame:hover {
    transform: scale(1.055);
}

.video-frame::before,
.video-frame::after,
.about-layer::before,
.about-layer::after {
    content: none !important;
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    display: block;
    background: transparent;
    transition: filter 0.45s ease, transform 0.45s ease;
}

.about-open .video-frame video {
    filter: blur(28px);
    transform: scale(1.12);
}

.sound-toggle {
    position: absolute;
    left: 1.9%;
    bottom: 2.5%;
    border: 0;
    padding: 0;
    background: transparent;
    font-family: "Geist Mono", "Courier New", monospace;
    font-size: clamp(9px, 0.8vw, 12px);
    letter-spacing: 0;
    line-height: 1;
    cursor: pointer;
    color: #f4f1ea;
}

.sound-toggle.is-muted {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.about-open .sound-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-footer {
    position: fixed;
    left: var(--frame-x);
    bottom: var(--frame-bottom);
    z-index: 2;
    font-family: "Geist Mono", "Courier New", monospace;
    font-size: clamp(8px, 0.68vw, 11px);
    letter-spacing: 0;
    line-height: 1;
    color: var(--muted);
}

.site-footer p {
    margin: 0;
}

.about-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.35s ease;
    padding: 22px 24px 18px 22px;
    background: rgba(0, 0, 0, 0.001);
    opacity: 1;
    filter: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    clip-path: inset(0);
    contain: paint;
}

.about-layer.is-visible {
    visibility: visible;
    pointer-events: auto;
}

.about-copy {
    max-width: min(84%, 980px);
    color: var(--about-blend);
    font-family: "Geist", Arial, sans-serif;
    font-size: clamp(28px, 3.2vw, 39px);
    font-weight: 500;
    line-height: 0.93;
    letter-spacing: -0.05em;
}

.about-copy p {
    margin: 0;
}

.about-copy p + p {
    margin-top: 36px;
}

.about-copy span,
.about-copy a {
    color: var(--about-blend);
}

.about-copy,
.about-copy span,
.about-copy a,
.about-linkedin,
.about-close,
.about-close-icon,
.about-corner-logo,
.about-corner-logo * {
    color: var(--about-blend);
    mix-blend-mode: difference;
}

.about-copy a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.about-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--about-blend);
}

.about-close-icon {
    width: 100%;
    height: 100%;
    display: block;
    color: inherit;
}

.about-linkedin {
    align-self: flex-start;
    color: var(--about-blend);
    font-family: "Geist Mono", "Courier New", monospace;
    font-size: clamp(12px, 0.95vw, 15px);
    line-height: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.about-corner-logo {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: min(4.4vw, 56px);
    aspect-ratio: 1;
    color: var(--about-blend);
    overflow: visible;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    border-radius: 999px;
    background: #ffffff;
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
}

body.cursor-active .custom-cursor {
    opacity: 1;
}

.mobile-shell {
    display: none;
}

@media (max-width: 900px) {
    :root {
        --mobile-logo-width: min(252px, 72vw);
    }

    body {
        overflow: hidden;
    }

    html,
    body {
        height: 100dvh;
        min-height: 100svh;
    }

    .viewport,
    .custom-cursor {
        display: none;
    }

    .mobile-shell {
        display: block;
        position: relative;
        width: 100vw;
        height: 100dvh;
        min-height: 100svh;
        background: var(--bg);
        color: var(--ink);
        overflow: hidden;
    }

    .mobile-overlay-root {
        position: absolute;
        inset: 0;
        z-index: 20;
        pointer-events: none;
    }

    .mobile-overlay-root > * {
        pointer-events: auto;
    }

    .loading-overlay {
        background: #111111;
        height: 100dvh;
        min-height: 100svh;
    }

    .loading-logo {
        top: 24px;
        left: 22px;
        width: var(--mobile-logo-width);
        max-width: none;
    }

    .loading-band {
        display: block;
        padding: 0;
    }

    .loading-name {
        position: absolute;
        left: 22px;
        bottom: 46px;
        font-size: 0.95rem;
        line-height: 0.92;
        transform: none;
    }

    .loading-status {
        position: absolute;
        left: 22px;
        bottom: 20px;
        font-size: 0.95rem;
        line-height: 0.92;
        transform: none;
    }

    .loading-gif {
        position: absolute;
        left: 50%;
        top: 50%;
        width: min(270px, 64vw);
        margin-top: 0;
        transform: translate(-50%, -50%);
    }

    .mobile-home,
    .mobile-menu-screen,
    .mobile-about-screen {
        position: absolute;
        inset: 0;
        height: 100dvh;
        min-height: 100svh;
    }

    .mobile-home {
        background: var(--bg);
        height: 100dvh;
        min-height: 100svh;
        padding: 20px 0 18px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 28px;
    }

    .mobile-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 18px;
        padding: 0 22px;
    }

    .mobile-logo {
        width: var(--mobile-logo-width);
        max-width: none;
        height: auto;
    }

    .mobile-menu-trigger {
        margin-top: 3px;
        border: 0;
        padding: 0;
        background: transparent;
        font-family: "Geist Mono", "Courier New", monospace;
        font-size: 0.95rem;
        line-height: 1;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .mobile-video-frame {
        position: relative;
        margin: 22px auto 0;
        width: 100%;
        aspect-ratio: 1080 / 1440;
        flex: none;
        min-height: auto;
        background: transparent;
        overflow: hidden;
    }

    .mobile-video-frame video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none;
        display: block;
        background: transparent;
    }

    .mobile-video-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-top: 12px;
        padding: 0 22px;
        color: #111111;
        font-family: "Geist Mono", "Courier New", monospace;
        font-size: clamp(0.82rem, 2.9vw, 1rem);
        line-height: 1;
    }

    .mobile-sound-toggle {
        position: static;
        border: 0;
        padding: 0;
        background: transparent;
        color: #111111;
        font-family: inherit;
        font-size: inherit;
        line-height: 1;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        transform: none;
    }

    .mobile-sound-toggle.is-muted {
        text-decoration: line-through;
    }

    .mobile-video-mark {
        position: absolute;
        right: 12px;
        bottom: 12px;
        width: 34px;
        height: auto;
        color: rgba(17, 17, 17, 0.7);
    }

    .mobile-time-counter {
        margin: 0;
        color: #111111;
        font: inherit;
    }

    .mobile-menu-screen,
    .mobile-about-screen {
        background: #111111;
        color: #f3f1ec;
        position: absolute;
        inset: 0;
    }

    .mobile-menu-screen {
        padding: 26px 22px 24px;
    }

    .mobile-close {
        position: absolute;
        top: 22px;
        right: 18px;
        z-index: 3;
        width: 34px;
        height: 34px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #f3f1ec;
    }

    .mobile-close-icon {
        width: 100%;
        height: 100%;
        display: block;
    }

    .mobile-menu-list {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-top: 8px;
    }

    .mobile-menu-link {
        align-self: flex-start;
        border: 0;
        padding: 0;
        background: transparent;
        color: #f3f1ec;
        font-family: "Geist Mono", "Courier New", monospace;
        font-size: 1.2rem;
        line-height: 1.05;
        text-decoration: none;
    }

    .mobile-footer {
        position: absolute;
        left: 22px;
        bottom: 26px;
        color: rgba(243, 241, 236, 0.35);
        font-family: "Geist Mono", "Courier New", monospace;
        font-size: 0.78rem;
        line-height: 1.15;
    }

    .mobile-footer p {
        margin: 0;
    }

    .mobile-about-screen {
        display: flex;
        flex-direction: column;
        background: #111111;
        padding-top: 0;
    }

    .mobile-about-content {
        flex: 1;
        min-height: 0;
        padding: 0;
    }

    .mobile-about-media {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden;
        background: #200908;
        padding-top: 0;
    }

    .mobile-about-media video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: blur(26px);
        transform: scale(1.14);
    }

    .mobile-about-copy {
        position: relative;
        z-index: 1;
        max-width: 70%;
        padding: 26px 16px 0;
        color: #ffffff;
        font-family: "Geist", Arial, sans-serif;
        font-size: clamp(1.3rem, 5.9vw, 2.15rem);
        line-height: 1.03;
        letter-spacing: -0.03em;
    }

    .mobile-about-copy p {
        margin: 0;
    }

    .mobile-about-copy p + p {
        margin-top: 26px;
    }

    .mobile-about-copy span,
    .mobile-about-copy a {
        color: #ffffff;
    }

    .mobile-about-copy a {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .mobile-about-linkedin {
        position: absolute;
        left: 16px;
        bottom: 16px;
        z-index: 1;
        color: #ffffff;
        font-family: "Geist Mono", "Courier New", monospace;
        font-size: 0.9rem;
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    .mobile-about-footer {
        position: relative;
        left: auto;
        bottom: auto;
        padding: 30px 22px 32px;
        margin-top: auto;
        background: #0c0c0c;
    }

    @media (min-width: 480px) and (max-width: 900px) {
        .mobile-home {
            padding: 22px 0 18px;
        }

        .mobile-header,
        .mobile-video-meta {
            padding-left: 28px;
            padding-right: 28px;
        }

        .loading-logo,
        .mobile-logo {
            width: min(380px, 78vw);
        }

        .mobile-video-frame {
            margin-top: 26px;
        }

        .mobile-video-meta {
            margin-top: 14px;
            font-size: clamp(0.92rem, 2.3vw, 1.08rem);
        }
    }
}
