.home-page {
  margin: 0;
  color: #222;
  background: #fff;
  --home-heading-font: 'PingFang SC', 'MiSans VF', 'Microsoft YaHei', sans-serif;
  --home-font-family: 'MiSans VF', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-family: var(--home-font-family);
}
.home-page button,
.home-page input,
.home-page textarea,
.home-page select {
  font-family: var(--home-font-family);
}
.home-page :focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 5px;
}
@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.home-poster {
  position: relative;
  /* Keep the 1920 × 580 artwork at design scale on desktop. */
  height: max(580px, 30.208333vw);
  overflow: hidden;
  background: #f5f5f7;
  text-align: center;
}
.home-poster > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-poster-copy {
  position: absolute;
  inset: auto 0 48px;
  color: #1d1d1f;
}
.home-poster-actions {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2.35vw, 24px);
}
.home-poster-copy h1,
.home-poster-copy p,
.home-poster-copy a,
.home-catalog h2,
.home-catalog h3,
.home-catalog label,
.home-service span,
.home-shop-banner h2,
.home-shop-banner a {
  font-family: var(--home-heading-font);
}
.home-poster h1,
.home-catalog h2 {
  margin: 0;
}
.home-poster-copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-blue);
  border-radius: 40px;
}
.home-catalog {
  color: #1d1d1f;
}
.home-catalog h2 {
  text-align: center;
  font-size: clamp(26px, 3.91vw, 40px);
}
.home-tab-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}
.home-choice {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.home-tab-group > label {
  position: relative;
  flex: 1 1 0;
  min-width: min(80px, 23%);
  max-width: 200px;
  cursor: pointer;
  text-align: center;
  padding: 12px 2px;
  color: #62636a;
}
.home-choice:checked + label {
  color: #1d1d1f;
  font-weight: 500;
}
.home-choice:focus-visible + label {
  outline: 2px solid var(--brand-blue);
}
.home-tab-group > label span {
  transform: translateY(10px);
}
.home-choice:checked + label span {
  transform: none;
}
.home-tab-group > label::after {
  opacity: 0;
  content: '';
  flex: none;
  width: 28.001px;
  height: 12.0005px;
  margin: 10px auto -2px;
  background: var(--brand-blue);
  -webkit-mask: url('../images/homepage/chrome/tab-smile.svg') center no-repeat;
  mask: url('../images/homepage/chrome/tab-smile.svg') center no-repeat;
}
.home-choice:checked + label::after {
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .home-tab-group > label::after {
    transition: opacity var(--nav-motion);
  }
  .home-tab-group > label span {
    transition: transform var(--card-motion);
  }
  .home-tab-group > label {
    transition: color var(--nav-motion), font-size var(--card-motion);
  }
}
.home-tab-panel {
  order: 1;
  flex: 0 0 100%;
  margin-top: 24px;
  display: none;
}
.home-choice:checked + label + .home-tab-panel {
  display: block;
}
.home-tab-panel[data-outgoing] {
  position: absolute;
  z-index: 1;
  display: block;
  inset-inline: 0;
  top: var(--outgoing-panel-top);
  max-height: var(--outgoing-panel-height);
  margin-top: 0;
  overflow: hidden;
  pointer-events: none;
}
.home-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 2vw, 40px);
}
.home-comparison figure {
  margin: 0;
  aspect-ratio: 700 / 460;
  position: relative;
  overflow: hidden;
}
.home-catalog img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}
.home-comparison figcaption {
  position: absolute;
  inset: auto 0 0;
  text-align: center;
  padding: 20px 6px 12px;
  background: linear-gradient(transparent, #0009);
  color: white;
}
.home-scene-card {
  background: #f5f5f7;
  display: grid;
  grid-template-columns: minmax(0, 643fr) minmax(0, 797fr);
  align-items: center;
}
.home-scene-card img {
  aspect-ratio: 643/440;
}
.home-scene-card > div {
  display: grid;
  align-content: center;
  gap: clamp(12px, 2.35vw, 24px);
  padding: 5% 10%;
}
.home-scene-card small {
  font-size: 14px;
  line-height: 19px;
  color: #62636a;
}
.home-scene-card h3 {
  margin: 0;
  font-size: clamp(20px, 3.125vw, 32px);
  line-height: 1.25;
  font-weight: 500;
}
@media (max-width: 640px) {
  .home-scene-card {
    grid-template-columns: 1fr;
  }
  .home-tab-group > label {
    font-size: 14px;
  }
  .home-comparison figcaption {
    font-size: 12px;
    padding-bottom: 5px;
  }
}
.home-poster {
  background-size: cover;
  background-position: center;
}
/* The catalogues follow the artwork's 1440px grid. */
.showcase-services,
.home-catalog {
  width: min(92%, 1440px);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
.home-poster h1 {
  font-size: clamp(28px, 5.28vw, 54px);
  line-height: clamp(42px, 5.86vw, 60px);
  font-weight: 600;
}
.home-poster-copy p {
  font-size: clamp(18px, 2.74vw, 28px);
  line-height: calc(40 / 28);
  font-weight: 400;
  color: #424245;
  margin: clamp(4px, 1.18vw, 12px) 0 clamp(10px, 1.96vw, 20px);
}
.home-poster-copy a {
  width: clamp(100px, 12.5vw, 128px);
  min-height: 44px;
  padding: 5px 0;
  line-height: 1.2;
  color: var(--brand-blue);
  border-color: var(--brand-blue);
  background: transparent;
  font-size: clamp(16px, 1.96vw, 20px);
  font-weight: 500;
}
.home-poster-copy a:first-child,
.home-shop-banner a {
  background: var(--brand-blue);
  color: #fff;
}
.home-catalog {
  margin-block: clamp(32px, 4.89vw, 50px) 0;
}
.home-catalog + .home-catalog {
  margin-top: clamp(48px, 7.82vw, 80px);
}
.home-catalog h2 {
  line-height: 1;
  font-weight: 500;
}
.home-tab-group {
  margin-top: clamp(16px, 2.93vw, 30px);
}
.home-tab-group > label {
  flex: 0 1 clamp(108px, 11.46vw, 220px);
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 14px 2px;
  font-size: 16px;
  line-height: 24px;
}
.home-choice:checked + label {
  font-size: 20px;
}
@media (min-width: 768px) {
  .home-catalog + .home-catalog .home-tab-group > label {
    flex-basis: clamp(108px, 12.5vw, 240px);
  }
}
.home-tab-panel {
  margin-top: 20px;
}
.home-comparison {
  gap: clamp(8px, 2.09vw, 40px);
}
.home-comparison figcaption {
  padding-bottom: 20px;
}
.home-catalog + .home-catalog .home-tab-group {
  margin-top: 20px;
}
.home-scene-card p {
  font-size: clamp(16px, 1.96vw, 20px);
  color: #424245;
  line-height: 1.48;
}
.showcase-services {
  margin-block: clamp(32px, 5.57vw, 57px) 40px;
}
.showcase-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.home-service,
.home-shop-banner {
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.home-service {
  width: 100%;
  height: clamp(130px, 17.1vw, 175px);
  gap: 16px;
  color: #424245;
  font-size: clamp(16px, 1.96vw, 20px);
  font-weight: 400;
}
.home-service span {
  line-height: 2;
}
.home-service:hover {
  color: #1d1d1f;
}
.home-service img {
  width: 48px;
  height: 48px;
}
.home-page.site-shell .site-support.home-consult {
  position: relative;
  inset: auto;
  display: block;
  z-index: 2;
}
.home-page.site-shell .home-consult .site-support-panel {
  position: absolute;
  inset: auto 0 calc(100% + 6px) auto;
}
.home-shop-banner {
  min-height: clamp(210px, 27.35vw, 280px);
  margin-top: 24px;
  gap: 24px;
  padding: clamp(24px, 5.18vw, 53px) 24px clamp(24px, 4.69vw, 48px);
}
.home-shop-banner p {
  font:
    500 24px/23px 'Space Grotesk',
    sans-serif;
}
.home-shop-banner h2 {
  font-size: clamp(26px, 3.91vw, 40px);
  line-height: 1.5;
  font-weight: 500;
}
.home-shop-banner a {
  padding: 12px 32px;
  line-height: 24px;
  min-width: 160px;
  border-radius: 40px;
  font-size: 20px;
  font-weight: 500;
}
@media (max-width: 1023px) {
  .home-poster {
    /* Leave room for the product above the copy and the 48px inset below. */
    height: clamp(432px, 60vw, 580px);
  }
}
@media (max-width: 767px) {
  .home-catalog h2 {
    line-height: 1.25;
  }
  .home-tab-group > label {
    flex: 1 1 23%;
    min-width: 0;
    padding-inline: 2px;
    font-size: 14px;
  }
  .home-choice:checked + label {
    font-size: 15px;
  }
  .home-tab-panel {
    margin-top: 8px;
  }
  .home-comparison figcaption {
    padding-bottom: 6px;
  }
  .showcase-service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .home-service {
    height: 124px;
    gap: 10px;
  }
  .home-service img {
    width: 36px;
    height: 36px;
  }
  .home-page.site-shell .home-consult .site-support-panel {
    inset-inline: 0 auto;
    max-width: 88vw;
  }
}
