/* ============================================================
   PROTOSCEND — Brand CSS
   Theme: #7B7A7C base, red accent, diagonal animated lines
   ============================================================ */

:root {
    --bg-primary: #7B7A7C;
    --bg-secondary: #747375;
    --bg-card: #6e6d70;
    --bg-hex: #696869;
    --accent: #e02020;
    --accent-dark: #a01515;
    --accent-glow: rgba(224, 32, 32, 0.4);
    --text-primary: #f0f0f2;
    --text-secondary: #e0dfe2;
    --text-muted: #c8c7ca;
    --border: rgba(224, 32, 32, 0.25);
    --border-subtle: rgba(255,255,255,0.12);
    --font-display: 'Rajdhani', sans-serif;
    --font-body: 'Exo 2', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: #7B7A7C;
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================================
   ANIMATED BACKGROUND LINES
   position:fixed so they sit behind every section as you scroll
   ============================================================ */
.bg-line {
    position: fixed;
    height: 2px;
    background: rgba(43, 43, 46, 0.5);
    border-radius: 2px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

    .bg-line::before {
        content: '';
        position: absolute;
        top: -4px;
        bottom: -4px;
        width: 22%;
        left: -25%;
        background: linear-gradient( 90deg, rgba(43,43,46,0) 0%, rgba(120,15,15,0.5) 25%, rgba(220,30,30,0.9) 50%, rgba(255,80,60,1) 60%, rgba(180,25,25,0.7) 75%, rgba(43,43,46,0) 100% );
        filter: blur(2px);
        box-shadow: 0 0 8px #ff2a2a, 0 0 18px rgba(255,0,0,0.4);
        animation: lineTravel linear infinite;
    }

@keyframes lineTravel {
    0% {
        left: -25%;
    }

    100% {
        left: 105%;
    }
}

.bg-line.l1 {
    top: 18%;
    left: -10%;
    width: 125%;
    transform: rotate(16deg);
}

    .bg-line.l1::before {
        animation-duration: 7s;
    }

.bg-line.l2 {
    top: 52%;
    left: -10%;
    width: 125%;
    transform: rotate(-20deg);
}

    .bg-line.l2::before {
        animation-duration: 9s;
        animation-delay: -2.5s;
    }

.bg-line.l3 {
    top: 78%;
    left: -10%;
    width: 125%;
    transform: rotate(13deg);
}

    .bg-line.l3::before {
        animation-duration: 8s;
        animation-delay: -4s;
    }

.bg-line.l4 {
    top: -10%;
    left: 28%;
    width: 130vh;
    transform: rotate(76deg);
    transform-origin: left top;
}

    .bg-line.l4::before {
        animation-duration: 10s;
        animation-delay: -1s;
    }

.bg-line.l5 {
    top: -10%;
    left: 68%;
    width: 130vh;
    transform: rotate(98deg);
    transform-origin: left top;
}

    .bg-line.l5::before {
        animation-duration: 8.5s;
        animation-delay: -3s;
    }

/* Every section and element that needs to sit ABOVE the lines */
section, nav, footer, .navbar, .nav-mobile, .toast, #splash-screen {
    position: relative;
    z-index: 1;
}

/* ============================================================
   SPLASH / INTRO SCREEN
   ============================================================ */
#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #7B7A7C;
}

.splash-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, #6a1010 0%, #7B7A7C 70%);
}

.hex-grid-bg {
    position: absolute;
    inset: -10%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52'%3E%3Cpolygon points='30,2 56,16 56,36 30,50 4,36 4,16' fill='none' stroke='rgba(224,32,32,0.08)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 52px;
    animation: hexDrift 20s linear infinite;
}

@keyframes hexDrift {
    0% {
        transform: translate(0,0);
    }

    100% {
        transform: translate(60px, 52px);
    }
}

.splash-corner {
    position: absolute;
    width: 60px;
    height: 60px;
}

.splash-corner--tl {
    top: 24px;
    left: 24px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.splash-corner--tr {
    top: 24px;
    right: 24px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

.splash-corner--bl {
    bottom: 24px;
    left: 24px;
    border-bottom: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.splash-corner--br {
    bottom: 24px;
    right: 24px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

.splash-corner::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
}

.splash-corner--tl::before {
    top: -4px;
    left: -4px;
}

.splash-corner--tr::before {
    top: -4px;
    right: -4px;
}

.splash-corner--bl::before {
    bottom: -4px;
    left: -4px;
}

.splash-corner--br::before {
    bottom: -4px;
    right: -4px;
}

.circuit-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.circuit-line {
    position: absolute;
    background: var(--accent);
    opacity: 0;
}

.cl-1 {
    top: 24px;
    left: 84px;
    right: 84px;
    height: 2px;
    animation: drawLine 1s 0.3s forwards;
}

.cl-2 {
    bottom: 24px;
    left: 84px;
    right: 84px;
    height: 2px;
    animation: drawLine 1s 0.5s forwards;
}

.cl-3 {
    left: 24px;
    top: 84px;
    bottom: 84px;
    width: 2px;
    animation: drawLineV 1s 0.4s forwards;
}

.cl-4 {
    right: 24px;
    top: 84px;
    bottom: 84px;
    width: 2px;
    animation: drawLineV 1s 0.6s forwards;
}

@keyframes drawLine {
    0% {
        opacity: 0;
        transform: scaleX(0);
        transform-origin: left;
    }

    100% {
        opacity: 1;
        transform: scaleX(1);
        transform-origin: left;
    }
}

@keyframes drawLineV {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }

    100% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
}

.splash-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.splash-emblem {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: emblemIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

    .splash-emblem img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.fallback-emblem {
    width: 80px;
    height: 80px;
    align-items: center;
    justify-content: center;
}

@keyframes emblemIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-30deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.splash-wordmark {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    display: flex;
    line-height: 1;
}

    .splash-wordmark .letter {
        display: inline-block;
        color: var(--text-primary);
        opacity: 0;
        transform: translateY(40px) skewX(-5deg);
        animation: letterIn 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
        text-shadow: 0 0 30px rgba(0,0,0,0.3);
    }

.letter:nth-child(1) {
    animation-delay: 0.70s;
}

.letter:nth-child(2) {
    animation-delay: 0.78s;
}

.letter:nth-child(3) {
    animation-delay: 0.86s;
}

.letter:nth-child(4) {
    animation-delay: 0.94s;
}

.letter:nth-child(5) {
    animation-delay: 1.02s;
}

.letter:nth-child(6) {
    animation-delay: 1.10s;
}

.letter:nth-child(7) {
    animation-delay: 1.18s;
}

.letter:nth-child(8) {
    animation-delay: 1.26s;
}

.letter:nth-child(9) {
    animation-delay: 1.34s;
}

.letter:nth-child(10) {
    animation-delay: 1.42s;
}

.accent-letter {
    color: var(--accent) !important;
    text-shadow: 0 0 20px var(--accent-glow) !important;
}

.tail-letter {
    position: relative;
}

    .tail-letter::after {
        content: '';
        position: absolute;
        bottom: 4px;
        right: -3px;
        width: 8px;
        height: 3px;
        background: var(--accent);
        opacity: 0;
        animation: tailIn 0.3s 1.8s forwards;
    }

@keyframes tailIn {
    to {
        opacity: 1;
    }
}

@keyframes letterIn {
    0% {
        opacity: 0;
        transform: translateY(40px) skewX(-5deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) skewX(0);
    }
}

.splash-tagline {
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 2vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeUp 0.6s 1.9s forwards;
}

.splash-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeUp 0.4s 2.1s forwards;
}

.loader-bar {
    width: 240px;
    height: 2px;
    background: rgba(0,0,0,0.15);
    border-radius: 2px;
    overflow: hidden;
}

.loader-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent), #ff6060);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-glow);
    animation: loadBar 1.2s 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loadBar {
    0% {
        width: 0;
    }

    60% {
        width: 80%;
    }

    100% {
        width: 100%;
    }
}

.loader-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    animation: blink 1s 2.2s step-end 3;
}

@keyframes blink {
    50% {
        opacity: 0.3;
    }
}

#splash-screen.exiting {
    animation: splashExit 0.8s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes splashExit {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.05);
        pointer-events: none;
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    transition: background var(--transition), border-color var(--transition);
    border-bottom: 1px solid transparent;
}

    .navbar.scrolled {
        background: rgba(100, 99, 102, 0.95);
        border-bottom-color: var(--border);
        backdrop-filter: blur(12px);
    }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

    .nav-brand img {
        height: 38px;
        width: auto;
        filter: drop-shadow(0 0 6px var(--accent-glow));
    }

.nav-brand-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
}

    .nav-brand-text span {
        color: var(--accent);
    }

.nav-spacer {
    flex: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

    .nav-links a {
        font-family: var(--font-display);
        font-size: 0.9rem;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--text-primary);
        text-decoration: none;
        position: relative;
        padding-bottom: 4px;
        transition: color var(--transition);
    }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--accent);
            transition: width var(--transition);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

.nav-cta {
    margin-left: 1.5rem;
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent) !important;
    font-family: var(--font-display);
    font-size: 0.85rem !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color var(--transition), background var(--transition) !important;
}

    .nav-cta::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--accent);
        transform: translateX(-100%);
        transition: transform var(--transition);
        z-index: -1;
    }

    .nav-cta:hover {
        color: #fff !important;
    }

        .nav-cta:hover::before {
            transform: translateX(0);
        }

    .nav-cta::after {
        display: none !important;
    }

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}

    .nav-hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-primary);
        transition: var(--transition);
    }

.nav-mobile {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(100, 99, 102, 0.98);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    z-index: 999;
    flex-direction: column;
    gap: 1.5rem;
}

    .nav-mobile.open {
        display: flex;
    }

    .nav-mobile a {
        font-family: var(--font-display);
        font-size: 1.2rem;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--text-primary);
        text-decoration: none;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-subtle);
        transition: color var(--transition);
    }

        .nav-mobile a:hover {
            color: var(--accent);
        }

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: calc(var(--nav-height) + 4rem) clamp(1.5rem, 8vw, 6rem) 4rem;
    position: relative;
    overflow: hidden;
    background: transparent;
}

    .hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 20% 50%, rgba(80, 10, 10, 0.35) 0%, transparent 65%);
        z-index: 0;
        pointer-events: none;
    }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeUp 0.6s 0.2s forwards;
}

    .hero-label::before {
        content: '';
        display: block;
        width: 32px;
        height: 2px;
        background: var(--accent);
        flex-shrink: 0;
    }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.7s 0.4s forwards;
}

    .hero-title .accent {
        color: var(--accent);
    }

    .hero-title .outlined {
        -webkit-text-stroke: 1px var(--text-primary);
        color: transparent;
    }

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.7s 0.6s forwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.7s 0.8s forwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.85rem 2rem;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

    .btn-primary::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0.15);
        transform: translateX(-100%) skewX(-10deg);
        transition: transform 0.4s;
    }

    .btn-primary:hover {
        box-shadow: 0 8px 30px var(--accent-glow);
        transform: translateY(-2px);
    }

        .btn-primary:hover::before {
            transform: translateX(100%) skewX(-10deg);
        }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.85rem 2rem;
    background: rgba(0,0,0,0.15);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

    .btn-secondary:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

.hero-visual {
    position: absolute;
    right: clamp(2rem, 6vw, 8rem);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(220px, 30vw, 420px);
    height: clamp(220px, 30vw, 420px);
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s 1s forwards;
}

.hex-ring {
    position: absolute;
    border: 1px solid;
    border-radius: 4px;
    animation: rotateRing linear infinite;
}

.hex-ring-1 {
    inset: 0;
    border-color: rgba(224,32,32,0.2);
    animation-duration: 30s;
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}

.hex-ring-2 {
    inset: 15%;
    border-color: rgba(224,32,32,0.35);
    animation-duration: 20s;
    animation-direction: reverse;
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}

.hex-ring-3 {
    inset: 30%;
    border-color: rgba(224,32,32,0.5);
    animation-duration: 15s;
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}

.hex-center {
    position: absolute;
    inset: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hex-center img {
        width: 100%;
        filter: drop-shadow(0 0 20px var(--accent-glow));
    }

@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    animation: fadeIn 0.6s 1.5s forwards;
    cursor: pointer;
    z-index: 2;
}

    .hero-scroll span {
        font-family: var(--font-mono);
        font-size: 0.65rem;
        letter-spacing: 0.2em;
        color: var(--text-primary);
    }

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 1.5s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* ============================================================
   SECTIONS GENERAL
   ============================================================ */
section {
    padding: clamp(4rem, 10vh, 8rem) clamp(1.5rem, 8vw, 6rem);
    position: relative;
    z-index: 1;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .section-label::before {
        content: '';
        display: block;
        width: 28px;
        height: 2px;
        background: var(--accent);
        flex-shrink: 0;
    }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

    .section-title .accent {
        color: var(--accent);
    }

.section-body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 640px;
}

.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--accent), transparent);
    margin: 1.5rem 0;
}

/* ============================================================
   ABOUT — semi-transparent so lines show through
   ============================================================ */
.about-section {
    background: rgba(110, 109, 112, 0.70);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(4px);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-card {
    padding: 1.5rem;
    background: rgba(90, 89, 92, 0.75);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--accent);
    position: relative;
    overflow: hidden;
}

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 30px;
        height: 30px;
        background: var(--accent);
        opacity: 0.07;
        clip-path: polygon(100% 0, 0 0, 100% 100%);
    }

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.about-visual {
    position: relative;
    height: 400px;
}

.about-hex-mosaic {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 8px;
    transform: rotate(-10deg) scale(1.1);
    opacity: 0.5;
}

.hex-tile {
    background: rgba(80,79,82,0.6);
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
    transition: background var(--transition);
}

    .hex-tile:hover {
        background: rgba(224,32,32,0.3);
    }

    .hex-tile.active {
        background: rgba(224,32,32,0.2);
    }

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-visual {
        display: none;
    }
}

/* ============================================================
   SERVICES — transparent background, lines show through
   ============================================================ */
.services-section {
    background: rgba(123, 122, 124, 0.70);
    backdrop-filter: blur(2px);
}

.services-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(90, 89, 92, 0.8);
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

    .service-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent);
        transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .service-card:hover {
        border-color: rgba(224,32,32,0.4);
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    }

        .service-card:hover::after {
            width: 100%;
        }

.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(224,32,32,0.12);
    border: 1px solid rgba(224,32,32,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
    transition: background var(--transition);
}

.service-card:hover .service-icon {
    background: rgba(224,32,32,0.22);
}

.service-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.service-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    opacity: 0.5;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-section {
    background: rgba(110, 109, 112, 0.70);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(4px);
}

.process-steps {
    display: flex;
    gap: 0;
    max-width: 1200px;
    margin: 3rem auto 0;
    position: relative;
}

    .process-steps::before {
        content: '';
        position: absolute;
        top: 30px;
        left: 2rem;
        right: 2rem;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--accent), transparent);
        opacity: 0.4;
    }

.process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.step-node {
    width: 60px;
    height: 60px;
    background: rgba(90, 89, 92, 0.9);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
    transition: background var(--transition);
}

.process-step:hover .step-node {
    background: rgba(224,32,32,0.2);
}

.step-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.step-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 700px) {
    .process-steps {
        flex-direction: column;
    }

        .process-steps::before {
            display: none;
        }
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 3rem;
    max-width: 1200px;
}

.tech-badge {
    padding: 0.4rem 1rem;
    background: rgba(90, 89, 92, 0.8);
    border: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    transition: border-color var(--transition), color var(--transition);
}

    .tech-badge:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-section {
    background: rgba(123, 122, 124, 0.70);
    backdrop-filter: blur(2px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.project-card {
    background: rgba(90, 89, 92, 0.85);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}

    .project-card:hover {
        border-color: rgba(224,32,32,0.45);
        box-shadow: 0 16px 40px rgba(0,0,0,0.25);
    }

.project-img {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(80,79,82,0.9) 0%, rgba(60,20,20,0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-img-placeholder {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(224,32,32,0.25);
    letter-spacing: 0.2em;
}

.project-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(90,89,92,0.9));
}

.project-body {
    padding: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    background: rgba(224,32,32,0.12);
    border: 1px solid rgba(224,32,32,0.25);
    color: var(--accent);
}

.project-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.project-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-primary);
    transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.project-card:hover .project-arrow {
    border-color: var(--accent);
    color: var(--accent);
    transform: translate(2px, -2px);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
    background: rgba(110, 109, 112, 0.70);
    border-top: 1px solid var(--border-subtle);
    backdrop-filter: blur(4px);
}

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

@media (max-width: 860px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(90, 89, 92, 0.8);
    border: 1px solid var(--border-subtle);
    border-left: 2px solid var(--accent);
}

.contact-item-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    opacity: 0.7;
}

.contact-item-value {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-primary);
    opacity: 0.8;
}

.form-input, .form-textarea {
    background: rgba(90, 89, 92, 0.8);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color var(--transition);
    resize: vertical;
}

    .form-input:focus, .form-textarea:focus {
        border-color: var(--accent);
    }

.form-textarea {
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: rgba(95, 94, 97, 0.92);
    border-top: 1px solid var(--border-subtle);
    padding: 3rem clamp(1.5rem, 8vw, 6rem) 2rem;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(6px);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

    .footer-brand img {
        height: 34px;
    }

.footer-brand-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
}

    .footer-brand-text span {
        color: var(--accent);
    }

.footer-tagline {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
}

    .footer-links a {
        font-family: var(--font-display);
        font-size: 0.85rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--text-primary);
        text-decoration: none;
        transition: color var(--transition);
        opacity: 0.8;
    }

        .footer-links a:hover {
            color: var(--accent);
            opacity: 1;
        }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    opacity: 0.65;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color var(--transition), color var(--transition);
}

    .social-icon:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

/* ============================================================
   SCROLL-REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #fff;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-dark);
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--accent);
    }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(90, 89, 92, 0.95);
    border: 1px solid var(--accent);
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-primary);
    letter-spacing: 0.08em;
    z-index: 9000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

    .toast.show {
        opacity: 1;
        transform: translateY(0);
    }

/* ============================================================
   FORM VALIDATION
   ============================================================ */
.form-error {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-top: 4px;
    display: block;
}

.form-status {
    padding: 0.85rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    border-left: 3px solid;
}

.form-status--success {
    background: rgba(32,180,80,0.12);
    border-color: #20b450;
    color: #20b450;
}

.form-status--error {
    background: rgba(224,32,32,0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   PROJECT DETAIL PAGES
   ============================================================ */
.project-page {
    min-height: 100vh;
    padding-top: var(--nav-height);
}

.project-page-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem clamp(1.5rem, 8vw, 6rem) 4rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
    gap: 2rem;
    background: rgba(110, 109, 112, 0.7);
    backdrop-filter: blur(4px);
}

    .project-page-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 15% 50%, rgba(224,32,32,0.08) 0%, transparent 65%);
        pointer-events: none;
    }

.project-page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.back-link {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.75;
}

    .back-link:hover {
        color: var(--accent);
        opacity: 1;
    }

.project-page-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.02em;
    margin: 0.75rem 0 1rem;
}

.project-page-tagline {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

.project-page-hero-visual {
    position: relative;
    width: clamp(180px, 22vw, 320px);
    height: clamp(180px, 22vw, 320px);
    flex-shrink: 0;
}

.pp-hex-ring {
    position: absolute;
    border: 1px solid;
    animation: rotateRing linear infinite;
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}

.pp-ring-1 {
    inset: 0;
    border-color: rgba(224,32,32,0.2);
    animation-duration: 25s;
}

.pp-ring-2 {
    inset: 18%;
    border-color: rgba(224,32,32,0.4);
    animation-duration: 16s;
    animation-direction: reverse;
}

.pp-abbr {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: rgba(224,32,32,0.25);
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .project-page-hero-visual {
        display: none;
    }
}

.project-page-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 8vw, 6rem);
}

.pp-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    align-items: start;
}

@media (max-width: 860px) {
    .pp-overview {
        grid-template-columns: 1fr;
    }
}

.pp-feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.pp-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(90,89,92,0.8);
    border: 1px solid var(--border-subtle);
    border-left: 2px solid var(--accent);
    transition: border-color var(--transition), transform var(--transition);
}

    .pp-feature-item:hover {
        border-color: rgba(224,32,32,0.5);
        transform: translateX(4px);
    }

.pp-feature-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-feature-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.pp-feature-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pp-screenshots {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.pp-screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.pp-screenshot-card {
    background: rgba(90,89,92,0.85);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    aspect-ratio: 16/10;
    position: relative;
    transition: border-color var(--transition), box-shadow var(--transition);
}

    .pp-screenshot-card:hover {
        border-color: rgba(224,32,32,0.4);
        box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    }

    .pp-screenshot-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        inset: 0;
        z-index: 1;
    }

.pp-screenshot-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1rem;
    text-align: center;
    z-index: 0;
}

    .pp-screenshot-placeholder span {
        font-family: var(--font-display);
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        letter-spacing: 0.1em;
        opacity: 0.6;
    }

    .pp-screenshot-placeholder small {
        font-family: var(--font-mono);
        font-size: 0.62rem;
        color: var(--text-primary);
        letter-spacing: 0.08em;
        opacity: 0.4;
    }

.pp-screenshot-card:not(.no-img) .pp-screenshot-placeholder {
    display: none;
}

.pp-tech-section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.pp-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.pp-tech-card {
    background: rgba(90,89,92,0.8);
    border: 1px solid var(--border-subtle);
    padding: 1.25rem 1.5rem;
    transition: border-color var(--transition);
    position: relative;
    overflow: hidden;
}

    .pp-tech-card::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent);
        transition: width 0.4s;
    }

    .pp-tech-card:hover {
        border-color: var(--border);
    }

        .pp-tech-card:hover::before {
            width: 100%;
        }

.pp-tech-card-title {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.pp-tech-card-body {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.pp-cta {
    padding: 5rem 0 6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================================
   SERVICES CAROUSEL
   ============================================================ */
.services-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.services-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

    .services-carousel-track .service-card {
        flex: 0 0 calc(33.333% - 1rem);
        min-width: 0;
    }

@media (max-width: 1024px) {
    .services-carousel-track .service-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 640px) {
    .services-carousel-track .service-card {
        flex: 0 0 calc(100% - 0rem);
    }
}

/* Navigation dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), width var(--transition);
    padding: 0;
}

    .carousel-dot.active {
        background: var(--accent);
        width: 24px;
        border-radius: 4px;
        box-shadow: 0 0 8px var(--accent-glow);
    }

/* Arrow buttons */
.carousel-arrows {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(90,89,92,0.8);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

    .carousel-arrow:hover {
        border-color: var(--accent);
        background: rgba(224,32,32,0.15);
        color: var(--accent);
    }

    .carousel-arrow:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }
/* ============================================================
   CLEAN MODERN SPLASH SCREEN
   ============================================================ */

#splash-screen {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 99999;
    background: linear-gradient(135deg, #2a2a2d 0%, #444447 100%);
}

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

.splash-background {
    position: absolute;
    inset: 0;
}

.bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.25) 70%);
}

.bg-grain {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: repeating-linear-gradient( 90deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 6px );
}

/* =========================================
   CENTER CONTENT
========================================= */

.splash-center {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
}

/* =========================================
   LOGO
========================================= */

.splash-logo-wrap {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeLogo 0.9s ease forwards;
}

    .splash-logo-wrap img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35));
    }

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

/* =========================================
   TEXT BLOCK
========================================= */

.splash-text-block {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.splash-wordmark {
    display: flex;
    gap: 0.08em;
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(3rem, 5vw, 5.2rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1;
    color: #f0f0f2;
    align-items: center;
}

    .splash-wordmark span {
        opacity: 0;
        transform: translateY(18px);
        animation: revealLetter 0.5s ease forwards;
    }

        .splash-wordmark span:nth-child(1) {
            animation-delay: 0.10s;
        }

        .splash-wordmark span:nth-child(2) {
            animation-delay: 0.15s;
        }

        .splash-wordmark span:nth-child(3) {
            animation-delay: 0.20s;
        }

        .splash-wordmark span:nth-child(4) {
            animation-delay: 0.25s;
        }

        .splash-wordmark span:nth-child(5) {
            animation-delay: 0.30s;
        }

        .splash-wordmark span:nth-child(6) {
            animation-delay: 0.35s;
        }

        .splash-wordmark span:nth-child(7) {
            animation-delay: 0.40s;
        }

        .splash-wordmark span:nth-child(8) {
            animation-delay: 0.45s;
        }

        .splash-wordmark span:nth-child(9) {
            animation-delay: 0.50s;
        }

        .splash-wordmark span:nth-child(10) {
            animation-delay: 0.55s;
        }

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

/* =========================================
   ACCENT-E  —  3 stacked red bars (hamburger)
   The letter character is hidden; a ::after
   pseudo-element draws three evenly-spaced
   horizontal lines in its place.
========================================= */

.accent-e {
    position: relative;
    color: transparent; /* hide the actual "E" glyph   */
    display: inline-block;
    /*
     * Force a fixed width equal to the average letter width so
     * the gap-left (after C) and gap-right (before N) are both
     * driven solely by the shared letter-spacing on the parent,
     * not by C's wider or N's narrower natural advance width.
     */
    width: 0.52em;
    text-align: center;
}

    .accent-e::after {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%); /* centre bars within the fixed width */
        top: 0.17em; /* vertical start of top bar          */
        width: 0.52em; /* bar width                          */
        height: 0.08em; /* bar thickness                      */
        background: #e02020;
        border-radius: 2px;
        /* middle bar and bottom bar via box-shadow */
        box-shadow: 0 0.24em 0 #e02020, /* middle bar */
        0 0.48em 0 #e02020; /* bottom bar */
    }


/* =========================================
   TAGLINE
========================================= */

.splash-tagline {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.28em;
    color: rgba(255,255,255,0.78);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeTagline 0.6s ease 0.9s forwards;
}

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

/* =========================================
   ACCENT LINE
========================================= */

.splash-accent-line {
    width: 80px;
    height: 3px;
    background: #e02020;
    border-radius: 2px;
    opacity: 0;
    animation: fadeLine 0.5s ease 1.1s forwards;
}

@keyframes fadeLine {
    to {
        opacity: 1;
    }
}

/* =========================================
   TECH LINES
========================================= */

.tech-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255, 0, 0, 0.7));
    opacity: 0.5;
}

.tl-top {
    top: 80px;
    right: 0;
    width: 420px;
    clip-path: polygon(0 0, 70% 0, 78% 100%, 100% 100%, 100% 0);
}

.tl-bottom {
    bottom: 80px;
    left: 0;
    width: 520px;
    background: linear-gradient(to right, #e02020, rgba(255, 0, 0, 0.7));
    clip-path: polygon(0 100%, 65% 100%, 72% 0, 100% 0, 100% 100%);
}

/* =========================================
   HEXAGONS
   
   The clip-path approach clips any CSS border
   before it can render, leaving gaps/missing
   edges. Fix: use a background-colour layer
   (the "stroke" colour) with a ::after
   pseudo-element punched out on top using
   the same clip-path but slightly inset,
   painted in the splash background colour.
========================================= */

.hex-group {
    position: absolute;
    display: flex;
    gap: 18px;
}

.hex-top-right {
    top: 70px;
    right: 70px;
}

.hex-bottom-left {
    bottom: 70px;
    left: 70px;
}

/* shared hex shape */
.hex {
    width: 90px;
    height: 100px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    position: relative;
}

    /* filled variants */
    .hex.solid {
        background: #69696d;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 10px 25px rgba(0,0,0,0.18);
    }

    .hex.dark {
        background: #3f3f42;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 10px 25px rgba(0,0,0,0.18);
    }

    /*
 * OUTLINED HEX
 * The outer element is filled with the stroke colour.
 * ::after is a slightly smaller hex (inset via scale)
 * filled with the splash background, creating a perfect
 * fully-closed outline with no gaps.
 */
    .hex.outline {
        background: rgba(255,255,255,0.45); /* grey stroke colour */
    }

        .hex.outline.red {
            background: #e02020; /* red stroke colour  */
        }

        .hex.outline::after {
            content: '';
            position: absolute;
            inset: 0;
            background: #333336; /* matches splash bg  */
            clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
            transform: scale(0.84); /* controls stroke thickness */
            transform-origin: center;
        }

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

@media (max-width: 900px) {

    .splash-center {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .splash-wordmark {
        font-size: clamp(2rem, 8vw, 4rem);
        justify-content: center;
    }

    .splash-tagline {
        letter-spacing: 0.18em;
        font-size: 0.8rem;
    }

    .splash-accent-line {
        margin: 0 auto;
    }

    .hex {
        width: 60px;
        height: 68px;
    }

    .tl-top,
    .tl-bottom {
        width: 240px;
    }
}