/* =========================================================================
   Treasureforce Site Kit — components
   Buttons, chips, tags, cards, numbers, media, positioning helpers, marquee,
   carousel, reel tabs, rings, clocks/stats, logo, service rows, map dots,
   reveal/rise/fade animations, reduced motion.

   Elementor selectors: widgets carry the class on .elementor-widget (no
   .elementor-widget-container — "optimized markup" is ON); containers carry
   it on .e-con and get padding/gap via CSS variables (--padding-*, --gap …).
   SR: Komponente (dugmad, čipovi, kartice, slike, animacije…).
   ========================================================================= */

/* =========================================================================
   1. Buttons — .tf-btn (+ --primary --secondary --ghost --lg --sm --icon --magnet)
   Works on raw <a>/<button class="tf-btn"> and on the Elementor Button widget
   (class on the widget wrapper → styles the inner .elementor-button).
   ========================================================================= */
.tf-btn:not(.elementor-widget),
.tf-btn .elementor-button,
.tf-btn.elementor-widget-button .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--tf-font);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--tf-radius-pill);
  background: transparent;
  background-color: transparent;
  color: var(--tf-text);
  fill: currentColor;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .25s, border-color .25s, color .25s, opacity .25s, transform .35s var(--tf-ease);
}
.tf-btn .elementor-button .elementor-button-content-wrapper { gap: 6px; }
.tf-btn .elementor-button .elementor-button-text { color: inherit; }

/* Primary: gold text + gold border, 12% gold wash on hover */
.tf-btn--primary:not(.elementor-widget),
.tf-btn--primary .elementor-button,
.tf-btn--primary.elementor-widget-button .elementor-button {
  color: var(--tf-accent);
  border-color: var(--tf-accent);
}
.tf-btn--primary:not(.elementor-widget):hover,
.tf-btn--primary .elementor-button:hover,
.tf-btn--primary.elementor-widget-button .elementor-button:hover,
.tf-btn--primary.elementor-widget-button .elementor-button:focus-visible {
  color: var(--tf-accent);
  background-color: rgba(212, 167, 44, .12);
  border-color: var(--tf-accent);
}
.tf-btn--primary:not(.elementor-widget):active,
.tf-btn--primary.elementor-widget-button .elementor-button:active { background-color: rgba(212, 167, 44, .22); }

/* Secondary: divider border */
.tf-btn--secondary:not(.elementor-widget),
.tf-btn--secondary .elementor-button,
.tf-btn--secondary.elementor-widget-button .elementor-button {
  color: var(--tf-text);
  border-color: var(--tf-divider);
}
.tf-btn--secondary:not(.elementor-widget):hover,
.tf-btn--secondary .elementor-button:hover,
.tf-btn--secondary.elementor-widget-button .elementor-button:hover {
  color: var(--tf-text);
  background-color: rgba(236, 235, 230, .07);
  border-color: rgba(236, 235, 230, .3);
}

/* Ghost: no border, neutral text */
.tf-btn--ghost:not(.elementor-widget),
.tf-btn--ghost .elementor-button,
.tf-btn--ghost.elementor-widget-button .elementor-button {
  color: var(--tf-n300);
  border-color: transparent;
}
.tf-btn--ghost:not(.elementor-widget):hover,
.tf-btn--ghost .elementor-button:hover,
.tf-btn--ghost.elementor-widget-button .elementor-button:hover {
  color: var(--tf-accent);
  background-color: rgba(212, 167, 44, .10);
  border-color: transparent;
}

/* Sizes */
.tf-btn--lg:not(.elementor-widget),
.tf-btn--lg .elementor-button,
.tf-btn--lg.elementor-widget-button .elementor-button { font-size: 16px; padding: 15px 30px; }
.tf-btn--sm:not(.elementor-widget),
.tf-btn--sm .elementor-button,
.tf-btn--sm.elementor-widget-button .elementor-button { font-size: 13px; padding: 9px 18px; }

/* Icon: 44px circle (carousel arrows) */
.tf-btn--icon:not(.elementor-widget),
.tf-btn--icon .elementor-button,
.tf-btn--icon.elementor-widget-button .elementor-button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  border-color: var(--tf-divider);
  border-radius: 50%;
  color: var(--tf-text);
}
.tf-btn--icon:not(.elementor-widget):hover,
.tf-btn--icon .elementor-button:hover,
.tf-btn--icon.elementor-widget-button .elementor-button:hover {
  border-color: var(--tf-accent);
  color: var(--tf-accent);
  background-color: rgba(212, 167, 44, .08);
}

/* Disabled (carousel ends, form submit) */
.tf-btn:not(.elementor-widget)[aria-disabled="true"],
.tf-btn:not(.elementor-widget):disabled,
.tf-btn .elementor-button[aria-disabled="true"],
.tf-btn.is-disabled .elementor-button {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}

/* Magnet: JS (tf-core.js) sets --tf-mx/--tf-my on the clickable element */
.tf-btn--magnet:not(.elementor-widget),
.tf-btn--magnet .elementor-button {
  transform: translate3d(var(--tf-mx, 0px), var(--tf-my, 0px), 0);
}

/* =========================================================================
   2. Chips — .tf-chips > .tf-chip   (+ .tf-chips--sm)
   Text Editor widget: <span class="tf-chip">Paid search</span>… (TinyMCE may
   wrap them in a <p>; both cases handled).
   ========================================================================= */
.tf-chips:not(.elementor-widget),
.elementor-widget.tf-chips > p,
.elementor-widget.tf-chips > .elementor-widget-container,
.elementor-widget.tf-chips > .elementor-widget-container > p {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.elementor-widget.tf-chips:not(:has(> p)):not(:has(> .elementor-widget-container)) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tf-chip {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border: 1px solid var(--tf-n800);
  border-radius: var(--tf-radius-pill);
  background: var(--tf-bg);
  font-family: var(--tf-font);
  font-size: 15px;
  line-height: 1.2;
  color: var(--tf-n300);
  cursor: default;
  white-space: nowrap;
  transition: border-color .35s, color .35s, background-color .35s;
}
.tf-chip:hover {
  border-color: var(--tf-accent);
  color: var(--tf-accent);
}
button.tf-chip, a.tf-chip { cursor: pointer; }
button.tf-chip { -webkit-appearance: none; appearance: none; margin: 0; }
.tf-chip.is-active,
.tf-chip[aria-pressed="true"] {
  border-color: var(--tf-accent);
  color: var(--tf-accent-200);
}
.tf-chips--sm .tf-chip { font-size: 14px; padding: 9px 16px; }

/* =========================================================================
   3. Tags — .tf-tags > .tf-tag (+ .tf-tag--accent)
   ========================================================================= */
.tf-tags:not(.elementor-widget),
.elementor-widget.tf-tags > p,
.elementor-widget.tf-tags > .elementor-widget-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.elementor-widget.tf-tags:not(:has(> p)):not(:has(> .elementor-widget-container)) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tf-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--tf-accent);
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--tf-accent);
  white-space: nowrap;
  text-decoration: none;
}
a.tf-tag:hover { background: rgba(212, 167, 44, .12); color: var(--tf-accent-300); }
.tf-tag--accent {
  border-color: transparent;
  background: var(--tf-accent-800);
  color: var(--tf-accent-100);
}

/* =========================================================================
   4. Cards — .tf-card (+ --accent --hover --outline)
   ========================================================================= */
.tf-card {
  position: relative;
  background-color: var(--tf-surface);
  border-radius: var(--tf-radius-md);
}
/* Plain padding only for non-Elementor cards: on a container it would override Elementor's
   --padding-* variables (and with them the responsive values and any per-element padding). */
.tf-card:not(.e-con) { padding: 36px; }
.elementor-element.tf-card {
  --border-radius: var(--tf-radius-md);
  background-color: var(--tf-surface);
  border-radius: var(--tf-radius-md);
}
.e-con.tf-card {
  --padding-top: 36px;
  --padding-right: 36px;
  --padding-bottom: 36px;
  --padding-left: 36px;
}
@media (max-width: 767px) {
  .e-con.tf-card { --padding-top: 28px; --padding-right: 28px; --padding-bottom: 28px; --padding-left: 28px; }
  .tf-card:not(.e-con) { padding: 28px; }
}
@media (max-width: 600px) {
  .e-con.tf-card { --padding-top: 24px; --padding-right: 24px; --padding-bottom: 24px; --padding-left: 24px; }
  .tf-card:not(.e-con) { padding: 24px; }
}
.tf-card--accent,
.elementor-element.tf-card--accent {
  background-color: var(--tf-accent-tint);
  box-shadow: 0 0 0 1px var(--tf-accent-700);
}
.tf-card--outline,
.elementor-element.tf-card--outline {
  background-color: transparent;
  box-shadow: 0 0 0 1px var(--tf-divider);
}
.tf-card--hover,
.elementor-element.tf-card--hover {
  transition: transform .45s var(--tf-ease), box-shadow .45s, background-color .45s;
}
.tf-card--hover:hover,
.elementor-element.tf-card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--tf-shadow-md);
}

/* =========================================================================
   5. Numbers — .tf-num (+ --dim --md)
   ========================================================================= */
.tf-num, .elementor-widget.tf-num :is(.elementor-heading-title, p) {
  font-family: var(--tf-font);
  font-weight: 500;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--tf-accent);
  font-variant-numeric: tabular-nums;
  margin: 0;
  transition: color .5s;
}
.tf-num--dim, .elementor-widget.tf-num--dim :is(.elementor-heading-title, p) { color: var(--tf-n800); }
.tf-num--md, .elementor-widget.tf-num--md :is(.elementor-heading-title, p) { font-size: 34px; }

/* =========================================================================
   6. Media — .tf-media on the Image widget (or any wrapper with an <img>)
   ========================================================================= */
.tf-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--tf-radius-md);
  background-color: #111113;
}
.tf-media img,
.elementor-widget-image.tf-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  transition: transform 1.2s var(--tf-ease-media), filter .5s;
}
.tf-media:hover img { transform: scale(1.035); }

/* Aspect ratios: the wrapper gets the ratio, the image fills it */
.tf-media--4x3 { aspect-ratio: 4 / 3; }
.tf-media--3x4 { aspect-ratio: 3 / 4; }
.tf-media--16x9 { aspect-ratio: 16 / 9; }
.tf-media--21x9 { aspect-ratio: 21 / 9; }
.tf-media--square { aspect-ratio: 1 / 1; }
:is(.tf-media--4x3, .tf-media--3x4, .tf-media--16x9, .tf-media--21x9, .tf-media--square, .tf-media--fill) :is(a, figure, picture, .elementor-widget-container) {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}
:is(.tf-media--4x3, .tf-media--3x4, .tf-media--16x9, .tf-media--21x9, .tf-media--square, .tf-media--fill) img,
.elementor-widget-image:is(.tf-media--4x3, .tf-media--3x4, .tf-media--16x9, .tf-media--21x9, .tf-media--square, .tf-media--fill) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fill: absolute inset 0 inside a .tf-rel parent */
.tf-media--fill,
.elementor-element.tf-media--fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  z-index: 0;
  border-radius: inherit;
  --container-widget-width: 100%;
}

/* Treatments */
.tf-media--grayscale img { filter: grayscale(1); }
.tf-media--grayscale:hover img { filter: grayscale(.2); }
.tf-media--lighten,
.tf-media--lighten img { mix-blend-mode: lighten; background-color: transparent; }
.tf-media--shade-bottom::after,
.tf-media--shade-right::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.tf-media--shade-bottom::after { background: linear-gradient(to top, var(--tf-bg) 0%, rgba(12, 12, 14, .35) 40%, transparent 70%); }
.tf-media--shade-right::after { background: linear-gradient(to right, transparent 60%, #000); }

/* =========================================================================
   7. Positioning helpers — .tf-rel .tf-abs-bl .tf-abs-tr .tf-overlay-num
   ========================================================================= */
.tf-rel,
.elementor-element.tf-rel { position: relative; --position: relative; }
.tf-abs-bl, .tf-abs-tr,
.elementor-element.tf-abs-bl, .elementor-element.tf-abs-tr {
  position: absolute;
  z-index: 2;
  width: auto;
  max-width: calc(100% - 40px);
  margin: 0;
  pointer-events: none;
}
.tf-abs-bl, .elementor-element.tf-abs-bl { left: 20px; bottom: 18px; }
.tf-abs-tr, .elementor-element.tf-abs-tr { right: 18px; top: 16px; text-align: right; }

.tf-overlay-num,
.elementor-element.tf-overlay-num {
  position: absolute;
  left: 20px;
  top: 18px;
  z-index: 2;
  width: auto;
  margin: 0;
  pointer-events: none;
}
.tf-overlay-num:not(.elementor-widget),
.elementor-widget.tf-overlay-num :is(.elementor-heading-title, p) {
  font-family: var(--tf-font);
  font-weight: 500;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -.04em;
  color: rgba(212, 167, 44, .9);
  margin: 0;
}

/* =========================================================================
   8. Marquee — .tf-marquee (+ --lg). JS builds .tf-marquee__track.
   ========================================================================= */
.tf-marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
  border-top: 1px solid var(--tf-divider);
  border-bottom: 1px solid var(--tf-divider);
  background-color: var(--tf-bg);
  --tf-marquee-gap: 24px;
}
.elementor-widget.tf-marquee { width: 100%; max-width: 100%; }
.tf-marquee--lg { padding: 18px 0; --tf-marquee-gap: 28px; }

/* Before JS (and no-JS): source spans in one wrapped row */
.tf-marquee:not(.is-ready) :is(p, .elementor-widget-container),
.tf-marquee:not(.is-ready):not(:has(p)) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px var(--tf-marquee-gap);
  margin: 0;
  white-space: normal;
}
.tf-marquee:not(.is-ready) span,
.tf-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--tf-marquee-gap);
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tf-n400);
}
.tf-marquee__track {
  display: inline-flex;
  flex-wrap: nowrap;
  will-change: transform;
  animation: tf-marquee var(--tf-marquee-duration, 30s) linear infinite;
}
.tf-marquee--lg .tf-marquee__track { --tf-marquee-duration: 36s; }
.tf-marquee:hover .tf-marquee__track { animation-play-state: paused; }
.tf-marquee__item { padding-right: var(--tf-marquee-gap); }
.tf-marquee__sep {
  display: inline-block;
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--tf-accent);
  transform: rotate(45deg);
}
.tf-marquee--lg .tf-marquee__item,
.tf-marquee--lg:not(.is-ready) span {
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tf-n300);
}
.tf-marquee--lg .tf-marquee__sep { width: 7px; height: 7px; }

@keyframes tf-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================================
   9. Carousel — .tf-carousel-scope > .tf-carousel > .tf-carousel__track > .tf-carousel__slide
   Arrows: Button widgets with .tf-carousel__prev / .tf-carousel__next (+ .tf-btn .tf-btn--icon)
   ========================================================================= */
.tf-carousel,
.elementor-element.tf-carousel {
  overflow: hidden;
  --overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}
.tf-carousel.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.tf-carousel.is-dragging a,
.tf-carousel.is-dragging img { pointer-events: none; }
.tf-carousel img { -webkit-user-drag: none; user-select: none; }

.tf-carousel__track:not(.e-con-boxed),
.tf-carousel__track.e-con-boxed > .e-con-inner,
.elementor-element.tf-carousel__track {
  display: flex;
  --display: flex;
  flex-direction: row;
  --flex-direction: row;
  flex-wrap: nowrap;
  --flex-wrap: nowrap;
  --flex-wrap-mobile: nowrap;
  gap: 16px;
  --gap: 16px;
  --row-gap: 16px;
  --column-gap: 16px;
  --widgets-spacing: 16px;
}
.tf-carousel__track,
.elementor-element.tf-carousel__track {
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  transition: transform .7s var(--tf-ease);
  will-change: transform;
}
.tf-carousel.is-dragging .tf-carousel__track { transition: none; }

.tf-carousel__slide,
.elementor-element.tf-carousel__slide {
  flex: 0 0 min(520px, 80vw);
  --flex-grow: 0;
  --flex-shrink: 0;
  --flex-basis: min(520px, 80vw);
  width: min(520px, 80vw);
  --width: min(520px, 80vw);
  max-width: none;
  min-height: 320px;
  --min-height: 320px;
  transition: background-color .5s, box-shadow .5s, opacity .5s;
}
.tf-carousel .tf-carousel__slide.is-active {
  background-color: var(--tf-accent-tint);
  box-shadow: 0 0 0 1px var(--tf-accent-700);
}
.tf-carousel .tf-carousel__slide.tf-card:not(.is-active) { box-shadow: var(--tf-shadow-sm); }
.tf-carousel .tf-carousel__slide:not(.is-active) .tf-num:not(.elementor-widget),
.tf-carousel .tf-carousel__slide:not(.is-active) .elementor-widget.tf-num :is(.elementor-heading-title, p) { color: var(--tf-n800); }

.tf-carousel__prev, .tf-carousel__next { flex: none; }

/* =========================================================================
   10. Reel — .tf-reel on the Nested Tabs widget (+ .tf-reel__meta, .tf-reel__art)
   ========================================================================= */
.elementor-widget-n-tabs.tf-reel {
  --n-tabs-heading-justify-content: flex-start;
  --n-tabs-title-gap: 8px;
  --n-tabs-gap: 28px;
  --n-tabs-title-font-size: 12px;
  --n-tabs-title-padding-top: 8px;
  --n-tabs-title-padding-bottom: 8px;
  --n-tabs-title-padding-left: 14px;
  --n-tabs-title-padding-right: 14px;
  --n-tabs-title-border-radius: 99px;
  --n-tabs-title-flex-grow: 0;
  --n-tabs-title-color: var(--tf-n400);
  --n-tabs-title-color-hover: var(--tf-text);
  --n-tabs-title-color-active: var(--tf-bg);
  --n-tabs-title-background-color: transparent;
  --n-tabs-title-background-color-hover: transparent;
  --n-tabs-title-background-color-active: var(--tf-accent);
  --n-tabs-title-transition: .25s;
  --n-tabs-border-width: 0px;
}
.elementor-widget-n-tabs.tf-reel .e-n-tab-title {
  border: 1px solid rgba(236, 235, 230, .19);
  border-radius: 99px;
  font-family: var(--tf-font);
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}
.elementor-widget-n-tabs.tf-reel .e-n-tab-title[aria-selected="true"] {
  border-color: var(--tf-accent);
  background-color: var(--tf-accent);
  color: var(--tf-bg);
}
.elementor-widget-n-tabs.tf-reel .e-n-tab-title[aria-selected="false"]:hover { border-color: rgba(236, 235, 230, .45); }
.elementor-widget-n-tabs.tf-reel .e-n-tab-title-text { font-size: 12px; }
.elementor-widget-n-tabs.tf-reel .e-n-tabs-content > .e-con { --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; }

/* Cross-fade of the newly active panel (class toggled by tf-reel.js) */
.tf-reel .e-n-tabs-content > .e-con.is-entering { animation: tf-reel-in .6s var(--tf-ease) both; }
.tf-reel .e-n-tabs-content > .e-con.is-entering .tf-reel__art :is(img, .tf-media) { animation: tf-reel-art 1.2s var(--tf-ease) both; }
@keyframes tf-reel-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes tf-reel-art {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1); }
}

/* Art panel */
.tf-reel__art,
.elementor-element.tf-reel__art {
  position: relative;
  --position: relative;
  overflow: hidden;
  --overflow: hidden;
  border: 1px solid var(--tf-divider);
  border-radius: var(--tf-radius-lg);
  --border-radius: var(--tf-radius-lg);
  background: linear-gradient(135deg, #1c1608, #0c0c0e);
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
}
.tf-reel__art .tf-media { border-radius: 0; }

/* Meta (progress bars + counter, injected by JS) */
.tf-reel__meta,
.elementor-widget.tf-reel__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 2px;
}
.tf-reel__meta > p:empty { display: none; }
.tf-reel__bars { display: flex; gap: 10px; align-items: center; }
/* The bars are <button>s: the kit's global button style (.elementor-kit-8 button, :hover/:focus = 0,2,1)
   would turn them into gold pills, so the reset carries .elementor / .elementor-kit-8 (0,3,0 with states). */
.tf-reel__bar,
.elementor .tf-reel__bar,
.elementor-kit-8 .tf-reel__bar,
.elementor .tf-reel__bar:is(:hover, :focus),
.elementor-kit-8 .tf-reel__bar:is(:hover, :focus) {
  display: block;
  width: 56px;
  height: 2px;
  min-height: 0;
  overflow: hidden;
  background: var(--tf-n800);
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  cursor: pointer;
}
.tf-reel__bar > span {
  display: block;
  height: 100%;
  background: var(--tf-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--tf-ease);
}
.tf-reel__bar.is-active > span { transform: scaleX(1); }
.tf-reel__count {
  margin-left: 8px;
  font-size: 12px;
  color: var(--tf-n500);
  font-variant-numeric: tabular-nums;
}

/* Stage variant (Approach): vertical list of large tab titles "01  Name  when" + accent panel.
   Nested Tabs with classes "tf-reel tf-reel--stages"; panels = .tf-card.tf-card--accent.tf-stage-panel
   with an optional giant ghost number (Heading .tf-stage-ghost). Title HTML:
   <span class="tf-stage-tab__num">01</span><span class="tf-stage-tab__name">...</span><span class="tf-stage-tab__when">...</span> */
.elementor-widget-n-tabs.tf-reel.tf-reel--stages {
  --n-tabs-gap: 48px;
  --n-tabs-title-gap: 4px;
  --n-tabs-title-padding-top: 16px;
  --n-tabs-title-padding-bottom: 16px;
  --n-tabs-title-padding-left: 16px;
  --n-tabs-title-padding-right: 16px;
  --n-tabs-title-border-radius: var(--tf-radius-md);
  --n-tabs-title-justify-content: stretch;
  --n-tabs-title-color: var(--tf-n400);
  --n-tabs-title-color-hover: var(--tf-text);
  --n-tabs-title-color-active: var(--tf-text);
  --n-tabs-title-background-color-hover: rgba(236, 235, 230, .03);
  --n-tabs-title-background-color-active: rgba(212, 167, 44, .08);
}
.elementor-widget-n-tabs.tf-reel.tf-reel--stages .e-n-tab-title {
  border: 1px solid transparent;
  border-radius: var(--tf-radius-md);
  width: 100%;
  text-align: start;
}
.elementor-widget-n-tabs.tf-reel.tf-reel--stages .e-n-tab-title[aria-selected="true"] {
  border-color: var(--tf-accent-700);
  background-color: rgba(212, 167, 44, .08);
  color: var(--tf-text);
}
.elementor-widget-n-tabs.tf-reel.tf-reel--stages .e-n-tab-title[aria-selected="false"]:hover { border-color: var(--tf-divider); }
.elementor-widget-n-tabs.tf-reel.tf-reel--stages .e-n-tab-title-text {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  font-size: 19px;
  text-align: start;
}
.tf-stage-tab__num { font-size: 12px; color: var(--tf-accent); font-variant-numeric: tabular-nums; }
.tf-stage-tab__name { font-size: 19px; line-height: 1.2; }
.tf-stage-tab__when { font-size: 12px; color: var(--tf-n500); white-space: nowrap; }
.e-con.tf-stage-panel { overflow: hidden; --overflow: hidden; min-height: 420px; --min-height: 420px; width: 100%; }
.tf-stage-panel > .elementor-element { position: relative; z-index: 1; }
.elementor-widget.tf-stage-ghost,
.tf-stage-panel > .elementor-widget.tf-stage-ghost {
  position: absolute;
  right: -40px;
  top: -40px;
  z-index: 0;
  width: auto;
  margin: 0;
  pointer-events: none;
}
.tf-stage-ghost .elementor-heading-title {
  margin: 0;
  font-size: 220px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.06em;
  color: rgba(212, 167, 44, .07);
}
@media (max-width: 1024px) {
  .elementor-widget-n-tabs.tf-reel.tf-reel--stages { --n-tabs-gap: 20px; }
  .elementor-widget-n-tabs.tf-reel.tf-reel--stages .e-n-tabs-heading { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .elementor-widget-n-tabs.tf-reel.tf-reel--stages .e-n-tab-title-text { grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; }
  .tf-stage-tab__when { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .elementor-widget-n-tabs.tf-reel.tf-reel--stages { --n-tabs-title-padding-top: 12px; --n-tabs-title-padding-bottom: 12px; --n-tabs-title-padding-left: 12px; --n-tabs-title-padding-right: 12px; }
  .elementor-widget-n-tabs.tf-reel.tf-reel--stages .e-n-tabs-heading { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-stage-tab__name { font-size: 17px; }
  .e-con.tf-stage-panel { min-height: 0; --min-height: 0px; }
  .tf-stage-ghost .elementor-heading-title { font-size: 150px; }
}

/* =========================================================================
   11. Rings — .tf-rings (spinning circles, CTA) and .tf-rings--diamond (404)
   ========================================================================= */
.tf-rings,
.elementor-element.tf-rings {
  position: relative;
  --position: relative;
  overflow: hidden;
  --overflow: hidden;
  isolation: isolate;
}
.tf-rings::before,
.tf-rings::after,
.elementor-element.tf-rings::before,
.elementor-element.tf-rings::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  z-index: 0;
  border: 0;
  border-radius: 50%;
  outline: 1px solid var(--tf-accent-900);
  outline-offset: -5px;
  opacity: 1;
  mix-blend-mode: normal;
  pointer-events: none;
}
/* Outer ring 900px with an 8px gold dot (outline drawn 4–5px inside the box). */
.tf-rings::before,
.elementor-element.tf-rings::before {
  width: 910px;
  height: 910px;
  margin: -455px 0 0 -455px;
  background: radial-gradient(circle at 50% 5px, var(--tf-accent) 0 3.6px, transparent 4.2px);
  animation: tf-spin 90s linear infinite;
}
/* Inner ring 620px with a 6px pale-gold dot, reverse. */
.tf-rings::after,
.elementor-element.tf-rings::after {
  width: 630px;
  height: 630px;
  margin: -315px 0 0 -315px;
  background: radial-gradient(circle at 50% 5px, var(--tf-accent-300) 0 2.6px, transparent 3.2px);
  animation: tf-spin 60s linear infinite reverse;
}
.tf-rings > *,
.elementor-element.tf-rings > :not(.elementor-background-video-container) { position: relative; z-index: 1; }

/* Diamond variant (404): rotated squares 720 / 480, no dots */
.tf-rings--diamond::before,
.tf-rings--diamond::after,
.elementor-element.tf-rings--diamond::before,
.elementor-element.tf-rings--diamond::after {
  border-radius: 0;
  background: none;
  outline-offset: 0;
}
.tf-rings--diamond::before,
.elementor-element.tf-rings--diamond::before { width: 720px; height: 720px; margin: -360px 0 0 -360px; animation: tf-spin-diamond 100s linear infinite; }
.tf-rings--diamond::after,
.elementor-element.tf-rings--diamond::after { width: 480px; height: 480px; margin: -240px 0 0 -240px; animation: tf-spin-diamond 70s linear infinite reverse; }

@keyframes tf-spin { to { transform: rotate(360deg); } }
@keyframes tf-spin-diamond {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}

/* =========================================================================
   12. Clocks & stats — .tf-clock (from [tf_clock]), .tf-stat, .tf-stat__value, .tf-stat--accent
   ========================================================================= */
.tf-clock { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tf-clock-label {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--tf-text);
  white-space: nowrap;
}
.tf-clock-label__text { color: inherit; }

.tf-stat,
.elementor-element.tf-stat {
  --gap: 2px;
  --row-gap: 2px;
  gap: 2px;
}
.tf-stat .tf-caption,
.tf-stat .elementor-widget.tf-caption :is(.elementor-heading-title, p) { color: var(--tf-n500); margin: 0; }
.tf-stat__value,
.elementor-widget.tf-stat__value,
.tf-stat__value .tf-clock {
  font-family: var(--tf-font);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: var(--tf-text);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.tf-stat--accent .tf-stat__value,
.tf-stat--accent .tf-stat__value .tf-clock,
.tf-stat--accent .elementor-widget.tf-stat__value { color: var(--tf-accent); }

/* =========================================================================
   13. Logo — [tf_logo] → .tf-logo .tf-logo__mark .tf-logo__bar .tf-logo__word
   ========================================================================= */
.tf-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--tf-text);
  text-decoration: none;
  line-height: 1;
}
.tf-logo:hover, .tf-logo:focus-visible { color: var(--tf-text); }
.tf-logo__mark {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1.5px solid currentColor;
  font-family: var(--tf-font);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
}
.tf-logo__mark > span { text-align: center; }
.tf-logo__mark > .tf-logo__bar { height: 60%; background: currentColor; }
.tf-logo__word {
  font-family: var(--tf-font);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .14em;
}
.tf-logo--s32 .tf-logo__mark { width: 32px; height: 32px; font-size: 13px; }
.tf-logo--s44 .tf-logo__mark { width: 44px; height: 44px; font-size: 17px; }
.tf-logo--s52 .tf-logo__mark { width: 52px; height: 52px; font-size: 21px; }
.tf-logo--footer .tf-logo__mark > span:first-child { color: var(--tf-accent); }
.tf-logo--footer { gap: 14px; }

/* =========================================================================
   14. Service row (design-1 list) — .tf-service-row (raw HTML: num / title / text / arrow)
   ========================================================================= */
.tf-service-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1.3fr) 48px;
  gap: 28px;
  align-items: center;
  padding: 34px 12px;
  border-bottom: 1px solid var(--tf-divider);
  color: inherit;
  text-decoration: none;
  transition: background-color .35s, padding-left .35s;
}
.tf-service-row:hover { color: inherit; background-color: rgba(212, 167, 44, .04); padding-left: 24px; }
.tf-service-row__num { font-size: 13px; color: var(--tf-accent); font-variant-numeric: tabular-nums; }
.tf-service-row__title { font-weight: 500; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.02em; line-height: 1.1; }
.tf-service-row__text { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.55; color: var(--tf-n400); }
.tf-service-row__arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--tf-divider);
  border-radius: 50%;
  font-size: 16px;
  color: var(--tf-n300);
  transition: transform .35s, border-color .35s, background-color .35s;
}
.tf-service-row:hover .tf-service-row__arrow { transform: translateX(4px); border-color: var(--tf-accent); background-color: var(--tf-accent); color: var(--tf-bg); }

/* =========================================================================
   15. Map dots (optional, design-1) — .tf-map-dots > .tf-map-dot[style="left:x%;top:y%"]
   ========================================================================= */
.tf-map-dots {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--tf-divider);
  border-radius: var(--tf-radius-lg);
  background-color: var(--tf-surface);
  background-image: radial-gradient(rgba(236, 235, 230, .16) 1px, transparent 1px);
  background-size: 14px 14px;
}
.tf-map-dots::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 58% 42%, rgba(212, 167, 44, .18), transparent 45%);
  pointer-events: none;
}
.tf-map-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--tf-n300);
}
.tf-map-dot--accent { background: var(--tf-accent); }
.tf-map-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px;
  border: 1px solid var(--tf-accent);
  border-radius: 50%;
  animation: tf-pulse 2.8s ease-out infinite;
}
.tf-map-dot__label {
  position: absolute;
  left: 14px;
  top: -5px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--tf-n300);
}
.tf-map-dot__label .tf-clock { color: var(--tf-n600); }
@keyframes tf-pulse {
  0% { transform: scale(.5); opacity: .9; }
  100% { transform: scale(3); opacity: 0; }
}

/* =========================================================================
   16. Motion — .tf-reveal (+ --d1..d4), .tf-rise (+ --d1..d6), .tf-fadein (+ --d1..d6)
   ========================================================================= */
/* Reveal on scroll: hidden only when JS is running (html.tf-js) */
.tf-js .tf-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--tf-ease), transform .9s var(--tf-ease);
}
.tf-js .tf-reveal.is-in { opacity: 1; transform: none; animation: none; }
/* Safety net: html.tf-js is set by an inline head script, html.tf-js-ready by tf-core.js. If tf-core.js
   never loads (blocked/404), nothing would ever add .is-in, so after 3s the element shows anyway.
   When tf-core.js is alive this rule is inert and scroll-reveal works normally (hidden tabs are
   handled in JS via load/visibilitychange). */
.tf-js:not(.tf-js-ready) .tf-reveal:not(.is-in) { animation: tf-reveal-fallback .6s ease 3s forwards; }
@keyframes tf-reveal-fallback { to { opacity: 1; transform: none; } }
/* set by tf-core.js when the element is revealed while the tab is hidden (no transition runs there) */
.tf-js .tf-reveal.tf-reveal--instant { transition: none; animation: none; }
.tf-reveal--d1 { transition-delay: 90ms; }
.tf-reveal--d2 { transition-delay: 180ms; }
.tf-reveal--d3 { transition-delay: 270ms; }
.tf-reveal--d4 { transition-delay: 360ms; }

/* Load-time rise (hero lines) — 0.15s delay steps */
.tf-rise { animation: tf-rise 1.1s var(--tf-ease) both; }
.tf-rise--d1 { animation-delay: .15s; }
.tf-rise--d2 { animation-delay: .3s; }
.tf-rise--d3 { animation-delay: .45s; }
.tf-rise--d4 { animation-delay: .6s; }
.tf-rise--d5 { animation-delay: .75s; }
.tf-rise--d6 { animation-delay: .9s; }

/* Load-time fade — 0.25s delay steps (d4 = 1s like the hero copy in the design) */
.tf-fadein { animation: tf-fadein 1.2s ease both; }
.tf-fadein--d1 { animation-delay: .25s; }
.tf-fadein--d2 { animation-delay: .5s; }
.tf-fadein--d3 { animation-delay: .75s; }
.tf-fadein--d4 { animation-delay: 1s; }
.tf-fadein--d5 { animation-delay: 1.25s; }
.tf-fadein--d6 { animation-delay: 1.5s; }

@keyframes tf-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes tf-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes tf-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
@keyframes tf-drift {
  from { transform: scale(1.045) translate3d(0, 0, 0); }
  to { transform: scale(1.09) translate3d(-1%, .6%, 0); }
}

/* =========================================================================
   17. Content patterns (promoted from page CSS) - lists, steps, FAQ, tiles, related-service box
   ========================================================================= */
/* Diamond bullet list: <ul class="tf-list--diamond"> or a Text Editor widget with that class.
   Aliases already used by pages: .tf-stage-list (Approach), .tf-fit__list (service "fit" cards).
   .tf-list--diamond-outline / .tf-fit--no = outlined diamonds, muted text. */
ul.tf-list--diamond,
.tf-list--diamond ul,
.tf-stage-list,
.tf-fit__list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
:is(.tf-list--diamond, .tf-stage-list, .tf-fit__list) li { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 16px; line-height: 1.45; }
:is(.tf-list--diamond, .tf-stage-list, .tf-fit__list) li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--tf-accent);
}
:is(.tf-list--diamond-outline, .tf-fit--no) li { color: var(--tf-n400); }
:is(.tf-list--diamond-outline, .tf-fit--no) li::before { background: none; border: 1px solid var(--tf-n600); }

/* Numbered steps: <ol class="tf-steps"><li><span class="tf-steps__n">01</span>Text</li>...</ol> */
.tf-steps { list-style: none; margin: 0; padding: 0; }
.tf-steps li { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: var(--tf-n300); }
.tf-steps__n { flex: none; margin-top: 3px; font-size: 12px; color: var(--tf-accent); font-variant-numeric: tabular-nums; }

/* FAQ: Nested Accordion widget with class tf-faq; optional number <span class="tf-faq__n">01</span> in the title */
.tf-faq .e-n-accordion { border-top: 1px solid var(--tf-divider); gap: 0; --n-accordion-item-title-space-between: 0px; }
.tf-faq .e-n-accordion-item { border-bottom: 1px solid var(--tf-divider); }
.tf-faq .e-n-accordion-item-title {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 8px; border: 0; border-radius: 0; background: none; cursor: pointer; list-style: none;
}
.tf-faq .e-n-accordion-item-title::-webkit-details-marker { display: none; }
.tf-faq .e-n-accordion-item-title-header { flex: 1 1 auto; min-width: 0; }
.tf-faq .e-n-accordion-item-title-text {
  display: flex; align-items: center; gap: 20px; margin: 0;
  font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; line-height: 1.25; letter-spacing: -.015em; color: var(--tf-text);
}
.tf-faq__n { flex: 0 0 48px; font-size: 13px; letter-spacing: 0; color: var(--tf-accent); }
.tf-faq .e-n-accordion-item-title-icon {
  order: 2; flex: none; display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--tf-divider); border-radius: 50%; color: var(--tf-text);
  transition: transform .4s, background-color .4s, color .4s;
}
.tf-faq .e-n-accordion-item-title-icon svg { width: 12px; height: 12px; fill: currentColor; }
.tf-faq .e-n-accordion-item[open] > .e-n-accordion-item-title .e-n-accordion-item-title-icon {
  transform: rotate(45deg); background-color: var(--tf-accent); border-color: var(--tf-accent); color: #0c0c0e;
}
.tf-faq .e-n-accordion-item > .e-con { border: 0; --padding-top: 0px; --padding-right: 8px; --padding-bottom: 24px; --padding-left: 76px; }
.tf-faq .e-n-accordion-item > .e-con .tf-body-lg p { max-width: 64ch; line-height: 1.6; margin: 0; }
@media (max-width: 767px) {
  .tf-faq__n { flex-basis: 28px; }
  .tf-faq .e-n-accordion-item-title-text { gap: 12px; }
  .tf-faq .e-n-accordion-item > .e-con { --padding-left: 48px; }
}

/* Tile: black card, number/label on top, text at the bottom (About / Approach / Careers).
   Use with tf-card (+ --outline); tf-tile--image adds a dimmed tf-media--fill image + dark gradient. */
.e-con.tf-tile {
  overflow: hidden;
  background-color: #000;
  border-radius: var(--tf-radius-lg);
  --border-radius: var(--tf-radius-lg);
  --padding-top: 28px; --padding-right: 28px; --padding-bottom: 28px; --padding-left: 28px;
  transition: box-shadow .4s;
}
.e-con.tf-tile:hover { box-shadow: 0 0 0 1px var(--tf-accent-700); }
.tf-tile .elementor-widget.tf-body p { font-size: 14px; color: var(--tf-n300); margin: 0; }
.tf-tile .elementor-widget.tf-caption p { margin: 0; }
.tf-tile .elementor-widget.tf-caption.tf-accent p { color: var(--tf-accent); }
.tf-tile--image > .elementor-element:not(.tf-media--fill) { position: relative; z-index: 2; }
.tf-tile--image > .tf-media--fill { opacity: .55; }
.tf-tile--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .95), rgba(0, 0, 0, .2));
}

/* "Related service" box inside a post body (raw HTML in the post: div.tf-card.tf-card--accent.tf-related-service) */
.tf-prose .tf-related-service > * { margin: 0 0 12px; }
.tf-prose .tf-related-service > :last-child { margin-bottom: 0; }

/* =========================================================================
   18. Reduced motion - show everything, stop everything
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tf-js .tf-reveal,
  .tf-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tf-rise, .tf-fadein { animation: none !important; opacity: 1 !important; transform: none !important; }
  .tf-marquee__track { animation: none !important; transform: none !important; }
  .tf-marquee { overflow-x: auto; }
  .tf-rings::before, .tf-rings::after,
  .elementor-element.tf-rings::before, .elementor-element.tf-rings::after,
  .tf-map-dot::before { animation: none !important; }
  .tf-carousel__track, .tf-reel__bar > span { transition: none !important; }
  .tf-reel .e-n-tabs-content > .e-con.is-entering,
  .tf-reel .e-n-tabs-content > .e-con.is-entering .tf-reel__art :is(img, .tf-media) { animation: none !important; }
  .tf-media img { transition: none !important; transform: none !important; }
  .tf-btn--magnet:not(.elementor-widget), .tf-btn--magnet .elementor-button { transform: none !important; }
  .tf-card--hover:hover { transform: none; }
}
