/* TGE Cinematic Intro Loader: scoped. Front-page assets are only enqueued on the home page. */
html.tgeci-locked { overflow: hidden !important; }
#tgeci-overlay, #tgeci-overlay * { box-sizing: border-box; }
#tgeci-overlay {
  position: fixed; inset: 0; z-index: 2147482000;
  width: 100vw; width: 100dvw; height: 100vh; height: 100dvh;
  background: transparent; color: var(--tgeci-text,#fff); overflow: hidden;
  isolation: isolate; font-family: 'Montserrat', Arial, sans-serif !important; pointer-events: auto; display: none;
}
html.tgeci-active #tgeci-overlay { display:block; }
#tgeci-overlay .tgeci-veil, #tgeci-overlay .tgeci-backdrop, #tgeci-overlay .tgeci-grain {
  position:absolute; inset:0; pointer-events:none;
}
#tgeci-overlay .tgeci-veil { z-index:0; background: #080a0e; opacity:1; }
#tgeci-overlay .tgeci-backdrop {
  z-index:1; background-position:center center; background-size:cover;
  filter:blur(var(--tgeci-img-blur,0px)); opacity:var(--tgeci-img-opacity,0.25);
  transform:scale(1.045);
}
#tgeci-overlay .tgeci-grain {
  z-index:2; opacity:.12;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}
#tgeci-overlay .tgeci-center { position:absolute; inset:0; z-index:8; display:flex; align-items:center; justify-content:center; pointer-events:none; }
#tgeci-overlay .tgeci-logo {
  text-align:center; color:var(--tgeci-text,#fff); filter:drop-shadow(0px 1px 38px rgba(255,255,255,.16));
  max-width:calc(100vw - 50px); opacity:0; will-change:transform,opacity; transform-origin:center center;
}
#tgeci-overlay.tgeci-logo-ready .tgeci-logo { animation:tgeci-enter var(--tgeci-enter,900ms) cubic-bezier(.22,1,.36,1) both; }
#tgeci-overlay[data-enter="fade"].tgeci-logo-ready .tgeci-logo { animation-name:tgeci-enter-fade; }
#tgeci-overlay[data-enter="blur"].tgeci-logo-ready .tgeci-logo { animation-name:tgeci-enter-blur; }
@keyframes tgeci-enter { from {opacity:0; transform:scale(1.13) translateY(9px)} to {opacity:1;transform:scale(1) translateY(0)} }
@keyframes tgeci-enter-fade { from {opacity:0} to {opacity:1} }
@keyframes tgeci-enter-blur { from {opacity:0;filter:blur(18px);transform:scale(1.03)} to {opacity:1;filter:blur(0);transform:scale(1)} }
#tgeci-overlay .tgeci-logo img { width:min(var(--tgeci-logo-desktop,280px),calc(100vw - 50px)); max-width:100%; height:auto; display:block; margin:0 auto; object-fit:contain; }
#tgeci-overlay .tgeci-wordmark { max-width:calc(100vw - 36px); font-size:var(--tgeci-title-size,24px); font-weight:700; letter-spacing:var(--tgeci-spacing,3px); line-height:1.3; text-wrap:balance; }
#tgeci-overlay .tgeci-tagline { font-size:var(--tgeci-tagline-size,12px); letter-spacing:var(--tgeci-spacing,3px); line-height:1.6; text-transform:uppercase; margin-top:18px; opacity:.83; }
#tgeci-overlay .tgeci-letterbox {
  pointer-events:none; position:absolute; left:0; right:0; height:var(--tgeci-bar-height,11vh);
  z-index:12; background:var(--tgeci-letter,#000); transform:translateY(0);
  transition:transform var(--tgeci-bars-ms,1000ms) cubic-bezier(.19,1,.22,1);
}
#tgeci-overlay .tgeci-letterbox-top {top:0}
#tgeci-overlay .tgeci-letterbox-bottom {bottom:0}
#tgeci-overlay.tgeci-revealing .tgeci-letterbox-top { transform:translateY(-101%); }
#tgeci-overlay.tgeci-revealing .tgeci-letterbox-bottom { transform:translateY(101%); }
#tgeci-overlay .tgeci-foot {
 position:absolute; bottom:calc(var(--tgeci-bar-height,11vh) + 3.5vh); left:0; width:100%;
 display:flex; align-items:center; flex-direction:column; gap:17px; z-index:8; opacity:.9; pointer-events:none;
}
#tgeci-overlay .tgeci-loading-label { font-size:10px; line-height:1.2; font-weight:500; letter-spacing:.3em; text-transform:uppercase; color:var(--tgeci-text,#fff); text-align:center; padding:0 20px; }
#tgeci-overlay .tgeci-indicator {color:var(--tgeci-accent,#fff)}
#tgeci-overlay .tgeci-indicator-line { width:90px; height:1px; background:rgba(255,255,255,.2); }
#tgeci-overlay .tgeci-indicator-line i:first-child { width:100%; height:100%; display:block; background:currentColor; transform:scaleX(0); transform-origin:left center; will-change:transform; }
#tgeci-overlay .tgeci-indicator-line i:not(:first-child) {display:none}
#tgeci-overlay .tgeci-indicator-ring { width:27px; height:27px; border:1px solid rgba(255,255,255,.24); border-top-color:currentColor; border-radius:50%; animation:tgeci-spin 1.1s linear infinite; }
#tgeci-overlay .tgeci-indicator-ring i {display:none}
@keyframes tgeci-spin {to{transform:rotate(360deg)}}
#tgeci-overlay .tgeci-indicator-dots {display:flex; align-items:center; gap:7px;}
#tgeci-overlay .tgeci-indicator-dots i {height:5px;width:5px;background:currentColor;border-radius:50%;animation:tgeci-dot .95s ease-in-out infinite alternate;}
#tgeci-overlay .tgeci-indicator-dots i:nth-child(2) {animation-delay:.2s}
#tgeci-overlay .tgeci-indicator-dots i:nth-child(3) {animation-delay:.4s}
@keyframes tgeci-dot{from{opacity:.3;transform:scale(.7)}to{opacity:1;transform:scale(1.25)}}
#tgeci-overlay .tgeci-skip {
 position:absolute; z-index:20; right:clamp(20px,4vw,70px); bottom:clamp(20px,4vh,52px);
 background:transparent!important; box-shadow:none!important; border:0!important; border-radius:0!important;
 color:var(--tgeci-text,#fff)!important; font-size:11px!important; font-weight:500!important; line-height:1.5!important;
 letter-spacing:.2em; text-transform:uppercase; cursor:pointer; text-decoration:none;
 padding:10px!important; opacity:.65; transition:opacity .2s ease;
}
#tgeci-overlay .tgeci-skip:hover,#tgeci-overlay .tgeci-skip:focus-visible{opacity:1;outline:1px solid currentColor;outline-offset:5px}
#tgeci-overlay.tgeci-revealing .tgeci-veil,
#tgeci-overlay.tgeci-revealing .tgeci-backdrop,
#tgeci-overlay.tgeci-revealing .tgeci-grain {opacity:0!important;transition:opacity var(--tgeci-exit-ms,1000ms) ease-in-out;}
#tgeci-overlay.tgeci-revealing .tgeci-foot,#tgeci-overlay.tgeci-revealing .tgeci-skip { opacity:0; transition:opacity .22s ease;pointer-events:none; }
#tgeci-overlay.tgeci-fade-logo .tgeci-logo {animation:tgeci-exit-fade var(--tgeci-exit-ms,1000ms) ease-in both!important;}
#tgeci-overlay.tgeci-zoom-logo .tgeci-logo {animation:tgeci-exit-zoom var(--tgeci-exit-ms,1000ms) ease-in both!important;}
#tgeci-overlay .tgeci-logo.tgeci-flying{animation:none!important;opacity:1;filter:none;}
@keyframes tgeci-exit-fade{from{opacity:1}to{opacity:0}}
@keyframes tgeci-exit-zoom{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.3)}}
@media (max-width:767px){
 #tgeci-overlay .tgeci-letterbox{height:var(--tgeci-bar-mobile,8vh)}
 #tgeci-overlay .tgeci-foot{bottom:calc(var(--tgeci-bar-mobile,8vh) + 5vh)}
 #tgeci-overlay .tgeci-logo img{width:min(var(--tgeci-logo-mobile,205px),calc(100vw - 44px))}
 #tgeci-overlay .tgeci-wordmark{font-size:clamp(15px,5vw,var(--tgeci-title-size,24px))}
 #tgeci-overlay .tgeci-tagline{font-size:clamp(9px,2.3vw,var(--tgeci-tagline-size,12px))}
 #tgeci-overlay .tgeci-skip{right:12px;bottom:14px;}
}
@media(prefers-reduced-motion:reduce){
 #tgeci-overlay .tgeci-logo,#tgeci-overlay .tgeci-indicator,#tgeci-overlay .tgeci-letterbox {animation-duration:.01ms!important;transition-duration:.01ms!important}
}

/* v1.3: responsive controls are generated by the validated WP settings. */
#tgeci-overlay .tgeci-foot { width:max-content; max-width:calc(100vw - 24px); }
#tgeci-overlay .tgeci-loading-label { display:flex; flex-direction:column; gap:4px; align-items:stretch; max-width:100%; overflow-wrap:anywhere; }
#tgeci-overlay .tgeci-progress-percent { font-variant-numeric:tabular-nums; opacity:.9; }

/* v1.3.1: Intro typography is isolated from the theme and Elementor after migration.
   The main overlay uses Montserrat, while the loading label respects the per-device
   font selection generated later by wp_add_inline_style(). */
#tgeci-overlay .tgeci-logo,
#tgeci-overlay .tgeci-wordmark,
#tgeci-overlay .tgeci-tagline,
#tgeci-overlay .tgeci-foot,
#tgeci-overlay .tgeci-loading-label,
#tgeci-overlay .tgeci-loading-label .tgeci-caption-text,
#tgeci-overlay .tgeci-loading-label .tgeci-progress-percent,
#tgeci-overlay .tgeci-skip {
  font-family: inherit !important;
}
