.home .site-header .nav-row { gap: clamp(10px, 1.45vw, 22px); }
.home .site-header .hero-languages {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1vw, 15px);
}

.home .site-header .hero-languages a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0 3px;
  min-height: 44px;
  color: inherit;
  border: 0;
  border-radius: 0;
  background: none;
  white-space: nowrap;
  font-size: clamp(.71rem, .93vw, .9rem);
  font-weight: 800;
  line-height: 1;
}

.home .site-header .hero-languages a:hover { text-decoration: underline; text-underline-offset: 5px; }
.home .site-header .hero-languages a > span {
  width: 24px;
  min-width: 24px;
  height: auto;
  color: inherit;
  font-size: 1.05rem;
  text-shadow: none;
}
.home .site-header .hero-languages a > [lang="ar"] { font-size: 1.28rem; }

@media (max-width: 1250px) {
  .home { --header: 112px; }
  .home .site-header .nav-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: minmax(0, 1fr) 44px;
    row-gap: 0;
  }
  .home .site-header .hero-languages {
    grid-area: 2 / 1 / 3 / -1;
    justify-content: flex-start;
    gap: clamp(12px, 3vw, 36px);
    border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  }
  .home .site-header #site-nav { grid-area: 1 / 2; }
}

@media (max-width: 900px) {
  .home { --header: 106px; }
  .home .site-header .menu-toggle { grid-area: 1 / 2; }
  .home .site-header #site-nav { grid-area: auto; }
  .home .site-header .hero-languages { justify-content: space-between; gap: 5px; }
  html body.home .site-header a.brand {
    --home-brand-width: clamp(125px, 37vw, 157px);
    width: calc(var(--home-brand-width) - (var(--home-brand-width) - 45px) * var(--compact)) !important;
  }
  html body.home .site-header a.brand > .h22-wordmark { width: var(--home-brand-width) !important; }
  .home .site-header .brand .h22-wordmark-tail { transform: translateX(calc(var(--compact) * -8px)) !important; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .home .hero-stage .hero-content h1 { font-size: clamp(3rem, 6.8vw, 4.75rem); }
}

/* Both cards move toward the same seam as the bridge draws. */
.home .compare-sticky {
  --compare-gap: clamp(20px, 3vw, 42px);
  --compare-join: calc(var(--compare-gap) / 2 + 10px);
  gap: var(--compare-gap);
}

.home .compare-sticky article { min-width: 0; }
.home .compare-sticky .before {
  transform: translateX(calc(var(--merge) * var(--compare-join))) rotate(calc(var(--merge) * -1deg));
  opacity: 1;
}

.home .compare-sticky .after {
  transform: translateX(calc(var(--merge) * var(--compare-join) * -1)) rotate(calc(var(--merge) * 1deg));
  opacity: 1;
}

.home .compare-thread39 { height: 100%; }
.home .compare-thread39 path { stroke: #ffad79; stroke-width: 2.5; }
.home .compare-thread39 circle { fill: #ffe2c4; stroke: #8a4d35; }

@media (min-width: 901px) {
  .home .compare-sticky { top: calc(var(--header) + 18px); height: auto; align-items: stretch; }
  .home .compare-sticky article { flex: 1 1 0; }
}

@media (max-width: 900px) {
  .home .compare-track { padding-bottom: 0; }
  .home .compare-sticky { --compare-gap: 34px; }
  .home .compare-sticky article { min-height: 0; }
  .home .compare-sticky .before {
    transform: translateY(calc(var(--merge) * 12px)) rotate(calc(var(--merge) * -.65deg));
  }
  .home .compare-sticky .after {
    transform: translateY(calc(var(--merge) * -25px)) rotate(calc(var(--merge) * .65deg));
  }
}

@media (min-width: 901px) and (max-height: 750px) {
  .home .compare-track { height: auto; }
  .home .compare-sticky { position: relative; top: auto; }
}

/* Keep the original illustrations, with slower entrances and a common surface. */
.home :is(.motion-art.b36, .motion-art.r36, .footer-layout39 .brand-film) {
  border-radius: 20px;
  box-shadow: 0 14px 34px #21192c24;
}

.home .b36-rig { filter: none; }
.home .b36-under { box-shadow: 3px 3px 0 #e6e0d3, 5px 5px 0 #bcb3a5, 0 10px 18px #30253524; }
.home .b36-face { overflow-y: auto; }
.home .b36-front > a { overflow-wrap: anywhere; }
.home .r36-ticket { animation-duration: 11s; }
.home .r36-postcard { animation-duration: 11s; }
.home .r36-plane { animation-duration: 15s; }
.home .brand-scene.toon27 { transition-duration: .75s, 1.1s; }
.home .brand-film .film-toggle41 { min-height: 44px; background: #231934ed; }

@media (max-width: 600px) {
  .home #motion-book .b36-rig { top: 44px; height: calc(100% - 146px); min-height: 0; }
  .home #motion-book .motion-art.b36 { min-height: 435px; }
  .home #motion-book .b36-tabs { bottom: 43px; gap: 4px; }
  .home #motion-book .b36-tabs button { min-height: 44px; padding-inline: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .home .brand-scene.toon27 { transition: none; }
}
