.assembly-cell { position:relative; isolation:isolate; overflow:hidden; container-type:inline-size; background:#0d100e; color:#f5eee0; --cell-orange:#ff9c51; }
.cell-frame { position:relative; margin:auto; max-width:2000px; height:clamp(530px,53vw,910px); overflow:hidden; }
.cell-view, .cell-view img, .cell-view canvas { position:absolute; width:100%; height:100%; inset:0; display:block; }
.cell-view { touch-action:pan-y pinch-zoom; user-select:none; -webkit-user-select:none; }
@media(hover:hover) { .cell-view:has(.is-ready) { cursor:ew-resize; } }
.cell-poster { object-fit:cover; object-position:50% 50%; }
.cell-view canvas { opacity:0; }
.cell-view canvas.is-ready { opacity:1; }
.cell-frame::after { pointer-events:none; content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(7,12,11,.84) 0%,rgba(7,12,11,.66) 13%,rgba(7,12,11,.05) 37%,transparent 52%),linear-gradient(0deg,rgba(8,12,11,.96) 0%,rgba(8,12,11,.82) 7%,transparent 29%); }
.cell-copy { position:absolute; z-index:1; top:clamp(30px,4vw,75px); left:var(--edge,5.55vw); width:clamp(225px,22vw,370px); }
.cell-copy .cell-kicker { color:#ffc18a; font-size:clamp(13px,1.02vw,17px); font-weight:570; margin:0 0 12px; }
.cell-copy h2 { color:#fff5e8; font-size:clamp(43px,4.5vw,88px); font-weight:540; letter-spacing:-.063em; line-height:.94; margin:0; }
.cell-copy >p:last-child { font-size:clamp(14px,1.06vw,18px); line-height:1.44; margin:17px 0 0; color:#e4d9c8; max-width:23ch; text-wrap:pretty; }
.cell-instrument { position:absolute; z-index:2; bottom:clamp(20px,2.7vw,52px); left:var(--edge,5.55vw); right:var(--edge,5.55vw); display:flex; gap:24px; align-items:flex-end; justify-content:space-between; }
.cell-instrument[hidden] {display:none;}
.cell-readout { display:flex; gap:10px; align-items:center; min-height:38px; font-size:clamp(14px,1.12vw,19px); font-weight:520; line-height:1.3; }
.cell-status-light { flex:0 0 7px; height:7px; border-radius:100%; background:var(--cell-orange); box-shadow:0 0 10px #ff9e5370; }
.assembly-cell[data-passed] .cell-status-light { background:#a9e3ae; box-shadow:0 0 10px #82da9470; }
.cell-playback,.cell-stages { display:flex; align-items:center; }
.cell-playback { gap:18px; }
.cell-stages { gap:5px; }
.cell-stages button,.cell-transport { border:0; border-radius:0; cursor:pointer; color:#ded4c6; background:transparent; padding:0; font:inherit; }
.cell-stages button { position:relative; width:clamp(56px,5vw,86px); height:43px; text-align:left; padding:0 0 8px; font-size:13px; }
.cell-stages button i { position:absolute; inset:auto 0 2px; height:2px; visibility:hidden; background:#ffffff39; }
.cell-stages button[data-active] i { visibility:visible; }
.cell-stages button i::after { content:""; position:absolute; inset:0; background:var(--cell-orange); transform:scaleX(var(--cell-progress,0)); transform-origin:left; }
.cell-stages button[data-active], .cell-stages button:hover { color:#fff3df; }
.cell-transport { width:44px; height:44px; display:grid; place-items:center; background:#36372c; border-radius:100%; }
.cell-transport:hover { background:#534536; }
.cell-transport:disabled { opacity:.65; cursor:default; }
.cell-transport span { box-sizing:content-box; width:5px; height:13px; border-inline:2px solid currentColor; }
.cell-transport[data-play] span { width:0;height:0;border:0;border-block:7px solid transparent;border-left:10px solid currentColor;margin-left:2px; }
.cell-sr { position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
.cell-stages button:focus-visible,.cell-transport:focus-visible { outline:2px solid #ffc18a; outline-offset:3px; }
@media(max-width:960px) and (min-width:701px) {
  .cell-frame { height:510px; }
  .cell-copy { left:4vw; width:208px; }
  .cell-copy h2 { font-size:42px; }
  .cell-copy>p:last-child {font-size:13px;}
}
@media(max-width:700px) {
  .cell-frame { height:clamp(470px,108vw,590px); display:flex; flex-direction:column; background:#0e120f; }
  .cell-view { top:91px; bottom:55px; height:auto; overflow:hidden; }
  .cell-view img { object-fit:contain; }
  .cell-frame::after { background:linear-gradient(180deg,#0e120f 1%,rgba(14,18,15,.86) 14%,transparent 35%,transparent 73%,#0e120f 93%); }
  .cell-copy { inset:24px 20px auto; width:auto; display:grid; grid-template-columns:minmax(0,1fr) minmax(115px,.8fr); align-items:end; column-gap:16px; }
  .cell-copy .cell-kicker { grid-column:1/-1;font-size:12px;margin:0 0 7px; }
  .cell-copy h2 {font-size:clamp(31px,7.9vw,46px);line-height:.99;letter-spacing:-.055em;}
  .cell-copy>p:last-child { font-size:clamp(12px,2.8vw,15px);line-height:1.34;margin:0;max-width:23ch; }
  .cell-instrument { display:block; left:20px; right:20px; bottom:15px; }
  .cell-readout {font-size:14px;min-height:24px;}
  .cell-playback {gap:15px;}
  .cell-stages { flex:1;gap:6px; }
  .cell-stages button { flex:1; width:auto;min-width:0;height:43px; }
}
@media(max-width:350px){.cell-copy{column-gap:8px}.cell-copy>p:last-child{font-size:11px}}
@media(max-width:700px){.cell-view{mask-image:linear-gradient(180deg,transparent 0%,black 16%,black 84%,transparent 100%);}.cell-view img{object-fit:cover;object-position:54% 50%;}}
@media(max-width:700px){.cell-view{top:106px;}}
.assembly-cell .cell-copy h2 { overflow-wrap:anywhere; }
@container (max-width:360px) {
  .cell-copy { grid-template-columns:minmax(0,1fr); row-gap:5px; }
  .cell-copy .cell-kicker { margin-block-end:0; }
  .cell-copy>p:last-child { max-inline-size:32ch; }
  .cell-view { top:139px; }
}

.cell-transport[hidden] { display:none; }
