/* haskell.monster - Bauhaus Laboratory Bestiary */

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

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

body {
    background: #0F1A0B;
    color: #A8B89A;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
}

/* Circuit Traces */
.circuit-traces {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}
.circuit-svg { width: 100%; height: 100%; }
.trace-line { stroke-dasharray: 400; stroke-dashoffset: 400; animation: drawTrace 2s ease forwards; }
@keyframes drawTrace { to { stroke-dashoffset: 0; } }

/* HUD Panel */
.hud-panel--left {
    position: fixed; top: 50%; left: 24px; transform: translateY(-50%);
    z-index: 50; display: flex; flex-direction: column; gap: 16px; width: 160px;
}
.hud-readout {
    border: 1px solid #2D5016; padding: 8px 12px; position: relative;
    background: rgba(15, 26, 11, 0.9);
}
.hud-readout::before, .hud-readout::after {
    content: ''; position: absolute; width: 8px; height: 8px; border-color: #4A7C2E; border-style: solid;
}
.hud-readout::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.hud-readout::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.hud-label {
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 400;
    letter-spacing: 0.08em; color: #6B8F5E; display: block; text-transform: uppercase;
}
.hud-value {
    font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 500;
    color: #4A7C2E; display: block; margin-top: 2px;
}

/* Main Content */
.observation-deck { position: relative; z-index: 2; }

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

.section-inner { width: 100%; max-width: 1000px; }

/* HUD Frame Brackets */
.hud-frame { position: relative; padding: 32px; }
.bracket {
    position: absolute; width: 20px; height: 20px; border-color: #4A7C2E; border-style: solid;
    opacity: 0; transition: opacity 400ms ease, transform 400ms ease; transform: scale(1.2);
}
.bracket.visible { opacity: 1; transform: scale(1); }
.bracket--tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.bracket--tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.bracket--bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.bracket--br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

/* Specimen Layout */
.specimen-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: center; }
.specimen-info { min-width: 0; }
.specimen-visual { min-width: 0; }

/* Typography */
.hero-title {
    font-family: 'Bebas Neue', sans-serif; font-size: 64px; color: #E8E2D6;
    letter-spacing: 0.08em; line-height: 1.05; text-transform: uppercase;
}
.hero-subtitle {
    font-family: 'Work Sans', sans-serif; font-weight: 300; font-size: 20px;
    color: #6B8F5E; margin-top: 16px;
}
.hero-desc {
    font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #4A7C2E;
    letter-spacing: 0.04em; margin-top: 8px;
}

.specimen-badge {
    display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
    font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: #4A7C2E;
    border: 1px solid #2D5016; border-radius: 2px; padding: 2px 8px; margin-bottom: 12px;
}
.specimen-name {
    font-family: 'Bebas Neue', sans-serif; font-size: 48px; color: #E8E2D6;
    letter-spacing: 0.08em; line-height: 1.1; text-transform: uppercase;
}
.specimen-tagline { font-weight: 300; font-size: 16px; color: #6B8F5E; margin-top: 8px; }

.type-sig {
    margin-top: 20px; font-family: 'IBM Plex Mono', monospace; font-size: 14px;
    color: #4A7C2E; line-height: 1.65;
}
.type-sig code { display: block; }

.specimen-laws { margin-top: 16px; }
.law {
    font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #6B8F5E;
    line-height: 1.6; margin-bottom: 4px;
}

/* Danger Bar */
.danger-bar { margin-top: 24px; }
.danger-label {
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em;
    color: #C4A035; text-transform: uppercase; display: block; margin-bottom: 6px;
}
.danger-track {
    width: 100%; height: 4px; background: rgba(45, 80, 22, 0.5); border-radius: 2px; overflow: hidden;
}
.danger-fill { height: 100%; background: linear-gradient(90deg, #4A7C2E, #C4A035); border-radius: 2px; transition: width 800ms ease; }

/* Watercolor */
.watercolor-container {
    width: 100%; aspect-ratio: 1; border: 1px dashed #2D5016; display: flex;
    align-items: center; justify-content: center; padding: 16px;
}
.watercolor { width: 100%; height: 100%; }

/* Lab Section */
.specimen-section--lab { text-align: center; }
.lab-title {
    font-family: 'Bebas Neue', sans-serif; font-size: 48px; color: #E8E2D6;
    letter-spacing: 0.08em; margin-bottom: 24px;
}
.lab-text { max-width: 600px; margin: 0 auto 16px; color: #A8B89A; }
.lab-closing {
    font-family: 'IBM Plex Mono', monospace; font-size: 14px; color: #4A7C2E;
    letter-spacing: 0.04em; margin-top: 32px;
}

/* Intro Content */
.intro-content { text-align: center; padding: 40px 0; }

/* Responsive */
@media (max-width: 900px) {
    .specimen-section { padding: 60px 24px; }
    .hud-panel--left { display: none; }
    .specimen-layout { grid-template-columns: 1fr; }
    .hero-title { font-size: 40px; }
    .specimen-name { font-size: 36px; }
}
