/* ==========================================================================
   FINANCIVA TAX — B3IR3
   Hero typography / node orbit / KPI sequence repair
   ========================================================================== */

:root {
  --b3ir3-dark: #123845;
  --b3ir3-cyan: #19abc9;
  --b3ir3-green: #3be7a5;

  --b3ir3-cyan-border: rgba(37, 199, 229, .54);
  --b3ir3-cyan-glow: rgba(37, 199, 229, .15);

  --b3ir3-green-border: rgba(59, 231, 165, .80);
  --b3ir3-green-glow: rgba(59, 231, 165, .24);
}


/* ==========================================================================
   01 — HERO TITLE DESCENDERS
   ========================================================================== */

/*
   Previous line-height was tight enough to clip the lower glyph bounds of
   "Every" and "jurisdiction.".

   Keep the visual compactness, but give each rendered line its own descent
   room and force all relevant containers to allow overflow.
*/

.hero-copy,
.hero-copy h1,
.hero-copy h1.fin-hero-title-b3h,
.hero-copy h1.fin-hero-title-b3i {
  overflow:
    visible !important;

  contain:
    none !important;

  clip-path:
    none !important;
}


.hero-copy h1.fin-hero-title-b3h,
.hero-copy h1.fin-hero-title-b3i {
  line-height:
    .965 !important;

  padding-bottom:
    .09em !important;

  margin-bottom:
    24px !important;
}


.fin-hero-title-b3i
.fin-title-line {
  position:
    relative !important;

  display:
    block !important;

  overflow:
    visible !important;

  line-height:
    .965 !important;

  padding-bottom:
    .075em !important;

  margin-bottom:
    -.045em !important;

  contain:
    none !important;

  clip-path:
    none !important;
}


.fin-hero-title-b3i
.fin-title-line:last-child {
  margin-bottom:
    0 !important;
}


/* ==========================================================================
   02 — GLOBAL COVERAGE OUTER VISUAL SHADOW
   ========================================================================== */

/*
   The latest screenshot still shows a broad gray rectangular shadow around
   the overall hero graphic area. Keep the actual rounded white Global
   Coverage card, but remove the shadow/backing from its surrounding wrapper.
*/

.fin-coverage-outer-shell-b3ir3 {
  background:
    transparent !important;

  background-color:
    transparent !important;

  border:
    0 !important;

  outline:
    0 !important;

  box-shadow:
    none !important;

  filter:
    none !important;

  backdrop-filter:
    none !important;
}


/*
   Also suppress residual box shadows from the map/globe stage itself.
*/

.fin-coverage-b3i
.world-map,
.fin-coverage-b3i
[class*="world-map"],
.fin-coverage-b3i
.fin-globe-stage-clean {
  border:
    0 !important;

  outline:
    0 !important;

  box-shadow:
    none !important;

  filter:
    none !important;

  background:
    transparent !important;

  backdrop-filter:
    none !important;
}


/* ==========================================================================
   03 — COUNTRY NODES AROUND THE GLOBE
   ========================================================================== */

.fin-country-node-b3ir3 {
  position:
    absolute !important;

  left:
    50% !important;

  top:
    50% !important;

  right:
    auto !important;

  bottom:
    auto !important;

  margin:
    0 !important;

  z-index:
    12 !important;

  transform:
    translate(
      var(--b3ir3-node-x),
      var(--b3ir3-node-y)
    ) !important;

  transform-origin:
    center center !important;

  pointer-events:
    auto;

  transition:
    scale 220ms cubic-bezier(.22,1,.36,1),
    filter 220ms ease !important;
}


/*
   Coordinates are deliberately outside the globe disc.
   They form a perimeter rather than sitting over continents.
*/

.fin-node-us {
  --b3ir3-node-x:
    -235px;

  --b3ir3-node-y:
    -48px;
}


.fin-node-ca {
  --b3ir3-node-x:
    -165px;

  --b3ir3-node-y:
    -160px;
}


.fin-node-uk {
  --b3ir3-node-x:
    0px;

  --b3ir3-node-y:
    -194px;
}


.fin-node-in {
  --b3ir3-node-x:
    186px;

  --b3ir3-node-y:
    -12px;
}


.fin-node-au {
  --b3ir3-node-x:
    205px;

  --b3ir3-node-y:
    128px;
}


.fin-node-nz {
  --b3ir3-node-x:
    270px;

  --b3ir3-node-y:
    190px;
}


@media (hover:hover) and (pointer:fine) {

  .fin-country-node-b3ir3:hover {
    scale:
      1.12;

    filter:
      drop-shadow(
        0 0 10px
        rgba(37,199,229,.30)
      );
  }
}


/* ==========================================================================
   04 — REMOVE LEFTOVER OVAL DECORATIONS
   ========================================================================== */

.fin-b3ir3-remove-oval {
  display:
    none !important;
}


/*
   Older orbit-layer pseudo-elements.
*/

.fin-coverage-b3i
.fin-globe-orbit-layer::before,
.fin-coverage-b3i
.fin-globe-orbit-layer::after {
  content:
    none !important;

  display:
    none !important;
}


/* ==========================================================================
   05 — KPI ROW
   ========================================================================== */

.fin-main-kpi-row-b3i {
  background:
    transparent !important;

  box-shadow:
    none !important;

  border:
    0 !important;

  overflow:
    visible !important;
}


/*
   Explicitly opt every resolved KPI into ONE family.
*/

.fin-kpi-family-b3ir3 {
  position:
    relative !important;

  translate:
    0 0;

  transform:
    none !important;

  animation:
    fin-b3ir3-kpi-lift
    8s
    cubic-bezier(.22,1,.36,1)
    infinite !important;

  transition:
    translate 220ms cubic-bezier(.22,1,.36,1),
    scale 220ms cubic-bezier(.22,1,.36,1),
    border-color 220ms ease,
    box-shadow 240ms ease,
    background-color 220ms ease !important;
}


/*
   The sequence is one lift every 2 seconds.
*/

.fin-kpi-order-1 {
  animation-delay:
    0s !important;
}

.fin-kpi-order-2 {
  animation-delay:
    2s !important;
}

.fin-kpi-order-3 {
  animation-delay:
    4s !important;
}

.fin-kpi-order-4 {
  animation-delay:
    6s !important;
}


/*
   Only Active System receives permanent green identity.
*/

.fin-kpi-family-b3ir3.fin-active-system-only {
  border:
    1px solid
    var(--b3ir3-green-border) !important;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.98),
      rgba(234,255,247,.94)
    ) !important;

  animation:
    fin-b3ir3-green-breathe
    3.15s
    ease-in-out
    infinite,

    fin-b3ir3-kpi-lift
    8s
    cubic-bezier(.22,1,.36,1)
    infinite !important;

  animation-delay:
    0s,
    0s !important;
}


/*
   Second card explicitly participates.
*/

.fin-kpi-family-b3ir3.fin-global-position-reset {
  border:
    1px solid
    rgba(99, 184, 204, .20) !important;

  background:
    rgba(251,254,255,.94) !important;

  box-shadow:
    0 7px 21px
    rgba(27,90,123,.045) !important;

  animation:
    fin-b3ir3-kpi-lift
    8s
    cubic-bezier(.22,1,.36,1)
    infinite !important;

  animation-delay:
    2s !important;
}


.fin-kpi-family-b3ir3.fin-global-position-reset::before,
.fin-kpi-family-b3ir3.fin-global-position-reset::after {
  content:
    none !important;

  display:
    none !important;
}


/* ==========================================================================
   REAL KPI HOVER
   ========================================================================== */

@media (hover:hover) and (pointer:fine) {

  .fin-kpi-family-b3ir3:hover {
    animation-play-state:
      paused !important;

    translate:
      0 -6px !important;

    scale:
      1.012 !important;

    border-color:
      var(--b3ir3-cyan-border) !important;

    box-shadow:
      0 0 0 1px rgba(37,199,229,.12),
      0 0 26px var(--b3ir3-cyan-glow),
      0 15px 31px rgba(27,90,123,.09) !important;
  }


  .fin-kpi-family-b3ir3.fin-active-system-only:hover {
    border-color:
      rgba(67,249,178,.98) !important;

    box-shadow:
      0 0 0 1px rgba(67,249,178,.28),
      0 0 38px rgba(67,249,178,.28),
      0 16px 34px rgba(24,121,82,.11) !important;
  }
}


/* ==========================================================================
   KPI ANIMATION
   ========================================================================== */

@keyframes fin-b3ir3-kpi-lift {

  0%,
  8%,
  26%,
  100% {
    translate:
      0 0;
  }

  13%,
  20% {
    translate:
      0 -6px;
  }
}


@keyframes fin-b3ir3-green-breathe {

  0%,
  100% {
    border-color:
      rgba(59,231,165,.67);

    box-shadow:
      0 0 0 1px rgba(59,231,165,.11),
      0 0 18px rgba(59,231,165,.10),
      0 8px 21px rgba(25,121,82,.05);
  }

  50% {
    border-color:
      rgba(69,250,181,.98);

    box-shadow:
      0 0 0 1px rgba(69,250,181,.29),
      0 0 37px rgba(69,250,181,.27),
      0 12px 30px rgba(25,121,82,.09);
  }
}


/* ==========================================================================
   RESPONSIVE NODE ENVELOPE
   ========================================================================== */

@media (max-width: 1180px) {

  .fin-country-node-b3ir3 {
    transform:
      translate(
        calc(var(--b3ir3-node-x) * .82),
        calc(var(--b3ir3-node-y) * .82)
      ) !important;
  }
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  .fin-kpi-family-b3ir3,
  .fin-kpi-family-b3ir3.fin-active-system-only {
    animation:
      none !important;

    translate:
      0 0 !important;
  }
}