#hrooms{position:absolute;inset:0;z-index:1;visibility:hidden;will-change:transform}
#hrooms div{position:absolute;inset:0;transform-origin:0 0;visibility:hidden;will-change:transform;transition:background-color .16s}
/* One long paper tape: each room's seam runs on through the paper, and the stitch line travels with the row. */
#strip{position:absolute;z-index:5;left:0;right:0;background:var(--paper);color:var(--black);visibility:hidden;overflow:hidden;pointer-events:none;will-change:transform}
.htag{position:absolute;left:0;top:0;bottom:0;width:var(--T);padding:26px 20px 0;visibility:hidden;will-change:transform;border-left:1px solid rgba(11,11,11,.14)}
.htag::before{content:"";position:absolute;left:0;right:0;top:8px;height:1px;background:repeating-linear-gradient(90deg,var(--black) 0 6px,transparent 6px 11px);opacity:.5}
/* Hover floods the card with the hood's own room: the whole column is one thing to click. */
.htag::after{content:"";position:absolute;inset:0;background:var(--r);opacity:0;transition:opacity .16s}
.htag.on{color:var(--i)}
.htag.on::after{opacity:1}
.hin{position:relative;z-index:1;height:100%;display:grid;grid-template:auto auto minmax(0,1fr) auto/minmax(0,1fr) auto;gap:6px 16px;padding-bottom:16px;align-items:end}
/* Six Caps' $ runs well past the line in both directions, so the type gets room below it. */
.hin .six{font-size:clamp(44px,min(calc(var(--T)*.17),calc(var(--H)*.24)),104px);padding-top:.06em;margin-bottom:.16em;white-space:nowrap}
.pr{text-align:right}
.who,.fm,.ms,.go{font-size:15px;line-height:19px;align-self:start}
.fm{font-weight:600;font-stretch:75%;letter-spacing:.07em;text-transform:uppercase;text-align:right;white-space:nowrap}
/* The hood as a solid shape in its own colour, the roundest of the row in dashes over it. */
.hc{grid-column:1/-1;display:block;width:100%;height:100%;min-height:0;fill:none;stroke-linejoin:round}
.hc .gh{stroke:currentColor;stroke-width:3;stroke-dasharray:9 8}
.htag.on .hc .me{fill:var(--i)}
.htag.on .hc .gh{stroke:var(--r)}
.go{font-weight:600;text-align:right;white-space:nowrap}
/* A narrow card (five across on a short, wide window) has no room for the name beside the shape words: each takes its own line. */
.htag{container:htag/inline-size}
@container htag (max-width:380px){
  .hin{grid-template:auto auto auto minmax(0,1fr) auto/minmax(0,1fr) auto}
  .who,.fm{grid-column:1/-1}
  .fm{text-align:left;white-space:normal}
}
.hend{position:absolute;left:0;top:0;bottom:0;width:calc((100cqw - var(--T))/2);padding:26px 20px 16px;will-change:transform}
.hend .six{display:block;font-size:clamp(44px,min(calc(var(--T)*.17),calc(var(--H)*.24)),104px);padding-top:.06em;white-space:nowrap}
.hend p{max-width:27em;margin-top:12px;font-size:clamp(15px,1.25cqw,19px);line-height:1.34}
.hend .how{font-weight:600}
#strip.low .hc,#strip.low .ms{display:none}
#strip.low .hin{grid-template:auto auto auto/minmax(0,1fr) auto}
#strip.low .go{grid-column:1/-1}
#strip.low .hend p:first-of-type{display:none}

/* Still under the pointer whatever the row or the zoom does: find, every hood, zoom, on paper so they read over any room. */
#hbar{position:absolute;z-index:8;left:0;right:0;display:flex;align-items:center;gap:clamp(14px,1.6cqw,26px);padding:0 380px 0 20px;background:var(--paper);color:var(--black);border-top:1px solid var(--black);font-size:12px;font-weight:600;font-stretch:75%;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;visibility:hidden;will-change:transform}
#hfind{flex:none;max-width:17em}
#hfind:focus-visible{outline-offset:2px}
#hmap{flex:1 1 0;min-width:0;display:flex;gap:10px;overflow:auto hidden;scrollbar-width:none;height:100%;align-items:center;padding-block:3px}
#hmap::-webkit-scrollbar{display:none}
.hrun{flex:var(--n,0) 1 auto;min-width:0}
.hrun small{display:block;font:inherit;font-weight:400;font-size:11px;line-height:14px;letter-spacing:.02em;text-transform:none}
.hrun div{display:flex;gap:1px}
.hrun button{flex:1 0 30px;max-width:44px;height:38px;box-shadow:inset 0 -3px 0 transparent}
.hrun button:hover,.hrun button[aria-current]{box-shadow:inset 0 -3px 0 var(--black)}
.hrun button:focus-visible{outline:2px solid var(--black);outline-offset:-2px}
#hzoom{flex:none;display:flex;align-items:center;gap:8px}
#hzoom span{font-weight:400;letter-spacing:.02em;text-transform:none}
#hzoom div{display:flex}
#hzoom button{min-width:44px;height:40px;text-align:center;line-height:40px;border:1px solid var(--black);margin-left:-1px;font-variant-numeric:tabular-nums;letter-spacing:.02em;text-transform:none}
#hzoom button[aria-pressed=true]{background:var(--black);color:var(--paper)}
#hzoom button:focus-visible{outline-offset:2px}
.mover[data-room=hood]+.pos small{display:none}
/* While zoomed the row's scroller steps aside, so a drag reaches the cloth. Programmatic scrolling still works under overflow:hidden. */
.mover.hold{pointer-events:none;overflow:hidden}
#stage.hheld{cursor:grab}
#stage.hheld:active{cursor:grabbing}
#hnow{position:absolute;z-index:8;left:20px;top:60px;display:flex;align-items:center;gap:12px;padding-left:12px;min-height:44px;background:var(--paper);color:var(--black);font-weight:500;font-stretch:75%;font-size:14px;visibility:hidden}
#hnow button{align-self:stretch;display:flex;align-items:center;padding:0 12px;background:var(--black);color:var(--paper);font-weight:600;letter-spacing:.07em;text-transform:uppercase;font-size:12px}
#hnow button:focus-visible{outline-offset:2px}
#htip{position:absolute;z-index:8;left:0;padding:5px 9px;background:var(--black);color:var(--paper);font-size:13px;font-weight:500;font-stretch:75%;white-space:nowrap;pointer-events:none;visibility:hidden}

@container (max-aspect-ratio:20/23){
  /* Two whole cards side by side; a line under them, held still, says what to do. */
  .htag{padding:22px 12px 0;bottom:72px}
  .hin{grid-template:auto auto auto auto minmax(0,1fr) auto/minmax(0,1fr);gap:4px;padding-bottom:6px}
  .hin .six{font-size:clamp(38px,calc(var(--T)*.22),64px);white-space:normal;line-height:.92;margin-bottom:0}
  .who{order:1;font-size:13px;line-height:16px;min-height:32px}
  .pr{order:2;text-align:left;margin:6px 0 .2em}
  .fm{order:3;text-align:left;font-size:12px;line-height:15px}
  .hc{order:4}
  .ms{display:none}
  .go{order:5;text-align:left;font-size:13px}
  #strip.low .hin{grid-template:auto auto auto auto auto/minmax(0,1fr)}
  #strip.low .fm{display:none}
  #strip.low .pr{margin:2px 0 .14em}
  #strip.low .hin .six{font-size:36px}
  #strip.low .who{min-height:0}
  #nHood{top:auto;bottom:0;left:0;right:0;width:auto;height:72px;padding:9px 16px;background:var(--paper);border-top:1px solid rgba(11,11,11,.2);z-index:2}
  #nHood .six,#nHood p:first-of-type{display:none}
  #nHood .how{margin:0;font-weight:400;font-size:13px;line-height:17px}
  #nHood .how b{font-weight:700}
  #hEnd{bottom:72px;width:var(--T);padding:22px 12px 0}
  #hEnd .six{font-size:clamp(38px,calc(var(--T)*.22),64px);white-space:normal}
  #hEnd p{font-size:13px;line-height:17px;margin-top:8px}
  /* The paper runs on under the position chip, so no room shows through below the bar. */
  #hbar{display:grid;grid-template:60px 44px/minmax(0,1fr) auto;gap:0;padding:0 0 64px 16px}
  #hmap{grid-area:1/1/2/3;padding-right:16px}
  .hrun{flex:none}
  .hrun button{flex:0 0 44px;width:44px;height:44px}
  #hfind{grid-area:2/1;width:100%;max-width:100%;height:44px;border:0}
  #hzoom{grid-area:2/2;padding-right:16px;gap:6px}
  #hzoom button{height:44px;line-height:44px}
  #hnow{left:16px;right:16px;top:56px;justify-content:space-between}
}
/* v5: the one line that says what to look at, above the crowns. */
#hcap{position:absolute;z-index:8;left:20px;top:58px;max-width:44em;color:var(--ink);font-size:15px;line-height:20px;font-weight:500;visibility:hidden}
.hc .me{fill:var(--c);stroke:rgba(17,17,17,.45);stroke-width:2}
.hcap2{display:none}
.ms b{font-weight:600;margin-right:6px}
.ms span{white-space:nowrap}
.ms i{display:inline-block;width:18px;height:0;margin:0 5px 0 8px;vertical-align:middle;border-top:9px solid var(--c);box-shadow:0 0 0 1px rgba(17,17,17,.45)}
.ms i.k2{height:0;border-top:2px dashed currentColor;box-shadow:none;margin-left:12px}
@container (max-aspect-ratio:20/23){
  /* A phone keeps the crop height for the hood shapes: the caption moves into the line under the cards. */
  #hcap{display:none}
  #nHood .how .hcap2{display:inline;font-weight:600}
  .fm{white-space:normal}
}
