/* Compact client collections. The source posters retain their own proportions. */
.client-showcase.case-atlas {
  --atlas-bg: #17191c;
  --atlas-ink: #f1ece5;
  --atlas-muted: #9c9b9a;
  --atlas-gold: #d6b28d;
  position: relative;
  scroll-margin-top: 100px;
}
.case-atlas [hidden], .atlas-dialog [hidden] { display: none !important; }
body.atlas-dialog-open { overflow: hidden; }
.case-atlas *, .atlas-dialog * { box-sizing: border-box; }
.case-atlas button, .atlas-dialog button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.case-atlas button:focus-visible, .atlas-dialog button:focus-visible {
  outline: 2px solid #edc99f;
  outline-offset: 5px;
}
.case-atlas .atlas-surface {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-width: 0;
  color: var(--atlas-ink);
  background: var(--atlas-bg);
}
.atlas-surface::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, #c2a17e0c, transparent 65%);
}
.case-atlas .atlas-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  align-items: center;
  min-height: 475px;
  padding: 34px 38px 90px;
}
.case-atlas .atlas-client {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 20px;
  min-width: 0;
  min-height: 330px;
  padding: 37px 0 16px;
  border: 0;
  border-bottom: 1px solid #eee4d51f;
  border-radius: 0;
  color: var(--atlas-ink);
  background: transparent;
  text-align: left;
  transition: border-color .25s ease, color .25s ease;
}
.atlas-client .atlas-client-index {
  position: absolute;
  left: 0;
  top: 5px;
  color: #a78c70;
  font: 12px/1.2 Georgia, serif;
  letter-spacing: .08em;
}
.atlas-client .atlas-stack {
  position: relative;
  display: block;
  align-self: center;
  width: 88%;
  aspect-ratio: 16 / 10;
  margin: 24px 0 8px;
  perspective: 800px;
}
.atlas-stack::before, .atlas-stack::after {
  content: "";
  position: absolute;
  inset: 7% 0 3%;
  border: 1px solid #c5ae8f2a;
  background: #2a2b2c;
  pointer-events: none;
}
.atlas-stack::before { transform: translate(-5%, -10%) rotate(-7deg); }
.atlas-stack::after { transform: translate(5%, -7%) rotate(6deg); }
.atlas-stack .atlas-stack-layer {
  position: absolute;
  display: block;
  inset: 7% 0 3%;
  z-index: 3;
  overflow: hidden;
  background: #25272a;
  box-shadow: 0 16px 28px #0004;
  transform-origin: 50% 80%;
  transition: transform .55s cubic-bezier(.22,1,.36,1), filter .35s ease;
}
.atlas-stack-layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.atlas-stack .atlas-stack-layer:first-child { z-index: 5; transform: rotate(-2deg); }
.atlas-stack .atlas-stack-layer:nth-child(2) { z-index: 4; transform: translate(6%,-11%) rotate(7deg) scale(.97); filter: brightness(.8); }
.atlas-stack .atlas-stack-layer:nth-child(3) { z-index: 3; transform: translate(-7%,-15%) rotate(-8deg) scale(.95); filter: brightness(.66); }
.atlas-client .atlas-client-label {
  display: block;
  padding-right: 0;
  color: inherit;
  font: 400 clamp(16px, 1.55vw, 23px)/1.35 "Songti SC", Georgia, serif;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}
.atlas-client-title { display: block; }
.atlas-client .atlas-client-subtitle { display: block; margin-top: 8px; color: #a89784; font: 10px/1.4 Arial,sans-serif; letter-spacing: .12em; }
.atlas-client .atlas-client-arrow {
  position: absolute;
  right: 0;
  bottom: 17px;
  color: var(--atlas-gold);
  font: 23px/1 Georgia, serif;
  transition: transform .3s ease;
}
.atlas-client:hover, .atlas-client:focus-visible { color: #fff9f0; border-bottom-color: #d6b28d89; }
.atlas-client:hover .atlas-client-arrow, .atlas-client:focus-visible .atlas-client-arrow { transform: translate(3px,-3px); }
.atlas-client:hover .atlas-stack-layer:first-child, .atlas-client:focus-visible .atlas-stack-layer:first-child { transform: translateY(-8%) rotate(-3deg); }
.atlas-client:hover .atlas-stack-layer:nth-child(2), .atlas-client:focus-visible .atlas-stack-layer:nth-child(2) { transform: translate(13%,-18%) rotate(11deg) scale(.97); filter: brightness(.94); }
.atlas-client:hover .atlas-stack-layer:nth-child(3), .atlas-client:focus-visible .atlas-stack-layer:nth-child(3) { transform: translate(-14%,-22%) rotate(-13deg) scale(.95); filter: brightness(.82); }

/* Opening a collection reveals a quiet, stable model gallery. */
.case-atlas .atlas-expanded { min-width: 0; padding: 26px 34px 35px; }
.atlas-expanded .atlas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eee4d51f;
}
.atlas-back, .atlas-tab {
  min-height: 44px;
  min-width: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #aaa7a2;
  font-size: 12px !important;
  line-height: 1.35;
}
.atlas-expanded .atlas-back { padding-left: 0; color: #d6b28d; white-space: nowrap; }
.atlas-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; min-width: 0; }
.atlas-tabs .atlas-tab:hover, .atlas-tabs .atlas-tab.is-active, .atlas-tabs .atlas-tab[aria-pressed="true"], .atlas-tabs .atlas-tab[aria-selected="true"] {
  color: #edd0b0;
  border-color: #d6b28d50;
  background: #d6b28d0a;
}
.case-atlas .atlas-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 24px;
  min-width: 0;
}
.atlas-model-grid[data-count="1"] { grid-template-columns: minmax(0,1fr); max-width: 940px; margin: 0 auto; }
.atlas-model-grid[data-count="2"], .atlas-model-grid[data-count="4"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
.atlas-model-grid[data-count="5"] { grid-template-columns: repeat(6,minmax(0,1fr)); }
.atlas-model-grid[data-count="5"] > .atlas-model { grid-column: span 2; }
.atlas-model-grid[data-count="5"] > .atlas-model:nth-child(n+4) { grid-column: span 3; }
.atlas-model-grid .atlas-model {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #eae5dd;
  text-align: left;
}
.atlas-model .atlas-model-image {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #222529;
}
.atlas-model-image img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .55s cubic-bezier(.22,1,.36,1); }
.atlas-model .atlas-model-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 49px; padding: 13px 0 12px; border-bottom: 1px solid #eee4d51f; }
.atlas-model-name { color: #eee8e0; font: 400 clamp(16px,1.5vw,22px)/1.3 Georgia,"Songti SC",serif; overflow-wrap: anywhere; }
.atlas-model-arrow { flex: none; color: #cba882; font: 20px/1 Georgia,serif; }
.atlas-model-index { position: absolute; left: 10px; top: 10px; z-index: 1; color: #e4c6a4; background: #11151ba8; padding: 5px 7px; font: 11px/1 Georgia,serif; }
.atlas-model:hover .atlas-model-image img { transform: scale(1.025); }
.atlas-model:hover .atlas-model-caption { border-color: #d6b28d7f; }
.atlas-announcement { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* A single native dialog keeps image, colors and specifications together. */
dialog.atlas-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #eee8e0;
  background: #15171a;
  box-shadow: none;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #746553 #17191c;
}
dialog.atlas-dialog:not([open]) { display: none; }
dialog.atlas-dialog::backdrop { background: #080b10c9; backdrop-filter: blur(10px); }
.atlas-dialog .atlas-detail-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1600px,100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 clamp(22px,3vw,50px);
  background: #191b1e;
}
.atlas-dialog .atlas-detail-header {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 86px;
  padding: 13px 0;
  border-bottom: 1px solid #e6d7c425;
  background: #191b1ef7;
  backdrop-filter: blur(10px);
}
.atlas-dialog .atlas-detail-back, .atlas-dialog .atlas-close,
.atlas-dialog .atlas-model-prev, .atlas-dialog .atlas-model-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #caa37a44;
  border-radius: 0;
  background: transparent;
  color: #ddbc98;
  font-size: 13px;
  line-height: 1.25;
}
.atlas-dialog .atlas-detail-back { flex: none; }
.atlas-dialog .atlas-close { margin-left: auto; padding: 0; width: 44px; height: 44px; flex: none; font: 27px/1 Arial,sans-serif; }
.atlas-detail-client { min-width: 0; color: #b3a08b; font-size: 11px; line-height: 1.4; letter-spacing: .12em; overflow-wrap: anywhere; }
.atlas-dialog .atlas-detail-body {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(310px,1fr);
  flex: 1;
  align-items: start;
  gap: clamp(28px,4vw,65px);
  min-width: 0;
  padding: 38px 0 36px;
}
.atlas-dialog .atlas-detail-visual { position: sticky; top: 116px; min-width: 0; margin: 0; background: #141619; }
.atlas-dialog .atlas-detail-image { display: block; width: 100%; height: auto; max-height: calc(100dvh - 250px); object-fit: contain; aspect-ratio: 16 / 9; background: #141619; }
.atlas-dialog .atlas-image-status { position: absolute; inset: 0 0 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; padding: 25px; background: #141619e8; color: #b7b3ad; font-size: 13px; line-height: 1.6; text-align: center; }
.atlas-image-status:empty { display: none; }
.atlas-dialog .atlas-retry { min-height: 44px; padding: 10px 17px; border: 1px solid #caa37a77; background: transparent; color: #e0c4a5; font-size: 12px; }
.atlas-dialog .atlas-variants { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 60px; padding: 12px 0 0; background: #191b1e; }
.atlas-dialog .atlas-variant { min-width: 56px; min-height: 44px; padding: 10px 15px; border: 1px solid #d6b28d3a; background: transparent; color: #a6a3a0; font-size: 12px; line-height: 1.3; }
.atlas-dialog .atlas-variant:hover, .atlas-dialog .atlas-variant.is-active, .atlas-dialog .atlas-variant[aria-pressed="true"] { color: #f0d3b4; border-color: #ddba8f; background: #d6b28d12; }
.atlas-dialog .atlas-detail-copy { min-width: 0; }
.atlas-detail-kicker { margin: 0 0 12px; color: #c5a27d; font-size: 10px; line-height: 1.4; letter-spacing: .19em; }
.atlas-dialog #atlas-detail-title { margin: 0 0 26px; color: #f1ece5; font: 400 clamp(29px,3.6vw,51px)/1.08 Georgia,"Songti SC",serif; letter-spacing: -.025em; overflow-wrap: anywhere; }
.atlas-dialog .atlas-specs { margin: 0; border-top: 1px solid #eee4d53a; }
.atlas-dialog .atlas-specs > div { display: grid; grid-template-columns: minmax(105px,.8fr) minmax(0,1.2fr); gap: 18px; padding: 15px 0; border-bottom: 1px solid #eee4d51d; }
.atlas-dialog .atlas-specs dt { margin: 0; color: #999b9e; font-size: 12px; line-height: 1.65; }
.atlas-dialog .atlas-specs dd { min-width: 0; margin: 0; color: #e9e4dc; font-size: 13px; font-weight: 400; line-height: 1.65; overflow-wrap: anywhere; }
.atlas-dialog .atlas-detail-footer { display: flex; align-items: center; gap: 9px; min-height: 82px; margin-top: auto; padding: 16px 0 20px; border-top: 1px solid #eee4d51f; background: transparent; }
.atlas-dialog .atlas-detail-count { margin-right: auto; color: #bb9f81; font: 17px/1 Georgia,serif; }
.atlas-dialog .atlas-model-prev, .atlas-dialog .atlas-model-next { width: 48px; padding: 0; font: 21px/1 Georgia,serif; }
.atlas-dialog button:hover { border-color: #ddba8f; color: #f5dec4; }
.atlas-dialog button:disabled { opacity: .3; cursor: default; }

@media(min-width:1700px) {
  .case-atlas .atlas-overview { min-height: 490px; padding-inline: 50px; gap: 42px; }
  .case-atlas .atlas-client { min-height: 370px; }
}
@media(max-width:1050px) {
  .case-atlas .atlas-overview { gap: 22px; padding-inline: 28px; min-height: 365px; }
  .case-atlas .atlas-client { min-height: 290px; gap: 20px; }
  .atlas-client .atlas-stack { width: 92%; }
  .atlas-client .atlas-client-label { font-size: 17px; }
  .case-atlas .atlas-expanded { padding-inline: 25px; }
  .atlas-tabs .atlas-tab { padding-inline: 10px; }
  .atlas-dialog .atlas-detail-body { grid-template-columns: minmax(0,1fr) minmax(290px,.9fr); gap: 27px; }
}
@media(max-width:800px) {
  .atlas-expanded .atlas-toolbar { align-items: start; flex-direction: column; gap: 9px; }
  .atlas-dialog .atlas-detail-body { grid-template-columns: minmax(0,1fr); gap: 26px; }
  .atlas-dialog .atlas-detail-visual { position: relative; top: auto; }
  .atlas-dialog .atlas-detail-image { max-height: 56dvh; }
  .atlas-dialog .atlas-detail-copy { padding-bottom: 2px; }
  .atlas-dialog #atlas-detail-title { font-size: 38px; }
}
@media(max-width:700px) {
  .client-showcase.case-atlas { scroll-margin-top: 90px; }
  .case-atlas .atlas-overview { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 23px; min-height: 550px; padding: 23px 23px 90px; }
  .case-atlas .atlas-client { min-height: 205px; gap: 12px; padding-top: 29px; padding-bottom: 12px; }
  .atlas-client .atlas-client-index { top: 0; font-size: 10px; }
  .atlas-client .atlas-stack { width: 94%; margin-top: 16px; margin-bottom: 2px; }
  .atlas-client .atlas-client-label { padding-right: 0; font-size: 16px; line-height: 1.4; }
  .atlas-client .atlas-client-arrow { bottom: 14px; font-size: 18px; }
  .case-atlas .atlas-expanded { padding: 17px 18px 24px; }
  .atlas-expanded .atlas-toolbar { margin-bottom: 21px; padding-bottom: 12px; }
  .atlas-tabs { display: grid; width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
  .atlas-tabs .atlas-tab { padding: 10px 6px; font-size: 11px !important; text-align: left; }
  .case-atlas .atlas-model-grid { grid-template-columns: minmax(0,1fr); gap: 21px; }
  .case-atlas .atlas-model-grid[data-count="5"] > .atlas-model { grid-column: auto; }
  .atlas-model .atlas-model-caption { padding: 12px 0 11px; min-height: 45px; }
  .atlas-model-name { font-size: 19px; }
  .atlas-model-index { left: 8px; top: 8px; font-size: 10px; }
  .atlas-dialog .atlas-detail-panel { padding: 0 18px; }
  .atlas-dialog .atlas-detail-header { gap: 12px; min-height: 72px; padding-block: 11px; }
  .atlas-dialog .atlas-detail-back { padding-inline: 11px; font-size: 11px; }
  .atlas-detail-client { font-size: 10px; letter-spacing: .04em; }
  .atlas-dialog .atlas-detail-body { padding: 22px 0 27px; gap: 24px; }
  .atlas-dialog .atlas-detail-image { max-height: 48dvh; }
  .atlas-dialog .atlas-image-status { bottom: 58px; font-size: 12px; padding: 15px; }
  .atlas-dialog .atlas-variants { min-height: 58px; gap: 6px; }
  .atlas-dialog .atlas-variant { padding-inline: 13px; }
  .atlas-detail-kicker { margin-bottom: 10px; font-size: 9px; }
  .atlas-dialog #atlas-detail-title { font-size: 33px; margin-bottom: 23px; }
  .atlas-dialog .atlas-specs > div { grid-template-columns: minmax(95px,.8fr) minmax(0,1.2fr); gap: 13px; padding-block: 13px; }
  .atlas-dialog .atlas-specs dt { font-size: 11px; }
  .atlas-dialog .atlas-specs dd { font-size: 12px; }
  .atlas-dialog .atlas-detail-footer { min-height: 78px; padding-bottom: max(16px,env(safe-area-inset-bottom)); }
}
@media(max-width:360px) {
  .case-atlas .atlas-overview { gap: 17px; padding-inline: 17px; min-height: 455px; }
  .case-atlas .atlas-client { min-height: 191px; }
  .atlas-client .atlas-client-label { font-size: 15px; padding-right: 0; letter-spacing: 0; }
  .atlas-client .atlas-client-arrow { font-size: 16px; }
  .atlas-dialog .atlas-detail-panel { padding-inline: 15px; }
  .atlas-dialog .atlas-detail-header { gap: 8px; }
  .atlas-detail-client { font-size: 9px; }
  .atlas-dialog #atlas-detail-title { font-size: 29px; }
  .atlas-dialog .atlas-specs > div { grid-template-columns: 90px minmax(0,1fr); gap: 9px; }
}
body.motion-off .case-atlas *, body.motion-off .case-atlas *::before,
body.motion-off .case-atlas *::after, body.motion-off .atlas-dialog * {
  animation: none !important;
  transition: none !important;
}
@media(prefers-reduced-motion:reduce) {
  .case-atlas *, .case-atlas *::before, .case-atlas *::after, .atlas-dialog * {
    animation: none !important;
    transition: none !important;
  }
}

/* A restrained, animated working-path illustration in the About section. */
.ava-expanded .about-layout { align-items: stretch; }
.about-feature { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(36px, 4vw, 74px); }
.about-visual { width: min(100%, 620px); color: #c5a482; padding-top: 4px; }
.about-visual-art { display: block; width: 100%; overflow: visible; }
.about-visual-labels { display: flex; justify-content: space-between; gap: 12px; color: #b7aca0; font-size: 12px; letter-spacing: .07em; }
.about-visual-labels span:nth-child(2) { text-align: center; }
.about-visual-labels span:last-child { text-align: right; }
.about-visual-path { stroke-dasharray: 8 8; animation: about-path-flow 24s linear infinite; }
.about-visual-pulse { transform-origin: 310px 137px; animation: about-node-pulse 4s ease-in-out infinite; }
@keyframes about-path-flow { to { stroke-dashoffset: -64; } }
@keyframes about-node-pulse { 50% { opacity: .3; transform: scale(1.35); } }
@media (max-width: 950px) { .about-feature { gap: 30px; } .about-visual { width: min(100%, 540px); } }
@media (max-width: 600px) { .about-visual-labels { font-size: 10px; letter-spacing: .03em; } .about-feature { gap: 30px; } }
@media (prefers-reduced-motion: reduce) { .about-visual-path, .about-visual-pulse { animation: none; } }
body.motion-off .about-visual-path, body.motion-off .about-visual-pulse { animation: none; }

/* Icon-only scroll prompt on the opening screen. */
.story-integrated .hero-scroll-indicator { display:grid; place-items:center; width:54px; height:54px; border:1px solid #f1dfc98c; border-radius:50%; color:#f5e3ce; background:#f1dfc90c; pointer-events:auto; transition:background .25s ease,border-color .25s ease,transform .25s ease; }
.story-integrated .hero-scroll-indicator:hover { background:#f1dfc928; border-color:#f1dfc9; transform:translateY(3px); }
.story-integrated .hero-scroll-indicator:focus-visible { outline:2px solid #fff2db; outline-offset:4px; }
.story-integrated .hero-scroll-indicator svg { width:24px; height:24px; animation:hero-scroll-hint 2s ease-in-out infinite; }
@keyframes hero-scroll-hint { 0%,100% { transform:translateY(-2px); } 50% { transform:translateY(3px); } }
@media (prefers-reduced-motion:reduce) { .story-integrated .hero-scroll-indicator, .story-integrated .hero-scroll-indicator svg { transition:none; animation:none; } }
.story-integrated.motion-off .hero-scroll-indicator svg { animation:none; }
