/* An extra pass through the same print shop: register, file, hand off.
   Native timelines only. Default/static/unsupported content keeps its exact geometry. */
@keyframes qualification-file {
 from { translate:var(--file-side,12px) 30px; rotate:var(--file-angle,3deg); }
 to { translate:0 0; rotate:0deg; }
}
@keyframes registration-corner { from { scale:.25; rotate:90deg; } to { scale:1; rotate:0deg; } }
@keyframes capability-number { from { translate:0 16px; rotate:-18deg; } to { translate:0 0; rotate:0deg; } }
@keyframes profile-typeset { from { transform:skewX(-7deg); translate:6px 0; } to { transform:skewX(0deg); translate:0 0; } }
@keyframes case-dossier { from { translate:var(--dossier-side,-12px) 36px; rotate:var(--dossier-angle,-1.5deg); } to { translate:0 0; rotate:0deg; } }
@keyframes next-title { from { translate:24px 0; transform:skewX(-8deg); } to { translate:0 0; transform:skewX(0deg); } }
@keyframes next-arrow { from { translate:-22px 0; rotate:-45deg; } to { translate:0 0; rotate:0deg; } }

@supports (animation-timeline:view()) and (animation-range:entry 0% entry 100%) and (timeline-scope:--chapter) {
 @media(prefers-reduced-motion:no-preference) {
  html[data-scroll-native="true"][data-motion-mode="animated"] {
   & .infrastructure-capabilities>section { view-timeline:--capability block; view-timeline-inset:100px 260px; }
   & .capability-number { display:inline-block; animation:capability-number linear both; animation-timeline:--capability; animation-range:entry 0% entry 100%; transform-origin:center; }
   & .m-profile>h2 { animation:profile-typeset linear both; animation-timeline:view(block 110px 240px); animation-range:entry 0% entry 100%; transform-origin:left bottom; }
   & .education-grid>article { position:relative; view-timeline:--file block; view-timeline-inset:100px 230px; animation:qualification-file linear both; animation-timeline:--file; animation-range:entry 0% entry 100%; transform-origin:50% 100%; }
   & .education-grid>article:nth-child(even) { --file-side:-12px; --file-angle:-3deg; }
   & .education-grid>article::after { content:""; position:absolute; right:14px; top:14px; width:14px; height:14px; border-top:3px solid var(--primario); border-right:3px solid var(--primario); pointer-events:none; transform-origin:center; animation:registration-corner linear both; animation-timeline:--file; animation-range:entry 0% entry 100%; }
   & .case-block { view-timeline-inset:100px 160px; animation:case-dossier linear both; animation-timeline:--case-fact; animation-range:entry 0% entry 100%; transform-origin:center bottom; }
   & #experiencia .timeline { view-timeline-inset:min(42%,360px) calc(100% - min(42%,360px)); }
   /* One group, one register: the heading finishes with its physical sheet. */
   & .education-grid h3 { animation-timeline:--file; animation-range:entry 0% entry 100%; }
   & .case-block h2 { animation-range:entry 0% entry 100%; }
   /* The contact title, object and brackets dock as one composition. */
   & .contact-main { view-timeline:--contact-arrival block; view-timeline-inset:140px 140px; }
   & .contact-copy,& .contact-signature,& .contact-signature::before,& .contact-signature::after { animation-timeline:--contact-arrival; animation-range:entry 60% entry 100%; }
   @media(min-width:901px) { & .chapter-cue::after { content:none; } }
   /* Keep rails for identity and functional reading; remove repeated decorative underlines. */
   & .project-copy::before,& .case-cover::after,& .footer-bottom::before { content:none; }
   & .case-block:nth-of-type(even) { --dossier-side:12px; --dossier-angle:1.5deg; }
   & .case-pagination { view-timeline:--handoff block; view-timeline-inset:80px 40px; }
   & .case-pagination strong { display:block; animation:next-title linear both; animation-timeline:--handoff; animation-range:entry 0% entry 100%; transform-origin:left center; }
   & .case-pagination a>span:last-child { display:inline-block; animation:next-arrow linear both; animation-timeline:--handoff; animation-range:entry 0% entry 100%; }
   & :is(.case-block,.education-grid>article):has(:focus-visible) { animation:none; translate:none; rotate:none; }
   & .case-pagination a:focus-visible :is(strong,span) { animation:none; translate:none; rotate:none; transform:none; }
   @media(max-width:900px) {
    & .case-pagination { view-timeline-inset:80px 240px; }
    & .education-grid>article { --file-side:5px; --file-angle:2deg; }
    & .education-grid>article:nth-child(even) { --file-side:-5px; --file-angle:-2deg; }
    & .case-block { --dossier-side:-5px; --dossier-angle:-.8deg; }
    & .case-block:nth-of-type(even) { --dossier-side:5px; --dossier-angle:.8deg; }
   }
  }
 }
}

/* Functional reading state: organization and marker always identify the same article. */
:is(.project-copy,.footer-bottom)::before,.case-cover::after { content:none; }
@media(min-width:901px) { .chapter-cue::after { content:none; } }
#experiencia .timeline>article .organization { color:var(--texto-suave); }
#experiencia .timeline>article[data-reading="true"] .organization { color:var(--primario); }
