/* The existing Korean circle and the cards share one stacking context.
   Rear cards sit under the circle, front cards over it; the hero cars sit above both. */
.te-home-hero-emblem.te-hero-emblem .loader {
  z-index: 2;
}

.te-hero-orbit-stage {
  position: absolute;
  top: 0;
  left: 40%;
  width: 350px;
  height: 350px;
  pointer-events: auto;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
@media (min-width: 961px) {
  .te-home-hero-emblem.te-hero-emblem .loader,
  .te-hero-orbit-stage {
    left: calc(40% + clamp(34px, 4vw, 72px));
  }
}
.te-hero-orbit-stage.is-dragging { cursor: grabbing; }
.te-hero-orbit-stage:focus-visible {
  outline: 2px solid #245f58;
  outline-offset: 4px;
  border-radius: 50%;
}
.te-hero-orbit-stage::before,
.te-hero-orbit-front--far {
  content: "";
  position: absolute;
  left: -43%;
  top: 12%;
  width: 218%;
  height: 74%;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 255, 255, .32);
  transform: rotate(-8deg);
  pointer-events: none;
}
.te-hero-orbit-stage::after,
.te-hero-orbit-front--near {
  content: "";
  position: absolute;
  left: -30%;
  top: 0;
  width: 210%;
  height: 70%;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, .26);
  transform: rotate(-5deg);
  pointer-events: none;
}
.te-hero-orbit-stage::before,
.te-hero-orbit-stage::after { z-index: 0; }

/* Only the parts crossing the flag come forward; cards remain above them. */
.te-hero-orbit-front {
  position: absolute;
  inset: 0;
  z-index: 3;
  clip-path: circle(47% at 50% 50%);
  pointer-events: none;
}
.te-hero-orbit-front--far { clip-path: inset(0 0 50% 0); }
.te-hero-orbit-front--near { clip-path: inset(50% 0 0 0); }

/* Separate circles remain whole even at the rounded edge of an orbit. */
.te-hero-orbit-dot {
  position: absolute;
  z-index: 2;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--orbit-dot-color);
  box-shadow: 0 0 0 3px var(--orbit-dot-glow), 0 0 10px 2px var(--orbit-dot-glow);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.te-hero-orbit-dot--far {
  --orbit-dot-color: #ed7a28;
  --orbit-dot-glow: rgba(237, 122, 40, .25);
  left: 116%;
  top: 10%;
}
.te-hero-orbit-dot--left,
.te-hero-orbit-dot--right {
  --orbit-dot-color: #e00032;
  --orbit-dot-glow: rgba(224, 0, 50, .23);
}
.te-hero-orbit-dot--left { left: -42%; top: 64%; }
.te-hero-orbit-dot--right { left: 170%; top: 42%; }

.te-hero-orbit-card {
  --orbit-x: 36%;
  --orbit-y: 30%;
  --orbit-w: 43%;
  --orbit-r: 0deg;
  --orbit-scale: .68;
  --orbit-opacity: 0;
  position: absolute;
  left: var(--orbit-x);
  top: var(--orbit-y);
  width: var(--orbit-w);
  z-index: 1;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 11px;
  background: #fbfcfa;
  box-shadow: 0 12px 30px rgba(27, 45, 47, .17), 0 2px 7px rgba(27, 45, 47, .1);
  color: #152526;
  opacity: var(--orbit-opacity);
  transform: rotate(var(--orbit-r)) scale(var(--orbit-scale));
  transform-origin: center;
  transition: left .7s cubic-bezier(.2, .7, .2, 1), top .7s cubic-bezier(.2, .7, .2, 1),
    width .7s cubic-bezier(.2, .7, .2, 1), opacity .42s ease,
    transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .2s ease;
  pointer-events: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  will-change: transform, opacity;
}
.te-hero-orbit-stage.is-orbiting .te-hero-orbit-card {
  transition: width .7s cubic-bezier(.2, .7, .2, 1),
    transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .2s ease;
}
.te-hero-orbit-card[data-orbit-slot="0"] {
  --orbit-x: -30%; --orbit-y: -13%; --orbit-w: 55%;
  --orbit-r: 7deg; --orbit-scale: .96; --orbit-opacity: .82;
  pointer-events: auto;
}
.te-hero-orbit-card[data-orbit-slot="1"] {
  --orbit-x: -42%; --orbit-y: 40%; --orbit-w: 50%;
  --orbit-r: -8deg; --orbit-scale: .95; --orbit-opacity: .72;
  pointer-events: auto;
}
.te-hero-orbit-card[data-orbit-slot="2"] {
  --orbit-x: 91%; --orbit-y: 30%; --orbit-w: 70%;
  --orbit-r: 6deg; --orbit-scale: 1; --orbit-opacity: 1;
  z-index: 4;
  pointer-events: auto;
}
.te-hero-orbit-card[data-orbit-slot="3"] {
  --orbit-x: 144%; --orbit-y: -13%; --orbit-w: 55%;
  --orbit-r: -4deg; --orbit-scale: .98; --orbit-opacity: .96;
  z-index: 4;
  pointer-events: auto;
}

.te-hero-orbit-card:hover,
.te-hero-orbit-card:focus-visible {
  box-shadow: 0 16px 34px rgba(27, 45, 47, .31), 0 3px 9px rgba(27, 45, 47, .16);
}
.te-hero-orbit-card:focus-visible {
  outline: 3px solid #194e49;
  outline-offset: 3px;
}
.te-hero-orbit-photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 2.1 / 1;
  background: #f2f6f3;
}
.te-hero-orbit-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 57%;
  filter: brightness(1.17) contrast(.88) saturate(.82);
  pointer-events: none;
}
.te-hero-orbit-body {
  display: block;
  padding: 8px 10px 9px;
  font: 600 12px/1.2 Arial, sans-serif;
  text-shadow: none;
}
.te-hero-orbit-name {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.te-hero-orbit-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #58716b;
}
.te-hero-orbit-badge {
  color: #166856;
  font-weight: 700;
  white-space: nowrap;
}
.te-hero-orbit-badge span {
  display: inline-grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 50%;
  background: #36a957;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

/* Keep the combined hero-car photograph and the copy in front of the orbit. */
.te-hero-motion .main-banner-image span img { z-index: 4; }
.te-hero-motion .main-banner-left,
.te-hero-motion .main-banner-advantages,
.te-hero-motion .main-banner-bottom { z-index: 5; }

@media (min-width: 1241px) {
  .te-hero-motion.te-hero-has-orbit .main-banner-image { margin-top: 235px; }
  .te-hero-motion.te-hero-has-orbit .main-banner-bottom { margin-top: 16px; }
}
@media (min-width: 961px) and (max-width: 1240px) {
  .te-hero-motion.te-hero-has-orbit .main-banner-image { margin-top: 195px; }
}
@media (min-width: 961px) and (max-width: 1100px) {
  .te-hero-orbit-stage::before,
  .te-hero-orbit-front--far {
    left: -24%; top: 12%; width: 180%; height: 74%;
  }
  .te-hero-orbit-stage::after,
  .te-hero-orbit-front--near {
    left: -18%; top: 0; width: 174%; height: 70%;
  }
  .te-hero-orbit-dot { display: none; }
  .te-hero-orbit-card[data-orbit-slot="0"] { --orbit-x: -23%; --orbit-w: 50%; }
  .te-hero-orbit-card[data-orbit-slot="1"] { --orbit-x: -31%; --orbit-w: 47%; }
  .te-hero-orbit-card[data-orbit-slot="2"] { --orbit-x: 80%; --orbit-w: 63%; }
  .te-hero-orbit-card[data-orbit-slot="3"] { --orbit-x: 110%; --orbit-w: 48%; }
}

@media (max-width: 960px) {
  .te-home-hero-emblem.te-hero-emblem .loader,
  .te-hero-orbit-stage {
    top: 12px;
    left: auto;
    right: 4vw;
    width: clamp(220px, 26vw, 250px);
    height: clamp(220px, 26vw, 250px);
  }
  .te-hero-orbit-stage::before,
  .te-hero-orbit-front--far {
    left: -30%; top: 12%; width: 160%; height: 74%;
  }
  .te-hero-orbit-stage::after,
  .te-hero-orbit-front--near {
    left: -23%; top: 0; width: 146%; height: 70%;
  }
  .te-hero-orbit-dot { display: none; }
  .te-hero-orbit-card[data-orbit-slot="0"] {
    --orbit-x: 55%; --orbit-y: -5%; --orbit-w: 51%;
  }
  .te-hero-orbit-card[data-orbit-slot="1"] {
    --orbit-x: -12%; --orbit-y: 68%; --orbit-w: 60%;
  }
  .te-hero-orbit-card[data-orbit-slot="2"] {
    --orbit-x: 29%; --orbit-y: 72%; --orbit-w: 70%;
  }
  .te-hero-orbit-card[data-orbit-slot="3"] {
    --orbit-x: 42%; --orbit-y: 33%; --orbit-w: 48%;
    --orbit-opacity: 0;
    --orbit-scale: .68;
    z-index: 1;
    pointer-events: none;
  }
}

@media (max-width: 767.98px) {
  .te-hero-orbit-stage { display: none; }
  .te-home-hero-emblem.te-hero-emblem .loader {
    top: 0;
    left: 50%;
    right: auto;
    width: 250px;
    height: 250px;
    z-index: auto;
  }
  .te-hero-motion .main-banner-image span img { z-index: 2; }
  .te-hero-motion .main-banner-left,
  .te-hero-motion .main-banner-advantages,
  .te-hero-motion .main-banner-bottom {
    z-index: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .te-hero-orbit-card { transition: none; will-change: auto; }
}
