/* --- 1. RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: #000;
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: white;
    overscroll-behavior: none;
    overflow-x: hidden;
}

body {
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
}

h1 {
  font-family: 'Lexend', sans-serif;
  font-weight: 800; /* Extra thick for headings */
}

/* --- 2. CENTER BLENDED CONTENT --- */
.blended-content {
    position: fixed;
    left: 50%;
    top: 50dvh;
    width: 90vw;
    z-index: 9999;
    pointer-events: none; 
    
    /* This stays blending */
    mix-blend-mode: difference; 

    display: flex;
    flex-direction: column;
    align-items: center; 
    transform: translate3d(-50%, -50%, 0);
    will-change: transform;
    text-align: center;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    gap: 15px;
}

/* --- 3. BOTTOM NON-BLENDING CONTENT --- */
.blended-bottom {
    position: fixed;
    left: 50%;
    bottom: 5dvh; 
    width: 90vw;
    z-index: 10000; /* Higher than center content */
    pointer-events: none; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    transform: translate3d(-50%, 0, 0);
    will-change: transform;
    gap: 10px;
}

/* --- 4. TEXT STYLING --- */
.kern-2 {
    margin-right: .2rem;
}

.kern--1 {
    margin-right: -.1rem;
}

.blended-content h1 {
    font-kerning: normal;
    font-size: clamp(2rem, 10vw, 8rem); 
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -.4rem;
    line-height: 0.9;
    text-align: center;
}

.blended-content p {
    font-size: clamp(1rem, 4vw, 1.5rem); 
    font-weight: 500;
    text-transform: uppercase;
}

.blended-bottom p {
    font-size: clamp(0.8rem, 3vw, 1rem);
    font-weight: 500;
    color: white; /* Ensures visibility over dark images */
}

/* --- 5. INTERACTIVE ELEMENTS (Fixed Underline) --- */
.blended-link, 
.blended-content .underlined,
.blended-bottom .underlined {
    pointer-events: auto;
    color: white;
    cursor: pointer;
    display: inline-block;
}

/* Targeting specifically within parents to beat specificity issues */
.blended-content .underlined,
.blended-bottom .underlined { 
    text-decoration: underline !important; 
}

.blended-link { 
    text-decoration: none; 
}

/* --- 6. THE 960px CONTAINER --- */
.container {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 20px 100px;
    z-index: 1;
}

.flex-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flex-grid img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(1.1) contrast(1.1);
}

/* --- 7. MEDIA QUERIES --- */
@media (max-width: 600px) {
    .blended-content {
        width: 95vw;
        top: 50dvh; 
    }
    
    .blended-bottom {
        width: 95vw;
        bottom: 1.5dvh;
    }

    .blended-content h1 {
        font-size: clamp(1.8rem, 14vw, 5rem);
        letter-spacing: -.16rem;
    }

    .container { padding: 40px 15px; }
    .flex-grid { gap: 20px; }
}