/* ==========================================================
   lurch.dev — Brutalist-Classical Editorial Design
   Colors: #C0B8A8, #F5E0D8, #722F37, #F0ECE8, #5A5A5A, #4A4238, #8B5A3A, #E8E0D8, #DDD8D0
   Fonts: Playfair Display, Work Sans, JetBrains Mono
   ========================================================== */

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

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

body {
    background-color: #C0B8A8;
    color: #4A4238;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.75;
    overflow-x: hidden;
    position: relative;
}

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

/* --- Concrete Texture Overlay (via pseudo-element) --- */
.section-concrete::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
}

.section-concrete {
    position: relative;
}

.section-concrete > * {
    position: relative;
    z-index: 1;
}

/* --- Typography --- */
.logotype {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(48px, 10vw, 140px);
    color: #4A4238;
    letter-spacing: -0.02em;
    line-height: 1;
    opacity: 0;
    transform: translateX(-100%);
}

.logotype.animate-in {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(24px, 4vw, 56px);
    color: #4A4238;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.body-text {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.75;
    color: #4A4238;
    margin-bottom: 1.25rem;
    max-width: 65ch;
}

.meta-caption {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    color: #5A5A5A;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pull-quote {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(20px, 3vw, 36px);
    color: #4A4238;
    line-height: 1.4;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
}

.quote-attribution {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    color: #5A5A5A;
    font-style: normal;
    display: block;
    margin-top: 0.75rem;
}

.logotype-small {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(20px, 3vw, 36px);
    color: #4A4238;
    display: block;
    margin-bottom: 0.5rem;
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    background-color: #C0B8A8;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    padding-left: 15%;
    z-index: 2;
}

.hero-accent-panel {
    position: absolute;
    top: 10%;
    right: 5%;
    width: clamp(200px, 28vw, 380px);
    background-color: #F5E0D8;
    padding: clamp(24px, 3vw, 48px);
    z-index: 2;
    opacity: 0;
    transform: translateX(50px);
}

.hero-accent-panel.animate-in {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1) 600ms,
                transform 600ms cubic-bezier(0.22, 1, 0.36, 1) 600ms;
}

.manifesto-text {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(12px, 0.9vw, 15px);
    line-height: 1.7;
    color: #4A4238;
    margin-bottom: 1rem;
}

/* --- Editorial Grid --- */
.editorial-section {
    padding: clamp(60px, 8vw, 120px) 5%;
    position: relative;
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Grid placement variants */
.full-width {
    /* occupies full grid */
}

.full-width .grid-left-panel {
    grid-column: 1 / 9;
}

.full-width .grid-right-caption {
    grid-column: 10 / -1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.full-width .grid-center-narrow {
    grid-column: 3 / 11;
}

.full-width .grid-right-wide {
    grid-column: 4 / -1;
}

.grid-content-wide {
    grid-column: 1 / -1;
}

/* Section layout variants */
.left-panel {
    width: 65%;
    margin-left: 0;
    margin-right: auto;
}

.right-panel {
    width: 65%;
    margin-left: auto;
    margin-right: 0;
}

.narrow-center {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

/* --- Section Backgrounds --- */
.section-concrete {
    background-color: #C0B8A8;
}

.section-cream {
    background-color: #F5E0D8;
    position: relative;
}

/* --- Marble Panels --- */
.marble-panel {
    background: linear-gradient(135deg, #F0ECE8 0%, #E8E0D8 30%, #F0ECE8 50%, #DDD8D0 70%, #F0ECE8 100%);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.05);
    padding: clamp(40px, 6vw, 80px) clamp(30px, 5vw, 60px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.marble-panel::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 2px solid #722F37;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.marble-panel .ripple-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid #722F37;
    opacity: 0.4;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple-expand 600ms ease-out forwards;
}

@keyframes ripple-expand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.marble-stat {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(36px, 6vw, 72px);
    color: #4A4238;
    display: block;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.marble-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    color: #5A5A5A;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
}

/* --- Organic Blobs --- */
.blob {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.blob svg {
    width: 100%;
    height: 100%;
}

.blob-1 {
    width: 500px;
    height: 500px;
    top: 80vh;
    left: -100px;
}

.blob-2 {
    width: 450px;
    height: 450px;
    top: 200vh;
    right: -80px;
}

.blob-3 {
    width: 550px;
    height: 550px;
    top: 340vh;
    left: -60px;
}

.blob-4 {
    width: 400px;
    height: 400px;
    top: 480vh;
    right: -50px;
}

.blob-transition {
    position: relative;
    width: 100%;
    overflow: visible;
    margin: -40px 0;
    z-index: 1;
    pointer-events: none;
}

.blob-transition svg {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Exposed Structural Lines --- */
.structural-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #5A5A5A;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.line-1 { top: 112vh; }
.line-2 { top: 245vh; }
.line-3 { top: 378vh; }
.line-4 { top: 510vh; }
.line-5 { top: 620vh; }

/* --- Fade-in Sections (scroll reveal) --- */
.fade-section {
    opacity: 0;
    transition: opacity 400ms ease;
}

.fade-section.visible {
    opacity: 1;
}

/* --- Closing Section --- */
.closing-heading {
    margin-bottom: 2rem;
}

.closing-mark {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #5A5A5A;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-content {
        padding-left: 5%;
    }

    .hero-accent-panel {
        position: relative;
        top: auto;
        right: auto;
        width: 90%;
        margin: 2rem auto 0;
    }

    #hero {
        flex-direction: column;
        justify-content: center;
        padding: 10vh 5%;
    }

    .left-panel,
    .right-panel,
    .narrow-center {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .full-width .grid-left-panel,
    .full-width .grid-right-caption,
    .full-width .grid-center-narrow,
    .full-width .grid-right-wide,
    .grid-content-wide {
        grid-column: 1 / -1;
    }

    .blob {
        display: none;
    }

    .structural-line {
        display: none;
    }
}

@media (max-width: 480px) {
    .logotype {
        font-size: clamp(36px, 12vw, 64px);
    }

    .section-heading {
        font-size: clamp(20px, 6vw, 36px);
    }

    .editorial-section {
        padding: 40px 5%;
    }
}
