/* ==========================================================================
   eyes.team -- Brutalist Observation Bunker
   Palette (warm-earthy, kiln-fired, zero cool tones):
     #E8DFD0 Raw Concrete    | #2E2A24 Volcanic Charcoal
     #B5573A Kiln Terracotta | #C4B9A8 Warm Ash
     #8B4228 Burnt Sienna    | #5A5246 Charcoal Lite
     #F2ECE2 Bleached Bone   | #1A1714 Earthen Black
   ========================================================================== */

:root {
    --raw-concrete: #E8DFD0;
    --volcanic-charcoal: #2E2A24;
    --kiln-terracotta: #B5573A;
    --warm-ash: #C4B9A8;
    --burnt-sienna: #8B4228;
    --charcoal-lite: #5A5246;
    --bleached-bone: #F2ECE2;
    --earthen-black: #1A1714;

    --font-display: "Roboto Slab", "Roboto", serif;
    --font-body: "Zilla Slab", "Inter", serif;
    --font-mono: "IBM Plex Mono", "Space Mono", monospace;

    --border-rule: 4px solid var(--charcoal-lite);
    --border-thin: 2px solid var(--charcoal-lite);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--raw-concrete);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--volcanic-charcoal);
    background: var(--raw-concrete);
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: 0.01em;
}

/* ==========================================================================
   BLOCK STRUCTURE
   ========================================================================== */

.installation {
    display: block;
    width: 100%;
}

.block {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.block-divider {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--charcoal-lite);
    z-index: 5;
}

/* ==========================================================================
   CONCRETE NOISE TEXTURE (CSS only)
   ========================================================================== */

.concrete-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-conic-gradient(var(--charcoal-lite) 0% 25%, transparent 0% 50%);
    background-size: 3px 3px;
    opacity: 0.04;
    z-index: 1;
    mix-blend-mode: multiply;
}

.concrete-noise--dark {
    background-image:
        repeating-conic-gradient(var(--bleached-bone) 0% 25%, transparent 0% 50%);
    background-size: 3px 3px;
    opacity: 0.05;
    mix-blend-mode: screen;
}

.concrete-noise--heavy {
    opacity: 0.07;
}

/* ==========================================================================
   GEOMETRIC EYE (CSS-only vesica piscis)
   ========================================================================== */

.geo-eye {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geo-eye__almond {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    background: var(--raw-concrete);
    border: 4px solid var(--volcanic-charcoal);
    border-radius: 50% / 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.geo-eye__iris {
    position: relative;
    width: 42%;
    aspect-ratio: 1 / 1;
    background: var(--kiln-terracotta);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geo-eye__iris.is-open {
    transform: scale(1);
}

.geo-eye__pupil {
    position: relative;
    width: 45%;
    aspect-ratio: 1 / 1;
    background: var(--volcanic-charcoal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geo-eye__highlight {
    position: absolute;
    width: 18%;
    aspect-ratio: 1 / 1;
    background: var(--bleached-bone);
    border-radius: 50%;
    top: 18%;
    right: 18%;
}

/* Hero eye (Block 0) */
.geo-eye--hero {
    width: 60vw;
    max-width: 900px;
    transform: scale(0.95);
    animation: heroEyeAdjust 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.geo-eye--hero .geo-eye__almond {
    border-color: var(--volcanic-charcoal);
    background: var(--raw-concrete);
    border-width: 6px;
}

.geo-eye--hero .geo-eye__pupil {
    width: 50%;
}

@keyframes heroEyeAdjust {
    from { transform: scale(0.95); }
    to { transform: scale(1.0); }
}

/* Cell eye (Block 2) */
.geo-eye--cell {
    width: 60%;
}

.geo-eye--cell .geo-eye__almond {
    border-width: 3px;
    background: var(--warm-ash);
}

.geo-eye--cell .geo-eye__iris {
    background: var(--charcoal-lite);
}

.geo-eye--cell.is-active .geo-eye__iris {
    background: var(--kiln-terracotta);
}

.geo-eye--alt .geo-eye__almond {
    background: var(--raw-concrete);
    border-color: var(--burnt-sienna);
}

.geo-eye--alt .geo-eye__pupil {
    background: var(--earthen-black);
}

/* Closing eye (Block 4) */
.geo-eye--closing {
    width: 50vw;
    max-width: 720px;
    transform-origin: center center;
    --closing-rotate: 0deg;
    animation: closingEyeBreathe 4s ease-in-out infinite;
}

.geo-eye--closing .geo-eye__almond {
    background: var(--volcanic-charcoal);
    border-color: var(--bleached-bone);
    border-width: 6px;
}

.geo-eye__iris--inverted {
    background: var(--bleached-bone);
}

.geo-eye__pupil--inverted {
    background: var(--earthen-black);
}

@keyframes closingEyeBreathe {
    0%, 100% { transform: rotate(var(--closing-rotate)) scale(0.98); }
    50%      { transform: rotate(var(--closing-rotate)) scale(1.02); }
}

/* ==========================================================================
   BLOCK 0 -- THE APERTURE
   ========================================================================== */

.block--aperture {
    background: var(--raw-concrete);
    align-items: center;
    justify-content: center;
}

.aperture-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6vw;
}

.aperture-meta {
    position: absolute;
    top: 4vw;
    left: 4vw;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.aperture-meta::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--kiln-terracotta);
    border: 2px solid var(--volcanic-charcoal);
}

/* ==========================================================================
   BLOCK 1 -- THE STATEMENT
   ========================================================================== */

.block--statement {
    background: var(--volcanic-charcoal);
    color: var(--bleached-bone);
    justify-content: center;
}

.ruled-lines {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 47px,
        rgba(242, 236, 226, 0.05) 47px,
        rgba(242, 236, 226, 0.05) 48px
    );
    pointer-events: none;
    z-index: 1;
}

.statement-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-left: 6vw;
    padding-right: 6vw;
    padding-top: 8vh;
    padding-bottom: 8vh;
}

.statement-meta {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.statement-meta::after {
    content: "";
    display: inline-block;
    width: 60px;
    height: 2px;
    background: var(--kiln-terracotta);
}

.hero-domain {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(3.5rem, 10vw, 8rem);
    letter-spacing: 0.04em;
    line-height: 0.9;
    text-transform: uppercase;
    color: var(--bleached-bone);
    margin: 0;
    padding: 0;
    word-break: break-word;
}

.manifesto-line {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: var(--bleached-bone);
    max-width: 56ch;
    margin-top: 3rem;
    border-left: 4px solid var(--kiln-terracotta);
    padding-left: 1.5rem;
}

.statement-coords {
    margin-top: 4rem;
    border-top: 2px solid var(--charcoal-lite);
    padding-top: 1rem;
    max-width: 56ch;
}

/* ==========================================================================
   BLOCK 2 -- THE GRID OF SIGHT
   ========================================================================== */

.block--grid {
    background: var(--warm-ash);
    justify-content: center;
}

.grid-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 6vh 8vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.grid-header {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-bottom: 2px solid var(--charcoal-lite);
    padding-bottom: 1.25rem;
}

.block-heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--volcanic-charcoal);
    line-height: 1.05;
}

.eye-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
    flex: 1;
    border-top: var(--border-thin);
    border-left: var(--border-thin);
}

.eye-cell {
    aspect-ratio: 1 / 1;
    border-right: var(--border-thin);
    border-bottom: var(--border-thin);
    background: var(--raw-concrete);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.4s ease;
}

.eye-cell:nth-child(even) {
    background: var(--bleached-bone);
}

.eye-cell:hover {
    background: var(--raw-concrete);
}

.eye-cell:hover .geo-eye__iris {
    background: var(--kiln-terracotta);
}

.eye-cell__label {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
}

.grid-footer {
    margin-top: 2rem;
    text-align: right;
    border-top: 2px solid var(--charcoal-lite);
    padding-top: 1rem;
}

/* ==========================================================================
   BLOCK 3 -- THE MANIFESTO WALL
   ========================================================================== */

.block--manifesto {
    background: var(--raw-concrete);
    min-height: 100vh;
    padding: 8vh 6vw;
    align-items: center;
    justify-content: flex-start;
}

.manifesto-rivets {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    padding: 4vh 4vw;
    place-items: start;
}

.rivet {
    display: block;
    width: 12px;
    height: 12px;
    background: var(--charcoal-lite);
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--raw-concrete);
}

.manifesto-rivets .rivet:nth-child(1) { justify-self: start; align-self: start; }
.manifesto-rivets .rivet:nth-child(2) { justify-self: end; align-self: start; }
.manifesto-rivets .rivet:nth-child(3) { justify-self: start; align-self: end; }
.manifesto-rivets .rivet:nth-child(4) { justify-self: end; align-self: end; }
.manifesto-rivets .rivet:nth-child(5) { justify-self: center; align-self: start; }
.manifesto-rivets .rivet:nth-child(6) { justify-self: center; align-self: end; }
.manifesto-rivets .rivet:nth-child(7) { justify-self: start; align-self: center; }
.manifesto-rivets .rivet:nth-child(8) { justify-self: end; align-self: center; }

.manifesto-stage {
    position: relative;
    z-index: 2;
    max-width: 42ch;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.manifesto-header {
    border-bottom: 4px solid var(--charcoal-lite);
    padding-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.block-heading--manifesto {
    color: var(--volcanic-charcoal);
}

.manifesto-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.8;
    letter-spacing: 0.05em;
    color: var(--volcanic-charcoal);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1s ease, transform 1s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.manifesto-text.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.manifesto-text p:first-child {
    font-weight: 600;
    border-left: 4px solid var(--kiln-terracotta);
    padding-left: 1rem;
}

.manifesto-footer {
    border-top: 2px solid var(--charcoal-lite);
    padding-top: 1rem;
}

/* ==========================================================================
   BLOCK 4 -- THE CLOSING GAZE
   ========================================================================== */

.block--closing {
    background: var(--earthen-black);
    color: var(--bleached-bone);
    align-items: center;
    justify-content: center;
}

.closing-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6vw;
    gap: 2.5rem;
    background:
        radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.4) 100%);
}

.closing-meta {
    position: absolute;
    top: 4vw;
    left: 4vw;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.closing-meta::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--bleached-bone);
    border: 2px solid var(--bleached-bone);
}

.closing-coords {
    position: absolute;
    bottom: 4vw;
    right: 4vw;
}

.closing-stamp {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bleached-bone);
    border-top: 2px solid var(--bleached-bone);
    border-bottom: 2px solid var(--bleached-bone);
    padding: 0.75rem 2rem;
}

/* ==========================================================================
   MICRO TEXT
   ========================================================================== */

.micro-text {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--charcoal-lite);
    display: inline-block;
}

.micro-text--light {
    color: var(--bleached-bone);
}

/* ==========================================================================
   SECTION INDICATOR (5 squares fixed right)
   ========================================================================== */

.section-indicator {
    position: fixed;
    top: 50%;
    right: 2vw;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 50;
    padding: 8px;
    background: rgba(232, 223, 208, 0.2);
    border: 2px solid var(--charcoal-lite);
}

.indicator-square {
    width: 8px;
    height: 8px;
    background: transparent;
    border: 2px solid var(--charcoal-lite);
    cursor: pointer;
    padding: 0;
    display: block;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    position: relative;
}

.indicator-square:hover {
    transform: scale(1.4);
}

.indicator-square.is-active {
    background: var(--kiln-terracotta);
    border-color: var(--kiln-terracotta);
}

.indicator-square::after {
    content: attr(data-label);
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--charcoal-lite);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    background: var(--raw-concrete);
    padding: 4px 8px;
    border: 1px solid var(--charcoal-lite);
}

.indicator-square:hover::after {
    opacity: 1;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .eye-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }

    .geo-eye--hero {
        width: 80vw;
    }

    .geo-eye--closing {
        width: 70vw;
    }

    .statement-stage {
        padding-left: 6vw;
        padding-right: 6vw;
    }

    .manifesto-rivets {
        display: none;
    }

    .section-indicator {
        right: 1vw;
    }

    .indicator-square::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .eye-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
    }

    .hero-domain {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
}
