:root {
    --bg: #2b0505;
    --text: #ffffff;
    --red: #ff0000;
    --gray: #333333;

    --font-display: 'Teko', sans-serif;
    --font-body: 'Oswald', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: auto;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    height: 100vh;
    /* Will be unlocked by JS */
}

body.loading {
    overflow: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.counter {
    font-family: var(--font-display);
    font-size: 10vw;
    color: var(--red);
    line-height: 1;
}

.loader-line {
    width: 0%;
    height: 2px;
    background: #fff;
    margin-top: 20px;
    transition: width 0.1s;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.blink {
    animation: blink 1s infinite;
    color: var(--red);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.menu-items {
    display: flex;
    gap: 40px;
}

.menu-items a {
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.menu-items a::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--red);
    clip-path: polygon(0 0, 0 100%, 0 100%, 0 0);
    /* Hidden */
    transition: 0.3s;
}

.menu-items a:hover::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    /* Revealed */
}

/* Backgrounds */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: #050000;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.giant-text {
    font-family: 'Teko', sans-serif;
    font-size: 18vw;
    line-height: 0.8;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    position: relative;
    z-index: 2;
}

.outline {
    color: transparent;
    -webkit-text-stroke: 2px #fff;
}

.hero-subtext {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 10vw;
}

/* Architect Section */
.architect-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 50px;
}

.architect-container {
    display: flex;
    gap: 80px;
    align-items: flex-end;
    width: 100%;
}

.img-mask {
    flex: 1;
    height: 70vh;
    background: #111;
    overflow: hidden;
    position: relative;
    border: 1px solid #333;
}

.main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: transform 1s;
}

.img-mask:hover .main-img {
    transform: scale(1.1);
}

.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 50%, rgba(255, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

.architect-info {
    flex: 1;
    text-align: right;
}

.role {
    font-size: 1rem;
    color: var(--red);
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.name {
    font-family: var(--font-display);
    font-size: 8vw;
    line-height: 0.9;
    margin-bottom: 40px;
}

.manifesto {
    font-size: 1.5rem;
    line-height: 1.4;
    color: #ccc;
    text-transform: uppercase;
    max-width: 500px;
    margin-left: auto;
}

/* Capabilities */
.capabilities-section {
    padding: 100px 50px;
}

.caps-header h2 {
    font-family: var(--font-display);
    font-size: 5rem;
    margin-bottom: 50px;
    color: transparent;
    -webkit-text-stroke: 1px #fff;
}

.caps-list {
    border-top: 1px solid #333;
}

.cap-item {
    border-bottom: 1px solid #333;
    padding: 40px 0;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.cap-item:hover {
    background: #0a0a0a;
    padding-left: 20px;
}

.num {
    font-family: var(--font-display);
    color: var(--red);
    font-size: 2rem;
    margin-right: 40px;
    width: 50px;
}

.cap-name {
    font-size: 3rem;
    font-weight: 300;
    text-transform: uppercase;
    flex-grow: 1;
}

.cap-reveal {
    font-size: 1rem;
    color: #666;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateX(-20px);
    transition: 0.3s;
}

.cap-item:hover .cap-reveal {
    opacity: 1;
    transform: translateX(0);
}

/* CTA */
.cta-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.marquee {
    position: absolute;
    top: 20%;
    width: 100%;
    transform: rotate(-5deg);
    opacity: 0.1;
    font-family: var(--font-display);
    font-size: 10vw;
    white-space: nowrap;
}

.contact-box {
    position: relative;
    z-index: 2;
    text-align: center;
}

.contact-box h2 {
    font-family: var(--font-display);
    font-size: 5rem;
    margin-bottom: 50px;
}

.giant-btn {
    font-size: 2rem;
    border: 2px solid var(--red);
    color: var(--red);
    padding: 20px 60px;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.4s;
    background: transparent;
}

.giant-btn:hover {
    background: var(--red);
    color: #000;
    box-shadow: 0 0 50px var(--red);
}



/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 200;
}

.hamburger .bar {
    width: 35px;
    height: 3px;
    background-color: #fff;
    transition: 0.3s;
}

.hamburger:hover .bar {
    background-color: var(--red);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--red);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 4rem;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
}

.menu-close {
    position: absolute;
    top: 40px;
    right: 40px;
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
    color: #000;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .menu-items {
        display: none;
    }

    .navbar {
        padding: 20px 20px;
    }

    .logo img {
        height: 40px !important;
    }

    .logo span {
        font-size: 0.9rem !important;
        letter-spacing: 1px !important;
    }

    .giant-text {
        font-size: 20vw;
    }

    .hero-subtext {
        flex-direction: column;
        gap: 5px;
        font-size: 0.8rem;
        padding: 0 20px;
    }

    .architect-section {
        padding: 50px 20px;
    }

    .architect-container {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .img-mask {
        height: 40vh;
        width: 100%;
    }

    .architect-info {
        text-align: left;
    }

    .name {
        font-size: 15vw;
    }

    .manifesto {
        margin-left: 0;
        font-size: 1.1rem;
    }

    .capabilities-section {
        padding: 50px 20px;
    }

    .caps-header h2 {
        font-size: 3rem;
    }

    .cap-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .cap-name {
        font-size: 2rem;
    }

    .cap-reveal {
        display: block;
        opacity: 1;
        transform: none;
        color: #888;
        margin-left: 0;
        margin-top: 5px;
    }

    .num {
        margin-right: 0;
        font-size: 1.5rem;
        color: #555;
    }

    .cta-section {
        min-height: 60vh;
    }

    .contact-box h2 {
        font-size: 3.5rem;
    }

    .giant-btn {
        font-size: 1.2rem;
        padding: 15px 30px;
    }
}