/* ppuzzl.works — Industrial Craft Blueprint */
:root {
    --cast-iron: #1E1E1E;
    --tool-steel: #2B2B2B;
    --gunmetal: #333333;
    --blueprint: #3A5A6A;
    --edge: #4A4A4A;
    --rivet: #71706E;
    --body: #A8A4A0;
    --heading: #E8E4DF;
    --copper: #D4652A;
    --brass: #C17F24;
    --leather: #8B4513;
    --patina: #5A8A7A;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'IBM Plex Sans', sans-serif; font-weight: 400; font-size: 15px; line-height: 1.7; color: var(--body); background: var(--cast-iron); overflow-x: hidden; }

.blueprint-grid { position: fixed; inset: 0; pointer-events: none; z-index: 0; background: repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(58,90,106,0.08) 79px, rgba(58,90,106,0.08) 80px), repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(58,90,106,0.08) 79px, rgba(58,90,106,0.08) 80px); }

.tool-rail { position: fixed; left: 28px; top: 0; bottom: 0; width: 2px; background: #5C5C5C; z-index: 10; }
.rail-fill { width: 100%; height: 0%; background: var(--copper); transition: height 0.05s; }
.rail-node { position: absolute; left: -3px; width: 8px; height: 8px; background: var(--edge); border: 1px solid #5C5C5C; transition: background 0.3s; }
.rail-node:nth-child(2) { top: 25%; }
.rail-node:nth-child(3) { top: 50%; }
.rail-node:nth-child(4) { top: 75%; }
.rail-node:nth-child(5) { top: 95%; }
.rail-node.active { background: var(--copper); }

.tool-nav { position: fixed; top: 0; left: 0; right: 0; height: 48px; background: var(--tool-steel); border-bottom: 1px solid var(--edge); z-index: 100; display: flex; align-items: stretch; padding-left: 60px; }
.nav-tab { font-family: 'Bebas Neue', sans-serif; font-size: 14px; letter-spacing: 0.12em; color: var(--body); text-decoration: none; padding: 0 24px; display: flex; align-items: center; border-right: 1px solid var(--edge); transition: color 0.2s; }
.nav-tab:hover, .nav-tab.active { color: var(--heading); border-bottom: 2px solid var(--copper); }

.workshop { max-width: 1200px; margin: 0 auto; padding: 48px 24px 60px 80px; position: relative; z-index: 1; }

.hero-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.hero-plate { text-align: center; }
.letter-modules { display: flex; gap: 4px; justify-content: center; }
.letter-cell { font-family: 'Bebas Neue', sans-serif; font-size: 96px; letter-spacing: 0.06em; color: var(--heading); border: 1px solid #5C5C5C; padding: 8px 16px; position: relative; line-height: 1; }
.letter-cell::before, .letter-cell::after { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--rivet); border: 1px solid #5C5C5C; }
.letter-cell::before { top: 4px; left: 4px; }
.letter-cell::after { bottom: 4px; right: 4px; }
.works-label { font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--copper); margin-top: 16px; }

.knurl-divider { height: 12px; background: repeating-linear-gradient(45deg, var(--edge), var(--edge) 1px, var(--tool-steel) 1px, var(--tool-steel) 6px), repeating-linear-gradient(-45deg, var(--edge), var(--edge) 1px, var(--tool-steel) 1px, var(--tool-steel) 6px); margin: 60px 0; opacity: 0.5; }

.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 3px; }
.module { background: var(--cast-iron); border: 1px solid var(--edge); padding: 24px; position: relative; box-shadow: inset 0 1px 3px rgba(0,0,0,0.4), inset 0 -1px 0 rgba(255,255,255,0.03); opacity: 0; transform: translateY(30px); transition: opacity 0.5s, transform 0.5s; }
.module.visible { opacity: 1; transform: translateY(0); }
.module::before, .module::after { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--rivet); border: 1px solid #5C5C5C; }
.module::before { top: 4px; left: 4px; }
.module::after { top: 4px; right: 4px; }
.span-2 { grid-column: span 2; }
.label-plate { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 0.12em; color: var(--heading); background: var(--gunmetal); display: inline-block; padding: 4px 12px; margin-bottom: 12px; text-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 -1px 0 rgba(0,0,0,0.5); }
.module-text { font-size: 15px; color: var(--body); }
.dimension-anno { position: absolute; bottom: 8px; right: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--patina); opacity: 0.4; letter-spacing: 0.02em; }

.spec-plate { background: var(--cast-iron); border: 1px solid var(--edge); padding: 40px; display: flex; justify-content: space-between; align-items: start; gap: 40px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.4); margin-bottom: 40px; }
.spec-grid { flex: 1; }
.spec-row { display: flex; gap: 24px; padding: 8px 0; border-bottom: 1px solid rgba(74,74,74,0.3); }
.spec-key { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--rivet); letter-spacing: 0.02em; min-width: 100px; }
.spec-val { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--body); }
.title-block { border: 1px solid var(--edge); padding: 16px; min-width: 160px; }
.tb-row { display: flex; justify-content: space-between; gap: 16px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--rivet); padding: 4px 0; border-bottom: 1px solid rgba(74,74,74,0.2); }

@media (max-width: 768px) {
    .workshop { padding-left: 24px; }
    .tool-rail { display: none; }
    .letter-cell { font-size: 48px; padding: 4px 8px; }
    .span-2 { grid-column: span 1; }
    .spec-plate { flex-direction: column; }
}
