:root {
  --bg: #05060a;
  --ink: #f6f1e8;
  --mute: rgba(246, 241, 232, 0.62);
  --line: rgba(255, 255, 255, 0.1);
  --gold: #d7b56d;
  --em: #2ee6a6;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overscroll-behavior: none; }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: Outfit, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body:not(.is-ready) { overflow: hidden; height: 100dvh; }
body.lang-en [data-lang="zh"],
body.lang-zh [data-lang="en"] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  width: 0;
  z-index: 60;
  background: rgba(255,255,255,.55);
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: #03050a;
  overflow: hidden;
  transition: opacity .66s ease, visibility .66s;
}
.boot.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.fall {
  position: absolute;
  top: -6%;
  left: 50%;
  width: min(58vw, 760px);
  height: 96%;
  transform: translateX(-50%);
  pointer-events: none;
}
.fall i { position: absolute; pointer-events: none; }
.fall-source {
  top: 0;
  left: 50%;
  width: 42%;
  height: 18%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 35%, rgba(255,240,210,.62), rgba(255,214,160,.16) 46%, transparent 72%);
  filter: blur(10px);
  mix-blend-mode: screen;
  animation: musicPulse 5.6s ease-in-out infinite;
}
.fall-column {
  top: 6%;
  left: 50%;
  width: 72%;
  height: 86%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,232,190,.34) 0%, rgba(255,218,168,.14) 26%, rgba(255,210,160,.05) 58%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 58% 100% at 50% 0%, #000 18%, transparent 74%);
  mask-image: radial-gradient(ellipse 58% 100% at 50% 0%, #000 18%, transparent 74%);
  filter: blur(20px);
  mix-blend-mode: screen;
  animation: musicPulse 5.6s ease-in-out infinite;
}
.fall-kiss {
  top: 5%;
  left: 50%;
  width: 26%;
  height: 70%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,246,224,.38) 0%, rgba(255,228,186,.1) 36%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 42% 100% at 50% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 42% 100% at 50% 0%, #000 10%, transparent 70%);
  filter: blur(12px);
  mix-blend-mode: screen;
  animation: musicPulse 5.6s 0.4s ease-in-out infinite;
}
.fall-drift {
  top: 0;
  left: 50%;
  width: 22%;
  height: 28%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(255,240,214,.28), transparent);
  filter: blur(16px);
  mix-blend-mode: screen;
  animation: lightFall 7.2s ease-in-out infinite;
}
.fall-pool {
  left: 50%;
  bottom: 16%;
  width: 46%;
  height: 14%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255,226,186,.18), transparent 72%);
  filter: blur(16px);
  animation: musicPulse 5.6s ease-in-out infinite;
}
.world-sky {
  position: absolute;
  inset: -10% -12%;
  pointer-events: none;
  mix-blend-mode: screen;
}
.world-sky i { position: absolute; }
.sky-sun {
  top: -16%;
  left: 0;
  right: 0;
  height: 52%;
  background: radial-gradient(ellipse 88% 58% at 50% 0%, rgba(255,230,190,.24), transparent 72%);
  filter: blur(18px);
  animation: sunWander 20s ease-in-out infinite alternate;
}
.sky-wash {
  inset: 0;
  background: linear-gradient(180deg, rgba(255,226,186,.1) 0%, rgba(255,218,170,.04) 28%, transparent 58%);
  filter: blur(12px);
  animation: washBreathe 9s ease-in-out infinite;
}
.sky-patch {
  width: 48vw;
  height: 42vh;
  background: radial-gradient(ellipse, rgba(255,226,186,.13), transparent 72%);
  filter: blur(22px);
}
.sky-patch.a {
  top: 2%;
  left: 4%;
  animation: patchA 17s ease-in-out infinite alternate;
}
.sky-patch.b {
  top: 8%;
  right: 2%;
  animation: patchB 23s ease-in-out infinite alternate;
}
.sky-patch.c {
  top: 22%;
  left: 28%;
  width: 40vw;
  height: 36vh;
  animation: patchC 19s ease-in-out infinite alternate;
}
@keyframes sunWander {
  from { transform: translateX(-9%) scale(1); opacity: .7; }
  to { transform: translateX(11%) scale(1.08); opacity: 1; }
}
@keyframes washBreathe {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}
@keyframes patchA {
  from { transform: translate3d(-8%, 6%, 0); opacity: .35; }
  to { transform: translate3d(14%, -5%, 0); opacity: .9; }
}
@keyframes patchB {
  from { transform: translate3d(8%, -4%, 0); opacity: .3; }
  to { transform: translate3d(-12%, 7%, 0); opacity: .85; }
}
@keyframes patchC {
  from { transform: translate3d(-6%, 8%, 0) scale(.92); opacity: .25; }
  to { transform: translate3d(10%, -6%, 0) scale(1.08); opacity: .75; }
}
.boot-mark {
  position: relative;
  z-index: 2;
  width: min(46vw, 210px);
  margin-top: -4vh;
}
.boot-emblem {
  width: 100%;
  height: auto;
  object-fit: contain;
  animation: emblemIn .86s cubic-bezier(.16,1,.3,1) both;
  filter: drop-shadow(0 18px 36px rgba(16, 185, 129, .35)) drop-shadow(0 -12px 28px rgba(255, 226, 186, .22));
  transition: transform .62s cubic-bezier(.16,1,.3,1), opacity .52s ease, filter .52s ease;
}
.boot.is-done .boot-emblem {
  animation: none;
  transform: scale(1.38);
  opacity: 0;
  filter: blur(8px);
}

@keyframes emblemIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes musicPulse {
  0%, 100% { opacity: .72; }
  50% { opacity: 1; }
}
@keyframes lightFall {
  0% { top: 2%; opacity: 0; }
  18% { opacity: .85; }
  100% { top: 62%; opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.world { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; perspective: 1100px; }
.world-hero {
  position: absolute;
  inset: -20%;
  will-change: transform;
  transform-origin: 50% 42%;
  transform-style: preserve-3d;
}
.world-hero-img {
  position: absolute;
  inset: 0;
  background: url("../img/hero-bg.webp") center / cover no-repeat;
  animation: ken 16s ease-in-out infinite alternate;
}
.world-side {
  position: absolute;
  top: 0;
  width: 36vw;
  height: 100%;
  filter: blur(10px);
}
.world-side.left {
  left: -10%;
  background: linear-gradient(90deg, rgba(8,18,16,.35), transparent 74%);
}
.world-side.right {
  right: -10%;
  background: linear-gradient(270deg, rgba(18,16,10,.28), transparent 74%);
}
.world-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,6,10,.12) 0%, rgba(5,6,10,.38) 48%, rgba(5,6,10,.92) 100%);
  will-change: opacity;
}
.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0,0,0,.55) 100%);
}
#dust { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes ken {
  from { transform: scale(1.06) translate3d(2%, -1%, 0); }
  to { transform: scale(1.2) translate3d(-4%, 2.4%, 0); }
}

.app {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: scale(1.16);
  filter: blur(8px);
  transform-origin: 50% 42%;
  transition: opacity .72s cubic-bezier(.22,1,.36,1), transform .78s cubic-bezier(.16,1,.3,1), filter .62s ease;
}
body.is-ready .app { opacity: 1; transform: scale(1); filter: none; }

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(20px + var(--safe-t)) 6% 16px;
  background: none;
}
body.is-ready .nav { animation: fadeUp .7s .08s both; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, .35));
}
.brand b {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: #fff;
}
.nav-actions { display: flex; gap: 8px; align-items: center; }
.chip, .ghost {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  transition: border-color .35s, color .35s, background .35s;
}
.chip:hover, .ghost:hover {
  color: var(--ink);
  border-color: rgba(215,181,109,.45);
  background: rgba(215,181,109,.06);
}
.cta {
  position: relative;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #efe6d2;
  color: #16120b;
  font-weight: 600;
  transition: background .25s, transform .2s;
}
.cta:hover { background: #fff; }
.cta-lg { min-height: 46px; padding: 0 22px; }

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18vh 7% 12vh;
  max-width: 920px;
  will-change: transform, opacity;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 600;
  margin-bottom: 22px;
  opacity: 0;
}
body.is-ready .kicker { animation: fadeUp .7s .12s both; }
.kicker i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--em);
  box-shadow: 0 0 12px var(--em);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .4; transform: scale(.82); } }
.hero h1 {
  font-family: "Cormorant Garamond", "Songti SC", serif;
  font-weight: 600;
  font-size: clamp(3.1rem, 7.2vw, 6.4rem);
  line-height: 1.08;
  letter-spacing: .02em;
  color: #f4ece0;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
  opacity: 0;
  transform: translateY(36%);
  background: linear-gradient(180deg, #fff8ec 0%, #f4ece0 48%, #d9cbb6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.is-ready .hero h1 .line {
  animation: lineUp .72s cubic-bezier(.16,1,.3,1) both;
}
body.is-ready .hero h1 .line:nth-of-type(2),
body.is-ready .hero h1 .line:nth-of-type(4) { animation-delay: .14s; }
@keyframes lineUp { to { opacity: 1; transform: none; } }
.lead {
  margin: 22px 0 0;
  max-width: 28rem;
  color: var(--mute);
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0;
}
body.is-ready .lead { animation: fadeUp .7s .28s both; }

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.28);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  will-change: transform;
}
.ticker-track {
  display: flex;
  gap: 56px;
  width: max-content;
  padding: 12px 0;
  animation: marquee 32s linear infinite;
  color: rgba(244,236,224,.55);
  letter-spacing: .32em;
  font-size: .68rem;
  font-weight: 500;
}
.ticker-track span::before {
  content: "◆";
  margin-right: 48px;
  font-size: .45rem;
  opacity: .7;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hall {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  padding: 40px 5% 88px;
}
.card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr .9fr; min-height: 380px; }
.card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(8,10,16,.55);
  min-height: 420px;
  transform-style: preserve-3d;
  transition: border-color .45s, transform .35s ease, box-shadow .45s;
}
.card:hover {
  border-color: rgba(255,236,210,.2);
  box-shadow: 0 28px 60px rgba(0,0,0,.35);
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
  transform: scale(var(--img-zoom, 1.08));
  will-change: transform;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.card:hover img { transform: scale(calc(var(--img-zoom, 1.08) * 1.07)); }
.card-wide img { object-position: center 38%; }
.shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,236,190,.18) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 1.1s ease;
}
.card:hover .shine { transform: translateX(130%); }
.card-copy {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding: 28px;
  background: linear-gradient(180deg, transparent, rgba(5,6,10,.88) 55%);
}
.card-copy span {
  color: var(--gold);
  letter-spacing: .2em;
  font-size: .72rem;
  font-weight: 600;
}
.card-copy h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  margin: 8px 0;
}
.card-copy p { color: var(--mute); max-width: 32rem; line-height: 1.6; }

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(1.08);
  filter: blur(8px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .78s cubic-bezier(.16,1,.3,1), filter .6s ease;
}
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.card.reveal:nth-child(2) { transition-delay: .06s; }
.card.reveal:nth-child(3) { transition-delay: .12s; }

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 5% calc(26px + var(--safe-b));
  border-top: 1px solid var(--line);
  color: var(--mute);
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 28px; height: 28px; object-fit: contain; }
.foot-brand b { color: var(--ink); font-weight: 600; letter-spacing: .12em; }
.social { display: flex; align-items: center; gap: 8px; }
.social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--mute);
  display: grid;
  place-items: center;
  transition: color .25s, border-color .25s, background .25s;
}
.social a:hover {
  color: #fff;
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.06);
}
.social svg { width: 15px; height: 15px; fill: currentColor; }

@media (max-width: 900px) {
  .hall, .card-wide { grid-template-columns: 1fr; }
  .hero { min-height: 100dvh; padding-top: 16vh; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 4.2rem); }
  .card { min-height: 360px; }
  .social { width: 100%; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
