/* ELYAN D06 / G18 Motion Precision — CANDIDATO, stage privado.
   Perceptible, fast, one-time editorial reveals, no scroll-jacking, no fake evidence.
   All content is visible by default; JS activates reveal classes only on this stage. */
:root{--g18-plum:#99669f;--g18-ease:cubic-bezier(.22,1,.36,1)}
.g18-progress{
  position:fixed;z-index:999999;left:0;top:0;width:100%;height:3px;
  background:linear-gradient(90deg,#b47aba,#e6c4e6);
  transform:scaleX(0);transform-origin:left center;
  pointer-events:none;will-change:transform;
  box-shadow:0 1px 4px rgba(35,21,40,.14);
}
html[data-g18-motion="1"] .g18-reveal{
  transition:opacity .50s var(--g18-ease),transform .50s var(--g18-ease);
  transition-delay:var(--g18-delay,0ms);
}
html[data-g18-motion="1"] .g18-reveal:not(.g18-visible){
  opacity:0;
  transform:translate3d(0,22px,0);
}
html[data-g18-motion="1"] .g18-reveal.g18-visible{
  opacity:1;transform:translate3d(0,0,0);
}
/* Hero: one cinematic focal move at load, not a permanent zoom. */
html[data-g18-motion="1"] .hero-ph01-photo{
  animation:g18-hero-photo .88s var(--g18-ease) both;
}
html[data-g18-motion="1"] .hero-ph01-content .hero-copy{
  animation:g18-hero-copy .70s var(--g18-ease) .11s both;
}
@keyframes g18-hero-photo{
  0%{opacity:.78;transform:scale(1.045)}
  100%{opacity:1;transform:scale(1)}
}
@keyframes g18-hero-copy{
  0%{opacity:.25;transform:translate3d(0,19px,0)}
  100%{opacity:1;transform:translate3d(0,0,0)}
}
/* Territories: explicit response for tap/focus/hover. */
.territories-g3 .territory-tab{
  transition:box-shadow .22s ease,background-color .22s ease,transform .22s ease;
}
.territories-g3 .territory-tab[aria-pressed="true"]{
  box-shadow:inset 0 -3px 0 #ba85c2,0 7px 16px rgba(46,28,52,.11);
}
.territories-g3 .territory-tab .territory-card-photo{overflow:hidden}
.territories-g3 .territory-tab .territory-card-photo img{
  transition:transform .26s var(--g18-ease);
}
.territories-g3 .territory-tab[aria-pressed="true"] .territory-card-photo img,
.territories-g3 .territory-tab:hover .territory-card-photo img,
.territories-g3 .territory-tab:focus-visible .territory-card-photo img{
  transform:scale(1.035);
}
/* Evidence items: observer reveals one after another, content never claims PASS. */
.criterion-g8 .criterion-chart .evidence-row{
  border-left:2px solid transparent;
  transition:border-color .22s ease,opacity .40s var(--g18-ease),transform .40s var(--g18-ease);
}
.criterion-g8 .criterion-chart .evidence-row.g18-visible{
  border-left-color:#ad82b3;
}
/* Lab interaction: replays only when user changes scenario/phase. */
@keyframes g18-lab-scene{
  0%{opacity:.48;transform:translate3d(9px,0,0) scale(1.01)}
  100%{opacity:1;transform:translate3d(0,0,0) scale(1)}
}
.lab .lab-scene-g9:not([hidden]) img{
  animation:g18-lab-scene .26s var(--g18-ease) both;
}
@keyframes g18-lab-phase{
  0%{opacity:.55;transform:translate3d(0,9px,0)}
  100%{opacity:1;transform:translate3d(0,0,0)}
}
.lab .lab-workspace.g18-phase-in{
  animation:g18-lab-phase .24s var(--g18-ease);
}
.lab .phase-nav [aria-pressed="true"]{
  transition:background-color .18s,border-color .18s,box-shadow .18s;
  box-shadow:0 3px 0 #b683bc;
}
/* Three pillars: stagger + connector/capsule visibly completes the sequence. */
.continuity-g14 .pillar-g14{
  transition:opacity .49s var(--g18-ease),transform .49s var(--g18-ease),border-color .18s,box-shadow .18s;
}
.continuity-g14 .pillar-project-g14 span{
  transform:scaleX(0);transform-origin:center;
  transition:transform .65s var(--g18-ease);
}
.continuity-g14 .pillar-project-g14.g18-visible span{
  transform:scaleX(1);
}
/* Three example questions: editorial entrance + interactive photo. */
.contexts-g14 .context-photo-g15{overflow:hidden}
.contexts-g14 .context-photo-g15 img{
  transition:transform .24s var(--g18-ease);
}
@media(hover:hover){
 .contexts-g14 .contexts-grid article:hover .context-photo-g15 img{
  transform:scale(1.035);
 }
}
/* Motion: a small focal reveal on the architectural conclusion. */
html[data-g18-motion="1"] .closing-hero-g13.g18-conclusion-on .closing-hero-gradient-g13{
  animation:g18-closing-gradient .70s var(--g18-ease) both;
}
html[data-g18-motion="1"] .closing-hero-g13.g18-conclusion-on .closing-hero-copy-g13{
  animation:g18-closing-copy .66s var(--g18-ease) .10s both;
}
@keyframes g18-closing-gradient{
  0%{opacity:.78;transform:translate3d(26px,0,0)}
  100%{opacity:1;transform:translate3d(0,0,0)}
}
@keyframes g18-closing-copy{
  0%{opacity:.15;transform:translate3d(0,20px,0)}
  100%{opacity:1;transform:translate3d(0,0,0)}
}
.closing-g13 .closing-contact-g13{
  transition:box-shadow .18s ease,background .18s ease,border-color .18s ease,transform .18s ease;
}
.closing-g13 .closing-contact-g13:hover,
.closing-g13 .closing-contact-g13:focus-visible{
  box-shadow:0 0 0 3px rgba(226,193,231,.26);
  transform:translate3d(0,-2px,0);
}
@media(max-width:650px){
  html[data-g18-motion="1"] .g18-reveal:not(.g18-visible){
    transform:translate3d(0,17px,0);
  }
  .g18-progress{height:3px}
}
@media(prefers-reduced-motion:reduce){
  .g18-progress{display:none}
  html[data-g18-motion="1"] .g18-reveal,
  html[data-g18-motion="1"] .g18-reveal:not(.g18-visible){
    transition:none!important;animation:none!important;transform:none!important;opacity:1!important;
  }
  html[data-g18-motion="1"] .hero-ph01-photo,
  html[data-g18-motion="1"] .hero-ph01-content .hero-copy,
  .lab .lab-scene-g9:not([hidden]) img,
  .lab .lab-workspace.g18-phase-in,
  html[data-g18-motion="1"] .closing-hero-g13.g18-conclusion-on .closing-hero-gradient-g13,
  html[data-g18-motion="1"] .closing-hero-g13.g18-conclusion-on .closing-hero-copy-g13{
    animation:none!important;transform:none!important;opacity:1!important;
  }
  .territories-g3 .territory-tab,.territories-g3 .territory-tab .territory-card-photo img,
  .contexts-g14 .context-photo-g15 img,
  .closing-g13 .closing-contact-g13{transition:none!important;transform:none!important}
}
