/* ============================================================
   GLOBAL DESIGN SYSTEM
   ============================================================ */

:root {
    --primary: #cc0000;
    --secondary: #1a2657;
    --white: #ffffff;
    --black: #0b1025;

    --border: rgba(26, 38, 87, 0.12);
    --muted: rgba(26, 38, 87, 0.65);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--secondary);
    font-family: "Space Grotesk", sans-serif;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

::selection {
    background: var(--primary);
    color: white;
}


/* ============================================================
   MATERIAL SYMBOLS
   ============================================================ */

.material-symbols-outlined {
    font-variation-settings:
        "FILL" 0,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
}


/* ============================================================
   BLUEPRINT GRID
   ============================================================ */

.blueprint-grid {
    background-image:
        radial-gradient(
            rgba(26, 38, 87, 0.65) 1px,
            transparent 1px
        );

    background-size: 32px 32px;
}

.blueprint-grid-light {
    background-image:
        radial-gradient(
            rgba(255, 255, 255, 0.5) 1px,
            transparent 1px
        );

    background-size: 32px 32px;
}


/* ============================================================
   TECHNICAL NAVIGATION
   ============================================================ */

.technical-nav-link {
    position: relative;

    display: inline-flex;
    align-items: center;

    height: 80px;

    color: var(--secondary);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: -0.02em;

    text-transform: uppercase;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.technical-nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: var(--primary);

    transition: width 0.3s ease;
}

.technical-nav-link:hover {
    color: var(--primary);
}

.technical-nav-link:hover::after,
.technical-nav-link.active::after {
    width: 100%;
}

.technical-nav-link.active {
    color: var(--primary);
}


/* ============================================================
   MOBILE NAVIGATION
   ============================================================ */

.mobile-nav-link {
    position: relative;

    display: block;

    padding: 17px 0;

    border-bottom: 1px solid var(--border);

    color: var(--secondary);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.05em;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--primary);
    padding-left: 8px;
}


/* ============================================================
   ANGULAR / STRUCTURAL SHAPES
   ============================================================ */

.structural-slant {
    clip-path: polygon(
        0 0,
        100% 0,
        95% 100%,
        0 100%
    );
}

.diagonal-clip {
    clip-path: polygon(
        0 0,
        100% 0,
        100% 85%,
        92% 100%,
        0 100%
    );
}

.hero-mask {
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        15% 100%
    );
}


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

.engineering-hero {
    position: relative;

    min-height: calc(100vh - 80px);

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            110deg,
            #10183d 0%,
            #1a2657 48%,
            #10183d 100%
        );
}

.engineering-hero::before {
    content: "";

    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            90deg,
            transparent 49.5%,
            rgba(255,255,255,.04) 50%,
            transparent 50.5%
        ),
        linear-gradient(
            transparent 49.5%,
            rgba(255,255,255,.04) 50%,
            transparent 50.5%
        );

    background-size: 80px 80px;

    pointer-events: none;
}


/* ============================================================
   TEXT STROKE
   ============================================================ */

.text-stroke-white {
    color: transparent;

    -webkit-text-stroke: 1px white;
    /* text-stroke: 1px white; */
}


/* ============================================================
   SECTION REVEAL
   ============================================================ */

.reveal,
.reveal-on-scroll {
    opacity: 0;

    transform:
        translateY(30px);

    transition:
        opacity 0.8s cubic-bezier(.22, 1, .36, 1),
        transform 0.8s cubic-bezier(.22, 1, .36, 1);
}

.reveal.active,
.reveal-on-scroll.active {
    opacity: 1;

    transform:
        translateY(0);
}


/* ============================================================
   PARALLAX
   ============================================================ */

.parallax-wrap {
    overflow: hidden;
}

.parallax-img {
    transition:
        transform 0.6s cubic-bezier(.22, 1, .36, 1);
}

.parallax-wrap:hover .parallax-img {
    transform:
        scale(1.08)
        translateY(-8px);
}


/* ============================================================
   IMAGE / STRUCTURAL CARDS
   ============================================================ */

.clip-card {
    clip-path: polygon(
        0 0,
        100% 0,
        100% 92%,
        94% 100%,
        0 100%
    );
}

.structural-card {
    position: relative;
    overflow: hidden;
}

.structural-card::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 4px;

    background: var(--primary);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.4s ease;
}

.structural-card:hover::after {
    transform: scaleX(1);
}


/* ============================================================
   DRAW LINE ANIMATION
   ============================================================ */

@keyframes drawLine {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.animate-draw {
    animation:
        drawLine 1.5s ease-out forwards;
}


/* ============================================================
   PULSE / SYSTEM STATUS
   ============================================================ */

@keyframes systemPulse {
    0%,
    100% {
        opacity: 1;
        box-shadow:
            0 0 0 rgba(204, 0, 0, 0.4);
    }

    50% {
        opacity: .65;
        box-shadow:
            0 0 14px rgba(204, 0, 0, 0.6);
    }
}

.system-pulse {
    animation:
        systemPulse 2s ease-in-out infinite;
}


/* ============================================================
   FOOTER
   ============================================================ */

.footer-heading {
    margin-bottom: 25px;

    color: var(--primary);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .2em;

    text-transform: uppercase;
}

.footer-link {
    color: rgba(255, 255, 255, .55);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .08em;

    transition:
        color .2s ease,
        padding-left .2s ease;
}

.footer-link:hover {
    color: white;
    padding-left: 5px;
}

.footer-meta {
    display: block;

    margin-bottom: 4px;

    color: rgba(255, 255, 255, .3);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .18em;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.engineering-button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 56px;

    padding:
        0 34px;

    background: var(--primary);

    color: white;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .15em;

    text-transform: uppercase;

    transition:
        background .25s ease,
        transform .25s ease;
}

.engineering-button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.engineering-button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 56px;

    padding:
        0 34px;

    border: 1px solid rgba(255,255,255,.4);

    color: white;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .15em;

    text-transform: uppercase;

    transition:
        background .25s ease,
        border-color .25s ease;
}

.engineering-button-outline:hover {
    background: rgba(255,255,255,.1);
    border-color: white;
}


/* ============================================================
   TECHNICAL LABELS
   ============================================================ */

.technical-label {
    color: var(--primary);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .3em;

    text-transform: uppercase;
}

.technical-meta {
    color: rgba(26, 38, 87, .45);

    font-family: "Space Grotesk", sans-serif;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .18em;

    text-transform: uppercase;
}


/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar {
    width: 8px;
}

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

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

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


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

@media (max-width: 1024px) {

    .technical-nav-link {
        height: 70px;
    }

}

@media (max-width: 640px) {

    .engineering-hero {
        min-height: calc(100vh - 80px);
    }

    .clip-card {
        clip-path: polygon(
            0 0,
            100% 0,
            100% 96%,
            96% 100%,
            0 100%
        );
    }

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }

}
