/* ============================================================
   Hero Split Text — Two-line Chinese title + entry animation
   Typography base from site-ccleaf.css; glow is text-native only
   ============================================================ */

.container.hero#home .hero-title.hero-title-split {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.06em !important;
  animation: none !important;
  text-wrap: unset !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  filter: none !important;
  isolation: auto !important;
}

.container.hero#home .hero-title-split::before,
.container.hero#home .hero-title-split::after {
  content: none !important;
  display: none !important;
}

/* Each line is an explicit block row */
.container.hero#home .hero-title-split .hero-title-line {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
  white-space: nowrap !important;
  line-height: 1.06 !important;
  filter: none !important;
  transform: none !important;
  animation: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: inherit !important;
  -webkit-text-fill-color: unset !important;
}

.container.hero#home .hero-title-split .hero-title-line--accent {
  margin-top: 0.02em !important;
}

.container.hero#home .hero-title-split .hero-title-visual {
  display: inline;
}

/* Override site.css span { display:block } for per-char animation */
.container.hero#home .hero-title-split .split-char,
.hero h1.hero-title-split .split-char {
  display: inline-block !important;
  width: auto !important;
  max-width: none !important;
  vertical-align: baseline !important;
  position: static !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  transform-origin: center bottom !important;
  will-change: opacity, transform, filter;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none;
  animation: heroSplitIn 820ms cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
  animation-delay: calc(var(--i, 0) * 42ms) !important;
}

.container.hero#home .hero-title-split .split-char::before,
.container.hero#home .hero-title-split .split-char::after,
.hero h1.hero-title-split .split-char::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

/* Brighter white line — no text-shadow (avoids fake rectangular glow with clip-text) */
.container.hero#home .hero-title-split .split-char:not(.split-char-accent) {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 38%, #fafffe 72%, #f2fff5 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 0 transparent !important;
}

/* Brighter warm gold accent line */
.container.hero#home .hero-title-split .split-char-accent {
  background: linear-gradient(180deg, #fff6c8 0%, #ffe98a 36%, #ffd24a 68%, #f4b028 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 0 transparent !important;
}

/* Animation initial state */
.container.hero#home .hero-title-split .split-char {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(3px);
}

@keyframes heroSplitIn {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.container.hero#home .hero-title-split.is-animated .split-char {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
  will-change: auto;
}

/* Subtitle: one-time subtle fade only */
.container.hero#home .hero-center > p.hero-subtitle,
.container.hero#home .hero-subtitle,
.container.hero#home p.hero-subtitle {
  animation: heroSubtitleFade 640ms cubic-bezier(0.22, 1, 0.36, 1) 520ms both !important;
}

@keyframes heroSubtitleFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .container.hero#home .hero-title-split .hero-title-line {
    white-space: normal !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .container.hero#home .hero-title-split .split-char {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }

  .container.hero#home .hero-center > p.hero-subtitle,
  .container.hero#home .hero-subtitle,
  .container.hero#home p.hero-subtitle {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
