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

html {
    scroll-behavior: smooth;
    background: #060b06;
    color: #c8d6b0;
    overflow-x: hidden;
}

body {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.7;
    background: #0a0f0a;
    min-height: 100vh;
    overflow-x: hidden;
}

/* === CANVAS BACKGROUND === */
#spore-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* === VINE OVERLAYS === */
.vine-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 120px;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
    opacity: 0.6;
}

.vine-right {
    left: auto;
    right: 0;
    transform: scaleX(-1);
}

.vine-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: vineGrow 4s ease-out forwards;
}

.vine-path-2 {
    animation-delay: 1s;
}

.vine-leaf {
    opacity: 0;
    animation: leafAppear 1s ease forwards;
    animation-delay: 3s;
}

@keyframes vineGrow {
    to { stroke-dashoffset: 0; }
}

@keyframes leafAppear {
    to { opacity: 0.5; }
}

/* === SECTIONS === */
.section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.section-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

/* === MONO LABELS === */
.mono-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #4a5a3a;
    text-transform: none;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

/* === SECTION 1: GERMINATION CHAMBER === */
#germination {
    height: 100vh;
    flex-direction: column;
    background: radial-gradient(ellipse at 50% 80%, rgba(61, 107, 61, 0.08) 0%, transparent 60%);
}

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

.logotype {
    font-family: 'Anybody', sans-serif;
    font-size: clamp(6rem, 15vw, 14rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c8d6b0;
    animation: breathe 8s ease-in-out infinite;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 60px rgba(127, 255, 122, 0.1);
}

@keyframes breathe {
    0%, 100% { font-variation-settings: 'wght' 200; }
    50% { font-variation-settings: 'wght' 700; }
}

.tagline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: #4a5a3a;
    letter-spacing: 0.15em;
    opacity: 0;
    animation: fadeIn 2s ease forwards 1.5s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.scroll-indicator {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.scroll-tendril {
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #3d6b3d, transparent);
    animation: tendrilPulse 3s ease-in-out infinite;
}

@keyframes tendrilPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.3); }
}

/* === SECTION 2: GROWTH RINGS === */
#growth-rings {
    min-height: 100vh;
}

.rings-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.ring {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.ring.visible {
    opacity: 1;
    transform: translateY(0);
}

.ring-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1.5px solid #3d6b3d;
    flex-shrink: 0;
    position: relative;
    background: radial-gradient(circle, rgba(127, 255, 122, 0.03) 0%, transparent 70%);
    transition: border-color 0.6s ease, box-shadow 0.6s ease;
}

.ring:hover .ring-circle {
    border-color: #7fff7a;
    box-shadow: 0 0 30px rgba(127, 255, 122, 0.1);
}

.ring-content {
    flex: 1;
}

.ring-title {
    font-family: 'Anybody', sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: #c8d6b0;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

.ring-text {
    color: #c8d6b0;
    opacity: 0.7;
    font-weight: 300;
    max-width: 550px;
}

/* === SECTION 3: SPECIMENS === */
#specimens {
    min-height: 100vh;
}

.specimen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.specimen-card {
    position: relative;
    background: rgba(10, 15, 10, 0.8);
    border: 1px solid #3d6b3d;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, border-color 0.5s ease;
}

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

.specimen-card:hover {
    border-color: #7fff7a;
}

.specimen-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(127, 255, 122, 0.04) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.specimen-card:hover .specimen-glow {
    opacity: 1;
}

.specimen-frame {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid #3d6b3d;
}

.specimen-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.specimen-info {
    padding: 1.5rem;
}

.specimen-name {
    font-family: 'Anybody', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: #c8d6b0;
    margin-bottom: 0.5rem;
}

.specimen-desc {
    color: #c8d6b0;
    opacity: 0.6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.specimen-status {
    color: #7fff7a;
    opacity: 0.6;
    font-size: 0.7rem;
}

.specimen-card:nth-child(2) .specimen-status {
    color: #8b5cf6;
}

.specimen-card:nth-child(3) .specimen-name {
    color: #6b8f5e;
}

/* === SECTION 4: MYCELIUM === */
#mycelium {
    min-height: 100vh;
}

.mycelium-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mycelium-text {
    max-width: 650px;
    text-align: center;
    margin-bottom: 3rem;
}

.mycelium-text p {
    margin-bottom: 1.5rem;
    color: #c8d6b0;
    opacity: 0.8;
}

#mycelium-canvas {
    width: 100%;
    max-width: 600px;
    height: 300px;
    opacity: 0.6;
}

/* === SECTION 5: COMPOST === */
#compost {
    min-height: 60vh;
}

.compost-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.compost-text {
    max-width: 500px;
    color: #c8d6b0;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.signal-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    color: #d4a017;
    text-decoration: none;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.4s ease;
}

.signal-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4a017;
    transition: width 0.4s ease;
}

.signal-link:hover {
    color: #c2f970;
}

.signal-link:hover::after {
    width: 100%;
}

.decompose-line {
    width: 60px;
    height: 1px;
    background: #3d6b3d;
    margin: 3rem 0;
    opacity: 0.5;
}

.colophon {
    font-size: 0.65rem;
    color: #4a5a3a;
    opacity: 0.5;
    margin-bottom: 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .ring {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .ring-text {
        max-width: 100%;
    }
    .vine-overlay {
        width: 60px;
        opacity: 0.3;
    }
    .specimen-grid {
        grid-template-columns: 1fr;
    }
}
