/* Static content is visible by default; motion only enhances it. */
.hero h1 > .hero-title-mask {
  display: block;
  overflow: clip;
  color: var(--ink);
}
.hero h1 > .hero-title-muted {
  color: #737373;
}
.hero-title-line {
  display: block;
  transform-origin: 50% 100%;
}
.hero-brand {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 16px;
  min-height: 660px;
  padding: 50px 48px;
  text-align: left;
}
.hero-brand .hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.hero-brand .hero-label {
  border: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
  color: #777;
  font-size: 12px;
}
.hero-brand h1 {
  font-size: clamp(40px, 4.6vw, 61px);
  margin-top: 18px;
  line-height: 1.28;
}
.hero-brand .hero-description {
  font-size: 15px;
  margin-top: 22px;
}
.hero-brand .hero-actions {
  justify-content: flex-start;
  gap: 10px;
}
.hero-brand .hero-notes {
  justify-content: flex-start;
  margin-top: 17px;
  color: #888;
}
.hero-brand .button-large {
  padding-inline: 19px;
  font-size: 13px;
}
.brand-stage {
  position: relative;
  min-width: 0;
  height: 505px;
  touch-action: pan-y;
}
.brand-art {
  position: absolute;
  inset: 0;
  perspective: 1100px;
}
.brand-halo {
  position: absolute;
  width: 87%;
  aspect-ratio: 1;
  border: 1px solid #f0f0f0;
  border-radius: 50%;
  left: 6.5%;
  top: 7%;
}
.brand-halo::after {
  content: '';
  position: absolute;
  inset: 22px;
  border: 1px dashed #f0f0f0;
  border-radius: 50%;
}
.brand-scroll,
.brand-pointer {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.brand-layer {
  position: absolute;
  backface-visibility: visible;
}
.brand-layer img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.brand-friends {
  width: 62%;
  left: 19%;
  top: 8%;
  transform: translateZ(8px);
}
.brand-friends img {
  border-radius: 34%;
}
.brand-sprite {
  width: 28%;
}
html[data-motion='on'] .brand-sprite img {
  will-change: transform;
}
.brand-sprite-pronunciation {
  left: -1%;
  top: 10%;
  transform: translateZ(65px) rotate(-9deg);
}
.brand-sprite-erhua {
  right: -1%;
  top: 4%;
  transform: translateZ(40px) rotate(9deg);
}
.brand-sprite-passage {
  left: 0;
  bottom: 13%;
  transform: translateZ(90px) rotate(-7deg);
}
.brand-sprite-speech {
  right: 0;
  bottom: 9%;
  transform: translateZ(100px) rotate(8deg);
}
.brand-controls {
  position: absolute;
  bottom: 5px;
  right: 4px;
}
.motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 80px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #888;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.4;
}
.motion-toggle:hover {
  color: #222;
  background: #f7f7f7;
}
.motion-toggle .icon {
  width: 12px;
  height: 12px;
}
.motion-toggle[aria-pressed='false'] .icon {
  opacity: 0.4;
}
.motion-toggle:disabled {
  cursor: default;
}
.motion-preference {
  max-width: 1152px;
  margin: auto;
  padding: 0 42px 18px;
  border-inline: 1px solid var(--line);
  background: #fcfcfc;
}
.motion-preference:has([hidden]) {
  display: none;
}
.reading-progress {
  position: fixed;
  top: 71px;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 21;
  pointer-events: none;
}
.reading-progress > span {
  display: block;
  height: 100%;
  background: #171717;
  transform: scaleX(0);
  transform-origin: left center;
}
.home-page .section-space {
  padding-block: 62px;
}
.home-page .section-heading {
  margin-bottom: 28px;
  align-items: center;
}
.home-page .section-heading h2,
.home-page .faq h2 {
  font-size: 30px;
  line-height: 1.35;
}
.practice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.practice-card {
  position: relative;
  display: block;
  min-height: 202px;
  padding: 26px 19px;
  background: #fff;
  transition: background-color 0.2s;
}
.practice-card + .practice-card {
  border-left: 1px solid var(--line);
}
.practice-card:hover {
  background: #fafafa;
}
.practice-card > .icon {
  color: #555;
  width: 22px;
  height: 22px;
}
.practice-card h3 {
  font-size: 17px;
  margin-top: 19px;
  font-weight: 550;
}
.practice-card p {
  font-size: 12px;
  line-height: 1.7;
  color: #777;
  margin-top: 7px;
  max-width: 13em;
}
.practice-arrow {
  position: absolute;
  right: 17px;
  top: 28px;
  color: #a3a3a3;
}
.practice-arrow .icon {
  width: 14px;
  height: 14px;
}
.compact-workflow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fdfdfd;
}
.compact-workflow > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.compact-workflow .mono {
  font-size: 10px;
  color: #999;
}
.compact-workflow strong {
  font-size: 13px;
  font-weight: 500;
}
.compact-workflow > .icon {
  width: 15px;
  color: #bbb;
}
.home-page .guide-card {
  min-height: 230px;
}
.guide-card {
  transform-origin: center;
}
html[data-motion='on'] .guide-card:hover {
  box-shadow: 0 12px 26px #00000006;
}
.faq-answer {
  display: flow-root;
}
.qr-dialog {
  transform-origin: 50% 55%;
}
html[data-motion='off'],
html[data-motion='reduced'] {
  scroll-behavior: auto;
}

@media (max-width: 1020px) {
  .hero-brand {
    padding: 40px 28px;
    min-height: 560px;
  }
  .hero-brand h1 {
    font-size: 43px;
  }
  .hero-brand .button-large {
    padding-inline: 12px;
    font-size: 12px;
  }
  .brand-stage {
    height: 415px;
  }
  .motion-preference {
    margin-inline: 28px;
    padding-inline: 24px;
  }
  .practice-card {
    padding: 22px 13px;
  }
  .practice-card h3 {
    font-size: 15px;
  }
  .practice-arrow {
    right: 12px;
    top: 24px;
  }
  .compact-workflow {
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .hero-brand {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 40px 24px 12px;
    text-align: center;
  }
  .hero-brand h1 {
    font-size: 43px;
    margin-top: 12px;
  }
  .hero-brand .hero-description {
    font-size: 13px;
    margin-top: 17px;
    line-height: 1.8;
  }
  .hero-brand .hero-actions,
  .hero-brand .hero-notes {
    justify-content: center;
  }
  .hero-brand .hero-actions {
    margin-top: 21px;
  }
  .hero-brand .hero-notes {
    font-size: 10px;
    margin-top: 12px;
  }
  .brand-stage {
    width: 100%;
    max-width: 390px;
    height: 370px;
    margin-inline: auto;
  }
  .brand-friends {
    width: 59%;
    left: 20.5%;
    top: 4%;
  }
  .brand-sprite {
    width: 27%;
  }
  .brand-sprite-pronunciation {
    left: 2%;
    top: 10%;
  }
  .brand-sprite-erhua {
    right: 2%;
    top: 3%;
  }
  .brand-sprite-passage {
    left: 3%;
    bottom: 17%;
  }
  .brand-sprite-speech {
    right: 3%;
    bottom: 11%;
  }
  .brand-controls {
    bottom: 0;
  }
  .motion-toggle {
    min-height: 44px;
  }
  .motion-preference {
    margin-inline: 16px;
  }
  .reading-progress {
    top: 63px;
  }
  .home-page .section-space {
    padding-block: 38px;
  }
  .home-page .section-heading {
    margin-bottom: 22px;
    gap: 18px;
  }
  .home-page .section-heading h2,
  .home-page .faq h2 {
    font-size: 25px;
  }
  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .practice-card {
    min-height: 166px;
    padding: 22px;
  }
  .practice-card + .practice-card {
    border-left: 0;
  }
  .practice-card:nth-child(even) {
    border-left: 1px solid var(--line);
  }
  .practice-card:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .practice-card:last-child {
    grid-column: 1 / -1;
    min-height: 118px;
    padding-left: 66px;
  }
  .practice-card:last-child > .icon {
    position: absolute;
    left: 25px;
    top: 28px;
  }
  .practice-card:last-child h3 {
    margin-top: 0;
  }
  .practice-card p {
    max-width: none;
    font-size: 11px;
  }
  .practice-card h3 {
    font-size: 16px;
    margin-top: 12px;
  }
  .practice-arrow {
    top: 26px;
    right: 21px;
  }
  .compact-workflow {
    gap: 16px;
    padding: 25px 18px;
  }
  .compact-workflow > div {
    flex-direction: column;
    gap: 8px;
  }
  .compact-workflow strong {
    font-size: 12px;
  }
  .home-page .guide-card {
    min-height: 170px;
  }
  .home-page .faq {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .hero-brand {
    padding: 30px 16px 9px;
  }
  .hero-brand h1 {
    font-size: clamp(34px, 10vw, 42px);
  }
  .hero-brand .hero-label {
    font-size: 10px;
  }
  .brand-stage {
    height: 310px;
  }
  .brand-sprite-passage {
    bottom: 15%;
  }
  .brand-sprite-speech {
    bottom: 9%;
  }
  .hero-brand .hero-description {
    font-size: 12px;
  }
  .hero-brand .button-large {
    min-height: 46px;
    font-size: 12px;
    padding-inline: 16px;
  }
  .home-page .section-heading h2 {
    font-size: 23px;
  }
  .motion-preference {
    margin-inline: 12px;
  }
  .brand-friends {
    border-radius: 35%;
  }
  .compact-workflow {
    gap: 12px;
  }
}

@media (max-width: 350px) {
  .brand-stage {
    height: 265px;
  }
  .hero-brand .button-large {
    padding-inline: 11px;
    font-size: 11px;
  }
}
