/* =========================================
   AELION STUDIOS
   Global Styles
   ========================================= */

/* ---------- VARIABLES ---------- */

:root {

    --obsidian: #111111;
    --ivory: #F7F5F0;
    --silver-mist: #D9D9D6;
    --deep-space: #171B24;
    --champagne: #C8B99A;

    --font-display: "Cormorant Garamond", serif;
    --font-body: "Inter", sans-serif;

    --max-width: 1400px;

    /* subtle atmosphere */
    --noise-opacity: 0.035;
    --grid-opacity: 0.045;
}


/* ---------- RESET ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ivory);
    color: var(--obsidian);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* ---------- GLOBAL TEXTURE ---------- */

/*
   Very subtle grain.
   It should be felt, not obviously seen.
*/

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;

    opacity: var(--noise-opacity);

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");

    mix-blend-mode: multiply;
}


/* ---------- NAVBAR ---------- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;

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

    padding: 0 5vw;

    z-index: 1000;

    background: rgba(247, 245, 240, 0.88);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}


/* tiny studio marker */

.navbar::after {
    content: "AELION / 0.0.7";

    position: absolute;

    left: 50%;
    bottom: 8px;

    transform: translateX(-50%);

    font-size: 0.45rem;
    letter-spacing: 0.25em;

    color: rgba(17, 17, 17, 0.28);

    pointer-events: none;
}


.logo {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.22em;

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

.logo:hover {
    color: var(--champagne);
    transform: translateX(2px);
}


.navbar nav {
    display: flex;
    gap: 38px;
}

.navbar nav a {
    position: relative;

    font-size: 0.72rem;
    font-weight: 500;

    text-transform: uppercase;
    letter-spacing: 0.16em;

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

.navbar nav a::before {
    content: "↳";

    position: absolute;
    left: -13px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 0.55rem;

    opacity: 0;

    color: var(--champagne);

    transition:
        opacity 0.3s ease,
        left 0.3s ease;
}

.navbar nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: var(--champagne);

    transition: width 0.3s ease;
}

.navbar nav a:hover {
    color: var(--champagne);
    transform: translateX(3px);
}

.navbar nav a:hover::before {
    left: -10px;
    opacity: 1;
}

.navbar nav a:hover::after {
    width: 100%;
}


/* ---------- GENERAL ---------- */

section {
    position: relative;

    width: 100%;

    padding: 140px 5vw;
}


/*
   Very subtle grid texture on sections.
*/

section::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(17, 17, 17, var(--grid-opacity)) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(17, 17, 17, var(--grid-opacity)) 1px,
            transparent 1px
        );

    background-size: 80px 80px;

    mask-image: linear-gradient(
        to bottom,
        transparent,
        black 15%,
        black 85%,
        transparent
    );

    opacity: 0.35;
}


.section-header {
    position: relative;
    z-index: 1;

    margin-bottom: 55px;
}

.section-header p {
    font-size: 0.68rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.25em;

    color: #777;
}


/* ---------- HERO ---------- */

.hero {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

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

    text-align: center;

    padding-top: 150px;

    overflow: hidden;
}


/*
   Hero technical markers
*/

.hero::after {
    content:
        "BUILD 0.0.7     /     INDEPENDENT GAME STUDIO";

    position: absolute;

    bottom: 34px;
    left: 5vw;

    font-size: 0.48rem;
    letter-spacing: 0.22em;

    color: rgba(17, 17, 17, 0.34);

    white-space: pre;
}


/*
   Decorative corner marker
*/

.hero::before {
    content: "+";

    position: absolute;

    top: 125px;
    right: 5vw;

    font-size: 1rem;

    color: var(--champagne);

    opacity: 0.75;
}


.eyebrow {
    position: relative;

    margin-bottom: 25px;

    font-size: 0.7rem;
    font-weight: 500;

    text-transform: uppercase;
    letter-spacing: 0.3em;

    color: #777;
}


.eyebrow::before {
    content: "—";

    margin-right: 10px;

    color: var(--champagne);
}


.hero h1 {
    position: relative;

    font-family: var(--font-display);

    font-size: clamp(4.5rem, 12vw, 11rem);

    font-weight: 500;

    line-height: 0.85;

    letter-spacing: -0.04em;

    margin-bottom: 35px;

    z-index: 1;
}


/*
   Small offset shadow creates a slightly imperfect,
   printed/editorial feeling.
*/

.hero h1::after {
    content: "AELION";

    position: absolute;

    right: -35px;
    bottom: -10px;

    font-family: var(--font-body);

    font-size: 0.42rem;

    font-weight: 500;

    letter-spacing: 0.3em;

    color: var(--champagne);

    transform: rotate(-90deg);

    transform-origin: center;
}


.hero-text {
    max-width: 450px;

    font-size: 0.9rem;
    font-weight: 300;

    letter-spacing: 0.04em;

    color: #555;

    margin-bottom: 45px;
}


/* ---------- BUTTON ---------- */

.button {
    position: relative;

    display: inline-flex;

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

    min-width: 170px;

    padding: 15px 28px;

    border: 1px solid var(--obsidian);

    font-size: 0.68rem;
    font-weight: 500;

    text-transform: uppercase;
    letter-spacing: 0.18em;

    overflow: hidden;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}


.button::after {
    content: "→";

    margin-left: 10px;

    transform: translateX(-4px);

    opacity: 0;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


.button:hover {
    background: var(--obsidian);
    color: var(--ivory);

    transform: translateY(-2px);
}


.button:hover::after {
    opacity: 1;
    transform: translateX(0);
}


.button.secondary {
    border-color: var(--silver-mist);
}

.button.secondary:hover {
    border-color: var(--obsidian);
}


/* ---------- FEATURED GAME ---------- */

.featured {
    background: var(--deep-space);
    color: var(--ivory);

    overflow: hidden;
}


.featured::before {
    background-image:
        linear-gradient(
            rgba(247, 245, 240, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(247, 245, 240, 0.035) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    opacity: 0.5;
}


.featured .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.featured .section-header::after {
    content:
        "PROJECT / 001";

    font-size: 0.48rem;
    letter-spacing: 0.25em;

    color: rgba(247, 245, 240, 0.35);
}


.featured .section-header p {
    color: var(--champagne);
}


.game-card {
    position: relative;

    display: grid;

    grid-template-columns: 1.4fr 0.6fr;

    min-height: 600px;

    z-index: 1;
}


/*
   Small number marker
*/

.game-card::before {
    content: "01";

    position: absolute;

    top: -25px;
    left: -10px;

    font-family: var(--font-display);

    font-size: 3rem;

    color: rgba(200, 185, 154, 0.22);

    z-index: 3;
}


.game-image {
    min-height: 600px;

    background:
        linear-gradient(
            135deg,
            #20232c,
            #101116
        );

    position: relative;

    overflow: hidden;

    isolation: isolate;
}


/*
   Scanline texture
*/

.game-image::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        repeating-linear-gradient(
            to bottom,
            rgba(247, 245, 240, 0.025) 0px,
            rgba(247, 245, 240, 0.025) 1px,
            transparent 1px,
            transparent 5px
        );

    opacity: 0.7;

    pointer-events: none;

    z-index: 2;
}


/*
   Image frame
*/

.game-image::after {
    content: "THE NIGHTSHIFT";

    position: absolute;

    bottom: 30px;
    left: 30px;

    font-size: 0.65rem;

    letter-spacing: 0.25em;

    color: rgba(247, 245, 240, 0.55);

    z-index: 3;

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


.game-card:hover .game-image::after {
    color: var(--champagne);
    transform: translateX(5px);
}


/*
   Subtle image movement
*/

.game-image {
    transition:
        transform 0.6s cubic-bezier(.2,.7,.2,1);
}

.game-card:hover .game-image {
    transform: scale(1.012);
}


.game-info {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 70px;

    border-left: 1px solid rgba(247, 245, 240, 0.1);
}


.game-info::before {
    content:
        "NIGHT 01  /  IN DEVELOPMENT";

    position: absolute;

    top: 30px;
    right: 35px;

    font-size: 0.45rem;

    letter-spacing: 0.18em;

    color: rgba(247, 245, 240, 0.3);
}


.game-info h2 {
    font-family: var(--font-display);

    font-size: clamp(3rem, 5vw, 6rem);

    font-weight: 500;

    line-height: 0.9;

    margin-bottom: 35px;

    transition:
        transform 0.4s ease;
}


.game-card:hover .game-info h2 {
    transform: translateX(4px);
}


.game-info p {
    max-width: 350px;

    font-size: 0.9rem;
    font-weight: 300;

    color: #c4c4c4;

    margin-bottom: 40px;
}


.featured .button {
    width: fit-content;

    border-color: var(--ivory);
    color: var(--ivory);
}


.featured .button:hover {
    background: var(--ivory);
    color: var(--deep-space);
}


/* ---------- STUDIO ---------- */

.studio {
    max-width: var(--max-width);

    margin: 0 auto;
}


.studio::after {
    content:
        "STUDIO NOTE / 001";

    position: absolute;

    top: 150px;
    right: 5vw;

    font-size: 0.48rem;

    letter-spacing: 0.22em;

    color: rgba(17, 17, 17, 0.32);

    transform: rotate(90deg);
}


.studio h2 {
    position: relative;

    max-width: 900px;

    font-family: var(--font-display);

    font-size: clamp(3rem, 6vw, 7rem);

    font-weight: 500;

    line-height: 0.95;

    margin-bottom: 50px;
}


.studio h2::before {
    content: "WE MAKE GAMES.";

    position: absolute;

    left: 4px;
    top: -25px;

    font-family: var(--font-body);

    font-size: 0.45rem;

    font-weight: 500;

    letter-spacing: 0.25em;

    color: var(--champagne);
}


.studio > p:last-child {
    max-width: 650px;

    font-size: 1rem;
    font-weight: 300;

    line-height: 1.9;

    color: #555;

    margin-left: 7vw;
}


.studio > p:last-child::before {
    content: "↳ ";

    color: var(--champagne);
}


/* ---------- PRESS ---------- */

.press {
    background: #eeece7;

    overflow: hidden;
}


.press .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}


.press .section-header::after {
    content:
        "ARCHIVE / 2026";

    font-size: 0.48rem;

    letter-spacing: 0.22em;

    color: rgba(17, 17, 17, 0.35);
}


.press-grid {
    position: relative;

    display: grid;

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

    border-top: 1px solid var(--silver-mist);

    z-index: 1;
}


.press-item {
    position: relative;

    padding: 50px 0;

    border-bottom: 1px solid var(--silver-mist);

    transition:
        background 0.35s ease,
        padding-left 0.35s ease,
        padding-right 0.35s ease;
}


.press-item:hover {
    background: rgba(255, 255, 255, 0.3);
}


.press-item::before {
    content: "↗";

    position: absolute;

    top: 25px;
    right: 25px;

    font-size: 0.7rem;

    color: var(--champagne);

    opacity: 0;

    transform: translate(-5px, 5px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


.press-item:hover::before {
    opacity: 1;

    transform: translate(0, 0);
}


.press-item:first-child {
    padding-right: 50px;

    border-right: 1px solid var(--silver-mist);
}


.press-item:last-child {
    padding-left: 50px;
}


.press-item h3 {
    font-family: var(--font-display);

    font-size: 2.8rem;

    font-weight: 500;

    margin-bottom: 15px;

    transition:
        transform 0.3s ease;
}


.press-item:hover h3 {
    transform: translateX(5px);
}


.press-item p {
    max-width: 350px;

    font-size: 0.8rem;

    color: #666;
}


/* ---------- CONTACT ---------- */

.contact {
    min-height: 75vh;

    display: flex;
    flex-direction: column;

    justify-content: center;

    background: var(--obsidian);

    color: var(--ivory);

    overflow: hidden;
}


.contact::before {
    background-image:
        linear-gradient(
            rgba(247, 245, 240, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(247, 245, 240, 0.025) 1px,
            transparent 1px
        );

    background-size: 90px 90px;

    opacity: 0.5;
}


.contact::after {
    content:
        "SYSTEM / CONTACT";

    position: absolute;

    right: 5vw;
    top: 50%;

    font-size: 0.48rem;

    letter-spacing: 0.25em;

    color: rgba(247, 245, 240, 0.28);

    transform: rotate(90deg);
}


.contact .section-header {
    position: relative;
    z-index: 2;
}


.contact .section-header p {
    color: var(--champagne);
}


.contact h2 {
    position: relative;

    z-index: 2;

    max-width: 900px;

    font-family: var(--font-display);

    font-size: clamp(3.5rem, 8vw, 9rem);

    font-weight: 500;

    line-height: 0.9;

    margin-bottom: 60px;
}


.contact h2::after {
    content: "SAY HELLO.";

    position: absolute;

    right: 0;
    bottom: -35px;

    font-family: var(--font-body);

    font-size: 0.48rem;

    letter-spacing: 0.25em;

    color: var(--champagne);
}


.contact > p:last-child {
    position: relative;

    z-index: 2;

    font-size: 0.75rem;

    letter-spacing: 0.08em;

    color: #aaa;
}


/* ---------- FOOTER ---------- */

footer {
    position: relative;

    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 35px 5vw;

    background: var(--obsidian);

    color: #777;

    border-top: 1px solid #292929;

    overflow: hidden;
}


footer::after {
    content:
        "AELION / END OF TRANSMISSION";

    position: absolute;

    left: 50%;

    transform: translateX(-50%);

    font-size: 0.4rem;

    letter-spacing: 0.25em;

    color: rgba(247, 245, 240, 0.16);

    white-space: nowrap;

    pointer-events: none;
}


footer p {
    font-size: 0.7rem;

    font-weight: 600;

    letter-spacing: 0.18em;

    color: var(--ivory);
}


footer span {
    font-size: 0.65rem;

    letter-spacing: 0.08em;
}


footer a {
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}


footer a:hover {
    color: var(--champagne);

    transform: translateX(-3px);
}


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

@media (max-width: 800px) {

    .navbar {
        height: 75px;

        padding: 0 6vw;
    }


    .navbar::after {
        display: none;
    }


    .navbar nav {
        gap: 18px;
    }


    .navbar nav a {
        font-size: 0.6rem;

        letter-spacing: 0.1em;
    }


    .logo {
        font-size: 0.7rem;

        letter-spacing: 0.15em;
    }


    section {
        padding: 100px 6vw;
    }


    .section-header {
        margin-bottom: 40px;
    }


    .hero {
        padding-top: 120px;
    }


    .hero::after {
        left: 6vw;

        font-size: 0.4rem;
    }


    .hero::before {
        top: 105px;
        right: 6vw;
    }


    .hero h1 {
        font-size: clamp(3.5rem, 16vw, 7rem);
    }


    .hero h1::after {
        right: -20px;
    }


    .game-card {
        grid-template-columns: 1fr;
    }


    .game-card::before {
        top: -18px;
    }


    .game-image {
        min-height: 400px;
    }


    .game-info {
        padding: 55px 30px;

        border-left: none;

        border-top: 1px solid rgba(247, 245, 240, 0.1);
    }


    .game-info::before {
        top: 20px;
        right: 25px;
    }


    .press-grid {
        grid-template-columns: 1fr;
    }


    .press-item:first-child {
        padding-right: 0;

        border-right: none;
    }


    .press-item:last-child {
        padding-left: 0;
    }


    .studio::after {
        display: none;
    }


    .studio > p:last-child {
        margin-left: 0;
    }


    .contact::after {
        display: none;
    }


    .contact h2 {
        font-size: clamp(3rem, 14vw, 6rem);
    }


    .contact h2::after {
        right: auto;
        left: 0;
    }


    footer {
        flex-direction: column;

        align-items: flex-start;

        gap: 15px;
    }


    footer::after {
        display: none;
    }

}


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

@media (max-width: 500px) {

    .navbar nav {
        display: none;
    }


    .hero {
        padding-top: 120px;
    }


    .hero::after {
        bottom: 25px;
    }


    .hero h1 {
        font-size: 18vw;
    }


    .hero h1::after {
        display: none;
    }


    .game-image {
        min-height: 300px;
    }


    .game-info {
        padding: 50px 25px;
    }


    .game-info h2 {
        font-size: 3.2rem;
    }


    .game-info::before {
        position: relative;

        top: auto;
        right: auto;

        margin-bottom: 25px;

        order: -1;
    }


    .featured .section-header::after {
        display: none;
    }


    .press .section-header::after {
        display: none;
    }


    .studio h2::before {
        top: -20px;
    }


    .contact h2::after {
        position: relative;

        display: block;

        right: auto;
        bottom: auto;

        margin-top: 25px;
    }

}