/* =========================================
   GLOBAL STYLES
   ========================================= */
html {
    scroll-behavior: smooth;
    
    /* Keeps the fixed header from swallowing our section anchors on jump */
    scroll-padding-top: 100px; 
}

/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    /* Typefaces */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Lora', serif;
    
    /* Global Color System */
    --bg-color: #F0F1F3;    /* Cool gallery background gray */
    --text-main: #1A1A1A;   /* Deep charcoal black for main elements */
    --accent: #FF3B30;      /* Vibrant digital red */
    --text-muted: #6B6B6B;  /* Neutral grey for secondary body copy */
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    width: 100%;
    background-color: var(--bg-color);
    position: relative; /* Keeps it locked at the top flow */
    z-index: 10000;
}

.logo {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--text-main);
}

.logo a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: var(--accent); /* Shifts to accent color on interaction */
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    text-align: center;
    max-width: 800px;
    margin: 150px auto 120px;
    padding: 0 20px;
}

.kicker {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 20px;
}

.headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* Responsive fluid sizing */
    font-weight: 500;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 30px;
}

.sub-headline {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   PROJECTS SECTION (Integrated Cards)
   ========================================= */
.projects {
    max-width: 1100px; /* Constrains width so lines don't get too long */
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 60px;
}

/* =========================================
   FRAMED SPLIT PROJECT CARDS
   ========================================= */

.project-card {
    display: flex; 
    flex-direction: row-reverse; /* Alternates image and text placement */
    align-items: center; 
    gap: 30px; 
    
    max-width: 1100px; 
    margin: 0 auto 60px; 
    padding: 20px; /* Outer frame border offset */
    
    background-color: #FFFFFF; 
    border-radius: 30px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); 
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card hover state with slight lift */
.project-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Image container side taking up majority width */
.image-container {
    flex: 6; 
    border-radius: 20px; /* Matches inner curve to parent frame */
    overflow: hidden;
    margin-bottom: 0; 
}

.project-img {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dual image layout variant for split views */
.card-split-view {
    flex: 6; 
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 0;
    aspect-ratio: 16/9; 
}

.image-wrapper {
    flex: 1;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Text side layout */
.project-info {
    flex: 4; 
    padding: 20px 10px 20px 30px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.project-info h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

/* =========================================
   HOVER ANIMATIONS
   ========================================= */

/* Smooth cinematic zoom on hover */
.project-card:hover .project-img,
.project-card:hover .image-wrapper img {
    transform: scale(1.05);
}

/* Arrow nudge animation */
.project-card:hover .view-btn {
    color: var(--accent);
    transform: translateX(8px);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    margin-top: 100px;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-right a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-right a:hover {
    color: var(--accent);
}

/* =========================================
   FOOTER NAVIGATION & ANIMATION
   ========================================= */

.footer-link {
    position: relative;
    font-family: var(--font-sans);
    font-size: 0.95rem; 
    color: var(--text-main);
    text-decoration: none;
    display: inline-block;
    padding: 0 4px; 
    margin: 0 10px; 
    transition: color 0.3s ease;
}

/* Custom bracket animation elements */
.footer-link::before,
.footer-link::after {
    position: absolute;
    opacity: 0;
    color: var(--accent);
    transition: all 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}

/* Left bracket positioning */
.footer-link::before {
    content: '[';
    left: -8px; 
}

/* Right bracket positioning */
.footer-link::after {
    content: ']';
    right: -8px; 
}

/* Hover state triggering bracket slides */
.footer-link:hover {
    color: var(--accent);
}

.footer-link:hover::before {
    opacity: 1;
    transform: translateX(4px); 
}

.footer-link:hover::after {
    opacity: 1;
    transform: translateX(-4px); 
}

/* =========================================
   CASE STUDY TYPOGRAPHY & SPACING
   ========================================= */
.case-study {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.back-link {
    display: inline-block;
    align-self: flex-start; 
    font-family: var(--font-sans);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 40px;
    transition: color 0.3s ease, transform 0.3s ease; 
}

.back-link:hover {
    color: var(--text-main);
    transform: translateX(-5px);
}

.cs-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--text-main);
    margin-bottom: 20px;
}

/* =========================================
   CASE STUDY METADATA GRID
   ========================================= */
.cs-hero {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;  
    margin: 0 auto;
}

.cs-intro {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
}

.cs-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 25px;
    max-width: 600px;
    justify-content: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.meta-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.meta-value {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

/* =========================================
   THE HERO IMAGE (Forced Grid Alignment)
   ========================================= */
.cs-main-image {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 40px !important; 
    margin-bottom: 120px !important; 
    padding: 0 !important;
}

/* Spacing buffer between hero image and main content blocks */
.cs-content {
    margin-top: 120px; 
}

/* Pushes down the first content row cleanly */
.cs-row:first-of-type {
    margin-top: 120px;
}

.cs-main-image img {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 !important;
    object-fit: cover !important;
    border-radius: 16px !important;
}

.cs-row.align-center {
    align-items: center;
}

.rounded-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

.cs-row {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 80px; 
    margin-bottom: 120px; 
}

.cs-text {
    flex: 0 1 420px; 
}

.cs-image {
    flex: 0 1 420px; 
    display: flex;
    justify-content: flex-end; 
}

/* Reversed Row layout option */
.cs-row.reverse .cs-image {
    justify-content: flex-start; 
}

.cs-row.reverse {
    flex-direction: row-reverse;
}

.cs-row.full-width {
    max-width: 1000px;
    flex-wrap: wrap;
}

/* Stacked text over media variant */
.cs-row.vertical {
    flex-direction: column;
    align-items: flex-start; 
    gap: 40px;
}

.cs-row.vertical .cs-text {
    max-width: 800px;
    margin-bottom: 40px; 
}

.cs-text.full-width {
    flex: none;
    max-width: 700px;
}

.cs-text p {
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    margin-top: 15px;
}

.cs-image.full-width {
    width: 100%;
    flex: none;
}

.cs-row:last-child {
    margin-bottom: 0; 
}

.case-study-footer {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* =========================================
   ABOUT PAGE
   ========================================= */
.about-section {
    max-width: 1000px;
    margin: 80px auto 120px;
    padding: 0 40px;
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-direction: row-reverse; 
}

.about-image-container {
    flex: 1;
    position: relative; 
    max-width: 450px;
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.about-text {
    flex: 1.2;
}

.about-text .kicker {
    display: inline-block;
    margin-bottom: 15px;
}

.mascot-vid {
    width: 100%;
    height: auto;
    display: block;
    background: transparent; 
}

/* Mascot container placement on bottom left */
.mascot-wrapper {
    position: absolute;
    bottom: 10px; 
    left: -20px; 
    width: 140px; 
    z-index: 10;
    cursor: pointer;
}

/* Thought bubble tooltip setup */
.thought-bubble {
    position: absolute;
    top: -30px;
    left: 100%; 
    margin-left: 15px; 
    padding: 10px 15px;
    background-color: var(--text-main);
    color: var(--bg-color);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 15px;
    
    border-bottom-left-radius: 2px; 
    border-bottom-right-radius: 15px; 
    
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    pointer-events: none; 
    transition: all 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}

.mascot-wrapper:hover .thought-bubble {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.about-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 30px;
}

.about-bio p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-bio p strong {
    color: var(--text-main);
    font-weight: 500;
}

.btn-primary {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 35px;
    background-color: var(--text-main);
    color: var(--bg-color);
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap; 
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

/* =========================================
   THE UNIFORM IMAGE STAGE 
   ========================================= */
.image-stage {
    width: 100%;
    height: 600px; /* Locks container heights globally */
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    margin-bottom: 40px;
    
    min-height: 0; 
    overflow: hidden; 
}

/* Legacy stage modifier classes */
.stage-barn { background-color: #FFD6E8; } 
.stage-scored { background-color: #FFEED9; } 
.stage-zoo { background-color: #D8EAD3; } 

/* Safeguard inner media from breaking box bounds */
.image-stage img, 
.carousel-slide img, 
.image-stage video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
}

/* B.A.R.N. project stage themes */
.stage-lofi { background-color: #B2C2B5; } 
.stage-exhibition { background-color: #D2BCAE; } 
.stage-hifi { background-color: #CBB3B8; } 
.stage-video { background-color: #B0BBC4; } 

/* Scored project stage themes */
.stage-scored-concept { background-color: #D1D8C5; } 
.stage-scored-code { background-color: #2D3748; } 
.stage-scored-final { background-color: #435334; } 

/* Zooquarium project stage themes */
.stage-zoo-data { background-color: #E2E8F0; } 
.stage-zoo-map { background-color: #D8EAD3; } 

/* =========================================
   FULL-SCREEN IMMERSIVE MENU
   ========================================= */

.desktop-nav {
    display: flex;
    gap: 40px; 
    align-items: center;
}

.desktop-nav a {
    position: relative;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    padding: 0 5px;
    transition: color 0.3s ease;
}

/* Nav bracket elements */
.desktop-nav a::before,
.desktop-nav a::after {
    position: absolute;
    opacity: 0;
    color: var(--accent);
    transition: all 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}

.desktop-nav a::before {
    content: '[';
    left: -10px;
}

.desktop-nav a::after {
    content: ']';
    right: -10px;
}

.desktop-nav a:hover {
    color: var(--accent);
}

.desktop-nav a:hover::before {
    opacity: 1;
    transform: translateX(5px);
}

.desktop-nav a:hover::after {
    opacity: 1;
    transform: translateX(-5px);
}

.hamburger {
    display: none; /* Hidden on desktop viewports */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10001;
}

.hamburger .bar {
    width: 30px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

/* Hamburger transition states */
.hamburger.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.fullscreen-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.menu-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 15px;
}

.menu-footer {
    position: absolute;
    bottom: 50px;
    display: flex;
    gap: 30px;
}

.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--text-main); 
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.menu-link {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 500;
    color: var(--bg-color); 
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.menu-link:hover {
    color: var(--accent); 
    font-style: italic;
    transform: translateY(-5px);
}

.menu-footer a {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: #999999; 
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-footer a:hover {
    color: var(--bg-color);
}

/* =========================================
   INVERT HEADER LOGO & HAMBURGER WHEN OPEN
   ========================================= */
body.menu-active .logo a {
    color: var(--bg-color);
    transition: color 0.4s ease;
}

body.menu-active .hamburger .bar {
    background-color: var(--bg-color);
}

/* =========================================
   PROJECT TAGS (PILLS)
   ========================================= */

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 25px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-main);
    border: 1px solid var(--text-main);
    border-radius: 50px;
    background-color: transparent;
    cursor: default;
    user-select: none;
}

/* =========================================
   WIREFRAME 3-COLUMN GRID
   ========================================= */
.wireframe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    margin-top: 20px;
}

.wireframe-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    background-color: #E5E1DF;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.wireframe-img:hover {
    transform: translateY(-5px);
}

/* =========================================
   PRESENTATION STAGE / CAROUSEL CONTAINER
   ========================================= */
.wireframe-carousel-wrapper {
    width: 100%;
    height: 100%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Slide-in animation sequence */
@keyframes slideIn {
    0% { 
        opacity: 0; 
        transform: translateX(40px); 
    }
    100% { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.wireframe-carousel-wrapper .carousel-slide {
    display: none; 
    height: 100%;
    width: 100%;
}

.wireframe-carousel-wrapper .carousel-slide.active {
    display: flex; 
    justify-content: center;
    align-items: center;
    animation: slideIn 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
}

.wireframe-carousel-wrapper .carousel-slide img {
    width: auto !important; 
    height: 100% !important; 
    max-height: 500px; 
    object-fit: contain !important; 
    margin: 0 auto;
}

/* Scoped mobile device frame wrapper for low-fi stages */
.stage-lofi .carousel-slide img {
    border: 4px solid #FFFFFF !important;
    border-radius: 36px !important;
    background-color: #FFFFFF; 
    box-shadow: 0px 15px 35px rgba(0,0,0,0.1); 
    box-sizing: border-box; 
}

.floating-stage {
    display: flex;
    align-items: center;
    width: 100%;
}

.lo-fi-stage {
    background-color: #ABC4E8; 
}

.hi-fi-stage {
    background-color: #DCE2DB; 
}

.carousel-container {
    position: relative;
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 20px; 
    background-color: transparent !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.lo-fi-stage .carousel-container {
    border: 4px solid #FFFFFF; 
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    display: none;
    width: 100%;
    animation: fadeEffect 0.4s ease-in-out;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
}

/* =========================================
   CAROUSEL HEADER & BUTTONS
   ========================================= */
.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 25px;
}

.carousel-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

.carousel-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: transparent; 
    color: var(--text-main);
    border: 1px solid rgba(0,0,0,0.15); 
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background-color: var(--text-main);
    color: var(--bg-color);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

.carousel-dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    height: 8px;
    width: 8px;
    margin: 0 4px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--text-main);
}

@keyframes fadeEffect {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* =========================================
   CINEMATIC BREAKOUT SHOWCASE
   ========================================= */

.cs-row.cinematic-showcase {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto 120px;
}

.cs-text.centered-lead {
    text-align: center;
    max-width: 650px; 
    flex: none;
}

.video-stage {
    width: 100%;
    background-color: #000000; 
    border-radius: 40px;
    padding: 80px 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12); 
    display: flex;
    justify-content: center;
    align-items: center;
}

.showcase-mp4 {
    width: 100vw;
    max-width: 520px;
    height: auto;
    display: block;
    border-radius: 0; 
    box-shadow: none; 
    margin-top: -30px;
    margin-bottom: -30px;
}

/* =========================================
   ZOOQUARIUM: 2-UP BLUEPRINT GRID
   ========================================= */
.cs-image-grid-2up {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    margin-top: 10px;
}

/* =========================================
   ZOOQUARIUM: LIVE BROWSER WINDOW
   ========================================= */
.browser-window {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
    border: 1px solid rgba(0,0,0,0.05); 
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.browser-header {
    background-color: #F8F9FA;
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    gap: 6px;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.browser-dot.close { background-color: #FF5F56; }
.browser-dot.minimize { background-color: #FFBD2E; }
.browser-dot.maximize { background-color: #27C93F; }

.browser-window img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0; 
}

/* =========================================
   DESKTOP UI Z-PATTERN (Asymmetrical Split)
   ========================================= */
.cs-row.desktop-ui {
    max-width: 1100px; 
    gap: 60px; 
}

.cs-row.desktop-ui .cs-text {
    flex: 0 1 380px; 
}

.cs-row.desktop-ui .cs-image {
    flex: 0 1 680px; 
}

/* =========================================
   Z-PATTERN LAYOUT CONTROLS (Desktop)
   ========================================= */
@media (min-width: 769px) {
    .cs-row.reverse .cs-text {
        padding-left: 5%; 
        padding-right: 0;
    }
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .site-header, .site-footer {
        padding: 30px 20px;
    }
    
    .hero {
        margin: 60px auto 80px;
    }

    .projects {
        padding: 0 20px;
    }

    .site-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cs-row, .cs-row.reverse {
        flex-direction: column; 
        gap: 40px;
    }
    
    .cs-image {
        width: 100%;
    }

    .cs-image-grid-2up {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    
    .project-card {
        flex-direction: column; 
        padding: 15px; 
        gap: 20px; 
    }
    
    .image-container {
        width: 100%; 
    }

    .card-split-view {
        width: 100%;
        aspect-ratio: auto; 
        height: 250px; 
    }

    .project-info {
        padding: 10px 10px 20px 10px; 
        text-align: center; 
        align-items: center; 
    }
    
    .about-grid {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .about-img {
        margin: 0 auto;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mascot-wrapper {
        width: 100px; 
        bottom: 5px; 
        left: -10px;
    }

    .thought-bubble {
        font-size: 0.75rem;
        padding: 6px 10px;
        top: -45px; 
    }

    .wireframe-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
    }
}