/* English edition: same system, shorter line lengths and calmer display sizes. */
html[lang="en"] {
  --serif: "Xiaoyou Serif", "Bodoni MT", "Didot", "Baskerville", Georgia, serif;
}

html[lang="en"] .hero__title {
  max-width: 760px;
  font-size: clamp(48px, 6.5vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

html[lang="en"] .solution-title,
html[lang="en"] .cases-title,
html[lang="en"] .news-title {
  font-size: clamp(42px, 5.6vw, 86px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

html[lang="en"] .about-title {
  font-size: clamp(58px, 10vw, 150px);
  line-height: 0.95;
}

html[lang="en"] .legal-title {
  font-size: clamp(40px, 5.2vw, 78px);
  line-height: 1.05;
}

html[lang="en"] .display,
html[lang="en"] .intro__title,
html[lang="en"] .manifesto__body .display {
  font-size: clamp(34px, 4.1vw, 64px);
  line-height: 1.1;
}

html[lang="en"] .cta-band__title {
  font-size: clamp(38px, 5.3vw, 84px);
  line-height: 1.04;
}

html[lang="en"] .contact-block__title,
html[lang="en"] .news-contact h2 {
  font-size: clamp(32px, 4vw, 58px);
}

html[lang="en"] .terminal-band__copy h2 {
  font-size: clamp(30px, 3.8vw, 56px);
}

html[lang="en"] .case-story__title {
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.14;
}

html[lang="en"] .news-item h2 {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.32;
}

html[lang="en"] .news-ip__intro h2 {
  font-size: clamp(34px, 4.2vw, 64px);
}

html[lang="en"] .hero__bottom {
  max-width: 760px;
}

html[lang="en"] .hero__desc p,
html[lang="en"] .lead {
  max-width: 620px;
}

html[lang="en"] .about-title em {
  font-size: 0.34em;
}

html[lang="en"] .main-nav {
  gap: clamp(18px, 2.1vw, 34px);
}

html[lang="en"] .main-nav a {
  letter-spacing: 0.02em;
}

html[lang="en"] .brand__word {
  letter-spacing: 0.03em;
}

html[lang="en"] .footer-col a,
html[lang="en"] .footer-col button,
html[lang="en"] .footer-col span {
  max-width: 280px;
}

html[lang="en"] .footer-brand p {
  max-width: 300px;
}

@media (max-width: 640px) {
  html[lang="en"] .hero__title {
    font-size: clamp(42px, 11vw, 58px);
  }

  html[lang="en"] .about-title {
    font-size: clamp(52px, 13vw, 72px);
  }

  html[lang="en"] .solution-title,
  html[lang="en"] .cases-title,
  html[lang="en"] .news-title {
    font-size: clamp(38px, 10.5vw, 54px);
  }

  html[lang="en"] .display,
  html[lang="en"] .cta-band__title {
    font-size: clamp(32px, 9vw, 44px);
  }
}

/* Language switch shared by both editions. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 33px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.lang-switch:hover,
.lang-switch:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(8, 19, 25, 0.04);
}

.header-end .lang-switch {
  margin-right: 2px;
}

@media (max-width: 1100px) {
  .header-end .lang-switch {
    margin-left: 4px;
  }
}

@media (max-width: 640px) {
  .header-end .lang-switch {
    min-width: 31px;
    height: 23px;
    padding: 0 7px;
  }
}


html[lang="en"] .legal-content p,
html[lang="en"] .legal-content li {
  max-width: 600px;
}


/* Replace Chinese pseudo-labels with English equivalents on the English pages. */
html[lang="en"] .terminal-band__media::before {
  content: "ROKID GLASS3 / HARDWARE PARTNER";
}

html[lang="en"] .companion-card__answer::before,
html[lang="en"] .chat-bubble--ai::before {
  content: "XY";
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.02em;
}
