/* B4 End of tape — scoped under #end */
#end { position: relative; padding: clamp(64px, 9vw, 128px) 0 calc(var(--transport-h, 64px) + 40px); overflow: hidden; }
#end .end-wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
#end .end-head .shout { margin: 8px 0 0; padding-bottom: .24em; font-size: clamp(56px, 10vw, 148px); }
#end .end-lede { max-width: 46ch; margin: 0 0 40px; color: #C9C6BC; }

/* machine */
#end .end-deck { border: 1.5px solid #3A3E47; background: #1B1E24; padding: 28px; }
#end .end-scroller { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: #F26B1D #1B1E24; }
#end .end-machine { display: grid; grid-template-columns: 150px 1fr 150px; align-items: center; min-width: 760px; color: #FAF8F2; }
#end .end-reel { width: 150px; height: 150px; display: block; transform: rotate(var(--rot, 0deg)); }
#end .end-reel-r { transform: rotate(calc(var(--rot, 0deg) * 1.35)); }
#end .end-tape { position: relative; height: 120px; margin: 0 -6px; cursor: grab; touch-action: pan-y; user-select: none;
  background: linear-gradient(#14161B 0 44px, #5a3a22 44px 76px, #14161B 76px); }
#end .end-tape.is-drag { cursor: grabbing; }
#end .end-tape::before { content: ""; position: absolute; inset: 44px 0; border-block: 1px solid #8A8779; }
#end .end-ticks { position: absolute; inset: 0 28px; }
#end .end-tick { position: absolute; top: 18px; width: 22px; margin-left: -11px; height: 84px; padding: 0; border: 0; background: none; cursor: pointer; color: #FAF8F2; }
#end .end-tick i { position: absolute; left: 10px; top: 26px; width: 2px; height: 32px; background: var(--c); }
#end .end-tick b { position: absolute; left: 3px; top: 4px; width: 16px; height: 16px; background: var(--c); border: 1.5px solid #FAF8F2; }
#end .end-tick span { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); font: 500 10px/1 var(--mono); white-space: nowrap; }
#end .end-tick[data-kind="tool"] { --c: #F26B1D; }
#end .end-tick[data-kind="kit"] { --c: #1F4FD8; }
#end .end-tick[data-kind="kit"] b { border-radius: 50%; }
#end .end-tick[data-kind="update"] { --c: #1F9D55; }
#end .end-tick[data-kind="update"] b { transform: rotate(45deg) scale(.8); }
#end .end-tick.is-on b { outline: 2px solid #FAF8F2; outline-offset: 3px; }
#end .end-tick:focus-visible { outline: 2px solid #F26B1D; outline-offset: 2px; }
#end .end-head-pin { position: absolute; top: 0; bottom: 0; left: 28px; width: 0; pointer-events: none; transform: translateX(var(--x, 0px)); }
#end .end-head-pin span { position: absolute; top: 34px; left: -2px; width: 4px; height: 52px; background: #FAF8F2; box-shadow: 0 0 0 1.5px #14161B; }
#end .end-head-pin span::before { content: ""; position: absolute; top: -12px; left: -7px; border: 9px solid transparent; border-top-color: #FAF8F2; border-bottom: 0; }

/* console */
#end .end-console { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; margin-top: 24px; padding-top: 24px; border-top: 1px dashed #3A3E47; }
#end .end-dial { --shell: #E7E4DB; color: #FAF8F2; }
#end .end-dial .gw-dial-label { color: #C9C6BC; }
#end .end-readout { background: #FAF8F2; color: #14161B; padding: 18px 22px; border: 1.5px solid #14161B; min-height: 150px; }
#end .end-readout p { margin: 0 0 6px; }
#end .end-r-title { font: 900 26px/1.1 var(--display, inherit); text-transform: uppercase; }
#end .end-r-title .num { font-weight: 400; margin-right: 6px; }
#end .end-r-what { max-width: 60ch; margin-bottom: 14px !important; }
#end .end-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: #C9C6BC; }
#end .end-key i { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 1px solid #FAF8F2; }
#end .k-tool { background: #F26B1D; } #end .k-kit { background: #1F4FD8; border-radius: 50%; } #end .k-update { background: #1F9D55; transform: rotate(45deg) scale(.8); }

/* list */
#end .end-list { margin-top: 48px; }
#end .log { color: #FAF8F2; }
#end .log td, #end .log th { border-color: #3A3E47; }
#end .log tr.is-on td { background: #22262e; }
#end .log .kind-tool { color: #F26B1D; } #end .log .kind-kit { color: #8FA8F0; } #end .log .kind-update { color: #5CC98A; }

/* signup strip */
#end .end-next { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 40px; align-items: center; margin-top: 56px; padding: 26px 28px; background: #F26B1D; color: #14161B; }
#end .end-next-name { margin: 0; font: 900 clamp(22px, 3vw, 36px)/1.1 var(--display, inherit); text-transform: uppercase; }
#end .end-next .gw-signup .btn { background: #14161B; color: #FAF8F2; border-color: #14161B; }
#end .end-next .gw-signup .btn:hover { background: #FAF8F2; color: #14161B; }
#end .end-next .gw-signup input:focus-visible { outline: 3px solid #14161B; outline-offset: 2px; }
#end .end-sign { margin-top: -8px; }

/* ending */
#end .end-quiet { text-align: center; padding: clamp(96px, 14vw, 180px) 0 clamp(64px, 8vw, 120px); }
#end .end-final { margin: 0; padding-bottom: .2em; font-size: clamp(52px, 11vw, 170px); }
#end .end-safe { font: 400 clamp(16px, 1.6vw, 20px)/1.4 var(--mono); color: #C9C6BC; margin: 24px 0 32px; }
#end .end-rewind { background: transparent; color: #FAF8F2; border-color: #FAF8F2; }

/* base */
#end .end-base { display: grid; grid-template-columns: auto 1fr; gap: 16px 40px; align-items: center; padding-top: 32px; border-top: 1px solid #3A3E47; }
#end .end-logo { width: 200px; height: auto; display: block; }
#end .end-rule { margin: 0; font-family: var(--serif); font-size: 19px; }
#end .end-base nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; font: 500 13px/1.4 var(--mono); text-transform: uppercase; }
#end .end-base a { color: #FAF8F2; text-underline-offset: 4px; }
#end .end-base a:hover { color: #F26B1D; }
#end .end-small { grid-column: 1 / -1; margin: 0; font-size: 13px; color: #A9A69C; }

@media (max-width: 760px) {
  #end .end-deck { padding: 16px; margin-inline: -4px; }
  #end .end-machine { grid-template-columns: 90px 1fr 90px; }
  #end .end-reel { width: 90px; height: 90px; }
  #end .end-console { grid-template-columns: auto 1fr; gap: 18px; }
  #end .end-readout { grid-column: 1 / -1; grid-row: 2; }
  #end .log { font-size: 15px; }
  #end .log thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #end .log, #end .log tbody, #end .log td { display: block; }
  #end .log tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 14px 0; border-top: 1px solid #3A3E47; }
  #end .log td { padding: 0; border: 0; }
  #end .log td:nth-child(3) { grid-column: 1 / -1; }
  #end .log td:nth-child(4) { grid-column: 1 / -1; }
  #end .end-next { grid-template-columns: 1fr; padding: 22px 18px; }
  #end .end-base { grid-template-columns: 1fr; }
}
