/* =========================================================
   SZÁNTAI PORTFOLIO
   COMPLETE STYLE SHEET
   ========================================================= */

@font-face {
    font-family: "Neuropol";
    src: url("Neuropol.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

:root {
    --parallax-background-x: 0px;
    --parallax-background-y: 0px;
    --parallax-title-x: 0px;
    --parallax-title-y: 0px;
    --parallax-roles-x: 0px;
    --parallax-roles-y: 0px;
    --parallax-menu-x: 0px;
    --parallax-menu-y: 0px;
    --parallax-showreel-x: 0px;
    --parallax-showreel-y: 0px;
    --parallax-status-x: 0px;
    --parallax-status-y: 0px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    min-height: 100%;
    background: #000;
}

body {
    font-family: "Neuropol", sans-serif;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   MAIN PAGE
   ========================================================= */

.home {
    position: relative;

    width: 100%;
    min-height: 100vh;

    overflow: visible;
}

.background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1.1s ease;
}

.background.booted {
    opacity: 1;
}

.background video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform:
        translate3d(var(--parallax-background-x), var(--parallax-background-y), 0)
        scale(1.015);
    filter: none;
    transition:
        transform 0.8s cubic-bezier(0.22, 0.72, 0.24, 1),
        filter 0.8s cubic-bezier(0.22, 0.72, 0.24, 1);
    will-change: transform, backdrop-filter;
}

body:not(.archive-active):has(.main-menu button:hover) .background video {
    transform:
        translate3d(var(--parallax-background-x), var(--parallax-background-y), 0)
        scale(1.065);
}

body.archive-active .background video {
    filter: blur(2.4px) brightness(0.74) saturate(0.84) contrast(1.04);
}

.background-overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.background-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(73, 111, 153, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

body.archive-active .background-overlay::after {
    opacity: 1;
}

body:not(.archive-active):has(.main-menu button:hover) .background-overlay::after {
    opacity: 0.16;
}

.homepage-content {
    position: relative;
    z-index: 3;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 12vh;
    padding-bottom: 12vh;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
        opacity 0.55s ease,
        transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
        filter 0.7s ease;
}


/* =========================================================
   IDENTITY
   ========================================================= */

.identity {
    width: 100%;

    text-align: center;
}


/* =========================================================
   NAME
   ========================================================= */

.identity h1 {
    margin: 0;

    font-size:
        clamp(50px, 7vw, 120px);

    font-weight: 700;

    line-height: 1;

    white-space: nowrap;

    letter-spacing: 0.02em;

    color: white;

    text-shadow:
        0 0 4px rgba(255, 255, 255, 1),
        0 0 15px rgba(225, 240, 255, 0.8),
        0 0 28px rgba(130, 190, 255, 0.32);

    translate:
        var(--parallax-title-x)
        var(--parallax-title-y);
}


/* =========================================================
   QUALIFICATIONS
   ========================================================= */

.identity p {
    margin-top: 16px;

    font-size:
        clamp(12px, 1.1vw, 17px);

    font-weight: 400;

    letter-spacing: 0.12em;

    color: white;

    text-shadow:
        0 0 5px rgba(255, 255, 255, 1),
        0 0 13px rgba(225, 240, 255, 0.78),
        0 0 24px rgba(125, 185, 255, 0.28);

    translate:
        var(--parallax-roles-x)
        var(--parallax-roles-y);
}


/* =========================================================
   STARTUP — INITIAL HIDDEN STATES
   ========================================================= */

.homepage-content.booting .identity h1,
.homepage-content.booting .identity p,
.homepage-content.booting .main-menu button,
.homepage-content.booting .showreel h2,
.homepage-content.booting .showreel-video {
    opacity: 0;
}


/* =========================================================
   STARTUP — REVEALED ELEMENTS
   ========================================================= */

.homepage-content.booting .identity h1.boot-title,
.homepage-content.booting .identity p.boot-roles,
.homepage-content.booting .main-menu button.boot-item,
.homepage-content.booting .showreel h2.boot-showreel-title,
.homepage-content.booting .showreel-video.boot-showreel-video {
    opacity: 1;
}

@keyframes materializeInterface {
    0% {
        opacity: 0.025;
        transform: translate3d(0, 9px, 0);
        filter: blur(2.2px) brightness(0.9);
    }

    38% {
        opacity: 0.48;
        transform: translate3d(0, 5.2px, 0);
        filter: blur(1.25px) brightness(0.98);
    }

    72% {
        opacity: 0.96;
        transform: translate3d(0, 1.1px, 0);
        filter: blur(0.35px) brightness(1.07);
    }

    88% {
        opacity: 1;
        transform: translate3d(0, 0.2px, 0);
        filter: blur(0.05px) brightness(1.025);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(0) brightness(1);
    }
}


/* =========================================================
   NAME STARTUP
   ========================================================= */

.identity h1.boot-title {
    animation:
        materializeInterface
        0.86s
        cubic-bezier(0.24, 0.6, 0.22, 1)
        forwards;
}


/* =========================================================
   QUALIFICATIONS STARTUP
   ========================================================= */

.identity p.boot-roles {
    animation:
        materializeInterface
        0.8s
        cubic-bezier(0.24, 0.6, 0.22, 1)
        forwards;
}


/* =========================================================
   MENU STARTUP
   ========================================================= */

.main-menu button.boot-item {
    animation:
        materializeInterface
        0.78s
        cubic-bezier(0.24, 0.6, 0.22, 1)
        forwards;
}

.main-menu button:nth-child(2).boot-item {
    animation-duration: 0.8s;
}

.main-menu button:nth-child(3).boot-item {
    animation-duration: 0.82s;
}

.main-menu button:nth-child(4).boot-item {
    animation-duration: 0.84s;
}


/* =========================================================
   MAIN MENU
   ========================================================= */

.main-menu {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    width: max-content;

    margin-top: 55px;

    margin-left: 0;

    translate:
        var(--parallax-menu-x)
        var(--parallax-menu-y);
}


/* =========================================================
   MENU BUTTONS
   ========================================================= */

.main-menu button {
    position: relative;

    display: flex;

    align-items: center;

    width: max-content;

    border: none;

    background: none;

    color: white;

    font-family: inherit;

    font-size:
        clamp(18px, 1.8vw, 28px);

    font-weight: 400;

    cursor: pointer;

    padding: 7px 0;

    margin: 0;

    text-align: left;

    transform:
        translateY(0);

    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.96),
        0 0 12px rgba(225, 240, 255, 0.7),
        0 0 22px rgba(125, 185, 255, 0.26);

    transition:
        transform 0.25s ease,
        color 0.25s ease,
        text-shadow 0.25s ease;
}


/* =========================================================
   MENU HOVER
   ========================================================= */

.main-menu button {
    margin-left: 0;
    transition:
        margin-left 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        color 0.5s ease,
        text-shadow 0.5s ease;
}

.main-menu button:hover {
    margin-left: 6px;

    color:
        rgba(235, 248, 255, 1);

    text-shadow:
    0 0 4px rgba(255, 255, 255, 1),
    0 0 10px rgba(190, 230, 255, 0.95),
    0 0 22px rgba(80, 165, 255, 0.85),
    0 0 42px rgba(60, 130, 255, 0.65),
    0 0 65px rgba(40, 110, 255, 0.35);
}

.main-menu button:focus-visible {
    outline: none;
}

.main-menu button:focus-visible .float-inner,
.main-menu button:hover .float-inner {
    text-shadow:
        0 0 4px rgba(255, 255, 255, 1),
        0 0 12px rgba(190, 230, 255, 0.9),
        0 0 24px rgba(80, 165, 255, 0.48);
}

.main-menu button:focus-visible .menu-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.homepage-content.menu-focused .main-menu button:not(.is-focused) .float-inner {
    opacity: 0.58;
}

body:has(.main-menu button:hover) .main-menu button:not(:hover) .float-inner {
    opacity: 0.72;
    filter: blur(1px);
}

.homepage-content.menu-focused .identity h1 .float-inner {
    opacity: 0.82;
}

.float-inner {
    transition:
        opacity 0.7s ease,
        filter 0.45s ease;
}

body.menu-focused .identity .float-inner,
body.menu-focused .main-menu button:not(.is-focused) .float-inner,
body.menu-focused .showreel h2 .float-inner,
body.menu-focused .system-information,
body.menu-focused .sound-toggle {
    filter: blur(1px);
}

body.menu-focused .main-menu button.is-focused .float-inner {
    filter: blur(0);
    opacity: 1;
}

/* =========================================================
   MENU ARROW
   ========================================================= */

.menu-arrow {
    position: absolute;
    right: calc(100% + 13px);
    top: 50%;

    font-family: "Neuropol", sans-serif;
    font-size: 0.7em;
    font-weight: 400;
    line-height: 1;

    color: rgba(235, 248, 255, 1);

    transform:
        translateY(-50%)
        translateX(-5px);

    opacity: 0;
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        text-shadow 0.5s ease;

    text-shadow:
        0 0 3px rgba(255, 255, 255, 0.85),
        0 0 8px rgba(80, 165, 255, 0.45);
}


/* =========================================================
   HOVER
   ========================================================= */

.main-menu button:hover .menu-arrow,
.main-menu button.is-focused .menu-arrow {
    opacity: 1;

    transform:
        translateY(-50%)
        translateX(0);

    text-shadow:
        0 0 4px rgba(255, 255, 255, 1),
        0 0 10px rgba(190, 230, 255, 0.8),
        0 0 22px rgba(80, 165, 255, 0.6),
        0 0 38px rgba(60, 130, 255, 0.28);
}


/* =========================================================
   SHOWREEL
   ========================================================= */

.showreel {
    display: block;
    width: min(850px, 82vw);
    margin-top: 70px;
    margin-left: auto;
    margin-right: auto;
    flex-shrink: 0;

    translate:
        var(--parallax-showreel-x)
        var(--parallax-showreel-y);

    opacity: 1;

    transition:
        opacity 0.45s ease;
}

body.archive-active .showreel {
    opacity: 0;
}

/* =========================================================
   SHOWREEL TITLE
   ========================================================= */

.showreel h2 {
    display: block;

    width: 100%;

    font-size: 15px;

    font-weight: 400;

    letter-spacing: 0.16em;

    margin:
        0 0 12px 0;

    color: white;

    text-shadow:
        0 0 5px rgba(255, 255, 255, 1),
        0 0 13px rgba(225, 240, 255, .78),
        0 0 24px rgba(125, 185, 255, .28),
        0 0 34px rgba(80, 145, 255, .16);
}

.showreel h2.boot-showreel-title {
    animation:
        materializeInterface
        0.84s
        cubic-bezier(0.24, 0.6, 0.22, 1)
        forwards;
}


/* =========================================================
   SHOWREEL VIDEO
   ========================================================= */

.showreel-video {
    display: block;

    width: 100%;

    aspect-ratio:
        16 / 9;

    background:
        rgba(0, 0, 0, 0.65);

    border:
        1px solid rgba(210, 230, 255, 0.55);

    box-shadow:
        0 0 10px rgba(100, 170, 255, 0.12);

    overflow: hidden;
}


/* =========================================================
   SHOWREEL VIDEO EMBED
   ========================================================= */

.showreel-video iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}

.showreel-video.boot-showreel-video {
    animation:
        materializeInterface
        0.92s
        cubic-bezier(0.24, 0.6, 0.22, 1)
        forwards;
}


/* =========================================================
   HOMEPAGE DIMMING
   ========================================================= */

.homepage-content.dimmed {
    opacity: 0.08;

    pointer-events: none;

    transform: translate3d(0, -8px, 0) scale(0.994);

    filter: blur(1px);
}

body.archive-active .homepage-content .float-inner,
body.archive-active .homepage-content.menu-focused .main-menu button.is-focused .float-inner {
    filter: blur(2.1px);
}


/* =========================================================
   ARCHIVE WINDOW CONTAINER
   ========================================================= */

.window-container {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}



/* =========================================================
   ARCHIVE WINDOWS
   ========================================================= */

.site-window {
    position: absolute;

    width: min(950px, 88vw);
    max-height: 82vh;

    overflow: visible;

    padding: 0;

    opacity: 1;
    visibility: hidden;

    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;

    transform: none;

    pointer-events: none;
}

.site-window[data-window-state="opening"],
.site-window[data-window-state="open"],
.site-window[data-window-state="closing"] {
    visibility: visible;
}

.site-window[data-window-state="opening"],
.site-window[data-window-state="open"] {
    pointer-events: auto;
}

.site-window[data-window-state="opening"] .project-stills img,
.site-window[data-window-state="opening"] .about-wiki img {
    pointer-events: none;
}

/* =========================================================
   WINDOW SURFACE
   ========================================================= */

.window-surface {
    position: absolute;

    /*
       Oversized surface.
       The actual edge is now far outside
       the visible window area.
    */
    inset: -110px;

    z-index: 0;

    background: rgba(0, 0, 0, 0.42);

    opacity: 0;
    transition:
        opacity var(--window-surface-duration, 600ms)
        cubic-bezier(0.42, 0, 0.58, 1) 40ms;

    border-radius: 150px;

    /*
       Very broad Gaussian-style falloff.
       The transition happens over a large area.
    */
    filter: blur(65px);

    pointer-events: none;
}

/* =========================================================
   WINDOW CONTENT
   ========================================================= */

.window-content {
    position: relative;
    z-index: 1;

    max-height: 82vh;

    overflow-y: auto;
    overflow-x: hidden;

    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;

    scrollbar-width: none;
    -ms-overflow-style: none;

    padding: 70px 55px 55px;
}

.site-window[data-window-state="opening"] .window-surface,
.site-window[data-window-state="open"] .window-surface {
    opacity: 1;
}

/* =========================================================
   ABOUT WINDOW - NO BLURRED BACKGROUND
   ========================================================= */

body #about.site-window .window-surface {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    filter: none !important;
}

/* =========================================================
   ARCHIVE HEADER
   ========================================================= */

.window-label {
    position: absolute;

    top: 27px;
    left: 55px;

    background: transparent;
    box-shadow: none;

    font-size: 10px;

    letter-spacing: 0.15em;

    color: rgba(255, 255, 255, 0.62);

    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.3),
        0 0 12px rgba(150, 200, 255, 0.18);

    pointer-events: none;
}

.site-window::after {
    content: "";

    position: absolute;

    inset: -12px;

    z-index: -1;

    border-radius: 58px;

    background: rgba(0, 0, 0, 0.44);

    opacity: 0;
    transition:
        opacity var(--window-surface-duration, 600ms)
        cubic-bezier(0.42, 0, 0.58, 1) 60ms;

    filter: blur(7px);

    /*
       The mask makes the black itself gradually
       disappear toward the edges.
    */
    -webkit-mask-image:
        radial-gradient(
            ellipse at center,
            black 48%,
            rgba(0, 0, 0, 0.9) 62%,
            rgba(0, 0, 0, 0.55) 76%,
            transparent 100%
        );

    mask-image:
        radial-gradient(
            ellipse at center,
            black 48%,
            rgba(0, 0, 0, 0.9) 62%,
            rgba(0, 0, 0, 0.55) 76%,
            transparent 100%
        );

    pointer-events: none;
}

.site-window[data-window-state="opening"]::after,
.site-window[data-window-state="open"]::after {
    opacity: 1;
}

.site-window[data-window-state="closing"] .window-surface,
.site-window[data-window-state="closing"]::after {
    transition-duration: var(--window-surface-close-duration, 220ms);
    transition-delay: var(--window-surface-close-delay, 180ms);
}

/* Remove window halo from About only */
#about.site-window::after {
    display: none;
}

/* =========================================================
   ARCHIVE TITLE
   ========================================================= */

.site-window h2 {
    font-size:
        clamp(28px, 3vw, 42px);

    font-weight: 400;

    margin-bottom: 25px;

    color: white;

    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.95),
        0 0 12px rgba(200, 225, 255, 0.65),
        0 0 26px rgba(100, 175, 255, 0.28);
}

.site-window h2 .float-inner {
    display: inline-block;
}


/* =========================================================
   ARCHIVE TEXT
   ========================================================= */

.site-window h2 {
    font-size:
        clamp(28px, 3vw, 42px);

    font-weight: 400;

    margin-bottom: 25px;

    color: white;

    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.95),
        0 0 12px rgba(200, 225, 255, 0.65),
        0 0 26px rgba(100, 175, 255, 0.28);
}

.site-window h2 .float-inner {
    display: inline-block;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.close-window {
    position: absolute;

    top: 9px;
    right: 14px;

    width: 22px;
    height: 22px;

    border: none;

    background: none;

    color: white;

    font-family: inherit;

    font-size: 20px;

    cursor: pointer;

    line-height: 1;

    text-shadow:
        0 0 6px rgba(170, 220, 255, 0.5);

    transition:
        text-shadow 0.2s ease,
        opacity 0.2s ease;
}

.close-window:hover {
    opacity: 0.7;

    text-shadow:
        0 0 8px rgba(170, 220, 255, 0.9),
        0 0 18px rgba(70, 150, 255, 0.5);
    }


/* =========================================================
   PERSONAL ARCHIVE PROJECT GRID
   ========================================================= */

.work-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 42px 40px;
}

.work-project {
    display: block;

    width: 100%;

    padding: 0;

    border: none;
    background: none;

    font: inherit;
    color: inherit;

    text-align: left;

    cursor: pointer;
}

.work-project:focus-visible {
    outline: none;
}

.work-project-hero {
    display: block;

    width: 100%;

    aspect-ratio:
        16 / 9;

    overflow: hidden;

    background:
        rgba(0, 0, 0, 0.45);

    border:
        1px solid rgba(210, 230, 255, 0.26);

    transition:
        border-color 0.35s ease;
}

.work-project-hero img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 1;

    transform: scale(1);
    transform-origin: center;
    filter: none;

    transition:
        transform 0.85s cubic-bezier(0.2, 0.7, 0.25, 1),
        filter 0.36s ease;
}

.work-project-title {
    display: block;

    margin-top: 14px;

    font-size: 12px;

    letter-spacing: 0.14em;

    color:
        rgba(237, 246, 255, 0.78);

    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.4),
        0 0 12px rgba(170, 220, 255, 0.2);

    transition:
        color 0.35s ease,
        text-shadow 0.35s ease;
}

.work-project:hover .work-project-hero,
.work-project:focus-visible .work-project-hero {
    border-color:
        rgba(226, 240, 255, 0.48);
}

.site-window[data-window-state="open"] .work-project:hover .work-project-hero img,
.site-window[data-window-state="open"] .work-project:focus-visible .work-project-hero img {
    transform: scale(1.035);
    filter: brightness(1.08) saturate(1.06) contrast(1.025);
}

.work-project:hover .work-project-hero img,
.work-project:focus-visible .work-project-hero img {
    opacity: 1;
}

.work-project:hover .work-project-title,
.work-project:focus-visible .work-project-title {
    color: white;

    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.95),
        0 0 12px rgba(200, 225, 255, 0.6);
}

.work-project,
#work .window-content > h2,
#client-work .window-content > h2,
#work .back-window,
#client-work .back-window {
    transition: filter 560ms cubic-bezier(0.22, 0.7, 0.2, 1);
}

#work.site-window[data-window-state="open"]:has(.work-project:is(:hover, :focus-visible)) .work-project:not(:is(:hover, :focus-visible)),
#client-work.site-window[data-window-state="open"]:has(.work-project:is(:hover, :focus-visible)) .work-project:not(:is(:hover, :focus-visible)) {
    filter: blur(2.8px) saturate(0.48) brightness(0.78);
}

#work.site-window[data-window-state="open"]:has(.work-project:is(:hover, :focus-visible)) .window-content > h2,
#client-work.site-window[data-window-state="open"]:has(.work-project:is(:hover, :focus-visible)) .window-content > h2,
#work.site-window[data-window-state="open"]:has(.work-project:is(:hover, :focus-visible)) .back-window,
#client-work.site-window[data-window-state="open"]:has(.work-project:is(:hover, :focus-visible)) .back-window {
    filter: blur(2.4px);
}


/* =========================================================
   PERSONAL ARCHIVE PROJECT DETAIL
   ========================================================= */

.back-window {
    display: flex;

    align-items: center;

    gap: 8px;

    width: auto;

    margin-bottom: 22px;
    padding: 2px 0;

    border: none;
    background: none;

    font: inherit;
    font-size: 10px;

    letter-spacing: 0.15em;

    color:
        rgba(255, 255, 255, 0.62);

    cursor: pointer;

    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.3),
        0 0 12px rgba(150, 200, 255, 0.18);

    transition:
        color 0.25s ease,
        text-shadow 0.25s ease;
}

.back-window:focus-visible {
    outline: none;
}

.back-window:hover,
.back-window:focus-visible {
    color:
        rgba(235, 248, 255, 1);

    text-shadow:
        0 0 4px rgba(255, 255, 255, 1),
        0 0 10px rgba(190, 230, 255, 0.9),
        0 0 20px rgba(70, 150, 255, 0.4);
}

.back-window-arrow {
    display: inline-block;

    transition:
        transform 0.25s ease;
}

.back-window:hover .back-window-arrow,
.back-window:focus-visible .back-window-arrow {
    transform:
        translateX(-3px);
}

.project-synopsis {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    font-size: clamp(13px, 1.05vw, 15px);
    line-height: 1.75;
    letter-spacing: 0.02em;
    color: rgba(237, 246, 255, 0.8);
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.28),
        0 0 14px rgba(150, 200, 255, 0.18);
}

.project-meta-list {
    display: flex;

    flex-direction: column;

    gap: 10px;

    margin-bottom: 30px;
}

.project-meta {
    display: flex;

    flex-wrap: wrap;

    align-items: baseline;

    gap: 6px 14px;
}

.project-meta-label {
    font-size: 10px;

    letter-spacing: 0.15em;

    color:
        rgba(255, 255, 255, 0.5);

    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.3),
        0 0 12px rgba(150, 200, 255, 0.18);
}

.project-meta-value {
    font-size: 12px;

    letter-spacing: 0.06em;

    color:
        rgba(237, 246, 255, 0.84);

    text-shadow:
        0 0 6px rgba(190, 225, 255, 0.24);
}

.project-media {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 26px 24px;

    margin-bottom: 34px;
}

.project-video-label {
    margin-bottom: 10px;

    font-size: 10px;

    letter-spacing: 0.15em;

    color:
        rgba(255, 255, 255, 0.56);

    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.3),
        0 0 12px rgba(150, 200, 255, 0.18);
}

.project-video-frame {
    display: block;

    width: 100%;

    aspect-ratio:
        16 / 9;

    overflow: hidden;

    background:
        rgba(0, 0, 0, 0.65);

    border:
        1px solid rgba(210, 230, 255, 0.35);

    box-shadow:
        0 0 10px rgba(100, 170, 255, 0.12);
}

.project-video-frame iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}

.project-stills {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    align-items: start;

    gap: 16px;
}

.project-stills img {
    display: block;

    width: 100%;
    height: auto;

    border:
        1px solid rgba(210, 230, 255, 0.22);

    opacity: 0.92;

    transition:
        opacity 0.35s ease,
        border-color 0.35s ease;
}

.project-stills img:hover {
    opacity: 1;

    border-color:
        rgba(226, 240, 255, 0.5);
}

.project-screenings {
    margin-top: 34px;
}

.project-screening-list {
    display: flex;

    flex-direction: column;

    gap: 7px;

    margin-top: 12px;

    list-style: none;

    font-size: 12px;

    line-height: 1.6;

    letter-spacing: 0.05em;

    color:
        rgba(237, 246, 255, 0.74);

    text-shadow:
        0 0 6px rgba(190, 225, 255, 0.2);
}

@media (max-width: 700px) {

    .work-grid {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 34px;
    }

    .project-media,
    .project-stills {
        grid-template-columns:
            minmax(0, 1fr);
    }
}


/* =========================================================
   CLIENT WORK — ASPECT-RATIO AWARE MEDIA
   ========================================================= */

/*
   Personal Work: 4:3 heroes keep their natural aspect ratio.
   Scoped to the Personal Work grid only.
*/

#work .work-project-hero.ratio-4-3 {
    aspect-ratio: 4 / 3;
}

/*
   Client Work heroes keep their source aspect ratio:
   landscape stays landscape, portrait stays portrait.
   Nothing is cropped or stretched.
*/

#client-work .work-project-hero {
    aspect-ratio: auto;

    height: auto;
}

#client-work .work-project-hero img {
    height: auto;

}

#client-work .work-project {
    align-self: center;
}

    object-fit: contain;
}

/* Portrait 9:16 player for vertical YouTube Shorts */
.project-video-frame.is-portrait {
    aspect-ratio:
        9 / 16;

    width: min(100%, 340px);
}

.system-information {
    position: fixed;
    z-index: 20;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(14px, env(safe-area-inset-left));
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    pointer-events: none;
    color: rgba(237, 246, 255, 0.72);
    font-size: 10px;
    line-height: 1.65;
    letter-spacing: 0.08em;
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.58),
        0 0 10px rgba(190, 225, 255, 0.56);
    opacity: 0.68;

    transition:
        filter 0.45s ease,
        opacity 0.55s ease;

    translate:
        var(--parallax-status-x)
        var(--parallax-status-y);
}

.system-readout {
    display: flex;
    flex-direction: column;
}

.system-clock {
    align-items: flex-end;
    font-variant-numeric: tabular-nums;
}

#presence-status {
    transition: opacity 0.55s ease;
}

#presence-status.changing {
    opacity: 0.12;
}

.sound-toggle {
    position: fixed;
    z-index: 21;
    left: 50%;
    bottom: max(13px, env(safe-area-inset-bottom));
    padding: 4px 6px;
    border: 0;
    background: transparent;
    color: rgba(237, 246, 255, 0.65);
    font: inherit;
    font-size: 9px;
    letter-spacing: 0.08em;
    opacity: 0.58;
    transform: translateX(-50%);
    cursor: pointer;
    transition:
        opacity 0.25s ease,
        filter 0.45s ease;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
    opacity: 0.95;
}

.homepage-content.dormant:not(.dimmed) .float-inner {
    opacity: 0.78;
}

.system-information.dormant {
    opacity: 0.4;
}

.homepage-content.dormant:not(.dimmed) .showreel h2 {
    text-shadow:
        0 0 3px rgba(255, 255, 255, 0.55),
        0 0 8px rgba(180, 220, 255, 0.25);
}

.sound-toggle:focus-visible {
    outline: 1px solid rgba(220, 238, 255, 0.65);
    outline-offset: 3px;
}

.cursor-light-trail {
    position: fixed;

    top: 0;
    left: 0;

    z-index: 2147483647 !important;

    display: none;

    width: 144px;
    height: 144px;

    pointer-events: none;

    transform-origin: 72px 72px;

    will-change: transform, opacity;
}

body.cursor-system-active,
body.cursor-system-active * {
    cursor: none !important;
}

body.cursor-system-active .cursor-light-trail {
    display: block;
    z-index: 30;
}

.water-ripple-layer {
    position: fixed;
    inset: 0;
    z-index: 29;
    pointer-events: none;
}

.water-ripple {
    position: absolute;
    top: var(--water-ripple-y, -999px);
    left: var(--water-ripple-x, -999px);
    width: 220px;
    height: 220px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, -50%, 0) scale(0.12);
    -webkit-backdrop-filter: blur(0.85px);
    backdrop-filter: blur(0.85px);
    -webkit-mask-image: radial-gradient(
        circle,
        transparent 0 58%,
        #000 68% 80%,
        transparent 91%
    );
    mask-image: radial-gradient(
        circle,
        transparent 0 58%,
        #000 68% 80%,
        transparent 91%
    );
    will-change: transform, opacity;
}

.water-ripple-layer.is-rippling .water-ripple {
    visibility: visible;
    animation: localWaterRipple 430ms cubic-bezier(0.2, 0.65, 0.25, 1) both;
}

.water-ripple-layer.is-rippling .water-ripple-two {
    width: 190px;
    height: 190px;
    animation-delay: 85ms;
    -webkit-backdrop-filter: blur(0.58px);
    backdrop-filter: blur(0.58px);
}

.water-ripple-layer.is-rippling .water-ripple-three {
    width: 165px;
    height: 165px;
    animation-delay: 165ms;
    -webkit-backdrop-filter: blur(0.38px);
    backdrop-filter: blur(0.38px);
}

@keyframes localWaterRipple {
    0% {
        transform: translate3d(-50%, -50%, 0) scale(0.12);
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translate3d(-50%, -50%, 0) scale(1);
        opacity: 0;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .system-information {
        right: max(10px, env(safe-area-inset-right));
        left: max(10px, env(safe-area-inset-left));
        font-size: 9px;
    }

    .sound-toggle {
        bottom: max(54px, calc(env(safe-area-inset-bottom) + 40px));
    }

    .homepage-content {
        padding-top: 15vh;
        padding-bottom: 12vh;
    }

    .identity h1 {
        font-size:
            clamp(20px, 9.3vw, 56px);
    }

    .identity p {
        font-size: 10px;

        letter-spacing:
            0.08em;
    }

    .main-menu {
        margin-top: 45px;
    }

    .main-menu button {
        font-size: 18px;
    }

    .showreel {
        width: 88vw;

        margin-top: 60px;
    }

    .site-window {
        width: 92vw;

        max-height: 86vh;

        padding:
            65px 25px 35px;
    }
}

/* =========================================================
   INDIVIDUAL TEXT DRIFT
   ========================================================= */

.float-inner {
    display: inline-block;
    will-change: transform;
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
    .background video {
        transform: scale(1.015);
    }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
    .cursor-light-trail {
        display: none !important;
    }

}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .site-window .window-surface,
    .site-window::after {
        transition-duration: 90ms !important;
        transition-delay: 0ms !important;
    }

    .homepage-content.booting .identity h1.boot-title,
    .homepage-content.booting .identity p.boot-roles,
    .homepage-content.booting .main-menu button.boot-item,
    .homepage-content.booting .showreel h2.boot-showreel-title,
    .homepage-content.booting .showreel-video.boot-showreel-video {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* =========================================================
   PROJECT IMAGE LIGHTBOX
   ========================================================= */

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0, 0, 0, 0.82);

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

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.image-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.image-lightbox-stage {
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    touch-action: none;
}

.image-lightbox-figure {
    /*
       The stage centers this unit: the image and the wiki caption
       travel together, and the caption can never push the image or
       the close control off screen.
    */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    max-width: 100%;
    max-height: 100%;

    min-width: 0;
    min-height: 0;

    margin: 0;
}

/*
   Wiki media viewer caption. It is filled from the article's own
   <figcaption> and stays subordinate to the image; an image with no
   caption (`:empty`) shows no caption box at all.
*/

.image-lightbox-caption {
    max-width: 100%;

    margin-top: 12px;
    padding: 0 4px;

    color: #a2a9b1;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    line-height: 1.4;

    text-align: center;

    opacity: 0;
    transform: translateY(6px);

    transition:
        opacity 0.24s ease,
        transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.image-lightbox-caption:empty {
    display: none;
}

.image-lightbox.is-open .image-lightbox-caption {
    opacity: 1;
    transform: none;

    /* The caption settles in just after the image starts moving. */
    transition-delay: 0.06s;
}

/*
   About Wiki media viewer state.

   The wiki assets are not large enough for a full-screen viewer, so
   an enlarged wiki image stays around 44vw x 50vh on desktop:
   noticeably bigger than its article thumbnail, with plenty of
   empty space around it. Aspect ratio is untouched, and there is
   exactly one enlarged size - wiki media cannot be zoomed or
   dragged.
*/

.image-lightbox.is-wiki-media .image-lightbox-image {
    max-width: min(44vw, 640px);
    max-height: 50vh;

    cursor: default;
}

.image-lightbox-image {
    display: block;

    max-width: 100%;
    max-height: 100%;

    min-width: 0;
    min-height: 0;

    width: auto;
    height: auto;

    object-fit: contain;

    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;

    cursor: zoom-in;

    transform-origin: center center;

    will-change: transform;

    transition: transform 0.18s ease;
}

.image-lightbox.is-zoomed .image-lightbox-image {
    cursor: grab;
}

.image-lightbox.is-dragging .image-lightbox-image {
    cursor: grabbing;
    transition: none;
}

.image-lightbox-close {
    position: absolute;

    top: 24px;
    right: 28px;

    z-index: 2;

    width: 42px;
    height: 42px;

    padding: 0;

    border: none;
    background: transparent;

    color: rgba(255, 255, 255, 0.9);

    font-family: "Neuropol", sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.8),
        0 0 14px rgba(100, 170, 255, 0.55);

    transition:
        color 0.2s ease,
        text-shadow 0.2s ease,
        transform 0.2s ease;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
    color: #ffffff;

    text-shadow:
        0 0 5px rgba(255, 255, 255, 1),
        0 0 12px rgba(190, 230, 255, 0.9),
        0 0 25px rgba(70, 140, 255, 0.7);

    transform: scale(1.08);
}

.project-stills img {
    cursor: zoom-in;
}

@media (max-width: 700px) {
    .image-lightbox {
        padding: 15px;
    }

    .image-lightbox.is-wiki-media .image-lightbox-image {
        max-width: 86vw;
        max-height: 52vh;
    }

    .image-lightbox-caption {
        margin-top: 10px;
        font-size: 0.76rem;
    }

    .image-lightbox-close {
        top: 12px;
        right: 14px;

        width: 40px;
        height: 40px;

        font-size: 28px;
    }
}

/* =========================================================
   SHOWREEL VIDEO
   ========================================================= */

.showreel-video {
    width: 100%;
    margin-top: 28px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.showreel-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

/* =========================================================
   CURSOR FADE OVER VIDEO EMBEDS
   ========================================================= */

.cursor-light-trail {
    transition: opacity 0.35s ease;
}

body.cursor-over-video .cursor-light-trail,
body.cursor-outside-page .cursor-light-trail {
    opacity: 0 !important;
    transition: opacity 0.35s ease;
}

/* =========================================================
   CONTACT CTA
   ========================================================= */

.contact-cta {
    margin-top: 28px;
    margin-bottom: 0;
    color: rgba(225, 238, 250, 0.72);
    font-family: "Neuropol", sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.06em;
}

/* =========================================================
   CONTACT LINKS
   ========================================================= */

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 26px;

    margin-top: 35px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 22px;

    width: fit-content;

    color: rgba(245, 250, 255, 0.94);

    text-decoration: none;

    font-family: "Neuropol", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.08em;

    transition:
        color 0.35s ease,
        text-shadow 0.35s ease,
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    flex-shrink: 0;

    color: rgba(235, 248, 255, 0.94);

    filter:
        drop-shadow(0 0 3px rgba(255, 255, 255, 0.75))
        drop-shadow(0 0 8px rgba(100, 175, 255, 0.55));

    transition:
        filter 0.35s ease,
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-link-icon svg {
    display: block;

    width: 100%;
    height: 100%;

    overflow: visible;

    stroke: currentColor;
    stroke-width: 1.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-link:hover,
.contact-link:focus-visible {
    color: rgba(235, 248, 255, 1);

    text-shadow:
        0 0 4px rgba(255, 255, 255, 1),
        0 0 10px rgba(190, 230, 255, 0.95),
        0 0 22px rgba(80, 165, 255, 0.8),
        0 0 42px rgba(60, 130, 255, 0.5);

    transform: translateX(6px);
}

.contact-link:hover .contact-link-icon,
.contact-link:focus-visible .contact-link-icon {
    filter:
        drop-shadow(0 0 4px rgba(255, 255, 255, 1))
        drop-shadow(0 0 10px rgba(190, 230, 255, 0.9))
        drop-shadow(0 0 24px rgba(70, 145, 255, 0.7));

    transform: scale(1.08);
}

/* =========================================================
   ABOUT WIKI
   ========================================================= */

.about-wiki {
    position: relative;

    /*
       Matches the window's desktop content box exactly (1000px
       minus 70px padding either side), so the wiki fills its
       window at 860px and never stretches wider on any screen.
    */
    width: min(100%, 860px);
    min-height: 850px;

    margin: 0 auto;
    padding: 0;

    background: #202122;
    color: #eaecf0;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;

    border: 1px solid #3a3d40;
}

/* =========================================================
   ABOUT WIKI OUTER BREATHING ROOM
   ========================================================= */

/*
   The About window is the one archive window allowed past the
   standard 950px - a fake encyclopedia page needs a little more
   room than a normal widget - but it stays close to that original
   size: 1000px keeps the wiki clearly wider than the first
   version without reading as a stretched canvas. 94vw keeps it
   inside every viewport; below 701px the mobile block re-aligns
   it with the other windows (92vw).
*/
#about.site-window {
    width: min(1000px, 94vw);
}

/*
   Inner margins between the window edge and the wiki page, scaled
   down from the old 110px so the wider page never reads as a
   stretched container. The vertical padding stays on the shared
   .window-content rule.
*/
#about .window-content {
    padding-left: 70px;
    padding-right: 70px;
}

/* ---------------------------------------------------------
   WIKI HEADER
   --------------------------------------------------------- */

.about-wiki-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    width: 100%;
    box-sizing: border-box;

    margin: 0;
    padding: 16px 32px 13px;

    background: #27292b;
    border-bottom: 1px solid #54595d;

    /*
       Deliberately NOT sticky.
       The header belongs to the top of the Wiki page
       and scrolls away with the article.
    */
    position: static;
}


/* ---------------------------------------------------------
   WIKI BRAND
   --------------------------------------------------------- */

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

.about-wiki-logo {
    display: block;

    width: 46px;
    height: 52px;

    object-fit: contain;

    filter: grayscale(1) brightness(1.45);
}

.about-wiki-wordmark {
    margin-left: 9px;
    line-height: 1;
}

.about-wiki-wordmark-title {
    color: #f8f9fa;

    font-family:
        "Linux Libertine",
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.45rem;
    font-weight: 400;

    letter-spacing: -0.035em;

    text-shadow: none !important;
}

.about-wiki-wordmark-tagline {
    margin-top: 3px;

    color: #a2a9b1;

    font-family:
        "Linux Libertine",
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.68rem;

    letter-spacing: 0.02em;

    text-shadow: none !important;
}


/* ---------------------------------------------------------
   SEARCH
   --------------------------------------------------------- */

.about-wiki-search {
    display: flex;
    align-items: center;

    /* Grows with the wider header, but never past 480px. */
    width: min(480px, 46%);
    height: 32px;

    border: 1px solid #72777d;
    background: #202122;
}

.about-wiki-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 100%;

    color: #c8ccd1;
    font-size: 17px;
}

.about-wiki-search-url {
    flex: 1;
    min-width: 0;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    color: #c8ccd1;
    font-size: 0.75rem;
}

.about-wiki-search-button {
    display: flex;
    align-items: center;
    align-self: stretch;

    padding: 0 11px;

    background: #2f3235;
    border-left: 1px solid #72777d;

    color: #eaecf0;
    font-size: 0.75rem;
    font-weight: 600;
}


/* --------------------------------------------------------- 
   LEFT TABLE OF CONTENTS 
   --------------------------------------------------------- */ 
 
.about-wiki-sidebar { 
    position: sticky; 
    top: 24px; 
    float: left; 
    box-sizing: border-box; 
 
    /* Narrower sidebar to give the article more room. */ 
    width: 150px; 
    margin: 25px 0 0; 
    padding: 0 14px 60px 14px; 
    color: #eaecf0; 
} 
 
.about-wiki-toc-title { 
    margin-bottom: 10px; 
    padding-bottom: 7px; 
    border-bottom: 1px solid #54595d; 
    color: #f8f9fa; 
    font-size: 0.86rem; 
    font-weight: 700; 
    text-shadow: none !important; 
} 
 
.about-wiki-toc ol { 
    margin: 0; 
    padding-left: 20px; 
} 
 
.about-wiki-toc li { 
    margin: 3px 0; 
    padding: 0; 
    color: #a2a9b1; 
    font-size: 0.82rem; 
    line-height: 1.65; 
} 
 
.about-wiki-toc a { 
    color: #8ab4f8; 
    text-decoration: none; 
    text-shadow: none !important; 
} 
 
.about-wiki-toc a:hover { 
    color: #aecbfa; 
    text-decoration: underline; 
} 
 
.about-wiki-article { 
    position: relative; 
    box-sizing: border-box; 
    min-height: 850px; 
    margin-left: 150px;
    padding: 28px 32px 64px 10px; 
    background: #202122; 
    overflow: hidden; 
} 
 
.about-wiki-article > h1 { 
    margin: 0 0 7px; 
    padding-bottom: 6px; 
 
    border-bottom: 1px solid #72777d; 
 
    color: #f8f9fa; 
 
    font-family: 
        "Linux Libertine", 
        Georgia, 
        "Times New Roman", 
        serif; 
 
    font-size: 2.2em; 
    font-weight: 400; 
 
    letter-spacing: 0; 
    line-height: 1.25; 
 
    text-shadow: none !important; 
} 
 
.about-wiki-intro { 
    max-width: 700px; 
 
    margin: 0 0 24px; 
 
    color: #c8ccd1; 
 
    font-size: 0.86rem; 
 
    text-shadow: none !important; 
} 


/* ---------------------------------------------------------
   INFOBOX
   --------------------------------------------------------- */

.about-wiki-infobox {
    float: right;
    width: 235px;
    margin: 0 0 18px 24px;
    padding: 5px;

    background: #27292b;

    border: 1px solid #72777d;
    border-radius: 0;

    color: #eaecf0;
}

.about-wiki-infobox-image {
    /*
       A plain block, not a flex row: the portrait and its caption
       stack vertically - image first, caption underneath - exactly
       like the framed .about-wiki-media figures.

       Deliberately no fixed height: the frame follows the
       portrait's own 3:4 aspect ratio at the full infobox width.
    */
    display: block;

    width: 100%;

    margin-bottom: 5px;

    background: #3a3d40;
    border: 1px solid #54595d;

    color: #a2a9b1;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
}

.about-wiki-infobox-image img {
    /*
       Without a pinned width the portrait is a flex item sized
       from its 2556px intrinsic width and blows out of the
       infobox (and of the article), so the width is forced to
       100% of the frame; height: auto keeps the 3:4 ratio.
    */
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    min-width: 0;
}

.about-wiki-infobox-row {
    display: grid;

    grid-template-columns: 85px 1fr;
    gap: 7px;

    padding: 6px 5px;

    border-top: 1px solid #3f4245;

    font-size: 0.77rem;
    line-height: 1.4;
}

.about-wiki-infobox-row strong {
    color: #eaecf0;
    font-weight: 700;
}

.about-wiki-infobox-row span {
    color: #c8ccd1;
}


/* ---------------------------------------------------------
   SECTIONS
   --------------------------------------------------------- */

.about-wiki-section {
    scroll-margin-top: 25px;
    margin-bottom: 30px;
}

.about-wiki-section h2 {
    margin: 0 0 9px;
    padding-bottom: 3px;

    border-bottom: 1px solid #72777d;

    color: #f8f9fa;

    font-family:
        "Linux Libertine",
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.5em;
    font-weight: 400;

    letter-spacing: 0;
    line-height: 1.25;

    text-shadow: none !important;
}

.about-wiki-section p {
    max-width: none;

    margin: 0 0 11px;

    color: #d3d7da;

    font-size: 0.86rem;

    text-shadow: none !important;
}

.about-wiki-section strong {
    color: #f0f2f3;
    font-weight: 700;
}

.about-wiki-section em {
    color: #e0e2e4;
}


/* ---------------------------------------------------------
   LINKS
   --------------------------------------------------------- */

.about-wiki a {
    color: #8ab4f8;
    text-decoration: none;
}

.about-wiki a:hover {
    color: #aecbfa;
    text-decoration: underline;
}


/* ---------------------------------------------------------
   MEDIA
   --------------------------------------------------------- */

.about-wiki-media {
    clear: both;

    width: fit-content;
    max-width: 100%;

    margin: 20px auto 25px;

    padding: 5px;

    background: #27292b;
    border: 1px solid #54595d;
}

.about-wiki-media img {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    margin: 0 auto;
}

.about-wiki-media figcaption,
.about-wiki-influence figcaption,
.about-wiki-infobox-image figcaption {
    margin-top: 6px;

    color: #a2a9b1;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    line-height: 1.35;
}

.about-wiki-media figcaption,
.about-wiki-infobox-image figcaption {
    width: 0;
    min-width: 100%;

    margin-top: 5px;
    padding: 4px 3px 1px;

    border-top: 1px solid #3f4245;
}


/* ---------------------------------------------------------
   BIOGRAPHY CAMCORDER ONLY
   --------------------------------------------------------- */

#wiki-biography {
    display: flow-root;
}

#wiki-biography > .about-wiki-media {
    float: left;
    clear: none;

    width: 45%;
    max-width: 360px;
    box-sizing: border-box;

    margin: 20px 24px 24px 0;
}

#wiki-biography > .about-wiki-media img {
    display: block;

    width: 100%;
    max-width: none;
    height: auto;
}

/* Education must begin below the entire Biography composition */
#wiki-education {
    clear: both;
}


/* ---------------------------------------------------------
   INDIVIDUAL MEDIA SIZING
   --------------------------------------------------------- */

.about-wiki-media img[src*="film-crew"] {
    max-width: 400px;
}

.about-wiki-media img[src*="close-up-the-house"] {
    max-width: 340px;
}

.about-wiki-media img[src*="hungarian-film-week"] {
    max-width: 400px;
}

.about-wiki-zoomable {
    cursor: zoom-in;
}


/* ---------------------------------------------------------
   WALK CYCLE ANIMATION
   --------------------------------------------------------- */

.about-wiki-media.about-wiki-walk-cycle img {
    width: 100%;
    max-width: 400px;
    height: auto;

    aspect-ratio: 1 / 1;
    object-fit: contain;
}


/* ---------------------------------------------------------
   SOFTWARE
   --------------------------------------------------------- */

.about-wiki-software {
    margin-top: 16px !important;

    color: #a2a9b1 !important;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
}


/* ---------------------------------------------------------
   INFLUENCES
   --------------------------------------------------------- */

.about-wiki-influences {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;

    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;

    max-width: 504px;
}

.about-wiki-influence {
    min-width: 0;
}

.about-wiki-influence img {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    object-fit: contain;
}


/* ---------------------------------------------------------
   REFERENCES
   --------------------------------------------------------- */

.about-wiki-references {
    margin: 0;
    padding-left: 28px;
}

.about-wiki-references li {
    margin-bottom: 4px;

    color: #c8ccd1;

    font-size: 0.84rem;
}


/* ---------------------------------------------------------
   CATEGORIES
   --------------------------------------------------------- */

.about-wiki-categories {
    clear: both;

    display: flex;
    flex-wrap: wrap;
    gap: 4px;

    margin-top: 35px;
    padding: 12px 0;

    border-top: 1px solid #72777d;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
}

.about-wiki-categories span {
    color: #c8ccd1;
    margin-right: 4px;
}

.about-wiki-categories a {
    padding: 2px 6px;

    background: #27292b;
    border: 1px solid #54595d;

    color: #8ab4f8;
    text-decoration: none;
}

.about-wiki-categories a:hover {
    background: #3a3d40;
    color: #aecbfa;
    text-decoration: underline;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .about-wiki {
        width: 100%;
        min-height: 0;
    }

    #about.site-window {
        width: 92vw;
    }

    #about .window-content {
        padding-left: 8px;
        padding-right: 8px;
    }

    .about-wiki-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 13px 16px;
    }

    .about-wiki-search {
        width: 100%;
    }

    .about-wiki-sidebar {
        display: none;
    }

    .about-wiki-article {
        margin-left: 0;
        padding: 22px 16px 50px;
    }

    .about-wiki-article > h1 {
        font-size: 2em;
    }

    .about-wiki-infobox {
        float: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 25px;
    }

    .about-wiki-infobox-image {
        margin-bottom: 12px;
    }

    .about-wiki-section {
        margin-bottom: 30px;
    }

    .about-wiki-section h2 {
        font-size: 1.4em;
    }

    /* On narrow screens the camcorder returns to normal article flow. */
    #wiki-biography > .about-wiki-media {
        float: none;
        width: fit-content;
        max-width: 100%;
        margin: 20px auto 25px;
    }

    #wiki-biography > .about-wiki-media img {
        max-width: 360px;
    }

    .about-wiki-influences {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* =========================================================
   MOBILE LAYOUT
   Desktop rules above this section remain unchanged.
   ========================================================= */

@media (max-width: 768px) {
    .homepage-content {
        min-height: 100vh;
        min-height: 100svh;
        padding: clamp(64px, 10svh, 92px) 16px
            calc(36px + env(safe-area-inset-bottom));
    }

    .identity {
        width: 100%;
    }

    .identity h1 {
        font-size: clamp(28px, 8.8vw, 40px);
        line-height: 1.08;
        letter-spacing: 0;
        white-space: nowrap;
    }

    .identity p {
        margin-top: 13px;
        font-size: clamp(11px, 2.9vw, 13px);
        line-height: 1.45;
        letter-spacing: 0.035em;
        white-space: nowrap;
    }

    .main-menu {
        align-items: stretch;
        align-self: center;
        width: min(100%, 360px);
        margin: 30px auto 0;
        gap: 4px;
    }

    .main-menu button {
        width: 100%;
        min-height: 48px;
        padding: 10px 6px;
        font-size: clamp(17px, 4.8vw, 19px);
        line-height: 1.35;
    }

    .showreel {
        width: min(100%, 560px);
        margin-top: 28px;
    }

    .showreel h2 {
        margin-bottom: 6px;
        font-size: 12px;
        line-height: 1.4;
        letter-spacing: 0.1em;
    }

    .showreel-video {
        width: 100%;
        margin-top: 0;
        aspect-ratio: 16 / 9;
    }

    .system-information,
    .sound-toggle {
        display: none !important;
    }

    .window-container {
        inset: 0;
        overflow: visible;
    }

    .site-window {
        top: max(10px, env(safe-area-inset-top));
        right: max(10px, env(safe-area-inset-right));
        bottom: max(10px, env(safe-area-inset-bottom));
        left: max(10px, env(safe-area-inset-left));
        width: auto;
        height: auto;
        max-width: none;
        max-height: none;
        padding: 0;
        overflow: visible;
    }

    #about.site-window {
        width: auto;
    }

    .window-content {
        width: 100%;
        height: 100%;
        max-height: none;
        min-height: 0;
        padding: 68px clamp(16px, 4.8vw, 22px)
            calc(28px + env(safe-area-inset-bottom));
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    #about .window-content {
        padding-right: 0;
        padding-left: 0;
    }

    .window-surface {
        inset: -46px;
        filter: blur(38px);
    }

    .site-window::after {
        inset: -8px;
        filter: blur(5px);
    }

    .window-label {
        top: 17px;
        left: 18px;
        font-size: 8px;
        letter-spacing: 0.11em;
    }

    .close-window {
        top: 8px;
        right: 8px;
        z-index: 3;
        display: grid;
        width: 46px;
        height: 46px;
        place-items: center;
        font-size: 28px;
    }

    .site-window h2 {
        margin-bottom: 20px;
        padding-right: 34px;
        font-size: clamp(23px, 6.5vw, 31px);
        line-height: 1.22;
        letter-spacing: 0;
        overflow-wrap: anywhere;
    }

    .site-window h2 .float-inner {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .back-window {
        min-height: 44px;
        margin-bottom: 16px;
        padding: 8px 4px;
        font-size: 11px;
        letter-spacing: 0.08em;
    }

    .work-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .work-project {
        width: 100%;
        min-height: 44px;
    }

    .work-project-title {
        margin-top: 11px;
        font-size: 14px;
        line-height: 1.45;
        letter-spacing: 0.035em;
        overflow-wrap: anywhere;
    }

    .project-synopsis {
        margin-bottom: 19px;
        font-size: 15px;
        line-height: 1.65;
        letter-spacing: 0;
    }

    .project-meta-list {
        gap: 12px;
        margin-bottom: 24px;
    }

    .project-meta {
        align-items: flex-start;
        gap: 5px 10px;
    }

    .project-meta-label {
        font-size: 10px;
        line-height: 1.45;
        letter-spacing: 0.1em;
    }

    .project-meta-value {
        font-size: 13px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        overflow-wrap: anywhere;
    }

    .project-media,
    .project-stills {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .project-media {
        margin-bottom: 25px;
    }

    .project-video-frame {
        width: 100%;
    }

    .project-video-frame.is-portrait {
        width: min(100%, 340px);
        aspect-ratio: 9 / 16;
        margin-right: auto;
        margin-left: auto;
    }

    .project-screening-list {
        font-size: 13px;
        line-height: 1.6;
        letter-spacing: 0.02em;
    }

    .contact-cta {
        margin-top: 12px;
        font-size: 1rem;
        line-height: 1.55;
        letter-spacing: 0.025em;
    }

    .contact-links {
        gap: 16px;
        margin-top: 24px;
    }

    .contact-link {
        width: 100%;
        min-height: 48px;
        gap: 14px;
        font-size: clamp(0.9rem, 4.3vw, 1.05rem);
        line-height: 1.45;
        letter-spacing: 0.025em;
    }

    .contact-link-text {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .about-wiki {
        width: 100%;
        min-height: 0;
        font-size: 14px;
        line-height: 1.6;
    }

    .about-wiki-header {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 13px 14px;
    }

    .about-wiki-brand {
        min-width: 0;
    }

    .about-wiki-logo {
        width: 38px;
        height: 44px;
    }

    .about-wiki-wordmark-title {
        font-size: clamp(17px, 5vw, 21px);
        letter-spacing: 0;
    }

    .about-wiki-wordmark-tagline {
        font-size: 0.65rem;
    }

    .about-wiki-search {
        width: 100%;
        min-width: 0;
        height: 36px;
    }

    .about-wiki-search-url {
        font-size: 0.7rem;
    }

    .about-wiki-search-button {
        padding: 0 8px;
        font-size: 0.7rem;
    }

    .about-wiki-sidebar {
        position: static;
        display: block;
        float: none;
        width: auto;
        margin: 14px 14px 18px;
        padding: 0;
    }

    .about-wiki-toc ol {
        display: block;
        padding-left: 24px;
    }

    .about-wiki-toc li {
        margin: 0;
        padding: 0;
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .about-wiki-toc a {
        display: block;
        min-height: 40px;
        padding: 10px 2px;
    }

    .about-wiki-article {
        min-height: 0;
        margin: 0;
        padding: 20px 15px 44px;
        overflow: visible;
    }

    .about-wiki-article > h1 {
        margin-bottom: 10px;
        font-size: clamp(27px, 7vw, 34px);
        line-height: 1.2;
    }

    .about-wiki-intro,
    .about-wiki-section p {
        max-width: none;
        font-size: 0.93rem;
        line-height: 1.65;
    }

    .about-wiki-infobox {
        float: none;
        width: 100%;
        max-width: 420px;
        margin: 0 auto 24px;
    }

    .about-wiki-infobox-row {
        grid-template-columns: minmax(76px, 0.42fr) minmax(0, 1fr);
        gap: 6px 8px;
        font-size: 0.82rem;
    }

    .about-wiki-section {
        margin-bottom: 28px;
    }

    .about-wiki-section h2 {
        font-size: 1.35em;
        line-height: 1.3;
    }

    .about-wiki-media {
        width: fit-content;
        max-width: 100%;
        margin: 18px auto 22px;
    }

    .about-wiki-media img,
    .about-wiki-influence img {
        max-width: 100%;
        height: auto;
    }

    #wiki-biography > .about-wiki-media {
        float: none;
        clear: both;
        width: fit-content;
        max-width: 100%;
        margin: 18px auto 22px;
    }

    #wiki-biography > .about-wiki-media img {
        width: 100%;
        max-width: 100%;
    }

    #wiki-education {
        clear: both;
    }

    .about-wiki-influences {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        max-width: 420px;
    }

    .about-wiki-influence figcaption,
    .about-wiki-media figcaption,
    .about-wiki-infobox-image figcaption {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .about-wiki-references {
        padding-left: 22px;
    }

    .about-wiki-references li {
        font-size: 0.88rem;
        line-height: 1.55;
        overflow-wrap: anywhere;
    }

    .about-wiki-categories {
        gap: 6px;
        font-size: 0.76rem;
        line-height: 1.5;
    }

    .about-wiki-categories a {
        min-height: 44px;
        padding: 8px 10px;
    }

    .image-lightbox {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        padding: max(12px, env(safe-area-inset-top)) 12px
            max(12px, env(safe-area-inset-bottom));
    }

    .image-lightbox-stage {
        width: 100%;
        height: 100%;
    }

    .image-lightbox-image {
        max-width: calc(100vw - 28px);
        max-height: calc(100dvh - 100px);
    }

    .image-lightbox.is-wiki-media .image-lightbox-image {
        max-width: min(86vw, 640px);
        max-height: min(58dvh, 580px);
    }

    .image-lightbox-close {
        top: max(8px, env(safe-area-inset-top));
        right: max(8px, env(safe-area-inset-right));
        width: 46px;
        height: 46px;
    }

    button,
    a,
    [role="button"],
    .work-project,
    .contact-link,
    .about-wiki-toc a,
    .about-wiki-categories a {
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
    }
}

@media (hover: none), (pointer: coarse) {
    .main-menu button:hover:not(:focus-visible) {
        margin-left: 0;
        color: white;
    }

    .main-menu button:hover:not(:focus-visible) .menu-arrow {
        opacity: 0;
    }

    body:not(.archive-active):has(.main-menu button:hover:not(:focus-visible)) .background video {
        transform: scale(1.015);
    }

    body:not(.archive-active):has(.main-menu button:hover:not(:focus-visible)) .background-overlay::after {
        opacity: 0;
    }

    #work.site-window[data-window-state="open"]:has(.work-project:hover:not(:focus-visible)) .work-project:not(:hover),
    #client-work.site-window[data-window-state="open"]:has(.work-project:hover:not(:focus-visible)) .work-project:not(:hover),
    #work.site-window[data-window-state="open"]:has(.work-project:hover:not(:focus-visible)) .window-content > h2,
    #client-work.site-window[data-window-state="open"]:has(.work-project:hover:not(:focus-visible)) .window-content > h2,
    #work.site-window[data-window-state="open"]:has(.work-project:hover:not(:focus-visible)) .back-window,
    #client-work.site-window[data-window-state="open"]:has(.work-project:hover:not(:focus-visible)) .back-window {
        filter: none !important;
    }

    .site-window[data-window-state="open"] .work-project:hover:not(:focus-visible) .work-project-hero img {
        transform: none !important;
        filter: none !important;
    }

    .work-project:hover:not(:focus-visible) .work-project-hero {
        border-color: rgba(210, 230, 255, 0.26);
    }

    .work-project:hover:not(:focus-visible) .work-project-title {
        color: rgba(237, 246, 255, 0.78);
        text-shadow:
            0 0 5px rgba(255, 255, 255, 0.4),
            0 0 12px rgba(170, 220, 255, 0.2);
    }

    .contact-link:hover:not(:focus-visible) {
        color: rgba(245, 250, 255, 0.94);
        text-shadow: none;
        transform: none;
    }

    .contact-link:hover:not(:focus-visible) .contact-link-icon {
        transform: none;
    }

    .project-stills img:hover:not(:focus-visible) {
        opacity: 0.92;
        border-color: rgba(210, 230, 255, 0.22);
    }

    .image-lightbox-close:hover:not(:focus-visible) {
        transform: none;
    }
}

/* =========================================================
   MOBILE STATUS UI
   ========================================================= */

@media (max-width: 700px) {

    /* Visible on the homepage */
    .system-information {
        display: flex !important;
        visibility: visible !important;
        opacity: 0.68;
        z-index: 4;
        transition:
            opacity 0.55s ease,
            filter 0.55s ease;
    }

    .sound-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 0.58;
        z-index: 4;
        transition:
            opacity 0.55s ease,
            filter 0.55s ease;
    }

    /* Windows stay above the homepage */
    .window-container {
        z-index: 10;
    }

    /* Fade and blur status UI when a window is open */
    body.archive-active .system-information,
    body.archive-active .sound-toggle {
        opacity: 0.12;
        filter: blur(4px);
    }
}

/* =========================================================
   MOBILE STATUS UI
   ========================================================= */

@media (max-width: 700px) {

    /* Keep status UI visible on the homepage,
       but place it behind opened site windows. */
    .system-information {
        z-index: 4;
    }

    .sound-toggle {
        z-index: 4;
    }

}

/* Prevent lightbox opening/closing from changing page width */
body:has(.image-lightbox.is-open) {
    overflow-y: scroll !important;
}

/* =========================================================
   MOBILE PERFORMANCE
   ========================================================= */

@media (max-width: 768px) {

    /*
       Do not blur the entire homepage while a window is open.
       The opacity and transform still create the dimmed state.
    */
    .homepage-content.dimmed {
        filter: none;
    }

    /*
       Keep the darker archive background, but remove the
       expensive blur filter from the full-screen video.
    */
    body.archive-active .background video {
        filter:
            brightness(0.74)
            saturate(0.84)
            contrast(1.04);
    }

    /*
       Replace the large blur-based window surface with a
       soft radial gradient. The visual falloff remains,
       but the phone no longer has to blur a large layer.
    */
    .window-surface {
        filter: none;

        background:
            radial-gradient(
                ellipse at center,
                rgba(0, 0, 0, 0.42) 0%,
                rgba(0, 0, 0, 0.35) 62%,
                rgba(0, 0, 0, 0.18) 78%,
                transparent 100%
            );
    }

    /*
       Remove the second blur layer from the window edge.
       The existing mask still provides the soft falloff.
    */
    .site-window::after {
        filter: none;
    }

    /*
       The homepage is already heavily dimmed when a window
       opens, so the additional text blur is unnecessary on mobile.
    */
    body.archive-active .homepage-content .float-inner {
        filter: none;
    }
}

/* =========================================================
   MOBILE COMPOSITOR MOTION
   ========================================================= */

@media (max-width: 768px) {

    @keyframes mobileTextDrift {

        0% {
            transform: translate3d(0, 0, 0);
        }

        25% {
            transform: translate3d(2.8px, -1.6px, 0);
        }

        50% {
            transform: translate3d(-2.2px, 2.4px, 0);
        }

        75% {
            transform: translate3d(2.4px, 1.2px, 0);
        }

        100% {
            transform: translate3d(-1.4px, -2px, 0);
        }
    }

    /*
       Homepage identity
    */

    .homepage-content .identity h1 .float-inner {
        animation:
            mobileTextDrift
            8.2s
            ease-in-out
            -1.1s
            infinite
            alternate;
    }

    .homepage-content .identity p .float-inner {
        animation:
            mobileTextDrift
            7.1s
            ease-in-out
            -3.4s
            infinite
            alternate;
    }

    /*
       Homepage menu
    */

    .homepage-content .main-menu button:nth-child(1) .float-inner {
        animation:
            mobileTextDrift
            6.8s
            ease-in-out
            -2.2s
            infinite
            alternate;
    }

    .homepage-content .main-menu button:nth-child(2) .float-inner {
        animation:
            mobileTextDrift
            7.6s
            ease-in-out
            -4.1s
            infinite
            alternate;
    }

    .homepage-content .main-menu button:nth-child(3) .float-inner {
        animation:
            mobileTextDrift
            6.4s
            ease-in-out
            -1.8s
            infinite
            alternate;
    }

    .homepage-content .main-menu button:nth-child(4) .float-inner {
        animation:
            mobileTextDrift
            7.4s
            ease-in-out
            -4.8s
            infinite
            alternate;
    }

    /*
       Showreel title
    */

    .homepage-content .showreel h2 .float-inner {
        animation:
            mobileTextDrift
            8.8s
            ease-in-out
            -5.2s
            infinite
            alternate;
    }

    /*
       Archive window titles only drift while their window exists
       visually. Closed windows never run the animation.
    */

    .site-window[data-window-state="opening"] h2 .float-inner,
    .site-window[data-window-state="open"] h2 .float-inner {
        animation:
            mobileTextDrift
            7.8s
            ease-in-out
            -3.7s
            infinite
            alternate;
    }
}