/* ============================================================
   mysterious.boo — Chrome-Metallic Monochrome Brutalism
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scroll-behavior: auto;
    background-color: #1A1A1A;
}

body {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    color: #F0F0F0;
    background-color: #1A1A1A;
    letter-spacing: 0.02em;
    line-height: 1.7;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    -webkit-font-smoothing: antialiased;
}

/* --- Grid Overlay (graph paper / oscilloscope lines) --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 39px,
        #2C2C2C 39px,
        #2C2C2C 40px
    );
    opacity: 0.4;
}

/* --- Sections --- */
.section {
    min-height: 80vh;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

/* --- Visibility transition (IntersectionObserver) --- */
.section {
    opacity: 0;
    transition: opacity 800ms ease;
}

.section.visible {
    opacity: 1;
}

/* --- HERO SECTION --- */
.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.hero-figure {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0D0D0D;
    background-image:
        /* Simulated high-contrast architectural photo using CSS gradients */
        linear-gradient(175deg, #0D0D0D 0%, #1A1A1A 15%, #0D0D0D 30%, #2C2C2C 45%, #0D0D0D 55%, #1A1A1A 70%, #0D0D0D 85%, #2C2C2C 100%),
        repeating-linear-gradient(90deg, transparent 0px, transparent 80px, #2C2C2C 80px, #2C2C2C 81px),
        repeating-linear-gradient(0deg, transparent 0px, transparent 120px, #1A1A1A 120px, #1A1A1A 121px);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    filter: contrast(1.6) brightness(0.7);
}

/* Concrete texture overlay on hero */
.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 50%, #2C2C2C 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, #1A1A1A 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, #2C2C2C 0%, transparent 60%);
    opacity: 0.6;
}

/* Vertical structural lines simulating reinforced door frames */
.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, transparent 19%, #2C2C2C 19.5%, transparent 20%),
        linear-gradient(90deg, transparent 39%, #1A1A1A 39.3%, transparent 39.6%),
        linear-gradient(90deg, transparent 59%, #2C2C2C 59.5%, transparent 60%),
        linear-gradient(90deg, transparent 79%, #1A1A1A 79.3%, transparent 79.6%),
        linear-gradient(0deg, transparent 30%, #2C2C2C 30.2%, transparent 30.4%),
        linear-gradient(0deg, transparent 65%, #1A1A1A 65.2%, transparent 65.4%);
    opacity: 0.5;
}

/* Chrome overlay pseudo-element */
.chrome-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 40%, rgba(192, 192, 192, 0.12) 0%, transparent 70%);
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 2;
}

.hero-caption {
    position: absolute;
    bottom: 10vh;
    left: 5vw;
    z-index: 3;
}

.hero-caption h1 {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #F0F0F0;
    line-height: 1.1;
}

.hero-subtitle {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #8A8A8A;
    margin-top: 1rem;
}

/* --- IMAGE-DOMINANT BANDS --- */
.section-image-band {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
}

.band-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0D0D0D;
    filter: contrast(1.6) brightness(0.65);
}

/* Drainage infrastructure image simulation */
.band-image-drainage {
    background:
        repeating-linear-gradient(0deg, #0D0D0D 0px, #0D0D0D 8px, #1A1A1A 8px, #1A1A1A 10px, #0D0D0D 10px, #0D0D0D 18px, #2C2C2C 18px, #2C2C2C 19px),
        repeating-linear-gradient(90deg, transparent 0px, transparent 40px, #2C2C2C 40px, #2C2C2C 41px),
        linear-gradient(180deg, #0D0D0D 0%, #1A1A1A 50%, #0D0D0D 100%);
}

/* Ventilation shaft image simulation */
.band-image-ventilation {
    background:
        radial-gradient(circle at 50% 50%, #0D0D0D 20%, #1A1A1A 40%, #0D0D0D 60%, #2C2C2C 80%, #0D0D0D 100%),
        repeating-linear-gradient(45deg, transparent 0px, transparent 20px, #1A1A1A 20px, #1A1A1A 21px),
        linear-gradient(0deg, #1A1A1A 0%, #0D0D0D 100%);
}

/* Stairwell image simulation */
.band-image-stairwell {
    background:
        repeating-conic-gradient(from 0deg at 35% 60%, #0D0D0D 0deg, #1A1A1A 15deg, #0D0D0D 30deg),
        linear-gradient(135deg, #0D0D0D 0%, #2C2C2C 30%, #0D0D0D 60%, #1A1A1A 100%),
        repeating-linear-gradient(90deg, transparent 0px, transparent 60px, #2C2C2C 60px, #2C2C2C 61px);
}

.band-text-strip {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 3vh 5vw;
    background: linear-gradient(0deg, rgba(13, 13, 13, 0.92) 0%, rgba(13, 13, 13, 0.6) 70%, transparent 100%);
}

.band-text-strip .caption-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #B0B0B0;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.band-text-strip .body-text {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: #F0F0F0;
    letter-spacing: 0.02em;
    line-height: 1.7;
    max-width: 65ch;
}

/* --- TEXT-DOMINANT BANDS --- */
.section-text-band {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: #2C2C2C;
    padding: 8vh 5vw;
}

.section-text-band .text-content {
    max-width: 65ch;
    position: relative;
    z-index: 3;
}

.section-text-band h2 {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #F0F0F0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #D4D4D4;
    padding-bottom: 1rem;
    display: inline-block;
}

.section-text-band .body-text {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: #E8E8E8;
    letter-spacing: 0.02em;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.section-text-band .caption-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #8A8A8A;
    text-transform: uppercase;
}

/* --- GEOMETRIC SHAPE MOTIFS --- */
.geometric-shape {
    position: absolute;
    pointer-events: auto;
    z-index: 2;
    transition: transform 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

.geometric-shape:hover {
    transform: scale(1.05);
}

/* Circle */
.shape-circle {
    width: clamp(15vw, 20vw, 25vw);
    height: clamp(15vw, 20vw, 25vw);
    border: 1px solid #C0C0C0;
    border-radius: 50%;
    top: 10%;
    right: -5%;
}

.shape-circle-alt {
    top: auto;
    bottom: 15%;
    right: 8%;
}

/* Square */
.shape-square {
    width: clamp(15vw, 18vw, 25vw);
    height: clamp(15vw, 18vw, 25vw);
    border: 1px solid #C0C0C0;
    top: 15%;
    right: 5%;
}

.shape-square-alt {
    top: 8%;
    right: -3%;
}

/* Triangle */
.shape-triangle {
    width: 0;
    height: 0;
    border-left: clamp(7.5vw, 10vw, 12.5vw) solid transparent;
    border-right: clamp(7.5vw, 10vw, 12.5vw) solid transparent;
    border-bottom: clamp(13vw, 17.3vw, 21.6vw) solid transparent;
    position: absolute;
    top: 5%;
    right: 3%;
}

/* Triangle outline using box-shadow trick */
.shape-triangle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(15vw, 20vw, 25vw);
    height: clamp(13vw, 17.3vw, 21.6vw);
    /* SVG triangle outline as background */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 173'%3E%3Cpolygon points='100,0 200,173 0,173' fill='none' stroke='%23C0C0C0' stroke-width='1'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Reset the border trick for triangle — use SVG approach instead */
.shape-triangle {
    border: none;
    width: clamp(15vw, 20vw, 25vw);
    height: clamp(13vw, 17.3vw, 21.6vw);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 173'%3E%3Cpolygon points='100,0 200,173 0,173' fill='none' stroke='%23C0C0C0' stroke-width='1'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.shape-triangle::after {
    display: none;
}

.shape-triangle-alt {
    top: auto;
    bottom: 10%;
    right: 6%;
}

/* --- FINAL SECTION --- */
.section-final {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0D0D0D;
}

.section-final .text-content {
    text-align: center;
    max-width: 55ch;
}

.section-final h2 {
    color: #C0C0C0;
}

.section-final .body-text {
    color: #B0B0B0;
}

.section-final .caption-text {
    color: #8A8A8A;
    margin-top: 2rem;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .hero-caption {
        bottom: 8vh;
        left: 6vw;
        right: 6vw;
    }

    .section-text-band {
        padding: 6vh 6vw;
    }

    .band-text-strip {
        padding: 3vh 6vw;
    }

    .geometric-shape {
        opacity: 0.5;
    }

    .band-text-strip .body-text,
    .section-text-band .body-text {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-caption h1 {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }

    .geometric-shape {
        opacity: 0.3;
    }
}
