:root{font-family:Inter,Avenir,"Segoe UI",Arial,sans-serif;color:#20282d;background:#f0ede5;--navy:#173d5b;--line:#b9b4aa;--paper:#f0ede5}a{text-decoration:none}canvas{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}canvas:focus-visible{outline:3px solid var(--navy);outline-offset:4px}button:disabled{opacity:.45;cursor:default}.site-header{padding:22px 4%;gap:20px;border-bottom-color:#d9d5cd}.brand{font-size:27px;letter-spacing:-1px}.brand small{display:block;font-size:11px;letter-spacing:0;margin-top:5px}.main-nav{gap:28px}h1,h2,.gallery-copy h3{font-family:'Iowan Old Style',Baskerville,Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.045em}#stage{height:65svh;min-height:430px;max-height:820px;position:relative;background:#355d78;overflow:hidden}#room{display:block;width:100%;height:100%;touch-action:pan-y;cursor:grab}#room:active{cursor:grabbing}.scene-heading{position:absolute;top:24px;left:4%;pointer-events:none;max-width:380px;padding:16px 18px;background:#eee8ded9;box-shadow:0 12px 34px #173d5b1f;backdrop-filter:blur(8px)}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:10px;line-height:1.6;margin:0 0 14px}.scene-heading h1{font-size:clamp(30px,3.1vw,44px);line-height:1.05;margin:0}.gesture{position:absolute;bottom:18px;left:4%;font-size:11px;color:#454b48;pointer-events:none;max-width:65%;line-height:1.5;background:#f0eee9e8;padding:6px 9px}.overview{position:absolute;bottom:23px;right:4%;border:1px solid #a8aaa4;background:#f0eee9e8;padding:12px 18px;min-height:44px}#loading{position:absolute;top:54%;left:50%;transform:translate(-50%,-50%);background:#f0eee9;padding:18px 24px;white-space:nowrap;font-size:13px}#error{position:absolute;inset:22% 20%;padding:28px;background:#f0eee9;border:1px solid var(--line)}#error h2{font-size:32px}#error a{text-decoration:underline}.control-deck{padding:0 4% 28px;border-top:1px solid var(--line)}#stations{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--line)}#stations button{display:flex;min-width:0;gap:20px;align-items:center;padding:22px 0;background:transparent;border:0;border-bottom:2px solid transparent;min-height:62px;text-align:left;font-size:14px}#stations button span{font-size:10px;color:#686c69}#stations button[aria-pressed=true]{border-color:var(--navy);color:var(--navy)}.station-content{display:grid;grid-template-columns:1.2fr 1fr;gap:8%;padding-top:28px}.station-copy h2{font-size:32px;margin:0 0 12px}.station-copy>p:last-child{max-width:540px;font-size:14px;line-height:1.65;margin:0}.selection{justify-self:end;width:min(100%,420px)}#swatches{display:flex;gap:12px}#swatches button{position:relative;min-width:48px;width:48px;height:48px;border:5px solid #f0eee9;background:var(--swatch);border-radius:50%;outline:1px solid transparent}#swatches button[aria-pressed=true]{outline-color:var(--navy)}#swatches button:focus-visible{outline:3px solid var(--navy);outline-offset:2px}.color-name{font-size:12px;margin:12px 0 18px}.actions{display:flex;gap:12px;flex-wrap:wrap}.actions button{padding:12px 15px;min-height:44px;background:transparent;border:1px solid #a5a7a2;font-size:13px}.actions #next{background:var(--navy);color:#f0eee9;border-color:var(--navy)}.site-footer{padding:24px 4%;border-top:1px solid var(--line)}dialog{border:0;padding:36px;max-width:600px;width:calc(100% - 40px);background:#f0eee9;color:#262626}dialog::backdrop{background:#17252e99}dialog #close{display:block;margin:0 0 28px auto;min-height:44px;background:none;border:0}dialog h2{font-size:36px;margin:12px 0}dialog p{font-size:16px;line-height:1.7}dialog .disclaimer{font-size:12px;color:#656962;border-top:1px solid var(--line);padding-top:18px}dialog a{display:inline-block;padding:14px 0;text-decoration:underline;text-underline-offset:5px}.no-js{padding:24px}@media(hover:hover){.site-header a:hover,.site-footer a:hover{text-decoration:underline;text-underline-offset:5px}.actions button:hover,.overview:hover{border-color:var(--navy)}}@media(max-width:700px){.site-header{padding:18px 20px;min-height:116px;gap:12px}.main-nav{justify-content:space-between}.brand{font-size:24px}.brand small{font-size:9px}.main-nav{gap:8px}#stage{height:53svh;min-height:380px;max-height:540px}.scene-heading{left:20px;top:18px;max-width:260px;padding:12px 14px}.scene-heading h1{font-size:30px}.scene-heading .eyebrow{font-size:8px;margin-bottom:10px}.gesture{left:20px;bottom:12px;font-size:9px;max-width:48%}.overview{right:20px;bottom:18px;font-size:11px;padding:10px}.control-deck{padding:0 20px 24px}#stations button{font-size:10px;gap:6px;flex-direction:column;align-items:flex-start;padding:14px 4px 14px 0;min-height:62px;overflow-wrap:anywhere}.station-content{display:block;padding-top:24px}.station-copy h2{font-size:28px}.selection{margin-top:24px;width:100%}.site-footer{padding:20px;gap:12px}dialog{padding:24px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.brand{display:block;line-height:0}.brand img{display:block;width:220px;height:auto}@media(max-width:700px){.brand img{width:185px}}

/* Material galleries keep the room visible as their spatial point of origin. */
.material-gallery{inset:0;max-width:none;width:100%;height:100%;padding:0;background:rgba(231,227,217,.97);color:var(--ink);overflow:auto}
.material-gallery[open]{display:block}.material-gallery::backdrop{background:rgba(16,32,42,.7);backdrop-filter:blur(8px)}
.gallery-shell{width:min(1440px,100%);min-height:100%;margin:auto;padding:clamp(20px,3vw,48px);display:flex;flex-direction:column}
.gallery-head,.gallery-foot{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.gallery-head{padding-bottom:24px;border-bottom:1px solid var(--line)}
.gallery-head h2{margin:4px 0 0;font-size:clamp(38px,5vw,72px);line-height:.95;font-weight:500;letter-spacing:-.04em}.gallery-head .eyebrow{margin:0}
.gallery-head button,.gallery-foot button,.gallery-controls button{min-height:44px;border:1px solid #9ca099;background:transparent;color:inherit;padding:11px 14px;font:inherit;cursor:pointer}
.gallery-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);gap:clamp(28px,5vw,74px);align-items:center;flex:1;padding:clamp(28px,4vw,56px) 0}
.dissolve-stage{position:relative;aspect-ratio:16/10;overflow:hidden;background:#d8d2c7;isolation:isolate;outline:none;box-shadow:0 28px 70px rgba(23,37,46,.16)}
.dissolve-stage:focus-visible{box-shadow:0 0 0 3px var(--navy),0 28px 70px rgba(23,37,46,.16)}
#dissolve-canvas,#dissolve-fallback{position:absolute;inset:0;width:100%;height:100%;display:block}#dissolve-canvas{z-index:2}#dissolve-fallback{object-fit:cover;z-index:1}
.gallery-counter{position:absolute;z-index:3;right:18px;top:18px;padding:8px 10px;background:rgba(236,233,225,.86);font-size:10px;letter-spacing:.16em}
.gallery-copy h3{font-size:clamp(30px,3.2vw,50px);line-height:1;margin:8px 0 18px;letter-spacing:-.03em}.gallery-copy>p:not(.eyebrow){line-height:1.65;max-width:44ch}
.palette-list{display:grid;gap:10px;margin:26px 0}.palette{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;width:100%;padding:12px;border:1px solid var(--line);background:rgba(255,255,255,.23);text-align:left;color:inherit}.palette strong{font-size:12px;font-weight:500}.palette-colors{display:flex}.palette-colors i{display:block;width:30px;height:30px;background:var(--tone);border:1px solid rgba(23,37,46,.12);margin-left:-5px;border-radius:50%}.palette[aria-pressed=true]{border-color:var(--navy);box-shadow:inset 3px 0 0 var(--navy)}
.gallery-controls{display:flex;gap:10px}.gallery-controls button{flex:1}.gallery-controls #gallery-next{background:var(--navy);border-color:var(--navy);color:#f4f1ea}.gallery-foot{align-items:center;padding-top:20px;border-top:1px solid var(--line);font-size:11px}.gallery-foot p{margin:0}
#gallery-open{border-color:var(--navy);background:#eef0eb}
.office-turn{position:absolute;right:4%;top:24px;z-index:4;display:flex;align-items:center;gap:10px;padding:10px 13px;border:1px solid rgba(240,238,233,.6);background:rgba(23,37,46,.62);color:#f0eee9;backdrop-filter:blur(8px);font-size:11px;letter-spacing:.04em}.office-turn span{display:grid;place-items:center;width:34px;height:34px;border:1px solid currentColor;border-radius:50%;font-size:9px}
@media(max-width:820px){.gallery-layout{grid-template-columns:1fr;align-items:start}.dissolve-stage{aspect-ratio:4/3}.gallery-shell{padding:18px}.gallery-head{align-items:flex-start}.gallery-head h2{font-size:36px}.gallery-head button{font-size:11px}.gallery-copy h3{font-size:32px}.gallery-foot{align-items:flex-start;flex-direction:column}.material-gallery{height:100dvh}}
@media(max-width:700px){.office-turn{right:20px;top:auto;bottom:58px;padding:7px 9px}.office-turn span{width:28px;height:28px}}
@media(prefers-reduced-motion:reduce){.material-gallery::backdrop{backdrop-filter:none}}

/* Floating Elbe atelier — spatial polish and clearer material hierarchy. */
#stage{height:72svh;min-height:520px;max-height:900px;background:#173d5b;isolation:isolate}
#stage::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(0deg,rgba(16,42,57,.1),transparent 22%)}
#room{position:relative;z-index:0}
.scene-heading{z-index:3;top:28px;max-width:310px;padding:17px 22px 19px;border-left:1px solid var(--navy);background:rgba(240,237,229,.96);box-shadow:0 16px 38px rgba(9,31,44,.13);backdrop-filter:none}
.scene-heading h1{font-size:clamp(30px,3vw,40px);line-height:1.04;letter-spacing:-.035em}
.gesture{z-index:3;bottom:24px;font-size:10px;letter-spacing:.04em;color:#eef2ef;background:rgba(18,45,61,.72);border:1px solid rgba(236,239,233,.35);backdrop-filter:blur(10px);padding:8px 11px}
.overview{z-index:3;bottom:24px;border-color:rgba(240,238,233,.6);background:rgba(18,45,61,.68);color:#f0eee9;backdrop-filter:blur(10px)}
#loading,#error{z-index:5}
.control-deck{position:relative;z-index:4;margin:-1px 2.5% 0;padding:0 2% 32px;background:rgba(240,237,229,.985);border-top:3px solid var(--navy);box-shadow:0 28px 70px rgba(16,45,65,.12)}
#stations button{transition:color .25s ease,border-color .25s ease,transform .45s cubic-bezier(.23,1,.32,1)}
.station-content{padding-top:30px}.station-copy h2{font-size:34px}.selection{width:min(100%,440px)}
#swatches button{transition:transform .35s cubic-bezier(.23,1,.32,1),outline-color .2s ease}
#swatches button[aria-pressed=true]{transform:translateY(-3px)}
@media(hover:hover){#stations button:hover{transform:translateY(-2px)}#swatches button:hover{transform:translateY(-3px)}}
@media(max-width:700px){#stage{height:61svh;min-height:460px;max-height:620px}.scene-heading{max-width:270px}.scene-heading h1{font-size:31px}.gesture{font-size:8px}.control-deck{margin:0;padding:0 20px 24px;border-top-width:2px;box-shadow:none}.station-copy h2{font-size:28px}}
@media(prefers-reduced-motion:reduce){*{transition-duration:.01ms!important}}

/* A bounded scene beside four real chapters; native scrolling owns the journey. */

.room-journey{position:relative}
.room-chapter{padding:42px 0;scroll-margin-top:0;border-bottom:1px solid var(--line)}
.room-chapter h2{font-size:clamp(28px,2.4vw,38px);line-height:1.12;margin:0 0 20px;letter-spacing:-.03em}
.room-chapter>p:not(.eyebrow){font-size:16px;line-height:1.65;max-width:46ch;margin:0 0 24px}
.chapter-link{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:5px;font-size:14px}
.chapter-action,#scene-retry,[data-gallery-retry]{min-height:44px;padding:12px 16px;border:1px solid #80909a;background:var(--paper);color:var(--navy);font:inherit;font-size:14px}
.room-actions{padding:24px 0}.motion-control{position:fixed;z-index:9;left:4%;bottom:24px;display:grid;gap:6px;max-width:270px}
.motion-control button{min-height:44px;padding:10px 14px;border:1px solid #e7e4dc;background:#173d5be8;color:#f0ede5;font:inherit;font-size:13px;text-align:left}
.motion-control .wave-toggle{max-width:240px;white-space:normal}
.motion-control button:focus-visible{outline:2px solid #f2d9a2;outline-offset:3px}
.motion-control button:disabled{cursor:not-allowed;opacity:.78}
#motion-status,#waves-status{font-size:12px;color:#fff;background:#173d5b}#motion-status:empty,#waves-status:empty{display:none}
#error{inset:18% 8%;overflow:auto}#error a{display:block;min-height:44px;padding:12px 0}
#material-message,#gallery-message{font-size:14px;line-height:1.55}#material-message:empty,#gallery-message:empty{display:none}
@media(min-width:1000px) and (min-height:650px){
 .room-journey{display:grid;grid-template-columns:minmax(0,7fr) minmax(290px,3fr);align-items:start}
 #stage{position:sticky;top:0;height:100svh;min-height:650px;max-height:none}
 .control-deck{margin:0;padding:0 28px 28px;border-top:0;border-left:1px solid var(--line);box-shadow:none}
 #stations{position:sticky;top:0;z-index:6;background:var(--paper);gap:7px}
 #stations button{gap:5px;flex-direction:column;align-items:flex-start;font-size:11px;padding:15px 0;min-height:66px}
 .room-chapter{min-height:72svh;display:flex;flex-direction:column;justify-content:center}
 .room-chapter .chapter-action,.room-chapter .chapter-link{align-self:flex-start}
 .scene-heading{max-width:265px;padding:15px 18px}.scene-heading h1{font-size:34px}
 .gesture{font-size:11px;max-width:58%;bottom:16px}.overview{bottom:20px;font-size:12px;padding:10px 12px}
 .office-turn{top:24px;right:24px}.motion-control{bottom:80px}
}
@media(max-width:999px),(max-height:649px){
 #stage{position:relative;height:65svh;min-height:420px;max-height:650px}
 .control-deck{margin:0;padding:0 24px 28px;box-shadow:none}
 .room-chapter{min-height:0;padding:36px 0;scroll-margin-top:16px}
 .motion-control{bottom:78px;left:20px;max-width:230px}.motion-control button{font-size:12px}
 .gesture{font-size:11px;max-width:48%;padding:8px}.office-turn{bottom:72px}
}
@media(max-width:700px){
 body:has(#room) .scene-heading{width:174px;max-width:calc(50% - 20px);top:12px;left:16px;padding:10px 12px}body:has(#room) .scene-heading h1{font-size:22px;line-height:1.05}body:has(#room) .scene-heading .eyebrow{font-size:8px;letter-spacing:.09em;margin-bottom:8px}
 #stage{min-height:460px;height:62svh}body:has(#room) .office-turn{top:auto;bottom:92px;right:16px;max-width:174px;min-height:44px;font-size:10px;padding:6px 8px;gap:7px}
 .motion-control{bottom:70px;max-width:240px}.gesture{max-width:54%;font-size:10px;bottom:10px}
 body:has(#room) .overview{bottom:18px;right:16px;max-width:132px;min-height:44px;font-size:12px}
 #stations button{font-size:12px;gap:6px;min-height:64px;overflow-wrap:normal;word-break:normal;hyphens:auto}
 body:has(#room) .motion-control{position:sticky;top:0;right:auto;bottom:auto;left:auto;width:max-content;max-width:174px;height:0;margin:0 16px 0 auto;transform:translateY(12px)}
 body:has(#room) .motion-control button{max-width:174px;min-height:44px;font-size:11px;padding:8px 10px}
 body:has(#room) .motion-control .wave-toggle{max-width:174px}
  body:has(#room):has(#stations [data-station="3"][aria-pressed="true"]) .motion-control{position:fixed;top:12px;left:auto;right:16px;bottom:auto;width:max-content;height:auto;margin:0;transform:none}
 body:has(#room) #motion-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
 body:has(#room) #waves-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
 .room-chapter h2{font-size:30px}
 #error{inset:12px;padding:22px}#error h2{font-size:28px}
}
@media(max-height:649px) and (min-width:701px){#stage{height:min(88svh,calc(100svh - 112px));min-height:min(340px,calc(100svh - 112px))}.scene-heading{max-width:230px}.scene-heading h1{font-size:28px}.motion-control{bottom:65px}.office-turn{top:20px;bottom:auto}}
@media(max-height:649px) and (min-width:701px) and (max-width:999px){
 body:has(#room) .scene-heading{max-width:190px;padding:10px 12px}body:has(#room) .scene-heading h1{font-size:22px}body:has(#room) .scene-heading .eyebrow{font-size:8px;margin-bottom:8px}
 body:has(#room) .motion-control{position:fixed;top:calc(114px + env(safe-area-inset-top,0px));right:20px;bottom:auto;left:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"motion wave" "motion-status wave-status";align-items:start;gap:5px 8px;width:min(280px,calc(100% - 240px));max-width:280px;height:auto;margin:0;transform:none}
 body:has(#room) #motion-toggle{grid-area:motion}body:has(#room) #waves-toggle{grid-area:wave}body:has(#room) #motion-status{grid-area:motion-status}body:has(#room) #waves-status{grid-area:wave-status}
 body:has(#room) #motion-status,body:has(#room) #waves-status{min-width:0;padding:2px 3px;font-size:9px;line-height:1.2}
 body:has(#room) .motion-control button{min-height:44px;font-size:11px;padding:8px 10px}body:has(#room) .office-turn{top:auto;right:20px;bottom:76px;min-height:44px;padding:6px 8px;font-size:10px}
}
/* The last desktop chapter lets the sticky stage rise by the footer height. */
@media(min-width:1000px) and (min-height:650px){body:has(#room) .motion-control{bottom:136px}}
@media(hover:hover) and (pointer:fine){.chapter-action:hover,.motion-control button:hover{background:#244e6b;color:#fff}}
@media(min-width:701px) and (max-width:999px) and (min-height:380px) and (max-height:649px){body:has(#room) .overview{left:20px;right:auto;bottom:calc(118px - 12svh);min-height:44px}}

/* Task N: the Station 03 portfolio remains visibly empty until approved work exists. */
#station-3 .portfolio-wall{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 18px}
#station-3 .portfolio-slot{box-sizing:border-box;min-width:0;min-height:68px;border:1px dashed #8c8a82;background:#e8e5de}
@media(min-width:701px) and (max-width:999px) and (max-height:649px){#station-3 h2{max-width:610px;font-size:clamp(24px,3.2vw,28px);line-height:1.04}}

/* Named paint choices stay readable beside the material preview. */
#swatches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
#swatches .color-option{box-sizing:border-box;width:100%;min-width:0;height:auto;min-height:52px;padding:6px 9px 6px 6px;display:flex;align-items:center;gap:9px;border:1px solid #a8aaa4;border-radius:0;background:transparent;text-align:left;font:inherit;font-size:13px;overflow:hidden}
.color-option[aria-pressed=true]{outline:2px solid var(--navy);outline-offset:2px}
.color-dot{width:28px;height:28px;flex:0 0 28px;border:1px solid #666a64;background:var(--swatch);border-radius:50%}
.color-option-copy{display:grid;gap:1px;line-height:1.25}.color-option-copy small{font-size:11px;color:#454b48;font-variant-numeric:tabular-nums}
#color-readout{font-size:14px;margin:12px 0 8px;line-height:1.5}#color-readout [data-color-hex]{font-variant-numeric:tabular-nums;font-weight:600}
#color-reset{min-height:44px;padding:10px 12px;border:1px solid #80909a;background:transparent;color:var(--navy);font:inherit;text-align:left}
#pantone-note{max-width:52ch;margin:14px 0 22px;font-size:12px;line-height:1.55;color:#384348}
#harmony-groups{display:grid;gap:0;margin:16px 0 22px;border-top:1px solid var(--line)}
.harmony-group{border-bottom:1px solid var(--line)}.harmony-group summary{min-height:48px;display:flex;align-items:center;gap:10px;cursor:pointer;font-size:14px;font-weight:600}
.harmony-group summary::marker{color:var(--navy)}.harmony-group summary small{font-size:12px;font-weight:400;color:#454b48}
.harmony-content{padding:0 0 16px 16px}.harmony-description{margin:0 0 10px;font-size:12px;line-height:1.45;color:#454b48}
.harmony-colors{display:flex;flex-wrap:wrap;gap:8px}.harmony-colors .color-option{min-height:48px;padding:4px 8px 4px 4px;display:inline-flex;align-items:center;gap:8px;border:1px solid #b9b4aa;background:rgba(255,255,255,.24);font:inherit;font-size:12px;text-align:left}
.harmony-colors .color-dot{width:25px;height:25px;flex-basis:25px}.color-option:focus-visible,#color-reset:focus-visible,.harmony-group summary:focus-visible{outline:3px solid var(--navy);outline-offset:3px}
.group-apply{min-height:44px;margin-top:10px;padding:8px 10px;border:1px solid #80909a;background:#e3ddd1;color:var(--navy);font:inherit;font-size:12px}
.color-origin{display:block;margin-top:8px;font-size:11px;line-height:1.5;color:#454b48}
@media(max-width:700px){#swatches{grid-template-columns:minmax(0,174px);justify-content:start;gap:8px}#swatches .color-option{padding:6px 5px;gap:6px;font-size:12px}.color-dot{width:24px;height:24px;flex-basis:24px}.harmony-content{padding-left:8px}.harmony-colors{gap:7px}.harmony-colors .color-option{flex:1 1 145px;min-width:0}.color-option-copy{min-width:0}.color-option-copy span,.color-option-copy small{overflow-wrap:anywhere}}

/* The journey clock owns camera, doors and panel progress together. */
body[data-room-engine] .journey-controls{position:absolute;z-index:6;top:20px;left:20px;right:20px;width:fit-content;max-width:calc(100% - 40px);padding:12px 14px;border:1px solid #b9b4aa;background:#f0ede5;color:#173d5b}
.journey-controls p{max-width:38ch;margin:0 0 9px;font-size:13px;line-height:1.4}
.journey-controls p:empty{display:none}.journey-controls>div{display:flex;gap:8px;flex-wrap:wrap}
.journey-controls button{min-height:44px;padding:10px 13px;border:1px solid #80909a;background:transparent;color:inherit;font:inherit;font-size:13px}
.journey-controls #journey-enter{background:#173d5b;color:#fff}.journey-controls button:focus-visible{outline:3px solid #173d5b;outline-offset:3px}
.journey-controls[hidden],.journey-controls button[hidden]{display:none!important}
body[data-room-ui=loading] :is(.control-deck,.scene-heading,.gesture,.overview,.office-turn){visibility:hidden;pointer-events:none}
body[data-room-engine] .room-chapter{min-height:0!important;max-height:none;padding-top:28px;padding-bottom:28px}
body[data-room-engine] .room-chapter[data-active=false]{display:none}
body[data-room-engine] #stage .scene-heading{display:none}
body[data-room-engine] .control-deck{min-height:220px;transition:none}
body[data-room-engine] .control-deck[aria-hidden=true]{pointer-events:none}
@media(max-height:480px){body[data-room-engine] .journey-controls{top:10px;left:12px;right:12px;padding:8px 10px}.journey-controls p{font-size:12px;margin-bottom:6px}}



/* Compact rooms keep motion controls in a bottom dock, clear of the top
   arrival card in every journey state, including ready/exterior. */
@media(max-width:999px),(max-height:649px){
 body[data-room-engine]:has(#room):has(#stations) .motion-control{
  position:fixed;top:auto;bottom:calc(12px + env(safe-area-inset-bottom,0px));left:auto;right:12px;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"motion wave" "motion-status wave-status";
  gap:5px 8px;width:min(420px,calc(100% - 24px));max-width:none;height:auto;margin:0;transform:none;align-items:start;
 }
 body[data-room-engine]:has(#room):has(#stations) .motion-control #motion-toggle{grid-area:motion}
 body[data-room-engine]:has(#room):has(#stations) .motion-control #waves-toggle{grid-area:wave}
 body[data-room-engine]:has(#room):has(#stations) .motion-control #motion-status{grid-area:motion-status}
 body[data-room-engine]:has(#room):has(#stations) .motion-control #waves-status{grid-area:wave-status}
 body[data-room-engine]:has(#room):has(#stations) .motion-control button{width:100%;max-width:none;min-height:44px;box-sizing:border-box;font-size:11px;padding:8px 10px}
}



/* S1b: a single quiet station tool after the existing arrival gate. */
#color-workbench{margin:20px 0 12px}
.wall-combination{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.surface-choice{display:grid;gap:8px;margin:20px 0 12px;font-size:14px}
.surface-choice select{width:100%;min-height:44px;padding:10px 12px;border:1px solid #839188;border-radius:2px;background:var(--paper);color:var(--ink);font:inherit}
.surface-choice select:focus-visible{outline:3px solid var(--navy);outline-offset:3px}
#study-note{font-size:12px;line-height:1.5;margin:8px 0 20px}
.secondary-gallery{border:0;padding:10px 0;background:transparent;color:inherit;font:inherit;font-size:14px;text-align:left;cursor:pointer}
#station-3 .secondary-gallery{display:flex;align-self:flex-start}
#gallery-open[hidden],#study-note[hidden]{display:none!important}
#station-3 .portfolio-wall{margin-bottom:16px}
#station-3 .portfolio-slot{min-height:48px}

body[data-room-engine] #stations{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body[data-room-engine] #stations button{display:flex;align-items:center;justify-content:center;min-height:56px;padding:12px 2px;font-size:clamp(11px,1.05vw,14px);text-align:center;white-space:nowrap}
body[data-room-engine] .room-chapter{scroll-margin-top:80px}

/* Guided Showroom: one native document scroll, existing room as visual anchor. */
body[data-showroom-guided]{--visual-share:45%;font-size:16px;overflow-x:clip}
body[data-showroom-guided] .room-journey{display:block;position:relative;min-height:100svh}
body[data-showroom-guided] #stage{position:sticky;top:0;width:100%;height:100svh;min-height:0;max-height:none;margin-bottom:-100svh;z-index:0}
body[data-showroom-guided][data-showroom-layout="reading"] #stage{width:var(--visual-share)}
body[data-showroom-guided] #room{width:100%;height:100%;cursor:default;touch-action:pan-y}
body[data-showroom-guided] .showroom-entry{height:180svh;pointer-events:none;position:relative}
body[data-showroom-guided] .control-deck{display:block;position:relative;z-index:2;width:calc(100% - var(--visual-share));margin-left:var(--visual-share);padding:0;border:0;overflow:visible;opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:auto!important;background:transparent}
body[data-showroom-guided] .control-deck .room-chapter{display:block!important;position:relative;opacity:1!important;visibility:visible!important;transform:none!important;clip-path:none!important;min-height:100svh!important;height:auto;overflow:visible;padding:clamp(36px,7svh,84px) clamp(24px,4vw,72px);scroll-margin-top:0;border:0;border-bottom:1px solid var(--line);background:var(--paper)}
body[data-showroom-guided] .room-chapter h2{font-size:clamp(32px,3.4vw,58px);line-height:1.08;letter-spacing:-.035em;margin:0 0 24px;max-width:18ch;text-wrap:balance}
body[data-showroom-guided] .room-chapter p{font-size:16px;line-height:1.7;max-width:58ch}
body[data-showroom-guided] .room-chapter .showroom-note{font-size:14px;line-height:1.6;color:#454b48}
body[data-showroom-guided] .chapter-link{display:inline-flex;align-items:center;min-height:44px;padding:12px 0;margin:8px 18px 0 0;text-decoration:underline;text-underline-offset:5px;background:none;border:0;font:inherit}
body[data-showroom-guided] .showroom-chapter-nav{position:relative;display:flex;flex-wrap:wrap;gap:4px 16px;padding:20px clamp(24px,4vw,72px);background:var(--paper);border-bottom:1px solid var(--line)}
body[data-showroom-guided] .showroom-chapter-nav a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;text-decoration:underline;text-underline-offset:5px}
body[data-showroom-guided] .showroom-chapter-nav a[aria-current="step"]{font-weight:700}
body[data-showroom-guided] .showroom-substrates{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}
body[data-showroom-guided] .showroom-substrate{padding:16px;min-height:64px;text-align:left;border:1px solid var(--line);background:transparent;font:inherit}
body[data-showroom-guided] .showroom-substrate[aria-pressed="true"]{background:#e0e5dd;border-color:var(--navy)}
body[data-showroom-guided] #color-catalog{display:grid;gap:16px;margin:28px 0}
body[data-showroom-guided] #color-catalog select{width:100%;min-height:46px;padding:8px;font:inherit;background:var(--paper);border:1px solid var(--line)}
body[data-showroom-guided] .showroom-color-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body[data-showroom-guided] .showroom-color-option{display:flex;align-items:center;gap:10px;text-align:left;padding:10px;min-height:66px;border:1px solid var(--line);background:transparent;font:inherit;font-size:13px;overflow-wrap:anywhere}
body[data-showroom-guided] .showroom-color-chip{display:block;flex:0 0 28px;width:28px;height:36px;background:var(--swatch);border:1px solid #b9b4aa}
body[data-showroom-guided] #coating-explanation{margin:28px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0}
body[data-showroom-guided] #coating-explanation summary{min-height:44px;padding:10px 0;cursor:pointer}
body[data-showroom-guided] #coating-explanation h3{font-size:20px;margin:24px 0 8px}
body[data-showroom-guided] .control-deck .showroom-examples{left:-45vw;width:100vw;padding:0;min-height:190svh!important;background:transparent;border:0}
body[data-showroom-guided] .showroom-examples-intro{width:min(620px,92%);margin:0 auto;padding:28px;background:var(--paper)}
body[data-showroom-guided] .showroom-example-copy{margin-top:78svh;padding:clamp(28px,5vw,80px);background:var(--paper)}
body[data-showroom-guided] .showroom-example-copy>p{max-width:65ch}
body[data-showroom-guided] .showroom-example-links{display:flex;flex-wrap:wrap;gap:8px 24px}
body[data-showroom-guided] .showroom-office-action{display:inline-flex;min-height:48px;align-items:center;margin-top:28px;padding:14px 20px;background:var(--navy);color:var(--paper)}
body[data-showroom-guided] #stage .scene-heading{display:block;top:auto;bottom:140px;opacity:1;visibility:visible;max-width:380px}
body[data-showroom-guided][data-showroom-layout="reading"] #stage .scene-heading,body[data-showroom-guided][data-showroom-layout="full"] #stage .scene-heading{display:none}
body[data-showroom-guided] #gesture{font-size:12px;max-width:min(70%,420px)}
body[data-showroom-guided] #office-turn{display:none}
body[data-showroom-guided] #overview{right:18px;bottom:72px}
body[data-showroom-guided] :is(button,a,select,input,summary):focus-visible{outline:3px solid var(--navy);outline-offset:4px}
body[data-showroom-guided] ::selection{background:#ccdcd5;color:#173d5b}
body[data-showroom-guided] [hidden]{display:none!important}
@media(max-width:999px),(max-height:649px){
 body[data-showroom-guided] .control-deck{width:100%;margin-left:0}
 /* Reserve reading and keyboard-scroll space for the compact motion dock. */
 html:has(body[data-showroom-guided]),html:has(body[data-office-guided]){scroll-padding-block-end:190px}
 body[data-showroom-guided] .control-deck{padding-bottom:calc(180px + env(safe-area-inset-bottom,0px))}
 body[data-showroom-guided] .control-deck :is(button,a,input,select,summary){scroll-margin-block-end:190px}
 body[data-showroom-guided][data-showroom-layout="reading"] #stage{width:100%;height:34svh;margin-bottom:-34svh;z-index:3}
 body[data-showroom-guided] .control-deck :is(button,input,select,a,summary){scroll-margin-block-start:calc(34svh + 16px)}
 body[data-showroom-guided] .control-deck .room-chapter{padding:calc(34svh + 28px) 24px 40px;min-height:100svh}
 body[data-showroom-guided] .showroom-chapter-nav{padding:18px 24px}
 body[data-showroom-guided] .control-deck .showroom-examples{left:0;width:100%;padding:0}
 body[data-showroom-guided] .showroom-color-results{grid-template-columns:1fr 1fr}
 body[data-showroom-guided] #overview{font-size:12px;bottom:16px;right:16px}
 body[data-showroom-guided][data-showroom-layout="reading"] #gesture{display:none}
}
@media(max-width:380px){body[data-showroom-guided] .showroom-substrates,body[data-showroom-guided] .showroom-color-results{grid-template-columns:1fr}body[data-showroom-guided] .control-deck .room-chapter{padding-left:18px;padding-right:18px}}
@media(max-height:500px){body[data-showroom-guided] #stage,body[data-showroom-guided][data-showroom-layout="reading"] #stage{position:absolute;width:100%;height:100svh;margin-bottom:0}body[data-showroom-guided] .control-deck .room-chapter{padding-top:32px}}
@media(prefers-reduced-motion:reduce){body[data-showroom-guided] *{scroll-behavior:auto!important;transition:none!important}}
body[data-showroom-guided][data-showroom-fallback] #stage{position:relative;width:100%;height:60svh;min-height:300px;margin-bottom:0}
body[data-showroom-guided][data-showroom-fallback] .showroom-entry{display:none}
body[data-showroom-guided][data-showroom-fallback] .control-deck{margin-left:0;width:100%}
body[data-showroom-guided][data-showroom-fallback] .control-deck .room-chapter{min-height:0!important;padding-top:40px}
body[data-showroom-guided][data-showroom-fallback] .control-deck .showroom-examples{left:0;width:100%}
body[data-showroom-guided][data-showroom-fallback] .showroom-example-copy{margin-top:32px}
.example-filters{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}
.example-filters button,.example-save{min-height:44px;padding:10px 14px;background:transparent;border:1px solid var(--line);font:inherit;color:inherit}
.example-filters button[aria-pressed="true"],.example-save[aria-pressed="true"]{background:#dce4da;border-color:var(--navy)}
.example-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:24px;margin:24px 0 40px}
.example-card{min-width:0;border-top:1px solid var(--line);padding-top:16px}
.example-open{display:block;width:100%;padding:0;border:0;background:transparent;text-align:left;font:inherit;color:inherit}
.example-open img{display:block;width:100%;height:220px;object-fit:contain;background:#e4dfd3;margin-bottom:14px}
.example-open strong{display:block;font-size:20px;font-weight:500;line-height:1.3}
.example-open span{display:block;font-size:13px;margin:8px 0 12px}
.showroom-example-copy .portfolio-wall{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0 40px}
.showroom-example-copy .portfolio-slot{min-height:70px;border:1px dashed #8c8a82;background:#e8e5de}
.showroom-example-copy .portfolio-entry img{display:block;width:100%;height:auto;object-fit:contain}
#dissolve-fallback{object-fit:contain}
.coating-infographic{padding:12px 0 20px}
.coating-infographic svg{display:block;width:100%;max-width:440px;height:auto;margin:12px 0;color:#283b37}
.coating-infographic svg text{fill:currentColor;font:13px Arial,sans-serif}
body[data-showroom-guided] .coating-page-status{font-size:14px;font-variant-numeric:tabular-nums;margin:4px 0 12px}
.coating-page-controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.coating-page-controls button{min-height:44px;padding:10px 14px;background:transparent;border:1px solid var(--line);color:inherit;font:inherit}
.coating-page-controls button:last-child{margin-left:auto}
.substrate-preview{display:block;width:100%;height:88px;object-fit:cover;margin-bottom:12px;background:#e0dbcf}
body[data-showroom-guided]:has(#room) :is(#motion-status,#waves-status){position:static;width:auto;height:auto;padding:4px 6px;margin:0;overflow:visible;clip:auto;clip-path:none;white-space:normal;border:0;font-size:11px;line-height:1.4}


/* The low-load preference belongs to page content, not the moving picture. */
body .motion-control,body[data-room-engine] .motion-control,body[data-office-engine] .motion-control,body[data-office-engine][data-office-guided] .office-journey .motion-control,body[data-room-engine]:has(#room):has(#stations) .motion-control{position:relative;top:auto;right:auto;bottom:auto;left:auto;transform:none;display:block;width:auto;max-width:540px;height:auto;margin:20px auto 28px;padding:0 24px;grid-template-areas:none}
body .motion-control #motion-status{font-size:12px;line-height:1.5;margin:8px 0;color:#283d42}
body .motion-control button{min-height:44px;background:#173d5b;color:#fff}

body[data-showroom-guided] .showroom-closing{position:relative;z-index:4;width:100%;max-width:none;margin:0;padding:56px 24px 64px;text-align:center;background:var(--paper,#eee9dd)}
.showroom-closing .showroom-office-action{display:inline-flex;justify-content:center;align-items:center;min-height:64px;max-width:100%;padding:18px 36px;margin:0 auto 16px;font-size:clamp(20px,2vw,28px);line-height:1.25;background:#173d5b;color:#fff}
.showroom-closing .showroom-note{max-width:60ch;margin:0 auto}
.example-open img{box-sizing:border-box;border:10px solid var(--picture-frame,#765642);padding:12px;background:#e8e3d7;box-shadow:inset 0 0 0 1px #b7a893,0 8px 18px -12px #27333166;aspect-ratio:4/3!important;height:auto;object-fit:contain}
.example-card:nth-child(7n+2){--picture-frame:#282826}.example-card:nth-child(7n+3){--picture-frame:#B18A60}.example-card:nth-child(7n+4){--picture-frame:#49362D}.example-card:nth-child(7n+5){--picture-frame:#C4B59A}.example-card:nth-child(7n+6){--picture-frame:#858781}.example-card:nth-child(7n){--picture-frame:#E8E5DC}
#dissolve-stage{aspect-ratio:4/3!important}#dissolve-fallback{object-fit:contain;background:#e8e3d7}

body[data-showroom-guided] main>.motion-control{z-index:6;background:var(--paper,#eee9dd);padding-block:20px;margin-block:0;max-width:none;text-align:center}body[data-showroom-guided] main>.motion-control p{max-width:60ch;margin:8px auto}html:has(body[data-showroom-guided]){scroll-padding-block-end:24px}body[data-showroom-guided] .control-deck{padding-bottom:24px}
