@font-face {
  font-family: "Energy Headline";
  src: url("./assets/energy-title.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Energy Copy";
  src: url("./assets/energy-copy-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Energy Copy";
  src: url("./assets/energy-copy-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --hero-background: #000;
  --hero-text: #f1f5fa;
  --hero-gutter: clamp(32px, 7.5vw, 160px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--hero-background);
}

body {
  overflow-x: hidden;
  overflow-y: auto;
}

::selection {
  color: #fff;
  background: #174c78;
}

.energy-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--hero-background);
}

.energy-hero__visual {
  --nav-media-fade: 30%;
  position: absolute;
  z-index: -1;
  inset: -32% -10% 0 40%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--nav-media-fade));
  mask-image: linear-gradient(to right, transparent, #000 var(--nav-media-fade));
}

.energy-hero__earth {
  pointer-events: auto;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.energy-hero__content {
  display: flex;
  align-items: center;
  height: 100%;
  padding-inline: var(--hero-gutter);
  padding-bottom: 4vh;
}

.energy-hero__copy {
  width: min(100%, 52rem);
}

.energy-hero__title {
  position: relative;
  margin: 0;
  color: var(--hero-text);
  font-family: "Energy Headline", "Noto Sans SC", sans-serif;
  font-size: clamp(40px, 5.1vw, 88px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.energy-hero__subtitle {
  margin: clamp(24px, 2.4vw, 36px) 0 0;
  color: #d4dfec;
  font-family: "Energy Copy", "Noto Sans SC", sans-serif;
  font-size: clamp(18px, 1.65vw, 26px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.045em;
}

.energy-hero__subtitle-language {
  --language-display: flex;
  flex-wrap: wrap;
  gap: 0.25em 0.7em;
}

.energy-hero__subtitle span {
  white-space: nowrap;
}

.energy-hero__ai {
  color: #eab4f4;
  font-weight: 600;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .energy-hero__ai {
    background-image: linear-gradient(110deg, #ffe0f3 0%, #eab4f4 48%, #c16be8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

@media (forced-colors: active) {
  .energy-hero__ai {
    background-image: none;
    -webkit-text-fill-color: CanvasText;
    color: CanvasText;
  }
}

.energy-hero__description {
  max-width: 26em;
  margin: 16px 0 0;
  color: #aab8c9;
  font-family: "Energy Copy", "Noto Sans SC", sans-serif;
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.015em;
  text-wrap: balance;
}

.energy-hero__description span {
  display: inline-block;
}

.energy-hero__actions {
  margin-top: clamp(22px, 2.2vw, 32px);
}

.energy-hero__company {
  --language-display: inline-flex;
}

.energy-hero [data-home-language] {
  display: var(--language-display, inline);
}

.energy-hero [data-home-language="en"] {
  display: none;
  font-family: var(--f-text);
}

:root[lang="en"] .energy-hero [data-home-language="zh-CN"] {
  display: none;
}

:root[lang="en"] .energy-hero [data-home-language="en"] {
  display: var(--language-display, inline);
}

:root[lang="en"] .energy-hero__title {
  max-width: 13em;
  font-size: clamp(30px, 3.2vw, 58px);
  letter-spacing: -0.02em;
  white-space: normal;
  text-wrap: balance;
}

@media (max-width: 767px) {
  .energy-hero__visual {
    --nav-media-fade: 28%;
    inset: 0 -48% -8% 10%;
  }

  .energy-hero__content {
    align-items: flex-start;
    padding-top: 22vh;
    padding-top: 22dvh;
    padding-bottom: 0;
  }

  .energy-hero__title {
    font-size: clamp(26px, 7vw, 50px);
    letter-spacing: 0.025em;
  }

  .energy-hero__subtitle {
    margin-top: 24px;
    font-size: clamp(18px, 2.6vw, 20px);
    letter-spacing: 0.025em;
  }

  .energy-hero__description {
    margin-top: 14px;
  }

  :root[lang="en"] .energy-hero__title {
    font-size: clamp(26px, 6.6vw, 42px);
  }
}

@media (max-height: 500px) and (min-width: 768px) {
  .energy-hero__title {
    font-size: clamp(36px, 5vw, 64px);
  }
}
