/* =========================================================
   ĐẢO SỐ PROJECTS — IMMERSIVE GALLERY v3
   /projects behaves like a showcase app, not a long document.
   ========================================================= */

.projects-page{
  background:#03050d;
  color:#f7faff;
  overscroll-behavior-x:none;
}
.projects-page .studio-header{z-index:80}
.projects-page .studio-footer{position:relative;z-index:2}
.projects-showcase-main{background:#03050d}

.project-showcase{
  position:relative;
  min-height:calc(100svh - 78px);
  overflow:hidden;
  padding:clamp(1.15rem,2.6vh,1.8rem) 0 clamp(.9rem,1.8vh,1.35rem);
  isolation:isolate;
  background:
    radial-gradient(circle at 10% 14%,rgba(0,245,255,.08),transparent 24rem),
    radial-gradient(circle at 88% 74%,rgba(255,60,172,.08),transparent 28rem),
    linear-gradient(145deg,#03050d 0%,#07101f 46%,#0c0719 100%);
}
.project-showcase-grid{
  position:absolute;inset:0;z-index:-3;pointer-events:none;
  background-image:
    linear-gradient(rgba(105,126,170,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(105,126,170,.055) 1px,transparent 1px);
  background-size:56px 56px;
  mask-image:linear-gradient(to bottom,#000,rgba(0,0,0,.55) 64%,transparent);
}
.project-showcase-glow{
  position:absolute;z-index:-2;border-radius:50%;filter:blur(70px);pointer-events:none;opacity:.55
}
.project-showcase-glow.glow-a{width:32vw;height:32vw;left:-12vw;top:12vh;background:rgba(0,245,255,.07)}
.project-showcase-glow.glow-b{width:34vw;height:34vw;right:-12vw;bottom:-10vh;background:rgba(139,92,246,.09)}

.project-showcase-shell{
  width:min(1680px,100%);
  margin:0 auto;
  padding-inline:clamp(16px,3vw,44px);
}
.project-showcase-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,340px);
  gap:clamp(1.5rem,3vw,3.2rem);
  align-items:start;
  margin-bottom:clamp(.55rem,1.1vh,.85rem);
}
.project-showcase-copy{max-width:1120px}
.project-showcase-copy .breadcrumb{margin-bottom:.62rem;color:#8e9bb3;font-size:.68rem}
.project-showcase-copy .breadcrumb a{color:#b9c7dc}
.project-showcase-copy .eyebrow{margin-bottom:.62rem}
.project-showcase-copy h1{
  max-width:17.5ch;
  margin:0;
  font-size:clamp(3rem,4.65vw,5.9rem);
  line-height:.9;
  letter-spacing:-.072em;
  color:#f8fbff;
  text-wrap:balance;
}
.project-showcase-copy h1 span{
  background:linear-gradient(90deg,#00f5ff 0%,#7890ff 42%,#a78bfa 70%,#ff70bd 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.project-showcase-copy>p{
  max-width:760px;
  margin:.78rem 0 0;
  color:#aebbd1;
  font-size:clamp(.9rem,1.05vw,1.05rem);
  line-height:1.72;
}
.project-showcase-status{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:.5rem;
  align-items:stretch;
  margin-top:2.25rem;
}
.project-showcase-status>div{
  min-width:92px;
  padding:.8rem .85rem;
  border:1px solid rgba(133,153,193,.16);
  border-radius:16px;
  background:rgba(10,19,35,.58);
  backdrop-filter:blur(16px);
}
.project-showcase-status strong{display:block;color:#f7faff;font-size:1.18rem;letter-spacing:-.03em}
.project-showcase-status span{display:block;margin-top:.18rem;color:#8290aa;font-size:.52rem;letter-spacing:.11em;font-weight:850}
.project-showcase-status>a{
  grid-column:1/-1;
  display:flex;align-items:center;justify-content:center;
  min-height:42px;padding:.65rem .9rem;border-radius:13px;
  background:linear-gradient(90deg,#00d9e6,#5572ff,#8b5cf6);
  color:#07101d;font-size:.68rem;font-weight:950;letter-spacing:.02em
}

.project-gallery-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  margin-bottom:.85rem;
}
.project-filter-dock{
  display:flex;gap:.35rem;padding:.34rem;
  border:1px solid rgba(135,156,197,.16);
  border-radius:999px;
  background:rgba(6,13,25,.7);
  backdrop-filter:blur(18px);
}
.project-filter-dock button{
  min-height:36px;padding:.5rem .78rem;border:0;border-radius:999px;
  background:transparent;color:#8695af;font:inherit;font-size:.66rem;font-weight:800;cursor:pointer;
  transition:background .2s ease,color .2s ease,box-shadow .2s ease;
}
.project-filter-dock button.active{
  color:#f8fbff;
  background:rgba(112,132,255,.16);
  box-shadow:inset 0 0 0 1px rgba(121,144,255,.27);
}
.project-filter-dock button:focus-visible,
.project-gallery-arrow:focus-visible,
.project-gallery-hit:focus-visible,
.case-dialog-close:focus-visible,
.case-scene-tabs button:focus-visible,
.case-nav-arrow:focus-visible,
.case-thumb:focus-visible,
.case-next-project:focus-visible{
  outline:2px solid #00f5ff;outline-offset:3px;
}
.project-gallery-controls{display:flex;align-items:center;gap:.42rem}
.project-gallery-counter{
  display:flex;align-items:baseline;gap:.34rem;
  min-width:72px;color:#7e8da8;font-size:.66rem;font-weight:800;
}
.project-gallery-counter b{color:#f7faff;font-size:1rem}
.project-gallery-counter i{font-style:normal;color:#4e5c74}
.project-gallery-arrow{
  width:38px;height:38px;border-radius:50%;border:1px solid rgba(134,154,194,.2);
  background:rgba(10,19,35,.68);color:#f8fbff;font-size:1rem;cursor:pointer;
  transition:transform .2s ease,background .2s ease,border-color .2s ease;
}
@media(hover:hover) and (pointer:fine){
  .project-gallery-arrow:hover{transform:scale(1.07);background:#111d33;border-color:rgba(0,245,255,.32)}
}

.project-gallery-viewport{
  position:relative;
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  cursor:grab;
  touch-action:pan-x pan-y;
  border-radius:clamp(20px,2vw,30px);
}
.project-gallery-viewport::-webkit-scrollbar{display:none}
.project-gallery-viewport.is-dragging{cursor:grabbing;scroll-behavior:auto;user-select:none}
.project-gallery-track{
  display:flex;
  gap:clamp(.75rem,1.2vw,1.15rem);
  width:max-content;
  padding:.2rem max(1px,calc((100vw - min(72vw,980px))/2 - clamp(16px,3vw,44px))) .35rem 0;
}
.project-gallery-card{
  flex:0 0 min(72vw,980px);
  height:clamp(390px,49vh,610px);
  scroll-snap-align:start;
  scroll-snap-stop:always;
  border-radius:clamp(20px,2vw,30px);
  overflow:hidden;
  position:relative;
  opacity:.62;
  transform:scale(.965);
  transform-origin:center;
  transition:opacity .38s ease,transform .38s cubic-bezier(.22,.8,.22,1),filter .38s ease;
  filter:saturate(.78);
}
.project-gallery-card[hidden]{display:none!important}
.project-gallery-card.is-active{
  opacity:1;transform:scale(1);filter:saturate(1.04);
}
.project-gallery-hit{
  position:relative;display:block;width:100%;height:100%;padding:0;border:0;cursor:pointer;
  background:#071126;text-align:left;color:inherit;overflow:hidden;border-radius:inherit;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.07),0 30px 80px rgba(0,0,0,.26);
}
.project-gallery-hit img{
  position:absolute;inset:-2%;width:104%;height:104%;object-fit:cover;
  transform:scale(1.02) translate3d(var(--parallax-x,0),var(--parallax-y,0),0);
  transition:transform .65s cubic-bezier(.2,.75,.2,1),filter .4s ease;
}
.project-gallery-card.is-active .project-gallery-hit img{transform:scale(1.035) translate3d(var(--parallax-x,0),var(--parallax-y,0),0)}
.project-gallery-shade{
  position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(180deg,rgba(3,5,13,.42) 0%,transparent 32%,transparent 55%,rgba(3,5,13,.88) 100%),
    linear-gradient(90deg,rgba(3,5,13,.28),transparent 42%,rgba(3,5,13,.08));
}
.project-gallery-topline{
  position:absolute;left:clamp(1rem,2vw,1.7rem);right:clamp(1rem,2vw,1.7rem);top:clamp(1rem,2vw,1.5rem);
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  color:#dce6f5;font-size:.56rem;letter-spacing:.12em;font-weight:900;
}
.project-gallery-topline b{
  padding:.38rem .52rem;border-radius:999px;background:rgba(3,5,13,.52);backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.13)
}
.project-gallery-topline i{font-style:normal;color:#c1cee1;text-shadow:0 1px 8px rgba(0,0,0,.6)}
.project-gallery-bottom{
  position:absolute;left:clamp(1rem,2vw,1.7rem);right:clamp(1rem,2vw,1.7rem);bottom:clamp(1rem,2vw,1.65rem);
  display:grid;grid-template-columns:auto 1fr auto;gap:clamp(.8rem,1.4vw,1.25rem);align-items:end;
}
.project-gallery-index{
  color:#00f5ff;font-size:.74rem;font-weight:950;letter-spacing:.08em;padding-bottom:.25rem;
}
.project-gallery-bottom small{
  display:block;color:#adbad0;font-size:.62rem;letter-spacing:.04em;margin-bottom:.35rem
}
.project-gallery-bottom strong{
  display:block;color:#fff;font-size:clamp(2rem,3.7vw,4.7rem);line-height:.9;letter-spacing:-.055em;
  text-shadow:0 6px 28px rgba(0,0,0,.45);
}
.project-gallery-bottom em{
  align-self:end;
  font-style:normal;color:#f7faff;font-size:.58rem;letter-spacing:.12em;font-weight:900;
  padding:.55rem .7rem;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(3,5,13,.38);backdrop-filter:blur(12px)
}
@media(hover:hover) and (pointer:fine){
  .project-gallery-card.is-active .project-gallery-hit:hover img{transform:scale(1.065) translate3d(var(--parallax-x,0),var(--parallax-y,0),0)}
  .project-gallery-card.is-active .project-gallery-hit:hover .project-gallery-bottom em{background:#f7faff;color:#07101d}
}

.project-gallery-foot{
  display:flex;justify-content:space-between;align-items:center;gap:1.2rem;
  margin-top:.8rem;color:#77869f
}
.project-gallery-hint{display:flex;align-items:center;gap:.55rem;font-size:.56rem;letter-spacing:.1em;font-weight:850}
.project-gallery-hint i{display:block;width:50px;height:1px;background:linear-gradient(90deg,#00f5ff,rgba(85,114,255,.2))}
.project-gallery-hint small{font-size:.58rem;letter-spacing:0;color:#8c9ab1;font-weight:600}
.project-integrity-note{display:flex;align-items:center;gap:.65rem;max-width:680px;text-align:right}
.project-integrity-note b{color:#c7ff3d;font-size:.54rem;letter-spacing:.1em;white-space:nowrap}
.project-integrity-note span{font-size:.58rem;line-height:1.5;color:#8290a8}

/* =========================================================
   CASE EXPLORER DIALOG
   ========================================================= */
body.case-open{overflow:hidden}
.project-case-dialog{
  width:min(1540px,96vw);
  height:min(930px,94dvh);
  max-width:none;
  max-height:none;
  margin:auto;padding:0;
  border:1px solid rgba(117,140,185,.2);
  border-radius:30px;
  color:#f7faff;
  background:#060b14;
  overflow:hidden;
  box-shadow:0 60px 180px rgba(0,0,0,.62);
}
.project-case-dialog::backdrop{
  background:rgba(2,4,10,.84);
  backdrop-filter:blur(14px) saturate(.8);
}
.project-case-dialog[open]{animation:caseIn .34s cubic-bezier(.2,.8,.2,1)}
@keyframes caseIn{from{opacity:0;transform:scale(.965) translateY(12px)}to{opacity:1;transform:none}}
.case-dialog-shell{
  height:100%;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  background:
    radial-gradient(circle at 70% 12%,rgba(85,114,255,.07),transparent 28rem),
    #060b14;
}
.case-dialog-topbar{
  display:flex;align-items:center;justify-content:space-between;
  min-height:58px;padding:.55rem .75rem .55rem 1.15rem;
  border-bottom:1px solid rgba(119,140,181,.12);
}
.case-dialog-status{display:flex;align-items:center;gap:.7rem;color:#8998b0;font-size:.58rem;letter-spacing:.1em;font-weight:850}
.case-dialog-status i{width:38px;height:1px;background:linear-gradient(90deg,#00f5ff,#8b5cf6)}
.case-dialog-status b{color:#c6d3e5}
.case-dialog-close{
  width:42px;height:42px;border-radius:50%;border:1px solid rgba(128,150,191,.18);
  background:#0c1627;color:#f7faff;font-size:1.45rem;line-height:1;cursor:pointer;
}
.case-dialog-stage{
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,1.36fr) minmax(390px,.64fr);
}
.case-dialog-media{
  position:relative;min-width:0;min-height:0;margin:0;overflow:hidden;background:#0a1221;
}
.case-dialog-media img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  transform:scale(1.015);
  transition:opacity .24s ease,transform .8s cubic-bezier(.2,.7,.2,1);
}
.case-dialog-media.is-changing img{opacity:.3;transform:scale(1.045)}
.case-dialog-media-shade{
  position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(3,5,13,.05) 50%,rgba(3,5,13,.76) 100%);
}
.case-dialog-media figcaption{
  position:absolute;left:clamp(1.1rem,2vw,1.8rem);bottom:clamp(1.1rem,2vw,1.6rem);
  text-shadow:0 3px 18px rgba(0,0,0,.7)
}
.case-dialog-media figcaption small{display:block;color:#c5d1e2;font-size:.56rem;letter-spacing:.12em;font-weight:850;margin-bottom:.35rem}
.case-dialog-media figcaption strong{display:block;font-size:clamp(2rem,3.3vw,4rem);letter-spacing:-.05em}
.case-dialog-content{
  min-width:0;min-height:0;overflow:auto;
  padding:clamp(1.3rem,2.4vw,2.4rem);
  background:
    linear-gradient(150deg,rgba(13,25,47,.98),rgba(17,13,38,.98));
  scrollbar-width:thin;scrollbar-color:#33415d transparent;
}
.case-dialog-heading .eyebrow{margin-bottom:.7rem}
.case-dialog-heading h2{
  margin:0;color:#fff;font-size:clamp(2.6rem,4.2vw,5.6rem);line-height:.88;letter-spacing:-.07em;
}
.case-dialog-heading>p{
  margin:1rem 0 0;color:#b7c4d8;font-size:.94rem;line-height:1.72
}
.case-scene-tabs{
  display:flex;gap:.35rem;overflow-x:auto;scrollbar-width:none;
  margin:1.5rem 0 .8rem;padding-bottom:.1rem;
}
.case-scene-tabs::-webkit-scrollbar{display:none}
.case-scene-tabs button{
  flex:0 0 auto;border:1px solid rgba(135,155,195,.16);border-radius:999px;
  background:rgba(255,255,255,.025);color:#8796af;padding:.5rem .68rem;
  font:inherit;font-size:.62rem;font-weight:850;cursor:pointer
}
.case-scene-tabs button.active{
  color:#07101d;border-color:transparent;background:linear-gradient(90deg,#00f5ff,#7890ff);
}
.case-scene-panel{
  min-height:146px;padding:1rem 1.05rem 1.05rem;border-radius:18px;
  border:1px solid rgba(128,149,190,.14);background:rgba(5,11,22,.4);
}
.case-scene-panel span{display:block;color:#7890ff;font-size:.56rem;letter-spacing:.11em;font-weight:900;margin-bottom:.55rem}
.case-scene-panel p{margin:0;color:#d4deec;font-size:.84rem;line-height:1.7}
.case-dialog-disclaimer{
  margin-top:.75rem;padding:.82rem .9rem;border-left:2px solid #c7ff3d;background:rgba(199,255,61,.035)
}
.case-dialog-disclaimer span{color:#c7ff3d;font-size:.51rem;letter-spacing:.12em;font-weight:900}
.case-dialog-disclaimer p{margin:.32rem 0 0;color:#8493ab;font-size:.7rem;line-height:1.55}
.case-dialog-actions{display:flex;align-items:center;gap:.5rem;margin-top:1rem}
.case-dialog-actions .btn{padding:.72rem .88rem;font-size:.68rem}
.case-next-project{
  min-height:40px;border:1px solid rgba(132,153,194,.17);border-radius:12px;
  background:rgba(255,255,255,.025);color:#d9e2ef;padding:.65rem .78rem;font:inherit;font-size:.66rem;font-weight:850;cursor:pointer
}
.case-dialog-bottom{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.55rem;align-items:center;
  min-height:86px;padding:.55rem .7rem;
  border-top:1px solid rgba(119,140,181,.12);
  background:#050a13;
}
.case-nav-arrow{
  width:42px;height:42px;border-radius:50%;border:1px solid rgba(129,150,191,.17);
  background:#0c1627;color:#fff;cursor:pointer
}
.case-thumb-rail{display:flex;gap:.42rem;overflow-x:auto;scrollbar-width:none;scroll-behavior:smooth;padding:.15rem}
.case-thumb-rail::-webkit-scrollbar{display:none}
.case-thumb{
  position:relative;flex:0 0 108px;height:58px;border:0;border-radius:10px;overflow:hidden;padding:0;cursor:pointer;
  background:#0b1424;opacity:.48;transition:opacity .2s ease,transform .2s ease,box-shadow .2s ease
}
.case-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.case-thumb.active{opacity:1;box-shadow:0 0 0 2px #7890ff}
.case-thumb span{
  position:absolute;left:7px;bottom:5px;color:#fff;font-size:.48rem;font-weight:900;
  text-shadow:0 2px 6px #000;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media(max-width:1180px){
  .project-showcase-head{grid-template-columns:1fr}
  .project-showcase-status{grid-template-columns:repeat(3,1fr);max-width:520px;margin-top:0}
  .project-gallery-card{flex-basis:min(82vw,900px)}
  .project-gallery-track{padding-right:1rem}
  .case-dialog-stage{grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr)}
}
@media(max-width:820px){
  .project-showcase{min-height:calc(100svh - 72px);padding-top:1.6rem}
  .project-showcase-shell{padding-inline:var(--mobile-gutter,16px)}
  .project-showcase-head{margin-bottom:1.1rem}
  .project-showcase-copy h1{max-width:11ch;font-size:clamp(3.1rem,14vw,5.2rem)}
  .project-showcase-copy>p{font-size:.86rem}
  .project-showcase-status{display:none}
  .project-gallery-toolbar{align-items:flex-start;flex-direction:column}
  .project-filter-dock{
    width:calc(100vw - var(--mobile-gutter,16px));
    max-width:none;overflow-x:auto;scrollbar-width:none;border-radius:14px;
  }
  .project-filter-dock::-webkit-scrollbar{display:none}
  .project-filter-dock button{flex:0 0 auto}
  .project-gallery-controls{align-self:flex-end}
  .project-gallery-card{
    flex-basis:min(88vw,680px);
    height:clamp(420px,62vh,570px);
  }
  .project-gallery-track{padding-right:.6rem}
  .project-gallery-bottom{grid-template-columns:auto 1fr}
  .project-gallery-bottom em{display:none}
  .project-gallery-bottom strong{font-size:clamp(2.3rem,10vw,3.8rem)}
  .project-gallery-foot{align-items:flex-start;flex-direction:column}
  .project-integrity-note{text-align:left;align-items:flex-start}
  .project-gallery-hint small{display:none}

  .project-case-dialog{
    width:100vw;height:100dvh;border:0;border-radius:0;
  }
  .case-dialog-shell{grid-template-rows:auto minmax(0,1fr) auto}
  .case-dialog-stage{
    display:grid;grid-template-columns:1fr;grid-template-rows:minmax(240px,42vh) minmax(0,1fr);
  }
  .case-dialog-media{min-height:0}
  .case-dialog-content{padding:1.05rem var(--mobile-gutter,16px) 1.2rem}
  .case-dialog-heading h2{font-size:clamp(2.5rem,12vw,4.3rem)}
  .case-dialog-heading>p{font-size:.82rem;line-height:1.62}
  .case-scene-tabs{margin-top:1rem}
  .case-scene-panel{min-height:112px}
  .case-dialog-disclaimer{display:none}
  .case-dialog-bottom{min-height:74px}
  .case-thumb{flex-basis:84px;height:48px}
}
@media(max-width:520px){
  .project-showcase{padding-bottom:1rem}
  .project-gallery-card{flex-basis:91vw;height:clamp(400px,59vh,520px);border-radius:20px}
  .project-gallery-topline{font-size:.5rem}
  .project-gallery-bottom small{font-size:.56rem}
  .project-gallery-index{display:none}
  .project-gallery-bottom{grid-template-columns:1fr}
  .project-integrity-note{display:none}
  .case-dialog-stage{grid-template-rows:minmax(210px,36vh) minmax(0,1fr)}
  .case-dialog-media figcaption strong{font-size:2rem}
  .case-dialog-media figcaption small{font-size:.46rem}
  .case-dialog-heading .eyebrow{font-size:.52rem}
  .case-dialog-heading h2{font-size:clamp(2.3rem,11.5vw,3.7rem)}
  .case-dialog-heading>p{margin-top:.7rem}
  .case-dialog-actions{position:sticky;bottom:0;padding-top:.7rem;background:linear-gradient(transparent,#111020 26%)}
  .case-dialog-actions .btn{flex:1;text-align:center}
  .case-next-project{flex:1}
}
@media(prefers-reduced-motion:reduce){
  .project-gallery-card,.project-gallery-hit img,.project-case-dialog,.case-dialog-media img{transition:none!important;animation:none!important}
  .project-gallery-viewport{scroll-behavior:auto}
}


/* =========================================================
   CASE DOSSIER — RICH CONTENT v4
   ========================================================= */
.case-meta-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.48rem;
  margin:1.15rem 0 .25rem;
}
.case-meta-grid>div{
  min-width:0;
  min-height:82px;
  padding:.72rem .78rem;
  border:1px solid rgba(128,149,190,.13);
  border-radius:14px;
  background:rgba(4,10,20,.34);
}
.case-meta-grid span{
  display:block;
  margin-bottom:.38rem;
  color:#7890ff;
  font-size:.49rem;
  letter-spacing:.11em;
  font-weight:900;
}
.case-meta-grid strong{
  display:block;
  color:#dce5f2;
  font-size:.64rem;
  line-height:1.45;
  font-weight:760;
}

.case-scene-tabs{
  margin-top:1rem;
}
.case-scene-panel{
  min-height:270px;
  padding:1.05rem 1.08rem 1.12rem;
}
.case-scene-panel>span{
  margin-bottom:.48rem;
}
.case-scene-panel h3{
  max-width:30ch;
  margin:0 0 .58rem;
  color:#f5f8ff;
  font-size:clamp(1.08rem,1.35vw,1.42rem);
  line-height:1.14;
  letter-spacing:-.028em;
  text-wrap:balance;
}
.case-scene-panel>p{
  color:#aebbd0;
  font-size:.79rem;
  line-height:1.66;
}
.case-scene-panel ul{
  display:grid;
  gap:.44rem;
  margin:.8rem 0 0;
  padding:0;
  list-style:none;
}
.case-scene-panel li{
  position:relative;
  margin:0;
  padding-left:1.05rem;
  color:#d6e0ed;
  font-size:.7rem;
  line-height:1.55;
}
.case-scene-panel li::before{
  content:"";
  position:absolute;
  left:0;
  top:.54em;
  width:5px;
  height:5px;
  border-radius:50%;
  background:linear-gradient(135deg,#00f5ff,#7890ff);
  box-shadow:0 0 0 3px rgba(86,114,255,.09);
}

@media(max-width:1180px){
  .case-meta-grid>div{min-height:76px}
  .case-meta-grid strong{font-size:.61rem}
  .case-scene-panel{min-height:250px}
}

@media(max-width:820px){
  .case-meta-grid{
    gap:.38rem;
    margin-top:.85rem;
  }
  .case-meta-grid>div{
    min-height:72px;
    padding:.58rem .62rem;
  }
  .case-meta-grid span{
    font-size:.44rem;
    letter-spacing:.08em;
  }
  .case-meta-grid strong{
    font-size:.57rem;
    line-height:1.38;
  }
  .case-scene-tabs{
    margin-top:.78rem;
  }
  .case-scene-tabs button{
    font-size:.58rem;
    padding:.46rem .62rem;
  }
  .case-scene-panel{
    min-height:0;
    padding:.88rem .9rem .94rem;
  }
  .case-scene-panel h3{
    font-size:1.04rem;
  }
  .case-scene-panel>p{
    font-size:.74rem;
  }
  .case-scene-panel li{
    font-size:.66rem;
  }
}

@media(max-width:520px){
  .case-meta-grid{
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    padding-bottom:.08rem;
  }
  .case-meta-grid::-webkit-scrollbar{display:none}
  .case-meta-grid>div{
    flex:0 0 min(72vw,250px);
    scroll-snap-align:start;
  }
  .case-scene-tabs{
    margin-right:calc(var(--mobile-gutter,16px) * -1);
    padding-right:var(--mobile-gutter,16px);
  }
  .case-scene-panel h3{
    max-width:none;
  }
}


/* =========================================================
   IMMERSIVE CASE SIMULATION v5
   ========================================================= */
.case-simulation{
  margin-top:1.05rem;
  padding:1rem 1.05rem;
  border:1px solid rgba(118,145,197,.17);
  border-radius:20px;
  background:
    radial-gradient(circle at 88% 8%,rgba(139,92,246,.11),transparent 34%),
    linear-gradient(145deg,rgba(10,20,38,.9),rgba(11,14,31,.94));
  box-shadow:inset 0 1px rgba(255,255,255,.035);
}
.case-simulation-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  margin-bottom:.72rem;
}
.case-simulation-head span{
  color:#c7ff3d;
  font-size:.5rem;
  letter-spacing:.13em;
  font-weight:950;
}
.case-simulation-head b{
  color:#8797b1;
  font-size:.54rem;
  letter-spacing:.02em;
  font-weight:760;
  text-align:right;
}
.case-simulation>p{
  margin:0;
  color:#e5edf8;
  font-size:.81rem;
  line-height:1.72;
}
.case-simulation-mind{
  margin-top:.78rem;
  padding:.72rem .8rem;
  border-left:2px solid #00f5ff;
  border-radius:0 12px 12px 0;
  background:rgba(0,245,255,.045);
}
.case-simulation-mind span{
  display:block;
  margin-bottom:.3rem;
  color:#00e7f3;
  font-size:.47rem;
  letter-spacing:.11em;
  font-weight:900;
}
.case-simulation-mind strong{
  display:block;
  color:#f6f9ff;
  font-size:.75rem;
  line-height:1.55;
  font-weight:760;
}
.case-simulation-contrast{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  gap:.62rem;
  align-items:stretch;
  margin-top:.8rem;
}
.case-simulation-contrast>div{
  padding:.7rem .75rem;
  border:1px solid rgba(122,144,184,.12);
  border-radius:14px;
  background:rgba(2,7,16,.28);
}
.case-simulation-contrast>div:last-child{
  border-color:rgba(85,114,255,.25);
  background:linear-gradient(145deg,rgba(85,114,255,.075),rgba(139,92,246,.055));
}
.case-simulation-contrast span{
  display:block;
  margin-bottom:.3rem;
  color:#7f8da7;
  font-size:.45rem;
  letter-spacing:.1em;
  font-weight:900;
}
.case-simulation-contrast>div:last-child span{color:#9daeff}
.case-simulation-contrast p{
  margin:0;
  color:#b9c5d8;
  font-size:.62rem;
  line-height:1.55;
}
.case-simulation-contrast>div:last-child p{color:#dce5f2}
.case-simulation-contrast>i{
  align-self:center;
  color:#60708c;
  font-size:.82rem;
  font-style:normal;
}

@media(max-width:820px){
  .case-simulation{
    margin-top:.8rem;
    padding:.85rem .88rem;
  }
  .case-simulation>p{font-size:.76rem}
  .case-simulation-mind strong{font-size:.7rem}
}
@media(max-width:520px){
  .case-simulation-head{
    align-items:flex-start;
    flex-direction:column;
    gap:.25rem;
  }
  .case-simulation-head b{text-align:left}
  .case-simulation-contrast{
    grid-template-columns:1fr;
    gap:.42rem;
  }
  .case-simulation-contrast>i{
    justify-self:center;
    transform:rotate(90deg);
  }
}


/* =========================================================
   CASE READING SYSTEM v6 — PROGRESSIVE DISCLOSURE
   ========================================================= */
.case-dialog-tools{
  display:flex;
  align-items:center;
  gap:.55rem;
}
.case-view-switch{
  display:flex;
  align-items:center;
  gap:.2rem;
  padding:.24rem;
  border:1px solid rgba(128,150,191,.16);
  border-radius:999px;
  background:rgba(10,18,32,.72);
}
.case-view-switch button{
  border:0;
  border-radius:999px;
  background:transparent;
  color:#7f8da7;
  padding:.48rem .7rem;
  font:inherit;
  font-size:.56rem;
  font-weight:900;
  letter-spacing:.03em;
  cursor:pointer;
}
.case-view-switch button.active{
  color:#07101d;
  background:linear-gradient(90deg,#00f5ff,#7890ff);
}

.project-case-dialog .case-dialog-stage{
  grid-template-columns:minmax(0,1.12fr) minmax(520px,.88fr);
  transition:grid-template-columns .38s cubic-bezier(.2,.8,.2,1);
}
.project-case-dialog[data-case-mode="deep"] .case-dialog-stage{
  grid-template-columns:minmax(300px,.52fr) minmax(620px,1.48fr);
}

.project-case-dialog[data-case-mode="deep"] .case-dialog-media figcaption strong{
  font-size:clamp(1.8rem,2.5vw,3rem);
}
.project-case-dialog[data-case-mode="deep"] .case-dialog-content{
  padding-inline:clamp(1.7rem,3vw,3.2rem);
}
.project-case-dialog[data-case-mode="deep"] .case-dialog-heading,
.project-case-dialog[data-case-mode="deep"] .case-simulation,
.project-case-dialog[data-case-mode="deep"] .case-meta-grid,
.project-case-dialog[data-case-mode="deep"] .case-content-rail,
.project-case-dialog[data-case-mode="deep"] .case-scene-tabs,
.project-case-dialog[data-case-mode="deep"] .case-dialog-disclaimer,
.project-case-dialog[data-case-mode="deep"] .case-dialog-actions{
  max-width:860px;
  margin-left:auto;
  margin-right:auto;
}
.project-case-dialog[data-case-mode="deep"] .case-scene-panel{
  display:none;
}

.case-content-rail{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin:1rem 0 .35rem;
  padding-top:.85rem;
  border-top:1px solid rgba(127,148,188,.12);
}
.case-content-rail span{
  color:#8a98b1;
  font-size:.56rem;
  font-weight:850;
  letter-spacing:.08em;
  white-space:nowrap;
}
.case-content-rail span b{color:#f5f8ff;font-size:.78rem}
.case-content-rail small{
  max-width:34rem;
  color:#71809b;
  font-size:.58rem;
  line-height:1.45;
  text-align:right;
}

.case-simulation-more{
  margin-top:.7rem;
  border-top:1px solid rgba(120,145,194,.11);
}
.case-simulation-more summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.7rem 0 0;
  cursor:pointer;
  list-style:none;
  color:#9aa8be;
  font-size:.57rem;
  font-weight:850;
}
.case-simulation-more summary::-webkit-details-marker{display:none}
.case-simulation-more summary b{
  color:#7890ff;
  font-size:.5rem;
  letter-spacing:.08em;
}
.case-simulation-more[open] summary b{color:#00e7f3}
.case-simulation-more .case-simulation-contrast{margin-top:.65rem}

.case-deep-stack{
  max-width:860px;
  margin:1rem auto 0;
  display:grid;
  gap:.85rem;
}
.case-deep-section{
  scroll-margin-top:1rem;
  padding:1.15rem 1.2rem 1.2rem;
  border:1px solid rgba(128,149,190,.14);
  border-radius:18px;
  background:
    linear-gradient(145deg,rgba(8,16,31,.88),rgba(11,13,30,.82));
}
.case-deep-kicker{
  display:flex;
  align-items:center;
  gap:.65rem;
  margin-bottom:.65rem;
}
.case-deep-kicker span{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:rgba(85,114,255,.12);
  color:#8fa2ff;
  font-size:.54rem;
  font-weight:950;
}
.case-deep-kicker b{
  color:#9aabff;
  font-size:.54rem;
  letter-spacing:.1em;
}
.case-deep-section h3{
  max-width:34ch;
  margin:0;
  color:#f8fbff;
  font-size:clamp(1.35rem,1.8vw,1.85rem);
  line-height:1.12;
  letter-spacing:-.035em;
}
.case-deep-section>p{
  max-width:64ch;
  margin:.65rem 0 0;
  color:#b8c5d8;
  font-size:.9rem;
  line-height:1.72;
}
.case-deep-section ul{
  display:grid;
  gap:.48rem;
  margin:.8rem 0 0;
  padding:0;
  list-style:none;
}
.case-deep-section li{
  position:relative;
  max-width:68ch;
  padding-left:1.1rem;
  color:#dce5f1;
  font-size:.78rem;
  line-height:1.58;
}
.case-deep-section li::before{
  content:"";
  position:absolute;
  left:0;
  top:.58em;
  width:5px;
  height:5px;
  border-radius:50%;
  background:linear-gradient(135deg,#00f5ff,#7890ff);
}

@media(max-width:1180px){
  .project-case-dialog .case-dialog-stage,
  .project-case-dialog[data-case-mode="deep"] .case-dialog-stage{
    grid-template-columns:minmax(0,1fr) minmax(410px,.92fr);
  }
  .project-case-dialog[data-case-mode="deep"] .case-dialog-media{
    display:none;
  }
  .project-case-dialog[data-case-mode="deep"] .case-dialog-stage{
    grid-template-columns:1fr;
  }
}
@media(max-width:820px){
  .case-view-switch{display:none}
  .project-case-dialog .case-dialog-stage,
  .project-case-dialog[data-case-mode="deep"] .case-dialog-stage{
    grid-template-columns:1fr;
  }
  .case-content-rail small{display:none}
  .case-content-rail{justify-content:flex-start}
}


/* =========================================================
   STORY JOURNEY v7 — ONE CHAPTER AT A TIME
   ========================================================= */
.case-view-switch,
.case-content-rail,
.case-scene-tabs,
.case-scene-panel,
.case-deep-stack,
.case-simulation,
.case-meta-grid{display:none!important}

.case-story-mode{
  color:#7f8da7;
  font-size:.54rem;
  letter-spacing:.14em;
  font-weight:950;
}
.project-case-dialog .case-dialog-stage,
.project-case-dialog[data-case-mode="deep"] .case-dialog-stage{
  grid-template-columns:minmax(0,.88fr) minmax(620px,1.12fr);
}
.project-case-dialog[data-case-mode="deep"] .case-dialog-media{display:block}
.project-case-dialog .case-dialog-content{
  display:flex;
  flex-direction:column;
  overflow:auto;
  padding:clamp(1.4rem,2.6vw,2.8rem) clamp(1.6rem,3vw,3.3rem);
}
.project-case-dialog .case-dialog-heading{
  max-width:760px;
}
.project-case-dialog .case-dialog-heading h2{
  font-size:clamp(3rem,4.5vw,5.8rem);
}
.project-case-dialog .case-dialog-heading>p{
  max-width:62ch;
  font-size:1rem;
  line-height:1.68;
}

.case-story-progress{
  max-width:800px;
  margin:1.35rem 0 0;
}
.case-story-progress-line{
  height:2px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(129,149,189,.12);
}
.case-story-progress-line i{
  display:block;
  width:16.66%;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#00f5ff,#7890ff,#b45cff);
  transition:width .35s cubic-bezier(.2,.8,.2,1);
}
.case-story-progress-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:.5rem;
}
.case-story-progress-meta span,
.case-story-progress-meta small{
  color:#708099;
  font-size:.6rem;
  letter-spacing:.1em;
  font-weight:850;
}
.case-story-progress-meta span b{color:#f5f8ff;font-size:.76rem}
.case-story-progress-meta small{color:#8fa2ff}

.case-story-card{
  max-width:800px;
  margin-top:1.2rem;
  padding:0 0 1.15rem;
  border-bottom:1px solid rgba(127,148,188,.14);
}
.case-story-kicker{
  margin-bottom:.62rem;
  color:#00e7f3;
  font-size:.63rem;
  letter-spacing:.09em;
  font-weight:900;
  text-transform:uppercase;
}
.case-story-card h3{
  max-width:23ch;
  margin:0;
  color:#f8fbff;
  font-size:clamp(2rem,2.65vw,3.35rem);
  line-height:1.04;
  letter-spacing:-.045em;
  text-wrap:balance;
}
.case-story-card>p{
  max-width:58ch;
  margin:.95rem 0 0;
  color:#bac7d9;
  font-size:clamp(1rem,1.1vw,1.12rem);
  line-height:1.72;
}
.case-story-quote{
  max-width:58ch;
  margin:1rem 0 0;
  padding:.8rem 1rem;
  border-left:2px solid #7890ff;
  border-radius:0 14px 14px 0;
  background:rgba(85,114,255,.055);
  color:#e5ebf6;
  font-size:.92rem;
  line-height:1.6;
}
.case-story-details{
  max-width:680px;
  margin-top:1rem;
  border-top:1px solid rgba(126,147,187,.11);
}
.case-story-details summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.82rem 0 0;
  list-style:none;
  cursor:pointer;
  color:#9ba9be;
  font-size:.74rem;
  font-weight:800;
}
.case-story-details summary::-webkit-details-marker{display:none}
.case-story-details summary b{
  display:grid;
  place-items:center;
  width:26px;height:26px;
  border-radius:50%;
  background:rgba(120,144,255,.1);
  color:#91a2ff;
  font-size:1rem;
}
.case-story-details[open] summary b{transform:rotate(45deg)}
.case-story-detail-body{padding:.8rem 0 .15rem}
.case-story-detail-body ul{
  display:grid;gap:.55rem;margin:0;padding:0;list-style:none;
}
.case-story-detail-body li{
  position:relative;
  max-width:64ch;
  padding-left:1.08rem;
  color:#c9d3e2;
  font-size:.88rem;
  line-height:1.62;
}
.case-story-detail-body li::before{
  content:"";
  position:absolute;left:0;top:.62em;
  width:5px;height:5px;border-radius:50%;
  background:#00e7f3;
}
.case-story-facts{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.5rem;
}
.case-story-facts>div{
  padding:.72rem .76rem;
  border:1px solid rgba(125,148,190,.12);
  border-radius:12px;
  background:rgba(7,14,27,.42);
}
.case-story-facts span{
  display:block;color:#7890ff;font-size:.48rem;letter-spacing:.09em;font-weight:900;
}
.case-story-facts strong{
  display:block;margin-top:.32rem;color:#dbe4f1;font-size:.7rem;line-height:1.45;
}

.case-story-chapters{
  display:flex;
  gap:.35rem;
  max-width:800px;
  margin-top:1rem;
  overflow-x:auto;
  scrollbar-width:none;
}
.case-story-chapters::-webkit-scrollbar{display:none}
.case-story-chapter{
  flex:1 0 auto;
  min-width:92px;
  padding:.58rem .62rem;
  border:1px solid rgba(128,149,189,.11);
  border-radius:11px;
  background:rgba(255,255,255,.018);
  color:#6f7d94;
  text-align:left;
  cursor:pointer;
}
.case-story-chapter span{
  display:block;font-size:.48rem;font-weight:900;letter-spacing:.08em;
}
.case-story-chapter b{
  display:block;margin-top:.16rem;font-size:.56rem;letter-spacing:.04em;
}
.case-story-chapter.active{
  border-color:rgba(120,144,255,.38);
  background:linear-gradient(145deg,rgba(85,114,255,.1),rgba(139,92,246,.06));
  color:#f1f5fb;
}
.case-story-chapter.active span{color:#00e7f3}

.case-story-actions{
  display:flex;
  align-items:center;
  gap:.55rem;
  max-width:800px;
  margin-top:.85rem;
}
.case-story-actions button{
  min-height:42px;
  border-radius:12px;
  font:inherit;
  font-size:.72rem;
  font-weight:850;
  cursor:pointer;
}
.case-story-arrow{
  border:1px solid rgba(128,150,191,.15);
  background:rgba(255,255,255,.02);
  color:#a7b5c8;
  padding:.65rem .78rem;
}
.case-story-arrow:disabled{opacity:.32;cursor:default}
.case-story-next{
  border:0;
  background:linear-gradient(90deg,#00e7f3,#7890ff);
  color:#07101d;
  padding:.65rem 1rem;
}
.case-story-next span{margin-left:.35rem}

.project-case-dialog .case-dialog-disclaimer,
.project-case-dialog .case-dialog-actions{
  max-width:800px;
}
.project-case-dialog .case-dialog-disclaimer{
  margin-top:1rem;
}
.project-case-dialog .case-dialog-actions{
  margin-top:.75rem;
}

@media(max-width:1180px){
  .project-case-dialog .case-dialog-stage,
  .project-case-dialog[data-case-mode="deep"] .case-dialog-stage{
    grid-template-columns:minmax(0,.7fr) minmax(560px,1.3fr);
  }
}
@media(max-width:820px){
  .project-case-dialog .case-dialog-stage,
  .project-case-dialog[data-case-mode="deep"] .case-dialog-stage{
    grid-template-columns:1fr;
    grid-template-rows:minmax(210px,34vh) minmax(0,1fr);
  }
  .case-story-mode{display:none}
  .project-case-dialog .case-dialog-content{
    padding:1.1rem var(--mobile-gutter,16px) 1.2rem;
  }
  .project-case-dialog .case-dialog-heading h2{
    font-size:clamp(2.45rem,12vw,4rem);
  }
  .case-story-card h3{
    font-size:clamp(1.8rem,8.6vw,2.55rem);
  }
  .case-story-card>p{font-size:.92rem}
  .case-story-facts{grid-template-columns:1fr}
  .case-story-chapter{min-width:100px}
}
