/* ============================================================
   XMG CAPITAL — Design System
   Bespoke, dependency-light CSS (no build step required).
   Visual language: clean / tech / future / international.
   Motif: connected molecular nodes (from Molecular Future logo).
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand blues (single source of truth — no Tailwind duplication) */
  --c-primary: #2563EB;      /* core blue        */
  --c-primary-600: #1D4ED8;  /* hover / deep     */
  --c-primary-700: #1E40AF;
  --c-accent: #3B82F6;
  --c-sky: #60A5FA;
  --c-sky-200: #93C5FD;
  --c-cyan: #22D3EE;         /* tech highlight   */

  /* Neutrals */
  --c-midnight: #0B1426;     /* deep navy base   */
  --c-navy: #0F1B33;
  --c-slate-900: #1E293B;
  --c-slate-600: #475569;
  --c-slate-500: #64748B;
  --c-slate-400: #94A3B8;
  --c-slate-200: #E2E8F0;
  --c-ice: #F1F5F9;
  --c-mist: #F8FBFF;
  --c-white: #FFFFFF;

  /* Semantic */
  --bg: var(--c-mist);
  --bg-alt: var(--c-ice);
  --text: #0B1E36;
  --text-soft: #475569;
  --text-faint: #64748B;
  --line: rgba(15, 27, 51, 0.08);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, var(--c-primary) 0%, var(--c-sky) 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(37,99,235,0.12) 0%, rgba(96,165,250,0.12) 100%);
  --grad-deep: linear-gradient(150deg, #0B1426 0%, #11254B 55%, #16367a 100%);
  --grad-text: linear-gradient(120deg, #1D4ED8 0%, #3B82F6 45%, #22D3EE 100%);

  /* Typography */
  --font-display: 'Poppins', system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* Spacing / shape */
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --radius-xs: 12px;
  --shadow-sm: 0 1px 2px rgba(15,27,51,0.06), 0 1px 3px rgba(15,27,51,0.04);
  --shadow: 0 10px 30px -12px rgba(15,40,90,0.18);
  --shadow-lg: 0 30px 60px -20px rgba(15,40,90,0.28);
  --shadow-glow: 0 0 0 1px rgba(37,99,235,0.08), 0 20px 50px -20px rgba(37,99,235,0.35);
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; border-radius: 4px; }

/* Visually-hidden (screen-reader only) */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; color: var(--text); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { color: var(--text-soft); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2rem); }
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--ice { background: var(--bg-alt); }
.section--dark { background: var(--grad-deep); color: #E6EEFB; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #AFC4E8; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--c-primary);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad-brand); }
.section--dark .eyebrow { color: var(--c-sky); }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1rem; font-size: 1.08rem; }
.text-gradient { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn i { transition: transform .3s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -16px rgba(37,99,235,0.55); }
.btn--ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.btn--outline { border: 1.5px solid var(--c-primary); color: var(--c-primary); background: #fff; }
.btn--outline:hover { background: var(--c-primary); color: #fff; transform: translateY(-2px); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav.is-scrolled { background: rgba(255,255,255,0.82); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); }
/* Always-solid nav for sub-pages (no full-height dark hero) */
.nav--solid { background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__xmg { color: var(--c-primary); }
.brand__sub { color: var(--c-slate-900); font-weight: 600; }
.nav.is-top:not(.is-open) .brand__sub { color: #fff; }
.nav.is-top:not(.is-open) .brand__xmg { color: #fff; }
.nav.is-top:not(.is-open) .nav__link { color: rgba(255,255,255,0.85); }
.nav.is-top:not(.is-open) .nav__link:hover { color: #fff; }
.nav.is-top:not(.is-open) .lang-toggle { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.35); }
.nav.is-top:not(.is-open) .nav__burger { color: #fff; }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__link { position: relative; font-weight: 500; font-size: .95rem; color: var(--text-soft); transition: color .25s; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad-brand); border-radius: 2px; transition: width .3s var(--ease); }
.nav__link:hover { color: var(--c-primary); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 1rem; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  border: 1px solid var(--line); border-radius: 999px; padding: .4rem .8rem;
  color: var(--text-soft); background: rgba(255,255,255,0.4); transition: all .25s;
}
.lang-toggle:hover { border-color: var(--c-primary); color: var(--c-primary); }
.lang-toggle .sep { opacity: .35; }
.lang-toggle [data-lang-opt].is-active { color: var(--c-primary); }
.nav.is-top:not(.is-open) .lang-toggle [data-lang-opt].is-active { color: #fff; }

.nav__burger { display: none; font-size: 1.4rem; color: var(--text); padding: .4rem; }

/* Mobile drawer */
@media (max-width: 920px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav.is-open { background: #fff; box-shadow: var(--shadow); }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 76px; left: 0; right: 0; background: #fff;
    padding: .5rem 1.4rem 1.4rem; box-shadow: var(--shadow); border-top: 1px solid var(--line);
  }
  .nav.is-open .nav__link { width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--line); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: var(--grad-deep); color: #fff; overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -3; background: var(--grad-deep); }
.hero__img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .22; mix-blend-mode: luminosity; }
.hero__veil { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 60% at 80% 10%, rgba(34,211,238,0.18), transparent 60%),
  radial-gradient(70% 70% at 10% 90%, rgba(37,99,235,0.30), transparent 60%); }
.hero__grid { position: absolute; inset: 0; z-index: -1; opacity: .4;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%); }
#particle-canvas { position: absolute; inset: 0; z-index: -1; }

.hero__inner { padding-block: 8rem 4rem; width: 100%; }
.hero__tag {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.6rem;
  padding: .45rem .9rem .45rem .55rem; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  font-size: .82rem; color: #CFE0FF; backdrop-filter: blur(6px);
}
.hero__tag b { background: var(--grad-brand); color: #fff; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; font-size: .72rem; letter-spacing: .04em; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); color: #fff; max-width: 16ch; }
.hero h1 .accent { background: linear-gradient(120deg,#93C5FD,#22D3EE); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #B9CCEC; max-width: 52ch; }
.hero__cta { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__stats {
  margin-top: 3.6rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius); overflow: hidden; max-width: 760px;
}
.hero__stat { background: rgba(11,20,38,0.35); padding: 1.3rem 1.1rem; backdrop-filter: blur(4px); }
.hero__stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: #fff; }
.hero__stat .lbl { font-size: .8rem; color: #93AACB; margin-top: .15rem; }
.hero__scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-size: 1.2rem; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

@media (max-width: 720px) {
  .hero__stats { grid-template-columns: repeat(2,1fr); }
}

/* ============================================================
   GENERIC CARDS / GRID
   ============================================================ */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
/* News teaser (exactly 3 cards): stay 3-up, then go single — avoids a stranded half-card on tablets */
#news .grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { #news .grid--3 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,0.25); }
.card__icon {
  width: 54px; height: 54px; border-radius: var(--radius-xs); display: grid; place-items: center;
  font-size: 1.35rem; color: var(--c-primary); background: var(--grad-brand-soft); margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .97rem; }
.card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; color: var(--c-accent); font-weight: 600; font-size: .9rem; }
.card__more i { transition: transform .3s var(--ease); }
.card:hover .card__more i { transform: translateX(4px); }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; margin: 1.8rem 0; }
.value { display: flex; align-items: center; gap: .8rem; font-weight: 600; color: var(--text); }
.value i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--c-primary); background: var(--grad-brand-soft); flex: none; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.panel::after { content:""; position:absolute; inset:0; background: radial-gradient(120% 80% at 100% 0, rgba(37,99,235,0.06), transparent 50%); pointer-events:none; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mini-stat { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 1.3rem; }
.mini-stat .num { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--c-primary); }
.mini-stat .lbl { color: var(--text-faint); font-size: .9rem; }
.philosophy { margin-top: 1.4rem; background: var(--grad-brand); color: #fff; border-radius: var(--radius); padding: 1.5rem; }
.philosophy h4 { color: #fff; font-size: 1.1rem; margin-bottom: .9rem; }
.philosophy li { display: flex; align-items: flex-start; gap: .7rem; padding: .35rem 0; color: rgba(255,255,255,0.95); font-size: .96rem; }
.philosophy li i { margin-top: .25rem; }

/* ============================================================
   TIMELINE (history)
   ============================================================ */
.timeline { position: relative; margin-top: 1rem; }
.timeline::before { content: ""; position: absolute; left: 18px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--c-sky-200), var(--c-primary), transparent); }
@media (min-width: 860px) { .timeline::before { left: 50%; transform: translateX(-50%); } }
.tl-item { position: relative; padding-left: 56px; margin-bottom: 2rem; }
.tl-item__dot { position: absolute; left: 9px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--c-primary); box-shadow: 0 0 0 5px rgba(37,99,235,0.12); }
.tl-item__year { font-family: var(--font-display); font-weight: 700; color: var(--c-primary); font-size: 1.05rem; }
.tl-item__body { margin-top: .25rem; color: var(--text-soft); }
.section--dark .tl-item__body { color: #AFC4E8; }
.section--dark .tl-item__dot { background: var(--c-navy); }
@media (min-width: 860px) {
  .timeline { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .tl-item { width: 100%; padding-left: 0; }
  .tl-item:nth-child(odd) { grid-column: 1; text-align: right; padding-right: 48px; }
  .tl-item:nth-child(even) { grid-column: 2; padding-left: 48px; }
  .tl-item:nth-child(odd) .tl-item__dot { left: auto; right: -10px; }
  .tl-item:nth-child(even) .tl-item__dot { left: -10px; }
}

/* ============================================================
   GROUP STRUCTURE (org architecture)
   ============================================================ */
.org { display: grid; gap: 1.5rem; place-items: center; }
.org__parent {
  display: inline-flex; align-items: center; gap: .8rem; padding: 1.1rem 1.8rem;
  border-radius: var(--radius); background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-glow);
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.org__parent small { display:block; font-weight: 500; font-size: .72rem; opacity: .85; letter-spacing: .08em; }
.org__connector { width: 2px; height: 32px; background: linear-gradient(var(--c-primary), var(--c-sky-200)); }
.org__children { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 1rem; width: 100%; justify-content: center; }
.org__node {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.1rem; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; position: relative;
}
.org__node:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(37,99,235,0.3); }
.org__node i { font-size: 1.5rem; color: var(--c-primary); }
.org__node .name { font-family: var(--font-display); font-weight: 700; margin-top: .6rem; font-size: 1rem; }
.org__node .role { font-size: .82rem; color: var(--text-faint); margin-top: .2rem; }
.org__node .tag-new { position: absolute; top: 10px; right: 10px; font-size: .62rem; font-weight: 700; letter-spacing: .06em; color: var(--c-midnight); background: var(--c-cyan); padding: .15rem .45rem; border-radius: 999px; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.pf-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pf-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pf-card__head { height: 150px; display: grid; place-items: center; position: relative; background: var(--grad-deep); overflow: hidden; }
.pf-card__head::before { content:""; position:absolute; inset:0; background: radial-gradient(70% 90% at 30% 20%, rgba(34,211,238,0.25), transparent 60%), radial-gradient(60% 80% at 90% 90%, rgba(37,99,235,0.4), transparent 60%); transition: opacity .4s var(--ease); }
/* Subtle per-card variation so the portfolio headers feel bespoke, not templated */
.pf-card:nth-child(2) .pf-card__head::before { background: radial-gradient(70% 90% at 80% 15%, rgba(96,165,250,0.30), transparent 60%), radial-gradient(60% 80% at 10% 95%, rgba(34,211,238,0.30), transparent 60%); }
.pf-card:nth-child(3) .pf-card__head::before { background: radial-gradient(80% 90% at 50% 0%, rgba(34,211,238,0.28), transparent 62%), radial-gradient(60% 80% at 100% 100%, rgba(29,78,216,0.42), transparent 60%); }
.pf-card:nth-child(4) .pf-card__head::before { background: radial-gradient(70% 90% at 20% 80%, rgba(37,99,235,0.40), transparent 60%), radial-gradient(60% 80% at 90% 10%, rgba(34,211,238,0.22), transparent 60%); }
.pf-card:nth-child(5) .pf-card__head::before { background: radial-gradient(75% 90% at 85% 80%, rgba(96,165,250,0.32), transparent 60%), radial-gradient(60% 80% at 15% 15%, rgba(34,211,238,0.26), transparent 60%); }
.pf-card:nth-child(6) .pf-card__head::before { background: radial-gradient(80% 90% at 50% 100%, rgba(34,211,238,0.24), transparent 60%), radial-gradient(60% 80% at 50% 0%, rgba(37,99,235,0.40), transparent 62%); }
.pf-card:hover .pf-card__head::before { opacity: .8; }
.pf-card__head i { font-size: 2.8rem; color: rgba(255,255,255,0.85); position: relative; z-index: 1; }
.pf-card__tag { position: absolute; top: 12px; right: 12px; z-index: 2; font-size: .68rem; font-weight: 600; letter-spacing: .03em; color: #fff; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(6px); padding: .25rem .65rem; border-radius: 999px; }
.pf-card__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.pf-card__body h3 { font-size: 1.15rem; }
.pf-card__body p { font-size: .92rem; margin-top: .5rem; flex: 1; }
.pf-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; margin-top: 1.1rem; text-align: center; }
.pf-meta .k { font-size: .68rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }
.pf-meta .v { font-family: var(--font-display); font-weight: 700; color: var(--c-primary); font-size: .98rem; }

/* ============================================================
   METRICS (counters)
   ============================================================ */
.metric { text-align: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 1.8rem 1.2rem; }
.metric .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); background: linear-gradient(120deg,#93C5FD,#22D3EE); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric .lbl { color: #AFC4E8; font-weight: 500; margin-top: .3rem; }

/* ============================================================
   NEWS
   ============================================================ */
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.news-card:hover, .news-card:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card__thumb { height: 80px; background: var(--grad-brand); position: relative; }
.news-card__thumb i { position: absolute; right: 16px; bottom: -22px; width: 48px; height: 48px; border-radius: var(--radius-xs); background: #fff; color: var(--c-primary); display: grid; place-items: center; box-shadow: var(--shadow-sm); font-size: 1.2rem; }
.news-card__body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.news-card__meta { display: flex; gap: .6rem; align-items: center; font-size: .78rem; color: var(--text-faint); margin-bottom: .6rem; }
.news-card__meta .outlet { color: var(--c-primary); font-weight: 600; }
.news-card h3 { font-size: 1.05rem; line-height: 1.35; }
.news-card p { font-size: .9rem; margin-top: .5rem; flex: 1; }
.news-card__link { margin-top: 1rem; font-weight: 600; font-size: .85rem; color: var(--c-accent); display: inline-flex; gap: .4rem; align-items: center; }

/* Chips / source-credibility tags */
.chip { display:inline-flex; align-items:center; gap:.35rem; font-size:.7rem; font-weight:700; letter-spacing:.03em; padding:.22rem .6rem; border-radius:999px; }
.chip--cat { color: var(--c-primary); background: var(--grad-brand-soft); }
.chip--ind { color:#0E7490; background: rgba(34,211,238,0.14); }
.chip--gov { color:#1E40AF; background: rgba(37,99,235,0.12); }
.chip--pr  { color:#6B4A00; background: rgba(245,158,11,0.16); }
.news-filters { display:flex; flex-wrap:wrap; gap:.6rem; margin-bottom:2rem; }
.news-row__tags { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.7rem; }

/* News page list */
.news-list { display: grid; gap: 1.2rem; }
.news-row { display: grid; grid-template-columns: 120px 1fr; gap: 1.4rem; background:#fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; transition: box-shadow .3s, transform .3s var(--ease); }
.news-row:hover, .news-row:focus-visible { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-row__date { font-family: var(--font-display); }
.news-row__date .d { font-size: 1.6rem; font-weight: 700; color: var(--c-primary); line-height: 1; }
.news-row__date .y { color: var(--text-faint); font-size: .85rem; }
.news-row__meta { font-size: .78rem; color: var(--text-faint); margin-bottom: .35rem; }
.news-row h3 { font-size: 1.15rem; }
.news-row p { font-size: .94rem; margin-top: .4rem; }
@media (max-width: 560px) { .news-row { grid-template-columns: 1fr; } }

/* ============================================================
   CTA + CONTACT + FOOTER
   ============================================================ */
.cta { background: var(--grad-brand); color: #fff; text-align: center; border-radius: 0; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.92); max-width: 56ch; margin-inline: auto; margin-top: 1rem; }
.cta .btn--primary { background: #fff; color: var(--c-primary); box-shadow: 0 20px 40px -16px rgba(0,0,0,0.3); }
.cta .btn--primary:hover { background: var(--c-midnight); color: #fff; }

.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 4vw, 3rem); align-items: stretch; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 360px; border: 1px solid var(--line); }
.contact-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }
.contact-cards { display: grid; gap: 1rem; align-content: start; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; background: var(--bg-alt); border-radius: var(--radius); padding: 1.3rem; transition: box-shadow .3s, transform .3s var(--ease); }
.contact-item:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.contact-item i { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--c-primary); background: var(--grad-brand-soft); }
.contact-item h4 { font-size: 1.02rem; }
.contact-item p { font-size: .92rem; margin-top: .15rem; }
.socials { display: flex; gap: .8rem; margin-top: .6rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--text-faint); background: #fff; border: 1px solid var(--line); transition: all .25s; }
.socials a:hover { color: #fff; background: var(--c-primary); transform: translateY(-3px); }

.footer { background: var(--c-midnight); color: #B7C6E0; }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding-block: clamp(3rem,6vw,4rem); }
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }
.footer .brand { color: #fff; margin-bottom: 1rem; }
.footer .brand__sub { color: #fff; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer a { color: #93AACB; font-size: .92rem; display: block; padding: .25rem 0; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer .brand, .footer .socials a { display: flex; }
.footer .socials a { display: grid; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-block: 1.6rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: #7E93B6; }
.footer .socials a { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: #93AACB; }
.footer .socials a:hover { background: var(--c-primary); color: #fff; }

/* Disclosure note for honesty about figures */
.disclosure { font-size: .8rem; color: var(--text-faint); max-width: 70ch; margin-top: 1.5rem; }
.section--dark .disclosure { color: #7E93B6; }

/* ============================================================
   i18n + scroll-reveal utilities
   ============================================================ */
[data-lang="en"] .lang-zh { display: none; }
[data-lang="zh"] .lang-en { display: none; }
/* keep inline elements inline when toggled */
span.lang-en, span.lang-zh { }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* zh typography tuning */
[data-lang="zh"] body, [data-lang="zh"] { letter-spacing: 0; }
[data-lang="zh"] h1, [data-lang="zh"] h2, [data-lang="zh"] h3, [data-lang="zh"] h4 { letter-spacing: 0; }

/* Sub-page hero (news) */
.subhero { background: var(--grad-deep); color: #fff; padding-block: 9rem 4rem; position: relative; overflow: hidden; }
.subhero::after { content:""; position:absolute; inset:0; background: radial-gradient(60% 70% at 85% 10%, rgba(34,211,238,0.15), transparent 60%), radial-gradient(60% 70% at 0% 100%, rgba(37,99,235,0.3), transparent 60%); }
.subhero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); position: relative; }
.subhero p { color: #B9CCEC; margin-top: 1rem; position: relative; max-width: 56ch; }
.subhero__crumbs { position: relative; font-size: .85rem; color: #93AACB; margin-bottom: 1rem; }
.subhero__crumbs a:hover { color: #fff; }
