/* set-design.css v7 — "Four decisions" · workshop board. Load AFTER styles.min-hasgallery.css
   v7: new editorial hero (no sticky/lens), one layout logic for desktop + mobile,
   scroll stages (sketch, kitchen) work on phones too, specificity fixes for the base reset. */
@property --w{syntax:"<number>";inherits:true;initial-value:0}
html:has(body.sd-page){background:#17141f;overflow-x:hidden;scrollbar-gutter:stable}
html body.sd-page.publication-page.has-gallery{
  --ink:#17141f;--wall:#efedf1;
  --gut:clamp(16px,3.4vw,52px);                                   /* page gutter */
  --lead:max(var(--gut),calc((100vw - 1480px)/2 + var(--gut)));   /* aligns hero copy with .sd-in on wide screens */
  --hdr:60px;                                                     /* fixed header height */
  --sans:"Segoe UI Variable Display","SF Pro Display","Helvetica Neue",Arial,sans-serif;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  background:var(--wall)!important;color:var(--ink);display:block!important;height:auto!important;min-height:100vh;overflow:visible!important;overflow-x:clip!important;
  font-family:var(--sans);line-height:1.5}
body.sd-page.publication-page.has-gallery .container,body.sd-page.publication-page.has-gallery .rt-container,body.sd-page.publication-page.has-gallery .Scriptcontent{display:contents}
body.sd-page.publication-page.has-gallery #main-content{display:block!important;position:relative;padding:0!important;text-align:left;overflow:visible!important;background:none!important;flex:none}
body.sd-page *{box-sizing:border-box}
body.sd-page ::selection{background:var(--ink);color:#fff}
body.sd-page :focus-visible{outline:3px solid currentColor;outline-offset:3px}
/* base reset (specificity 0,1,3 — every component rule below that sets margin/padding/max-width on these tags is prefixed with body.sd-page to beat it) */
body.sd-page main h1,body.sd-page main h2,body.sd-page main h3,body.sd-page main p,body.sd-page main figure,body.sd-page main ul,body.sd-page main dl,body.sd-page main blockquote{margin:0;padding:0;max-width:none}
body.sd-page main ul{list-style:none}
body.sd-page main a{text-decoration:none}
body.sd-page main figure{background:none;padding:0;border:0;border-radius:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;text-align:left;width:auto;max-width:none;cursor:auto}
body.sd-page main figure:hover{background:none;transform:none}
body.sd-page main img{border-radius:0;box-shadow:none}
body.sd-page main h1,body.sd-page main h2,body.sd-page main h3,body.sd-page main h4,body.sd-page main p,body.sd-page main blockquote{color:inherit;text-align:left}
body.sd-page main li{color:inherit;text-align:left}
body.sd-page main cite,body.sd-page main figcaption{text-align:left}

/* ---------- line grammar: three weights, used as dividers ---------- */
.sd-bands{display:grid;gap:5px;width:100%}
.sd-bands i{display:block;background:var(--k1);height:2px;transform-origin:0 50%}
.sd-bands i:nth-child(2){background:var(--k2);height:12px}
.sd-bands i:nth-child(3){background:var(--k3);height:38px}
.js .sd-bands i{transform:scaleX(0);transition:transform 1.1s cubic-bezier(.2,.8,.2,1)}
.js .sd-bands i:nth-child(2){transition-delay:.12s}.js .sd-bands i:nth-child(3){transition-delay:.24s}
.js .sd-bands.is-in i{transform:none}

/* =====================================================================
   HERO — editorial split. Copy on solid ink (always readable), the room
   beside it. One toggle: the same room in red or orange. No sticky, no
   cursor tricks, so it behaves the same on every device.
   ===================================================================== */
body.sd-page .sd-hero{position:relative;display:block;margin:0;padding:0;height:auto;min-height:0;overflow:hidden;
  background:var(--ink);color:#fff;--k1:#fff;--k2:#ee070a;--k3:#045982;--mut:#b9b2c4}
.sd-hero-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);min-height:100vh;min-height:100svh}
.sd-hero-copy{grid-column:1;grid-row:1;position:relative;z-index:2;display:flex;flex-direction:column;justify-content:flex-end;
  padding:clamp(104px,16vh,150px) clamp(20px,3vw,56px) clamp(108px,15vh,136px) var(--lead)}
body.sd-page .sd-kicker{margin:0 0 auto;font:600 13px/1 var(--sans);letter-spacing:.22em;text-transform:uppercase;color:var(--mut)}
body.sd-page h1.sd-title{margin:clamp(24px,4vh,44px) 0 0 -.04em;font:800 clamp(60px,min(8vw,15.5vh),150px)/.84 var(--sans);letter-spacing:-.065em;color:#fff}
body.sd-page .sd-hero .sd-bands{margin:clamp(24px,3.6vh,40px) 0 0;max-width:min(100%,400px)}
body.sd-page .sd-sub{margin:clamp(20px,3vh,30px) 0 0;max-width:26ch;font:600 clamp(18px,1.6vw,24px)/1.3 var(--sans);letter-spacing:-.01em;color:#fff}
body.sd-page .sd-epi{margin:clamp(24px,4.4vh,48px) 0 0;max-width:none;font-size:clamp(16px,1.3vw,20px);color:#d8d2e0}

/* the room */
body.sd-page .sd-shot{grid-column:2;grid-row:1;position:relative;overflow:hidden;background:#000;margin:0}
.sd-shot picture{position:absolute;inset:0;display:block;transition:opacity .7s ease}
.sd-shot img{display:block;width:100%;height:100%;object-fit:cover;object-position:64% 50%}
.sd-shot .alt{opacity:0}
.sd-hero[data-room="orange"] .sd-shot .alt{opacity:1}
.sd-shot:after{content:"";position:absolute;z-index:2;left:0;right:0;top:0;height:120px;background:linear-gradient(rgba(23,20,31,.6),transparent);pointer-events:none}
/* the switch: flush rectangles, same language as the line kit */
body.sd-page .sd-switch{position:absolute;z-index:3;left:0;bottom:clamp(100px,14vh,124px);display:flex}
.sd-switch button{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 20px;background:#fff;color:var(--ink);
  font:700 14px/1 var(--sans);cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent;transition:background .25s,color .25s}
.sd-switch button i{display:block;width:14px;height:14px;background:var(--c)}
.sd-switch button[data-room="red"]{--c:#ee070a}
.sd-switch button[data-room="orange"]{--c:#cf7342}
.sd-switch button[aria-pressed="true"]{background:var(--ink);color:#fff;box-shadow:inset 0 -4px 0 var(--c)}
.sd-switch button:not([aria-pressed="true"]):hover{background:#f1edf5}
.sd-switch button:focus-visible{outline:3px solid #ee070a;outline-offset:-3px;z-index:1}

/* entrance */
.js .sd-shot{animation:sdFade .9s .05s cubic-bezier(.2,.8,.2,1) both}
.js .sd-shot img{animation:sdZoom 1.8s cubic-bezier(.2,.8,.2,1) both}
.js h1.sd-title{animation:sdT 1s .2s cubic-bezier(.2,.8,.2,1) both}
@keyframes sdFade{from{opacity:0}to{opacity:1}}
@keyframes sdZoom{from{transform:scale(1.08)}to{transform:none}}
@keyframes sdT{from{transform:translateX(-4vw);opacity:0}to{transform:none;opacity:1}}

/* header: transparent over the hero, glass once you scroll */
body.sd-page:not(.scrolled) .header{background:transparent!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

/* ---------- decisions: shared ---------- */
.sd-dec{position:relative;background:var(--bg);color:var(--fg);padding:0 0 clamp(70px,9vw,140px)}
.sd-dec .sd-bands{margin-bottom:clamp(34px,5vw,70px)}
.sd-in{max-width:1480px;margin:0 auto;padding:0 var(--gut);display:grid;grid-template-columns:repeat(12,1fr);column-gap:clamp(16px,2.6vw,40px);row-gap:clamp(28px,4vw,56px)}
.sd-head{grid-column:1/-1}
.sd-head small{display:block;font:600 15px/1.2 var(--sans);color:var(--mut);margin-bottom:14px}
body.sd-page .sd-dec h2{font:800 clamp(34px,5.6vw,92px)/.92 var(--sans);letter-spacing:-.05em;max-width:15ch}
.sd-fig{position:relative}
.sd-fig img{display:block;width:100%;height:auto}
.sd-fig picture,.sw-fig picture{display:block}
.sd-fig .frame{display:block;position:relative;overflow:hidden;background:#000}
.sd-fig figcaption{padding:10px 0 0;font:500 14px/1.4 var(--sans);color:var(--mut)}
body.sd-page main .sd-fig figcaption{color:var(--mut)}
.sd-side{display:grid;align-content:start;gap:clamp(22px,2.6vw,34px)}
body.sd-page .sd-side h3,body.sd-page .chg h3,body.sd-page .cols2 h3{font:700 15px/1.2 var(--sans);margin:0 0 10px;display:flex;align-items:center;gap:10px}
.sd-side h3:before{content:"";flex:none;width:12px;height:12px;background:var(--k2)}
body.sd-page .sd-side p,body.sd-page .sd-side li{font:400 clamp(15px,1.15vw,17px)/1.55 var(--sans);max-width:46ch}
.sd-verdict{font:800 clamp(22px,2.3vw,34px)/1.08 var(--sans);letter-spacing:-.03em;max-width:20ch}
.sd-verdict span{display:block;font:500 15px/1.5 var(--sans);letter-spacing:0;margin-top:10px;opacity:.85;max-width:44ch}
/* palette */
.pal-bar{display:flex;gap:2px;height:58px;overflow:hidden}
.pal-bar i{display:block;flex:var(--w) 1 0;background:var(--c);min-width:3px}
.js .pal-bar i{transform:scaleX(0);transform-origin:0 50%;transition:transform .9s cubic-bezier(.2,.8,.2,1)}
.js .is-in .pal-bar i,.js .pal-bar.is-in i{transform:none}
body.sd-page .pal-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:2px 14px;margin:12px 0 0}
.pal-list button{all:unset;box-sizing:border-box;display:grid;grid-template-columns:20px 1fr;column-gap:10px;align-items:center;width:100%;padding:6px 0;cursor:copy;font:600 14px/1.25 var(--sans);-webkit-tap-highlight-color:transparent}
.pal-list button:before{content:"";grid-row:1/3;width:20px;height:20px;background:var(--c);box-shadow:0 0 0 1px var(--edge)}
.pal-list button span{font-weight:400;font-size:12.5px;opacity:.75;font-variant-numeric:tabular-nums}
.pal-list button:hover b{text-decoration:underline;text-underline-offset:3px}
body.sd-page .pal-note{font:400 13px/1.45 var(--sans);opacity:.75;margin:14px 0 0;max-width:46ch}
/* line kit */
.kit{display:grid;gap:9px}
.kit div{display:grid;grid-template-columns:1fr auto;align-items:center;gap:14px;font:400 14px/1.3 var(--sans)}
.kit i{display:block;background:var(--k1);height:2px;transform-origin:0 50%}
.kit div:nth-child(2) i{background:var(--k2);height:12px}
.kit div:nth-child(3) i{background:var(--k3);height:34px}
.js .kit i{transform:scaleX(0);transition:transform 1s .2s cubic-bezier(.2,.8,.2,1)}
.js .is-in .kit i,.js .kit.is-in i{transform:none}
.kit span{max-width:21ch;text-align:right}
/* haiku */
body.sd-page .sd-q{position:relative;font:italic 400 clamp(20px,2.1vw,30px)/1.3 var(--serif);padding:0 0 0 22px;border-left:4px solid var(--k2)}
.sd-q cite{display:block;margin-top:12px;font:500 13px/1.4 var(--sans);font-style:normal;opacity:.7}
.sd-q em{font-style:inherit}
/* pins */
.pin{position:absolute;z-index:3;left:var(--x);top:var(--y);width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;background:#fff;color:var(--ink);font:800 14px/30px var(--sans);text-align:center;box-shadow:0 0 0 3px var(--k2),0 8px 18px rgba(0,0,0,.35);cursor:pointer;transition:transform .25s}
.pin.on,.pin:hover{transform:scale(1.35)}
.pin-list{display:grid;gap:8px}
.pin-list li{display:grid;grid-template-columns:30px 1fr;gap:12px;align-items:start;padding:6px 8px;margin:0 -8px;cursor:pointer;transition:background .2s;-webkit-tap-highlight-color:transparent}
.pin-list li b{display:block;width:26px;height:26px;border-radius:50%;background:var(--fg);color:var(--bg);font:800 13px/26px var(--sans);text-align:center}
.pin-list li.on{background:rgba(127,127,127,.18)}
@media(pointer:coarse){.pin{width:38px;height:38px;margin:-19px 0 0 -19px;font-size:15px;line-height:38px}}

/* ---------- 03 sketch (scroll-scrubbed, desktop + phone) ---------- */
.sd-sketch{position:relative;background:var(--ink);color:#f3f0f6;--mut:#b9b2c4}
.sd-sketch .sd-stage{position:relative;max-width:1480px;margin:0 auto;padding:clamp(60px,8vw,110px) var(--gut)}
.sd-sketch.live{height:340vh}
.sd-sketch.live .sd-stage{position:sticky;top:0;height:100vh;height:100svh;padding-top:70px;padding-bottom:84px;display:grid;grid-template-columns:repeat(12,1fr);column-gap:32px;align-items:center}
.sd-sketch .txt{grid-column:1/5;align-self:center;position:relative;z-index:2}
.sd-sketch h2{font:800 clamp(38px,5.6vw,92px)/.9 var(--sans);letter-spacing:-.05em}
.sd-sketch .txt p{margin-top:20px;font:400 clamp(15px,1.2vw,18px)/1.5 var(--sans);color:var(--mut);max-width:34ch}
.sd-sketch .sd-q{margin-top:28px;--k2:#ee070a}
.sd-sketch svg{grid-column:5/13;display:block;width:100%;height:auto;max-height:calc(100vh - 170px);margin-top:28px}
.sd-sketch .sk line,.sd-sketch .sk path,.sd-sketch .sk ellipse,.sd-sketch .sk circle,.sd-sketch .sk rect.l{fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round;mix-blend-mode:difference;stroke-dasharray:1;stroke-dashoffset:0}
.sd-sketch .sk .dim{stroke-width:1;opacity:.6}
.sd-sketch .sk polygon,.sd-sketch .sk rect.f{stroke:none;transition:fill .7s}
.sd-sketch .sk text{font:italic 400 22px var(--serif);fill:#ff9d8e;stroke:#17141f;stroke-width:6px;paint-order:stroke;stroke-linejoin:round;transition:opacity .5s}
.sd-sketch .sk path.arrow{stroke:#ff8a7a;mix-blend-mode:normal}
.sk{--f-floor:#ebeae5;--f-left:#06959b;--f-right:#06959b;--f-back:#7cb2a6;--f-ceil:#c4e9e2;--f-band:#33aea9;--f-slab:#19d5a1;--f-acc:#c4e9e2;--f-fur:#0e6e52}
.sk[data-pal="0"]{--f-floor:#8d796c;--f-left:#c0afa1;--f-right:#c0afa1;--f-back:#e3d8d0;--f-ceil:#e3d8d0;--f-band:#b96c29;--f-slab:#2c3948;--f-acc:#b88118;--f-fur:#5e1b15}
.sk[data-pal="1"]{--f-floor:#830717;--f-left:#ee070a;--f-right:#b30819;--f-back:#fde9e9;--f-ceil:#f8b3b7;--f-band:#d92a49;--f-slab:#203a51;--f-acc:#fde9e9;--f-fur:#f8b3b7}
.sk[data-pal="2"]{--f-floor:#d9c4c1;--f-left:#d87a6e;--f-right:#e2d2cf;--f-back:#045982;--f-ceil:#d0565e;--f-band:#bf4836;--f-slab:#525161;--f-acc:#e2d2cf;--f-fur:#bf4836}
.sk .f-floor{fill:var(--f-floor)}.sk .f-left{fill:var(--f-left)}.sk .f-right{fill:var(--f-right)}.sk .f-back{fill:var(--f-back)}.sk .f-ceil{fill:var(--f-ceil)}
.sk .f-band{fill:var(--f-band)}.sk .f-slab{fill:var(--f-slab)}.sk .f-acc{fill:var(--f-acc)}.sk .f-fur{fill:var(--f-fur)}
.sd-sketch .sk polygon.o{fill:none;stroke:#fff;stroke-width:1.4;stroke-linejoin:round;stroke-linecap:round;mix-blend-mode:difference;stroke-dasharray:1;stroke-dashoffset:0}
.sd-sketch .cap{position:absolute;right:var(--gut);bottom:clamp(60px,9vh,96px);z-index:3;display:flex;gap:12px;align-items:center;font:600 15px var(--sans);color:#fff}
.sd-sketch .cap i{display:block;width:44px;height:12px;background:var(--cap,#06959b)}
.sd-sketch:not(.live) .cap,.sd-sketch:not(.live) .meter{display:none}
.sd-sketch .meter{position:absolute;left:0;bottom:0;height:5px;width:calc(var(--pp,1)*100%);background:#ee070a}

/* ---------- decision colours ---------- */
.d1{--bg:#2a0e0b;--fg:#f4e6dc;--mut:#cdb0a2;--edge:rgba(255,255,255,.4);--k1:#cd9368;--k2:#b96c29;--k3:#e3d8d0}
.d2{--bg:#f3eef0;--fg:#17141f;--mut:#5d5566;--edge:rgba(0,0,0,.3);--k1:#17141f;--k2:#ee070a;--k3:#a34d21}
.d3{--fg:#fff;--mut:rgba(255,255,255,.82);--edge:rgba(255,255,255,.5);--k1:#fff;--k2:#d87a6e;--k3:#17141f;--bg:#6f685f}
.d4{--bg:#c5e9e3;--fg:#053c40;--mut:#2b6b6c;--edge:rgba(0,0,0,.3);--k1:#053c40;--k2:#06959b;--k3:#19d5a1}

/* d1 */
.d1 .sd-fig{grid-column:1/8}.d1 .sd-side{grid-column:8/13}
.d1 .sd-head{grid-column:1/-1}
.d1 .sd-fig .frame{box-shadow:24px 24px 0 var(--k2)}
/* d2 compare */
.d2 .cmp-wrap{grid-column:1/9}.d2 .sd-side{grid-column:9/13}
.cmp{position:relative;aspect-ratio:4/3;overflow:hidden;background:#000;--pos:50%;user-select:none;-webkit-user-select:none;touch-action:pan-y}
.cmp picture,.cmp img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.cmp .top{position:absolute;inset:0;clip-path:inset(0 0 0 var(--pos))}
.cmp .grip{position:absolute;top:0;bottom:0;left:var(--pos);width:0;pointer-events:none}
.cmp .grip:before{content:"";position:absolute;top:0;bottom:0;left:-2px;width:4px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.25)}
.cmp .grip:after{content:"";position:absolute;top:50%;left:-26px;width:52px;height:52px;margin-top:-26px;border-radius:50%;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52'%3E%3Cpath d='M19 18l-8 8 8 8M33 18l8 8-8 8' fill='none' stroke='%2317141f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/52px no-repeat;box-shadow:0 8px 24px rgba(0,0,0,.4)}
.cmp input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;z-index:4;touch-action:pan-y}
.cmp:focus-within .grip:after{outline:3px solid #ee070a;outline-offset:3px}
.cmp .lab{position:absolute;z-index:3;bottom:12px;padding:5px 11px;background:#fff;color:var(--ink);font:700 14px var(--sans)}
.cmp .lab.l{left:12px}.cmp .lab.r{right:12px}
.cmp-q{display:grid;margin-top:26px}
/* the two haiku never overlap: the old one leaves first, the new one arrives after */
.cmp-q .sd-q{grid-area:1/1;opacity:1;transition:opacity .3s .2s}
.cmp-q .sd-q.b{--k2:#ee070a}
.js .cmp-wrap[data-side="red"] .sd-q.a,.js .cmp-wrap[data-side="orange"] .sd-q.b{opacity:0;pointer-events:none;transition:opacity .18s}
.pal2{display:grid;gap:18px}
.pal2 h4{font:700 14px var(--sans);margin:0 0 8px}
.chg{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.chg ul{display:grid;gap:4px}.chg li{font-size:15px!important}
/* d3 wipe */
.sd-wipe{background:color-mix(in srgb,#6f685f calc((1 - var(--w))*100%),#045982);transition:none}
.sd-wipe .sd-in{padding-bottom:0}
.sd-wipe .sw-fig{grid-column:1/7;position:relative}
.sd-wipe .sw-fig .a,.sd-wipe .sw-fig .b{position:relative;display:block}
.sd-wipe .sw-fig .b{margin-top:16px}
.sd-wipe .sw-fig img{display:block;width:100%;height:auto}
.sd-wipe .sd-side{grid-column:7/13}
.sw-pals{display:grid;gap:16px}
.sw-pals h4{font:700 14px var(--sans);margin:0 0 8px}
.sw-q{display:grid;gap:18px}
.sw-q .sd-q{--k2:#fff}
.cols2{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.cols2 li{font-size:15px!important;margin-bottom:3px}
.sd-wipe:not(.live) .hint{display:none}
.sd-wipe.live{height:300vh}
.sd-wipe.live .sd-in{position:sticky;top:0;height:100vh;height:100svh;align-content:center;padding-top:64px;padding-bottom:76px;grid-template-rows:auto 1fr;row-gap:12px}
.sd-wipe.live .sd-head{grid-row:1}
.sd-wipe.live h2{font-size:clamp(30px,4.2vw,64px)}
.sd-wipe.live .sw-fig{grid-column:1/6;grid-row:2;align-self:stretch;min-height:0;display:grid;place-items:center}
.sd-wipe.live .sw-fig .stack{position:relative;height:100%;max-height:calc(100vh - 230px);aspect-ratio:1173/1440;max-width:100%}
.sd-wipe.live .sw-fig .a,.sd-wipe.live .sw-fig .b{position:absolute;inset:0;margin:0}
.sd-wipe.live .sw-fig .b{clip-path:polygon(0 0,calc(var(--w)*135%) 0,calc(var(--w)*135% - 35%) 100%,0 100%)}
.sd-wipe.live .sw-fig img{height:100%;object-fit:cover}
.sd-wipe.live .sw-fig .stack:after{content:"";position:absolute;inset:0;border:1px solid rgba(255,255,255,.4);pointer-events:none}
.sd-wipe.live .sd-side{grid-column:6/13;grid-row:2;align-self:center;gap:18px}
.sd-wipe.live h2{max-width:none;font-size:clamp(26px,3.3vw,52px)}
.sd-wipe.live .sd-verdict{font-size:clamp(20px,1.9vw,28px);max-width:28ch}
.sd-wipe.live .sd-verdict span{display:none}
.sd-wipe.live .pal-list{grid-template-columns:repeat(4,1fr);margin-top:8px}
.sd-wipe.live .pal-bar{height:38px}
.sd-wipe.live .sd-q{font-size:clamp(18px,1.7vw,24px)}
/* a/b layers: old text fades first, new text arrives after — never both at once */
.sd-wipe.live .sw-q{display:grid}
.sd-wipe.live .sw-q .sd-q{grid-area:1/1;opacity:1;transition:opacity .3s .2s}
.sd-wipe.live[data-state="a"] .sw-q .sd-q.b,.sd-wipe.live[data-state="b"] .sw-q .sd-q.a{opacity:0;transition:opacity .18s}
.sd-wipe.live .sw-pals{display:grid}
.sd-wipe.live .sw-pals>div{grid-area:1/1;opacity:1;transition:opacity .3s .2s}
.sd-wipe.live[data-state="a"] .sw-pals>.b,.sd-wipe.live[data-state="b"] .sw-pals>.a{opacity:0;pointer-events:none;transition:opacity .18s}
.sd-wipe .sw-prog{display:none}
.sd-wipe.live .sw-prog{display:block;position:absolute;left:0;bottom:0;height:5px;width:calc(var(--w)*100%);background:#fff}
/* d4 takes */
.d4 .takes{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(16px,2.6vw,40px);align-items:start}
.d4 .take:nth-child(2){margin-top:clamp(30px,6vw,96px)}
.d4 .take:nth-child(3){margin-top:clamp(12px,2vw,30px)}
.d4 .take img{transition:filter .6s}
.d4.is-squint .take img{filter:grayscale(1) blur(7px) contrast(1.15)}
.d4 .take .sd-q{margin-top:18px;font-size:clamp(18px,1.6vw,24px)}
.d4 .take p.n{font:400 15px/1.5 var(--sans);margin-top:12px;max-width:36ch}
.d4 .take h3{font:800 22px/1 var(--sans);letter-spacing:-.03em;margin-top:16px}
.d4 .bottom{grid-column:1/-1;display:grid;grid-template-columns:repeat(12,1fr);column-gap:clamp(16px,2.6vw,40px);row-gap:28px;align-items:start}
.d4 .bottom .p{grid-column:1/7}.d4 .bottom .v{grid-column:8/13}
.d4 .bottom .p>h3{font:700 15px var(--sans);margin-bottom:10px}
.sq{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:12px;margin-top:18px;padding:12px 18px;min-height:46px;background:var(--fg);color:var(--bg);font:700 15px var(--sans);cursor:pointer;transition:transform .2s;-webkit-tap-highlight-color:transparent}
.sq:hover{transform:translateY(-2px)}
.sq:focus-visible{outline:3px solid var(--fg);outline-offset:3px}
.sq i{width:16px;height:16px;border-radius:50%;background:linear-gradient(90deg,var(--bg) 50%,transparent 50%);box-shadow:inset 0 0 0 2px var(--bg)}
.sq[aria-pressed="true"] i{background:var(--bg)}
/* ---------- finale ---------- */
.sd-end{background:var(--ink);color:#f3f0f6;padding:0 0 clamp(110px,12vw,170px)}
.sd-end .sd-bands{--k1:#ee070a;--k2:#045982;--k3:#19d5a1;margin-bottom:clamp(40px,6vw,90px)}
.sd-end .in{max-width:1480px;margin:0 auto;padding:0 var(--gut);display:grid;grid-template-columns:repeat(12,1fr);column-gap:clamp(16px,2.6vw,40px);row-gap:36px}
.sd-end .l{grid-column:1/6;font:italic 400 clamp(18px,1.7vw,24px)/1.5 var(--serif);color:#d8d2e0}
.sd-end .big{grid-column:6/13;font:800 clamp(38px,6.4vw,104px)/.9 var(--sans);letter-spacing:-.055em}
.sd-end .big em{display:block;font-style:normal;color:#8e86a0}
.sd-end .links{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:12px 28px;margin-top:20px;font:700 clamp(18px,2vw,26px) var(--sans)}
body.sd-page .sd-end .links a{color:#fff;border-bottom:3px solid #ee070a;padding-bottom:4px}
body.sd-page .sd-end .links a:hover{border-color:#19d5a1}
.sd-end small{grid-column:1/-1;font:500 13px/1.5 var(--sans);color:#a39bb3}
.sd-toast{position:fixed;z-index:10001;left:50%;bottom:92px;transform:translate(-50%,20px);padding:10px 16px;background:var(--ink,#17141f);color:#fff;font:600 14px var(--sans);opacity:0;pointer-events:none;transition:.3s}
.sd-toast.on{opacity:1;transform:translate(-50%,0)}
body.sd-page .footer{background:rgba(239,237,241,.88)}

body.sd-page main .hint{font:500 15px/1.45 var(--sans);color:var(--mut);margin-top:12px;max-width:52ch}
.sd-wipe.live .hint{font-size:14px;margin-top:8px}

/* squint card */
.squint{margin-top:28px;max-width:560px;padding:22px 24px 24px;background:rgba(5,60,64,.07);border-top:2px solid var(--fg);display:grid;gap:16px}
.squint-top{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px}
.squint .sq{margin:0;flex:none}
body.sd-page main .squint-q{font:800 clamp(18px,1.6vw,22px)/1.15 var(--sans);letter-spacing:-.025em;max-width:20ch}
body.sd-page main .squint-how{font:400 14.5px/1.55 var(--sans);max-width:46ch;opacity:.85}
.squint-res{display:grid;gap:14px;max-height:0;opacity:0;overflow:hidden;transition:max-height .5s ease,opacity .5s ease}
.is-squint .squint-res{max-height:260px;opacity:1}
.squint-res ul{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.squint-res li{display:grid;gap:3px;font:700 14px/1.2 var(--sans)}
.squint-res li:before{content:"";display:block;height:46px;margin-bottom:6px;background:var(--g);box-shadow:0 0 0 1px var(--edge)}
.squint-res li span{font-weight:400;font-size:12.5px;opacity:.75}
body.sd-page main .squint-res p{font:700 15px/1.3 var(--sans);padding-top:12px;border-top:1px solid var(--edge)}

/* back to the beginning */
.sd-top{all:unset;box-sizing:border-box;grid-column:1/-1;justify-self:start;display:inline-flex;align-items:center;gap:10px;cursor:pointer;margin-top:8px;padding-bottom:8px;font:600 13px/1 var(--sans);letter-spacing:.24em;text-transform:uppercase;color:#d8d2e0;border-bottom:1px solid #ee070a;transition:color .2s,border-color .2s}
.sd-top span{display:inline-block;font-size:16px;letter-spacing:0;transition:transform .25s}
.sd-top:hover{color:#fff;border-color:#19d5a1}
.sd-top:hover span{transform:translateY(-4px)}
.sd-top:focus-visible{outline:3px solid #fff;outline-offset:6px}
#hero-title:focus{outline:none}

/* lightbox */
html.lb-open{overflow:hidden}
body.sd-page main .image-gallery,body.sd-page main .image-gallery-v{cursor:zoom-in}
.sd-lb{position:fixed;inset:0;z-index:2147483000;color:#fff;background:rgba(23,20,31,.94);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);visibility:hidden;opacity:0;transition:opacity .35s ease,visibility 0s .35s}
.sd-lb.on{visibility:visible;opacity:1;transition:opacity .35s ease}
.sd-lb *{box-sizing:border-box}
.lb-stage{position:absolute;inset:0;overflow:hidden}
.lb-slide{position:absolute;inset:0;display:grid;place-items:center;padding:clamp(64px,10vh,100px) clamp(76px,10vw,140px);opacity:0;transition:opacity .45s ease,transform .65s cubic-bezier(.2,.8,.2,1)}
.lb-slide.first{transform:scale(.95)}
.lb-slide.from-r{transform:translateX(70px)}
.lb-slide.from-l{transform:translateX(-70px)}
.lb-slide.out-l{opacity:0;transform:translateX(-70px)}
.lb-slide.out-r{opacity:0;transform:translateX(70px)}
.lb-slide.in{opacity:1;transform:none}
.lb-slide picture{display:block}
.lb-slide img{display:block;width:auto;height:auto;max-width:calc(100vw - clamp(152px,20vw,280px));max-height:calc(100vh - clamp(128px,20vh,200px));max-height:calc(100svh - clamp(128px,20vh,200px));background:#222;box-shadow:0 30px 90px rgba(0,0,0,.55)}
.lb-nav,.lb-x{all:unset;box-sizing:border-box;position:absolute;z-index:3;width:52px;height:52px;border-radius:50%;background:#fff;color:#17141f;display:grid;place-items:center;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.4);transition:background .2s,color .2s,transform .2s}
.lb-nav:hover,.lb-x:hover{background:#ee070a;color:#fff}
.lb-nav:active,.lb-x:active{transform:scale(.93)}
.lb-nav:focus-visible,.lb-x:focus-visible{outline:3px solid #fff;outline-offset:3px}
.lb-nav.prev{left:clamp(12px,2.4vw,32px);top:50%;margin-top:-26px}
.lb-nav.next{right:clamp(12px,2.4vw,32px);top:50%;margin-top:-26px}
.lb-x{top:clamp(12px,2.4vw,28px);right:clamp(12px,2.4vw,28px);width:44px;height:44px}
.lb-cap{position:absolute;z-index:3;left:clamp(16px,3.4vw,52px);bottom:clamp(24px,5vh,44px);margin:0;font:italic 400 clamp(17px,1.7vw,22px)/1.2 var(--serif);color:#fff;text-shadow:0 1px 10px rgba(0,0,0,.6)}
.lb-cap i{font:normal 600 13px var(--sans);letter-spacing:.2em;opacity:.85;margin-right:12px}
.lb-hint{position:absolute;z-index:3;right:clamp(16px,3.4vw,52px);bottom:clamp(24px,5vh,44px);margin:0;font:600 12px var(--sans);letter-spacing:.24em;text-transform:uppercase;opacity:.55}
.lb-prog{position:absolute;left:0;bottom:0;height:5px;width:var(--p,0%);background:#ee070a;transition:width .5s cubic-bezier(.2,.8,.2,1)}

/* ---------- short desktop screens ---------- */
@media(min-width:861px) and (max-height:820px){
  .sd-hero-copy{padding-top:96px;padding-bottom:100px}
  body.sd-page .sd-hero .sd-bands{margin-top:22px}
  .sd-hero .sd-bands i:nth-child(3){height:22px}
  body.sd-page .sd-sub{margin-top:18px;font-size:18px}
  body.sd-page .sd-epi{margin-top:22px;font-size:16px}
  .sd-epi cite{margin-top:8px}
}
@media(min-width:861px) and (max-height:780px){.sd-wipe.live .pal-list{display:none}.sd-wipe.live .cols2 li:nth-child(n+3){display:none}.sd-wipe.live .sd-verdict{max-width:34ch}.sd-wipe.live .hint{display:none}}

/* =====================================================================
   PHONES & SMALL TABLETS (≤860px) — same content, same order, same
   effects as desktop; only the arrangement changes.
   ===================================================================== */
@media(max-width:860px){
  .sd-in>*{grid-column:1/-1!important}

  /* hero: kicker · title · sub · room (+switch) · lines · haiku */
  .sd-hero-grid{display:flex;flex-direction:column;min-height:0;padding:calc(var(--hdr) + 30px) 0 56px}
  .sd-hero-copy{display:contents}
  body.sd-page .sd-kicker{order:1;margin:0 var(--gut) 16px}
  body.sd-page h1.sd-title{order:2;margin:0 var(--gut);font-size:clamp(64px,22vw,150px)}
  body.sd-page .sd-sub{order:3;margin:18px var(--gut) 26px;max-width:30ch;font-size:clamp(18px,4.6vw,24px)}
  body.sd-page .sd-shot{order:4;aspect-ratio:1/1;width:100%}
  .sd-shot img{object-position:62% 50%}
  .sd-shot:after{display:none}
  body.sd-page .sd-switch{bottom:0}
  .sd-switch button{flex:1 1 0;justify-content:center;padding:0 12px}
  body.sd-page .sd-switch{right:0}
  body.sd-page .sd-hero .sd-bands{order:5;margin:32px var(--gut) 0;max-width:none}
  body.sd-page .sd-epi{order:6;margin:30px var(--gut) 0;max-width:34ch;font-size:clamp(17px,4.4vw,21px)}

  .d1 .sd-fig .frame{box-shadow:12px 12px 0 var(--k2)}
  .d1 .sd-fig{margin-right:12px}

  /* sketch: sticky stage on phones too */
  .sd-sketch .sd-stage{display:block}
  .sd-sketch .txt{margin-bottom:24px}
  .sd-sketch .sk text{font-size:30px}
  .sd-sketch.live{height:300vh;height:300svh}
  .sd-sketch.live .sd-stage{display:flex;flex-direction:column;justify-content:center;gap:14px;padding:calc(var(--hdr) + 16px) var(--gut) 100px}
  .sd-sketch.live .txt{margin:0}
  .sd-sketch.live h2{font-size:clamp(32px,10vw,48px)}
  .sd-sketch.live .txt p{margin-top:12px;font-size:14.5px;max-width:none}
  .sd-sketch.live .txt .sd-q{margin-top:16px;font-size:18px}
  .sd-sketch.live svg{flex:none;max-height:none;margin:0}
  .sd-sketch.live .cap{position:static;font-size:14px}

  /* d2 */
  .cmp .lab{bottom:10px;font-size:13px}

  /* d3 kitchen: picture pinned at the top, text scrolls beneath it, the paint wipe follows the text */
  .sd-wipe.live{height:auto}
  .sd-wipe.live .sd-in{display:block;position:static;height:auto;padding-top:0;padding-bottom:0}
  .sd-wipe.live .sd-head{margin-bottom:8px}
  .sd-wipe.live h2{font-size:clamp(30px,9vw,44px)}
  .sd-wipe.live .hint{display:block;font-size:14px}
  .sd-wipe.live .sw-fig{position:sticky;top:var(--hdr);z-index:6;display:block;margin:0 calc(var(--gut)*-1) 24px;padding:10px var(--gut) 14px;
    background:color-mix(in srgb,#6f685f calc((1 - var(--w))*100%),#045982);box-shadow:0 18px 16px -16px rgba(0,0,0,.5)}
  .sd-wipe.live .sw-fig .stack{height:44vh;height:44svh;max-height:none;margin:0 auto}
  .sd-wipe.live .sd-side{gap:22px;padding-bottom:max(110px,22vh)}
  .sd-wipe.live .sd-verdict span{display:block}
  .sd-wipe.live .pal-list{grid-template-columns:repeat(2,1fr)}
  .sd-wipe.live .sw-pals>div,.sd-wipe.live .sw-q{min-height:0}

  /* d4 takes: native swipe carousel */
  .d4 .takes{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:min(78vw,340px);gap:14px;align-items:start;
    overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;
    margin:0 calc(var(--gut)*-1);padding:0 var(--gut) 6px;scroll-padding-left:var(--gut)}
  .d4 .takes::-webkit-scrollbar{display:none}
  .d4 .take{scroll-snap-align:start}
  .d4 .take:nth-child(n){margin-top:0}
  .d4 .bottom{display:block}.d4 .bottom .v{margin-top:28px}
  .is-squint .squint-res{max-height:460px}
  .squint-res ul{grid-template-columns:repeat(2,1fr)}
  .squint{padding:20px 18px 22px}

  .sd-end .l,.sd-end .big{grid-column:1/-1}

  /* lightbox */
  .lb-slide{padding:72px 12px 104px}
  .lb-slide img{max-width:calc(100vw - 24px);max-height:calc(100vh - 190px);max-height:calc(100svh - 190px)}
  .lb-nav.prev,.lb-nav.next{top:auto;bottom:24px;margin:0}
  .lb-nav.prev{right:84px;left:auto}
  .lb-nav.next{right:16px}
  .lb-hint{display:none}
  .lb-cap{bottom:40px;max-width:calc(100vw - 180px)}
}
/* sketch is tight on small phones: drop what does not fit instead of breaking */
@media(max-width:860px) and (max-height:760px){.sd-sketch.live .txt .sd-q{display:none}}
@media(max-width:860px) and (max-height:640px){.sd-sketch.live .txt p{display:none}}
@media(max-width:860px) and (min-width:561px){body.sd-page .sd-shot{aspect-ratio:16/10}}
@media(max-width:380px){.sd-switch button{font-size:13px;padding:0 8px;gap:8px}}

@media(prefers-reduced-motion:reduce){
  body.sd-page *{animation:none!important;transition:none!important}
}