:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-2: #0b0f19;
  --ink: #f2eee6;
  --ink-2: #c9c6bf;
  --muted: #8d919c;
  --line: #f2eee61a;
  --star: #ecc98a;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --latin: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); line-height: 1.75; font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--star); outline-offset: 4px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 96px); line-height: 1.16; letter-spacing: 0.01em; }
h2 { font-size: clamp(30px, 4.6vw, 60px); line-height: 1.22; letter-spacing: 0.01em; }
h3 { font-size: 22px; line-height: 1.4; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); margin: 20px 0 0; max-width: 620px; }
.eyebrow { margin: 0 0 22px; font-size: 13px; letter-spacing: 0.4em; color: var(--star); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 34px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 16px; font-weight: 600;
  transition: box-shadow .4s, transform .2s;
}
.button:hover { box-shadow: 0 0 40px 4px #ecc98a55; transform: translateY(-1px); }
.platforms { font-size: 13px; color: var(--muted); letter-spacing: 0.08em; }

/* Header */
header, main, footer { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
header { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 16px; }
.home header { position: absolute; inset: 0 0 auto; z-index: 5; max-width: none; padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); }
.wordmark { font-family: var(--latin); font-size: 25px; letter-spacing: -0.3px; }
.wordmark span { color: var(--star); }
header nav { display: flex; align-items: center; gap: 30px; font-size: 14px; color: var(--ink-2); }
header nav a:hover { color: var(--ink); }
.nav-cta { padding: 7px 18px; border-radius: 999px; border: 1px solid #f2eee640; color: var(--ink) !important; }
.nav-cta:hover { border-color: var(--ink); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; animation: drift 40s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #05070d99 0%, #05070d00 30%, #05070d00 55%, #05070de6 92%, var(--bg) 100%), linear-gradient(90deg, #05070dcc 0%, #05070d00 60%); }
.twinkle { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 140px var(--gutter) clamp(72px, 12vh, 140px); }
.hero .lead { color: #dcd8cf; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 40px; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }

/* Sections */
main > section { padding: clamp(96px, 14vw, 180px) 0 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }

/* Moments */
.moment-rail {
  list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 12px;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 30vw, 380px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none;
}
.moment-rail::-webkit-scrollbar { display: none; }
.moment { position: relative; border-radius: 22px; overflow: hidden; scroll-snap-align: start; background: var(--bg-2); aspect-ratio: 4 / 5; }
.moment img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.moment:hover img { transform: scale(1.04); }
.moment::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #05070d00 45%, #05070dd9 100%); }
.moment-copy { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 1; }
.moment-copy p { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; }
.star {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: #05070d8c; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid #ecc98a55; color: var(--star); font-size: 13px;
}
.star::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff4dc; box-shadow: 0 0 8px 3px #ecc98acc; }

/* Universe */
.universe-plate { position: relative; margin: 0; border-radius: 28px; overflow: hidden; }
.universe-plate img { width: 100%; }
.sky-labels { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.sky-labels li {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  font-size: clamp(11px, 1.2vw, 14px); letter-spacing: 0.12em; white-space: nowrap; color: #f2eee6e6;
  text-shadow: 0 1px 10px #000;
}
.sky-labels b { margin-left: 8px; font-weight: 500; color: var(--star); font-family: var(--latin); letter-spacing: 0; }
.grammar { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grammar li { color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); padding-top: 16px; }
.grammar strong { display: block; font-family: var(--serif); font-size: 24px; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* AI */
.ai-flow {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(80px, 0.6fr) minmax(0, 1fr); align-items: center;
  gap: 12px; padding: clamp(24px, 4vw, 48px); border-radius: 28px;
  background: radial-gradient(120% 90% at 85% 50%, #ecc98a14, transparent 60%), var(--bg-2); border: 1px solid var(--line);
}
.traces { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.trace {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px;
  background: #f2eee60a; border: 1px solid var(--line); color: var(--ink-2); font-size: 14px;
  animation: float 6s ease-in-out infinite;
}
.trace:nth-child(2) { margin-left: 8%; animation-delay: -1.5s; }
.trace:nth-child(3) { margin-left: 3%; animation-delay: -3s; }
.trace:nth-child(4) { margin-left: 11%; animation-delay: -4.5s; }
.trace img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; }
.trace i { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #f2eee60f; color: var(--muted); font-style: normal; }
.trace b { display: block; color: var(--ink); font-weight: 500; }
.trace span { font-size: 13px; color: var(--muted); }
.trace.photo span { font-size: 14px; color: var(--ink-2); }
.beam { position: relative; height: 2px; background: linear-gradient(90deg, #ecc98a00, #ecc98a66, #ecc98a00); }
.beam span { position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: #fff4dc; box-shadow: 0 0 10px 3px #ecc98a; animation: flow 2.4s linear infinite; }
.beam span:nth-child(2) { animation-delay: .8s; }
.beam span:nth-child(3) { animation-delay: 1.6s; }
.lit {
  position: relative; padding: 28px 26px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, #1a1d29, #0d101a); border: 1px solid #ecc98a40;
  box-shadow: 0 0 60px -10px #ecc98a40;
}
.lit-tag { margin: 0 0 16px; font-size: 12px; letter-spacing: 0.3em; color: var(--star); }
.lit strong { display: block; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; }
.lit span { display: block; margin-top: 6px; color: var(--muted); font-family: var(--latin); letter-spacing: 0.06em; }
.lit-star {
  position: absolute; right: 26px; top: 24px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff4dc; box-shadow: 0 0 14px 5px #ecc98acc, 0 0 50px 16px #ecc98a44; animation: pulse 3s ease-in-out infinite;
}
.ai-points { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ai-points li { color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); padding-top: 16px; }
.ai-points strong { display: block; font-family: var(--serif); font-size: 24px; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes flow { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 6px); opacity: 0; } }
@keyframes flow-down { from { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 6px); opacity: 0; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.25); opacity: 1; } }

/* Hotels */
.hotels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.logo-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.logo-wall li {
  height: 110px; display: grid; place-items: center; padding: 20px;
  border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line);
}
.logo-wall img { height: 40px; width: auto; max-width: 100%; object-fit: contain; filter: brightness(0) invert(0.93); opacity: 0.9; }
.logo-wall img[src*="ihg"] { height: 32px; }
.logo-wall img[src*="mandarin"] { height: 66px; }

/* Join */
.join {
  position: relative; margin-top: clamp(96px, 14vw, 180px); padding: clamp(120px, 18vw, 220px) var(--gutter);
  text-align: center; background: var(--bg) url("/assets/img/horizon-alt.jpg") center 35% / cover no-repeat; isolation: isolate;
}
.join::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--bg) 0%, #05070d55 35%, #05070d66 70%, var(--bg) 100%); }
.join-inner { max-width: 640px; margin: 0 auto; }
.join p { color: var(--ink-2); font-size: 18px; margin: 18px 0 34px; }
.join .platforms { font-size: 13px; margin: 22px 0 0; color: var(--muted); }

footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 32px; padding-bottom: 40px; font-size: 13px; color: var(--muted); }
footer nav, footer div { display: flex; gap: 22px; }
footer a:hover { color: var(--ink); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
.moment-rail .moment:nth-child(2) { transition-delay: .08s; }
.moment-rail .moment:nth-child(3) { transition-delay: .16s; }

/* Privacy and terms pages */
.prose { max-width: 800px; padding-bottom: 80px; }
.prose h1 { font-size: 40px; margin: 40px 0 16px; }
.prose h2 { font-size: 23px; margin: 38px 0 12px; }
.prose p, .prose li { color: var(--ink-2); font-size: 15px; }
.prose a { color: var(--star); text-decoration: underline; }
.prose ul { padding-left: 22px; }
.prose .eyebrow { margin: 0; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; }
[hidden] { display: none !important; }

@media (max-aspect-ratio: 1/1) {
  .hero { align-items: flex-start; }
  .hero-inner { padding-top: clamp(110px, 16vh, 170px); }
  .hero-bg { object-position: 62% 100%; }
  .hero::after { background: linear-gradient(180deg, #05070dd9 0%, #05070d99 38%, #05070d00 60%, #05070d00 85%, var(--bg) 100%); }
}
@media (max-width: 900px) {
  .hotels { grid-template-columns: 1fr; }
  .ai-flow { grid-template-columns: 1fr; }
  .beam { width: 2px; height: 56px; margin: 0 auto; background: linear-gradient(180deg, #ecc98a00, #ecc98a66, #ecc98a00); }
  .beam span { left: -2px; animation-name: flow-down; }
  .ai-points { grid-template-columns: 1fr; }
  .grammar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  header { height: 68px; }
  header nav a:not(.nav-cta) { display: none; }
  .moment-rail { grid-auto-columns: 78vw; }
  .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-wall li { height: 96px; }
  .sky-labels li:nth-child(n+4) { display: none; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg, .trace, .beam span, .lit-star { animation: none; }
  .beam span { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
