/* =========================================================
   XENO PROJECTS
   Professional Project Portfolio Theme
========================================================= */

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

html {
    scroll-behavior: smooth;
}

:root {

    /* Core */

    --background: #0b0d11;
    --background-soft: #10131a;

    --surface: #12161e;
    --surface-2: #171c25;
    --surface-3: #1b212c;

    --border: #252c38;
    --border-soft: #1d232d;

    /* Text */

    --text: #f3f4f6;
    --text-soft: #c4c9d2;
    --muted: #858d9b;
    --muted-2: #626a77;

    /* Brand */

    --brand: #9a8cff;
    --brand-light: #b3a9ff;
    --brand-dark: #7769df;

    --blue: #6ea8ff;
    --teal: #63c7bd;

    /* Status */

    --green: #73c991;
    --amber: #d7a75d;

    /* Layout */

    --max-width: 1180px;
    --radius: 18px;
}


body {

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        linear-gradient(
            180deg,
            #0b0d11 0%,
            #0d1015 45%,
            #0b0d11 100%
        );

    color: var(--text);

    line-height: 1.6;

    overflow-x: hidden;

    opacity: 1;

    transition: opacity .18s ease;
}


body.leaving {
    opacity: 0;
}


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


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


.page {

    min-height: 100vh;

    position: relative;

    overflow: hidden;
}


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

.page::before {

    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 78% 12%,
            rgba(121, 108, 220, .09),
            transparent 28%
        ),
        radial-gradient(
            circle at 10% 70%,
            rgba(73, 111, 170, .055),
            transparent 25%
        );

    z-index: -2;
}


.page::after {

    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    opacity: .18;

    background-image:
        linear-gradient(
            rgba(255,255,255,.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.018) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

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

    z-index: -1;
}


/* =========================================================
   NAVIGATION
========================================================= */

.navbar {

    width: 100%;

    min-height: 82px;

    padding: 16px 5.5%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    border-bottom: 1px solid var(--border-soft);

    background:
        rgba(11, 13, 17, .82);

    backdrop-filter: blur(18px);

    position: relative;

    z-index: 10;
}


.logo {

    font-size: 25px;

    font-weight: 800;

    letter-spacing: -.9px;

    white-space: nowrap;
}


.logo span {

    color: var(--brand);

    font-weight: 750;
}


nav {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 6px;

    flex-wrap: wrap;
}


.nav-btn {

    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding: 9px 15px;

    border: 1px solid transparent;

    border-radius: 10px;

    color: var(--muted);

    font-size: 14px;

    font-weight: 650;

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


.nav-btn:hover {

    color: var(--text);

    background: rgba(255,255,255,.035);

    border-color: var(--border);

    transform: translateY(-1px);
}


.nav-btn.active {

    color: var(--text);

    background: rgba(154,140,255,.08);

    border-color: rgba(154,140,255,.28);
}


.nav-btn.active::after {

    content: "";

    position: absolute;

    left: 50%;

    bottom: -17px;

    width: 18px;

    height: 2px;

    transform: translateX(-50%);

    border-radius: 99px;

    background: var(--brand);
}


/* =========================================================
   GENERAL
========================================================= */

main {

    width: 100%;

    max-width: var(--max-width);

    margin: auto;
}


.section {

    padding: 88px 5.5% 100px;
}


.section-heading {

    max-width: 720px;

    margin-bottom: 48px;
}


.eyebrow {

    margin-bottom: 10px;

    color: var(--brand-light);

    font-size: 12px;

    font-weight: 750;

    letter-spacing: .18em;

    text-transform: uppercase;
}


.section-heading h1,
.section-heading h2 {

    font-size:
        clamp(
            42px,
            6vw,
            68px
        );

    line-height: 1.02;

    letter-spacing: -2.8px;

    font-weight: 800;
}


.section-heading p:not(.eyebrow) {

    max-width: 620px;

    margin-top: 15px;

    color: var(--muted);

    font-size: 16px;
}


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

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 45px;

    padding: 11px 17px;

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

    border-radius: 11px;

    font-size: 13px;

    font-weight: 750;

    letter-spacing: .01em;

    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


.btn:hover {

    transform: translateY(-2px);
}


.btn.primary {

    color: #fff;

    border-color: rgba(154,140,255,.45);

    background:
        linear-gradient(
            135deg,
            #8d80ed,
            #7569d1
        );

    box-shadow:
        0 8px 25px rgba(105,91,205,.13);
}


.btn.primary:hover {

    border-color: var(--brand-light);

    box-shadow:
        0 12px 32px rgba(105,91,205,.22);
}


.btn.secondary {

    color: var(--text);

    background: var(--surface);
}


.btn.secondary:hover {

    background: var(--surface-2);

    border-color: #3a4351;
}


.btn.small {

    min-height: 38px;

    padding: 8px 13px;

    border-radius: 9px;

    font-size: 12px;
}


.btn-arrow {

    font-size: 16px;

    line-height: 1;

    transition: transform .2s ease;
}


.btn:hover .btn-arrow {

    transform: translateX(3px);
}


/* =========================================================
   HERO
========================================================= */

.hero {

    min-height: 590px;

    padding: 80px 6% 50px;

    display: flex;

    align-items: center;

    position: relative;
}


.hero::after {

    content: "PROJECTS";

    position: absolute;

    right: -2%;

    top: 10%;

    color: rgba(255,255,255,.018);

    font-size:
        clamp(
            80px,
            14vw,
            170px
        );

    font-weight: 900;

    letter-spacing: -8px;

    pointer-events: none;
}


.hero-content {

    max-width: 850px;

    position: relative;

    z-index: 1;
}


.hero h1 {

    margin: 12px 0 26px;

    font-size:
        clamp(
            54px,
            9vw,
            94px
        );

    line-height: .98;

    letter-spacing: -5px;

    font-weight: 850;
}


.hero h1 span {

    color: var(--brand);
}


.hero-text {

    max-width: 650px;

    margin-bottom: 30px;

    color: var(--text-soft);

    font-size: 18px;
}


.hero-buttons {

    display: flex;

    gap: 11px;

    flex-wrap: wrap;
}


/* =========================================================
   QUICK ACCESS
========================================================= */

.quick-nav {

    padding: 25px 6% 80px;
}


.quick-title {

    color: var(--muted);

    font-size: 12px;

    letter-spacing: .16em;

    text-transform: uppercase;

    font-weight: 750;
}


.block-grid {

    display: grid;

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

    gap: 16px;

    margin-top: 20px;
}


.nav-block {

    min-height: 225px;

    padding: 27px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    position: relative;

    overflow: hidden;

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

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(22,26,35,.96),
            rgba(15,18,24,.96)
        );

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


.nav-block::before {

    content: "";

    position: absolute;

    width: 170px;

    height: 170px;

    right: -70px;

    top: -70px;

    border-radius: 50%;

    background:
        rgba(154,140,255,.07);
}


.nav-block:hover {

    transform: translateY(-4px);

    border-color: rgba(154,140,255,.35);

    box-shadow:
        0 20px 45px rgba(0,0,0,.22);
}


.nav-icon {

    font-size: 24px;

    color: var(--text-soft);
}


.nav-block strong {

    margin-top: auto;

    padding-top: 35px;

    font-size: 23px;

    font-weight: 750;
}


.nav-block span {

    margin-top: 5px;

    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   PROJECT CARDS
========================================================= */

.project-card-grid {

    display: grid;

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

    gap: 22px;

    align-items: stretch;
}


.project-card {

    min-width: 0;

    display: flex;

    flex-direction: column;

    overflow: hidden;

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

    border-radius: 20px;

    background:
        linear-gradient(
            160deg,
            #151921,
            #101319
        );

    box-shadow:
        0 12px 30px rgba(0,0,0,.14);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


.project-card:hover {

    transform: translateY(-6px);

    box-shadow:
        0 22px 50px rgba(0,0,0,.27);
}


/* Individual project accents */

.project-xeno:hover {

    border-color: rgba(154,140,255,.52);
}


.project-bandai:hover {

    border-color: rgba(110,168,255,.52);
}


.project-rezzy:hover {

    border-color: rgba(99,199,189,.52);
}


/* Project visual */

.project-image {

    min-height: 205px;

    padding: 24px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: space-between;

    position: relative;

    overflow: hidden;

    border-bottom: 1px solid var(--border);
}


.project-image::before {

    content: "";

    position: absolute;

    width: 240px;

    height: 240px;

    right: -100px;

    top: -100px;

    border-radius: 50%;

    opacity: .55;

    pointer-events: none;
}


.project-xeno .project-image {

    background:
        linear-gradient(
            145deg,
            rgba(103,88,190,.15),
            rgba(18,21,28,.96) 72%
        );
}


.project-xeno .project-image::before {

    background: rgba(154,140,255,.16);
}


.project-bandai .project-image {

    background:
        linear-gradient(
            145deg,
            rgba(58,112,181,.15),
            rgba(18,21,28,.96) 72%
        );
}


.project-bandai .project-image::before {

    background: rgba(110,168,255,.15);
}


.project-rezzy .project-image {

    background:
        linear-gradient(
            145deg,
            rgba(47,137,127,.14),
            rgba(18,21,28,.96) 72%
        );
}


.project-rezzy .project-image::before {

    background: rgba(99,199,189,.14);
}


.project-number {

    position: relative;

    z-index: 1;

    color: var(--muted-2);

    font-size: 12px;

    font-weight: 750;

    letter-spacing: .12em;
}


.project-image-title {

    position: relative;

    z-index: 1;

    color: var(--text-soft);

    font-size: 18px;

    font-weight: 650;

    letter-spacing: .08em;

    line-height: 1.15;
}


.project-image-title strong {

    display: block;

    color: var(--text);

    font-size: 28px;

    font-weight: 850;

    letter-spacing: -.8px;
}


.project-status {

    position: relative;

    z-index: 1;

    padding: 5px 9px;

    border: 1px solid rgba(255,255,255,.09);

    border-radius: 7px;

    background: rgba(0,0,0,.16);

    color: var(--text-soft);

    font-size: 10px;

    font-weight: 750;

    letter-spacing: .08em;

    text-transform: uppercase;
}


/* Project content */

.project-card-body {

    min-height: 330px;

    padding: 24px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;
}


.tag {

    margin-bottom: 8px;

    color: var(--muted);

    font-size: 10px;

    font-weight: 750;

    letter-spacing: .15em;

    text-transform: uppercase;
}


.project-card-body h2 {

    margin-bottom: 10px;

    font-size: 25px;

    line-height: 1.15;

    letter-spacing: -.6px;

    font-weight: 800;
}


.project-card-body > p {

    color: var(--text-soft);

    font-size: 14px;

    line-height: 1.65;
}


/* Metadata */

.project-meta {

    width: 100%;

    margin-top: 23px;

    padding-top: 17px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    border-top: 1px solid var(--border-soft);
}


.project-meta div {

    min-width: 0;
}


.project-meta span {

    display: block;

    margin-bottom: 3px;

    color: var(--muted-2);

    font-size: 9px;

    font-weight: 750;

    letter-spacing: .13em;

}


.project-meta strong {

    color: var(--text-soft);

    font-size: 12px;

    font-weight: 650;
}


.project-btn {

    width: 100%;

    margin-top: auto;
}


/* =========================================================
   GENERIC CARDS
========================================================= */

.cards {

    display: grid;

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

    gap: 22px;

    margin-top: 25px;
}


.card {

    margin: 0;

    overflow: hidden;

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

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #151921,
            #101319
        );

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


.card:hover {

    transform: translateY(-5px);

    border-color: rgba(154,140,255,.4);

    box-shadow:
        0 18px 45px rgba(0,0,0,.24);
}


.card-body {

    padding: 24px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;
}


/* =========================================================
   PROJECT DETAIL PAGES
========================================================= */

.project-hero {

    padding: 80px 6% 50px;

    background:
        radial-gradient(
            circle at 76% 20%,
            rgba(154,140,255,.11),
            transparent 32%
        );
}


.project-hero h1 {

    margin: 8px 0 18px;

    font-size:
        clamp(
            42px,
            8vw,
            72px
        );

    line-height: 1;

    letter-spacing: -3px;
}


.project-hero p {

    max-width: 720px;

    color: var(--text-soft);

    font-size: 17px;
}


.project-content {

    max-width: 1000px;

    margin: auto;

    padding: 35px 6% 80px;
}


.info-grid {

    display: grid;

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

    gap: 15px;

    margin: 25px 0 35px;
}


.info-box {

    padding: 21px;

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

    border-radius: 14px;

    background: var(--surface);
}


.info-box h3 {

    margin-bottom: 7px;

    font-size: 16px;
}


.info-box p {

    color: var(--muted);

    font-size: 14px;
}


.feature-list {

    display: grid;

    gap: 9px;

    margin: 18px 0 30px;
}


.feature {

    padding: 14px 17px;

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

    border-radius: 11px;

    background: var(--background-soft);

    color: var(--text-soft);
}


.back-row {

    max-width: 1000px;

    margin: auto;

    padding: 25px 6% 0;
}


.disclaimer {

    margin-top: 30px;

    padding: 17px;

    border-left: 3px solid var(--brand);

    background: var(--surface);

    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   DOWNLOADS
========================================================= */

.download-section {

    padding: 35px 6% 80px;
}


.download-grid {

    display: grid;

    gap: 18px;
}


.download-card {

    display: flex;

    align-items: center;

    gap: 22px;

    padding: 24px;

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

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #151921,
            #101319
        );

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


.download-card:hover {

    transform: translateY(-4px);

    border-color: rgba(154,140,255,.35);

    box-shadow:
        0 16px 40px rgba(0,0,0,.22);
}


.download-icon {

    flex: 0 0 auto;

    color: var(--brand-light);

    font-size: 28px;
}


.download-info {

    flex: 1;
}


.download-info h2 {

    margin-bottom: 5px;

    font-size: 22px;
}


.download-info p {

    margin-bottom: 5px;

    color: var(--text-soft);

    font-size: 14px;
}


.download-type {

    color: var(--muted);

    font-size: 12px;
}


.download-btn {

    flex: 0 0 auto;

    white-space: nowrap;
}


/* =========================================================
   INTRO
========================================================= */

.intro-screen {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--background);

    animation: introFade 2.2s ease forwards;

    pointer-events: none;
}


.intro-content {

    text-align: center;

    animation: introText 1.4s ease forwards;
}


.intro-content p {

    margin-bottom: 5px;

    color: var(--muted);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: .25em;

    text-transform: uppercase;
}


.intro-content h1 {

    color: var(--text);

    font-size:
        clamp(
            48px,
            10vw,
            82px
        );

    font-weight: 850;

    letter-spacing: -4px;
}


@keyframes introText {

    0% {
        opacity: 0;
        transform: translateY(18px) scale(.97);
    }

    25% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    65% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-8px) scale(1.02);
    }
}


@keyframes introFade {

    0%,
    65% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}


/* =========================================================
   BANDAI CREATOR
========================================================= */

.bandai-download-card {

    position: relative;

    flex-wrap: wrap;
}


.platform-options {

    width: 100%;

    display: none;

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

    gap: 12px;

    margin-top: 5px;

    padding-top: 18px;

    border-top: 1px solid var(--border);
}


.platform-options.show {

    display: grid;

    animation: platformOpen .25s ease;
}


.platform-block {

    min-height: 100px;

    padding: 18px;

    display: flex;

    flex-direction: column;

    justify-content: center;

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

    border-radius: 13px;

    background: var(--surface);

    transition:
        transform .2s ease,
        border-color .2s ease;
}


.platform-block:hover {

    transform: translateY(-3px);

    border-color: rgba(154,140,255,.35);
}


.platform-block strong {

    margin-bottom: 4px;

    font-size: 17px;
}


.platform-block span {

    color: var(--muted);

    font-size: 12px;
}


@keyframes platformOpen {

    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


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

.link-grid {

    display: grid;

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

    gap: 16px;

    margin-top: 25px;
}


.link-card {

    min-height: 225px;

    padding: 27px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    position: relative;

    overflow: hidden;

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

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #151921,
            #101319
        );

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


.link-card::before {

    content: "";

    position: absolute;

    width: 150px;

    height: 150px;

    right: -55px;

    top: -55px;

    border-radius: 50%;

    background: rgba(154,140,255,.07);
}


.link-card:hover {

    transform: translateY(-5px);

    border-color: rgba(154,140,255,.35);

    box-shadow:
        0 18px 42px rgba(0,0,0,.22);
}


.link-icon {

    font-size: 25px;

    color: var(--text-soft);
}


.link-card strong {

    margin-top: auto;

    padding-top: 30px;

    font-size: 23px;

    font-weight: 750;
}


.link-card span {

    margin-top: 5px;

    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   FOOTER
========================================================= */

footer {

    padding: 27px 6%;

    border-top: 1px solid var(--border-soft);

    color: var(--muted-2);

    font-size: 12px;
}


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

@media (max-width: 900px) {

    .navbar {

        align-items: flex-start;

        gap: 14px;
    }


    nav {

        gap: 5px;
    }


    .nav-btn {

        padding: 9px 11px;

        font-size: 12px;
    }


    .project-card-grid {

        grid-template-columns: 1fr;
    }


    .project-card {

        max-width: 720px;

        width: 100%;

        margin: auto;
    }


    .cards {

        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .navbar {

        min-height: auto;

        padding: 14px 18px;

        flex-direction: column;

        align-items: stretch;
    }


    .logo {

        font-size: 23px;
    }


    nav {

        justify-content: flex-start;

        overflow-x: auto;

        flex-wrap: nowrap;

        padding-bottom: 2px;
    }


    .nav-btn {

        flex: 0 0 auto;

        min-height: 39px;

        padding: 8px 11px;

        border-radius: 9px;

        font-size: 12px;
    }


    .nav-btn.active::after {

        display: none;
    }


    .section {

        padding: 65px 18px 75px;
    }


    .section-heading {

        margin-bottom: 35px;
    }


    .section-heading h1,
    .section-heading h2 {

        font-size: 42px;

        letter-spacing: -2px;
    }


    .project-card-grid {

        gap: 18px;
    }


    .project-image {

        min-height: 180px;
    }


    .project-card-body {

        min-height: 0;

        padding: 21px;
    }


    .project-meta {

        margin-top: 20px;
    }


    .project-btn {

        margin-top: 24px;
    }


    .hero {

        min-height: 500px;

        padding: 60px 6% 45px;
    }


    .hero h1 {

        font-size:
            clamp(
                48px,
                15vw,
                70px
            );

        letter-spacing: -3px;
    }


    .hero-text {

        font-size: 16px;
    }


    .block-grid {

        grid-template-columns: 1fr;
    }


    .nav-block {

        min-height: 205px;
    }


    .info-grid {

        grid-template-columns: 1fr;
    }


    .project-hero {

        padding: 55px 6% 40px;
    }


    .project-hero h1 {

        font-size: 46px;

        letter-spacing: -2px;
    }


    .download-card {

        align-items: flex-start;

        flex-wrap: wrap;
    }


    .download-btn {

        margin-left: 50px;
    }


    .platform-options {

        grid-template-columns: 1fr;
    }


    .link-grid {

        grid-template-columns: 1fr;
    }


    .link-card {

        min-height: 205px;
    }


    footer {

        padding: 23px 18px;
    }

}
