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

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

body {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    color: #2C2420;
    background: #F5EFE0;
    overflow-x: hidden;
}

/* Design palette: #D4C5A9 #2C2420 #5C4033 #C0785C #8B7355 #B8860B #F5EFE0 */

/* === Parchment Overlay === */
.parchment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.06;
    mix-blend-mode: multiply;
    z-index: 1000;
}

/* === Floating Elements === */
#floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.floater {
    position: absolute;
    transition: transform 0.3s ease-out;
}

.floater.organic {
    width: 40px;
    height: 40px;
    background: rgba(192, 120, 92, 0.2);
    border-radius: 30% 70% 60% 40% / 50% 60% 30% 70%;
    animation: blobMorph 15s ease-in-out infinite;
}

/* === Sections === */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* === Hero Section === */
#hero {
    background: linear-gradient(90deg, #5C4033 50%, #F5EFE0 50%);
}

.hero-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.hero-fan {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 80%;
    height: 80%;
    opacity: 0.4;
}

.hero-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-kanji {
    font-family: 'Noto Serif JP', serif;
    font-weight: 900;
    font-size: clamp(6rem, 15vw, 14rem);
    line-height: 1;
    letter-spacing: 0.05em;
}

.kanji-spear {
    color: #F5EFE0;
}

.kanji-shield {
    color: #2C2420;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.8rem);
    letter-spacing: 0.15em;
    color: #B8860B;
    margin-top: 1.5rem;
}

/* === Hero Blobs === */
.hero-blob {
    position: absolute;
}

.blob-1 {
    width: 250px;
    height: 250px;
    background: rgba(192, 120, 92, 0.35);
    border-radius: 30% 70% 60% 40% / 50% 60% 30% 70%;
    top: 15%;
    right: 15%;
    animation: blobMorph 20s ease-in-out infinite;
}

.blob-2 {
    width: 180px;
    height: 180px;
    background: rgba(212, 197, 169, 0.3);
    border-radius: 60% 40% 30% 70% / 40% 50% 60% 50%;
    bottom: 20%;
    right: 30%;
    animation: blobMorph2 18s ease-in-out infinite;
}

.blob-3 {
    width: 150px;
    height: 150px;
    background: rgba(139, 115, 85, 0.25);
    border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%;
    top: 50%;
    right: 60%;
    animation: blobMorph3 22s ease-in-out infinite;
}

@keyframes blobMorph {
    0%, 100% { border-radius: 30% 70% 60% 40% / 50% 60% 30% 70%; }
    25% { border-radius: 50% 50% 40% 60% / 40% 70% 50% 30%; }
    50% { border-radius: 70% 30% 50% 50% / 60% 40% 70% 40%; }
    75% { border-radius: 40% 60% 70% 30% / 50% 50% 40% 60%; }
}

@keyframes blobMorph2 {
    0%, 100% { border-radius: 60% 40% 30% 70% / 40% 50% 60% 50%; }
    33% { border-radius: 40% 60% 50% 50% / 60% 30% 40% 70%; }
    66% { border-radius: 50% 50% 60% 40% / 30% 70% 50% 40%; }
}

@keyframes blobMorph3 {
    0%, 100% { border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%; }
    50% { border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%; }
}

/* === Spear Section === */
.section-spear {
    background: #5C4033;
    color: #F5EFE0;
}

.spear-fan-bg {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 60%;
    height: 80%;
    opacity: 0.3;
}

/* === Shield Section === */
.section-shield {
    background: #F5EFE0;
    color: #2C2420;
}

.shield-blob {
    position: absolute;
}

.shield-blob-1 {
    width: 300px;
    height: 300px;
    background: rgba(192, 120, 92, 0.25);
    border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%;
    top: 10%;
    right: 5%;
    animation: blobMorph 22s ease-in-out infinite;
}

.shield-blob-2 {
    width: 200px;
    height: 200px;
    background: rgba(212, 197, 169, 0.3);
    border-radius: 60% 40% 30% 70% / 40% 50% 60% 50%;
    bottom: 15%;
    left: 5%;
    animation: blobMorph2 19s ease-in-out infinite;
}

.shield-blob-3 {
    width: 250px;
    height: 250px;
    background: rgba(139, 115, 85, 0.2);
    border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%;
    top: 40%;
    left: 60%;
    animation: blobMorph3 25s ease-in-out infinite;
}

.shield-blob-4 {
    width: 170px;
    height: 170px;
    background: rgba(192, 120, 92, 0.15);
    border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
    top: 60%;
    left: 20%;
    animation: blobMorph 17s ease-in-out infinite reverse;
}

/* === Section Text === */
.section-text {
    position: relative;
    z-index: 10;
    max-width: 650px;
    padding: 2rem;
}

.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    color: #F5EFE0;
}

.section-heading-dark {
    color: #2C2420;
}

.section-body {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: clamp(1.05rem, 1.2vw, 1.25rem);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    color: #F5EFE0;
}

.section-body-dark {
    color: #2C2420;
}

/* === Collision Section === */
.section-collision {
    background: #F5EFE0;
}

.collision-geo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #5C4033;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.collision-fan-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 70%;
    height: 70%;
    opacity: 0.25;
}

.collision-organic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.collision-blob {
    position: absolute;
}

.collision-blob-1 {
    width: 280px;
    height: 280px;
    background: rgba(192, 120, 92, 0.3);
    border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%;
    bottom: 15%;
    right: 10%;
    animation: blobMorph 20s ease-in-out infinite;
}

.collision-blob-2 {
    width: 180px;
    height: 180px;
    background: rgba(212, 197, 169, 0.35);
    border-radius: 60% 40% 30% 70% / 40% 50% 60% 50%;
    bottom: 40%;
    right: 35%;
    animation: blobMorph2 16s ease-in-out infinite;
}

.collision-blob-3 {
    width: 150px;
    height: 150px;
    background: rgba(139, 115, 85, 0.25);
    border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%;
    top: 60%;
    right: 55%;
    animation: blobMorph3 23s ease-in-out infinite;
}

.collision-seam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.seam-path {
    animation: seamMorph 8s ease-in-out infinite alternate;
}

@keyframes seamMorph {
    0% { d: path("M 10,0 L 0,100"); }
    50% { d: path("M 10,0 C 7,30 3,60 0,100"); }
    100% { d: path("M 10,0 C 4,25 8,70 0,100"); }
}

.section-heading-collision {
    color: #F5EFE0;
}

.section-body-collision {
    color: #F5EFE0;
}

/* === Koan Section === */
.section-koan {
    background: #F5EFE0;
}

.koan-content {
    text-align: center;
    padding: 2rem;
}

.koan-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(3.5rem, 9vw, 8rem);
    letter-spacing: 0.05em;
    line-height: 1.2;
    color: #2C2420;
}

/* === Art-Deco Dividers === */
.deco-divider {
    position: relative;
    z-index: 10;
    text-align: center;
    background: #F5EFE0;
    padding: 0;
}

.deco-divider svg {
    display: block;
    margin: 0 auto;
    max-width: 40%;
    height: 60px;
}

/* === Reveal Animations === */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Mobile === */
@media (max-width: 768px) {
    .hero-kanji {
        font-size: clamp(4rem, 20vw, 8rem);
    }

    .section-text {
        padding: 2rem 1.5rem;
    }

    .blob, .hero-blob, .shield-blob, .collision-blob {
        transform: scale(0.6);
    }

    .deco-divider svg {
        max-width: 60%;
    }
}
