:root {
  --ink: #171528;
  --deep: #101326;
  --night: #171b36;
  --purple: #796cda;
  --purple-soft: #a99feb;
  --blue: #83cbed;
  --gold: #e3bd77;
  --paper: #f4f1ee;
  --muted: #aaa8bd;
  --line: rgba(185, 183, 225, .18);
  --shadow: 0 24px 70px rgba(8, 8, 24, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: white;
  background: #302b61;
  border-radius: 6px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.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;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto 0;
  height: 84px;
  padding: 0 clamp(24px, 5vw, 86px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  transition: background .35s ease, height .35s ease, box-shadow .35s ease;
}
.site-header.scrolled {
  height: 68px;
  background: rgba(13, 15, 34, .88);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 35px rgba(5, 6, 18, .22);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #d8d4ff;
  border: 1px solid rgba(255,255,255,.4);
  transform: rotate(45deg);
}
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong {
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 21px;
  letter-spacing: .18em;
}
.brand-copy small { margin-top: 1px; font: 8px/1.1 Georgia, serif; letter-spacing: .22em; opacity: .58; }
.site-nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); font-size: 14px; letter-spacing: .08em; }
.site-nav > a:not(.nav-play) { position: relative; padding: 9px 0; color: rgba(255,255,255,.75); }
.site-nav > a:not(.nav-play)::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 3px;
  height: 1px;
  background: #c9c4ff;
  transition: left .25s, right .25s;
}
.site-nav > a:hover { color: white; }
.site-nav > a:hover::after { left: 0; right: 0; }
.nav-play {
  padding: 10px 23px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.07);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: background .25s, color .25s;
}
.nav-play:hover { color: #252143; background: white; }
.nav-toggle { display: none; }

.hero {
  position: relative;
  min-height: min(900px, 100svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background: #33395e;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(15,17,40,.84) 0%, rgba(15,17,40,.55) 33%, rgba(15,17,40,.08) 70%, rgba(15,17,40,.3) 100%),
    linear-gradient(0deg, rgba(13,15,33,.78) 0%, transparent 42%),
    url("image/dffa7ce3-10b3-48a2-8239-f92868b4d588.c33ed.jpg");
  background-size: cover;
  background-position: center;
  animation: hero-settle 1.6s cubic-bezier(.2,.8,.2,1) both;
}
.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,34,70,.18), transparent 45%, rgba(13,15,33,.5));
}
.hero-stars {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: radial-gradient(circle, #fff 0 1px, transparent 1.5px);
  background-size: 91px 91px;
  mask-image: linear-gradient(90deg, #000, transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(620px, 45vw);
  margin-left: clamp(36px, 9vw, 168px);
  padding-top: 70px;
}
.eyebrow, .section-kicker {
  margin: 0 0 20px;
  color: var(--purple-soft);
  font: 600 12px/1.4 Georgia, "Noto Serif SC", serif;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.eyebrow { color: #d7d3ff; animation: rise-in .8s .15s both; }
.hero h1 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
  font-weight: 500;
  text-shadow: 0 6px 22px rgba(8,9,27,.3);
}
.hero h1 span { display: block; font-size: clamp(48px, 5.4vw, 88px); line-height: .98; letter-spacing: .08em; animation: rise-in .8s .25s both; }
.hero h1 em { display: block; margin-top: 10px; color: #f3e6cd; font-size: clamp(32px, 3.4vw, 56px); font-style: normal; letter-spacing: .12em; animation: rise-in .8s .35s both; }
.hero-lead { margin: 30px 0 0; color: rgba(255,255,255,.74); font-size: 15px; line-height: 2; letter-spacing: .04em; animation: rise-in .8s .45s both; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; animation: rise-in .8s .55s both; }
.primary-button {
  position: relative;
  min-width: 220px;
  min-height: 66px;
  padding: 13px 28px 13px 55px;
  display: inline-flex;
  align-items: center;
  color: white;
  border: 1px solid rgba(255,255,255,.5);
  background: linear-gradient(135deg, #7e72de 0%, #6358bd 100%);
  box-shadow: 0 14px 34px rgba(45,38,112,.4), inset 0 0 0 3px rgba(255,255,255,.09);
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
  transition: transform .25s, box-shadow .25s, filter .25s;
}
.primary-button:hover { transform: translateY(-3px); filter: brightness(1.08); box-shadow: 0 18px 38px rgba(45,38,112,.5), inset 0 0 0 3px rgba(255,255,255,.12); }
.primary-button:focus-visible, .text-link:focus-visible, .site-nav a:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.button-gem { position: absolute; left: 24px; color: #ebe8ff; font-size: 17px; }
.primary-button span:last-child { display: flex; flex-direction: column; }
.primary-button strong { font: 500 19px/1.2 "STKaiti", "KaiTi", serif; letter-spacing: .18em; }
.primary-button small { margin-top: 5px; font-size: 9px; letter-spacing: .16em; opacity: .62; }
.text-link { padding: 14px 0; color: rgba(255,255,255,.78); font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.32); }
.text-link span { display: inline-block; margin-left: 8px; transition: transform .25s; }
.text-link:hover span { transform: translateY(4px); }
.hero-tags { display: flex; gap: 0; margin: 40px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.5); font-size: 11px; letter-spacing: .16em; animation: rise-in .8s .65s both; }
.hero-tags li + li::before { content: "✦"; margin: 0 16px; color: #bcb4ff; font-size: 7px; }
.scroll-hint { position: absolute; z-index: 2; left: 48px; bottom: 33px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.45); font: 8px/1 Georgia, serif; letter-spacing: .25em; transform: rotate(-90deg); transform-origin: left center; }
.scroll-hint span { width: 38px; height: 1px; background: currentColor; }

.section { padding: clamp(95px, 10vw, 170px) clamp(24px, 8vw, 150px); }
.section-heading h2 { margin: 0; font: 500 clamp(38px, 4.2vw, 68px)/1.15 "STKaiti", "KaiTi", "Noto Serif SC", serif; letter-spacing: .06em; }
.section-heading h2 span { color: var(--purple); }
.section-heading > p:last-child { max-width: 500px; margin: 28px 0 0; color: #6f6d7d; font-size: 15px; line-height: 2.1; }

.world {
  position: relative;
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(55px, 8vw, 140px);
  align-items: center;
  background:
    radial-gradient(circle at 10% 10%, rgba(141,132,218,.14), transparent 28%),
    linear-gradient(135deg, #f6f4f2, #eceaf1);
}
.world::before { content: "TALES OF THE SKY"; position: absolute; left: -32px; bottom: 70px; color: rgba(62,57,91,.045); font: 700 clamp(62px, 8vw, 145px)/1 Georgia, serif; letter-spacing: .04em; white-space: nowrap; }
.world-visual { position: relative; }
.world-frame { position: relative; padding: 18px; background: white; box-shadow: var(--shadow); }
.world-frame::before, .world-frame::after { content: ""; position: absolute; width: 70px; height: 70px; border-color: #a59ee4; pointer-events: none; }
.world-frame::before { top: -10px; left: -10px; border-top: 1px solid; border-left: 1px solid; }
.world-frame::after { right: -10px; bottom: -10px; border-right: 1px solid; border-bottom: 1px solid; }
.world-frame img { width: 100%; min-height: 340px; object-fit: cover; }
.world-note { position: absolute; right: -30px; bottom: -38px; width: min(320px, 70%); padding: 20px 25px; display: flex; flex-direction: column; color: white; background: rgba(25,25,49,.94); box-shadow: 0 18px 40px rgba(15,15,35,.25); }
.world-note span { color: #a8a1e9; font-size: 10px; letter-spacing: .2em; }
.world-note strong { margin-top: 8px; font: 500 15px/1.5 "STKaiti", "KaiTi", serif; letter-spacing: .07em; }

.features { position: relative; min-height: 850px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6vw; color: white; overflow: hidden; background: var(--deep); }
.features::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(circle at 30% 50%, #000 0, transparent 65%); }
.features::after { content: ""; position: absolute; width: 650px; height: 650px; left: -180px; top: 10%; border-radius: 50%; background: rgba(116,73,132,.25); filter: blur(100px); }
.features-art { position: relative; z-index: 2; height: 680px; display: grid; place-items: center; }
.features-art img { position: relative; z-index: 2; max-width: min(620px, 45vw); max-height: 720px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.4)); }
.art-orbit { position: absolute; border: 1px solid rgba(153,145,230,.22); border-radius: 50%; }
.orbit-one { width: min(520px, 39vw); aspect-ratio: 1; }
.orbit-two { width: min(390px, 30vw); aspect-ratio: 1; border-style: dashed; animation: orbit-spin 35s linear infinite; }
.features-copy { position: relative; z-index: 3; }
.features .section-heading h2 span { color: #aaa0f0; }
.feature-list { margin-top: 58px; border-top: 1px solid var(--line); }
.feature-card { padding: 26px 0; display: grid; grid-template-columns: 62px 1fr; gap: 14px; border-bottom: 1px solid var(--line); transition: padding-left .25s, background .25s; }
.feature-card:hover { padding-left: 14px; background: linear-gradient(90deg, rgba(131,118,219,.09), transparent); }
.feature-number { color: #8075d1; font: italic 13px/1.5 Georgia, serif; }
.feature-card h3 { margin: 0; font: 500 20px/1.4 "STKaiti", "KaiTi", serif; letter-spacing: .1em; }
.feature-card p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

.heroes { position: relative; overflow: hidden; background: #efedf0; }
.heroes::before { content: ""; position: absolute; width: 700px; height: 700px; right: -220px; top: -180px; border: 1px solid rgba(103,93,188,.1); border-radius: 50%; box-shadow: 0 0 0 80px rgba(103,93,188,.025), 0 0 0 160px rgba(103,93,188,.02); }
.heroes-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; }
.heroes-heading > p { max-width: 420px; margin: 0 0 8px; color: #757282; line-height: 2; font-size: 14px; }
.hero-gallery { position: relative; z-index: 2; margin-top: 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hero-card { position: relative; height: 590px; overflow: hidden; color: white; background: #25273f; box-shadow: 0 25px 60px rgba(30,29,58,.16); isolation: isolate; }
.hero-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(143,131,223,.58), transparent 48%), linear-gradient(160deg, #272a4c, #15182c); }
.hero-card::after { content: ""; position: absolute; z-index: 2; inset: auto 0 0; height: 35%; background: linear-gradient(transparent, rgba(10,11,25,.94)); }
.hero-card-witch::before { background: radial-gradient(circle at 50% 38%, rgba(160,94,125,.6), transparent 52%), linear-gradient(160deg, #3e2a44, #151522); }
.hero-card-shadow::before { background: radial-gradient(circle at 50% 42%, rgba(165,62,98,.6), transparent 52%), linear-gradient(160deg, #42283b, #171522); }
.hero-card img { position: absolute; left: 50%; bottom: 0; height: 94%; max-width: none; transform: translateX(-50%); object-fit: contain; transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .55s; filter: drop-shadow(0 20px 22px rgba(0,0,0,.28)); }
.hero-card-knight img { height: 89%; }
.hero-card-shadow img { height: 88%; }
.hero-card:hover img { transform: translateX(-50%) scale(1.035); filter: drop-shadow(0 28px 32px rgba(0,0,0,.4)); }
.hero-role { position: absolute; z-index: 3; top: 26px; left: 27px; color: rgba(255,255,255,.58); font-size: 10px; letter-spacing: .2em; }
.hero-name { position: absolute; z-index: 3; left: 30px; bottom: 26px; display: flex; flex-direction: column; }
.hero-name small { color: #b8b0f4; font: 9px/1.4 Georgia, serif; letter-spacing: .26em; }
.hero-name strong { margin-top: 5px; font: 500 27px/1.3 "STKaiti", "KaiTi", serif; letter-spacing: .12em; }
.mini-portraits { margin: 45px auto 0; max-width: 780px; min-height: 140px; display: flex; align-items: end; justify-content: center; border-bottom: 1px solid #d4d0d8; }
.mini-portraits > div { position: relative; width: 96px; height: 130px; overflow: hidden; border-left: 1px solid #d4d0d8; background: linear-gradient(180deg, #e7e4ed, #d6d3df); }
.mini-portraits > div:nth-child(3) { border-right: 1px solid #d4d0d8; }
.mini-portraits img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: grayscale(.2); transition: filter .25s, transform .25s; }
.mini-portraits > div:hover img { filter: grayscale(0); transform: scale(1.04); }
.mini-portraits p { align-self: center; margin: 0 0 0 30px; display: flex; flex-direction: column; }
.mini-portraits strong { font: 500 17px/1.4 "STKaiti", "KaiTi", serif; letter-spacing: .08em; }
.mini-portraits span { margin-top: 6px; color: #898694; font-size: 11px; }

.journey { position: relative; min-height: 660px; padding: 120px 10vw; display: grid; place-items: center; text-align: center; color: white; overflow: hidden; background: radial-gradient(circle at 50% 20%, #323666 0%, #1c203e 45%, #111429 100%); }
.journey::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.55) 0 1px, transparent 1.5px); background-size: 78px 78px; opacity: .26; }
.journey::after { content: ""; position: absolute; width: min(560px, 78vw); aspect-ratio: 1; border: 1px solid rgba(175,167,237,.18); border-radius: 50%; box-shadow: 0 0 0 70px rgba(160,150,230,.035), 0 0 0 140px rgba(160,150,230,.025); }
.journey-content { position: relative; z-index: 3; max-width: 680px; }
.journey h2 { margin: 0; font: 500 clamp(42px, 5vw, 76px)/1.15 "STKaiti", "KaiTi", serif; letter-spacing: .08em; }
.journey-content > p:not(.section-kicker) { margin: 25px 0 32px; color: #b9b8cc; font-size: 14px; letter-spacing: .06em; }
.journey .primary-button { text-align: left; }
.journey-creature { position: absolute; z-index: 2; left: clamp(-180px, -7vw, -70px); bottom: -140px; width: clamp(320px, 31vw, 520px); filter: drop-shadow(0 28px 28px rgba(0,0,0,.34)); transform: rotate(6deg); }
.journey-chest { position: absolute; z-index: 3; right: 9vw; bottom: 14%; width: 86px; filter: drop-shadow(0 16px 14px rgba(0,0,0,.35)); animation: float 4s ease-in-out infinite; }

.site-footer { padding: 58px 24px 42px; color: #7e7d91; text-align: center; background: #0d0f20; }
.footer-brand { color: white; font: 500 24px/1.3 "STKaiti", "KaiTi", serif; letter-spacing: .16em; }
.footer-brand span { color: #9187df; }
.footer-slogan { margin: 12px 0 35px; color: #5f6074; font-size: 12px; letter-spacing: .14em; }
.footer-legal { display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 12px; }
.footer-legal a { transition: color .2s; }
.footer-legal a:hover { color: #b3acee; text-decoration: underline; }
.footer-divider { width: 1px; height: 12px; background: #3c3e54; }
.copyright { margin: 15px 0 0; color: #484a5d; font: 9px/1.5 Georgia, serif; letter-spacing: .12em; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes hero-settle { from { opacity: .55; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-12px) rotate(3deg); } }

@media (max-width: 1100px) {
  .hero-content { width: min(600px, 58vw); margin-left: 7vw; }
  .world { grid-template-columns: 1fr; }
  .world .section-heading { max-width: 680px; }
  .features { padding-left: 4vw; padding-right: 6vw; gap: 3vw; }
  .hero-card { height: 520px; }
  .hero-gallery { gap: 10px; }
  .journey-creature { opacity: .72; }
}

@media (max-width: 780px) {
  .site-header { height: 68px; padding: 0 20px; }
  .brand-copy strong { font-size: 18px; }
  .nav-toggle { position: relative; z-index: 2; width: 42px; height: 42px; padding: 10px; display: flex; flex-direction: column; justify-content: center; gap: 5px; border: 0; color: white; background: transparent; }
  .nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 1px; background: currentColor; transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; padding: 110px 34px 50px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 12px; visibility: hidden; opacity: 0; pointer-events: none; background: rgba(13,15,32,.98); transition: opacity .25s, visibility .25s; }
  .site-nav.open { visibility: visible; opacity: 1; pointer-events: auto; }
  .site-nav > a:not(.nav-play) { padding: 17px 5px; color: white; text-align: center; font: 500 24px/1.3 "STKaiti", "KaiTi", serif; }
  .nav-play { margin-top: 16px; padding: 16px; text-align: center; background: #7469cc; }

  .hero { min-height: 820px; align-items: end; }
  .hero-backdrop { background-image: linear-gradient(0deg, rgba(12,14,32,.98) 0%, rgba(12,14,32,.6) 49%, rgba(12,14,32,.13) 100%), url("image/dffa7ce3-10b3-48a2-8239-f92868b4d588.c33ed.jpg"); background-position: 62% center; }
  .hero-content { width: auto; margin: 0; padding: 105px 24px 66px; }
  .hero h1 span { font-size: clamp(44px, 14vw, 64px); }
  .hero h1 em { font-size: clamp(30px, 9vw, 42px); }
  .hero-lead { font-size: 13px; line-height: 1.85; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 8px; }
  .primary-button { width: 100%; justify-content: center; }
  .primary-button .button-gem { position: static; margin-right: 18px; }
  .text-link { align-self: center; border: 0; }
  .hero-tags { justify-content: center; }
  .scroll-hint { display: none; }

  .section { padding: 85px 22px; }
  .section-heading h2 { font-size: clamp(38px, 11vw, 52px); }
  .world { gap: 52px; }
  .world-frame { padding: 8px; }
  .world-frame img { min-height: 220px; }
  .world-note { right: 8px; bottom: -48px; width: 76%; }

  .features { display: flex; flex-direction: column; padding-top: 60px; }
  .features-art { order: 2; width: 100%; height: 450px; margin-top: 25px; }
  .features-art img { max-width: 104%; max-height: 500px; }
  .orbit-one { width: 78vw; }
  .orbit-two { width: 60vw; }
  .features-copy { order: 1; }
  .feature-list { margin-top: 35px; }

  .heroes-heading { display: block; }
  .heroes-heading > p { margin-top: 25px; }
  .hero-gallery { grid-template-columns: 1fr; gap: 18px; margin-top: 45px; }
  .hero-card { height: min(570px, 135vw); }
  .hero-card img { height: 94%; }
  .hero-card-shadow img { height: 91%; }
  .mini-portraits { flex-wrap: wrap; align-items: end; }
  .mini-portraits > div { width: 31%; max-width: 96px; }
  .mini-portraits p { width: 100%; margin: 22px 0; text-align: center; }

  .journey { min-height: 720px; padding: 110px 22px 240px; }
  .journey-creature { left: 50%; bottom: -190px; width: 390px; transform: translateX(-50%); opacity: .58; }
  .journey-chest { right: 8%; bottom: 19%; width: 72px; }
  .journey-content > p:not(.section-kicker) { line-height: 1.8; }

  .footer-legal { flex-direction: column; gap: 10px; }
  .footer-divider { width: 34px; height: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
