:root {
    --bone-silk: #f2f0eb;
    --circuit-mint: #d4ede6;
    --bloom-lavender: #e0d5ec;
    --propagation-peach: #f5d5c8;
    --lab-midnight: #1a1e2d;
    --deep-root: #2a2d35;
    --trace-gray: #7d8290;
    --copper-signal: #c49a6c;
    --chlorophyll-pulse: #8bb89e;
}

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

html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    color: var(--deep-root);
    background-color: var(--bone-silk);
    overflow-x: hidden;
}

/* Navigation */
#nav-monogram {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 100;
}

.monogram {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.06em;
    color: var(--deep-root);
    cursor: pointer;
    display: block;
}

.nav-list {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    margin-top: 12px;
    background: rgba(242, 240, 235, 0.9);
    backdrop-filter: blur(8px);
    padding: 0;
    border-radius: 4px;
}

#nav-monogram:hover .nav-list {
    max-height: 200px;
    opacity: 1;
    padding: 8px 12px;
}

.nav-list li {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--trace-gray);
    padding: 6px 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-list li:hover {
    color: var(--deep-root);
}

.nav-num {
    color: var(--copper-signal);
    margin-right: 8px;
}

/* Specimen Labels */
.specimen-label {
    display: inline-block;
    border: 1px solid var(--trace-gray);
    padding: 6px 14px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--trace-gray);
}

/* ===================== */
/* Section 1: The Canopy */
/* ===================== */
.section-canopy {
    width: 100vw;
    height: 100vh;
    background-color: var(--bone-silk);
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

.canopy-label {
    position: absolute;
    top: 48px;
    left: 48px;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--deep-root);
    opacity: 0;
    transition: opacity 1.5s ease;
    z-index: 10;
}

.canopy-illustration {
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 85vh;
    height: 85vh;
    max-width: 90vw;
}

.leaf-circuit-svg {
    width: 100%;
    height: 100%;
}

.trace-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.canopy-specimen {
    position: absolute;
    bottom: 48px;
    right: 48px;
}

/* ========================== */
/* Section 2: The Root Network */
/* ========================== */
.section-root {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    transition: background-color 0.8s ease;
    scroll-snap-align: start;
    padding: 80px 0;
}

.section-root[data-bg="mint"] {
    background-color: var(--circuit-mint);
}

.section-root[data-bg="lavender"] {
    background-color: var(--bloom-lavender);
}

.section-root[data-bg="peach"] {
    background-color: var(--propagation-peach);
}

.root-band {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 5vw;
    gap: 4vw;
}

.root-band.reverse {
    flex-direction: row-reverse;
}

.root-illustration {
    flex: 0 0 55%;
    position: relative;
}

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

.root-illustration .specimen-label {
    margin-top: 16px;
}

.root-text {
    flex: 1;
}

.section-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 4.5rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--deep-root);
    margin-bottom: 24px;
    line-height: 1.1;
}

.root-text p {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.72;
    max-width: 42ch;
    color: var(--deep-root);
}

.root-band.reverse .root-text p {
    margin-left: auto;
    text-align: right;
}

/* ================================== */
/* Section 3: The Germination Chamber */
/* ================================== */
.section-germination {
    width: 100vw;
    min-height: 100vh;
    background-color: var(--lab-midnight);
    position: relative;
    scroll-snap-align: start;
    padding: 80px 0;
}

.chamber-cards {
    position: relative;
    width: 100%;
    height: 80vh;
}

.specimen-card {
    position: absolute;
    width: 180px;
    background: rgba(42, 45, 53, 0.8);
    border: 1px solid rgba(196, 154, 108, 0.3);
    border-radius: 4px;
    padding: 16px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    cursor: pointer;
}

.card-svg {
    width: 100%;
    height: auto;
    margin-bottom: 8px;
}

.card-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--trace-gray);
    display: block;
    text-align: center;
}

.specimen-card:hover {
    transform: scale(1.15) !important;
    border-color: var(--copper-signal);
}

.chamber-cards:hover .specimen-card:not(:hover) {
    transform: scale(0.92) !important;
    opacity: 0.5;
}

/* ========================= */
/* Section 4: The Propagation */
/* ========================= */
.section-propagation {
    width: 100vw;
    min-height: 80vh;
    background-color: var(--bone-silk);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    scroll-snap-align: start;
    padding: 80px 5vw;
}

.propagation-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.06em;
    color: var(--deep-root);
    margin-bottom: 24px;
}

.propagation-text {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    line-height: 1.72;
    color: var(--trace-gray);
    max-width: 42ch;
}

.growth-line-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
}

.growth-line-svg {
    width: 100%;
    height: 100%;
}

.growth-line {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}

/* Pad fade-in */
.pad {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pad.visible {
    opacity: 1;
}
