/* Visible default/fallback, including functional progress supplied by the shared reader. */
.chapter-cue:not(.m-stack-strip){position:relative}
.chapter-cue::after{content:"";position:absolute;inset-inline:0;bottom:0;height:3px;background:var(--primario);pointer-events:none;transform-origin:left;transform:scaleX(var(--rule,1))}
@keyframes chapter-trace{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes hero-handoff{from{translate:0 0;scale:1;color:var(--texto)}to{translate:0 -48px;scale:.96;color:var(--primario)}}
@keyframes reading-emphasis{from{color:var(--texto)}to{color:var(--primario)}}
@keyframes hosting-step{from{stroke:var(--borde-brillante)}to{stroke:var(--primario)}}
@keyframes project-edge{from{transform:scaleX(.08)}to{transform:scaleX(1)}}
@keyframes project-selection{0%,100%{transform:scaleX(.08)}50%{transform:scaleX(1)}}
@keyframes project-title-focus{0%,100%{color:var(--texto)}50%{color:var(--primario)}}
@keyframes contact-handoff{from{translate:0 -16px;scale:.94}to{translate:0 0;scale:1}}
@keyframes reading-rail{from{transform:scaleY(0)}to{transform:scaleY(1)}}

@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"] body{timeline-scope:--hero,--work,--hosting,--profile,--experience,--education,--contact}
  @media(min-width:901px){html[data-scroll-native="true"][data-motion-mode="animated"] .intro-stage{view-timeline:--hero block}}
  @media(max-width:900px){html[data-scroll-native="true"][data-motion-mode="animated"] .m-layout:not([data-initial-mobile]) .m-cover{view-timeline:--hero block}}
  html[data-scroll-native="true"][data-motion-mode="animated"] :is(#hero-title,#mobile-name){animation:hero-handoff linear both;animation-timeline:scroll(root block);animation-range:0px 280px;transform-origin:left top}
  [data-scroll-section="work"]{view-timeline:--work block}
  [data-scroll-section="hosting"]{view-timeline:--hosting block}
  [data-scroll-section="profile"]{view-timeline:--profile block}
  [data-scroll-section="experience"]{view-timeline:--experience block}
  [data-scroll-section="education"]{view-timeline:--education block}
  html[data-scroll-native="true"][data-motion-mode="animated"] .chapter-cue::after{animation:chapter-trace linear both;animation-range:contain 0% contain 100%}
  html[data-scroll-native="true"][data-motion-mode="animated"] [data-scroll-chapter="work"]::after{animation-timeline:--work}
  html[data-scroll-native="true"][data-motion-mode="animated"] [data-scroll-chapter="hosting"]::after{animation-timeline:--hosting}
  html[data-scroll-native="true"][data-motion-mode="animated"] [data-scroll-chapter="profile"]::after{animation-timeline:--profile}
  html[data-scroll-native="true"][data-motion-mode="animated"] [data-scroll-chapter="experience"]::after{animation-timeline:--experience}
  html[data-scroll-native="true"][data-motion-mode="animated"] [data-scroll-chapter="education"]::after{animation-timeline:--education}
  html[data-scroll-native="true"][data-motion-mode="animated"] .work-card{view-timeline:--project block}
  html[data-scroll-native="true"][data-motion-mode="animated"] .project-copy{position:relative}
  html[data-scroll-native="true"][data-motion-mode="animated"] .project-copy::before{content:"";position:absolute;inset-inline:0;top:0;height:2px;background:var(--primario);transform-origin:left;pointer-events:none;animation:project-edge linear both;animation-timeline:--project;animation-range:entry 20% exit 35%}
  html[data-scroll-native="true"][data-motion-mode="animated"] .project-copy h3{animation:reading-emphasis linear both;animation-timeline:--project;animation-range:entry 50% contain 90%}
  @media(max-width:900px){
   html[data-scroll-native="true"][data-motion-mode="animated"] .m-layout #proyectos .work-card{view-timeline:--project inline}
   html[data-scroll-native="true"][data-motion-mode="animated"] .m-layout .project-copy::before{animation-name:project-selection;animation-range:cover 0% cover 100%}
   html[data-scroll-native="true"][data-motion-mode="animated"] .m-layout .project-copy h3{animation-name:project-title-focus;animation-range:cover 0% cover 100%}
  }
  html[data-scroll-native="true"][data-motion-mode="animated"] .hosting-flow{view-timeline:--deployment block}
  html[data-scroll-native="true"][data-motion-mode="animated"] .hosting-flow li .host-block-top{animation:hosting-step linear both;animation-timeline:--deployment;animation-range:entry 20% contain 70%}
  html[data-scroll-native="true"][data-motion-mode="animated"] .hosting-flow li:nth-child(2) .host-block-top{animation-range:entry 45% contain 85%}
  html[data-scroll-native="true"][data-motion-mode="animated"] .hosting-flow li:nth-child(3) .host-block-top{animation-range:entry 70% exit 10%}
  html[data-scroll-native="true"][data-motion-mode="animated"] #experiencia .timeline{view-timeline:--reading block;view-timeline-inset:42% 58%}
  html[data-scroll-native="true"][data-motion-mode="animated"] #experiencia .timeline::after{animation:reading-rail linear both;animation-timeline:--reading;animation-range:cover 0% cover 100%}
  html[data-scroll-native="true"][data-motion-mode="animated"] .education-grid>article{view-timeline:--qualification block}
  html[data-scroll-native="true"][data-motion-mode="animated"] .education-grid h3{animation:reading-emphasis linear both;animation-timeline:--qualification;animation-range:entry 45% entry 100%}
  html[data-scroll-native="true"][data-motion-mode="animated"] .home-footer{view-timeline:--contact block}
  html[data-scroll-native="true"][data-motion-mode="animated"] .contact-copy{animation:contact-handoff linear both;animation-timeline:--contact-copy;animation-range:entry 100% contain 25%;view-timeline:--contact-copy block;view-timeline-inset:120px 140px;transform-origin:left bottom}
  html[data-scroll-native="true"][data-motion-mode="animated"] .footer-bottom{position:relative}
  html[data-scroll-native="true"][data-motion-mode="animated"] .footer-bottom::before{content:"";position:absolute;inset-inline:0;top:-1px;height:1px;background:var(--primario);transform-origin:left;animation:chapter-trace linear both;animation-timeline:--contact;animation-range:entry 30% entry 100%;pointer-events:none}
  html[data-scroll-native="true"][data-motion-mode="animated"] .case-cover{position:relative;view-timeline:--case-image block}
  html[data-scroll-native="true"][data-motion-mode="animated"] .case-cover::after{content:"";position:absolute;inset-inline:14px;bottom:5px;height:2px;background:var(--primario);transform-origin:left;animation:chapter-trace linear both;animation-timeline:--case-image;animation-range:entry 0% exit 0%;pointer-events:none}
  html[data-scroll-native="true"][data-motion-mode="animated"] .case-block{view-timeline:--case-fact block}
  html[data-scroll-native="true"][data-motion-mode="animated"] .case-block h2{animation:reading-emphasis linear both;animation-timeline:--case-fact;animation-range:entry 50% entry 100%}
 }
}

/* Scroll is the handoff: identity, work previews, deployment stages, then the contact object.
   No opacity gate or DOM wrapping; static/unsupported defaults keep the exact layout. */
@keyframes preview-settle{from{scale:.86;translate:0 24px}to{scale:1;translate:0 0}}
@keyframes deployment-assemble{from{translate:0 32px;scale:.8}to{translate:0 0;scale:1}}
@keyframes heading-align{from{translate:32px 0}to{translate:0 0}}
@keyframes signature-arrive{from{translate:0 -24px;scale:.86}to{translate:0 0;scale:1}}
@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"] .work-card{view-timeline-inset:120px 140px}
  html[data-scroll-native="true"][data-motion-mode="animated"] .landing-preview{animation:preview-settle linear both;animation-timeline:--project;animation-range:entry 30% entry 100%;transform-origin:center}
  html[data-scroll-native="true"][data-motion-mode="animated"] .hosting-flow{view-timeline-inset:120px 140px}
  html[data-scroll-native="true"][data-motion-mode="animated"] .hosting-node svg{animation:deployment-assemble linear both;animation-timeline:view(block 140px 140px);animation-range:entry 75% contain 55%;transform-origin:center}
  html[data-scroll-native="true"][data-motion-mode="animated"] li:nth-child(2) .hosting-node svg{animation-range:entry 85% contain 65%}
  html[data-scroll-native="true"][data-motion-mode="animated"] li:nth-child(3) .hosting-node svg{animation-range:entry 95% contain 75%}
  html[data-scroll-native="true"][data-motion-mode="animated"] :is(#experiencia,#formacion) .section-heading h2{animation:heading-align linear both;animation-timeline:view(block 120px 140px);animation-range:entry 100% contain 50%}
  html[data-scroll-native="true"][data-motion-mode="animated"] .contact-signature{animation:signature-arrive linear both;animation-timeline:view(block 120px 30px);animation-range:entry 80% contain 20%;transform-origin:center}
  html[data-scroll-native="true"][data-motion-mode="animated"] .case-cover{animation:preview-settle linear both;animation-timeline:--case-image;animation-range:entry 30% entry 100%;view-timeline-inset:100px 140px;transform-origin:left top}
  @media(max-width:900px){
   html[data-scroll-native="true"][data-motion-mode="animated"] .contact-signature{animation-timeline:view(block 140px 140px);animation-range:entry 100% contain 35%}
   html[data-scroll-native="true"][data-motion-mode="animated"] .m-layout .published-grid{view-timeline:--gallery block;view-timeline-inset:140px 140px;timeline-scope:--gallery}
   html[data-scroll-native="true"][data-motion-mode="animated"] .m-layout .landing-preview{animation-timeline:--gallery}
  }
 }
}

/* Desarmar → construir → encastrar. Preserve functional reading/navigation below. */
:is(#hero-title,#mobile-name,#initial-mobile-name){position:relative;--split-travel:112px}
:is(#hero-title,#mobile-name,#initial-mobile-name)::after{content:"";position:absolute;left:0;bottom:-12px;width:min(100%,540px);height:8px;background:var(--primario);transform-origin:left;scale:.08 1;pointer-events:none}
html[data-motion-mode="static"] :is(#hero-title,#mobile-name,#initial-mobile-name)::after,html[data-scroll-native="false"] :is(#hero-title,#mobile-name,#initial-mobile-name)::after{scale:1 1}
#proyectos .project-visual{border-bottom:6px solid var(--art-ink,#403354)}
#proyectos .project-art{overflow:clip;isolation:isolate}
#proyectos .landing-preview{outline:2px solid var(--art-ink,#403354);border-radius:0}
#proyectos .landing-preview>:is(img,video){border-radius:0}
#proyectos .preview-toggle{z-index:4}
.hosting-node{min-block-size:112px;display:grid;align-items:center}
#experiencia .timeline .period{inline-size:fit-content;max-inline-size:100%}
#experiencia .timeline>article[data-reading="true"]::before{width:12px;height:18px;border-radius:0;box-shadow:none}
.contact-signature::before,.contact-signature::after{content:"";position:absolute;width:22%;height:22%;pointer-events:none;border-color:var(--primario);border-style:solid;border-width:0}
.contact-signature::before{left:6%;top:8%;border-left-width:4px;border-top-width:4px}
.contact-signature::after{right:6%;bottom:22%;border-right-width:4px;border-bottom-width:4px}
@media(max-width:900px){:is(#hero-title,#mobile-name,#initial-mobile-name){--split-travel:44px}}
@keyframes type-first{from{translate:0 0;rotate:0deg}to{translate:calc(-1 * var(--split-travel)) -24px;rotate:-5deg}}
@keyframes type-last{from{translate:0 0;rotate:0deg}to{translate:var(--split-travel) -10px;rotate:5deg}}
@keyframes type-stencil{from{color:var(--texto);-webkit-text-stroke:0 var(--texto)}to{color:transparent;-webkit-text-stroke:2px var(--texto)}}
@keyframes type-rail{from{scale:.08 1}to{scale:1 1}}
@keyframes sheet-seat{from{transform:perspective(900px) rotateY(-22deg) rotateZ(-6deg);scale:.88}to{transform:perspective(900px) rotateY(0) rotateZ(0);scale:1}}
@keyframes shutter-left{0%{translate:0 0}75%,100%{translate:-110% 0}}
@keyframes shutter-right{0%{translate:0 0}75%,100%{translate:110% 0}}
@keyframes object-seat{from{scale:.62}to{scale:1}}
@keyframes face-top{from{translate:0 -42px}to{translate:0 0}}
@keyframes face-front{from{translate:-36px 30px}to{translate:0 0}}
@keyframes face-side{from{translate:36px 30px}to{translate:0 0}}
@keyframes heading-print{from{transform:skewX(-6deg);color:var(--primario)}to{transform:skewX(0);color:var(--texto)}}
@keyframes date-stamp{from{rotate:-7deg;scale:1.14}to{rotate:0deg;scale:1}}
@keyframes signature-dock{from{scale:.72;translate:0 34px}to{scale:1;translate:0 0}}
@keyframes reticle-top{from{translate:-22px -22px;rotate:-20deg}to{translate:0 0;rotate:0deg}}
@keyframes reticle-bottom{from{translate:22px 22px;rotate:20deg}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"]{
   & :is(#hero-title,#mobile-name){animation:none}
   & :is(#hero-title,#mobile-name) .hero-word:first-child{animation:type-first linear both;animation-timeline:scroll(root block);animation-range:0px 280px;transform-origin:left center}
   & :is(#hero-title,#mobile-name) [data-hero-last]{animation:type-last linear both;animation-timeline:scroll(root block);animation-range:0px 280px;transform-origin:left center}
   & :is(#hero-title,#mobile-name) [data-hero-last] em{animation:type-stencil linear both;animation-timeline:scroll(root block);animation-range:20px 180px}
   & :is(#hero-title,#mobile-name)::after{animation:type-rail linear both;animation-timeline:scroll(root block);animation-range:0px 280px}
   & .work-card{view-timeline-inset:140px 140px}
   & .landing-preview{animation:sheet-seat linear both;animation-timeline:--project;animation-range:entry 35% contain 10%;transform-origin:center}
   & .project-art::before,& .project-art::after{content:"";position:absolute;inset-block:0;width:56%;background:var(--art-ink,#403354);z-index:3;pointer-events:none;animation:shutter-left linear both;animation-timeline:--project;animation-range:entry 35% contain 10%}
   & .project-art::before{left:0;clip-path:polygon(0 0,100% 0,88% 100%,0 100%)}
   & .project-art::after{right:0;clip-path:polygon(12% 0,100% 0,100% 100%,0 100%);animation-name:shutter-right}
   & .hosting-node{view-timeline:--forge block;view-timeline-inset:140px 140px}
   & .hosting-node svg{animation:object-seat linear both;animation-timeline:--forge;animation-range:entry 60% contain 45%}
   & .hosting-node :is(.host-block-top,.host-block-front,.host-block-side,.host-block-slot,.host-block-light){animation:face-top linear both;animation-timeline:--forge;animation-range:entry 60% contain 45%;transform-box:fill-box;transform-origin:center}
   & .hosting-node :is(.host-block-front,.host-block-slot){animation-name:face-front}
   & .hosting-node :is(.host-block-side,.host-block-light){animation-name:face-side}
   & .hosting-flow li:nth-child(2) :is(svg,.host-block-top,.host-block-front,.host-block-side,.host-block-slot,.host-block-light){animation-range:entry 85% contain 65%}
   & .hosting-flow li:nth-child(3) :is(svg,.host-block-top,.host-block-front,.host-block-side,.host-block-slot,.host-block-light){animation-range:entry 100% contain 85%}
   & :is(#experiencia,#formacion) .section-heading h2{animation:heading-print linear both;animation-timeline:view(block 140px 140px);animation-range:entry 70% contain 25%;transform-origin:left bottom}
   & #experiencia .timeline>article{view-timeline:--career-stage block;view-timeline-inset:140px 140px}
   & #experiencia .period{animation:date-stamp linear both;animation-timeline:--career-stage;animation-range:entry 40% entry 90%;transform-origin:left center}
   & .contact-signature{animation:signature-dock linear both;animation-timeline:view(block 140px 30px);animation-range:entry 80% contain 20%;transform-origin:center}
   & .contact-signature::before,& .contact-signature::after{animation:reticle-top linear both;animation-timeline:--contact;animation-range:entry 65% entry 100%}
   & .contact-signature::after{animation-name:reticle-bottom}
   & .contact-signature:has(:focus-visible){animation:none;scale:1;translate:none}
   & .case-cover{animation:none}
   & .case-cover img{animation:sheet-seat linear both;animation-timeline:--case-image;animation-range:entry 30% entry 100%;transform-origin:center}
   & .case-block h2{animation:heading-print linear both;animation-timeline:--case-fact;animation-range:entry 80% contain 10%;transform-origin:left bottom}
   @media(max-width:900px){
    & .m-layout #proyectos .work-card{view-timeline-inset:auto}
    & .m-layout .landing-preview,& .m-layout .project-art::before,& .m-layout .project-art::after{animation-timeline:--gallery}
    & .contact-signature{animation-timeline:view(block 140px 140px);animation-range:entry 100% contain 35%}
   }
  }
 }
}
