/* TFD 2026 — photograph masks + purposeful 2D icon motion.
   Added AFTER the approved visual layer; overrides decorative CSS only. */
/* The mountain must emerge FROM the blue wave, with no square crop edge. */
@media (min-width:1024px){
  .tfd-blue-wave {opacity:.83!important;background:#e5f4fb!important;}
  .tfd-mountain-photo {
    top:114px!important;right:clamp(0px,1.2vw,30px)!important;
    width:clamp(465px,42vw,730px)!important;height:248px!important;
    background-image:url('https://upload.wikimedia.org/wikipedia/commons/f/f7/Mount_Rainier_seen_from_Enumclaw_WA.jpg')!important;
    background-position:center 31%!important;background-size:cover!important;
    opacity:.68!important;filter:saturate(.58) contrast(.96) brightness(1.09)!important;
    -webkit-mask-image:radial-gradient(ellipse 71% 74% at 59% 52%,#000 0 23%,rgba(0,0,0,.91) 46%,rgba(0,0,0,.48) 66%,transparent 95%)!important;
    mask-image:radial-gradient(ellipse 71% 74% at 59% 52%,#000 0 23%,rgba(0,0,0,.91) 46%,rgba(0,0,0,.48) 66%,transparent 95%)!important;
  }
}
/* On small screens the mountain cannot compete with the welcome lettering. */
@media (max-width:1023px){
  .tfd-mountain-photo{
    opacity:.31!important;filter:saturate(.58) brightness(1.11)!important;
    -webkit-mask-image:radial-gradient(ellipse 72% 74% at 61% 51%,#000 5%,rgba(0,0,0,.75) 48%,transparent 94%)!important;
    mask-image:radial-gradient(ellipse 72% 74% at 61% 51%,#000 5%,rgba(0,0,0,.75) 48%,transparent 94%)!important;
  }
}
/* The image slot belongs to the next real meeting; the existing calendar title
   determines --tfd-meeting-photo. Edge opacity reaches zero on EVERY side. */
.events-section #tfdUpcomingService{isolation:isolate!important;overflow:hidden!important}
.events-section #tfdUpcomingService::before{
  content:""!important;display:block!important;position:absolute!important;
  top:0!important;bottom:0!important;right:0!important;left:auto!important;
  width:64%!important;height:100%!important;
  background-image:linear-gradient(90deg,#f5faff 0%,rgba(245,250,255,.66) 25%,rgba(245,250,255,0) 74%),var(--tfd-meeting-photo,none)!important;
  background-size:cover!important;background-repeat:no-repeat!important;
  background-position:center center!important;
  opacity:.80!important;filter:saturate(.66) contrast(.92)!important;
  -webkit-mask-image:radial-gradient(ellipse 80% 80% at 66% 51%,#000 0 23%,rgba(0,0,0,.72) 46%,rgba(0,0,0,.28) 70%,transparent 100%)!important;
  mask-image:radial-gradient(ellipse 80% 80% at 66% 51%,#000 0 23%,rgba(0,0,0,.72) 46%,rgba(0,0,0,.28) 70%,transparent 100%)!important;
  border:0!important;border-radius:0!important;pointer-events:none!important;z-index:0!important;
  transition:opacity .35s ease!important;
}
.events-section #tfdUpcomingService[data-tfd-photo-type="none"]::before{opacity:0!important}
.events-section #tfdUpcomingService> *{position:relative!important;z-index:1!important}
@media (max-width:1023px){
  .events-section #tfdUpcomingService::before{width:58%!important;opacity:.48!important;}
  .events-section #tfdUpcomingService> *{max-width:88%!important}
}
@media (max-width:479px){
  .events-section #tfdUpcomingService::before{width:68%!important;opacity:.33!important;}
}
/* Very subtle branch dissolve, no rectangular boundary. */
.tfd-branch{
  -webkit-mask-image:radial-gradient(ellipse 85% 92% at 25% 19%,#000 19%,rgba(0,0,0,.72) 59%,transparent 100%)!important;
  mask-image:radial-gradient(ellipse 85% 92% at 25% 19%,#000 19%,rgba(0,0,0,.72) 59%,transparent 100%)!important;
}
/* No 3D: simple motion of the flat vector shapes. 9-second cycles spend
   most of their duration fully still, with interactive hover/focus feedback. */
@keyframes tfd-invite-arrive{0%,8%,26%,100%{transform:translateY(0)}13%,18%{transform:translateY(-6px)}}
@keyframes tfd-invite-open{0%,8%,26%,100%{transform:translateY(0) scaleY(1)}13%,18%{transform:translateY(-2px) scaleY(.72)}}
@keyframes tfd-join-left{0%,11%,30%,100%{transform:translateX(0)}17%,24%{transform:translateX(2.8px)}}
@keyframes tfd-join-right{0%,11%,30%,100%{transform:translateX(0)}17%,24%{transform:translateX(-2.8px)}}
@keyframes tfd-unlock{0%,14%,33%,100%{transform:translateY(0) rotate(0)}20%,27%{transform:translateY(-3px) rotate(-9deg)}}
@keyframes tfd-door-left-open{0%,10%,32%,100%{transform:scaleX(1)}17%,25%{transform:scaleX(.48)}}
@keyframes tfd-door-right-open{0%,10%,32%,100%{transform:scaleX(1)}17%,25%{transform:scaleX(.48)}}
@keyframes tfd-invite-tap{50%{transform:translateY(-7px)}}
@keyframes tfd-join-tap-left{50%{transform:translateX(3px)}}
@keyframes tfd-join-tap-right{50%{transform:translateX(-3px)}}
@keyframes tfd-unlock-tap{50%{transform:translateY(-3px) rotate(-10deg)}}
@keyframes tfd-door-tap{50%{transform:scaleX(.47)}}
.tfdp-shortcuts .tfd-flat-svg .tfd-door-left{transform-origin:22px 47px!important}
.tfdp-shortcuts .tfd-flat-svg .tfd-door-right{transform-origin:42px 47px!important}
.tfdp-shortcuts .tfd-flat-svg .tfd-invitation-flap{transform-origin:32px 26px!important}
html:not([data-tfd-motion="off"]) .tfdp-card.tfd-icon-animated .tfd-invitation-paper{animation:tfd-invite-arrive 9s ease-in-out infinite}
html:not([data-tfd-motion="off"]) .tfdp-card.tfd-icon-animated .tfd-invitation-flap{animation:tfd-invite-open 9s ease-in-out infinite}
html:not([data-tfd-motion="off"]) .tfdp-card.tfd-icon-animated .tfd-people-left{animation:tfd-join-left 9.6s ease-in-out infinite}
html:not([data-tfd-motion="off"]) .tfdp-card.tfd-icon-animated .tfd-people-right{animation:tfd-join-right 9.6s ease-in-out infinite}
html:not([data-tfd-motion="off"]) .tfdp-card.tfd-icon-animated .tfd-flat-lock{animation:tfd-unlock 10.2s ease-in-out infinite;transform-origin:32px 27px!important}
html:not([data-tfd-motion="off"]) .tfdp-card.tfd-icon-animated .tfd-door-left{animation:tfd-door-left-open 10.8s ease-in-out infinite}
html:not([data-tfd-motion="off"]) .tfdp-card.tfd-icon-animated .tfd-door-right{animation:tfd-door-right-open 10.8s ease-in-out infinite}
/* Tap events use a short cycle and then return to the slow idle cycle. */
html:not([data-tfd-motion="off"]) .tfdp-card.tfd-icon-tapped .tfd-invitation-paper{animation:tfd-invite-tap .74s ease-in-out 1}
html:not([data-tfd-motion="off"]) .tfdp-card.tfd-icon-tapped .tfd-people-left{animation:tfd-join-tap-left .74s ease-in-out 1}
html:not([data-tfd-motion="off"]) .tfdp-card.tfd-icon-tapped .tfd-people-right{animation:tfd-join-tap-right .74s ease-in-out 1}
html:not([data-tfd-motion="off"]) .tfdp-card.tfd-icon-tapped .tfd-flat-lock{animation:tfd-unlock-tap .74s ease-in-out 1}
html:not([data-tfd-motion="off"]) .tfdp-card.tfd-icon-tapped :is(.tfd-door-left,.tfd-door-right){animation:tfd-door-tap .74s ease-in-out 1}
@media(prefers-reduced-motion:reduce){
  html:not([data-tfd-motion="on"]) .tfdp-card .tfd-flat-svg :is(.tfd-invitation-paper,.tfd-invitation-flap,.tfd-people-left,.tfd-people-right,.tfd-flat-lock,.tfd-door-left,.tfd-door-right){animation:none!important;transition:none!important;transform:none!important}
}
html[data-tfd-motion="off"] .tfdp-card .tfd-flat-svg :is(.tfd-invitation-paper,.tfd-invitation-flap,.tfd-people-left,.tfd-people-right,.tfd-flat-lock,.tfd-door-left,.tfd-door-right){animation:none!important;transition:none!important;transform:none!important}
