#brand-moments {
  scroll-margin-block-start: 5rem;
}

#brand-moments .home-news-card {
  min-inline-size: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgb(20 41 55 / .08);
  overflow: hidden;
}

.home-news-card__image {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.home-news-card__copy {
  padding: clamp(1rem, 2.3vw, 1.75rem);
}

#brand-moments .home-news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .65rem;
  margin: 0 0 .5rem;
  color: var(--type-caption-ink, #525c66);
  font-size: .8125rem;
  line-height: 1.45;
}

.home-news-card__meta span {
  padding-inline-start: .65rem;
  border-inline-start: 1px solid #bbc3cb;
}

#brand-moments .home-news-card h3 {
  margin: 0 0 .55rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
  color: #9e242a;
  text-wrap: pretty;
}

#brand-moments .home-news-card__summary {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.65;
}

.home-news-card__link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-block-size: 44px;
  margin-block-start: .35rem;
  color: var(--type-accent, #19497d);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.home-news-card__link::after {
  content: "";
  inline-size: .45em;
  block-size: .45em;
  border-block-start: 1.5px solid currentColor;
  border-inline-end: 1.5px solid currentColor;
  background: linear-gradient(135deg, transparent 44%, currentColor 44% 56%, transparent 56%);
}

.home-news-card__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 3px;
}

@media (min-width: 761px) and (max-width: 980px) {
  #brand-moments .deep-news-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 760px),
       (max-width: 950px) and (orientation: landscape) and (pointer: coarse) {
  #brand-moments .deep-news-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  #brand-moments .home-news-card {
    inline-size: min(100%, 34rem);
    justify-self: center;
  }

  #brand-moments .home-news-card__image {
    max-block-size: 208px;
  }

  #brand-moments .deep-news-depth {
    inline-size: min(100%, 34rem);
    block-size: auto;
    justify-self: center;
    border-radius: 16px;
    background: #e8efee;
    container-type: inline-size;
  }

  #brand-moments .depth-carousel {
    --dc-photo-inset: 12px;
    block-size: clamp(204px, calc((100vw - 56px) * 220 / 390 + 62px), 282px);
    block-size: calc(min(100cqi - 24px, 390px) * 220 / 390 + 62px);
    min-block-size: 0;
    perspective: none;
  }

  #brand-moments .depth-carousel__stage {
    inset: 12px 0 50px;
  }

  #brand-moments .depth-carousel__card {
    /* The existing carousel scales each card from its original pixel width. */
    height: 220px !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 14px rgb(20 41 55 / .18);
  }

  #brand-moments .depth-carousel__card[aria-hidden="true"],
  #brand-moments .depth-carousel__tint {
    visibility: hidden;
  }

  #brand-moments .depth-carousel__arrow {
    display: none;
  }

  #brand-moments .depth-carousel__dots {
    inset-block-end: 2px;
    display: flex;
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }

  #brand-moments .depth-carousel__dot {
    display: grid;
    place-items: center;
    inline-size: 44px;
    block-size: 44px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  #brand-moments .depth-carousel__dot::before {
    content: "";
    inline-size: 8px;
    block-size: 8px;
    border-radius: 99px;
    background: #60756d;
  }

  #brand-moments .depth-carousel__dot.is-active::before {
    inline-size: 20px;
    background: #19497d;
  }

  #brand-moments .depth-carousel__dot:focus-visible,
  #brand-moments .depth-carousel:focus-visible {
    outline: 2px solid #19497d;
    outline-offset: -3px;
  }

  #why-xunqianji {
    scroll-margin-block-start: 5rem;
  }

  #why-xunqianji .deep-name-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #why-xunqianji .deep-name-copy {
    min-inline-size: 0;
  }

  #why-xunqianji .deep-name-intro {
    max-inline-size: min(100%, 34rem);
    white-space: normal;
    text-wrap: wrap;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 640px) and (max-width: 950px) and (orientation: landscape) and (pointer: coarse) {
  #brand-moments .deep-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-block-size: 0;
  }
}

@media (max-width: 360px) {
  main :is(.home-intro-grid, .feature-product .feature-grid) {
    grid-template-columns: minmax(0, 1fr);
  }

  main :is(.xqj-home-punct-title span, .feature-product .xqj-fixed-line) {
    white-space: normal;
  }
}

/* Typography from the accepted preview, scoped to this release's homepage sections. */
#brand-moments,
#why-xunqianji {
  --moments-reading: 'XQJ Home Inter', 'XQJ Home Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --moments-display: 'XQJ Home Plus Jakarta Sans', 'XQJ Home Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

#brand-moments .home-news-card {
  font-family: var(--moments-reading);
  letter-spacing: .02em;
  color: #4b5563;
}

#brand-moments .home-news-card h3 {
  font-family: var(--moments-display);
  letter-spacing: 0;
}

#brand-moments .home-news-card__meta { color: #6b7280; }
#brand-moments .home-news-card__summary { color: #4b5563; }

@media (max-width: 760px),
       (max-width: 950px) and (orientation: landscape) and (pointer: coarse) {
  :is(#brand-moments, #why-xunqianji) {
    padding-block: 3.5rem;
    font-family: var(--moments-reading);
    color: #4b5563;
    letter-spacing: .02em;
    line-height: 1.8;
  }

  #brand-moments .section-heading { margin-block-end: 1.375rem; }

  :is(#brand-moments, #why-xunqianji) .eyebrow {
    margin-block: 0 .625rem;
    font: 600 .8125rem / 1.5 var(--moments-display);
    letter-spacing: .16em;
    color: var(--blue, #19497d);
  }

  :is(#brand-moments, #why-xunqianji) h2 {
    font: 700 1.5rem / 1.3 var(--moments-display);
    letter-spacing: -.01em;
    color: #111827;
  }

  #why-xunqianji .deep-name-intro {
    font-size: 1rem;
    line-height: 1.8;
    color: #4b5563;
  }

  #why-xunqianji .deep-name-meaning-card h3 {
    font: 600 1.25rem / 1.4 var(--moments-display);
    color: #1f2937;
  }

  #why-xunqianji .deep-name-meaning-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4b5563;
  }
}

@media (max-width: 360px) {
  #footer-contact .filing-slot {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: .4rem;
  }
}
