@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500&family=Space+Grotesk:wght@400;500;600;700&family=Syne:wght@700;800&display=swap');

:root {
    /* Standby Light Theme (Default) */
    --bg-main: #fafafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-overlay: rgba(250, 250, 252, 0.95);
    --text-primary: #000000; /* Absolute confident black */
    --text-secondary: #18181b; /* 200% high-contrast dark zinc */
    --text-third: #3f3f46; /* Monospace labels high legibility zinc */
    --border-color: rgba(0, 0, 0, 0.008); /* Faded by 80% to be background structure only */
    --border-strong: rgba(0, 0, 0, 0.22);
    --accent-glow: rgba(59, 130, 246, 0.12);
    
    /* Logo Badge Variables */
    --logo-badge-border: rgba(0, 0, 0, 0.08);
    --logo-badge-glow: rgba(0, 0, 0, 0.04);
    
    /* Core Constants */
    --accent-blue: #2563eb;
    --accent-violet: #7c3aed;
    --accent-glow-blue: rgba(37, 99, 235, 0.6);
    --accent-glow-violet: rgba(124, 58, 237, 0.6);
    --font-header: 'Syne', sans-serif;
    --font-tech: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* Active State Dark Modifiers */
body.active-state {
    --bg-main: #040405;
    --bg-card: rgba(9, 9, 11, 0.88);
    --bg-overlay: rgba(4, 4, 5, 0.98);
    --text-primary: #ffffff; /* Absolute high-emission pure white */
    --text-secondary: #f4f4f5; /* 200% high-contrast platinum-slate */
    --text-third: #d4d4d8; /* Highly readable supporting tags */
    --border-color: rgba(255, 255, 255, 0.012); /* Faded by 80% for background structure only */
    --border-strong: rgba(255, 255, 255, 0.28); /* Solid pop border on hover */
    --accent-glow: rgba(124, 58, 237, 0.22);
    
    /* Logo Badge Variables (Active State) */
    --logo-badge-border: rgba(255, 255, 255, 0.12);
    --logo-badge-glow: rgba(124, 58, 237, 0.2);
    background-image: radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.05) 0%, transparent 60%),
                      radial-gradient(circle at 90% 90%, rgba(37, 99, 235, 0.04) 0%, transparent 60%);
    background-attachment: fixed;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom premium cursor */
    user-select: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

html, body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Native scroll offset for fixed site-header */
    min-height: 100vh;
    transition: background-color 1.5s cubic-bezier(0.85, 0, 0.15, 1), color 1.5s cubic-bezier(0.85, 0, 0.15, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
    transition: background-color 1.5s cubic-bezier(0.85, 0, 0.15, 1);
}
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
    transition: background-color 1.5s cubic-bezier(0.85, 0, 0.15, 1);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-violet);
}

/* Custom Cursor */
.custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

.custom-cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.1s ease-out;
}

/* Interactive Cursor States */
.hovering-interactive .custom-cursor {
    width: 4px;
    height: 4px;
    background-color: var(--accent-blue);
}

.hovering-interactive .custom-cursor-ring {
    width: 55px;
    height: 55px;
    border-color: var(--accent-blue);
    background-color: rgba(59, 130, 246, 0.05);
}

/* Background Grids & Laser Lines */
.grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.grid-line-v {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--border-color), transparent);
    transition: background 1.5s cubic-bezier(0.85, 0, 0.15, 1);
}

.grid-line-h {
    position: absolute;
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    transition: background 1.5s cubic-bezier(0.85, 0, 0.15, 1);
}

/* 1. SITE-WIDE FIXED TOP NAVIGATION HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8vw;
    z-index: 1000;
    transition: background-color 1.5s, border-color 1.5s;
}

body.active-state .site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-logo {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.18em;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
}

.header-logo:hover {
    color: var(--accent-blue);
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000000; /* Pure black to perfectly dissolve JPEG boundaries */
    border: 1px solid var(--logo-badge-border);
    border-radius: 50%; /* Default perfectly curved shape */
    padding: 3px;
    box-shadow: 0 4px 15px var(--logo-badge-glow);
    transition: all 1.5s cubic-bezier(0.85, 0, 0.15, 1);
    overflow: hidden;
    vertical-align: middle;
    margin-right: 12px;
}

.logo-badge-img {
    height: 28px;
    width: 28px;
    object-fit: cover;
    display: block;
    border-radius: 50%; /* Default perfectly curved shape */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 1.5s cubic-bezier(0.85, 0, 0.15, 1);
}

.logo-badge:hover {
    transform: scale(1.06);
    border-color: var(--accent-violet);
    box-shadow: 0 8px 25px var(--logo-badge-glow), 0 0 15px rgba(124, 58, 237, 0.35);
}

.logo-badge:hover .logo-badge-img {
    transform: scale(1.15);
}

/* --- Shape Variants (Perfect Bend Physics) --- */
.logo-badge.badge-circle,
.logo-badge.badge-circle .logo-badge-img {
    border-radius: 50% !important;
}

.logo-badge.badge-pill,
.logo-badge.badge-pill .logo-badge-img {
    border-radius: 100px !important;
}

.logo-badge.badge-round {
    border-radius: 12px !important;
}
.logo-badge.badge-round .logo-badge-img {
    border-radius: 8px !important;
}

/* --- Size Variants --- */
.logo-badge.badge-sm {
    padding: 2px;
}
.logo-badge.badge-sm .logo-badge-img {
    height: 24px;
    width: 24px;
}

.logo-badge.badge-md {
    padding: 3px;
}
.logo-badge.badge-md .logo-badge-img {
    height: 36px;
    width: 36px;
}

.logo-badge.badge-lg {
    padding: 4px;
}
.logo-badge.badge-lg .logo-badge-img {
    height: 56px;
    width: 56px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-violet);
    transition: width 0.3s;
}

.nav-link:hover, .nav-link.active-nav-link {
    color: var(--text-primary);
}

body.active-state .nav-link.active-nav-link {
    color: var(--accent-violet);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-cta-btn {
    background: var(--text-primary);
    border: 1px solid var(--text-primary);
    color: var(--bg-main);
    font-family: var(--font-tech);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 1.5s, color 1.5s, border-color 1.5s;
}

.header-cta-btn:hover {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

body.active-state .header-cta-btn {
    background: #ffffff;
    border-color: #ffffff;
    color: #040405;
}

body.active-state .header-cta-btn:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

/* Audio controls inside header action bar */
.audio-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    font-family: var(--font-tech);
    font-size: 0.7rem;
    transition: all 0.3s, border-color 1.5s cubic-bezier(0.85, 0, 0.15, 1), color 1.5s cubic-bezier(0.85, 0, 0.15, 1);
}

.audio-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
}

.audio-toggle.active {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-glow-blue);
}

.audio-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 10px;
}

.audio-bar {
    width: 2px;
    height: 100%;
    background-color: currentColor;
    transform-origin: bottom;
    transform: scaleY(0.3);
    transition: transform 0.2s;
}

.audio-toggle.active .audio-bar {
    animation: soundWave 1.2s infinite ease-in-out alternate;
}

.audio-toggle.active .audio-bar:nth-child(2) { animation-delay: 0.2s; }
.audio-toggle.active .audio-bar:nth-child(3) { animation-delay: 0.4s; }

@keyframes soundWave {
    0% { transform: scaleY(0.2); }
    100% { transform: scaleY(1); }
}

.hud-chapter-nav {
    bottom: 40px;
    left: 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    padding-left: 10px;
}

.hud-chapter-nav::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 5px;
    bottom: 5px;
    width: 1px;
    background: var(--border-strong);
    opacity: 0.4;
    z-index: 1;
}

.nav-dot-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-third);
    position: relative;
    z-index: 2;
    transition: all 0.3s, color 1.5s cubic-bezier(0.85, 0, 0.15, 1);
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--bg-main);
    border: 2px solid var(--border-strong);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dot-text {
    font-family: var(--font-tech);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    opacity: 0.3;
    transform: translateX(-5px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dot-container:hover, .nav-dot-container.active {
    color: var(--text-primary);
}

.nav-dot-container.active .nav-dot {
    background-color: var(--accent-violet);
    border-color: var(--accent-violet);
    box-shadow: 0 0 12px var(--accent-glow-violet);
    transform: scale(1.3);
}

.nav-dot-container.active .nav-dot-text {
    opacity: 1;
    transform: translateX(0);
    font-weight: 600;
    color: var(--text-primary);
}

.nav-dot-container:hover .nav-dot-text {
    opacity: 0.8;
    transform: translateX(0);
}

.hud-coordinates {
    bottom: 40px;
    right: 40px;
    text-align: right;
}

/* HERO SECTION */
#hero {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 160px 8vw 60px;
    overflow: hidden;
    z-index: 10;
    transition: transform 1.5s cubic-bezier(0.85, 0, 0.15, 1), opacity 1.5s cubic-bezier(0.85, 0, 0.15, 1);
}

/* Background light laboratory core containment grid */
.lab-grid-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vh;
    height: 90vh;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lab-grid-overlay::before {
    content: '';
    width: 70%;
    height: 70%;
    border: 1px dashed var(--border-color);
    border-radius: 50%;
    position: absolute;
}

.lab-grid-overlay::after {
    content: '';
    width: 40%;
    height: 40%;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    position: absolute;
}

.lab-telemetry-left {
    position: absolute;
    left: 8vw;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-tech);
    font-size: 0.65rem;
    color: var(--text-third);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 5;
    pointer-events: none;
}

.lab-telemetry-right {
    position: absolute;
    right: 8vw;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-tech);
    font-size: 0.65rem;
    color: var(--text-third);
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 5;
    pointer-events: none;
}

.telemetry-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.telemetry-label {
    color: var(--text-third);
    font-size: 0.55rem;
}

.telemetry-value {
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-main-layout {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    position: relative;
    z-index: 5;
    width: 100%;
    margin-top: auto;
    margin-bottom: auto;
}

.hero-typography-container {
    text-align: center;
    width: 100%;
    pointer-events: none;
}

.hero-tagline {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    color: var(--accent-blue);
    text-transform: uppercase;
    margin-bottom: 25px;
    display: block;
    animation: pulseText 3s infinite alternate;
}

.hero-title {
    font-family: var(--font-header);
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.active-state .hero-title {
    text-shadow: 0 0 35px rgba(139, 92, 246, 0.25);
}

.hero-title span.thin {
    font-weight: 600;
    color: var(--text-primary);
}

.hero-subheadline {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.65;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 650px;
    margin: 25px auto 35px;
    pointer-events: auto;
    transition: color 1.5s;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    pointer-events: auto;
}

.hero-btn-primary {
    background: var(--text-primary);
    border: 1px solid var(--text-primary);
    color: var(--bg-main);
    font-family: var(--font-tech);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 1.5s, color 1.5s, border-color 1.5s;
}

.hero-btn-primary .arrow-icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
    box-shadow: 0 10px 30px var(--accent-glow), 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
}

.hero-btn-primary:hover .arrow-icon {
    transform: translateX(5px);
}

.hero-btn-secondary {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    font-family: var(--font-tech);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 1.5s, color 1.5s;
}

.hero-btn-secondary .arrow-icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.hero-btn-secondary:hover .arrow-icon {
    transform: translateX(5px);
}

body.active-state .hero-btn-primary {
    background: #ffffff;
    border-color: #ffffff;
    color: #040405;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.08);
}

body.active-state .hero-btn-primary:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

body.active-state .hero-btn-secondary {
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

body.active-state .hero-btn-secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Centered Laboratory Core Canvas */
.hero-centerpiece-container {
    width: 800px;
    height: 800px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* Centered background anchor behind/between typography overlays */
    pointer-events: auto;
}

#hero-core-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.core-activation-indicator {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-tech);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-align: center;
}

.hero-footer-telemetry {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-tech);
    font-size: 0.65rem;
    color: var(--text-third);
    z-index: 5;
}

.hero-scroll-invite {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.hero-scroll-invite:hover {
    color: var(--accent-violet);
}

.scroll-mouse {
    width: 18px;
    height: 30px;
    border: 1.5px solid currentColor;
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 2px;
    height: 6px;
    background-color: currentColor;
    border-radius: 1px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollSlide 1.5s infinite;
}

@keyframes scrollSlide {
    0% { transform: translate(-50%, 0); opacity: 1; }
    80% { transform: translate(-50%, 8px); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 0; }
}

/* MAIN CHAPTER PANELS */
.chapter-container {
    position: relative;
    width: 100%;
    z-index: 5;
    opacity: 1; /* Always fully legible and ready for production */
    pointer-events: auto;
    transition: opacity 0.5s ease;
}

.chapter-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 200px 10vw; /* Premium luxury whitespace spacing */
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    transition: border-color 1.5s cubic-bezier(0.85, 0, 0.15, 1);
}

/* Global Content Elements */
.chapter-num {
    position: absolute;
    top: 80px;
    left: 10vw;
    font-family: var(--font-tech);
    font-size: 0.75rem;
    color: var(--accent-violet);
    letter-spacing: 0.25em;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chapter-num::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background-color: var(--accent-violet);
}

/* CHAPTER 1: THE MANIFESTO */
.manifesto-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    width: 100%;
    align-items: center;
}

.manifesto-header {
    font-family: var(--font-header);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    transition: color 1.5s cubic-bezier(0.85, 0, 0.15, 1);
}

.manifesto-tagline {
    font-family: var(--font-tech);
    font-size: 0.85rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 25px;
    display: block;
}

.manifesto-copy {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
    transition: color 1.5s;
}

.manifesto-copy span.highlight {
    color: var(--text-primary);
    font-weight: 500;
    transition: color 1.5s cubic-bezier(0.85, 0, 0.15, 1);
}

.manifesto-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 10px;
    background: var(--bg-card);
    transition: border-color 1.5s, background-color 1.5s;
}

.manifesto-img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 2px;
}

.manifesto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    filter: grayscale(0.2) contrast(1.1);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s;
}

.manifesto-visual:hover .manifesto-img {
    transform: scale(1.05);
    opacity: 1;
}

.manifesto-editorial-overlay {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-strong);
    padding: 20px 25px;
    z-index: 10;
    width: 260px;
    transition: background-color 1.5s, border-color 1.5s;
}

.overlay-header {
    font-family: var(--font-tech);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-violet);
    margin-bottom: 8px;
}

.overlay-body {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-secondary);
    transition: color 1.5s;
}

/* CHAPTER II: ASYMMETRIC BENTO GRID ARCHITECTURE */
.pillars-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.pillars-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.pillars-header h2 {
    font-family: var(--font-header);
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.pillars-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 300;
    transition: color 1.5s;
}

.bento-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    outline: 1px solid rgba(255, 255, 255, 0.6);
    outline-offset: -2px;
    border-radius: 8px; /* rounder for high-end look */
    padding: 35px;
    display: flex;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 1.5s, border-color 1.5s, outline-color 1.5s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

body.active-state .bento-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    outline: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, var(--accent-glow) 0%, transparent 60%);
    opacity: 1;
    z-index: 1;
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--accent-violet);
    outline-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08), 0 0 20px var(--accent-glow);
}

body.active-state .bento-card:hover {
    border-color: var(--accent-violet);
    outline-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 25px rgba(124, 58, 237, 0.25);
}

.span-8, .span-6, .span-4 {
    width: 100%;
}

.bento-card-horizontal {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bento-card-vertical {
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
}

.bento-card.h-360 { height: 420px; }
.bento-card.h-400 { height: 480px; }
.bento-card.h-380 { height: 440px; }

.bento-card-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 5;
    pointer-events: none;
}

.bento-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-tech);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--accent-violet);
    text-transform: uppercase;
}

.bento-card:nth-child(even) .bento-label-row {
    color: var(--accent-blue);
}

.bento-title {
    font-family: var(--font-header);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.bento-desc {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
    font-weight: 400;
    transition: color 1.5s;
}

.bento-canvas-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.bento-card-horizontal .bento-canvas-container { height: 100%; }
.bento-card-vertical .bento-canvas-container { height: 180px; }
.bento-diagram-canvas { width: 100%; height: 100%; display: block; }

/* SECTION 04 — TECHNOLOGY STACK */
.tech-stack-layout {
    align-items: center;
}

.tech-stack-intro {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.tech-stack-headline {
    font-family: var(--font-header);
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.tech-stack-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
    transition: color 1.5s;
}

.tech-stack-tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.tech-tab-btn {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    font-family: var(--font-tech);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 14px 20px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 1.5s, color 1.5s;
    text-align: left;
    width: 100%;
    max-width: 250px;
}

.tech-tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.02);
}

.tech-tab-btn.active-tab {
    color: var(--accent-violet);
    border-color: var(--accent-violet);
    background: rgba(139, 92, 246, 0.03);
    box-shadow: 0 0 10px var(--accent-glow);
}

body.active-state .tech-tab-btn.active-tab {
    background: rgba(139, 92, 246, 0.08);
}

.tech-tab-btn .tab-bullet {
    opacity: 0;
    transition: opacity 0.3s;
}

.tech-tab-btn.active-tab .tab-bullet {
    opacity: 1;
}

/* Glassmorphic System Diagnostics Board */
.tech-glass-board {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.03);
    transition: background-color 1.5s, border-color 1.5s, box-shadow 1.5s;
    width: 100%;
}

body.active-state .tech-glass-board {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.tech-readout-container {
    position: relative;
    min-height: 180px;
}

.tech-tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    flex-direction: column;
    gap: 15px;
}

.tech-tab-content.active-content {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.tech-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
    font-family: var(--font-tech);
    font-size: 0.8rem;
    transition: border-color 1.5s;
}

.tech-spec-row:last-child {
    border-bottom: none;
}

.tech-spec-row .spec-label {
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    transition: color 1.5s;
}

.tech-spec-row .spec-value {
    color: var(--text-primary);
    font-weight: 500;
    transition: color 1.5s;
}

.tech-footer-telemetry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-tech);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: var(--text-third);
    transition: border-color 1.5s, color 1.5s;
}

/* CHAPTER III: IMMERSIVE MISSION STORYTELLING */
.mission-layout {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    position: relative;
    z-index: 5;
}

/* GENERAL 12-COLUMN GRID UTILITIES (MOBILE-FIRST) */
.grid-12 {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.col-4, .col-5, .col-6, .col-7, .col-8, .col-12 {
    width: 100%;
}

/* SECTION 01: ABOUT SECTOR X 51 */
.about-layout {
    align-items: center;
    padding: 60px 0;
}

.about-tagline {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    color: var(--accent-violet);
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.about-headline {
    font-family: var(--font-header);
    font-size: clamp(2rem, 5.2vw, 4.8rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 30px;
    transition: color 1.5s;
}

.about-description {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
    transition: color 1.5s;
}

/* Floating Tech Card Visual Element */
.about-visual {
    display: flex;
    justify-content: flex-end;
}

.floating-tech-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    animation: floatCard 4s ease-in-out infinite alternate;
    transition: background-color 1.5s, border-color 1.5s;
}

@keyframes floatCard {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(1deg); }
}

.floating-tech-card .card-header {
    font-family: var(--font-tech);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--text-third);
}

.floating-tech-card .card-metric {
    font-family: var(--font-header);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.floating-tech-card .card-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-glow-blue);
}

.floating-tech-card .card-footer {
    font-family: var(--font-tech);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: var(--accent-violet);
}

/* SECTION 02 — AI PRODUCTS */
.products-section-layout {
    align-items: center;
}

.products-intro {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.products-headline {
    font-family: var(--font-header);
    font-size: clamp(2rem, 5.2vw, 4.8rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 20px;
    transition: color 1.5s;
}

.products-description {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
    transition: color 1.5s;
}

.products-feature-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-bullet {
    color: var(--accent-violet);
    font-size: 0.8rem;
}

.feature-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 350;
    transition: color 1.5s;
}

/* Glassmorphic Product Interactive Dashboard Console */
.product-glass-console {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.03);
    transition: background-color 1.5s, border-color 1.5s, box-shadow 1.5s;
    width: 100%;
}

body.active-state .product-glass-console {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.console-hud-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-tech);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--text-third);
    transition: border-color 1.5s, color 1.5s;
}

.hud-circle-container {
    display: flex;
    gap: 6px;
}

.hud-circle {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--border-strong);
    transition: background-color 1.5s;
}

.product-item-card {
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 1.5s, border-color 1.5s;
}

.product-item-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.product-item-card.active-card {
    border-color: var(--accent-violet);
    box-shadow: 0 0 15px var(--accent-glow);
    background: rgba(139, 92, 246, 0.015);
}

body.active-state .product-item-card.active-card {
    border-color: var(--accent-violet);
    background: rgba(139, 92, 246, 0.04);
}

.product-item-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-tech);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--text-third);
}

.product-id {
    font-weight: 500;
}

.product-badge {
    padding: 2px 8px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 0.55rem;
    text-transform: uppercase;
    transition: all 0.3s;
}

.product-badge.active-badge {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 6px var(--accent-glow-blue);
}

.product-item-title {
    font-family: var(--font-header);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.product-item-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    font-weight: 300;
    transition: color 1.5s;
}

.product-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
    transition: border-color 1.5s;
}

.product-metric-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tile-label {
    font-family: var(--font-tech);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: var(--text-third);
}

.tile-value {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 1.5s;
}

/* SECTION 03: WHY SECTOR X 51 */
.why-layout {
    width: 100%;
    padding: 60px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-tagline {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--accent-blue);
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-header);
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.why-grid {
    align-items: stretch;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0.35; /* Fading in on scroll but highly visible outline in standby */
    transform: translateY(30px);
    transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1), transform 1.0s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s, background-color 1.5s, border-color 1.5s;
}

.why-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.why-card.revealed:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.why-num {
    font-family: var(--font-header);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-violet);
    line-height: 1;
    opacity: 0.8;
}

.why-card-title {
    font-family: var(--font-header);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.why-card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
    transition: color 1.5s;
}

/* SECTION 04: FEATURED PROJECTS */
.projects-layout {
    width: 100%;
    padding: 60px 0;
}

.projects-grid {
    align-items: start;
    row-gap: 80px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s, background-color 1.5s, border-color 1.5s;
}

.project-card:hover {
    transform: scale(1.015);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.project-img-wrapper {
    width: 100%;
    height: clamp(220px, 30vw, 360px);
    overflow: hidden;
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-card-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-num-tag {
    font-family: var(--font-tech);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--accent-blue);
}

.project-card-title {
    font-family: var(--font-header);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.project-card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 10px;
    transition: color 1.5s;
}

.view-project-btn {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s, color 1.5s;
}

.view-project-btn:hover {
    gap: 15px;
}

/* Asymmetric offset for the second card */
.project-offset {
    margin-top: 100px;
}

.project-full .project-img-wrapper {
    height: clamp(280px, 40vw, 480px);
}

/* SECTION 05: IMPACT METRICS */
.metrics-layout {
    width: 100%;
    padding: 60px 0;
}

.metrics-container {
    align-items: stretch;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    transition: transform 0.4s, background-color 1.5s, border-color 1.5s;
}

.metric-card:hover {
    transform: translateY(-5px);
}

.massive-metric {
    font-family: var(--font-header);
    font-size: clamp(3rem, 5.5vw, 5.2rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.0;
    letter-spacing: -0.04em;
    transition: color 1.5s;
}

.metric-label {
    font-family: var(--font-tech);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 1.5s;
}

/* Floating offset alignments */
.metric-card-1 { transform: translateY(0); }
.metric-card-2 { transform: translateY(-20px); }
.metric-card-3 { transform: translateY(15px); }
.metric-card-4 { transform: translateY(-10px); }

/* TRUST MARQUEE BANNER */
.trust-marquee-section {
    width: 100%;
    padding: 80px 0;
    border-bottom: 1px solid var(--border-strong);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

body.active-state .trust-marquee-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee-title {
    font-family: var(--font-tech);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--text-third);
    text-transform: uppercase;
    text-align: center;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
}

.marquee-track {
    display: flex;
    gap: 90px;
    white-space: nowrap;
    animation: marqueeSlide 25s linear infinite;
}

.marquee-track span {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    opacity: 0.6;
    transition: opacity 0.3s, color 0.3s;
}

.marquee-track span:hover {
    opacity: 1;
    color: var(--accent-violet);
}

@keyframes marqueeSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* SECTION 06: CAREERS */
.careers-layout {
    padding: 80px 0;
}

.careers-content {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: background-color 1.5s, border-color 1.5s;
}

.careers-headline {
    font-family: var(--font-header);
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.careers-desc {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 700px;
    transition: color 1.5s;
}

.careers-cta-btn {
    background: var(--text-primary);
    border: 1px solid var(--text-primary);
    color: var(--bg-main);
    font-family: var(--font-tech);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 16px 30px;
    border-radius: 2px;
    text-decoration: none;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 1.5s, color 1.5s, border-color 1.5s;
}

.careers-cta-btn:hover {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
    gap: 15px;
}

/* CHAPTER IV: GRAVITY WELL INTERACTIVE CORE */
.gravity-core-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    min-height: 100vh;
}

.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: radial-gradient(circle at center, var(--bg-card) 0%, var(--bg-main) 100%);
    transition: background 1.5s cubic-bezier(0.85, 0, 0.15, 1);
}

#gravity-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.gravity-hud-overlay {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    padding: 60px 5vw;
    display: flex;
    flex-direction: column;
    gap: 30px;
    pointer-events: none;
    align-items: stretch;
}

.gravity-sidebar {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    pointer-events: auto;
    transition: background-color 1.5s, border-color 1.5s;
}

.simulation-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.simulation-header h2 {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.simulation-subtitle {
    font-family: var(--font-tech);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--accent-blue);
    text-transform: uppercase;
}

.simulation-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: border-color 1.5s;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-tech);
    font-size: 0.75rem;
}

.stat-label {
    color: var(--text-secondary);
    transition: color 1.5s;
}

.stat-value {
    color: var(--text-primary);
    font-weight: 600;
    transition: color 1.5s;
}

.stat-value.mono {
    font-variant-numeric: tabular-nums;
}

.simulation-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-label-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-tech);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    transition: color 1.5s;
}

.slider-control {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    outline: none;
    position: relative;
    border: 1px solid var(--border-strong);
    transition: background 0.3s, border-color 0.3s;
}

body:not(.active-state) .slider-control {
    background: rgba(0, 0, 0, 0.05);
}

.slider-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-primary);
    border: 2px solid var(--accent-blue);
    cursor: pointer;
    box-shadow: 0 0 8px var(--accent-glow-blue);
    transition: transform 0.2s, background-color 0.2s, border-color 0.3s;
    position: relative;
    z-index: 10;
}

.slider-control::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    background: var(--accent-blue);
    border-color: #ffffff;
    box-shadow: 0 0 15px var(--accent-glow-blue);
}

body.active-state .slider-control::-webkit-slider-thumb {
    border-color: var(--accent-violet);
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.6);
}

body.active-state .slider-control::-webkit-slider-thumb:hover {
    background: var(--accent-violet);
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.9);
}

.sim-btn {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    font-family: var(--font-tech);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 12px 20px;
    border-radius: 2px;
    transition: all 0.3s, border-color 1.5s, color 1.5s;
    text-align: center;
}

.sim-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}

.sim-btn.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-glow-blue);
}

.canvas-instructions {
    align-self: flex-end;
    margin-bottom: 40px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-card);
    padding: 20px 30px;
    border-radius: 4px;
    border-right: 2px solid var(--accent-violet);
    max-width: 400px;
    backdrop-filter: blur(10px);
    transition: background-color 1.5s, border-color 1.5s;
}

.instruction-title {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-violet);
}

.instruction-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    font-weight: 300;
    transition: color 1.5s;
}

/* CHAPTER V: THE COGNITIVE NEXUS RECUPERATION */
.nexus-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.nexus-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.nexus-tag {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--accent-violet);
    text-transform: uppercase;
}

.nexus-info h2 {
    font-family: var(--font-header);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.nexus-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
    transition: color 1.5s;
}

.nexus-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 45px;
    position: relative;
    overflow: hidden;
    transition: background-color 1.5s, border-color 1.5s;
}

.nexus-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.nexus-lock-screen {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: stretch;
}

.lock-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lock-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-violet);
    transition: border-color 1.5s;
}

.lock-icon.unlocked {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-glow-blue);
    animation: pulseUnlock 1s infinite alternate;
}

@keyframes pulseUnlock {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.lock-title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lock-title {
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: 700;
}

.lock-status {
    font-family: var(--font-tech);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-violet);
}

.lock-status.unlocked {
    color: var(--accent-blue);
}

.oscilloscope-container {
    width: 100%;
    height: 120px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: background-color 1.5s, border-color 1.5s;
}

#oscilloscope-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.calibration-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calibration-gauge-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.calibration-dial-card {
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 1.5s;
}

.dial-value {
    font-family: var(--font-tech);
    font-size: 1rem;
    font-weight: 600;
    text-align: right;
    color: var(--text-primary);
    transition: color 1.5s;
}

.dial-value.synced {
    color: var(--accent-blue);
}

.nexus-form {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    flex-direction: column;
    gap: 25px;
}

.nexus-form.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.form-title {
    font-family: var(--font-header);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-strong);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 10px 0;
    outline: none;
    transition: border-color 0.3s, color 1.5s;
}

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

.form-label {
    font-family: var(--font-tech);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.3s, transform 0.3s;
    pointer-events: none;
    transform-origin: left;
}

.form-input:focus + .form-label, 
.form-input:not(:placeholder-shown) + .form-label {
    color: var(--accent-blue);
    transform: translateY(-20px) scale(0.85);
}

.submit-btn {
    background: var(--text-primary);
    border: 1px solid var(--text-primary);
    color: var(--bg-main);
    font-family: var(--font-tech);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 16px 20px;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 1.5s, color 1.5s, border-color 1.5s;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.submit-btn:hover {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
    box-shadow: 0 0 15px rgba(255,255,255,0.15);
}

.submission-complete {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 0;
    text-align: center;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.complete-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    animation: pulseComplete 1.5s infinite alternate;
}

@keyframes pulseComplete {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px var(--accent-glow-blue)); }
    100% { transform: scale(1.1); filter: drop-shadow(0 0 10px var(--accent-glow-blue)); }
}

.complete-title {
    font-family: var(--font-header);
    font-size: 1.4rem;
    font-weight: 800;
}

.complete-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 320px;
    transition: color 1.5s;
}

/* EDITORIAL FOOTER */
.editorial-footer {
    padding: 80px 10vw 40px;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 60px;
    transition: background-color 1.5s, border-color 1.5s;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.18em; /* Match fine letter spacing */
    color: var(--text-primary);
    text-decoration: none;
    transition: color 1.5s;
}

.footer-tagline {
    font-family: var(--font-tech);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-transform: uppercase;
    transition: color 1.5s;
}

.footer-nav {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav-title {
    font-family: var(--font-tech);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-third);
    transition: color 1.5s;
}

.footer-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-tech);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--text-third);
    transition: border-color 1.5s, color 1.5s;
}

/* PROGRESSIVE ENHANCEMENT DESIGN SYSTEM (MOBILE-FIRST) */

/* 1. PROGRESSIVE TABLET ENHANCEMENT (min-width: 768px) */
@media (min-width: 768px) {
    .site-header {
        padding: 0 5vw;
    }
    
    /* Reveal navigation menu elements */
    .header-nav {
        display: flex;
        gap: 20px;
    }
    .header-nav .nav-link {
        font-size: 0.75rem;
    }
    
    .header-actions {
        gap: 15px;
    }
    .header-cta-btn {
        padding: 10px 18px;
        font-size: 0.65rem;
    }

    /* Grids: 12-column grid activation */
    .grid-12 {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 25px;
    }
    
    .col-4 { grid-column: span 6 !important; }
    .col-8 { grid-column: span 12 !important; }
    .col-5 { grid-column: span 6 !important; }
    .col-7 { grid-column: span 6 !important; }
    .col-6 { grid-column: span 6 !important; }

    .about-layout {
        padding: 40px 0;
    }
    .about-visual {
        justify-content: center;
        margin-top: 30px;
    }

    /* Bento Grid: 2 columns */
    .bento-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .span-8, .span-6, .span-4 {
        grid-column: span 12;
        width: auto;
    }
    
    .bento-card-horizontal {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        height: auto !important;
        padding: 35px;
    }
    
    .bento-card-vertical {
        grid-column: span 6;
        height: 440px !important;
    }

    /* Tech Stack panel */
    .tech-stack-layout {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    
    .tech-stack-intro {
        width: 100%;
        text-align: center;
    }
    
    .tech-stack-tabs {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .tech-tab-btn {
        max-width: 200px;
    }
    
    .tech-stack-console {
        width: 100%;
    }

    /* Projects grid: 2 columns */
    .projects-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .project-card.col-7, .project-card.col-5 {
        grid-column: span 6 !important;
        margin-top: 0 !important;
    }
    
    .project-card.col-12 {
        grid-column: span 12 !important;
    }

    /* Metrics: 2x2 grid */
    .metrics-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .metric-card {
        grid-column: span 6 !important;
        transform: none !important;
        padding: 35px;
    }

    /* Alignment Gate */
    .nexus-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .nexus-info {
        text-align: center;
    }
    
    .nexus-panel {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }

    /* Gravity core simulator HUD */
    .gravity-hud-overlay {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 100px 4vw 40px;
    }
    
    .gravity-sidebar {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

/* 2. PROGRESSIVE DESKTOP ENHANCEMENT (min-width: 1025px) */
@media (min-width: 1025px) {
    .site-header {
        padding: 0 8vw;
    }

    .header-nav {
        gap: 40px;
    }
    .header-nav .nav-link {
        font-size: 0.8rem;
    }

    /* Desktop grid sizes */
    .col-4 { grid-column: span 4 !important; }
    .col-5 { grid-column: span 5 !important; }
    .col-6 { grid-column: span 6 !important; }
    .col-7 { grid-column: span 7 !important; }
    .col-8 { grid-column: span 8 !important; }
    .col-12 { grid-column: span 12 !important; }

    .about-layout {
        padding: 60px 0;
    }
    .about-visual {
        justify-content: flex-end;
        margin-top: 0;
    }

    /* Bento Grid: 12 columns desktop layout */
    .bento-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 32px;
    }
    
    .span-8 { grid-column: span 8 !important; }
    .span-6 { grid-column: span 6 !important; }
    .span-4 { grid-column: span 4 !important; }
    
    .bento-card-horizontal {
        grid-template-columns: 1fr 1fr;
        padding: 40px 60px;
    }
    
    .bento-card-vertical {
        grid-column: auto;
        height: 480px !important;
    }

    /* Tech Stack */
    .tech-stack-layout {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 40px;
    }
    .tech-stack-intro {
        grid-column: span 4;
        text-align: left;
    }
    .tech-stack-tabs {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .tech-stack-console {
        grid-column: span 8;
    }

    /* Projects offset */
    .project-card.col-7 { grid-column: span 7 !important; }
    .project-card.col-5 { grid-column: span 5 !important; margin-top: 100px !important; }
    .project-card.col-12 { grid-column: span 12 !important; }

    /* Metrics float */
    .metrics-container {
        grid-template-columns: repeat(12, 1fr);
    }
    .metric-card.col-3 { grid-column: span 3 !important; }
    .metric-card-1 { transform: translateY(0) !important; }
    .metric-card-2 { transform: translateY(-20px) !important; }
    .metric-card-3 { transform: translateY(15px) !important; }
    .metric-card-4 { transform: translateY(-10px) !important; }

    /* Alignment Gate */
    .nexus-layout {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
    .nexus-info {
        text-align: left;
    }
    .nexus-panel {
        max-width: 100%;
        margin: 0;
    }

    /* Gravity Simulator */
    .gravity-hud-overlay {
        grid-template-columns: 350px 1fr;
        gap: 60px;
        padding: 80px 10vw;
    }
    .gravity-sidebar {
        max-width: 100%;
        margin: 0;
    }

    /* HUD elements display */
    .lab-telemetry-left, .lab-telemetry-right {
        display: flex !important;
    }
    .global-hud, .hud-chapter-nav, .hud-coordinates {
        display: block !important;
    }

    /* Premium custom cursor activation */
    .custom-cursor, .custom-cursor-ring {
        display: block !important;
    }
    * {
        cursor: none !important;
    }
}

/* --- UI/UX REFINEMENT UPGRADES --- */
.text-gradient-violet-blue {
    background: linear-gradient(135deg, #7c3aed, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.input-error-shake {
    animation: inputShake 0.4s ease-in-out;
    border-color: #ef4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25) !important;
}

@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* 3D Bento Card Tilting & Interactions */
.bento-card, 
.floating-tech-card, 
.why-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.1s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform, box-shadow;
}

/* Fluid Magnetic Button physics base transitions */
.hero-btn-primary, 
.hero-btn-secondary, 
.header-cta-btn, 
.audio-toggle,
.tab-btn,
.tech-tab-btn,
.panel-cta-btn {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease, background 0.3s ease;
    will-change: transform;
}

/* --- ELITE WORLD-CLASS DESIGN SYSTEMS --- */

/* 2. Perimeter Border Glow Tracking */
.bento-card, 
.floating-tech-card, 
.why-card {
    position: relative;
}

.bento-card::after, 
.floating-tech-card::after, 
.why-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(130px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(108, 76, 241, 0.45), transparent 80%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.bento-card:hover::after, 
.floating-tech-card:hover::after, 
.why-card:hover::after {
    opacity: 1;
}

/* 3. Obsidian Telemetry Console Terminal */
.telemetry-terminal-box {
    background: #07070a;
    border: 1px solid rgba(108, 76, 241, 0.2);
    border-radius: 8px;
    margin-bottom: 25px;
    font-family: var(--font-tech), monospace;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    position: relative;
    z-index: 5;
}

.terminal-header {
    background: rgba(108, 76, 241, 0.08);
    padding: 8px 14px;
    border-bottom: 1px solid rgba(108, 76, 241, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-header .indicator {
    width: 6px;
    height: 6px;
    background: #a855f7;
    border-radius: 50%;
    box-shadow: 0 0 8px #a855f7;
    animation: indicatorFlash 1.5s infinite alternate;
}

@keyframes indicatorFlash {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.terminal-header .title {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.15em;
    font-weight: 600;
}

.terminal-body {
    padding: 12px 16px;
    height: 90px;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.terminal-row {
    font-size: 0.6rem;
    color: #a855f7;
    opacity: 0.9;
    white-space: nowrap;
    letter-spacing: 0.05em;
    animation: textLogEntry 0.25s ease-out;
    text-align: left;
}

@keyframes textLogEntry {
    0% { transform: translateY(5px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0.9; }
}

/* 4. Glassmorphic Ambient Spotlight Follower */
.spotlight-flashlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.065) 0%, rgba(108, 76, 241, 0.02) 45%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    will-change: transform;
    opacity: 0.9;
}

/* --- CINEMATIC DESIGN SYSTEM REFINEMENTS --- */

/* 5. Adaptive Custom Cursor Lens */
.custom-cursor-ring {
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease;
}

.custom-cursor-ring.cursor-lens {
    width: 44px !important;
    height: 44px !important;
    background: rgba(124, 58, 237, 0.15) !important;
    border-color: #a855f7 !important;
    mix-blend-mode: difference !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

/* 6. Typography Hierarchy Slate Contrasts */
.about-description, 
.tech-stack-desc, 
.bento-desc {
    color: #94a3b8 !important; /* Higher contrast slate-zinc */
    letter-spacing: 0.025em;
    line-height: 1.65;
}

