:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --ink: #050505;
  --muted: rgba(5, 5, 5, 0.5);
  --soft: rgba(5, 5, 5, 0.08);
  --line: rgba(5, 5, 5, 0.12);
  --circle-radius: clamp(92px, 10vw, 170px);
  --cursor-x: 8%;
  --cursor-y: 38%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --depth-x: 0px;
  --depth-y: 0px;
  --grid-x: 0px;
  --grid-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  text-rendering: optimizeLegibility;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 clamp(22px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 1.26rem;
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  border: 1px solid rgba(5, 5, 5, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 34px rgba(5, 5, 5, 0.04);
  font-size: 0.94rem;
  font-weight: 760;
}

.nav-links a {
  min-width: 54px;
  padding: 9px 13px;
  border-radius: 7px;
  text-align: center;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.nav-links a:hover,
.nav-links .is-active {
  background: rgba(5, 5, 5, 0.08);
}

.header-meta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: rgba(5, 5, 5, 0.58);
  font-size: 0.94rem;
  font-weight: 650;
}

.language-button {
  min-width: 58px;
  padding: 9px 15px;
  border: 1px solid rgba(5, 5, 5, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 820;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 76px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(251, 250, 247, 0) 38%),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(5, 5, 5, 0.18) 1px, transparent 1.6px);
  background-position: calc(22px + var(--grid-x)) calc(21px + var(--grid-y));
  background-size: 58px 58px;
  opacity: 0.68;
  pointer-events: none;
  transition: background-position 80ms linear;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(5, 5, 5, 0.035), transparent 8%),
    radial-gradient(circle at 16% 76%, rgba(5, 5, 5, 0.025), transparent 10%);
  pointer-events: none;
}

.field-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(calc(var(--grid-x) * -1), calc(var(--grid-y) * -1), 0);
  will-change: transform;
}

.shape {
  position: absolute;
  display: block;
  opacity: 0.16;
}

.shape-one {
  top: 14%;
  right: 27%;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(5, 5, 5, 0.16);
  border-radius: 50%;
}

.shape-two {
  top: 31%;
  right: 10%;
  width: 136px;
  height: 1px;
  background: rgba(5, 5, 5, 0.16);
  transform: rotate(28deg);
}

.shape-three {
  left: 10%;
  bottom: 18%;
  width: 84px;
  height: 1px;
  background: rgba(5, 5, 5, 0.16);
  transform: rotate(-15deg);
}

.title-stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: calc(100svh - 76px);
  padding: 78px 28px 104px;
}

.title-copy {
  grid-area: 1 / 1;
  display: grid;
  justify-items: center;
  width: min(100%, 1180px);
  text-align: center;
  transform: translate3d(var(--depth-x), var(--depth-y), 0);
  transform-origin: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.title-copy-english {
  position: relative;
  z-index: 1;
}

.title-copy-chinese {
  position: relative;
  z-index: 2;
}

.title {
  display: grid;
  grid-template-columns: minmax(0, 4.75ch) minmax(0, 2.65ch) minmax(0, 3.55ch);
  align-items: baseline;
  column-gap: clamp(0.06em, 0.9vw, 0.15em);
  width: min(100%, 11.35ch);
  max-width: 100%;
  margin: 0;
  color: inherit;
  font-size: clamp(4.4rem, 7.35vw, 7.25rem);
  font-weight: 930;
  letter-spacing: 0;
  line-height: 0.9;
  text-align: center;
  text-wrap: balance;
  text-transform: uppercase;
  white-space: nowrap;
}

.title-word {
  display: inline-block;
  min-width: 0;
  transform: translateZ(28px);
}

.title-word-one {
  text-align: right;
}

.title-word-two {
  text-align: center;
}

.title-word-three {
  text-align: left;
}

.title em {
  font-family:
    "Helvetica Neue", Arial, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-style: normal;
  font-weight: 820;
  text-transform: none;
  transform: translateZ(58px);
}

.subtitle {
  width: max-content;
  max-width: min(100%, 92vw);
  margin: 24px auto 0;
  color: rgba(5, 5, 5, 0.52);
  font-size: 1.08rem;
  font-weight: 560;
  letter-spacing: 0;
  white-space: nowrap;
  transform: translateZ(20px);
}

.reveal {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #020202;
  color: #fff;
  clip-path: circle(var(--circle-radius) at var(--cursor-x) var(--cursor-y));
  will-change: clip-path;
}

.reveal::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1.6px);
  background-position: calc(22px + var(--grid-x)) calc(21px + var(--grid-y));
  background-size: 58px 58px;
  opacity: 0.18;
}

.title-chinese {
  display: flex;
  justify-content: center;
  gap: clamp(0.02em, 0.55vw, 0.08em);
  color: #fff;
  font-size: clamp(4.4rem, 7.35vw, 7.25rem);
  font-weight: 920;
  text-transform: none;
}

.title-chinese .title-word {
  min-width: auto;
  text-align: center;
}

.title-chinese em {
  font-weight: 920;
}

.subtitle-reveal {
  color: rgba(255, 255, 255, 0.68);
}

.model-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 132px;
  background: var(--bg);
}

.model-strip article {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  padding: 26px clamp(20px, 4vw, 54px);
  border-right: 1px solid var(--line);
}

.model-strip article:last-child {
  border-right: 0;
}

.model-strip span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 780;
}

.model-strip strong {
  overflow-wrap: anywhere;
  font-size: 2.6rem;
  line-height: 0.98;
}

@media (max-width: 860px) {
  :root {
    --circle-radius: 96px;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    min-height: 74px;
    padding: 0 18px;
  }

  .brand {
    font-size: 1.2rem;
  }

  .nav-links {
    justify-self: end;
    gap: 2px;
    padding: 4px;
    font-size: 0.88rem;
  }

  .nav-links a {
    min-width: 44px;
    padding: 8px 9px;
  }

  .header-meta {
    display: none;
  }

  .hero,
  .title-stage {
    min-height: calc(100svh - 74px);
  }

  .hero::before,
  .reveal::before {
    background-size: 38px 38px;
  }

  .title-stage {
    padding: 76px 18px 96px;
  }

  .title-copy {
    width: min(100%, 640px);
  }

  .title {
    font-size: 4.55rem;
  }

  .title-chinese {
    font-size: 4.5rem;
  }

  .subtitle {
    margin-top: 18px;
    font-size: 1rem;
  }

  .model-strip {
    grid-template-columns: 1fr;
  }

  .model-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .model-strip article:last-child {
    border-bottom: 0;
  }

  .model-strip strong {
    font-size: 2rem;
  }
}

@media (max-width: 560px) {
  :root {
    --circle-radius: 76px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links a:not(.is-active) {
    display: none;
  }

  .title-copy {
    width: min(100%, 380px);
  }

  .title-word {
    display: block;
  }

  .title {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.02em;
    font-size: 3.25rem;
    width: 100%;
    white-space: normal;
  }

  .title-chinese {
    font-size: 3.1rem;
  }

}

@media (pointer: coarse) {
  .reveal {
    animation: mobileReveal 5.5s ease-in-out infinite alternate;
  }
}

@keyframes mobileReveal {
  0% {
    clip-path: circle(var(--circle-radius) at 0% 42%);
  }

  100% {
    clip-path: circle(var(--circle-radius) at 78% 54%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
