:root {
  color-scheme: dark;
  --page: #090d13;
  --surface: #0d141c;
  --ink: #edf2f6;
  --muted: #a8b4c1;
  --soft: #8796a7;
  --line: #27313c;
  --amber: #ffb86b;
  --frame: 1300px;
  --gutter: clamp(22px, 4.7vw, 72px);
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", monospace;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 5px;
}

::selection {
  background: var(--amber);
  color: #1a130c;
}

[hidden] {
  display: none !important;
}

.frame {
  width: min(100% - 2 * var(--gutter), var(--frame));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 5;
  top: 8px;
  left: var(--gutter);
  padding: 8px 16px;
  transform: translateY(-150%);
  background: var(--page);
}

.skip-link:focus {
  transform: translateY(0);
}

.masthead {
  position: relative;
  z-index: 1;
  background: #0a0f16;
  border-bottom: 1px solid #242e39;
}

.masthead-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.masthead-inner {
  min-height: 77px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .045em;
}

.brand img {
  width: 42px;
  height: 38px;
  object-fit: contain;
  flex: none;
}

.header-link, .page-footer a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  transition: color .2s ease;
}

.header-link span, .page-footer a span {
  color: var(--amber);
  font-size: 17px;
}

.header-link:hover, .page-footer a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #090e16;
  border-bottom: 1px solid var(--line);
}

.hero-scene, .hero-light, .hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-scene {
  z-index: -1;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 69% 51%;
  opacity: .96;
  animation: orbit-drift 28s ease-in-out infinite alternate;
}

.hero-light {
  background:
    linear-gradient(0deg, #090e16 0%, #090e161f 21%, #090e1600 72%, #090e1640 100%),
    linear-gradient(90deg, #090e16f5 0%, #090e16df 15%, #090e1690 34%, #090e1621 58%, transparent 74%);
}

.hero-grid {
  background: repeating-linear-gradient(0deg, transparent 0 47px, #b2c9e21b 47px 48px);
  mask-image: linear-gradient(90deg, #0008, transparent 53%);
  opacity: .3;
}

.hero-inner {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(620px, 51vw, 800px);
  padding-block: 78px 122px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: fit-content;
  animation: content-enter 1.05s var(--ease-out) both;
}

.status-line, .section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--amber);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .13em;
}

.status-line [lang] {
  color: #c1b3a4;
  font: 500 11px/1.5 var(--mono);
  letter-spacing: .14em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 18px #ffb86b80;
  animation: status-breathe 4s ease-in-out infinite alternate;
}

.hero h1 {
  margin: 29px 0 0;
  font-size: clamp(68px, 7.7vw, 120px);
  font-weight: 650;
  line-height: .99;
  letter-spacing: -.075em;
}

.title-line {
  display: block;
  margin-top: .12em;
}

.title-stop {
  color: var(--amber);
}

.hero .error-title {
  letter-spacing: -.045em;
}

.error-title .title-line {
  margin-top: .35em;
  font-size: .46em;
  line-height: 1.12;
  letter-spacing: -.045em;
}

.hero-description {
  margin: 28px 0 0;
  color: #c4d0dc;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.85;
  letter-spacing: .06em;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-height: 52px;
  margin-top: 32px;
  padding: 0 19px 0 22px;
  background: #e9eff4;
  color: #101620;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .05em;
  transition: background .25s var(--ease-out), transform .25s var(--ease-out);
}

.primary-link:hover {
  transform: translateY(-2px);
  background: var(--amber);
}

.arrow-down {
  position: relative;
  width: 13px;
  height: 16px;
}

.arrow-down::before, .arrow-down::after {
  position: absolute;
  inset-inline-start: 50%;
  content: "";
}

.arrow-down::before {
  top: 1px;
  width: 1px;
  height: 13px;
  background: currentColor;
}

.arrow-down::after {
  bottom: 2px;
  width: 7px;
  height: 7px;
  border-bottom: 1px solid;
  border-right: 1px solid;
  transform: translateX(calc(-50% + .5px)) rotate(45deg);
}

.viewfinder {
  position: absolute;
  inset: 31px 0 60px;
  pointer-events: none;
  background:
    linear-gradient(#8a9bab55, #8a9bab55) top left / 17px 1px,
    linear-gradient(#8a9bab55, #8a9bab55) top left / 1px 17px,
    linear-gradient(#b7c8de77, #b7c8de77) top right / 17px 1px,
    linear-gradient(#b7c8de77, #b7c8de77) top right / 1px 17px,
    linear-gradient(#b7c8de77, #b7c8de77) bottom right / 17px 1px,
    linear-gradient(#b7c8de77, #b7c8de77) bottom right / 1px 17px;
  background-repeat: no-repeat;
}

.viewfinder-scale {
  position: absolute;
  right: 0;
  top: 31%;
  width: 7px;
  height: 33%;
  background: repeating-linear-gradient(0deg, #bccddd5e 0 1px, transparent 1px 9px);
  opacity: .65;
}

.viewfinder-scale::after {
  position: absolute;
  inset: 0 -2px auto;
  height: 1px;
  background: var(--amber);
  box-shadow: 0 0 9px 1px #ffb86b7a;
  content: "";
  animation: scale-scan 11s ease-in-out infinite;
}

.viewfinder-cross {
  position: absolute;
  top: 22%;
  left: 55%;
  width: 13px;
  height: 13px;
  background:
    linear-gradient(#b7c8de99, #b7c8de99) center / 100% 1px no-repeat,
    linear-gradient(#b7c8de99, #b7c8de99) center / 1px 100% no-repeat;
}

.viewfinder-cross-offset {
  top: 77%;
  left: 88%;
}

.hero-footer {
  position: absolute;
  inset: auto 0 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-meter {
  position: relative;
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #a9b9c466, #a9b9c411 54%, #a9b9c433);
}

.hero-meter::after {
  position: absolute;
  top: -1px;
  left: 0;
  width: 33px;
  height: 2px;
  background: var(--amber);
  content: "";
}

.hero-meter::before {
  position: absolute;
  inset: -2px 0 auto;
  height: 5px;
  background: linear-gradient(90deg, transparent, #b7c8de80 53%, transparent) left center / 64px 1px no-repeat;
  content: "";
  animation: signal-scan 12s linear infinite;
}

.motion-button, .copy-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.motion-button {
  padding-inline: 9px 0;
}

.motion-button:hover, .copy-button:hover {
  color: var(--ink);
}

.motion-icon {
  width: 7px;
  height: 9px;
  border-inline: 2px solid var(--amber);
}

[data-motion="paused"] .motion-icon {
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-left: 7px solid var(--amber);
  border-right: 0;
}

[data-motion="paused"] .hero-scene *,
[data-motion="paused"] .status-dot,
[data-motion="paused"] .viewfinder-scale::after,
[data-motion="paused"] .hero-meter::before {
  animation-play-state: paused;
}

[data-motion="paused"] .hero-copy {
  animation: none;
}

html[data-motion="paused"] {
  scroll-behavior: auto;
}

.archive {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 6.5vw, 105px);
  padding-block: clamp(60px, 7.4vw, 114px);
}

.archive-mark {
  width: 13px;
  height: 13px;
  border: 1px solid var(--amber);
  clip-path: polygon(0 0, 100% 0, 100% 52%, 52% 100%, 0 100%);
  background: linear-gradient(135deg, transparent 41%, var(--amber) 42% 52%, transparent 53%);
}

.archive h2 {
  margin: 13px 0 12px;
  font-size: clamp(42px, 5.1vw, 76px);
  font-weight: 640;
  line-height: 1.1;
  letter-spacing: -.065em;
}

.archive-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: .02em;
}

.wechat {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(146px, 1fr);
  align-items: center;
  gap: clamp(20px, 2.6vw, 42px);
  max-width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  background: linear-gradient(118deg, #151e29, var(--surface) 72%);
  padding: clamp(20px, 2.7vw, 40px);
}

.wechat::before, .wechat::after {
  position: absolute;
  width: 13px;
  height: 13px;
  content: "";
  pointer-events: none;
}

.wechat::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--amber);
  border-left: 1px solid var(--amber);
}

.wechat::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid #788da2;
  border-right: 1px solid #788da2;
}

.wechat-code {
  background: #fff;
}

.wechat-code img {
  width: clamp(152px, 13.4vw, 197px);
  height: auto;
}

.wechat-name {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 630;
  line-height: 1.15;
  letter-spacing: .035em;
}

.wechat-instruction {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.copy-button {
  color: var(--amber);
  white-space: nowrap;
}

.copy-button span {
  font-size: 15px;
}

.copy-feedback {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
}

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

.footer-inner {
  min-height: 77px;
  color: var(--soft);
}

.footer-inner small {
  font-size: 12px;
}

@keyframes orbit-drift {
  from { transform: scale(1.005) translateX(0); }
  to   { transform: scale(1.065) translateX(-.7%); }
}

@keyframes status-breathe {
  from { opacity: .62; }
  to   { opacity: 1; }
}

@keyframes scale-scan {
  0%, 14%  { transform: translateY(0); opacity: 0; }
  23%      { opacity: .85; }
  56%, 100% { transform: translateY(14vh); opacity: 0; }
}

@keyframes signal-scan {
  0%, 40%   { background-position-x: 0%; opacity: 0; }
  48%, 73%  { opacity: .85; }
  82%, 100% { background-position-x: 100%; opacity: 0; }
}

@keyframes content-enter {
  from { opacity: 0; transform: translateY(17px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 880px) {
  .archive {
    grid-template-columns: 1fr;
  }

  .wechat {
    width: fit-content;
  }
}

@media (max-width: 640px) {
  .masthead-inner {
    min-height: 66px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
    font-size: clamp(10px, 3vw, 13px);
    line-height: 1.45;
    letter-spacing: 0;
  }

  .brand img {
    width: 30px;
    height: 32px;
  }

  .header-link {
    gap: 5px;
    font-size: 11px;
  }

  .hero-inner {
    min-height: 710px;
    align-items: end;
    padding-block: 282px 92px;
  }

  .hero-image {
    height: 402px;
    object-position: 79% 42%;
  }

  .hero-light {
    background:
      linear-gradient(0deg, #090e16 43%, #090e16d6 55%, transparent 82%),
      linear-gradient(90deg, #090e165c, transparent 44%, #090e162b);
  }

  .viewfinder {
    inset: 18px 0 auto;
    height: 280px;
  }

  .viewfinder-cross {
    top: 40%;
    left: 4%;
  }

  .viewfinder-cross-offset {
    display: none;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: clamp(59px, 14vw, 84px);
  }

  .hero-description {
    margin-top: 19px;
  }

  .primary-link {
    margin-top: 24px;
  }

  .archive {
    gap: 30px;
  }
}

@media (max-width: 385px) {
  .wechat {
    gap: 13px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 15px;
  }

  .wechat-code img {
    width: clamp(105px, 34vw, 132px);
  }

  .wechat-instruction, .copy-button {
    font-size: 11px;
  }

  .footer-inner {
    gap: 8px;
  }

  .footer-inner small, .page-footer a {
    font-size: 11px;
  }
}

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

  html:not([data-motion="playing"]) .hero-image,
  html:not([data-motion="playing"]) .status-dot,
  html:not([data-motion="playing"]) .hero-copy,
  html:not([data-motion="playing"]) .viewfinder-scale::after,
  html:not([data-motion="playing"]) .hero-meter::before {
    animation: none;
  }

  .primary-link, .header-link, .page-footer a {
    transition: none;
  }
}
