
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        /* Respect user motion preferences */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }

        body {
            font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            line-height: 1.6;
            color: #000;
            background-color: #fff;
            min-height: 100vh;
        }

        /* Swiss Modern Header */
        header {
            background: white;
            padding: 2rem 2rem 1.5rem;
            border-bottom: 8px solid black;
            text-align: center;
        }

        header h1 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: clamp(2.5rem, 8vw, 8rem);
            font-weight: 700;
            line-height: 1;
            color: black;
            margin-bottom: 1rem;
            letter-spacing: -0.02em;
        }
        
        .header-info {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            flex-wrap: wrap;
        }
        
        .header-divider {
            width: 2px;
            height: 1.5rem;
            background: black;
        }
        
        .header-name {
            font-size: clamp(1rem, 2vw, 1.5rem);
            color: black;
            font-weight: 400;
            letter-spacing: 0.05em;
        }

/* Gradient on site description pre-colon text */
		.special-desc {
    /* 1. Define the gradient as a background image */
    background-image: linear-gradient(90deg, #ff006e 16%, #8338ec 67%); 

    /* 2. Clip the background to the text shape */
    /* Use vendor prefixes for maximum compatibility */
    -webkit-background-clip: text;
    background-clip: text; 

    /* 3. Make the text transparent to reveal the background */
    /* Use vendor prefixes for maximum compatibility */
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback for the color property */

    /* Optional: Add a fallback background color for very old browsers */
    background-color: #ff006e; 
	}
		
        /* Skip to main content link for accessibility */
        .skip-link {
            position: absolute;
            top: -40px;
            left: 0;
            background: #000;
            color: #fff;
            padding: 8px;
            text-decoration: none;
            z-index: 100;
        }
        
        .skip-link:focus {
            top: 0;
        }

        header p {
            font-size: clamp(1rem, 2vw, 1.5rem);
            color: #ff6b6b;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.2em;
            text-align: left;
            margin: 0;
        }

        /* Hero Banner */
        .hero-banner {
            max-width: 1400px;
            margin: 1.5rem auto;
            padding: 0 2rem;
            position: relative;
        }

        .hero-container {
            position: relative;
            width: 100%;
            max-width: 100%;
            height: 425px;
            border: 8px solid black;
            overflow: hidden;
            background: #000;
        }

        .hero-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.9;
        }
        
        /* Lazy loading fade-in effect */
        img[loading="lazy"] {
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        img[loading="lazy"].loaded {
            opacity: 1;
        }

        .hero-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            color: white;
            width: 90%;
            z-index: 2;
        }

        .hero-text h2 {
            font-size: clamp(1.75rem, 6vw, 5rem);
            font-weight: 700;
            text-shadow: 0 4px 24px rgba(0,0,0,0.9);
            margin-bottom: 1rem;
            letter-spacing: -0.03em;
            line-height: 1;
            text-transform: uppercase;
            position: relative;
            background: rgba(255, 255, 255, 0.2);
            /* Fallback for browsers that don't support backdrop-filter */
            background: rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 8px;
            padding: 1rem 2rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        /* Fallback for browsers without backdrop-filter support */
        @supports not (backdrop-filter: blur(10px)) {
            .hero-text h2 {
                background: rgba(0, 0, 0, 0.7);
            }
        }

        .hero-text p {
            font-size: clamp(1rem, 2vw, 1.5rem);
            font-weight: 700;
            text-shadow: 0 2px 12px rgba(0,0,0,0.8);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            position: relative;
            margin-top: 1rem;
            background: rgba(255, 255, 255, 0.2);
            /* Fallback for browsers that don't support backdrop-filter */
            background: rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 8px;
            padding: 1rem 2rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        /* Fallback for browsers without backdrop-filter support */
        @supports not (backdrop-filter: blur(10px)) {
            .hero-text p {
                background: rgba(0, 0, 0, 0.7);
            }
        }



        /* Swiss Grid Navigation */
        .rainbow-nav {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0;
            max-width: 1400px;
            margin: 1.5rem auto;
            padding: 0 2rem;
        }

        /* First item spans both columns */
        .rainbow-nav > :first-child {
            grid-column: 1 / -1;
            background: linear-gradient(90deg, #ffbe0b 0%, #fb5607 33%, #ff006e 66%, #8338ec 100%);
            color: white;
        }
        
        .rainbow-nav > :first-child::after {
            background: white;
        }

        .rainbow-box {
            padding: 2rem;
            text-decoration: none;
            color: black;
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            font-size: clamp(0.9rem, 1.5vw, 1rem);
            transition: background-color 0.2s ease, color 0.2s ease;
            display: block;
            text-align: center;
            min-height: 100px;
            line-height: 1.4;
            border: 2px solid black;
            background: white;
            position: relative;
        }
        
        .rainbow-box:focus {
            outline: 3px solid #cc0000;
            outline-offset: 2px;
        }

        .rainbow-box::after {
            content: '';
            position: absolute;
            bottom: 1.5rem;
            left: 50%;
            transform: translateX(-50%);
            width: 60%;
            height: 3px;
            background: #cc0000;
        }

        .rainbow-box:hover {
            background: black;
            color: white;
        }

        .rainbow-box:hover::after {
            background: white;
        }

        a.coming {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
        }
        
        span.coming {
            opacity: 0.5;
            cursor: not-allowed;
        }

        a.coming:hover {
            background: white !important;
            color: black !important;
        }

        a.coming:hover::after {
            background: #cc0000 !important;
        }
        
        span.coming:hover {
            background: white !important;
            color: black !important;
        }
        
        span.coming:hover::after {
            background: #cc0000 !important;
        }

        main {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem;
        }

        /* Masonry Grid Layout - Swiss Style */
        .masonry-grid {
            column-count: 4;
            column-gap: 2rem;
            margin-top: 1.5rem;
        }

        .masonry-item {
            display: inline-block;
            width: 100%;
            margin-bottom: 2rem;
            break-inside: avoid;
            overflow: hidden;
            transition: transform 0.2s ease;
            background: white;
        }

        .masonry-item:hover {
            transform: translateY(-4px);
        }

        .masonry-item img {
            width: 100%;
            height: auto;
            display: block;
            background-color: #f5f5f5; /* Placeholder color while loading */
        }

        footer {
            text-align: center;
            padding: 3rem 2rem;
            color: black;
            background: white;
            border-top: 8px solid black;
            margin-top: 2rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .masonry-grid {
                column-count: 3;
            }
        }

        @media (max-width: 900px) {
            .rainbow-nav {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .masonry-grid {
                column-count: 2;
            }

            .hero-container {
                height: 280px;
            }

            .hero-text h2 {
                padding: 0.75rem 1.5rem;
            }

            .hero-text p {
                padding: 0.75rem 1.5rem;
            }

            .rainbow-box {
                padding: 1.25rem;
                min-height: 85px;
            }

            .rainbow-box::after {
                bottom: 0.75rem;
            }
        }

        @media (max-width: 600px) {
            header, .hero-banner, .rainbow-nav, main, footer {
                padding-left: 1rem;
                padding-right: 1rem;
            }

            .hero-container {
                height: 200px;
            }

            .hero-text {
                width: 95%;
            }

            .hero-text h2 {
                padding: 0.75rem 1rem;
            }

            .hero-text p {
                padding: 0.75rem 1rem;
            }

            .rainbow-box {
                min-height: 70px;
                padding: 1.25rem;
            }

            .rainbow-box::after {
                bottom: 0.75rem;
            }

            .masonry-grid {
                column-count: 1;
                column-gap: 0;
            }

            .masonry-item {
                margin-bottom: 1.5rem;
            }

            footer {
                padding-top: 2rem;
                padding-bottom: 2rem;
            }
        }
        
        /* === Multi-Category Color-Coded Corner Triangles === */
        
        /* Legend styling */
        .corner-legend {
            max-width: 1400px;
            margin: 1.5rem auto;
            padding: 0 2rem;
            display: flex;
            align-items: center;
            gap: 2rem;
        }
        
        .corner-legend h3 {
            font-size: 1.25rem;
            margin-bottom: 0;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            white-space: nowrap;
        }
        
        .legend-items {
            display: flex;
            gap: 0.5rem;
            flex-wrap: nowrap;
        }
        
        .legend-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem;
            background: white;
            border: 2px solid #000;
            white-space: nowrap;
        }
        
        .legend-color {
            width: 30px;
            height: 30px;
            flex-shrink: 0;
            border: 2px solid #000;
        }
        
        .legend-color.gallery {
            background: #ffbe0b;
        }
        
        .legend-color.research {
            background: #fb5607;
        }
        
        .legend-color.dh {
            background: #ff006e;
        }
        
        .legend-color.zine {
            background: #8338ec;
        }
        
        .legend-text {
            font-size: 0.9rem;
            font-weight: 700;
        }
        
        @media (max-width: 600px) {
            .corner-legend {
                padding: 1rem;
                flex-direction: column;
                gap: 1rem;
            }
            
            .corner-legend h3 {
                text-align: center;
            }
            
            .legend-items {
                flex-direction: column;
            }
        }
        
        /* Text wrapper to ensure it stays above triangles and underline */
        .nav-box-text {
            position: relative;
            z-index: 10;
            display: inline-block;
        }

        /* Gallery Category - Top-left corner (yellow/amber) 
           Note: ::before is used since ::after is taken by the underline */
        .rainbow-box.has-gallery::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 40px 50px 0 0;
            border-color: #ffbe0b transparent transparent transparent;
            z-index: 2;
            pointer-events: none;
        }

        /* Research Category - Top-right corner (orange) using span element
           Since ::after is used for underline, we use a span element like DH */
        .research-corner {
            position: absolute;
            top: 0;
            right: 0;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 0 50px 40px 0;
            border-color: transparent #fb5607 transparent transparent;
            z-index: 2;
            pointer-events: none;
        }

        /* Digital Humanities Category - Bottom-right corner (pink/magenta) using span element */
        .dh-corner {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 0 0 40px 50px;
            border-color: transparent transparent #ff006e transparent;
            z-index: 2;
            pointer-events: none;
        }

        /* Zine Category - Bottom-left corner (purple) using span element */
        .zine-corner {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 40px 0 0 50px;
            border-color: transparent transparent transparent #8338ec;
            z-index: 2;
            pointer-events: none;
        }

        /* Responsive triangle sizes */
        
        /* Tablet screens (≤768px): 40px triangles */
        @media (max-width: 768px) {
            .rainbow-box.has-gallery::before {
                border-width: 32px 40px 0 0;
            }

            .research-corner {
                border-width: 0 40px 32px 0;
            }

            .dh-corner {
                border-width: 0 0 32px 40px;
            }

            .zine-corner {
                border-width: 32px 0 0 40px;
            }
        }

        /* Mobile screens (≤480px): 35px triangles */
        @media (max-width: 480px) {
            .rainbow-box.has-gallery::before {
                border-width: 28px 35px 0 0;
            }

            .research-corner {
                border-width: 0 35px 28px 0;
            }

            .dh-corner {
                border-width: 0 0 28px 35px;
            }

            .zine-corner {
                border-width: 28px 0 0 35px;
            }
        }

        /* Large screens (≥1200px): 60px triangles */
        @media (min-width: 1200px) {
            .rainbow-box.has-gallery::before {
                border-width: 48px 60px 0 0;
            }

            .research-corner {
                border-width: 0 60px 48px 0;
            }

            .dh-corner {
                border-width: 0 0 48px 60px;
            }

            .zine-corner {
                border-width: 48px 0 0 60px;
            }
        }

        /* Hide decorative triangles in print view */
        @media print {
            .rainbow-box.has-gallery::before,
            .research-corner,
            .dh-corner,
            .zine-corner {
                display: none;
            }
        }

    