/* MasqproT.com - Anti-Design Masquerade Protocol */

:root {
    --tri-violet: #7B2FFF;
    --tri-coral: #FF4F2B;
    --tri-acid: #B8FF0A;
    --void: #0B0B0F;
    --bone: #E8E4DD;
    --graphite: #3A3A42;
}

/* ============================
   RESET & BASE
   ============================ */

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

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

body {
    background-color: var(--void);
    color: var(--bone);
    font-family: 'Space Mono', monospace;
    font-size: clamp(10px, 1.1vw, 14px);
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* ============================
   BACKGROUND GRID SVG
   ============================ */

#grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.grid-line {
    stroke: rgba(123, 47, 255, 0.08);
    stroke-width: 0.5px;
    fill: none;
    transition: stroke-opacity 2s ease-out;
}

.grid-line.active {
    stroke: var(--tri-violet);
    stroke-opacity: 1;
}

/* ============================
   MASK WATERMARK
   ============================ */

#mask-watermark {
    position: fixed;
    width: 40vw;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

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

#nav-glyph {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

#nav-glyph:hover {
    transform: scale(1.15) rotate(15deg);
}

#nav-glyph svg {
    width: 100%;
    height: 100%;
}

#nav-glyph.is-open svg rect {
    stroke: var(--tri-acid);
    transition: stroke 0.3s ease;
}

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

#nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 900;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(11, 11, 15, 0.92);
    backdrop-filter: blur(16px);
}

#nav-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.nav-item {
    position: absolute;
    font-family: 'Dela Gothic One', sans-serif;
    font-weight: 400;
    font-size: clamp(3vw, 5vw, 8vw);
    text-transform: uppercase;
    color: var(--bone);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.4s ease, color 0.3s ease, transform 0.3s ease;
    user-select: none;
}

#nav-overlay.is-open .nav-item {
    opacity: 1;
}

#nav-overlay.is-open .nav-item:nth-child(1) { transition-delay: 0.15s; }
#nav-overlay.is-open .nav-item:nth-child(2) { transition-delay: 0.25s; }
#nav-overlay.is-open .nav-item:nth-child(3) { transition-delay: 0.35s; }
#nav-overlay.is-open .nav-item:nth-child(4) { transition-delay: 0.45s; }
#nav-overlay.is-open .nav-item:nth-child(5) { transition-delay: 0.55s; }

.nav-item:hover {
    color: var(--tri-acid);
}

/* ============================
   FULLSCREEN SECTIONS
   ============================ */

.fullscreen-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.void-space {
    position: relative;
}

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

#hero-word {
    font-family: 'Anybody', sans-serif;
    font-weight: 900;
    font-size: clamp(12vw, 20vw, 45vw);
    font-stretch: 125%;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    color: var(--tri-violet);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 2;
    animation: heroStretch 6s ease-in-out infinite;
    user-select: none;
}

@keyframes heroStretch {
    0% { font-stretch: 110%; }
    50% { font-stretch: 130%; }
    100% { font-stretch: 110%; }
}

@keyframes heroInitial {
    0% { font-stretch: 25%; opacity: 0.3; }
    100% { font-stretch: 125%; opacity: 1; }
}

#hero-word.animate-in {
    animation: heroInitial 2.5s cubic-bezier(0.23, 1, 0.32, 1) forwards,
               heroStretch 6s ease-in-out 2.5s infinite;
}

.hero-subtitle {
    z-index: 2;
}

/* ============================
   MONO TEXT
   ============================ */

.mono-text {
    font-family: 'Space Mono', monospace;
    font-size: clamp(10px, 1.1vw, 14px);
    font-weight: 400;
    color: var(--bone);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
}

/* ============================
   OVERSIZED DISPLAY TEXT
   ============================ */

.oversized-text {
    font-family: 'Anybody', sans-serif;
    font-weight: 900;
    font-size: clamp(15vw, 22vw, 50vw);
    font-stretch: 120%;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    color: var(--tri-violet);
    opacity: 0.08;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* ============================
   GLASSMORPHIC CARDS
   ============================ */

.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 40px rgba(123, 47, 255, 0.05);
    padding: clamp(20px, 3vw, 40px);
    z-index: 5;
    perspective: 1200px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.4s ease;
}

/* Entry animation state */
.glass-card {
    transform: rotateY(25deg) rotateX(-15deg) scale(0.85);
    opacity: 0;
}

.glass-card.in-view {
    opacity: 1;
}

/* Tilt variations for resting state */
.glass-card.in-view[data-tilt="left"] {
    transform: rotateY(-6deg) rotateX(4deg) scale(1);
}

.glass-card.in-view[data-tilt="right"] {
    transform: rotateY(6deg) rotateX(-3deg) scale(1);
}

.glass-card.in-view[data-tilt="forward"] {
    transform: rotateY(2deg) rotateX(6deg) scale(1);
}

.glass-card.in-view[data-tilt="back"] {
    transform: rotateY(-3deg) rotateX(-6deg) scale(1);
}

/* Hover tilt shifts */
.glass-card.in-view[data-tilt="left"]:hover {
    transform: rotateY(4deg) rotateX(-3deg) scale(1.02);
    box-shadow: inset 0 0 50px rgba(255, 79, 43, 0.08);
}

.glass-card.in-view[data-tilt="right"]:hover {
    transform: rotateY(-5deg) rotateX(5deg) scale(1.02);
    box-shadow: inset 0 0 50px rgba(184, 255, 10, 0.08);
}

.glass-card.in-view[data-tilt="forward"]:hover {
    transform: rotateY(-4deg) rotateX(-5deg) scale(1.02);
    box-shadow: inset 0 0 50px rgba(255, 79, 43, 0.08);
}

.glass-card.in-view[data-tilt="back"]:hover {
    transform: rotateY(5deg) rotateX(7deg) scale(1.02);
    box-shadow: inset 0 0 50px rgba(184, 255, 10, 0.08);
}

/* ============================
   CARD CONTENT
   ============================ */

.card-title {
    font-family: 'Anybody', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 4rem);
    font-stretch: 115%;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--tri-violet);
    margin-bottom: 0.8em;
    line-height: 1.0;
}

.card-body {
    font-family: 'Space Mono', monospace;
    font-size: clamp(10px, 1.1vw, 14px);
    font-weight: 400;
    line-height: 1.7;
    color: var(--bone);
    margin-bottom: 1em;
}

.card-tag {
    font-family: 'Space Mono', monospace;
    font-size: clamp(9px, 0.9vw, 12px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tri-coral);
    margin-top: 1em;
}

.card-marker {
    margin-bottom: 1em;
    color: var(--tri-acid);
}

.accent-word {
    font-family: 'Dela Gothic One', sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 3.5vw, 5rem);
    text-transform: uppercase;
    color: var(--tri-coral);
    display: block;
    margin-bottom: 0.5em;
    transform: rotate(-3deg);
}

/* ============================
   DECORATIVE ELEMENTS
   ============================ */

.deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    z-index: 1;
    pointer-events: none;
}

.deco-line {
    position: absolute;
    height: 0;
    border-top: 1px solid;
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
}

/* ============================
   MASK GLYPHS
   ============================ */

.mask-glyph-small {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.mask-glyph-medium {
    width: 80px;
    height: auto;
    opacity: 0.4;
    z-index: 2;
}

/* ============================
   REVEAL CARD (Section 8)
   ============================ */

.reveal-card {
    border-color: rgba(184, 255, 10, 0.15);
    box-shadow: inset 0 0 60px rgba(184, 255, 10, 0.05);
}

.reveal-card:hover {
    box-shadow: inset 0 0 80px rgba(184, 255, 10, 0.1);
}

/* ============================
   SENTINELS
   ============================ */

.sentinel {
    width: 1px;
    height: 1px;
    pointer-events: none;
}

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

@media (max-width: 768px) {
    #hero-word {
        font-size: clamp(14vw, 22vw, 50vw);
    }

    .glass-card {
        width: 80vw !important;
        max-width: none !important;
        position: relative !important;
        left: 10vw !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        margin-bottom: 2rem;
        clip-path: none !important;
    }

    .fullscreen-section {
        min-height: auto;
        padding: 10vh 0;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .oversized-text {
        font-size: 25vw;
        position: relative !important;
        left: -5vw !important;
        top: auto !important;
        right: auto !important;
    }

    .nav-item {
        font-size: clamp(6vw, 8vw, 12vw);
    }

    #nav-glyph {
        top: 1rem;
        right: 1rem;
    }

    .mask-glyph-medium {
        width: 50px;
    }

    .void-space {
        height: 15vh !important;
    }
}

@media (max-width: 480px) {
    .glass-card {
        width: 90vw !important;
        left: 5vw !important;
        padding: 20px;
    }

    .card-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .accent-word {
        font-size: clamp(1.5rem, 6vw, 3rem);
    }
}
