:root {
  --bg: #0d0a08;
  --bg-soft: #17120d;
  --gold: #d9a441;
  --gold-deep: #8a6318;
  --ivory: #f3ece0;
  --muted: #b8ac9a;
  --ember: #7a2e22;

  --font-display: "Fraunces", serif;
  --font-cn: "Ma Shan Zheng", serif;
  --font-sans: "Manrope", sans-serif;

  --nav-h: 84px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* ── Barra ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  background: linear-gradient(to bottom, rgba(13,10,8,0.65), transparent);
}
.nav__logo { display: flex; align-items: center; gap: 12px; color: var(--gold); text-decoration: none; }
.nav__word { font-weight: 700; font-size: 14px; letter-spacing: 0.28em; color: var(--ivory); }
.nav__links { display: flex; gap: clamp(20px, 3vw, 40px); }
.nav__links a {
  font-size: 13px; letter-spacing: 0.04em; color: var(--muted);
  text-decoration: none; transition: color 0.25s ease;
}
.nav__links a:hover { color: var(--gold); }
.nav__cta {
  border: 1px solid var(--gold-deep); color: var(--gold);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 999px; text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.nav__cta:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* ── Escena ── */
.hero {
  position: relative; min-height: 100svh; width: 100%;
  overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 70% at 50% 8%, rgba(217,164,65,0.08), transparent 60%), var(--bg);
}
.hero__curtain {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 5; touch-action: none; pointer-events: auto;
}
.hero__stage {
  position: relative; width: min(46vw, 620px); max-width: 84vw;
  height: 100svh; z-index: 10; pointer-events: none;
}
.hero__image-wrap {
  position: absolute; left: 50%; top: 7%; transform: translate(-50%, 0);
  width: 100%; z-index: 8;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55));
}
.hero__image {
  display: block; width: 100%; height: auto;
  transform-origin: 50% 30%;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.045); } }

/* ── Texto ── */
.hero__copy {
  position: absolute; z-index: 20;
  left: clamp(20px, 4vw, 56px); bottom: clamp(56px, 9vh, 96px);
  max-width: 480px;
}
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 4.4vw, 58px); line-height: 1.06;
  color: var(--ivory); letter-spacing: -0.01em; margin: 0;
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__sub { font-size: 14.5px; line-height: 1.65; color: var(--muted); max-width: 38ch; margin: 18px 0 0; }
.hero__cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid var(--gold-deep); padding-bottom: 6px;
  transition: gap 0.25s ease, color 0.25s ease;
}
.hero__cta:hover { gap: 16px; color: var(--ivory); }

.hero__eyebrow--right {
  position: absolute; z-index: 20;
  right: clamp(20px, 4vw, 56px); bottom: 16%;
  max-width: 220px; font-size: 12.5px; line-height: 1.6;
  color: var(--muted); text-align: right; margin: 0;
}

.hero__scrollcue {
  position: absolute; z-index: 20; left: 50%; bottom: 26px;
  transform: translateX(-50%);
  width: 1px; height: 46px; overflow: hidden;
  background: linear-gradient(to bottom, transparent, var(--gold-deep) 40%, transparent);
}
.hero__scrollcue span {
  position: absolute; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollcue 2.4s ease-in-out infinite;
}
@keyframes scrollcue { 0% { top: -100%; } 60%, 100% { top: 100%; } }

.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 860px) {
  .hero__eyebrow--right { display: none; }
  .hero__stage { width: min(80vw, 440px); height: 82svh; }
  .hero__image-wrap { top: 4%; }
  .hero__copy {
    left: 50%; transform: translateX(-50%); text-align: center;
    bottom: clamp(28px, 4svh, 48px); max-width: min(92vw, 440px);
  }
  .hero__sub { max-width: 34ch; margin-inline: auto; }
  .nav__links { display: none; }
}
@media (max-width: 500px) {
  .nav { padding: 0 16px; }
  .hero__title { font-size: clamp(28px, 8vw, 38px); }
  .hero__stage { width: 86vw; height: 78svh; }
}

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