/* ORBJT · Labor */

/* ---------- Hologramm-Hero ---------- */
.l-hero { position: relative; height: 100vh; min-height: 620px; overflow: hidden; display: grid; place-items: center; }
.holo { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.l-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 4px); mix-blend-mode: multiply; }
.l-hero-txt { position: relative; z-index: 2; text-align: center; pointer-events: none; margin-top: 46vh; }
.l-hero-txt .display { font-size: clamp(3.4rem, 11vw, 9rem); text-shadow: 0 0 40px rgba(56, 240, 255, .3); }
.l-hero-txt .lead { margin: 18px auto 0; }
.holo-hud { position: absolute; z-index: 2; font: 500 11px/1.8 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); pointer-events: none; }
.holo-hud b { color: var(--a1); font-weight: 500; }
.holo-hud.tl { top: 110px; left: 28px; } .holo-hud.tr { top: 110px; right: 28px; text-align: right; }
.shape-name { position: absolute; z-index: 2; left: 50%; top: 18%; transform: translateX(-50%); font: 600 12px var(--mono); letter-spacing: .3em; color: var(--a1); text-transform: uppercase; }

/* ---------- Layout ---------- */
.lab-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.lab-nav { position: sticky; top: 110px; display: grid; gap: 4px; }
.lab-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; color: var(--muted); transition: all .3s var(--ease-o); }
.lab-nav a span { font: 600 11px var(--mono); color: var(--dim); }
.lab-nav a em { font-style: normal; }
.lab-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.lab-nav a.on { color: var(--text); background: rgba(255, 255, 255, .07); box-shadow: inset 3px 0 0 var(--a1); }
.lab-nav a.on span { color: var(--a1); }
.exp { margin-bottom: 110px; scroll-margin-top: 100px; }
.exp-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.exp-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-top: 10px; }
.exp-head p { color: var(--muted); max-width: 560px; margin: 10px 0 0; }
.bench { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid var(--line2); background: #05060f; box-shadow: 0 40px 100px -40px #000; }
.bench canvas { display: block; width: 100%; }
.bench-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.bench-bar .sep { flex: 1; }
.bench-bar label { display: flex; align-items: center; gap: 10px; font: 500 12px var(--mono); color: var(--muted); letter-spacing: .05em; }
.bench-bar input[type="range"] { width: 120px; }
.bench-hint { position: absolute; left: 16px; top: 14px; font: 500 11px var(--mono); letter-spacing: .12em; color: rgba(255, 255, 255, .45); text-transform: uppercase; pointer-events: none; }
.bench-stat { position: absolute; right: 16px; top: 14px; font: 600 12px var(--mono); color: var(--a1); pointer-events: none; }

/* ---------- Beat-Labor ---------- */
.beat { padding: 22px; }
.seq { display: grid; gap: 8px; }
.seq-row { display: grid; grid-template-columns: 92px repeat(16, 1fr); gap: 5px; align-items: center; }
.seq-row .nm { font: 600 12px var(--mono); color: var(--muted); letter-spacing: .06em; display: flex; align-items: center; gap: 8px; }
.seq-row .nm i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.cell { aspect-ratio: 1; border-radius: 7px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); transition: background .15s, transform .15s, box-shadow .2s; font: 700 10px var(--mono); color: #05060f; }
.cell:nth-child(4n+2) { background: rgba(255, 255, 255, .085); }
.cell:hover { border-color: var(--c); }
.cell.on { background: var(--c); box-shadow: 0 0 16px -2px var(--c); border-color: transparent; }
.cell.now { transform: scale(1.12); border-color: #fff; }
.cell.on.now { box-shadow: 0 0 26px 2px var(--c); }
.beat-ctrl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.beat-ctrl label { display: flex; align-items: center; gap: 10px; font: 500 12px var(--mono); color: var(--muted); }
.viz { height: 120px; margin-top: 18px; border-radius: 16px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); overflow: hidden; }
.viz canvas { width: 100%; height: 100%; display: block; }
.piano { position: relative; display: flex; height: 170px; margin-top: 18px; user-select: none; touch-action: none; }
.wk { position: relative; flex: 1; border-radius: 0 0 10px 10px; background: linear-gradient(#e9ecff, #c3c9ea); border: 1px solid #0b0d20; margin: 0 1px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; font: 700 10px var(--mono); color: #4a4f7a; transition: background .08s; }
.wk.on { background: linear-gradient(var(--a1), #fff); box-shadow: 0 0 30px var(--a1); }
.bk { position: absolute; top: 0; width: calc(100% / 14 * .62); height: 60%; margin-left: calc(100% / 14 * -.31); border-radius: 0 0 8px 8px; background: linear-gradient(#20244a, #07081a); border: 1px solid #000; z-index: 2; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; font: 700 9px var(--mono); color: #7a80b0; }
.bk.on { background: linear-gradient(var(--a3), #3a0b33); box-shadow: 0 0 24px var(--a3); }
.piano-note { font: 500 12px var(--mono); color: var(--dim); margin-top: 10px; }

/* ---------- Game of Life ---------- */
.life-canvas { cursor: crosshair; touch-action: none; }

@media (max-width: 1080px) {
  .lab-layout { grid-template-columns: 1fr; }
  .lab-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .lab-nav a { white-space: nowrap; }
  .holo-hud { display: none; }
}
@media (max-width: 700px) {
  .seq-row { grid-template-columns: 58px repeat(16, 1fr); gap: 2px; }
  .seq-row .nm { font-size: 10px; }
  .cell { border-radius: 4px; font-size: 7px; }
  .piano { height: 130px; }
  .wk, .bk { font-size: 0; }
  .bench-bar input[type="range"] { width: 90px; }
}
