/* As camadas só recebem a mídia do projeto atual; a troca usa opacity. */
[data-project-hero]{display:flex;flex-direction:column;min-height:710px;isolation:isolate}
.project-layer{position:absolute;inset:0;z-index:0;overflow:hidden;opacity:0;transition:opacity .85s ease;pointer-events:none}
.project-layer.is-active{opacity:1}
.project-layer .project-poster,.project-layer .project-film{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;pointer-events:none}
.project-poster{opacity:1;transform:scale(1.025);transition:opacity .55s ease}
.project-film{opacity:0;transition:opacity .6s ease}
.project-layer.has-film .project-film{opacity:1}
.project-layer.has-film .project-poster{opacity:0}
[data-project-hero]::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(ellipse at 75% 20%,#00d1ca12,transparent 60%),repeating-linear-gradient(125deg,transparent 0 75px,#96f5eb06 76px,transparent 77px 152px)}
[data-project-hero] .hero-shade{z-index:2;background:linear-gradient(90deg,#001d2af2 0%,#001d2abb 42%,#001d2a30 100%),linear-gradient(0deg,#001d2af0,transparent 47%)}
[data-project-hero] .hero-content{z-index:3;padding-top:85px;padding-bottom:230px}
[data-project-hero] .hero-controls,[data-project-hero] .project-controls,[data-project-controls]{z-index:4}
[data-project-hero] .hero-controls{bottom:22px;display:flex;align-items:flex-end;justify-content:space-between;gap:25px}
.project-caption{min-width:0;max-width:430px}
[data-project-title]{display:block;color:#fff;font-size:19px;font-weight:700;line-height:1.3;margin-bottom:7px}
[data-project-location]{display:block;color:#deeff1;font-size:12px;line-height:1.5}
[data-project-count]{color:#a0eae4;font-variant-numeric:tabular-nums;font-size:12px;white-space:nowrap}
[data-project-link]{display:inline-flex;align-items:center;min-height:44px;color:#b4fff6;font-size:12px;font-weight:650;text-decoration:underline;text-underline-offset:4px}
.project-navigation{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:7px;max-width:590px}
[data-project-previous],[data-project-next],.project-film-toggle,[data-project-hero] .motion-btn{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:10px 13px;border:1px solid #c3f0ed70;border-radius:6px;background:#032735bf;color:#fff;font-family:inherit;font-size:12px;font-weight:600;line-height:1.3;text-decoration:none;cursor:pointer}
[data-project-previous],[data-project-next]{font-size:21px;padding:8px 12px}
[data-project-previous]:hover,[data-project-next]:hover,.project-film-toggle:hover,[data-project-hero] .motion-btn:hover{background:#075665;border-color:#a7fff4}
[data-project-dots]{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0;min-width:0;max-width:100%}
.project-dot{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;padding:0;background:transparent;cursor:pointer}
.project-dot-mark{display:block;width:9px;height:9px;border:1px solid #e7fffa;border-radius:50%;background:transparent;transition:transform .2s ease,opacity .2s ease;opacity:.7}
.project-dot[aria-current="true"] .project-dot-mark{background:#39e5d4;border-color:#39e5d4;transform:scale(1.35);opacity:1}
.project-dot:hover .project-dot-mark{opacity:1;transform:scale(1.3)}
[data-project-hero] button:focus-visible,[data-project-link]:focus-visible{outline:3px solid #b4fff6;outline-offset:4px}
.project-film-toggle[aria-pressed="true"]{border-color:#60e9d9;color:#b4fff6}
.project-outside .project-poster,.motion-suspended .project-poster,.motion-off .project-poster{animation-play-state:paused!important}

/* Entrada progressiva: sem JavaScript ou sem IntersectionObserver, tudo fica visível. */
.motion-reveal{opacity:1;transform:none}
.motion-reveal.motion-reveal-pending{opacity:0;transform:translate3d(0,30px,0)}
.motion-reveal.motion-revealed{animation:meridiano-reveal .8s cubic-bezier(.18,.65,.25,1) both}
.motion-stagger-1.motion-revealed{animation-delay:75ms}
.motion-stagger-2.motion-revealed{animation-delay:150ms}
.motion-stagger-3.motion-revealed{animation-delay:225ms}
.motion-stagger-4.motion-revealed{animation-delay:300ms}
.motion-stagger-5.motion-revealed{animation-delay:375ms}
@keyframes meridiano-reveal{from{opacity:0;transform:translate3d(0,30px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
header::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;box-shadow:0 10px 28px #001d2940;opacity:0;transition:opacity .25s ease}
header.is-scrolled::after{opacity:1}
.feature-picture,.stack-photo,.service-application figure{overflow:hidden}
@supports(animation-timeline:view()){
  img[data-scroll-image]{animation:meridiano-image-journey linear both;animation-timeline:view();animation-range:entry 0% exit 100%;transform-origin:center}
  @keyframes meridiano-image-journey{from{transform:scale(1.025) translate3d(0,-1%,0)}to{transform:scale(1.08) translate3d(0,1%,0)}}
}
.motion-off .motion-reveal,.motion-off .motion-revealed{opacity:1!important;transform:none!important;animation:none!important}
.motion-off img[data-scroll-image]{animation:none!important;transform:none!important}
.motion-off .project-layer,.motion-off .project-film,.motion-off .project-poster{transition:none!important}
.motion-suspended .motion-revealed{animation-play-state:paused}

@media(max-width:999px){
  [data-project-hero]{min-height:690px}
  [data-project-hero] .hero-content{padding-top:70px;padding-bottom:235px}
  [data-project-hero] .hero-controls{align-items:flex-start;gap:20px}
  .project-caption{max-width:330px}
  .project-navigation{max-width:380px;gap:5px}
  [data-project-dots]{order:2}
  [data-project-title]{font-size:17px}
}
@media(max-width:700px){
  [data-project-hero]{min-height:0}
  [data-project-hero] .hero-content{padding-top:48px;padding-bottom:34px}
  [data-project-hero] .hero-content h1{font-size:clamp(38px,9vw,52px);letter-spacing:-1.5px;line-height:1.08;margin-bottom:22px}
  [data-project-hero] .hero-content p{font-size:16px;line-height:1.65;max-width:100%}
  [data-project-hero] .hero-content .eyebrow{font-size:10px;letter-spacing:1.6px;margin-bottom:19px}
  [data-project-hero] .hero-shade{background:linear-gradient(90deg,#001d2adf,#001d2a96),linear-gradient(0deg,#001d2aee,transparent 65%)}
  [data-project-hero] .hero-controls{position:relative;inset:auto;transform:none;display:grid;grid-template-columns:1fr;width:100%;max-width:none;margin-top:auto;margin-bottom:0;padding:20px 24px 22px;border-top:1px solid #c3f0ed35;background:#021d29d9;gap:12px}
  .project-caption{max-width:none}
  [data-project-title]{font-size:17px;margin-bottom:5px}
  [data-project-location]{font-size:11px}
  [data-project-link]{font-size:12px}
  .project-navigation{max-width:none;justify-content:flex-start;gap:7px}
  [data-project-dots]{order:0;margin-right:auto}
  [data-project-hero] .motion-btn,.project-film-toggle{font-size:11px;padding:10px 12px}
  .project-dot{width:44px;min-width:44px;height:44px}
  .motion-reveal.motion-reveal-pending{transform:translate3d(0,20px,0)}
}
@media(max-width:380px){
  [data-project-hero] .hero-content{padding-top:38px}
  [data-project-hero] .hero-controls{padding-left:20px;padding-right:20px}
  .project-navigation{gap:4px}
  [data-project-dots]{margin-right:0}
  .project-dot{width:44px;min-width:44px}
}
@media(prefers-reduced-motion:reduce){
  .project-layer,.project-film,.project-poster,.project-dot-mark,header::after{transition:none!important}
  .project-layer.is-active .project-poster{animation:none!important;transform:none!important}
  .motion-reveal,.motion-reveal.motion-reveal-pending,.motion-reveal.motion-revealed{opacity:1!important;transform:none!important;animation:none!important}
  img[data-scroll-image]{animation:none!important;transform:none!important}
  html{scroll-behavior:auto}
}
