/* Concrete layout fallbacks for older browser cores. */
/* Keep the page topic and primary actions visible before any interaction. */
.hero .hero-inner {
  opacity: 1;
  transform: translateY(-43%);
}

.hero .hero-card { opacity: 1; transform: none; }
.hero-topic,.hero-invite { display: inline-block; white-space: nowrap; }
.sub-hero .sub-hero-copy { opacity: 1; transform: translateY(-50%); }

@media (max-width: 680px), (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  .hero .hero-inner { transform: none; }
}

@media (max-width: 680px) {
  html[lang^="zh"] .hero h1 {
    font-size:38px;font-size: clamp(28px, 8.8vw, 38px);
    text-wrap: balance;
  }

  .hero-phrase { white-space: nowrap; }
}

@media (scripting: none) {
  html .reveal { opacity: 1; transition: none; }
}

/* English copy must reserve space for the header and grow with its content. */
html[lang="en"] .hero {
  height: auto;
  min-height: 760px;
  min-height: max(760px, 100vh);
  max-height: none;
  padding: 132px 8vw 72px;
}

html[lang="en"] .hero-bg,
html[lang="en"] .hero-cover {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

html[lang="en"] .hero .hero-inner {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  width: 100%;
  max-width: 1040px;
  transform: none;
  transition: none;
}

html[lang="en"] .hero h1 {
  max-width: 100%;
  font-size: 48px;
  font-size: clamp(38px, 3.7vw, 60px);
  line-height: 1.15;
  overflow-wrap: break-word;
}

html[lang="en"] .hero-actions {
  flex-wrap: wrap;
}

html[lang="en"] .hero-brand-name { display: inline-block; }

html[lang="en"] .hero-actions .button {
  width: auto;
  min-width: 160px;
  max-width: 100%;
}

@media (min-width: 951px) and (max-width: 1200px) {
  html[lang="en"] .header nav { font-size: 12px; }
  html[lang="en"] .header nav a { white-space: nowrap; }
}

@media (max-width: 680px) {
  html[lang="en"] .hero {
    padding: 116px 22px 64px;
    min-height: 100vh;
  }
  html[lang="en"] .hero h1 {
    font-size: 36px;
    font-size: clamp(30px, 8.2vw, 40px);
    line-height: 1.18;
  }
  html[lang="en"] .local-stamp b { font-size: 12px; letter-spacing: .04em; }
  html[lang="en"] .hero-proof { flex-wrap: wrap; justify-content: flex-start; }
  html[lang="en"] .hero-proof > div { flex: 1 1 80px; }
}

.hero-slides {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  background: var(--navy);
}

.hero-slides .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  object-position: 57% center;
  transition: opacity 0s .75s;
}

.hero-slides .hero-bg.is-current {
  z-index: 1;
  opacity: 1;
  transition: opacity .75s ease;
}

.hero-slides .hero-bg:first-child { object-position: center; }

.hero-slides-controls {
  position: absolute;
  right: 7vw;
  bottom: 24px;
  display: flex;
  align-items: center;
  padding: 0 4px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 40px;
  background: rgba(16,33,44,.68);
}

.hero-slides-controls[hidden] { display: none; }

.hero-slides-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: none;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
}

.hero-slides-controls button:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }

.hero-slide-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 20px;
}

.hero-slide-dot[aria-current="true"]::before {
  width: 20px;
  background: #fff;
}

.hero-slides-pause::before {
  content: "";
  width: 5px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.hero-slides-pause[aria-pressed="true"]::before {
  width: 0;
  height: 0;
  border: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

@media (max-width: 680px), (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  .hero-slides-controls {
    position: relative;
    right: auto;
    bottom: auto;
    display: inline-flex;
    margin-top: 12px;
  }
  .hero-slides .hero-bg:not(:first-child) { object-position: 65% center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slides .hero-bg,
  .hero-slides .hero-bg.is-current { transition: none; }
}
