@font-face {
  font-family: "Helvetica Now Display";
  src: url("/assets/fonts/HelveticaNowDisplay-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "HONOR Sans Brand";
  src: url("/assets/fonts/HONORSansBrand-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: block;
}

:root {
  color-scheme: dark;
  background: #121212;
  color: #ebebeb;
  font-family: "Helvetica Now Display", "HONOR Sans Brand";
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Additional sections must not reduce the first screen's reference width. */
html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body,
figure,
h1 {
  margin: 0;
}

body {
  min-width: 280px;
}

/* Keep each supplied-font character transformable without changing the heading box. */
[data-split-heading] .split-heading-char {
  display: inline-block;
  position: relative;
}

.copy-reveal-frame,
.copy-reveal-content {
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* First screen: the supplied flat Hello! composition, animated only on input. */
.intro-transition {
  position: relative;
  isolation: isolate;
  background: #fff;
}

.intro-transition[data-intro-motion] .first-screen {
  position: sticky;
  top: var(--hero-sticky-top, 0px);
  z-index: 0;
}

.hero-transition-content {
  position: absolute;
  inset: 0;
}

.intro-transition[data-intro-motion] .type-stage {
  z-index: 1;
  margin-top: var(--intro-reading-space, 0px);
}

.first-screen {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 56.01876vw;
  overflow: clip;
  background: #131313;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
}

.brand {
  position: absolute;
  top: 1.198801vw;
  left: 1.45vw;
  display: block;
  width: 2.797203vw;
  aspect-ratio: 1;
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand:focus-visible {
  outline: 2px solid #ebebeb;
  outline-offset: 5px;
  border-radius: 0;
}

.navigation {
  position: absolute;
  top: 1.754386vw;
  right: 2.063983vw;
  display: grid;
  grid-template-columns: 0.79fr 0.79fr 1fr 1fr;
  gap: 0;
  width: 31.837979vw;
}

.navigation-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.754386vw;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #121212;
  font: 500 1.341589vw / 1 "HONOR Sans Brand";
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}

.navigation-item:disabled {
  cursor: default;
}

.navigation-item[aria-current="page"],
.navigation-item[aria-current="location"] {
  background: transparent;
  color: #fff;
}

:is(.about-page, .faq-page, .purchase-page, .detail-page) .navigation-item {
  background: transparent;
  color: #131313;
}

:is(.about-page, .faq-page, .purchase-page, .detail-page) .navigation-item:is([aria-current="page"], [aria-current="location"]) {
  background: #131313;
  color: #fff;
}

.navigation-item[href]:focus-visible {
  outline: 2px solid #06ff3b;
  outline-offset: 4px;
}

.hero-hello {
  position: absolute;
  z-index: 1;
  left: 5.4716%;
  top: 21.5814%;
  width: 88.0146%;
  height: 63.2558%;
  outline: none;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.hero-hello:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}

.hello-flat,
.hello-slices {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hello-flat {
  display: block;
  object-fit: fill;
  -webkit-user-drag: none;
}

.hello-slices {
  overflow: hidden;
  opacity: 0;
  background: #131313;
}

.hello-strip {
  position: absolute;
  top: 0;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background-repeat: no-repeat;
  background-color: #131313;
  will-change: transform;
}

.hero-title {
  position: absolute;
  z-index: 2;
  left: 1.748252%;
  top: 76.6%;
  color: #fff;
  font: 400 7.192807vw / 0.73 "Helvetica Now Display", "HONOR Sans Brand";
  letter-spacing: -0.02em;
  pointer-events: none;
}

.hero-title span {
  display: block;
  white-space: nowrap;
}

/* Keep the flat composition and readable navigation on small screens. */
@media (max-width: 600px) {
  .first-screen {
    min-height: max(100svh, 155vw);
  }

  .brand {
    top: 18px;
    left: 12px;
    width: 40px;
  }

  .navigation {
    top: 24px;
    right: 12px;
    width: min(79%, 430px);
    gap: 0;
  }

  .navigation-item {
    height: 28px;
    border-radius: 999px;
    font-size: clamp(10px, 2.8vw, 15px);
    letter-spacing: -0.045em;
  }

  .hero-title {
    top: auto;
    bottom: 30px;
    left: 4.5%;
    font-size: 12vw;
    line-height: 0.78;
  }

}

/* Second screen: type stays in place; only the image layer responds to input. */
.type-stage {
  --card-size: clamp(78px, 12.1939275vw, 270px);
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 59.402829vw;
  overflow: clip;
  background: #fff;
  color: #ebebeb;
  color-scheme: light;
  touch-action: pan-y pinch-zoom;
}

.type-statement {
  position: absolute;
  z-index: 0;
  top: 35.273369%;
  left: 30.644316%;
  margin: 0;
  font: 400 7.333682vw / 0.714286 "Helvetica Now Display", "HONOR Sans Brand";
  letter-spacing: -0.028em;
}

.type-statement span {
  display: block;
  white-space: nowrap;
}

.card-trail {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  user-select: none;
}

.trail-card {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: var(--card-size);
  height: var(--card-size);
  border-radius: 0;
  object-fit: cover;
  opacity: 0;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  -webkit-user-drag: none;
}

@media (max-width: 600px) {
  .type-stage {
    min-height: max(100svh, 110vw);
  }

  .type-statement {
    top: 35.273369%;
  }

  .trail-card {
    border-radius: 0;
  }
}

/* Third screen, measured from the supplied 988 × 1138 product layout. */
.products {
  position: relative;
  padding-top: 24.493927vw;
  padding-bottom: 7.388664vw;
  background: #fff;
  color: #121212;
  color-scheme: light;
}

.products-header {
  position: absolute;
  top: 7.489879vw;
  left: 2.732794%;
  right: 3.846154%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.products-header h2 {
  margin: 0;
  font: 500 8.097166vw / 1 "HONOR Sans Brand";
  letter-spacing: -0.065em;
  white-space: nowrap;
}

.products-information {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2.935223vw;
  padding-top: 0.202429vw;
  color: #ccc;
  font: 500 1.214575vw / 1.15 "HONOR Sans Brand";
}

.product-features,
.products-information p {
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.product-features {
  list-style: none;
}

.product-features li::before {
  content: "";
  display: inline-block;
  width: 0.809717vw;
  height: 0.809717vw;
  margin-right: 0.101215vw;
  border-radius: 0;
  background: currentColor;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.42915vw;
  width: 83.198381%;
  margin-inline: auto;
}

.font-product {
  position: relative;
  display: block;
  aspect-ratio: 1;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-y pinch-zoom;
}

.font-product img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.product-default {
  opacity: 1;
}

.product-hover {
  opacity: 0;
}

.font-product[data-preview="true"] .product-default {
  opacity: 0;
}

.font-product[data-preview="true"] .product-hover {
  opacity: 1;
}

.font-product:focus-visible {
  outline: 2px solid #121212;
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .font-product img {
    transition: none;
  }
}

@media (max-width: 600px) {
  .products {
    padding: 48px 18px 48px;
  }

  .products-header {
    position: static;
    display: block;
  }

  .products-header h2 {
    font-size: clamp(42px, 11vw, 66px);
  }

  .products-information {
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
    padding-top: 0;
    font-size: 11px;
    line-height: 1.25;
  }

  .product-features li::before {
    width: 7px;
    height: 7px;
    margin-right: 2px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 36px;
  }

  .font-product {
    border-radius: 0;
  }
}

/* Fourth screen: the supplied CircularGallery, within the original white layout. */
.reviews-section {
  position: relative;
  min-height: max(100svh, 81.849551vw);
  overflow: clip;
  background: #fff;
  color: #121212;
  color-scheme: light;
}

.reviews-section h2 {
  position: absolute;
  top: 7.0vw;
  left: 2.732794%;
  margin: 0;
  font: 500 8.097166vw / 1 "HONOR Sans Brand";
  letter-spacing: -0.065em;
  white-space: nowrap;
}

.reviews-gallery {
  position: absolute;
  top: 17.218081vw;
  left: 0;
  width: 100%;
  height: 42.78813vw;
  background: #fff;
}

.reviews-gallery button {
  font-family: "Helvetica Now Display", "HONOR Sans Brand";
  font-synthesis: none;
}

.review-statistics {
  position: absolute;
  top: 60.731539vw;
  left: 19.875777%;
  right: 19.875777%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5vw;
}

.review-statistic {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.statistic-prefix,
.statistic-caption {
  display: block;
  font: 500 0.966184vw / 1.142857 "HONOR Sans Brand";
}

.statistic-number {
  position: relative;
  display: block;
  margin-top: 0.138026vw;
  font: 400 6.901311vw / 0.8 "Helvetica Now Display";
  letter-spacing: -0.045em;
}

.statistic-width {
  visibility: hidden;
}

.statistic-counter {
  position: absolute;
  inset: 0;
  display: block;
  white-space: nowrap;
  text-align: center;
}

.statistic-caption {
  margin-top: 0.690131vw;
}

@media (max-width: 600px) {
  .reviews-section {
    min-height: max(100svh, 660px);
    padding: 48px 18px 56px;
  }

  .reviews-section h2 {
    position: static;
    font-size: clamp(42px, 11vw, 66px);
  }

  .reviews-gallery {
    top: 140px;
    height: 370px;
  }

  .review-statistics {
    top: 540px;
    left: 18px;
    right: 18px;
    gap: 12px;
  }

  .statistic-prefix,
  .statistic-caption {
    font-size: 11px;
    line-height: 16px;
  }

  .statistic-number {
    margin-top: 3px;
    font-size: clamp(46px, 12vw, 70px);
    line-height: 0.9;
  }

  .statistic-caption {
    margin-top: 10px;
  }
}

/* Fifth screen. Only the word and hovered copy animate inside fixed regions. */
.license-section {
  position: relative;
  min-height: max(100svh, 90.653213vw);
  overflow: clip;
  background: #fff;
  color: #121212;
  color-scheme: light;
}

.license-section h2 {
  position: absolute;
  top: 5vw;
  left: 2.732794%;
  margin: 0;
  font: 500 8.097166vw / 1 "HONOR Sans Brand";
  letter-spacing: -0.065em;
  white-space: nowrap;
}

.license-typeface {
  position: absolute;
  top: 17.6vw;
  left: 3.6%;
  right: 2.7%;
  height: 29vw;
  font: 400 24.5vw / 1 "Helvetica Now Display";
  white-space: nowrap;
  touch-action: pan-y pinch-zoom;
}

.license-typeface .text-pressure-title > [data-char] {
  transform: translate(var(--tech-x, 0px), var(--tech-y, 0px));
}

.license-typeface .text-pressure-title > [data-tech-hover] {
  color: #06ff3b;
}

.license-typeface > .license-tech-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.license-copy {
  position: absolute;
  margin: 0;
  color: #ccc;
  font: 400 1.214575vw / 1.15 "Helvetica Now Display", "HONOR Sans Brand";
}

.license-original {
  display: block;
}

.license-typing {
  position: absolute;
  inset: 0;
  display: block;
  color: #121212;
  opacity: 0;
  pointer-events: none;
}

.license-copy[data-typing] .license-original {
  opacity: 0;
}

.license-copy[data-typing] .license-typing {
  opacity: 1;
}

.license-typing .license-text-type {
  display: block;
  width: 100%;
  font: inherit;
  white-space: pre-wrap;
}

.license-price {
  top: 43.95vw;
  left: 37.7%;
  width: 28%;
}

.license-scope {
  top: 52.3vw;
  left: 3.6%;
  width: 26%;
}

.license-restrictions {
  top: 55.5vw;
  left: 69.6%;
  width: 25.4%;
}

.license-usage {
  top: 74.65vw;
  left: 49%;
  width: 25.4%;
}

@media (max-width: 600px) {
  .license-section {
    min-height: 100svh;
    padding: 48px 18px 64px;
  }

  .license-section h2 {
    position: static;
    font-size: clamp(42px, 11vw, 66px);
  }

  .license-typeface {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    height: 32vw;
    margin-top: 40px;
  }

  .license-copy {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin-top: 40px;
    font-size: 13px;
    line-height: 1.4;
  }

  .license-price {
    width: 88%;
    margin-left: 12%;
  }

  .license-scope {
    width: 94%;
  }

  .license-restrictions {
    width: 92%;
    margin-left: 8%;
  }

  .license-usage {
    width: 94%;
    margin-left: 6%;
  }
}

.site-footer {
  position: relative;
  box-sizing: content-box;
  min-height: 17.435897vw;
  border-top: 5.5vw solid #fff;
  background: #121212;
  color: #666;
  font: 500 1vw / 1.35 "HONOR Sans Brand";
}

.footer-navigation,
.footer-social {
  position: absolute;
  top: 7.95vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-navigation {
  left: 65.2%;
}

.footer-social {
  left: 80.1%;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color 120ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ccc;
}

.site-footer a[href] {
  cursor: pointer;
}

.site-footer a[aria-disabled="true"] {
  cursor: default;
}

.footer-copyright {
  position: absolute;
  top: 7.95vw;
  left: 2.9%;
  margin: 0;
  white-space: nowrap;
  font-family: "Helvetica Now Display", "HONOR Sans Brand";
  font-weight: 400;
}

.footer-copyright [lang="en"] {
  font: 400 1.1vw / 1.1 "Helvetica Now Display";
  letter-spacing: -0.03em;
}

@media (max-width: 600px) {
  .site-footer {
    box-sizing: border-box;
    min-height: calc(250px + 5.5vw);
    padding: 52px 18px 42px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 18px;
    font-size: 13px;
    line-height: 1.6;
  }

  .footer-navigation,
  .footer-social {
    position: static;
  }

  .footer-navigation {
    order: 1;
  }

  .footer-social {
    order: 2;
  }

  .footer-copyright {
    position: static;
    grid-column: 1 / -1;
    order: 3;
    margin-top: 18px;
    white-space: normal;
    font-size: 11px;
  }

  .footer-copyright [lang="en"] {
    font-size: 13px;
  }
}
