/* Color Palette & Base System */
:root {
    --bg-dark: #0a0a0c;
    --neon-yellow: #fcee0a;
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff0055;
    --cyber-blue: #1034a6;
    --text-white: #f1f1f1;
    --font-display: 'BlenderPro-Bold', 'Orbitron', sans-serif;
    --font-body: 'Share Tech Mono', monospace;
}

@font-face {
    font-family: 'BlenderPro-Bold';
    src: url('https://www.cyberpunk.net/fonts/BlenderPro-Bold.woff2') format('woff2');
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    user-select: none;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    background:
        radial-gradient(circle at 50% 20%, rgba(16, 52, 166, 0.05), transparent 40%),
        radial-gradient(circle at 50% 0%, rgba(255, 0, 85, 0.02), transparent 32%),
        linear-gradient(180deg, rgba(5, 5, 7, 0.58) 0%, rgba(7, 7, 10, 0.42) 45%, rgba(3, 3, 5, 0.66) 100%);
    color: var(--text-white);
    overflow-x: hidden;
    width: 100%;
    position: relative;
    min-height: 200vh;
}

/* GIF background */
.bg-gif {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    opacity: 0.74;
    filter: brightness(0.58) contrast(1.05) saturate(0.9) blur(0.2px);
    pointer-events: none;
    display: block;
}

/* Cyberpunk Color Grading Filter (Matrix/Neon Overlay) */
.cyber-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* increase foreground darkness so the hero/content sits above a darker layer */
    background:
        radial-gradient(circle at center, transparent 34%, rgba(0, 0, 0, 0.66) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.48));
    pointer-events: none;
    z-index: 0;
}

/* Moving Scanlines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    ), linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.02),
        rgba(0, 0, 0, 0.02),
        rgba(255, 255, 255, 0.01)
    );
    background-size: 100% 4px, 6px 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.10;
}

/* Header & Logos */
.topbar {
    position: fixed;
    top: 16px;
    left: 14px;
    width: 100%;
    width: calc(100% - 36px);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    padding: 5px 13px;
    z-index: 100;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    clip-path: polygon(0 16px, 16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px));
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.topbar.scrolled {
    background: rgba(4, 4, 6, 0.42);
    border: 1px  rgba(0, 240, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(6px);
}

/* --- 1. Smaller, Glitchy Logo Configuration --- */
.logo {
    /* Keep the logo inside the header flow so it doesn't overlap the nav */
    position: relative;
    top: auto;
    left: auto;

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

    width: clamp(56px, 6.5vw, 80px);
    height: auto;

    margin: 0;
    cursor: pointer;
    z-index: 1000;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Mobile: slightly reduce topbar padding and logo size to prevent overlap */
@media (max-width: 520px) {
    .topbar {
        top: 8px;
        padding: 4px 8px;
        gap: 10px;
    }

    .logo {
        width: clamp(56px, 16vw, 80px);
        flex-shrink: 0;
    }

    /* allow nav to scroll horizontally if there's not enough room */
    .nav-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.nav-tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: rgba(4, 16, 20, 0.94);
    border: 1px solid rgba(0, 240, 255, 0.45);
    overflow: hidden;
    clip-path: polygon(0 16px, 16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px));
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scan-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    width: 34px;
    height: 34px;
    margin-left: 0;
    padding: 0;
    color: var(--neon-cyan);
    background: transparent;
    border: 0;
    clip-path: none;
    box-shadow: none;
    touch-action: none;
    z-index: 12;
    cursor: grab;
    transform: none;
}

.scan-toggle.is-dragging {
    cursor: grabbing;
}

.scan-toggle.is-floating {
    position: fixed;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    z-index: 1200;
}

.scan-lens-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
    margin-left: 2px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.scan-lens-icon::after {
    content: '';
    position: absolute;
    right: -7px;
    bottom: -5px;
    width: 10px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: center;
}

.terminal-scan-zone {
    --x: 50%;
    --y: 50%;
    --lens-size: 150px;
    --reticle-size: 92px;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    box-shadow: none;
    clip-path: none;
    pointer-events: none;
    z-index: 6;
}

.terminal-scan-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 240, 255, 0.04) 0 1px, transparent 1px 100%),
        linear-gradient(rgba(0, 240, 255, 0.05) 0 1px, transparent 1px 100%);
    background-size: 72px 72px;
    opacity: 0.12;
    pointer-events: none;
}

.scan-grid,
.scan-static-data,
.hidden-data-layer,
.scan-lens {
    position: absolute;
    inset: 0;
}

.scan-grid {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.12;
}

.scan-static-data {
    color: rgba(255, 255, 255, 0.05);
    font-size: 0.86rem;
    letter-spacing: 4px;
}

.scan-static-data span {
    position: absolute;
}

.scan-static-data span:nth-child(1) { top: 18px; left: 24px; }
.scan-static-data span:nth-child(2) { top: 48px; right: 22px; }
.scan-static-data span:nth-child(3) { bottom: 30px; left: 8%; }
.scan-static-data span:nth-child(4) { bottom: 18px; right: 10%; }

.hidden-data-layer {
    z-index: 2;
    pointer-events: none;
    mask-image: radial-gradient(circle var(--lens-size) at var(--x) var(--y), #000 0 58%, transparent 74%);
    -webkit-mask-image: radial-gradient(circle var(--lens-size) at var(--x) var(--y), #000 0 58%, transparent 74%);
    opacity: 1;
    transition: opacity 0.15s ease;
}

.hidden-data-item {
    position: absolute;
    left: var(--hx);
    top: var(--hy);
    transform: translate(-50%, -50%);
    color: var(--neon-cyan);
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 1.2vw, 1.35rem);
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.45), 0 0 24px rgba(0, 240, 255, 0.2);
    white-space: nowrap;
}

.scan-lens {
    z-index: 3;
    pointer-events: none;
    width: var(--lens-size);
    height: var(--lens-size);
    left: calc(var(--x) - (var(--lens-size) / 2));
    top: calc(var(--y) - (var(--lens-size) / 2));
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.55);
    background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, rgba(0, 240, 255, 0.08) 26%, rgba(0, 0, 0, 0) 65%);
    box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.16), 0 0 18px rgba(0, 240, 255, 0.18), inset 0 0 24px rgba(0, 240, 255, 0.1);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.terminal-scan-zone[data-scan-mode="drag"] .scan-lens {
    opacity: 0;
}

/* Individual tab containers styled with Cyberpunk Angular Cuts */
.nav-dropdown {
    position: relative;
    background: transparent;
    border-right: 1px solid rgba(0, 240, 255, 0.28);
}

.nav-tab {
    min-height: 46px;
    background: linear-gradient(180deg, rgba(10, 20, 24, 0.9), rgba(5, 12, 15, 0.96));
    color: #fff;
    border: none;
    font-family: var(--font-display), 'Orbitron', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    padding: 10px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    white-space: nowrap;
}
.nav-dropdown:first-child .nav-tab {
    clip-path: polygon(0 16px, 16px 0, 100% 0, 100% 100%, 0 100%);
}

.nav-dropdown:last-child .nav-tab {
    border-right: 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    background: rgba(10, 16, 12, 0.96);
    border: 1px solid rgba(0, 240, 255, 0.8);
    display: none;
    flex-direction: column;
    z-index: 100;
    backdrop-filter: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.nav-dropdown:last-child .dropdown-panel {
    left: auto;
    right: 0;
}

.nav-dropdown:not(:last-child) .nav-tab {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-dropdown.open .dropdown-panel {
    display: flex;
}

.dropdown-panel a {
    color: var(--text-white);
    text-decoration: none;
    padding: 12px 16px;
    font-size: 0.88rem;
    letter-spacing: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-panel a:hover {
    background: rgba(0, 240, 255, 0.12);
    color: var(--neon-cyan);
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    display: flex;
}

/* Glitch Effect Core */
.glitch-large {
    position: relative;
}
.glitch-large::before, .glitch-large::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}

/* Hero Section Elements */
.hero {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 90px 0 40px;
}

/* Centered content container inside the hero to match other sections */
.hero-content {
    width: min(1180px, calc(100vw - 36px));
    margin: 0 auto;
    padding: 24px 18px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    z-index: 2;
}

.glitch-large {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 5.5rem);
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: 8px;
    text-shadow: 3px 3px 0px rgba(16, 52, 166, 0.45), 0 0 18px rgba(0, 0, 0, 0.35);
    word-break: break-word;
}

.glitch-large::before,
.glitch-large::after {
    background: transparent;
}

.subtitle {
    color: var(--neon-cyan);
    letter-spacing: 3px;
    margin-top: 10px;
}

/* Constant Moving HUD Modules */
.hud-box {
    position: absolute;
    background: rgba(16, 52, 166, 0.2);
    border: 1px solid var(--neon-cyan);
    padding: 15px;
    width: 200px;
}
.hud-box.left { bottom: 0%; left: 4%; animation: floatY 4s ease-in-out infinite; }
.hud-box.right { top: 20%; right: 5%; animation: floatY 5s ease-in-out infinite 1s; }

.timer-hud {
    width: clamp(330px, 38vw, 480px);
    padding: 14px 16px 16px;
    background: rgba(5, 10, 15, 0.78);
    border-color: rgba(0, 240, 255, 0.85);
    box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.08), 0 12px 34px rgba(0, 0, 0, 0.3);
}

.hud-header {
    background: var(--neon-cyan);
    color: #000;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 2px 5px;
    margin-bottom: 10px;
}

.timer-display {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 3.7vw, 3.8rem);
    line-height: 1;
    color: var(--neon-cyan);
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.22);
    font-variant-numeric: tabular-nums;
    text-align: center;
    padding: 12px 0 8px;
    white-space: nowrap;
}

.timer-caption {
    margin-top: 4px;
    color: rgba(241, 241, 241, 0.65);
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-align: center;
}

.resources-endpoint {
    width: 100vw;
    max-width: 100%;
    margin: 220px calc(50% - 50vw) 0;
    padding: 0 18px;
    scroll-margin-top: 128px;
    box-sizing: border-box;
}

.resources-shell {
    width: min(1180px, calc(100vw - 36px));
    min-height: 210px;
    margin: 0 auto;
    padding: 30px 32px 28px;
    background: #041014; /* solid background for readability */
    border-top: 1px solid rgba(0, 240, 255, 0.18);
    border-bottom: 1px solid rgba(0, 240, 255, 0.18);
    position: relative;
    z-index: 20; /* make sure this sits above overlays */
    box-shadow: 0 18px 48px rgba(4,8,12,0.6);
}

.resources-kicker {
    color: var(--neon-cyan);
    font-family: var(--font-display);
    letter-spacing: 4px;
    margin-bottom: 12px;
    font-weight: bolder;
    font-size: x-large;
}

.resources-shell h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.4vw, 2.2rem);
    letter-spacing: 2px;
    max-width: 34ch;
    color: #f4f7fb;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.resource-card {
    padding: 18px 18px 16px;
    background: #071018; /* solid card background */
    border: 1px solid rgba(0, 240, 255, 0.18);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    min-height: 190px;
}

.resource-card h3 {
    font-family: var(--font-display);
    color: var(--neon-cyan);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.resource-card p {
    color: rgba(241, 241, 241, 0.82);
    line-height: 1.6;
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.resource-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.resource-links a {
    color: var(--neon-yellow);
    text-decoration: none;
    word-break: break-word;
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 4px 10px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    background: rgba(0, 240, 255, 0.06);
    letter-spacing: 1px;
}

.resource-links a:hover {
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.12);
}

/* Join recruitment accent strip */
/* --- Recruitment Accent Strip Configuration --- */
.recruitment-strip {
    width: 100vw;
    max-width: 100%;
    margin: 180px calc(50% - 50vw) 24px;
    padding: 0 0 0;
    position: relative;
    z-index: 2;
    box-sizing: border-box;

    /* Reveal Mechanics: Starts fully transparent and hidden below the canvas */
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    pointer-events: none; 
}

/* Activated class triggered seamlessly by the scroll JavaScript */
.recruitment-strip.reveal-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.recruitment-accent {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
    min-height: 176px;
    padding: 28px clamp(18px, 4vw, 54px);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0 9%, transparent 9% 100%),
        linear-gradient(180deg, #fcee0a 0%, #fff100 100%);
    color: #041014;
    overflow: hidden;
    box-shadow: 0 18px 0 rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(4, 16, 20, 0.7);
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 28px 100%, 0 calc(100% - 28px));
}

/* Industrial tech accents added to the left padding channel */
.recruitment-accent::before {
    content: '';
    position: absolute;
    inset: auto 0 0 auto;
    width: min(42vw, 520px);
    height: 64px;
    background:
        repeating-linear-gradient(-45deg, rgba(4, 16, 20, 0.98) 0 6px, transparent 6px 12px),
        linear-gradient(180deg, rgba(4, 16, 20, 0.18), rgba(4, 16, 20, 0.06));
    opacity: 0.9;
    clip-path: polygon(0 100%, 14px 0, 100% 0, calc(100% - 14px) 100%);
    z-index: 0;
}

.recruitment-copy {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    max-width: none;
    padding-right: 20px;
}

.recruitment-kicker {
    font-family: var(--font-display);
    font-size: 0.88rem;
    letter-spacing: 4px;
    margin-bottom: 10px;
    display: inline-block;
}

.recruitment-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.8vw, 3.35rem);
    letter-spacing: 2px;
    line-height: 1.02;
    margin-bottom: 10px;
    text-transform: uppercase;
    word-break: break-word;
}

.recruitment-text {
    max-width: 72ch;
    line-height: 1.6;
    font-size: 0.95rem;
}

.recruitment-button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 26px;
    border: 2px solid rgba(4, 16, 20, 0.95);
    background: #041014;
    color: var(--neon-yellow);
    font-family: var(--font-display);
    font-size: 0.92rem;
    letter-spacing: 3px;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
    flex: 0 0 auto;
}

.about-section{

    width:min(1200px,95%);

    margin:180px auto;

}
.about-title{
    font-family: var(--font-display);
    font-size: clamp(2.8rem,5vw,4.5rem);

    text-align:center;

    color:#ffffff;

    margin-bottom:70px;

    letter-spacing:3px;

    text-shadow:
        0 0 20px rgba(255,255,255,.25),
        0 0 50px rgba(0,0,0,.9);

    position:relative;

    z-index:10;
}

.about-title span{

    color:var(--neon-cyan);

    text-shadow:0 0 20px rgba(0,240,255,.45);

}
.about-card{
    background: rgba(22, 24, 31, 0.96);
    border: 1px solid rgba(0,240,255,.18);

    border-radius:18px;

    padding:40px;

    backdrop-filter: blur(8px);

    box-shadow:
        0 0 40px rgba(0,0,0,.45),
        inset 0 0 0 1px rgba(255,255,255,.03);
    margin-top:20px;
}

.about-row{
    display:grid;
    grid-template-columns:52% 48%;
    gap:20px;
    align-items:center;
}


.about-row:last-child{

    margin-bottom:0;

}

.about-text{

    font-size:1.15rem;

    line-height:1.9;

    color:#d2d7df;

}

.about-text h3{

    color:var(--neon-cyan);

    font-family:var(--font-display);

    margin-bottom:20px;

    font-size:2rem;

}

.about-text{

    font-size:1.18rem;

    line-height:2;

}

.about-text p{

    margin-bottom:26px;

}

.about-text h3{

    font-size:2.4rem;

    margin-bottom:30px;

}

.about-image img{

    width:100%;

    border-radius:16px;

    object-fit:cover;
}

.about-image{
    display:flex;
    justify-content:center;
    align-items:flex-start;
}

.about-image img{
    width:100%;
    max-width:620px;
    border-radius:18px;
    display:block;
}
.about-founder{
    display:grid;
    grid-template-columns: 1.45fr 0.75fr;
    gap:40px;
    align-items:center;
}

.founder-text{
    font-size:1.22rem;
    line-height:2;
}

.founder-text p{
    margin-bottom:28px;
}

.founder-image{
    display:flex;
    justify-content:center;
    align-items:center;
}

.founder-image img{
    width:75%;          /* was ~88-100% */
    max-width:320px;
    border-radius:16px;
    border:1px solid rgba(0,240,255,.15);
    display:block;
}
.about-text a{

    color:var(--neon-cyan);

    text-decoration:none;

    border-bottom:1px solid rgba(0,240,255,.3);

    transition:.2s;
}

.about-text a:hover{

    color:#fff;

    border-color:var(--neon-cyan);

}

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  /* REMOVE height: 400px; */
  margin: auto;
  overflow: hidden;
  border-radius: 7%; 
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto; /* Lets the image shape dictate the height */
  transform: translateX(-100%); 
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

/* ADD THIS NEW CLASS */
/* Whichever slide has this class will "push" the container open */
.slide.active {
  position: relative;
  transform: translateX(0); /* Brings it onto the screen */
  z-index: 2;
}

.slide.exit {
  transform: translateX(100%); /* Exit position: off-screen right */
  z-index: 1;
}

.recruitment-button {
    pointer-events: auto;
}

.recruitment-button:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(4, 16, 20, 0.95), 0 10px 24px rgba(0, 0, 0, 0.25);
}

.recruitment-button:focus-visible {
    outline: 2px solid #041014;
    outline-offset: 3px;
}

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

@media (max-width: 900px) {
    .about-row{
        display: inline-flex;
        flex-direction: column;
        flex-wrap: wrap;
    }

    .recruitment-button {
        font-size: 0.82rem;
    }

    .hero-content {
        margin: 10rem auto;
    }

    .hero{
        flex-wrap: wrap;
    }

    .topbar {
        width: calc(100% - 24px);
        left: 12px;
        top: 12px;
        padding: 4px 10px;
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        width: clamp(64px, 10vw, 92px);
        flex-shrink: 0;
    }

    .nav-tabs {
        width: 100%;
        justify-content: stretch;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .nav-dropdown {
        flex: 1 0 auto;
    }

    .nav-tab {
        width: 100%;
        justify-content: center;
        font-size: 0.75rem;
        letter-spacing: 1px;
        padding: 7px 14px;
    }

    .topbar-right {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
    }

    .scan-toggle {
        width: auto;
        z-index: 1200;
    }

    .terminal-scan-zone {
        --lens-size: 118px;
        --reticle-size: 78px;
        z-index: 90;
    }

    .hidden-data-item {
        left: clamp(14%, var(--hx), 86%);
        max-width: min(72vw, 280px);
        font-size: clamp(0.72rem, 2.4vw, 0.95rem);
        letter-spacing: 1.6px;
        line-height: 1.2;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
    }

    /* Ensure HUD/timer flows in the document and aligns for tablet+mobile widths */
    .hud-box {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: calc(100% - 36px) !important;
        max-width: none !important;
        margin: 14px auto 0 !important;
        padding: 12px !important;
        box-sizing: border-box !important;
        z-index: 20 !important;
        transform: none !important;
        animation: none !important;
    }

    .timer-hud {
        width: 100% !important;
    }

    .timer-display {
        font-size: clamp(1.2rem, 6.5vw, 2.8rem) !important;
        white-space: normal !important;
    }

    .recruitment-accent {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
    }

    .recruitment-button {
        width: 100%;
    }

    .recruitment-strip {
        margin-top: 100px;
    }

    .resources-endpoint {
        margin-top: 120px;
        scroll-margin-top: 196px;
    }

    /* pop-cards: stop the left/right skew-offset layout from pushing cards
       off-screen once there isn't room for the 15% side margins */
    .pop-card {
        flex-direction: column;
    }

    .left-pop,
    .right-pop {
        transform: none;
        margin-left: 0;
        margin-right: 0;
        align-self: center;
    }

    .card-edge-tag {
        writing-mode: horizontal-tb;
        transform: none;
        width: 100%;
        padding: 8px 12px;
        letter-spacing: 2px;
    }

    .scroll-container {
        gap: 60px;
        padding: 70px 0;
    }
}

@media (max-width: 640px) {
    .recruitment-strip {
        margin-top: 70px;
        margin-bottom: 18px;
    }

    .resources-endpoint {
        margin-top: 90px;
        scroll-margin-top: 160px;
    }

    .recruitment-accent {
        padding: 24px 18px;
    }

    .recruitment-accent::before {
        width: 92px;
    }

    .recruitment-copy h2 {
        letter-spacing: 2px;
    }

    .glitch-large {
        letter-spacing: 3px;
    }

    .hero {
        padding: 70px 0 30px;
    }


    /* Stack HUD/timers inside the hero flow on narrow screens so they align */
    .hud-box {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: calc(100% - 24px);
        max-width: none;
        margin: 16px auto 0;
        box-sizing: border-box;
        z-index: 20;
        padding: 10px 12px;
    }

    .timer-hud {
        width: 100%;
        padding: 10px 12px;
    }

    .timer-display {
        white-space: normal;
        font-size: clamp(1.2rem, 7.5vw, 2.6rem);
        word-break: break-word;
        padding: 8px 0 6px;
    }

    /* ensure sections align to the centered container on mobile */
    .resources-endpoint,
    .recruitment-strip {
        margin-left: 0;
        margin-right: 0;
        padding-left: 12px;
        padding-right: 12px;
    }

    /* make the inner accent and shells use the same centered container width */
    .recruitment-accent,
    .resources-shell,
    .pop-card {
        width: min(1180px, calc(100vw - 36px));
        margin: 0 auto;
        box-sizing: border-box;
    }

    .pop-card {
        width: 100%;
    }

    .pop-inner {
        padding: 20px 18px;
    }

    .jp-title {
        font-size: 1.3rem;
    }

    /* gif background should remain full bleed and not create extra whitespace */
    .bg-gif { left: 0; right: 0; width: 100vw; }

    /* footer wraps into a stacked layout instead of squeezing two columns */
    footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px;
    }

    .moving-ticker {
        width: 100%;
    }
}

/* Scrolling Section & Edgerunner Pop-ups Mechanics */
.scroll-container {
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 90px;
    width: 100%;
}

.pop-card {
    width: min(86vw, 980px);
    min-height: 170px;
    display: flex;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(90deg, rgba(17, 17, 22, 0.92), rgba(10, 10, 14, 0.82));
    border: 2px solid var(--neon-magenta);
    position: relative;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.6s ease;
    overflow: hidden;
}

.card-edge-tag {
    position: static;
    min-width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    background: var(--neon-magenta);
    color: #fff;
    padding: 18px 10px;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.pop-inner {
    flex: 1;
    padding: 28px 32px;
    min-width: 0;
}

.jp-title {
    color: var(--neon-yellow);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.pop-card p {
    max-width: 68ch;
    line-height: 1.7;
}

/* Edgerunners style popping transformations */
.left-pop {
    transform: translateX(-120px) skewX(-4deg);
    align-self: flex-start;
    margin-left: 15%;
}
.right-pop {
    transform: translateX(120px) skewX(4deg);
    align-self: flex-end;
    margin-right: 15%;
    border-color: var(--neon-cyan);
}
.right-pop .card-edge-tag { background: var(--neon-cyan); color: #000;}

/* State modifications executed by Intersection Observer script */
.pop-card.active-pop {
    transform: translateX(0) skewX(0deg);
    opacity: 1;
    box-shadow: -10px 10px 0px var(--neon-magenta);
}
.right-pop.active-pop {
    box-shadow: 10px 10px 0px var(--neon-cyan);
}
.pop-card.active-pop .pop-inner {
    position: relative;
}
.pop-card.active-pop .pop-inner::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: scanSweep 2.8s linear infinite;
}
.hidden-pop {
    opacity: 0;
}

/* Animations Keyframes */
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes scanSweep {
    0% { transform: translateX(-30%); opacity: 0.15; }
    50% { opacity: 0.7; }
    100% { transform: translateX(30%); opacity: 0.15; }
}

/* Footer & Ticker */
footer {
    border-top: 1px solid #333;
    padding: 20px;
    background: #000;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    flex-wrap: wrap;
    gap: 10px;
}
.moving-ticker {
    width: 60%;
    white-space: nowrap;
    overflow: hidden;
}
.moving-ticker span {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 20s linear infinite;
    color: var(--neon-magenta);
}
@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}