/* Shared footer geometry, matched to the About Us footer. */
html body:is(.home-page, .company-page, .news-page) .company-footer {
  position: relative;
  height: 39.7vw;
  min-height: 0;
  padding: 0;
  background: #111212;
}
html body:is(.home-page, .company-page, .news-page) .company-footer > a:first-child {
  display: block;
  position: absolute;
  top: 50.1%;
  left: 13.8%;
  width: max-content;
}
html body:is(.home-page, .company-page, .news-page) .company-footer > a:first-child > img {
  display: block;
  width: clamp(155px, 13.02vw, 250px);
  aspect-ratio: 432.47 / 214.81;
}
html body:is(.home-page, .company-page, .news-page) .company-footer .footer-top {
  position: absolute;
  top: 53%;
  right: 12.55%;
  width: 66px;
  height: 66px;
}
html body:is(.home-page, .company-page, .news-page) .company-footer .footer-bottom {
  position: absolute;
  top: 67.5%;
  left: 15.5%;
  right: 12.55%;
  display: grid;
  grid-template-columns: 47.6% 52.4%;
  gap: 0;
  align-items: start;
  width: auto;
  margin: 0;
}
html body:is(.home-page, .company-page, .news-page) .company-footer .footer-bottom > p {
  margin: 0;
  padding: 24px 0 0;
  font: 400 clamp(12px, 1.042vw, 20px)/1.2 XheartSmall, sans-serif;
  white-space: nowrap;
}
html body:is(.home-page, .company-page, .news-page) .company-footer .footer-bottom > div {
  display: grid;
  grid-template-columns: 35% 31% 34%;
  gap: 0;
  align-self: start;
  margin: 0;
  white-space: nowrap;
}
html body:is(.home-page, .company-page, .news-page) .company-footer .footer-bottom > div > a {
  line-height: 1.2;
  overflow-wrap: normal;
}
html body:is(.home-page, .company-page, .news-page) .company-footer .footer-contact-label {
  display: block;
  margin-bottom: 8px;
  font: 400 clamp(11px, .833vw, 16px)/1.2 XheartSmall, sans-serif;
}
html body:is(.home-page, .company-page, .news-page) .company-footer .footer-bottom strong {
  display: block;
  font: 600 clamp(12px, 1.042vw, 20px)/1.2 XheartNav, sans-serif;
}
html body:is(.home-page, .company-page, .news-page) .company-footer .footer-nav {
  position: absolute;
  top: 76.5%;
  left: 49.8%;
  display: flex;
  width: 37.65%;
  gap: 2vw;
  margin: 0;
  padding-top: 14px;
  white-space: nowrap;
}
html body.home-page .footer-home-link { display: inline; }
.home-page .scene-solution #solution-title .solution-divider { color: #fff; }
.home-page .product-hero {
  background: #000 url("assets/index-design/home-video-cover.jpg") center / cover no-repeat;
}
/* Hero lockup: the X7 ink spans Ultra's top through the tagline's bottom. */
.home-page .product-hero {
  background: #000 url("assets/index-design/home-video-cover.jpg") center / cover no-repeat;
}
.home-page .product-hero-art {
  opacity: 1;
}
.home-page .product-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000 url("assets/index-design/home-video-cover.jpg") center / cover no-repeat;
  opacity: 1;
  pointer-events: none;
  transition: opacity .8s ease;
}
.home-page .product-hero.is-video-visible::after {
  opacity: 0;
}
.home-page .product-hero .product-brand,
.home-page .product-hero .product-intro {
  z-index: 2;
}
@media (max-width: 900px) {
  /* The mobile source video has a bright stripe in its final 3% of pixels. */
  .home-page .product-hero-art { height: calc(100% + 40px); }
}
html:has(> body.home-page) { scroll-behavior: auto; scroll-padding-top: 0; }
.home-page #npu { scroll-margin-top: 0; }

/* Layered radar scene replaces the last product video's fixed composition. */
.home-page .scene-solution { background: #00020d; }
.home-page .scene-solution .solution-animation {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}
.home-page .scene-solution .solution-animation img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  opacity: 0;
}
.home-page .scene-solution .solution-animation .solution-wave {
  clip-path: none;
  transform-origin: 56% 41%;
}
.home-page .scene-solution .solution-animation.is-active img {
  animation: none;
}
@media (max-width: 700px) {
  .home-page .scene-solution .solution-animation .solution-car--transparent,
  .home-page .scene-solution .solution-animation .solution-car--solid,
  .home-page .scene-solution .solution-animation .solution-light {
    transform: scale(1.35);
    transform-origin: 59.7% 37.8%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .scene-solution .solution-animation.is-active .solution-wave,
  .home-page .scene-solution .solution-animation.is-active .solution-car--transparent,
  .home-page .scene-solution .solution-animation.is-active .solution-car--solid { animation: none; }
  .home-page .scene-solution .solution-animation.is-active .solution-wave,
  .home-page .scene-solution .solution-animation.is-active .solution-car--solid {
    opacity: 1;
    clip-path: none;
    transform: none;
  }
}

html[lang="zh-CN"] .home-page .product-brand .product-x7 {
  font-size: calc(192 * var(--hero-unit));
  translate: 0 calc(2.5 * var(--hero-unit));
}
html[lang="zh-CN"] .home-page .product-brand p {
  --tagline-ink-offset: calc(10.2 * var(--hero-unit));
}
@media (max-width: 700px) {
  html[lang="zh-CN"] .home-page .product-brand .product-x7 {
    font-size: calc(18.1vw + 15.4px);
    translate: 0 calc(4.3px - .54vw);
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 700px) and (hover: none) and (pointer: coarse) {
    html[lang="zh-CN"] .home-page .product-brand .product-x7 {
      translate: 0 calc(1.3px - .54vw);
      transform: scaleY(.98);
      transform-origin: top left;
    }
  }
}

@media (max-width: 900px) {
  html body:is(.home-page, .company-page, .news-page) .company-footer {
    height: auto;
    min-height: 520px;
    padding: 75px 7% 80px;
  }
  html body:is(.home-page, .company-page, .news-page) .company-footer > a:first-child {
    position: static;
    margin: 0;
  }
  html body:is(.home-page, .company-page, .news-page) .company-footer > a:first-child > img {
    width: clamp(150px, 28vw, 220px);
    transform: translateX(-14.14%);
  }
  html body:is(.home-page, .company-page, .news-page) .company-footer .footer-top {
    top: 75px;
    right: 7%;
    width: 48px;
    height: 48px;
  }
  html body:is(.home-page, .company-page, .news-page) .company-footer .footer-bottom {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
    margin-top: 32px;
  }
  html body:is(.home-page, .company-page, .news-page) .company-footer .footer-bottom > p {
    order: 0;
    padding: 0;
    border: 0;
    text-align: left;
    white-space: normal;
  }
  html body:is(.home-page, .company-page, .news-page) .company-footer .footer-bottom > div {
    order: 0;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 0;
    white-space: normal;
  }
  html body:is(.home-page, .company-page, .news-page) .company-footer .footer-nav {
    position: static;
    width: 100%;
    gap: 18px;
    margin-top: 26px;
    flex-wrap: wrap;
  }
}

/* Product and About Us annotations. */
/* Mobile footer layout from the supplied reference. */
@media (max-width: 900px) {
  html body:is(.home-page, .company-page, .news-page) .company-footer {
    height: 500px;
    min-height: 500px;
    padding: 0;
  }
  html body:is(.home-page, .company-page, .news-page) .company-footer > a:first-child {
    position: absolute;
    top: 75px;
    left: 28px;
    margin: 0;
  }
  html body:is(.home-page, .company-page, .news-page) .company-footer .footer-bottom {
    position: absolute;
    top: 190px;
    left: 28px;
    right: 28px;
    display: block;
    width: auto;
    margin: 0;
  }
  html body:is(.home-page, .company-page, .news-page) .company-footer .footer-bottom > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 17px;
    width: max-content;
    max-width: 100%;
  }
  html body:is(.home-page, .company-page, .news-page) .company-footer .footer-contact-label {
    margin-bottom: 7px;
    font-size: 11px;
    line-height: 14px;
  }
  html body:is(.home-page, .company-page, .news-page) .company-footer .footer-bottom strong {
    font-size: 12px;
    line-height: 17px;
  }
  html body:is(.home-page, .company-page, .news-page) .company-footer .footer-bottom > p {
    position: absolute;
    top: 222px;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 11px;
    line-height: 14px;
    white-space: normal;
  }
  html body:is(.home-page, .company-page, .news-page) .company-footer .footer-nav {
    position: absolute;
    top: 350px;
    left: 28px;
    right: 28px;
    display: flex;
    width: auto;
    gap: 18px;
    flex-wrap: nowrap;
    margin: 0;
    padding: 14px 0 0;
    border-top: 1px solid #9aafcd;
    white-space: nowrap;
  }
  html body:is(.home-page, .company-page, .news-page) .company-footer .footer-top {
    top: 206px;
    right: 32px;
    width: 68px;
    height: 68px;
  }
  html body:is(.home-page, .company-page, .news-page) .company-footer .footer-top img {
    width: 100%;
    height: 100%;
  }
}

/* Product and About Us annotations. */
@media (min-width: 901px) {
  .home-page .product-brand { top: calc(30% - 60px); }
  .home-page .scene-efficiency .product-copy p { align-items: flex-end; }
  .home-page .scene-efficiency .product-copy p > span:last-child {
    line-height: 1.35;
    transform: translateY(-.625em);
  }
  .home-page .scene-safety .product-copy h2 {
    display: grid;
    grid-template-rows: auto .7em auto;
    justify-items: center;
    gap: 0;
    line-height: 1.05;
  }
  .home-page .scene-safety .product-copy h2 .safety-plus {
    align-self: center;
    line-height: 1;
  }
  .company-page .team-stats > div > p {
    margin-bottom: 8px;
    font-size: clamp(11px, .91vw, 20px);
  }
  .company-page .team-stats h2 { bottom: 9%; }
}
.home-page .scene-safety .product-copy h2,
.home-page .scene-safety .product-copy h2 .safety-line {
  color: #fff;
}
.home-page .scene-safety .product-copy h2 .safety-plus {
  position: relative;
  display: block;
  width: .6em;
  height: .6em;
  overflow: hidden;
  color: transparent;
  font-weight: 200;
}
.home-page .scene-safety .product-copy h2 .safety-plus::before,
.home-page .scene-safety .product-copy h2 .safety-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}
.home-page .scene-safety .product-copy h2 .safety-plus::before { width: 55%; height: 1px; }
.home-page .scene-safety .product-copy h2 .safety-plus::after { width: 1px; height: 55%; }
@media (max-width: 700px) {
  .home-page .product-brand { top: calc(25% - 60px); }
  .home-page .scene-efficiency .product-copy p { align-items: flex-end; }
  .home-page .scene-efficiency .product-copy p > span:last-child {
    line-height: 1.35;
    transform: translateY(-.45em);
  }
}
.company-page .more-jobs-button img { transition: transform .3s ease; }
.company-page .more-jobs-button[aria-expanded="true"] img { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .company-page .more-jobs-button img { transition: none; }
}

/* Product copy structure from the revised artwork, using the site's existing type scale. */
.home-page .scene-npu .product-copy #npu-title { margin-top: 12px; }
.home-page .scene-npu .product-copy .npu-comparison { margin-top: clamp(30px, 3vw, 55px); }
.home-page .scene-npu .product-copy h2.npu-metric { margin-top: 8px; }
.home-page .scene-tops .product-copy p.product-note,
.home-page .scene-efficiency .product-copy p.product-note {
  margin-top: clamp(20px, 2vw, 34px);
  font-size: clamp(12px, 1vw, 20px);
  line-height: 1.4;
  white-space: normal;
}
.home-page .scene-efficiency .product-copy p.product-note { display: block; }
.home-page .scene-efficiency .product-copy #efficiency-title .metric-number { color: #fff; }
.home-page .scene-compute .product-copy h2 { margin-top: clamp(16px, 1.6vw, 30px); }
.home-page .scene-compute .product-copy .compute-detail {
  margin-top: clamp(8px, .8vw, 15px);
}
.home-page .scene-compute .product-copy #compute-title {
  margin-top: clamp(45px, 4.5vw, 80px);
}
.home-page .scene-compute .product-copy #compute-title strong {
  font: inherit;
  font-size: 1.18em;
  font-weight: 400;
  line-height: 1.1;
}
.home-page .product-benefits li::before { flex-basis: 10px; width: 10px; height: 10px; }
/* Match the visible glyph edges, including the inset of fullwidth brackets. */
@media (min-width: 901px) {
  html[lang="zh-CN"] .home-page .scene-tops .product-copy > p:first-child {
    position: relative;
    top: -5px;
    margin-left: 2.4px;
  }
  html[lang="zh-CN"] .home-page .scene-tops .product-copy p.product-note,
  html[lang="zh-CN"] .home-page .scene-efficiency .product-copy p.product-note {
    margin-left: 2.4px;
    text-indent: -10.3px;
  }
  html[lang="zh-CN"] .home-page .scene-compute .product-copy > p:first-child { margin-left: 2.4px; }
  html[lang="zh-CN"] .home-page .scene-compute .product-copy .compute-detail { margin-left: 2.4px; }
  html[lang="zh-CN"] .home-page .scene-cpu .product-copy > p { margin-left: -0.8px; }
  html[lang="zh-CN"] .home-page .scene-safety .product-copy > p { margin-left: 1.8px; }
}
@media (max-width: 700px) {
  .home-page .scene-solution .product-benefits {
    top: calc(13% + 3.5 * clamp(30.45px, 7.6125vw, 43.5px));
  }
  .home-page .scene-npu .product-copy #npu-title { margin-top: 8px; }
  .home-page .scene-npu .product-copy .npu-comparison { margin-top: 16px; }
  .home-page .scene-npu .product-copy h2.npu-metric { margin-top: 8px; }
  .home-page .scene-tops .product-copy p.product-note,
  .home-page .scene-efficiency .product-copy p.product-note { margin-top: 18px; font-size: 11px; line-height: 16px; }
  .home-page .scene-compute .product-copy h2 { margin-top: 14px; }
  .home-page .scene-compute .product-copy .compute-detail { margin-top: 8px; }
  .home-page .scene-compute .product-copy #compute-title { margin-top: 28px; }
  .home-page .product-benefits li { align-items: flex-start; }
  .home-page .product-benefits li::before { flex-basis: 5px; width: 5px; height: 5px; margin-top: 6px; }
}
/* The glyph-edge alignment also applies to phone and tablet product copy. */
@media (max-width: 900px) {
  html[lang="zh-CN"] .home-page .scene-npu .product-copy .npu-comparison,
  html[lang="zh-CN"] .home-page .scene-tops .product-copy > p:first-child,
  html[lang="zh-CN"] .home-page .scene-compute .product-copy .compute-detail {
    margin-left: 1px;
  }
  html[lang="zh-CN"] .home-page .scene-cpu .product-copy > p { margin-left: -1px; }
  html[lang="zh-CN"] .home-page .scene-safety .product-copy h2 {
    align-items: flex-start;
    text-align: left;
  }
  html[lang="zh-CN"] .home-page .scene-safety .product-copy > p {
    margin-left: 1px;
    text-align: left;
  }
  html[lang="zh-CN"] .home-page .scene-tops .product-copy p.product-note { text-indent: -10px; }
  html[lang="zh-CN"] .home-page .scene-efficiency .product-copy p.product-note {
    margin-left: 2px;
    text-indent: -10px;
  }
}
@media (max-width: 599px) {
  html[lang="zh-CN"] .home-page .scene-tops .product-copy p.product-note { text-indent: -7px; }
  html[lang="zh-CN"] .home-page .scene-efficiency .product-copy p.product-note { text-indent: -14px; }
  html[lang="zh-CN"] .home-page .scene-safety .product-copy > p { margin-left: 0; }
}
@media (min-width: 901px) and (max-width: 1000px) {
  html[lang="zh-CN"] .home-page .scene-efficiency .product-copy p.product-note {
    text-indent: -14.3px;
  }
}
/* Keep exactly two small-text line heights between the fifth feature's copy groups. */
html[lang="zh-CN"] .home-page .scene-compute .product-copy .compute-kicker {
  padding-bottom: 0;
  margin-bottom: 2lh;
}
html[lang="zh-CN"] .home-page .scene-compute .product-copy #compute-title { margin-top: 0; }
@media (min-width: 600px) and (max-width: 700px) {
  html[lang="zh-CN"] .home-page .scene-npu .product-copy .npu-comparison,
  html[lang="zh-CN"] .home-page .scene-tops .product-copy > p:first-child { margin-left: 0; }
}
@media (min-width: 701px) and (max-width: 900px) {
  html[lang="zh-CN"] .home-page .scene-npu .product-copy > p:first-child { margin-left: 1px; }
  html[lang="zh-CN"] .home-page .scene-compute .product-copy .compute-kicker { margin-left: 1px; }
  html[lang="zh-CN"] .home-page .scene-efficiency .product-copy p.product-note {
    margin-left: 1px;
    text-indent: -11px;
  }
}

/* 700 TOPS copy follows the updated reference composition. */
@media (min-width: 901px) {
  .home-page .scene-tops .product-copy { left: 37.4%; top: 12.7%; }
}
.home-page .scene-tops .product-copy #tops-title { margin: clamp(12px, 1.3vw, 25px) 0 0; }
.home-page .scene-tops .product-copy #tops-title .tops-adas {
  color: #fff;
  font-size: clamp(12px, .78vw, 15px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
  margin-left: .45em;
  white-space: nowrap;
}
.home-page .scene-tops .product-copy #tops-title .tops-number { color: #fff; font-weight: 400; }
html body.home-page .scene-tops .product-copy p.product-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px clamp(20px, 2vw, 40px);
  margin: clamp(28px, 2.25vw, 44px) 0 0;
  color: #fff;
  text-indent: 0;
  white-space: nowrap;
}
.home-page .scene-tops > .tops-disclaimer {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  margin: 0;
  color: #fff;
  font: 300 clamp(12px, 1vw, 20px)/1.3 XheartBody, sans-serif;
  white-space: nowrap;
}
@media (min-width: 701px) and (max-width: 900px) {
  .home-page .scene-tops .product-copy { top: 14%; }
}
@media (max-width: 700px) {
  .home-page .scene-tops .product-copy { top: 16%; }
  .home-page .scene-tops .product-copy #tops-title { margin-top: 10px; }
  .home-page .scene-tops .product-copy #tops-title .tops-adas { font-size: 10px; }
  html body.home-page .scene-tops .product-copy p.product-note {
    gap: 6px 14px;
    margin-top: 20px;
    font-size: 11px;
    line-height: 16px;
  }
  .home-page .scene-tops > .tops-disclaimer {
    top: 70%;
    bottom: auto;
    font-size: 10px;
    max-width: 92%;
    white-space: normal;
    text-align: center;
  }
}

html[lang="zh-CN"] body.home-page .scene-tops .product-copy p.product-note {
  margin-left: 0;
  text-indent: 0;
}
