:root {
  --ink: #fff7e8;
  --soft: rgba(255, 247, 232, 0.68);
  --gold: #f8c56d;
  --rose: #ff6fab;
  --violet: #8f76ff;
  --cyan: #7fe8ff;
  --dark: #050606;
  color-scheme: dark;
  font-family: "Songti TC", "PingFang TC", "Hiragino Mincho ProN", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--dark);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 111, 171, 0.18), transparent 28rem),
    linear-gradient(180deg, #050606 0%, #10101a 48%, #070608 100%);
}

.canva-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #050606;
}

.canva-bg::before,
.canva-bg::after {
  content: "";
  position: absolute;
  inset: -8vh -8vw;
  background: url("./assets/canva-bg-b.png") center / cover no-repeat;
}

.canva-bg::before {
  filter: blur(24px) brightness(0.52) saturate(1.3);
  transform: scale(1.15);
  opacity: 0.82;
}

.canva-bg::after {
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 111, 171, 0.2), transparent 27rem),
    radial-gradient(circle at 82% 28%, rgba(248, 197, 109, 0.12), transparent 22rem),
    linear-gradient(180deg, rgba(5, 6, 6, 0.12), rgba(5, 6, 6, 0.74) 72%, rgba(5, 6, 6, 0.94)),
    url("./assets/canva-bg-b.png") center / cover no-repeat;
  filter: brightness(0.82) contrast(1.08) saturate(1.14);
  opacity: 0.68;
}

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

video {
  display: block;
  width: 100%;
}

#threeStage {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.film-grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.13;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 1.6px),
    linear-gradient(115deg, transparent 0 48%, rgba(255, 255, 255, 0.12) 49% 51%, transparent 52% 100%);
  background-size: 5px 5px, 13px 13px;
}

.catch-hint {
  position: fixed;
  left: 50%;
  bottom: 1.3rem;
  z-index: 10;
  transform: translateX(-50%);
  padding: 0.75rem 1rem;
  border: 1px solid rgba(248, 197, 109, 0.35);
  border-radius: 999px;
  font: 700 0.85rem/1 "Avenir Next", "PingFang TC", sans-serif;
  letter-spacing: 0.08em;
  background: rgba(8, 8, 10, 0.42);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  transition: opacity 260ms ease, transform 260ms ease;
}

.catch-hint.is-done {
  opacity: 0.42;
  transform: translateX(-50%) translateY(0.45rem);
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  font-family: "Avenir Next", "PingFang TC", sans-serif;
  mix-blend-mode: difference;
}

.brand {
  display: grid;
  gap: 0.08rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.brand span {
  color: rgba(255, 247, 232, 0.58);
  font-size: 0.66rem;
}

.brand strong {
  font-size: 0.92rem;
}

nav {
  display: flex;
  gap: clamp(0.9rem, 3vw, 2rem);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
}

.section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: clamp(5.5rem, 10vw, 8rem) clamp(1rem, 5vw, 5rem);
}

.opening {
  align-items: end;
  padding-bottom: clamp(5rem, 10vh, 8rem);
}

.copy,
.ending-copy {
  width: min(46rem, 100%);
}

.kicker {
  margin: 0 0 1rem;
  color: var(--gold);
  font: 700 0.78rem/1 "Avenir Next", "PingFang TC", sans-serif;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(4.8rem, 14vw, 13rem);
  line-height: 0.78;
  letter-spacing: -0.1em;
  text-shadow: 0 0 70px rgba(255, 111, 171, 0.25);
}

h2 {
  font-size: clamp(2.7rem, 7vw, 7rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
}

.line,
.ending-copy p {
  margin-top: 1.15rem;
  color: var(--soft);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  line-height: 1.6;
}

.pill {
  display: inline-flex;
  margin-top: 2rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(248, 197, 109, 0.44);
  border-radius: 999px;
  background: rgba(248, 197, 109, 0.1);
  font: 700 0.9rem/1 "Avenir Next", "PingFang TC", sans-serif;
  box-shadow: inset 0 0 28px rgba(248, 197, 109, 0.08), 0 18px 70px rgba(0, 0, 0, 0.32);
}

.film {
  justify-items: end;
}

.film-stack {
  display: grid;
  width: min(70rem, 100%);
  gap: clamp(1.2rem, 3vw, 2rem);
}

.panel {
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(255, 247, 232, 0.13);
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(12, 13, 16, 0.72), rgba(255, 111, 171, 0.08));
  backdrop-filter: blur(24px);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.45);
}

.panel h2 {
  margin-bottom: 1.4rem;
}

.panel video {
  aspect-ratio: 16 / 9;
  border-radius: 1.4rem;
  object-fit: cover;
  background: #000;
}

.story-panel {
  box-shadow: 0 44px 140px rgba(0, 0, 0, 0.5), 0 0 90px rgba(255, 111, 171, 0.12);
}

.token-panel {
  display: grid;
  grid-template-columns: minmax(13rem, 0.52fr) minmax(18rem, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(135deg, rgba(10, 13, 16, 0.72), rgba(127, 232, 255, 0.08));
}

.token-panel h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.journey {
  align-items: start;
  padding-top: 8rem;
}

.journey-copy {
  max-width: 58rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.journey-copy p:last-child {
  margin-top: 1rem;
  color: var(--soft);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.journey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
  font-family: "Avenir Next", "PingFang TC", sans-serif;
}

.journey-actions a {
  display: inline-flex;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(248, 197, 109, 0.34);
  border-radius: 999px;
  background: rgba(248, 197, 109, 0.08);
  color: var(--ink);
  box-shadow: inset 0 0 24px rgba(248, 197, 109, 0.06);
}

.journey-actions a:last-child {
  border-color: rgba(127, 232, 255, 0.28);
  background: rgba(127, 232, 255, 0.07);
}

.story-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.6vw, 1.4rem);
}

.story-beat {
  position: relative;
  min-height: 66vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(255, 247, 232, 0.14);
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82)),
    var(--photo) center / cover;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.38);
  opacity: 0;
  transform: translateY(3rem) rotateX(9deg);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.2, 1, 0.2, 1), border-color 260ms ease;
}

.story-beat::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.1), transparent 24rem),
    linear-gradient(135deg, rgba(255, 111, 171, 0.18), transparent 45%);
  pointer-events: none;
}

.story-beat.is-visible {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.story-beat:hover {
  border-color: rgba(248, 197, 109, 0.42);
  transform: translateY(-0.45rem);
}

.story-beat b,
.story-beat h3,
.story-beat p {
  position: relative;
  z-index: 1;
}

.story-beat b {
  width: max-content;
  margin-bottom: auto;
  padding: 0.52rem 0.62rem;
  border: 1px solid rgba(255, 247, 232, 0.22);
  border-radius: 999px;
  color: var(--gold);
  font: 800 0.82rem/1 "Avenir Next", "PingFang TC", sans-serif;
  letter-spacing: 0.18em;
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.story-beat h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 8px 36px rgba(0, 0, 0, 0.75);
}

.story-beat p {
  margin-top: 0.85rem;
  color: rgba(255, 247, 232, 0.74);
  font-size: 1rem;
  line-height: 1.55;
}

.scenes {
  align-items: start;
  padding-top: 8rem;
}

.scene-title {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.cards article {
  position: relative;
  overflow: hidden;
  min-height: 58vh;
  border-radius: 2rem;
  border: 1px solid rgba(255, 247, 232, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.35);
}

.cards video {
  height: 100%;
  min-height: 58vh;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.cards article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72));
}

.cards span {
  position: absolute;
  left: 1.2rem;
  bottom: 1.15rem;
  z-index: 1;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  letter-spacing: -0.06em;
}

.final {
  min-height: 80vh;
  justify-items: center;
  text-align: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.ending-copy {
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: 2rem;
  background: rgba(5, 6, 6, 0.38);
  backdrop-filter: blur(24px);
}

.deployment-card {
  width: min(42rem, 100%);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(255, 247, 232, 0.14);
  border-radius: 1.6rem;
  background:
    linear-gradient(135deg, rgba(255, 111, 171, 0.12), rgba(127, 232, 255, 0.08)),
    rgba(5, 6, 6, 0.52);
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.36);
}

.deployment-card h3 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.deployment-card p:not(.kicker) {
  margin-top: 0.9rem;
  color: var(--soft);
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.deployment-card a {
  display: inline-flex;
  margin-top: 1.1rem;
  padding: 0.82rem 1.08rem;
  border-radius: 999px;
  color: #120d09;
  background: linear-gradient(135deg, var(--gold), #ffe7a5);
  font: 800 0.95rem/1 "Avenir Next", "PingFang TC", sans-serif;
  box-shadow: 0 18px 60px rgba(248, 197, 109, 0.18);
}

@media (max-width: 920px) {
  nav {
    display: none;
  }

  .token-panel {
    grid-template-columns: 1fr;
  }

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

  .story-beat {
    min-height: 64vh;
  }

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

  .cards article,
  .cards video {
    min-height: 55vh;
  }

  .catch-hint {
    display: none;
  }
}
