#semi-preview #mia-process {
  display:flex; flex-direction:column;
  background:radial-gradient(ellipse at 83% 25%,#69333d54,transparent 58%),#25171c;
}
#mia-process > header { flex:none; margin-bottom:clamp(10px,2vh,22px); }
#mia-process > header .tag { letter-spacing:.1em; margin-bottom:8px; }
#semi-preview #mia-process h2 { margin-bottom:8px; }
#mia-process .process-layout { flex:1 0 auto; display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto 1fr; gap:clamp(12px,2vh,20px); }
#mia-process .process-steps { display:flex; flex-wrap:wrap; align-items:stretch; border-bottom:1px solid var(--portfolio-rule); gap:4px 12px; }
#mia-process .process-steps button {
  border:0; border-bottom:2px solid transparent; padding:8px 13px;
  color:var(--portfolio-muted); text-align:left; background:transparent; cursor:pointer; font:inherit;
}
#mia-process .process-steps button[aria-selected="true"] {
  border-bottom-color:var(--portfolio-red); color:var(--portfolio-ink); background:#5d2d3b65;
}
#mia-process .process-board { display:flex; flex-direction:column; margin:0; min-width:0; }
#mia-process .process-controls {
  display:flex; flex:none; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:7px; margin-top:clamp(8px,1.4vh,16px);
}
#mia-process .process-controls:empty { display:none; }
#mia-process .process-controls button,#mia-process .outfit-controls button,#mia-process .process-link {
  font:inherit; font-size:14px; color:var(--portfolio-ink); border:1px solid var(--portfolio-rule);
  padding:6px 10px; background:#311e25; text-decoration:none; cursor:pointer;
}
#mia-process :is(.process-controls,.outfit-controls) button[aria-pressed="true"] { color:#28151a; background:#ffd5c8; border-color:#ffd5c8; }
#mia-process :is(button,a,input):focus-visible { outline:2px solid var(--portfolio-red); outline-offset:3px; }
#mia-process .process-gallery {
  display:grid; min-width:0; grid-template-columns:minmax(0,1fr);
  gap:clamp(10px,1.3vw,22px); margin-inline:clamp(-48px,-3vw,-10px);
}
#mia-process .process-gallery.pair { grid-template-columns:repeat(2,minmax(0,1fr)); }
#mia-process .process-gallery figure { margin:0; min-width:0; }
#mia-process .process-gallery img {
  display:block; width:100%; height:clamp(270px,63vh,820px); object-fit:contain;
  object-position:center;
}
#mia-process[data-active-step="concept"] .process-gallery {
  --concept-sheet-height:min(64vh,calc((94vw - 26px) / 2.251));
  grid-template-columns:minmax(0,1fr) minmax(0,2fr);
  justify-items:center;
}
#mia-process[data-active-step="concept"] .process-gallery img { height:var(--concept-sheet-height); }
#mia-process .outfit-controls { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; margin-top:clamp(23px,3.2vh,36px); }
#mia-process .outfit-controls .outfit-switch { border-color:#e8a69782; }
#mia-process .process-gallery figcaption { color:var(--portfolio-muted); font-size:13px; margin-top:4px; }
#mia-process:is([data-active-step="concept"],[data-active-step="face"],[data-active-step="props"],[data-active-step="live"]) .process-gallery figcaption {
  text-align:center;
}
#mia-process .process-notes {
  margin-top:auto; padding-top:clamp(22px,3.4vh,38px);
  display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap;
  gap:8px 20px;
}
#mia-process .process-caption { color:var(--portfolio-ink); max-width:730px; }
#mia-process .process-controls .process-view-label { width:100%; color:var(--portfolio-muted); font-size:14px; margin-top:5px; }
#mia-process .process-link { display:inline-block; }
#mia-process .process-image-button { display:block; width:100%; padding:0; background:none; border:0; cursor:zoom-in; }
#mia-process .process-detail {
  max-width:min(950px,94vw); max-height:94vh; padding:13px; background:#2b1b22;
  color:var(--portfolio-ink); border:1px solid var(--portfolio-rule);
}
#mia-process .process-detail::backdrop { background:#10080ddc; }
#mia-process .process-detail-bar { display:flex; justify-content:space-between; align-items:center; margin-bottom:9px; gap:15px; }
#mia-process .process-detail-bar button { background:#512934; color:var(--portfolio-ink); padding:5px 11px; border:1px solid var(--portfolio-rule); cursor:pointer; font:inherit; }
#mia-process .process-detail img { display:block; max-height:77vh; max-width:100%; object-fit:contain; margin:auto; }
#mia-process [hidden] { display:none!important; }
@media(min-width:681px) {
  #semi-preview > #mia-process { padding-block:clamp(19px,3vh,34px); }
  #mia-process > header { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); align-items:center; gap:2px 20px; margin-bottom:10px; }
  #mia-process > header .tag { grid-column:2; grid-row:1; margin:0; align-self:end; }
  #semi-preview #mia-process > header h2 { grid-column:1; grid-row:1/3; margin:0; }
  #mia-process > header p:last-child { grid-column:2; grid-row:2; align-self:start; }
}
@media(max-width:680px) {
  #mia-process .process-layout { grid-template-columns:minmax(0,1fr); gap:14px; }
  #mia-process .process-steps { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; gap:3px 7px; }
  #mia-process .process-steps button { flex:none; white-space:nowrap; padding:8px; border:0; border-bottom:2px solid transparent; }
  #mia-process .process-steps button[aria-selected="true"] { border-bottom-color:var(--portfolio-red); }
  #mia-process .process-gallery img { height:clamp(215px,59vh,520px); }
  #mia-process[data-active-step="concept"] .process-gallery {
    --concept-sheet-height:min(46vh,62vw);
    grid-template-columns:minmax(0,1fr);
    justify-items:stretch;
  }
  #mia-process .outfit-controls { gap:4px; }
  #mia-process .outfit-controls button { padding-inline:5px; }
}
#semi-preview > #mia-process[data-active-step="turn"] { padding-bottom:clamp(15px,2.5vh,25px); }
#mia-process[data-active-step="turn"] .process-layout {
  flex:1 1 0; min-height:0; grid-template-rows:auto minmax(0,1fr);
}
#mia-process[data-active-step="turn"] .process-board { min-height:0; }
#mia-process[data-active-step="turn"] .process-gallery {
  flex:1 1 0; min-height:0; grid-template-rows:minmax(0,1fr);
}
#mia-process[data-active-step="turn"] .process-gallery figure {
  display:grid; grid-template-rows:minmax(0,1fr) auto; min-height:0; position:relative;
}
#mia-process[data-active-step="turn"] .process-image-button { min-height:0; height:100%; }
#mia-process[data-active-step="turn"] .process-gallery img { height:100%; }
#mia-process[data-active-step="turn"] .process-gallery figcaption {
  position:absolute; inset:4px auto auto 7px; margin:0; padding:4px 7px;
  background:#25171cde; text-align:left; pointer-events:none;
}
#mia-process[data-active-step="turn"] .process-notes {
  flex:none; margin-top:clamp(9px,1.7vh,17px); padding-top:0;
}

#mia-process:is([data-active-step="face"],[data-active-step="props"]) .process-gallery {
  flex:1 1 0; min-height:0;
  grid-template-rows:minmax(0,1fr);
}
#mia-process:is([data-active-step="face"],[data-active-step="props"]) .process-layout {
  flex:1 1 0; min-height:0; grid-template-rows:auto minmax(0,1fr);
}
#mia-process:is([data-active-step="face"],[data-active-step="props"]) .process-board { min-height:0; }
#mia-process:is([data-active-step="face"],[data-active-step="props"]) .process-notes {
  flex:none; margin-top:0; padding-top:clamp(13px,2vh,24px);
}
#mia-process:is([data-active-step="face"],[data-active-step="props"]) .process-gallery figure {
  display:grid; grid-template-rows:minmax(0,1fr) auto; min-height:0;
}
#mia-process:is([data-active-step="face"],[data-active-step="props"]) .process-image-button {
  position:relative; display:block; min-width:0; min-height:0; height:100%;
}
#mia-process:is([data-active-step="face"],[data-active-step="props"]) .process-gallery img {
  position:absolute; inset:0; height:100%;
}
#mia-process:is([data-active-step="face"],[data-active-step="props"]) .process-gallery figcaption { margin-top:9px; }
@media(max-width:680px) {
  #semi-preview #mia-process:is([data-active-step="turn"],[data-active-step="props"],[data-active-step="face"]) > header h2 {
    font-size:clamp(22px,6.5vw,35px);
  }
  #mia-process:is([data-active-step="turn"],[data-active-step="props"],[data-active-step="face"]) > header p:last-child { display:none; }
}

@media (max-width: 850px) and (pointer: coarse), (max-width: 680px) {
  html { scroll-snap-type: none; }
  #semi-preview > .section { height: auto; min-height: 0; overflow: visible; padding-block: 30px; }
  #semi-art .stage { height: auto; min-height: 100svh; }
  #semi-art .stage .hero { flex: 1 0 auto; min-height: clamp(550px, 80svh, 800px); container-type: normal; }
  #semi-preview #mia-workbench { justify-content: flex-start; }
  #mia-viewport { flex: none; height: 76vh; height: 76svh; min-height: 360px; }
  #semi-preview .ghost-media-stage { container-type: normal; }
  #semi-preview .ghost-video-stage video { width: 100%; height: auto; }
  #semi-preview .ghost-section figure img { height: auto; max-height: 65vh; }
  #mia-process .process-gallery .process-image-button { min-height: 180px; }
}