.ai-creative .ai-exhibit {
  --atelier-cream: #fbefdc;
  --atelier-ink: #312323;
  --atelier-wine: #422b38;
  --atelier-cabinet: #172b25;
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid #776142;
  border-radius: 12px;
  background: var(--atelier-cabinet);
  color: var(--atelier-cream);
  box-shadow: inset 0 0 0 4px #23352a, inset 0 0 0 5px #79663d, 0 13px 25px #231c191f;
}

.ai-creative .ai-atelier-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 16px;
  padding: 0 3px 13px;
}

.ai-creative .ai-atelier-header h4 {
  margin: 0;
  color: var(--atelier-cream);
  font: 400 clamp(1.65rem, 3.1vw, 2.6rem)/1.13 var(--serif);
}

.ai-creative .ai-atelier-header p {
  margin: 0;
  color: #ddc89e;
  font: 650 .73rem/1.35 var(--sans);
  letter-spacing: .055em;
  text-transform: uppercase;
}

.ai-creative .ai-exhibit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(12px, 1.7vw, 21px);
}

.ai-creative .ai-exhibit-stage {
  --atelier-perch: 14.4%;
  position: relative;
  align-self: start;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #a47a4d;
  border-radius: 7px;
  background: #332738 url("assets/ai/count/atelier-room.webp") center / cover no-repeat;
  box-shadow: 0 0 0 2px #151b16, 0 0 0 3px #7e6345;
}

.ai-creative .ai-exhibit-stage::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #f0c9843d, inset 0 0 16px #1c171da6;
  pointer-events: none;
  content: "";
}

.ai-creative .ai-exhibit-stage [hidden] { display: none; }
.ai-creative .ai-exhibit-stage .is-loading { visibility: hidden; }

.ai-creative .ai-stage-furniture,
.ai-creative .ai-exhibit-image {
  position: absolute;
  left: 50%;
  pointer-events: none;
}

.ai-creative .ai-exhibit-image {
  z-index: 2;
  top: 20%;
  width: 58%;
  height: 61%;
  translate: -50% 0;
  object-fit: contain;
}

.ai-creative :is([data-view="portrait"], [data-view="still"]) .ai-stage-furniture {
  z-index: 1;
  top: 18%;
  width: 55%;
  height: 68%;
  translate: -50%;
  border: 1px solid #e3b87d;
  border-radius: 41% 41% 6px 6px / 29% 29% 6px 6px;
  background:
    radial-gradient(ellipse at 51% 37%, #e5cb9e, #ae8064 76%);
  box-shadow: inset 0 0 0 4px #4f362f, inset 0 0 0 5px #bb8a5b, inset 0 0 24px #43233e6e, 0 7px 20px #170f19a6;
}

.ai-creative [data-view="portrait"] .ai-exhibit-image {
  width: 49%;
  height: 52%;
  top: 27%;
  filter: drop-shadow(0 4px 5px #35243355);
}

.ai-creative [data-view="idle"] .ai-exhibit-image {
  top: var(--atelier-perch);
  width: 43.2%;
  height: auto;
  aspect-ratio: 1;
  translate: -47.3% -4.1%;
}

.ai-creative [data-view="flight"] .ai-exhibit-image {
  top: 9%;
  width: 56%;
  height: auto;
  aspect-ratio: 1;
  translate: -45.2% -5%;
  filter: drop-shadow(0 6px 9px #1b0e1b8c);
}

.ai-creative .ai-avatar-demo {
  position: absolute;
  z-index: 2;
  top: 57%;
  left: 46%;
  width: 31%;
  aspect-ratio: 1;
  translate: -50% -50%;
}

.ai-creative .ai-avatar-photo {
  display: block;
  width: 100%;
  height: 100%;
  border: clamp(2px, .38vw, 5px) solid #d4a86c;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px #5c3a30, 0 0 0 2px #f6ce88, 0 8px 18px #180e1a9c;
}

/* Align the visible tooth to the outer profile rim at this exhibit scale. */
.ai-creative .ai-avatar-bite {
  position: absolute;
  z-index: 1;
  left: -9.7667%;
  top: -33.7478%;
  width: 163.6364%;
  height: 109.0909%;
  transform: rotate(10deg);
  transform-origin: 58.1301% 44.3598%;
  pointer-events: none;
}

.ai-creative .ai-avatar-motion {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ai-creative [data-view="envelope"] .ai-exhibit-image {
  top: 53.5%;
  width: 57.2%;
  height: 36.4%;
  filter: drop-shadow(0 6px 5px #35253087);
}

.ai-creative [data-view="still"] .ai-exhibit-image {
  top: 27%;
  width: 41%;
  height: 54%;
}

.ai-creative .ai-exhibit-detail {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
}

.ai-creative .ai-atelier-sheet {
  order: -1;
  flex: 1;
  padding: clamp(13px, 1.7vw, 24px);
  border: 1px solid #c09b66;
  border-radius: 5px;
  color: var(--atelier-ink);
  background: #f3e1be url("assets/experience/stationery.webp") center / 150% auto no-repeat;
  box-shadow: inset 0 0 0 3px #f2dbad82, inset 0 0 0 4px #ab85473d;
}

.ai-creative .ai-atelier-sheet .ai-eyebrow {
  margin: 0 0 8px;
  color: #69421f;
}

.ai-creative .ai-exhibit-detail h5 {
  margin: 0;
  font: 400 clamp(1.55rem, 2.65vw, 2.2rem)/1.15 var(--serif);
  color: #3b2434;
}

.ai-creative .ai-exhibit-detail #ai-asset-text {
  min-block-size: 4.5em;
  margin: 7px 0 0;
  max-inline-size: 38ch;
  color: #3f322a;
  font-size: .93rem;
  line-height: 1.5;
}

.ai-creative .ai-exhibit-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ai-creative .ai-exhibit-choices button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-block-size: clamp(49px, 5vw, 62px);
  padding: 5px 8px 5px 6px;
  border: 1px solid #89704f;
  border-radius: 5px;
  color: var(--atelier-cream);
  background: linear-gradient(160deg, #55404a, var(--atelier-wine) 69%);
  box-shadow: inset 0 1px #eac98e38, inset 0 -2px #1a0f1c69, 0 2px #161b16;
  font: 400 clamp(.84rem, 1.38vw, 1.06rem)/1.12 var(--serif);
  text-align: start;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ai-creative .ai-exhibit-choices img {
  flex: none;
  width: clamp(26px, 3.05vw, 38px);
  height: clamp(26px, 3.05vw, 38px);
  object-fit: contain;
  filter: drop-shadow(0 1px 1px #25162988);
}

.ai-creative .ai-exhibit-choices [data-asset="avatar"] img {
  border: 1px solid #c69861;
  border-radius: 50%;
  object-fit: cover;
}

.ai-creative .ai-exhibit-choices [data-asset="flight"] img { scale: 1.35; }

.ai-creative .ai-exhibit-choices [data-asset="still"] img {
  padding: 1px;
  border: 1px solid #ab865a;
  border-radius: 2px;
  background: #ead6ac;
}

.ai-creative .ai-exhibit-choices button[aria-pressed="true"] {
  border-color: #f3cc81;
  color: #2d2520;
  background: linear-gradient(#f1dcb2, #d8b381);
  box-shadow: inset 0 0 0 2px #f4dba5, inset 0 0 0 3px #b28653, 0 1px 3px #151411a1;
}

@media (hover: hover) {
  .ai-creative .ai-exhibit-choices button[aria-pressed="false"]:hover {
    border-color: #efc489;
    background: #5b3e50;
  }
}

.ai-creative .ai-exhibit-choices button:focus-visible {
  outline: 2px solid #ffe099;
  outline-offset: 3px;
  z-index: 1;
}

.ai-creative .ai-creative-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  margin: 24px 0 0;
  border-block: 1px solid #c7b797;
  list-style: none;
}

.ai-creative .ai-creative-process li {
  padding: clamp(14px, 1.8vw, 21px);
  border-inline-end: 1px solid #c7b797;
}

.ai-creative .ai-creative-process li:last-child { border-inline-end: 0; }

.ai-creative .ai-creative-process .ai-eyebrow {
  display: block;
  margin: 0 0 4px;
}

.ai-creative .ai-creative-process strong {
  display: block;
  color: var(--ink);
  font: 400 clamp(1.4rem, 2.5vw, 1.75rem)/1.1 var(--serif);
}

.ai-creative .ai-creative-process p {
  margin: 6px 0 0;
  font-size: .875rem;
}

@media (max-width: 850px) {
  .ai-creative .ai-exhibit-layout { display: block; }

  .ai-creative .ai-exhibit-stage {
    inline-size: 100%;
    aspect-ratio: auto;
  }

  /* Reserve the 3:2 stage in flow before any absolutely positioned art loads. */
  .ai-creative .ai-exhibit-stage::before {
    display: block;
    padding-block-start: 66.667%;
    content: "";
  }

  .ai-creative .ai-exhibit-detail { margin-block-start: 12px; }
  .ai-creative .ai-atelier-sheet { order: 0; }
  .ai-creative .ai-exhibit-detail #ai-asset-text { min-block-size: 3em; }
}

@media (max-width: 560px) {
  .ai-creative .ai-atelier-header { padding-block-end: 11px; }
  .ai-creative .ai-atelier-header p { font-size: .66rem; }
  .ai-creative .ai-exhibit-detail #ai-asset-text { min-block-size: 4.5em; }
  .ai-creative .ai-creative-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-creative .ai-creative-process li:nth-child(even) { border-inline-end: 0; }
  .ai-creative .ai-creative-process li:nth-child(-n+2) { border-block-end: 1px solid #c7b797; }
}
