

@font-face {
  font-family: 'DM Sans';
  src: url('assets/DMSans-Regular.ttf') format('truetype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('assets/DMSans-Bold.ttf') format('truetype');
  font-weight: 700; font-display: swap;
}

:root {
  --crt-bg: #14100d;
  --ink: #f5f0e8;
  --font-sans: 'DM Sans', 'PingFang SC', 'HarmonyOS Sans SC', 'MiSans',
               'Microsoft YaHei', 'Noto Sans SC', 'Source Han Sans SC',
               system-ui, -apple-system, sans-serif;
  --font-body: var(--font-sans);
  --font-display: var(--font-sans);
  --font-hand: 'STXingkai', '华文行楷', 'Xingkai SC', 'Kaiti SC',
               'STKaiti', 'KaiTi', '楷体', serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --push-dur: 30s;
  --push-ease: cubic-bezier(.35, .12, .35, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--crt-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 64%, rgba(0, 0, 0, .26) 100%);
  opacity: 1;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(130% 90% at 50% -12%, rgba(255, 246, 236, .045), transparent 58%),
    var(--crt-bg);
}

h1, h2, h3, h4, p, ul, dl { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--crt-bg);
}
@supports (height: 100svh) {
  .hero { height: 100svh; }
}

.hero-media { position: absolute; inset: 0; }

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(20, 16, 13, .52) 0%,
      rgba(20, 16, 13, .20) 10%,
      transparent 26%),
    radial-gradient(ellipse 74% 64% at 50% 50%,
      rgba(18, 14, 11, .46) 0%,
      rgba(18, 14, 11, .34) 46%,
      rgba(18, 14, 11, .12) 74%,
      transparent 92%),
    linear-gradient(to bottom,
      transparent 0%,
      transparent 62%,
      rgba(20, 16, 13, .55) 86%,
      var(--crt-bg) 100%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .8s ease-out, transform var(--push-dur) var(--push-ease);
  will-change: opacity, transform;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.11) translate3d(-1%, -.6%, 0);
}

.mission {
  position: absolute;

  top: 50%;
  left: 0;
  right: 0;

  z-index: 3;
  margin-inline: auto;

  width: fit-content;

  max-width: min(92vw, 1180px);
  padding: 0;
  text-align: center;
  isolation: isolate;
  opacity: 0;
  transform: translateY(calc(-50% - 18px));
  transition: opacity .9s var(--ease) .1s, transform .9s var(--ease) .1s;
}
.mission.is-run { opacity: 1; transform: translateY(-50%); }

.mission-title {

  font-family: var(--font-hand);
  font-weight: 400;
  margin-top: 0;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.4;
  letter-spacing: 0;
  color: #fff;

  text-shadow:
    0 0 2px rgba(0, 0, 0, .50),
    0 1px 2px rgba(0, 0, 0, .90),
    0 2px 10px rgba(0, 0, 0, .60),
    0 6px 34px rgba(0, 0, 0, .45);
}

.mission-from {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.3vw, 19px);
  letter-spacing: .04em;
  text-align: right;
  white-space: nowrap;
  color: #fff;

  text-shadow:
    0 1px 2px rgba(0, 0, 0, .85),
    0 2px 9px rgba(0, 0, 0, .55);
}
.mission-from:empty { display: none; }

@media (max-width: 900px) {
  .mission { width: fit-content; max-width: min(92vw, 1180px); }
  .hero-slide { background-position: 70% center; }
}

@media (max-width: 620px) {
  .mission {
    width: fit-content;
    max-width: min(92vw, 1180px);
    padding: 0 20px;
    border-radius: 0 0 58px 0;
  }

  .mission-title { margin-top: 0; font-size: clamp(26px, 7.2vw, 34px); }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
