/* PAGE SPECIFIC STYLES: INDUSTRIAL HERO */
.weave-hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TRIPTYCH HERO STYLES */
.triptych-hero {
    height: 100vh;
    width: 100%;
    position: relative;
    background: #000;
    overflow: hidden;
    display: flex;
    isolation: isolate;
    /* Create stacking context for blend mode */
}



.triptych-col {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.triptych-col:last-child {
    border-right: none;
}

.slide-strip {
    width: 100%;
    height: 300%;
    /* 3 Slides */
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide-item {
    width: 100%;
    height: 33.333%;
    position: relative;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
}

/* OVERLAY DATA */
.hero-meta-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* z-index removed to allow blend mode relative to siblings */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-label {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    backdrop-filter: blur(5px);
}

.main-title {
    font-family: var(--font-heading);
    font-size: 8vw;
    color: #fff;
    /* White is required to invert colors fully */
    -webkit-text-stroke: 0;
    line-height: 0.9;
    text-transform: uppercase;
    mix-blend-mode: difference;
    /* Creates the "X-Ray" / Negative effect */
    text-align: center;
    pointer-events: none;
}

.col-label {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.7rem;
    transform: rotate(-90deg);
    transform-origin: left bottom;
}

/* ===============================
   TECHNICAL BRIEF SECTION
================================ */

.tech-brief {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed) var(--ease);
}

.tech-brief .container {
    padding: clamp(4rem, 8vh, 10vh) 5%;
}

/* ===============================
   GRID LAYOUT
================================ */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

/* ===============================
   HEADER
================================ */

.tech-head {
    grid-column: 1 / -1;
    padding: clamp(2.5rem, 5vw, 4rem);
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.tech-head h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.tech-head p {
    font-family: 'Manrope', sans-serif;
    color: var(--text-muted);
    max-width: 420px;
}

/* ===============================
   TECH POINTS
================================ */

.tech-point {
    padding: clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);

    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 260px;
    /* Equal visual height */
}

.tech-point span {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.tech-point p {
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ===============================
   MOBILE OPTIMIZATION
================================ */

@media (max-width: 768px) {

    .tech-grid {
        grid-template-columns: 1fr;
        border-left: none;
    }

    .tech-head {
        padding: 2rem 1.5rem;
        border-right: none;
        text-align: left;
    }

    .tech-head p {
        max-width: 100%;
    }

    .tech-point {
        padding: 2rem 1.5rem;
        min-height: unset;
        border-right: none;
    }

    .tech-point span {
        font-size: 0.8rem;
    }

    .tech-point p {
        font-size: 0.95rem;
    }
}

/* ===============================
   SMALL MOBILE (EXTRA COMFORT)
================================ */

@media (max-width: 420px) {
    .tech-head h2 {
        font-size: 1.8rem;
    }

    .tech-point {
        padding: 1.75rem 1.25rem;
    }
}

/* ===============================
   DYNAMIC GALLERY GRID
================================ */
.category-grid-section {
    padding: 5rem 5%;
    min-height: 100vh;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* DIVIDED GALLERY SECTIONS */
.gallery-division-section {
    margin-bottom: 8rem;
}

.gallery-division-section:last-child {
    margin-bottom: 0;
}

.division-header {
    margin-bottom: 3rem;
    max-width: 600px;
}

.division-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    transition: color var(--transition-speed) var(--ease);
}

.division-desc {
    color: var(--text-muted);
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    transition: color var(--transition-speed) var(--ease);
}

.gallery-card {
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    aspect-ratio: 3/4;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.gallery-card.reveal-up {
    /* JS triggers this */
    opacity: 1;
    transform: translateY(0);
}

.card-image {
    width: 100%;
    height: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: grayscale(20%);
}

.gallery-card:hover .card-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.gallery-card:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.card-cat {
    font-family: var(--font-display);
    color: var(--accent-color);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.card-code {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .triptych-hero {
        display: flex;
        flex-direction: row;
        /* Aligned horizontally on mobile */
        height: 100vh;
        overflow: hidden;
    }

    .triptych-col {
        flex: 1;
        /* Each col takes equal width */
        height: 100%;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: none;
    }

    .slide-strip {
        display: flex;
        flex-direction: column;
        /* Vertical strip */
        width: 100%;
        height: 300%;
    }

    .slide-item {
        width: 100%;
        height: 33.333%;
    }

    .hero-meta-layer {
        position: absolute;
        width: 100%;
    }

    .main-title {
        font-size: 20vw;
        /* Increased for better visibility on actual mobile devices */
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .category-grid-section {
        padding: 2rem 0.5rem;
    }

    .card-overlay span {
        font-size: 0.7rem;
        /* Scale down for tiny thumbnails */
    }
}