/* ============================================================
   Guo Jun International — global stylesheet
   ============================================================
   Design language: "Premium minimal" — black background, warm gold
   accents, off-white text. Inspired by family-office / private-bank
   collateral. Avoid pure white (#FFF) and pure gold (#FFD700) — both
   read as cheap on a dark theme.

   Architecture:
     1. CSS custom properties (configurable design tokens at top)
     2. Layout helpers (.wrap, .section*, .divider)
     3. Header / nav / mobile menu
     4. Hero (with emblem + skyline + grain layers)
     5. Typography (.h-display .h-1 .h-2 .h-3 .lede .label)
     6. Buttons & links
     7. Cards (.card .city-card .service-card .insight-card)
     8. Stats / Steps / Compare table
     9. Form fields
    10. CTA banner / Footer
    11. Article body (TOC, drop cap, blockquote)
    12. Polish layer (loader, scrollbar, hover sheen, etc.)
    13. Multi-lingual visibility rules
    14. Lang switch / picker / mobile lang grid
    15. Filter buttons (insights page)
    16. Mobile overrides (≤ 767px) and touch-device tweaks (pointer:coarse)

   To re-skin the brand:
     - Change the gold/ink/bone variables in :root below.
     - Swap the font import in <link href="…fonts.googleapis…"> on each HTML.
     - Update the SVG emblem in headers/footers + assets/favicon.svg.

   To add a new language:
     - See assets/script.js TRANSLATIONS + detectBrowserLang
     - Add `[data-lang="XX"] [data-zh] { display: none; }` below
     - Add the picker option to every HTML's <ul class="lang-picker-list">
   ============================================================ */

/* ---- design tokens ---------------------------------------- */
:root {
  --ink:        #0B0B0C;  /* primary background */
  --ink-2:      #14110C;  /* card fill (slightly warmer black) */
  --ink-3:      #0d0c0a;  /* alternating section background */
  --bone:       #F4F1EA;  /* primary text — never use #FFF */
  --gold:       #C9A961;  /* brand accent — used sparingly */
  --gold-deep:  #8C6E2B;  /* hover/borders for gold elements */
  --line:       #2A2A2B;  /* hairline separators, card borders */
  --mute:       #6B6B6E;  /* secondary text, captions */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.serif { font-family: 'Cormorant Garamond', 'Noto Serif SC', Georgia, serif; }
[data-lang="zh"] .serif { font-family: 'Noto Serif SC', 'Cormorant Garamond', serif; }

.label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

::selection { background: rgba(201, 169, 97, 0.35); color: var(--bone); }

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .wrap { padding: 0 48px; } }

.section      { padding: 96px 0; }
.section-lg   { padding: 128px 0; }
.section-xl   { padding: 144px 0; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--gold) 50%, var(--line) 80%, transparent);
  opacity: 0.5;
  max-width: 1280px;
  margin: 0 auto;
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 11, 12, 0.78);
  border-bottom: 1px solid rgba(42, 42, 43, 0.5);
}
.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 1024px) { .nav { padding: 18px 48px; } }

.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { transition: transform 0.7s ease; }
.brand:hover svg { transform: rotate(45deg); }
.brand-name {
  font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--bone);
  font-weight: 500;
}

.nav-links { display: none; gap: 32px; align-items: center; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 14px;
  color: rgba(244, 241, 234, 0.7);
  transition: color 0.3s;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

/* dropdown
   Dropdown sits flush against the trigger (top: 100%). The 14px visual gap is
   created by a TRANSPARENT top border that is still part of the dropdown's
   bounding box and therefore still hoverable — so the cursor can never leave
   .has-dropdown while traveling from trigger to menu items.
   background-clip: padding-box keeps the background from filling the
   transparent border area, preserving the visual gap.
*/
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 300px;
  background: rgba(13, 12, 10, 0.96);
  background-clip: padding-box;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-top: 14px solid transparent;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  pointer-events: none;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown a {
  display: block;
  padding: 12px 14px;
  font-size: 14px;
  color: rgba(244, 241, 234, 0.75);
  border-bottom: 1px solid rgba(42, 42, 43, 0.6);
  transition: color 0.25s, background 0.25s, padding-left 0.25s;
}
.dropdown a:last-child { border-bottom: 0; }
.dropdown a:hover { color: var(--gold); background: rgba(201, 169, 97, 0.05); padding-left: 18px; }
.dropdown a small { display: block; font-size: 11px; color: var(--mute); margin-top: 2px; letter-spacing: 0.04em; }

.lang-toggle {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 97, 0.3);
  background: transparent;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  font-family: inherit;
}
.lang-toggle:hover { background: rgba(201, 169, 97, 0.1); border-color: var(--gold); }

/* mobile menu legacy 3-tab switch (kept for the in-menu inline list) */
.lang-switch {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(201, 169, 97, 0.3);
  background: transparent;
}
.lang-switch button {
  background: transparent;
  border: 0;
  color: rgba(244, 241, 234, 0.55);
  font-family: 'Cormorant Garamond', 'Noto Serif SC', inherit;
  font-size: 13px;
  letter-spacing: 0.12em;
  padding: 6px 11px;
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
  border-right: 1px solid rgba(201, 169, 97, 0.18);
  line-height: 1.2;
}
.lang-switch button:last-child { border-right: 0; }
.lang-switch button:hover { color: var(--bone); }
.lang-switch button.is-active {
  color: var(--gold);
  background: rgba(201, 169, 97, 0.12);
}

/* ============================================================
   Searchable language picker (desktop nav)
   Trigger button → dropdown panel with search input + option list
   ============================================================ */
.lang-picker { position: relative; display: inline-flex; }

.lang-picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 97, 0.3);
  background: transparent;
  padding: 7px 12px 7px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  text-transform: uppercase;
}
.lang-picker-trigger:hover {
  background: rgba(201, 169, 97, 0.1);
  border-color: var(--gold);
}
.lang-picker-trigger svg {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 0.8;
}
.lang-picker.open .lang-picker-trigger {
  background: rgba(201, 169, 97, 0.12);
  border-color: var(--gold);
}
.lang-picker.open .lang-picker-trigger svg {
  transform: rotate(180deg);
}
.lang-picker-label {
  font-family: 'Cormorant Garamond', 'Noto Serif SC', inherit;
  font-size: 13px;
  letter-spacing: 0.18em;
  line-height: 1;
}

.lang-picker-panel {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 260px;
  margin-top: 8px;
  background: rgba(13, 12, 10, 0.97);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 0 var(--gold-deep), 0 30px 80px -40px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 60;
  pointer-events: none;
  /* invisible bridge to trigger to avoid hover/cursor gap */
}
.lang-picker.open .lang-picker-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-picker-search-wrap {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.lang-picker-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mute);
  pointer-events: none;
}
.lang-picker-search {
  width: 100%;
  padding: 14px 16px 14px 38px;
  border: 0;
  background: transparent;
  color: var(--bone);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.lang-picker-search::placeholder { color: var(--mute); }
.lang-picker-search:focus {
  outline: none;
  background: rgba(201, 169, 97, 0.04);
}
.lang-picker-search:focus + .lang-picker-search-icon,
.lang-picker-search-wrap:focus-within .lang-picker-search-icon {
  color: var(--gold);
}

.lang-picker-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 320px;
  overflow-y: auto;
}
.lang-picker-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(244, 241, 234, 0.75);
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
  user-select: none;
}
.lang-picker-option:hover {
  background: rgba(201, 169, 97, 0.06);
  color: var(--bone);
  padding-left: 24px;
}
.lang-picker-option.is-active {
  color: var(--gold);
}
.lang-picker-option.is-active .lang-picker-tag {
  color: var(--gold);
  opacity: 1;
}
.lang-picker-option .lang-picker-name {
  flex: 1;
  letter-spacing: 0.02em;
}
.lang-picker-option .lang-picker-tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--mute);
  text-transform: uppercase;
  font-family: 'Cormorant Garamond', 'Noto Serif SC', inherit;
}
.lang-picker-option[hidden] { display: none; }

.lang-picker-empty {
  padding: 24px 18px;
  font-size: 13px;
  color: var(--mute);
  text-align: center;
  letter-spacing: 0.05em;
}

/* Active option marker */
.lang-picker-option.is-active::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}
.lang-picker-option:not(.is-active)::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-right: 10px;
  flex-shrink: 0;
}

.menu-toggle {
  display: block;
  background: transparent;
  border: 0;
  color: var(--bone);
  cursor: pointer;
  padding: 4px;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--ink);
  z-index: 60;
  display: none;
  flex-direction: column;
  padding: 88px 32px 32px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
  font-size: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--bone);
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-close {
  position: absolute;
  top: 22px;
  right: 24px;
  background: transparent;
  border: 0;
  color: var(--bone);
  font-size: 24px;
  cursor: pointer;
}

/* ============================================================
   Hero shared
   ============================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 88px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 25%, rgba(201, 169, 97, 0.14) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 65%, rgba(201, 169, 97, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(140, 110, 43, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
.hero.compact { min-height: 60vh; }
.hero.simple { min-height: 50vh; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 169, 97, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 97, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.6;
  pointer-events: none;
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle at 70% 20%, rgba(201, 169, 97, 0.22), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 96px 0; }

.skyline-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background:
    linear-gradient(to top, var(--ink) 8%, rgba(11, 11, 12, 0.7) 60%, transparent),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 240' preserveAspectRatio='none'><g fill='%23C9A961' opacity='0.18'><rect x='40' y='160' width='28' height='80'/><rect x='75' y='130' width='40' height='110'/><polygon points='115,90 145,90 130,75'/><rect x='115' y='90' width='30' height='150'/><rect x='150' y='150' width='30' height='90'/><rect x='185' y='100' width='38' height='140'/><rect x='225' y='140' width='28' height='100'/><rect x='260' y='115' width='34' height='125'/><rect x='300' y='145' width='28' height='95'/><rect x='335' y='80' width='42' height='160'/><rect x='380' y='130' width='32' height='110'/><rect x='415' y='160' width='26' height='80'/><rect x='460' y='100' width='38' height='140'/><polygon points='498,80 528,80 513,65'/><rect x='498' y='80' width='30' height='160'/><rect x='535' y='140' width='28' height='100'/><rect x='570' y='110' width='36' height='130'/><rect x='615' y='145' width='30' height='95'/><rect x='655' y='95' width='40' height='145'/><rect x='700' y='130' width='30' height='110'/><rect x='735' y='155' width='28' height='85'/><rect x='775' y='75' width='44' height='165'/><rect x='825' y='120' width='32' height='120'/><rect x='865' y='150' width='28' height='90'/><rect x='905' y='105' width='36' height='135'/><polygon points='941,85 971,85 956,70'/><rect x='941' y='85' width='30' height='155'/><rect x='980' y='140' width='30' height='100'/><rect x='1020' y='115' width='34' height='125'/><rect x='1060' y='145' width='28' height='95'/><rect x='1100' y='90' width='42' height='150'/><rect x='1145' y='130' width='30' height='110'/><rect x='1180' y='160' width='26' height='80'/><rect x='1220' y='100' width='38' height='140'/><rect x='1265' y='135' width='32' height='105'/><rect x='1305' y='160' width='26' height='80'/><rect x='1340' y='110' width='38' height='130'/><polygon points='1378,90 1408,90 1393,75'/><rect x='1378' y='90' width='30' height='150'/><rect x='1415' y='145' width='28' height='95'/><rect x='1450' y='115' width='36' height='125'/><rect x='1495' y='150' width='30' height='90'/><rect x='1535' y='95' width='40' height='145'/></g></svg>");
  background-size: cover;
  background-position: bottom center;
  pointer-events: none;
}

/* ============================================================
   Typography helpers
   ============================================================ */
h1, h2, h3, h4 { font-weight: 300; line-height: 1.1; margin: 0; }

.h-display {
  font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
  font-size: clamp(2.5rem, 6vw, 6rem);
  letter-spacing: -0.01em;
}
.h-1 {
  font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
  font-size: clamp(2rem, 4.5vw, 4rem);
}
.h-2 {
  font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}
.h-3 {
  font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
  font-size: 1.5rem;
}
em.gold { color: var(--gold); font-style: normal; }

.lede {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: rgba(244, 241, 234, 0.7);
  font-weight: 300;
  line-height: 1.6;
  max-width: 640px;
}

/* ============================================================
   Buttons & links
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  border: 0;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--bone); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid rgba(201, 169, 97, 0.5); }
.btn-outline:hover { background: rgba(201, 169, 97, 0.1); border-color: var(--gold); }
.btn .arrow { transition: transform 0.3s; }
.btn:hover .arrow { transform: translateX(4px); }

.gold-link {
  position: relative;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
}
.gold-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.gold-link:hover::after { transform: scaleX(1); }

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--gold); opacity: 0.5; }

/* ============================================================
   Card patterns
   ============================================================ */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 40px;
  transition: border-color 0.4s, transform 0.4s, background 0.4s;
}
@media (min-width: 1024px) { .card { padding: 56px; } }
.card:hover { border-color: var(--gold-deep); }
.card-soft { background: rgba(20, 17, 12, 0.6); }

.grid-2 { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-2 > * { background: var(--ink); padding: 40px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2 > * { padding: 56px; } }

.grid-3 { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-3 > * { background: var(--ink); padding: 40px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-3 > * { padding: 48px; } }

.grid-cards { display: grid; gap: 24px; }
@media (min-width: 768px) { .grid-cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .grid-cards.cols-2 { grid-template-columns: repeat(2, 1fr); } }

/* City card */
.city-card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.5s, transform 0.5s;
}
.city-card:hover { border-color: var(--gold-deep); transform: translateY(-3px); }
.city-img {
  aspect-ratio: 4 / 3;
  background-color: #1a1610;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.35) brightness(0.65) sepia(0.25) contrast(1.05);
  transition: filter 0.7s, transform 0.9s;
}
.city-card:hover .city-img {
  filter: grayscale(0.15) brightness(0.85) sepia(0.3) contrast(1.1);
  transform: scale(1.04);
}
.city-card .body { padding: 32px; }

/* Service card on home */
.service-card {
  display: block;
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 48px;
  transition: border-color 0.5s, transform 0.5s, background 0.5s;
  overflow: hidden;
}
@media (min-width: 1024px) { .service-card { padding: 64px; } }
.service-card:hover { border-color: var(--gold-deep); background: #16130d; transform: translateY(-2px); }
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at top right, rgba(201, 169, 97, 0.15), transparent 70%);
  pointer-events: none;
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div { background: var(--ink); padding: 40px 28px; text-align: center; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.6);
}

/* Insight / article cards */
.insight-card {
  display: block;
  background: var(--ink-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.5s, transform 0.5s;
}
.insight-card:hover { border-color: var(--gold-deep); transform: translateY(-3px); }
.insight-cover {
  aspect-ratio: 16 / 9;
  background-color: #1a1610;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.4) brightness(0.7) sepia(0.2);
  position: relative;
}
.insight-cover .cat {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(11, 11, 12, 0.85);
  color: var(--gold);
  padding: 6px 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.insight-card .body { padding: 28px; }
.insight-card .meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 14px;
  display: flex;
  gap: 14px;
}
.insight-card h3 {
  font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
  font-size: 1.4rem;
  margin-bottom: 14px;
  line-height: 1.25;
  color: var(--bone);
  transition: color 0.3s;
}
.insight-card:hover h3 { color: var(--gold); }
.insight-card .excerpt { color: rgba(244, 241, 234, 0.6); font-size: 14px; line-height: 1.6; }

/* List dots */
.list-gold { list-style: none; padding: 0; margin: 0; }
.list-gold li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 14px;
  color: rgba(244, 241, 234, 0.65);
  line-height: 1.6;
}
.list-gold li::before {
  content: '◆';
  color: var(--gold);
  font-size: 8px;
  margin-top: 8px;
  flex-shrink: 0;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
  font-size: 1.35rem;
  color: var(--bone);
  transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--gold); }
.faq-item .answer {
  margin-top: 16px;
  color: rgba(244, 241, 234, 0.65);
  font-size: 15px;
  line-height: 1.7;
  max-width: 720px;
}

/* Process steps */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 0; }
.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  font-weight: 300;
  min-width: 60px;
}
.step-body h4 {
  font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.step-body p {
  color: rgba(244, 241, 234, 0.6);
  font-size: 14px;
  line-height: 1.7;
  max-width: 640px;
  margin: 0;
}

/* Comparison table */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare th, .compare td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare thead th {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  border-bottom: 1px solid var(--gold-deep);
}
.compare td:first-child { color: var(--bone); font-weight: 500; }
.compare tbody tr:hover { background: rgba(201, 169, 97, 0.04); }

/* Form */
.field {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  color: var(--bone);
  transition: border-color 0.3s;
  font-family: inherit;
  /* 16px min on mobile prevents iOS Safari from auto-zooming on tap-to-focus.
     Desktop uses the originally-designed 15px via the media-query override. */
  font-size: 16px;
}
@media (min-width: 768px) {
  .field { font-size: 15px; }
}
.field:focus { outline: none; border-bottom-color: var(--gold); }
.field::placeholder { color: var(--mute); }
textarea.field { resize: none; }

/* CTA banner */
.cta-banner {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201, 169, 97, 0.15), transparent 50%),
    var(--ink-2);
  border: 1px solid var(--line);
  padding: 64px 40px;
  text-align: center;
}
@media (min-width: 1024px) { .cta-banner { padding: 96px 64px; } }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Fade in load */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.30s; }
.delay-3 { animation-delay: 0.45s; }

/* Multi-lingual swap.
   - When in a Chinese variant (zh/tw): hide [data-en], show [data-zh].
     (TW reuses [data-zh] content, converted at runtime via OpenCC.)
   - In any other language (en, es, pt, ja, ko, de, fr...): hide [data-zh],
     show [data-en]. JS replaces [data-en] text with the language-specific
     translation from a dictionary; if a string is not in the dictionary,
     English remains visible (graceful fallback). */
[data-lang="zh"] [data-en],
[data-lang="tw"] [data-en] { display: none; }
[data-lang="en"] [data-zh],
[data-lang="es"] [data-zh],
[data-lang="pt"] [data-zh],
[data-lang="ja"] [data-zh],
[data-lang="ko"] [data-zh],
[data-lang="de"] [data-zh],
[data-lang="fr"] [data-zh] { display: none; }

/* Traditional Chinese gets a different serif (TC variant) when fonts are loaded */
[data-lang="tw"] .serif,
[data-lang="tw"] .h-display,
[data-lang="tw"] .h-1,
[data-lang="tw"] .h-2,
[data-lang="tw"] .h-3 {
  font-family: 'Noto Serif TC', 'Cormorant Garamond', 'Noto Serif SC', Georgia, serif;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  background: var(--ink);
}
.footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  margin-bottom: 64px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-col h5 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(244, 241, 234, 0.55);
  padding: 6px 0;
  transition: color 0.3s, padding-left 0.3s;
}
.footer-col a:hover { color: var(--gold); padding-left: 4px; }
.footer-col p { color: rgba(244, 241, 234, 0.5); font-size: 13px; line-height: 1.7; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 12px;
  color: var(--mute);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-bottom .legal { font-size: 11px; line-height: 1.7; max-width: 720px; color: rgba(107, 107, 110, 0.8); }

/* Newsletter */
.newsletter {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  max-width: 480px;
  transition: border-color 0.3s;
}
.newsletter:focus-within { border-bottom-color: var(--gold); }
.newsletter input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 14px 0;
  color: var(--bone);
  font-family: inherit;
  font-size: 15px;
}
.newsletter input:focus { outline: none; }
.newsletter button {
  background: transparent;
  border: 0;
  color: var(--gold);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 16px;
  transition: color 0.3s;
}
.newsletter button:hover { color: var(--bone); }

/* Article body */
.article-body { max-width: 760px; margin: 0 auto; }
.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote { font-size: 17px; line-height: 1.8; color: rgba(244, 241, 234, 0.85); margin-bottom: 24px; }
.article-body h2 {
  font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
  font-size: 2rem;
  margin: 48px 0 20px;
  color: var(--bone);
}
.article-body h3 {
  font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
  font-size: 1.4rem;
  margin: 36px 0 16px;
  color: var(--bone);
}
.article-body blockquote {
  border-left: 2px solid var(--gold);
  padding: 8px 0 8px 24px;
  font-style: italic;
  color: rgba(244, 241, 234, 0.7);
  margin: 32px 0;
}
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--bone); font-weight: 500; }
.article-body a { color: var(--gold); border-bottom: 1px solid rgba(201, 169, 97, 0.3); }
.article-body a:hover { border-bottom-color: var(--gold); }

/* TOC */
.toc {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 28px;
  margin: 32px 0;
}
.toc-title {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; padding: 8px 0; border-bottom: 1px dashed rgba(42, 42, 43, 0.5); }
.toc li:last-child { border-bottom: 0; }
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--gold);
  margin-right: 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.toc a { color: rgba(244, 241, 234, 0.75); font-size: 14px; transition: color 0.3s; }
.toc a:hover { color: var(--gold); }

/* Vertical line decoration */
.vline {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  margin: 0 auto;
}

/* Utilities */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; } .mt-8 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-4 { margin-bottom: 32px; } .mb-6 { margin-bottom: 48px; } .mb-8 { margin-bottom: 64px; }
.text-center { text-align: center; }
.muted { color: rgba(244, 241, 234, 0.55); }
.tight { max-width: 760px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ============================================================
   POLISH PASS — premium feel enhancements
   ============================================================ */

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-deep), #5a4517);
  border: 2px solid var(--ink);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Page-load brand reveal */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 28px;
  pointer-events: none;
  animation: loaderFadeOut 0.8s 1.4s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
.page-loader .emblem {
  width: 56px;
  height: 56px;
  animation: emblemDraw 1.4s cubic-bezier(0.6, 0, 0.3, 1);
}
.page-loader .emblem circle,
.page-loader .emblem path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawStroke 1.2s 0.2s cubic-bezier(0.6, 0, 0.3, 1) forwards;
}
.page-loader .emblem path { animation-delay: 0.5s; }
.page-loader .emblem .center {
  opacity: 0;
  animation: dotIn 0.4s 1s cubic-bezier(0.6, 0, 0.3, 1) forwards;
}
.page-loader .word {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.12em;
  font-size: 13px;
  color: var(--gold);
  opacity: 0;
  animation: dotIn 0.6s 1.2s ease forwards;
}
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
@keyframes dotIn { to { opacity: 1; } }
@keyframes loaderFadeOut {
  to { opacity: 0; visibility: hidden; }
}

/* Brand emblem subtle pulse */
@keyframes emblemPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(201, 169, 97, 0)); }
  50%      { filter: drop-shadow(0 0 8px rgba(201, 169, 97, 0.45)); }
}
.brand svg circle:last-of-type { animation: emblemPulse 4s ease-in-out infinite; }

/* Hero — orbital ring decoration */
.hero::before {
  content: '';
  position: absolute;
  width: min(80vw, 900px);
  height: min(80vw, 900px);
  border: 1px solid rgba(201, 169, 97, 0.08);
  border-radius: 50%;
  top: 50%;
  right: -20%;
  transform: translateY(-50%);
  pointer-events: none;
  animation: orbitDrift 30s linear infinite;
}
.hero::after {
  content: '';
  position: absolute;
  width: min(50vw, 560px);
  height: min(50vw, 560px);
  border: 1px solid rgba(201, 169, 97, 0.05);
  border-radius: 50%;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  pointer-events: none;
  animation: orbitDrift 45s linear infinite reverse;
}
@keyframes orbitDrift {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

/* Cursor-follow glow on hero */
.hero-spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(201, 169, 97, 0.10), transparent 30%);
  transition: background 0.4s ease;
  z-index: 1;
}

/* Decorative hero geometric mark — kept clear of headline area */
.hero-emblem {
  position: absolute;
  right: 4vw;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(160px, 18vw, 280px);
  height: clamp(160px, 18vw, 280px);
  opacity: 0.4;
  pointer-events: none;
  animation: rotateSlow 60s linear infinite;
}
@keyframes rotateSlow {
  to { transform: translateY(-50%) rotate(360deg); }
}
/* hide on screens where headline width could collide with the emblem */
@media (max-width: 1279px) { .hero-emblem { display: none; } }

/* Better card lifting hover */
.card, .city-card, .insight-card, .service-card {
  position: relative;
  isolation: isolate;
}
.card::before,
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 2;
}
.card:hover::before,
.service-card:hover::before {
  width: 100%;
}

/* Soft gold halo for hero CTA */
.btn-gold {
  position: relative;
  isolation: isolate;
}
.btn-gold::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 240, 200, 0.4), transparent 70%);
  background-size: 200% 100%;
  background-position: -100% 0;
  z-index: -1;
  pointer-events: none;
  transition: background-position 0.7s ease;
}
.btn-gold:hover::after {
  background-position: 200% 0;
}

/* Article body — drop cap on first paragraph (English only — Chinese first
   characters render too heavy at 4.2rem with float) */
[data-lang="en"] .article-body > p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.2rem;
  font-weight: 400;
  float: left;
  line-height: 0.9;
  margin: 6px 14px 0 0;
  color: var(--gold);
}

/* Selection-style refined */
.article-body p::selection,
.article-body li::selection,
.article-body h2::selection,
.article-body h3::selection { background: rgba(201, 169, 97, 0.25); }

/* Gold dot bullet refinement */
.list-gold li::before {
  display: inline-block;
  transform: translateY(0);
  transition: transform 0.4s ease, color 0.4s ease;
}
.list-gold li:hover::before {
  transform: translateY(-2px) scale(1.3);
}

/* Removed global .label::before — was too noisy on small/inline labels.
   Use .label-rule for opt-in section labels with the gold rule prefix. */
.label-rule::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 10px;
  opacity: 0.7;
}

/* Headline emphasis treatment */
em.gold {
  position: relative;
  background: linear-gradient(180deg, transparent 70%, rgba(201, 169, 97, 0.18) 70%);
  padding: 0 4px;
  margin: 0 -2px;
}

/* Stat numbers count animation prep */
.stat-num {
  background: linear-gradient(180deg, #E2C580, #C9A961 50%, #8C6E2B);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.stat-num::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

/* Insight cover gradient depth */
.insight-cover {
  position: relative;
}
.insight-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11, 11, 12, 0.5));
  pointer-events: none;
}

/* Section spacing rhythm — refined */
@media (min-width: 1024px) {
  .section-lg { padding: 160px 0; }
  .section-xl { padding: 200px 0; }
}

/* Smooth focus rings */
*:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}
button:focus-visible, a:focus-visible {
  outline-offset: 6px;
}

/* Form polish */
.field { font-weight: 300; letter-spacing: 0.01em; }
.field:focus { padding-left: 8px; transition: border-color 0.3s, padding-left 0.3s; }

/* Subtle card glow on hover for premium feel */
.card { transition: border-color 0.5s, transform 0.5s, background 0.5s, box-shadow 0.7s; }
.card:hover {
  box-shadow: 0 30px 80px -40px rgba(201, 169, 97, 0.15), inset 0 0 0 1px rgba(201, 169, 97, 0.05);
}
.service-card { transition: border-color 0.5s, transform 0.5s, background 0.5s, box-shadow 0.7s; }
.service-card:hover {
  box-shadow: 0 40px 100px -50px rgba(201, 169, 97, 0.2), inset 0 0 0 1px rgba(201, 169, 97, 0.08);
}

/* Header — subtle gold hairline appears on scroll */
.site-header.scrolled {
  background: rgba(8, 8, 9, 0.92);
  border-bottom-color: rgba(201, 169, 97, 0.18);
}

/* Fancy quote */
.article-body blockquote {
  position: relative;
  background: linear-gradient(90deg, rgba(201, 169, 97, 0.04), transparent);
  padding: 20px 24px;
  font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
  font-size: 1.4rem;
  line-height: 1.5;
}
.article-body blockquote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
}

/* Gold gradient divider deluxe */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.2) 30%, var(--gold) 50%, rgba(201, 169, 97, 0.2) 70%, transparent);
  position: relative;
}
.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateY(-50%);
}
.divider::before { left: calc(50% - 60px); }
.divider::after { left: calc(50% + 56px); }

/* Reveal — staggered children */
.reveal.in > * { animation-fill-mode: backwards; }

/* CTA banner — gold corner accents */
.cta-banner {
  position: relative;
  isolation: isolate;
}
.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid var(--gold);
  opacity: 0.4;
}
.cta-banner::before { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.cta-banner::after { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }

/* Mobile menu — gold accent line */
.mobile-menu {
  background:
    radial-gradient(ellipse at top right, rgba(201,169,97,0.08), transparent 50%),
    var(--ink);
}
.mobile-menu a {
  position: relative;
  transition: color 0.3s, padding-left 0.3s;
}
.mobile-menu a:hover { padding-left: 12px; }
.mobile-menu a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.mobile-menu a:hover::before { width: 8px; }

/* "By appointment only" decorative seal element (optional decorative) */
.seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-deep);
  padding: 8px 14px;
  border-radius: 24px;
}
.seal::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* Better breadcrumb home dot */
.breadcrumb a:first-child::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--gold);
  margin-right: 8px;
  vertical-align: middle;
}

/* Refined dropdown — gold accent rendered as inset box-shadow at the top of
   the padding-box, so it sits below the 14px transparent hover-bridge border. */
.dropdown {
  box-shadow: inset 0 1px 0 0 var(--gold-deep);
}

/* Number stat hover glint */
.stats > div { transition: background 0.4s; position: relative; overflow: hidden; }
.stats > div::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.06), transparent);
  transition: left 0.8s ease;
}
.stats > div:hover::after { left: 100%; }

/* Mark images that fail to load with subtle gradient fallback */
.city-img, .insight-cover {
  background-color: #14110C;
  background-image: linear-gradient(135deg, #1a1610 0%, #0d0c0a 100%);
}

/* Lazy-loaded background images: skeleton shimmer until JS swaps the URL in */
[data-bg]:not(.bg-loaded) {
  background-color: #14110C;
  background-image: linear-gradient(135deg, #1a1610 0%, #0d0c0a 100%);
  position: relative;
}
[data-bg]:not(.bg-loaded)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 169, 97, 0.04),
    transparent
  );
  animation: bgShimmer 1.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bgShimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
/* Smooth fade-in once the real image arrives */
[data-bg].bg-loaded {
  animation: bgFadeIn 0.6s ease-out;
}
[data-bg].bg-loaded::after { display: none; }
@keyframes bgFadeIn {
  from { opacity: 0.6; }
  to   { opacity: 1;   }
}

/* Print-friendly */
@media print {
  .site-header, .site-footer, .skyline-strip, .hero-grid, .hero-grain, .hero-glow, .hero::before, .hero::after, .hero-emblem, .page-loader, .cookie-consent { display: none !important; }
  body { background: white; color: black; }
}

/* ============================================================
   Cookie + Terms + Privacy consent banner.
   Full-width bottom bar (modeled after airline / regulated-industry
   banners — United, Lufthansa, etc.). Shown on every new browser
   session (sessionStorage flag) so visitors can re-acknowledge each
   visit. Once dismissed in a session, won't reappear until tab close.
   Behavior wired in assets/script.js (search "cookie-consent").
   ============================================================ */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 11, 12, 0.96);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border-top: 1px solid var(--gold-deep);
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, 0.5);
  padding: 18px 24px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.cookie-consent.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-consent .cc-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-consent .cc-text {
  flex: 1 1 320px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 241, 234, 0.85);
}
.cookie-consent .cc-text a {
  color: var(--gold);
  border-bottom: 1px solid rgba(201, 169, 97, 0.4);
  white-space: nowrap;
}
.cookie-consent .cc-text a:hover { border-bottom-color: var(--gold); }
.cookie-consent .cc-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-consent button {
  padding: 11px 22px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid rgba(201, 169, 97, 0.4);
  background: transparent;
  color: rgba(244, 241, 234, 0.85);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.cookie-consent button:hover {
  background: rgba(201, 169, 97, 0.08);
  border-color: var(--gold);
  color: var(--bone);
}
.cookie-consent button.cc-accept {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.cookie-consent button.cc-accept:hover {
  background: var(--bone);
  color: var(--ink);
}

@media (max-width: 768px) {
  .cookie-consent { padding: 14px 18px; max-height: 60vh; overflow-y: auto; }
  .cookie-consent .cc-inner { gap: 14px; flex-direction: column; align-items: stretch; }
  .cookie-consent .cc-text { font-size: 13px; flex: 1 1 auto; }
  .cookie-consent .cc-actions { width: 100%; }
  .cookie-consent button { flex: 1; padding: 11px 12px; font-size: 10px; letter-spacing: 0.15em; }
}

/* "Manage cookies" footer link — must look identical to footer <a> tags.
   We use a real <button> for accessibility (it's an action, not navigation),
   but every browser default has to be force-reset to match the link style. */
.cookie-relink {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
  color: rgba(244, 241, 234, 0.55);
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 14px;
  letter-spacing: inherit;
  margin: 0;
  padding: 6px 0;
  text-align: left;
  text-transform: none;
  width: 100%;
  line-height: inherit;
  transition: color 0.3s, padding-left 0.3s;
}
.cookie-relink:hover { color: var(--gold); padding-left: 4px; }
.cookie-relink:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

/* Page-specific 2-col grids (lifted out of inline <style> tags in HTML) */
@media (min-width: 768px) {
  .featured-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr !important; }
}

/* About page office cards — narrow column with label, wide column with body.
   Stacks on mobile for readability. */
.office-row {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 768px) {
  .office-row { grid-template-columns: 1fr 2fr; }
}

/* Mobile menu language switcher — expanded to all 9 languages, wraps to grid */
.lang-switch-mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-self: stretch;
  margin-top: 32px;
}
.lang-switch-mobile button {
  min-width: 56px;
  padding: 10px 14px;
  border: 1px solid rgba(201, 169, 97, 0.18);
  margin: -1px 0 0 -1px;
  background: transparent;
  color: rgba(244, 241, 234, 0.55);
  font-family: 'Cormorant Garamond', 'Noto Serif SC', inherit;
  font-size: 14px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
  line-height: 1.2;
}
.lang-switch-mobile button:hover { color: var(--bone); background: rgba(201, 169, 97, 0.06); }
.lang-switch-mobile button.is-active {
  color: var(--gold);
  background: rgba(201, 169, 97, 0.14);
  border-color: var(--gold-deep);
}

/* ============================================================
   MOBILE OVERRIDES (≤ 767px)
   Compress padding, scale typography, ensure touch-friendly targets.
   ============================================================ */
@media (max-width: 767px) {
  /* compress section rhythm */
  .section    { padding: 64px 0; }
  .section-lg { padding: 80px 0; }
  .section-xl { padding: 96px 0; }

  /* hero — less padding on top, smaller min-height */
  .hero { min-height: 78vh; padding-top: 72px; }
  .hero.compact { min-height: 56vh; }
  .hero.simple  { min-height: 44vh; }
  .hero-inner   { padding: 48px 0; }

  /* card paddings tighter */
  .card                       { padding: 28px; }
  @media (min-width: 1024px)  { .card { padding: 56px; } }
  .service-card               { padding: 32px; }
  .grid-2 > *                 { padding: 32px; }
  .grid-3 > *                 { padding: 28px; }

  /* CTA banner more compact */
  .cta-banner { padding: 48px 24px; }

  /* article body smaller */
  .article-body p,
  .article-body ul,
  .article-body ol,
  .article-body blockquote { font-size: 16px; line-height: 1.75; }
  .article-body h2 { font-size: 1.65rem; margin: 36px 0 16px; }
  .article-body h3 { font-size: 1.2rem; margin: 28px 0 12px; }

  /* drop cap reduce — 4.2rem too heavy on phones */
  [data-lang="en"] .article-body > p:first-of-type::first-letter {
    font-size: 2.8rem;
    margin: 2px 10px 0 0;
  }

  /* lede paragraph smaller */
  .lede { font-size: 1rem; line-height: 1.55; }

  /* footer compress */
  .site-footer { padding: 56px 0 32px; }
  .footer-grid { gap: 36px; margin-bottom: 40px; }

  /* ensure lang-picker dropdown is reachable when used inline (defensive) */
  .lang-picker-panel {
    right: 0;
    min-width: min(280px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }

  /* TOC less padding */
  .toc { padding: 22px; }
  .toc li { padding: 6px 0; }

  /* stat number smaller */
  .stat-num { font-size: 2.2rem; }
  .stats > div { padding: 28px 16px; }

  /* steps tighter */
  .step { gap: 18px; padding: 24px 0; }
  .step-num { font-size: 2rem; min-width: 48px; }

  /* compare table → easier scroll on mobile */
  .compare th, .compare td { padding: 12px 14px; font-size: 13px; }

  /* breadcrumb smaller (where still used) */
  .breadcrumb { font-size: 10px; gap: 8px; }

  /* mobile menu items: a touch larger to feel friendlier */
  .mobile-menu a { font-size: 22px; padding: 14px 0; }
}

/* Tap-friendly minimum on touch devices: enlarge small buttons */
@media (hover: none) and (pointer: coarse) {
  .lang-picker-trigger { padding: 10px 14px 10px 16px; }
  .lang-picker-option  { padding: 14px 18px; }
  .nav-links a         { padding: 10px 0; }
  .gold-link           { padding: 6px 0; }
}

/* Disabled / coming-soon insight cards — no pointer cursor, gentler look */
.insight-card.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: default;
}
.insight-card.disabled h3::after {
  content: '';
}

/* "Coming soon" badge — top-right corner of placeholder card covers.
   Pairs with .insight-card.disabled to make it unambiguous that the
   card is a future article, not a broken link. */
.insight-card .cat-soon {
  display: none;
}
.insight-card.disabled .cat-soon {
  display: inline-block;
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(201, 169, 97, 0.15);
  border: 1px solid var(--gold-deep);
  color: var(--gold);
  padding: 5px 10px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 2;
}
.insight-card.disabled .insight-cover {
  position: relative;
}

/* Share buttons in article footers — hover feedback so they don't look dead. */
[data-share] {
  transition: color 0.3s, padding-left 0.3s;
}
[data-share]:hover {
  color: var(--gold) !important;
}

/* Floating toast for clipboard-copy / share feedback. */
.share-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 24px;
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.share-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Insights filter buttons — client-side category filter on insights.html.
   Behavior wired in assets/script.js (search "data-filter"). */
.filter-btn {
  background: transparent;
  border: 0;
  padding: 6px 0;
  font-family: inherit;
  font-size: 13px;
  color: rgba(244, 241, 234, 0.55);
  cursor: pointer;
  transition: color 0.25s;
  position: relative;
}
.filter-btn:hover { color: var(--bone); }
.filter-btn.is-active { color: var(--gold); }
.filter-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}
