/* S4 HANGAR (server/views/s4-hangar.js, /js/s4-hangar.js). The tactical storefront's language
   (site.css .s4x-*): mono labels, dashed leaders, dot markers; --x-acid = the role's accent,
   --h-ink = its mark colour. Without JS every slide is shown, stacked. */
.s4h { --h-ink: #fff; overflow-x: clip; }
.s4h-bar { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s3); }
.s4h-title .s4-code { margin: 0 0 6px; }
.s4h-h { margin: 0; font: 900 clamp(28px, 5vw, 56px)/.95 var(--f-body); letter-spacing: -.01em; color: #f4f6f2; }
/* the deck: one slide at a time once JS is armed */
.s4h-deck { position: relative; }
.s4h-slide:not(.is-active) { display: none; } /* every role has its own URL (/s4/roles/<role>): no JS still reaches each one */
.s4h-slide { margin-bottom: var(--s8); }
.s4h-slide.is-in-next { animation: s4h-in-r .35s ease both; }
.s4h-slide.is-in-prev { animation: s4h-in-l .35s ease both; }
@keyframes s4h-in-r { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes s4h-in-l { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.s4h-slide__head { display: grid; gap: 8px; margin-bottom: var(--s3); }
.s4h-slide__head .s4x-tag { background: transparent; }
.s4h-h2 { margin: 0; font: 800 clamp(22px, 3.2vw, 34px)/1 var(--f-mono); letter-spacing: .12em; color: #f4f6f2; }
.s4h-vibe { margin: 0; max-width: 70ch; color: var(--muted); font-size: 14px; }
.s4h-h3 { font: 700 12px/1 var(--f-mono); letter-spacing: .2em; color: var(--x-acid); margin: var(--s6) 0 var(--s4); }

/* the stage: the scene keeps its aspect; the frame box IS the image box, so callouts (% of the
   image) land on the garment at every width; on a phone the frame is taller than wide and centred */
.s4h-stage { position: relative; overflow: hidden; background: #050606; border: 1px solid var(--line); aspect-ratio: 3 / 2; touch-action: pan-y; user-select: none; }
.s4h-stage--plain { background: radial-gradient(circle at 50% 42%, #1a221e 0, #070908 72%); }
.s4h-frame { position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: var(--ar, 3 / 2); transform: translateX(-50%); }
.s4h-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .6s; }
.s4h-stage.is-touring .s4h-scene { filter: brightness(.82); }
.s4h-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 75% at 50% 52%, rgba(0,0,0,0) 0, rgba(0,0,0,.4) 78%); }

.s4h-calls { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.s4h-call { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; transition: opacity .3s; }
.s4h-call__dot { pointer-events: auto; position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(241,244,239,.9); background: rgba(0,0,0,.45); text-decoration: none; transition: transform .3s, box-shadow .3s, border-color .3s; }
.s4h-call__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f1f4ef; }
.s4h-call__n { display: none; font: 700 11px/1 var(--f-mono); color: #fff; }
.s4h-call__dot:hover { border-color: var(--x-acid); }
.s4h-call__label { position: absolute; top: -11px; display: grid; gap: 3px; width: max-content; max-width: 210px; pointer-events: none; transition: opacity .3s; }
.s4h-call__label b { font: 700 12px/1.15 var(--f-mono); letter-spacing: .14em; color: #f4f6f2; text-shadow: 0 1px 3px #000; }
.s4h-call__label small { font: 600 10px/1.25 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(233,236,230,.72); text-shadow: 0 1px 3px #000; }
.s4h-call--l .s4h-call__label { right: 92px; text-align: right; }
.s4h-call--r .s4h-call__label { left: 92px; }
.s4h-call__label::before { content: ""; position: absolute; top: 9px; width: 74px; border-top: 1px dashed rgba(241,244,239,.75); }
.s4h-call--l .s4h-call__label::before { right: -84px; }
.s4h-call--r .s4h-call__label::before { left: -84px; }
/* the tour: one piece lit, the rest dimmed */
.s4h-stage.is-touring .s4h-call { opacity: .35; }
.s4h-stage.is-touring .s4h-call.is-on { opacity: 1; z-index: 3; }
.s4h-call.is-on .s4h-call__dot { border-color: var(--x-acid); transform: scale(1.18); box-shadow: 0 0 0 6px rgba(0,0,0,.25), 0 0 22px 4px var(--x-line), 0 0 0 1px var(--x-acid); }
.s4h-call.is-on .s4h-call__dot::after { background: var(--x-acid); }
.s4h-call.is-on .s4h-call__label b { color: var(--x-acid); }
.s4h-call.is-on .s4h-call__label small { color: #fff; }
.s4h-call.is-on .s4h-call__label::before { border-top-color: var(--x-acid); }

.s4h-ticker { position: absolute; z-index: 3; left: 12px; bottom: 26px; margin: 0; display: none; gap: 2px 10px; grid-template-columns: auto 1fr; align-items: baseline;
  max-width: min(440px, calc(100% - 24px)); background: rgba(0,0,0,.72); border: 1px solid var(--line-2); border-left: 3px solid var(--x-acid); padding: 8px 12px; pointer-events: none; }
.s4h-stage.is-touring .s4h-ticker { display: grid; }
.s4h-ticker__n { grid-row: span 2; font: 700 18px/1 var(--f-mono); color: var(--x-acid); }
.s4h-ticker b { font: 700 12px/1.2 var(--f-mono); letter-spacing: .12em; color: #fff; }
.s4h-ticker small { font: 600 11px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--h-ink); }

/* classified */
.s4h-stage--sealed { display: grid; place-items: center; background:
  radial-gradient(ellipse 50% 40% at 50% 90%, rgba(255,255,255,.05), transparent 70%), repeating-linear-gradient(-45deg, rgba(255,255,255,.015) 0 14px, transparent 14px 28px), #060707; }
.s4h-slide--camo .s4h-stage--sealed { background:
  radial-gradient(circle at 20% 30%, #1d201c 0 9%, transparent 9.5%), radial-gradient(circle at 70% 60%, #151714 0 12%, transparent 12.5%),
  radial-gradient(circle at 45% 80%, #222520 0 8%, transparent 8.5%), radial-gradient(circle at 85% 20%, #1a1c18 0 10%, transparent 10.5%), #0b0c0b; background-size: 220px 180px; }
.s4h-sil { position: absolute; bottom: 0; height: 88%; fill: #000; filter: drop-shadow(0 0 1px rgba(255,255,255,.35)) drop-shadow(0 0 18px rgba(255,255,255,.06)); }
.s4h-sealed { position: relative; z-index: 1; text-align: center; padding: var(--s4); background: rgba(0,0,0,.6); border: 1px solid var(--line-2); max-width: 420px; }
.s4h-sealed__stamp { display: inline-block; margin: 0 0 8px; font: 800 20px/1 var(--f-mono); letter-spacing: .3em; color: var(--h-ink); border: 2px solid var(--h-ink); padding: 8px 12px; transform: rotate(-3deg); }
.s4h-sealed__l { margin: 0 0 6px; font: 700 12px/1.3 var(--f-mono); letter-spacing: .16em; color: #e9ece6; }

/* under the scene: the labelled list (static under reduced motion), and the kit */
.s4h-shop { display: grid; gap: var(--s5); margin-top: var(--s4); }
@media (min-width: 900px) { .s4h-shop { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); align-items: start; } }
.s4h-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.s4h-list a { display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; padding: 10px 12px; background: var(--x-bg, #070908); text-decoration: none; color: #e9ece6; }
.s4h-list a:hover { background: #0d100e; }
.s4h-list__n { grid-row: span 2; font: 700 12px/1.4 var(--f-mono); color: var(--x-acid); }
.s4h-list b { font: 700 12px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.s4h-list small { font: 600 11px/1.3 var(--f-mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.s4h-kit { display: grid; gap: var(--s3); border: 1px solid var(--line); border-top: 3px solid var(--x-acid); padding: var(--s4); background: var(--bg-1, #0b0c0b); }
.s4h-kit__price { margin: 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.s4h-kit__price b { font: 800 30px/1 var(--f-mono); color: #fff; }
.s4h-kit__price s { color: var(--muted); }
.s4h-kit__price span { font: 600 11px/1.3 var(--f-mono); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.s4h-kit__go { justify-content: center; text-align: center; }
.s4h-kit__go:hover { background: var(--x-acid); border-color: var(--x-acid); color: #000; }
.s4h .s4-card__code { color: var(--x-acid); }
.s4h .s4-card a:hover { border-color: var(--x-acid); }

@media (max-width: 767px) {
  .s4h-bar { align-items: start; }
  .s4h-stage { aspect-ratio: 4 / 5; margin: 0 calc(-1 * var(--gutter)); border-left: 0; border-right: 0; }
  .s4h-call__n { display: block; }
  .s4h-call__dot { left: -13px; top: -13px; width: 26px; height: 26px; }
  .s4h-call__dot::after { display: none; }
  .s4h-call__label, .s4h-call__label::before { display: none; }
  .s4h-ticker { display: grid; right: 12px; max-width: none; bottom: 22px; }
  .s4h-stage:not(.is-touring) .s4h-ticker:not(.is-set) { display: none; }
  .s4h-h2 { letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) {
  .s4h-scene, .s4h-call, .s4h-call__dot, .s4h-frame, .s4h-squad__a, .s4h-squad__a img { transition: none !important; }
  .s4h-slide.is-in-next, .s4h-slide.is-in-prev, .s4h-slide.is-zoomin { animation: none; }
  .s4h-stage.is-zoomed .s4h-frame { transform: translateX(-50%); }
}

/* ── the OVERVIEW (/s4/catalog): every role side by side, "choose your role" ── */
.s4h-over__sub { margin: 10px 0 0; font: 700 12px/1.4 var(--f-mono); letter-spacing: .16em; color: var(--muted); }
.s4h-squad { list-style: none; margin: 0 0 var(--s6); padding: 0; display: flex; gap: 2px; background: #000; border: 1px solid var(--line); height: clamp(420px, 62vh, 640px); }
.s4h-squad li { flex: 1 1 0; min-width: 0; display: flex; transition: flex-grow .45s cubic-bezier(.2,.7,.2,1); }
.s4h-squad li:hover, .s4h-squad li:focus-within { flex-grow: 1.6; }
.s4h-squad__a { position: relative; flex: 1; display: block; overflow: hidden; background: #060707; color: #fff; text-decoration: none; border-top: 3px solid var(--x-acid); transition: transform .32s ease, opacity .32s ease, box-shadow .3s; }
.s4h-squad__a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .6s ease, filter .4s; filter: brightness(.86); }
.s4h-squad__a:hover img, .s4h-squad__a:focus-visible img, .s4h-squad__a.is-spot img { transform: scale(1.04); filter: none; }
.s4h-squad__a.is-spot { box-shadow: inset 0 0 0 1px var(--x-acid); }
.s4h-squad__a:focus-visible { outline: 2px solid var(--x-acid); outline-offset: -2px; }
.s4h-squad__a .s4h-sil { position: absolute; left: 50%; transform: translateX(-50%); height: 78%; bottom: 0; }
.s4h-squad__a.is-camo { background: radial-gradient(circle at 30% 40%, #1d201c 0 12%, transparent 12.5%), radial-gradient(circle at 70% 70%, #151714 0 14%, transparent 14.5%), #0b0c0b; background-size: 120px 110px; }
.s4h-squad__a::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.9)); }
.s4h-squad__k, .s4h-squad__t, .s4h-squad__m, .s4h-squad__s, .s4h-squad__go { position: absolute; z-index: 1; left: 14px; right: 14px; font-family: var(--f-mono); letter-spacing: .14em; }
.s4h-squad__k { top: 12px; display: flex; gap: 8px; align-items: center; font: 700 11px/1 var(--f-mono); color: var(--x-acid); }
.s4h-squad__t { bottom: 64px; font-size: clamp(16px, 1.8vw, 24px); font-weight: 800; line-height: 1.05; }
.s4h-squad__m { bottom: 42px; font-size: 11px; font-weight: 700; color: #e9ece6; }
.s4h-squad__s { bottom: 40px; right: auto; font-size: 10px; font-weight: 800; color: var(--h-ink); border: 1px solid var(--h-ink); padding: 4px 6px; }
.s4h-squad__go { bottom: 14px; font-size: 11px; font-weight: 800; color: var(--x-acid); }
.s4h.is-leaving .s4h-squad__a:not(.is-zoom) { opacity: .25; }
.s4h-squad__a.is-zoom { transform: scale(1.06); z-index: 2; }

/* a role PENDING CLEARANCE: the stamp on its card and under its name */
.s4h-squad__a .s4h-squad__s { white-space: normal; max-width: calc(100% - 28px); line-height: 1.3; }
.s4h-pending { margin: 4px 0 0; max-width: 70ch; padding: 10px 12px; border: 1px solid var(--h-ink); border-left: 3px solid var(--x-acid); font: 600 12px/1.45 var(--f-mono); letter-spacing: .06em; color: #c9cec6; }
.s4h-pending b { color: var(--h-ink); letter-spacing: .2em; }
.s4h-tourend__pending { font-size: 13px; letter-spacing: .14em; color: var(--h-ink); }

/* the two modes: the overview, or one role */
.s4h[data-mode="role"] .s4h-over { display: none; }
.s4h[data-mode="overview"] .s4h-role { display: none; }

/* ── inside a role: the sticky role bar ── */
.s4h-rbar { position: sticky; top: var(--hdr-h, 64px); z-index: 20; display: flex; align-items: stretch; gap: var(--s2); margin: 0 0 var(--s4); padding: 8px 0; background: rgba(0,0,0,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.s4h-back { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; min-height: 44px; border: 1px solid var(--line-2); font: 700 11px/1 var(--f-mono); letter-spacing: .14em; color: #e9ece6; text-decoration: none; white-space: nowrap; }
.s4h-back:hover { border-color: var(--x-acid); color: #fff; }
.s4h-tabs { flex: 1; display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.s4h-tabs::-webkit-scrollbar { display: none; }
.s4h-tabs a { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-bottom: 2px solid transparent;
  font: 700 11px/1 var(--f-mono); letter-spacing: .14em; color: var(--muted); text-decoration: none; white-space: nowrap; }
.s4h-tabs a .s4h-ico { color: var(--x-acid); }
.s4h-tabs a:hover { color: #fff; }
.s4h-tabs a[aria-selected="true"] { color: #000; background: var(--x-acid); border-color: var(--x-acid); }
.s4h-tabs a[aria-selected="true"] .s4h-ico, .s4h-tabs a[aria-selected="true"] .s4h-tab__c { color: #000; }
.s4h-tab__c { font-size: 10px; color: #e9ece6; border: 1px solid currentColor; padding: 3px 5px; border-radius: 2px; }
.s4h-ico { width: 16px; height: 16px; flex: none; }
.s4h-back:focus-visible, .s4h-tabs a:focus-visible, .s4h-edge:focus-visible, .s4h-dots a:focus-visible, .s4h-tourgo:focus-visible, .s4h-tourbar button:focus-visible, .s4h-tourend button:focus-visible, .s4h-tourend a:focus-visible, .s4h-call__dot:focus-visible { outline: 2px solid var(--x-acid, #b6ff3b); outline-offset: 2px; }
/* auto-advance: a thin bar under the role bar fills while the next role is coming */
.s4h-auto { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; opacity: 0; transition: opacity .3s; }
.s4h-auto.is-on { opacity: 1; }
.s4h-auto i { display: block; height: 100%; background: var(--x-acid); transform: scaleX(0); transform-origin: 0 50%; transition: transform .1s linear; }

/* the stage's edges: big arrows with the neighbour's name */
.s4h-stagewrap { position: relative; scroll-margin-top: calc(var(--hdr-h, 64px) + 72px); }
.s4h-edge { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; min-height: 88px; min-width: 52px; padding: 0 10px;
  color: #fff; text-decoration: none; background: rgba(0,0,0,.5); border: 1px solid var(--line-2); }
.s4h-edge--prev { left: 0; border-left: 0; }
.s4h-edge--next { right: 0; border-right: 0; flex-direction: row-reverse; }
.s4h-edge__a { font: 300 46px/1 var(--f-mono); color: var(--x-acid); }
.s4h-edge__n { max-width: 0; overflow: hidden; white-space: nowrap; font: 700 11px/1 var(--f-mono); letter-spacing: .14em; transition: max-width .3s ease; }
.s4h-edge:hover, .s4h-edge:focus-visible { background: rgba(0,0,0,.82); border-color: var(--x-acid); }
.s4h-edge:hover .s4h-edge__n, .s4h-edge:focus-visible .s4h-edge__n { max-width: 260px; }
/* the dots: one per role, and "ROLE 1 OF 3" */
.s4h-dots { display: flex; align-items: center; justify-content: center; gap: 4px; margin: var(--s3) 0 0; }
.s4h-dots a { width: 28px; height: 28px; display: grid; place-items: center; }
.s4h-dots a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--x-acid); transition: transform .2s, background .2s; }
.s4h-dots a[aria-current="page"]::before { background: var(--x-acid); transform: scale(1.25); }
.s4h-dots__t { margin-left: 10px; font: 700 11px/1 var(--f-mono); letter-spacing: .16em; color: var(--muted); }
/* the first-visit hint */
.s4h-hint { position: absolute; z-index: 5; left: 50%; top: 14px; transform: translateX(-50%); margin: 0; padding: 10px 14px; white-space: nowrap; pointer-events: none;
  font: 800 12px/1 var(--f-mono); letter-spacing: .2em; color: #000; background: var(--x-acid); box-shadow: 0 0 0 1px #000, 0 0 24px var(--x-line); animation: s4h-hint 1.6s ease-in-out infinite; }
.s4h-hint[hidden] { display: none; }
@keyframes s4h-hint { 50% { box-shadow: 0 0 0 1px #000, 0 0 40px var(--x-acid); } }
.s4h-slide.is-zoomin { animation: s4h-zoomin .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes s4h-zoomin { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* ── START TOUR: the camera, the controls, the end card ── */
.s4h-frame { transition: transform .9s cubic-bezier(.2,.7,.2,1); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.s4h-stage.is-zoomed .s4h-frame { transform: translateX(-50%) translate(var(--tx, 0), var(--ty, 0)) scale(var(--z, 1.8)); }
.s4h-stage.is-zoomed .s4h-call { transform: scale(calc(1 / var(--z, 1.8))); }
.s4h-stage.is-end .s4h-call { opacity: 1; }
.s4h-tourgo { position: absolute; z-index: 4; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
  font: 800 13px/1 var(--f-mono); letter-spacing: .2em; color: #000; background: var(--x-acid); border: 0; cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); box-shadow: 0 0 22px var(--x-line); }
.s4h-tourgo:hover { filter: brightness(1.1); }
.s4h-tourgo[hidden], .s4h-tourbar[hidden], .s4h-tourend[hidden] { display: none; }
.s4h-tourbar { position: absolute; z-index: 5; right: 10px; top: 10px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 20px);
  padding: 4px; background: rgba(0,0,0,.78); border: 1px solid var(--line-2); border-top: 2px solid var(--x-acid); }
.s4h-tourbar button { min-height: 36px; min-width: 44px; padding: 0 10px; font: 700 10px/1 var(--f-mono); letter-spacing: .14em; color: #e9ece6; background: transparent; border: 1px solid var(--line-2); cursor: pointer; }
.s4h-tourbar button:hover, .s4h-tourbar button[aria-pressed="true"] { border-color: var(--x-acid); color: #fff; }
.s4h-tourbar__pos { padding: 0 8px; font: 700 10px/1 var(--f-mono); letter-spacing: .14em; color: var(--x-acid); }
.s4h-tourbar__prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.s4h-tourbar__prog i { display: block; height: 100%; background: var(--x-acid); transform: scaleX(0); transform-origin: 0 50%; }
.s4h-stage.is-paused .s4h-tourbar__prog i { animation-play-state: paused !important; }
@keyframes s4h-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.s4h-tourend { position: absolute; z-index: 4; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; text-align: center;
  width: min(420px, calc(100% - 24px)); padding: 14px 16px; background: rgba(0,0,0,.84); border: 1px solid var(--line-2); border-top: 3px solid var(--x-acid); }
.s4h-tourend p { margin: 0; }
.s4h-tourend__k { font: 700 11px/1.3 var(--f-mono); letter-spacing: .16em; color: var(--x-acid); }
.s4h-tourend__p { font: 800 22px/1 var(--f-mono); color: #fff; }
.s4h-tourend__go { width: 100%; justify-content: center; }
.s4h-tourend__re { background: none; border: 0; color: var(--muted); font: 700 10px/1 var(--f-mono); letter-spacing: .16em; cursor: pointer; min-height: 32px; }
.s4h-stage.is-touring .s4h-ticker { bottom: 18px; }
.s4h-stage.is-end .s4h-ticker { display: none; }
.s4h-stage.is-touring .s4x-stage__tag { opacity: 0; }
/* the kit-list row of the piece on tour */
.s4h-list li.is-tour > a, .s4h-list li.is-tour > .s4h-list__a { background: #121612; box-shadow: inset 3px 0 0 var(--x-acid); }
.s4h-list li { transition: background .3s; }

@media (max-width: 767px) {
  .s4h-squad { height: auto; display: grid; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; background: none; border: 0; padding-bottom: 6px; }
  .s4h-squad li { scroll-snap-align: start; }
  .s4h-squad li:hover, .s4h-squad li:focus-within { flex-grow: 1; }
  .s4h-squad__a { aspect-ratio: 3 / 4; border: 1px solid var(--line); border-top: 3px solid var(--x-acid); }
  .s4h-rbar { flex-wrap: wrap; gap: 6px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 6px var(--gutter); }
  .s4h-back { min-height: 40px; padding: 0 10px; font-size: 10px; }
  .s4h-tabs a { min-height: 40px; padding: 0 10px; font-size: 10px; gap: 6px; }
  .s4h-tabs a .s4h-ico { display: none; }
  .s4h-back { padding: 0 8px; }
  .s4h-back__w { display: none; }
  .s4h-tabs a { flex: 1 1 auto; padding: 0 6px; letter-spacing: .1em; }
  .s4h-tab__c { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .s4h-stagewrap { scroll-margin-top: calc(var(--hdr-h, 64px) + 56px); }
  .s4h-edge { min-height: 64px; min-width: 40px; padding: 0 4px; }
  .s4h-edge__a { font-size: 34px; }
  .s4h-edge__n { display: none; }
  .s4h-edge--prev { left: calc(-1 * var(--gutter)); }
  .s4h-edge--next { right: calc(-1 * var(--gutter)); }
  .s4h-tourgo { left: 50%; right: auto; transform: translateX(-50%); bottom: 12px; }
  .s4h-tourbar { left: 6px; right: 6px; top: 6px; flex-wrap: nowrap; gap: 3px; padding: 3px; }
  .s4h-tourbar__pos { display: none; }
  .s4h-tourbar button { flex: 1; min-height: 34px; padding: 0 4px; font-size: 9px; letter-spacing: .1em; white-space: nowrap; }
  .s4h-stage.is-touring .s4h-ticker { bottom: 12px; }
  .s4h-hint { font-size: 10px; letter-spacing: .14em; top: 10px; }
}

/* the public set LOADOUT (server/views/set-loadout.js): the same stage and kit box, a portrait hero, and the
   pieces as slots with their own size pickers. Mobile first: stage, then slots; side by side from 1024px. */
.setl { padding: var(--s5) var(--gutter) var(--s8); }
.setl-head { display: grid; gap: 10px; margin-bottom: var(--s4); }
.setl-head .shead__k { margin: 0; }
.setl-h { font-size: clamp(24px, 4vw, 40px); }
.setl-cw { display: flex; flex-wrap: wrap; gap: var(--s2); }
.setl-cw a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.setl-cw a[aria-current="true"] { color: #fff; border-color: var(--x-acid); }
.setl-cw a:focus-visible { outline: 2px solid var(--x-acid); outline-offset: 2px; }
.setl-cw__sw { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, var(--sw) 0 40%, #0a0a0a 42%); box-shadow: 0 0 0 1px rgba(255,255,255,.3); }
.setl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.setl .s4h-stage { aspect-ratio: 4 / 5; }
.setl .s4h-scene { object-fit: cover; }
.setl-cap { margin: 6px 0 0; font: 600 10px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.setl-frames { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 2px; }
.setl-frames img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.setl-form .s4h-h3 { margin-top: 0; }
.setl-slots { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.setl-slot { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: var(--s3); padding: var(--s3); background: var(--x-bg, #070908); }
.setl-slot__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #111; }
.setl-slot__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.setl-slot__body { display: grid; gap: 6px; align-content: start; }
.setl-slot__k { margin: 0; font: 700 11px/1 var(--f-mono); letter-spacing: .16em; color: var(--x-acid); }
.setl-slot__k span { color: var(--muted); margin-right: 4px; }
.setl-slot__t { font: 700 13px/1.25 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #f4f6f2; text-decoration: none; }
.setl-slot__t:hover { text-decoration: underline; }
.setl-slot__m { margin: 0; font: 600 12px/1.3 var(--f-mono); color: var(--muted); }
.setl-slot__m b { color: #fff; }
.setl-sizes { border: 0; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.setl-sizes .set__opt span { min-width: 44px; min-height: 40px; font-family: var(--f-mono); }
.setl-sizes .set__opt input:checked + span { background: var(--x-acid); border-color: var(--x-acid); color: #000; }
.setl-sizes .set__opt input:disabled + span { opacity: .35; text-decoration: line-through; }
.setl-add1 { justify-self: start; min-height: 40px; padding: 0 12px; margin-top: 4px; background: transparent; border: 1px solid var(--line-2); color: #e9ece6; font: 700 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.setl-add1:hover { border-color: var(--x-acid); }
.setl-add1:focus-visible, .setl-kit .s4h-kit__go:focus-visible { outline: 2px solid var(--x-acid); outline-offset: 2px; }
.setl-offer { margin: 0; font: 600 12px/1.3 var(--f-mono); color: var(--x-acid); }
.setl-offer[hidden] { display: none; }
.setl-ship { margin: 0; font: 700 12px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.setl-ship.is-free { color: #39ff88; }
.setl-ship.is-free::before { content: "✓ "; }
.setl-back { margin: var(--s6) 0 0; font: 600 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
@media (min-width: 1024px) {
  .setl-grid { grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr); align-items: start; }
  .setl .s4h-stage { aspect-ratio: 3 / 2; } /* the portrait frame sits in the middle; the callout labels get the sides */
}
@media (max-width: 767px) {
  .setl .s4h-stage { aspect-ratio: 4 / 5; margin: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
/* a kit piece AWAITING CLEARANCE (not published): in the scene, the tour, the list and the cards, never linked or priced */
.s4h-list .is-awaiting .s4h-list__a { display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; padding: 10px 12px; background: var(--x-bg, #070908); color: #9aa19a; }
.s4h-await { grid-column: 2; font: 700 10px/1.3 var(--f-mono); letter-spacing: .14em; color: var(--x-acid); font-style: normal; }
.s4h-call__dot--sealed { border-style: dashed; cursor: default; }
.s4h-card--awaiting .s4h-card__sealed { display: block; opacity: .72; }
.s4h-card--awaiting .s4-card__p { letter-spacing: .14em; color: var(--x-acid); }

/* ── GLYPH PRICES (server/views/glyph-price.js, /js/glyph-price.js) ─────────────────────────────────────────
   The price in S4 glyphs; hover / focus / tap decodes it into acid-green mono text. Without the script, and under
   reduced motion, the text is shown (never glyphs alone). Totals and buttons are plain numbers, never .xg. */
.xg { --xg-acid: #B4F21E; position: relative; display: inline-grid; align-items: center; justify-items: end; min-width: 10ch; min-height: 32px;
  margin: 0; padding: 4px 8px; border: 1px dashed transparent; background: transparent; color: rgba(233,236,230,.62); cursor: pointer;
  font: 700 13px/1 var(--f-mono); letter-spacing: .06em; font-variant-numeric: tabular-nums; -webkit-tap-highlight-color: transparent; }
.xg > .xg__enc, .xg > .xg__dec { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 1px; white-space: nowrap; }
.xg__dec { visibility: hidden; color: var(--xg-acid); }
.xg__c { display: inline-flex; align-items: center; justify-content: center; min-width: .62em; }
.xg__c svg { width: 1.15em; height: 1.15em; }
.xg__dec .xg__c svg { opacity: .8; }
.xg:hover, .xg:focus-visible { border-color: rgba(180,242,30,.35); }
.xg:focus-visible { outline: 2px solid var(--xg-acid); outline-offset: 2px; }
.xg.is-on .xg__enc { visibility: hidden; }
.xg.is-on .xg__dec { visibility: visible; }
html:not(.xg-js) .xg__enc { visibility: hidden; }
html:not(.xg-js) .xg__dec { visibility: visible; }
@media (prefers-reduced-motion: reduce) { .xg .xg__enc { visibility: hidden; } .xg .xg__dec { visibility: visible; } }
.xg-all { font: 700 10px/1 var(--f-mono); letter-spacing: .16em; color: var(--xg-acid, #B4F21E); background: transparent; border: 1px solid rgba(180,242,30,.4);
  padding: 8px 10px; min-height: 32px; cursor: pointer; }
.xg-all[aria-pressed="true"] { background: rgba(180,242,30,.12); }
.xg-all:focus-visible { outline: 2px solid #B4F21E; outline-offset: 2px; }
.xg-sprite { overflow: hidden; }

/* The loadout list with the glyph price in its own right-hand column */
.s4h-list__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3, 12px); margin: 0 0 8px; }
.s4h-list__head .s4x-tag, .s4h-list__head .s4h-h3 { margin: 0; }
.s4h-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; background: var(--x-bg, #070908); }
.s4h-row:hover { background: #0d100e; }
.s4h-row > a, .s4h-row > a:hover { background: transparent; }
.s4h-row > .xg { margin-right: 6px; }
.s4h-list__also { margin: 14px 0 8px; color: var(--muted); }
.s4h-list--also .s4h-list__n { color: var(--muted); }
.s4h-kit__price s { color: var(--muted); }
.s4h-kit__note { margin: 4px 0 10px; font: 600 11px/1.4 var(--f-mono); letter-spacing: .08em; color: #B4F21E; text-transform: uppercase; }
.setl-slot__m .xg { min-width: 0; padding: 2px 6px; min-height: 28px; vertical-align: middle; }
@media (max-width: 480px) { .xg { min-width: 9ch; padding: 4px 6px; } .s4h-list__head { flex-wrap: wrap; } }
