:root {
  --lz-fallback-ink: #f7f8fb;
  --lz-fallback-navy: #16203b;
  --lz-fallback-blue: #25396e;
  --lz-fallback-orange: #dd7e20;
  --lz-fallback-line: rgba(255, 255, 255, 0.2);
}

.home-fallback {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: var(--lz-fallback-ink);
  background: var(--lz-fallback-navy);
  font-family: "Avenir Next", "Noto Sans SC", "PingFang SC", sans-serif;
}

.home-fallback::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    url("/assets/webp/hero.webp") 62% center / cover no-repeat;
  content: "";
}

.home-fallback::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 17, 22, 0.97) 0%, rgba(20, 29, 50, 0.88) 38%, rgba(14, 17, 22, 0.22) 72%, rgba(14, 17, 22, 0.46) 100%),
    linear-gradient(180deg, rgba(14, 17, 22, 0.12) 58%, rgba(14, 17, 22, 0.92) 100%);
  content: "";
}

.home-fallback__header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, 1440px);
  margin-inline: auto;
  padding-block: max(20px, env(safe-area-inset-top)) 12px;
}

.home-fallback__brand {
  display: inline-flex;
  align-items: center;
}

.home-fallback__brand img {
  display: block;
  width: auto;
  height: 34px;
}

.home-fallback__tools {
  display: flex;
  align-items: center;
  gap: 22px;
}

.home-fallback__language,
.home-fallback__menu {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-language {
  position: relative;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-language > summary {
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.home-language > summary::-webkit-details-marker {
  display: none;
}

.home-language > summary b {
  color: var(--lz-fallback-orange);
}

.home-language--light {
  color: var(--lz-fallback-blue);
  font-family: "Archivo", "Noto Sans SC", sans-serif;
  font-size: 13px;
}

.home-language__menu {
  position: absolute;
  z-index: 230;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  min-width: 196px;
  max-width: calc(100vw - 32px);
  max-height: min(62vh, 440px);
  overflow: auto;
  padding: 10px 14px;
  border: 1px solid rgba(37, 57, 110, 0.16);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(14, 17, 22, 0.24);
  letter-spacing: 0;
}

.home-language__menu a {
  padding: 8px 2px;
  color: var(--lz-fallback-blue);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.home-language__menu a[aria-current="page"] {
  color: var(--lz-fallback-orange);
}

.home-fallback__menu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.home-fallback__bars {
  display: grid;
  gap: 4px;
  width: 24px;
}

.home-fallback__bars i {
  display: block;
  height: 2px;
  background: currentColor;
}

.home-fallback__bars i:nth-child(2) {
  background: var(--lz-fallback-orange);
}

.home-fallback__body {
  display: grid;
  align-content: center;
  width: min(100% - 40px, 1440px);
  min-height: calc(100svh - 86px);
  margin-inline: auto;
  padding-block: clamp(64px, 10vh, 128px) clamp(150px, 22vh, 240px);
}

.home-fallback__copy {
  width: min(720px, 68vw);
}

.home-fallback__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "DIN Alternate", "Avenir Next Condensed", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.home-fallback__eyebrow::before {
  width: 42px;
  height: 2px;
  background: var(--lz-fallback-orange);
  content: "";
}

.home-fallback h1 {
  max-width: 820px;
  margin: 0;
  font-family: "DIN Alternate", "Avenir Next Condensed", "Noto Sans SC", sans-serif;
  font-size: clamp(48px, 7.4vw, 112px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-wrap: balance;
}

.home-fallback h1 span {
  color: var(--lz-fallback-orange);
}

html[lang="en"] .home-fallback h1 {
  max-width: 14ch;
  font-size: clamp(44px, 6.6vw, 96px);
  letter-spacing: -0.045em;
}

.home-fallback__summary {
  max-width: 640px;
  margin: clamp(24px, 3.2vw, 38px) 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.8;
}

.home-fallback__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.home-fallback__cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--lz-fallback-line);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.home-fallback__cta--primary {
  border-color: var(--lz-fallback-orange);
  background: var(--lz-fallback-orange);
}

.home-fallback__footer {
  position: absolute;
  inset-inline: 0;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(100% - 40px, 1440px);
  margin-inline: auto;
}

.home-fallback__categories {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--lz-fallback-line);
  border-bottom: 1px solid var(--lz-fallback-line);
}

.home-fallback__categories a {
  min-width: 0;
  padding: 16px 12px;
  border-inline-end: 1px solid var(--lz-fallback-line);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.home-fallback__categories a:last-child {
  border-inline-end: 0;
}

.home-fallback__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.home-fallback__meta a {
  color: inherit;
  text-decoration: none;
}

.home-fallback__meta nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.home-lite-contact {
  display: none;
}

@media (max-width: 767px) {
  .home-fallback__brand img {
    width: min(52vw, 210px);
    height: auto;
  }

  .home-fallback::before {
    background-image: url("/assets/webp/hero-640w.webp");
    background-position: 69% center;
  }

  .home-fallback::after {
    background:
      linear-gradient(180deg, rgba(14, 17, 22, 0.82) 0%, rgba(14, 17, 22, 0.58) 36%, rgba(14, 17, 22, 0.96) 100%);
  }

  .home-fallback__header,
  .home-fallback__body,
  .home-fallback__footer {
    width: min(100% - 32px, 1440px);
  }

  .home-fallback__body {
    align-content: start;
    min-height: auto;
    padding-block: clamp(78px, 14vh, 120px) 52px;
  }

  .home-fallback__copy {
    width: 100%;
  }

  .home-fallback h1 {
    max-width: 12ch;
    font-size: clamp(44px, 14vw, 66px);
    line-height: 0.98;
  }

  html[lang="en"] .home-fallback h1 {
    max-width: 100%;
    font-size: clamp(38px, 10.8vw, 52px);
    line-height: 1;
  }

  .home-fallback__summary {
    max-width: 34rem;
    font-size: 14px;
    line-height: 1.7;
  }

  .home-fallback__tools {
    gap: 14px;
  }

  .home-fallback__menu > span:first-child {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .home-fallback__categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-fallback__categories a {
    padding: 11px 8px;
    border-bottom: 1px solid var(--lz-fallback-line);
    font-size: 11px;
  }

  .home-fallback__categories a:nth-child(3n) {
    border-inline-end: 0;
  }

  .home-fallback__categories a:nth-last-child(-n + 3) {
    border-bottom: 0;
  }

  .home-fallback__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .home-fallback__meta nav {
    justify-content: flex-start;
    gap: 12px;
  }

  .home-fallback__footer {
    position: relative;
    bottom: auto;
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .home-lite-contact {
    position: fixed;
    z-index: 120;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    display: flex;
    min-height: 56px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(14, 17, 22, 0.94);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .home-lite-contact a {
    display: inline-flex;
    min-width: 0;
    flex: 1 1 50%;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
  }

  .home-lite-contact__secondary {
    border-inline-end: 1px solid rgba(255, 255, 255, 0.16);
  }

  .home-lite-contact__primary {
    gap: 8px;
    background: var(--lz-fallback-orange);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-fallback *,
  .home-fallback *::before,
  .home-fallback *::after {
    scroll-behavior: auto !important;
  }
}

/* Accessible navigation for the lightweight homepage on every language. */
.home-navigation { width:min(94vw,620px); max-height:85dvh; margin:auto; padding:24px; border:0; border-radius:18px; background:#edeff3; color:#25396e; overflow:auto; }
.home-navigation::backdrop { background:rgba(14,17,22,.76); }
.home-navigation__head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.home-navigation button { min-height:44px; padding:10px; border:0; background:transparent; color:inherit; cursor:pointer; font:inherit; }
.home-navigation nav { display:grid; }
.home-navigation nav a { padding:18px 4px; border-bottom:1px solid #25396e25; color:inherit; font-size:clamp(18px,5vw,28px); font-weight:700; text-decoration:none; overflow-wrap:anywhere; }
.home-navigation :focus-visible { outline:2px solid #dd7e20; outline-offset:4px; }
html[dir="rtl"] .hero-bottom-number { left:auto; right:4vw; }
html[dir="rtl"] .hero-bottom-number, html[dir="rtl"] .hero-bottom-cta { text-align:right; }
html[lang="ar"] .pf-copy h2, html[lang="th"] .pf-copy h2 { line-height:1.3; }
@media(max-width:767px){
  .mega-menu-top { align-items:flex-start!important; gap:12px!important; }
  .mega-menu-top > img { max-width:40vw!important; height:auto!important; margin-top:10px; }
  .mega-menu-top > div { flex-direction:column-reverse!important; align-items:flex-end!important; min-width:0; }
  .mega-menu-top .home-language summary { max-width:45vw; white-space:normal; text-align:end; font-size:11px; }
  .mega-menu-body { max-height:calc(100dvh - 185px); overflow-y:auto; align-items:start!important; padding-top:20px; }
  .mega-menu-body nav { min-width:0; width:100%; }
  .mega-menu-body .menu-link { max-width:100%; overflow-wrap:anywhere; font-size:clamp(23px,7vw,30px)!important; }
  .mega-menu-body .menu-link > span { display:none; }
  .pf-contact-row nav { flex-wrap:wrap; }
  .hero-bottom-number { max-width:45vw; }
  .hero-bottom-number > span:first-child { font-size:clamp(19px,5vw,28px)!important; overflow-wrap:anywhere; }
}
@media(max-width:767px){
  /* Leave a separate control row below copy, including long translations. */
  .pf-stage { height:auto; min-height:570px; padding-bottom:220px; }
  .pf-planet { top:auto; bottom:84px; }
}
