
@font-face {
    font-family: 'Saginaw Light';
    src: url('./SaginawLight.woff') format('woff'),
         url('./SaginawLight.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-0: #040000;
    --bg-1: #090000;
    --bg-2: #130101;
    --surface: #150404;
    --surface-soft: #0f0202;
    --surface-elevated: #210707;
    --red-700: #630a0a;
    --red-600: #8f0f0f;
    --red-500: #c01515;
    --red-400: #ff0000;
    --red-glow: #ff2e2e;
    --text-strong: #fff5f5;
    --text-body: #e4cfcf;
    --text-muted: #b79494;
    --border: rgba(255, 52, 52, 0.24);
    --border-strong: rgba(255, 74, 74, 0.42);
    --shadow-soft: 0 26px 56px rgba(0, 0, 0, 0.55);
    --glow-white-soft: 0 0 8px rgba(255, 255, 255, 0.2), 0 0 16px rgba(255, 255, 255, 0.1);
    --glow-white-subtle: 0 0 6px rgba(255, 255, 255, 0.14);
    --glow-red-soft: 0 0 8px rgba(255, 0, 0, 0.45), 0 0 20px rgba(255, 0, 0, 0.28);
    --glow-red-strong: 0 0 10px rgba(255, 0, 0, 0.62), 0 0 26px rgba(255, 0, 0, 0.82);
    --gateway-red: #cc0000;
    --gateway-red-bright: #ff1a1a;
    --gateway-red-dark: #330000;
    --gateway-grid-line: rgba(255, 255, 255, 0.03);
    --gateway-grid-dot: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-0);
}
::-webkit-scrollbar-thumb {
    background: var(--red-700);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--red-500);
}

body {
    background:
        radial-gradient(circle at 12% -6%, rgba(191, 38, 38, 0.26), transparent 42%),
        radial-gradient(circle at 88% 8%, rgba(125, 18, 18, 0.22), transparent 38%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 48%, var(--bg-0) 100%);
    color: var(--text-strong);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.7;
    position: relative;
}

body.gateway-active {
    overflow: hidden;
}

body.intro-active {
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 90%);
    pointer-events: none;
    z-index: -2;
}

h1, h2, h3, .logo {
    font-family: 'Sora', sans-serif;
    line-height: 1.2;
}

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

.portfolio-shell {
    position: relative;
    z-index: 1;
    transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
}

body.gateway-active .portfolio-shell {
    opacity: 0;
    filter: blur(18px);
    transform: scale(1.02);
    pointer-events: none;
}

body.gateway-dismissed .portfolio-shell {
    opacity: 1;
    filter: none;
    transform: none;
    pointer-events: auto;
}

body.intro-active .portfolio-shell {
    opacity: 0;
    filter: blur(12px);
    transform: scale(1.015);
    pointer-events: none;
}

body.intro-dismissed .portfolio-shell {
    opacity: 1;
    filter: none;
    transform: none;
    pointer-events: auto;
}

.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    overflow: hidden;
    background: #060404;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

body.intro-dismissed .intro-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-filter-defs {
    position: absolute;
    width: 0;
    height: 0;
}

.identity-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(rgba(204, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(204, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
}

.ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60vmax;
    height: 60vmax;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(204, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.floating-element {
    position: absolute;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    animation: introBreathe 8s infinite ease-in-out;
}

.floating-one { top: 20%; left: 15%; animation-delay: 0s; }
.floating-two { top: 25%; right: 15%; animation-delay: 2s; }
.floating-three { bottom: 30%; left: 10%; animation-delay: 4s; }
.floating-four { bottom: 25%; right: 20%; animation-delay: 1s; }
.floating-five { top: 40%; left: 25%; font-family: 'Outfit', sans-serif; animation-delay: 3s; }
.floating-six { bottom: 40%; right: 25%; font-family: 'Outfit', sans-serif; animation-delay: 5s; }

.identity-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    pointer-events: none;
}

.vector-line {
    stroke: rgba(204, 0, 0, 0.15);
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 5 5;
    animation: introLineMove 30s linear infinite;
}

.line-two {
    animation-duration: 40s;
    animation-delay: -5s;
}

.gooey-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: url('#intro-gooey-filter');
    position: relative;
    z-index: 10;
}

.main-blob {
    position: absolute;
    z-index: 10;
    border: 0;
    border-radius: 100px;
    padding: 50px 100px;
    background: linear-gradient(145deg, #ff1a1a, #1a0000);
    color: #fff;
    font-family: 'Syncopate', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.26),
        0 0 14px rgba(255, 68, 68, 0.34),
        0 0 26px rgba(255, 0, 0, 0.26);
    box-shadow:
        0 10px 40px rgba(204, 0, 0, 0.3),
        0 0 0 1px rgba(255, 76, 76, 0.52),
        0 0 34px rgba(255, 0, 0, 0.42),
        0 0 58px rgba(255, 0, 0, 0.22);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    cursor: pointer;
    overflow: visible;
    isolation: isolate;
    animation:
        introBlobGuideCore 3.8s ease-in-out infinite,
        introBlobNameGlow 2.9s ease-in-out infinite;
    will-change: transform;
}

.main-blob::before,
.main-blob::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border-radius: 120px;
    border: 1px solid rgba(255, 80, 80, 0.62);
}

.main-blob::before {
    inset: -12px;
    z-index: 1;
    opacity: 0.86;
    box-shadow:
        0 0 28px rgba(255, 0, 0, 0.46),
        0 0 42px rgba(255, 0, 0, 0.24),
        inset 0 0 16px rgba(255, 0, 0, 0.18);
    animation: introBlobGuideRing 3.8s ease-in-out infinite;
}

.main-blob::after {
    inset: -40px;
    z-index: 0;
    border-radius: 140px;
    border-color: rgba(255, 80, 80, 0.42);
    opacity: 0.52;
    box-shadow:
        0 0 40px rgba(255, 0, 0, 0.32),
        0 0 70px rgba(255, 0, 0, 0.18);
    animation: introBlobGuideRing 3.8s ease-in-out infinite 1.2s;
}

.main-blob:hover::before,
.main-blob:focus-visible::before {
    opacity: 0.78;
}

.menu-item {
    position: absolute;
    z-index: 5;
    --reveal-x: 50%;
    --reveal-y: 50%;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.35;
    text-align: center;
    transition: all 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    will-change: transform, opacity;
}

.menu-item::before,
.menu-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
}

.menu-item::before {
    z-index: 0;
    background:
        radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.35), transparent 45%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.36)),
        repeating-linear-gradient(35deg, rgba(255, 255, 255, 0.08) 0 8px, transparent 8px 16px);
}

.menu-item::after {
    z-index: 1;
    background: linear-gradient(145deg, #f10022, #9a0013 62%, #6d000d);
    clip-path: circle(140% at 50% 50%);
    transition: clip-path 0.42s ease;
}

.menu-item-work::before {
    background:
        radial-gradient(circle at 24% 24%, rgba(255, 220, 220, 0.34), transparent 42%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.15), rgba(20, 0, 0, 0.45)),
        linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 36%);
}

.menu-item-skills::before {
    background:
        radial-gradient(circle at 75% 20%, rgba(255, 220, 220, 0.28), transparent 44%),
        linear-gradient(140deg, rgba(255, 255, 255, 0.1), rgba(8, 0, 0, 0.45)),
        repeating-linear-gradient(-42deg, rgba(255, 255, 255, 0.08) 0 6px, transparent 6px 14px);
}

.menu-item-contact::before {
    background:
        radial-gradient(circle at 50% 78%, rgba(255, 220, 220, 0.28), transparent 45%),
        linear-gradient(130deg, rgba(255, 255, 255, 0.1), rgba(8, 0, 0, 0.4)),
        linear-gradient(75deg, rgba(255, 255, 255, 0.08), transparent 52%);
}

.menu-item:hover::after,
.menu-item:focus-visible::after {
    clip-path: circle(28% at var(--reveal-x) var(--reveal-y));
}

.menu-item-label {
    position: relative;
    z-index: 2;
    display: block;
    text-align: center;
    text-shadow: 0 0 11px rgba(0, 0, 0, 0.45);
}

.menu-item-label span {
    display: block;
    font-size: 0.65rem;
    opacity: 0.7;
}

.menu-item-reveal {
    position: absolute;
    left: 50%;
    bottom: 16px;
    z-index: 2;
    transform: translate(-50%, 8px);
    font-family: 'Syncopate', sans-serif;
    font-size: 0.47rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-item:hover .menu-item-reveal,
.menu-item:focus-visible .menu-item-reveal {
    opacity: 0.9;
    transform: translate(-50%, 0);
}

.menu-item:hover {
    color: #fff;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.58), 0 0 24px rgba(255, 0, 0, 0.32);
}

.menu-item:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.82);
    outline-offset: 4px;
}

.hud-text {
    position: absolute;
    width: 100%;
    z-index: 11;
    text-align: center;
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.top-hud {
    top: 15%;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 6px;
}

.bottom-hud {
    bottom: 10%;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    z-index: 9999;
    border-radius: 50%;
    background: #fff;
    pointer-events: none;
    mix-blend-mode: exclusion;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    will-change: left, top, width, height;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    z-index: 9998;
    border-radius: 50%;
    border: 1px solid rgba(255, 26, 26, 0.3);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    will-change: left, top;
}

.intro-cursor-label {
    display: inline-block;
    margin-top: 22px;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #000;
    letter-spacing: 0.08em;
}

.gateway-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(22, 3, 3, 0.92) 0%, rgba(7, 1, 1, 0.98) 72%),
        linear-gradient(180deg, rgba(5, 1, 1, 0.92), rgba(3, 0, 0, 1));
    transition: opacity 0.85s ease, visibility 0.85s ease;
}

body.gateway-dismissed .gateway-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.gateway-filter-defs {
    position: absolute;
    width: 0;
    height: 0;
}

.gateway-grid-background,
.gateway-grid-canvas,
.gateway-noise {
    position: absolute;
    inset: 0;
}

.gateway-grid-background {
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(15, 0, 0, 0.84) 0%, rgba(5, 1, 1, 1) 80%);
}

.gateway-grid-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.82;
}

.gateway-noise {
    opacity: 0.045;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12) 0 0.6px, transparent 0.6px),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.08) 0 0.7px, transparent 0.7px),
        radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.08) 0 0.6px, transparent 0.6px);
    background-size: 160px 160px, 220px 220px, 190px 190px;
    mix-blend-mode: screen;
}

.gateway-aura {
    position: absolute;
    inset: auto;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
    opacity: 0.28;
    z-index: 2;
}

.gateway-aura-one {
    top: 16%;
    left: 16%;
    width: min(24vw, 280px);
    height: min(24vw, 280px);
    background: radial-gradient(circle, rgba(255, 36, 36, 0.78), rgba(255, 0, 0, 0));
    animation: gatewayAuraFloat 8s ease-in-out infinite;
}

.gateway-aura-two {
    right: 10%;
    bottom: 14%;
    width: min(30vw, 360px);
    height: min(30vw, 360px);
    background: radial-gradient(circle, rgba(150, 0, 0, 0.62), rgba(255, 0, 0, 0));
    animation: gatewayAuraFloat 11s ease-in-out infinite reverse;
}

.gateway-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 16;
    width: min(980px, calc(100% - 44px));
    transform: translate(-50%, -50%);
    text-align: center;
    padding: clamp(24px, 3vw, 38px);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at 15% 16%, rgba(255, 34, 34, 0.2), transparent 44%),
        linear-gradient(150deg, rgba(34, 5, 5, 0.72), rgba(9, 1, 1, 0.58));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.11),
        0 28px 54px rgba(0, 0, 0, 0.3);
}

.gateway-kicker {
    margin: 0 0 10px;
    color: rgba(255, 228, 228, 0.62);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.72rem, 0.66rem + 0.32vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.18);
}

.gateway-title {
    margin-bottom: 20px;
    text-transform: uppercase;
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(1.9rem, 1.2rem + 2vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
    color: #fff4f4;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.16), 0 0 26px rgba(255, 0, 0, 0.22);
}

.gateway-orbits {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(70vw, 720px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 4;
}

.gateway-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.gateway-orbit-outer {
    width: 100%;
    height: 100%;
    box-shadow:
        inset 0 0 40px rgba(255, 0, 0, 0.05),
        0 0 0 1px rgba(255, 0, 0, 0.05);
    animation: gatewayOrbitSpin 24s linear infinite;
}

.gateway-orbit-inner {
    width: 68%;
    height: 68%;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.08);
    animation: gatewayOrbitSpin 18s linear infinite reverse;
}

.gateway-gooey {
    position: relative;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    filter: none;
}

.gateway-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.gateway-core,
.gateway-link {
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.08),
        0 18px 44px rgba(0, 0, 0, 0.45);
}

.gateway-core {
    position: relative;
    z-index: 18;
    border: 0;
    overflow: hidden;
    padding: 42px 86px;
    border-radius: 999px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 28%),
        linear-gradient(145deg, #ff1c33, #7a000d 58%, #3a0007);
    color: #fff;
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.32em;
    text-indent: 0.32em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.35s ease;
    user-select: none;
}

.gateway-core::before,
.gateway-core::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.gateway-core::before {
    inset: 1px;
    background:
        radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.2), transparent 42%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 48%, rgba(255, 255, 255, 0.08));
    opacity: 0.78;
}

.gateway-core::after {
    inset: -9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0.28;
    transform: scale(1.015);
}

.gateway-core.is-open {
    box-shadow:
        inset 0 0 24px rgba(255, 255, 255, 0.12),
        0 24px 52px rgba(204, 0, 0, 0.3);
}

.gateway-core:focus-visible,
.gateway-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.72);
    outline-offset: 6px;
}

.gateway-link {
    position: relative;
    z-index: 13;
    width: min(190px, 28vw);
    min-height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0) 34%),
        linear-gradient(155deg, rgba(219, 8, 32, 0.94), rgba(70, 0, 8, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition:
        transform 0.25s ease,
        background 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}

.gateway-link:hover {
    background: #fff;
    color: var(--gateway-red);
    box-shadow:
        inset 0 0 24px rgba(255, 255, 255, 0.14),
        0 0 40px rgba(255, 255, 255, 0.38);
}

.gateway-link-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.gateway-links-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.gateway-enter {
    min-width: 210px;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 228, 228, 0.34);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 36%),
        linear-gradient(135deg, #d00e2f, #7f0010);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(128, 0, 16, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.gateway-enter:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 18px 34px rgba(161, 0, 24, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    filter: brightness(1.05);
}

.gateway-enter:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.76);
    outline-offset: 6px;
}

.gateway-hint {
    margin-top: 14px;
    color: rgba(255, 224, 224, 0.58);
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gateway-cursor,
.gateway-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.gateway-cursor {
    z-index: 9999;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    mix-blend-mode: exclusion;
}

.gateway-cursor::after {
    content: attr(data-label);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #050303;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gateway-cursor.has-label::after {
    opacity: 1;
}

.gateway-cursor-follower {
    z-index: 9998;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 26, 26, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
}

body.gateway-active .gateway-cursor,
body.gateway-active .gateway-cursor-follower {
    opacity: 1;
}

.scroll-progress {
    position: fixed;
    top: 0; left: 0; width: 0; height: 3px;
    background: linear-gradient(90deg, var(--red-600), var(--red-glow));
    z-index: 10000;
    box-shadow: 0 0 14px rgba(255, 103, 103, 0.65);
}

.glow-text {
    color: #ff9a9a;
    text-shadow: 0 0 20px rgba(255, 103, 103, 0.38);
}

nav {
    position: fixed; width: 100%;
    padding: 18px min(5vw, 64px);
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(5, 2, 2, 0.86); backdrop-filter: blur(14px);
    z-index: 1000; border-bottom: 1px solid var(--border);
}

nav .logo {
    font-size: clamp(1.4rem, 1.8vw, 1.8rem);
    font-weight: 800; letter-spacing: 0.08em;
}

nav ul { display: flex; list-style: none; gap: clamp(18px, 3vw, 42px); }

nav ul li a {
    color: var(--text-muted); font-weight: 600; font-size: 0.9rem;
    letter-spacing: 0.09em; text-transform: uppercase;
    transition: color 0.25s ease; position: relative; padding-bottom: 8px;
}

nav ul li a::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 100%; height: 2px;
    transform: scaleX(0); transform-origin: left;
    background: linear-gradient(90deg, var(--red-500), transparent);
    transition: transform 0.3s ease;
}

nav ul li a:hover { color: var(--text-strong); }
nav ul li a:hover::after { transform: scaleX(1); }

.hero {
    min-height: 100vh; position: relative;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 146px min(7vw, 110px) 92px;
    overflow: hidden;
}

#network-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: -2; opacity: 0.42;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 14% 18% auto 18%;
    height: 340px;
    background: radial-gradient(ellipse at center, rgba(255, 0, 0, 0.18), rgba(255, 0, 0, 0) 72%);
    filter: blur(10px);
    z-index: -1;
    pointer-events: none;
}

.hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6, 1, 1, 0.1) 0%, rgba(6, 1, 1, 0.46) 58%, rgba(6, 1, 1, 0.72) 100%);
    z-index: -1;
}

.hero-panel {
    width: min(1040px, 100%);
    margin-inline: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    position: relative;
}

.hero-panel::before {
    content: '';
    position: absolute;
    top: -26px;
    left: 50%;
    width: min(760px, 78%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(255, 28, 28, 0.7), transparent);
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px; border: 1px solid var(--border);
    border-radius: 999px; background: rgba(191, 38, 38, 0.12);
    font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.15em;
    margin-bottom: 26px; font-weight: 600;
}

.badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--red-glow); box-shadow: 0 0 10px var(--red-glow);
    animation: pulseDot 1.8s ease-in-out infinite;
}

.hero-title {
    margin-bottom: 8px; display: flex; flex-direction: column;
    align-items: center; gap: 8px;
}

.hero-intro {
    text-transform: uppercase; letter-spacing: 0.33em;
    font-size: clamp(0.92rem, 1vw + 0.45rem, 1.26rem); font-weight: 700;
}

.hero-signature-wrap {
    margin-top: 10px;
    margin-bottom: 25px;
}

.metric-chip {
    background: linear-gradient(145deg, rgba(40, 10, 10, 0.4), rgba(15, 4, 4, 0.2));
    border: 1px solid rgba(255, 80, 80, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.metric-chip:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 80, 80, 0.35);
}

.hero p {
    max-width: 600px;
    color: #a89a9a;
    line-height: 1.8;
}

.btn {
    letter-spacing: 0.15em;
    font-size: 0.85rem;
}

.hero-signature {
    font-family: 'Saginaw Light', cursive;
    font-size: clamp(3rem, 8.2vw, 6.4rem);
    line-height: 1.2;
    letter-spacing: -0.01em; white-space: nowrap; color: #ffd9d9;
    text-shadow: 0 0 10px rgba(255, 191, 191, 0.5), 0 0 25px rgba(235, 116, 116, 0.6);
    display: inline-flex; align-items: flex-end; position: relative;
    transform: rotate(-7deg) skewX(-9deg);
    animation: signatureIn 1.15s ease-out both;
}

.hero-signature-part { display: inline-block; }
.hero-signature-part.first { transform: translateY(10px) rotate(-9deg); margin-right: 0.05em; }
.hero-signature-part.second { transform: translateY(-2px) rotate(4deg); }

.hero h2 {
    font-size: clamp(1.1rem, 1.6vw, 1.52rem); margin-bottom: 20px;
    color: var(--text-body); min-height: 44px; font-weight: 500;
}

.hero p {
    max-width: 760px; margin: 0 auto; color: #dccaca;
    font-size: clamp(0.96rem, 1vw + 0.42rem, 1.08rem);
}

.hero-metrics {
    width: min(980px, 100%);
    margin: 34px auto 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.metric-chip {
    background: linear-gradient(150deg, rgba(35, 8, 8, 0.55), rgba(8, 2, 2, 0.22));
    border: 1px solid rgba(255, 70, 70, 0.24);
    border-radius: 14px;
    padding: 12px 14px;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 18px rgba(0, 0, 0, 0.33);
}

.metric-chip strong { display: block; font-size: 1.2rem; font-family: 'Sora', sans-serif; }
.metric-chip span { color: var(--text-muted); font-size: 0.82rem; text-transform: uppercase; font-weight: 600; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; font-size: 0.9rem; font-weight: 600;
    border: 1px solid var(--red-600); border-radius: 11px;
    transition: all 0.3s ease; letter-spacing: 0.1em; text-transform: uppercase;
    position: relative; overflow: hidden; backdrop-filter: blur(4px);
}

.btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 45%);
    transform: translateX(-100%); transition: transform 0.45s ease;
}

.btn:hover::before { transform: translateX(100%); }

.btn-solid {
    background: linear-gradient(135deg, var(--red-600), var(--red-500));
    border-color: rgba(255, 122, 122, 0.35); box-shadow: 0 10px 25px rgba(157, 26, 26, 0.32);
}

.btn-solid:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--red-500), var(--red-400));
    box-shadow: 0 15px 30px rgba(191, 38, 38, 0.45);
}

.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

section { padding: 110px min(8vw, 96px); position: relative; }

section[id] {
    scroll-margin-top: 110px;
}

.section-title {
    text-align: center; font-size: clamp(2rem, 3.2vw, 2.8rem);
    margin-bottom: 64px; font-weight: 700; letter-spacing: -0.02em;
}
.section-title span { color: #ff9c9c; }

.section-sub {
    text-align: center; margin: -42px auto 50px; max-width: 720px;
    color: var(--text-muted); font-size: 1rem;
}

.stats-container {
    width: min(1180px, calc(100% - 16vw)); margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
    background: linear-gradient(135deg, rgba(31, 10, 10, 0.95), rgba(13, 5, 5, 0.86));
    border: 1px solid var(--border); border-top-color: transparent; border-radius: 20px; padding: 22px;
}

.stat-box { text-align: center; padding: 22px; border-radius: 14px; background: rgba(191, 38, 38, 0.06); }
.stat-number { font-size: clamp(2.4rem, 3.2vw, 3.2rem); font-weight: 700; font-family: 'Sora', sans-serif; }
.stat-number span { color: #ff8f8f; }
.stat-text { color: var(--text-muted); font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.11em; font-weight: 600; }

.about-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; }
.about-card {
    border: 1px solid var(--border); border-radius: 20px; padding: 30px;
    background: linear-gradient(150deg, rgba(27, 10, 10, 0.92), rgba(13, 5, 5, 0.82));
}
.about-card h3 { margin-bottom: 12px; font-size: 1.35rem; }
.about-card p { color: var(--text-body); margin-bottom: 16px; }
.about-list { list-style: none; display: grid; gap: 12px; margin-top: 8px; }
.about-list li {
    border: 1px solid rgba(227, 85, 85, 0.18); border-radius: 12px; padding: 12px 14px;
    background: rgba(191, 38, 38, 0.07); color: var(--text-body); display: flex; align-items: center; gap: 10px;
}
.about-list i { color: #ff8f8f; }

.marquee-container {
    overflow: hidden; white-space: nowrap; padding: 36px 0; margin: 86px min(8vw, 96px) 0;
    background: linear-gradient(120deg, rgba(24, 9, 9, 0.94), rgba(11, 4, 4, 0.92));
    border: 1px solid var(--border); border-radius: 16px; position: relative;
}
.marquee-container::before, .marquee-container::after {
    content: ''; position: absolute; top: 0; width: 120px; height: 100%; z-index: 2; pointer-events: none;
}
.marquee-container::before { left: 0; background: linear-gradient(90deg, rgba(12, 4, 4, 0.98), transparent); }
.marquee-container::after { right: 0; background: linear-gradient(270deg, rgba(12, 4, 4, 0.98), transparent); }
.marquee-content { display: inline-block; animation: marquee 26s linear infinite; }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; margin: 0 34px; font-family: 'Sora', sans-serif; }
.marquee-item i { color: #ff8f8f; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.card {
    background: linear-gradient(150deg, rgba(26, 10, 10, 0.95), rgba(12, 5, 5, 0.82));
    padding: 30px; border-radius: 18px; border: 1px solid var(--border);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 143, 143, 0.8), transparent);
    opacity: 0.7; transition: opacity 0.3s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 35px rgba(200, 30, 30, 0.15); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
.card i { font-size: 2rem; color: #ff8f8f; margin-bottom: 18px; }
.card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.card p { color: var(--text-body); margin-bottom: 18px; font-size: 0.98rem; }

.project-img {
    width: 100%; height: 190px;
    background: radial-gradient(circle at 18% 18%, rgba(224, 67, 67, 0.18), transparent 50%), linear-gradient(135deg, #1f0909, #120505);
    border-radius: 14px; margin-bottom: 20px; display: flex; justify-content: center; align-items: center;
    border: 1px solid rgba(227, 85, 85, 0.2);
}

.project-img .project-logo {
    width: min(135px, 76%);
    height: auto;
    object-fit: contain;
    opacity: 0.95;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.28)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.08));
}

.project-img .tebex-logo {
    filter: brightness(0) saturate(100%) invert(10%) sepia(99%) saturate(7479%) hue-rotate(1deg) brightness(112%) contrast(122%)
        drop-shadow(0 0 8px rgba(255, 0, 0, 0.35)) drop-shadow(0 0 14px rgba(255, 0, 0, 0.22));
}

.project-img i {
    font-size: 3.2rem;
    color: rgba(255, 143, 143, 0.4);
    margin: 0;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    background: rgba(191, 38, 38, 0.11); color: #dec5c5; padding: 6px 12px;
    border-radius: 999px; font-size: 0.78rem; border: 1px solid rgba(227, 85, 85, 0.2); text-transform: uppercase; font-weight: 600;
}

.discord-banner {
    max-width: 920px; margin: 0 auto; padding: clamp(30px, 4vw, 54px); text-align: center;
    background: linear-gradient(135deg, rgba(30, 10, 10, 0.9), rgba(11, 4, 4, 0.92));
    border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-soft);
}
.discord-icon { font-size: 3.3rem; color: #7884ff; margin-bottom: 18px; filter: drop-shadow(0 0 10px rgba(120, 132, 255, 0.4)); }
.btn-discord { background: #5865f2; border-color: #6f7bf7; }
.btn-discord:hover { background: #6e79f6; box-shadow: 0 14px 28px rgba(88, 101, 242, 0.35); }

.contact-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-align: center;
    border-top: 1px solid var(--border);
    padding: 84px min(8vw, 96px);
}
.contact-title,
.contact-copy,
.contact-section .contact-actions {
    position: relative;
    z-index: 2;
}
.contact-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}
.contact-actions .btn {
    min-width: 228px;
}
.contact-giant-discord {
    position: absolute;
    right: clamp(-200px, -8vw, -40px);
    top: 54%;
    transform: translateY(-50%) rotate(-20deg);
    font-size: clamp(20rem, 50vw, 43rem);
    line-height: 0.9;
    color: rgba(255, 0, 0, 0.045);
    -webkit-text-stroke: 1px rgba(255, 0, 0, 0.2);
    text-shadow:
        0 0 1px rgba(255, 48, 48, 0.16),
        0 0 11px rgba(255, 0, 0, 0.16),
        0 0 34px rgba(255, 0, 0, 0.1);
    filter:
        drop-shadow(24px 28px 44px rgba(0, 0, 0, 0.66))
        drop-shadow(0 0 34px rgba(255, 0, 0, 0.14));
    opacity: 0.68;
    mix-blend-mode: normal;
    animation: discordGhostPulse 4.6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.contact-giant-discord::after {
    content: '';
    position: absolute;
    inset: 12% 7% 9% 9%;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 34%, rgba(255, 0, 0, 0.14), rgba(255, 0, 0, 0.04) 48%, rgba(255, 0, 0, 0) 74%);
    filter: blur(30px);
    opacity: 0.35;
    z-index: -1;
}
.contact-copy { margin-bottom: 34px; color: var(--text-body); }
.btn-behance {
    border-color: rgba(122, 163, 255, 0.52);
    background: linear-gradient(135deg, rgba(22, 34, 66, 0.9), rgba(11, 18, 42, 0.95));
    color: #e8f0ff;
    box-shadow: 0 10px 24px rgba(49, 97, 230, 0.32);
}
.btn-behance i {
    margin-right: 8px;
    font-size: 1rem;
}
.btn-behance:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(41, 73, 150, 0.95), rgba(25, 47, 107, 0.95));
    box-shadow: 0 14px 30px rgba(66, 116, 255, 0.36);
}

.studio-signoff {
    text-align: center;
    padding: 34px min(8vw, 96px) 72px;
    border-top: 1px solid rgba(255, 50, 50, 0.14);
    background: linear-gradient(180deg, rgba(10, 1, 1, 0), rgba(10, 1, 1, 0.35));
}

.signoff-copy {
    color: #d7b7b7;
    font-size: 0.94rem;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.signoff-brand {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.35rem, 3.2vw, 2.7rem);
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #ffeaea;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.22),
        0 0 16px rgba(255, 77, 77, 0.42),
        0 0 30px rgba(255, 0, 0, 0.55);
    animation: neonBrandPulse 2.6s ease-in-out infinite alternate;
}

body {
    background:
        radial-gradient(circle at 12% -6%, rgba(255, 0, 0, 0.24), transparent 42%),
        radial-gradient(circle at 88% 8%, rgba(143, 15, 15, 0.28), transparent 38%),
        radial-gradient(circle at 52% 120%, rgba(96, 6, 6, 0.2), transparent 52%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 48%, var(--bg-0) 100%);
}

nav {
    background: rgba(4, 0, 0, 0.9);
}

.scroll-progress {
    box-shadow: 0 0 14px rgba(255, 0, 0, 0.7);
}

:is(
    .logo,
    .hero-intro,
    .hero h2,
    .hero p,
    .hero-badge,
    .hero-since,
    .metric-chip strong,
    .metric-chip span,
    .section-title,
    .section-sub,
    .stat-number,
    .stat-text,
    .about-card h3,
    .about-card p,
    .about-list li,
    .marquee-item,
    .card h3,
    .card p,
    .collection-card h3,
    .collection-card p,
    .collection-kicker,
    .tag,
    .contact-copy,
    .discord-title,
    .discord-copy,
    .btn,
    nav ul li a
) {
    text-shadow: var(--glow-white-subtle);
}

:is(
    .glow-text,
    .section-title span,
    .stat-number span,
    .hero-since span,
    .about-list i,
    .marquee-item i,
    .card i,
    .project-img i,
    .hero-signature
) {
    text-shadow: var(--glow-red-soft);
}

.glow-text,
.section-title span,
.stat-number span,
.about-list i,
.marquee-item i,
.card i {
    color: #ff0000;
}

.project-img i {
    color: rgba(255, 0, 0, 0.5);
}

.project-img {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-size: cover;
    background-position: center;
}

.project-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 1, 1, 0.18) 0%, rgba(8, 1, 1, 0.68) 100%),
        radial-gradient(circle at 20% 16%, rgba(255, 0, 0, 0.25), transparent 48%);
    z-index: 0;
}

.project-img > * {
    position: relative;
    z-index: 1;
}

.project-img-ai {
    background-image:
        radial-gradient(circle at 50% 40%, rgba(255, 0, 0, 0.18), transparent 58%),
        linear-gradient(135deg, #1d0808, #100303);
}

.project-img-tebex {
    background-image: url('./images/work-web.svg');
}

.project-img-community {
    background-image:
        radial-gradient(circle at 50% 45%, rgba(255, 0, 0, 0.16), transparent 60%),
        linear-gradient(135deg, #1b0707, #0f0303);
}

.project-img-ai i,
.project-img-community i {
    padding: 18px;
    border-radius: 16px;
    background: rgba(9, 1, 1, 0.48);
    border: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 14px rgba(255, 0, 0, 0.2);
}

.stats-container {
    --since-notch: clamp(122px, 14vw, 170px);
    margin: 52px auto 0;
    position: relative;
    overflow: visible;
    padding-top: 34px;
}

.stats-container::before,
.stats-container::after {
    content: '';
    position: absolute;
    top: -1px;
    height: 1px;
    background: rgba(255, 52, 52, 0.28);
    pointer-events: none;
}

.stats-container::before {
    left: 0;
    right: calc(50% + (var(--since-notch) / 2) + 12px);
}

.stats-container::after {
    right: 0;
    left: calc(50% + (var(--since-notch) / 2) + 12px);
}

.stats-container .hero-since {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -52%);
    margin: 0;
    min-width: var(--since-notch);
    text-align: center;
    z-index: 3;
    border-color: rgba(255, 52, 52, 0.45);
    background: linear-gradient(140deg, rgba(22, 6, 6, 0.98), rgba(11, 3, 3, 0.96));
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.34), 0 8px 20px rgba(0, 0, 0, 0.34), 0 0 16px rgba(255, 0, 0, 0.22);
}

.hero-since {
    width: fit-content;
    margin: 18px auto 10px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 0, 0, 0.32);
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.14), rgba(70, 0, 0, 0.2));
    color: var(--text-strong);
    font-family: 'Sora', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: var(--glow-white-subtle);
    box-shadow: 0 0 16px rgba(255, 0, 0, 0.22);
}

.hero-since span {
    color: #ff0000;
    text-shadow: var(--glow-red-soft);
}

.collections-section {
    padding-top: 84px;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.collections-note {
    margin: -26px auto 30px;
    text-align: center;
    max-width: 760px;
    color: #e8c9c9;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-shadow: var(--glow-white-subtle);
}

.collection-card {
    background: linear-gradient(145deg, rgba(26, 8, 8, 0.95), rgba(10, 3, 3, 0.86));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.collection-cover {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-size: cover;
    background-position: center;
}

.collection-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    filter: brightness(0.62) saturate(0.82);
    transition: transform 0.45s ease, filter 0.45s ease;
}

.collection-cover::before {
    content: attr(data-product);
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    text-align: center;
    color: #ffe7e7;
    font-family: 'Sora', sans-serif;
    font-size: clamp(0.9rem, 1vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 0 14px rgba(255, 0, 0, 0.4);
    background: linear-gradient(180deg, rgba(22, 2, 2, 0.72) 0%, rgba(8, 1, 1, 0.58) 100%);
    backdrop-filter: blur(1px);
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.4s ease;
}

.collection-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(8, 1, 1, 0.06) 0%, rgba(8, 1, 1, 0.42) 100%);
    transition: opacity 0.4s ease;
}

.collection-card:hover .collection-cover::before {
    opacity: 0;
    transform: translateY(-6px);
}

.collection-card:hover .collection-cover::after {
    opacity: 0.2;
}

.collection-card:hover .collection-cover img {
    transform: scale(1);
    filter: brightness(1) saturate(1);
}

@media (hover: none) {
    .collection-cover::before {
        opacity: 0;
    }

    .collection-cover img {
        transform: scale(1);
        filter: brightness(1) saturate(1);
    }

    .collection-cover::after {
        opacity: 0.2;
    }
}

.collection-cover-ai {
    background-image: url('./images/work-ai.svg');
}

.collection-cover-web {
    background-image: url('./images/work-web.svg');
}

.collection-cover-ops {
    background-image: url('./images/work-ops.svg');
}

.collection-kicker {
    color: #ff0000;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
}

.collection-card h3 {
    font-size: 1.35rem;
    line-height: 1.35;
}

.collection-card p {
    color: var(--text-body);
    margin-bottom: 8px;
}

.collection-link {
    margin-top: auto;
    width: 100%;
}

.collection-private-note {
    margin-top: auto;
    width: 100%;
    padding: 12px 14px;
    border-radius: 11px;
    border: 1px dashed rgba(255, 64, 64, 0.35);
    background: rgba(255, 0, 0, 0.08);
    color: #f0c3c3;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    text-shadow: var(--glow-white-subtle);
}

.hero-signature {
    color: #ff0000;
    text-shadow: var(--glow-red-strong);
}

.hero-signature-wrap {
    position: relative;
    display: inline-block;
    padding-bottom: 26px;
}

.signature-underline {
    display: block;
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 102%;
    height: 34px;
    pointer-events: none;
    overflow: visible;
    transform: translateX(-50%) rotate(-3deg);
    z-index: 1;
}

.signature-underline path {
    fill: none;
    stroke: #ff0000;
    stroke-width: 3.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 9px rgba(255, 0, 0, 0.8));
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawSignature 1s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

.btn-solid {
    border-color: rgba(255, 28, 28, 0.52);
}

.discord-icon {
    color: #ff0000;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.55));
}

.btn-discord {
    background: linear-gradient(135deg, var(--red-600), var(--red-500));
    border-color: rgba(255, 30, 30, 0.52);
}

.btn-discord:hover {
    background: linear-gradient(135deg, var(--red-500), var(--red-400));
    box-shadow: 0 14px 28px rgba(255, 0, 0, 0.35);
}

.hidden { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.show { opacity: 1; transform: translateY(0); }

@keyframes signatureIn {
    0% {
        opacity: 0;
        clip-path: inset(-50% 100% -50% -50%);
        transform: translateX(-16px) rotate(-7deg) skewX(-9deg);
    }
    100% {
        opacity: 1;
        clip-path: inset(-50% -50% -50% -50%);
        transform: translateX(0) rotate(-7deg) skewX(-9deg);
    }
}

@keyframes drawSignature {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes inkStroke { to { transform: scaleX(1); } }
@keyframes pulseDot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.33); opacity: 0.7; } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes gatewayAuraFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(12px, -20px, 0) scale(1.08);
    }
}
@keyframes gatewayOrbitSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
@keyframes gatewayPulseText {
    from {
        opacity: 0.22;
        transform: scale(0.985);
    }
    to {
        opacity: 0.62;
        transform: scale(1);
    }
}
@keyframes discordGhostPulse {
    0%, 100% {
        opacity: 0.68;
        text-shadow:
            0 0 1px rgba(255, 48, 48, 0.16),
            0 0 11px rgba(255, 0, 0, 0.16),
            0 0 34px rgba(255, 0, 0, 0.1);
    }
    50% {
        opacity: 0.56;
        text-shadow:
            0 0 1px rgba(255, 48, 48, 0.12),
            0 0 8px rgba(255, 0, 0, 0.12),
            0 0 24px rgba(255, 0, 0, 0.08);
    }
}
@keyframes neonBrandPulse {
    0% {
        text-shadow:
            0 0 6px rgba(255, 255, 255, 0.16),
            0 0 12px rgba(255, 77, 77, 0.34),
            0 0 22px rgba(255, 0, 0, 0.44);
    }
    100% {
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.28),
            0 0 20px rgba(255, 77, 77, 0.5),
            0 0 38px rgba(255, 0, 0, 0.68);
    }
}

@media (max-width: 1100px) {
    .hero-metrics, .stats-container, .about-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    nav { padding: 16px 22px; }
    nav ul { gap: 10px; }
    nav ul li a { font-size: 0.74rem; letter-spacing: 0.06em; }
    .hero { padding: 126px 24px 74px; }
    .hero-panel::before { display: none; }
    .btn, .hero-actions { width: 100%; }
    .gateway-panel {
        width: calc(100% - 28px);
        padding: 16px 14px;
        border-radius: 18px;
    }
    .gateway-kicker {
        letter-spacing: 0.32em;
        margin-bottom: 7px;
    }
    .gateway-title {
        font-size: clamp(1.6rem, 1rem + 2.6vw, 2.8rem);
        letter-spacing: 0.16em;
        text-indent: 0.16em;
    }
    .gateway-orbits {
        width: min(82vw, 560px);
    }
    .gateway-core {
        min-width: 250px;
        padding: 14px 28px;
        font-size: 1rem;
        letter-spacing: 0.2em;
        text-indent: 0.2em;
    }
    .gateway-links-row {
        gap: 10px;
    }
    .gateway-link {
        width: 138px;
        min-height: 48px;
        font-size: 0.7rem;
    }
    .gateway-enter {
        min-width: 168px;
        padding: 10px 18px;
        font-size: 0.74rem;
        letter-spacing: 0.1em;
    }
    .gateway-hint {
        margin-top: 10px;
        font-size: 0.67rem;
        letter-spacing: 0.1em;
    }
}
@media (max-width: 620px) {
    nav .logo { font-size: 1.1rem; }
    nav ul { gap: 8px; }
    nav ul li a { font-size: 0.66rem; }
    section { padding-inline: 22px; }
    .stats-container { width: calc(100% - 44px); }
    .stats-container::before,
    .stats-container::after { display: none; }
    .stats-container { border-top-color: var(--border); }
    .contact-giant-discord {
        right: 50%;
        top: 40%;
        transform: translate(50%, -50%) rotate(-14deg);
        font-size: clamp(14rem, 72vw, 24rem);
        color: rgba(255, 0, 0, 0.06);
    }
    .studio-signoff { padding-top: 24px; padding-bottom: 56px; }
    .signoff-copy { font-size: 0.86rem; }
    .signoff-brand { font-size: clamp(1.2rem, 7.8vw, 2rem); letter-spacing: 0.09em; }
    .gateway-panel {
        width: calc(100% - 18px);
        padding: 12px 10px;
        border-radius: 14px;
    }
    .gateway-kicker {
        font-size: 0.56rem;
        letter-spacing: 0.16em;
        margin-bottom: 6px;
    }
    .gateway-title {
        font-size: clamp(1.2rem, 8vw, 1.92rem);
        letter-spacing: 0.12em;
        text-indent: 0.12em;
    }
    .gateway-orbits {
        width: min(90vw, 420px);
    }
    .gateway-buttons {
        gap: 8px;
        margin-bottom: 10px;
    }
    .gateway-core {
        min-width: 0;
        width: 100%;
        padding: 11px 12px;
        font-size: 0.86rem;
        letter-spacing: 0.14em;
        text-indent: 0.14em;
    }
    .gateway-links-row {
        gap: 8px;
    }
    .gateway-link {
        width: calc(33.333% - 6px);
        min-width: 96px;
        min-height: 44px;
        font-size: 0.62rem;
        letter-spacing: 0.1em;
    }
    .gateway-link-label {
        font-size: 0.64rem;
    }
    .gateway-aura {
        opacity: 0.22;
    }
    .gateway-enter {
        width: 100%;
        min-width: 0;
        padding: 10px 12px;
        font-size: 0.7rem;
        letter-spacing: 0.09em;
    }
    .gateway-hint {
        margin-top: 8px;
        font-size: 0.54rem;
        letter-spacing: 0.06em;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .gateway-aura,
    .gateway-orbit,
    .gateway-panel,
    .portfolio-shell,
    .gateway-overlay,
    .gateway-link,
    .gateway-core,
    .hidden,
    .show {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
    .floating-element,
    .vector-line {
        animation: none !important;
    }
    .main-blob,
    .menu-item,
    .intro-overlay,
    .custom-cursor,
    .cursor-follower {
        transition-duration: 0.01ms !important;
    }
    .main-blob::before,
    .main-blob::after {
        animation: none !important;
    }
    .main-blob {
        animation: none !important;
    }
}

@keyframes introBreathe {
    0%, 100% { opacity: 0.05; transform: translateY(0); }
    50% { opacity: 0.2; transform: translateY(-15px); }
}

@keyframes introLineMove {
    0% { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: 0; }
}

@keyframes introBlobGuideCore {
    0%, 100% {
        box-shadow:
            0 10px 40px rgba(204, 0, 0, 0.3),
            0 0 0 1px rgba(255, 76, 76, 0.44),
            0 0 26px rgba(255, 0, 0, 0.34),
            0 0 48px rgba(255, 0, 0, 0.18);
    }
    50% {
        box-shadow:
            0 10px 44px rgba(204, 0, 0, 0.34),
            0 0 0 1px rgba(255, 76, 76, 0.64),
            0 0 40px rgba(255, 0, 0, 0.52),
            0 0 72px rgba(255, 0, 0, 0.28);
    }
}

@keyframes introBlobNameGlow {
    0%, 100% {
        text-shadow:
            0 0 8px rgba(255, 255, 255, 0.22),
            0 0 12px rgba(255, 68, 68, 0.3),
            0 0 20px rgba(255, 0, 0, 0.24);
    }
    50% {
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.34),
            0 0 18px rgba(255, 86, 86, 0.46),
            0 0 30px rgba(255, 0, 0, 0.38);
    }
}

@keyframes introBlobGuideRing {
    0%, 100% {
        transform: scale(1);
        opacity: 0.56;
    }
    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes introBlobGuidePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 0 0 rgba(255, 0, 0, 0.2),
            0 0 18px rgba(255, 0, 0, 0.22),
            inset 0 0 14px rgba(255, 0, 0, 0.1);
        opacity: 0.56;
    }
    50% {
        transform: scale(1.02);
        box-shadow:
            0 0 0 8px rgba(255, 0, 0, 0),
            0 0 26px rgba(255, 0, 0, 0.32),
            inset 0 0 18px rgba(255, 0, 0, 0.14);
        opacity: 0.74;
    }
}

@keyframes introBlobGuideAura {
    0%, 100% {
        transform: scale(1);
        opacity: 0.34;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.52;
    }
}

@media (pointer: fine) {
    body.intro-active,
    body.intro-active .intro-overlay a,
    body.intro-active .intro-overlay button {
        cursor: none;
    }
}

@media (pointer: coarse) {
    .custom-cursor,
    .cursor-follower {
        display: none;
    }
    body.intro-active {
        cursor: auto;
    }
}

@media (max-width: 860px) {
    .main-blob {
        font-size: 1.5rem;
        padding: 30px 50px;
    }
    .menu-item {
        width: 100px;
        height: 100px;
        font-size: 0.65rem;
    }
    .menu-item-label span {
        font-size: 0.56rem;
    }
    .menu-item-reveal {
        font-size: 0.4rem;
        letter-spacing: 0.1em;
    }
}

@media (max-width: 620px) {
    .top-hud {
        top: 12%;
        font-size: 0.66rem;
        letter-spacing: 3px;
    }
    .bottom-hud {
        bottom: 8%;
        font-size: 0.58rem;
    }
}

