:root {
  --bg: #050505;
  --bg-raised: #0e0d0b;
  --line: rgba(212, 175, 95, 0.22);
  --gold: #d9b35f;
  --gold-bright: #f3d88e;
  --gold-deep: #8f6a2a;
  --text: #ece6d8;
  --muted: #a29a88;
  --display: "Cinzel", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }

.gold-text {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: linear-gradient(180deg, rgba(5,5,5,0.92), rgba(5,5,5,0.55) 70%, transparent);
  backdrop-filter: blur(6px);
}
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-word {
  display: inline-flex; align-items: center; gap: 0.12em;
  font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: 0.16em;
}
.logo-ring {
  width: 0.92em; height: 0.92em; border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 10px 1px rgba(243, 216, 142, 0.75), inset 0 0 8px rgba(243, 216, 142, 0.55);
  display: inline-block;
}
.logo-sub { font-size: 9px; letter-spacing: 0.62em; color: var(--gold); margin-top: 5px; padding-left: 0.62em; }

.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); }
.nav a { font-size: 14px; letter-spacing: 0.12em; color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover, .nav a.active { color: var(--gold-bright); border-color: var(--gold); }
.lang-toggle {
  font: inherit; font-size: 12px; letter-spacing: 0.1em; cursor: pointer;
  color: var(--gold); background: transparent; border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px; transition: background .2s, color .2s;
}
.lang-toggle:hover { background: var(--gold); color: #111; }

/* ---------- Layout ---------- */
.section { padding: clamp(64px, 10vw, 128px) var(--gutter); }
.inner { max-width: var(--max); margin: 0 auto; }
.eyebrow { font-size: 12px; letter-spacing: 0.4em; color: var(--gold); text-transform: uppercase; margin-bottom: 14px; }
.section-title { font-size: clamp(28px, 4.4vw, 46px); letter-spacing: 0.06em; margin-bottom: 18px; }
.section-lead { color: var(--muted); max-width: 62ch; margin-bottom: 48px; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); border: 0; margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; font-size: 14px; letter-spacing: 0.14em;
  border: 1px solid var(--gold); color: var(--gold-bright); border-radius: 2px;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--gold); color: #111; transform: translateY(-1px); }
.btn.solid { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #15110a; font-weight: 600; }
.btn.solid:hover { filter: brightness(1.08); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px var(--gutter) 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.34; filter: saturate(0.85); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 72% 45%, rgba(217,179,95,0.16), transparent 55%),
    linear-gradient(90deg, #050505 8%, rgba(5,5,5,0.55) 55%, rgba(5,5,5,0.85)),
    linear-gradient(0deg, #050505 2%, transparent 35%);
}
.hero-grid { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(44px, 8vw, 104px); line-height: 1.02; letter-spacing: 0.08em; }
.hero h1 .cn { display: block; font-family: "Noto Serif SC", "Songti SC", serif; font-weight: 900; font-size: 0.62em; letter-spacing: 0.3em; margin-bottom: 10px; }
.tagline { font-family: var(--display); font-style: italic; color: var(--gold); font-size: clamp(16px, 2vw, 21px); letter-spacing: 0.08em; margin: 22px 0 20px; }
.hero-desc { color: #cfc8b8; max-width: 54ch; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; padding: 0; list-style: none; }
.meta li { font-size: 12px; letter-spacing: 0.14em; color: var(--gold); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.poster { position: relative; justify-self: center; max-width: 360px; width: 100%; }
.poster img { width: 100%; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 60px rgba(217,179,95,0.14); }
.poster::before { content: ""; position: absolute; inset: -14px; border: 1px solid var(--line); pointer-events: none; }

/* ---------- Story ---------- */
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.story-item { background: var(--bg); padding: 30px 28px; }
.story-item h3 { font-size: 17px; letter-spacing: 0.12em; color: var(--gold-bright); margin-bottom: 10px; font-family: var(--body); font-weight: 500; }
.story-item p { color: var(--muted); font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 48px; }
.gallery figure { margin: 0; overflow: hidden; background: var(--bg-raised); grid-column: span 2; aspect-ratio: 16 / 10; }
.gallery figure.wide { grid-column: span 3; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.04); }

/* ---------- Trailer ---------- */
.trailer { background: radial-gradient(ellipse at 50% 0%, rgba(217,179,95,0.09), transparent 60%), var(--bg-raised); }
.video-frame { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0,0,0,0.7); background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Roadmap ---------- */
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 62px; height: 1px; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-deep)); }
.roadmap li { padding: 0 16px; text-align: center; position: relative; }
.roadmap .when { font-family: var(--display); font-size: clamp(18px, 2.2vw, 24px); color: var(--gold-bright); letter-spacing: 0.06em; height: 44px; }
.roadmap .dot { width: 14px; height: 14px; margin: 11px auto 26px; transform: rotate(45deg); border: 2px solid var(--gold); background: var(--bg); position: relative; }
.roadmap .dot::after { content: ""; position: absolute; inset: 2px; background: var(--gold); }
.roadmap h3 { font-family: var(--body); font-size: 17px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.roadmap p { font-size: 14px; color: var(--muted); }
.partners { margin-top: 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.partners .label { font-size: 12px; letter-spacing: 0.3em; color: var(--muted); }
.partners span:not(.label) { font-family: var(--display); letter-spacing: 0.1em; color: var(--gold); font-size: 16px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.service { border: 1px solid var(--line); padding: 34px 28px; background: linear-gradient(180deg, rgba(217,179,95,0.05), transparent 60%); transition: border-color .25s, transform .25s; }
.service:hover { border-color: var(--gold); transform: translateY(-3px); }
.service .num { font-family: var(--display); color: var(--gold-deep); font-size: 14px; letter-spacing: 0.2em; }
.service h3 { font-family: var(--body); font-weight: 500; font-size: 19px; color: var(--gold-bright); margin: 14px 0 10px; }
.service p { color: var(--muted); font-size: 15px; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 24px; }
.project { display: block; }
.project .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-raised); border: 1px solid var(--line); }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s; filter: brightness(0.88); }
.project:hover img { transform: scale(1.05); filter: brightness(1); }
.project h3 { font-family: var(--body); font-weight: 500; font-size: 17px; margin-top: 14px; transition: color .2s; }
.project:hover h3 { color: var(--gold-bright); }
.project .tag { font-size: 12px; letter-spacing: 0.16em; color: var(--gold); }
.more { margin-top: 48px; text-align: center; }

.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; margin-bottom: clamp(56px, 8vw, 96px); }
.feature .thumb { border: 1px solid var(--line); overflow: hidden; aspect-ratio: 16 / 9; }
.feature .thumb img { width: 100%; height: 100%; object-fit: cover; }
.feature h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: 0.08em; margin-bottom: 14px; }
.feature p { color: var(--muted); margin-bottom: 26px; }

/* ---------- Contact ---------- */
.contact-band { text-align: center; background: radial-gradient(ellipse at 50% 100%, rgba(217,179,95,0.12), transparent 60%); }
.contact-band .section-lead { margin-inline: auto; }
.contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; }
.contact-list > div { background: var(--bg); padding: 32px 24px; }
.contact-list dt { font-size: 12px; letter-spacing: 0.3em; color: var(--gold); margin-bottom: 10px; }
.contact-list dd { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--gold-bright); }
.page-head { padding: 160px var(--gutter) 0; }

.site-footer { border-top: 1px solid var(--line); padding: 32px var(--gutter); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--muted); font-size: 13px; }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer .links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .poster { max-width: 260px; order: -1; }
  .feature { grid-template-columns: 1fr; }
  .gallery figure, .gallery figure.wide { grid-column: span 3; aspect-ratio: 16 / 10; }
  .roadmap { grid-template-columns: 1fr; gap: 30px; padding-left: 8px; }
  .roadmap::before { left: 14px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; background: var(--gold-deep); }
  .roadmap li { text-align: left; padding: 0 0 0 44px; }
  .roadmap .when { height: auto; }
  .roadmap .dot { position: absolute; left: 0; top: 0; margin: 8px 0 0; }
}
@media (max-width: 560px) {
  .logo-word { font-size: 20px; }
  .logo-sub { font-size: 7px; }
  .nav { gap: 12px; }
  .nav a { font-size: 13px; letter-spacing: 0.04em; }
  .lang-toggle { padding: 4px 9px; }
  .gallery figure, .gallery figure.wide { grid-column: span 6; }
}

/* ---------- Business card ---------- */
.vcard {
  position: relative; overflow: hidden; text-align: left;
  width: min(100%, 560px); margin: 44px auto 0; padding: clamp(26px, 5vw, 40px);
  border: 1px solid var(--line); border-radius: 6px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(217,179,95,0.16), transparent 55%),
    linear-gradient(145deg, #14120e, #090807 70%);
  box-shadow: 0 40px 90px rgba(0,0,0,0.75), inset 0 0 0 1px rgba(255,240,200,0.03);
}
.vcard::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(212,175,95,0.12); border-radius: 3px; pointer-events: none; }
.vcard-top { display: flex; justify-content: space-between; align-items: flex-start; }
.vcard-top .logo { align-items: flex-start; }
.vcard-top .logo-sub { padding-left: 0; }
.vcard-seal {
  writing-mode: vertical-rl; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 12px; letter-spacing: 0.3em;
  color: #1a1206; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); padding: 8px 4px 5px; border-radius: 2px;
}
.vcard-id { margin: clamp(30px, 6vw, 52px) 0 28px; }
.vcard-id h2 { font-family: "Noto Serif SC", "Songti SC", var(--display); font-size: clamp(30px, 6vw, 40px); letter-spacing: 0.16em; line-height: 1.2; }
.vcard-alt { font-family: var(--display); letter-spacing: 0.22em; color: var(--gold); font-size: 13px; margin-top: 6px; }
.vcard-role { margin-top: 16px; font-size: 15px; }
.vcard-skills { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; }
.vcard-rows { margin: 0; border-top: 1px solid var(--line); }
.vcard-rows > div { display: flex; gap: 18px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid rgba(212,175,95,0.1); }
.vcard-rows > div:last-child { border-bottom: 0; padding-bottom: 0; }
.vcard-rows dt { flex: 0 0 84px; font-size: 11px; letter-spacing: 0.26em; color: var(--gold); }
.vcard-rows dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; min-width: 0; }
.vcard-rows a:hover { color: var(--gold-bright); }
.vcard-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
div.project { cursor: default; }

/* Story grid: hairlines drawn per cell so an odd count leaves no filled gap */
.story-grid { gap: 0; background: none; border: 0; }
.story-item { box-shadow: 0 0 0 1px var(--line); background: rgba(5,5,5,0.6); }
@media (min-width: 1100px) { .story-grid { grid-template-columns: repeat(5, 1fr); } }
.projects.fit { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Hero title: 敦煌 in Chinese, DUNHUANG VR in English */
html[lang="zh-CN"] .hero h1 { font-family: "Noto Serif SC", "Songti SC", serif; font-weight: 900; font-size: clamp(56px, 8.6vw, 124px); letter-spacing: 0.08em; line-height: 1.15; white-space: nowrap; }
html[lang="zh-CN"] .tagline { font-family: "Noto Serif SC", "Songti SC", serif; font-style: normal; font-weight: 600; letter-spacing: 0.32em; }
