/* REEL 8 page: interactive manual */
.manual { position: relative; padding-block: 64px 24px; }
.manual-head { max-width: none; }
.manual-head .label { color: var(--accent); }
.manual-title { display: flex; align-items: center; gap: .35em; margin: 0 0 12px; font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.1; text-wrap: balance; }
.manual-glyph { flex: none; width: .8em; height: .8em; color: var(--accent); fill: none; stroke: currentColor; }
.manual-lede { margin: 0; color: #b7bccb; font-size: 18px; text-wrap: pretty; max-width: none; }
.manual-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 48px; margin-top: 44px; align-items: start; }

.chapnav { position: sticky; top: 104px; }
.chapnav-title { margin: 0 0 10px; padding-left: 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.chapnav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.chapnav a {
  display: block; padding: 8px 12px; border-left: 2px solid var(--line); text-decoration: none;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.chapnav a:hover { color: var(--fg); }
.chapnav a.on { border-left-color: var(--accent); color: var(--fg); }

.chapters { display: flex; flex-direction: column; gap: 88px; min-width: 0; }
.chap-head { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline; margin-bottom: 24px; }
.chap-head .num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); grid-row: 1 / 3; }
.chap-head h3 { margin: 0; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: 0.02em; }
.chap-head p { margin: 0; color: #b7bccb; grid-column: 2; }
.chap-grid { display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); gap: 28px 36px; align-items: start; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li {
  counter-increment: s; position: relative; padding: 10px 12px 10px 46px; font-size: 15px; line-height: 1.4; color: #c3c8d4;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); transition: border-color 0.15s ease;
}
.steps li::before {
  content: counter(s); position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); font: 500 12px var(--font-mono);
}
.steps li:hover, .steps li.on, .steps li:focus-visible { border-color: var(--accent); outline: none; }
.steps b { color: var(--fg); font-weight: 600; }

.demo {
  position: relative; min-width: 0; padding: 36px 18px 18px; overflow: hidden;
  background: linear-gradient(to top, color-mix(in srgb, var(--accent) 9%, transparent), transparent 55%), #0d0f13;
  border: 1px solid var(--line); border-radius: 10px;
}
.demo-tag { position: absolute; top: 11px; left: 16px; font: 500 10.5px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.demo-cap { margin: 14px 0 0; font: 400 12px var(--font-mono); letter-spacing: 0.04em; color: var(--muted); min-height: 1.4em; }
.demo .seg button { padding: 8px 12px; font-size: 11.5px; }
.demo .seg button[aria-pressed="true"] { background: var(--accent); color: #0a0b0e; }
.hl { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; animation: hlpulse 1s ease-in-out infinite; }
@keyframes hlpulse { 50% { outline-color: color-mix(in srgb, var(--accent) 30%, transparent); } }

/* 1 · tour */
.tour { padding: 36px 12px 14px; }
.tour-shot { position: relative; border-radius: 6px; overflow: hidden; background: #08080a; }
.tour-shot img { display: block; width: 100%; height: auto; }
.tour-boxes { position: absolute; inset: 0; pointer-events: none; }
.tour-box { position: absolute; border: 2px solid var(--accent); border-radius: 6px; background: color-mix(in srgb, var(--accent) 13%, transparent); }
.pin {
  position: absolute; transform: translate(-50%, -50%); width: 28px; height: 28px; padding: 0; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 2px solid #0a0b0e; background: var(--accent); color: #0a0b0e; font: 600 13px var(--font-mono);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 32%, transparent); transition: transform 0.12s ease;
}
.pin:hover { transform: translate(-50%, -50%) scale(1.14); }
.pin[aria-pressed="true"] { background: #fff; box-shadow: 0 0 0 4px var(--accent); }
.pin:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.tour-note { margin-top: 12px; padding: 12px 14px; min-height: 84px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.tour-note b { display: block; margin-bottom: 4px; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 18px; color: var(--accent); }
.tour-note span { color: #c3c8d4; font-size: 15px; }

/* 2 · transport */
.deck { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.reels { width: 100%; max-width: 420px; height: auto; }
.rl .pack { fill: #4a3322; stroke: #7a5632; stroke-width: 2; }
.rl .spokes path { stroke: #cfd3dc; stroke-width: 5; stroke-linecap: round; }
.rl .hub { fill: #1a1c22; stroke: #8d93a3; stroke-width: 2; }
.reels .tape { fill: none; stroke: #7a5632; stroke-width: 3; }
.reels .head { fill: #2b2e36; stroke: #8d93a3; }
.counter { text-align: center; }
.counter .time { display: block; font: 500 clamp(28px, 5vw, 40px) var(--font-mono); letter-spacing: 0.06em; color: #f2f4f8; }
.counter .msg { display: block; margin-top: 2px; font: 500 11px var(--font-mono); letter-spacing: 0.16em; color: var(--muted); }
.lanes { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 10px; margin-top: 18px; padding-bottom: 34px; }
.lrow { height: 36px; display: flex; align-items: center; gap: 8px; font: 500 11px var(--font-mono); letter-spacing: 0.1em; color: var(--muted); }
.arm { width: 42px; height: 24px; padding: 0; cursor: pointer; border-radius: 4px; border: 1px solid var(--line); background: #16181e; color: var(--muted); font: 500 10px var(--font-mono); letter-spacing: 0.08em; }
.arm[aria-pressed="true"] { background: #d62a3a; border-color: #ff6572; color: #fff; }
.tl { position: relative; }
.trk { position: relative; height: 36px; border-bottom: 1px solid #1d2028; background: repeating-linear-gradient(90deg, transparent 0 59px, #171a21 59px 60px); }
.trk:first-child { border-top: 1px solid #1d2028; }
.seg-rec { position: absolute; top: 8px; height: 20px; background: #d62a3a; border-radius: 3px; opacity: 0.92; }
.region { position: absolute; top: 0; bottom: 0; display: none; pointer-events: none; background: color-mix(in srgb, var(--accent) 12%, transparent); border-inline: 1px dashed color-mix(in srgb, var(--accent) 65%, transparent); }
.demo.show-region .region { display: block; }
.playhead { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.5); pointer-events: none; }
.mk {
  position: absolute; bottom: -30px; transform: translateX(-50%); padding: 4px 8px; cursor: ew-resize; touch-action: none; border-radius: 4px;
  font: 500 10px var(--font-mono); letter-spacing: 0.08em; color: var(--accent); background: #1b1e26; border: 1px solid var(--accent);
}
.mk:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.tb { width: 42px; height: 36px; padding: 0; cursor: pointer; border-radius: 6px; border: 1px solid var(--line); background: #171a21; color: #d8dbe4; font: 500 13px var(--font-mono); }
.tb:hover { border-color: var(--muted); }
.tb.on { background: #fff; color: #0a0b0e; }
.tb.recb { color: #ff5c6b; }
.tb.recb[aria-pressed="true"] { background: #d62a3a; color: #fff; border-color: #ff6572; }
.tsp { flex: 1; min-width: 4px; }
.tg { height: 36px; padding: 0 12px; cursor: pointer; border-radius: 6px; border: 1px solid var(--line); background: #171a21; color: var(--muted); font: 500 11px var(--font-mono); letter-spacing: 0.1em; }
.tg:hover { color: var(--fg); }
.tg[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0a0b0e; }
.tg.punch[aria-pressed="true"] { background: #d62a3a; border-color: #ff6572; color: #fff; }

/* shared: knobs, sliders */
.knob { display: flex; flex-direction: column; align-items: center; gap: 3px; user-select: none; -webkit-user-select: none; min-width: 0; }
.knob svg { width: 46px; height: 46px; cursor: ns-resize; touch-action: none; border-radius: 50%; }
.knob svg:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.knob .kb { fill: #1a1c22; stroke: #343843; stroke-width: 1.5; }
.knob .kt { fill: none; stroke: #2a2e38; stroke-width: 3; stroke-linecap: round; }
.knob .ka { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.knob .kd { stroke: #f2f4f8; stroke-width: 2.4; stroke-linecap: round; }
.knob .kv { font: 500 11px var(--font-mono); color: #e1e4ec; }
.knob .kl { font: 500 9.5px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); text-align: center; }
.knobrow { display: flex; justify-content: space-around; gap: 8px; width: 100%; }
.sl { position: relative; touch-action: none; cursor: pointer; }
.sl.h { height: 22px; width: 100%; }
.sl.v { width: 30px; height: 100%; }
.sl .rail { position: absolute; background: #0a0b0e; border: 1px solid #2a2e38; border-radius: 3px; }
.sl.h .rail { left: 0; right: 0; top: 9px; height: 4px; }
.sl.v .rail { left: 13px; width: 4px; top: 0; bottom: 0; }
.sl .thumb { position: absolute; background: #cfd3dc; border: 1px solid #fff; border-radius: 3px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
.sl.h .thumb { width: 10px; height: 20px; top: 1px; margin-left: -5px; }
.sl.v .thumb { height: 18px; width: 26px; left: 2px; margin-top: -9px; }
.sl:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.key {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 7px 12px; border-radius: 6px;
  font: 600 14px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: #14161b; border: 1px solid var(--line);
}
.key svg { width: 16px; height: 16px; }
.key[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }

/* 3 · strips */
.strips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.strip { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 10px 8px; background: #12141a; border: 1px solid var(--line); border-radius: 8px; transition: opacity 0.2s ease; min-width: 0; }
.strip.dim { opacity: 0.42; }
.strip .nm { font: 600 15px var(--font-display); letter-spacing: 0.06em; }
.strip .seg { width: 100%; }
.strip .seg button { flex: 1; padding: 6px 4px; }
.gainrow { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ph { width: 28px; height: 28px; padding: 0; cursor: pointer; border-radius: 6px; border: 1px solid var(--line); background: #171a21; color: var(--muted); font: 500 14px var(--font-body); }
.ph[aria-pressed="true"] { background: var(--accent); color: #0a0b0e; border-color: var(--accent); }
.eqcurve { width: 100%; height: 36px; }
.eqcurve line { stroke: #2a2e38; stroke-width: 1; }
.eqcurve path { fill: none; stroke: var(--accent); stroke-width: 2; }
.panv { font: 500 11px var(--font-mono); color: #e1e4ec; text-align: center; }
.sm { display: flex; gap: 6px; width: 100%; }
.sm button { flex: 1; padding: 7px 0; cursor: pointer; border-radius: 5px; border: 1px solid var(--line); background: #171a21; color: var(--muted); font: 500 10.5px var(--font-mono); letter-spacing: 0.08em; }
.sm button[data-b="solo"][aria-pressed="true"] { background: #fff; color: #0a0b0e; }
.sm button[data-b="mute"][aria-pressed="true"] { background: #f2a900; color: #0a0b0e; border-color: #f2a900; }
.dbv { font: 500 12px var(--font-mono); color: #e1e4ec; }
.fm { display: flex; justify-content: center; gap: 10px; height: 150px; width: 100%; }
.meter { position: relative; width: 9px; height: 100%; background: #0b0c0f; border-radius: 3px; overflow: hidden; }
.meter i { position: absolute; inset: 0; background: linear-gradient(to top, #2fd36a 0 66%, #f2c200 66% 86%, #e5384a 86%); clip-path: inset(100% 0 0 0); }
.bseg { width: 100%; }

/* 4 · routing */
.route-ctl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.route-ctl .lab, .lab { font: 500 11px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.route-svg { width: 100%; height: auto; display: block; }
.route-svg .ln { fill: none; stroke: #2e3340; stroke-width: 2; }
.route-svg .ln.on { stroke: var(--c); stroke-dasharray: 6 6; animation: flow 0.7s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -12; } }
.route-svg text { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; fill: #d8dbe4; pointer-events: none; }
.route-svg .tk, .route-svg .sd { cursor: pointer; }
.route-svg .tk:focus-visible rect.box, .route-svg .sd:focus-visible rect { stroke: #fff; stroke-width: 2; }
.route-svg rect.box { fill: #14171d; stroke: #343843; stroke-width: 1.5; }
.route-svg .node rect { fill: #14171d; stroke-width: 2; }
.route-svg .sd rect { fill: #14171d; stroke: #343843; stroke-width: 1.5; }
.route-svg .hl { outline: none; }
.route-svg .tk.hl rect.box, .route-svg .sd.hl rect { stroke: var(--accent); stroke-width: 3; }
.route-svg .sd.on rect { fill: var(--c); stroke: var(--c); }
.route-svg .sd.on text { fill: #0a0b0e; }

/* 5 · tape */
.tape-ctl { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.tape-ctl .seg { align-items: center; }
.tape-ctl .unit { padding: 0 12px; font: 500 11px var(--font-mono); letter-spacing: 0.12em; color: var(--faint); background: var(--surface); align-self: stretch; display: grid; place-items: center; }
.scopes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.scopes figure { margin: 0; }
.cv { display: block; width: 100%; height: auto; background: #0a0b0e; border: 1px solid var(--line); border-radius: 6px; }
.scopes figcaption { margin-top: 6px; font: 500 10.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

/* 6 · stereo out */
.out-grid { display: grid; grid-template-columns: minmax(180px, 250px) minmax(0, 1fr); gap: 20px; align-items: start; }
.vu { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vu svg { width: 100%; max-width: 250px; height: auto; border-radius: 8px; }
.vu .needle { stroke: #2a1a05; stroke-width: 3; stroke-linecap: round; }
.vu .pivot { fill: #2a1a05; }
.vu-word { font: 700 22px var(--font-display); fill: #6b3f06; letter-spacing: 0.04em; }
.vu-tk line { stroke: #3d2a0d; stroke-width: 2; }
.vu-tk text { font: 600 11px var(--font-mono); fill: #3d2a0d; }
.comp { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.modhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ceil { font: 500 11px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.lamp { width: 12px; height: 12px; border-radius: 50%; background: #2a1215; box-shadow: inset 0 0 0 1px rgba(255, 101, 114, 0.4); transition: background 0.06s ease; }
.lamp.on { background: #ff4d5e; box-shadow: 0 0 12px #ff4d5e; }
.thresh { display: flex; align-items: center; gap: 20px; }
.sigbar { position: relative; flex: 1; height: 10px; margin: 6px 6px 22px 0; background: #1a1d24; border-radius: 5px; }
.thrmark { position: absolute; top: -8px; bottom: -8px; width: 3px; margin-left: -1.5px; background: #fff; border-radius: 2px; }
.sigdot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #ffb02e; box-shadow: 0 0 10px #ffb02e; }
.sigtxt { position: absolute; top: 18px; left: 0; right: 0; display: flex; justify-content: space-between; font: 500 10px var(--font-mono); color: var(--faint); }
.ratio { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lvl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lvl input { flex: 1; min-width: 120px; accent-color: var(--accent); }
.lvl output { font: 500 12px var(--font-mono); color: #e1e4ec; min-width: 52px; }

/* 7 · mix down */
.demo .seg.big button { padding: 12px 22px; font-size: 13px; }
.mixgo { margin-top: 18px; --accent: var(--c-reel); }
.mixbar { height: 6px; margin-top: 18px; background: #1a1d24; border-radius: 3px; overflow: hidden; }
.mixbar i { display: block; height: 100%; width: 0; background: var(--accent); }
.mixfiles { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-height: 32px; }
.mixfiles li { padding: 6px 10px; font: 500 12px var(--font-mono); color: #d8dbe4; background: #141720; border: 1px solid var(--line); border-radius: 5px; animation: pop 0.25s both; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } }

@media (max-width: 1000px) {
  .manual-body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .chapnav { position: static; overflow-x: auto; }
  .chapnav ol { flex-direction: row; gap: 4px; }
  .chapnav a { border-left: 0; border-bottom: 2px solid var(--line); white-space: nowrap; }
  .chapnav a.on { border-bottom-color: var(--accent); }
}
@media (max-width: 900px) {
  .chap-grid { grid-template-columns: minmax(0, 1fr); }
  .out-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .strips { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 168px; overflow-x: auto; padding-bottom: 6px; }
  .scopes { grid-template-columns: minmax(0, 1fr); }
  .thresh { flex-direction: column; align-items: stretch; }
  .tbar { gap: 5px; }
  .tb { width: 38px; }
}
@media (prefers-reduced-motion: reduce) { .hl, .route-svg .ln.on { animation: none; } }
