/* ============================================================
   Terra & Form — Transition « landing → page Services »
   « Signature » (logique et rythme dans page-transition.js)
   ============================================================ */

/* ---------- Landing : le carré du logo ouvre le site ----------
   Le carré terracotta du logo s'agrandit jusqu'aux bords de l'écran et
   découvre la page Services ; la landing s'assombrit autour et le logo
   file se poser dans le header. Les mouvements sont pilotés par le script. */
html.tf-busy body{pointer-events:none;}
.tf-sig-dim{position:absolute;inset:0;z-index:50;background:#0d0a08;opacity:0;pointer-events:none;}
.tf-sig-frame{position:fixed;z-index:2147482991;box-sizing:border-box;border:2px solid #E35336;pointer-events:none;}
.tf-sig-logo{position:fixed;z-index:2147482992;transform-origin:0 0;pointer-events:none;will-change:transform;}
.tf-sig-logo img{display:block;width:100%;height:100%;max-width:none;}

/* ---------- Contenu de la page Services : entrée en cascade ----------
   .tf-cascade est posée sur le <main> de la landing pendant l'ouverture du
   carré (le contenu Services y entre en cascade), ou sur <html> de la page
   Services si celle-ci n'avait pas pu être pré-chargée.
   --tf-d0 = décalage de départ de la cascade. */
@media (prefers-reduced-motion: no-preference){
  html.tf-arrive #page-services.page.active{animation:none;}
  html.tf-arrive .line-float{animation:tfFade .5s ease-out .15s both;}
  html.tf-arrive.tf-cascade .line-float{animation-delay:1s;}
  .tf-cascade #page-services .hero-contact-cta{animation:tfRise .8s cubic-bezier(.22,1,.36,1) calc(var(--tf-d0,0s) + .3s) both;}
  .tf-cascade #page-services .svc-split-grid{animation:tfBorder .9s ease-out calc(var(--tf-d0,0s) + .05s) both;}
  .tf-cascade #page-services .svc-split-intro{animation:tfBorder .9s ease-out calc(var(--tf-d0,0s) + .1s) both;}
  .tf-cascade #page-services .svc-split-title{animation:tfRise .9s cubic-bezier(.22,1,.36,1) calc(var(--tf-d0,0s) + .06s) both;}
  .tf-cascade #page-services .svc-split-line{transform-origin:left center;animation:tfLine .8s cubic-bezier(.65,0,.35,1) calc(var(--tf-d0,0s) + .22s) both;}
  .tf-cascade #page-services .svc-split-lede{animation:tfRise .9s cubic-bezier(.22,1,.36,1) calc(var(--tf-d0,0s) + .16s) both;}
  .tf-cascade #page-services .svc-split-footer-row{animation:tfRise .9s cubic-bezier(.22,1,.36,1) calc(var(--tf-d0,0s) + .26s) both;}
  .tf-cascade #page-services .svc-split-cta{animation:tfRise .9s cubic-bezier(.22,1,.36,1) calc(var(--tf-d0,0s) + .34s) both;}
  .tf-cascade #page-services .svc-split-item{animation:tfRiseLine .95s cubic-bezier(.22,1,.36,1) calc(var(--tf-d0,0s) + .14s) both;}
  .tf-cascade #page-services .svc-split-item:nth-child(2){animation-delay:calc(var(--tf-d0,0s) + .23s);}
  .tf-cascade #page-services .svc-split-item:nth-child(3){animation-delay:calc(var(--tf-d0,0s) + .32s);}
  .tf-cascade #page-services .svc-split-item:nth-child(4){animation-delay:calc(var(--tf-d0,0s) + .41s);}
  .tf-cascade #page-services .svc-split-img img{animation:tfSettle 1.3s cubic-bezier(.22,1,.36,1) calc(var(--tf-d0,0s) + .2s) both;}
}
@keyframes tfRise{from{opacity:0;transform:translateY(26px);}}
@keyframes tfRiseLine{from{opacity:0;transform:translateY(30px);border-color:transparent;}}
@keyframes tfBorder{from{border-color:transparent;}}
@keyframes tfLine{from{transform:scaleX(0);}}
@keyframes tfSettle{from{transform:scale(1.08);}}
@keyframes tfFade{from{opacity:0;}}
