*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html[data-lang="zh-Hant"],
html[data-lang="zh-Hans"] {
  font-size: 16px;
}

:root {
  --bg: #070707;
  --bg-2: #0c0c0c;
  --bg-3: #121212;
  --gold-1: #fbf4a1;
  --gold-2: #d4af37;
  --gold-3: #8f5e25;
  --gold: #c9a35a;
  --gold-soft: rgba(201, 163, 90, 0.16);
  --text: #f4efe4;
  --muted: #9b9282;
  --line: rgba(212, 175, 55, 0.28);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gold-grad: linear-gradient(165deg, #fbf4a1 0%, #e0c36a 38%, #8f5e25 100%);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100%;
}

body.is-touch {
  cursor: auto;
}

body.nav-lock {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10000;
  background: var(--gold-2);
  color: #111;
  padding: 0.6rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border: 0;
}

.section {
  position: relative;
  padding: 7.5rem 6vw;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display-en);
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.kicker::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.1rem;
  padding: 0 1.5rem;
  border: 1px solid var(--gold-3);
  color: var(--gold-1);
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background: var(--gold-grad);
  color: #111;
  border-color: transparent;
}

.btn--ghost {
  border-color: transparent;
  color: #e8dfcf;
  letter-spacing: 0.12em;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: transparent;
  color: var(--gold-1);
  border-color: transparent;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: none;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.spotlight {
  position: fixed;
  width: 42vw;
  height: 42vw;
  max-width: 560px;
  max-height: 560px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(251, 244, 161, 0.09) 0%, rgba(143, 94, 37, 0.04) 38%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.has-pointer .spotlight.is-on {
  opacity: 1;
}

.cursor {
  display: none;
}

.cursor__ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid rgba(212, 175, 55, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.has-pointer.is-cursor-on .cursor__ring {
  opacity: 1;
}

body.has-pointer a:hover ~ .cursor,
body.is-hovering-link .cursor {
  transform: scale(0.4);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 80;
  background: var(--gold-grad);
  transform-origin: left center;
}

@media (max-width: 860px) {
  .section {
    padding: 5.2rem 6vw;
  }

  body {
    cursor: auto;
  }

  .cursor,
  .cursor__ring,
  .spotlight {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
