@font-face {
    font-family: "Grenze Gotisch";
    src: url("fonts/GrenzeGotisch-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --water-bright: rgb(165, 230, 255);
    --water-text: rgb(220, 247, 255);
    --water-mid: rgb(90, 205, 255);
    --water-deep: rgb(35, 155, 255);
    --window-dark: rgba(4, 14, 24, 0.97);
    --error: rgb(255, 70, 105);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow: hidden;
    background: black;
}

/* ==============================
   VIDEO BACKGROUND
============================== */

.video-layer {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.8s ease;
    will-change: opacity, transform, filter;
}

.video-layer.distort {
    animation: videoDistort 0.12s steps(2);
}

.video-layer.rgb {
    filter:
        drop-shadow(8px 0 red)
        drop-shadow(-8px 0 cyan);
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.35);
}
/* ==============================
   3D SCENE
============================== */

#three-canvas {
    position: fixed;
    inset: 0;
    z-index: 6;
    display: block;

    width: 100vw;

    height: 100vh;
    height: 100dvh;

    pointer-events: auto;
}
.glitch {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.03),
            rgba(255, 255, 255, 0.03) 2px,
            transparent 2px,
            transparent 4px
        );
}

.glitch.active {
    animation: glitchFlash 0.25s steps(2);
}

.flash {
    position: fixed;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    background: white;
}

.flash.active {
    animation: lightFlash 0.08s ease-out;
}

@keyframes videoDistort {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.08) translate(-8px, 2px);
    }
    50% {
        transform: scale(1.03) translate(6px, -4px);
    }
}

@keyframes glitchFlash {
    0%, 100% {
        opacity: 0;
        transform: translate(0);
    }
    25% {
        opacity: 1;
        transform: translate(-8px, 2px);
    }
    50% {
        opacity: 0.5;
        transform: translate(8px, -3px);
    }
}

@keyframes lightFlash {
    0%, 100% {
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
}

/* ==============================
   ENTRANCE SCREEN
============================== */

.entrance-screen {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(2px);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.entrance-screen.is-transitioning {
    pointer-events: none;
    will-change: -webkit-mask-size, -webkit-mask-position, mask-size, mask-position;

    -webkit-mask-image:
        linear-gradient(#000 0 0),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon fill='black' points='50,100 6,58 0,34 6,17 19,7 34,6 50,20 66,6 81,7 94,17 100,34 94,58'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat, no-repeat;
    -webkit-mask-size:
        100% 100%,
        var(--heart-start-width) var(--heart-start-height);
    -webkit-mask-position:
        0 0,
        var(--heart-start-left) var(--heart-start-top);
    -webkit-mask-composite: xor;

    mask-image:
        linear-gradient(#000 0 0),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon fill='black' points='50,100 6,58 0,34 6,17 19,7 34,6 50,20 66,6 81,7 94,17 100,34 94,58'/%3E%3C/svg%3E");
    mask-repeat: no-repeat, no-repeat;
    mask-size:
        100% 100%,
        var(--heart-start-width) var(--heart-start-height);
    mask-position:
        0 0,
        var(--heart-start-left) var(--heart-start-top);
    mask-composite: exclude;

    animation:
        eraseEntranceWithHeart
        2.8s
        cubic-bezier(0.32, 0, 0.18, 1)
        forwards;
}

.entrance-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.entrance-window {
    position: relative;
    width: min(650px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow: hidden;
    border: 1px solid rgba(120, 215, 255, 0.95);
    background:
        linear-gradient(
            180deg,
            rgba(8, 22, 34, 0.96),
            rgba(2, 8, 16, 0.98)
        );
    color: var(--water-text);
    box-shadow:
        0 0 10px rgba(100, 210, 255, 0.9),
        0 0 32px rgba(45, 165, 255, 0.45),
        inset 0 0 30px rgba(75, 185, 255, 0.14);
    animation: entranceFlicker 8s steps(1, end) infinite;
    transition: opacity 0.55s ease, transform 0.55s ease, filter 0.55s ease;
}

.entrance-window::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 0.8;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(100, 210, 255, 0.06) 0,
            rgba(100, 210, 255, 0.06) 1px,
            transparent 1px,
            transparent 4px
        );
}


.entrance-titlebar {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
    border-bottom: 1px solid rgba(110, 210, 255, 0.75);
    background: rgba(40, 150, 220, 0.1);
}

.entrance-window-title {
    padding: 8px 12px;
    color: rgb(195, 235, 255);
    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
    letter-spacing: 1.6px;
    text-shadow: 0 0 7px rgba(80, 195, 255, 0.9);
}

.entrance-close {
    align-self: stretch;
    min-width: 42px;
    border: 0;
    border-left: 1px solid rgba(110, 210, 255, 0.75);
    background: transparent;
    color: rgb(195, 235, 255);
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, text-shadow 0.15s ease;
}

.entrance-close:hover {
    background: rgba(255, 50, 85, 0.18);
    color: rgb(255, 130, 155);
    text-shadow: 0 0 8px rgba(255, 45, 90, 1);
}

.entrance-close:focus-visible,
.enter-body-button:focus-visible {
    outline: 3px solid white;
    outline-offset: 5px;
}

/* ==============================
   ENTRANCE CONTENT
============================== */

.entrance-content {
    position: relative;
    z-index: 5;
    padding:
        clamp(14px, 3vh, 30px)
        clamp(20px, 5vw, 52px);
    text-align: center;
}

.entrance-content p {
    margin-left: auto;
    margin-right: auto;
}

.entrance-transmission,
.entrance-instructions {
    max-width: 480px;
    font-family: "Courier New", Courier, monospace;
    font-size: clamp(9px, 1.4vh, 11px);
    line-height: 1.55;
    letter-spacing: 2px;
}

.entrance-transmission {
    margin-top: 0;
    margin-bottom: clamp(10px, 1.6vh, 16px);
    color: rgb(185, 230, 255);
    text-transform: uppercase;
    text-shadow: 0 0 7px rgba(70, 185, 255, 0.6);
}

.entrance-instructions {
    margin-top: 0;
    margin-bottom: 0;
    color: rgba(170, 220, 255, 0.86);
    text-transform: uppercase;
}

.entrance-divider {
    margin: clamp(8px, 1.5vh, 14px) 0;
    color: rgb(105, 205, 255);
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    letter-spacing: 5px;
    text-shadow: 0 0 8px rgba(60, 180, 255, 0.8);
}

.entrance-manifesto {
    max-width: 540px;
    margin-top: 0;
    margin-bottom: clamp(8px, 1.4vh, 14px);
    color: rgb(220, 247, 255);
    font-family: "Grenze Gotisch", serif;
    font-size: clamp(23px, 4vh, 34px);
    line-height: 1.12;
    letter-spacing: 0.4px;
    text-shadow:
        0 0 8px rgba(90, 205, 255, 0.95),
        0 0 22px rgba(40, 160, 255, 0.55);
}

.entrance-location {
    max-width: 470px;
    margin-top: 0;
    margin-bottom: clamp(8px, 1.4vh, 14px);
    color: rgb(185, 228, 255);
    font-family: "Grenze Gotisch", serif;
    font-size: clamp(16px, 2.7vh, 22px);
    line-height: 1.25;
    text-shadow: 0 0 7px rgba(70, 180, 255, 0.45);
}

/* ==============================
   HEART BUTTON
============================== */

.enter-body-button {
    position: relative;
    isolation: isolate;
    display: block;
    width: clamp(112px, 16vh, 140px);
    height: clamp(100px, 14.5vh, 128px);
    margin:
        clamp(4px, 0.8vh, 8px)
        auto
        clamp(10px, 1.8vh, 18px);
    padding: 10px 8px 24px;
    border: 0;
    background: transparent;
    color: rgb(235, 250, 255);
    font-family: "Grenze Gotisch", serif;
    font-size: clamp(15px, 2.3vh, 19px);
    line-height: 0.95;
    letter-spacing: 1px;
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
    clip-path: polygon(
        50% 100%,
        6% 58%,
        0 34%,
        6% 17%,
        19% 7%,
        34% 6%,
        50% 20%,
        66% 6%,
        81% 7%,
        94% 17%,
        100% 34%,
        94% 58%
    );
    filter:
        drop-shadow(0 0 3px rgba(220, 250, 255, 1))
        drop-shadow(0 0 9px rgba(90, 210, 255, 1))
        drop-shadow(0 0 24px rgba(35, 155, 255, 0.85));
    transition: transform 0.25s ease, color 0.25s ease, filter 0.25s ease;
}

.enter-body-button::before,
.enter-body-button::after {
    content: "";
    position: absolute;
    clip-path: inherit;
}

.enter-body-button::before {
    inset: 0;
    z-index: -2;
    background: var(--water-bright);
}

.enter-body-button::after {
    inset: 2px;
    z-index: -1;
    background: rgba(6, 23, 36, 0.97);
}

.enter-body-button:hover {
    color: rgb(4, 18, 28);
    transform: scale(1.06);
    filter:
        drop-shadow(0 0 4px rgba(235, 252, 255, 1))
        drop-shadow(0 0 13px rgba(110, 220, 255, 1))
        drop-shadow(0 0 34px rgba(40, 165, 255, 0.95));
}

.enter-body-button:hover::after {
    background: rgb(185, 235, 255);
}

.enter-body-button.is-transition-source {
    opacity: 0;
    transform: scale(1.04);
}

/* ==============================
   ERROR EFFECT
============================== */

.entrance-window.error-state {
    border-color: var(--error);
    box-shadow:
        0 0 10px rgba(255, 65, 100, 1),
        0 0 34px rgba(255, 25, 75, 0.72),
        inset 0 0 30px rgba(255, 30, 75, 0.18);
    animation: errorJolt 0.28s steps(2, end);
}

.entrance-window.error-state .entrance-titlebar {
    border-bottom-color: rgba(255, 75, 110, 0.9);
    background: rgba(255, 35, 80, 0.1);
}

.entrance-window.error-state .entrance-window-title,
.entrance-window.error-state .entrance-close {
    color: rgb(255, 150, 170);
    text-shadow: 0 0 8px rgba(255, 45, 90, 1);
}

/* ==============================
   HEART OUTLINE TRANSITION
============================== */

.body-entry-ripple {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    overflow: visible;
    pointer-events: none;
    opacity: 0;
    transform-origin: center center;
}

.body-entry-ripple polygon {
    fill: none;
    stroke: var(--water-bright);
    stroke-width: 2;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    filter:
        drop-shadow(0 0 3px rgba(220, 250, 255, 1))
        drop-shadow(0 0 9px rgba(90, 210, 255, 1))
        drop-shadow(0 0 24px rgba(35, 155, 255, 0.9));
}

.body-entry-ripple.is-active {
    opacity: 1;
    will-change: transform, opacity;
    animation:
        expandHeartOutline
        2.8s
        cubic-bezier(0.32, 0, 0.18, 1)
        forwards;
}

@keyframes expandHeartOutline {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    72% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(var(--heart-final-scale));
    }
}

@keyframes eraseEntranceWithHeart {
    0% {
        -webkit-mask-size:
            100% 100%,
            var(--heart-start-width) var(--heart-start-height);
        -webkit-mask-position:
            0 0,
            var(--heart-start-left) var(--heart-start-top);

        mask-size:
            100% 100%,
            var(--heart-start-width) var(--heart-start-height);
        mask-position:
            0 0,
            var(--heart-start-left) var(--heart-start-top);
    }

    100% {
        -webkit-mask-size:
            100% 100%,
            var(--heart-end-width) var(--heart-end-height);
        -webkit-mask-position:
            0 0,
            var(--heart-end-left) var(--heart-end-top);

        mask-size:
            100% 100%,
            var(--heart-end-width) var(--heart-end-height);
        mask-position:
            0 0,
            var(--heart-end-left) var(--heart-end-top);
    }
}

/* ==============================
   ANIMATIONS
============================== */

@keyframes entranceFlicker {
    0%, 18%, 20%, 22%, 53%, 55%, 100% {
        opacity: 1;
    }
    19% {
        opacity: 0.985;
    }
    21% {
        opacity: 0.97;
    }
    54% {
        opacity: 0.98;
    }
}

@keyframes errorJolt {
    0%, 100% {
        transform: translate(0, 0);
        filter: none;
    }
    20% {
        transform: translate(-6px, 2px);
        filter: contrast(1.3);
    }
    40% {
        transform: translate(7px, -2px);
        filter: hue-rotate(20deg);
    }
    60% {
        transform: translate(-3px, -1px);
        filter: contrast(1.4);
    }
    80% {
        transform: translate(4px, 1px);
        filter: none;
    }
}

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

@media (max-height: 720px) {
    .entrance-titlebar {
        min-height: 32px;
    }

    .entrance-window-title {
        padding: 7px 12px;
        font-size: 9px;
    }

    .entrance-content {
        padding: 12px 30px;
    }

    .entrance-manifesto {
        font-size: 24px;
    }

    .entrance-location {
        font-size: 17px;
    }

    .enter-body-button {
        width: 106px;
        height: 94px;
        margin-bottom: 8px;
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .entrance-window-title {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .entrance-content {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .entrance-window,
    .entrance-screen,
    .enter-body-button,
    .body-entry-ripple.is-active {
        animation-duration: 0.15s;
        transition-duration: 0.15s;
    }
}
/* ==============================
   EXIT ASTRAL PROJECTION BUTTON
============================== */

#return-button {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 10;

    opacity: 0;
visibility: hidden;
pointer-events: none;

transform: scale(0.85);

transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s ease,
    color 0.25s ease,
    filter 0.25s ease;

    isolation: isolate;
    display: block;
    overflow: hidden;

    width: 150px;
    height: 136px;
    padding: 12px 10px 30px;

    border: 0;
    background: transparent;
    color: rgb(220, 247, 255);

    font-family: "Grenze Gotisch", serif;
    font-size: 16px;
    line-height: 0.95;
    letter-spacing: 0.7px;
    text-align: center;

    cursor: pointer;

    clip-path: polygon(
        50% 100%,
        6% 58%,
        0 34%,
        6% 17%,
        19% 7%,
        34% 6%,
        50% 20%,
        66% 6%,
        81% 7%,
        94% 17%,
        100% 34%,
        94% 58%
    );

filter:
    drop-shadow(0 0 3px rgba(220, 250, 255, 1))
    drop-shadow(0 0 10px rgba(90, 210, 255, 0.95))
    drop-shadow(0 0 24px rgba(35, 155, 255, 0.8))
    drop-shadow(0 0 40px rgba(35, 155, 255, 0.45));

    transition:
        transform 0.25s ease,
        color 0.25s ease,
        filter 0.25s ease;
}
#return-button.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}
/*
    Bright outer cyan edge.
*/
#return-button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;

    clip-path: inherit;

    background:
        linear-gradient(
            180deg,
            rgb(205, 245, 255),
            rgb(60, 185, 255)
        );
}

/*
    Translucent dark interior plus horizontal scan lines.
*/
#return-button::after {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -2;

    clip-path: inherit;

    background:
        linear-gradient(
            180deg,
            rgba(8, 22, 34, 0.76),
            rgba(2, 8, 16, 0.86)
        );

    backdrop-filter: blur(4px);
}

/*
    A faint highlight across the top half.
*/
#return-button span {
    position: relative;
    z-index: 2;
}

#return-button:hover {
    color: rgb(4, 18, 28);
    transform: scale(1.06);

    filter:
        drop-shadow(0 0 4px rgba(235, 252, 255, 1))
        drop-shadow(0 0 14px rgba(110, 220, 255, 1))
        drop-shadow(0 0 30px rgba(40, 165, 255, 0.95))
        drop-shadow(0 0 48px rgba(40, 165, 255, 0.65));
}

#return-button:hover::after {
    background:
        linear-gradient(
            180deg,
            rgba(205, 242, 255, 0.92),
            rgba(125, 215, 255, 0.88)
        );
}

#return-button:focus-visible {
    outline: 3px solid white;
    outline-offset: 5px;
}
/* ==============================
   PROJECT WINDOW
============================== */

.project-window {
    position: fixed;
    top: 50%;
    left: 54%;
    z-index: 12;

    width: min(520px, calc(100vw - 80px));
    max-height: calc(100vh - 80px);

    border: 1px solid rgba(120, 215, 255, 0.95);

    background:
        linear-gradient(
            180deg,
            rgba(8, 22, 34, 0.68),
            rgba(2, 8, 16, 0.76)
        );

    color: var(--water-text);

    box-shadow:
        0 0 10px rgba(100, 210, 255, 0.9),
        0 0 32px rgba(45, 165, 255, 0.45),
        inset 0 0 30px rgba(75, 185, 255, 0.14);

    backdrop-filter: blur(7px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translate(-50%, -46%)
        scale(0.97);

    transition:
        opacity 0.45s ease,
        visibility 0.45s ease,
        transform 0.45s ease;
}

.project-window.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translate(-50%, -50%)
        scale(1);
}
.project-window-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 42px;

    border-bottom:
        1px solid rgba(110, 210, 255, 0.75);

    background:
        rgba(40, 150, 220, 0.1);
}

#project-window-title {
    margin: 0;
    padding: 10px 14px;

    color: rgb(220, 247, 255);

    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.project-window-close {
    align-self: stretch;
    min-width: 46px;

    border: 0;
    border-left:
        1px solid rgba(110, 210, 255, 0.75);

    background: transparent;
    color: rgb(195, 235, 255);

    font-family: "Courier New", Courier, monospace;
    font-size: 13px;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.project-window-close:hover {
    background:
        rgba(255, 50, 85, 0.18);

    color:
        rgb(255, 130, 155);
}
.project-window::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;

    pointer-events: none;

    background:
        repeating-linear-gradient(
            0deg,
            rgba(100, 210, 255, 0.055) 0,
            rgba(100, 210, 255, 0.055) 1px,
            transparent 1px,
            transparent 4px
        );

    opacity: 0.75;

    animation:
        projectWindowLines
        5s
        steps(2, end)
        infinite;
}
@keyframes projectWindowLines {
    0%,
    17%,
    19%,
    52%,
    55%,
    100% {
        opacity: 0.72;
    }

    18% {
        opacity: 0.35;
        transform: translateY(1px);
    }

    53% {
        opacity: 0.9;
        transform: translateY(-1px);
    }
}
.project-window-titlebar,
.project-window-content {
    position: relative;
    z-index: 5;
}
.project-window-content {
    display: block;
    max-height: calc(100vh - 122px);
    overflow-y: auto;
    overflow-x: hidden;
}

.project-window-text {
    display: flex;
    flex-direction: column;

    padding: 32px;
}
.project-manifesto {
    margin-top: 0;
    margin-bottom: 22px;

    color: rgb(220, 247, 255);

    font-family: "Grenze Gotisch", serif;
    font-size: 28px;
    line-height: 1.1;

    text-shadow:
        0 0 8px rgba(90, 205, 255, 0.75),
        0 0 20px rgba(40, 160, 255, 0.35);
}

#project-description,
#project-role {
    margin-top: 0;

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 13px;
    line-height: 1.7;
}

#project-description {
    margin-bottom: 30px;

    color:
        rgba(220, 247, 255, 0.92);
}

.project-role {
    margin-bottom: 30px;
}

.project-label {
    display: block;
    margin-bottom: 8px;

    color:
        rgb(105, 205, 255);

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 10px;
    letter-spacing: 2px;
}

#project-role {
    color:
        rgba(185, 228, 255, 0.85);
}

#project-external-link {
    margin-top: auto;

    color:
        rgb(185, 230, 255);

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 11px;
    letter-spacing: 1.6px;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

#project-external-link:hover {
    color: white;
    transform: translateX(5px);
}

/* ==============================
   MINI PROJECT WINDOWS
============================== */

.mini-project-window {
    position: fixed;
    z-index: 13;

    width: min(320px, 32vw);

    border: 1px solid rgba(120, 215, 255, 0.95);

    background:
        linear-gradient(
            180deg,
            rgba(8, 22, 34, 0.72),
            rgba(2, 8, 16, 0.82)
        );

    box-shadow:
        0 0 10px rgba(100, 210, 255, 0.8),
        0 0 26px rgba(45, 165, 255, 0.35),
        inset 0 0 24px rgba(75, 185, 255, 0.12);

    backdrop-filter: blur(7px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease,
        transform 0.35s ease;
}

.mini-project-window.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mini-project-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;


    min-height: 34px;

    border-bottom:
        1px solid rgba(110, 210, 255, 0.75);

    background:
        rgba(40, 150, 220, 0.1);
}
.project-window-titlebar,
.mini-project-titlebar {
    cursor: grab;
}

.project-window-titlebar:active,
.mini-project-titlebar:active {
    cursor: grabbing;
}

.mini-project-title {
    padding: 8px 10px;

    color: rgb(220, 247, 255);

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.mini-project-close {
    align-self: stretch;
    min-width: 38px;

    border: 0;
    border-left:
        1px solid rgba(110, 210, 255, 0.75);

    background: transparent;

    color: rgb(195, 235, 255);

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 12px;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.mini-project-close:hover {
    background:
        rgba(255, 50, 85, 0.18);

    color:
        rgb(255, 130, 155);
}

.mini-project-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;

    overflow: hidden;

    background:
        rgba(0, 0, 0, 0.35);
}

.mini-project-media img,
.mini-project-media video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.mini-project-media video {
    display: none;
}
#mini-window-1 {
    top: 12%;
    left: 8%;
}

#mini-window-2 {
    top: 18%;
    right: 7%;
}

#mini-window-3 {
    bottom: 9%;
    right: 16%;
}
@media (max-width: 760px) {
    .project-window {
        left: 50%;

        width: min(92vw, 520px);
        max-height: calc(100vh - 40px);

        overflow-y: auto;
    }

    .project-window-text {
        padding: 24px;
    }

    .project-manifesto {
        font-size: 24px;
    }
    .mini-project-window {
    width: 42vw;
}

#mini-window-1 {
    top: 8%;
    left: 4%;
}

#mini-window-2 {
    top: 8%;
    right: 4%;
}

#mini-window-3 {
    bottom: 5%;
    right: 4%;
}
}
.mini-project-info {
    padding: 12px 14px 14px;

    border-top:
        1px solid rgba(110, 210, 255, 0.45);

    background:
        rgba(2, 8, 16, 0.5);
}

.mini-project-description {
    margin: 0 0 10px;

    color:
        rgba(220, 247, 255, 0.82);

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 10px;
    line-height: 1.5;

    letter-spacing: 0.4px;
}

.mini-project-link {
    display: inline-block;

    color:
        rgb(165, 230, 255);

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 9px;
    letter-spacing: 1.4px;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.mini-project-link:hover {
    color: white;
    transform: translateX(4px);
}

/* ==============================
   WEBGL / 3D ERROR WINDOW
============================== */

.webgl-warning {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    z-index: 9999;

    width: min(420px, calc(100vw - 30px));

    border: 1px solid var(--water-bright);
    background: var(--window-dark);
    color: var(--water-text);

    font-family: "Courier New", Courier, monospace;

    box-shadow:
        0 0 10px rgba(100, 210, 255, 0.9),
        0 0 32px rgba(45, 165, 255, 0.45),
        inset 0 0 30px rgba(75, 185, 255, 0.14);

    animation: webglWarningAppear 0.35s ease-out;
}

.webgl-warning::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        repeating-linear-gradient(
            0deg,
            rgba(100, 210, 255, 0.05) 0,
            rgba(100, 210, 255, 0.05) 1px,
            transparent 1px,
            transparent 4px
        );
}

.webgl-warning-title {
    position: relative;
    z-index: 1;

    padding: 8px 12px;

    border-bottom: 1px solid rgba(110, 210, 255, 0.75);
    background: rgba(40, 150, 220, 0.1);

    color: rgb(195, 235, 255);

    font-size: 10px;
    letter-spacing: 1.6px;

    text-shadow:
        0 0 7px rgba(80, 195, 255, 0.9);
}

.webgl-warning-content {
    position: relative;
    z-index: 1;

    padding: 20px 24px;

    color: var(--water-text);

    font-size: 11px;
    line-height: 1.55;
    letter-spacing: 1px;
    text-align: center;

    text-shadow:
        0 0 6px rgba(70, 185, 255, 0.5);
}

@keyframes webglWarningAppear {
    from {
        opacity: 0;
        transform: translate(-50%, 12px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}