/* UI5-inspired content motion: reveal classes are added only after JS initializes. */
.spx-reveal {
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  transition:
    opacity 850ms cubic-bezier(.2, .7, .2, 1),
    transform 850ms cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}

.spx-reveal.spx-is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.spx-media-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(.985);
  transition:
    opacity 950ms cubic-bezier(.2, .7, .2, 1),
    transform 1100ms cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}

.spx-media-reveal.spx-is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.spx-hero-sequence > .spx-hero-item {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition:
    opacity 760ms cubic-bezier(.2, .7, .2, 1),
    transform 760ms cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--spx-delay, 0ms);
}

.spx-hero-sequence.spx-is-visible > .spx-hero-item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Keep Korean hero copy on natural word boundaries. */
html[lang="ko"] body {
  word-break: keep-all;
  overflow-wrap: break-word;
}

html[lang="ko"] .spx-hero-sequence > .spx-hero-item {
  word-break: keep-all;
  overflow-wrap: break-word;
}

html[lang="ko"] .spx-gateway-intro {
  max-width: 72ch !important;
  word-break: keep-all;
  overflow-wrap: break-word;
}

html[lang="ko"] .spx-ko-summary-title {
  white-space: pre-line;
  word-break: keep-all;
}

.spx-stagger-group > .spx-stagger-item {
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(.985);
  transition:
    opacity 700ms cubic-bezier(.2, .7, .2, 1),
    transform 700ms cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--spx-delay, 0ms);
  will-change: opacity, transform;
}

.spx-stagger-group.spx-is-visible > .spx-stagger-item {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Gateway card action line, based on the UI5 gateway interaction. */
.spx-gateway-card--biz {
  --spx-gateway-accent: #14837a;
  --spx-gateway-accent-rgb: 20, 131, 122;
}

.spx-gateway-card--mkt {
  --spx-gateway-accent: #d9765f;
  --spx-gateway-accent-rgb: 217, 118, 95;
}

.spx-gateway-line {
  position: relative;
  display: block;
  width: min(72%, 320px);
  height: 2px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(var(--spx-gateway-accent-rgb), .14);
  transition: box-shadow 320ms ease;
}

.spx-gateway-line::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--spx-gateway-accent);
  transform: scaleX(0);
  transform-origin: left center;
  animation: spx-gateway-line-intro 1.15s cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: .58s;
  transition: transform 420ms cubic-bezier(.2, .8, .2, 1);
}

.spx-gateway-card--mkt .spx-gateway-line::before {
  animation-delay: .74s;
}

.spx-gateway-line::after {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 0;
  width: 28%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.94), transparent);
  opacity: 0;
  transform: translateX(-130%);
  animation: spx-gateway-line-glint 3.8s ease-in-out 1.7s infinite;
}

.spx-gateway-card:hover .spx-gateway-line::before,
.spx-gateway-card:focus-visible .spx-gateway-line::before {
  animation: none;
  transform: scaleX(1);
}

.spx-gateway-card:hover .spx-gateway-line,
.spx-gateway-card:focus-visible .spx-gateway-line {
  box-shadow: 0 0 14px rgba(var(--spx-gateway-accent-rgb), .24);
}

.spx-mobile-menu-summary::-webkit-details-marker {
  display: none;
}

.spx-mobile-menu-summary::marker {
  content: "";
}

.spx-mobile-menu-bars {
  position: relative;
  display: flex;
  width: 18px;
  height: 14px;
  flex-direction: column;
  justify-content: space-between;
}

.spx-mobile-menu-bars > span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #0d4a43;
  transform-origin: center;
  transition: transform 220ms ease, opacity 180ms ease;
}

.spx-mobile-menu[open] .spx-mobile-menu-bars > span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.spx-mobile-menu[open] .spx-mobile-menu-bars > span:nth-child(2) {
  opacity: 0;
}

.spx-mobile-menu[open] .spx-mobile-menu-bars > span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.spx-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #96a09d;
  font-family: Pretendard, system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.spx-language-switch button {
  border: 0;
  background: transparent;
  padding: 6px 3px;
  color: #96a09d;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 180ms ease;
}

.spx-language-switch button.is-active {
  color: #0d4a43;
  font-weight: 700;
}

.spx-language-switch--mobile {
  justify-content: flex-end;
  padding: 0 8px 5px;
}

@keyframes spx-gateway-line-intro {
  0% { transform: scaleX(0); }
  68% { transform: scaleX(1); }
  100% { transform: scaleX(.42); }
}

@keyframes spx-gateway-line-glint {
  0%, 42% { opacity: 0; transform: translateX(-130%); }
  55% { opacity: .9; }
  75% { opacity: 0; transform: translateX(360%); }
  100% { opacity: 0; transform: translateX(360%); }
}

@media (prefers-reduced-motion: reduce) {
  .spx-reveal,
  .spx-media-reveal,
  .spx-hero-sequence > .spx-hero-item,
  .spx-stagger-group > .spx-stagger-item,
  .spx-gateway-line::before,
  .spx-gateway-line::after {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .spx-gateway-line::before {
    transform: scaleX(1) !important;
  }
}
[id^="biz-"],
[id^="mkt-"],
[id^="contact-"] {
  scroll-margin-top: 88px;
}

@media (max-width: 768px) {
  .spx-gateway-hero {
    margin-top: 32px;
  }

  html[lang="en"] .spx-gateway-headline {
    font-size: clamp(25px, 8vw, 32px) !important;
    white-space: nowrap;
  }

  html[lang="ko"] .spx-ko-summary-title {
    white-space: normal;
  }

  .spx-gateway-line {
    width: 100%;
  }

  [id^="biz-"],
  [id^="mkt-"],
  [id^="contact-"] {
    scroll-margin-top: 72px;
  }
}
