@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;500;600&family=Rajdhani:wght@300;400;600;700&display=swap");


*, *::before, *::after { box-sizing: border-box;
 margin: 0; padding: 0; }

        :root {
            --red:        #cc0000;
            --red-hot:    #ff1a1a;
            --red-dim:    #7a0000;
            --bg:         #06060a;
            --bg2:        #0d0d14;
            --bg3:        #111120;
            --offset:     #0e0e1c;
            --steel:      #1c1c30;
            --line:       #1e1e32;
            --text:       #e8e8f0;
            --muted:      #6a6a88;
            --subtle:     #2a2a44;
            --accent:     #3a3a60;
            --glow:       rgba(204,0,0,0.4);
            --glow-soft:  rgba(204,0,0,0.15);
        }

        html { scroll-behavior: smooth; font-size: 16px; }

        body {
            background: var(--bg);
            color: var(--text);
            font-family: 'Inter', sans-serif;
            font-weight: 300;
            overflow-x: hidden;
            line-height: 1.6;
        }

        ::selection { background: var(--red); color: #fff; }

        /* =============================================
           SCROLLBAR
        ============================================= */
        ::-webkit-scrollbar { width: 4px; }
        ::-webkit-scrollbar-track { background: var(--bg); }
        ::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

        /* =============================================
           TYPOGRAPHY
        ============================================= */
        h1, h2, h3, h4 { font-family: 'Orbitron', monospace; letter-spacing: 0.05em; }
        .rajdhani { font-family: 'Rajdhani', sans-serif; }

        .section-label {
            font-family: 'Orbitron', monospace;
            font-size: 0.6rem;
            letter-spacing: 0.4em;
            text-transform: uppercase;
            color: var(--red);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        .section-label::before {
            content: '';
            display: block;
            width: 40px;
            height: 1px;
            background: var(--red);
        }

        .section-title {
            font-size: clamp(2rem, 5vw, 3.5rem);
            font-weight: 900;
            line-height: 1.1;
            color: var(--text);
            margin-bottom: 1.5rem;
        }

        .section-title span { color: var(--red); }

        .section-subtitle {
            font-family: 'Rajdhani', sans-serif;
            font-size: 1.1rem;
            color: var(--muted);
            font-weight: 400;
            max-width: 600px;
            line-height: 1.7;
        }

        /* =============================================
           NAVIGATION
        ============================================= */
        #nav {
            position: fixed;
            top: 0; left: 0; right: 0;
            z-index: 1000;
            padding: 1.5rem 3rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all 0.4s ease;
        }

        #nav.scrolled {
            background: rgba(6, 6, 10, 0.95);
            backdrop-filter: blur(20px);
            padding: 1rem 3rem;
            border-bottom: 1px solid var(--line);
        }

        .nav-logo {
            font-family: 'Orbitron', monospace;
            font-size: 1rem;
            font-weight: 900;
            letter-spacing: 0.2em;
            color: var(--text);
            text-decoration: none;
        }

        .nav-logo span { color: var(--red); }

        .nav-links {
            display: flex;
            gap: 2.5rem;
            list-style: none;
        }

        .nav-links a {
            font-family: 'Rajdhani', sans-serif;
            font-size: 0.85rem;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: var(--muted);
            text-decoration: none;
            position: relative;
            transition: color 0.3s;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px; left: 0;
            width: 0; height: 1px;
            background: var(--red);
            transition: width 0.3s ease;
        }

        .nav-links a:hover { color: var(--text); }
        .nav-links a:hover::after { width: 100%; }

        .nav-toggle {
            display: none;
            flex-direction: column;
            justify-content: center;
            gap: 6px;
            cursor: pointer;
            background: none;
            border: none;
            padding: 6px;
            position: relative;
            z-index: 1001;
        }

        .nav-toggle span {
            display: block;
            width: 24px;
            height: 1.5px;
            background: var(--text);
            border-radius: 2px;
            transform-origin: center;
            transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                        opacity 0.3s ease,
                        width 0.3s ease,
                        background 0.3s ease;
        }

        /* Hamburger ? X morph */
        .nav-toggle.is-open span:nth-child(1) {
            transform: translateY(7.5px) rotate(45deg);
            background: var(--red);
        }
        .nav-toggle.is-open span:nth-child(2) {
            opacity: 0;
            transform: scaleX(0);
        }
        .nav-toggle.is-open span:nth-child(3) {
            transform: translateY(-7.5px) rotate(-45deg);
            background: var(--red);
        }

        /* =============================================
           HERO
        ============================================= */
        #hero {
            position: relative;
            height: 100vh;
            min-height: 700px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        #particleCanvas {
            position: absolute;
            inset: 0;
            z-index: 0;
        }

        .hero-grid {
            position: absolute;
            inset: 0;
            z-index: 1;
            background-image:
                linear-gradient(var(--line) 1px, transparent 1px),
                linear-gradient(90deg, var(--line) 1px, transparent 1px);
            background-size: 60px 60px;
            mask-image: radial-gradient(ellipse at center, transparent 20%, black 80%);
            opacity: 0.4;
        }

        .hero-vignette {
            position: absolute;
            inset: 0;
            z-index: 2;
            background: radial-gradient(ellipse at center, transparent 40%, var(--bg) 90%);
        }

        .hero-content {
            position: relative;
            z-index: 3;
            text-align: center;
            padding: 2rem;
        }

        .hero-eyebrow {
            font-family: 'Orbitron', monospace;
            font-size: 0.65rem;
            letter-spacing: 0.5em;
            text-transform: uppercase;
            color: var(--red);
            margin-bottom: 1.5rem;
            opacity: 0;
            animation: fadeUp 0.8s 0.5s ease forwards;
        }

        .hero-name {
            font-family: 'Orbitron', monospace;
            font-size: clamp(3rem, 10vw, 8rem);
            font-weight: 900;
            line-height: 0.95;
            letter-spacing: 0.02em;
            color: var(--text);
            opacity: 0;
            animation: fadeUp 0.8s 0.8s ease forwards;
        }

        .hero-name .last { color: var(--red); display: block; }

        .hero-tagline {
            font-family: 'Rajdhani', sans-serif;
            font-size: clamp(1rem, 3vw, 1.5rem);
            color: var(--muted);
            font-weight: 300;
            margin-top: 1.5rem;
            letter-spacing: 0.1em;
            opacity: 0;
            animation: fadeUp 0.8s 1.1s ease forwards;
        }

        .hero-cta {
            margin-top: 3rem;
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
            opacity: 0;
            animation: fadeUp 0.8s 1.4s ease forwards;
        }

        .btn {
            font-family: 'Orbitron', monospace;
            font-size: 0.65rem;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            text-decoration: none;
            padding: 0.85rem 2.5rem;
            border: 1px solid;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-block;
            background: none;
        }

        .btn-primary {
            background: var(--red);
            border-color: var(--red);
            color: #fff;
        }

        .btn-primary:hover {
            background: var(--red-hot);
            border-color: var(--red-hot);
            box-shadow: 0 0 30px var(--glow);
            transform: translateY(-2px);
        }

        .btn-outline {
            border-color: var(--accent);
            color: var(--muted);
        }

        .btn-outline:hover {
            border-color: var(--red);
            color: var(--text);
            transform: translateY(-2px);
        }

        .hero-scroll {
            position: absolute;
            bottom: 2.5rem;
            left: 50%;
            transform: translateX(-50%);
            z-index: 3;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            opacity: 0;
            animation: fadeIn 1s 2s ease forwards;
        }

        .hero-scroll span {
            font-family: 'Orbitron', monospace;
            font-size: 0.5rem;
            letter-spacing: 0.4em;
            text-transform: uppercase;
            color: var(--muted);
        }

        .scroll-line {
            width: 1px;
            height: 50px;
            background: linear-gradient(to bottom, var(--red), transparent);
            animation: scrollPulse 2s ease infinite;
        }

        /* =============================================
           SHARED SECTION STYLES
        ============================================= */
        .section {
            position: relative;
            padding: 8rem 3rem;
            overflow: hidden;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .section-header { margin-bottom: 5rem; }

        /* Parallax wrapper */
        .parallax-layer {
            will-change: transform;
        }

        /* Red diagonal accent line */
        .section::before {
            content: '';
            position: absolute;
            top: 0; right: 10%;
            width: 1px;
            height: 100%;
            background: linear-gradient(to bottom, transparent, var(--line), transparent);
            opacity: 0.5;
        }

        /* =============================================
           ABOUT
        ============================================= */
        #about {
            background: var(--bg2);
        }

        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6rem;
            align-items: center;
        }

        .about-image-wrap {
            position: relative;
        }

        .about-image-placeholder {
            width: 100%;
            aspect-ratio: 3/4;
            object-fit: cover;
            object-position: center top;
            border: 1px solid var(--line);
            display: block;
        }

        .about-corner {
            position: absolute;
            width: 30px; height: 30px;
            border-color: var(--red);
            border-style: solid;
        }

        .about-corner.tl { top: -8px; left: -8px; border-width: 2px 0 0 2px; }
        .about-corner.br { bottom: -8px; right: -8px; border-width: 0 2px 2px 0; }

        .about-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin-top: 2.5rem;
        }

        .stat-item {
            border-left: 2px solid var(--red);
            padding-left: 1rem;
        }

        .stat-number {
            font-family: 'Orbitron', monospace;
            font-size: 2rem;
            font-weight: 900;
            color: var(--red);
            line-height: 1;
        }

        .stat-label {
            font-family: 'Rajdhani', sans-serif;
            font-size: 0.8rem;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: var(--muted);
            margin-top: 0.25rem;
        }

        /* =============================================
           TIMELINE
        ============================================= */
        #timeline {
            background: var(--bg);
        }

        .timeline-container {
            position: relative;
            padding-left: 2rem;
        }

        .timeline-container::before {
            content: '';
            position: absolute;
            top: 0; left: 0;
            width: 1px;
            height: 100%;
            background: linear-gradient(to bottom, var(--red), var(--subtle), transparent);
        }

        .timeline-item {
            position: relative;
            padding: 0 0 4rem 3rem;
            opacity: 0;
            transform: translateX(-20px);
            transition: all 0.6s ease;
        }

        .timeline-item.visible { opacity: 1; transform: translateX(0); }

        .timeline-dot {
            position: absolute;
            left: -5px; top: 6px;
            width: 10px; height: 10px;
            background: var(--red);
            border-radius: 50%;
            box-shadow: 0 0 12px var(--glow);
        }

        .timeline-dot.education {
            background: transparent;
            border: 2px solid var(--red);
        }

        .timeline-year {
            font-family: 'Orbitron', monospace;
            font-size: 0.6rem;
            letter-spacing: 0.3em;
            color: var(--red);
            text-transform: uppercase;
            margin-bottom: 0.4rem;
        }

        .timeline-role {
            font-family: 'Orbitron', monospace;
            font-size: 1rem;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 0.25rem;
        }

        .timeline-company {
            font-family: 'Rajdhani', sans-serif;
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--muted);
            margin-bottom: 0.75rem;
            letter-spacing: 0.05em;
        }

        .timeline-desc {
            font-size: 0.9rem;
            color: var(--muted);
            line-height: 1.8;
            max-width: 600px;
        }

        .timeline-tag {
            display: inline-block;
            font-family: 'Orbitron', monospace;
            font-size: 0.5rem;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            padding: 0.25rem 0.75rem;
            border: 1px solid var(--subtle);
            color: var(--muted);
            margin-top: 0.75rem;
            margin-right: 0.5rem;
        }

        .timeline-tag.education-tag { border-color: var(--red-dim); color: var(--red); }

        /* =============================================
           CURRENT PROJECTS
        ============================================= */
        #current-projects {
            background: var(--bg2);
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5px;
        }

        .project-card {
            position: relative;
            background: var(--bg3);
            padding: 2.5rem;
            border: 1px solid var(--line);
            overflow: hidden;
            cursor: pointer;
            transition: all 0.4s ease;
            opacity: 0;
            transform: translateY(30px);
        }

        .project-card.visible { opacity: 1; transform: translateY(0); }

        .project-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, var(--glow-soft) 0%, transparent 60%);
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .project-card:hover { border-color: var(--red-dim); transform: translateY(-4px); }
        .project-card:hover::before { opacity: 1; }

        .project-card .red-bar {
            position: absolute;
            top: 0; left: 0;
            width: 0; height: 2px;
            background: var(--red);
            transition: width 0.4s ease;
        }

        .project-card:hover .red-bar { width: 100%; }

        .project-number {
            font-family: 'Orbitron', monospace;
            font-size: 0.55rem;
            letter-spacing: 0.3em;
            color: var(--subtle);
            margin-bottom: 1.5rem;
        }

        .project-name {
            font-family: 'Orbitron', monospace;
            font-size: 1.3rem;
            font-weight: 900;
            color: var(--text);
            margin-bottom: 0.75rem;
            transition: color 0.3s;
        }

        .project-card:hover .project-name { color: var(--red); }

        .project-desc {
            font-size: 0.9rem;
            color: var(--muted);
            line-height: 1.7;
            margin-bottom: 1.5rem;
        }

        .project-tech {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .tech-tag {
            font-family: 'Orbitron', monospace;
            font-size: 0.5rem;
            letter-spacing: 0.15em;
            padding: 0.2rem 0.6rem;
            border: 1px solid var(--subtle);
            color: var(--muted);
            text-transform: uppercase;
        }

        .project-arrow {
            position: absolute;
            bottom: 2.5rem; right: 2.5rem;
            width: 36px; height: 36px;
            border: 1px solid var(--subtle);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--muted);
            font-size: 1rem;
            transition: all 0.3s;
        }

        .project-card:hover .project-arrow {
            border-color: var(--red);
            color: var(--red);
            transform: rotate(45deg);
        }

        /* =============================================
           PAST PROJECTS
        ============================================= */
        #past-projects {
            background: var(--bg);
        }

        .past-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1px;
            background: var(--line);
            border: 1px solid var(--line);
        }

        .past-item {
            background: var(--bg);
            padding: 2rem 1.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 1rem;
            transition: background 0.3s ease;
            opacity: 0;
            transform: scale(0.95);
            transition: all 0.4s ease;
            cursor: default;
        }

        .past-item.visible { opacity: 1; transform: scale(1); }
        .past-item:hover { background: var(--bg3); }

        .past-logo-placeholder {
            width: 70px;
            height: 70px;
            background: var(--steel);
            border: 1px solid var(--subtle);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--red);
            font-family: 'Orbitron', monospace;
            font-size: 0.9rem;
            font-weight: 900;
            letter-spacing: 0.05em;
            flex-shrink: 0;
            position: relative;
            overflow: hidden;
        }

        .past-logo-placeholder::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, var(--glow-soft), transparent);
            opacity: 0;
            transition: opacity 0.3s;
        }

        .past-item:hover .past-logo-placeholder::after { opacity: 1; }

        .past-name {
            font-family: 'Rajdhani', sans-serif;
            font-size: 0.85rem;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--muted);
            transition: color 0.3s;
        }

        .past-item:hover .past-name { color: var(--text); }

        /* =============================================
           TRAVEL BLOG
        ============================================= */
        #travel {
            background: var(--bg2);
        }

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

        .travel-card {
            position: relative;
            overflow: hidden;
            border: 1px solid var(--line);
            cursor: pointer;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.5s ease;
        }

        .travel-card.visible { opacity: 1; transform: translateY(0); }

        .travel-card:hover { border-color: var(--red-dim); }

        .travel-thumb {
            width: 100%;
            aspect-ratio: 16/10;
            background: var(--steel);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .travel-thumb::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to bottom, transparent 40%, rgba(6,6,10,0.9) 100%);
            z-index: 1;
        }

        .travel-thumb-icon {
            font-size: 2.5rem;
            opacity: 0.15;
            z-index: 0;
            transition: transform 0.4s ease, opacity 0.4s ease;
        }

        .travel-card:hover .travel-thumb-icon { transform: scale(1.1); opacity: 0.25; }

        .travel-thumb-bg {
            position: absolute;
            inset: 0;
            background: var(--steel);
            transition: transform 0.5s ease;
        }

        .travel-card:hover .travel-thumb-bg { transform: scale(1.05); }

        .travel-info {
            padding: 1.25rem 1.5rem;
            background: var(--bg3);
        }

        .travel-location {
            font-family: 'Orbitron', monospace;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--text);
            margin-bottom: 0.3rem;
        }

        .travel-status {
            font-family: 'Orbitron', monospace;
            font-size: 0.55rem;
            letter-spacing: 0.25em;
            text-transform: uppercase;
            color: var(--red);
        }

        .travel-status.live {
            color: #4caf84;
        }

        .travel-card[data-url] {
            cursor: pointer;
        }

        .travel-play {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 48px; height: 48px;
            border: 1px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2;
            transition: all 0.3s ease;
            color: rgba(255,255,255,0.6);
            font-size: 1rem;
        }

        .travel-card:hover .travel-play {
            border-color: var(--red);
            color: var(--red);
            box-shadow: 0 0 20px var(--glow);
        }

        /* =============================================
           FAMILY VIDEOS
        ============================================= */
        #family {
            background: var(--bg);
        }

        /* =============================================
           BOOKS
        ============================================= */
        #books {
            background: var(--bg2);
        }

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

        .book-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 1.5rem;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .book-card.visible { opacity: 1; transform: translateY(0); }

        .book-cover {
            width: 100%;
            max-width: 220px;
            aspect-ratio: 2/3;
            background: var(--bg3);
            border: 1px solid var(--line);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 0.75rem;
            position: relative;
            overflow: hidden;
            transition: transform 0.4s ease, box-shadow 0.4s ease;
        }

        .book-card:hover .book-cover {
            transform: translateY(-8px) rotate(-1deg);
            box-shadow: 10px 20px 40px rgba(0,0,0,0.5), 0 0 20px var(--glow-soft);
        }

        .book-cover::before {
            content: '';
            position: absolute;
            top: 0; left: 0;
            width: 8px;
            height: 100%;
            background: var(--red);
            opacity: 0.7;
        }

        .book-cover-inner {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
        }

        .book-cover-label {
            font-family: 'Orbitron', monospace;
            font-size: 0.5rem;
            letter-spacing: 0.3em;
            text-transform: uppercase;
            color: var(--muted);
        }

        .book-cover-title {
            font-family: 'Orbitron', monospace;
            font-size: 0.85rem;
            font-weight: 900;
            color: var(--text);
            line-height: 1.3;
        }

        .book-cover-author {
            font-family: 'Rajdhani', sans-serif;
            font-size: 0.8rem;
            color: var(--red);
            letter-spacing: 0.1em;
        }

        .book-title {
            font-family: 'Orbitron', monospace;
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--text);
            line-height: 1.4;
        }

        .book-status {
            font-family: 'Orbitron', monospace;
            font-size: 0.55rem;
            letter-spacing: 0.3em;
            text-transform: uppercase;
            color: var(--red);
        }

        .book-desc {
            font-size: 0.875rem;
            color: var(--muted);
            line-height: 1.7;
        }

        /* =============================================
           CONTACT
        ============================================= */
        #contact {
            background: var(--bg2);
        }

        .contact-wrap {
            display: grid;
            grid-template-columns: 1fr 1.5fr;
            gap: 6rem;
            align-items: start;
        }

        .contact-info {
            padding-top: 1rem;
        }

        .contact-method {
            margin-bottom: 2rem;
        }

        .contact-method-label {
            font-family: 'Orbitron', monospace;
            font-size: 0.55rem;
            letter-spacing: 0.3em;
            text-transform: uppercase;
            color: var(--red);
            margin-bottom: 0.4rem;
        }

        .contact-method-value {
            font-family: 'Rajdhani', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            color: var(--muted);
            letter-spacing: 0.05em;
        }

        .contact-method-value a {
            color: inherit;
            text-decoration: none;
            transition: color 0.3s;
        }

        .contact-method-value a:hover { color: var(--text); }

        .social-row {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
        }

        .social-link {
            width: 40px; height: 40px;
            border: 1px solid var(--subtle);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--muted);
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s;
        }

        .social-link:hover {
            border-color: var(--red);
            color: var(--red);
        }

        /* Form */
        .form-area {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .form-input {
            width: 100%;
            background: var(--bg3);
            border: 1px solid var(--subtle);
            color: var(--text);
            font-family: 'Rajdhani', sans-serif;
            font-size: 0.9rem;
            font-weight: 400;
            padding: 1rem 1.25rem;
            outline: none;
            transition: border-color 0.3s, box-shadow 0.3s;
            letter-spacing: 0.03em;
        }

        .form-input::placeholder { color: var(--muted); }

        .form-input:focus {
            border-color: var(--red-dim);
            box-shadow: 0 0 0 1px var(--red-dim) inset;
        }

        textarea.form-input {
            min-height: 140px;
            resize: vertical;
        }

        .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

        #FormButton {
            align-self: flex-start;
            margin-top: 0.5rem;
            cursor: pointer;
            font-size: 0.65rem;
        }

        .submitting {
            display: none;
            font-family: 'Orbitron', monospace;
            font-size: 0.6rem;
            letter-spacing: 0.3em;
            color: var(--muted);
            text-transform: uppercase;
            padding: 1rem 0;
        }

        .form-input.error {
            border-color: var(--red);
            box-shadow: 0 0 0 1px var(--red) inset;
        }

        .form-error {
            font-family: 'Rajdhani', sans-serif;
            font-size: 0.85rem;
            color: var(--red-hot);
            letter-spacing: 0.03em;
        }

        .form-error a { color: var(--text); text-decoration: underline; }

        .form-success {
            padding: 3rem 1rem;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }

        .form-success-icon {
            font-size: 2.2rem;
            color: var(--red);
        }

        .form-success-msg {
            font-family: 'Rajdhani', sans-serif;
            font-size: 1.1rem;
            color: var(--muted);
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        /* =============================================
           FOOTER
        ============================================= */
        #footer {
            background: var(--bg);
            border-top: 1px solid var(--line);
            padding: 3rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .footer-logo {
            font-family: 'Orbitron', monospace;
            font-size: 0.9rem;
            font-weight: 900;
            letter-spacing: 0.2em;
            color: var(--text);
        }

        .footer-logo span { color: var(--red); }

        .footer-copy {
            font-family: 'Rajdhani', sans-serif;
            font-size: 0.8rem;
            color: var(--muted);
            letter-spacing: 0.05em;
        }

        /* =============================================
           ANIMATIONS & KEYFRAMES
        ============================================= */
        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(25px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to   { opacity: 1; }
        }

        @keyframes scrollPulse {
            0%   { opacity: 1; transform: scaleY(1); transform-origin: top; }
            50%  { opacity: 0.3; }
            100% { opacity: 1; }
        }

        @keyframes shimmer {
            from { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            to   { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }

        @keyframes pulse {
            0%, 100% { box-shadow: 0 0 10px var(--glow); }
            50% { box-shadow: 0 0 25px var(--glow), 0 0 5px var(--red); }
        }

        /* Floating particles */
        .float-particle {
            position: absolute;
            width: 2px; height: 2px;
            background: var(--red);
            border-radius: 50%;
            animation: floatUp linear infinite;
            opacity: 0;
        }

        @keyframes floatUp {
            0%   { opacity: 0; transform: translateY(0) translateX(0); }
            10%  { opacity: 0.6; }
            90%  { opacity: 0.3; }
            100% { opacity: 0; transform: translateY(-80px) translateX(20px); }
        }

        /* =============================================
           REVEAL ON SCROLL
        ============================================= */
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.7s ease, transform 0.7s ease;
        }

        .reveal.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* =============================================
           DECORATIVE ELEMENTS
        ============================================= */
        .red-line-h {
            width: 60px; height: 2px;
            background: var(--red);
            margin-bottom: 1rem;
        }

        .section-num {
            position: absolute;
            top: 4rem; right: 3rem;
            font-family: 'Orbitron', monospace;
            font-size: 5rem;
            font-weight: 900;
            color: var(--line);
            line-height: 1;
            pointer-events: none;
            user-select: none;
        }

        /* =============================================
           RESPONSIVE
        ============================================= */
        @media (max-width: 1024px) {
            .about-grid { grid-template-columns: 1fr; gap: 3rem; }
            .about-image-wrap { max-width: 400px; }
            .projects-grid { grid-template-columns: repeat(2, 1fr); }
            .travel-grid { grid-template-columns: repeat(2, 1fr); }
            .books-grid { grid-template-columns: repeat(2, 1fr); }
            .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
        }

        @media (max-width: 768px) {
            .section { padding: 5rem 1.5rem; }
            #nav { padding: 1rem 1.5rem; }
            #nav.scrolled { padding: 0.75rem 1.5rem; }
            .nav-toggle { display: flex; }
            .nav-links {
                display: flex;
                flex-direction: column;
                position: absolute;
                top: 100%; left: 0; right: 0;
                background: rgba(6,6,10,0.97);
                backdrop-filter: blur(20px) saturate(1.5);
                -webkit-backdrop-filter: blur(20px) saturate(1.5);
                padding: 2rem 2rem 2.5rem;
                gap: 0;
                border-bottom: 1px solid var(--line);
                box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 1px 0 var(--red) inset;
                /* Hidden state */
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
                transform: translateY(-12px);
                filter: blur(6px);
                transition: opacity 0.35s ease, visibility 0.35s, transform 0.35s cubic-bezier(0.23,1,0.32,1), filter 0.35s ease;
            }
            .nav-links li {
                opacity: 0;
                transform: translateX(-20px);
                filter: blur(3px);
                transition: opacity 0.0s, transform 0.0s, filter 0.0s;
            }
            .nav-links.open {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
                transform: translateY(0);
                filter: blur(0);
            }
            .nav-links.open li {
                opacity: 1;
                transform: translateX(0);
                filter: blur(0);
                transition: opacity 0.4s cubic-bezier(0.23,1,0.32,1),
                            transform 0.5s cubic-bezier(0.34,1.56,0.64,1),
                            filter 0.4s ease;
            }
            .nav-links.open li:nth-child(1) { transition-delay: 0.06s; border-top: 1px solid var(--line); }
            .nav-links.open li:nth-child(2) { transition-delay: 0.12s; }
            .nav-links.open li:nth-child(3) { transition-delay: 0.18s; }
            .nav-links.open li:nth-child(4) { transition-delay: 0.24s; }
            .nav-links.open li:nth-child(5) { transition-delay: 0.30s; }
            .nav-links.open li:nth-child(6) { transition-delay: 0.36s; }
            .nav-links.open li:nth-child(7) { transition-delay: 0.42s; }
            .nav-links a {
                display: block;
                padding: 1rem 0;
                border-bottom: 1px solid var(--line);
                font-size: 1.1rem;
                letter-spacing: 0.2em;
            }
            .nav-links a:hover { color: var(--red); }
            .nav-links a::after { display: none; }
            .projects-grid { grid-template-columns: 1fr; }
            .travel-grid { grid-template-columns: 1fr; }
            .books-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
            .form-row { grid-template-columns: 1fr; }
            #footer { flex-direction: column; text-align: center; }
            .section-num { display: none; }
            .past-grid { grid-template-columns: repeat(3, 1fr); }
        }

        /* =============================================
           VIDEO MODAL
        ============================================= */
        @keyframes modalIn {
            0%   { opacity: 0; transform: scale(0.82); filter: blur(10px); }
            55%  { opacity: 1; transform: scale(1.04); filter: blur(0); }
            75%  { transform: scale(0.98); }
            90%  { transform: scale(1.01); }
            100% { opacity: 1; transform: scale(1);    filter: blur(0); }
        }

        @keyframes modalOut {
            0%   { opacity: 1; transform: scale(1);    filter: blur(0); }
            100% { opacity: 0; transform: scale(0.88); filter: blur(8px); }
        }

        @keyframes backdropIn {
            from { opacity: 0; }
            to   { opacity: 1; }
        }

        @keyframes backdropOut {
            from { opacity: 1; }
            to   { opacity: 0; }
        }

        .video-modal {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 9999;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
        }

        .video-modal.open    { display: flex; }
        .video-modal.closing { display: flex; }

        .video-modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(6, 6, 10, 0.94);
            backdrop-filter: blur(4px);
        }

        .video-modal.open    .video-modal-backdrop { animation: backdropIn  0.28s ease forwards; }
        .video-modal.closing .video-modal-backdrop { animation: backdropOut 0.28s ease forwards; }

        .video-modal-inner {
            position: relative;
            z-index: 1;
            width: min(1100px, 100%);
            background: var(--bg2);
            border-radius: 4px;
            overflow: hidden;
            border: 1px solid var(--line);
            border-top: 2px solid var(--red);
            box-shadow: 0 40px 100px rgba(0, 0, 0, 0.85), 0 0 80px var(--glow-soft);
        }

        .video-modal.open    .video-modal-inner { animation: modalIn  0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
        .video-modal.closing .video-modal-inner { animation: modalOut 0.22s ease-in              forwards; }

        .video-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 11px 16px;
            background: var(--bg);
            border-bottom: 1px solid var(--line);
        }

        .video-modal-title {
            font-family: 'Orbitron', monospace;
            font-size: 0.55rem;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--red);
        }

        .video-modal-close {
            background: transparent;
            border: 1px solid var(--line);
            color: var(--muted);
            font-size: 0.75rem;
            width: 28px;
            height: 28px;
            border-radius: 2px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
            flex-shrink: 0;
            font-family: inherit;
        }

        .video-modal-close:hover {
            background: var(--red);
            border-color: var(--red);
            color: #fff;
            box-shadow: 0 0 12px var(--glow);
        }

        #videoModalPlayer {
            display: block;
            width: 100%;
            aspect-ratio: 16 / 9;
            background: #000;
        }

        /* ?? Book Pre-Order Modal */
        .book-modal {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 9999;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
        }
        .book-modal.open    { display: flex; }
        .book-modal.closing { display: flex; }
        .book-modal .book-modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(6,6,10,0.94);
            backdrop-filter: blur(4px);
        }
        .book-modal.open    .book-modal-backdrop { animation: backdropIn  0.28s ease forwards; }
        .book-modal.closing .book-modal-backdrop { animation: backdropOut 0.28s ease forwards; }
        .book-modal-inner {
            position: relative;
            z-index: 1;
            width: min(680px, 100%);
            background: var(--bg2);
            border: 1px solid var(--line);
            border-top: 2px solid var(--red);
            border-radius: 4px;
            overflow: hidden;
            box-shadow: 0 40px 100px rgba(0,0,0,0.85), 0 0 80px var(--glow-soft);
            display: grid;
            grid-template-columns: 200px 1fr;
        }
        .book-modal.open    .book-modal-inner { animation: modalIn  0.42s cubic-bezier(0.22,1,0.36,1) forwards; }
        .book-modal.closing .book-modal-inner { animation: modalOut 0.22s ease-in forwards; }
        @media (max-width: 580px) { .book-modal-inner { grid-template-columns: 1fr; } }
        .book-modal-cover-wrap {
            background: var(--bg);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem 1.5rem;
        }
        .book-modal-cover-wrap img {
            width: 100%;
            display: block;
            box-shadow: 8px 16px 40px rgba(0,0,0,0.8);
        }
        .book-modal-body {
            padding: 1.75rem;
            display: flex;
            flex-direction: column;
            gap: 1.1rem;
            border-left: 1px solid var(--line);
        }
        .book-modal-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 0.75rem;
        }
        .book-modal-label {
            font-family: 'Orbitron', monospace;
            font-size: 0.5rem;
            letter-spacing: 0.25em;
            text-transform: uppercase;
            color: var(--red);
        }
        .book-modal-name {
            font-family: 'Orbitron', monospace;
            font-size: 0.95rem;
            font-weight: 900;
            color: var(--text);
            line-height: 1.35;
            margin-top: 0.3rem;
        }
        .book-modal-desc {
            font-family: 'Rajdhani', sans-serif;
            font-size: 0.9rem;
            color: var(--muted);
            line-height: 1.65;
            font-style: italic;
        }
        .book-modal-close {
            background: transparent;
            border: 1px solid var(--line);
            color: var(--muted);
            font-size: 0.75rem;
            width: 28px; height: 28px;
            border-radius: 2px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s, border-color 0.2s, color 0.2s;
            flex-shrink: 0;
        }
        .book-modal-close:hover { background: var(--red); border-color: var(--red); color: #fff; }
        .book-modal-format-label {
            font-family: 'Orbitron', monospace;
            font-size: 0.48rem;
            letter-spacing: 0.25em;
            text-transform: uppercase;
            color: var(--muted);
        }
        .book-preorder-options { display: flex; flex-direction: column; gap: 0.6rem; }
        .book-preorder-btn {
            display: block;
            padding: 0.8rem 1.25rem;
            font-family: 'Orbitron', monospace;
            font-size: 0.55rem;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            text-decoration: none;
            text-align: center;
            border: 1px solid var(--red-dim);
            color: var(--red);
            background: transparent;
            cursor: pointer;
            transition: background 0.2s, color 0.2s, box-shadow 0.2s;
        }
        .book-preorder-btn:hover {
            background: var(--red);
            border-color: var(--red);
            color: #fff;
            box-shadow: 0 0 20px var(--glow);
        }
        .book-preorder-btn.secondary { border-color: var(--subtle); color: var(--muted); }
        .book-preorder-btn.secondary:hover { border-color: var(--red); background: var(--red); color: #fff; }
        /* Book card trigger */
        .book-preorder-trigger {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            margin-top: 0.75rem;
            padding: 0.6rem 1.1rem;
            font-family: 'Orbitron', monospace;
            font-size: 0.52rem;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            border: 1px solid var(--red-dim);
            color: var(--red);
            background: transparent;
            cursor: pointer;
            transition: background 0.2s, color 0.2s, box-shadow 0.2s;
        }
        .book-preorder-trigger:hover {
            background: var(--red);
            border-color: var(--red);
            color: #fff;
            box-shadow: 0 0 16px var(--glow);
        }

        /* Share button */
        .video-share-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            margin-top: 0.65rem;
            padding: 0.28rem 0.65rem;
            background: #1877F2;
            border: none;
            border-radius: 2px;
            color: #fff;
            font-family: 'Orbitron', monospace;
            font-size: 0.42rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            cursor: pointer;
            transition: background 0.2s, box-shadow 0.2s;
        }

        .video-share-btn:hover {
            background: #1565d8;
            box-shadow: 0 0 10px rgba(24, 119, 242, 0.45);
        }

        /* Meme Warfare talk — inline full-width video section */
        .talk-video-wrap {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9;
            background: #000;
            border-radius: 4px;
            overflow: hidden;
            margin-bottom: 3rem;
            border: 1px solid var(--subtle);
        }
        .talk-video-wrap video {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: contain;
        }
        .talk-body {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            max-width: 1100px;
        }
        .talk-body p {
            font-family: 'Rajdhani', sans-serif;
            font-size: 1.08rem;
            color: var(--muted);
            line-height: 1.8;
        }
        .talk-body p + p { margin-top: 1.2rem; }
        .talk-meta {
            display: flex;
            flex-direction: column;
            gap: 1.2rem;
        }
        .talk-meta-item {
            border-left: 2px solid var(--red);
            padding-left: 1rem;
        }
        .talk-meta-label {
            font-family: 'Orbitron', monospace;
            font-size: 0.55rem;
            letter-spacing: 0.3em;
            text-transform: uppercase;
            color: var(--red);
            margin-bottom: 0.3rem;
        }
        .talk-meta-value {
            font-family: 'Rajdhani', sans-serif;
            font-size: 1rem;
            color: var(--text);
            font-weight: 500;
            line-height: 1.5;
        }
        @media (max-width: 768px) {
            .talk-body { grid-template-columns: 1fr; gap: 2rem; }
        }
    
#jt-content .slg { margin-top: 5rem; }
#jt-content section[id] { scroll-margin-top: 4rem; }

}
.slg.slg-embed :is(.slg-grid, .slg-single) .slg-open::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 40%, rgba(6,6,10,.9));
}
.slg.slg-embed :is(.slg-grid, .slg-single) .slg-badge {
    position: absolute;
    inset: 50% auto auto 50%;
    margin: 0;
    line-height: 1;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    background: rgba(6,6,10,.15);
    color: #fff;
    font-size: 16px;
}
.slg.slg-embed :is(.slg-grid, .slg-single) figcaption {
    padding: 1.25rem 1.5rem;
    text-align: left;
}
.slg.slg-embed :is(.slg-grid, .slg-single) figcaption :is(h2, h3) {
    margin: 0;
    color: var(--text, #ededf5);
    font: 700 .8rem/1.4 Orbitron, monospace;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.slg.slg-embed :is(.slg-tile, .slg-single):has(.slg-badge) > figcaption::after {
    content: "Watch now";
    display: block;
    margin-top: .5rem;
    color: #4caf84;
    font: 500 .55rem/1.5 Orbitron, monospace;
    letter-spacing: .25em;
    text-transform: uppercase;
}
.slg.slg-embed :is(.slg-grid > .slg-tile, .slg-single):is(:hover, :focus-within) {
    border-color: var(--red-dim, #7a0000);
}
.slg.slg-embed :is(.slg-grid, .slg-single) .slg-open:focus-visible {
    outline: 2px solid white;
    outline-offset: -3px;
}
@media (max-width: 1024px) {
    .slg.slg-embed .slg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .slg.slg-embed .slg-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Embedded gallery cards — Jeremy Tellier */
#jt-content .slg-embed .slg-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
}

#jt-content .slg-embed .slg-grid > figure,
#jt-content .slg-embed figure.slg-single {
    margin: 0;
    padding: 0;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    background: #11111d !important;
    border: 1px solid #252536 !important;
    border-radius: 0 !important;
}

#jt-content .slg-embed figure > button.slg-open {
    display: block;
    position: relative;
    width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden;
    border-radius: 0 !important;
}

#jt-content .slg-embed figure > .slg-open img,
#jt-content .slg-embed figure > .slg-open video {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    border-radius: 0 !important;
}

#jt-content .slg-embed figure > figcaption {
    flex: 1;
    margin: 0;
    padding: 1.25rem 1.5rem;
    background: #11111d !important;
}

#jt-content .slg-embed figure:hover,
#jt-content .slg-embed figure:focus-within {
    border-color: #7a0000 !important;
}

@media (max-width: 1024px) {
    #jt-content .slg-embed .slg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    #jt-content .slg-embed .slg-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}
a.btn[href^="/gallery/"] {
    display: inline-flex;
    margin-top: 1.5rem;
}
a.btn[href^="/gallery/"] {
    display: inline-flex;
    margin-block: 1.5rem;
}
