:root {
  --bg: #080808;
  --bg-2: #0b0b0b;
  --bg-3: #101010;
  --bg-4: #151515;
  --bg-5: #1b1b1b;
  --text: #f5f5f5;
  --text-2: #999999;
  --text-3: #a8a8a8;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #b6ff3b;
  --accent-dim: rgba(182, 255, 59, 0.14);
  --max: 1600px;
  --gutter: 40px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-cn: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-en: "Source Han Sans SC", "Noto Sans SC", sans-serif;
}

html {
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font-cn);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.is-nav-open {
  overflow: hidden;
}

.page {
  position: relative;
}

.container {
  width: calc(100% - 80px);
  max-width: var(--max);
  margin: 0 auto;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-2);
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.display {
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.92;
  overflow: visible;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.display-xl {
  font-size: clamp(64px, 8vw, 150px);
}

.display-lg {
  font-size: clamp(48px, 6vw, 110px);
}

.display-md {
  font-size: clamp(32px, 4vw, 64px);
}

.en {
  font-family: var(--font-en);
  letter-spacing: -0.04em;
}

.muted {
  color: var(--text-2);
}

.accent {
  color: var(--accent);
}

.section {
  position: relative;
  background: var(--bg);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 72px;
}

.section-title {
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-weight: 400;
  overflow: visible;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.section-sub {
  font-size: 15px;
  color: var(--text-2);
  max-width: 320px;
  line-height: 1.7;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
}

.media {
  position: relative;
  overflow: hidden;
  background: var(--bg-4);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}

.media:hover img {
  transform: scale(1.06);
}

.arr {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  vertical-align: middle;
  color: inherit;
}

.arr::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translate(-35%, -35%);
  transform-origin: center center;
}

.arr-right::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.arr-down::before {
  transform: translate(-50%, -50%) rotate(135deg);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.link-arrow .arr {
  color: var(--accent);
  transition: transform 0.4s var(--ease);
}

.link-arrow:hover .arr {
  transform: translate(4px, -4px);
}

.link-arrow:hover .arr-right {
  transform: translateX(4px);
}

.btn .arr {
  color: inherit;
  transition: transform 0.45s var(--ease);
}

.btn:hover .arr-right {
  transform: translateX(4px);
}

.services-scroll .arr {
  width: 10px;
  height: 10px;
  color: currentColor;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 32px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.12em;
  isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.25s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--ease);
  z-index: -1;
}

.btn:hover {
  color: #080808;
  border-color: var(--accent);
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.num {
  font-family: var(--font-en);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
}

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

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background: var(--accent);
  z-index: 90;
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

.cursor,
.cursor-dot {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  z-index: 100;
  mix-blend-mode: difference;
}

.cursor {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(245, 245, 245, 0.45);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease);
}

.cursor.is-hover {
  width: 72px;
  height: 72px;
  background: rgba(182, 255, 59, 0.12);
  border-color: var(--accent);
}

.cursor-dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #080808;
}

.preloader-mark {
  width: min(220px, 56vw);
}

.preloader-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.preloader-bar {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 12%;
  height: 1px;
  background: var(--line);
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

body.has-cursor,
body.has-cursor a,
body.has-cursor button {
  cursor: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

@media (prefers-reduced-motion: reduce) {
  .grain,
  .cursor,
  .cursor-dot {
    display: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .system-stage {
    height: auto !important;
  }

  .system-stage-pin {
    position: relative !important;
    height: auto !important;
  }

  .system-slide {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  body[data-page="home"] .story {
    height: auto !important;
  }

  body[data-page="home"] .story-pin {
    position: relative !important;
    height: auto !important;
  }

  body[data-page="home"] .story-point {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}
