/* CUSTOM FONT: Malayalam */
@font-face {
    font-family: 'FN Mahitha';
    src: url('FN-Mahitha-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ROOT VARIABLES */
:root {
    --bg-dark: #000000;
    --bg-surface: #050505;
    --bg-card: #0a0a0a;

    --text-primary: #F5F5F5;
    --text-secondary: rgba(245, 245, 245, 0.75);
    --text-muted: rgba(245, 245, 245, 0.5);

    --gold: #C5A059;
    --gold-dim: rgba(197, 160, 89, 0.3);
    --gold-glow: rgba(197, 160, 89, 0.15);

    --red: #b30000;
    --red-glow: rgba(179, 0, 0, 0.4);

    /* War-Room Fonts */
    --font-hero: 'Cinzel', serif;
    /* High-impact statements */
    --font-heading: 'Playfair Display', serif;
    /* Section headings */
    --font-story: 'Playfair Display', serif;
    /* Narrative / emotional italic */
    --font-body: 'Montserrat', 'Inter', sans-serif;
    /* Body, UI, labels */

    --space-xl: 14rem;
    --space-lg: 10rem;
    --space-md: 6rem;
    --space-sm: 3rem;

    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-med: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: initial;
    /* Lenis handles smooth scroll */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    font-size: 1.0625rem;
    /* 17px — comfortable reading size */
}

/* ===================== */
/* TYPOGRAPHY HIERARCHY  */
/* ===================== */

/* Bodoni Moda — for cinematic hero statements */
.t-hero {
    font-family: var(--font-hero);
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}

/* Playfair Display — for section headings */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

/* Override: use Bodoni for the biggest impact headings */
.section-title.gold-text,
h2.gold-text {
    font-family: var(--font-hero);
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* Cormorant Garamond italic — for narrative storytelling */
blockquote,
.core-quote,
.origin-text p,
.animate-text p {
    font-family: var(--font-story);
    font-style: italic;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    line-height: 1.85;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

/* Inter — for body, labels, UI, cards */
p,
li,
a,
span,
.intel-card p,
.auth-card p,
.timeline-content p,
.site-nav a,
.btn {
    font-family: var(--font-body);
}

p {
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 1rem;
}

.text-gold {
    color: var(--gold);
}

.text-center {
    text-align: center;
}

/* FILM GRAIN */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* CINEMATIC PRELOADER */
.cinematic-loader {
    position: fixed;
    inset: 0;
    background-color: #000000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.2s;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
}

.loader-eyebrow {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C5A059;
    margin-bottom: 1.5rem;
    text-align: center;
    transition: opacity 0.3s ease;
}

.loader-progress-wrapper {
    width: 100%;
    height: 1px;
    background: #1A1A1A;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loader-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8B0000, #00008B);
    transition: width 0.1s linear;
}

.loader-percentage {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: #E0E0E0;
    letter-spacing: 0.1em;
}

body.loader-hidden .cinematic-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* LAYOUT MULTI-USE */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 6vw;
}

.section {
    padding: var(--space-xl) 0;
    position: relative;
}

/* HEADER / NAV */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 6vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-family: var(--font-hero);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.site-nav {
    display: flex;
    gap: 3rem;
}

.site-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: var(--transition-med);
}

.site-nav a:hover,
.site-nav a.nav-cta {
    color: var(--gold);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 3rem;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition-med);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--gold);
    box-shadow: 0 0 25px var(--gold-glow);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

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

.btn-text {
    color: var(--text-muted);
}

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

.btn-outline-gold {
    border: 1px solid var(--gold-dim);
    color: var(--gold);
}

.btn-outline-gold:hover {
    border-color: var(--red);
    color: var(--red);
    box-shadow: 0 0 20px var(--red-glow);
}

.btn-text-gold {
    color: var(--gold-dim);
}

.btn-text-gold:hover {
    color: var(--red);
}

.btn-gold-glow {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 1.5rem 4.5rem;
    font-size: 0.9rem;
    box-shadow: 0 0 30px var(--gold-glow);
}

.btn-gold-glow:hover {
    background: var(--gold);
    color: var(--bg-dark);
    box-shadow: 0 0 50px rgba(198, 163, 80, 0.4);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center 40%, rgba(20, 20, 22, 1) 0%, var(--bg-dark) 70%);
    z-index: -1;
}

.hero-container {
    text-align: center;
    max-width: 1000px;
}

.hero-headline {
    color: var(--gold);
    font-size: clamp(3.5rem, 6.5vw, 6.5rem);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(40px);
}

.hero-subline {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 200;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 4rem;
    opacity: 0;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
}

.scroll-text {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
}

/* ORIGIN SECTION */
.origin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.section-title {
    font-family: var(--font-heading);
    /* Playfair Display */
    font-size: clamp(3rem, 5vw, 4.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.gold-line {
    width: 30px;
    height: 1px;
    background: var(--gold);
    margin: 2.5rem 0;
    opacity: 0.6;
}

.origin-text p {
    font-family: var(--font-story);
    /* Cormorant Garamond italic */
    font-style: italic;
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    color: var(--text-secondary);
    line-height: 1.9;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.cinematic-image-wrapper {
    position: relative;
    overflow: hidden;
    filter: grayscale(100%) contrast(1.1);
    height: 120%;
    aspect-ratio: 4/5;
}

.cinematic-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-reveal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    z-index: 2;
}

/* MEDICAL DETECTIVE */
.detective {
    background-color: var(--bg-surface);
}

.detective-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 6rem;
}

.intel-card {
    background: var(--bg-card);
    padding: 4rem;
    position: relative;
    cursor: default;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    
    /* Magic Bento Glow Initial States */
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-intensity: 0;
    --glow-radius: 400px;
}

.intel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(197, 160, 89, 0.1);
}

/* Border glow effect */
.intel-card::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1.5px;
    background: radial-gradient(
        var(--glow-radius) circle at var(--glow-x) var(--glow-y),
        rgba(197, 160, 89, calc(var(--glow-intensity) * 0.8)) 0%,
        rgba(197, 160, 89, calc(var(--glow-intensity) * 0.4)) 30%,
        transparent 60%
    );
    border-radius: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 1;
    z-index: 1;
}

.card-border { display: none; }

.particle::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: rgba(197, 160, 89, 0.2);
    border-radius: 50%;
    z-index: -1;
}

.global-spotlight {
    mix-blend-mode: screen;
    will-change: transform, opacity;
    z-index: 200 !important;
    pointer-events: none;
}

.intel-card h3 {
    font-family: var(--font-heading);
    /* Playfair Display */
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.intel-card p {
    font-family: var(--font-body);
    /* Inter */
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: 300;
}

/* GLOBAL AUTHORITY */
.authority-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: rgba(255, 255, 255, 0.05);
    /* Thin borders effect */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-card {
    background: #e8e8e8;
    color: #111;
    padding: 4rem 3rem;
    position: relative;
    transition: var(--transition-med);
}

.micro-badge {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: var(--red);
    border: 1px solid var(--red);
    padding: 0.3rem 0.6rem;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 500;
}

.auth-card h4 {
    font-family: var(--font-heading);
    /* Playfair Display */
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #111;
}

.auth-card p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.7;
    color: #333;
}

/* ARSENAL SECTION */
.arsenal {
    background: #000;
}

.arsenal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.arsenal-card {
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.arsenal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.1);
    border-color: rgba(197, 160, 89, 0.3);
}

.arsenal-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

.arsenal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2.5rem;
    transition: transform 0.6s ease;
}

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

.arsenal-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.arsenal-content h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #F5F5F5;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.arsenal-content .tagline {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.arsenal-content .status {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    margin-bottom: 2rem;
    font-style: italic;
    flex: 1;
}

.arsenal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.bonus-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(135deg, #0a0a0a, #050505);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.bonus-card:hover {
    box-shadow: 0 15px 50px rgba(197, 160, 89, 0.15);
    border-color: var(--gold);
}

.bonus-card .arsenal-image {
    aspect-ratio: auto;
    height: 100%;
}

.bonus-card .arsenal-content {
    justify-content: center;
}

@media (max-width: 1024px) {
    .arsenal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .arsenal-grid { grid-template-columns: 1fr; }
    .bonus-card { grid-template-columns: 1fr; }
    .bonus-card .arsenal-image { aspect-ratio: 4/3; }
}

/* EMPATHY CORE */
.empathy {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80vh;
}

.spotlight {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.empathy-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

.core-quote {
    font-family: var(--font-story);
    /* Cormorant Garamond — emotional italic */
    font-style: italic;
    font-size: clamp(2.5rem, 5vw, 4.75rem);
    font-weight: 400;
    line-height: 1.35;
    color: rgba(248, 248, 248, 0.88);
    letter-spacing: -0.01em;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 4rem;
    quotes: none;
}

/* BOOK SHOWCASE */
.book-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marquee-wrapper {
    width: 100vw;
    overflow: hidden;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    will-change: transform;
    padding: 2rem 0;
    /* space for hover lift */
}

.marquee-left {
    animation: scroll-left 50s linear infinite;
}

.marquee-right {
    animation: scroll-right 50s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(calc(-50% - 1rem));
    }

    100% {
        transform: translateX(0);
    }
}

.book-img-wrapper {
    width: 260px;
    height: 380px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.book-img-wrapper:hover {
    transform: scale(1.08) translateY(-15px);
    box-shadow: 0 30px 50px rgba(198, 163, 80, 0.25);
    border: 1px solid rgba(198, 163, 80, 0.5);
    z-index: 10;
}

.book-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

/* EMPIRE SECTION */
.empire {
    background-color: var(--bg-surface);
}

.empire-network {
    position: relative;
    height: 75vh;
    min-height: 600px;
    transform: translateY(-6vh);
}

.network-node {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: absolute;
    cursor: crosshair;
    width: 60px;
    height: 60px;
    margin-left: -30px;
    margin-top: -30px;
}

/* Authority Hover Aura */
.network-node::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    z-index: -1;
}

.network-node:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.network-node.app {
    left: calc(50% - 350px);
    top: 50%;
}

.network-node.main {
    left: 50%;
    top: 50%;
}
.network-node.main .node-text {
    top: 62px;
    bottom: auto;
}

.network-node.books {
    left: 50%;
    top: calc(50% - 130px);
}
.network-node.books .node-text {
    top: 48px;
}

.network-node.iso {
    left: calc(50% + 350px);
    top: 50%;
}

.node-point {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-glow);
    transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.node-point.pulse {
    width: 12px;
    height: 12px;
    box-shadow: 0 0 20px var(--gold);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(198, 163, 80, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(198, 163, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(198, 163, 80, 0);
    }
}

.node-text {
    position: absolute;
    top: 54px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    pointer-events: none;
}

.node-link {
    text-decoration: none;
    pointer-events: auto;
}

.node-name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.node-desc {
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: rgba(245, 245, 245, 0.4);
    letter-spacing: 0.02em;
    margin-top: 10px;
    line-height: 1.5;
    max-width: 220px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.network-node:hover .node-point {
    background: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow), 0 0 30px rgba(197, 160, 89, 0.3);
}

.network-node:hover .node-name {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.network-node:hover .node-desc {
    opacity: 1;
    transform: translateY(0);
}

.network-line {
    position: absolute;
    background: var(--gold-dim);
    z-index: 1;
}

.network-line.horizontal.left {
    left: calc(50% - 350px);
    top: 50%;
    width: 350px;
    height: 1.25px;
    transform: translateY(-50%);
}

.network-line.horizontal.right {
    left: 50%;
    top: 50%;
    width: 350px;
    height: 1.25px;
    transform: translateY(-50%);
}

.network-line.vertical {
    left: 50%;
    top: calc(50% - 130px);
    width: 1.25px;
    height: 130px;
    transform: translateX(-50%);
}

/* ACHIEVEMENTS */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 4rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -4.3rem;
    /* 4rem padding + 0.3rem offset */
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background: var(--bg-dark);
    border: 1px solid var(--gold);
    border-radius: 50%;
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
    line-height: 1;
}

.timeline-content h4 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* FOOTER */
.footer {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-statement {
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    margin-bottom: 4rem;
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 6rem;
    flex-wrap: wrap;
}

.footer-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 3rem;
    margin-bottom: 4rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.contact-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-med);
}

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

.social-links {
    display: flex;
    gap: 3rem;
}

.social-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-med);
}

.social-links a:hover {
    color: var(--gold);
}

.footer-legal {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.4;
    letter-spacing: 0.05em;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .origin-grid {
        gap: 4rem;
    }

    .auth-card {
        padding: 3rem 2rem;
    }

    .empire-network {
        height: 400px;
    }

    .network-node:nth-child(1) {
        left: 0;
    }

    .network-node:nth-child(7) {
        right: 0;
    }

    .network-line.horizontal {
        left: 10%;
        width: 40%;
    }

    .network-line.horizontal.right {
        left: 50%;
        width: 40%;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 8rem;
        --space-lg: 6rem;
    }

    .site-header {
        padding: 1.5rem 6vw;
        mix-blend-mode: normal;
        background: rgba(7, 7, 8, 0.9);
        backdrop-filter: blur(10px);
    }

    .site-nav {
        display: none;
    }

    /* Could add a hamburger menu, keeping minimal for now */

    .origin-grid {
        grid-template-columns: 1fr;
    }

    .detective-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .intel-card {
        padding: 1rem !important;
        border-radius: 10px !important;
    }

    .intel-card h3 {
        font-size: 0.8rem !important;
        margin-bottom: 0.4rem !important;
        line-height: 1.3 !important;
    }

    .intel-card p {
        font-size: 0.65rem !important;
        line-height: 1.5 !important;
    }

    .intel-card .card-content div {
        font-size: 0.5rem !important;
        letter-spacing: 0.1em !important;
        margin-bottom: 0.3rem !important;
    }

    .intel-card .card-bg.watermark-text {
        font-size: 4rem !important;
    }

    .intel-card .watermark-icon {
        width: 60px !important;
    }

    .authority-showcase {
        grid-template-columns: 1fr;
    }

    .book-actions {
        flex-direction: column;
        width: 100%;
    }

    .book-actions .btn {
        width: 100%;
    }

    .footer-actions {
        flex-direction: column;
    }

    .footer-actions .btn {
        width: 100%;
    }

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

    /* Simplified Empire for Mobile */
    .empire-network {
        flex-direction: column;
        height: auto;
        gap: 3rem;
        padding: 0;
    }

    .network-node {
        position: relative;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
    }

    .network-line {
        display: none;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline-item::before {
        left: -2.35rem;
    }
}

/* --- JOURNEY SCROLL --- */
.journey-scroll {
    position: relative;
    width: 100%;
    height: 400vh;
    background-color: var(--black);
}

.journey-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--black);
}

#journey-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: lighten;
    opacity: 0.9;
}

.journey-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 2;
}

.journey-text-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    z-index: 10;
}

.journey-text {
    position: absolute;
    width: 100%;
    padding: 0 10%;
    left: 0;
}

.journey-text.text-0,
.journey-text.text-90 {
    text-align: center;
}

.journey-text.text-30 {
    text-align: left;
}

.journey-text.text-60 {
    text-align: right;
}

/* --- JOURNEY SCROLL TEXT MODIFIERS & EFFECTS --- */
.scroll-prompt {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: transparent;
    margin-top: 5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(
        180deg,
        rgba(255, 220, 120, 1) 0%,
        rgba(255, 180, 60, 1) 25%,
        rgba(230, 120, 30, 0.95) 50%,
        rgba(200, 80, 20, 0.9) 70%,
        rgba(160, 40, 10, 0.7) 90%,
        rgba(120, 20, 5, 0.4) 100%
    );
    background-size: 100% 250%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: lavaFlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255, 140, 30, 0.3)) drop-shadow(0 4px 12px rgba(200, 60, 10, 0.15));
    position: relative;
}

.scroll-prompt::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 160, 40, 0.4) 20%,
        rgba(255, 120, 20, 0.6) 50%,
        rgba(255, 160, 40, 0.4) 80%,
        transparent 100%
    );
    border-radius: 50%;
    animation: emberGlow 2s ease-in-out infinite alternate;
}

@keyframes lavaFlow {
    0%   { background-position: 0% 0%; filter: drop-shadow(0 0 6px rgba(255, 140, 30, 0.3)) drop-shadow(0 4px 12px rgba(200, 60, 10, 0.15)); }
    50%  { background-position: 0% 60%; filter: drop-shadow(0 0 12px rgba(255, 160, 40, 0.5)) drop-shadow(0 6px 18px rgba(230, 80, 15, 0.25)); }
    100% { background-position: 0% 0%; filter: drop-shadow(0 0 6px rgba(255, 140, 30, 0.3)) drop-shadow(0 4px 12px rgba(200, 60, 10, 0.15)); }
}

@keyframes emberGlow {
    0%   { opacity: 0.3; transform: scaleX(0.8); }
    100% { opacity: 0.7; transform: scaleX(1.1); }
}

.heartbeat-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    width: 2.4rem;
    height: 2.4rem;
    color: transparent;
    background: linear-gradient(
        180deg,
        rgba(255, 230, 140, 1) 0%,
        rgba(255, 180, 50, 1) 40%,
        rgba(230, 100, 20, 1) 70%,
        rgba(180, 50, 10, 0.9) 100%
    );
    background-size: 100% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heartbeat 1.5s infinite ease-in-out, arrowLava 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 140, 30, 0.5)) drop-shadow(0 2px 6px rgba(200, 60, 10, 0.3));
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1) translateY(0); }
    20% { transform: scale(1.15) translateY(3px); }
    40% { transform: scale(1) translateY(0); }
    60% { transform: scale(1.15) translateY(3px); }
}

@keyframes arrowLava {
    0%   { background-position: 0% 0%; filter: drop-shadow(0 0 8px rgba(255, 140, 30, 0.5)); }
    50%  { background-position: 0% 80%; filter: drop-shadow(0 0 16px rgba(255, 180, 50, 0.7)) drop-shadow(0 4px 10px rgba(230, 80, 15, 0.4)); }
    100% { background-position: 0% 0%; filter: drop-shadow(0 0 8px rgba(255, 140, 30, 0.5)); }
}

.text-bold-white {
    color: #F5F5F5;
    font-weight: 700;
}

.text-gold {
    color: var(--gold);
}

.text-large-white {
    color: #F5F5F5;
    font-size: clamp(2rem, 5vw, 4.5rem) !important;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.text-small-gold {
    color: var(--gold);
    font-family: var(--font-story);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    letter-spacing: 0.05em;
}

/* --- ECG Heartbeat Text Animation (Film Roll Quote) --- */
.ecg-quote-text {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.95)  0%,
        rgba(255, 255, 255, 0.95) 35%,
        rgba(255, 80,  80, 0.6)  42%,
        rgba(255,  0,   0, 1.0)  50%,
        rgba(255, 80,  80, 0.6)  58%,
        rgba(255, 255, 255, 0.95) 65%,
        rgba(255, 255, 255, 0.95) 100%
    );
    background-size: 300% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 2px rgba(255, 60, 60, 0.15));
    animation: quoteHeartbeat 7s linear infinite;
}

@keyframes quoteHeartbeat {
    0%   { background-position: 150% center; }
    100% { background-position: -50% center; }
}

.ecg-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 150px;
    z-index: -1;
    opacity: 0.3;
}

.ecg-line {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--red);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.spotlight-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150vw;
    height: 150vh;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    z-index: -1;
    opacity: 0;
    pointer-events: none;
}

.btn-premium-cta {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    padding: 1.2rem 3.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    transition: all 0.4s ease;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

.btn-premium-cta:hover {
    border-color: var(--gold);
    background: rgba(197, 160, 89, 0.05);
    box-shadow: 0 0 30px var(--gold-glow);
    color: #F5F5F5;
}

/* Journey Scroll Typography — Bodoni & Playfair */
.font-accent {
    font-family: 'Bodoni Moda', 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0;
    text-shadow: 0 10px 60px rgba(0, 0, 0, 0.6);
}

.font-serif {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 3.5vw, 2.75rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.90);
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: 0;
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.65);
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
}

.text-eee {
    color: rgba(240, 235, 220, 0.95);
}

.italic {
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
}

.logo-loop-section {
    padding: var(--space-md) 8vw;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.logo-loop-intro {
    text-align: center;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
}

.logo-loop-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.75;
    margin-bottom: 1.5rem;
    display: block;
}

.logo-loop-description {
    font-family: var(--font-story);
    /* Cormorant Garamond */
    font-style: italic;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    line-height: 1.85;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    quotes: none;
    border: none;
    padding: 0;
    margin: 0;
}

/* --- EVIDENCE ROOM SECTION --- */
.evidence-room {
    background: var(--bg-surface);
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 4vw;
}

.evidence-item {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    background: #000;
}

.evidence-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s ease;
}

.evidence-item:hover img {
    filter: grayscale(0%) contrast(1.0);
    transform: scale(1.03);
}

.evidence-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

.evidence-item:hover .evidence-overlay {
    opacity: 1;
}

.evidence-label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #F5F5F5;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

@media (max-width: 1024px) {
    .evidence-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* --- LIVE COMMAND CENTER --- */
.live-command {
    background: var(--bg-surface);
}

/* --- CIRCULAR GALLERY --- */
.circular-gallery {
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
}

.circular-gallery:active {
  cursor: grabbing;
}

/* --- CINEMATIC FILM STRIP --- */
.film-strip-journey {
    background-color: #050505;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.film-strip-container {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    background: #000;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.9);
}

.film-dust {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.12;
    mix-blend-mode: overlay;
    animation: filmFlicker 0.12s infinite;
}

.film-track {
    display: flex;
    height: 100%;
    align-items: center;
    width: max-content;
    padding: 0; 
    gap: 40px; 
    will-change: transform;
}

.film-frame {
    position: relative;
    width: 400px;
    background: #111;
    border: 2px solid #222;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    filter: sepia(0.8) contrast(1.1) brightness(0.8);
    cursor: none;
}

.film-frame::before, .film-frame::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 22px;
    background-image: radial-gradient(circle, transparent 4px, #050505 5px);
    background-size: 20px 22px;
    background-repeat: repeat-x;
}
.film-frame::before { top: -2px; }
.film-frame::after { bottom: -2px; }

.frame-content {
    width: 100%;
    position: relative;
}

.frame-content img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
}

.frame-spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.8) 100%);
    opacity: 1;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

.frame-number {
    position: absolute;
    bottom: -22px;
    left: 10px;
    color: #444;
    font-size: 11px;
    font-family: 'Space Mono', monospace;
    letter-spacing: 2px;
}

.frame-caption {
    text-align: center;
    padding: 1.4rem 0.5rem 0.6rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.75);
    line-height: 1.4;
}

/* Hover Physics */
.film-strip-container.is-paused .film-frame {
    filter: sepia(0.9) contrast(0.9) brightness(0.4);
    opacity: 0.6;
}

.film-strip-container.is-paused .film-frame.is-focused {
    filter: sepia(0) contrast(1.15) brightness(1.1);
    opacity: 1;
    transform: scale(1.08);
    z-index: 5;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.15); 
}

.film-strip-container.is-paused .film-frame.is-focused .frame-spotlight {
    opacity: 0; 
}

.film-strip-container.is-paused .film-frame.is-focused .frame-content img {
    transform: scale(1.05);
}

@keyframes filmFlicker {
    0% { transform: translate(0, 0) scale(1); opacity: 0.12; }
    50% { transform: translate(-1px, 1px) scale(1.01); opacity: 0.08; }
    100% { transform: translate(1px, -1px) scale(1); opacity: 0.12; }
}

/* --- CYBERPUNK MATRIX GRID --- */
.matrix-grid .matrix-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
}

.cyber-card {
    position: relative;
    background: linear-gradient(135deg, rgba(10,10,10,0.9) 0%, rgba(5,5,5,0.95) 100%);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 4px;
    padding: 2.5rem 2rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
}

.ecosystem-network.is-visible .cyber-card {
    animation: cyberCardIn 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Staggered entrance */
.ecosystem-network.is-visible .cyber-card:nth-child(1) { animation-delay: 0.1s; }
.ecosystem-network.is-visible .cyber-card:nth-child(2) { animation-delay: 0.2s; }
.ecosystem-network.is-visible .cyber-card:nth-child(3) { animation-delay: 0.3s; }
.ecosystem-network.is-visible .cyber-card:nth-child(4) { animation-delay: 0.4s; }
.ecosystem-network.is-visible .cyber-card:nth-child(5) { animation-delay: 0.5s; }
.ecosystem-network.is-visible .cyber-card:nth-child(6) { animation-delay: 0.6s; }

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

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--gold, #D4AF37);
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.cyber-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212,175,55,0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px rgba(212,175,55,0.15);
}

.cyber-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 10px var(--gold);
}

.cyber-domain {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--gold, #D4AF37);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(212,175,55,0.05);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 2px;
}

.cyber-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.cyber-desc {
    font-family: var(--font-text, 'Inter', sans-serif);
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin: 0;
}

.cyber-dots-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px dashed rgba(212,175,55,0.3);
}

.cyber-dots-card:hover {
    background: rgba(212,175,55,0.02);
    border: 1px dashed rgba(212,175,55,0.5);
    transform: translateY(-5px);
    box-shadow: inset 0 0 20px rgba(212,175,55,0.05);
}

.cyber-dots-card::before {
    display: none; /* No gold accent line on the dots card */
}

.cyber-dots {
    font-family: 'Space Mono', monospace;
    font-size: 2.5rem;
    color: var(--gold, #D4AF37);
    letter-spacing: 0.2em;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.cyber-dots-card:hover .cyber-dots {
    opacity: 1;
    text-shadow: 0 0 10px rgba(212,175,55,0.5);
}

/* --- CLINICAL MENTORING SHOWCASE --- */
.mentoring-showcase {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.05);
}

.slide-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 5s ease, opacity 1s ease;
}

.slide-image.image-1 {
    background-image: url('images/nsmu.jpeg');
    animation: slideShow1 12s infinite;
}

.slide-image.image-2 {
    background-image: url('images/medmelo%20learning%20app.png'); /* URL Encoded Space */
    animation: slideShow2 12s infinite;
}

@keyframes slideShow1 {
    0%, 45% { opacity: 1; transform: scale(1); }
    50%, 95% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slideShow2 {
    0%, 45% { opacity: 0; transform: scale(1.05); }
    50%, 95% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.05); }
}

@media (max-width: 1024px) {
    .mentoring-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* --- PREMIUM MEDICAL TEXT ANIMATION --- */
.medical-anim-text {
    font-family: 'Inter', sans-serif; /* Bold modern sans-serif */
    font-weight: 700;
    color: #ffffff; /* Primary text: clean white */
    display: inline-block;
    transition: transform 0.4s ease, text-shadow 0.4s ease;
    
    /* Animation initial state */
    opacity: 0;
    transform: translateY(20px);
    filter: blur(8px);
    animation: medicalReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Subtle letter spacing animation during reveal */
@keyframes medicalReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(8px);
        letter-spacing: 0.1em;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
        letter-spacing: normal;
    }
}

/* Hover effect - sequencing red to blue siren glow */
.medical-anim-text:hover {
    transform: scale(1.02);
    animation: medicalSirenGlow 2.5s infinite alternate ease-in-out;
}

@keyframes medicalSirenGlow {
    0%, 30% {
        text-shadow: 0 0 20px rgba(214, 40, 40, 0.6); /* Glow in emergency red */
    }
    70%, 100% {
        text-shadow: 0 0 25px rgba(168, 218, 220, 0.8); /* Transition to soft clinical blue */
    }
}

/* Highlight words */
.medical-anim-text .highlight-red {
    color: #D62828; /* emergency red */
    transition: text-shadow 0.4s ease;
}

.medical-anim-text .highlight-blue {
    color: #A8DADC; /* soft clinical blue */
    transition: text-shadow 0.4s ease;
}

/* ==========================================================================
 * PHASE 2, 3 & 4: ARSENAL, AUDIO & PROJECT RED MODULES
 * ========================================================================== */

/* Typography */
.malayalam-subtitle {
    font-family: 'FN Mahitha', var(--font-story);
    font-size: 1.75rem;
    letter-spacing: 0.08em;
    color: #D4AF37;
    display: block;
    margin-top: 0.4rem;
    margin-bottom: 0.6rem;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

.asset-tier-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.1em;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.syndicate-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.syndicate-footer strong {
    color: #ffffff;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.syndicate-cta {
    display: inline-block;
    margin-top: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.syndicate-cta:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Button Variants */
.btn-ghost-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.6rem 1.2rem;
    font-size: 0.65rem;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-platform {
    padding: 0.2rem !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn-platform:hover {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    transform: scale(1.12);
}

.btn-platform img.platform-logo {
    display: block;
    height: 90px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.btn-platform:hover img.platform-logo {
    opacity: 1;
}

.btn-platform.btn-disabled {
    opacity: 0.3 !important;
    pointer-events: none;
    cursor: not-allowed;
}

.btn-platform.btn-disabled img.platform-logo {
    opacity: 0.6;
}

.btn-spotify {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.5rem !important;
    box-shadow: none !important;
}

.btn-spotify:hover {
    background: none !important;
    box-shadow: none !important;
    transform: scale(1.12);
}

.btn-spotify img.platform-logo {
    filter: none;
    height: 140px;
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(197, 160, 89, 0.05); /* very soft gold tint */
}

.btn-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-negotiating {
    position: relative;
    overflow: hidden;
}

/* Tooltip overlay for negotiating status */
.btn-negotiating::after {
    content: "NEGOTIATING EXCLUSIVE RIGHTS";
    position: absolute;
    inset: 0;
    background: #0a0a0a;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: 'Space Mono', monospace;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 0.25rem;
}

.btn-negotiating:hover::after {
    opacity: 1;
}

.btn-spotify {
    background: #1DB954;
    color: #000000;
    border: none;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    display: inline-flex;
    border-radius: 30px;
    font-size: 0.8rem;
}

.btn-spotify:hover {
    background: #1ed760;
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.3);
    color: #000;
}

/* Status Badges */
.status-pulse-red {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #D62828;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.status-pulse-red::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #D62828;
    border-radius: 50%;
    box-shadow: 0 0 10px #D62828;
    animation: redPulse 2s infinite;
}

@keyframes redPulse {
    0% { box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(214, 40, 40, 0); }
    100% { box-shadow: 0 0 0 0 rgba(214, 40, 40, 0); }
}

/* Project Red typography */
.project-red-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    color: #D62828;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1rem;
    margin-top: 1rem;
    text-shadow: 0 0 40px rgba(214, 40, 40, 0.3);
}

.podcast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.podcast-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
    transition: transform 0.4s ease;
}

.podcast-card:hover {
    transform: translateY(-10px);
    border-color: rgba(29, 185, 84, 0.3);
}

.podcast-cover {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .podcast-grid {
        grid-template-columns: 1fr;
    }
}
/* --- THE ARSENAL GRID SYSTEM --- */
.arsenal-page {
    padding-top: 150px;
    background: var(--bg-dark, #020202);
    min-height: 100vh;
}

.hero-quote {
    font-size: 2rem;
    line-height: 1.6;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto 5rem;
}

.hero-quote .dramatic-pause {
    display: block;
    font-style: italic;
    opacity: 0.9;
    font-size: 2.2rem;
    margin: 4.5rem 0;
}

.hero-quote .golden-highlight {
    color: var(--bg-dark, #020202);
    background: linear-gradient(120deg, #FFD700, #B8860B);
    padding: 0.1rem 0.6rem;
    font-weight: 700;
}

.arsenal-category-title {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    letter-spacing: 0.25em;
    color: var(--gold);
    text-transform: uppercase;
    text-align: center;
    margin-top: 6rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,215,0,0.2);
    padding-bottom: 1rem;
}

.arsenal-category-subtitle {
    text-align: center;
    font-style: italic;
    color: var(--text-secondary);
    margin-top: -1rem;
    margin-bottom: 4rem;
}

.arsenal-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 6rem;
}

.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 992px) {
    .grid-cols-4, .grid-cols-5, .grid-cols-6 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-4, .grid-cols-5, .grid-cols-6 { grid-template-columns: 1fr; }
}

.arsenal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.arsenal-logo-container {
    height: 80px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 15px rgba(255,255,255,0.05));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.arsenal-logo-container:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 25px rgba(255,255,255,0.1));
}

.arsenal-logo-container img, .arsenal-logo-container svg {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.arsenal-logo-container.grayscale {
    filter: grayscale(100%) opacity(0.8) drop-shadow(0 4px 15px rgba(255,255,255,0.05));
}
.arsenal-logo-container.grayscale:hover {
    filter: grayscale(0%) opacity(1) drop-shadow(0 8px 25px rgba(255,255,255,0.1));
}

.app-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.micro-skill {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.creative-sub-category {
    margin-bottom: 5rem;
}

.creative-sub-category h4 {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.creative-sub-category .sub-desc {
    text-align: center;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 0.9rem;
}
