#cover.customDesign .heroCopy #coverRule{
  max-width:min(60ch,78vw);
  margin:clamp(10px,2vh,22px) auto 0;
  padding-top:clamp(8px,1.5vh,17px);
  border-top:1px solid color-mix(in srgb,var(--design-accent),transparent 60%);
  font-size:clamp(11px,1.15vw,16px);
  line-height:1.5;
}




@media(max-width:700px){


  #cover.customDesign .heroCopy #coverRule{max-width:76vw}
}
@media(max-height:500px){
  #cover.customDesign .heroCopy #coverRule{font-size:10px;line-height:1.25;margin-top:6px;padding-top:5px}
  #cover.customDesign .heroCopy #tagline,#cover.customDesign .heroCopy #heroDescription{margin-top:6px}

}



/* Portada: navegación, lectura y pie disponen de filas independientes. */
#cover.customDesign{
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  padding:clamp(12px,3vh,26px) clamp(12px,5vw,72px);
  gap:clamp(8px,1.7vh,18px);
}
#cover.customDesign .mast,#cover.customDesign .coverfoot{
  position:relative;inset:auto;height:auto;min-width:0;
  background:transparent;
}
#cover.customDesign .mast{padding:8px 14px}
#cover.customDesign .mast img{flex-shrink:0;width:clamp(48px,8vw,88px)}
#cover.customDesign .mast nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;min-width:0}
#cover.customDesign .coverfoot{padding:5px 12px;gap:10px}
#cover.customDesign .coverfoot span{background:none;padding:3px 0;overflow-wrap:anywhere}
#cover.customDesign .heroCopy{
  position:relative;inset:auto;transform:none;
  align-self:center;justify-self:center;width:min(100%,1060px);
  max-height:100%;overflow:auto;overscroll-behavior-y:auto;
  padding:clamp(10px,3.5vh,38px) clamp(12px,4vw,52px);
  background:transparent;
  text-align:var(--design-align);
  container-type:inline-size;
}
#cover.customDesign .heroCopy h1{
  margin:0;
  font-size:calc(clamp(32px,9cqi,112px) * var(--design-scale));
  line-height:1;
  letter-spacing:-.055em;
  text-wrap:balance;
}
#cover.customDesign .heroCopy #tagline{
  font-size:clamp(17px,3.5cqi,34px);
  line-height:1.22;
  margin:clamp(8px,2vh,19px) auto 0;
  max-width:36ch;
  text-wrap:balance;
}
#cover.customDesign .heroCopy #heroDescription,
#cover.customDesign .heroCopy #coverRule{
  box-sizing:border-box;
  width:auto;
  max-width:60ch;
  margin:clamp(7px,1.4vh,14px) auto 0;
  padding-inline:0;
  font-size:clamp(11px,1.75cqi,16px);
  line-height:1.52;
  overflow-wrap:anywhere;
}
#cover.customDesign .heroCopy #coverRule{padding-top:clamp(6px,1vh,12px)}
#cover.customDesign .heroCopy #explore{margin-top:clamp(9px,2vh,20px)}
#cover{z-index:5}


#mapScene #board{z-index:1}
#mapScene #home{z-index:4}
#mapScene .mapLogo{z-index:4}
@media(max-width:700px){
  #cover.customDesign .heroCopy h1{font-size:calc(clamp(30px,10cqi,70px) * var(--design-scale))}
  #cover.customDesign .mast{padding:4px 8px}
  #cover.customDesign .coverfoot{font-size:8px}


  #mapScene #board{left:29%}
}

/* Diffuse contrast over the photograph, without panels behind the copy. */
#cover.customDesign::after{
  content:"";
  display:block;
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:radial-gradient(ellipse at 50% 49%,color-mix(in srgb,var(--design-bg) 92%,transparent) 0%,color-mix(in srgb,var(--design-bg) 70%,transparent) 43%,transparent 76%);
}
#cover.customDesign .coverfoot{color:var(--design-color);text-shadow:0 1px 4px var(--design-bg)}
#cover.customDesign .heroCopy #coverRule{border-top:0;padding-top:0}
@media(max-width:700px){
  #cover.customDesign::after{
    background:radial-gradient(ellipse at 50% 49%,color-mix(in srgb,var(--design-bg) 94%,transparent) 10%,color-mix(in srgb,var(--design-bg) 74%,transparent) 54%,transparent 93%);
  }
}

/* Un eje central para el contenido y un margen común para la navegación. */
#cover.customDesign{
  --cover-gutter:clamp(16px,5.2vw,72px);
  padding-inline:var(--cover-gutter);
}
#cover.customDesign .mast,#cover.customDesign .coverfoot{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:center;
  padding-inline:0;
}
#cover.customDesign .mast nav,#cover.customDesign .coverfoot span:last-child{
  justify-self:end;
  text-align:right;
}
#cover.customDesign .mast img{display:block;justify-self:start}
#cover.customDesign .heroCopy{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
#cover.customDesign .heroCopy > :is(h1,p){margin-inline:auto}
#cover.customDesign .heroCopy #explore{margin-inline:auto;justify-content:center}
#cover.customDesign .coverfoot span{font-weight:600;text-shadow:0 0 5px var(--design-bg),0 0 11px var(--design-bg)}
#cover.customDesign::after{
  background:
    linear-gradient(180deg,color-mix(in srgb,var(--design-bg) 76%,transparent),transparent 20%,transparent 80%,color-mix(in srgb,var(--design-bg) 84%,transparent)),
    radial-gradient(ellipse at 50% 50%,color-mix(in srgb,var(--design-bg) 98%,transparent) 0%,color-mix(in srgb,var(--design-bg) 94%,transparent) 44%,transparent 81%);
}
@media(max-width:700px){
  #cover.customDesign .mast{column-gap:8px}
  #cover.customDesign .coverfoot{line-height:1.4;column-gap:6px}
  #cover.customDesign::after{
    background:
      linear-gradient(180deg,color-mix(in srgb,var(--design-bg) 80%,transparent),transparent 24%,transparent 76%,color-mix(in srgb,var(--design-bg) 88%,transparent)),
      radial-gradient(ellipse at center,color-mix(in srgb,var(--design-bg) 98%,transparent) 36%,color-mix(in srgb,var(--design-bg) 88%,transparent) 57%,transparent 94%);
  }
}


/* The foil falls out of the stage at full opacity after the cards clear it. */
#stage.unsealing #pack,#stage.unsealing .insidePack{animation:none}
#stage.unsealing{overflow:visible}
#stage.dealt{overflow:clip}
@media(prefers-reduced-motion:reduce){
  #stage.unsealing .rip{animation:none}
}


/* Panoramas crossfade beneath the original map geometry and controls. */
#mapScene.customDesign::before{display:none}
#atlasLandscapes{position:absolute;inset:0;z-index:0;pointer-events:none}
.atlasLandscape{position:absolute;inset:0;opacity:0;background:var(--design-bg,#262626)}
.atlasLandscape img{display:block;width:100%;height:100%;object-fit:cover}
#atlasLandscapes::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#151a16df 0%,#171c1740 53%,#18201888 100%),linear-gradient(0deg,#14191578,transparent 48%)}
.atlasTerritory{
  position:absolute;z-index:1;left:6%;top:46%;max-width:38%;pointer-events:none;
  color:#f2f2e9;font:400 clamp(25px,4vw,60px)/1.04 Aileron,sans-serif;
  letter-spacing:-.04em;text-wrap:balance;text-shadow:0 2px 14px #121611b3;
}
#mapScene #board{z-index:2}
#mapScene #home,#mapScene .mapLogo{z-index:4}
@media(max-width:700px){
  .atlasTerritory{top:auto;bottom:15%;left:5%;max-width:47%;font-size:clamp(19px,5.5vw,32px)}
  #atlasLandscapes::after{background:linear-gradient(90deg,#151a16cb,#171c1750),linear-gradient(0deg,#14191580,transparent 56%)}
}

/* Keep luminance changes gradual during quick scroll reversals. */
#mapScene.customDesign::before{
  display:block;
  background:var(--design-image) center / cover no-repeat,var(--design-bg);
  opacity:1;
}
.atlasLandscape{transition:opacity .85s ease-out}
#atlasLandscapes::after{background:linear-gradient(90deg,#171c18e0,#151a1770 58%,#151a1790)}
#collection.customDesign{
  background:linear-gradient(90deg,#20241feb,#20241fcb 55%,#20241fea),
    var(--collection-landscape,var(--design-image)) var(--collection-landscape-position,center) / cover no-repeat,var(--design-bg);
}
#call.show .callName,#call.show .callState{
  animation:none;opacity:1;transition:opacity .28s ease-out;filter:none
}
#call.anchored .callName,#call.anchored .callState{transition:none}
@media(prefers-reduced-motion:reduce){
  .atlasLandscape{transition:opacity .65s linear}
  #call.show path,#call.show rect{animation:none;stroke-dashoffset:0;transform:none}
}

#projectPresentation{background:#e7e9df;color:#262626}
.presentationSection{padding:clamp(18px,4vw,44px) 5%;border-bottom:1px solid #75874c38}
.presentationSection>h3{font:800 clamp(25px,4vw,48px)/1.04 Aileron;letter-spacing:-.042em;margin:0 0 16px;color:#39472c}
.presentationGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:14px 24px}
.presentationEntry h4{font:800 16px Aileron;margin:0 0 5px}
#project .presentationEntry p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.presentationFormat{display:grid;grid-template-columns:minmax(0,31%) minmax(0,1fr);margin:0 0 14px;background:#f4f4eb;border:1px solid #75874c48;overflow:hidden;border-radius:8px}
.presentationFormat>img{width:100%;height:100%;min-height:0;max-height:420px;object-fit:cover}
.presentationFormatCopy{display:grid;gap:12px;padding:clamp(13px,3vw,24px)}
.presentationFormatCopy>h4{font:800 clamp(22px,3.4vw,34px)/1 Aileron;margin:0;color:#39472c}
#project .presentationSubtitle{font-weight:600;color:#526144;margin:-6px 0 0}
@media(max-width:580px){
  .presentationFormat{grid-template-columns:1fr}
  .presentationFormat>img{height:158px;object-position:center 44%}
}

/* Equal space above and below the stage keeps its centre on the viewport centre. */
#collection{
  display:grid;
  grid-template-rows:minmax(0,1fr) auto minmax(0,1fr);
  grid-template-columns:minmax(0,1fr);
  padding:0 clamp(44px,6vw,95px);
  overflow:hidden;
}
.collectionHeading{
  grid-row:1;align-self:end;max-height:100%;overflow:auto;
  padding:8px 0 clamp(5px,1.6vh,16px);
}
#collection .collectionHeading h2{margin:5px auto 0}
#collection .collectionHeading #regionDescription{margin:4px auto 0}
#collection #stage{
  grid-row:2;width:100%;height:min(50svh,360px);min-height:0;
  place-items:center;align-self:center;
}
#collection #stage:has(#pack:not([hidden])){
  height:min(56svh,360px);
}
#collection #cards{
  width:100%;max-height:100%;align-content:center;
}
#collection #stage.dealt #cards{
  overflow:auto;align-content:safe center;padding:8px 4px;
}
#collection #hint{grid-row:3;align-self:start;padding-top:8px}
@media(max-height:520px){
  #collection .collectionHeading h2{font-size:clamp(20px,6vh,34px)}
  #collection #pack,#collection .insidePack{width:min(30vw,145px);height:min(48svh,207px)}
}

.destinationPhoto{position:absolute;inset:0;opacity:0;z-index:1;background:radial-gradient(ellipse at 66% 34%,#394338,#222620 70%);transition:opacity .85s ease-out}
.destinationPhoto img{width:100%;height:100%;object-fit:cover}
#atlasLandscapes::after{z-index:2}
.photoCredit{position:absolute;bottom:12px;right:12px;z-index:4;padding:3px 6px;border-radius:4px;background:#262626db;color:#f1f2e9;font-size:10px}
.photoCredit:empty{display:none}
.photoCredit a{color:inherit}

#cover.customDesign .heroCopy{width:min(100%,var(--site-cover-width,1060px))}
#cover.customDesign::after{
  background:
    linear-gradient(180deg,color-mix(in srgb,var(--design-bg) 76%,transparent),transparent 20%,transparent 80%,color-mix(in srgb,var(--design-bg) 84%,transparent)),
    radial-gradient(ellipse at center,color-mix(in srgb,var(--design-bg) var(--site-cover-shade,94%),transparent) 38%,transparent 83%);
}
#atlasLandscapes::after{background:linear-gradient(90deg,color-mix(in srgb,#151a16 var(--site-map-shade,70%),transparent),#151a1740 58%,#151a1760)}
#mapScene .region{stroke:var(--site-map-edge,#849274)}
#mapScene .hot:not(.soon) .ring{stroke:var(--site-marker-color,#cbff97)}
#collection .card{width:var(--site-card-width,176px);border-color:var(--site-card-border,#75874c);background:var(--site-card-background,#e3e3df);color:var(--site-card-ink,#262626);border-radius:var(--site-card-round,11px)}
#studioCanvas .studioCast button{border-color:var(--site-card-border);background:var(--site-card-background);color:var(--site-card-ink);border-radius:var(--site-card-round)}
#studioCanvas .studioMapLocked{stroke:var(--site-map-edge)}
#rail.gentleMotion #call.show path,#rail.gentleMotion #call.show rect{animation:none;stroke-dashoffset:0;transform:none}
#rail.gentleMotion .dealt .card,#rail.gentleMotion #stage.unsealing .rip{animation:none}
@media(max-width:700px){
  #collection .card{width:min(var(--site-card-width,176px),35vw)}
}

/* The title and the animation are separate clipping areas. */
#collection #stage,
#collection #stage:has(#pack:not([hidden])),
#collection #stage.unsealing{
  height:min(54svh,390px);
  overflow:clip;
  isolation:isolate;
}
#collection #cards,
#collection #stage.dealt #cards{
  box-sizing:border-box;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  align-content:safe center;
  width:100%;
  height:100%;
  max-height:100%;
  padding:8px 4px;
  scrollbar-width:none;
}
#collection #cards[hidden]{display:none!important}
#collection #cards .card{max-width:calc(100% - 8px);animation:none}
@media(max-height:650px){
  #collection #cards .art{height:clamp(42px,14svh,105px)}
  #collection #cards .card h3{font-size:clamp(17px,4svh,25px)}
}

/* Give the pack the viewport, while titles and navigation stay above it. */
#collection #stage.unsealing{overflow:visible}
#collection .collectionHeading,#collection #back{position:relative;z-index:4}
#collection #back{position:absolute}
#collection #cards .card{
  aspect-ratio:2 / 3;
  padding:clamp(5px,1vw,10px);
  display:flex;flex-direction:column;
}
#collection #cards .cardtop{flex:0 0 auto;width:100%}
#collection #cards .art{flex:1 1 0;min-height:42px;width:100%}
#collection #cards .card h3,#collection #cards .card p{flex:0 0 auto}
#mapScene.historicBackdrop.customDesign::before{
  background:var(--design-image,url(assets/cordillera.webp)) center / cover no-repeat,#262626;
  animation:landscapeDrift 24s ease-in-out infinite alternate;
}
@keyframes landscapeDrift{
  from{transform:scale(1.02) translateX(-.3%)}
  to{transform:scale(1.065) translateX(.45%)}
}
.gentleMotion #mapScene.historicBackdrop.customDesign::before{animation:none}
@media(prefers-reduced-motion:reduce){
  #mapScene.historicBackdrop.customDesign::before{animation:none}
}
#editor[data-editor-mode=basic] #studioActions .minor:first-child{background:#c9d9ad;color:#252d1e}
#editor #studioActions{flex-wrap:wrap;justify-content:flex-end}
#project #brandBlocks,#studioCanvas .studioSheet:not(.mobile) .sheetBlocks{
  grid-template-columns:repeat(var(--site-block-columns,3),minmax(0,1fr));
  gap:var(--site-block-gap,18px);
}
@media(max-width:620px){
  #project #brandBlocks,#studioCanvas .studioSheet:not(.mobile) .sheetBlocks{grid-template-columns:1fr}
}

.nearbyHotspot{
  position:absolute;left:5%;bottom:13%;z-index:4;
  padding:9px 14px;border:1px solid #8d9c76;border-radius:99px;
  background:#262626;color:#eef3e6;font:600 clamp(10px,1vw,13px) Poppins,sans-serif;
}
.nearbyHotspot[hidden]{display:none}
#spots .hot.soon .ring{stroke:#b2bd9c}
#spots .hot.soon .core{fill:#d2ddbc}

/* Basic mode is a focused management panel with no live canvas. */
#editor[data-editor-mode=basic] .studioWorkspace,
#editor[data-editor-mode=basic] .advancedOnly{display:none}
#editor[data-editor-mode=basic] .studioBody{
  display:grid;grid-template-columns:clamp(150px,19vw,230px) minmax(0,1fr);grid-template-rows:minmax(0,1fr)
}
#editor[data-editor-mode=basic] .studioNav{
  grid-column:auto;background:#eef0e6;padding:clamp(10px,2vw,22px);
}
#editor[data-editor-mode=basic] #editTabs{display:grid;margin-top:12px}
#editor[data-editor-mode=basic] .studioSlide{font-size:13px;padding:13px}
#editor[data-editor-mode=basic] .studioInspector{
  background:#f4f5ef;border:0;padding:clamp(14px,3vw,42px);overflow:auto;
}
#editor[data-editor-mode=basic] .studioInspector>strong{display:none}
#editor[data-editor-mode=basic] #editFields{
  width:min(100%,780px);margin:0 auto;padding:clamp(15px,3vw,34px);
  border:1px solid #d6dccd;border-radius:14px;background:#fff;
}
.basicHeading{font:800 clamp(24px,4vw,42px)/1.1 Aileron;color:#262626;margin:0 0 16px}
.djRoster{margin-top:18px}
.djRoster>header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.djRoster>header h3{font:800 clamp(18px,2vw,26px)/1.06 Aileron;overflow-wrap:anywhere}
.djRoster>header button{white-space:nowrap}
#editor[data-editor-mode=basic] .djEntry{padding:12px;background:#fafbf7}
#editor[data-editor-mode=basic] .djEntry[open]{border-color:#75874c}
#editor[data-editor-mode=basic] .basicDJExtra,#editor[data-editor-mode=basic] .basicZoneDetails{background:#f1f3ea}
@media(max-width:620px){
  #editor[data-editor-mode=basic] .studioBody{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
  #editor[data-editor-mode=basic] .studioNav>strong{display:none}
  #editor[data-editor-mode=basic] #editTabs{display:flex;margin:0}
}

/* The second opening scene occupies its own viewport before the atlas. */
#atlas{height:760svh}
.projectIntro{
  position:absolute;inset:0;z-index:4;overflow:auto;
  background:#262626;color:#f1f2e8;
  overscroll-behavior-y:auto;
  --intro-reveal:0;
}
.introGrid{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.88fr);
  align-items:center;gap:clamp(22px,6vw,96px);
  min-height:100%;max-width:1440px;margin:auto;
  padding:clamp(24px,6vh,78px) clamp(18px,8vw,126px);
}
.introCopy{
  opacity:calc(.4 + var(--intro-reveal) * .6);
  transform:translateY(calc((1 - var(--intro-reveal)) * 20px));
}
.introCopy h2{
  max-width:10ch;margin:0 0 clamp(12px,3vh,30px);
  color:#dce7c6;font:800 clamp(38px,6.8vw,112px)/.9 Aileron,sans-serif;
  letter-spacing:-.06em;text-wrap:balance;overflow-wrap:anywhere;
}
.introCopy p{font:400 clamp(13px,1.5vw,20px)/1.6 Poppins,sans-serif;max-width:46ch;white-space:pre-wrap;overflow-wrap:anywhere}
.introCopy p+p{margin-top:10px;color:#c5cbbb}
.introActions{display:flex;flex-wrap:wrap;gap:9px;margin-top:clamp(13px,3vh,28px)}
.introActions button{
  border:1px solid #a4b084;border-radius:99px;color:#e8eddc;background:transparent;
  padding:10px 15px;font:600 12px Poppins,sans-serif;transition:background-color .2s,color .2s;
}
.introActions button:last-child,.introActions button:hover{background:#c5d3aa;color:#262626}
.introPhoto{
  width:100%;height:min(62svh,590px);object-fit:cover;object-position:center 60%;
  border-radius:6px 52px 6px 6px;border:1px solid #a4b08460;
  transform:translateY(calc((1 - var(--intro-reveal)) * 13px));
}
#project .projectCloseBar{
  position:sticky;top:0;z-index:8;display:flex;justify-content:flex-end;
  height:0;padding-inline:clamp(8px,2vw,19px);pointer-events:none;
}
#project .projectCloseBar .dismiss{
  position:relative;inset:auto;top:8px;flex:none;display:grid;place-items:center;
  width:42px;height:42px;margin:0;padding:0;line-height:1;pointer-events:auto;
  border:1px solid #eef2e2;color:#f7f8f2;background:#262626;
  box-shadow:0 4px 16px #1115;
}
#project .projectCloseBar .dismiss:hover{background:#47563a}
#project .about-hero{padding-right:max(54px,6%)}
#projectTeam{scroll-margin-top:55px}
.teamGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px;margin-top:14px}
.teamMember{padding:13px;border:1px solid #75874c48;border-radius:8px;background:#f4f5ed;overflow-wrap:anywhere}
.teamMember h4{font:800 20px Aileron;margin:0 0 4px;color:#39472c}
#project .teamRole,#project .teamCredit{color:#4c5a40;font-weight:600}
#project .teamCredit{margin-top:14px}
@media(max-width:700px){
  .introGrid{grid-template-columns:1fr;align-content:center;gap:14px}
  .introCopy h2{font-size:clamp(36px,10vw,66px)}
  .introPhoto{height:min(33svh,260px);object-position:center 55%;order:-1}
}
@media(max-height:520px){
  .introGrid{padding-block:14px}
  .introPhoto{max-height:32svh}
  .introCopy h2{font-size:clamp(28px,7vw,52px)}
}
@media(prefers-reduced-motion:reduce){
  .introPhoto,.introCopy{transform:none;opacity:1}
}

/* Opening sequence and overlays */
#project[open],#detail[open]{animation:none}
#project{padding-bottom:0}
#project #brandBlocks:empty,#project [hidden]{display:none!important}
.introGrid{min-height:calc(100% + clamp(48px,11svh,125px));padding-bottom:clamp(32px,8svh,100px)}
.introCopy,.introPhoto{opacity:1;transform:none}
.introCopy>*{opacity:0}
.introVisible .introCopy>*{animation:introReveal .54s cubic-bezier(.2,.75,.28,1) both}
.introVisible .introCopy>*:nth-child(2){animation-delay:.08s}
.introVisible .introCopy>*:nth-child(3){animation-delay:.16s}
.introVisible .introCopy>*:nth-child(4){animation-delay:.23s}
@keyframes introReveal{from{opacity:0;transform:translateX(-18px)}to{opacity:1;transform:none}}
.introActions button:first-child{background:#c5d3aa;color:#262626}
.introActions button:last-child{background:transparent;color:#e8eddc}
.introActions button:last-child:hover{background:#43503a}
.introActions{margin-top:clamp(26px,5vh,60px)}
.brandChannels{display:flex;flex-wrap:wrap;gap:8px}
.brandChannels a{padding:8px 13px;border-radius:99px;border:1px solid #75874c;color:#37452d;font-size:13px;text-decoration:none}
.brandChannels a:hover{background:#d5deca}

/* Destination clock, source and navigation */
#atlasGuide{
  position:absolute;z-index:3;left:5%;top:17%;width:min(37%,430px);
  max-height:70%;overflow:auto;color:#f1f2e8;padding:14px 12px 14px 0;
  scrollbar-width:thin;overscroll-behavior:contain;
}
#atlasGuide[hidden]{display:none}
.atlasTitleWindow{position:relative;overflow:hidden;display:grid;align-items:center;min-height:clamp(52px,9vh,87px)}
#atlasGuide .atlasTerritory,.atlasOutgoing{
  position:relative;inset:auto;margin:0;max-width:100%;color:#f1f2e8;
  font:400 clamp(25px,4vw,61px)/1.05 Aileron;overflow-wrap:anywhere;text-shadow:0 1px 11px #141914;
}
.atlasOutgoing{position:absolute;inset:0;pointer-events:none}
.atlasSearching{filter:blur(2.3px);transition:filter .22s}
#atlasGuide .atlasRelease{display:inline-block;background:#46573a;padding:6px 10px;border-radius:4px;margin:0 0 10px;font-size:12px}
#atlasGuide .atlasRelease[hidden]{display:none}
.atlasPlaceStory{display:flow-root;margin:8px 0;font-size:clamp(11px,1.1vw,15px);line-height:1.5;text-shadow:0 1px 9px #101610}
.atlasThumb{float:left;width:min(33%,105px);aspect-ratio:1.26;object-fit:cover;margin:0 9px 5px 0;border-radius:5px;border:1px solid #c8d2b454}
.atlasSource{font-size:10px;color:#d0ddb7}
.atlasControls{display:flex;gap:7px;margin:12px 0}
#atlasGuide button,#atlasGuide summary{
  padding:7px 11px;border:1px solid #a9bc886e;border-radius:20px;background:#272c24e8;
  color:#e6eedb;font:600 11px Poppins,sans-serif;cursor:pointer;
}
#atlasGuide button:hover{background:#586b46}
#atlasGuide button:disabled{opacity:.45;cursor:default}
#atlasGuide details{margin-bottom:7px}
#atlasGuide summary{display:inline-block}
.atlasDestinations{display:grid;gap:4px;max-height:130px;overflow:auto;margin:5px 0;padding:0;list-style:none}
.atlasDestinations button{text-align:left}
@media(max-width:700px){
  #atlasGuide{left:5%;top:auto;bottom:9%;width:min(49%,250px);max-height:57%;padding:6px 0}
  #atlasGuide .atlasTerritory,.atlasOutgoing{font-size:clamp(21px,5vw,33px)}
  .atlasTitleWindow{min-height:37px}
  .atlasThumb{width:30%}
  .atlasControls{gap:4px;margin:6px 0}
  #atlasGuide button,#atlasGuide summary{padding:5px 7px;font-size:10px}
  #atlasGuide .atlasRelease{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  .introCopy>*{opacity:1;animation:none!important}
  .atlasSearching{filter:none}
}
.gentleMotion .introCopy>*{opacity:1;animation:none}

/* The introduction scrolls as a complete panel; the next scene only starts at its edge. */
.projectIntro{overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#75874c55 transparent}
#cover .heroCopy{overscroll-behavior-y:contain}
.introGrid{min-height:100%;padding-bottom:clamp(22px,5svh,64px)}
.introMore{
  max-width:1440px;margin:auto;padding:clamp(24px,6vh,72px) clamp(18px,8vw,126px) clamp(38px,8vh,106px);
  border-top:1px solid #a4b08444;
}
.introMore h2{font:800 clamp(27px,4.6vw,61px)/1 Aileron;color:#dce7c6;letter-spacing:-.045em;margin:0 0 11px}
.introMore>p{font:400 clamp(13px,1.3vw,17px)/1.55 Poppins;color:#d3daca;max-width:70ch}
.introFormatGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,2vw,21px);margin:20px 0}
.introFormatGrid article{background:#30342c;border:1px solid #a4b08438;border-radius:8px;overflow:hidden}
.introFormatGrid img{display:block;width:100%;height:clamp(90px,17vw,185px);object-fit:cover}
.introFormatGrid h3{font:800 clamp(17px,2vw,24px) Aileron;color:#e2ebd3;margin:12px 12px 5px}
.introFormatGrid p{font:400 12px/1.5 Poppins;color:#d3daca;padding:0 12px 14px;overflow-wrap:anywhere}
.introMore .introActions{margin-top:24px}
#atlasGuide{padding-right:clamp(7px,1.2vw,17px)}
.atlasControls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;gap:7px;width:min(100%,365px)}
#atlasGuide button,#atlasGuide summary{
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  background:#263023db;border-color:#aebc914f;color:#edf3df;min-height:36px;
  border-radius:7px;transition:background-color .16s,border-color .16s,box-shadow .16s;
}
#atlasGuide button:not(:disabled):hover,#atlasGuide summary:hover{
  background:#46583c;border-color:#b2c492;box-shadow:0 3px 10px #101c1055;
}
#atlasGuide button:focus-visible,#atlasGuide summary:focus-visible{
  outline:2px solid #c5d5ae;outline-offset:2px;
}
#atlasGuide [data-nav=random]{background:#c7d4ad;color:#252c20}
#atlasGuide [data-nav=random]:not(:disabled):hover{background:#dbe7c3}
@media(max-width:700px){
  .introFormatGrid{grid-template-columns:1fr}
  .atlasControls{grid-template-columns:1fr 1fr auto}
  .atlasControls span{display:none}
  #atlasGuide button,#atlasGuide summary{min-height:32px}
}
#cover{touch-action:pinch-zoom}

/* One project entry above the cover, introduction and atlas. */
#projectOpen{
  position:absolute;z-index:20;
  top:clamp(22px,6.3svh,44px);right:clamp(16px,5.2vw,72px);
  min-height:40px;background:#f3f3eefa;
  transition:background-color .18s,color .18s,border-color .18s;
}
#projectOpen:hover{background:#262626;color:#fff;border-color:#b2c492}
#projectOpen:focus-visible,#home:focus-visible{outline:2px solid #b9cf9d;outline-offset:3px}
#cover .mast nav{margin-right:145px}
#projectIntro{scroll-padding-top:64px}
.introGrid{padding-top:clamp(62px,10svh,95px)}
.introActions #introMap{background:#c7d4ad;color:#252c20}
.introActions #introMap:hover{background:#e0ebcd;color:#161d14}
#atlasGuide{
  width:min(40%,470px);scrollbar-width:thin;
  scrollbar-color:#aebc9170 transparent;
}
.atlasPlaceStory{margin-block:7px 5px}
.atlasDescription,.atlasAnticipation{margin:0;max-width:54ch;overflow-wrap:anywhere}
.atlasAnticipation{margin-top:8px;color:#e2efcc}
.atlasSource{display:inline-block;font-size:11px}
.atlasSource[hidden]{display:none}
#atlasGuide .atlasControls{
  grid-template-columns:repeat(2,minmax(0,1fr)) auto;
  width:min(100%,430px);gap:7px;margin-block:10px 8px;
}
#atlasGuide button,#atlasGuide summary{
  min-height:40px;border-radius:999px;
  background:#252c23f5;border-color:#aebc9190;
}
#atlasGuide [data-nav=random]{background:#c7d4ad;color:#252c20}
#atlasGuide .atlasDestinations button{width:100%;justify-content:flex-start}
#atlasGuide details[open] summary{margin-bottom:4px}
@media(max-width:700px){
  #atlasGuide{width:min(49%,270px)}
  #atlasGuide .atlasControls{grid-template-columns:44px 44px auto;gap:4px}
  #atlasGuide button,#atlasGuide summary{min-height:38px}
}
@media(prefers-reduced-motion:reduce){
  #projectOpen,#atlasGuide button,#atlasGuide summary{transition:none}
}

/* Keep the step controls aligned and give the destination directory its own row. */
#atlasGuide{container-type:inline-size}
#atlasGuide .atlasControls{
  display:grid;grid-template-columns:minmax(0,1fr);
  width:min(100%,360px);gap:8px;margin-top:14px;
}
.atlasSequence,.atlasExplore{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start;
}
#atlasGuide .atlasControls :is(button,summary){
  display:flex;align-items:center;justify-content:center;gap:7px;
  width:100%;min-height:41px;padding:6px 8px;
  text-align:center;line-height:1.2;
}
#atlasGuide .atlasControls span{display:inline}
#atlasGuide .atlasIcon{font-size:16px;line-height:1}
#atlasGuide .atlasSequence button{background:#c7d4ad;color:#252c20;border-color:#c7d4ad}
#atlasGuide .atlasSequence button:not(:disabled):hover{background:#e1ebd1;color:#1f271b}
#atlasGuide .atlasSequence button:disabled{background:#252c23;color:#e6eedb}
#atlasGuide .atlasExplore button{background:#252c23f5;color:#e6eedb}
#atlasGuide .atlasExplore summary:hover,#atlasGuide .atlasExplore button:not(:disabled):hover{
  background:#46583c;color:#f1f5e8;
}
.atlasExplore details{grid-column:1/-1;grid-row:1}
#atlasGuide .atlasExplore summary{width:calc((100% - 8px)/2);list-style:none}
.atlasExplore summary::-webkit-details-marker{display:none}
.atlasExplore [data-nav=random]{grid-column:2;grid-row:1;z-index:1}
.atlasExplore .atlasDestinations{width:100%}
@container (max-width:185px){
  #atlasGuide .atlasControls :is(button,summary){font-size:10px;gap:3px;padding-inline:4px}
  #atlasGuide .atlasIcon{font-size:13px}
}

/* Reserve a shared footer area for the logo and its clear space. */
#mapScene{
  --map-logo-bottom:clamp(12px,4svh,30px);
  --map-logo-height:clamp(35px,9svh,61px);
  --map-logo-gap:clamp(16px,4svh,30px);
}
#mapScene .mapLogo{
  display:block;bottom:var(--map-logo-bottom);left:5%;
  height:var(--map-logo-height);width:auto;max-width:90px;
  object-fit:contain;object-position:left bottom;opacity:.9;pointer-events:none;
}
#atlasGuide{
  top:clamp(82px,17svh,125px);
  bottom:calc(var(--map-logo-bottom) + var(--map-logo-height) + var(--map-logo-gap));
  display:grid;grid-template-rows:minmax(0,1fr) auto;align-items:stretch;
  width:min(41%,480px);max-height:none;overflow:visible;padding:0;
}
#atlasGuide .atlasReading{
  min-height:0;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain;
  scrollbar-color:#aebc9180 transparent;padding:0 12px 12px 0;
}
#atlasGuide .atlasReading:focus-visible{outline:1px solid #b7c7a0;outline-offset:3px}
#atlasGuide .atlasTitleWindow{min-height:0;margin:0 0 9px;padding:2px 0 5px}
#atlasGuide .atlasOutgoing{display:none}
#atlasGuide .atlasControls{grid-row:2;position:relative;margin:0;padding-top:8px}
#atlasGuide .atlasExplore [data-nav=random]{grid-column:auto;grid-row:auto}
#atlasGuide :is(.atlasReading,.atlasDirectory){grid-area:1/1}
#atlasGuide :is(.atlasReading,.atlasDirectory)[hidden]{display:none}
#atlasGuide .atlasDirectory{
  align-self:stretch;display:grid;grid-template-rows:auto minmax(0,1fr);
  width:min(100%,400px);min-height:0;margin-bottom:8px;
  background:#252924;color:#f3f5ea;border:1px solid #aebc9160;
  border-radius:13px;overflow:hidden;box-shadow:0 12px 35px #16191670;
}
.atlasDirectoryHeader{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  min-width:0;padding:7px clamp(8px,2vw,17px);border-bottom:1px solid #aebc9144;
}
.atlasDirectoryHeader h2{margin:0;font:700 clamp(16px,2.3vw,24px)/1.12 Aileron,sans-serif}
#atlasGuide [data-directory-close]{
  flex:none;width:36px;height:36px;min-height:0;padding:0;
  font:400 23px/1 Aileron,sans-serif;background:#343b2e;border-color:transparent;
}
#atlasGuide .atlasDestinations{
  display:block;width:auto;min-height:0;max-height:none;
  margin:0;padding:4px 9px 8px;
  scrollbar-width:thin;scrollbar-color:#9cab84a0 transparent;
  overscroll-behavior:contain;overflow:auto;
}
#atlasGuide .atlasDestinations li+li{border-top:1px solid #aebc9130}
#atlasGuide .atlasDestinations button{
  justify-content:space-between;gap:2px 8px;flex-wrap:wrap;
  width:100%;min-height:43px;padding:7px 9px;border-color:transparent;
  border-radius:5px;background:transparent;text-align:left;
  font-size:clamp(12px,1vw,14px);
}
#atlasGuide .atlasDestinations small{color:#c3cea9;font-size:10px;font-weight:400}
#atlasGuide .atlasDestinations button[aria-current=true],
#atlasGuide [data-directory-toggle][aria-expanded=true]{
  border-color:#85956b;background:#3c4932;
}
@container (max-width:180px){
  #atlasGuide .atlasDestinations{padding-inline:5px}
  #atlasGuide .atlasDestinations button{padding-inline:5px}
}
@media(max-width:700px){
  #mapScene{--map-logo-height:clamp(33px,7svh,48px)}
  #atlasGuide{top:clamp(60px,17svh,110px);width:min(49%,270px)}
  #atlasGuide .atlasReading{padding-inline-end:5px}
  #atlasGuide .atlasControls{gap:5px}
  #atlasGuide .atlasControls :is(button,summary){min-height:36px}
}

/* The atlas directory and its controls share the same charcoal and olive palette. */
#atlasGuide{
  --atlas-ink:#fff;
  --atlas-muted:#f0f3e9;
  --atlas-edge:#adbba265;
  --atlas-active:#9bac80;
  --atlas-control:rgb(22 25 23 / 64%);
  --atlas-hover:#414b35f2;
}
#atlasGuide .atlasDirectory{
  background:linear-gradient(120deg,rgb(15 20 17 / 53%),rgb(15 20 17 / 61%));
  color:var(--atlas-ink);
  border-color:var(--atlas-edge);
  box-shadow:0 10px 28px #171a1540;
  backdrop-filter:blur(2px);
}
#atlasGuide .atlasDirectoryHeader h2,
#atlasGuide .atlasDestinations button,
#atlasGuide .atlasControls button{
  text-shadow:0 1px 3px #0d140e;
}
#atlasGuide .atlasDirectoryHeader,
#atlasGuide .atlasDestinations li+li{border-color:#adbba23b}
#atlasGuide .atlasDirectoryHeader h2{color:var(--atlas-ink)}
#atlasGuide .atlasControls button,
#atlasGuide [data-directory-close]{
  background:var(--atlas-control);
  color:var(--atlas-ink);
  border-color:var(--atlas-edge);
}
#atlasGuide .atlasControls button:not(:disabled):hover,
#atlasGuide .atlasDestinations button:hover,
#atlasGuide [data-directory-close]:hover{
  background:var(--atlas-hover);
  color:var(--atlas-ink);
  border-color:var(--atlas-active);
}
#atlasGuide .atlasControls button:disabled{
  background:#2626269c;
  color:#a9afa2;
  border-color:#adbba23b;
  opacity:1;
}
#atlasGuide .atlasDestinations small{color:var(--atlas-muted)}
#atlasGuide .atlasDestinations button[aria-current=true],
#atlasGuide .atlasControls [data-directory-toggle][aria-expanded=true]{
  background:rgb(117 135 76 / 29%);
  color:var(--atlas-ink);
  border-color:var(--atlas-active);
}
#atlasGuide .atlasControls button:focus-visible,
#atlasGuide .atlasDestinations button:focus-visible,
#atlasGuide [data-directory-close]:focus-visible{
  outline:2px solid #c4d1af;
  outline-offset:2px;
}

#atlasGuide .atlasControls [data-nav=cards]{
  justify-content:flex-start;
  gap:9px;padding-inline:13px;
  border-color:#b5d88f;
  background:linear-gradient(105deg,#546942e8,#252e22ed);
  color:#f1ffde;
}
#atlasGuide .atlasControls [data-nav=cards] .atlasIcon{
  color:#cbff97;text-shadow:0 0 8px #a3ff6280;
}
#atlasGuide .atlasControls [data-nav=cards]:not(:disabled):hover{
  border-color:#cbff97;box-shadow:0 0 13px #a3ff624a;
}
#atlasGuide .atlasControls [data-nav=cards]:disabled{
  background:var(--atlas-control);border-color:var(--atlas-edge);color:#d0d9bf;
}
#atlasGuide .atlasControls [data-nav=cards]:disabled .atlasIcon{text-shadow:none;color:#a9afa2}
#call.anchored path{animation:none;stroke-dashoffset:0}

/* The landscape and the point label carry the navigation. */
#mapScene #board{left:0}
#atlasGuide{width:min(29%,390px);top:clamp(83px,18svh,132px);grid-template-rows:minmax(0,1fr)}
#atlasGuide .atlasTerritory{font-size:clamp(25px,3.2vw,48px)}
#call .plaque rect{fill:#19231bdd;stroke:#96b878}
#call .callState{fill:#d4edbd}
#mapScene .hot{cursor:pointer}
@media(max-width:700px){#atlasGuide{width:min(41%,245px)}}

/* Only the painted sign is interactive. Markers are painted above it. */
#call.show:not(.anchored) .plaque rect{pointer-events:visiblePainted}
#call.show.clickable:not(.anchored) .plaque rect{cursor:pointer}
#call.show.clickable:not(.anchored) .plaque rect:hover{
  fill:#293d28ef;stroke:#c4ec9e;
}

/* Keep the same subdued palette across regions. Only the active marker shines. */
#mapScene #land .region{
  fill:#353a32;stroke:#737e68;stroke-width:.8;filter:none;
  transition:fill .18s ease-out,stroke .18s ease-out;
}
#mapScene #land .region:is(:hover,.lit){
  fill:#41493a;stroke:#95a082;stroke-width:.9;filter:none;
}
#mapScene #spots .hot .ring{fill:#454f3d;stroke:#a5b38e;filter:none}
#mapScene #spots .hot .core{fill:#c4d1ae;filter:none}
#mapScene #spots .hot:is(.active,:focus-visible) .ring{
  fill:#647b49;stroke:#c9e9ac;stroke-width:1.7;filter:drop-shadow(0 0 3px #b2dd7880);
}
#mapScene #spots .hot:is(.active,:focus-visible) .core{fill:#e6f5d6}
#atlasGuide .atlasRegion{
  margin:1px 0 4px;color:#d3e1c3;
  font:600 clamp(11px,1vw,13px)/1.35 Poppins,sans-serif;
  overflow-wrap:anywhere;text-shadow:0 1px 7px #111b12;
}
#call .callRegion{
  fill:#c0d5ab;font:600 10px Poppins,sans-serif;letter-spacing:.025em;
}
#call.show .callRegion{animation:none;opacity:1}
@media(prefers-reduced-motion:reduce){
  #mapScene #land .region{transition:none}
}

/* Shared LATAM SESSIONS colors. Editable artwork and design variables keep precedence. */
:root{
  --latam-charcoal:#262626;
  --latam-olive:#75874c;
  --latam-olive-deep:#4d5b36;
  --latam-sage:#b9ca98;
  --latam-mist:#e9ecdf;
  --latam-paper:#f2f3ec;
  --latam-muted:#cbd4bf;
  --latam-line:#75874c61;
}
#siteOpening{
  background:radial-gradient(ellipse at 50% 52%,color-mix(in srgb,var(--latam-olive) 24%,var(--latam-charcoal)),var(--latam-charcoal) 65%);
  color:var(--latam-mist);
}
.openingMessage{color:var(--latam-mist)}
.openingSignal::before{background:linear-gradient(90deg,transparent,var(--latam-sage),transparent)}
#cover .heroCopy #explore,#mapScene #home,#collection #back,#project .dismiss,#detail #close{
  color:var(--latam-mist);background:var(--latam-charcoal);border-color:var(--latam-olive);
}
#cover .heroCopy #explore:hover,#mapScene #home:hover,#collection #back:hover,#project .dismiss:hover,#detail #close:hover{
  color:var(--latam-charcoal);background:var(--latam-sage);
}
#projectOpen{background:color-mix(in srgb,var(--latam-paper) 94%,transparent);color:var(--latam-charcoal);border-color:var(--latam-line)}
#projectOpen:hover{background:var(--latam-charcoal);color:var(--latam-mist);border-color:var(--latam-olive)}
#projectIntro,#project .formats{background:var(--latam-charcoal);color:var(--latam-mist)}
.introCopy h2,.introMore h2,.introFormatGrid h3,#project .formats h3{color:var(--latam-sage)}
.introCopy p+p,.introMore>p,.introFormatGrid p{color:var(--latam-muted)}
.introFormatGrid article{background:color-mix(in srgb,var(--latam-charcoal) 89%,var(--latam-olive));border-color:var(--latam-line)}
#projectIntro #introMap,#editor #publish{background:var(--latam-sage);color:var(--latam-charcoal)}
#projectIntro #introMap:hover,#editor #publish:hover{background:var(--latam-mist)}
#call .plaque rect{fill:#262626e8;stroke:var(--latam-olive)}
#call.show.clickable:not(.anchored) .plaque rect:hover{fill:#37402def;stroke:var(--latam-sage)}
#call .callRegion,#call .callState,#atlasGuide .atlasRegion,.atlasSource{color:var(--latam-sage);fill:var(--latam-sage)}
#call path,#route path{stroke:var(--latam-sage);filter:drop-shadow(0 0 4px #9fb96d70)}
#detail,#project,#editor{background:var(--latam-mist);color:var(--latam-charcoal)}
#projectPresentation,#editor #saveStatus{background:var(--latam-mist)}
#project :is(.presentationSection h3,.teamMember h4,.teamRole),#detail #data h3{color:var(--latam-olive-deep)}
#project .teamMember,#collection #cards .card,#detail #large .card{
  background:var(--latam-paper);border-color:var(--latam-olive);color:var(--latam-charcoal);
}
#editor .studioBar{background:var(--latam-charcoal);color:var(--latam-mist)}
#editor .studioBar b{color:var(--latam-sage)}
#editor .studioNav,#editor[data-editor-mode=basic] .studioNav{background:var(--latam-mist);border-color:var(--latam-line)}
#editor .studioInspector,#editor[data-editor-mode=basic] .studioInspector{background:var(--latam-paper);border-color:var(--latam-line)}
#editor[data-editor-mode=basic] #editFields,#editor[data-editor-mode=basic] .djEntry{
  background:color-mix(in srgb,var(--latam-paper) 80%,white);border-color:var(--latam-line);
}

#collection .card.cardTaken,#detail .card.cardTaken{visibility:hidden}
#detail #large .cardFlight{
  position:fixed;z-index:12;margin:0;max-width:none;max-height:none;
  transform-origin:top left;pointer-events:none;box-sizing:border-box;
  visibility:visible;animation:none;
}
#project[open]{
  position:fixed;inset:0;margin:0;width:100%;height:100dvh;
  max-width:none;max-height:none;border:0;border-radius:0;
  overscroll-behavior:contain;
}
#project::backdrop{background:#26262675}
#project .projectCloseBar{
  position:sticky;top:0;height:auto;padding:13px clamp(16px,5vw,72px);
  background:linear-gradient(#262626e8,#262626b9);justify-content:flex-end;
}
#project .projectCloseBar .dismiss{
  top:auto;width:auto;height:42px;padding:0 15px;border-radius:99px;
  font:600 12px Poppins,sans-serif;
}
#project .about-hero,#project .about-hero.customDesign{
  width:100%;max-width:none;min-height:min(57svh,510px);
  display:grid;align-content:center;justify-items:start;gap:12px;
  padding:clamp(26px,7vw,100px) max(6%,calc((100% - 1100px)/2));
}
#project .about-hero p{max-width:58ch}
#project .projectEnd{
  padding:clamp(25px,6vh,70px) 6%;background:var(--latam-charcoal);
  border-top:1px solid var(--latam-line);text-align:center;
}
#project .projectEnd button{
  padding:12px 20px;border:1px solid var(--latam-olive);border-radius:99px;
  color:var(--latam-charcoal);background:var(--latam-sage);font:600 13px Poppins,sans-serif;
}
#project .projectEnd button:hover{background:var(--latam-mist)}
@media(prefers-reduced-motion:no-preference){
  body:not(:has(#rail.gentleMotion)) #project[open]::backdrop{animation:chapterBackdrop .36s ease-out}
}
@keyframes chapterBackdrop{from{opacity:0}to{opacity:1}}

/* Charcoal surfaces, balanced olive accents and one visual treatment for controls. */
:root{
  color-scheme:dark;
  --latam-surface:#2d3129;
  --latam-surface-raised:#353b30;
  --latam-scroll-thumb:#899874a6;
}
#cover.customDesign::after{
  background:radial-gradient(ellipse at 50% 48%,#262626e5 12%,#262626ad 53%,#2626265c 100%);
}
#cover.customDesign[data-brand-accent] .heroCopy h1{color:var(--latam-sage)}
#cover.customDesign[data-brand-ink] .heroCopy :is(#tagline,#heroDescription,#coverRule),
#cover.customDesign[data-brand-ink] .coverfoot{color:var(--latam-mist);text-shadow:0 1px 5px #121510}
#cover .mast .official{filter:grayscale(1) brightness(0) invert(.92)}
#projectOpen,
#detail .mediaTabs button,
#detail #close,
#project .projectCloseBar .dismiss{
  background:var(--latam-surface);
  color:var(--latam-mist);
  border:1px solid var(--latam-line);
}
#projectOpen:hover,#detail .mediaTabs button:hover,#detail #close:hover,
#project .projectCloseBar .dismiss:hover{
  background:var(--latam-surface-raised);
  border-color:var(--latam-sage);
  color:var(--latam-mist);
}
#detail .mediaTabs button[aria-pressed=true]{
  background:var(--latam-sage);
  border-color:var(--latam-sage);
  color:var(--latam-charcoal);
}
#detail[open]{
  width:min(1120px,94vw);max-height:92dvh;
  align-items:start;grid-template-columns:minmax(0,1fr) minmax(0,2.15fr);
  gap:clamp(15px,3vw,32px);padding:clamp(17px,3vw,37px);
  border:1px solid var(--latam-line);border-radius:14px;
  outline:none;
}
#detail,#project,#projectPresentation{background:var(--latam-charcoal);color:var(--latam-mist)}
#detail #data{min-width:0;padding:0 2px}
#detail #data :is(h3,h4),#project :is(.presentationSection h3,.teamMember h4,.teamRole,.presentationSubtitle){
  color:var(--latam-sage);
}
#detail #data a,#project .brandChannels a{color:#dae7c7}
#detail #large .card,#collection #cards .card,#project :is(.teamMember,.presentationFormat){
  background:var(--latam-surface);color:var(--latam-mist);border-color:var(--latam-line);
}
#detail #large .cardLogo,#collection #cards .cardLogo{filter:grayscale(1) brightness(0) invert(.88)}
#detail #large .card .art,#collection #cards .card .art{background:#20241e}
#detail #large .art img{max-height:34dvh}
#detail .mediaPane .youtubePlayer{
  width:min(100%,calc(43dvh * 16 / 9));
  height:auto;aspect-ratio:16/9;display:block;background:#181b17;
}
#detail :is(.mediaTabs button,#close):focus-visible,#projectOpen:focus-visible{
  outline:2px solid var(--latam-sage);outline-offset:3px;
}
#detail,#project,.projectIntro,#atlasGuide .atlasReading,#collection #cards{
  overflow-y:auto;
  scrollbar-width:thin;scrollbar-color:var(--latam-scroll-thumb) transparent;
}
#collection .collectionHeading,.heroCopy{
  scrollbar-width:thin;scrollbar-color:var(--latam-scroll-thumb) transparent;
}
:is(#detail,#project,.projectIntro,#atlasGuide .atlasReading,#collection #cards,.collectionHeading,.heroCopy)::-webkit-scrollbar{
  width:6px;height:6px;
}
:is(#detail,#project,.projectIntro,#atlasGuide .atlasReading,#collection #cards,.collectionHeading,.heroCopy)::-webkit-scrollbar-thumb{
  border-radius:99px;background:var(--latam-scroll-thumb);
}
:is(#detail,#project,.projectIntro,#atlasGuide .atlasReading,#collection #cards,.collectionHeading,.heroCopy)::-webkit-scrollbar-button{
  display:none;
}
#editor{color-scheme:light}
@media(max-width:620px){
  #detail[open]{grid-template-columns:minmax(0,1fr)}
  #detail .mediaPane .youtubePlayer{width:100%}
}

/* A flexible top seam opens from its corner before the cards rise. */
#pack{perspective:320px}
#pack .rip{
  transform-origin:50% calc(100% - 2px);
  background:linear-gradient(180deg,#a7ad85 0%,#6b7650 38%,#424b34 83%,#30382a 100%);
  box-shadow:inset 0 1px #d8dfb468,inset 0 -2px #141d1766;
  z-index:2;
}
#pack .packMouth{
  position:absolute;z-index:1;top:0;left:1%;right:1%;height:19px;
  background:linear-gradient(180deg,#b4bc95 1px,#555f42 3px,#121710 6px,#20291c 73%,#79805c);
  clip-path:polygon(0 0,100% 0,100% 0,0 0);
  border-radius:0 0 32% 32%;
  pointer-events:none;
}
#stage.unsealing #pack .rip{
  animation:none;visibility:visible;
}

/* The glass and its controls dissolve while the card completes its own flight. */
#detail[open]{
  transition:background-color .39s ease-out,border-color .39s ease-out,box-shadow .39s ease-out;
}
#detail::backdrop{transition:opacity .39s ease-out}
#detail :is(#close,[data-theme-switch]){transition:opacity .26s ease-out}
#detail.detailLeaving,
html[data-theme] #detail.detailLeaving{
  background-color:transparent;border-color:transparent;box-shadow:none;scrollbar-color:transparent transparent;
}
#detail.detailLeaving::backdrop{opacity:0}
#detail.detailLeaving :is(#close,[data-theme-switch]){opacity:0;pointer-events:none}
@media(prefers-reduced-motion:reduce){
  #detail[open],#detail::backdrop,#detail :is(#close,[data-theme-switch]){transition:none}
}

/* Give the cards more room while keeping the same stage throughout the opening. */
#collection #stage,
#collection #stage:has(#pack:not([hidden])),
#collection #stage.unsealing{
  height:min(65svh,495px);
  container-type:size;
}
#collection #cards .card{
  box-sizing:border-box;
  width:min(calc(var(--site-card-width,176px) * 1.42),calc((100cqh - 34px) * .6667),calc(100% - 12px));
  flex:0 0 auto;
}
#collection #cards{gap:clamp(10px,2vw,24px)}
#detail[open]{width:min(1220px,94vw);grid-template-columns:minmax(0,1.18fr) minmax(0,1.82fr)}
#detail #large .card:not(.cardFlight){width:100%;max-width:410px}
#detail #large .art img{max-height:43dvh}
@media(max-width:700px){
  #collection #cards .card{
    width:min(calc(var(--site-card-width,176px) * 1.42),calc((100cqh - 34px) * .6667),calc((100% - 18px) / 2));
  }
}
@media(max-width:460px){
  #collection #cards .card{
    width:min(calc(var(--site-card-width,176px) * 1.42),calc((100cqh - 34px) * .6667),calc(100% - 12px));
  }
}
@media(max-width:620px){
  #detail[open]{grid-template-columns:minmax(0,1fr)}
  #detail #large .card:not(.cardFlight){max-width:min(360px,100%)}
  #detail #large .art img{max-height:36dvh}
}

/* Draw the leader, unfold the rectangle and only then reveal the label. */
#call{
  --call-leader-time:260ms;
  --call-box-time:220ms;
}
#call.show:not(.anchored) path{
  animation:draw var(--call-leader-time) ease-out both;
}
#call.show:not(.anchored) .plaque rect{
  animation:expand var(--call-box-time) var(--call-leader-time) ease-out both;
}
#call.show:not(.anchored) .plaque text{
  animation:callTextIn 170ms calc(var(--call-leader-time) + var(--call-box-time)) ease-out both;
}
#call.show.anchored .plaque text{animation:none;opacity:1}
@keyframes callTextIn{
  from{opacity:0}
  to{opacity:1}
}
#rail.gentleMotion #call.show:not(.anchored) :is(path,rect,text){
  animation:none;opacity:1;transform:none;stroke-dashoffset:0;
}
@media(prefers-reduced-motion:reduce){
  #call.show:not(.anchored) :is(path,rect,text){
    animation:none;opacity:1;transform:none;stroke-dashoffset:0;
  }
}

/* During the fall, clip at the viewport instead of at the stage boundary. */
#collection #stage.unsealing:has(#pack:not([hidden])),
#collection #stage.unsealing #cards{
  overflow:visible;
}
#collection #stage.unsealing #cards{
  scrollbar-width:none;
}
#collection #stage.unsealing #cards::-webkit-scrollbar{
  display:none;
}

/* The close-up keeps the same vertical 2:3 frame as the cards in the collection. */
#detail #large{min-width:0}
#detail #large .card{
  box-sizing:border-box;display:grid;
  grid-template-rows:auto minmax(0,1fr) auto auto;
  gap:5px;min-width:0;min-height:0;overflow:hidden;
  aspect-ratio:2 / 3;
}
#detail #large .card:not(.cardFlight){
  width:min(100%,380px,calc((92dvh - clamp(44px,7vw,90px)) * .6667));
  height:auto;max-width:none;margin-inline:auto;
}
#detail #large .card .art{
  min-height:0;height:100%;width:100%;overflow:hidden;
}
#detail #large .card .art img{
  width:100%;height:100%;max-height:none;object-fit:contain;object-position:center;
}
#detail #large .card h3{
  min-width:0;margin:0;overflow-wrap:anywhere;line-height:1.1;
}
#detail #large .card p{
  margin:0;overflow:hidden;overflow-wrap:anywhere;
  line-height:1.35;max-height:2.7em;
}
#detail #data{overflow-wrap:anywhere}
@media(max-width:620px){
  #detail #large .card:not(.cardFlight){width:min(100%,74vw,300px)}
}
#collection #cards .card{min-height:0;overflow:hidden}
#collection #cards .card p{
  overflow:hidden;overflow-wrap:anywhere;line-height:1.3;max-height:2.6em;
}

/* Keep the route's upper corridor clear and leave space around cards for selection. */
#collection{
  box-sizing:border-box;
  padding-block-start:clamp(26px,5svh,36px);
}
#collection #stage.dealt #cards{
  padding-block:15px;
}
#collection #stage.dealt .card{
  position:relative;transform-origin:center;
  transition:transform .22s cubic-bezier(.22,.72,.24,1),
    border-color .2s ease,box-shadow .2s ease;
}
#collection #stage.dealt .card:focus-visible{
  z-index:2;outline:2px solid var(--latam-sage);outline-offset:2px;
  border-color:var(--latam-sage);
}
@media(hover:hover) and (pointer:fine){
  #collection #stage.dealt .card:hover{
    z-index:2;
    transform:translateY(-4px) scale(1.05);
    border-color:var(--latam-sage);
    box-shadow:0 12px 30px #141a125c;
  }
}
#rail.gentleMotion #collection #stage.dealt .card{transition:none}
#rail.gentleMotion #collection #stage.dealt .card:hover{transform:none}
@media(prefers-reduced-motion:reduce){
  #collection #stage.dealt .card{transition:none}
  #collection #stage.dealt .card:hover{transform:none}
}


/* Match the image window and crop from the selected collection card. */
#detail #large .card:has(.matchedArt){
  grid-template-rows:auto auto auto auto;align-content:start;
}
#detail #large .card .art.matchedArt{
  display:grid;grid-template-rows:minmax(0,1fr);
  width:100%;height:auto;aspect-ratio:var(--card-art-ratio,7 / 8);
  padding:0;border-radius:0;
}
#detail #large .card .art.matchedArt img{
  width:100%;height:100%;min-height:0;max-height:none;
  object-fit:cover;object-position:var(--card-art-position,50% 50%);
}

/* Give the cover action clear space and center the atlas entry at the end. */
#cover.customDesign .heroCopy #explore{
  margin-top:clamp(28px,6svh,52px);
}
#projectIntro .introMore .introActions{
  justify-content:center;
  margin-top:clamp(30px,6svh,64px);
}
@media(max-height:420px){
  #cover.customDesign .heroCopy #explore{margin-top:24px}
}
