html,.studio-story{height:100%;margin:0}
.studio-story{--ink:#172432;--sub:#536375;--line:#dbe2e9;--blue:#304bbc}
.studio-story.opening-active:not(:has(.opening.is-split,.opening.is-dissolving)) .experience{visibility:hidden}
.studio-story .experience{width:min(1120px,calc(100% - 2 * clamp(12px,4vw,50px)));height:100dvh;padding-block:env(safe-area-inset-top,0px) env(safe-area-inset-bottom,0px);grid-template-rows:auto minmax(0,1fr) auto}
.studio-story .mast{min-height:clamp(48px,7.5vh,64px);border-bottom:1px solid var(--line)}
.studio-story .wordmark{width:clamp(108px,12vw,140px)}
.studio-story .mast-actions{display:none}
.studio-story #skip-tour{display:inline-flex;align-items:center;min-height:44px;padding:4px;color:var(--sub);font-size:14px;font-weight:600;text-decoration:none}
.studio-story #skip-tour:hover{color:var(--blue);text-decoration:underline}
.studio-story .scene{padding:clamp(5px,2.4vh,22px) 4px 2px;gap:5px}
.studio-story .chapter-head{flex-direction:column;flex-wrap:nowrap;gap:3px}
.studio-story .chapter-counter{font-size:11px}
.studio-story .chapter-counter::before{content:"Vivienda de ejemplo";margin-right:5px;color:var(--sub);font-weight:550;letter-spacing:0}
.studio-story .chapter-head h1{font-size:clamp(29px,4vw,50px);line-height:1.09}
.studio-story #description{max-width:65ch;width:auto;font-size:clamp(14px,1.4vw,17px);line-height:1.28}
.studio-story .journey-nav{border:0;padding:clamp(6px,1.6vh,16px) 0}
.studio-story .journey-nav nav{gap:8px}
.studio-story .journey-nav button,.studio-story #enter-studio{min-height:44px;border-radius:8px;font-size:14px}
.studio-story .journey-nav .step-back{min-width:84px}
.studio-story .journey-nav .step-next{min-width:120px;background:#243649;border:1px solid #243649}
.studio-story .journey-nav .step-next:hover{background:#1a2a3d}
.studio-story #enter-studio{display:inline-flex;align-items:center;justify-content:center;padding:5px 15px;text-decoration:none;font-weight:700;color:white;background:var(--blue);border-color:var(--blue)}
.studio-story #enter-studio:hover{background:#203895}

@media(min-width:601px),(min-width:460px) and (max-height:350px){
  .studio-story .studio{--side:0%;grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr) var(--side)}
  .studio-story [data-step="3"] .studio{--side:31%}
  .studio-story [data-step="4"] .studio{--side:44%}
  .studio-story #context-dock{align-items:center}
  .studio-story #analysis-panel,.studio-story #schedule-panel{width:100%;min-width:0;padding:6px clamp(7px,1.8vw,22px);border:0;border-left:1px solid var(--line)}
  .studio-story #analysis-panel{grid-template-columns:1fr;grid-template-rows:clamp(100px,23vh,194px) auto auto;gap:12px;justify-items:center}
  .studio-story #design-detail{width:min(100%,248px);height:100%;max-height:none}
  .studio-story .specialty-caption{text-align:center;min-height:87px}
  .studio-story .specialty-caption h2{font-size:clamp(16px,2.1vw,23px)}
  .studio-story .specialty-caption p{font-size:13px}
  .studio-story .drawing-key{width:100%;border:0;padding:4px 0;grid-template-columns:repeat(2,max-content);justify-content:center;gap:5px 12px}
  .studio-story .drawing-key li{font-size:12px}
  .studio-story #schedule-panel{height:min(100%,270px);grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:7px}
  .studio-story .profile-block{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8px}
  .studio-story .profile-figure{display:block}
  .studio-story #profile-section{width:100%;height:44px}
  .studio-story .profile-key{display:none}
  .studio-story .program-status strong{font-size:14px}.studio-story .program-status span{font-size:12px}
  .studio-story #gantt{--labels:clamp(90px,11vw,115px);grid-template-rows:17px minmax(0,1fr)}
  .studio-story .g-head,.studio-story #g-scale,.studio-story .task-row>span{font-size:11px}
}
@media(max-width:459px),(max-width:600px) and (min-height:351px){
  .studio-story .studio{--dock:0px;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) var(--dock)}
  .studio-story [data-step="3"] .studio{--dock:clamp(108px,23vh,158px)}
  .studio-story [data-step="4"] .studio{--dock:clamp(130px,33vh,178px)}
  .studio-story #analysis-panel{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);grid-template-rows:minmax(0,1fr) auto;gap:4px 12px;padding:5px 0;border-top:1px solid var(--line)}
  .studio-story #design-detail{grid-area:1/1;max-height:115px}
  .studio-story .bim-label{font-size:21px}
  .studio-story .bim-leader{vector-effect:non-scaling-stroke;stroke-width:.85px}
  .studio-story .specialty-caption{grid-area:1/2;text-align:left}
  .studio-story .specialty-caption h2{font-size:16px}
  .studio-story .specialty-caption p{font-size:12px;margin-top:2px}
  .studio-story .drawing-key{grid-column:1/-1;display:flex;justify-content:center;flex-wrap:wrap;gap:2px 8px;padding:2px 0;border:0}
  .studio-story .drawing-key li{font-size:10px;gap:3px}
  .studio-story #schedule-panel{grid-template-columns:1fr;grid-template-rows:30px minmax(0,1fr);gap:2px;padding-top:2px}
  .studio-story .profile-block{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:center;gap:4px}
  .studio-story .profile-figure{display:block}
  .studio-story #profile-section{width:100%;height:29px}
  .studio-story .profile-key{display:none}
  .studio-story .program-status strong{font-size:12px}.studio-story .program-status span{font-size:11px}
  .studio-story #gantt{--labels:105px;grid-template-rows:13px minmax(0,1fr)}
  .studio-story .g-head,.studio-story #g-scale,.studio-story .task-row>span{font-size:10px}
  .studio-story #g-scale span{visibility:hidden}
  .studio-story #g-scale span:first-child,.studio-story #g-scale span:nth-child(4n){visibility:visible}
  .studio-story .journey-nav:has(#enter-studio:not([hidden])) .step-back{min-width:62px}
}
@media(max-height:430px) and (orientation:landscape){
  .studio-story .mast{min-height:44px}
  .studio-story .scene{padding:1px 2px;gap:1px}
  .studio-story .chapter-head{flex-flow:row wrap;justify-content:center;gap:1px 8px}
  .studio-story .chapter-head h1{font-size:24px}
  .studio-story #description{width:100%;font-size:13px}
  .studio-story .journey-nav{padding:3px 0}
  .studio-story #analysis-panel{grid-template-rows:minmax(40px,1fr) auto auto;gap:3px;max-height:100%}
  .studio-story #design-detail{max-height:88px}
  .studio-story .specialty-caption{min-height:0}
  .studio-story #specialty-sheet{font-size:10px;margin:0}
}
