:root {
    --bg: #030303;
    --fg: #e8e6e1;
    --muted: #7a7981;
    --line: rgba(255, 255, 255, .08);
    --lilac: #d8ccf2;
    --max: 1560px;
    --reveal: 0;
    --heroShift: 0px;
    --heroOpacity: 1;
    --imgOpacity: 0;
    --imgBlur: 16px;
    --imgY: 44px;
    --imgScale: 1.045;
    --veil: 1;
}

* {
    box-sizing: border-box
}

html {
    background: #000;
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: "Helvetica Neue", "Avenir Next", Avenir, Inter, Arial, sans-serif;
    font-weight: 200;
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    letter-spacing: .01em
}

a {
    color: inherit;
    text-decoration: none
}

img {
    display: block;
    max-width: 100%
}

::selection {
    background: var(--lilac);
    color: #050505
}

.wrap {
    width: min(calc(100% - 64px), var(--max));
    margin: 0 auto
}

.fade {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1)
}

.fade.in {
    opacity: 1;
    transform: none
}

header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 40;
    height: 66px;
    background: linear-gradient(to bottom, rgba(3, 3, 3, .78), rgba(3, 3, 3, .38), transparent);
    pointer-events: none
}

.nav {
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto
}

.nav .mini {
    width: 108px;
    opacity: .82
}

.nav .link {
    font-size: 8px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #77767d;
    font-weight: 300;
    transition: color .25s ease
}

.nav .link:hover {
    color: var(--lilac)
}

.hero {
    position: relative;
    min-height: 92svh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 13svh;
    overflow: clip;
    background: radial-gradient(1200px 700px at 60% 18%, rgba(216, 204, 242, .045), transparent 48%), #000
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: var(--heroOpacity);
    transform: translateY(var(--heroShift));
    will-change: opacity, transform
}

.hero-logo {
    width: min(430px, 58vw);
    margin-top: 3svh
}

.hero-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 28px rgba(216, 204, 242, .04))
}

.hero-floor {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 28svh;
    pointer-events: none;
    z-index: 3;
    background: radial-gradient(100% 70% at 50% 0%, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .72) 42%, rgba(0, 0, 0, .92) 64%, rgba(0, 0, 0, 1) 78%), linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .12) 18%, rgba(0, 0, 0, .5) 42%, rgba(0, 0, 0, .92) 74%, #000 100%);
    opacity: calc(.9 - var(--reveal) * .35)
}

.project-bridge {
    position: relative;
    margin-top: 0;
    padding-top: 10svh;
    z-index: 5
}

.project-stage {
    position: relative;
    height: 156svh;
    min-height: 1120px
}

.project-sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: clip;
    background: #000
}

.project-canvas {
    position: absolute;
    inset: 0;
    overflow: hidden
}

.project-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: var(--imgOpacity);
    transform: translateY(var(--imgY)) scale(var(--imgScale));
    filter: blur(var(--imgBlur)) brightness(.88) saturate(.9);
    will-change: opacity, transform, filter;
    transition: filter .2s linear
}

.project-topveil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, .985) 7%, rgba(0, 0, 0, .93) 16%, rgba(0, 0, 0, .82) 24%, rgba(0, 0, 0, .6) 34%, rgba(0, 0, 0, .34) 44%, rgba(0, 0, 0, .12) 54%, rgba(0, 0, 0, 0) 64%), radial-gradient(80% 56% at 50% 10%, rgba(0, 0, 0, .32) 0%, rgba(0, 0, 0, 0) 70%), linear-gradient(0deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .08) 38%, rgba(0, 0, 0, .06) 62%, rgba(0, 0, 0, .72));
    opacity: calc(.98 - var(--reveal) * .16)
}

.project-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 38%, rgba(0, 0, 0, .1) 58%, rgba(0, 0, 0, .42) 100%)
}

.project-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 0 32px
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    color: #b5b4bb;
    font-size: 8px;
    letter-spacing: .24em;
    text-transform: uppercase;
    font-weight: 300
}

.project-meta span:last-child {
    color: #8d8c93
}

.project-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px
}

.brandstack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 76vw
}

.gamelogo {
    width: min(325px, 44vw)
}

.gamelogo img {
    width: 100%;
    height: auto
}

.project-link {
    font-size: 8px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #a5a4ab;
    border-bottom: 1px solid rgba(255, 255, 255, .26);
    padding-bottom: 6px;
    font-weight: 300;
    transition: color .22s ease, border-color .22s ease
}

.project-link:hover {
    color: var(--lilac);
    border-color: var(--lilac)
}

.people .portrait {
    position: relative;
    aspect-ratio: 3 / 4;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    background: var(--bg);
}

.people .portrait::before {
    content: none;
}

.people .portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.08) brightness(.92);
}

.people .portrait::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--lilac);
    mix-blend-mode: color;
    opacity: .25;
    pointer-events: none;
}

.people-grid {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 14px
}

.person {
    min-width: 0
}

.portrait {
    aspect-ratio: 3/4;
    min-height: 260px;
    background: #080808;
    border: 1px solid rgba(255, 255, 255, .055);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 16px
}

.portrait:before {
    content: "";
    position: absolute;
    inset: -18%;
    background: radial-gradient(circle at 62% 40%, rgba(216, 204, 242, .055), transparent 26%), linear-gradient(145deg, transparent 42%, rgba(255, 255, 255, .016) 54%, transparent 66%)
}

.monogram {
    position: relative;
    z-index: 1;
    font-size: clamp(78px, 9vw, 144px);
    line-height: .72;
    font-weight: 100;
    letter-spacing: -.08em;
    color: #121215;
    user-select: none
}

.person-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 1px 0
}

.name {
    font-size: 10px;
    font-weight: 300;
    letter-spacing: .02em
}

.role {
    font-size: 7px;
    line-height: 1.5;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #67666d;
    text-align: right;
    max-width: 120px;
    font-weight: 300
}

.contact {
    border-top: 1px solid var(--line);
    padding: 38px 0 46px
}

.contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.email {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0;
    transition: color .22s ease
}

.email:hover {
    color: var(--lilac)
}

.links {
    display: flex;
    gap: 22px;
    font-size: 7px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #66666b;
    font-weight: 300
}

.links a {
    transition: color .22s ease
}

.links a:hover {
    color: var(--lilac)
}

footer {
    border-top: 1px solid rgba(255, 255, 255, .05);
    padding: 18px 0 22px
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #3c3c40;
    font-size: 7px;
    letter-spacing: .14em;
    text-transform: uppercase
}

.footer img {
    width: 90px;
    height: auto;
    opacity: .36
}

@media (max-width: 1000px) {
    .people-grid {
        grid-template-columns:repeat(2, 1fr)
    }

    .hero {
        min-height: 122svh
    }

    .project-stage {
        min-height: 1000px
    }
}

@media (max-width: 760px) {
    .wrap {
        width: min(calc(100% - 34px), var(--max))
    }

    .hero {
        min-height: 88svh;
        padding-top: 15svh
    }

    .hero-logo {
        width: min(360px, 72vw);
        margin-top: 7svh
    }

    .project-bridge {
        margin-top: 0;
        padding-top: 8svh
    }

    .project-stage {
        height: 148svh;
        min-height: 920px
    }

    .project-meta {
        gap: 18px;
        font-size: 7px;
        letter-spacing: .2em;
        flex-wrap: wrap
    }

    .project-bottom {
        align-items: flex-end
    }

    .gamelogo {
        width: min(250px, 60vw)
    }

    .project-link {
        font-size: 7px
    }

    .people {
        padding: 56px 0 72px
    }

    .people-grid {
        grid-template-columns:repeat(2, 1fr);
        gap: 28px 12px
    }

    .portrait {
        min-height: 210px
    }

    .contact-row, .footer {
        flex-direction: column;
        align-items: flex-start
    }
}

/* The opening stays quiet: one centered wordmark, a deep moving sky. */
.hero {
    min-height: 100svh;
    align-items: center;
    padding: 66px 24px;
    background: radial-gradient(ellipse at 70% 32%, rgba(86, 57, 134, .17), transparent 55%), radial-gradient(ellipse at 22% 72%, rgba(55, 56, 103, .12), transparent 50%), #020205;
    isolation: isolate
}

.hero-inner {
    align-items: center;
    min-width: 0
}

.hero-logo {
    width: min(430px, 58vw);
    margin: 0
}

.hero-logo img {
    filter: drop-shadow(0 2px 24px rgba(0, 0, 0, .6))
}

.galaxy-sky {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden
}

.galaxy-sky canvas {
    display: block;
    width: 100%;
    height: 100%
}

.galaxy-sky:after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 49%, rgba(0, 0, 0, .12), transparent 40%, rgba(0, 0, 0, .45) 100%);
    pointer-events: none
}

.hero-floor {
    height: 23svh;
    opacity: 1;
    background: linear-gradient(180deg, transparent, #030303);
    z-index: 1
}

.galaxy-motion {
    position: absolute;
    right: 32px;
    bottom: 28px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 0 8px 10px;
    border: 0;
    background: transparent;
    color: #aaa0bc;
    font: 300 9px/1.4 "Helvetica Neue", Arial, sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .2s
}

.galaxy-motion:hover {
    color: var(--lilac)
}

.galaxy-motion[hidden] {
    display: none
}

.galaxy-motion:focus-visible {
    outline: 1px solid var(--lilac);
    outline-offset: 6px
}

.motion-symbol {
    width: 9px;
    height: 10px;
    display: inline-block;
    position: relative
}

.motion-symbol:before, .motion-symbol:after {
    content: "";
    position: absolute;
    top: 1px;
    width: 2px;
    height: 8px;
    background: currentColor
}

.motion-symbol:before {
    left: 1px
}

.motion-symbol:after {
    right: 1px
}

.galaxy-motion[aria-pressed="false"] .motion-symbol:before {
    left: 1px;
    top: 0;
    width: 0;
    height: 0;
    background: none;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid currentColor
}

.galaxy-motion[aria-pressed="false"] .motion-symbol:after {
    display: none
}

@media (max-width: 1000px) {
    .hero {
        min-height: 100svh
    }
}

@media (max-width: 760px) {
    .hero {
        min-height: 100svh;
        padding: 66px 24px
    }

    .hero-logo {
        width: min(360px, 72vw);
        margin: 0
    }

    .galaxy-motion {
        right: 18px;
        bottom: 18px;
        min-height: 44px
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }

    .fade {
        opacity: 1;
        transform: none;
        transition: none
    }

    .hero-inner {
        transform: none
    }

    .project-image {
        filter: brightness(.88) saturate(.9);
        transform: none;
        opacity: 1
    }
}

/* Main-site extensions. The card's original style rules are retained above. */
:root {
    --imgOpacity: 1;
    --imgBlur: 0px;
    --imgY: 0px;
    --imgScale: 1
}

html {
    scroll-padding-top: 76px
}

body {
    background: #020205
}

button, input, textarea {
    font: inherit;
    color: inherit
}

button {
    cursor: pointer
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 1px solid var(--lilac);
    outline-offset: 6px
}

.skip {
    position: fixed;
    z-index: 100;
    left: 20px;
    top: 10px;
    transform: translateY(-160%);
    padding: 12px;
    background: var(--lilac);
    color: #000
}

.skip:focus {
    transform: none
}

.galaxy-sky {
    position: fixed;
    background: radial-gradient(ellipse at 70% 32%, rgba(86, 57, 134, .17), transparent 55%), radial-gradient(ellipse at 22% 72%, rgba(55, 56, 103, .12), transparent 50%), #020205
}

.hero {
    background: transparent;
    isolation: auto
}

.hero-floor {
    background: linear-gradient(180deg, transparent, rgba(3, 3, 3, .4))
}

.hero-logo {
    font-size: inherit;
    font-weight: inherit
}

.hero-inner {
    pointer-events: none
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 32px;
    z-index: 4;
    font-size: 8px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: #7a7981
}

.galaxy-motion {
    position: fixed;
    bottom: 22px;
    right: 32px;
    z-index: 45
}

.galaxy-motion .motion-label {
    background: rgba(3, 3, 3, .65);
    padding: 5px 7px
}

.nav-links {
    display: flex;
    gap: 30px
}

.nav .link {
    display: inline-flex;
    align-items: center;
    min-height: 40px
}

.project-bridge, .game-details, .studio, .people, .contact, footer {
    position: relative;
    z-index: 2
}

.project-sticky {
    background: transparent
}

.project-content {
    padding-top: 90px
}

.project-topveil {
    background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .85) 18%, rgba(0, 0, 0, .2) 60%, rgba(0, 0, 0, .78) 100%)
}

.project-image {
    filter: blur(var(--imgBlur)) brightness(.7) saturate(.85)
}

.project-image[src] {
    color: transparent
}

.gamelogo {
    font-size: clamp(34px, 5vw, 76px);
    line-height: 1;
    letter-spacing: .05em;
    font-weight: 200;
    margin: 0;
    width: auto
}

.brandstack p {
    margin: 0;
    font-size: 9px;
    color: #bbb7c1;
    letter-spacing: .17em;
    text-transform: uppercase;
    line-height: 1.8
}

.project-actions {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap
}

.project-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    white-space: nowrap
}

.text-button {
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .26);
    cursor: pointer
}

.game-details {
    padding: 90px 0 100px
}

.detail-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12vw;
    max-width: 1120px
}

.section-kicker {
    font-size: 8px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 300;
    margin: 0 0 28px
}

.detail-title {
    font-size: clamp(30px, 4vw, 54px);
    font-weight: 200;
    letter-spacing: -.025em;
    line-height: 1.18;
    margin: 0;
    color: var(--fg)
}

.body-copy {
    font-size: 14px;
    font-weight: 300;
    color: #929098;
    line-height: 1.85
}

.body-copy p {
    margin: 0 0 22px
}

.body-copy p:first-child {
    color: #bbb7c1
}

.gallery {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 14px;
    margin-top: 70px
}

.gallery figure {
    margin: 0
}

.gallery img {
    width: 100%;
    aspect-ratio: 1080/680;
    object-fit: cover;
    filter: brightness(.83) saturate(.8)
}

.gallery figcaption {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: #77747f;
    margin-top: 12px
}

.studio {
    padding: 65px 0 0;
    border-top: 1px solid var(--line)
}

.studio .detail-grid {
    max-width: 1120px
}

.people {
    padding-top: 60px
}

.contact {
    padding: 65px 0 75px
}

.contact-main {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12vw;
    margin-top: 40px
}

.contact-main .email {
    display: inline-block;
    margin-top: 28px;
    font-size: 16px
}

.contact-main .links {
    margin-top: 35px;
    flex-wrap: wrap;
    font-size: 9px
}

.contact-form label {
    font-size: 9px;
    font-weight: 300;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9b97a6;
    display: block;
    margin-bottom: 10px
}

.form-row {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 22px;
    margin-bottom: 25px
}

.contact-form input, .contact-form textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    border-radius: 0;
    padding: 8px 0 12px;
    resize: vertical;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: #595660
}

.form-bottom {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 24px
}

.form-bottom p {
    font-size: 10px;
    color: #77747f;
    line-height: 1.6;
    max-width: 210px
}

.footer {
    padding-bottom: 36px;
    color: #6b6774;
    font-weight: 300
}

.footer a {
    display: inline-flex;
    align-items: center;
    min-height: 32px
}

.footer img {
    width: 108px
}

.footer .links {
    font-size: 8px;
    color: #89828f
}

.footer-copy {
    font-size: 8px;
    letter-spacing: .1em
}

dialog {
    background: #07060a;
    border: 1px solid #28242f;
    padding: 18px;
    width: min(600px, 94vw);
    max-height: 94dvh
}

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

.dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px
}

.dialog-head h2 {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: .08em
}

.dialog-head button {
    background: none;
    border: 0;
    font-size: 26px;
    width: 44px;
    height: 44px
}

dialog video {
    max-width: 100%;
    max-height: 75dvh;
    display: block;
    margin: auto
}

body:has(dialog[open]) {
    overflow: hidden
}

@media (max-width: 760px) {
    .nav-links {
        gap: 17px
    }

    .hero-scroll {
        left: 17px;
        bottom: 35px;
        font-size: 7px
    }

    .galaxy-motion {
        right: 17px;
        bottom: 20px
    }

    .project-stage {
        min-height: 0;
        height: 145svh
    }

    .project-content {
        padding: 90px 0 35px
    }

    .project-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px
    }

    .brandstack {
        max-width: 100%
    }

    .project-actions {
        gap: 22px
    }

    .project-meta {
        font-size: 8px
    }

    .project-link {
        font-size: 9px
    }

    .game-details {
        padding: 55px 0 65px
    }

    .detail-grid, .contact-main {
        grid-template-columns:1fr;
        gap: 30px
    }

    .body-copy {
        font-size: 14px
    }

    .gallery {
        grid-template-columns:1fr;
        gap: 30px;
        margin-top: 40px
    }

    .studio {
        padding-top: 45px
    }

    .people {
        padding-top: 35px
    }

    .contact {
        padding: 45px 0 60px
    }

    .contact-main {
        gap: 38px
    }

    .footer {
        gap: 20px;
        padding-bottom: 55px
    }

    .form-bottom {
        gap: 15px
    }

    .role {
        font-size: 8px
    }

    .name {
        font-size: 12px
    }

    .portrait {
        min-height: 200px
    }

    .people-grid {
        gap: 28px 12px
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-stage {
        height: 100svh
    }

    .hero-inner {
        opacity: 1;
        transform: none
    }

    .project-image {
        opacity: 1;
        transform: none;
        filter: brightness(.7) saturate(.85)
    }
}

.nav .mini {
    height: auto
}

/* Nebula gas is a separate texture: it stays visible behind the whole site. */
.galaxy-sky {
    background: #020205;
    isolation: isolate
}

.galaxy-sky:before {
    content: "";
    position: absolute;
    inset: -2%;
    z-index: -1;
    background: url("assets/nebula.webp") center center/100% 100% no-repeat;
    animation: nebula-drift 65s ease-in-out infinite alternate;
    transform-origin: 65% 40%;
    will-change: transform
}

.galaxy-sky:after {
    background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0, 0, 0, .08) 100%)
}

.galaxy-sky canvas {
    position: relative;
    z-index: 1
}

.hero-floor {
    display: none
}

.galaxy-sky.motion-paused:before {
    animation-play-state: paused
}

@keyframes nebula-drift {
    from {
        transform: translate3d(-.35%, .15%, 0) scale(1)
    }
    to {
        transform: translate3d(.35%, -.15%, 0) scale(1.025)
    }
}

@media (max-width: 760px) {
    .galaxy-sky:before {
        background-size: auto 100%;
        background-position: 66% center
    }
}

@media (prefers-reduced-motion: reduce) {
    .galaxy-sky:before {
        animation: none;
        will-change: auto
    }
}
