/* eesugi.com - Flat-design earthiness with geological strata */
/* Colors: #d4883a #2a2019 #e8dac4 #4a3728 #f2ebe0 #6b8f71 #c45e2c */
/* Fonts: DM Sans (display), IBM Plex Mono (technical), Space Grotesk (body) */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    color: #2a2019;
    background: #2a2019;
    overflow-x: hidden;
}

/* ===== STRATUM BASE ===== */
.stratum {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.stratum__inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px;
}

.stratum__content {
    position: relative;
    z-index: 2;
}

.stratum__content--right {
    margin-left: auto;
    max-width: 600px;
}

.stratum__content--center {
    text-align: center;
}

.stratum__heading {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 32px;
}

.stratum__heading--light {
    color: #f2ebe0;
}

.stratum__text-block {
    max-width: 540px;
    margin-bottom: 48px;
}

.stratum__text-block--wide {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.stratum__text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4a3728;
}

.stratum__text--light {
    color: #e8dac4;
}

/* ===== FAULT LINES ===== */
.fault-line {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 5;
    line-height: 0;
}

.fault-line--bottom {
    bottom: 0;
}

.fault-line svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ===== SECTION 1: CANOPY (HERO) ===== */
.stratum--canopy {
    background: #2a2019;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 80px;
}

.canopy__cedar-left,
.canopy__cedar-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.15;
    color: #6b8f71;
}

.canopy__cedar-left {
    left: 5%;
}

.canopy__cedar-right {
    right: 5%;
    transform: scaleX(-1);
}

.cedar-svg--large {
    width: 120px;
    height: 400px;
}

.canopy__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    opacity: 0.08;
    color: #d4883a;
    animation: ring-rotate 120s linear infinite;
}

.ring-svg {
    width: 100%;
    height: 100%;
}

@keyframes ring-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.canopy__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.canopy__title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(3.5rem, 9vw, 8rem);
    letter-spacing: -0.03em;
    color: #f2ebe0;
    line-height: 0.9;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(30px);
    animation: fade-up 1.2s ease-out 0.3s forwards;
}

.canopy__subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #d4883a;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 1s ease-out 0.7s forwards;
}

.canopy__tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    animation: fade-in 1.2s ease-out 1.2s forwards;
}

.tagline__line {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    color: #6b8f71;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.tagline__separator {
    color: #4a3728;
    font-size: 1rem;
}

.canopy__scroll-indicator {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0;
    animation: fade-in 1s ease-out 2s forwards;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: #4a3728;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: #d4883a;
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0% { top: -60px; }
    50% { top: 60px; }
    100% { top: -60px; }
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

/* ===== SECTION 2: BARK ===== */
.stratum--bark {
    background: #4a3728;
    padding-bottom: 80px;
}

.stratum--bark .stratum__heading {
    color: #f2ebe0;
}

.stratum--bark .stratum__text {
    color: #e8dac4;
}

.bark__branch-decor {
    position: absolute;
    top: 60px;
    right: 40px;
    width: 180px;
    height: 270px;
    color: #d4883a;
    opacity: 0.2;
    transform: rotate(15deg);
}

.branch-svg {
    width: 100%;
    height: 100%;
}

.bark__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 16px;
}

.bark__card {
    background: #2a2019;
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.bark__card:hover {
    transform: translateY(-4px);
}

.bark__card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #d4883a;
}

.bark__card-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #6b8f71;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 16px;
}

.bark__card-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #f2ebe0;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.bark__card-desc {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9375rem;
    color: #e8dac4;
    line-height: 1.6;
}

/* ===== SECTION 3: AMBER ===== */
.stratum--amber {
    background: #d4883a;
    padding-bottom: 80px;
}

.stratum--amber .stratum__heading {
    color: #2a2019;
}

.stratum--amber .stratum__text {
    color: #4a3728;
}

.stratum--amber .stratum__inner {
    display: flex;
    align-items: center;
    gap: 80px;
}

.amber__collage {
    position: relative;
    width: 400px;
    min-width: 300px;
    height: 500px;
    flex-shrink: 0;
}

.collage__rect {
    position: absolute;
}

.collage__rect--1 {
    top: 0;
    left: 0;
    width: 200px;
    height: 250px;
    background: #c45e2c;
}

.collage__rect--2 {
    top: 80px;
    left: 120px;
    width: 180px;
    height: 180px;
    background: #4a3728;
}

.collage__rect--3 {
    bottom: 0;
    left: 40px;
    width: 240px;
    height: 160px;
    background: #e8dac4;
}

.collage__branch {
    position: absolute;
    top: 40px;
    left: 160px;
    width: 150px;
    height: 225px;
    color: #2a2019;
    z-index: 2;
    opacity: 0.7;
}

.amber__stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 16px;
}

.amber__stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.amber__stat-value {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #2a2019;
    letter-spacing: -0.03em;
    line-height: 1;
}

.amber__stat-unit {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    color: #4a3728;
    letter-spacing: 0.05em;
}

.amber__stat-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    color: #4a3728;
    width: 100%;
    opacity: 0.8;
}

/* ===== SECTION 4: STONE ===== */
.stratum--stone {
    background: #e8dac4;
    padding-bottom: 80px;
}

.stratum--stone .stratum__heading {
    color: #2a2019;
}

.stratum--stone .stratum__text {
    color: #4a3728;
}

.stone__ring-decor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    color: #4a3728;
    opacity: 0.06;
    animation: ring-rotate-reverse 90s linear infinite;
}

@keyframes ring-rotate-reverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

.ring-svg--stone {
    width: 100%;
    height: 100%;
}

.stone__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 16px;
    position: relative;
    z-index: 2;
}

.stone__feature {
    text-align: center;
    padding: 24px;
}

.stone__feature-icon {
    margin-bottom: 20px;
    display: inline-block;
}

.stone__feature-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.375rem;
    color: #2a2019;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.stone__feature-desc {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9375rem;
    color: #4a3728;
    line-height: 1.6;
}

/* ===== SECTION 5: MOSS ===== */
.stratum--moss {
    background: #6b8f71;
    padding-bottom: 80px;
}

.moss__branches {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.branch-svg--left {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%) rotate(-20deg);
    width: 160px;
    height: 240px;
    color: #4a3728;
    opacity: 0.15;
}

.branch-svg--right {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%) rotate(20deg) scaleX(-1);
    width: 160px;
    height: 240px;
    color: #4a3728;
    opacity: 0.15;
}

.moss__cta {
    margin-top: 48px;
}

.moss__button {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f2ebe0;
    border: 2px solid #f2ebe0;
    padding: 16px 40px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.moss__button:hover {
    background: #f2ebe0;
    color: #6b8f71;
}

/* ===== SECTION 6: BEDROCK (FOOTER) ===== */
.stratum--bedrock {
    background: #2a2019;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bedrock__content {
    text-align: center;
    position: relative;
}

.bedrock__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    color: #4a3728;
    opacity: 0.12;
    animation: ring-rotate 80s linear infinite;
}

.ring-svg--bedrock {
    width: 100%;
    height: 100%;
}

.bedrock__info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.bedrock__domain {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #f2ebe0;
    letter-spacing: -0.02em;
}

.bedrock__year {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    color: #6b8f71;
    letter-spacing: 0.1em;
}

.bedrock__text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: #e8dac4;
    line-height: 1.7;
    opacity: 0.7;
    position: relative;
    z-index: 2;
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== PARALLAX STRATA OVERLAP ===== */
.stratum--bark,
.stratum--amber,
.stratum--stone,
.stratum--moss,
.stratum--bedrock {
    position: relative;
    z-index: 1;
}

.stratum--canopy {
    z-index: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .stratum__inner {
        padding: 80px 24px;
    }

    .bark__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stratum--amber .stratum__inner {
        flex-direction: column;
    }

    .amber__collage {
        width: 100%;
        min-width: unset;
        height: 350px;
    }

    .stratum__content--right {
        margin-left: 0;
        max-width: 100%;
    }

    .stone__features {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .canopy__cedar-left,
    .canopy__cedar-right {
        width: 100px;
    }

    .cedar-svg--large {
        width: 80px;
        height: 280px;
    }

    .canopy__ring {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 600px) {
    .stratum__heading {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .canopy__title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .amber__stats {
        gap: 24px;
    }

    .bark__grid {
        gap: 12px;
    }

    .bark__card {
        padding: 24px 20px;
    }

    .canopy__cedar-left {
        left: 2%;
    }

    .canopy__cedar-right {
        right: 2%;
    }
}
