/* ============================================================
   CRYPTS'26 — DESIGN SYSTEM
   Cyberpunk Industrial Dark Tech
   ============================================================ */

:root {
    --dark-void: #02030a;
    --dark-card: #051024;
    --dark-surface: #080f1d;
    --dark-glass: rgba(5, 16, 36, 0.72);
    --card-bg: rgba(5, 8, 24, 0.85);
    --cyan-accent: #00f3ff;
    --cyan-electric: #00f3ff;
    --cyan-dim: rgba(0, 243, 255, 0.15);
    --cyan-glow: rgba(0, 243, 255, 0.3);
    --cyan-glow-strong: rgba(0, 243, 255, 0.5);
    --magenta-core: #d900bc;
    --magenta-bright: #ff3df2;
    --magenta-hot: #ff007f;
    --magenta-glow: rgba(217, 0, 188, 0.45);
    --magenta-dim: rgba(217, 0, 188, 0.12);
    --purple-neon: #8b00ff;
    --purple-glow: rgba(139, 0, 255, 0.3);
    --gold-accent: #ffd700;
    --gold-glow: rgba(255, 215, 0, 0.25);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-faint: rgba(255, 255, 255, 0.03);
    --text-ghost: rgba(255, 255, 255, 0.06);
    --dark: var(--dark-void);
    --neon: var(--cyan-accent);
    --magenta: var(--magenta-core);

    /* Section color transition tokens (overridden via body[data-section]) */
    --section-accent: var(--cyan-accent);
    --section-glow: var(--cyan-glow);
    --section-blob1: rgba(217, 0, 188, 0.18);
    --section-blob2: rgba(0, 243, 255, 0.12);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Hide native mouse pointer across entire site */
body, a, button, input, select, textarea, [role="button"], label {
    cursor: none !important;
}

body {
    background-color: var(--dark-void);
    color: #d0d8e8;
    font-family: 'JetBrains Mono', monospace;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at 50% -10%, rgba(217, 0, 188, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 50%, rgba(0, 243, 255, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, var(--dark-void) 0%, #010307 100%);
    background-attachment: fixed;
}

/* ============================================================
   NOISE / GRAIN TEXTURE OVERLAY
   ============================================================ */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
    mix-blend-mode: overlay;
}

/* ============================================================
   ANIMATED CIRCUIT BOARD GRID
   ============================================================ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(0deg, rgba(0, 243, 255, 0.03) 0px, transparent 1px, transparent 40px),
        repeating-linear-gradient(90deg, rgba(0, 243, 255, 0.03) 0px, transparent 1px, transparent 40px);
    background-size: 40px 40px;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ============================================================
   CUSTOM BLUE / CYAN POINTER
   ============================================================ */
#custom-cursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 999999;
    will-change: transform;
    transform: translate3d(-100px, -100px, 0);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--cyan-accent);
    border-radius: 50%;
    position: absolute;
    top: -4px; left: -4px;
    box-shadow: 0 0 10px var(--cyan-accent), 0 0 20px var(--cyan-accent);
    transition: transform 0.15s ease, background-color 0.2s ease;
}

.cursor-ring {
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(0, 243, 255, 0.5);
    border-radius: 50%;
    position: absolute;
    top: -16px; left: -16px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2), inset 0 0 10px rgba(0, 243, 255, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease, width 0.2s ease, height 0.2s ease;
}

/* Hovering state over links/buttons */
#custom-cursor.hovering .cursor-dot {
    transform: scale(1.6);
    background-color: var(--magenta-bright);
    box-shadow: 0 0 12px var(--magenta-bright), 0 0 25px var(--magenta-bright);
}

#custom-cursor.hovering .cursor-ring {
    transform: scale(1.4);
    border-color: var(--magenta-core);
    box-shadow: 0 0 20px var(--magenta-glow);
}

/* Hide custom cursor and restore default/pointer cursor on mobile & touch devices */
@media (hover: none), (pointer: coarse), (max-width: 768px) {
    #custom-cursor {
        display: none !important;
    }
    body, html, *, *::before, *::after {
        cursor: auto !important;
    }
    a, button, input, select, textarea, [role="button"], label,
    .btn-cyber-primary, .btn-cyber-secondary, .event-card, .event-action-btn,
    .filter-chip, .faq-question, .brochure-action-btn, .resource-btn,
    .timeline-tab, .event-tag-chip, .nav-link, .operator-card, .matrix-cell,
    .matrix-tab {
        cursor: pointer !important;
    }
}

/* ============================================================
   CYBERPUNK LOADING SCREEN
   ============================================================ */
#loader-screen {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    background: #020712;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
}

#loader-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 420px;
    text-align: center;
}

.loader-logo {
    width: 100px;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px var(--magenta-glow));
    animation: loaderPulse 2s infinite ease-in-out;
}
.loader-logo img {
    width: 100%;
    height: auto;
    mix-blend-mode: screen;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px var(--magenta-glow)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 35px var(--cyan-glow-strong)); }
}

.loader-title {
    font-size: 2.2rem;
    letter-spacing: -0.05em;
    margin-bottom: 4px;
}

.loader-sub {
    font-size: 9px;
    letter-spacing: 0.4em;
    color: var(--cyan-accent);
    opacity: 0.7;
    margin-bottom: 28px;
    text-transform: uppercase;
    font-weight: bold;
}

.loader-bar-wrap {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
    margin-bottom: 14px;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--magenta-core), var(--cyan-accent));
    box-shadow: 0 0 15px var(--cyan-accent);
    transition: width 0.1s linear;
}

.loader-status {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
}

#loader-log {
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
}

.loader-num {
    color: var(--cyan-accent);
    font-weight: bold;
    letter-spacing: 0.1em;
}

.loader-sub-status {
    font-size: 8px;
    letter-spacing: 0.25em;
    color: rgba(255,255,255,0.2);
    text-transform: uppercase;
    margin-top: 8px;
    font-family: 'JetBrains Mono', monospace;
    animation: loaderSubBlink 1.8s ease-in-out infinite;
}
@keyframes loaderSubBlink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #010307; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--magenta-core), var(--cyan-accent));
    border-radius: 2px;
}

/* ============================================================
   AMBIENT LIGHT BLOBS
   ============================================================ */
.ambient-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}
.blob-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(217, 0, 188, 0.18) 0%, transparent 70%);
    top: -100px; left: -100px;
    animation-delay: 0s;
}
.blob-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.12) 0%, transparent 70%);
    top: 200px; right: -80px;
    animation-delay: -3s;
}
.blob-3 {
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(217, 0, 188, 0.10) 0%, transparent 70%);
    bottom: 100px; left: 30%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    33% { transform: translateY(-20px) scale(1.04); }
    66% { transform: translateY(12px) scale(0.97); }
}

/* ============================================================
   CURSOR TRAIL
   ============================================================ */
#cursor-trail {
    position: fixed;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cyan-accent) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.05s linear, opacity 0.3s ease;
    opacity: 0;
    box-shadow: 0 0 10px var(--cyan-glow), 0 0 20px rgba(0, 243, 255, 0.15);
}

/* --- THE GLITCH ENGINE --- */
.scanline {
    width: 100%; height: 120px; z-index: 50;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, var(--cyan-glow) 50%, rgba(0,0,0,0) 100%);
    opacity: 0.04; position: fixed; bottom: 100%; left: 0;
    pointer-events: none;
    animation: scanline 12s linear infinite;
}
@keyframes scanline {
    0% { bottom: 100%; }
    100% { bottom: -120px; }
}

/* ============================================================
   GLITCH ENGINE
   ============================================================ */
.glitch {
    position: relative;
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    display: inline-block;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--magenta-bright);
    animation: glitch-anim 3.5s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--cyan-accent), 2px 2px var(--magenta-core);
    animation: glitch-anim2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0%   { clip-path: inset(10% 0 80% 0); transform: translate(-2px, -1px); }
    30%  { clip-path: inset(60% 0 30% 0); transform: translate(1px, 0px); }
    60%  { clip-path: inset(25% 0 65% 0); transform: translate(-1px, 2px); }
    100% { clip-path: inset(5% 0 90% 0); transform: translate(-1px, -2px); }
}
@keyframes glitch-anim2 {
    0%   { clip-path: inset(80% 0 5% 0); transform: translate(2px, 1px); }
    50%  { clip-path: inset(45% 0 45% 0); transform: translate(-2px, 0px); }
    100% { clip-path: inset(30% 0 60% 0); transform: translate(-1px, -2px); }
}

.glitch-hero {
    font-size: 3.5rem;
    letter-spacing: -0.05em;
    filter: drop-shadow(0 0 20px var(--magenta-glow));
}
@media (min-width: 768px) { .glitch-hero { font-size: 5.5rem; } }

.highlight-v { color: var(--magenta-bright); }

/* ============================================================
   LOGO
   ============================================================ */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 0 20px 0;
}

.logo-image-frame {
    position: relative;
    width: 180px;
    height: auto;
    filter: drop-shadow(0 0 20px var(--magenta-glow));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
}
.logo-image-frame img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: screen;
}
.logo-image-frame:hover {
    transform: scale(1.06) rotate(1deg);
    filter: drop-shadow(0 0 30px var(--magenta-bright));
}

.logo-nav-size {
    width: 36px !important;
    margin: 0 12px;
    filter: drop-shadow(0 0 8px var(--magenta-glow));
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-link {
    font-size: 13px;
    letter-spacing: 0.16em;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.25s ease;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--cyan-accent) !important;
    text-shadow: 0 0 8px var(--cyan-glow);
}

/* Sliding bottom indicator (V2-style) */
.nav-indicator {
    position: absolute;
    bottom: -5px;
    left: 0;
    margin-left: 0 !important;
    height: 2px;
    background: var(--cyan-accent);
    box-shadow: 0 0 10px var(--cyan-glow), 0 0 20px var(--cyan-glow);
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border-radius: 2px;
    opacity: 0;
}
.nav-indicator.visible {
    opacity: 1;
}

.cmd-badge {
    font-size: 9px;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 3px;
    cursor: none !important;
    transition: all 0.2s ease;
    font-family: 'JetBrains Mono', monospace;
}
.cmd-badge:hover {
    border-color: var(--cyan-glow);
    color: var(--cyan-accent);
    box-shadow: 0 0 8px var(--cyan-dim);
}

/* ============================================================
   HERO LAYOUT (2-COL WITH 3D MODEL)
   ============================================================ */
#briefing {
    padding-top: 7rem;
    padding-bottom: 5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Hero CTA Buttons */
.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: transparent;
    border: 2px solid var(--magenta-hot);
    color: var(--magenta-hot);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 0 15px var(--magenta-glow);
    cursor: none !important;
    border-radius: 2px;
}
.hero-cta-primary:hover {
    background: var(--magenta-hot);
    color: #fff;
    box-shadow: 0 0 30px var(--magenta-glow), 0 0 60px rgba(255,0,127,0.2);
    transform: translateY(-2px);
}
.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: var(--dark-glass);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: none !important;
    border-radius: 2px;
}
.hero-cta-secondary:hover {
    background: var(--cyan-dim);
    border-color: var(--cyan-glow);
    color: var(--cyan-accent);
    box-shadow: 0 0 15px var(--cyan-dim);
    transform: translateY(-2px);
}

/* 3D Model Viewer & Responsive Wrapper (Visible on Laptop, Desktop, Landscape Tablets) */
.hero-3d-wrapper {
    display: none;
}

@media (min-width: 1024px), (min-width: 768px) and (orientation: landscape) {
    .hero-3d-wrapper {
        display: flex;
    }
    .hero-grid-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

#hero-model-viewer {
    outline: 0;
    border-radius: 8px;
    filter: drop-shadow(0 0 20px rgba(255,0,127,0.3));
    animation: modelFloat 6s ease-in-out infinite;
}
@keyframes modelFloat {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255,0,127,0.3)); }
    50% { filter: drop-shadow(0 0 35px rgba(0,243,255,0.4)); }
}
#particle-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* ============================================================
   TERMINAL WINDOW
   ============================================================ */
.terminal-window {
    background: var(--dark-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--cyan-glow);
    height: 380px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 24px 80px rgba(0,0,0,0.9),
        0 0 30px rgba(0, 243, 255, 0.06),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.terminal-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.3);
    flex-shrink: 0;
}
.terminal-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.terminal-dot.red    { background: #ff5f57; box-shadow: 0 0 4px rgba(255,95,87,0.6); }
.terminal-dot.yellow { background: #febc2e; box-shadow: 0 0 4px rgba(254,188,46,0.6); }
.terminal-dot.green  { background: #28c840; box-shadow: 0 0 4px rgba(40,200,64,0.6); }
.terminal-chrome-title {
    flex: 1;
    text-align: center;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.2);
    text-transform: uppercase;
}

.terminal-body-inner {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}
.terminal-body-inner::-webkit-scrollbar { width: 2px; }
.terminal-body-inner::-webkit-scrollbar-thumb { background: var(--cyan-glow); }

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 16px;
    margin-bottom: 16px;
}
@media (min-width: 640px) {
    .status-grid { grid-template-columns: repeat(3, 1fr); }
}
.status-item { font-size: 10px; }
.status-label { color: rgba(255,255,255,0.3); }
.status-value { color: var(--cyan-accent); font-weight: bold; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 48px;
}
.section-tag {
    font-size: 9px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--magenta-core);
    font-weight: bold;
}
.section-heading h2 {
    border-left: 3px solid var(--cyan-accent);
    padding-left: 16px;
    box-shadow: -3px 0 12px var(--cyan-glow);
}

/* ============================================================
   FILTER TAG CHIPS
   ============================================================ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}
.filter-chip {
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 5px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: rgba(255,255,255,0.4);
    cursor: none !important;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s ease;
    border-radius: 2px;
}
.filter-chip:hover {
    border-color: var(--cyan-glow);
    color: var(--cyan-accent);
}
.filter-chip.active {
    background: var(--cyan-dim);
    border-color: var(--cyan-accent);
    color: var(--cyan-accent);
    box-shadow: 0 0 10px var(--cyan-dim), inset 0 0 10px rgba(0, 243, 255, 0.04);
}

/* ============================================================
   EVENT MODULE CARDS + FILTER ANIMATION
   ============================================================ */
.event-card {
    position: relative;
    background: #050a15;
    border-radius: 4px;
    padding: 24px;
    text-align: left;
    cursor: pointer !important;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.35s ease, scale 0.35s ease;
    border: 1px solid rgba(255,255,255,0.03);
}

.event-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 243, 255, 0.15), 0 10px 20px rgba(0,0,0,0.6);
    border-color: #00f3ff;
}

/* Card filter in/out animation */
.event-card.card-hidden {
    opacity: 0;
    scale: 0.92;
    pointer-events: none;
}
.event-card.card-hiding {
    opacity: 0;
    scale: 0.92;
    pointer-events: none;
}
.event-card.card-showing {
    opacity: 1;
    scale: 1;
}

.event-card.locked {
    opacity: 0.4;
    cursor: not-allowed !important;
    filter: blur(0.5px);
}
.event-card.locked::after {
    content: '// LOCKED';
    position: absolute;
    top: 12px; right: 14px;
    font-size: 8px;
    letter-spacing: 0.25em;
    color: var(--magenta-core);
    font-weight: bold;
}


/* ============================================================
   ENROLLMENT / REGISTRATION
   ============================================================ */
.registration-container {
    background: var(--dark-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(217, 0, 188, 0.2);
    box-shadow:
        0 0 60px rgba(0,0,0,0.7),
        0 0 30px var(--magenta-dim);
    border-radius: 6px;
}

.reg-field-label {
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 6px;
    display: block;
}

.reg-field-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #1a2a44;
    padding: 12px 14px;
    color: #fff;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
    outline: 0;
    margin-bottom: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 3px;
}
.reg-field-input:focus {
    border-color: var(--cyan-accent);
    box-shadow: 0 0 12px var(--cyan-dim);
}
.reg-field-input.error {
    border-color: rgba(255, 80, 80, 0.7);
    box-shadow: 0 0 8px rgba(255, 80, 80, 0.2);
}

.field-error-msg {
    font-size: 9px;
    color: rgba(255, 100, 100, 0.85);
    letter-spacing: 0.1em;
    margin-top: -16px;
    margin-bottom: 16px;
    display: none;
}
.field-error-msg.visible { display: block; }

/* Event Tag Chips (Registration) */
.event-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.event-tag-chip {
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 7px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: rgba(255,255,255,0.45);
    cursor: none !important;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s ease;
    border-radius: 3px;
    -webkit-user-select: none;
    user-select: none;
}
.event-tag-chip:hover {
    border-color: var(--magenta-core);
    color: var(--magenta-bright);
}
.event-tag-chip.selected {
    background: var(--magenta-dim);
    border-color: var(--magenta-core);
    color: var(--magenta-bright);
    box-shadow: 0 0 10px var(--magenta-dim);
}

.transmit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--magenta-core) 0%, #90007d 100%);
    color: #fff;
    padding: 16px;
    text-transform: uppercase;
    font-weight: 800;
    border-radius: 4px;
    cursor: none !important;
    transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--magenta-bright);
    font-size: 13px;
    letter-spacing: 3px;
    font-family: 'JetBrains Mono', monospace;
}
.transmit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--cyan-accent) 0%, #00a4bd 100%);
    border-color: #fff;
    box-shadow: 0 0 24px var(--cyan-accent);
    color: #000;
}
.transmit-btn:disabled {
    opacity: 0.5;
    cursor: none !important;
}

/* ============================================================
   RESOURCE MATRIX / BROCHURE EMBED
   ============================================================ */
.brochure-embed-container {
    background: var(--dark-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 6px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6), 0 0 25px rgba(0, 243, 255, 0.05);
    position: relative;
}
.brochure-embed-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
    z-index: 10;
}
.brochure-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan-accent);
    border: 1px solid var(--cyan-glow);
    background: var(--cyan-dim);
    padding: 6px 14px;
    border-radius: 3px;
    cursor: none !important;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s ease;
    text-decoration: none;
    font-weight: bold;
}
.brochure-action-btn:hover {
    background: var(--cyan-glow);
    color: #fff;
    box-shadow: 0 0 15px var(--cyan-glow);
}
.brochure-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 680px;
    background: #0d0e15;
}
@media (max-width: 1024px) {
    .brochure-iframe-wrapper {
        height: 560px;
    }
}
@media (max-width: 640px) {
    .brochure-iframe-wrapper {
        height: 440px;
    }
}
.brochure-iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    margin: 0;
    padding: 0;
}

/* ============================================================
   TIMELINE / CHRONOS
   ============================================================ */
.timeline-tabs {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 40px;
    width: 100%;
}
.timeline-tab {
    font-size: 16px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 12px 16px;
    background: transparent;
    color: rgba(255,255,255,0.4);
    cursor: pointer !important;
    font-family: monospace;
    font-weight: bold;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: -1px;
}
.timeline-tab:hover { color: white; border-bottom: 2px solid rgba(0, 243, 255, 0.3); }
.timeline-tab.active {
    color: var(--cyan-accent);
    border-bottom: 2px solid var(--cyan-accent);
}

/* Timeline panel crossfade animation */
.timeline-panel {
    display: block;
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transition: opacity 0.25s ease;
}
.timeline-panel.active {
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: visible;
    animation: timelineFadeIn 0.3s ease forwards;
}
@keyframes timelineFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.timeline-list { position: relative; padding-left: 24px; }
.timeline-list::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, var(--cyan-glow) 0%, transparent 100%);
}

.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 0 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background-color 0.2s ease;
}
.timeline-item[data-event] {
    cursor: none !important;
}
.timeline-item[data-event]:hover .timeline-name {
    color: var(--cyan-accent);
}
@media (max-width: 640px) {
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px; top: 32px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--dark-void);
    border: 2px solid var(--cyan-glow);
    box-shadow: 0 0 8px var(--cyan-glow);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.timeline-item:hover::before {
    background-color: var(--cyan-accent);
    transform: scale(1.2);
}
.timeline-item.live::before,
.timeline-item.in-progress::before {
    background: var(--cyan-accent);
    animation: pulse 2s infinite;
}
.timeline-item.completed::before,
.timeline-item.done::before {
    background: var(--magenta-core);
    border-color: var(--magenta-dim);
    box-shadow: 0 0 8px var(--magenta-glow);
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 8px var(--cyan-glow); }
    50% { box-shadow: 0 0 18px var(--cyan-glow-strong); }
}
@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 6px rgba(0, 243, 255, 0.2); }
    50% { box-shadow: 0 0 14px rgba(0, 243, 255, 0.5); }
}

.timeline-time {
    font-size: 13px;
    color: var(--cyan-accent);
    font-family: monospace;
    font-weight: bold;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.timeline-name {
    font-size: 20px;
    font-weight: bold;
    font-family: monospace;
    color: white;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.timeline-meta {
    font-size: 14px;
    font-family: monospace;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    margin-bottom: 12px;
}
.timeline-status {
    display: inline-block;
    font-size: 10px;
    font-family: monospace;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-top: 4px;
    font-weight: bold;
}
.timeline-status.upcoming {
    color: var(--magenta-core);
    background: rgba(255, 0, 193, 0.1);
    border: 1px solid rgba(255, 0, 193, 0.2);
}
.timeline-status.live,
.timeline-status.in-progress {
    color: var(--cyan-accent);
    border: 1px solid var(--cyan-glow);
    background: var(--cyan-dim);
    animation: statusPulse 2s infinite ease-in-out;
}
.timeline-status.done,
.timeline-status.completed {
    color: var(--magenta-bright);
    border: 1px solid var(--magenta-dim);
    background: var(--magenta-dim);
    box-shadow: 0 0 8px rgba(217, 0, 188, 0.2);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item {
    background: #050a15;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.03);
    overflow: hidden;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    cursor: pointer !important;
    font-size: 16px;
    font-family: monospace;
    font-weight: bold;
    color: white;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, background 0.2s ease;
    -webkit-user-select: none;
    user-select: none;
    gap: 16px;
}
.faq-question:hover { color: white; background: rgba(255,255,255,0.02); }
.faq-question.open { color: white; border-bottom: 1px solid rgba(255,255,255,0.05); }
.faq-chevron {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--cyan-accent);
    transition: transform 0.3s ease;
    line-height: 1;
}
.faq-question.open .faq-chevron {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}
.faq-answer.open {
    opacity: 1;
}
.faq-answer-inner {
    font-size: 13px;
    font-family: monospace;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    padding: 20px 24px;
}

/* ============================================================
   TEAM OPERATOR CARDS
   ============================================================ */
.operator-card {
    position: relative;
    background: var(--dark-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 28px 24px;
    border-radius: 6px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.operator-card::before {
    content: '';
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(217, 0, 188, 0.14) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.operator-card:hover::before { opacity: 1; }
.operator-card:hover {
    transform: translateY(-5px);
    border-color: rgba(217, 0, 188, 0.25);
    box-shadow: 0 16px 40px rgba(0,0,0,0.6), 0 0 20px var(--magenta-dim);
}

.operator-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--magenta-dim) 0%, var(--cyan-dim) 100%);
    border: 2px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    font-size: 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.operator-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.operator-name {
    font-size: 12px;
    font-weight: bold;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.operator-role {
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cyan-accent);
    margin-bottom: 8px;
}
.operator-section-tag {
    display: inline-block;
    font-size: 8px;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 2px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}
.operator-email {
    display: block;
    font-size: 8px;
    letter-spacing: 0.1em;
    color: rgba(0, 243, 255, 0.45);
    margin-top: 8px;
    font-style: italic;
    text-transform: lowercase;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 5;
}
.operator-email:hover,
.operator-card:hover .operator-email {
    color: var(--cyan-accent);
    text-shadow: 0 0 8px var(--cyan-glow);
    text-decoration: underline;
}

/* ============================================================
   COMMAND PALETTE
   ============================================================ */
#cmd-palette {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(2, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}
#cmd-palette.open { display: flex; }

.palette-box {
    width: 100%;
    max-width: 560px;
    background: var(--dark-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.9), 0 0 30px rgba(0, 243, 255, 0.08);
    animation: paletteIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes paletteIn {
    from { opacity: 0; transform: scale(0.96) translateY(-8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.palette-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.palette-prompt {
    color: var(--cyan-accent);
    font-size: 13px;
    flex-shrink: 0;
}
#palette-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: 0;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.03em;
}
#palette-input::placeholder { color: rgba(255,255,255,0.2); }

.palette-results { padding: 8px 0; }
.palette-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    cursor: none !important;
    transition: background 0.15s ease, color 0.15s ease;
    letter-spacing: 0.05em;
}
.palette-item:hover, .palette-item.highlighted {
    background: var(--cyan-dim);
    color: var(--cyan-accent);
}
.palette-shortcut {
    font-size: 8px;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.2);
}
.palette-footer {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding: 8px 18px;
    display: flex;
    gap: 16px;
    font-size: 8px;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.1em;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* Content is ALWAYS visible — the observer adds .visible for
   a bonus fade-in-up animation but hiding is never required. */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
/* Elements that haven't entered the viewport yet get this class
   via JS only when a scroll animation is desired */
.reveal.pre-animate {
    opacity: 0;
    transform: translateY(20px);
}
.reveal.pre-animate.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding: 32px 24px;
    text-align: center;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.18);
    text-transform: uppercase;
}
.site-footer a {
    color: var(--cyan-accent);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}
.site-footer a:hover { opacity: 1; }

/* ============================================================
   GLITCH-HEADER (NAV TITLE)
   ============================================================ */
.glitch-header {
    font-size: 20px;
    letter-spacing: 0.08em;
}

/* ============================================================
   HUD FRAME — CHAMFERED CUT-CORNER CONTAINERS
   ============================================================ */
.hud-frame {
    position: relative;
    clip-path: polygon(
        0 12px, 12px 0, calc(100% - 12px) 0, 100% 12px,
        100% calc(100% - 12px), calc(100% - 12px) 100%,
        12px 100%, 0 calc(100% - 12px)
    );
    background: var(--card-bg);
    border: 1px solid rgba(0, 243, 255, 0.12);
}

.hud-cut-corner {
    position: relative;
}
.hud-cut-corner::before,
.hud-cut-corner::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--cyan-accent);
    border-style: solid;
    opacity: 0.3;
    pointer-events: none;
    z-index: 2;
}
.hud-cut-corner::before {
    top: -1px; left: -1px;
    border-width: 2px 0 0 2px;
}
.hud-cut-corner::after {
    bottom: -1px; right: -1px;
    border-width: 0 2px 2px 0;
}

/* Corner bracket telemetry tags */
.hud-tag {
    position: absolute;
    font-size: 7px;
    letter-spacing: 0.2em;
    color: rgba(0, 243, 255, 0.2);
    font-family: 'JetBrains Mono', monospace;
    pointer-events: none;
    z-index: 2;
}
.hud-tag-tl { top: 6px; left: 10px; }
.hud-tag-tr { top: 6px; right: 10px; }
.hud-tag-br { bottom: 6px; right: 10px; }

/* ============================================================
   BROCHURE-STYLE BADGE & PILL COMPONENTS
   ============================================================ */
.badge-mode {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 8px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
}

/* Pulsing LED dot indicator */
.badge-mode::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: ledPulse 2s ease-in-out infinite;
}

@keyframes ledPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.badge-mode-offline {
    background: rgba(255, 255, 255, 0.9);
    color: #020712;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.badge-mode-offline::before {
    background: #28c840;
    box-shadow: 0 0 6px rgba(40, 200, 64, 0.6);
}

.badge-mode-online {
    background: transparent;
    color: var(--cyan-accent);
    border: 1px solid var(--cyan-glow);
    box-shadow: 0 0 8px var(--cyan-dim);
}
.badge-mode-online::before {
    background: var(--cyan-accent);
    box-shadow: 0 0 6px var(--cyan-glow);
}

.badge-eligibility {
    display: inline-block;
    font-size: 8px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--magenta-bright);
    border: 1px solid var(--magenta-dim);
    background: rgba(217, 0, 188, 0.08);
}

.badge-date {
    display: inline-block;
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--gold-accent);
    border: 1px solid var(--gold-glow);
    background: rgba(255, 215, 0, 0.06);
}

/* ============================================================
   CODE PREFIX / SYNTAX DECORATORS
   ============================================================ */
.code-prefix {
    display: block;
    font-size: 9px;
    letter-spacing: 0.15em;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 8px;
}
.code-prefix .kw { color: var(--magenta-bright); }
.code-prefix .fn { color: var(--cyan-accent); }
.code-prefix .cm { color: rgba(255, 255, 255, 0.25); }
.code-prefix .op { color: rgba(255, 255, 255, 0.4); }

/* ============================================================
   BROCHURE EVENT ICON BADGES (MONOGRAMS)
   ============================================================ */
.event-icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--cyan-accent), var(--magenta-hot));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 14px;
    box-shadow: 0 0 16px rgba(0, 243, 255, 0.2), 0 0 16px rgba(255, 0, 127, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
/* Category-specific icon tints */
.event-icon-badge[data-cat="coding"]  { background: linear-gradient(135deg, #00f3ff, #0088ff); }
.event-icon-badge[data-cat="design"]  { background: linear-gradient(135deg, #ff3df2, #8b00ff); }
.event-icon-badge[data-cat="gaming"]  { background: linear-gradient(135deg, #28c840, #00f3ff); }
.event-icon-badge[data-cat="av"]      { background: linear-gradient(135deg, #ffd700, #ff007f); }
.event-icon-badge[data-cat="ai"]      { background: linear-gradient(135deg, #8b00ff, #00f3ff); }
.event-icon-badge[data-cat="security"]{ background: linear-gradient(135deg, #ff007f, #d900bc); }
.event-icon-badge[data-cat="biz"]     { background: linear-gradient(135deg, #ffd700, #ff8800); }

/* Card metadata row for badges */
.card-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    margin-bottom: 8px;
}

/* ============================================================
   EVENT DETAIL MODAL
   ============================================================ */
.event-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(2, 3, 10, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.event-modal-overlay.open {
    display: flex;
}

.event-modal {
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    background: var(--card-bg);
    border: 1px solid rgba(0, 243, 255, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    clip-path: polygon(
        0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px,
        100% calc(100% - 10px), calc(100% - 10px) 100%,
        10px 100%, 0 calc(100% - 10px)
    );
    box-shadow:
        0 32px 100px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(0, 243, 255, 0.08),
        0 0 40px rgba(217, 0, 188, 0.06);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    flex-shrink: 0;
}
.modal-header-info {
    flex: 1;
    min-width: 0;
}
.modal-event-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--cyan-accent);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--magenta-dim);
    border-radius: 4px;
    background: transparent;
    color: var(--magenta-bright);
    font-size: 16px;
    cursor: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: 'JetBrains Mono', monospace;
    z-index: 2;
}
.modal-close:hover {
    background: var(--magenta-dim);
    border-color: var(--magenta-core);
    box-shadow: 0 0 12px var(--magenta-dim);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 28px 28px;
}
.modal-body::-webkit-scrollbar { width: 2px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--cyan-glow); }

/* Telemetry sub-panel inside modal */
.sub-panel-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-left: 3px solid var(--cyan-accent);
    padding: 14px 16px;
    margin-bottom: 14px;
    border-radius: 2px;
}
.sub-panel-box.magenta-border {
    border-left-color: var(--magenta-core);
    border-color: rgba(217, 0, 188, 0.1);
}
.sub-panel-label {
    font-size: 8px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cyan-accent);
    margin-bottom: 8px;
    font-weight: bold;
}
.sub-panel-box.magenta-border .sub-panel-label {
    color: var(--magenta-bright);
}
.sub-panel-content {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}
.sub-panel-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sub-panel-content li {
    padding: 3px 0;
    position: relative;
    padding-left: 14px;
}
.sub-panel-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--cyan-accent);
    opacity: 0.5;
}

.modal-contact-link {
    color: var(--cyan-accent);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.05em;
    transition: text-shadow 0.2s ease;
}
.modal-contact-link:hover {
    text-shadow: 0 0 8px var(--cyan-glow);
}

/* ============================================================
   TAGLINE TYPING ANIMATION
   ============================================================ */
.tagline-typed {
    font-size: 14px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-weight: bold;
    font-family: 'JetBrains Mono', monospace;
    min-height: 1.4em;
    margin-top: 16px;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}
.tagline-typed::after {
    content: '▌';
    color: var(--cyan-accent);
    animation: cursorBlink 0.8s steps(1) infinite;
    margin-left: 2px;
}
.tagline-typed.done::after {
    animation: cursorBlink 0.8s steps(1) 3;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.tagline-chaos {
    font-size: 13px;
    letter-spacing: 0.08em;
    font-style: italic;
    background: linear-gradient(90deg, var(--cyan-accent), var(--magenta-hot), var(--purple-neon));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}
.tagline-chaos.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 640px) {
    .tagline-typed { font-size: 11px; letter-spacing: 0.08em; }
    .tagline-chaos { font-size: 11px; }
}

/* ============================================================
   SCROLL-TRIGGERED SECTION COLOR TRANSITIONS
   ============================================================ */
body[data-section="briefing"] {
    --section-accent: var(--cyan-accent);
    --section-blob1: rgba(217, 0, 188, 0.18);
    --section-blob2: rgba(0, 243, 255, 0.12);
}
body[data-section="modules"] {
    --section-accent: var(--cyan-accent);
    --section-blob1: rgba(0, 243, 255, 0.15);
    --section-blob2: rgba(217, 0, 188, 0.15);
}
body[data-section="enrollment"] {
    --section-accent: var(--magenta-hot);
    --section-blob1: rgba(255, 0, 127, 0.2);
    --section-blob2: rgba(217, 0, 188, 0.15);
}
body[data-section="matrix"] {
    --section-accent: var(--cyan-accent);
    --section-blob1: rgba(0, 243, 255, 0.14);
    --section-blob2: rgba(255, 215, 0, 0.08);
}
body[data-section="chronos"] {
    --section-accent: var(--purple-neon);
    --section-blob1: rgba(139, 0, 255, 0.18);
    --section-blob2: rgba(0, 243, 255, 0.08);
}
body[data-section="resolution"] {
    --section-accent: var(--magenta-bright);
    --section-blob1: rgba(217, 0, 188, 0.18);
    --section-blob2: rgba(139, 0, 255, 0.12);
}
body[data-section="operators"] {
    --section-accent: var(--magenta-core);
    --section-blob1: rgba(255, 0, 127, 0.18);
    --section-blob2: rgba(255, 215, 0, 0.1);
}

/* Ambient blobs respond to section transitions */
.ambient-blob {
    transition: background 1.2s ease;
}
.blob-1 {
    background: radial-gradient(circle, var(--section-blob1) 0%, transparent 70%);
}
.blob-2 {
    background: radial-gradient(circle, var(--section-blob2) 0%, transparent 70%);
}

/* ============================================================
   DISABLED EVENT CHIPS (Registration Smart Filtering)
   ============================================================ */
.event-tag-chip.disabled {
    opacity: 0.25;
    cursor: none !important;
    pointer-events: none;
    filter: grayscale(1);
    border-color: rgba(255, 255, 255, 0.04);
}