/* palette section, owned by palette agent: "Dyed from the ground" */
.s-palette{position:relative;background:var(--paper);--word:clamp(54px,14.2vw,240px);--wb:clamp(14px,3.2vh,40px)}
.s-palette--ink{color:var(--ink)}
.s-palette--paper{color:var(--paper)}
.s-palette__stage{position:relative;height:100vh;overflow:hidden;background:var(--paper)}
.s-palette__layer{position:absolute;inset:0;pointer-events:none}
.s-palette__bands{position:absolute;inset:0;display:flex;flex-direction:column}
.s-palette__band{display:block;flex:none;background:var(--c);margin-top:-1px;padding-top:1px;box-shadow:inset 0 1px 0 rgb(14 11 9 / .07);will-change:transform}
.s-palette__band:first-child{margin-top:0}

/* giant colour word */
.s-palette__word{position:absolute;left:var(--gutter);right:calc(var(--gutter) + 36px);bottom:var(--wb);font-family:var(--f-wide);font-weight:800;font-size:var(--word);line-height:.78;letter-spacing:-.03em;white-space:nowrap;display:flex}
.s-palette__l,.s-palette__li{display:inline-block;will-change:transform}

/* hex chip */
.s-palette__chip{position:absolute;left:var(--gutter);bottom:calc(var(--word) * .78 + var(--wb) + clamp(14px,2.6vh,30px));margin:0;display:flex;align-items:center;gap:12px;padding:6px 16px 6px 6px;font-size:14px;font-weight:500;font-variant-numeric:tabular-nums}
.s-palette--paper .s-palette__chip{background:var(--paper);color:var(--ink)}
.s-palette--ink .s-palette__chip{background:var(--ink);color:var(--paper)}
.s-palette__sw{width:30px;height:30px;background:var(--c)}
.s-palette__hex{font-family:var(--f-wide);font-weight:700;font-size:13px;letter-spacing:.02em}
.s-palette__cname{font-weight:400}

/* garments */
.s-palette__drops{position:absolute;top:0;bottom:0;left:34%;right:7%;z-index:10;pointer-events:none}
.s-palette__garment{position:absolute;top:13vh;height:64vh;left:0;right:0;margin-inline:auto;width:fit-content;display:block;pointer-events:none;will-change:transform}
.s-palette__garment.is-live{pointer-events:auto;cursor:pointer}
.s-palette__garment img{height:100%;width:auto;max-width:none;filter:drop-shadow(0 28px 32px rgb(14 11 9 / .34));user-select:none}
.s-palette__garment:focus-visible{outline-offset:6px}

/* HUD: heading, counter, rail */
.s-palette__hud{position:absolute;inset:0;z-index:20;pointer-events:none;transition:color .35s var(--ease)}
.s-palette__head{position:absolute;left:0;right:0;top:calc(var(--header-h) + 18px);display:flex;justify-content:space-between;align-items:flex-start;gap:24px}
.s-palette__title{margin:8px 0 0;font-family:var(--f-sans);font-weight:500;font-size:clamp(22px,2.3vw,36px);line-height:1.05;letter-spacing:-.02em}
.s-palette__count{font-family:var(--f-wide);font-weight:700;font-size:13px;font-variant-numeric:tabular-nums;padding-top:2px}
.s-palette__count b{font-weight:800}
.s-palette__rail{position:absolute;right:var(--gutter);top:50%;transform:translateY(-50%);margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:14px}
.s-palette__dot{width:9px;height:9px;border-radius:50%;box-shadow:inset 0 0 0 1.5px currentColor;transition:transform .4s var(--ease),background-color .3s}
.s-palette__dot.is-past{background:currentColor;opacity:.45}
.s-palette__dot.is-on{background:currentColor;transform:scale(1.55)}

/* closing line */
.s-palette__end{position:absolute;left:var(--gutter);top:calc(var(--header-h) + 120px);max-width:min(44vw,560px)}
.s-palette__core{display:flex;flex-direction:column;width:92px;margin-bottom:22px}
.s-palette__core i{display:block;height:9px}
.s-palette__endline{margin:0;font-family:var(--f-sans);font-weight:600;font-size:clamp(26px,3.6vw,56px);line-height:1.02;letter-spacing:-.03em}
.s-palette__ew{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.08em}
.s-palette__ew>span{display:inline-block}

@media (max-width:1024px){
  .s-palette__drops{left:28%;right:6%}
  .s-palette__garment{top:20vh;height:56vh}
}
@media (max-width:600px){
  .s-palette{--word:14.4vw}
  .s-palette__drops{left:0;right:0}
  .s-palette__garment{top:30vh;height:44vh}
  .s-palette__head{top:calc(var(--header-h) + 10px)}
  .s-palette__title{font-size:22px}
  .s-palette__rail{top:auto;bottom:auto;top:calc(var(--header-h) + 84px);transform:none;flex-direction:row;gap:10px}
  .s-palette__word{right:var(--gutter)}
  .s-palette__chip{font-size:12px;gap:9px;bottom:calc(var(--word) * .78 + var(--wb) + 14px)}
  .s-palette__sw{width:22px;height:22px}
  .s-palette__chip{padding:5px 12px 5px 5px}
  .s-palette__hex{font-size:11px}
  .s-palette__end{top:calc(var(--header-h) + 118px);max-width:none;right:var(--gutter)}
  .s-palette__core{width:64px;margin-bottom:14px}
  .s-palette__endline{font-size:26px}
}

/* reduced motion: simple six-panel stack, no pin */
.s-palette--static .s-palette__shead{padding-top:72px;padding-bottom:32px}
.s-palette--static .s-palette__title{font-size:clamp(26px,3vw,44px)}
.s-palette__panel{position:relative;min-height:78vh;background:var(--c);overflow:hidden}
.s-palette__panel .s-palette__drops,.s-palette__panel .s-palette__garment{pointer-events:auto}
.s-palette__panel .s-palette__garment{top:8vh;height:56vh;left:30%;right:6%}
.s-palette__panel .s-palette__end{top:48px}
@media (max-width:600px){
  .s-palette__panel{min-height:88vh}
  .s-palette__panel .s-palette__garment{top:22vh;height:42vh;left:0;right:0}
}
