/* yongjoon.dev - Dark-mode developer workshop */

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

:root {
    --void: #000000;
    --amber: #E8B84B;
    --amber-dark: #C49A3B;
    --amber-muted: #A88C5A;
    --warm-cream: #E8DCC4;
    --coral: #D4654A;
    --sage: #5A9E82;
    --white: #FFFFFF;
}

body {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    line-height: 1.75;
    color: var(--warm-cream);
    background: var(--void);
    overflow-x: hidden;
}

/* Grid background */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(232,184,75,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232,184,75,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.station {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 60px);
}

/* Station 1: Door */
.station-door {
    flex-direction: column;
}

.typing-title {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(2.5rem, 7vw, 5rem);
    letter-spacing: 0.08em;
    color: var(--amber);
    text-transform: uppercase;
    overflow: hidden;
    border-right: 3px solid var(--amber);
    white-space: nowrap;
    width: 0;
    animation: typeIn 2s steps(12) 0.5s forwards, blinkCursor 0.7s step-end infinite;
}

@keyframes typeIn {
    to { width: 100%; }
}

@keyframes blinkCursor {
    50% { border-color: transparent; }
}

.station-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    letter-spacing: 0.15em;
    color: var(--amber-muted);
    margin-top: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 2.5s;
}

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

.cursor-line {
    width: 1px;
    height: 60px;
    background: var(--amber);
    margin-top: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 3s;
}

/* Station 2: Workbench */
.station-workbench {
    gap: clamp(20px, 3vw, 40px);
    flex-wrap: wrap;
}

.panel {
    max-width: 340px;
    padding: clamp(24px, 3vw, 40px);
    border: 1px solid rgba(232,184,75,0.1);
    background: rgba(232,184,75,0.02);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms ease, transform 600ms cubic-bezier(0.23,1,0.32,1);
}

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

@media(hover:hover){
    .panel:hover {
        border-color: rgba(232,184,75,0.25);
        box-shadow: 0 0 30px rgba(232,184,75,0.05);
    }
}

.iso-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.panel h2 {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: 0.06em;
    color: var(--amber);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.panel p {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    color: var(--warm-cream);
    opacity: 0.8;
}

/* Station 3: Blueprint */
.blueprint-panel {
    max-width: 800px;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.blueprint-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.blueprint-panel h2 {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: 0.04em;
    color: var(--amber);
    margin-bottom: 2rem;
}

.process-steps {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
}

.step-num {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 2rem;
    color: var(--coral);
}

.step-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--amber-muted);
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.step-connector {
    width: 40px;
    height: 1px;
    background: rgba(232,184,75,0.2);
}

/* Station 4: Toolbox */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(12px, 2vw, 20px);
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.tool-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.tool-card {
    padding: clamp(16px, 2vw, 24px);
    border: 1px solid rgba(232,184,75,0.08);
    background: rgba(90,158,130,0.03);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: clamp(0.85rem, 1.3vw, 1rem);
    color: var(--warm-cream);
    text-align: center;
    transition: border-color 300ms ease;
}

@media(hover:hover){
    .tool-card:hover {
        border-color: var(--sage);
    }
}

.tool-tag {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--sage);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* Station 5: Exit */
.station-exit {
    min-height: 60vh;
}

.exit-panel {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.exit-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.exit-text {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.08em;
    color: var(--amber);
    text-transform: uppercase;
}

.exit-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: var(--amber-muted);
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .station-workbench { flex-direction: column; }
    .tool-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { flex-direction: column; }
    .step-connector { width: 1px; height: 30px; }
}
