﻿:root {
  --bg: #ececec;
  --bg-dark: #060606;
  --text: #0c0c0c;
  --text-dark: #f2f2f2;
  --line: rgba(12, 12, 12, 0.16);
  --line-dark: rgba(242, 242, 242, 0.2);
  --mono: "IBM Plex Mono", monospace;
  --display: "Archivo", "Noto Sans SC", sans-serif;
  --cn-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "Noto Sans SC", "Archivo", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 380ms ease, color 380ms ease;
}

body.theme-dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}

body.gate-active {
  overflow: hidden;
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 0.45px, transparent 0.45px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 18px 22px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  pointer-events: none;
}

.status-tag,
.site-menu,
.audio-chip {
  pointer-events: auto;
}

.status-tag {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.site-menu {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-menu-link {
  font-family: var(--mono);
  font-size: clamp(15px, 1.1vw, 18px);
  text-decoration: none;
  color: inherit;
  opacity: 0.48;
  transition: opacity 220ms ease;
  position: relative;
}

.site-menu-link:hover,
.site-menu-link.is-active {
  opacity: 1;
}

.site-menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 240ms ease;
}

.site-menu-link.is-active::after,
.site-menu-link:hover::after {
  transform: scaleX(1);
}

.audio-chip {
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  cursor: pointer;
}

.month-rail {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 40;
  width: min(30vw, 410px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  font-family: var(--mono);
  font-size: clamp(12px, 0.78vw, 14px);
  line-height: 1.3;
}

.month-column p {
  margin: 0;
  font-weight: 700;
}

.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
  background: inherit;
  padding: 16px;
}

.entry-gate.is-hidden {
  pointer-events: none;
}

.gate-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-size: clamp(54px, 10vw, 146px);
}

.gate-line {
  display: block;
}

.gate-cn {
  font-family: var(--cn-display);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.04;
  font-size: clamp(42px, 7.2vw, 104px);
}

.gate-cta-wrap {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.gate-cta,
.gate-link {
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-family: var(--body);
  cursor: pointer;
}

.gate-cta {
  font-size: clamp(18px, 1.7vw, 30px);
  font-weight: 700;
  padding: 10px 20px;
  min-width: 250px;
}

.gate-link {
  border-color: transparent;
  opacity: 0.42;
  font-size: 18px;
  padding: 4px 8px;
}

.route-stage {
  position: relative;
  z-index: 10;
}

.route-panel {
  min-height: 100vh;
  padding: 128px min(34vw, 420px) 84px 28px;
  display: none;
}

.route-panel.is-active {
  display: block;
}

.route-hero {
  text-align: center;
  margin: 0 auto;
  max-width: min(60vw, 860px);
}

.route-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(16px, 1.3vw, 22px);
  font-weight: 700;
}

.route-title {
  margin: 4px 0;
  font-family: var(--display);
  font-size: clamp(80px, 16vw, 244px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.84;
  text-transform: uppercase;
}

.route-title-cn {
  font-family: var(--cn-display);
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-size: clamp(64px, 11vw, 156px);
}

.route-subtitle {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 26px);
  font-weight: 500;
  opacity: 0.8;
  line-height: 1.45;
  word-break: keep-all;
}

.dark-hero {
  color: var(--text-dark);
}

.content-stack {
  margin: 72px auto 0;
  width: min(56vw, 760px);
  display: grid;
  gap: 24px;
}

.story-card {
  display: grid;
  grid-template-columns: minmax(210px, 280px) 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(4px);
  padding: 12px;
  transform-style: preserve-3d;
  transition: transform 260ms ease, border-color 260ms ease;
  cursor: pointer;
}

.theme-dark .story-card {
  border-color: var(--line-dark);
  background: rgba(0, 0, 0, 0.26);
}

.story-card:hover {
  transform: translateY(-3px) rotateX(1.8deg);
}

.story-card img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.story-card h3 {
  margin: 0 0 8px;
  font-size: clamp(26px, 2.2vw, 36px);
  line-height: 1.12;
  word-break: keep-all;
}

.story-meta {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  opacity: 0.8;
}

.story-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  word-break: keep-all;
}

.marquee-band {
  margin-top: 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 40px;
  padding: 14px 0;
  min-width: 100%;
  animation: marquee 16s linear infinite;
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 700;
}

.media-grid {
  margin: 44px auto 0;
  max-width: min(60vw, 860px);
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.media-card {
  margin: 0;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 240ms ease;
}

.media-card:hover {
  transform: translateY(-4px);
}

.media-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.media-card.tall img {
  height: 560px;
}

.media-card figcaption {
  padding: 12px;
  font-size: 15px;
}

.sticker-layer {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 52px;
}

.sticker {
  width: clamp(74px, 6vw, 120px);
  height: clamp(74px, 6vw, 120px);
  display: inline-block;
}

.sticker.cyan {
  background: linear-gradient(160deg, #38c3f0, #1f98b6);
}

.sticker.sky {
  background: linear-gradient(160deg, #7ed2e3, #4d9fb1);
}

.sticker.amber {
  background: linear-gradient(160deg, #f2c132, #d29800);
}

.sticker.blue {
  background: linear-gradient(160deg, #3d8dff, #1554bc);
}

.sticker.red {
  background: linear-gradient(160deg, #ff3347, #cf0c22);
}

.index-grid {
  margin: 42px auto 0;
  max-width: min(60vw, 860px);
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.index-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  padding: 16px;
  min-height: 220px;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.index-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.index-item h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: 17px;
}

.index-num {
  margin: 6px 0 8px;
  font-family: var(--display);
  font-size: 68px;
  line-height: 0.88;
  font-weight: 900;
}

.route-about {
  background: #0a0a0a;
  color: #f2f2f2;
}

.about-layout {
  margin: 54px auto 0;
  max-width: min(60vw, 860px);
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 14px;
}

.about-card {
  border: 1px solid rgba(242, 242, 242, 0.2);
  background: rgba(255, 255, 255, 0.02);
  padding: 18px;
}

.about-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.about-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  word-break: keep-all;
}

.site-footer {
  position: fixed;
  left: 20px;
  bottom: 16px;
  z-index: 55;
  display: flex;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  opacity: 0.76;
}

.site-footer a:hover {
  opacity: 1;
}

.js-reveal {
  opacity: 0;
  transform: translateY(38px);
}

[data-click-anim] {
  position: relative;
  overflow: hidden;
}

[data-click-anim].is-pressed {
  transform: scale(0.97);
}

[data-click-anim].is-clicked {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.24);
}

.impact-ring {
  position: absolute;
  left: var(--ring-x, 50%);
  top: var(--ring-y, 50%);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.4);
  animation: impact-ring 540ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes impact-ring {
  0% {
    opacity: 0.74;
    transform: translate(-50%, -50%) scale(0.3);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(8);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1200px) {
  .month-rail {
    width: min(36vw, 360px);
    gap: 16px;
    font-size: 11px;
  }

  .route-panel {
    padding-right: min(34vw, 320px);
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .about-layout {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 10px 0;
  }

  .status-tag {
    margin-top: 0;
  }

  .month-rail {
    display: none;
  }

  .site-footer {
    left: 10px;
    bottom: 10px;
    gap: 8px;
    font-size: 11px;
    flex-wrap: wrap;
    width: calc(100vw - 20px);
  }

  .route-panel {
    padding: 104px 12px 88px;
  }

  .route-title {
    font-size: clamp(66px, 18vw, 118px);
  }

  .content-stack {
    width: min(96vw, 920px);
  }

  .route-hero,
  .media-grid,
  .index-grid,
  .about-layout {
    max-width: min(96vw, 920px);
  }

  .story-card {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .media-card img,
  .media-card.tall img {
    height: 300px;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .gate-cta {
    min-width: 220px;
    font-size: 22px;
  }
}

