/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }

/* ─── TOKENS ─────────────────────────────────────────────────── */
:root {
  --bg:     #09090B;
  --bg2:    #131216;
  --red:    #7E1D2B;
  --red2:   #6A1623;
  --gold:   #A87E33;
  --gold2:  #CBA24E;
  --white:  #F1ECE2;
  --dim:    #8C8478;
  --nav-bg: rgba(9,9,11,0.92);
  --border: rgba(168,126,51,0.18);
  --font-display: 'Noto Serif SC', serif;
  --font-body:    'Inter', sans-serif;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
body.loading { overflow: hidden; }
body.loading .cursor { opacity: 0; }

/* ─── CUSTOM CURSOR ──────────────────────────────────────────── */
/* dot */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 8002;
  transform: translate(-50%, -50%);
  transition: transform .1s, background .2s;
}
/* ring */
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 8001;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  transition: width .25s, height .25s, opacity .25s, border-color .25s;
}
.cursor-dot.hover  { background: var(--red); transform: translate(-50%,-50%) scale(1.5); }
.cursor-ring.hover { width: 52px; height: 52px; border-color: var(--red); opacity: 0.35; }
.cursor-dot.click  { transform: translate(-50%,-50%) scale(0.6); }
.cursor-ring.click { width: 22px; height: 22px; opacity: 0.8; }
/* hide old single cursor class if anything references it */
.cursor { display: none !important; }

/* ─── NAV ────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 60px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s, padding .4s;
}
nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  padding: 18px 60px;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  text-decoration: none;
}
.nav-logo span { color: var(--red); }
.nav-tag {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim);
}
.nav-tag strong { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 16px; }

/* Language toggle */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}
.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em;
  padding: 9px 14px;
  cursor: none;
  transition: background .2s, color .2s;
  position: relative;
}
.lang-toggle button.active {
  background: var(--red);
  color: var(--white);
}
.lang-toggle button:not(.active):hover { color: var(--white); }
.lang-toggle .divider {
  width: 1px; height: 100%;
  background: var(--border);
  pointer-events: none;
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
  transition: background .25s, color .25s;
}
.nav-cta:hover { background: var(--gold); color: var(--bg); }

/* ─── HERO ───────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 160px 60px 100px;
  overflow: hidden;
}

/* Ghost watermark */
.hero-ghost {
  position: absolute; right: -60px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(200px, 28vw, 420px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(168,126,51,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* Red vertical accent line */
#hero::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--red) 30%, var(--red) 70%, transparent);
}

.hero-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 16px;
}
.hero-label::before {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--red);
}

/* Translation showcase: the signature interaction */
.translate-pair {
  margin-bottom: 16px;
}
.translate-pair .zh {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 108px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  display: block;
}
.translate-pair .zh em {
  color: var(--gold);
  font-style: normal;
}
.translate-pair .pt {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--dim);
  display: block;
  margin-top: 4px;
}

.hero-divider {
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 40px 0;
}

.hero-sub {
  max-width: 520px;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 300;
  color: var(--dim);
  line-height: 1.75;
}
.hero-sub strong { color: var(--white); font-weight: 500; }

.hero-actions {
  margin-top: 52px;
  display: flex; gap: 20px; align-items: center;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px;
  background: var(--red);
  color: var(--white);
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none;
  transition: background .25s, transform .25s;
}
.btn-primary:hover { background: var(--red2); transform: translateY(-2px); }
.btn-primary .arrow { font-size: 18px; transition: transform .25s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  font-size: 13px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
  padding-bottom: 2px;
}
.btn-ghost:hover { color: var(--white); border-color: var(--white); }

/* Scroll indicator */
.scroll-hint {
  opacity: 1;
  position: absolute; bottom: 40px; right: 60px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0;
}
.scroll-hint span {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dim);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(1); }
  50%       { opacity: 1;  transform: scaleY(1.2); }
}

/* ─── MARQUEE ────────────────────────────────────────────────── */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg2);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  gap: 0;
  will-change: transform;
}
.marquee-inner {
  display: flex;
  gap: 0;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-inner span {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--dim);
  padding: 0 32px;
  transition: color .25s;
}
.marquee-inner span:hover { color: var(--gold); }
.marquee-inner .dot { color: var(--red); font-size: 18px; vertical-align: middle; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── SECÇÕES COMUNS ─────────────────────────────────────────── */
section { padding: 120px 60px; }
.section-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
}
.section-label::before {
  content: '';
  display: block; width: 30px; height: 1px;
  background: var(--red);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--white);
}
.section-title em {
  color: var(--gold);
  font-style: normal;
}
.section-body {
  font-size: 17px; font-weight: 300;
  color: var(--dim);
  line-height: 1.8;
  max-width: 540px;
}

/* ─── SOBRE ──────────────────────────────────────────────────── */
#sobre {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.sobre-text { }
.sobre-text p { color: var(--dim); font-size: 17px; font-weight: 300; line-height: 1.85; margin-bottom: 24px; }
.sobre-text p strong { color: var(--white); font-weight: 500; }
.sobre-char {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.sobre-char-big {
  font-family: var(--font-display);
  font-size: clamp(160px, 18vw, 280px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  opacity: 0.22;
  line-height: 1;
  user-select: none;
}
.sobre-char-label {
  position: absolute;
  bottom: -10px; right: 20px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}
.sobre-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
  margin-top: 32px;
  margin-right: 12px;
}

/* ─── SERVIÇOS ───────────────────────────────────────────────── */
#servicos {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 64px;
}
.servico-card {
  background: var(--bg2);
  padding: 52px 40px;
  position: relative;
  overflow: hidden;
  transition: background .3s;
  clip-path: inset(0 0 0 0);
}
.servico-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.servico-card:hover::before { transform: scaleX(1); }
.servico-card:hover { background: #17151A; }
.servico-zh {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(168,126,51,0.3);
  margin-bottom: 24px;
  line-height: 1;
  transition: -webkit-text-stroke .3s, color .3s;
}
.servico-card:hover .servico-zh {
  color: var(--gold);
  -webkit-text-stroke: 1px var(--gold);
  opacity: 0.5;
}
.servico-name {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}
.servico-desc {
  font-size: 14px; font-weight: 300;
  color: var(--dim);
  line-height: 1.75;
  margin-bottom: 32px;
}
.servico-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.servico-tag {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim);
  border: 1px solid rgba(136,128,112,0.25);
  padding: 5px 12px;
  transition: border-color .25s, color .25s;
}
.servico-card:hover .servico-tag { border-color: var(--gold); color: var(--gold); }

/* ─── NÚMEROS ────────────────────────────────────────────────── */
#numeros {
  background: var(--red);
  padding: 80px 60px;
  border-top: 1px solid rgba(126,29,43,0.3);
}
.numeros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.numero-item { }
.numero-val {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  display: block;
}
.numero-suffix {
  font-size: 32px;
  color: rgba(255,255,255,0.6);
}
.numero-label {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 12px;
  display: block;
}
.numero-zh {
  font-family: var(--font-display);
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
  display: block;
}

/* ─── PROCESSO ───────────────────────────────────────────────── */
#processo {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.processo-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  position: relative;
}
.processo-steps::before {
  content: '';
  position: absolute; top: 32px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), var(--border), transparent);
}
.passo {
  padding: 0 32px;
  text-align: center;
  position: relative;
}
.passo-num {
  width: 64px; height: 64px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  color: var(--gold);
  background: var(--bg2);
  margin: 0 auto 28px;
  position: relative; z-index: 1;
  transition: background .3s, border-color .3s;
}
.passo:hover .passo-num { background: var(--red); border-color: var(--red); color: var(--white); }
.passo-zh {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: 12px;
}
.passo-name {
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
.passo-desc {
  font-size: 13px; font-weight: 300;
  color: var(--dim);
  line-height: 1.7;
}

/* ─── SECTORES ───────────────────────────────────────────────── */
#sectores {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.sectores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 64px;
}
.sector-item {
  background: var(--bg2);
  padding: 36px 40px;
  display: flex; align-items: flex-start; gap: 24px;
  position: relative;
  overflow: hidden;
  transition: background .3s;
  cursor: default;
}
.sector-item:hover { background: #17151A; }
.sector-zh {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700;
  color: var(--red);
  opacity: 0.35;
  line-height: 1;
  flex-shrink: 0;
  transition: opacity .3s;
}
.sector-item:hover .sector-zh { opacity: 0.65; }
.sector-info { }
.sector-name {
  font-size: 15px; font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.sector-sub {
  font-size: 12px; font-weight: 300;
  color: var(--dim);
  line-height: 1.5;
}

/* ─── CONTACTO ───────────────────────────────────────────────── */
#contacto {
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contacto-info { }
.contacto-big {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 32px;
  color: var(--white);
}
.contacto-big em { color: var(--gold); font-style: normal; }
.contacto-line {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--dim);
}
.contacto-line strong { color: var(--white); font-size: 15px; }
.contacto-line .icon {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  color: var(--gold);
}
.contacto-form { padding-top: 8px; }
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color .25s;
  -webkit-appearance: none;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { border-color: var(--gold); }
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row select option { background: var(--bg2); }
.form-submit {
  width: 100%;
  padding: 18px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background .25s, transform .2s;
  margin-top: 8px;
}
.form-submit:hover { background: var(--red2); transform: translateY(-2px); }

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
}
.footer-logo span { color: var(--red); }
.footer-copy {
  font-size: 12px; font-weight: 300;
  color: var(--dim);
  letter-spacing: 0.06em;
}
.footer-langs {
  display: flex; gap: 20px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim);
}
.footer-langs span { color: var(--gold); }

/* ─── SCROLL PROGRESS BAR ────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(to right, var(--red), var(--gold));
  z-index: 8000;
  pointer-events: none;
  transform-origin: left;
  transition: opacity .3s;
}
body.loading #scroll-progress { opacity: 0; pointer-events: none; }

/* ─── MOBILE MENU ────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: transparent; border: 1px solid var(--border);
  cursor: none; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--white);
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

#mobileMenu {
  position: fixed; inset: 0;
  z-index: 400;
  background: var(--bg);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 8px;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.77,0,.18,1);
}
#mobileMenu.open { transform: translateX(0); }
.mob-nav-link {
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.06em;
  padding: 12px 0;
  position: relative;
  transition: color .25s;
  opacity: 0;
  transform: translateX(30px);
}
.mob-nav-link::after {
  content: '';
  position: absolute; bottom: 8px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .3s ease;
}
.mob-nav-link:hover { color: var(--gold); }
.mob-nav-link:hover::after { width: 100%; }
.mob-lang-row {
  display: flex; gap: 16px; margin-top: 24px;
  opacity: 0; transform: translateX(30px);
}
.mob-lang-btn {
  padding: 10px 24px;
  border: 1px solid var(--border);
  background: transparent; color: var(--dim);
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500; letter-spacing: 0.1em;
  cursor: none; transition: background .25s, color .25s, border-color .25s;
}
.mob-lang-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }
.mob-wa-link {
  margin-top: 16px;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #25D366; text-decoration: none;
  opacity: 0; transform: translateX(30px);
}
#mobileMenu .mob-close {
  position: absolute; top: 28px; right: 28px;
  background: transparent; border: none;
  color: var(--dim); font-size: 28px;
  cursor: none; padding: 8px; line-height: 1;
}

/* Nav desktop links */
.nav-links {
  display: flex; gap: 28px; align-items: center;
}
.nav-link {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); text-decoration: none;
  transition: color .25s;
}
.nav-link:hover { color: var(--white); }

/* ─── FORM STATES ────────────────────────────────────────────── */
.form-submit.loading {
  opacity: .7; pointer-events: none;
}
.form-submit.loading::after {
  content: ' ◌'; animation: spin .8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
  border: 1px solid rgba(92,184,92,0.3);
  background: rgba(50,160,50,0.06);
}
.form-success.visible { display: block; }
.form-success-icon { font-size: 48px; margin-bottom: 16px; display: block; }
.form-success-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  color: var(--white); margin-bottom: 12px;
}
.form-success-sub { font-size: 14px; color: var(--dim); line-height: 1.75; }

/* ─── CURSOR: hide on touch devices ──────────────────────────── */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto !important; }
  .cursor, .cursor-dot, .cursor-ring { display: none !important; }
}

/* ─── LOADING SCREEN ─────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0;
  z-index: 9500;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 24px;
}
#loader-logo {
  font-family: var(--font-display);
  font-size: clamp(52px, 10vw, 100px);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
  opacity: 0;
}
#loader-logo span { -webkit-text-stroke-color: var(--red); }
#loader-tag {
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--dim);
  opacity: 0;
}
#loader-bar-wrap {
  width: 120px; height: 1px;
  background: rgba(168,126,51,0.15);
  overflow: hidden;
  opacity: 0;
}
#loader-bar {
  height: 100%;
  background: var(--gold);
  width: 0%;
}

/* ─── DARK / LIGHT MODE ──────────────────────────────────────── */
body.light {
  --bg:     #F3EEE6;
  --bg2:    #E9E3D8;
  --red:    #7E1D2B;
  --red2:   #6A1623;
  --gold:   #8A6526;
  --gold2:  #A87E33;
  --white:  #1A1510;
  --dim:    #6E655A;
  --border: rgba(138,101,38,0.22);
  --nav-bg: rgba(243,238,230,0.95);
}
body.light .hero-ghost {
  -webkit-text-stroke: 1px rgba(100,60,10,0.04);
}
body.light .sobre-char-big {
  -webkit-text-stroke: 1.5px rgba(168,126,51,0.15);
}
body.light .cursor-ring { border-color: var(--dim); }

.mode-toggle {
  background: transparent; border: 1px solid var(--border);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: none;
  color: var(--dim);
  font-size: 16px;
  transition: border-color .25s, color .25s, background .25s;
  flex-shrink: 0;
}
.mode-toggle:hover { border-color: var(--gold); color: var(--gold); }

/* ─── MAP SECTION ────────────────────────────────────────────── */
#mapa {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 60px;
  overflow: hidden;
  position: relative;
}
.mapa-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--dim);
  text-align: center;
  margin-bottom: 48px;
}
.mapa-svg-wrap {
  position: relative;
  max-width: 900px; margin: 0 auto;
}
.mapa-svg-wrap svg { width: 100%; height: auto; overflow: visible; }
.map-dot-label {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  fill: var(--white);
}
.map-city {
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.1em;
  fill: var(--dim);
}
.map-path {
  fill: none;
  stroke: url(#mapGrad);
  stroke-width: 1.5;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}
.map-dot-pulse {
  animation: mapPulse 2.4s ease-in-out infinite;
}
@keyframes mapPulse {
  0%,100% { opacity: .3; r: 6; }
  50%      { opacity: 1;  r: 9; }
}
.mapa-stats {
  display: flex; justify-content: center; gap: 80px;
  margin-top: 48px;
}
.mapa-stat {
  text-align: center;
}
.mapa-stat-val {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700;
  color: var(--gold);
  display: block; line-height: 1;
}
.mapa-stat-label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim);
  margin-top: 8px;
  display: block;
}

/* ─── PHOTO / VIDEO PLACEHOLDERS ─────────────────────────────── */
#media {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 0;
}
.media-half {
  padding: 80px 60px;
  display: flex; flex-direction: column;
  gap: 28px;
}
.media-half:first-child {
  border-right: 1px solid var(--border);
}
.media-frame {
  width: 100%;
  aspect-ratio: 4/5;
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  transition: border-color .3s;
}
.media-frame:hover { border-color: var(--gold); }
.media-frame-icon {
  font-size: 40px; opacity: .25;
}
.media-frame-text {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); text-align: center; max-width: 180px; line-height: 1.8;
}
.video-frame {
  aspect-ratio: 16/9;
}
.play-btn {
  width: 64px; height: 64px;
  border: 1.5px solid rgba(168,126,51,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 22px;
  transition: background .25s, border-color .25s;
}
.media-frame:hover .play-btn { background: var(--red); border-color: var(--red); color: #fff; }
.media-tip {
  font-size: 13px; font-weight: 300;
  color: var(--dim); line-height: 1.75;
}
.media-tip strong { color: var(--gold); font-weight: 500; }

/* ─── CLIENT LOGOS ───────────────────────────────────────────── */
.logos-section {
  padding: 48px 60px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logos-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--dim);
  text-align: center;
  margin-bottom: 32px;
}

/* ─── AVAILABILITY BADGE ──────────────────────────────────────── */
.avail-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(100,200,100,0.3);
  background: rgba(50,160,50,0.08);
  margin-top: 32px;
  font-size: 12px; letter-spacing: 0.08em;
  color: #7ecf7e;
}
.avail-dot {
  width: 7px; height: 7px;
  background: #5cb85c;
  border-radius: 50%;
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(92,184,92,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(92,184,92,0); }
}

/* ─── PRICING ─────────────────────────────────────────────────── */
#pricing {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 64px;
}
.price-card {
  background: var(--bg2);
  padding: 52px 40px;
  position: relative;
  transition: background .3s;
}
.price-card.featured {
  background: var(--red);
}
.price-card.featured .price-label,
.price-card.featured .price-val,
.price-card.featured .price-unit,
.price-card.featured .price-desc,
.price-card.featured .price-note,
.price-card.featured .price-includes li { color: var(--white); }
.price-card.featured .price-includes li::before { background: rgba(255,255,255,0.6); }
.price-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
  display: block;
}
.price-card.featured .price-label { color: rgba(255,255,255,0.7); }
.price-val {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 700;
  color: var(--white);
  line-height: 1;
  display: block;
}
.price-unit {
  font-size: 14px; font-weight: 300;
  color: var(--dim);
  margin-bottom: 24px;
  display: block;
}
.price-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
.price-card.featured .price-divider { background: rgba(255,255,255,0.2); }
.price-desc {
  font-size: 14px; font-weight: 300;
  color: var(--dim);
  line-height: 1.75;
  margin-bottom: 20px;
}
.price-includes {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.price-includes li {
  font-size: 13px; font-weight: 300;
  color: var(--dim);
  display: flex; align-items: flex-start; gap: 10px;
  line-height: 1.5;
}
.price-includes li::before {
  content: '';
  display: block;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.price-note {
  font-size: 11px; font-weight: 400;
  color: var(--dim);
  margin-top: 24px;
  font-style: italic;
  letter-spacing: 0.04em;
}

/* ─── CULTURAL BRIDGE ─────────────────────────────────────────── */
#cultura {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.cultura-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 64px;
}
.cultura-intro {
  font-size: 17px; font-weight: 300;
  color: var(--dim);
  line-height: 1.85;
}
.cultura-intro strong { color: var(--white); font-weight: 500; }
.cultura-cards { display: flex; flex-direction: column; gap: 2px; }
.cultura-item {
  background: var(--bg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
  transition: background .3s;
}
.cultura-item:hover { background: #17151A; }
.cultura-zh {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  color: var(--red);
  opacity: 0.5;
  line-height: 1;
}
.cultura-concept {
  font-size: 13px; font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cultura-text {
  font-size: 13px; font-weight: 300;
  color: var(--dim);
  line-height: 1.7;
}

/* ─── FAQ ─────────────────────────────────────────────────────── */
#faq {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.faq-list {
  margin-top: 64px;
  max-width: 800px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0;
  cursor: none;
  text-align: left;
}
.faq-q-text {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 400;
  color: var(--white);
  line-height: 1.4;
  flex: 1;
  padding-right: 24px;
}
.faq-icon {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 18px;
  transition: transform .3s, background .3s;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--red); border-color: var(--red); color: var(--white); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 24px; }
.faq-a-text {
  font-size: 14px; font-weight: 300;
  color: var(--dim);
  line-height: 1.8;
  padding-right: 52px;
}
.faq-a-text strong { color: var(--white); font-weight: 500; }

/* ─── WHATSAPP / WECHAT FLOAT ─────────────────────────────────── */
.float-contact {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 200;
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-end;
}
.float-btn {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; padding: 0;
  font-size: 0; letter-spacing: 0;
  text-decoration: none;
  border-radius: 50%;
  transition: transform .25s, box-shadow .25s, opacity .25s;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  opacity: 0.9;
}
.float-btn:hover { transform: translateY(-3px); opacity: 1; box-shadow: 0 10px 26px rgba(0,0,0,0.45); }
.float-wa { background: #25D366; color: #fff; }
.float-wc { background: #07C160; color: #fff; }
.float-btn svg { width: 24px; height: 24px; fill: #fff; flex-shrink: 0; }
.float-wechat-qr {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 16px;
  display: none;
  flex-direction: column; align-items: center; gap: 10px;
}
.float-wechat-qr.visible { display: flex; }
.float-wechat-qr svg { width: 100px; height: 100px; }
.float-wechat-qr span {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim);
}

/* ─── GRAIN TEXTURE ──────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  z-index: 8100;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}
body.light::before { opacity: 0.022; }

/* ─── HERO AMBIENT GLOW ──────────────────────────────────────── */
#hero::after {
  content: '';
  position: absolute;
  top: 15%; right: -5%;
  width: 55vw; height: 55vw;
  max-width: 700px; max-height: 700px;
  background: radial-gradient(circle at center, rgba(126,29,43,0.07) 0%, transparent 68%);
  pointer-events: none;
  border-radius: 50%;
  animation: glowPulse 7s ease-in-out infinite;
  z-index: 0;
}
#hero > * { position: relative; z-index: 1; }
@keyframes glowPulse {
  0%,100% { opacity: .6; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.18); }
}

/* ─── SECTION COUNTER ────────────────────────────────────────── */
#section-counter {
  position: fixed;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
}
#section-counter.visible { opacity: 1; }
#sc-current {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  line-height: 1;
  font-family: var(--font-body);
}
.sc-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--gold), rgba(168,126,51,0.1));
}
#sc-total {
  font-size: 10px; letter-spacing: 0.1em;
  color: var(--dim);
  line-height: 1;
  font-family: var(--font-body);
}

/* ─── WORD SPLIT REVEAL ──────────────────────────────────────── */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.2;
}
.word-inner {
  display: inline-block;
  transform: translateY(110%);
}

/* ─── MAGNETIC BUTTON ────────────────────────────────────────── */
/* (no display override here: .btn-primary/.nav-cta need to keep their own
   inline-flex, otherwise this class silently breaks their icon gap/alignment) */

/* ─── SCROLL MARGIN (clear fixed nav on anchor nav) ─────────────*/
section, #mapa, .logos-section {
  scroll-margin-top: 80px;
}

/* ─── REVEAL UTILITY ──────────────────────────────────────────── */
.reveal { }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 24px 24px; }
  nav.scrolled { padding: 16px 24px; }
  .nav-tag { display: none; }
  section { padding: 80px 24px; }
  #hero { padding: 140px 24px 80px; }
  #sobre { grid-template-columns: 1fr; gap: 40px; }
  .sobre-char { display: none; }
  .servicos-grid { grid-template-columns: 1fr; gap: 2px; }
  .numeros-grid { grid-template-columns: repeat(2, 1fr); }
  .processo-steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .processo-steps::before { display: none; }
  .sectores-grid { grid-template-columns: 1fr; }
  #contacto { grid-template-columns: 1fr; gap: 60px; }
  footer { flex-direction: column; gap: 24px; text-align: center; }
  .scroll-hint { display: none; }
  .hero-ghost { font-size: 120px; right: -20px; }
  .hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-right .nav-cta { display: none; }
  .nav-right .nav-linkedin { display: none; }
  .nav-right .mode-toggle { display: none; }
  .nav-right .lang-toggle { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .cultura-grid { grid-template-columns: 1fr; gap: 40px; }
  .logos-section { padding: 40px 24px; }
  .float-contact { bottom: 20px; right: 16px; }
  #section-counter { display: none; }
  #mapa { padding: 60px 24px; }
  .mapa-stats { flex-direction: column; align-items: center; gap: 24px; }
  #media { grid-template-columns: 1fr; }
  .media-half { padding: 60px 24px; }
  .media-half:first-child { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ─── LOADER GUARANTEED EXIT (CSS fallback if JS fails) ─────── */
@keyframes loaderExit {
  0%   { transform: translateY(0);    opacity: 1; }
  85%  { transform: translateY(0);    opacity: 1; }
  100% { transform: translateY(-105%); opacity: 0; pointer-events: none; }
}
#loader {
  animation: loaderExit 2s ease-in-out forwards;
}
/* Also ensure hero/section content is visible if JS never fires */
@keyframes revealFallback {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-label, .translate-pair .zh, .translate-pair .pt,
.hero-divider, .hero-sub, .hero-actions {
  animation: revealFallback 0.8s ease forwards;
  animation-delay: 1.9s;
}
.reveal {
  animation: revealFallback 0.8s ease forwards;
  animation-delay: 2.2s;
}


/* ─── CHARACTER MORPH ───────────────────────────────────────── */
#char-morph-wrap {
  position: absolute;
  right: clamp(20px, 6vw, 100px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(120px, 15vw, 220px);
  height: clamp(120px, 15vw, 220px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}
#char-morph-display {
  font-family: var(--font-display);
  font-size: clamp(90px, 13vw, 190px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  line-height: 1;
  text-align: center;
  display: block;
  transition: opacity 0.25s;
}
#char-label-morph {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); opacity: 0.55;
  text-align: center;
  margin-top: 8px;
  font-family: var(--font-body);
  white-space: nowrap;
  transition: opacity 0.25s;
}
.hero-ghost { display: none; }

/* ─── CURSOR TRAIL ───────────────────────────────────────────── */
.cursor-char {
  position: fixed;
  pointer-events: none;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.8vw, 24px);
  color: var(--gold);
  opacity: 0;
  z-index: 99999;
  user-select: none;
  transform: translate(-50%, -50%);
  will-change: opacity, transform;
}

/* ─── SERVICE CARD 3D HOVER ──────────────────────────────────── */
.servico-card {
  transition: transform 0.4s ease, background 0.3s;
}
.servico-card:hover {
  transform: perspective(700px) rotateX(-3deg) translateY(-5px);
}

/* ─── SECTION TITLE 3D ENTRANCE ──────────────────────────────── */
.section-title {
  transition: opacity 0.9s ease, transform 0.9s ease;
}

/* ════════════════════════════════════════════════════════════
   DEPTH / "WOW" EFFECTS
   ════════════════════════════════════════════════════════════ */

/* Hero perspective container */
@media (hover:hover) and (pointer:fine){
  #hero{ perspective: 1100px; }
}
#char-morph-wrap, .hero-label, .translate-pair,
.hero-sub, .hero-actions, .depth-grid{ will-change: transform; }

/* Perspective floor grid: sells the "space inside the screen" */
.depth-grid{
  position:absolute; left:50%; bottom:-8%;
  width:240%; height:78%;
  transform: translateX(-50%) perspective(620px) rotateX(74deg);
  transform-origin:50% 100%;
  background-image:
    linear-gradient(to right, rgba(168,126,51,0.11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168,126,51,0.11) 1px, transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 55% 92% at 50% 100%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 55% 92% at 50% 100%, #000 0%, transparent 72%);
  pointer-events:none; opacity:.55;
}
body.light .depth-grid{
  background-image:
    linear-gradient(to right, rgba(100,60,10,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(100,60,10,0.08) 1px, transparent 1px);
}

/* Giant per-section watermark characters (scroll parallax) */
.has-giant{ position:relative; overflow:hidden; isolation:isolate; }
.giant-char{
  position:absolute; left:50%; top:50%;
  font-family:var(--font-display); font-weight:700; line-height:1;
  font-size:clamp(360px, 50vw, 760px);
  color:transparent;
  -webkit-text-stroke:1.5px rgba(168,126,51,0.085);
  white-space:nowrap; user-select:none; pointer-events:none;
  z-index:-1;
}
body.light .giant-char{ -webkit-text-stroke:1.5px rgba(100,60,10,0.06); }

/* Card 3D tilt + glare */
.tilt-3d{ transform-style:preserve-3d; }
.card-glare{
  position:absolute; inset:0; z-index:4; pointer-events:none;
  opacity:0; transition:opacity .35s ease;
  background:radial-gradient(440px circle at var(--gx,50%) var(--gy,50%),
            rgba(203,162,78,0.18), rgba(203,162,78,0.04) 40%, transparent 62%);
  mix-blend-mode:screen;
}
.tilt-3d:hover .card-glare{ opacity:1; }

/* Marquee velocity skew */
.marquee-track{ transition:transform .45s cubic-bezier(.2,.85,.25,1); }

/* Travelling bridge token */
#mapTraveler{ transition:opacity .3s ease; }
#ptGlow, #cnGlow{ transition:r .4s ease; }

/* Pinned-bridge caption */
.bridge-msg{
  text-align:center; margin-top:30px; min-height:26px;
  font-family:var(--font-display); font-size:18px; font-weight:600;
  letter-spacing:0.06em; color:var(--gold);
  opacity:0; transition:opacity .35s ease;
}

/* Media frame: intentional empty state, ready for real media */
.media-frame{ background:linear-gradient(150deg,#121116,#0b0b0e); }
body.light .media-frame{ background:linear-gradient(150deg,#ece8e1,#f3efe9); }
.media-portrait-char{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; font-size:clamp(120px,16vw,210px);
  color:transparent; -webkit-text-stroke:1.5px rgba(168,126,51,0.16);
  pointer-events:none; user-select:none;
}
.media-frame img, .media-frame video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.media-cap{
  position:relative; z-index:1;
  display:inline-flex; align-items:center; gap:9px;
  padding:8px 16px; border:1px solid var(--border);
  font-size:10px; letter-spacing:0.18em; text-transform:uppercase; color:var(--gold);
  background:rgba(9,9,11,0.45); backdrop-filter:blur(4px);
}
body.light .media-cap{ background:rgba(245,241,236,0.55); }
.media-cap .dotpulse{ width:6px; height:6px; border-radius:50%; background:var(--gold);
  box-shadow:0 0 0 0 rgba(168,126,51,0.5); animation:pulse-gold 2.2s ease-in-out infinite; }
@keyframes pulse-gold{ 0%,100%{ box-shadow:0 0 0 0 rgba(168,126,51,0.5);} 50%{ box-shadow:0 0 0 6px rgba(168,126,51,0);} }

/* Form focus polish */
.form-row input:focus, .form-row textarea:focus, .form-row select:focus{
  box-shadow:0 0 0 3px rgba(168,126,51,0.12);
}
.form-row:focus-within label{ color:var(--gold); }

/* ── Personal seal (印章) ── */
.seal{
  display:inline-grid; grid-template-columns:repeat(2,1fr); grid-template-rows:repeat(2,1fr);
  gap:2px; width:80px; height:80px; padding:8px;
  background:#B23A2C; border-radius:9px;
  box-shadow: inset 0 0 0 2px rgba(244,236,224,0.32), 0 10px 26px rgba(0,0,0,0.45);
  transform:rotate(-4deg);
}
.seal span{
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; font-size:27px; line-height:1;
  color:#F4ECE0;
}
body.light .seal{ box-shadow: inset 0 0 0 2px rgba(255,248,240,0.55), 0 10px 26px rgba(0,0,0,0.18); }

/* ── Handwritten signature ── */
.signature{ font-family:'Sacramento', cursive; font-size:clamp(40px,5vw,60px); color:var(--gold2); line-height:1; }

/* ── Manifesto (first person) ── */
#manifesto{
  background:var(--bg); border-top:1px solid var(--border);
  padding:130px 60px; text-align:center; position:relative; overflow:hidden;
}
.manifesto-inner{ max-width:840px; margin:0 auto; position:relative; z-index:1; }
.manifesto-label{
  font-size:10px; letter-spacing:0.3em; text-transform:uppercase; color:var(--red);
  margin-bottom:36px; display:inline-flex; align-items:center; gap:14px;
}
.manifesto-label::before, .manifesto-label::after{ content:''; width:34px; height:1px; background:var(--red); }
.manifesto-text{
  font-family:var(--font-display); font-weight:300;
  font-size:clamp(24px,3.1vw,40px); line-height:1.5; color:var(--white); letter-spacing:0.01em;
}
.manifesto-text em{ color:var(--gold); font-style:normal; }
.manifesto-sign{ margin-top:54px; display:flex; flex-direction:column; align-items:center; gap:16px; }
.manifesto-name-zh{ font-family:var(--font-display); font-size:13px; letter-spacing:0.34em; color:var(--dim); }

/* ── Footer link / nav LinkedIn ── */
.footer-right{ display:flex; align-items:center; gap:24px; }
.footer-link{ font-size:11px; letter-spacing:0.14em; text-transform:uppercase; color:var(--gold); text-decoration:none; transition:color .25s; }
.footer-link:hover{ color:var(--white); }
.nav-linkedin{
  width:34px; height:34px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--border); color:var(--dim);
  transition:border-color .25s, color .25s; flex-shrink:0;
}
.nav-linkedin:hover{ border-color:var(--gold); color:var(--gold); }
.nav-linkedin svg{ width:15px; height:15px; fill:currentColor; }

@media(max-width:900px){
  #manifesto{ padding:84px 24px; }
  .manifesto-text{ font-size:22px; }
  .footer-right{ flex-direction:column; gap:16px; }
}

/* ══ CHINESE-MARKET FX ══ */
/* 水墨 · stroke-by-stroke calligraphy target (overlays the hero glyph on entrance) */
#hz-target{
  position:absolute; left:50%; top:0; transform:translateX(-50%);
  width:100%; line-height:0; opacity:0; pointer-events:none;
  transition:opacity .7s ease;
}
#hz-target svg{ display:block; margin:0 auto; overflow:visible; }

/* Ink-spread reveal (applied to titles/labels via JS so no-JS stays visible) */
.ink-reveal{
  opacity:0; filter:blur(7px); transform:translateY(10px);
  -webkit-mask-image:linear-gradient(100deg,#000 33%,rgba(0,0,0,0.4) 55%,transparent 72%);
  mask-image:linear-gradient(100deg,#000 33%,rgba(0,0,0,0.4) 55%,transparent 72%);
  -webkit-mask-size:280% 100%; mask-size:280% 100%;
  -webkit-mask-position:100% 0; mask-position:100% 0;
  transition:opacity 1s ease, filter 1s ease, transform 1s ease,
             -webkit-mask-position 1.2s cubic-bezier(.5,0,.1,1),
             mask-position 1.2s cubic-bezier(.5,0,.1,1);
}
.ink-reveal.shown{
  opacity:1; filter:blur(0); transform:none;
  -webkit-mask-position:0 0; mask-position:0 0;
}

/* Halo guiding the eye to the primary CTA */
@keyframes ctaPulse{
  0%,100%{ box-shadow:0 0 0 0 rgba(178,58,44,0); }
  50%{ box-shadow:0 0 26px 3px rgba(178,58,44,0.5); }
}
.hero-actions .btn-primary{ animation:ctaPulse 3.4s ease-in-out infinite; }
.hero-actions .btn-primary:hover{ animation:none; }

/* Cursor ink trail (desktop) */
.ink-trail{
  position:fixed; width:11px; height:11px; border-radius:50%;
  background:radial-gradient(circle, rgba(168,126,51,0.55), rgba(168,126,51,0) 70%);
  transform:translate(-50%,-50%) scale(1);
  opacity:0.55; pointer-events:none; z-index:99990; filter:blur(1px);
  transition:opacity .6s ease, transform .6s ease;
}
body.light .ink-trail{ background:radial-gradient(circle, rgba(126,29,43,0.4), transparent 70%); }

/* 自适应动效 · motion calms when scrolling fast */
.giant-char{ transition:opacity .45s ease, filter .45s ease; }
body.is-fast-scroll .giant-char{ opacity:0.32; filter:blur(1px); }
body.is-fast-scroll .ink-trail{ display:none; }
@media (prefers-reduced-motion: reduce){
  .hero-actions .btn-primary{ animation:none; }
  .ink-trail{ display:none; }
  .ink-reveal{ opacity:1; filter:none; transform:none;
    -webkit-mask-image:none; mask-image:none; }
}

