/* Custom widgets (inc/elementor). */

/* ---- Crawler Track ---- */
/* The widget is pinned to the top edge of its section and draws upward into the section above. */
.elementor-widget-hge-crawler-track { position: absolute !important; left: 0; right: 0; top: 0; width: 100% !important; z-index: 1; pointer-events: none; }
.hge-lane { position: absolute; left: 0; right: 0; top: -111px; height: 112px; overflow: hidden; }
.hge-lane__laid {
  position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='14'%3E%3Cpath d='M0 0H7L10 7H24L27 0H34V14H0Z' fill='%230c0d0f'/%3E%3C/svg%3E") 0 0 / 34px 14px repeat-x;
}
/* Until the script runs (or with reduced motion), only the laid pads show. */
.hge-lane__crawler { position: absolute; left: -360px; bottom: 0; width: 338px; height: 112px; display: none; }
.hge-lane__crawler svg { position: absolute; left: 0; top: 6px; width: 338px; height: 99px; }
.hge-lane__unlaid { position: absolute; left: 318px; bottom: 0; width: 200vw; height: 14px; background: #0c0d0f; }
.hge-lane.is-ready .hge-lane__crawler { display: block; }
.hge-lane.is-rolling .hge-lane__crawler { animation: hge-crawl 5.2s cubic-bezier(.45, .05, .55, .95) forwards; }
.hge-lane.is-rolling .hge-lane__grouser { animation: hge-tread .45s linear infinite; }
.hge-lane.is-rolling .hge-lane__sprocket { transform-box: fill-box; transform-origin: center; animation: hge-turn 1.2s linear infinite; }
@keyframes hge-crawl { to { transform: translateX(calc(100vw + 720px)); } }
@keyframes hge-tread { to { stroke-dashoffset: -13; } }
@keyframes hge-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hge-lane.is-ready .hge-lane__crawler { display: none; } }

/* ---- Hero Slides ---- */
/* Fills the section it sits in, behind everything else; the shade keeps the left-hand copy readable. */
.elementor-widget-hge-hero-slides, .elementor-widget-hge-topo-lines { position: absolute !important; inset: 0; width: auto !important; margin: 0 !important; pointer-events: none; }
.elementor-widget-hge-hero-slides { z-index: 0; }
.elementor-widget-hge-hero-slides > .elementor-widget-container { height: 100%; }
.hge-slides, .hge-slide { position: absolute; inset: 0; margin: 0; }
.hge-slide { opacity: 0; transition: opacity 1.4s ease; }
.hge-slide.is-on { opacity: 1; }
.hge-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 8s linear; }
.hge-slide.is-on img { transform: scale(1); }
.hge-slides::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9, 10, 12, .9) 0%, rgba(9, 10, 12, .7) 38%, rgba(9, 10, 12, .35) 65%, rgba(9, 10, 12, .55) 100%), linear-gradient(0deg, rgba(9, 10, 12, .6), transparent 30%);
}
@media (max-width: 1024px) { .hge-slides::after { background: linear-gradient(180deg, rgba(9, 10, 12, .7), rgba(9, 10, 12, .85)); } }
/* First load: the opening photo settles in from a darker, closer view. */
.hge-js .hge-slide.is-first img { animation: hge-hero-open 2.4s cubic-bezier(.2, .6, .1, 1) both; }
.hge-js .hge-slides::after { animation: hge-fade-from-40 1.6s ease both; }
@keyframes hge-hero-open { from { transform: scale(1.14); filter: brightness(.35) saturate(.6); } to { transform: scale(1); filter: none; } }
@keyframes hge-fade-from-40 { from { opacity: .4; } to { opacity: 1; } }

/* ---- Topo Lines ---- */
.elementor-widget-hge-topo-lines { z-index: 1; }
.elementor-widget-hge-topo-lines > .elementor-widget-container { height: 100%; }
.hge-topo { position: absolute; inset: 0; width: 100%; height: 100%; }
.hge-topo path { fill: none; stroke: #fff; stroke-linejoin: round; }
.hge-topo .mi { stroke-opacity: .07; stroke-width: 1; }
.hge-topo .ix { stroke-opacity: .14; stroke-width: 1.5; }
.hge-js .hge-topo path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hge-draw 3.2s .5s cubic-bezier(.4, .1, .2, 1) forwards; }
@keyframes hge-draw { to { stroke-dashoffset: 0; } }

/* ---- Slide Caption ---- */
.hge-now { display: flex; align-items: center; gap: 22px; color: #fff; }
.hge-now__dots { display: flex; gap: 6px; }
.hge-now__dots button { position: relative; width: 34px; height: 3px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; cursor: pointer; }
.hge-now__dots button::before { content: ""; position: absolute; inset: -10px 0; } /* bigger tap target */
.hge-now__dots button::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hge-now__dots button.is-on::after { animation: hge-dot-fill var(--hge-dot-duration, 7s) linear forwards; }
.hge-now__dots button:hover, .hge-now__dots button:focus { background: rgba(255, 255, 255, .25); }
@keyframes hge-dot-fill { to { transform: scaleX(1); } }
.hge-now__text strong { display: block; font: 600 17px/1.25 var(--e-global-typography-secondary-font-family), sans-serif; }
.hge-now__text span { font-size: 14px; color: rgba(255, 255, 255, .65); }

/* ---- Ticker ---- */
.hge-ticker { overflow: hidden; white-space: nowrap; }
.hge-ticker__run { display: inline-flex; align-items: center; padding: 20px 0; animation: hge-ticker var(--hge-ticker-duration, 55s) linear infinite; }
.hge-ticker span { font: 500 21px/1 var(--e-global-typography-text-font-family), sans-serif; color: rgba(255, 255, 255, .85); padding: 0 24px; }
.hge-ticker span.is-muted { color: rgba(255, 255, 255, .45); }
.hge-ticker i { font-style: normal; font-weight: 600; font-size: 21px; line-height: 1; color: var(--e-global-color-secondary); }
@keyframes hge-ticker { to { transform: translateX(-50%); } }
@media (max-width: 767px) { .hge-ticker span, .hge-ticker i { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .hge-ticker__run { animation: none; } }
