/* === BASE & LEATHER TEXTURE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #1a1208;
    background-color: #2c2418;
    background-image:
        repeating-radial-gradient(circle at 7px 7px, rgba(26, 18, 8, 0.15) 1px, transparent 1px),
        repeating-radial-gradient(circle at 13px 23px, rgba(26, 18, 8, 0.1) 1px, transparent 1px),
        repeating-radial-gradient(circle at 23px 13px, rgba(44, 36, 24, 0.12) 1px, transparent 1px),
        linear-gradient(175deg, rgba(26, 18, 8, 0.3), transparent 60%);
    background-size: 29px 29px, 37px 37px, 53px 53px, 100% 100%;
    color: #ede6d6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* === TYPOGRAPHY === */
.spear-text {
    font-family: 'Zen Dots', cursive;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.shield-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
}

.mono-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* === ROOMS === */
.room {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.room-content {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.room-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === VOID (MA) === */
.void {
    height: 60vh;
}

/* === ROOM 1: THE NAMING === */
.room-1 h1 {
    font-size: clamp(4rem, 15vw, 12rem);
    color: #ede6d6;
    text-shadow: 0 0 40px rgba(60, 125, 110, 0.3);
    margin-bottom: 1rem;
}

.room-1 .subtitle {
    font-size: clamp(1.2rem, 3vw, 2.4rem);
    color: #d4c4a0;
    opacity: 0.7;
}

/* === ROOM 2: THE SPEAR === */
.room-2 h2 {
    font-size: clamp(3rem, 12vw, 9rem);
    color: #a83232;
    text-shadow: 0 0 30px rgba(168, 50, 50, 0.4);
}

.room-2 .room-annotation {
    color: #d4c4a0;
    margin-top: 2rem;
    opacity: 0.6;
}

.tension-line {
    width: 0;
    height: 2px;
    margin: 2rem auto 0;
    transition: width 1.5s ease;
}

.spear-line {
    background: linear-gradient(90deg, transparent, #a83232, transparent);
}

.room-content.visible .spear-line {
    width: 200px;
}

/* === ROOM 3: THE SHIELD === */
.room-3 h2 {
    font-size: clamp(3rem, 12vw, 9rem);
    color: #3a7d6e;
    text-shadow: 0 0 30px rgba(58, 125, 110, 0.4);
}

.room-3 .room-annotation {
    color: #d4c4a0;
    margin-top: 2rem;
    opacity: 0.6;
}

.shield-line {
    background: linear-gradient(90deg, transparent, #3a7d6e, transparent);
}

.room-content.visible .shield-line {
    width: 200px;
}

/* === ROOM 4: THE PARADOX === */
.koan {
    font-size: clamp(1.4rem, 4vw, 3rem);
    color: #ede6d6;
    line-height: 1.6;
    border: none;
    max-width: 600px;
}

.collision-point {
    width: 8px;
    height: 8px;
    background: #d4952a;
    border-radius: 50%;
    margin: 3rem auto 0;
    box-shadow: 0 0 20px rgba(212, 149, 42, 0.6), 0 0 60px rgba(212, 149, 42, 0.2);
    animation: pulse-collision 3s ease-in-out infinite;
}

@keyframes pulse-collision {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(2); opacity: 1; }
}

/* === ROOM 5: THE RESOLUTION === */
.resolution-text {
    color: #5c8a6e;
    margin-bottom: 3rem;
}

.enso {
    width: 120px;
    height: 120px;
    border: 3px solid #ede6d6;
    border-radius: 50%;
    margin: 0 auto;
    opacity: 0.6;
    border-top-color: transparent;
    transform: rotate(-30deg);
    transition: transform 2s ease, opacity 1s ease;
}

.room-content.visible .enso {
    transform: rotate(330deg);
    opacity: 0.9;
}

/* === COLOPHON === */
.colophon {
    padding: 4rem 0;
    text-align: center;
    opacity: 0.4;
}

.colophon .mono-text {
    color: #d4c4a0;
    font-size: 0.7rem;
}

/* === KINETIC TITLE HOVER === */
.room-1 h1 {
    cursor: default;
    transition: text-shadow 0.3s ease;
}

.room-1 h1:hover {
    text-shadow: 0 0 80px rgba(58, 125, 110, 0.6), 0 0 120px rgba(168, 50, 50, 0.3);
}

/* === SCROLL-TRIGGERED GLOW ON SPEAR/SHIELD === */
.room-2 h2, .room-3 h2 {
    transition: text-shadow 0.6s ease;
}
