/* ============================================================
   JM ENIGMA · 天盛集团 — corporate site
   Fusion direction: cinematic full-bleed (Majoris) +
   editorial image/text rows (Hysan / GAW Capital).
   Deep navy + gold, real photography throughout.
   ============================================================ */

:root {
  --navy: #16233b;
  --navy-deep: #0e1626;
  --navy-soft: #1d2c46;
  --cream: #f6f3ec;
  --cream-2: #efeadd;
  --gold: #b0894a;
  --gold-light: #d8b878;
  --ink: #2b3543;
  --slate: #3a4656;
  --muted: #54606f;
  --border: #e7e1d4;
  --border-soft: #e3ddd0;
  --line-dark: rgba(255, 255, 255, 0.12);

  --serif-display: 'Cormorant Garamond', 'Noto Serif SC', serif;
  --serif-sc: 'Noto Serif SC', 'Cormorant Garamond', serif;
  --sans: 'Noto Sans SC', system-ui, sans-serif;
  --label: 'Archivo', sans-serif;

  --maxw: 1360px;
  --gutter: 48px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
::selection { background: var(--navy); color: var(--cream); }
img { max-width: 100%; display: block; }

@keyframes jmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- shared type ---- */
.eyebrow {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.eyebrow.on-dark { color: var(--gold-light); }
.section-title {
  font-family: var(--serif-display);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.14;
  letter-spacing: .005em;
  margin: 0;
}
.rule { width: 64px; height: 1px; background: var(--gold); margin: 0 0 26px; }
.rule.center { margin-left: auto; margin-right: auto; }

/* =================== NAV =================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  transition: background .45s, border-color .45s, box-shadow .45s;
  border-bottom: 1px solid transparent;
}
.site-nav.solid {
  background: rgba(246, 243, 236, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 34px -22px rgba(22,35,59,0.4);
}
.nav-inner {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid currentColor;
  transform: rotate(45deg); flex: none; transition: color .45s;
}
.brand-badge span {
  transform: rotate(-45deg);
  font-family: var(--serif-display); font-weight: 600; font-size: 18px;
  letter-spacing: .02em;
}
.brand-name { font-family: var(--serif-display); font-weight: 600; font-size: 22px; letter-spacing: .14em; line-height: 1; transition: color .45s; }
.brand-zh { font-family: var(--serif-sc); font-size: 12px; letter-spacing: .42em; color: var(--gold); margin-top: 4px; }
.brand-text { display: flex; flex-direction: column; }

/* over hero (light text), and solid (dark text) */
.site-nav .brand-badge,
.site-nav .brand-name { color: #fff; }
.site-nav.solid .brand-badge,
.site-nav.solid .brand-name { color: var(--navy); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-family: var(--label); font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,0.86); transition: color .3s;
}
.site-nav.solid .nav-link { color: #3a4452; }
.nav-link:hover { color: var(--gold-light); }
.site-nav.solid .nav-link:hover { color: var(--gold); }
.lang-btn {
  font-family: var(--label); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: #fff;
  background: transparent; border: 1px solid rgba(255,255,255,0.55);
  padding: 9px 16px; cursor: pointer; border-radius: 1px;
  transition: background .3s, color .3s, border-color .3s;
}
.lang-btn:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }
.site-nav.solid .lang-btn { color: var(--navy); border-color: var(--navy); }
.site-nav.solid .lang-btn:hover { background: var(--navy); color: #fff; }

/* =================== HERO =================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end;
  background: var(--navy-deep); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 2.6s cubic-bezier(.2,.6,.2,1) both; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,22,38,0.55) 0%, rgba(14,22,38,0.25) 32%, rgba(14,22,38,0.82) 100%),
    radial-gradient(120% 80% at 80% 10%, rgba(176,137,74,0.20), transparent 55%);
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 14px);
}
.hero-inner { position: relative; width: 100%; padding-top: 0; padding-bottom: 110px; }
.hero-content { max-width: 960px; }
.hero-eyebrow {
  font-family: var(--label); font-size: 13px; letter-spacing: .38em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 28px;
}
.hero-title {
  font-family: var(--serif-display); font-weight: 500; color: #fff;
  font-size: clamp(44px, 7vw, 110px); line-height: 1.02;
  letter-spacing: .004em; margin: 0;
}
.hero-sub {
  max-width: 620px; margin: 32px 0 0; font-size: 17.5px; line-height: 1.95;
  color: rgba(255,255,255,0.82); font-weight: 300;
}
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.btn-gold {
  font-family: var(--label); font-size: 12.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--navy); background: var(--gold-light);
  padding: 17px 34px; transition: background .4s, transform .4s, box-shadow .4s;
}
.btn-gold:hover { background: #e7cf96; transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(216,184,120,0.55); }
.link-underline {
  font-family: var(--label); font-size: 12.5px; letter-spacing: .16em;
  text-transform: uppercase; color: #fff;
  border-bottom: 1px solid rgba(216,184,120,0.65); padding-bottom: 5px;
  transition: border-color .4s, letter-spacing .4s;
}
.link-underline:hover { border-color: #e7cf96; letter-spacing: .22em; }
.hero-scroll {
  position: absolute; left: var(--gutter); bottom: 38px;
  font-family: var(--label); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 12px;
}
.hero-scroll::after { content: ''; width: 46px; height: 1px; background: rgba(255,255,255,0.4); }

/* =================== STATS =================== */
.stats { background: var(--navy); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 46px 30px 50px; border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: none; }
.stat-n { font-family: var(--serif-display); font-weight: 500; font-size: 52px; color: var(--gold-light); line-height: 1; }
.stat-l { margin-top: 14px; font-size: 13.5px; color: rgba(255,255,255,0.66); letter-spacing: .02em; }

/* =================== ABOUT =================== */
.about { background: var(--cream); padding: 130px 0; }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 90px; align-items: start; }
.about .section-title { font-size: clamp(30px, 3.6vw, 52px); }
.about-p { font-size: 16.5px; line-height: 1.98; color: var(--slate); margin: 0 0 22px; }
.about-p:last-of-type { margin-bottom: 0; }
.founder { margin-top: 40px; }
.founder-name { font-family: var(--serif-display); font-size: 30px; color: var(--navy); font-weight: 600; }
.founder-role { font-size: 13px; color: #6b6457; margin-top: 4px; letter-spacing: .04em; }
.founder-sign { margin-top: 16px; height: 56px; width: auto; opacity: .82; filter: contrast(1.1); }
.tenets {
  margin-top: 40px; padding-top: 34px; border-top: 1px solid var(--border-soft);
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.tenet { display: flex; gap: 13px; align-items: baseline; }
.tenet-dot { width: 6px; height: 6px; flex: none; background: var(--gold); transform: rotate(45deg); margin-top: 7px; }
.tenet span:last-child { font-size: 15px; color: var(--ink); line-height: 1.6; }

/* =================== CINEMATIC DIVIDER (road) =================== */
.divider {
  position: relative; min-height: 62vh; display: flex; align-items: center; justify-content: center;
  background: var(--navy-deep); overflow: hidden; text-align: center;
}
.divider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.divider-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,22,38,0.5), rgba(14,22,38,0.72)); }
.divider-inner { position: relative; max-width: 900px; padding: 0 var(--gutter); }
.divider-quote { font-family: var(--serif-display); font-weight: 500; font-style: italic; color: #fff; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.3; margin: 0; }
.divider-by { margin-top: 24px; font-family: var(--label); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); }

/* =================== CULTURE =================== */
.culture { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 120px 0; }
.culture-head { text-align: center; max-width: 760px; margin: 0 auto 72px; }
.culture-head .section-title { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.18; }
.culture-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); }
.culture-cell { padding: 56px 46px; border-right: 1px solid var(--border); transition: background .4s; }
.culture-cell:last-child { border-right: none; }
.culture-cell:hover { background: var(--cream); }
.culture-k { font-family: var(--serif-display); font-size: 22px; color: var(--gold); letter-spacing: .02em; }
.culture-t { font-family: var(--serif-sc); font-weight: 600; font-size: 25px; color: var(--navy); margin: 14px 0 18px; }
.culture-d { font-size: 15px; line-height: 1.88; color: var(--muted); margin: 0; }

/* =================== DIVISIONS (editorial alternating rows) =================== */
.divisions { background: var(--cream); }
.div-head { padding-top: 120px; padding-bottom: 70px; }
.div-head-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.div-head .section-title { font-size: clamp(32px, 4vw, 58px); line-height: 1.08; max-width: 720px; }
.div-intro { max-width: 440px; font-size: 15.5px; line-height: 1.95; color: var(--muted); margin: 0; }

.div-list { display: flex; flex-direction: column; }
.div-row { display: grid; grid-template-columns: 1.12fr 0.88fr; min-height: 540px; border-top: 1px solid var(--border); }
.div-row-media { position: relative; overflow: hidden; background: var(--navy); }
.div-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s cubic-bezier(.2,.6,.2,1); }
.div-row:hover .div-row-media img { transform: scale(1.055); }
.div-row-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(14,22,38,0.32), transparent 55%); }
.div-row-num {
  position: absolute; top: 26px; left: 30px; z-index: 2;
  font-family: var(--serif-display); font-weight: 600; font-size: 30px;
  color: rgba(255,255,255,0.9);
}
.div-row-flag {
  position: absolute; top: 30px; right: 0; z-index: 2; background: var(--gold); color: #fff;
  font-family: var(--label); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; padding: 8px 18px;
}
.div-row-text { padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.div-row:nth-child(even) .div-row-text { background: var(--cream-2); }
.div-row-en { font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.div-row-title { font-family: var(--serif-sc); font-weight: 600; font-size: clamp(24px, 2.3vw, 32px); color: var(--navy); margin: 0 0 20px; line-height: 1.32; }
.div-row-body { font-size: 15.5px; line-height: 1.95; color: var(--muted); margin: 0 0 28px; max-width: 520px; }
.div-row-link { font-family: var(--label); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); display: inline-flex; align-items: center; gap: 10px; }
.div-row-link .arrow { color: var(--gold); display: inline-block; transition: transform .4s cubic-bezier(.2,.6,.2,1); }
.div-row:hover .div-row-link .arrow { transform: translateX(7px); }
/* reverse layout puts media on the right */
.div-row.reverse .div-row-media { order: 2; }
.div-row.reverse .div-row-media::after { background: linear-gradient(240deg, rgba(14,22,38,0.32), transparent 55%); }
/* designed tile (division without a photo) */
.div-row-media.tile {
  background:
    radial-gradient(120% 100% at 20% 10%, rgba(176,137,74,0.28), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 16px),
    linear-gradient(160deg, var(--navy-soft), var(--navy-deep));
  display: flex; align-items: center; justify-content: center;
}
.div-row-media.tile .tile-mark { font-family: var(--serif-display); font-size: clamp(64px, 9vw, 140px); color: rgba(216,184,120,0.18); font-weight: 600; letter-spacing: .04em; }

/* =================== GROUP STRUCTURE =================== */
.structure { background: var(--navy); padding: 120px 0; }
.struct-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.struct-title { font-family: var(--serif-display); font-weight: 500; color: #fff; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.16; margin: 0 0 22px; }
.struct-intro { font-size: 15.5px; line-height: 1.95; color: rgba(255,255,255,0.68); margin: 0; }
.struct-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-dark); }
.struct-item { padding: 26px 8px 26px 0; border-bottom: 1px solid var(--line-dark); display: flex; align-items: center; gap: 18px; transition: padding-left .35s; }
.struct-item:hover { padding-left: 8px; }
.struct-n { font-family: var(--serif-display); font-size: 16px; color: var(--gold-light); width: 30px; }
.struct-t { font-size: 15.5px; color: #eef1f5; }

/* =================== GLOBAL PRESENCE =================== */
.presence { background: var(--cream); padding: 120px 0; }
.presence-head { text-align: center; margin-bottom: 56px; }
.presence-head .section-title { font-size: clamp(28px, 3.4vw, 48px); }
.world-map { width: 100%; max-width: 1000px; margin: 0 auto 56px; display: block; opacity: .9; }
.offices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.office { background: #fff; border: 1px solid var(--border); padding: 42px 36px; transition: transform .5s, box-shadow .5s; }
.office:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(22,35,59,0.4); }
.office-tag { font-family: var(--serif-display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.office-city { font-family: var(--serif-sc); font-weight: 600; font-size: 24px; color: var(--navy); margin: 10px 0 18px; }
.office-addr { font-size: 14.5px; line-height: 1.85; color: var(--muted); margin: 0; }

/* =================== NEWS =================== */
.news { background: #fff; border-top: 1px solid var(--border); padding: 120px 0; }
.news-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; gap: 30px; flex-wrap: wrap; }
.news-head .section-title { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.14; }
.news-viewall { font-family: var(--label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); border-bottom: 1px solid var(--gold); padding-bottom: 5px; transition: color .3s; }
.news-viewall:hover { color: var(--gold); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.news-card { display: block; }
.news-card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 24px; background: var(--navy); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.6,.2,1); }
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-meta { font-family: var(--label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.news-title { font-family: var(--serif-sc); font-weight: 600; font-size: 20px; color: var(--navy); margin: 0; line-height: 1.5; transition: color .3s; }
.news-card:hover .news-title { color: var(--gold); }

/* =================== CAREERS (full-bleed) =================== */
.careers { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; background: var(--navy-deep); }
.careers img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.careers-scrim { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(14,22,38,0.86) 0%, rgba(14,22,38,0.58) 55%, rgba(14,22,38,0.4) 100%); }
.careers-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 96px var(--gutter); width: 100%; }
.careers-box { max-width: 640px; }
.careers-title { font-family: var(--serif-display); font-weight: 500; color: #fff; font-size: clamp(32px, 4vw, 56px); line-height: 1.1; margin: 0 0 24px; }
.careers-body { font-size: 16px; line-height: 1.95; color: rgba(255,255,255,0.8); margin: 0 0 36px; }

/* =================== CONTACT =================== */
.contact { background: var(--cream); padding: 120px 0 104px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.contact .section-title { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.14; margin-bottom: 30px; }
.contact-email { font-family: var(--serif-display); font-size: 28px; color: var(--navy); border-bottom: 1px solid var(--gold); padding-bottom: 5px; transition: color .3s; }
.contact-email:hover { color: var(--gold); }
.newsletter-card { background: #fff; border: 1px solid var(--border); padding: 44px; }
.newsletter-title { font-family: var(--serif-sc); font-weight: 600; font-size: 22px; color: var(--navy); margin: 0 0 8px; }
.newsletter-body { font-size: 14.5px; line-height: 1.85; color: var(--muted); margin: 0 0 26px; }
.newsletter-form { display: flex; border: 1px solid #d8cfbb; }
.newsletter-form input { flex: 1; border: none; padding: 16px 18px; font-family: var(--sans); font-size: 14px; color: var(--navy); background: transparent; outline: none; }
.newsletter-form button { background: var(--navy); color: #fff; border: none; font-family: var(--label); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; padding: 0 28px; cursor: pointer; transition: background .3s; }
.newsletter-form button:hover { background: var(--navy-soft); }

/* =================== FOOTER =================== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 80px 0 44px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; padding-bottom: 54px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.footer-badge { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--gold-light); transform: rotate(45deg); flex: none; }
.footer-badge span { transform: rotate(-45deg); font-family: var(--serif-display); font-weight: 600; font-size: 16px; color: var(--gold-light); }
.footer-name { font-family: var(--serif-display); font-weight: 600; font-size: 20px; letter-spacing: .14em; color: #fff; }
.footer-disclaimer { font-size: 13px; line-height: 1.9; color: rgba(255,255,255,0.5); max-width: 400px; margin: 0; }
.footer-coltitle { font-family: var(--label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 20px; }
.footer-col-links { display: flex; flex-direction: column; gap: 13px; }
.footer-col-links a, .footer-col-links span { font-size: 14px; color: rgba(255,255,255,0.72); transition: color .3s; }
.footer-col-links a:hover { color: var(--gold-light); }
.footer-copy { padding-top: 28px; font-size: 12.5px; color: rgba(255,255,255,0.42); letter-spacing: .02em; }

/* =================== REVEAL =================== */
[data-revealable] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1.1s cubic-bezier(.2,.65,.2,1), transform 1.1s cubic-bezier(.2,.65,.2,1);
  will-change: opacity, transform;
}
[data-revealable].is-visible { opacity: 1; transform: none; }

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 52px; }
  .struct-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr; gap: 52px; }
  .culture-grid { grid-template-columns: 1fr; }
  .culture-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .culture-cell:last-child { border-bottom: none; }
  .offices-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .div-row { grid-template-columns: 1fr; min-height: 0; }
  .div-row .div-row-media { order: 0 !important; aspect-ratio: 16/9; }
  .div-row.reverse .div-row-media { order: 0; }
  .div-head-grid { gap: 28px; }
}
@media (max-width: 860px) {
  .nav-links .nav-link { display: none; }
}
@media (max-width: 680px) {
  :root { --gutter: 22px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: none; }
  .offices-grid, .news-grid { grid-template-columns: 1fr; }
  .struct-list { grid-template-columns: 1fr; }
  .div-row-text { padding: 44px 26px; }
  .about, .culture, .structure, .presence, .news, .contact { padding-top: 84px; padding-bottom: 84px; }
  .div-head { padding-top: 96px; }
  .tenets { grid-template-columns: 1fr; }
}
