/* Shared exhibition header: one brand-home target and one gallery-return target. */
.studio-folio-nav{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:64px;
  padding:0 max(18px,4vw);
  border-bottom:1px solid rgba(31,29,64,.12);
  background:rgba(255,255,255,.9);
  color:#211f2d;
  font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.studio-brand-link,.studio-return-link{
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:inherit;
  text-decoration:none;
}
.studio-brand-link{
  flex:0 1 auto;
  gap:10px;
  padding:0 2px;
  font-size:15px;
  font-weight:850;
  letter-spacing:.045em;
  white-space:nowrap;
}
.studio-brand-link img{display:block;flex:0 0 auto;width:28px;height:28px}
.studio-return-link{
  flex:0 0 auto;
  justify-content:center;
  padding:0 14px;
  border:1px solid rgba(47,39,102,.18);
  border-radius:999px;
  background:rgba(255,255,255,.72);
  font-size:13px;
  font-weight:750;
  letter-spacing:.01em;
  white-space:nowrap;
  box-shadow:none;
}
.studio-brand-link:focus-visible,.studio-return-link:focus-visible{
  outline:3px solid rgba(107,68,254,.42);
  outline-offset:3px;
}
@media (hover:hover){
  .studio-brand-link:hover{color:#5a39e9}
  .studio-return-link:hover{border-color:rgba(87,59,220,.34);background:#fff}
}
@media(max-width:560px){
  .studio-folio-nav{min-height:58px;padding:0 12px;gap:8px}
  .studio-brand-link{gap:7px;font-size:14px;letter-spacing:.02em}
  .studio-brand-link img{width:25px;height:25px}
  .studio-return-link{padding:0 10px;font-size:12px}
}
@media(max-width:340px){
  .studio-brand-link{font-size:13px}
  .studio-return-link{padding:0 8px;font-size:11px}
}
.enquiry-panel,.checkout-panel{min-width:0}
.engineer-contact{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:grid;
  gap:10px;
  margin-top:14px;
  padding:clamp(16px,2vw,24px);
  border:1px solid #c9d9ca;
  border-radius:18px;
  background:linear-gradient(108deg,#fbfcf7 16%,#eff5ea 70%,#ddeee1);
  color:#163e35;
  box-shadow:inset 0 1px 0 #fffc,0 3px 10px #29443208;
  scroll-margin-top:78px;
}
.engineer-contact::before{
  content:"";
  position:absolute;
  z-index:-1;
  width:200px;
  height:200px;
  right:-120px;
  top:-115px;
  border:1px solid #6e9b7f38;
  border-radius:50%;
  box-shadow:0 0 0 13px #eef4eb,0 0 0 14px #b9cfbe,0 0 0 27px #e7f1e6,0 0 0 28px #bdd3c2;
  opacity:.5;
  pointer-events:none;
}
.engineer-title{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  font:650 14px/1.4 system-ui,-apple-system,"PingFang SC",sans-serif;
  color:#335349;
}
.contact-symbol{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:9px;
  color:#fff;
  background:linear-gradient(150deg,#388664,#17634b);
}
.contact-symbol svg{width:20px;height:20px}
.engineer-details{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 7px}
.engineer-details strong{
  min-width:0;
  overflow-wrap:anywhere;
  color:#193e32;
  font:600 clamp(20px,2.2vw,29px)/1.25 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  letter-spacing:-.045em;
  -webkit-user-select:all;
  user-select:all;
}
.copy-wechat{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:5px;
  width:108px;
  max-width:100%;
  min-height:44px;
  padding:0 8px;
  border:1px solid #aac3b0;
  border-radius:12px;
  color:#244b3c;
  background:#fbfef9;
  font:650 13px/1.2 system-ui,-apple-system,"PingFang SC",sans-serif;
  white-space:nowrap;
  cursor:pointer;
}
.copy-wechat[hidden],.copy-wechat .copied-icon{display:none}
.copy-wechat svg{width:15px;height:15px}
.copy-wechat:focus-visible{outline:2px solid #286b52;outline-offset:3px}
@media(hover:hover){.copy-wechat:hover{background:#e8f3e8;border-color:#739d80}}
.copy-wechat:active{background:#ddebe0}
.engineer-contact[data-copy-state="copied"] .copy-wechat{background:#255d46;color:#fff;border-color:#255d46}
.engineer-contact[data-copy-state="copied"] .copy-icon{display:none}
.engineer-contact[data-copy-state="copied"] .copied-icon{display:inline}
.copy-feedback{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.engineer-contact[data-copy-state="manual"] .copy-feedback{
  position:static;width:auto;height:auto;overflow:visible;clip-path:none;color:#375748;font:500 13px/1.5 system-ui,sans-serif;
}

/* Shared selectors for the three switchable case pages. These rules load after
   page CSS so one source owns spacing, active state and touch target sizing. */
body:has(.studio > .menu) .studio > .menu,
body:has(.case > .tabs) .case > .tabs,
body:has(.case > .list) .case > .list{
  display:grid;
  align-content:start;
  gap:10px;
  overflow:visible;
  padding:26px;
  white-space:normal;
}
body:has(.studio > .menu) .studio > .menu h2,
body:has(.case > .tabs) .case > .tabs h2,
body:has(.case > .list) .case > .list h2{margin:0 0 4px}
body:has(.studio > .menu) .studio > .menu .tab,
body:has(.case > .tabs) .case > .tabs .tab,
body:has(.case > .list) .case > .list .item{
  display:grid;
  align-content:center;
  min-width:0;
  width:100%;
  min-height:68px;
  margin:0;
  padding:12px 15px;
  line-height:1.45;
  white-space:normal;
  transition:border-color .18s,background .18s,box-shadow .18s;
}
body:has(.studio > .menu) .studio > .menu .tab[aria-pressed="true"]{
  border-color:#bdcfc3;background:#fff;box-shadow:inset 3px 0 #d45a37,0 8px 20px #345d4512;
}
body:has(.case > .tabs) .case > .tabs .tab[aria-pressed="true"]{
  border-color:#9fcfc2;background:#fff;box-shadow:inset 3px 0 #168a82,0 8px 20px #2d745c12;
}
body:has(.case > .list) .case > .list .item[aria-pressed="true"]{
  border-color:#aacbe3;background:#fff;box-shadow:inset 3px 0 #2671c9,0 8px 20px #2f6b9912;
}
body:has(.studio > .menu) .studio > .menu .tab:focus-visible{outline:3px solid #d45a37;outline-offset:2px}
body:has(.case > .tabs) .case > .tabs .tab:focus-visible{outline:3px solid #168a82;outline-offset:2px}
body:has(.case > .list) .case > .list .item:focus-visible{outline:3px solid #2671c9;outline-offset:2px}
/* Business demo controls are created dynamically; reserve a full touch target. */
body:has(.studio > .menu) .studio .field input,
body:has(.studio > .menu) .studio .action{min-height:44px}

/* Tablet portrait: case pages should stop using desktop split layouts before
   the common 768/820/834px iPad widths. The homepage does not use this nav. */
@media(max-width:900px){
  body:has(.studio-folio-nav) .hero{grid-template-columns:1fr;gap:18px}
  body:has(.studio-folio-nav) .proof{grid-template-columns:1fr}
  body:has(.studio-folio-nav) .case{grid-template-columns:1fr}
  body:has(.demo) .demo,
  body:has(.demo) .phone{grid-template-columns:1fr}
  body:has(.demo) .cap{grid-template-columns:1fr}
  body:has(.studio > .menu) .studio{grid-template-columns:1fr}
  body:has(.studio > .menu) .studio > .menu,
  body:has(.case > .tabs) .case > .tabs,
  body:has(.case > .list) .case > .list{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    padding:18px;
    border-bottom:1px solid rgba(31,50,45,.12);
  }
  body:has(.studio > .menu) .studio > .menu h2,
  body:has(.case > .tabs) .case > .tabs h2,
  body:has(.case > .list) .case > .list h2{
    display:block;
    grid-column:1/-1;
    margin:0 0 2px;
    font-size:15px;
  }
  body:has(.studio > .menu) .studio > .menu .tab,
  body:has(.case > .tabs) .case > .tabs .tab,
  body:has(.case > .list) .case > .list .item{
    min-height:58px;
    padding:11px 14px;
  }
  body:has(.checkout-panel) .spread,
  body:has(.checkout-panel) .work{grid-template-columns:1fr}
  body:has(.checkout-panel) .flow{display:none}
  body:has(.case > .tabs) .journey{grid-template-columns:1fr 1fr}
  body:has(.case > .tabs) .cap{grid-template-columns:1fr}
  body:has(.case > .list) .flow{grid-template-columns:1fr;gap:12px}
  body:has(.case > .list) .node:not(:last-child)::after{content:'↓';right:auto;left:50%;top:auto;bottom:-20px}
  body:has(.video-picker) .capabilities{grid-template-columns:1fr}
  body:has(.video-picker) .reel-head{display:block}
  body:has(.video-picker) .reel-head p{margin-top:7px}
  body:has(.stage[data-fit]) .case .viewer{order:-1}
  body:has(.stage[data-fit]) .stage{min-height:0;flex:none;aspect-ratio:1312 / 992}
  body:has(.stage[data-fit]) .stage img,
  body:has(.stage[data-fit]) .stage[data-fit="contain"] img{position:absolute;inset:0;max-height:none;padding:0;object-fit:contain}
  body:has(.stage[data-fit]) .stage:has(img[src*="-mobile.webp"]){aspect-ratio:4 / 5}
  body:has(.stage[data-fit]) .stage:has(img[src*="-detail.webp"]){aspect-ratio:1}
}
@media(max-width:480px){
  body:has(.studio > .menu) .studio > .menu,
  body:has(.case > .tabs) .case > .tabs,
  body:has(.case > .list) .case > .list{gap:8px;padding:12px}
  body:has(.studio > .menu) .studio > .menu h2,
  body:has(.case > .tabs) .case > .tabs h2,
  body:has(.case > .list) .case > .list h2{margin-bottom:1px;font-size:14px}
  body:has(.studio > .menu) .studio > .menu .tab,
  body:has(.case > .tabs) .case > .tabs .tab,
  body:has(.case > .list) .case > .list .item{min-height:48px;padding:10px 12px;line-height:1.35}
  body:has(.studio > .menu) .studio > .menu .tab small,
  body:has(.case > .tabs) .case > .tabs .tab small,
  body:has(.case > .list) .case > .list .item small{display:none}
  body:has(.case > .tabs) .case > .tabs .tab:last-child{grid-column:1/-1}
}
@media(min-width:481px) and (max-width:900px){
  body:has(.studio > .menu) .services{grid-template-columns:1fr 1fr}
}
@media(min-width:421px) and (max-width:900px){
  body:has(.compare .after) .services,
  body:has(.compare .after) .steps{grid-template-columns:1fr 1fr}
}
@media(min-width:561px) and (max-width:900px){
  body:has(.video-stage) .abilities{grid-template-columns:repeat(2,1fr)}
}
