/* ============================================================
   gabs.review — Corporate Deconstructivism
   Broken-grid layout with leather-texture material identity
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #1C1C1E;
    color: #F5F0E8;
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.65;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- SVG Filters (hidden) --- */
.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* --- Leather Texture Overlay --- */
.leather-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        radial-gradient(ellipse at 30% 40%, rgba(160, 82, 45, 0.08) 0%, transparent 70%),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px);
    background-blend-mode: multiply;
    opacity: 0.06;
    filter: url(#leather-grain);
}

/* --- Animations --- */
@keyframes bounceEnter {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    60% {
        transform: translateY(-12px);
        opacity: 1;
    }
    80% {
        transform: translateY(4px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes blobBounce {
    0% {
        transform: translateY(60px) scale(0.8);
        opacity: 0;
    }
    60% {
        transform: translateY(-10px) scale(1.02);
        opacity: 1;
    }
    80% {
        transform: translateY(5px) scale(0.99);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes drawLine {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* --- Animation Classes (applied by JS) --- */
.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.visible[data-animation="bounce-enter"] {
    animation: bounceEnter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.animate-on-scroll.visible[data-animation="weight-shift"] {
    animation: bounceEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.animate-on-scroll.visible[data-animation="weight-shift-slow"] {
    animation: bounceEnter 1s cubic-bezier(0.25, 1.2, 0.5, 1) both;
}

.animate-on-scroll.visible[data-animation="fade-in"] {
    animation: fadeIn 0.6s ease-out both;
}

.blob.animate-on-scroll.visible[data-animation="bounce-enter"] {
    animation: blobBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* --- Construction Lines --- */
.construction-line {
    position: absolute;
    height: 1px;
    background-color: rgba(196, 154, 108, 0.4);
    width: 0;
    transform-origin: left center;
    z-index: 1;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.construction-line.drawn {
    width: 100%;
}

/* --- Zone Base --- */
.zone {
    position: relative;
    width: 100%;
    overflow: hidden;
}


/* ============================================================
   ZONE 1: THE FACADE
   ============================================================ */
#zone-facade {
    height: 100vh;
    background: linear-gradient(180deg, #1C1C1E 0%, #2A2A2E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

#zone-facade::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 30% 40%, rgba(160, 82, 45, 0.08) 0%, transparent 70%),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px);
    background-blend-mode: multiply;
    opacity: 0.03;
    filter: url(#leather-grain);
    pointer-events: none;
}

.zone-facade-inner {
    position: relative;
    width: 100%;
    max-width: 1400px;
    padding: 0 4vw;
}

.construction-line-facade {
    top: 0;
    left: 0;
    width: 0;
    transform: rotate(30deg);
    transform-origin: top left;
    position: absolute;
}

.construction-line-facade.drawn {
    width: 70%;
}

.facade-title-block {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2vw;
    margin-left: -3vw;
}

.facade-title {
    grid-column: 2 / 11;
    font-family: 'Epilogue', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-variation-settings: 'wght' 100;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #F5F0E8;
    transform: rotate(-3deg);
    transition: font-variation-settings 0.8s ease-out;
}

.facade-title.visible {
    font-variation-settings: 'wght' 800;
}

.facade-descriptor-block {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2vw;
    margin-top: 2rem;
}

.facade-descriptor {
    grid-column: 7 / 12;
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.15rem);
    line-height: 1.65;
    color: #7A7A7D;
    transform: rotate(-3deg);
}


/* ============================================================
   ZONE 2: THE FRACTURE
   ============================================================ */
#zone-fracture {
    min-height: 120vh;
    background: linear-gradient(180deg, #2A2A2E 0%, #1C1C1E 100%);
    padding: 8vh 4vw 2vh;
    position: relative;
}

.fracture-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, auto);
    gap: 2vw;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.fracture-panel {
    position: relative;
    padding: clamp(2rem, 3vw, 3.5rem);
    overflow: hidden;
}

/* Panel 1: 5-column, gradient + leather */
.panel-1 {
    grid-column: 1 / 6;
    grid-row: 1 / 5;
    background: linear-gradient(135deg, #6B3A2A 0%, #A0522D 40%, #C49A6C 100%);
    z-index: 3;
}

.panel-1 .leather-overlay {
    opacity: 0.06;
}

/* Panel 2: 4-column, Warm Stone with dark text */
.panel-2 {
    grid-column: 5 / 9;
    grid-row: 3 / 7;
    background-color: #E8E0D4;
    z-index: 4;
}

.panel-2 .panel-heading,
.panel-2 .panel-text {
    color: #1C1C1E;
}

/* Panel 3: 3-column, transparent with border */
.panel-3 {
    grid-column: 8 / 12;
    grid-row: 2 / 6;
    background: transparent;
    border: 1px solid #C49A6C;
    z-index: 3;
}

.panel-heading {
    font-family: 'Epilogue', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-variation-settings: 'wght' 100;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
    transition: font-variation-settings 0.6s ease-out;
}

.panel-heading.visible {
    font-variation-settings: 'wght' 800;
}

.panel-text {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 400;
    font-size: clamp(0.875rem, 1vw, 1.05rem);
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: #F5F0E8;
}

.construction-line-fracture-1 {
    top: 20%;
    left: 10%;
    transform: rotate(-15deg);
}

.construction-line-fracture-1.drawn {
    width: 60%;
}

.construction-line-fracture-2 {
    bottom: 25%;
    right: 5%;
    transform: rotate(20deg);
    transform-origin: right center;
}

.construction-line-fracture-2.drawn {
    width: 45%;
}

/* Organic Blob A */
.blob-a {
    position: absolute;
    width: 40vw;
    height: 40vw;
    right: -10vw;
    top: 15%;
    clip-path: polygon(30% 0%, 70% 5%, 95% 25%, 100% 60%, 85% 90%, 55% 100%, 20% 95%, 0% 70%, 5% 30%);
    background: linear-gradient(135deg, #6B3A2A 0%, #A0522D 40%, #C49A6C 100%);
    opacity: 0;
    z-index: 1;
}


/* ============================================================
   ZONE 3: THE TILT
   ============================================================ */
#zone-tilt {
    min-height: 100vh;
    background: linear-gradient(180deg, #1C1C1E 0%, #2A2A2E 100%);
    padding: 8vh 0;
    position: relative;
    display: flex;
    align-items: center;
}

.construction-line-tilt-top {
    top: 0;
    left: 0;
    width: 0;
}

.construction-line-tilt-top.drawn {
    width: 100%;
}

.tilt-container {
    width: 110vw;
    margin-left: -5vw;
    transform: rotate(5deg);
    background: linear-gradient(135deg, #6B3A2A 0%, #A0522D 40%, #C49A6C 100%);
    position: relative;
    padding: 8vh 0;
    overflow: hidden;
}

.tilt-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 30% 40%, rgba(160, 82, 45, 0.08) 0%, transparent 70%),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px);
    background-blend-mode: multiply;
    opacity: 0.06;
    filter: url(#leather-grain);
    pointer-events: none;
}

.tilt-inner {
    transform: rotate(-5deg);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 8vw;
    position: relative;
}

/* Organic Blob B */
.blob-b {
    position: absolute;
    width: 35vw;
    height: 45vw;
    left: -5vw;
    top: -10vw;
    clip-path: polygon(15% 5%, 60% 0%, 90% 15%, 100% 50%, 90% 85%, 50% 100%, 10% 90%, 0% 50%);
    background-color: #E8E0D4;
    opacity: 0;
    z-index: 0;
}

.blob-b.visible {
    opacity: 0.6;
}

.tilt-quote-block {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4vh 2vw;
}

.tilt-quote-text {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    line-height: 1.3;
    color: transparent;
    background: linear-gradient(90deg, #E8A838 0%, #C49A6C 100%);
    -webkit-background-clip: text;
    background-clip: text;
}


/* ============================================================
   ZONE 4: THE DEPTH
   ============================================================ */
#zone-depth {
    min-height: 140vh;
    background: linear-gradient(180deg, #1C1C1E 0%, #2A2A2E 100%);
    padding: 2vh 4vw 8vh;
    position: relative;
}

#zone-depth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 30% 40%, rgba(160, 82, 45, 0.08) 0%, transparent 70%),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px);
    background-blend-mode: multiply;
    opacity: 0.08;
    filter: url(#leather-grain);
    pointer-events: none;
}

.depth-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(10, auto);
    gap: 2vw;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.depth-panel {
    position: relative;
    padding: clamp(1.5rem, 2.5vw, 3rem);
    overflow: hidden;
}

.depth-panel-1 {
    grid-column: 1 / 6;
    grid-row: 1 / 4;
    background: linear-gradient(135deg, #6B3A2A 0%, #A0522D 40%, #C49A6C 100%);
    transform: rotate(-2deg);
    z-index: 3;
}

.depth-panel-2 {
    grid-column: 5 / 9;
    grid-row: 2 / 5;
    background-color: #E8E0D4;
    transform: rotate(1deg);
    z-index: 4;
}

.depth-panel-2 .depth-panel-heading,
.depth-panel-2 .depth-panel-text {
    color: #1C1C1E;
}

.depth-panel-3 {
    grid-column: 8 / 13;
    grid-row: 1 / 4;
    background: linear-gradient(135deg, #A0522D 0%, #C49A6C 100%);
    transform: rotate(3deg);
    z-index: 2;
}

.depth-panel-4 {
    grid-column: 2 / 7;
    grid-row: 4 / 7;
    background: transparent;
    border: 1px solid #C49A6C;
    transform: rotate(2deg);
    z-index: 3;
}

.depth-panel-5 {
    grid-column: 6 / 10;
    grid-row: 5 / 8;
    background-color: #2A2A2E;
    border: 1px solid rgba(196, 154, 108, 0.3);
    transform: rotate(-1deg);
    z-index: 4;
}

.depth-panel-6 {
    grid-column: 9 / 13;
    grid-row: 4 / 7;
    background: linear-gradient(135deg, #6B3A2A 0%, #C49A6C 100%);
    clip-path: polygon(15% 5%, 60% 0%, 90% 15%, 100% 50%, 90% 85%, 50% 100%, 10% 90%, 0% 50%);
    z-index: 2;
    padding: clamp(2.5rem, 3.5vw, 4.5rem);
}

.depth-panel-heading {
    font-family: 'Epilogue', sans-serif;
    font-size: clamp(1.25rem, 2vw, 2rem);
    font-variation-settings: 'wght' 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    color: #F5F0E8;
}

.depth-panel-text {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 400;
    font-size: clamp(0.8rem, 0.9vw, 1rem);
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: #F5F0E8;
}

.construction-line-depth-1 {
    top: 15%;
    left: 5%;
    transform: rotate(-25deg);
}

.construction-line-depth-1.drawn {
    width: 50%;
}

.construction-line-depth-2 {
    top: 45%;
    left: 30%;
    transform: rotate(15deg);
}

.construction-line-depth-2.drawn {
    width: 55%;
}

.construction-line-depth-3 {
    bottom: 20%;
    right: 10%;
    transform: rotate(-10deg);
    transform-origin: right center;
}

.construction-line-depth-3.drawn {
    width: 40%;
}


/* ============================================================
   ZONE 5: THE CONVERGENCE
   ============================================================ */
#zone-convergence {
    min-height: 80vh;
    background-color: #E8E0D4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15vh 4vw 20vh;
    position: relative;
    overflow: hidden;
}

/* Organic Blob C */
.blob-c {
    position: absolute;
    width: 30vw;
    height: 30vw;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 30% 70% 60% 40% / 50% 30% 70% 50%;
    background-color: #E8A838;
    opacity: 0;
    z-index: 0;
}

.blob-c.visible {
    opacity: 0.2;
}

.convergence-inner {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2vw;
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 2;
    text-align: center;
}

.convergence-title {
    grid-column: 4 / 10;
    font-family: 'Epilogue', sans-serif;
    font-size: clamp(3rem, 9vw, 8rem);
    font-variation-settings: 'wght' 100;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #1C1C1E;
    transition: font-variation-settings 1s ease-out;
}

.convergence-title.visible {
    font-variation-settings: 'wght' 800;
}

.convergence-subtitle {
    grid-column: 4 / 10;
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.2vw, 1.25rem);
    line-height: 1.65;
    color: #7A7A7D;
    margin-top: 2rem;
}


/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 768px) {
    .facade-title-block {
        margin-left: 0;
    }

    .facade-title {
        grid-column: 1 / -1;
        transform: rotate(-2deg);
    }

    .facade-descriptor {
        grid-column: 3 / -1;
    }

    .fracture-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .panel-1,
    .panel-2,
    .panel-3 {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .panel-2 {
        margin-top: -2rem;
    }

    .panel-3 {
        margin-top: -1rem;
    }

    .blob-a {
        width: 60vw;
        height: 60vw;
        right: -20vw;
    }

    .tilt-container {
        width: 115vw;
        margin-left: -7.5vw;
    }

    .tilt-inner {
        padding: 0 6vw;
    }

    .blob-b {
        width: 50vw;
        height: 60vw;
    }

    .depth-grid {
        grid-template-columns: 1fr 1fr;
    }

    .depth-panel-1 {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .depth-panel-2 {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .depth-panel-3 {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .depth-panel-4 {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .depth-panel-5 {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .depth-panel-6 {
        grid-column: 1 / -1;
        grid-row: auto;
        clip-path: none;
        padding: clamp(1.5rem, 2.5vw, 3rem);
    }

    .convergence-title,
    .convergence-subtitle {
        grid-column: 1 / -1;
    }
}
