:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #ffffff;
    --accent-secondary: #888888;
    --border-hairline: 1px solid rgba(255, 255, 255, 0.1);
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

::selection {
    background-color: #555555;
    color: #ffffff;
}

::-moz-selection {
    background-color: #555555;
    color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    background-color: var(--bg-color);
}

body {
    background-color: transparent;
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

a,
button,
.gallery-item {
    cursor: none !important;
}

/* --- Animated Background --- */
.bg-blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.55;
}

.blob {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    filter: blur(140px);
    animation: move 12s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    animation-duration: 15s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    animation-duration: 18s;
    animation-delay: -3s;
}

.blob-3 {
    top: 35%;
    left: 15%;
    width: 600px;
    height: 600px;
    animation-duration: 12s;
    animation-delay: -6s;
}

@keyframes move {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.7;
    }

    33% {
        transform: translate(15vw, 15vh) scale(1.2) rotate(45deg);
        opacity: 1;
    }

    66% {
        transform: translate(-10vw, 30vh) scale(0.9) rotate(-30deg);
        opacity: 0.6;
    }

    100% {
        transform: translate(5vw, -5vh) scale(1.1) rotate(60deg);
        opacity: 0.8;
    }
}

/* --- Layout & Grid --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

section {
    border-top: var(--border-hairline);
}

.section-padding {
    padding: 120px 0;
}

/* --- Navigation --- */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    transition: var(--transition-smooth);
}

.nav-content {
    padding: 0.4rem 0.6rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
}

.nav-left {
    display: flex;
    justify-content: flex-start;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
}

.black-pill {
    background: #000;
    padding: 0.5rem 1.8rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: var(--transition-smooth);
}

.nav-sep {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
}

.nav-links .nav-sep {
    background: rgba(0, 0, 0, 0.1);
}

.black-pill a {
    color: #fff !important;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
}

.black-pill a:hover {
    opacity: 0.6;
}

.black-pill:hover {
    background: #111;
}

.logo {
    font-size: 1.2rem;
    font-weight: 900;
    color: #000;
    text-decoration: none;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
}

.nav-links {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    padding: 0.5rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    transition: var(--transition-smooth);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links a:first-child {
    margin-left: 0;
}

.nav-links a:hover {
    color: #000;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-layout {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.hero-text-content {
    text-align: left;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.hero h1 .hero-label {
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.35em;
    display: block;
    color: var(--text-color);
    margin-bottom: 0.2rem;
    opacity: 1;
}

.hero h1 .bold-sans {
    font-family: var(--font-heading);
    font-weight: 900;
    display: block;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.hero-bio {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-image-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    pointer-events: none;
}

.profile-frame {
    position: relative;
    width: 70%;
    height: 100%;
    background: transparent;
    /* overflow: visible to allow top of head/hat to show */
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.profile-img {
    height: 200%;
    width: auto;
    object-fit: contain;

    /* Mirror */
    transform: scaleX(-1);

    /* B&W, High Contrast, Removed Darken */
    filter: grayscale(100%) contrast(1.1) brightness(1.0);
    transition: var(--transition-smooth);

    /* Seamless blending: Fade left and bottom */
    mask-image: linear-gradient(to right, transparent 5%, black 40%, black 100%),
        linear-gradient(to bottom, black 85%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-image: linear-gradient(to right, transparent 5%, black 40%, black 100%),
        linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-composite: source-in;
}

.cta-button {
    position: relative;
    display: inline-block;
    padding: 0.9rem 2.8rem;
    background: var(--text-color);
    color: var(--bg-color);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 100px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--text-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    overflow: hidden;
}

.cta-button:hover {
    background: transparent;
    color: var(--text-color);
    border-color: var(--text-color);
    letter-spacing: 5px;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.1);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: rotate(45deg);
    transition: 0.8s;
    pointer-events: none;
}

.cta-button:hover::after {
    left: 100%;
}

/* --- Contact Section --- */
.contact-cta {
    font-size: clamp(3rem, 12vw, 8.5rem);
    font-weight: 900;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.85;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.contact-cta-wrapper {
    margin-top: 5rem;
}

/* --- About Section --- */
.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 4rem;
    font-family: var(--font-heading);
    font-weight: 800;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
}

.about-text p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
    font-family: var(--font-serif);
    line-height: 1.4;
}

.experience-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-left: var(--border-hairline);
}

.stat {
    padding: 3rem;
    background: transparent;
    border: none;
    border-bottom: var(--border-hairline);
    border-radius: 0;
}

.stat .number {
    font-size: 5rem;
    font-weight: 900;
    color: var(--text-color);
    display: block;
    line-height: 1;
    letter-spacing: -0.05em;
}

/* --- Works - Creative Masonry --- */
.masonry-gallery {
    display: flex;
    gap: 30px;
    align-items: start;
}

.gallery-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.gallery-item {
    display: block;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    transition: var(--transition-smooth);
    background: transparent;
    /* Remove black background */
    border: var(--border-hairline);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
    filter: brightness(1);
    object-fit: cover;
    /* Ensure videos fill space if container forces it, though currently height is auto */
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.gallery-item:hover .item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.item-overlay span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    text-transform: uppercase;
}


/* --- Custom Cursor --- */
.cursor-main {
    display: none;
}

.cursor-outline {
    position: fixed;
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.85);
    border: 0px solid transparent;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border 0.3s, transform 0.1s ease-out;
    transform: translate(-50%, -50%);
    /* Centered by default */
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Contact Page Specific --- */
.contact-page-content.contact-scale-wrapper {
    transform: scale(0.85);
    transform-origin: center top;
}

.contact-page-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: start;
}

.contact-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 0.9;
    margin-bottom: 1rem;
}

.optical-dot {
    position: absolute;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
}

.social-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    transition: var(--transition-smooth);
    opacity: 0.6;
}

.social-link:hover {
    opacity: 1;
}

.email-link {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-family: var(--font-primary);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 300;
    transition: var(--transition-smooth);
    display: inline-block;
    margin-top: 1rem;
    letter-spacing: -0.02em;
    border-bottom: 2px solid transparent;
}

.email-link:hover {
    color: var(--text-color);
    border-bottom-color: var(--text-color);
}

/* --- About Page Specific --- */
.about-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 2rem;
    margin-top: 0;
    padding-top: 0;
}

.about-hero-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 5rem;
    align-items: start;
    margin-bottom: 5rem;
    padding-top: 4rem;
    /* Additional spacing from header */
}

.about-text-side {
    padding-top: 0;
}

.about-photo-side {
    position: relative;
}

.about-photo-frame {
    width: 100%;
    height: 450px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    /* Frame Effect */
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
}

.about-photo-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
    z-index: 2;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-photo:hover {
    transform: scale(1.02);
}

.about-intro {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem 3rem;
}

.about-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    opacity: 0.6;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}



.expertise-list {
    list-style: none;
    padding: 0;
}

.expertise-list li {
    font-size: 1.1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    transition: var(--transition-smooth);
}

.expertise-list li:hover {
    padding-left: 1rem;
    opacity: 1;
    color: var(--accent-primary);
}

/* --- Project Single Page Styles --- */
.project-single-header {
    padding-top: 100px;
    margin-bottom: 4rem;
}

.project-single-title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.project-single-meta {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.project-subtitle {
    font-size: 1.5rem;
    max-width: 800px;
    line-height: 1.4;
    color: var(--text-color);
}

.project-image-stream {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 6rem;
}

.project-full-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 2rem;
}

.img-full {
    grid-column: span 2;
}

.img-half {
    grid-column: span 1;
}

.next-project-nav {
    margin-top: 10rem;
    padding: 10rem 0;
    border-top: var(--border-hairline);
    text-align: center;
}

.next-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.next-title {
    font-size: clamp(2rem, 8vw, 6rem);
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-color);
    line-height: 1;
    transition: var(--transition-smooth);
}

.next-title:hover {
    opacity: 0.7;
    letter-spacing: 0.05em;
}

.exit-button {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    border: var(--border-hairline);
    transition: var(--transition-smooth);
}

.exit-button:hover {
    background: var(--text-color);
    color: var(--bg-color);
    transform: rotate(90deg);
}

/* --- Responsive Logic --- */
.mobile-only {
    display: none;
}

/* Tablet Refinements */
@media (max-width: 1100px) {
    .hero {
        height: auto;
        min-height: 100vh;
        align-items: center;
        padding-top: 120px;
        padding-bottom: 60px;
        overflow: visible;
    }

    .hero-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        gap: 2rem;
    }

    .hero-text-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        order: 2;
    }

    .hero-bio {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
    }

    .hero-image-content {
        order: 1;
        position: relative;
        display: flex;
        justify-content: center;
        width: 100%;
        height: auto;
        max-height: 450px;
        pointer-events: none;
    }

    .profile-frame {
        width: 100%;
        max-width: 400px;
        height: 400px;
        justify-content: center;
    }

    .profile-img {
        height: 100%;
        width: auto;
        object-fit: contain;
        transform: scale(3.5) translateY(-6vh);
    }
}

/* Landscape Mode Adjustments (Mobile/Small Tablets) */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        align-items: center;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-layout {
        align-items: center;
        justify-content: center;
    }

    .hero-text-content {
        margin-top: 0 !important;
    }
}

@media (max-width: 450px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: inline-block;
        /* or inline depending on context */
    }

    .nav-sep.desktop-only {
        display: none;
    }

    /* Header Layout Redesign */
    .glass-nav {
        top: 15px;
        width: 95%;
        padding: 0;
    }

    .nav-content {
        display: flex;
        /* Row layout */
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem;
    }

    .logo {
        font-family: var(--font-primary);
        /* Switched from heading font to primary for better fit */
        font-weight: 700;
        font-size: 0.9rem;
        /* Reduced from 1rem */
        order: 0;
        flex-grow: 1;
        margin: 0;
        white-space: nowrap;
        /* Prevent splitting */
    }

    .nav-left {
        width: auto;
        order: -1;
        flex-shrink: 0;
        /* Prevent shrinking */
    }

    .nav-right {
        width: auto;
        order: 1;
        flex-shrink: 0;
        /* Prevent shrinking */
    }

    .black-pill,
    .nav-links {
        padding: 0.4rem 0.8rem;
        /* Reduced padding */
        gap: 0;
    }

    .black-pill a,
    .nav-links a {
        font-size: 0.7rem;
        /* Reduced from 0.75rem */
        letter-spacing: 0.5px;
        /* Tighter letter spacing */
    }

    /* Clean up previous mobile stack styles */
    .nav-links {
        display: flex;
        width: auto;
    }
}

@media (max-width: 450px) {

    /* Refine spacing for small screens */
    .container {
        padding: 0 0.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .glass-nav {
        top: 10px;
    }

    .logo {
        font-family: var(--font-primary);
        font-size: 0.75rem;
        /* Increased slightly from 0.7rem */
        letter-spacing: -0.2px;
        /* Relaxed spacing */
        font-weight: 600;
        /* Reduce weight slightly */
    }

    .black-pill,
    .nav-links {
        padding: 0.2rem 0.5rem;
        /* Tighter padding */
    }

    .black-pill a,
    .nav-links a {
        font-size: 0.65rem;
        /* Tiny but readable */
    }

    .project-single-header {
        padding-top: 120px;
        /* Reset padding since nav is small again */
    }

    /* Overwrite the previous stack logic if it cascades */
    .nav-content {
        flex-direction: row;
        gap: 0;
    }

    .nav-left,
    .nav-right,
    .black-pill,
    .nav-links {
        width: auto;
        justify-content: center;
    }
}

@media (max-width: 450px) {

    /* Responsive spacing and layout */
    .container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 40px;
        overflow: visible;
        display: flex;
        align-items: center;
    }

    .hero-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 2rem;
        padding: 2vw;
        box-sizing: border-box;
    }

    .hero-text-content {
        order: 2;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .hero-image-content {
        order: 1;
        position: relative;
        height: auto;
        max-height: 300px;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .profile-frame {
        width: 100%;
        max-width: 280px;
        height: 300px;
        justify-content: center;
    }

    .profile-img {
        height: 100%;
        max-height: 300px;
        width: auto;
        object-fit: contain;
        transform: scale(2.5) translateY(-4vh);

    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 2.8rem);
        line-height: 1.1;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .hero h1 .hero-label {
        font-size: 0.35em;
        letter-spacing: 0.15em;
    }

    .hero-bio {
        font-size: clamp(0.9rem, 4.5vw, 1.05rem);
        margin: 1rem auto 2.5rem;
        max-width: 100%;
        line-height: 1.5;
        overflow-wrap: break-word;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .masonry-gallery {
        display: block;
        columns: 2;
        column-gap: 15px;
    }

    .gallery-col {
        display: contents;
    }

    .gallery-item {
        break-inside: avoid;
        margin-bottom: 15px;
    }

    .project-image-stream {
        grid-template-columns: 1fr;
    }

    .img-full,
    .img-half {
        grid-column: span 1;
    }

    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-single-header {
        padding-top: 100px;
    }

    /* About Page Mobile - Photo above title */
    .about-hero-layout {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: -40px;
    }

    .about-photo-side {
        order: -1;
    }

    .about-photo-frame {
        height: 500px;
        border: none;
        padding: 0;
        background: none;
        mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    }

    .about-photo-frame::after {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text-side {
        position: relative;
        z-index: 2;
        margin-top: -120px;
    }

    .about-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .about-intro {
        font-size: 1rem;
    }

    .contact-card {
        padding: 3rem 1.5rem;
    }

    body {
        cursor: auto;
    }

    .cursor-main,
    .cursor-outline {
        display: none;
    }
}


/* --- Project Detail Page --- */
.project-single-header {
    text-align: center;
    padding-top: 120px;
    padding-bottom: 40px;
}

.project-single-title {
    font-size: clamp(1.2rem, 3vw, 3rem);
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.project-single-meta {
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.project-subtitle {
    max-width: 600px;
    margin: 2rem auto 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.project-image-stream {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.project-full-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0;
}

/* creative grid classes */
.img-full {
    grid-column: span 2;
}

.img-half {
    grid-column: span 1;
}

.grid-gap-small {
    gap: 1rem;
}

.grid-gap-large {
    gap: 4rem;
}

.next-project-nav {
    border-top: var(--border-hairline);
    padding: 6rem 0;
    text-align: center;
    margin-top: 4rem;
}

.next-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.next-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition-smooth);
    line-height: 1;
}

.next-title:hover {
    opacity: 0.6;
}

/* End of consolidated mobile styles */


/* --- Sticky Exit Button --- */
.exit-button {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    z-index: 1001;
    transition: var(--transition-smooth);
    opacity: 0.8;
}

.exit-button:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.1);
}

.exit-button svg {
    width: 24px;
    height: 24px;
}

/* --- Language Toggle Button --- */
.lang-toggle-btn {
    position: fixed;
    top: 20px;
    right: 15px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    outline: none;
}

.lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lang-toggle-btn:active {
    transform: scale(0.95);
}

.lang-flag {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    pointer-events: none;
}

.lang-toggle-pop {
    animation: langPop 0.3s ease;
}

@keyframes langPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

@media (max-width: 450px) {
    .lang-toggle-btn {
        top: 14px;
        right: 8px;
        width: 36px;
        height: 36px;
        cursor: auto;
    }

    .lang-flag {
        font-size: 0.6rem;
    }
}