@font-face {
  font-family: "Tektur Local";
  src: url("./assets/fonts/Tektur-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #07191e;
  --muted: #637076;
  --line: #dce2e4;
  --frame-inset: 14px;
  --display: "Tektur Local", "Bahnschrift", "Arial Narrow", sans-serif;
  --body: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
  border-radius: 3px;
}

.energy-canvas {
  position: fixed;
  z-index: 42;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.energy-ink-layer {
  position: absolute;
  z-index: 51;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  clip-path: polygon(0 0, 0 0, 0 0);
  transition: opacity 80ms ease-out;
}

.energy-ink-layer.is-fast-scrolling {
  opacity: 0;
  transition-duration: 0ms;
}

.energy-ink-layer__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.energy-ink-layer *,
.energy-ink-layer *::before,
.energy-ink-layer *::after {
  color: transparent !important;
  border-color: transparent !important;
  outline-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
  text-decoration-color: transparent !important;
  animation: none !important;
  transition: none !important;
}

.energy-ink-layer :is(img, picture, video, svg, canvas) {
  visibility: hidden !important;
}

.energy-ink-layer :is(.hero-wordmark, .site-wordmark) {
  visibility: visible !important;
}

.energy-ink-layer .energy-ink-layer__text {
  color: transparent !important;
  background: var(--energy-fill, #42d9a5) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px clamp(40px, 5vw, 82px);
  font-size: 13px;
}

.wordmark {
  display: block;
  width: 96px;
  color: var(--ink);
}

.site-wordmark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a,
.site-footer a {
  transition: opacity 180ms ease;
}

.site-nav a:hover,
.site-footer a:hover {
  opacity: 0.5;
}

.hero {
  position: relative;
  z-index: 50;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 132px 24px 72px;
  text-align: center;
}

.hero-copy {
  position: relative;
  width: min(1040px, 86vw);
}

.hero-copy__layer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.hero-wordmark-wrap {
  position: relative;
  display: flex;
  width: 100%;
  justify-content: center;
}

.hero-wordmark {
  display: block;
  width: min(963px, 100%);
  height: auto;
  color: var(--ink);
  overflow: visible;
}

.hero-wordmark__ink {
  fill: currentColor;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero-title-cn {
  margin: 30px 0 0;
  font-size: clamp(21px, 2.1vw, 34px);
  font-weight: 500;
  letter-spacing: 0.14em;
}

.hero-intro {
  width: 100%;
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.8;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 180px;
  margin-top: 42px;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.primary-link:hover {
  color: #fff;
  background: var(--ink);
  transform: translateY(-2px);
}

.hero-footnote {
  position: absolute;
  right: clamp(40px, 5vw, 82px);
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #42d9a5;
  box-shadow: 0 0 12px #42d9a5;
}

.section-shell {
  position: relative;
  z-index: 50;
  width: min(1180px, calc(100% - 96px));
  margin: 0 auto;
  padding: 150px 0;
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 5.4vw, 78px);
  font-weight: 420;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.about h2 {
  font-size: clamp(36px, 5vw, 72px);
}

.about {
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  margin-top: 54px;
}

.about-copy {
  align-self: end;
}

.about-copy p {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.contact-link,
.contact-links a {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
}

.contact-link {
  padding-inline: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  color: inherit;
  background: none;
  font: inherit;
  cursor: pointer;
}

.contact-panel {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-panel .contact-panel__label {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.contact-panel__email {
  display: inline-block;
  font-size: clamp(17px, 1.5vw, 21px);
  word-break: break-all;
}

.contact-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.contact-panel__actions button,
.contact-panel__actions a {
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: inherit;
  background: var(--paper);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.contact-panel__status {
  margin: 16px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.site-footer {
  position: relative;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  width: min(1180px, calc(100% - 96px));
  margin: 0 auto;
  padding: 42px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  :root {
    --frame-inset: 8px;
  }

  .site-header {
    padding: 28px 28px;
  }

  .site-nav {
    gap: 18px;
  }

  .wordmark {
    width: 84px;
  }

  .hero {
    padding-inline: 28px;
  }

  .hero-copy {
    width: 92vw;
  }

  .hero-title-cn {
    margin-top: 24px;
    font-size: 19px;
  }

  .hero-footnote {
    display: none;
  }

  .section-shell,
  .site-footer {
    width: calc(100% - 56px);
  }

  .section-shell {
    padding: 104px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .energy-ink-layer {
    transition: none;
  }
}

.not-found-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.not-found-page::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: var(--frame-inset);
  pointer-events: none;
  border: 2px solid transparent;
  border-radius: 26px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #f55c56, #f5bd38, #46df9a, #42dbe6, #586ff0, #d64bea)
      border-box;
}

.not-found {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  text-align: center;
}

.not-found__mark {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 36px;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.not-found > p:not(.eyebrow) {
  margin: 28px 0 38px;
  color: var(--muted);
  font-size: 17px;
}

.not-found .primary-link {
  margin: 0 auto;
}
