/* ===================== AIVOS — Luxury dark ===================== */
:root {
  --bg: #0a0807;
  --bg-2: #120d0a;
  --ink: #f4ece6;
  --muted: #a1938a;
  --line: rgba(224, 168, 137, 0.14);

  --rose-1: #f6dccb;
  --rose-2: #e0a889;
  --rose-3: #c4826a;
  --copper: #b87333;
  --gold-grad: linear-gradient(120deg, #f6dccb 0%, #e0a889 38%, #c4826a 68%, #b87333 100%);

  --font-serif: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --font-sans: "Inter", "Noto Serif SC", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
:root[lang="zh"] { --font-serif: "Noto Serif SC", "Cormorant Garamond", serif; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 50% -8%, rgba(196, 130, 106, 0.20), transparent 70%),
    radial-gradient(50% 40% at 88% 108%, rgba(184, 115, 51, 0.14), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

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

.accent {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
:root[lang="zh"] .accent { font-style: normal; }

/* ===================== Header ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 64px);
  background: linear-gradient(180deg, rgba(10, 8, 7, 0.86), rgba(10, 8, 7, 0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(196, 130, 106, 0.4)); }
.brand-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 23px; font-weight: 600;
  letter-spacing: 0.32em; padding-left: 0.32em;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 0; position: relative;
  transition: color 0.4s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold-grad);
  transition: width 0.4s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }

.lang { display: flex; align-items: center; gap: 7px; margin-left: 6px; }
.lang-btn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-family: var(--font-sans);
  font-size: 12px; letter-spacing: 0.1em; padding: 2px;
  transition: color 0.3s var(--ease);
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active { color: var(--rose-1); font-weight: 500; }
.lang-sep { color: rgba(161, 147, 138, 0.4); font-size: 11px; }

.nav-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 1.5px; background: var(--rose-1); transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }

/* ===================== Reveal on scroll ===================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===================== Hero ===================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
}
.hero-glow {
  position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%);
  width: min(680px, 90vw); height: min(680px, 90vw);
  background: radial-gradient(circle, rgba(224, 168, 137, 0.16), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.hero-mark {
  width: clamp(92px, 14vw, 144px); height: auto; margin-bottom: 32px;
  filter: drop-shadow(0 10px 40px rgba(196, 130, 106, 0.45));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.eyebrow {
  font-size: 12px; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--rose-3); padding-left: 0.5em; margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(33px, 6vw, 70px); line-height: 1.08; letter-spacing: 0.01em;
}
.hero-sub { margin-top: 22px; color: var(--muted); font-size: clamp(13px, 1.8vw, 16px); letter-spacing: 0.12em; }
.hero-intro {
  margin: 15px auto 0; max-width: 560px; color: var(--muted);
  font-size: clamp(12.5px, 1.35vw, 14.5px); line-height: 1.6; opacity: 0.9;
}
.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 54px; background: linear-gradient(var(--rose-3), transparent); overflow: hidden;
}
.scroll-hint::after {
  content: ""; position: absolute; top: -54px; left: 0; width: 1px; height: 54px;
  background: linear-gradient(transparent, var(--rose-1)); animation: scrollDot 2.4s var(--ease) infinite;
}
@keyframes scrollDot { to { top: 108px; } }

/* ===================== Section shared ===================== */
.section-eyebrow {
  font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--rose-3); text-align: center; margin-bottom: 20px; padding-left: 0.34em;
}

/* ===================== Trust / marquees ===================== */
.trust { max-width: 1100px; margin: 0 auto; padding: 60px 0 70px; display: flex; flex-direction: column; gap: 52px; }
.trust-block { text-align: center; }
.trust-label {
  font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 26px; padding-left: 0.34em;
}
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: clamp(46px, 8vw, 92px); width: max-content; animation: scrollX var(--dur, 34s) linear infinite; }
.marquee[data-reverse="true"] .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.logo img {
  height: clamp(28px, 4vw, 40px); width: auto; max-width: 150px; object-fit: contain;
  opacity: 0.6; transition: opacity 0.4s var(--ease);
}
.logo:hover img { opacity: 1; }

/* ===================== Global reach / world map ===================== */
.reach { max-width: 1080px; margin: 0 auto; padding: 70px 24px 110px; border-top: 1px solid var(--line); }
.reach-text {
  font-family: var(--font-serif); text-align: center;
  font-size: clamp(19px, 3vw, 31px); font-weight: 500; line-height: 1.3;
  max-width: 680px; margin: 0 auto 40px;
}
.reach-text .accent { font-size: 1.12em; }
.worldmap { max-width: 980px; margin: 0 auto; }
.worldmap-inner {
  position: relative; width: 100%; aspect-ratio: 1500 / 580;
  background: url("assets/map/world-dots.png") center / contain no-repeat;
}
.pin { position: absolute; transform: translate(-50%, -50%); width: 0; height: 0; }
.pin i {
  position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--rose-1); box-shadow: 0 0 10px 2px rgba(246, 220, 203, 0.7);
}
.pin i::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid rgba(246, 220, 203, 0.55); animation: ping 2.6s ease-out infinite;
}
.pin:nth-child(2n) i::before { animation-delay: 0.9s; }
.pin:nth-child(3n) i::before { animation-delay: 1.7s; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(3.2); opacity: 0; } }
.pin-label {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%) translateY(4px);
  font-style: normal; white-space: nowrap; font-size: 11px; letter-spacing: 0.06em;
  color: var(--rose-1); background: rgba(10, 8, 7, 0.9); border: 1px solid var(--line);
  padding: 4px 9px; border-radius: 6px; opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.pin:hover { z-index: 5; }
.pin:hover .pin-label { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===================== Service sections ===================== */
.service {
  min-height: 78vh; display: flex; align-items: center; justify-content: center;
  padding: 96px 24px; text-align: center; border-top: 1px solid var(--line);
}
.service-inner { max-width: 620px; }
.service-title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(32px, 5.4vw, 60px); line-height: 1.05; margin: 16px 0 22px;
}
.service-sub {
  color: var(--muted); font-size: clamp(14px, 1.8vw, 16.5px); line-height: 1.7;
  max-width: 480px; margin: 0 auto 36px;
}
.cta {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  color: var(--bg); font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 16px 38px; border-radius: 999px; background: var(--gold-grad); background-size: 160% 160%;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-position 0.6s var(--ease);
  box-shadow: 0 10px 34px rgba(196, 130, 106, 0.28);
}
.cta:hover { transform: translateY(-3px); background-position: 100% 0; box-shadow: 0 16px 44px rgba(196, 130, 106, 0.42); }
.cta-arrow { transition: transform 0.4s var(--ease); }
.cta:hover .cta-arrow { transform: translateX(5px); }

/* ===================== Website showcase ===================== */
.has-showcase { flex-direction: column; min-height: auto; padding: 100px 0 80px; gap: 46px; }
.has-showcase .service-inner { padding: 0 24px; }
.showcase { width: 100%; }
.web .marquee-track { gap: 16px; }

/* ===================== Thumbnails (website + community) ===================== */
.community { padding: 24px 0 80px; text-align: center; }
.gallery { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.gallery .marquee-track { gap: 14px; }
.shot {
  position: relative; display: block; height: clamp(90px, 12vw, 132px);
  border-radius: 9px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.shot img {
  height: 100%; width: auto; display: block; object-fit: cover;
  filter: saturate(0.62) brightness(0.86) contrast(1.02);
  transition: filter 0.6s var(--ease);
}
/* warm dark veil to blend every thumbnail into the brand palette */
.shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(155deg, rgba(184, 115, 51, 0.22), rgba(10, 8, 7, 0.62));
  mix-blend-mode: multiply; opacity: 1; transition: opacity 0.6s var(--ease);
}
.shot:hover img { filter: none; }
.shot:hover::after { opacity: 0; }

/* ===================== Contact / company (compact, bottom corner) ===================== */
.contact {
  max-width: 1180px; margin: 0 auto; padding: 48px clamp(20px, 5vw, 64px) 10px;
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid; grid-template-columns: auto auto; justify-content: start;
  gap: 22px clamp(40px, 7vw, 100px); margin: 0;
}
.contact-label {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--rose-3); margin-bottom: 12px; padding-left: 0.3em;
}
.contact-line {
  display: flex; gap: 12px; padding: 6px 0; text-decoration: none;
  border-bottom: 1px solid rgba(224, 168, 137, 0.07); align-items: baseline;
}
a.contact-line { transition: border-color 0.35s var(--ease); }
a.contact-line:hover { border-color: rgba(224, 168, 137, 0.35); }
.contact-key {
  flex: 0 0 92px; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted);
}
.contact-val { color: var(--ink); font-size: 12.5px; font-weight: 400; }
a.contact-line:hover .contact-val { color: var(--rose-1); }

/* ===================== Footer ===================== */
.site-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 28px clamp(20px, 5vw, 64px); border-top: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.1em; color: var(--muted);
}
.footer-tag { font-family: var(--font-serif); font-style: italic; font-size: 15px; color: var(--rose-3); }
:root[lang="zh"] .footer-tag { font-style: normal; }

/* ===================== Responsive ===================== */
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
    background: rgba(10, 8, 7, 0.97); backdrop-filter: blur(14px);
    transform: translateX(100%); transition: transform 0.5s var(--ease);
  }
  .nav.is-open { transform: translateX(0); }
  .nav-link { font-size: 18px; }
  .lang { margin-left: 0; }
  .nav-toggle { display: flex; z-index: 101; }
  .nav-toggle.is-open span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle.is-open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .footer-tag { display: none; }
  .pin-label { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-key { flex: 0 0 108px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-mark, .scroll-hint::after, .pin i::before { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
