/* --- CSS Variables & Theme --- */
:root {
    --bg-color: #050505; /* Deep rich black */
    --text-color: #f4f4f5; /* Off-white for readability */
    --accent-color: #FF2E93; /* Vibrant designer pink */
    --accent-light: rgba(255, 46, 147, 0.2);
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --font-serif: 'Oswald', sans-serif;
    --font-cs-heading: 'Handjet', cursive;
    --font-cs-body: 'Roboto Mono', monospace;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor for custom one */
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* --- Custom Cursor --- */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, mix-blend-mode 0.3s;
    mix-blend-mode: difference;
}
.cursor.active {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 46, 147, 0.4);
    backdrop-filter: blur(2px);
    border: 1px solid var(--accent-color);
    mix-blend-mode: normal;
}
.cursor.view-img {
    width: 80px;
    height: 80px;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    mix-blend-mode: normal;
}
:root {
    --cursor-text: 'VIEW';
}
.cursor.view-img::after {
    content: var(--cursor-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 2px;
}

/* --- Typography Utilities --- */
.highlight {
    color: var(--accent-color);
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 700;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}
.section-title.center {
    text-align: center;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}
.logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none !important;
    border-bottom: none !important;
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: translateX(-101%);
    transition: transform 0.3s ease;
}
.nav-links a:hover::after {
    transform: translateX(0);
}

/* --- Hero Section (Accordion) --- */
.accordion-hero {
    height: 100vh;
    width: 100vw;
    display: flex;
    overflow: hidden;
    position: relative;
    padding: 0;
    background: #000;
}
.accordion-panel {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: flex 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: none;
}
.accordion-panel:hover {
    flex: 3;
}
.accordion-panel img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: auto;
    min-width: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: transform 0.8s ease, filter 0.8s ease;
}
.accordion-panel:hover img {
    transform: translateX(-50%) scale(1.05);
    filter: grayscale(20%) contrast(1.1);
}
.accordion-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    transition: background 0.8s ease;
    pointer-events: none;
}
.accordion-panel:hover::after {
    background: rgba(0,0,0,0.2);
}

.hero-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    pointer-events: none;
    width: 100%;
}
.hero-overlay-text .hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 8rem);
    color: #fff;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 10px 40px rgba(0,0,0,0.9);
    margin-bottom: 1rem;
    overflow: hidden;
}
.hero-overlay-text .hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 6px;
    text-shadow: 0 5px 20px rgba(0,0,0,0.9);
    overflow: hidden;
}
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    z-index: 20;
    mix-blend-mode: difference;
    pointer-events: none;
}
.scroll-indicator .line {
    width: 60px;
    height: 1px;
    background-color: var(--accent-color);
    position: relative;
    overflow: hidden;
}
.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-color);
    animation: scrollLine 2s infinite ease-in-out;
}
@keyframes scrollLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* --- Tortoise Animation --- */
.tortoise-container {
    position: absolute;
    bottom: 60px; /* Moved down away from User Experience section */
    right: -300px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: tortoiseWalk 45s linear infinite;
    z-index: 10;
    pointer-events: none;
}
.tortoise-flag {
    font-family: var(--font-cs-body);
    font-size: 0.7rem;
    background: #fff;
    color: #000;
    padding: 3px 8px;
    border-radius: 3px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.tortoise-flag::after {
    /* Little triangle for the speech bubble pointing left towards the tortoise */
    content: '';
    position: absolute;
    top: 50%;
    left: -5px; /* Point to the left */
    transform: translateY(-50%);
    border-width: 5px 5px 5px 0;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}
.tortoise-icon {
    width: 70px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
    animation: tortoiseBob 3.5s ease-in-out infinite; /* Slower, heavier walk */
}

@keyframes tortoiseBob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(-2deg); } /* Heave up and forward */
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-1px) rotate(1deg); } /* Slight shift back down */
}

@keyframes tortoiseWalk {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100vw - 300px)); }
}

/* --- About Section --- */
.about-section {
    padding: 10rem 10vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.about-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 4px;
}
.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.2); /* Enhance the pink */
    transform: scale(1.1); /* For GSAP parallax */
}
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 10;
}
.about-text p {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    margin-bottom: 2rem;
    color: #cccccc;
}

/* --- Gallery Section --- */
.gallery-section {
    padding: 10rem 5vw;
}
.gallery-grid {
    column-count: 3;
    column-gap: 2rem;
    width: 100%;
    margin-top: 5rem;
}
.gallery-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: none;
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%) contrast(1.3); /* Ensure B&W photography aesthetic */
    transition: filter 0.5s ease, transform 0.5s ease;
}
.gallery-item:hover img {
    filter: grayscale(0%) contrast(1.1); /* Optional: slight reveal on hover, or keep B&W */
    transform: scale(1.03);
}

/* --- Blog Section Styles --- */
.blog-hero {
    height: 100vh;
    display: flex;
    flex-direction: row; /* Layout items side-by-side */
    align-items: center;
    justify-content: flex-start;
    padding: 0 10vw;
    position: relative;
    background-color: var(--bg-color);
}
/* --- Interactive Background Grid --- */
.interactive-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    z-index: 0;
}
.interactive-grid-cell {
    width: 50px;
    height: 50px;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background-color 1s ease-out; /* Smooth slow fade out */
}
.interactive-grid-cell.active {
    background-color: rgba(255, 46, 147, 0.3); /* Brighter pink light */
    transition: background-color 0s; /* Instant light up */
}

/* --- Pixel Canvas --- */
.pixel-canvas {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-right: 4vw; /* Space between tags and main title */
    z-index: 10;
}
.pixel-box {
    background: var(--accent-color);
    color: var(--bg-color);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--accent-color);
    opacity: 0; /* For GSAP reveal */
    cursor: crosshair;
    transition: all 0.2s ease;
    width: fit-content;
}
.pixel-box:hover {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
    transform: scale(1.05) translateX(10px);
    box-shadow: -4px 4px 0 var(--accent-color);
}


.blog-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 2rem;
    overflow: hidden;
}
.blog-hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    color: #a0a0a0;
    overflow: hidden;
    font-family: var(--font-body);
}
.blog-grid-section {
    padding: 5rem 10vw 10rem;
    background-color: var(--bg-color);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8rem 4rem;
}
.blog-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    cursor: none;
}
/* Stagger the second column */
.blog-card:nth-child(even) {
    margin-top: 10rem; /* Stagger effect */
}
.blog-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 4px;
}
.blog-card-image {
    width: 100%;
    height: 120%; /* Extra height for parallax */
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease, transform 0.5s ease;
    transform: translateY(-10%); /* Center the parallax */
}
.blog-card:hover .blog-card-image {
    filter: grayscale(0%) contrast(1.2);
}
.blog-card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.blog-card-category {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
}
.blog-card-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.2;
    color: var(--text-color);
    transition: color 0.3s ease;
}
.blog-card:hover .blog-card-title {
    color: var(--accent-color);
}
.blog-card-excerpt {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.6;
}
.blog-card-date {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
    font-style: italic;
}

/* --- Footer --- */
.footer {
    padding: 10rem 10vw 2rem;
    text-align: center;
    background-color: #020202;
}
.footer-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 5rem);
    text-transform: uppercase;
    margin-bottom: 2rem;
}
.email-link {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--accent-color);
    text-decoration: none;
    font-style: italic;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}
.email-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}
.email-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.footer-bottom {
    margin-top: 10rem;
    color: #666;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        column-count: 2;
    }
    .navbar {
        padding: 1.5rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
    .blog-card:nth-child(even) {
        margin-top: 0 !important; /* Remove stagger on smaller screens */
    }
}

@media (max-width: 768px) {
    /* Hero Accordion Fix for Mobile */
    .accordion-hero {
        flex-wrap: wrap;
    }
    .accordion-panel {
        flex: 0 0 50% !important;
        height: 50%;
    }
    .accordion-panel:hover {
        flex: 0 0 50% !important; /* Disable accordion expansion on mobile */
    }
    .hero-overlay-text .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
    .hero-overlay-text .hero-subtitle {
        font-size: clamp(0.7rem, 3vw, 1rem);
        letter-spacing: 3px;
    }
    
    /* Footer Email Fix */
    .email-link {
        font-size: clamp(1rem, 6vw, 1.5rem);
        word-break: break-all;
    }
    .footer {
        padding: 5rem 5vw 2rem;
    }
    
    /* Mobile Pixel Box Adjustments */
    .blog-hero {
        flex-direction: column-reverse; /* Stack with title on top */
        justify-content: center;
        align-items: flex-start;
        gap: 3rem;
    }
    .pixel-canvas {
        margin-right: 0;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .pixel-box {
        font-size: 0.6rem;
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }
    html, body {
        cursor: auto;
    }
    .cursor {
        display: none;
    }
    .about-section {
        padding: 5rem 5vw;
    }
}

/* --- Collaborations Section --- */
.collaborations-section {
    padding: 8rem 0;
    background-color: var(--bg-color);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.collab-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.5rem); /* Reduced size */
    color: var(--text-color);
    margin: 0 auto 4rem auto;
    text-align: center;
    line-height: 1.3;
    max-width: 900px;
    padding: 0 5vw;
}
.collab-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}
/* Fade edges for a sleeker look */
.collab-marquee-container::before,
.collab-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.collab-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}
.collab-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}
.collab-marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}
.collab-marquee-track:hover {
    animation-play-state: paused; /* Pauses on hover */
}
.collab-card {
    width: 450px; /* Fixed width so it slides nicely */
    flex-shrink: 0;
    padding: 3rem 2.5rem;
    background: #080808;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 10px 10px 40px rgba(0,0,0,0.5);
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Restores normal text wrapping */
}
.collab-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 20px 20px 50px rgba(255,46,147,0.1);
}
.collab-card::before {
    content: "“";
    font-family: var(--font-serif);
    font-size: 6rem;
    color: var(--accent-color);
    opacity: 0.15;
    position: absolute;
    top: 5px;
    left: 15px;
    line-height: 1;
}
.collab-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}
.collab-author {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.collab-role {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.3rem;
}

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

@media (max-width: 768px) {
    .collab-card {
        width: 320px;
        padding: 2rem 1.5rem;
    }
}

/* --- Mee Page Styles --- */
.mee-page {
    background-color: var(--bg-color);
}
.mee-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 15vh 10vw 5vh;
}
.mee-hero-content {
    max-width: 900px;
    margin: 0 auto;
}
.mee-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--text-color);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.mee-bio {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.mee-bio p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 1.8;
    color: #c0c0c0;
}
.mee-bio p:first-child {
    font-size: 1.4rem;
    color: var(--text-color);
}

/* Gallery Marquee Styles */
.gallery-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1.5rem 0;
}
.gallery-marquee-track {
    --track-gap: 3rem;
    --track-duration: 50s;
    display: flex;
    align-items: center;
    gap: var(--track-gap);
    width: max-content;
}
.gallery-marquee-container.track-left .gallery-marquee-track {
    animation: gallery-scroll-left var(--track-duration) linear infinite;
}
.gallery-marquee-container.track-right .gallery-marquee-track {
    animation: gallery-scroll-right var(--track-duration) linear infinite;
}
.gallery-marquee-track:hover {
    animation-play-state: paused;
}

.mee-marquee-item {
    height: 350px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}
.mee-marquee-item img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: grayscale(20%);
}
.mee-marquee-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.marquee-text-element {
    font-family: var(--font-heading);
    font-size: 8rem;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 5px;
    flex-shrink: 0;
    line-height: 1;
    transition: -webkit-text-stroke 0.3s ease;
}
.marquee-text-element:hover {
    -webkit-text-stroke: 2px var(--accent-color);
}

@keyframes gallery-scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - calc(var(--track-gap) / 2))); }
}
@keyframes gallery-scroll-right {
    0% { transform: translateX(calc(-50% - calc(var(--track-gap) / 2))); }
    100% { transform: translateX(0); }
}

@media (max-width: 1024px) {
    .mee-marquee-item { height: 280px; }
    .marquee-text-element { font-size: 6rem; }
}
@media (max-width: 768px) {
    .mee-hero { padding: 15vh 5vw 5vh; }
    .mee-marquee-item { height: 220px; }
    .marquee-text-element { font-size: 4rem; }
}
@media (max-width: 480px) {
    .mee-marquee-item { height: 180px; }
    .marquee-text-element { font-size: 3rem; }
    .gallery-marquee-container { padding: 1rem 0; }
    .gallery-marquee-track { --track-gap: 1.5rem; }
}

/* --- Highlights Case Study Styles --- */
.case-study-page {
    background-color: #030303;
    color: var(--text-color);
}
.cs-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 10vw 10vw 5vw;
    background-image: radial-gradient(circle at center, rgba(255,46,147,0.05) 0%, transparent 70%);
}
.cs-hero-container {
    max-width: 1200px;
}
.cs-logo {
    width: 80px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}
.cs-title {
    font-family: var(--font-cs-heading);
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.9;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4rem;
}
.cs-title .highlight {
    color: var(--accent-color);
}
.cs-reveal {
    display: block;
}
.cs-hero-meta {
    display: flex;
    gap: 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}
.cs-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.cs-meta-label {
    font-family: var(--font-cs-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
}
.cs-meta-value {
    font-family: var(--font-cs-body);
    font-size: 0.9rem;
    color: #ccc;
}
.cs-section {
    padding: 8rem 10vw;
}
.cs-dark {
    background-color: #080808;
}
.cs-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}
.cs-section-title {
    font-family: var(--font-cs-body);
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
}
.cs-heading {
    font-family: var(--font-cs-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}
.cs-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.cs-body-text {
    font-family: var(--font-cs-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #a0a0a0;
}
.cs-showcase {
    margin-top: 6rem;
    display: flex;
    justify-content: center;
}
.cs-mockup {
    max-width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}
.cs-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}
.cs-grid-item img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}
.cs-caption {
    font-family: var(--font-cs-body);
    font-size: 0.85rem;
    color: #666;
    margin-top: 1rem;
    text-align: center;
}
.cs-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 4rem; }

@media (max-width: 768px) {
    .cs-hero-meta {
        flex-direction: column;
        gap: 2rem;
    }
    .cs-text-grid, .cs-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .cs-image-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Ticker Marquee --- */
.cs-ticker {
    width: 100%;
    overflow: hidden;
    background-color: #CCFF00; /* Vibrant yellowish green */
    color: #000;
    padding: 1.5rem 0;
    display: flex;
    white-space: nowrap;
    border-top: 2px solid rgba(255,255,255,0.1);
    border-bottom: 2px solid rgba(255,255,255,0.1);
}
.cs-ticker-track {
    display: flex;
    animation: ticker 35s linear infinite;
}
.cs-ticker-track:hover {
    animation-play-state: paused;
}
.ticker-text {
    font-family: var(--font-cs-body);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    padding-right: 3rem;
    display: flex;
    align-items: center;
}
.ticker-dot {
    margin-left: 3rem;
    font-size: 1.5rem;
}
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Living Things Case Study Theme --- */
.lt-theme {
    background-color: #FAFAFA;
    color: #1A1A1A;
}
.lt-theme .navbar {
    background: rgba(250, 250, 250, 0.8);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.lt-theme .navbar .logo, .lt-theme .navbar .nav-link {
    color: #1A1A1A;
}
.lt-theme .cs-hero {
    background-image: radial-gradient(circle at center top, rgba(0, 168, 89, 0.05) 0%, transparent 70%);
}
.lt-theme .cs-title {
    color: #1A1A1A;
    font-family: var(--font-heading);
    letter-spacing: -1px;
}
.lt-theme .cs-title .highlight {
    color: #00A859;
    font-family: var(--font-serif);
    font-style: italic;
}
.lt-theme .cs-body-text {
    color: #4A4A4A;
    font-size: 1.15rem;
    line-height: 1.8;
}
.lt-theme .cs-meta-label {
    color: #888;
}
.lt-theme .cs-meta-value {
    color: #222;
    font-weight: 600;
}
.lt-theme .cs-hero-meta {
    border-top: 1px solid rgba(0,0,0,0.1);
}
.lt-theme .cs-section {
    border-top: 1px solid rgba(0,0,0,0.05);
}
.lt-theme .cs-dark {
    background-color: #F0F2F5;
}
.lt-theme .cs-section-title {
    color: #00A859;
}
.lt-theme .cs-heading {
    color: #111;
    font-family: var(--font-heading);
}
.lt-theme .cs-image-container img {
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.lt-theme .quote-block {
    border-left: 4px solid #00A859;
    padding-left: 2rem;
    margin: 3rem 0;
    font-size: 1.5rem;
    font-family: var(--font-serif);
    color: #111;
    font-style: italic;
}

.lt-theme .footer {
    background-color: #FAFAFA;
    color: #1A1A1A;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.lt-theme .footer-title {
    color: #1A1A1A;
}
.lt-theme .email-link {
    color: #00A859;
}
.lt-theme .email-link::after {
    background-color: #00A859;
}

/* --- Library CTA Section on Blog Page --- */
.library-cta-section {
    padding: 8rem 5vw;
    background-color: var(--accent-color);
    color: #111111;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    transition: background-color 0.4s ease;
}
.library-cta-section:hover {
    background-color: #FAFAFA;
}
.library-cta-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.library-cta-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 400;
    font-style: italic;
    color: #111111;
}
.library-cta-text {
    font-size: 1.25rem;
    color: rgba(17, 17, 17, 0.8);
}
.library-cta-btn {
    margin-top: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #111111;
    color: #111111;
}

/* --- Library Page Layout --- */
.library-page {
    background-color: var(--bg-color);
    color: var(--text-color);
}
.library-hero {
    padding: 15rem 5vw 8rem;
    text-align: center;
}
.library-hero-content {
    max-width: 900px;
    margin: 0 auto;
}
.library-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 2rem;
}
.library-title .highlight {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent-color);
    font-weight: 400;
}
.library-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.book-grid-section {
    padding: 2rem 5vw 10rem;
}
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 4rem;
}
.book-card {
    display: flex;
    flex-direction: column;
}
.book-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: none;
}
.book-cover {
    background-color: #1A1A1A;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.4s ease, border-color 0.4s ease;
    margin-bottom: 1.5rem;
}
.book-link:hover .book-cover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}
.book-cover-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 400;
    color: #FAFAFA;
}
.book-cover-author {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 600;
}
.book-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
}
.book-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    flex-grow: 1;
}
.book-action {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    font-weight: 600;
    align-self: flex-start;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}
.book-link:hover .book-action {
    border-bottom-color: var(--accent-color);
}

@media (max-width: 768px) {
    .library-hero {
        padding: 10rem 5vw 5rem;
    }
    .library-title {
        font-size: 3.5rem;
    }
    .library-cta-title {
        font-size: 2.5rem;
    }
    .book-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .book-cover {
        padding: 2rem;
    }
    .book-cover-title {
        font-size: 2rem;
    }
}

/* --- Client Logos Section --- */
.client-logos-section {
    padding: 2rem 0 4rem;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.client-marquee {
    display: flex;
    overflow: hidden;
    width: 100%;
    /* Subtle mask on edges for a premium fade effect */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.client-marquee-track {
    display: flex;
    animation: scroll-clients 45s linear infinite;
    gap: 5rem;
}
.client-logo-group {
    display: flex;
    align-items: center;
    gap: 5rem;
    padding-right: 5rem; /* Matches gap to ensure seamless loop */
}

/* Base styles for logos */
.client-logo-svg, .client-logo-jpg {
    height: 32px;
    max-width: 130px;
    object-fit: contain;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

/* SVGs with transparent backgrounds */
.client-logo-svg {
    filter: grayscale(1) brightness(0) invert(1) opacity(0.3);
}
.client-logo-svg:hover {
    filter: grayscale(1) brightness(0) invert(1) opacity(0.8);
}

/* JPGs or images with white backgrounds */
.client-logo-jpg {
    filter: grayscale(1) invert(1) opacity(0.4);
    mix-blend-mode: screen;
}
.client-logo-jpg:hover {
    filter: grayscale(1) invert(1) opacity(0.8);
}

@keyframes scroll-clients {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .client-logo-svg, .client-logo-img, .client-text-logo {
        height: 28px;
        max-width: 100px;
    }
    .living-things-logo {
        height: 45px !important;
    }
    .client-text-logo {
        font-size: 0.95rem;
    }
    .client-marquee-track {
        gap: 3rem;
    }
    .client-logo-group {
        gap: 3rem;
        padding-right: 3rem;
    }
}

/* --- OVERRIDE CLIENT LOGOS CSS --- */
.client-logo-svg, .client-logo-img, .client-text-logo {
    height: 35px;
    max-width: 140px;
    object-fit: contain;
    transition: opacity 0.4s ease, filter 0.4s ease;
    opacity: 0.4;
    display: flex;
    align-items: center;
}
.client-logo-svg:hover, .client-logo-img:hover, .client-text-logo:hover {
    opacity: 0.9;
}

.client-logo-svg {
    filter: none; /* simpleicons provides pure white SVGs */
}

.client-logo-img {
    filter: grayscale(1) invert(1);
    mix-blend-mode: screen;
}

.living-things-logo {
    height: 60px !important;
    max-width: 180px !important;
}

.client-text-logo {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    white-space: nowrap;
    text-transform: uppercase;
    color: #FAFAFA;
    height: auto;
}

@media (max-width: 768px) {
    .client-logo-svg, .client-logo-img {
        height: 28px;
    }
    .living-things-logo {
        height: 45px !important;
    }
    .client-text-logo {
        font-size: 0.95rem;
    }
}

/* --- PATCH SPACING FIX --- */
.client-logo-svg, .client-logo-img, .client-text-logo {
    flex-shrink: 0 !important;
}
.client-logo-group {
    flex-shrink: 0 !important;
}

/* --- PATCH TEXT OVERFLOW FIX --- */
.client-text-logo {
    max-width: none !important;
    width: max-content !important;
    flex-shrink: 0 !important;
}

/* Ensure images don't have built-in padding that messes up visual gaps */
.client-logo-svg, .client-logo-img {
    flex-shrink: 0 !important;
    width: auto !important; /* Let them be their natural width up to max-width */
}

/* --- PATCH HERO MOBILE LAYOUT --- */
@media (max-width: 768px) {
    .blog-hero-content {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem !important;
    }
    .hero-image-container {
        padding-right: 0 !important;
    }
    .hero-image-container img {
        height: 250px !important;
    }
}

/* --- HERO REDESIGN PATCH --- */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}
.skill-tag {
    display: inline-block;
    padding: 0.35rem 1.2rem;
    border: 1px solid rgba(255, 105, 180, 0.25);
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c0c0c0;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 105, 180, 0.03);
    cursor: pointer;
}
.skill-tag:hover {
    background: rgba(255, 105, 180, 0.15);
    border-color: rgba(255, 105, 180, 0.6);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.1);
}

.masked-profile-img {
    height: 480px;
    width: 380px;
    object-fit: cover;
    /* This perfectly fades out the harsh white brush borders into the black background */
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 72%);
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 72%);
    position: relative;
    z-index: 2;
    border-radius: 50%;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 350px;
    background: radial-gradient(ellipse at center, rgba(232, 58, 128, 0.3) 0%, transparent 70%);
    z-index: 1;
    filter: blur(30px);
}

/* Cleanup old pixel canvas if left around */
.pixel-canvas { display: none !important; }

@media (max-width: 768px) {
    .masked-profile-img {
        height: 320px;
        width: 260px;
    }
    .skills-tags {
        justify-content: center;
    }
    .blog-hero-title {
        font-size: 3rem !important;
    }
}

/* --- HERO REDESIGN MOBILE POLISH --- */
@media (max-width: 768px) {
    .blog-hero {
        height: auto !important;
        min-height: 100vh;
        padding-top: 140px !important; /* Safely clear the navbar */
        padding-bottom: 120px !important; /* Give the tortoise room to walk without hitting the photo */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0 !important;
    }
    
    .blog-hero-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 2.5rem !important;
        padding-top: 0 !important;
    }

    .hero-text-container {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .blog-hero-title {
        font-size: 3.5rem !important;
        line-height: 1.1 !important;
        margin-bottom: 0 !important;
    }

    .blog-hero-subtitle {
        margin: 1rem auto 0 !important;
        font-size: 1rem !important;
        max-width: 90% !important;
    }
    
    .skills-tags {
        justify-content: center !important;
        gap: 0.5rem !important;
        margin-top: 1.5rem !important;
    }

    .hero-image-container {
        margin-top: 2rem !important;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .masked-profile-img {
        height: 280px !important;
        width: 280px !important;
        border-radius: 50% !important; /* Perfect circle */
        object-fit: cover !important;
    }

    .image-glow {
        width: 200px !important;
        height: 200px !important;
    }
    
    .scroll-indicator {
        display: none !important; /* Hide "Explore" text on mobile to remove bottom clutter */
    }
    
    .tortoise-container {
        bottom: 30px !important; /* Anchor tortoise safely at the bottom */
    }
}

/* --- VISION SECTION REDESIGN --- */
.about-text p {
    font-size: clamp(1rem, 1.2vw, 1.15rem) !important;
    line-height: 1.8 !important;
    color: #b0b0b0 !important;
    font-weight: 300 !important;
    margin-bottom: 1.5rem !important;
    max-width: 600px;
}

.about-text .highlight {
    font-size: 1.2rem !important;
    font-weight: 400 !important;
    font-style: italic;
    margin-top: 2.5rem !important;
    color: var(--accent-color) !important;
}

.about-image-wrapper {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

@media (max-width: 900px) {
    .about-image-wrapper {
        aspect-ratio: 1/1 !important; /* Square on mobile so it doesn't take the whole vertical screen */
        max-width: 400px;
        margin: 0 auto;
        border-radius: 8px;
    }
    
    .about-text {
        text-align: center;
        padding: 0 1rem;
    }
    
    .about-text p {
        margin: 0 auto 1.5rem auto;
    }
}
