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

:root {
    --color-bg-deep: #1a1d23;
    --color-bg: #22262e;
    --color-bg-card: #2a2e38;
    --color-bg-elevated: #3d4352;
    --color-text-muted: #4a5060;
    --color-text-secondary: #6b7280;
    --color-text: #8b919e;
    --color-text-bright: #b8bcc6;
    --color-text-white: #d1d5de;
    --color-accent: #a89060;
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Crimson Pro', serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
}

.site-anchor {
    position: fixed;
    top: 24px;
    left: 24px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 300;
    color: var(--color-text-white);
    opacity: 0.4;
    z-index: 1000;
    letter-spacing: 0.05em;
    transition: opacity 0.6s ease;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    position: relative;
}

/* Hero Section */
.section-hero {
    background-color: var(--color-bg-deep);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

#hero-organism {
    border: 1px solid var(--color-bg-elevated);
    background: var(--color-bg);
    image-rendering: pixelated;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 3rem;
    color: var(--color-text-white);
    letter-spacing: 0.08em;
}

.specimen-number {
    color: var(--color-accent);
    font-weight: 600;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-line {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Taxonomy Section */
.section-taxonomy {
    background-color: var(--color-bg);
    padding: 120px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 600px;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 2.2rem;
    color: var(--color-text-bright);
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

.section-description {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-secondary);
    font-style: italic;
}

.specimen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    width: 100%;
}

.specimen-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-bg-elevated);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.specimen-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.specimen-card canvas {
    image-rendering: pixelated;
    background: var(--color-bg-deep);
}

.specimen-card .specimen-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Environment Section */
.section-environment {
    background-color: var(--color-bg-deep);
    position: relative;
    overflow: hidden;
}

#bokeh-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.environment-text {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 560px;
}

.environment-description {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-top: 16px;
    line-height: 1.8;
}

/* Closing Section */
.section-closing {
    background-color: var(--color-bg);
    gap: 24px;
}

.closing-quote {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.8rem;
    color: var(--color-text-bright);
    max-width: 640px;
    text-align: center;
    line-height: 1.5;
    border: none;
    padding: 0;
}

.closing-attribution {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-muted);
    letter-spacing: 0.08em;
}

#closing-organism {
    margin-top: 40px;
    image-rendering: pixelated;
    background: var(--color-bg-deep);
    border: 1px solid var(--color-bg-elevated);
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .specimen-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .closing-quote {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .specimen-grid {
        grid-template-columns: 1fr;
    }
}
