/* The shared home atmosphere owns the document wash. This sticky artwork is
   clipped and dissolved inside the workshop chapter. */
.feje-world-home .dw-workshop {
  position: relative;
  isolation: isolate;
  padding-block: 0 clamp(96px, 12vw, 170px);
  --dw-cyan: #82eaff;
  --dw-ink: #f0f6ff;
  --dw-muted: #c6d5e7;
}
.dw-scenery {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  mask-image: linear-gradient(transparent, #000 100px, #000 calc(100% - 180px), transparent);
}
.dw-city {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  isolation: isolate;
}
.dw-workshop[data-dw-enhanced] .dw-scenery { mask-image: none; }
.dw-city-paint,.dw-city-still,.dw-city-canvas,.dw-city-vignette{
  position:absolute;inset:0;width:100%;height:100%;pointer-events:none;
}
/* Dawn is the shared fallback and first WebGL phase. This lightweight sky
   also covers the interval before the generated still has decoded. */
.dw-city-paint{background:linear-gradient(180deg,#39465f 0%,#905c66 42%,#312b40 76%,#181b2a 100%)}
.dw-city-still{background:center center/cover no-repeat url('../assets/digital-workshop/city-32026-wide.png?phase=dawn')}
.dw-city-canvas{display:block;opacity:0}
.dw-city-paint[data-city-ready] .dw-city-canvas{opacity:1}
.dw-city-paint[data-city-ready] .dw-city-still{visibility:hidden;background-image:none}
.dw-city-vignette{
  background:linear-gradient(90deg,#080b1620,transparent 38%,transparent 76%,#080b1629),
    linear-gradient(180deg,transparent 43%,#080b1630 70%,#080b1680);
}
@media(max-aspect-ratio:4/5){
  .dw-city-still{background-image:url('../assets/digital-workshop/city-32026-portrait.png?phase=dawn')}
}
.dw-content { position: relative; width: min(92%,1116px); }
.dw-entrance {
  display: grid;
  justify-items: start;
  align-content: end;
  min-height: clamp(430px,72svh,760px);
  padding: 38px 0 clamp(48px,8vw,102px);
  color: var(--dw-ink);
}
.dw-kicker {
  margin: 0 0 13px;
  color: var(--dw-accent,var(--dw-cyan));
  font: 650 .78rem/1.4 'Space Grotesk',system-ui,sans-serif;
  letter-spacing: .16em;
}
.dw-entrance h2 {
  max-width: 10ch;
  margin: 0;
  font: 750 clamp(3.35rem,8.8vw,8rem)/.90 'Space Grotesk',system-ui,sans-serif;
  letter-spacing: -.075em;
  text-wrap: balance;
  text-shadow: 0 3px 24px #030817;
}
.dw-intro {
  max-width: 33rem;
  margin: 21px 0 0;
  color: #eff6ff;
  font-size: clamp(1rem,1.8vw,1.21rem);
  line-height: 1.55;
  text-shadow: 0 2px 12px #040816, 0 2px 3px #040816;
}
.dw-motion {
  margin-top: 16px;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid #7091ac;
  border-radius: 5px;
  color: #e9f7ff;
  background: #0b1929ee;
  font: inherit;
  cursor: pointer;
}
.dw-exhibits { display: grid; gap: clamp(44px,9vw,120px); }
.dw-exhibit {
  --dw-accent: #83defd;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  grid-template-areas: "copy art" "choices choices";
  align-items: center;
  gap: clamp(18px,3vw,36px);
  padding: clamp(18px,3.2vw,40px);
  border: 1px solid #6888a879;
  border-inline-start: 3px solid var(--dw-accent);
  background: linear-gradient(121deg,#101b2bf7,#11182cea);
  box-shadow: 0 24px 55px #03081938;
  border-radius: 7px;
  transition: border-color .25s;
  scroll-margin-block-start: 86px;
}
.dw-exhibit:hover, .dw-exhibit:focus-within { border-color: var(--dw-accent); }
.dw-exhibit[data-dw-exhibit="workflow"] {
  --dw-accent: #c9b1fd;
  grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
  grid-template-areas: "art copy" "choices choices";
}
.dw-exhibit[data-dw-exhibit="experiments"] { --dw-accent: #f8b68e; }
.dw-copy { grid-area: copy; }
.dw-copy h3 {
  color: var(--dw-ink);
  font: 700 clamp(1.75rem,4vw,3rem)/1.03 'Space Grotesk',system-ui,sans-serif;
  letter-spacing: -.045em;
  margin: 0 0 14px;
}
.dw-copy > p:last-child { margin: 0; color: var(--dw-muted); line-height: 1.62; }
.dw-display {
  grid-area: art;
  margin: 0;
  min-width: 0;
  border: 1px solid #627b9b95;
  background: #090f20;
  clip-path: polygon(0 0, calc(100% - 11px) 0,100% 11px,100% 100%,11px 100%,0 calc(100% - 11px));
}
.dw-stage {
  position: relative;
  aspect-ratio: 216/112;
  background: center / cover no-repeat url('../assets/digital-workshop/engines.webp'), #0c1729;
}
[data-dw-exhibit="workflow"] .dw-stage { background-image: url('../assets/digital-workshop/workflow.webp'); }
[data-dw-exhibit="experiments"] .dw-stage { background-image: url('../assets/digital-workshop/experiments.webp'); }
.dw-stage canvas { position:absolute; inset:0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events:none; }
.dw-stage:has(canvas:not([hidden])) { background-image:none; }
.dw-display figcaption {
  display: flex;
  justify-content: space-between;
  gap:12px;
  min-height: 34px;
  align-items:center;
  padding: 5px 12px;
  border-top: 1px solid #435370;
  color: var(--dw-muted);
  font-family: ui-monospace,monospace;
  font-size: .79rem;
}
.dw-display [data-dw-count] { color: var(--dw-accent); white-space: nowrap; }
.dw-choices {
  grid-area: choices;
  display:flex;
  flex-wrap:wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid #49577189;
}
.dw-choices button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 10px;
  min-height: 44px;
  border: 1px solid #54677f;
  border-radius: 4px;
  background: #0a1425;
  color: #dbe8f8;
  font: 600 .84rem/1.15 'Space Grotesk',system-ui,sans-serif;
  cursor: pointer;
}
.dw-choices button:not(:disabled):hover,
.dw-choices button[aria-pressed="true"] {
  color: #fff;
  border-color: var(--dw-accent);
  background: #253652;
}
.dw-choices button:active, .dw-motion:active { translate: 0 1px; }
.dw-choices button:disabled { cursor: default; }
.dw-choices img { width: 19px; height: 19px; object-fit: contain; flex: none; }
.dw-experiment-mark {
  width: 8px; height: 8px;
  background: var(--dw-accent);
  clip-path: polygon(0 0,65% 0,100% 35%,100% 100%,35% 100%,0 65%);
}
.dw-choices button:focus-visible,.dw-motion:focus-visible { outline: 2px solid var(--dw-accent,#82eaff); outline-offset: 3px; }
.dw-motion[hidden], .dw-stage canvas[hidden] { display:none; }
@media (max-width: 650px) {
  .dw-content { width: min(91%, 540px); }
  .dw-entrance { min-height: clamp(380px,70svh,600px); padding-bottom: 49px; }
  .dw-entrance h2 { font-size: clamp(3rem,13vw,5.2rem); }
  .dw-exhibit,.dw-exhibit[data-dw-exhibit="workflow"] {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "copy" "art" "choices";
  }
  .dw-exhibits { gap: 86px; }
  .dw-choices button { flex: 1 1 115px; justify-content: start; }
}
@media (max-height: 510px) and (orientation: landscape) {
  .dw-entrance { min-height: 390px; }
}
@media (prefers-reduced-motion: reduce) {
  .dw-exhibit { transition:none; }
}
.dw-credit {
  grid-column: 1 / -1;
  margin: -6px 0 0;
  color: #aebbd0;
  font-size: .76rem;
  line-height: 1.4;
}
#dw-engines .dw-choices button:first-child { color: #a6e5ff; }
#dw-engines .dw-choices button:nth-child(2) { color: #e3ebf3; }
#dw-engines .dw-choices button:nth-child(3) { color: #e0d1ff; }

/* Hand-built instrument bezels. Product marks remain separate, unanimated references. */
.dw-entrance-line{display:flex;align-items:center;gap:9px;min-height:44px;margin-bottom:9px}
.dw-entrance-line .dw-kicker{margin:0}
.dw-motion{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:0;color:#a5c9dc;background:transparent;flex:none;touch-action:manipulation}
.dw-motion:hover,.dw-motion[aria-pressed="true"]{color:#fff1d7;background:#15233d}
.dw-motion .dw-motion-play,.dw-motion[aria-pressed="true"] .dw-motion-pause{display:none}
.dw-motion[aria-pressed="true"] .dw-motion-play{display:block}
.dw-exhibit{border-radius:0;border-inline-start-width:1px;background:linear-gradient(122deg,#101b2bf2,#121729ed);box-shadow:inset 0 0 0 3px #101727,0 18px 38px #03081935}
.dw-exhibit::before,.dw-exhibit::after{content:"";position:absolute;width:18px;height:18px;pointer-events:none;border-color:var(--dw-accent);border-style:solid}
.dw-exhibit::before{left:3px;top:3px;border-width:2px 0 0 2px}
.dw-exhibit::after{right:3px;bottom:3px;border-width:0 2px 2px 0}
.dw-copy h3{color:var(--dw-accent);text-shadow:0 2px #0b1425}
.dw-display{border-color:color-mix(in srgb,var(--dw-accent),#28324a 65%);clip-path:none;position:relative;box-shadow:0 3px #070d1a}
.dw-display figcaption{border-top-color:color-mix(in srgb,var(--dw-accent),#28324a 70%);letter-spacing:.04em}
.dw-display [data-dw-count]{border-left:1px solid #40536b;padding-left:10px;font-variant-numeric:tabular-nums}
.dw-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding-top:12px}
#dw-engines .dw-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
#dw-experiments .dw-choices{grid-template-columns:repeat(5,minmax(0,1fr))}
.dw-choices button{--dw-identity:var(--dw-accent);position:relative;isolation:isolate;display:grid;grid-template-columns:36px minmax(0,1fr);justify-content:start;justify-items:start;align-items:center;gap:8px;min-width:0;min-height:52px;padding:6px 9px;border:1px solid color-mix(in srgb,var(--dw-identity),#263248 65%);border-radius:0;text-align:left;color:#dce5ef;background:linear-gradient(145deg,color-mix(in srgb,var(--dw-identity),#10182a 88%),#0b1323 80%);box-shadow:inset 0 0 0 2px #0a1120,0 2px #070e1c;touch-action:manipulation}
.dw-choices button::before{content:"";position:absolute;inset:3px;pointer-events:none;background:linear-gradient(var(--dw-identity),var(--dw-identity)) left top/8px 2px no-repeat,linear-gradient(var(--dw-identity),var(--dw-identity)) left top/2px 8px no-repeat,linear-gradient(var(--dw-identity),var(--dw-identity)) right bottom/8px 2px no-repeat,linear-gradient(var(--dw-identity),var(--dw-identity)) right bottom/2px 8px no-repeat;opacity:.54}
.dw-choices button::after{content:"";position:absolute;right:4px;top:4px;width:3px;height:3px;background:var(--dw-identity);opacity:.25;pointer-events:none}
.dw-choices button:not(:disabled):hover,.dw-choices button[aria-pressed="true"]{border-color:var(--dw-identity);background:linear-gradient(145deg,color-mix(in srgb,var(--dw-identity),#152136 80%),#121a2e);box-shadow:inset 0 0 0 2px #111c2c,inset 3px 0 var(--dw-identity),0 2px #070e1c}
.dw-choices button[aria-pressed="true"]::before,.dw-choices button[aria-pressed="true"]::after{opacity:1}
.dw-choices button span{min-width:0;overflow-wrap:normal;line-height:1.24}
.dw-choice-art{width:36px;height:36px;display:block;pointer-events:none;image-rendering:pixelated;flex:none}
.dw-choices button:has(.dw-reference-mark){grid-template-columns:36px minmax(0,1fr) 18px}
.dw-choices img.dw-reference-mark{width:16px;height:16px;object-fit:contain;justify-self:center;margin:0;opacity:1;pointer-events:none}
.dw-choices button:focus-visible,.dw-motion:focus-visible{outline:2px solid var(--dw-identity,var(--dw-cyan));outline-offset:3px;z-index:2}
.dw-choices button:active{translate:0 1px;box-shadow:inset 0 2px #070e1c}
.dw-credit{margin:-12px 0 0;padding-top:8px;border-top:1px solid #3c4c65;color:#aebbd0;font-size:.76rem}
.dw-icon-move,.dw-spark{transform-box:view-box;transform-origin:50% 50%}
@media(prefers-reduced-motion:no-preference){
 .dw-workshop[data-dw-running] .dw-exhibit[data-dw-active] button[aria-pressed="true"] .dw-rise{animation:dw-pixel-rise 2.4s steps(4,end) infinite}
 .dw-workshop[data-dw-running] .dw-exhibit[data-dw-active] button[aria-pressed="true"] .dw-turn{animation:dw-pixel-turn 6s steps(24,end) infinite}
 .dw-workshop[data-dw-running] .dw-exhibit[data-dw-active] button[aria-pressed="true"] .dw-blink{animation:dw-pixel-blink 1.6s steps(1,end) infinite}
 .dw-workshop[data-dw-running] .dw-exhibit[data-dw-active] button[aria-pressed="true"] .dw-branch{animation:dw-pixel-branch 2.4s steps(5,end) infinite}
 .dw-workshop[data-dw-running] .dw-exhibit[data-dw-active] button[aria-pressed="true"] .dw-sync{animation:dw-pixel-sync 1.6s steps(4,end) infinite}
 .dw-workshop[data-dw-running] .dw-exhibit[data-dw-active] button[aria-pressed="true"] .dw-spark{animation:dw-pixel-blink 2.2s steps(1,end) infinite}
}
@keyframes dw-pixel-rise{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes dw-pixel-turn{to{transform:rotate(360deg)}}
@keyframes dw-pixel-blink{0%,100%{opacity:1}50%{opacity:.35}}
@keyframes dw-pixel-branch{0%,100%{transform:translateX(0)}50%{transform:translateX(11px)}}
@keyframes dw-pixel-sync{0%,100%{transform:translateX(-2px)}50%{transform:translateX(2px)}}
@media(max-width:950px){.dw-choices{grid-template-columns:repeat(3,minmax(0,1fr))}#dw-experiments .dw-choices{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){
 .dw-entrance-line{gap:3px;margin-bottom:7px}
 .dw-entrance-line .dw-kicker{font-size:.67rem;letter-spacing:.12em}
 .dw-exhibit{padding:17px;gap:18px}
 .dw-choices,#dw-engines .dw-choices,#dw-experiments .dw-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .dw-choices button{grid-template-columns:32px minmax(0,1fr);gap:6px;padding:5px 6px;min-height:48px;font-size:.76rem}
 .dw-choices button:has(.dw-reference-mark){grid-template-columns:32px minmax(0,1fr);grid-template-rows:auto auto;row-gap:2px}
 .dw-choices button:has(.dw-reference-mark) .dw-choice-art{grid-row:1/3}
 .dw-choices button:has(.dw-reference-mark) .dw-reference-mark{grid-column:2;justify-self:start;width:13px;height:13px}
 .dw-choice-art{width:32px;height:32px}
}
@media(max-width:360px){.dw-choices button{font-size:.69rem;gap:4px;padding-inline:4px;grid-template-columns:28px minmax(0,1fr)}.dw-choices button:has(.dw-reference-mark){grid-template-columns:28px minmax(0,1fr)}.dw-choice-art{width:28px;height:28px}}
@media(prefers-reduced-motion:reduce){.dw-choices button,.dw-motion{transition:none}.dw-choices button:active,.dw-motion:active{translate:none}}

/* Living Metropolis: retain the accessible motion toggle beside the heading. */
.dw-entrance .dw-entrance-line{align-items:center;gap:10px;max-width:100%;margin:0;min-height:0}
.dw-entrance .dw-entrance-line h2{max-width:16ch;font-size:clamp(3rem,6.4vw,6.4rem);line-height:.98;color:#edf7fb;text-shadow:0 2px 4px #060b15,0 3px 20px #060b15,0 0 45px #060b15}
.dw-entrance .dw-motion{align-self:flex-end;color:#e0f5ff;background:#0a1525b3;box-shadow:0 2px 10px #060b1566}
.dw-entrance .dw-intro{text-shadow:0 2px 3px #040816,0 0 12px #040816,0 0 24px #040816}
@media(max-width:650px){.dw-entrance .dw-entrance-line{gap:4px}.dw-entrance .dw-entrance-line h2{font-size:clamp(2.65rem,10.8vw,4.3rem);max-width:12ch}}
