:root {
  --ink: #211710;
  --ink-deep: #100c0a;
  --sand: #d0ad72;
  --champagne: #e4ca99;
  --gold-dim: #af8650;
  --white: #fffdf8;
  --line: rgba(238, 210, 161, 0.66);
  --sans: "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink-deep);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.preloader {
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow: hidden;
  background: #c9a375 url("/assets/preloader-cover.webp") center / cover no-repeat;
  opacity: 1;
  visibility: visible;
  transition: opacity 260ms ease, visibility 260ms ease;
}

body.is-loaded .preloader {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.preloader::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.08), transparent 31%, rgba(70,38,18,.08) 78%);
  content: "";
}

.preloader-grain {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: radial-gradient(rgba(74, 48, 24, .45) .6px, transparent .8px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}

.preloader-watermark {
  position: absolute;
  left: 50%;
  top: 66%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
}

.preloader-watermark span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(70, 42, 21, .78);
  border-radius: 48% 52% 50% 50%;
  animation: preloader-water 1.9s cubic-bezier(.4, 0, .2, 1) infinite;
}

.preloader-watermark span:nth-child(2) { inset: 8px; animation-delay: .23s; opacity: .65; }
.preloader-watermark span:nth-child(3) { inset: 16px; animation-delay: .46s; opacity: .38; }

.site-header {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  pointer-events: none;
  transition: transform 420ms cubic-bezier(.16, 1, .3, 1), opacity 260ms ease;
}
body.header-hidden .site-header { opacity: 0; pointer-events: none; transform: translateY(-115%); }

.header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  padding: 28px 36px;
  pointer-events: auto;
}

.header-home-link {
  position: absolute;
  top: 28px;
  left: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  color: var(--white);
  font-size: 11px;
  letter-spacing: .12em;
  pointer-events: auto;
  transition: color 220ms ease, opacity 220ms ease;
}
.header-home-link::before {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}
.header-home-link span { font-weight: 500; }
.header-home-link i { padding-left: 10px; border-left: 1px solid currentColor; font-size: 9px; font-style: normal; letter-spacing: .15em; opacity: .74; }
.header-home-link:hover { color: var(--champagne); }

.language-switcher { position: relative; }

.language-trigger,
.menu-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--white);
  letter-spacing: .07em;
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.52);
  font-size: 12px;
  transition: border-color 220ms ease, color 220ms ease;
}

.language-trigger:hover, .language-trigger[aria-expanded="true"] { border-color: var(--champagne); color: var(--champagne); }

.chevron {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 220ms ease;
}
.language-trigger[aria-expanded="true"] .chevron { transform: rotate(225deg) translate(-2px, -2px); }

.language-panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: 144px;
  padding: 7px;
  border: 1px solid rgba(231, 205, 157, .7);
  background: rgba(28, 18, 13, .82);
  box-shadow: 0 16px 36px rgba(0,0,0,.2);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}
.language-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.language-panel button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.7);
  text-align: left;
  font-size: 12px;
  transition: background 160ms ease, color 160ms ease;
}
.language-panel button:hover, .language-panel button.is-active { background: rgba(225, 196, 138, .14); color: var(--champagne); }

.menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
  font-size: 12px;
  transition: color 220ms ease;
}
.menu-trigger:hover { color: var(--champagne); }
.menu-lines { display: grid; gap: 5px; width: 17px; }
.menu-lines i { display: block; width: 17px; height: 1px; background: currentColor; transition: transform 220ms ease; }
.menu-close-label,
.menu-close-mark { display: none; }
.menu-close-mark { font-size: 20px; font-weight: 300; line-height: .7; }
body.menu-open .menu-open-label,
body.menu-open .menu-lines { display: none; }
body.menu-open .menu-close-label,
body.menu-open .menu-close-mark { display: inline-block; }

.menu-overlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  overflow: hidden;
  background: #c6a170;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 420ms ease, visibility 420ms ease;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.menu-background {
  position: absolute;
  inset: 0;
  background: #c6a170 url("/assets/menu-background.png") center / cover no-repeat;
  transform: scale(1.03);
  transition: transform 820ms cubic-bezier(.16, 1, .3, 1);
}
.menu-overlay.is-open .menu-background { transform: scale(1); }

.chapter-nav {
  position: relative;
  z-index: 1;
  width: min(520px, 80vw);
  padding: clamp(132px, 15vh, 184px) 8vw 56px;
  color: #432918;
}
.chapter-label {
  margin: 0 0 25px;
  font-size: 11px;
  letter-spacing: .22em;
  opacity: .68;
}
.chapter-nav ol { margin: 0; padding: 0; list-style: none; }
.chapter-nav li { border-top: 1px solid rgba(72, 42, 22, .27); }
.chapter-nav li:last-child { border-bottom: 1px solid rgba(72, 42, 22, .27); }
.chapter-nav a {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  transition: padding 230ms ease, color 230ms ease;
}
.chapter-nav a:hover { padding-left: 12px; color: #7c4c26; }
.chapter-nav a span { font-size: 10px; letter-spacing: .11em; opacity: .72; }
.chapter-nav strong { font-size: clamp(16px, 1.55vw, 22px); font-weight: 400; letter-spacing: .04em; }

.hero-section {
  position: relative;
  min-height: 100svh;
}

.hero-section { isolation: isolate; overflow: hidden; }
.hero-background {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 14, 11, .42) 0%, rgba(3, 14, 11, .16) 15%, transparent 36%), url("/assets/hero-cover.webp") center center / cover no-repeat;
  transform: scale(1.01);
}
.hero-background::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 11, 8, .28) 0%, transparent 28%);
  content: "";
}

.hero-brand {
  position: absolute;
  top: 38%;
  left: 50%;
  display: flex;
  width: min(480px, 35vw);
  flex-direction: column;
  align-items: center;
  isolation: isolate;
  transform: translate(-50%, -50%);
}
.logo-lockup {
  position: relative;
  width: 100%;
  animation: logo-float 5.6s ease-in-out infinite;
}
.diamond-spark {
  position: absolute;
  z-index: 2;
  width: 12px;
  height: 12px;
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(225, 239, 255, .95));
  animation: diamond-twinkle 4s ease-in-out infinite;
}
.diamond-spark::before, .diamond-spark::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.98), transparent);
  content: "";
  transform: translate(-50%, -50%);
}
.diamond-spark::after { transform: translate(-50%, -50%) rotate(90deg); }
.diamond-spark-one { top: 19%; left: 18%; animation-delay: .12s; }
.diamond-spark-two { top: 38%; right: 8%; animation-delay: 1.42s; }
.diamond-spark-three { bottom: 27%; left: 26%; animation-delay: 2.67s; }
.hero-logo {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 9px 20px rgba(1, 11, 8, .22)) drop-shadow(0 0 2px rgba(255,255,255,.96)) drop-shadow(0 0 6px rgba(223, 240, 255, .72));
  animation: logo-breathe 2.5s ease-in-out infinite;
}

.water-loader {
  position: relative;
  z-index: 1;
  display: block;
  width: 36px;
  height: 36px;
  margin-top: 18px;
}
.water-loader i {
  position: absolute;
  inset: 0;
  display: block;
  border: 1px solid rgba(232, 202, 148, .85);
  border-radius: 46% 54% 49% 51%;
  box-shadow: 0 0 11px rgba(232, 202, 148, .24);
  animation: water-orbit 2.5s cubic-bezier(.45, 0, .55, 1) infinite;
}
.water-loader i:nth-child(2) { inset: 6px; border-color: rgba(255, 244, 220, .8); animation-delay: .25s; animation-direction: reverse; }
.water-loader i:nth-child(3) { inset: 12px; border-color: rgba(219, 174, 101, .92); animation-delay: .48s; }

.vr-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  width: 116px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  overflow: hidden;
  border: 1px solid rgba(248, 252, 255, .88);
  border-radius: 1px;
  background: linear-gradient(112deg, rgba(40, 67, 82, .48), rgba(25, 49, 62, .38) 48%, rgba(70, 91, 106, .43));
  backdrop-filter: blur(8px) saturate(116%);
  color: rgba(255,255,255,.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.29), inset 0 0 0 1px rgba(214, 233, 255, .12), 0 0 12px rgba(206, 229, 255, .16);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  text-shadow: 0 0 8px rgba(213, 234, 255, .72);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.vr-button::before { position: absolute; z-index: -1; inset: 4px; border: 1px solid rgba(228, 242, 255, .31); content: ""; pointer-events: none; }
.vr-button > * { position: relative; z-index: 1; }
.vr-button svg { width: 17px; height: 17px; fill: currentColor; filter: drop-shadow(0 0 4px rgba(213, 234, 255, .58)); }
.vr-button:hover { border-color: #fff; background: linear-gradient(112deg, rgba(61, 92, 110, .56), rgba(31, 62, 78, .45) 48%, rgba(80, 105, 121, .51)); box-shadow: inset 0 1px 0 rgba(255,255,255,.42), inset 0 0 0 1px rgba(255,255,255,.18), 0 0 16px rgba(206, 229, 255, .24); }

.hero-actions {
  position: absolute;
  bottom: 53px;
  left: 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-width: 171px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px;
  overflow: hidden;
  border: 1px solid transparent;
  font-size: 13px;
  letter-spacing: .08em;
  transition: transform 200ms ease, box-shadow 200ms ease, color 200ms ease, background 200ms ease;
}
.button:hover { transform: translateY(-3px); }
.button > * { position: relative; z-index: 3; }
.button svg { width: 17px; height: 17px; fill: currentColor; }
.button-primary {
  border-color: rgba(255, 243, 213, .8);
  background: linear-gradient(105deg, rgba(251, 229, 181, .93) 0%, rgba(207, 165, 103, .82) 44%, rgba(248, 224, 174, .88) 100%);
  color: #2f1c0c;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), inset 0 -1px 0 rgba(86,51,21,.22), 0 10px 26px rgba(0,0,0,.17), 0 0 0 3px rgba(220, 188, 128, .12);
  backdrop-filter: blur(11px) saturate(130%);
}
.button-primary::before {
  position: absolute;
  z-index: 1;
  top: -65%;
  bottom: -65%;
  left: -45%;
  width: 25%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.68), transparent);
  content: "";
  transform: translateX(-260%) skewX(-18deg);
  animation: glass-sheen 7.4s ease-in-out infinite;
}
.button-primary:hover { background: linear-gradient(105deg, rgba(255,239,205,.98), rgba(219,179,114,.9), rgba(255,234,194,.94)); box-shadow: inset 0 1px 0 rgba(255,255,255,.94), inset 0 -1px 0 rgba(86,51,21,.22), 0 14px 30px rgba(0,0,0,.25), 0 0 22px rgba(242, 209, 145, .22); }
.button-secondary {
  border-color: rgba(243, 220, 176, .58);
  border-radius: 2px;
  background: linear-gradient(118deg, rgba(16, 30, 27, .88), rgba(5, 12, 11, .68) 56%, rgba(36, 29, 21, .72));
  color: #fffdf8;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 1px 12px rgba(255,255,255,.05), 0 11px 26px rgba(0,0,0,.21);
  backdrop-filter: blur(13px) saturate(118%);
}
.button-secondary::before, .floating-booking::before {
  position: absolute;
  z-index: 2;
  inset: -1px;
  border-radius: inherit;
  padding: 1.2px;
  background: conic-gradient(from 0deg, transparent 0 56%, rgba(217, 124, 44, .26) 60%, rgba(255, 177, 78, .98) 67%, rgba(255, 243, 196, 1) 70%, rgba(255, 151, 49, .65) 74%, transparent 80% 100%);
  content: "";
  filter: drop-shadow(0 0 4px rgba(243, 132, 43, .72)) drop-shadow(0 0 10px rgba(226, 103, 22, .27));
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: perimeter-glow 3s linear infinite;
}
.button-secondary::after {
  position: absolute;
  z-index: 1;
  inset: 3px;
  border: 1px solid rgba(255, 235, 195, .15);
  content: "";
  pointer-events: none;
}
.button-secondary:hover { background: linear-gradient(118deg, rgba(26,43,38,.94), rgba(8,17,15,.79) 56%, rgba(47,36,25,.82)); color: #fff7e8; box-shadow: inset 0 0 0 1px rgba(255,255,255,.11), inset 0 1px 14px rgba(255,255,255,.08), 0 14px 31px rgba(0,0,0,.29), 0 0 20px rgba(225, 148, 66, .14); }
.portal-mark { position: relative; display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid rgba(254, 235, 197, .88); border-radius: 50%; box-shadow: 0 0 8px rgba(240, 194, 122, .22); }
.portal-mark::before { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; content: ""; opacity: .86; }
.portal-mark i { position: absolute; width: 1px; height: 12px; background: linear-gradient(transparent, currentColor, transparent); transform: rotate(-42deg); opacity: .75; }

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  width: 28px;
  height: 38px;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
}
.scroll-hint span::before, .scroll-hint span::after {
  position: absolute;
  left: 50%;
  width: 12px;
  height: 1px;
  background: rgba(255,255,255,.84);
  content: "";
}
.scroll-hint span::before { top: 16px; transform: translateX(-8px) rotate(45deg); }
.scroll-hint span::after { top: 16px; transform: translateX(0) rotate(-45deg); }
.scroll-hint:hover span::before, .scroll-hint:hover span::after { background: var(--champagne); }
.scroll-hint span { display: block; animation: arrow-fall 2.3s ease-in-out infinite; }


.floating-booking {
  position: fixed;
  z-index: 40;
  right: 32px;
  bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 241, 210, .71);
  border-radius: 999px;
  background: linear-gradient(105deg, rgba(250, 226, 177, .96), rgba(210, 168, 104, .9) 46%, rgba(245, 220, 169, .94));
  color: #332111;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), inset 0 -1px 0 rgba(86,51,21,.2), 0 10px 28px rgba(0,0,0,.23), 0 0 0 3px rgba(215, 169, 95, .11);
  font-size: 13px;
  letter-spacing: .07em;
  transition: transform 180ms ease, background 180ms ease;
}
.floating-booking > * { position: relative; z-index: 3; }
.floating-booking:hover { transform: translateY(-3px); background: linear-gradient(105deg, #ffefd0, #e0b572 46%, #ffe7bd); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(86,51,21,.2), 0 14px 31px rgba(0,0,0,.29), 0 0 22px rgba(238, 145, 48, .24); }
.floating-booking svg { width: 18px; height: 18px; fill: currentColor; }

body.menu-open .site-header .language-trigger, body.menu-open .site-header .menu-trigger { color: #492e1b; border-color: rgba(73,46,27,.45); }
body.menu-open .language-panel { border-color: rgba(77, 46, 25, .55); background: rgba(238, 215, 169, .94); box-shadow: 0 15px 32px rgba(90,55,29,.12); }
body.menu-open .language-panel button { color: rgba(73,46,27,.72); }
body.menu-open .language-panel button:hover, body.menu-open .language-panel button.is-active { background: rgba(75,43,21,.09); color: #492e1b; }

@keyframes preloader-water { 0%, 100% { transform: scale(.72) rotate(0); opacity: .16; } 48% { transform: scale(1.18) rotate(16deg); opacity: 1; } }
@keyframes water-orbit { 0% { transform: rotate(0) scale(.8); opacity: .35; } 45% { transform: rotate(136deg) scale(1.05); opacity: 1; } 100% { transform: rotate(360deg) scale(.8); opacity: .35; } }
@keyframes diamond-twinkle { 0%, 36%, 100% { opacity: 0; transform: rotate(0) scale(.3); } 43% { opacity: 1; transform: rotate(18deg) scale(1.15); } 52% { opacity: .48; transform: rotate(42deg) scale(.72); } }
@keyframes logo-float { 0%, 100% { transform: translateY(3px); } 50% { transform: translateY(-3px); } }
@keyframes logo-breathe { 0%, 100% { opacity: .94; filter: drop-shadow(0 9px 20px rgba(1,11,8,.22)) drop-shadow(0 0 2px rgba(255,255,255,.82)) drop-shadow(0 0 5px rgba(211,234,255,.54)); } 50% { opacity: 1; filter: drop-shadow(0 9px 25px rgba(255,255,255,.28)) drop-shadow(0 0 4px rgba(255,255,255,1)) drop-shadow(0 0 9px rgba(215,238,255,.8)); } }
@keyframes glass-sheen { 0%, 64% { transform: translateX(-260%) skewX(-18deg); opacity: 0; } 68% { opacity: .8; } 79% { transform: translateX(780%) skewX(-18deg); opacity: .7; } 82%, 100% { transform: translateX(780%) skewX(-18deg); opacity: 0; } }
@keyframes perimeter-glow { to { transform: rotate(360deg); } }
@keyframes arrow-fall { 0%, 100% { transform: translateY(-3px); opacity: .42; } 50% { transform: translateY(6px); opacity: 1; } }

@media (max-width: 800px) {
  .header-controls { gap: 16px; padding: 20px; }
  .header-home-link { top: 20px; left: 20px; gap: 7px; font-size: 10px; }
  .header-home-link i { padding-left: 7px; font-size: 8px; }
  .language-trigger, .menu-trigger { font-size: 11px; }
  .language-panel { width: 136px; }
  .chapter-nav { width: min(400px, 88vw); padding: 116px 7vw 42px; }
  .chapter-nav a { grid-template-columns: 39px 1fr; padding: 12px 0; }
  .chapter-nav strong { font-size: 17px; }
  .hero-background { background-position: 57% center; }
  .hero-brand { top: 38%; width: min(68vw, 390px); }
  .water-loader { margin-top: 12px; transform: scale(.9); }
  .vr-button { width: 110px; min-height: 38px; margin-top: 12px; font-size: 12px; }
  .vr-button svg { width: 15px; height: 15px; }
  .hero-actions { bottom: 29px; left: 20px; gap: 9px; }
  .button { min-width: 158px; padding: 12px 15px; font-size: 12px; }
  .floating-booking { right: 20px; bottom: 20px; padding: 12px 15px; font-size: 12px; }
  .scroll-hint { bottom: 28px; }
}

@media (max-width: 420px) {
  .header-controls { gap: 13px; }
  .hero-brand { top: 35%; width: 76vw; }
  .floating-booking { padding: 11px 13px; }
  .floating-booking svg { width: 16px; }
}

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