/* ========= mechanic.monster ========= */
/* Workshop pixel-art / maximalist mechanical bench */

:root {
    --c-black: #1a1a1a;       /* Workshop Black, workbench */
    --c-steel: #2d2d2d;       /* Steel Dark, block bg */
    --c-orange: #ff8c00;      /* Spark Orange */
    --c-green: #00cc88;       /* Circuit Green */
    --c-silver: #e0e0e0;      /* Chrome Silver, body text */
    --c-red: #ff4444;         /* Danger Red */
    --c-bolt: #4a4a4a;        /* Bolt Gray, borders */

    --gap: 12px;
    --pad: 1.5rem;
    --bw: 2px;

    --font-display: "Bungee", "Outfit", system-ui, sans-serif;
    --font-body: "Outfit", system-ui, sans-serif;
    --font-mono: "VT323", "Courier New", monospace;
}

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

html, body {
    background: var(--c-black);
    color: var(--c-silver);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    padding: var(--gap);
    position: relative;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ----- Workshop background grid ----- */
.workshop-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.workshop-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(74,74,74,0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74,74,74,0.18) 1px, transparent 1px);
    background-size: 32px 32px, 32px 32px;
    opacity: 0.5;
}
.workshop-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(255,140,0,0.05), transparent 35%),
        radial-gradient(circle at 88% 80%, rgba(0,204,136,0.05), transparent 35%);
}

/* ----- Top Bar ----- */
.top-bar {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--gap);
    padding: 0.65rem var(--pad);
    background: var(--c-steel);
    border: var(--bw) solid var(--c-bolt);
    margin-bottom: var(--gap);
}
.brand-mark {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.brand-bolt {
    width: 18px; height: 18px;
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--c-bolt) 4px, transparent 4px),
        radial-gradient(circle, var(--c-orange) 6px, transparent 6px),
        var(--c-black);
    border: 2px solid var(--c-bolt);
    flex: none;
    animation: spin 18s linear infinite;
}
.brand-text {
    font-family: var(--font-display);
    color: var(--c-orange);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}
.brand-tag {
    font-family: var(--font-mono);
    color: var(--c-bolt);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}
.top-nav {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}
.nav-link {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: var(--c-silver);
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.2rem 0.4rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-link:hover {
    color: var(--c-orange);
    border-bottom-color: var(--c-orange);
    background: rgba(255,140,0,0.08);
}
.nav-num {
    color: var(--c-bolt);
    font-size: 0.9rem;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    background: var(--c-black);
    border: 2px solid var(--c-bolt);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--c-green);
}
.status-dot {
    width: 8px; height: 8px;
    background: var(--c-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--c-green);
    animation: pulse 1.4s ease-in-out infinite;
}

/* ----- Bench (main grid) ----- */
.bench {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    background: var(--c-black);
}

/* ----- Generic block ----- */
.block {
    position: relative;
    background: var(--c-steel);
    border: var(--bw) solid var(--c-bolt);
    padding: var(--pad);
    box-shadow: 4px 4px 0 0 var(--c-black), 0 0 0 1px rgba(0,0,0,0.4) inset;
    overflow: hidden;
}

/* Corner bolts (4 per block) */
.bolts {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.bolts span {
    position: absolute;
    width: 12px; height: 12px;
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--c-bolt) 3px, transparent 3px),
        linear-gradient(var(--c-bolt) 1px, transparent 1px),
        linear-gradient(90deg, var(--c-bolt) 1px, transparent 1px),
        var(--c-black);
    background-size: 12px 12px, 12px 12px, 12px 12px, 12px 12px;
    border: 1px solid var(--c-bolt);
    box-shadow: 0 0 0 1px var(--c-black);
}
.bolts span:nth-child(1) { top: -6px; left: -6px; }
.bolts span:nth-child(2) { top: -6px; right: -6px; }
.bolts span:nth-child(3) { bottom: -6px; left: -6px; }
.bolts span:nth-child(4) { bottom: -6px; right: -6px; }

/* Block heading */
.block-head {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px dashed var(--c-bolt);
}
.block-num {
    font-family: var(--font-mono);
    color: var(--c-bolt);
    font-size: 1rem;
}
.block-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    color: var(--c-silver);
}
.block-tag {
    margin-left: auto;
    font-family: var(--font-mono);
    color: var(--c-orange);
    font-size: 0.95rem;
    background: var(--c-black);
    border: 1px solid var(--c-bolt);
    padding: 0.05rem 0.5rem;
}
.block-tag.live { color: var(--c-green); }

/* ----- HERO ----- */
.block-hero {
    grid-column: span 4;
    padding: 2rem var(--pad);
    background:
        repeating-linear-gradient(45deg, rgba(74,74,74,0.05) 0 12px, transparent 12px 24px),
        var(--c-steel);
}
.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
}
.label-strip {
    font-family: var(--font-mono);
    color: var(--c-orange);
    font-size: 1rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: var(--c-silver);
    margin-bottom: 1rem;
}
.title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.title-row-2 { margin-top: 0.4rem; }
.title-word { color: var(--c-silver); }
.title-word-alt { color: var(--c-orange); }

.gear {
    flex: none;
    background: var(--c-bolt);
    clip-path: polygon(
        50% 0%, 56% 8%, 64% 6%, 67% 14%, 75% 14%, 76% 22%, 84% 24%,
        82% 32%, 90% 36%, 86% 44%, 94% 50%, 86% 56%, 90% 64%, 82% 68%,
        84% 76%, 76% 78%, 75% 86%, 67% 86%, 64% 94%, 56% 92%, 50% 100%,
        44% 92%, 36% 94%, 33% 86%, 25% 86%, 24% 78%, 16% 76%, 18% 68%,
        10% 64%, 14% 56%, 6% 50%, 14% 44%, 10% 36%, 18% 32%, 16% 24%,
        24% 22%, 25% 14%, 33% 14%, 36% 6%, 44% 8%
    );
    position: relative;
}
.gear::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 30%; height: 30%;
    transform: translate(-50%, -50%);
    background: var(--c-black);
    border-radius: 50%;
}
.gear-title {
    width: 56px; height: 56px;
    background: var(--c-orange);
    animation: spin 14s linear infinite;
}
.gear-title::after { background: var(--c-black); }

.pipe-h {
    display: inline-block;
    width: 70px; height: 8px;
    background: var(--c-bolt);
    position: relative;
}
.pipe-h::before, .pipe-h::after {
    content: "";
    position: absolute;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--c-bolt);
    top: 50%;
    transform: translateY(-50%);
}
.pipe-h::before { left: -8px; }
.pipe-h::after { right: -8px; }

.piston-mini {
    position: relative;
    width: 70px; height: 28px;
    margin-left: 0.6rem;
    flex: none;
    display: inline-block;
}
.piston-rod {
    position: absolute;
    top: 50%; left: 0;
    width: 50px; height: 6px;
    transform: translateY(-50%);
    background: var(--c-silver);
    border: 1px solid var(--c-bolt);
    animation: pump 1.6s ease-in-out infinite;
    transform-origin: left center;
}
.piston-head {
    position: absolute;
    top: 50%; right: 0;
    transform: translateY(-50%);
    width: 18px; height: 24px;
    background: var(--c-orange);
    border: 2px solid var(--c-bolt);
}

.hero-sub {
    font-size: 1rem;
    color: var(--c-silver);
    max-width: 56ch;
    margin-bottom: 1rem;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.chip {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    padding: 0.1rem 0.55rem;
    border: 1px solid var(--c-bolt);
    background: var(--c-black);
    color: var(--c-silver);
}
.chip-orange { color: var(--c-orange); border-color: var(--c-orange); }
.chip-green { color: var(--c-green); border-color: var(--c-green); }
.chip-red { color: var(--c-red); border-color: var(--c-red); }
.chip-gray { color: var(--c-silver); }

/* hero right */
.hero-right {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.gear-stack {
    position: relative;
    width: 220px;
    height: 180px;
}
.gear-big {
    width: 140px; height: 140px;
    background: var(--c-orange);
    position: absolute;
    top: 0; right: 0;
    animation: spin 20s linear infinite;
}
.gear-big::after { background: var(--c-black); }
.gear-mid {
    width: 86px; height: 86px;
    background: var(--c-green);
    position: absolute;
    bottom: 6px; left: 12px;
    animation: spin 14s linear infinite reverse;
}
.gear-mid::after { background: var(--c-black); }
.gear-small {
    width: 54px; height: 54px;
    background: var(--c-red);
    position: absolute;
    bottom: 0; right: 64px;
    animation: spin 9s linear infinite;
}
.gear-small::after { background: var(--c-black); }

.readout {
    width: 100%;
    background: var(--c-black);
    border: 2px solid var(--c-bolt);
    padding: 0.6rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.readout-row {
    display: grid;
    grid-template-columns: 60px 1fr 36px;
    gap: 0.5rem;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--c-silver);
}
.readout-row > span:first-child { color: var(--c-bolt); }
.readout-bar {
    position: relative;
    height: 8px;
    background: var(--c-steel);
    border: 1px solid var(--c-bolt);
}
.readout-bar i {
    display: block;
    height: 100%;
    width: var(--w, 50%);
    background: repeating-linear-gradient(90deg,
        var(--c-orange) 0 4px,
        var(--c-bolt) 4px 6px);
}

.pipe-down {
    position: absolute;
    width: 4px;
    height: 28px;
    background: var(--c-bolt);
    bottom: -16px;
    left: 12%;
}
.pipe-down::before, .pipe-down::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c-bolt);
}
.pipe-down::before { top: -6px; }
.pipe-down::after { bottom: -6px; }

/* ----- Block placements ----- */
.block-list { grid-column: span 2; grid-row: span 2; }
.block-featured { grid-column: span 2; grid-row: span 2; }
.block-status { grid-column: span 2; }
.block-parts { grid-column: span 2; }
.block-gallery { grid-column: span 2; grid-row: span 2; }
.block-log { grid-column: span 2; }
.block-manifesto { grid-column: span 2; }
.block-shop { grid-column: span 2; }
.block-news { grid-column: span 2; }

/* ----- Contraption list ----- */
.contraption-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.contraption {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 0.6rem;
    align-items: center;
    padding: 0.55rem 0.7rem;
    background: var(--c-black);
    border: 1px solid var(--c-bolt);
    transition: border-color 0.2s, transform 0.2s;
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.contraption:hover {
    border-color: var(--c-orange);
    transform: translateX(3px);
}
.cont-id {
    font-family: var(--font-mono);
    color: var(--c-bolt);
}
.cont-name { color: var(--c-silver); }
.cont-status {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 0.05rem 0.4rem;
    border: 1px solid currentColor;
}
.cont-status.alive { color: var(--c-green); }
.cont-status.warn { color: var(--c-red); }

/* ----- Featured ----- */
.featured-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.featured-art {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--c-black);
    border: 2px solid var(--c-bolt);
    overflow: hidden;
}
.art-frame {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(74,74,74,0.18) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(0deg, rgba(74,74,74,0.18) 0 1px, transparent 1px 24px);
}
.art-gear {
    position: absolute;
    background: var(--c-orange);
    clip-path: polygon(
        50% 0%, 56% 8%, 64% 6%, 67% 14%, 75% 14%, 76% 22%, 84% 24%,
        82% 32%, 90% 36%, 86% 44%, 94% 50%, 86% 56%, 90% 64%, 82% 68%,
        84% 76%, 76% 78%, 75% 86%, 67% 86%, 64% 94%, 56% 92%, 50% 100%,
        44% 92%, 36% 94%, 33% 86%, 25% 86%, 24% 78%, 16% 76%, 18% 68%,
        10% 64%, 14% 56%, 6% 50%, 14% 44%, 10% 36%, 18% 32%, 16% 24%,
        24% 22%, 25% 14%, 33% 14%, 36% 6%, 44% 8%
    );
}
.art-gear-a {
    width: 90px; height: 90px;
    top: 18%; left: 14%;
    animation: spin 12s linear infinite;
}
.art-gear-b {
    width: 64px; height: 64px;
    background: var(--c-green);
    top: 46%; left: 30%;
    animation: spin 8s linear infinite reverse;
}
.art-piston {
    position: absolute;
    right: 16%; top: 22%;
    width: 60px; height: 56%;
}
.art-piston-head {
    width: 60px; height: 22px;
    background: var(--c-red);
    border: 2px solid var(--c-bolt);
    animation: pump-vertical 1.6s ease-in-out infinite;
}
.art-piston-rod {
    width: 8px;
    flex: 1;
    margin: 0 auto;
    height: calc(100% - 50px);
    background: var(--c-silver);
    border-left: 1px solid var(--c-bolt);
    border-right: 1px solid var(--c-bolt);
    animation: pump-vertical 1.6s ease-in-out infinite;
}
.art-piston-base {
    width: 80px; height: 18px;
    background: var(--c-bolt);
    margin-left: -10px;
}
.art-pipe {
    position: absolute;
    background: var(--c-bolt);
}
.art-pipe-a {
    width: 6px; height: 60%;
    bottom: 0; left: 8%;
}
.art-pipe-b {
    width: 40%; height: 6px;
    bottom: 16%; left: 8%;
}
.art-bolt {
    position: absolute;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--c-bolt);
    border: 2px solid var(--c-black);
}
.art-bolt-a { bottom: 14%; left: 26%; }
.art-bolt-b { bottom: 14%; left: 38%; }
.art-bolt-c { top: 12%; right: 8%; background: var(--c-orange); }
.art-spark {
    position: absolute;
    top: 60%; left: 38%;
    width: 8px; height: 8px;
    background: var(--c-orange);
    border-radius: 50%;
    box-shadow:
        14px -8px 0 -2px var(--c-orange),
        -10px 4px 0 -3px var(--c-orange),
        18px 6px 0 -2px var(--c-red);
    animation: pulse 0.9s ease-in-out infinite;
}
.featured-meta { display: flex; flex-direction: column; gap: 0.5rem; }
.featured-id {
    font-family: var(--font-mono);
    color: var(--c-bolt);
    font-size: 0.95rem;
}
.featured-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--c-orange);
    line-height: 1.1;
}
.featured-text {
    font-size: 0.95rem;
    color: var(--c-silver);
    line-height: 1.6;
}
.spec-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    margin-top: 0.4rem;
}
.spec-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0.6rem;
    background: var(--c-black);
    border: 1px solid var(--c-bolt);
    font-family: var(--font-mono);
    font-size: 0.95rem;
}
.spec-list li span { color: var(--c-bolt); }
.spec-list li b { color: var(--c-green); font-weight: 400; }

/* ----- Status block ----- */
.dial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    margin-bottom: 1rem;
}
.dial {
    background: var(--c-black);
    border: 2px solid var(--c-bolt);
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}
.dial-face {
    position: relative;
    width: 88px; height: 88px;
    border-radius: 50%;
    background:
        conic-gradient(from 220deg,
            var(--c-green) 0deg,
            var(--c-orange) 130deg,
            var(--c-red) 200deg,
            transparent 280deg);
    border: 3px solid var(--c-bolt);
    box-shadow: inset 0 0 0 8px var(--c-steel), inset 0 0 0 9px var(--c-bolt);
}
.dial-needle {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 3px;
    height: 36px;
    background: var(--c-orange);
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(0deg);
    transition: transform 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dial-pin {
    position: absolute;
    top: 50%; left: 50%;
    width: 10px; height: 10px;
    background: var(--c-silver);
    border: 2px solid var(--c-bolt);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.dial-label {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--c-silver);
    letter-spacing: 0.06em;
}

.ticker {
    overflow: hidden;
    background: var(--c-black);
    border: 2px solid var(--c-bolt);
    padding: 0.4rem 0;
    position: relative;
}
.ticker-track {
    display: flex;
    gap: 2.5rem;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--c-green);
    padding-left: 100%;
}

/* ----- Parts ----- */
.parts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}
.part {
    background: var(--c-black);
    border: 2px solid var(--c-bolt);
    padding: 0.6rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}
.part:hover {
    border-color: var(--c-orange);
    transform: translateY(-3px);
}
.part-icon {
    width: 48px; height: 48px;
    display: grid;
    place-items: center;
    background: var(--c-steel);
    border: 1px solid var(--c-bolt);
    position: relative;
}
.part-name {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--c-silver);
}
.part-stock {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--c-orange);
}

.ico-gear {
    width: 30px; height: 30px;
    background: var(--c-orange);
    clip-path: polygon(
        50% 0%, 56% 8%, 64% 6%, 67% 14%, 75% 14%, 76% 22%, 84% 24%,
        82% 32%, 90% 36%, 86% 44%, 94% 50%, 86% 56%, 90% 64%, 82% 68%,
        84% 76%, 76% 78%, 75% 86%, 67% 86%, 64% 94%, 56% 92%, 50% 100%,
        44% 92%, 36% 94%, 33% 86%, 25% 86%, 24% 78%, 16% 76%, 18% 68%,
        10% 64%, 14% 56%, 6% 50%, 14% 44%, 10% 36%, 18% 32%, 16% 24%,
        24% 22%, 25% 14%, 33% 14%, 36% 6%, 44% 8%
    );
    animation: spin 10s linear infinite;
}
.part:hover .ico-gear { animation-duration: 2s; }

.ico-piston {
    width: 28px; height: 28px;
    background: linear-gradient(to bottom,
        var(--c-red) 0 8px,
        var(--c-silver) 8px 22px,
        var(--c-bolt) 22px 28px);
    border: 1px solid var(--c-bolt);
}
.ico-spring {
    width: 28px; height: 28px;
    background: repeating-linear-gradient(45deg,
        var(--c-silver) 0 3px,
        var(--c-bolt) 3px 6px);
    border-radius: 6px;
    border: 1px solid var(--c-bolt);
}
.ico-bolt {
    width: 28px; height: 28px;
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--c-bolt) 5px, transparent 5px),
        radial-gradient(circle, var(--c-silver) 9px, transparent 9px),
        var(--c-orange);
    border: 1px solid var(--c-bolt);
}
.ico-pipe {
    width: 32px; height: 14px;
    background: var(--c-silver);
    border: 1px solid var(--c-bolt);
    border-radius: 2px;
    box-shadow:
        -8px 0 0 -2px var(--c-bolt),
        8px 0 0 -2px var(--c-bolt);
}
.ico-eye {
    width: 26px; height: 26px;
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--c-black) 4px, transparent 4px),
        radial-gradient(circle, var(--c-green) 8px, transparent 8px),
        var(--c-silver);
    border: 1px solid var(--c-bolt);
}

/* ----- Gallery ----- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
}
.frame {
    background: var(--c-black);
    border: 2px solid var(--c-bolt);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.frame-art {
    position: relative;
    aspect-ratio: 1 / 1;
    background:
        repeating-linear-gradient(90deg, rgba(74,74,74,0.18) 0 1px, transparent 1px 14px),
        repeating-linear-gradient(0deg, rgba(74,74,74,0.18) 0 1px, transparent 1px 14px),
        var(--c-black);
    overflow: hidden;
}
.frame-cap {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--c-bolt);
    padding: 0.25rem 0.5rem;
    background: var(--c-steel);
    border-top: 1px solid var(--c-bolt);
}
.frame-a .frame-art { background-color: rgba(255,140,0,0.08); }
.frame-b .frame-art { background-color: rgba(0,204,136,0.08); }
.frame-c .frame-art { background-color: rgba(255,68,68,0.06); }
.frame-d .frame-art { background-color: rgba(74,74,74,0.2); }

.ga-gear, .ga-tooth {
    position: absolute;
    background: var(--c-orange);
    clip-path: polygon(
        50% 0%, 56% 8%, 64% 6%, 67% 14%, 75% 14%, 76% 22%, 84% 24%,
        82% 32%, 90% 36%, 86% 44%, 94% 50%, 86% 56%, 90% 64%, 82% 68%,
        84% 76%, 76% 78%, 75% 86%, 67% 86%, 64% 94%, 56% 92%, 50% 100%,
        44% 92%, 36% 94%, 33% 86%, 25% 86%, 24% 78%, 16% 76%, 18% 68%,
        10% 64%, 14% 56%, 6% 50%, 14% 44%, 10% 36%, 18% 32%, 16% 24%,
        24% 22%, 25% 14%, 33% 14%, 36% 6%, 44% 8%
    );
}
.frame-a .ga-gear { width: 60%; height: 60%; top: 8%; left: 6%; animation: spin 12s linear infinite; }
.frame-a .ga-gear-2 {
    width: 36%; height: 36%; bottom: 6%; right: 6%;
    background: var(--c-green);
    animation: spin 8s linear infinite reverse;
}
.frame-a .ga-eye {
    position: absolute;
    width: 22px; height: 22px;
    top: 28%; left: 28%;
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--c-black) 4px, transparent 4px),
        radial-gradient(circle, var(--c-silver) 9px, transparent 9px),
        var(--c-red);
    border: 1px solid var(--c-bolt);
    z-index: 2;
}
.ga-pipe {
    position: absolute;
    background: var(--c-silver);
    border: 1px solid var(--c-bolt);
}
.frame-b .ga-pipe { width: 90%; height: 12px; top: 38%; left: 5%; }
.frame-b .ga-pipe-2 { width: 12px; height: 90%; left: 70%; top: 5%; }
.frame-b .ga-bolt {
    position: absolute;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--c-orange);
    border: 2px solid var(--c-bolt);
}
.frame-b .ga-bolt:nth-of-type(3) { top: 10%; left: 10%; }
.frame-b .ga-bolt-2 { bottom: 10%; right: 10%; background: var(--c-green); }

.ga-piston-tall {
    position: absolute;
    width: 22px;
    top: 8%;
    bottom: 8%;
    left: 30%;
    background: linear-gradient(to bottom,
        var(--c-red) 0 14px,
        var(--c-silver) 14px calc(100% - 18px),
        var(--c-bolt) calc(100% - 18px) 100%);
    border: 1px solid var(--c-bolt);
}
.ga-spring {
    position: absolute;
    width: 26px;
    top: 18%;
    bottom: 14%;
    right: 20%;
    background: repeating-linear-gradient(0deg,
        var(--c-silver) 0 4px,
        var(--c-bolt) 4px 7px);
    border: 1px solid var(--c-bolt);
}

.ga-bigeye {
    position: absolute;
    width: 60%; height: 60%;
    top: 20%; left: 20%;
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--c-black) 14%, transparent 14%),
        radial-gradient(circle, var(--c-orange) 40%, transparent 40%),
        var(--c-silver);
    border: 2px solid var(--c-bolt);
}
.ga-tooth {
    width: 14px; height: 22px;
    background: var(--c-silver);
    clip-path: polygon(0 0, 100% 0, 70% 100%, 30% 100%);
}
.frame-d .ga-tooth { bottom: 10%; left: 30%; }
.frame-d .ga-tooth-2 { bottom: 10%; left: 56%; }

/* ----- Log ----- */
.log-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    counter-reset: log;
}
.log-list li {
    counter-increment: log;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.7rem;
    padding: 0.5rem 0.7rem;
    background: var(--c-black);
    border-left: 3px solid var(--c-orange);
    font-size: 0.9rem;
    line-height: 1.55;
    position: relative;
}
.log-list li::before {
    content: "// " counter(log, decimal-leading-zero);
    position: absolute;
    top: -8px;
    left: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--c-bolt);
    background: var(--c-steel);
    padding: 0 4px;
}
.log-time {
    font-family: var(--font-mono);
    color: var(--c-green);
    font-size: 0.95rem;
}
.log-msg { color: var(--c-silver); }

/* ----- Manifesto ----- */
.manifesto-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--c-silver);
    background:
        repeating-linear-gradient(0deg,
            transparent 0 1.7em,
            rgba(74,74,74,0.18) 1.7em calc(1.7em + 1px));
    padding: 0 0.2rem;
}
.manifesto-text .hi {
    color: var(--c-orange);
    background: rgba(255,140,0,0.1);
    padding: 0 4px;
    border-left: 2px solid var(--c-orange);
}
.manifesto-sig {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.sig-line {
    flex: 1;
    height: 2px;
    background: repeating-linear-gradient(90deg,
        var(--c-bolt) 0 6px, transparent 6px 10px);
}
.sig-name {
    font-family: var(--font-mono);
    color: var(--c-bolt);
    font-size: 0.9rem;
}

/* ----- Order form ----- */
.order-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.field-label {
    font-family: var(--font-mono);
    color: var(--c-bolt);
    font-size: 0.9rem;
}
.field-input {
    background: var(--c-black);
    color: var(--c-silver);
    border: 2px solid var(--c-bolt);
    padding: 0.45rem 0.55rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--c-orange) 50%),
        linear-gradient(135deg, var(--c-orange) 50%, transparent 50%);
    background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 28px;
}
.field-input:focus {
    border-color: var(--c-orange);
    outline: none;
}
.order-summary {
    grid-column: span 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.6rem 0.7rem;
    background: var(--c-black);
    border: 2px solid var(--c-bolt);
    font-family: var(--font-mono);
    font-size: 0.95rem;
}
.summary-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.summary-row span { color: var(--c-bolt); }
.summary-row b { color: var(--c-green); font-weight: 400; }
.order-btn {
    grid-column: span 2;
    position: relative;
    padding: 0.7rem;
    background: var(--c-orange);
    color: var(--c-black);
    border: 2px solid var(--c-black);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.05em;
    box-shadow: 4px 4px 0 0 var(--c-bolt);
    transition: transform 0.1s, box-shadow 0.1s, background 0.2s;
    overflow: hidden;
}
.order-btn:hover {
    background: var(--c-red);
    color: var(--c-silver);
}
.order-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 0 var(--c-bolt);
}
.btn-spark {
    position: absolute;
    top: 4px; left: 6px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--c-silver);
    box-shadow: 6px 4px 0 0 var(--c-silver);
}

/* ----- News ----- */
.news-text {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
    color: var(--c-silver);
}
.news-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
}
.news-input {
    background: var(--c-black);
    color: var(--c-silver);
    border: 2px solid var(--c-bolt);
    padding: 0.55rem 0.7rem;
    font-family: var(--font-mono);
    font-size: 1rem;
}
.news-input:focus { border-color: var(--c-orange); outline: none; }
.news-btn {
    background: var(--c-green);
    color: var(--c-black);
    border: 2px solid var(--c-black);
    padding: 0.55rem 1rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    box-shadow: 3px 3px 0 0 var(--c-bolt);
    transition: transform 0.1s, box-shadow 0.1s;
}
.news-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 0 var(--c-bolt);
}
.news-confirm {
    margin-top: 0.7rem;
    font-family: var(--font-mono);
    color: var(--c-green);
    font-size: 0.95rem;
}

/* ----- Bottom Bar ----- */
.bottom-bar {
    position: relative;
    z-index: 2;
    margin-top: var(--gap);
    background: var(--c-steel);
    border: var(--bw) solid var(--c-bolt);
    padding: 1rem var(--pad);
}
.boot-line {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--c-green);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.boot-prompt { color: var(--c-orange); }
.boot-cursor {
    display: inline-block;
    width: 9px;
    height: 14px;
    background: var(--c-green);
    animation: blink 0.8s steps(1) infinite;
}
.footer-rows {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem 0;
    border-top: 2px dashed var(--c-bolt);
    border-bottom: 2px dashed var(--c-bolt);
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--c-silver);
}
.footer-h {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--c-orange);
    margin-bottom: 0.2rem;
}
.footer-col a:hover { color: var(--c-orange); }
.footer-meta {
    margin-top: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    color: var(--c-bolt);
    font-size: 0.9rem;
}
.footer-bolt {
    width: 14px; height: 14px;
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--c-bolt) 3px, transparent 3px),
        radial-gradient(circle, var(--c-orange) 6px, transparent 6px),
        var(--c-black);
    animation: spin 12s linear infinite;
}

/* ----- Spark layer ----- */
.spark-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99;
}
.spark-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--c-orange);
    box-shadow: 0 0 6px var(--c-orange);
    pointer-events: none;
    animation: spark 0.7s ease-out forwards;
}
.spark-particle.red { background: var(--c-red); box-shadow: 0 0 6px var(--c-red); }

/* ----- Animations ----- */
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}
@keyframes pump {
    0%, 100% { transform: translateY(-50%) scaleX(1); }
    50% { transform: translateY(-50%) scaleX(0.6); }
}
@keyframes pump-vertical {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}
@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes blink {
    50% { opacity: 0; }
}
@keyframes spark {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--dx, 30px), var(--dy, -30px)) scale(0.2);
        opacity: 0;
    }
}

/* ----- Gear-stack: small spinning gear icons in hero (already declared) ----- */

/* ----- Responsive ----- */
@media (max-width: 1100px) {
    .bench { grid-template-columns: repeat(2, 1fr); }
    .block-hero { grid-column: span 2; }
    .block-list, .block-featured, .block-status, .block-parts,
    .block-gallery, .block-log, .block-manifesto, .block-shop, .block-news {
        grid-column: span 2;
    }
    .block-list, .block-featured, .block-gallery { grid-row: auto; }
    .top-nav { gap: 0.8rem; }
    .footer-rows { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .bench { grid-template-columns: 1fr; }
    .block-hero, .block-list, .block-featured, .block-status, .block-parts,
    .block-gallery, .block-log, .block-manifesto, .block-shop, .block-news {
        grid-column: span 1;
    }
    .top-bar { grid-template-columns: 1fr; text-align: center; }
    .top-nav { justify-content: center; }
    .hero-inner { grid-template-columns: 1fr; }
    .order-form { grid-template-columns: 1fr; }
    .order-summary, .order-btn { grid-column: span 1; }
    .parts-grid { grid-template-columns: repeat(2, 1fr); }
    .dial-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-rows { grid-template-columns: 1fr 1fr; }
}
