/* Base Reset & Variables */
:root {
    --bg-color: #0b0b0b;
    --text-color: #f1f1f1;
    --accent: #ff3333; /* Subtle accent for tiny details */
    --border-color: rgba(255, 255, 255, 0.15);
}

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

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

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

body.loading { overflow: hidden; }

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

/* Subtle color hover for links */
a.hover-target:hover, .list-item.hover-target:hover h3 {
    color: var(--accent);
}

/* Custom Cursor */
.cursor {
    display: none;
    width: 8px; height: 8px;
    background: var(--text-color);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 999999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
    will-change: transform;
}

.cursor-follower {
    display: none;
    width: 40px; height: 40px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 999998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
    mix-blend-mode: difference;
    will-change: transform;
}

.cursor.hovering { width: 0; height: 0; }
.cursor-follower.hovering {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.1);
    border-color: transparent;
}

/* Preloader */
.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-color); z-index: 10000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}
.preloader.hidden { transform: translateY(-100%); }
.preloader-text { font-size: 4rem; font-weight: 800; margin-bottom: 2rem; letter-spacing: -2px; }
.loading-bar-container { width: 200px; height: 2px; background: rgba(255,255,255,0.2); overflow: hidden; }
.loading-bar { width: 0%; height: 100%; background: var(--text-color); transition: width 0.1s ease; }

/* Page Transition Overlay */
.page-transition {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--bg-color); z-index: 9980;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}
.page-transition.active { transform: translateY(0); }

/* Typography & Utilities */
.huge-text {
    font-size: clamp(6rem, 16vw, 18rem);
    font-weight: 900; line-height: 0.8; letter-spacing: -0.05em; text-transform: uppercase;
}
.serif-italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}
.designer-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.indent { margin-left: 15vw; }
.section-title { font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-4 { margin-top: 4rem; } .mb-2 { margin-bottom: 2rem; }
.meta { opacity: 0.7; font-size: 1.1rem; }

/* Grid Layouts */
.container { max-width: 1400px; margin: 0 auto; padding: 0 5vw; }
.section { padding: 8rem 0; min-height: 80vh; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
@media(max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* Nav */
.nav {
    position: fixed; top: 0; width: 100%; padding: 1.5rem 5vw;
    display: flex; justify-content: flex-end; align-items: center;
    z-index: 100;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-links { 
    display: flex; gap: 2rem; font-weight: 500; font-size: 0.85rem; text-transform: uppercase;
}
.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
    text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* Hero */
.hero { height: 100vh; display: flex; align-items: center; padding-top: 10vh; }
.hero-subtitle p { font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: 2px; }

/* Lists & Projects */
.list-item {
    padding: 2rem 0; border-bottom: 1px solid var(--border-color);
    transition: padding-left 0.3s ease;
}
.list-item:hover { padding-left: 2rem; border-bottom-color: #fff; }
.list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.list-header h3 { font-size: 1.5rem; font-weight: 600; transition: color 0.3s; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }
.project-card { border-top: 2px solid #fff; padding-top: 1.5rem; }
.project-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.project-card p { font-size: 1rem; opacity: 0.8; }

.clean-list { list-style: none; }
.clean-list li { font-size: 1.15rem; font-weight: 500; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.clean-list li a:hover { color: var(--accent); }
.skill-category-block .clean-list li { font-size: 0.9rem; padding: 0.6rem 0; }

/* Hero Section & Collage Effect */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Fixed to viewport height */
    display: flex;
    align-items: center;
    overflow: hidden; /* Prevent extending layout */
}
.hero-content-wrapper {
    position: relative;
    z-index: 1;
    text-align: left;
    width: 100%;
    pointer-events: none; /* so hovering over text still triggers hero-section hover */
}
.hero-content-wrapper * {
    pointer-events: auto; /* re-enable for links if any */
    text-shadow: 0 4px 20px rgba(0,0,0,0.8); /* ensure readability */
}

.hero-collage {
    position: absolute;
    top: 0; left: 0; width: 100%;
    column-count: 5;
    column-gap: 0;
    background: black;
    opacity: 1; /* Always opaque, mask hides it */
    pointer-events: none;
    perspective: 1200px; /* For 3D flip effect */
    
    --clip-size: 200px;
    clip-path: inset(
        calc(var(--mouse-y, -1000px) - var(--clip-size)) 
        calc(100% - var(--mouse-x, -1000px) - var(--clip-size)) 
        calc(100% - var(--mouse-y, -1000px) - var(--clip-size)) 
        calc(var(--mouse-x, -1000px) - var(--clip-size))
    );
    transition: clip-path 0.1s ease-out;
    will-change: clip-path;
}
.hero-collage .hero-img-wrapper {
    break-inside: avoid;
    margin: 0; padding: 0;
    display: block;
}
.hero-collage img {
    width: 100%; display: block;
    transform-origin: center top;
    transform: rotateX(90deg) scale(0.8);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    will-change: transform, opacity;
}
.hero-collage img.revealed {
    transform: rotateX(0deg) scale(1);
    opacity: 1;
}

/* Interactive Collage Section */
.interactive-collage-section {
    position: relative;
    width: 100%;
    background: black;
}
.interactive-collage-grid {
    width: 100%;
    column-count: 5;
    column-gap: 0;
}
.interactive-collage-grid .img-wrapper {
    position: relative;
    width: 100%;
    break-inside: avoid;
    margin: 0; padding: 0;
    overflow: hidden;
    display: block;
}
.interactive-collage-grid .img-wrapper img, .interactive-collage-grid .img-wrapper video {
    width: 100%; display: block; 
    will-change: transform, opacity;
}
.interactive-collage-grid .img-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.9) 3px, transparent 3px, transparent 6px);
    background-size: 6px 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    will-change: opacity, background-position;
}
.interactive-collage-grid .img-wrapper.shutter-active::after {
    animation: film-shutter-scroll 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.interactive-collage-grid .img-wrapper.shutter-active img {
    animation: image-swap-fade 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes film-shutter-scroll {
    0% { opacity: 0; background-position: 0 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; background-position: 120px 0; }
}

@keyframes image-swap-fade {
    0% { opacity: 1; transform: scale(1); }
    30% { opacity: 0; transform: scale(0.95); }
    70% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* Images Placeholders */
.img-box {
    aspect-ratio: 1; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; opacity: 0.5; border: 1px dashed var(--border-color); transition: opacity 0.3s; margin-top: 1rem;
}
.img-box:hover { opacity: 1; border-color: #fff; }

/* Accordion Hover Layout (Wibify Style) */
.accordion-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
}
.accordion-item {
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    transition: padding 0.3s ease;
}
.accordion-header {
    display: flex;
    flex-direction: column;
    pointer-events: none; /* Let the parent handle hover */
}
.accordion-type {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px;
    opacity: 0.5; margin-bottom: 0.5rem;
}
.accordion-title {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 800; line-height: 1; margin: 0;
    transition: color 0.3s;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.5s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    padding-top: 0;
}
.accordion-item.hover-target:hover .accordion-content {
    max-height: 800px;
    opacity: 1;
    padding-top: 3rem;
}
.accordion-item.hover-target:hover .accordion-title {
    color: var(--accent);
}
.accordion-desc p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.project-about h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}
.project-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
.meta-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.meta-col p, .meta-col ul {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.6;
}
.meta-col ul li {
    margin-bottom: 0.3rem;
}
.accordion-img-wrap {
    width: 100%; aspect-ratio: 16/9;
    background: rgba(255,255,255,0.03); border: 1px dashed var(--border-color);
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.accordion-img-wrap img {
    width: 100%; height: 100%; object-fit: cover; object-position: top center;
    filter: grayscale(100%); transition: filter 0.5s, transform 0.8s;
}
.accordion-item.hover-target:hover .accordion-img-wrap img {
    filter: grayscale(0%); transform: scale(1.05);
}
@media(max-width: 600px) {
    .hero-img-wrapper { max-width: 150px; }
}

/* Bullet Points in Practical */
.project-points {
    font-size: 1.15rem;
    font-weight: 300;
    opacity: 0.9;
    margin-left: 1.5rem;
    list-style-type: disc;
}
.project-points li {
    font-size: 1.15rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.8rem;
}
.project-points li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
@media(max-width: 900px) {
    .accordion-content { grid-template-columns: 1fr; gap: 2rem; }
    .accordion-item.hover-target:hover .accordion-content { max-height: 1200px; }
}

/* About Page Tabs */
.about-tabs {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
}
@media(max-width: 768px) {
    .about-tabs { flex-direction: column; align-items: center; gap: 1.5rem; }
}
.tab-btn {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-color);
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.3s, color 0.3s;
}
.tab-btn:hover, .tab-btn.active {
    opacity: 1;
    color: var(--accent);
}
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll Animations */
.reveal-mask { overflow: hidden; }
.reveal-mask > * { transform: translateY(100%); transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1); will-change: transform; }
.reveal-mask.active > * { transform: translateY(0); }

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s cubic-bezier(0.165, 0.84, 0.44, 1); will-change: opacity, transform; }
.fade-up.active { opacity: 1; transform: translateY(0); }

/* Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    display: flex;
}
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 10%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}
.marquee-content {
    display: flex;
    gap: 3rem;
    animation: marquee 60s linear infinite; /* Slowed down for many icons */
    width: max-content; /* Allows it to grow to fit all items */
}
.marquee-content i {
    font-size: 3.5rem;
    color: var(--text-color);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.marquee-content i:hover {
    opacity: 1;
}

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

/* Custom Tooltip */
.tech-tooltip {
    position: fixed;
    background: #ff3333; /* Red theme color */
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 100000;
    white-space: nowrap;
    transform: translate(0, 0);
}
.tech-tooltip.visible {
    opacity: 1;
}

/* Additional Tech Logos (Images and SVGs) */
.marquee-content .tech-img,
.marquee-content .tech-svg {
    height: 3.5rem;
    width: auto; /* Fixed compression */
    object-fit: contain;
    margin: 0 2rem;
    transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    opacity: 0.8;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.marquee-content .tech-img:hover,
.marquee-content .tech-svg:hover {
    transform: scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9));
}

.marquee-content .tech-img.invert-dark {
    filter: invert(1) brightness(2);
}

/* Inline Tech SVGs */
.marquee-content .tech-inline-svg {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0;
    fill: var(--text-color);
    color: var(--text-color);
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease, fill 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}

.marquee-content .tech-inline-svg:hover {
    opacity: 1;
    transform: scale(1.1);
}
.marquee-content .tech-inline-svg path {
    fill: currentColor;
}
.marquee-content .tech-inline-svg[stroke] path {
    fill: none;
    stroke: currentColor;
}


.marquee-content .tech-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    line-height: 3.5rem;
    margin: 0;
    white-space: nowrap;
}
.marquee-content .tech-text:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Instagram/YouTube Grid Collages */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 0px;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
}
.insta-grid-item {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    transition: transform 0.3s ease;
}
.insta-grid-item:hover {
    transform: scale(1.05);
}



.nexus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    padding: 0;
    background: transparent;
}
.nexus-grid img {
    border-radius: 2px;
}

.nexus-slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: transparent;
}
.nexus-slideshow .slide {
    width: calc(100% - 100px);
    height: 100%;
    position: absolute;
    top: 0; left: 50px;
    display: none;
}
.nexus-slideshow .slide:first-child {
    display: block;
}
.nexus-slideshow .slide img {
    width: 100%;
    height: 100%;
    object-fit: contain !important; 
    filter: none !important;
    transform: none !important;
    border-radius: 4px;
}

.nexus-slideshow .prev-btn, .nexus-slideshow .next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 12px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    border-radius: 0 4px 4px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.4);
    z-index: 10;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    pointer-events: none;
}
.nexus-slideshow:hover .prev-btn,
.nexus-slideshow:hover .next-btn {
    opacity: 1;
    pointer-events: auto;
}
.nexus-slideshow .prev-btn {
    left: 0;
}
.nexus-slideshow .next-btn {
    right: 0;
    border-radius: 4px 0 0 4px;
}
.nexus-slideshow .prev-btn:hover, .nexus-slideshow .next-btn:hover {
    background-color: rgba(0,0,0,0.8);
}

.nexus-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.nexus-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.nexus-dot.active {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

/* ==========================================================================
   Pages Tab: Quadrant Grid
   ========================================================================== */
.pages-quadrant-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .pages-quadrant-grid {
        grid-template-columns: 1fr;
    }
    .quad-wrapper {
        border-right: none !important;
    }
    .quad-wrapper:nth-child(n+3) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    .quad-wrapper:last-child {
        border-bottom: none !important;
    }
}

.quad-wrapper {
    position: relative;
    padding: 3rem 0; /* Increased padding slightly for breathing room around lines */
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Light grey horizontal line */
    border-right: 1px solid rgba(255, 255, 255, 0.1); /* Light grey vertical line */
}

/* Remove right border for 2nd column */
.quad-wrapper:nth-child(even) {
    border-right: none;
}

/* Remove bottom border for 2nd row */
.quad-wrapper:nth-child(n+3) {
    border-bottom: none;
}

.quad-trigger {
    font-size: clamp(1.8rem, 4vw, 2.8rem); /* Increased font size for unhovered names */
    color: var(--text);
    margin: 0;
    transition: color 0.3s ease;
    cursor: default;
    display: inline-block;
    opacity: 0.8;
}

/* Removed active color change to prevent disappearing text */

.quad-dropdown-space {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
}

.quad-wrapper.expanded .quad-dropdown-space {
    max-height: 600px; /* Expanded space */
    opacity: 1;
}

.quad-trigger {
    cursor: pointer; /* indicate it's clickable */
}

.pages-quad-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: #111;
    border: 4px solid #888888;
    border-radius: 22%; /* Instagram squircle corners */
    aspect-ratio: 1 / 1; /* Perfect square */
    width: 380px; 
    max-width: 90vw;
    margin: 1.5rem auto 0 auto; /* Centers the box and gives space above */
    
    position: relative;
    overflow: hidden;
    padding: 1.5rem; 
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pages-quad-card:hover {
    transform: translateY(-5px);
    border-color: #ff3333; /* Theme red border */
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.6); /* Theme red glow */
}

.quad-text {
    position: relative;
    z-index: 2;
    width: 100%;
}

.quad-title {
    color: var(--text); /* Original text color until hover */
    transition: color 0.3s;
    /* Other sizing is defined below */
}

.pages-quad-card:hover .quad-title {
    color: var(--accent); /* Red on hover */
}

.quad-img-reveal {
    width: 30%; /* Further reduced size */
    margin: 0 auto;
    align-self: center;
    border-radius: 8px;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.5s ease, margin-top 0.5s ease;
}

.pages-quad-card:hover .quad-img-reveal {
    max-height: 800px;
    opacity: 1;
    margin-top: 1.5rem;
}

.quad-img-reveal img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.8s;
}

.pages-quad-card:hover .quad-img-reveal img {
    transform: scale(1.02);
}

.quad-type {
    display: block;
    font-size: 0.65rem; /* Reduced from 0.8rem */
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 0.3rem;
}

.quad-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem); /* Reduced to fit long instagram handles */
    font-weight: 800;
    margin: 0.3rem 0 0.8rem 0;
    line-height: 1.1;
    word-break: break-word; /* Ensure long handles wrap if needed */
}

.quad-desc {
    font-size: 0.85rem; /* Reduced from 0.95rem */
    opacity: 0.8;
    line-height: 1.4;
    margin: 0;
}

/* YouTube Hover Dropdown Box */
.youtube-rect-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: #111;
    border: 4px solid #888888;
    border-radius: 40px; /* YouTube logo curved shape */
    aspect-ratio: 16 / 9; /* Classic horizontal video shape */
    width: 600px; /* Wider than the instagram boxes */
    max-width: 90vw;
    margin: 1.5rem auto 0 auto;
    
    position: relative;
    overflow: hidden;
    padding: 2.5rem; 
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.youtube-rect-card:hover {
    transform: translateY(-5px);
    border-color: #ff3333; /* Theme red boundary on hover inside */
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.6); /* Theme red glow */
}

/* Ensure image takes up width appropriately */
.youtube-rect-card .quad-img-reveal img {
    border-radius: 12px;
}

.youtube-rect-card:hover .quad-img-reveal {
    max-height: 800px;
    opacity: 1;
    margin-top: 1.5rem;
}

/* ==========================================================================
   Photographs Tab: Static Photo Grid
   ========================================================================== */
.static-photo-grid {
    column-count: 5;
    column-gap: 0;
    width: 100%;
}

@media (max-width: 900px) {
    .static-photo-grid {
        column-count: 3;
    }
}
@media (max-width: 500px) {
    .static-photo-grid {
        column-count: 2;
    }
}

.static-photo-grid img {
    width: 100%;
    height: auto;
    display: block;
    break-inside: avoid;
    cursor: default;
    border: none;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Artworks Tab: Horizontal Scroll Wall & Lightbox
   ========================================================================== */
.artworks-wall-container {
    position: relative;
    width: 100%;
    height: 75vh;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 0;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(to bottom, transparent calc(100% - 15vh), #555 calc(100% - 15vh), #555 calc(100% - 15vh + 3px), transparent calc(100% - 15vh + 3px)),
        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.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.25'/%3E%3C/svg%3E"),
        linear-gradient(to right, #000 0%, #222 30%, #555 50%, #222 70%, #000 100%),
        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)' opacity='0.08'/%3E%3C/svg%3E");
    background-size: 
        100% 100%,
        auto 15vh,
        100% 15vh,
        auto auto;
    background-position: 
        top left,
        bottom left,
        bottom left,
        top left;
    background-repeat: 
        no-repeat,
        repeat-x,
        no-repeat,
        repeat;
}
.artworks-wall-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.artworks-wall {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    height: 100%;
    gap: 3vw;
    padding: 0 50vw; /* Space to walk before seeing art */
    position: relative;
    z-index: 2;
}

.artwork-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2vh;
    flex-shrink: 0;
}

.floor-circle {
    position: absolute;
    bottom: 6vh; 
    margin-bottom: -15px; /* Aligns center of the ellipse perfectly to the 6vh line */
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 rgba(255,255,255,0);
    z-index: 5;
}

.floor-circle.active {
    border-color: #fff;
    box-shadow: 0 0 30px rgba(255,255,255,1), 0 0 60px rgba(255,255,255,0.8), inset 0 0 20px rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.4);
    transform: translateX(-50%) scale(1.15); /* stronger glow and expand */
}

.framed-artwork {
    background: #fff;
    padding: 1.5rem; /* Reduced white matting */
    border: 3px solid #111; /* Thinner frame border */
    box-shadow: 10px 10px 25px rgba(0,0,0,0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.framed-artwork img {
    height: 30vh;
    max-height: 250px;
    min-height: 120px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Zig-zag pattern relative to wrapper */
.artwork-wrapper:nth-child(odd) .framed-artwork {
    transform: translateY(-2vh);
}
.artwork-wrapper:nth-child(even) .framed-artwork {
    transform: translateY(6vh);
}

.framed-artwork:hover {
    transform: scale(1.05) !important;
    box-shadow: 15px 20px 40px rgba(0,0,0,0.9);
    z-index: 10;
}

/* Character */
.character-sticky-wrap {
    position: sticky;
    left: 50%;
    bottom: 6vh; /* Feet perfectly align with the center of the circle! */
    width: 0;
    height: 0;
    z-index: 10;
}

.walking-character {
    position: absolute;
    bottom: 0;
    left: -40px; /* Half of width */
    width: 80px;
    height: 120px;
    color: var(--text-color);
    transform-origin: center bottom;
    transition: transform 0.2s ease;
}

.walking-character.facing-left {
    transform: scaleX(-1);
}

/* Walking animation */
@keyframes walkLegFront {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(30deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-30deg); }
}
@keyframes walkLegBack {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-30deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(30deg); }
}

.walking-character.walking .leg-front {
    animation: walkLegFront 0.8s infinite linear;
    transform-origin: 50px 70px;
}
.walking-character.walking .leg-back {
    animation: walkLegBack 0.8s infinite linear;
    transform-origin: 50px 70px;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    background: transparent;
    padding: 0;
    box-shadow: none;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    z-index: 10000;
}
.lightbox-close:hover {
    opacity: 0.7;
}

/* ==========================================================================
   Process Page Styles
   ========================================================================== */
.canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}
#process-canvas {
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: canvasFadeIn 3s ease-in-out forwards;
    display: block;
    background: transparent;
}
@keyframes canvasFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.process-hero {
    position: relative;
    z-index: 1;
    height: 140vh; /* Extended from 100vh so brain image and cards below share more background */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible; /* Changed from hidden to prevent solid edge cutoff and blend smoothly */
    box-sizing: border-box;
}
.hero-mind-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 2.5s ease-out 0.6s;
}
body:not(.loading) .hero-mind-container {
    opacity: 1;
}
.hero-mind-bg {
    position: relative;
    width: min(108vw, 108vh * 614 / 406);
    height: min(108vh, 108vw * 406 / 614);
    max-width: 1550px; /* Enlarge brain outline even more */
    max-height: calc(1550px * 406 / 614);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    transform: translateX(-12.2%); /* Option A: Shift left to align stalk (62.2%) to center (50%) */
}
.mind-bg-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.85; /* Slightly higher opacity for stronger luminescence */
    filter: brightness(1.8) saturate(0.55) contrast(2.2) /* Increased contrast and brightness (luminescence) */
            drop-shadow(0 0 16px rgba(255, 36, 0, 0.95)) 
            drop-shadow(0 0 45px rgba(255, 36, 0, 0.8)) 
            drop-shadow(0 0 85px rgba(255, 36, 0, 0.6)); /* Restore vibrant glowing outline */
    animation: brainPulse 4s ease-in-out infinite alternate; /* Neural pulse animation */
}
@keyframes brainPulse {
    0% {
        filter: brightness(1.8) saturate(0.55) contrast(2.2)
                drop-shadow(0 0 12px rgba(255, 36, 0, 0.8)) 
                drop-shadow(0 0 35px rgba(255, 36, 0, 0.65)) 
                drop-shadow(0 0 70px rgba(255, 36, 0, 0.45));
        transform: scale(0.98);
    }
    100% {
        filter: brightness(1.8) saturate(0.55) contrast(2.2)
                drop-shadow(0 0 22px rgba(255, 36, 0, 0.98)) 
                drop-shadow(0 0 55px rgba(255, 36, 0, 0.85)) 
                drop-shadow(0 0 100px rgba(255, 36, 0, 0.7));
        opacity: 0.58;
        transform: scale(1.02);
    }
}
.central-glow-overlay {
    position: absolute;
    top: 42%; /* Shifted up to align with text */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border-radius: 50%;
    /* Removed the large orange circle, kept only the off-white central glare */
    background: radial-gradient(circle, rgba(245, 245, 240, 0.45) 0%, rgba(245, 245, 240, 0) 60%); 
    z-index: 0;
    pointer-events: none;
}
.central-brain-text {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 400;
    color: #ffb3a1; /* Elegant light scarlet glow */
    text-align: center;
    letter-spacing: 0.1em;
    line-height: 1.3;
    z-index: 15;
    text-shadow: 
        0px 0px 10px rgba(255, 80, 0, 0.8),
        0px 0px 30px rgba(255, 0, 0, 0.6);
}
.central-brain-text strong {
    font-weight: 700;
    font-size: 2.3rem;
    letter-spacing: 0.05em;
}
.sub-brain-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 15px;
    opacity: 0.8;
        0px 0px 20px rgba(255, 36, 0, 0.6);
    animation: centralTextFadeIn 3s ease-out forwards;
    pointer-events: none;
    opacity: 0;
}
@keyframes centralTextFadeIn {
    0% {
        opacity: 0;
        filter: blur(8px);
        transform: translate(-50%, -40%);
    }
    100% {
        opacity: 0.95;
        filter: blur(0px);
        transform: translate(-50%, -50%);
    }
}
.scroll-indicator {
    position: absolute;
    bottom: 4vh;
    left: 4vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--color-smoke, #9a9a9a);
    letter-spacing: 0.2em;
    opacity: 0.6;
    animation: fadePulse 3s ease-in-out infinite alternate;
}
.scroll-indicator::after {
    content: '';
    width: 0.5px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-smoke, #9a9a9a), transparent);
    animation: linePulse 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-origin: top;
}
@keyframes fadePulse {
    0% { opacity: 0.45; }
    100% { opacity: 0.75; }
}
@keyframes linePulse {
    0% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 0.7;
    }
    50.1% {
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
        opacity: 0;
    }
}

.carousel-section {
    position: relative;
    height: 150vh; /* Scrollable height */
    z-index: 10;
    margin-top: 30vh; /* Delays appearance until brain is fully out of view */
}
.carousel-container {
    position: sticky;
    top: 42vh; /* Moved back up closer to the brain stalk */
    perspective: 1500px;
    width: 100%;
    height: 320px; /* Reduced height to fit on screen */
    display: flex;
    justify-content: center;
    align-items: center;
}
.carousel-track {
    position: relative;
    width: 260px; /* Reduced width */
    height: 320px; /* Reduced height */
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Buttery smooth single-card snap */
}
.carousel-card {
    position: absolute;
    width: 300px;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    left: 50%;
    top: 50%;
    transform-origin: 50% 50%;
    transform: translate(-50%, -50%) rotateY(calc(var(--card-index) * 51.42857deg)) translateZ(300px) scale(var(--hover-scale, 1));
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 1;
    z-index: 5;
    pointer-events: auto;
    cursor: pointer;
    overflow-y: auto;
    box-sizing: border-box;
}
/* Reusing the timeline text styles for the carousel cards */
.timeline-stage-num {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    display: inline-block;
}
.timeline-stage-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.timeline-stage-desc {
    font-size: 0.75rem;
    line-height: 1.4;
    opacity: 0.8;
    margin-bottom: 0.8rem;
}
.timeline-stage-details {
    opacity: 0.6;
    transition: opacity 0.4s ease;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 0.8rem;
}
.carousel-card:hover .timeline-stage-details,
.carousel-card.active .timeline-stage-details {
    opacity: 1;
}
.timeline-stage-details h4 {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 0.4rem;
}
.timeline-details-list {
    list-style: none;
}
.timeline-details-list li {
    font-size: 0.7rem;
    opacity: 0.85;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}
.timeline-details-list li::before {
    content: '→';
    color: var(--accent);
}

.carousel-card {
    /* Solid cards */
    opacity: 0.7;
}

.carousel-card.active {
    opacity: 1;
    border-color: rgba(255, 26, 26, 1); /* Scarlet boundary */
    box-shadow: 0 0 50px rgba(255, 26, 26, 0.6), inset 0 0 20px rgba(255, 26, 26, 0.2);
    z-index: 10;
}

.carousel-card.active:hover {
    --hover-scale: 1.05;
    opacity: 1;
    border-color: rgba(255, 26, 26, 1);
    box-shadow: 0 0 80px rgba(255, 26, 26, 0.8), inset 0 0 30px rgba(255, 26, 26, 0.4);
}

.carousel-card:hover {
    opacity: 0.9;
    border-color: rgba(255, 255, 255, 0.2);
}

@media(max-width: 768px) {
    .carousel-track {
        width: 240px;
        height: 320px;
    }
    .carousel-card {
        transform: rotateY(calc(var(--card-index) * 72deg)) translateZ(240px) scale(var(--hover-scale, 1));
        padding: 1.2rem;
    }
    .carousel-nav {
        display: none; /* Hide arrows on small screens, rely on swipe */
    }
}

/* Carousel Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease, transform 0.3s ease;
}
.carousel-nav:hover {
    color: rgba(255, 92, 51, 1);
}
.carousel-nav.left-nav {
    left: 5%;
}
.carousel-nav.left-nav:hover {
    transform: translateY(-50%) translateX(-5px);
}
.carousel-nav.right-nav {
    right: 5%;
}
.carousel-nav.right-nav:hover {
    transform: translateY(-50%) translateX(5px);
}
.carousel-nav span {
    font-size: 0.6rem;
    opacity: 0.6;
}

/* Scarlet Sea at the bottom */
.scarlet-sea {
    position: absolute;
    bottom: -10vh; /* Extend below screen to hide distorted SVG bottom edge */
    left: -5%; /* Hide the distorted SVG edges */
    width: 110%; /* Extend beyond screen to prevent uneven vertical clipping */
    height: 55vh; /* Increased to compensate for negative bottom margin */
    /* Rich, deep realistic water gradient with glowing reflections */
    background: 
        radial-gradient(ellipse at 50% 20%, rgba(255, 80, 20, 0.9) 0%, transparent 70%),
        linear-gradient(to top, rgba(150, 10, 0, 1) 0%, rgba(255, 36, 0, 0.8) 50%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
    /* Apply SVG turbulence for 3D liquid ripples and intense overall glow */
    filter: url('#liquidSea') drop-shadow(0 -30px 60px rgba(255, 50, 0, 0.8));
    /* Smooth boundary fade at the top */
    mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 100%);
}

.scarlet-sea::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    height: 150px;
    background: radial-gradient(ellipse at center, rgba(255, 60, 20, 0.8) 0%, transparent 60%);
    filter: blur(30px);
}

/* --- NEURAL NOIR DESIGN DIRECTIVES --- */
.grain-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 90;
    opacity: 0.09;
    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");
}

.vignette-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 89;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.85) 100%);
}

.visual-node {
    position: absolute;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 0.65rem; /* Reduced size */
    letter-spacing: 0.4em;
    z-index: 10;
    opacity: 0; 
    transform: translate(-50%, -50%);
    pointer-events: none;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    transition: opacity 2s ease-in-out;
}
.visual-node.visible {
    opacity: 0.85;
}

/* METHODOLOGY SECTION */
.methodology-wrapper {
    position: relative;
    width: 100%;
    padding: 40vh 0 25vh 0; /* Adjusted vertical space from carousel and added bottom space */
    z-index: 10;
}
.methodology-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 0vh;
    padding-left: 5%;
    padding-right: 5%;
    gap: 100px;
}
.methodology-text-left {
    width: 40%;
    position: sticky;
    top: 15vh;
    color: #fff;
    padding-top: 0vh;
}
.methodology-cards-right {
    width: 55%;
    position: relative;
    padding-bottom: 0vh;
}
.methodology-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ff1a1a;
}
.methodology-intro {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #fff;
    opacity: 0.9;
}

/* Glassmorphic Stacked Cards */
.methodology-card {
    position: sticky;
    background: rgba(10, 10, 10, 0.75); /* Less transparent */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 50px 40px;
    margin-bottom: 60vh; /* Massive margin to allow scrolling between cards */
    color: #fff;
    box-shadow: 0 10px 40px rgba(255, 50, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.05);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.methodology-card:hover {
    box-shadow: 0 10px 60px rgba(255, 50, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.1);
}
.m-card-1 { top: 15vh; z-index: 10; }
.m-card-2 { top: 18vh; z-index: 11; }
.m-card-3 { top: 21vh; z-index: 12; }
.m-card-4 { top: 24vh; z-index: 13; }
.m-card-5 { top: 27vh; z-index: 14; }

.m-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-family: 'DM Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #ff1a1a;
}
.methodology-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 15px;
}
.methodology-card p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 20px;
}
.m-deliverables {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    opacity: 0.9;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* CTA SPLIT SECTION */
.cta-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 10vh auto 20vh;
    padding: 0 5%;
    z-index: 10;
    text-align: center;
}
.scroll-reveal {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.cta-deliver.scroll-reveal { transform: translateX(-150px); }
.cta-require.scroll-reveal { transform: translateX(150px); }
.cta-action-container.scroll-reveal { transform: translateY(40px); }

/* Kinetic Text Reveal */
.kinetic-text-reveal {
    display: inline-block;
}
.kinetic-text-reveal .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.2em;
    margin-bottom: -0.2em;
}
.kinetic-text-reveal .char {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.kinetic-text-reveal.in-view .char {
    transform: translateY(0);
    opacity: 1;
}

.scroll-reveal.in-view {
    opacity: 1;
    transform: translate(0, 0);
}

/* Contact Form Glassmorphism */
.glass-container {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(25px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.9),
        inset 0 2px 4px rgba(255, 255, 255, 0.05);
}

.glass-input-group {
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.glass-input-group:hover label, .glass-input-group:focus-within label {
    text-shadow: 0 0 10px rgba(255, 255, 255, 1);
}
.glass-input-group input, .glass-input-group textarea {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(25px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
    border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.8) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.9) !important;
    border-radius: 12px;
    padding: 15px !important;
    outline: none !important;
    color: white;
    font-size: 1rem;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.9),
        inset 0 4px 6px rgba(255, 255, 255, 0.1),
        inset 0 -4px 6px rgba(0, 0, 0, 0.8) !important;
    transition: all 0.3s ease;
}
.glass-input-group input:focus, .glass-input-group textarea:focus,
.glass-input-group input:hover, .glass-input-group textarea:hover {
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 1),
        inset 0 4px 6px rgba(255, 255, 255, 0.25),
        inset 0 -4px 6px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 255, 255, 0.15) !important;
}

.glass-submit-btn {
    background: rgba(255, 36, 0, 0.85) !important; /* Scarlet color */
    backdrop-filter: blur(25px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
    border-top: 1px solid rgba(255, 120, 100, 0.6) !important;
    border-left: 1px solid rgba(255, 120, 100, 0.4) !important;
    border-right: 1px solid rgba(120, 0, 0, 0.8) !important;
    border-bottom: 1px solid rgba(120, 0, 0, 0.9) !important;
    border-radius: 12px !important;
    color: white !important;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.9),
        inset 0 4px 6px rgba(255, 200, 200, 0.4),
        inset 0 -4px 6px rgba(150, 0, 0, 0.7) !important;
    transition: all 0.3s ease !important;
}
.glass-submit-btn:hover {
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 1),
        inset 0 4px 6px rgba(255, 220, 220, 0.6),
        inset 0 -4px 6px rgba(150, 0, 0, 0.9),
        0 0 25px rgba(255, 36, 0, 0.8) !important;
    background: rgba(255, 36, 0, 1) !important; /* Solid scarlet on hover */
    border-top-color: rgba(255, 180, 180, 0.8) !important;
    transform: translateY(-2px);
}

.glass-social-icon {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(25px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
    border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.8) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.9) !important;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.9),
        inset 0 4px 6px rgba(255, 255, 255, 0.1),
        inset 0 -4px 6px rgba(0, 0, 0, 0.8) !important;
    transition: all 0.3s ease !important;
}
.glass-social-icon:hover {
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 1),
        inset 0 4px 6px rgba(255, 255, 255, 0.3),
        inset 0 -4px 6px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 255, 255, 0.4) !important;
    background: rgba(20, 20, 20, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-4px) !important;
    opacity: 1 !important;
}

.section-title-reveal {
    position: relative;
    display: inline-block;
}
.section-title-reveal::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff1a1a;
    transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}
.section-title-reveal.in-view::after {
    width: 100%;
}
.title-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #ff1a1a;
    border-radius: 50%;
    margin-right: 15px;
    vertical-align: middle;
}

.cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 50px;
    text-shadow: 0 0 20px rgba(255,80,0,0.5);
}
.cta-cards-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 50px;
}
.cta-card {
    flex: 1;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 35px;
    text-align: left;
    color: #fff;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.cta-card:hover {
    box-shadow: 0 0 30px rgba(255, 26, 26, 0.5);
    border-color: rgba(255, 26, 26, 0.8);
}
.cta-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ff1a1a;
    border-bottom: 1px solid rgba(255, 26, 26, 0.4);
    padding-bottom: 10px;
}
.cta-card ul {
    list-style: none;
    padding: 0;
}
.cta-card li {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
    opacity: 0.9;
    color: #ffffff;
}
.cta-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ff1a1a;
    font-size: 1.2rem;
    line-height: 1;
}

.cta-action-container {
    margin-top: 40px;
}
.cta-alignment-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 25px;
    opacity: 0.9;
}
.cta-final-btn {
    display: inline-block;
    padding: 15px 40px;
    font-family: 'DM Mono', monospace;
    font-size: 1rem;
    letter-spacing: 3px;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}
.cta-final-btn:hover {
    background: rgba(255, 26, 26, 1);
    border-color: #ff1a1a;
    box-shadow: 0 0 30px rgba(255, 26, 26, 0.8);
    transform: translateY(-2px);
}

@keyframes bounceDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.scroll-indicator { animation: bounceDown 2s ease-in-out infinite; }

.book-option-link:hover { color: #ff2400 !important; text-shadow: 0 0 15px rgba(255, 36, 0, 1), 0 0 5px rgba(255, 36, 0, 0.8); background: transparent !important; }


/* =========================================================================
   COMPREHENSIVE MOBILE OPTIMIZATION
   ========================================================================= */
@media (max-width: 768px) {
    /* Base spacing adjustments */
    body { font-size: 14px !important; overflow-x: hidden; }
    
    .container, .hero-content-wrapper { 
        padding-left: 20px !important; 
        padding-right: 20px !important; 
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Navigation */
    .nav { padding: 15px 10px !important; }
    .nav-links { 
        flex-wrap: wrap !important; 
        gap: 10px 15px !important; 
        justify-content: center !important; 
        text-align: center;
    }
    .nav-links a { font-size: 0.75rem !important; letter-spacing: 1.5px !important; }

    /* Hero Typography */
    .huge-text { 
        font-size: clamp(3rem, 15vw, 6rem) !important; 
        line-height: 1.1 !important;
        padding-left: 0 !important;
        text-align: left !important;
    }
    .designer-name { 
        display: flex !important; 
        flex-direction: column !important; 
        align-items: flex-start !important; 
    }
    .designer-name .reveal-mask:nth-child(2) h1 { 
        padding-left: 2rem !important; /* Slight indent instead of huge padding */
        margin-top: -5px !important; 
    }
    .hero-subtitle p { font-size: 0.8rem !important; letter-spacing: 2px !important; }

    /* Layout Stacking (Left loads first, Right loads under) */
    .about-content, .cta-cards-container, .grid-2, .contact-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        align-items: stretch !important;
    }
    
    /* Project Meta (Work page) */
    .project-meta {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    /* Accordions */
    .accordion-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    .accordion-title { font-size: 2.5rem !important; }
    
    /* Trust Page */
    .trust-section h3 { font-size: 2.5rem !important; }

    /* Forms & Containers */
    .glass-container {
        padding: 20px !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    .glass-container h2 { font-size: 2.5rem !important; }
    
    /* Hide scroll indicator to free up space */
    .scroll-indicator { display: none !important; }
    
    /* Prevent overlaps in buttons/CTAs */
    .cta-action-container { text-align: center !important; }
    .book-call-wrapper { display: flex !important; justify-content: center !important; width: 100%; }
    
    /* Process Section Headers */
    .process-timeline::before { left: 20px !important; }
    .process-step { padding-left: 40px !important; }
    
    .interactive-collage-section { min-height: auto !important; padding: 40px 0 !important; }
}


/* =========================================================================
   MOBILE OVERHAUL (V2) - Per Requirements
   ========================================================================= */
/* Desktop Base (Hidden on Desktop) */
.mobile-nav-header { display: none; }

@media (max-width: 768px) {
    /* 1. NAVIGATION */
    .nav { flex-direction: column; padding: 15px 20px !important; }
    .mobile-nav-header { 
        display: flex !important; 
        justify-content: space-between; 
        align-items: center; 
        width: 100%; 
    }
    .current-page { font-size: 1.2rem; font-weight: 700; color: var(--accent); letter-spacing: 2px; }
    .hamburger-menu { 
        background: none; border: none; cursor: pointer; padding: 0; z-index: 100;
    }
    .hamburger-menu .bar { 
        display: block; width: 25px; height: 3px; margin: 5px 0; 
        transition: all 0.3s ease; background-color: var(--accent); 
    }
    .hamburger-menu.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
    .hamburger-menu.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .nav-links { 
        display: none !important; /* hidden by default on mobile */
        flex-direction: column !important; 
        width: 100%; 
        padding-top: 20px;
        gap: 20px !important; 
    }
    .nav-links.responsive { display: flex !important; }

    /* 2. HOME PAGE */
    /* Push contact overlay down */
    .contact-overlay { 
        position: relative !important; 
        top: 0 !important; 
        transform: none !important; 
        margin-top: 50px !important;
        margin-bottom: 50px !important;
    }
    /* Touch reveal for collage items */
    .collage-item { position: relative; z-index: 1; }
    .collage-item.touch-active { z-index: 10 !important; transform: scale(1.1) !important; filter: grayscale(0) !important; opacity: 1 !important; box-shadow: 0 20px 50px rgba(0,0,0,0.8) !important; }

    /* 3. ABOUT PAGE */
    /* Certificates appear below text on mobile */
    .about-credentials .hover-target { display: block; margin-bottom: 15px; position: relative; }
    .cert-hover-img {
        display: none; 
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 400px;
        margin-top: 10px;
        opacity: 1 !important;
        pointer-events: auto !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    .about-credentials .hover-target.show-cert .cert-hover-img { display: block !important; }

    /* 4. PRACTICAL PAGE */
    .accordion-img-wrap { margin: 0 auto !important; }

    /* 5. CREATIVE PAGE */
    /* Show artworks fully */
    .artwork-collage { display: flex !important; flex-direction: column; gap: 20px; height: auto !important; }
    .artwork-item { position: relative !important; top: auto !important; left: auto !important; transform: none !important; width: 100% !important; height: auto !important; opacity: 1 !important; }
    .artwork-item img { position: relative !important; transform: none !important; width: 100% !important; height: auto !important; }

    /* 6. PROCESS PAGE RESTRUCTURE */
    .process-timeline { display: flex !important; flex-direction: column !important; }
    
    /* Order: Mind (1), Polymath Text (2), Carousel (3), Info (4), Synthesis (5) */
    #process-mind-section { order: 1; margin-bottom: 30px; }
    
    #process-polymath-text { 
        order: 2; 
        margin-bottom: 50px; 
        text-align: center;
        animation: slideInLeft 1s ease forwards;
        display: block !important; /* Ensure visibility */
    }
    
    #process-carousel-section { order: 3; margin-bottom: 50px; text-align: center; }
    /* Collapse scroll buttons to arrows */
    .carousel-btn { width: 40px !important; height: 40px !important; border-radius: 50% !important; font-size: 1rem !important; }
    .carousel-btn span { display: none; } /* hide text */
    .carousel-btn::after { content: '>'; font-weight: bold; }
    .carousel-btn.prev-btn::after { content: '<'; }
    .process-cards { justify-content: center !important; }
    
    #process-execution-info { order: 4; margin-bottom: 30px; text-align: center; }
    #process-synthesis-section { order: 5; margin-bottom: 50px; text-align: center; }
    #cta-section { order: 6; text-align: center; margin-top: 40px; }

    /* 7. INSTANT IMAGES */
    img { transition: none !important; opacity: 1 !important; filter: none !important; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}


@media (max-width: 768px) {
    /* Process Page Mind Restructure */
    .hero-mind-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-height: auto !important;
        padding-top: 50px;
    }
    
    .hero-mind-bg {
        position: relative !important;
        order: 1 !important;
        margin-bottom: 40px !important;
    }
    
    /* The Polymath Text below the brain, NO overlapping */
    .side-brain-text {
        position: relative !important;
        right: auto !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        order: 2 !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 90% !important;
        margin: 0 auto !important;
        padding: 20px !important;
        background: rgba(10,10,10,0.8);
        border-radius: 15px;
        border-left: 2px solid var(--accent);
        animation: slideInLeftMobile 1s ease forwards;
    }
    
    .side-brain-text h2 {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
    }
    
    .side-brain-text p {
        font-size: 1rem !important;
    }

    .sub-brain-text {
        position: relative !important;
        margin-top: 20px !important;
        font-size: 0.8rem !important;
    }
    
    /* Carousel Centering */
    .carousel-section {
        margin-top: 50px !important;
    }
    .carousel-nav {
        font-size: 0 !important; /* Hide "SCROLL" text */
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        background: var(--accent) !important;
        color: var(--bg-color) !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        opacity: 0.8 !important;
    }
    .carousel-nav.left-nav::after { content: '<'; font-size: 20px; font-weight: bold; }
    .carousel-nav.right-nav::after { content: '>'; font-size: 20px; font-weight: bold; }
    
    /* Info sections and Cards Centering */
    .process-step {
        text-align: center !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .process-cards {
        justify-content: center !important;
        align-items: center !important;
    }
    
    .process-card {
        margin: 0 auto 30px auto !important;
    }
}

@keyframes slideInLeftMobile {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}


@media (max-width: 768px) {
    /* 1. Force higher specificity for responsive nav to ensure it works */
    #nav-links-HOME.responsive, 
    #nav-links-ABOUT.responsive, 
    #nav-links-PRACTICAL.responsive, 
    #nav-links-CREATIVE.responsive, 
    #nav-links-PROCESS.responsive, 
    #nav-links-TRUST.responsive,
    .nav-links.responsive { 
        display: flex !important; 
        z-index: 9999;
    }
    
    .nav { z-index: 9999; position: relative; }
    
    /* 2. Fix the Hero Collage images only showing halfway */
    /* By default on mobile, let's make the images always fully visible but dimmed */
    .hero-collage {
         
        
    }
    .hero-collage img {
        transform: rotateX(0deg) scale(1) !important;
        opacity: 1 !important;
    }
}









/* === CRITICAL MOBILE FIXES (V12 - MAXIMUM PERFORMANCE) === */
@media (max-width: 768px) {
    html, body {
        width: 100% !important;
        overscroll-behavior-y: none !important; /* Prevents bounce scroll repaints */
    }

    /* 1. Heating Fix: Disable Heavy SVG Filters */
    .hero-mind-bg, .mind-bg-img, .creative-hero, .hero-image, .reveal-mask {
        filter: none !important;
        -webkit-filter: none !important;
    }
    .glass-card {
        /* Kept glow for premium feel */
    }
    svg#water-filter, svg:has(feTurbulence) {
        display: none !important;
    }

    /* 2. About Section Images Lag/Disappearance Fix */
    .marquee-content, .tech-img {
        will-change: auto !important;
    }
    .tech-img, .tech-svg {
        filter: none !important; /* Prevents WebKit black square bug from drop-shadows */
        -webkit-filter: none !important;
    }

    /* 3. Grain Overlay Complete Optimization */
    .grain-overlay {
        /* Entirely kill SVG mathematical noise on mobile to save battery */
        background-image: none !important;
        background: rgba(0,0,0,0.02) !important;
        opacity: 0.1 !important;
    }
    .vignette-overlay {
        width: 110vw !important;
        height: 110vh !important;
        left: -5vw !important;
        top: -5vh !important;
    }

    /* Nav Overlap Fix & Hamburger Z-Index */
    .nav {
        position: relative !important;
        z-index: 100000 !important;
        background: var(--bg-color) !important;
    }
    .mobile-nav-header {
        position: relative !important;
        z-index: 100001 !important;
    }
    .hamburger-menu {
        position: relative !important;
        z-index: 100002 !important;
        pointer-events: auto !important;
    }
    div[id^="nav-links"] {
        background: var(--bg-color) !important;
        z-index: 99999 !important;
        position: absolute !important;
        top: 60px !important;
        left: 0 !important;
        padding-bottom: 20px !important;
    }

    /* Brain Image opacity & Polymath text */
    .hero-mind-container {
        width: 100% !important;
        z-index: 5 !important;
    }
    .hero-mind-bg {
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .mind-bg-img {
        max-width: 90% !important;
        height: auto !important;
        opacity: 0.6 !important; 
    }
    
    .central-brain-text span:first-child {
        font-size: 1.1em !important;
    }
    .central-brain-text span:nth-child(2) {
        font-size: 1.0em !important;
        font-weight: bold !important; /* BOLD AS REQUESTED */
    }
    .visual-node {
        font-size: 0.65em !important;
    }
    .side-brain-text p {
        font-size: 0.85rem !important;
    }
    
    .side-brain-text {
        opacity: 0;
        animation: slideInLeftMobile 1s ease 0.5s forwards !important;
        margin-top: 20px !important;
        z-index: 20 !important;
    }
    
    /* PARTICLE CANVAS FIXES */
    .canvas-container {
        z-index: 0 !important;
        pointer-events: none !important;
        transform: translateY(-40px) !important;
        opacity: 0.8 !important; /* Restored visibility of brain particles */
        display: block !important;
    }

    /* CAROUSEL FIX: Native Horizontal Swipe (No JS 3D) */
    .carousel-section {
        height: auto !important;
        padding-bottom: 50px !important;
        z-index: 10 !important;
    }
    .carousel-container {
        height: auto !important;
        padding-bottom: 50px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        z-index: 10 !important;
    }
    .carousel-container > div[style*="top: -22vh"] {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 30px !important;
        width: 100% !important;
    }
    .carousel-title {
        font-size: 2rem !important;
    }
    .carousel-nav {
        display: none !important;
    }
    .carousel-track {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        transform: none !important;
        width: 100vw !important;
        height: auto !important;
        padding: 20px 10vw !important; /* Added vertical padding for glowing shadows to not get clipped */
        gap: 20px !important;
        box-sizing: border-box !important;
    }
    .carousel-card {
        flex: 0 0 80vw !important;
        max-width: 400px !important;
        scroll-snap-align: center !important;
        position: relative !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        margin: 0 !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        height: auto !important;
        min-height: 400px !important;
        transition: none !important; /* Disable CSS transitions on scroll to prevent lag */
    }
    .carousel-card.active {
        box-shadow: 0 0 50px rgba(255, 26, 26, 0.6), inset 0 0 20px rgba(255, 26, 26, 0.2) !important; /* Premium glow restored */
    }

    /* Practical Execution & Phase Cards */
    .post-carousel-spacer {
        padding-bottom: 50px !important;
        height: auto !important;
    }
    .methodology-wrapper {
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
        display: block !important;
        z-index: 50 !important; 
    }
    .methodology-container {
        display: block !important;
        height: auto !important;
        padding: 0 20px !important;
        overflow: visible !important;
        z-index: 50 !important;
    }
    .methodology-text-left {
        position: relative !important;
        top: auto !important;
        height: auto !important;
        width: 100% !important;
        margin-bottom: 40px !important;
    }
    .methodology-cards-right {
        position: relative !important;
        top: auto !important;
        height: auto !important;
        width: 100% !important;
        display: block !important;
        overflow: visible !important;
        z-index: 50 !important;
        padding-bottom: 100vh !important;
    }
    .methodology-card {
        position: sticky !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto 50vh auto !important; 
        transform: none !important;
        left: auto !important;
        transition: none !important; /* Removed to avoid lag during scroll */
    }

    /* CTA Section Overlapping Fix */
    .cta-wrapper {
        position: relative !important;
        top: auto !important;
        transform: none !important;
        height: auto !important;
        padding: 20px 20px 50px 20px !important; 
        margin-top: -30px !important; 
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        z-index: 10 !important;
    }
    .cta-cards-container {
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        gap: 20px !important;
        margin-top: 30px !important;
    }
    .cta-card {
        position: relative !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 768px) {

    /* Fix Marquee Gap and Flex Shrink on Mobile */
    .marquee-content {
        gap: 1rem !important;
    }
    .tech-img, .tech-svg {
        margin: 0 1rem !important;
        flex-shrink: 0 !important;
    }
}

@media (max-width: 768px) {

    /* Fix Tab Content and Images Lag/Movement on Mobile */
    .tab-content {
        animation: none !important;
    }
    .static-photo-grid img, .artworks-wall img, .lightbox-img, .quad-img-reveal, .quad-img-reveal img {
        transition: none !important;
        will-change: auto !important;
    }
}

@media (max-width: 768px) {

    /* Restore stickman and remove its heavy filter for smooth scrolling */
    .walking-character svg {
        display: block !important;
        filter: none !important;
        -webkit-filter: none !important;
    }

    /* Disable heavy SVG noise filter on mobile to fix device heating */
    .scarlet-sea, .scarlet-sea::before, .scarlet-sea::after {
        filter: none !important;
        -webkit-filter: none !important;
    }
}

/* Accessibility: Skip to Content Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff1a1a;
    color: white;
    padding: 12px 24px;
    z-index: 10000;
    transition: top 0.3s ease;
    font-weight: bold;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
}

/* Let's connect fine lines overlay */
.fine-lines-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.9) 3px, transparent 3px, transparent 6px);
    background-size: 6px 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    will-change: opacity, background-position;
}
.fine-lines-overlay.shutter-active {
    animation: shutterSweep 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* Let's Connect Gallery */
.crossfade-gallery {
    position: absolute; top:0; left:0; width:100%; height:100%;
}
.crossfade-gallery img, .crossfade-gallery video {
    position: absolute; top:0; left:0; width:100%; height:100%; object-fit:cover;
    opacity: 0;
    transition: opacity 3s ease-in-out;
}
.crossfade-gallery .revealed {
    opacity: 0.3;
}
