:root {
    --bg: #080a0e;
    --bg-soft: #0d1016;
    --bg-card: #10131a;
    --text: #f4f4f2;
    --muted: #9a9da5;
    --line: rgba(255,255,255,.10);
    --gold: #e9ad27;
    --gold-light: #ffd86a;
    --sand: #d59b42;
    --purple: #a35cff;
    --max: 1180px;
    --radius: 16px;
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    background:
        radial-gradient(circle at 80% 10%, rgba(233,173,39,.055), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

button {
    font: inherit;
}

.container {
    width: min(calc(100% - 48px), var(--max));
    margin-inline: auto;
}

.noise {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: .035;
    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='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.cursor-glow {
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(233,173,39,.06), transparent 65%);
    opacity: 0;
    transition: opacity .25s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}

.site-header.scrolled {
    background: rgba(7,9,13,.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: 105px;
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 52px;
    object-fit: contain;
}

.brand-mark {
    font-size: 29px;
    font-weight: 900;
    letter-spacing: -3px;
    font-style: italic;
}

.brand-sub {
    margin-top: 7px;
    font-size: 7px;
    letter-spacing: 7px;
    color: var(--gold);
    padding-left: 4px;
}

.main-nav {
    display: flex;
    gap: 36px;
    margin-left: auto;
}

.main-nav a {
    color: #c8c9cd;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color .25s ease;
}

.main-nav a:hover {
    color: var(--gold-light);
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 45px;
    padding: 0 20px;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: .7px;
    font-size: 10px;
    font-weight: 800;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.nav-cta:hover,
.button:hover {
    transform: translateY(-2px);
    background: rgba(233,173,39,.08);
    box-shadow: 0 10px 35px rgba(233,173,39,.08);
}

.nav-cta-icon {
    font-size: 15px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: white;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background: white;
}

/* HERO */
.hero {
    min-height: 100svh;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(5,7,10,.25), rgba(5,7,10,.96)),
        radial-gradient(circle at 50% 58%, rgba(233,173,39,.12), transparent 28rem),
        linear-gradient(135deg, #11161f 0%, #07090c 55%, #111018 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero::before {
    background:
        linear-gradient(120deg, transparent 0 42%, rgba(233,173,39,.04) 50%, transparent 58%),
        linear-gradient(0deg, rgba(0,0,0,.5), transparent 35%);
}

.hero::after {
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
    opacity: .35;
}

.hero-grid {
    position: absolute;
    inset: auto -10% -25%;
    height: 55%;
    background-image:
        linear-gradient(rgba(233,173,39,.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(233,173,39,.09) 1px, transparent 1px);
    background-size: 70px 70px;
    transform: perspective(450px) rotateX(60deg);
    transform-origin: center top;
    opacity: .2;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}

.hero-orb-1 {
    width: 180px;
    height: 180px;
    right: 12%;
    top: 22%;
    background: radial-gradient(circle, rgba(233,173,39,.18), transparent 70%);
}

.hero-orb-2 {
    width: 240px;
    height: 240px;
    left: 7%;
    bottom: 18%;
    background: radial-gradient(circle, rgba(125,70,255,.09), transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 60px;
}

.eyebrow {
    display: block;
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-logo {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 20px 0 10px;
    font-size: clamp(80px, 13vw, 170px);
    line-height: .78;
    font-weight: 950;
    letter-spacing: -12px;
    font-style: italic;
    text-shadow: 0 20px 80px rgba(0,0,0,.6);
}

.hero-logo .logo-m {
    color: #E9AD27;
}

.hero-logo .logo-f {
    color: #C9CBD0;
}

.hero-logo .logo-k {
    color: #8A5A32;
}

.hero-logo small {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 165px;
    font-size: clamp(9px, 1vw, 13px);
    font-style: normal;
    letter-spacing: 11px;
    color: #F4F4F2;
    padding-left: 10px;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 42px auto 25px;
    max-width: 500px;
}

.hero-divider span {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.hero-divider span:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-divider i {
    color: var(--gold);
    font-size: 9px;
}

.hero h1 {
    max-width: 760px;
    margin: auto;
    font-size: clamp(25px, 3.2vw, 42px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.8px;
}

.hero h1 em {
    color: var(--gold-light);
    font-style: normal;
}

.button-gold {
    margin-top: 38px;
}

.button-gold span {
    font-size: 17px;
}

.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #777b84;
    font-size: 8px;
    letter-spacing: 3px;
}

.hero-scroll i {
    width: 1px;
    height: 38px;
    background: linear-gradient(var(--gold), transparent);
}

/* SECTIONS */
.section {
    position: relative;
    padding: 120px 0;
}

.section-heading {
    margin-bottom: 55px;
}

.section-heading h2 {
    margin-top: 8px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
    letter-spacing: -1.8px;
    text-transform: uppercase;
}

.about {
    background:
        radial-gradient(circle at 80% 20%, rgba(233,173,39,.04), transparent 24rem),
        var(--bg);
}

.about-layout {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 80px;
    align-items: center;
}

.about-copy {
    max-width: 620px;
}

.about-copy p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.about-copy .lead {
    color: #d9dae0;
    font-size: 18px;
    line-height: 1.8;
}

.about-copy strong {
    color: white;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-left: 1px solid var(--line);
}

.stat {
    padding: 20px 28px;
    text-align: center;
    border-right: 1px solid var(--line);
}

.stat-icon {
    display: block;
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 28px;
}

.stat strong {
    display: block;
    font-size: 30px;
    line-height: 1;
}

.stat small {
    display: block;
    margin-top: 8px;
    color: #777b84;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* PROJECTS */
.projects {
    background:
        linear-gradient(180deg, #090b0f, #0c0f14),
        var(--bg);
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-card {
    min-height: 330px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
    transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(233,173,39,.45);
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
}

.project-race:hover {
    border-color: rgba(163,92,255,.5);
}

.project-visual {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    isolation: isolate;
}

.project-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.05), rgba(0,0,0,.72)),
        linear-gradient(180deg, transparent 30%, rgba(0,0,0,.72));
    z-index: 1;
}

.project-sand .project-visual {
    background:
        radial-gradient(circle at 70% 30%, rgba(255,215,120,.85) 0 3%, transparent 14%),
        linear-gradient(150deg, #8e5c32, #d2a052 42%, #432c27 100%);
}

.project-race .project-visual {
    background:
        radial-gradient(circle at 65% 20%, rgba(185,112,255,.45), transparent 18%),
        radial-gradient(circle at 35% 75%, rgba(163,92,255,.25), transparent 22%),
        linear-gradient(145deg, #19142a, #342051 50%, #09090f);
}

.project-soon .project-visual {
    background:
        radial-gradient(circle, rgba(255,255,255,.08), transparent 25%),
        repeating-linear-gradient(45deg, #101318 0 12px, #0b0d11 12px 24px);
}

.visual-title {
    position: absolute;
    z-index: 3;
    left: 35px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    line-height: .95;
    text-shadow: 0 5px 25px rgba(0,0,0,.6);
}

.visual-title span {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 3px;
}

.visual-title b {
    font-size: clamp(32px, 4vw, 55px);
    letter-spacing: -2px;
}

.visual-title small {
    margin-top: 10px;
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 3px;
}

.project-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform .6s ease;
}

.project-card:hover .project-image {
    transform: scale(1.04);
}

.project-visual::before {
    z-index: 1;
}

.project-race .visual-title small {
    color: #c69aff;
}

.crystal {
    position: absolute;
    bottom: -20px;
    width: 70px;
    height: 190px;
    background: linear-gradient(90deg, rgba(83,33,155,.6), rgba(218,165,255,.6), rgba(65,24,127,.7));
    clip-path: polygon(50% 0, 100% 30%, 82% 100%, 18% 100%, 0 30%);
    filter: drop-shadow(0 0 30px rgba(163,92,255,.25));
}

.crystal-1 { left: 16%; transform: rotate(-12deg); }
.crystal-2 { left: 42%; height: 240px; transform: rotate(9deg); }

.lava {
    position: absolute;
    inset: auto 0 0;
    height: 32%;
    background:
        radial-gradient(ellipse at center, #d887ff 0 4%, transparent 5%),
        linear-gradient(0deg, rgba(107,31,172,.55), transparent);
    opacity: .45;
}

.question-mark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.12);
    font-size: 170px;
    font-weight: 900;
}

.floating-block {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.025);
    transform: rotate(25deg);
}

.block-a { top: 25%; left: 20%; }
.block-b { bottom: 20%; right: 18%; width: 45px; height: 45px; }

.project-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
}

.project-tag,
.social-card small {
    color: var(--gold);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.project-race .project-tag {
    color: #b47aff;
}

.project-info h3 {
    margin-top: 12px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.project-info h3 em {
    color: var(--gold);
    font-style: normal;
}

.project-race .project-info h3 em {
    color: var(--purple);
}

.project-info p {
    max-width: 450px;
    margin: 20px 0 25px;
    color: var(--muted);
    font-size: 13px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    width: max-content;
    color: var(--text);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color .25s ease, gap .25s ease;
}

.project-link:hover {
    color: var(--gold);
    gap: 20px;
}

.project-link span {
    color: var(--gold);
    font-size: 17px;
}

.project-race .project-link span {
    color: var(--purple);
}

.project-link.disabled {
    color: #676b73;
    cursor: default;
}

.project-link.disabled span {
    color: #676b73;
}

/* CONTACT */
.contact-strip {
    padding: 60px 0;
    border-block: 1px solid var(--line);
    background:
        radial-gradient(circle at 15% 50%, rgba(233,173,39,.08), transparent 25rem),
        #0b0d12;
}

.contact-inner {
    display: grid;
    grid-template-columns: 95px 1fr auto;
    gap: 35px;
    align-items: center;
}

.contact-icon {
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(233,173,39,.45);
    color: var(--gold);
    font-size: 32px;
    transform: rotate(45deg);
}

.contact-icon::first-letter {
    transform: rotate(-45deg);
}

.contact-copy h2 {
    margin-top: 3px;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1;
    text-transform: uppercase;
}

.contact-copy p {
    max-width: 650px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.button-outline {
    min-width: 190px;
}

/* SOCIALS */
.socials {
    background: var(--bg);
}

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

.social-card {
    min-height: 125px;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.015);
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,.025);
}

.social-card.youtube:hover { border-color: rgba(255,70,70,.55); }
.social-card.x:hover { border-color: rgba(255,255,255,.35); }
.social-card.tiktok:hover { border-color: rgba(255,70,170,.5); }
.social-card.discord:hover { border-color: rgba(120,100,255,.55); }

.social-symbol {
    font-size: 25px;
}

.social-card strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.social-card small {
    display: block;
    margin-top: 3px;
    color: #70747d;
    font-size: 8px;
    letter-spacing: .5px;
}

.social-arrow {
    color: #5d6169;
    transition: color .25s ease, transform .25s ease;
}

.social-card:hover .social-arrow {
    color: var(--gold);
    transform: translate(2px, -2px);
}

/* FOOTER */
.footer {
    padding: 42px 0 25px;
    background: #06080b;
    border-top: 1px solid var(--line);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: center;
    gap: 35px;
}

.footer-top > p {
    color: #757982;
    font-size: 11px;
    line-height: 1.5;
}

.footer-top nav {
    display: flex;
    gap: 24px;
}

.footer-top nav a,
.footer-bottom a {
    color: #7c8088;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-top nav a:hover,
.footer-bottom a:hover {
    color: var(--gold);
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: #747880;
    font-size: 13px;
}

.footer-socials a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.06);
    color: #4f535b;
    font-size: 8px;
}

.footer-bottom div {
    display: flex;
    gap: 22px;
}

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .main-nav {
        gap: 18px;
    }

    .nav-cta {
        display: none;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

    .project-visual {
        min-height: 300px;
    }

    .contact-inner {
        grid-template-columns: 75px 1fr;
    }

    .contact-inner .button {
        grid-column: 2;
        width: max-content;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(calc(100% - 32px), var(--max));
    }

    .nav {
        min-height: 68px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        z-index: 3;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        background: rgba(6,8,11,.97);
        transform: translateX(100%);
        transition: transform .35s ease;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav a {
        font-size: 16px;
    }

    .hero-content {
        padding-top: 30px;
    }

    .hero-logo {
        font-size: 80px;
        letter-spacing: -7px;
    }

    .hero-logo small {
        margin-top: 100px;
        letter-spacing: 7px;
    }

    .hero h1 {
        max-width: 340px;
        font-size: 25px;
    }

    .section {
        padding: 85px 0;
    }

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

    .section-heading h2 {
        font-size: 34px;
    }

    .stats {
        grid-template-columns: 1fr;
        border-left: 0;
    }

    .stat {
        display: grid;
        grid-template-columns: 45px 1fr auto;
        align-items: center;
        gap: 12px;
        text-align: left;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 18px 0;
    }

    .stat:last-child {
        border-bottom: 0;
    }

    .stat-icon {
        margin: 0;
    }

    .stat strong {
        font-size: 24px;
    }

    .stat small {
        margin: 0;
        text-align: right;
    }

    .project-visual {
        min-height: 270px;
    }

    .project-info {
        padding: 30px 25px 35px;
    }

    .project-info h3 {
        font-size: 31px;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
    }

    .contact-inner .button {
        grid-column: 1;
        width: 100%;
    }

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

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-top nav {
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
