/* ============================================================
   ALIBKS WORKSHOP — projects.alibks.dev
   Paper-and-ink workbench: pegboard tool wall, work orders,
   a rotating job-queue cube, and a blueprint ledger.
   ============================================================ */

:root {
  --paper: #f2efe9;
  --paper-2: #e9e4da;
  --ink: #0e0e0c;
  --ink-2: #191916;
  --accent: #ff4d00;
  --acid: #ccff00;
  --line: rgba(14, 14, 12, .16);
  --blueprint: #0d1b2a;
  --chrome: linear-gradient(178deg, #fcfdff 0%, #c9cfdb 28%, #8b94aa 46%, #f2f5fa 52%, #5f6880 72%, #c7cede 88%, #eef1f7 100%);
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.grain {
  position: fixed; inset: -100%; z-index: 70; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

main { position: relative; z-index: 10; max-width: 1320px; margin: 0 auto; padding: 0 24px 96px; }

/* ---------- top bar ---------- */
.bench-bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px; margin: 0 -24px;
  background: rgba(242, 239, 233, .95); backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
}
.logo { font-family: "Anton", sans-serif; font-size: 26px; text-transform: uppercase; text-decoration: none; }
.logo em { font-style: normal; color: var(--accent); }
.bench-meta { font-family: "Space Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.bench-lamp {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--ink); padding: 6px 12px;
  font-family: "Space Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: .2em;
}
.bench-lamp i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: lampblink 2.4s steps(1) infinite; }
@keyframes lampblink { 0%, 92% { opacity: 1; } 93%, 95% { opacity: .15; } 96%, 100% { opacity: 1; } }

/* ---------- workbench hero ---------- */
.bench {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  padding: 84px 0 56px;
  border-bottom: 2px solid var(--ink);
}
.bench-sign { min-width: 0; }
.bench-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font-family: "Space Mono", monospace; font-size: 11px; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase; color: var(--accent);
}
.bench-kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }

.ransom { display: flex; flex-wrap: wrap; align-items: baseline; line-height: 1.05; font-weight: 400; font-size: clamp(52px, 9vw, 128px); text-transform: uppercase; }
.cut { display: inline-block; transition: scale .25s cubic-bezier(.22, 1, .36, 1); }
.cut:hover { scale: 1.18; z-index: 5; position: relative; }
.cut img { display: inline-block; height: 1em; width: 1em; object-fit: contain; filter: drop-shadow(1.5px 2px 1px rgba(0, 0, 0, .35)); }
.cut-space { width: .35em; display: inline-block; }
.cut-punct { font-family: "Space Mono", monospace; font-weight: 700; color: var(--accent); }

.bench-note {
  margin-top: 24px; max-width: 58ch;
  font-family: "Instrument Serif", serif; font-style: italic;
  font-size: clamp(18px, 2.2vw, 24px); line-height: 1.4; color: rgba(14, 14, 12, .82);
}
.bench-counts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.count-chip {
  border: 2px solid var(--ink); background: var(--paper-2); padding: 8px 14px;
  font-family: "Space Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.count-chip b { color: var(--accent); margin-right: 6px; }
.sticker {
  display: inline-block; align-self: center;
  background: linear-gradient(135deg, #fff 0%, #e3e8f2 38%, #a9b3c9 100%);
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg);
  padding: 10px 18px; font-family: "Space Mono", monospace; font-size: 10px; font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase;
}

/* ---------- job-queue cube (CSS 3D) ---------- */
.cube-wrap { text-align: center; }
.cube-scene {
  width: 220px; height: 220px; margin: 0 auto;
  perspective: 900px;
}
.bench-cube {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: cube-spin 26s linear infinite;
}
.cube-scene:hover .bench-cube { animation-play-state: paused; }
@keyframes cube-spin {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to { transform: rotateX(-18deg) rotateY(360deg); }
}
.cube-face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 3px solid var(--ink); background: var(--paper-2);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(14, 14, 12, .25);
  font-family: "Space Mono", monospace; text-transform: uppercase;
}
.cube-face b { font-family: "Anton", sans-serif; font-size: 54px; line-height: 1; color: var(--accent); }
.cube-face span { font-size: 9px; font-weight: 700; letter-spacing: .22em; text-align: center; line-height: 1.6; opacity: .7; }
.cube-front  { transform: translateZ(110px); }
.cube-back   { transform: rotateY(180deg) translateZ(110px); }
.cube-right  { transform: rotateY(90deg) translateZ(110px); }
.cube-left   { transform: rotateY(-90deg) translateZ(110px); }
.cube-top    { transform: rotateX(90deg) translateZ(110px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(110px); }
.cube-caption {
  margin-top: 22px; font-family: "Space Mono", monospace; font-size: 9px; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase; opacity: .55;
}

/* ---------- zones ---------- */
.zone { margin-top: 76px; }
.zone-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-bottom: 3px solid var(--ink); padding-bottom: 10px;
}
.zone-title { font-family: "Anton", sans-serif; font-size: clamp(30px, 4.5vw, 52px); text-transform: uppercase; letter-spacing: .01em; }
.zone-title::before { content: "/ "; color: var(--accent); }
.zone-count { font-family: "Space Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: .3em; opacity: .6; white-space: nowrap; }
.zone-hint { margin-top: 10px; font-family: "Instrument Serif", serif; font-style: italic; font-size: 17px; color: rgba(14, 14, 12, .7); }
.zone-hint-dark { color: rgba(242, 239, 233, .65); }

/* reveal choreography — zones wipe in like sheets unrolled */
.zone { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: no-preference) {
  .zone { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
  .zone.in-view { opacity: 1; transform: none; }
}

/* ---------- tool wall (live sites) ---------- */
.zone-wall {
  background-image: radial-gradient(rgba(14, 14, 12, .13) 1.6px, transparent 1.6px);
  background-size: 26px 26px;
  padding: 28px;
  margin-left: -28px; margin-right: -28px;
  border: 2px solid var(--ink);
}
.tool-wall { display: flex; flex-wrap: wrap; gap: 22px 18px; margin-top: 24px; align-items: flex-start; }

.tool-tag {
  position: relative;
  display: flex; flex-direction: column; gap: 6px; width: 240px;
  padding: 30px 16px 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 4px 5px 0 rgba(14, 14, 12, .8);
  cursor: pointer; text-align: left;
  transform: rotate(var(--tilt, 0deg)) translateY(var(--hang, 0px));
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s;
}
.tool-tag:nth-child(3n) { --tilt: 1.6deg; }
.tool-tag:nth-child(3n+1) { --tilt: -1.8deg; }
.tool-tag:nth-child(3n+2) { --tilt: .6deg; }
.tool-tag:nth-child(4n) { --hang: 10px; }
.tool-tag:nth-child(4n+1) { --hang: 2px; }
.tool-tag:nth-child(4n+3) { --hang: 18px; }
.tool-tag::before {
  /* nail holding the tag to the pegboard */
  content: ""; position: absolute; top: 8px; left: 50%; margin-left: -5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6b6b66, var(--ink));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset;
}
.tool-tag:hover { transform: rotate(0deg) translateY(calc(var(--hang, 0px) - 6px)) scale(1.03); box-shadow: 7px 9px 0 rgba(14, 14, 12, .8); z-index: 4; }
.tool-name { font-family: "Anton", sans-serif; font-size: 21px; text-transform: uppercase; line-height: 1; }
.tool-url { font-family: "Space Mono", monospace; font-size: 9px; font-weight: 700; letter-spacing: .12em; color: var(--accent); word-break: break-all; }
.tool-desc { font-size: 12.5px; line-height: 1.5; color: rgba(14, 14, 12, .75); }
.tool-kind {
  align-self: flex-start; margin-top: 4px;
  border: 1px solid var(--ink); padding: 1px 7px;
  font-family: "Space Mono", monospace; font-size: 8.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  background: var(--acid);
}

/* ---------- work orders (flagships) ---------- */
.orders { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 24px; }
.work-order {
  position: relative;
  display: grid; grid-template-columns: 110px 1fr auto; gap: 22px; align-items: start;
  padding: 26px 28px;
  background: var(--paper-2);
  border: 3px solid var(--ink);
  box-shadow: 8px 9px 0 rgba(14, 14, 12, .85);
  cursor: pointer; text-align: left;
  transform-style: preserve-3d;
  transition: box-shadow .3s;
}
.work-order:nth-child(even) { background: var(--paper); }
.work-order:hover { box-shadow: 12px 14px 0 rgba(14, 14, 12, .85); }
.wo-no {
  font-family: "Space Mono", monospace; font-size: 11px; font-weight: 700; letter-spacing: .2em;
  writing-mode: vertical-rl; text-orientation: mixed; color: rgba(14, 14, 12, .55);
  border-right: 2px dashed rgba(14, 14, 12, .35); padding-right: 12px; height: 100%;
}
.wo-main { min-width: 0; }
.wo-title { font-family: "Anton", sans-serif; font-size: clamp(26px, 3.6vw, 42px); text-transform: uppercase; line-height: .98; transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.work-order:hover .wo-title { transform: translateX(8px); color: var(--accent); }
.wo-desc { margin-top: 10px; max-width: 80ch; font-size: 14.5px; line-height: 1.55; color: rgba(14, 14, 12, .8); }
.wo-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.wo-tag { border: 1px solid var(--ink); padding: 2px 8px; font-family: "Space Mono", monospace; font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; background: var(--paper); }
.wo-links { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
.d-btn-sm {
  display: block; border: 2px solid var(--ink); background: var(--paper); padding: 9px 16px;
  font-family: "Space Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.d-btn-sm:hover { background: var(--accent); border-color: var(--accent); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.wo-stamp {
  position: absolute; top: 18px; right: 170px;
  font-family: "Space Mono", monospace; font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent); border: 3px double var(--accent);
  padding: 4px 10px; transform: rotate(8deg); opacity: .85;
  pointer-events: none;
}
.work-order:hover .wo-stamp { transform: rotate(8deg) scale(1.12); }

/* ---------- ledger (repos, blueprint zone) ---------- */
.zone-ledger {
  margin-left: -28px; margin-right: -28px;
  padding: 32px 28px;
  background: var(--blueprint);
  color: #dceefb;
  border: 2px solid var(--ink);
  background-image:
    linear-gradient(rgba(0, 240, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, .07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.zone-ledger .zone-head { border-color: rgba(220, 238, 251, .5); }
.zone-ledger .zone-count { color: rgba(220, 238, 251, .6); }
.ledger-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px;
  border: 2px solid rgba(0, 240, 255, .5); padding: 12px;
  background: rgba(13, 27, 42, .8);
}
.ledger-bar input {
  flex: 1 1 240px; background: rgba(0, 0, 0, .35); border: 2px solid rgba(0, 240, 255, .5);
  color: #eaf7ff; padding: 11px 14px; outline: none;
  font-family: "Space Mono", monospace; font-size: 12px; letter-spacing: .08em;
}
.ledger-bar input:focus { border-color: var(--acid); }
.ledger-chip {
  border: 2px solid rgba(0, 240, 255, .5); background: transparent; color: #dceefb;
  padding: 8px 12px; cursor: pointer;
  font-family: "Space Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
}
.ledger-chip:hover { background: rgba(0, 240, 255, .12); }
.ledger-chip.on { background: var(--acid); color: var(--ink); border-color: var(--acid); }

.ledger { list-style: none; margin-top: 18px; }
.ledger-row {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: start;
  padding: 16px 10px; border-bottom: 1px solid rgba(0, 240, 255, .18);
  transition: background .15s, box-shadow .15s;
}
.ledger-row:hover { background: rgba(0, 240, 255, .07); box-shadow: inset 4px 0 0 var(--acid); }
.ledger-num { font-family: "Space Mono", monospace; font-size: 11px; font-weight: 700; color: rgba(220, 238, 251, .45); padding-top: 5px; }
.ledger-name {
  background: none; border: none; cursor: pointer; text-align: left; padding: 0;
  font-family: "Anton", sans-serif; font-size: clamp(19px, 2.4vw, 27px); text-transform: uppercase; line-height: 1;
  color: #eaf7ff; transition: transform .2s, color .2s;
}
.ledger-row:hover .ledger-name { transform: translateX(6px); color: var(--acid); }
.ledger-desc { margin-top: 6px; max-width: 82ch; font-size: 13px; line-height: 1.5; color: rgba(220, 238, 251, .72); }
.ledger-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.ledger-tag { border: 1px solid rgba(0, 240, 255, .4); padding: 1px 7px; font-family: "Space Mono", monospace; font-size: 8.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: rgba(220, 238, 251, .8); }
.ledger-sub { margin-top: 8px; font-family: "Space Mono", monospace; font-size: 9.5px; letter-spacing: .1em; color: rgba(220, 238, 251, .45); text-transform: uppercase; }
.ledger-actions { display: flex; flex-direction: column; gap: 7px; min-width: 140px; }
.l-btn {
  display: block; border: 2px solid rgba(0, 240, 255, .5); background: transparent; color: #eaf7ff;
  padding: 8px 14px; text-align: center; text-decoration: none; cursor: pointer;
  font-family: "Space Mono", monospace; font-size: 9.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  transition: background .15s, color .15s, border-color .15s;
}
.l-btn:hover { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.empty { padding: 44px 0; font-family: "Space Mono", monospace; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; opacity: .6; }

/* ---------- skeletons (hard-edged shimmer) ---------- */
.skel-row { display: flex; flex-wrap: wrap; gap: 18px; }
.skel {
  display: block; position: relative; overflow: hidden;
  background: var(--paper-2); border: 2px solid var(--line);
}
.skel::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, transparent 0 14px, rgba(14, 14, 12, .05) 14px 16px);
  animation: skel-slide 1s steps(6) infinite;
}
@keyframes skel-slide { to { translate: 96px 0; } }
.skel-tag { width: 240px; height: 130px; }
.skel-order { width: min(560px, 90vw); height: 120px; }
.skel-ledger { display: grid; gap: 14px; margin-top: 18px; }
.skel-line { height: 44px; }

/* ---------- footer ---------- */
.bench-footer {
  margin-top: 96px; border-top: 2px solid var(--ink); padding: 26px 0 60px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  font-family: "Space Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: rgba(14, 14, 12, .7);
}
.bench-footer a { text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.bench-footer a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- dossier (work order pulled from the rack) ---------- */
.dossier { position: fixed; inset: 0; z-index: 100; display: none; background: rgba(10, 10, 9, .6); backdrop-filter: blur(3px); }
.dossier.open { display: block; }
.dossier-rack {
  position: absolute; inset: 0; margin: 3vh auto; width: min(980px, 94vw);
  background: var(--paper); border: 3px solid var(--ink);
  box-shadow: 14px 14px 0 rgba(14, 14, 12, .5);
  display: flex; flex-direction: column; overflow: hidden;
  transform-origin: 50% 0;
}
@media (prefers-reduced-motion: no-preference) {
  .dossier.open .dossier-rack { animation: rack-pull .5s cubic-bezier(.22, 1, .36, 1); }
  @keyframes rack-pull {
    from { transform: translateY(-46px) rotateX(14deg); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
}
/* scissor-cut bottom edge on the sheet */
.dossier-rack::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 14px; pointer-events: none;
  background: var(--paper);
  clip-path: polygon(0 100%, 0 40%, 3% 80%, 6% 20%, 10% 70%, 14% 30%, 18% 85%, 22% 25%, 27% 65%, 31% 15%, 36% 75%, 41% 35%, 45% 90%, 50% 20%, 54% 70%, 58% 30%, 63% 85%, 67% 25%, 72% 65%, 76% 15%, 81% 80%, 85% 35%, 89% 70%, 93% 20%, 97% 75%, 100% 45%, 100% 100%);
}
.dossier-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 20px 26px; border-bottom: 2px solid var(--ink); background: var(--paper-2);
}
.dossier-kicker { font-family: "Space Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; opacity: .6; }
.dossier-title { font-size: clamp(26px, 4.5vw, 44px); }
.dossier-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.d-btn {
  border: 2px solid var(--ink); background: var(--paper); padding: 10px 16px; cursor: pointer;
  font-family: "Space Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.d-btn:hover { background: var(--ink); color: var(--paper); }
.d-btn-close:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.dossier-body { overflow-y: auto; padding: 26px; flex: 1; }

.md-body { max-width: 78ch; }
.md-body h1, .md-body h2, .md-body h3 { font-family: "Anton", sans-serif; text-transform: uppercase; line-height: 1.05; margin: 1.4em 0 .5em; }
.md-body h1 { font-size: 34px; border-bottom: 3px solid var(--ink); padding-bottom: 8px; }
.md-body h2 { font-size: 26px; }
.md-body h3 { font-size: 20px; }
.md-body p, .md-body li { font-size: 15px; line-height: 1.65; margin: .6em 0; }
.md-body ul, .md-body ol { padding-left: 24px; }
.md-body li::marker { color: var(--accent); }
.md-body a { color: var(--accent); font-weight: 700; }
.md-body code { font-family: "Space Mono", monospace; font-size: .88em; background: var(--paper-2); border: 1px solid var(--line); padding: 1px 6px; }
.md-body pre { background: var(--ink); color: var(--paper); padding: 16px; overflow-x: auto; border: 2px solid var(--ink); margin: 1em 0; }
.md-body pre code { background: none; border: none; color: inherit; padding: 0; }
.md-body blockquote { border-left: 4px solid var(--accent); padding-left: 16px; font-family: "Instrument Serif", serif; font-style: italic; margin: 1em 0; }
.md-body img { max-width: 100%; border: 2px solid var(--ink); }
.md-body table { border-collapse: collapse; margin: 1em 0; }
.md-body th, .md-body td { border: 1px solid var(--ink); padding: 6px 12px; font-size: 13px; }
.md-body th { background: var(--paper-2); font-family: "Space Mono", monospace; text-transform: uppercase; font-size: 10px; letter-spacing: .15em; }
.md-body hr { border: none; border-top: 2px dashed var(--line); margin: 1.6em 0; }

.dossier-loading {
  font-family: "Space Mono", monospace; font-size: 12px; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase; opacity: .6; padding: 40px 0;
  animation: blink 1.2s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .2; } }

.dossier-stamp {
  position: absolute; top: 84px; right: 40px;
  font-family: "Space Mono", monospace; font-size: 20px; font-weight: 700; letter-spacing: .4em;
  color: rgba(255, 77, 0, .55); border: 4px double rgba(255, 77, 0, .55);
  padding: 8px 18px; transform: rotate(12deg) scale(2.4); opacity: 0;
  pointer-events: none;
}
.dossier.stamped .dossier-stamp { animation: stamp-hit .45s cubic-bezier(.34, 1.56, .64, 1) forwards; }
@keyframes stamp-hit {
  0% { transform: rotate(12deg) scale(2.4); opacity: 0; }
  60% { transform: rotate(12deg) scale(.92); opacity: 1; }
  100% { transform: rotate(12deg) scale(1); opacity: .9; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) { .bench { grid-template-columns: 1fr; } .cube-wrap { order: -1; } }
@media (max-width: 860px) {
  .work-order { grid-template-columns: 1fr; }
  .wo-no { writing-mode: horizontal-tb; border-right: none; border-bottom: 2px dashed rgba(14, 14, 12, .35); padding: 0 0 8px; height: auto; }
  .wo-links { flex-direction: row; flex-wrap: wrap; }
  .wo-stamp { right: 20px; top: 20px; }
}
@media (max-width: 720px) {
  .bench-bar { flex-wrap: wrap; }
  .bench-meta { display: none; }
  .tool-wall { justify-content: center; }
  .tool-tag { width: min(300px, 100%); }
  .ledger-row { grid-template-columns: 36px 1fr; }
  .ledger-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
  .zone-wall { margin-left: -12px; margin-right: -12px; padding: 20px 14px; }
  .zone-ledger { margin-left: -12px; margin-right: -12px; padding: 24px 14px; }
  main { padding: 0 12px 64px; }
  .bench-bar { margin: 0 -12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .bench-cube { animation: none; transform: rotateX(-18deg) rotateY(24deg); }
  .zone { opacity: 1; transform: none; }
}
