/* ==========================================
   double-standard.xyz - Bauhaus Duality Study
   Colors: #d4a054, #e8d5c4, #a85540, #f5ede3, #4a5568, #2d2926, #c1694f, #d4a08a
   Fonts: DM Serif Display, Space Grotesk, Inter
   ========================================== */

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

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #f5ede3;
    color: #2d2926;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Typography --- */
.heading-geometric {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: #2d2926;
    text-transform: uppercase;
}

.heading-watercolor {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: #c1694f;
}

.heading-watercolor em {
    font-style: italic;
}

.section-heading {
    font-size: clamp(2rem, 5vw, 4.5rem);
    margin-bottom: 2rem;
}

h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #2d2926;
    margin-bottom: 0.5rem;
}

p {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
}

/* --- Section Full (100vh) --- */
.section-full {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* ==========================================
   OPENING SPLIT
   ========================================== */
#opening-split {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    height: 100vh;
}

.split-geometric {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5ede3;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 6vw;
    z-index: 2;
}

.split-watercolor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(168deg, transparent 48%, #e8d5c4 48%, #e8d5c4 52%, #d4a08a 100%);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 4rem 6vw;
    z-index: 2;
}

.split-content {
    max-width: 500px;
}

.split-watercolor .split-content {
    text-align: right;
}

.tagline-geometric {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 300;
    color: #4a5568;
    margin-top: 1.5rem;
    letter-spacing: 0.05em;
}

.tagline-watercolor {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 300;
    font-style: italic;
    color: #a85540;
    margin-top: 1.5rem;
}

/* Geometric Shapes */
.geometric-shapes {
    position: absolute;
    top: 10%;
    right: 35%;
    z-index: 1;
    opacity: 0.15;
}

.geo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #2d2926;
    position: absolute;
    top: 0;
    left: 0;
}

.geo-rect {
    width: 80px;
    height: 80px;
    border: 3px solid #d4a054;
    position: absolute;
    top: 60px;
    left: 80px;
    transform: rotate(15deg);
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid transparent;
    border-bottom-color: #a85540;
    opacity: 0.5;
    position: absolute;
    top: 20px;
    left: 160px;
}

/* Watercolor Blobs */
.watercolor-blobs {
    position: absolute;
    bottom: 15%;
    left: 35%;
    z-index: 1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
}

.blob-1 {
    width: 200px;
    height: 200px;
    background: #d4a08a;
    opacity: 0.4;
    top: -50px;
    left: -100px;
}

.blob-2 {
    width: 150px;
    height: 150px;
    background: #c1694f;
    opacity: 0.3;
    top: 20px;
    left: 0;
}

.blob-3 {
    width: 180px;
    height: 180px;
    background: #d4a054;
    opacity: 0.25;
    top: -80px;
    left: 50px;
}

/* Diagonal Divider */
.diagonal-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(168deg, transparent calc(50% - 2px), #2d2926 calc(50% - 2px), #2d2926 calc(50% + 2px), transparent calc(50% + 2px));
    z-index: 3;
    pointer-events: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: bobUpDown 2s ease-in-out infinite;
}

@keyframes bobUpDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ==========================================
   SKYLINE BANDS
   ========================================== */
.skyline-band {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #2d2926;
    position: relative;
}

.skyline-band .skyline-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.skyline-dissolved {
    background: #e8d5c4;
}

/* ==========================================
   DIAGONAL SECTIONS
   ========================================== */
.diagonal-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.diagonal-band {
    position: relative;
    padding: 6rem 6vw;
    min-height: 40vh;
}

.band-geometric {
    background: #f5ede3;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%);
}

.band-watercolor {
    background: linear-gradient(135deg, #e8d5c4 0%, #d4a08a 50%, #c1694f 100%);
    clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
    margin-top: -4vw;
}

.diagonal-reverse .band-watercolor {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%);
    margin-top: 0;
}

.diagonal-reverse .band-geometric {
    clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
    margin-top: -4vw;
}

.band-content {
    max-width: 1200px;
    margin: 0 auto;
}

.band-watercolor .section-heading {
    color: #f5ede3;
}

.band-watercolor .watercolor-text {
    color: #f5ede3;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    max-width: 700px;
    line-height: 1.8;
    font-style: italic;
}

/* --- Geo Grid (Cards) --- */
.geo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.geo-card {
    background: white;
    border: 2px solid #2d2926;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.geo-card:hover {
    transform: translateY(-4px) rotate(-1deg);
    box-shadow: 8px 8px 0 #d4a054;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

/* Watercolor shapes */
.watercolor-shapes {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.wc-shape {
    border-radius: 50%;
    filter: blur(20px);
}

.wc-1 {
    width: 100px;
    height: 100px;
    background: #f5ede3;
    opacity: 0.4;
}

.wc-2 {
    width: 80px;
    height: 80px;
    background: #d4a054;
    opacity: 0.3;
}

.wc-3 {
    width: 120px;
    height: 120px;
    background: #d4a08a;
    opacity: 0.35;
}

/* ==========================================
   TRANSITION ZONE
   ========================================== */
#transition-zone {
    background: linear-gradient(90deg, #f5ede3 0%, #f5ede3 45%, #e8d5c4 55%, #d4a08a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.transition-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: end;
    max-width: 1200px;
    width: 100%;
    padding: 4rem 6vw;
}

.transition-left,
.transition-right {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    justify-content: center;
}

.morph-building svg,
.dissolved-building svg {
    width: 80px;
    height: auto;
    display: block;
}

.transition-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.transition-heading {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #2d2926;
    line-height: 1.2;
}

.transition-line {
    width: 2px;
    height: 120px;
    background: linear-gradient(to bottom, #2d2926 0%, #2d2926 50%, #c1694f 50%, transparent 100%);
    position: relative;
}

.transition-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c1694f;
}

/* ==========================================
   MANIFEST SECTION
   ========================================== */
#manifest {
    background: #2d2926;
    padding: 8rem 6vw;
    min-height: auto;
}

.manifest-container {
    max-width: 900px;
    margin: 0 auto;
}

.manifest-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(212, 160, 84, 0.2);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.manifest-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.manifest-number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #d4a054;
    opacity: 0.6;
    padding-top: 0.5rem;
}

.manifest-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.manifest-geo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #f5ede3;
    letter-spacing: 0.02em;
}

.manifest-wc {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #d4a08a;
    opacity: 0.7;
    filter: blur(0.5px);
}

.manifest-wc em {
    font-style: italic;
}

/* ==========================================
   INVERSION SECTION
   ========================================== */
#inversion {
    display: flex;
    min-height: 80vh;
}

.inversion-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 80vh;
}

.inversion-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.panel-left {
    background: #f5ede3;
}

.panel-right {
    background: linear-gradient(135deg, #e8d5c4 0%, #d4a08a 60%, #c1694f 100%);
}

.inversion-content {
    text-align: center;
}

.inversion-content .heading-geometric {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2rem;
}

.inversion-content .heading-watercolor {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2rem;
    color: #f5ede3;
}

.mini-skyline {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.mini-skyline svg {
    width: 100%;
    height: auto;
}

/* ==========================================
   FOOTER / CLOSING
   ========================================== */
#closing {
    background: #2d2926;
    padding: 6rem 6vw 3rem;
    text-align: center;
}

.closing-content {
    max-width: 900px;
    margin: 0 auto;
}

.closing-split-text {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.3em;
}

.closing-geo {
    color: #f5ede3;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.closing-wc {
    color: #d4a08a;
    font-style: italic;
    font-weight: 400;
    filter: blur(0.5px);
}

.closing-tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    color: #4a5568;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
}

.closing-skyline {
    width: 100%;
    margin-bottom: 3rem;
    opacity: 0.5;
}

.closing-skyline .skyline-svg {
    width: 100%;
    height: 60px;
    display: block;
}

.closing-domain {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #d4a054;
    letter-spacing: 0.2em;
    text-transform: lowercase;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.split-geometric .split-content {
    animation: fadeInLeft 1.2s ease-out 0.3s both;
}

.split-watercolor .split-content {
    animation: fadeInRight 1.2s ease-out 0.5s both;
}

.diagonal-band {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.diagonal-band.visible {
    opacity: 1;
    transform: translateY(0);
}

.geo-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.geo-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.geo-card:nth-child(1) { transition-delay: 0.1s; }
.geo-card:nth-child(2) { transition-delay: 0.2s; }
.geo-card:nth-child(3) { transition-delay: 0.3s; }

/* Scroll-driven parallax classes */
.parallax-slow {
    transition: transform 0.1s linear;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .geo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .manifest-dual {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .manifest-item {
        grid-template-columns: 40px 1fr;
        gap: 1rem;
    }

    .inversion-container {
        grid-template-columns: 1fr;
    }

    .transition-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .transition-left,
    .transition-right {
        justify-content: center;
    }

    .split-geometric {
        clip-path: polygon(0 0, 100% 0, 100% 50%, 0 55%);
        align-items: center;
        padding: 3rem 5vw;
    }

    .split-watercolor {
        clip-path: polygon(0 50%, 100% 45%, 100% 100%, 0 100%);
        align-items: center;
        padding: 3rem 5vw;
    }

    .split-watercolor .split-content {
        text-align: center;
    }

    .diagonal-divider {
        background: linear-gradient(175deg, transparent calc(50% - 1px), #2d2926 calc(50% - 1px), #2d2926 calc(50% + 1px), transparent calc(50% + 1px));
    }

    .closing-split-text {
        flex-direction: column;
        gap: 0;
    }

    .band-geometric,
    .band-watercolor,
    .diagonal-reverse .band-watercolor,
    .diagonal-reverse .band-geometric {
        clip-path: none;
        margin-top: 0;
    }
}
