/* ============================================================
   CAA — Chinese Association of Automation
   Design system + page styles
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --ink:        #0c1238;   /* near-black navy — primary text */
  --ink-2:      #444c6e;   /* secondary text */
  --muted:      #8b91ab;   /* labels / meta */
  --line:       #e8eaf2;   /* hairline borders */
  --bg:         #ffffff;
  --bg-soft:    #f5f6fb;   /* soft section background */
  --bg-soft-2:  #eef1fa;

  --brand:      #e11d48;   /* crimson accent (JOIN CAA) */
  --brand-dark: #be123c;
  --brand-soft: #fde7ec;

  --navy:       #070d2a;   /* hero dark */
  --navy-2:     #0d1949;

  /* Mission / point-cloud purples */
  --pur-1:      #2a1670;
  --pur-2:      #160c3e;
  --pur-3:      #0c0726;
  --cyan:       #4cc2ff;
  --violet:     #8b6dff;

  /* Typography */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  /* Radius */
  --r-sm: 6px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(12,18,56,.06), 0 1px 1px rgba(12,18,56,.04);
  --sh-md: 0 12px 30px -12px rgba(12,18,56,.18);
  --sh-lg: 0 30px 60px -20px rgba(12,18,56,.28);

  /* Motion */
  --ease: cubic-bezier(.16,1,.3,1);
  --container: 1200px;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
section[id] { scroll-margin-top: 80px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.08; font-weight: 800; letter-spacing: -.01em; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 8vw, 110px); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--muted);
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 2.6vw, 34px); margin-top: 9px; }
.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--ink);
  padding: 11px 20px; border: 1px solid var(--line); border-radius: var(--r-pill);
  transition: .35s var(--ease);
}
.link-more svg { transition: transform .35s var(--ease); }
.link-more:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.link-more:hover svg { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 14px 26px; border-radius: var(--r-pill);
  transition: .4s var(--ease); white-space: nowrap; position: relative; overflow: hidden;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px var(--brand); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -12px var(--brand); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.34); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; gap: 16px; height: 76px; }

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { height: 36px; width: auto; transition: filter .4s var(--ease); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--font-display); font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.brand-text span { font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; opacity: .7; white-space: nowrap; }

.main-nav { display: flex; gap: 1px; margin-left: 6px; }
.main-nav a {
  position: relative; font-size: 13px; font-weight: 500; padding: 8px 10px; border-radius: 8px;
  white-space: nowrap; transition: color .25s, background .25s;
}
.main-nav a:hover { color: var(--brand); }
.main-nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-pill); transition: background .25s; flex-shrink: 0; }
.icon-btn:hover { background: rgba(125,130,160,.14); }
.lang { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; padding: 8px 8px; white-space: nowrap; flex-shrink: 0; color: var(--ink); transition: color .25s; }
.lang svg { width: 16px; height: 16px; opacity: .62; transition: opacity .25s; }
.lang:hover { color: var(--brand); }
.lang:hover svg { opacity: 1; }

/* three-line button → opens full-site menu (always visible) */
.menu-toggle { display: grid; }
.menu-toggle:hover { background: rgba(125,130,160,.14); }

/* --- Header: solid white (matches design), stronger shadow after scroll --- */
.site-header {
  color: var(--ink);
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(170%) blur(16px);
  border-bottom-color: var(--line);
}
.site-header .brand-text span { opacity: .55; }
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: 0 6px 24px -18px rgba(12,18,56,.5);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  color: #fff; overflow: hidden; padding: 120px 24px 0;
  background:
    radial-gradient(120% 80% at 50% -10%, #122160 0%, transparent 55%),
    radial-gradient(90% 70% at 50% 120%, #0a1652 0%, transparent 60%),
    linear-gradient(180deg, #05091f 0%, #070f33 50%, #0a1240 100%);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after { /* dark overlay for text legibility over video */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(5,9,31,.35) 0%, transparent 70%),
    linear-gradient(180deg, rgba(5,9,31,.55) 0%, rgba(5,9,31,.35) 38%, rgba(6,12,42,.82) 100%);
}
.hero-inner { position: relative; z-index: 3; max-width: 860px; margin-bottom: 120px; }
.hero h1 {
  font-size: clamp(32px, 5.4vw, 68px); font-weight: 800; line-height: 1.02;
  letter-spacing: -.02em; text-transform: uppercase;
  text-shadow: 0 14px 50px rgba(0,0,0,.45);
}
.hero h1 .accent { color: #fff; }
.hero p.lead {
  margin: 22px auto 0; max-width: 520px; font-size: clamp(15px,1.6vw,17px);
  color: rgba(255,255,255,.85); font-weight: 400;
}
.hero-actions { margin-top: 38px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.5);
}
.scroll-hint .mouse { width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.4); border-radius: 12px; position: relative; }
.scroll-hint .mouse::after { content:""; position:absolute; top:7px; left:50%; width:3px; height:7px; margin-left:-1.5px; background:#fff; border-radius:2px; animation: wheel 1.7s var(--ease) infinite; }
@keyframes wheel { 0%{opacity:0; transform:translateY(-4px);} 40%{opacity:1;} 80%{opacity:0; transform:translateY(8px);} }

/* Stats bar — overlaps hero bottom (top 84px transparent = hero shows),
   everything below the hero seam is the mission purple so no white band shows */
.stats {
  position: relative; z-index: 5; margin-top: -84px;
  background: linear-gradient(180deg, transparent 0, transparent 84px, var(--pur-1) 84px, var(--pur-1) 100%);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 18px;
  background: transparent;
}
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 26px; box-shadow: var(--sh-lg);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -24px rgba(12,18,56,.34); }
.stat-num { font-family: var(--font-display); font-size: clamp(34px,4vw,46px); font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.stat-num .plus { color: var(--brand); }
.stat-label { margin-top: 4px; font-size: 14px; color: var(--muted); font-weight: 500; }

/* ============================================================
   Mission — purple point-cloud section
   ============================================================ */
.mission {
  position: relative; color: #fff; overflow: hidden;
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(180deg, var(--pur-1) 0%, var(--pur-2) 52%, var(--pur-3) 100%);
  padding-block: clamp(80px, 11vw, 150px);
}
.mission-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: .9; }
.mission::before { /* top glow */
  content: ""; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 80%; height: 70%; z-index: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(139,109,255,.35), transparent 70%);
}
.mission .container { position: relative; z-index: 3; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.mission .eyebrow { color: var(--cyan); margin-bottom: 16px; }
.mission h2 { font-size: clamp(26px,3.2vw,40px); line-height: 1.08; }
.mission p { margin-top: 18px; color: rgba(255,255,255,.78); font-size: 15.5px; max-width: 500px; }
.mission .btn { margin-top: 30px; }
.mission-media { position: relative; }
.mission-media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh-lg); border: 1px solid rgba(255,255,255,.12); aspect-ratio: 4/3; object-fit: cover; }
.mission-media::after {
  content: ""; position: absolute; inset: -16px; z-index: -1; border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(76,194,255,.4), rgba(139,109,255,.2)); filter: blur(30px); opacity: .6;
}

/* ============================================================
   Newsroom
   ============================================================ */
.news-featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; margin-bottom: 56px;
}
.news-featured .media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); }
.news-featured .media img { aspect-ratio: 16/10; object-fit: cover; transition: transform .8s var(--ease); width: 100%; }
.news-featured:hover .media img { transform: scale(1.04); }
.news-featured .date { font-size: 12.5px; font-weight: 600; color: var(--brand); letter-spacing: .04em; }
.news-featured h3 { font-size: clamp(20px,2vw,27px); margin: 11px 0 14px; line-height: 1.18; }
.news-featured p { color: var(--ink-2); font-size: 15px; max-width: 480px; }
.news-featured .learn { margin-top: 22px; }

.cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.news-card {
  border-radius: var(--r-lg); overflow: hidden; background: #fff;
  transition: transform .45s var(--ease); cursor: pointer; display: flex; flex-direction: column;
}
.news-card .media { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/11; }
.news-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.news-card:hover .media img { transform: scale(1.06); }
.news-card .body { padding: 18px 4px 4px; }
.news-card .date { font-size: 12px; font-weight: 600; color: var(--brand); }
.news-card h4 { font-size: 15.5px; line-height: 1.34; margin: 8px 0 13px; font-weight: 700; letter-spacing: 0; font-family: var(--font-body); }
.learn {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.learn svg { transition: transform .35s var(--ease); }
.news-card:hover .learn svg, .learn:hover svg { transform: translateX(4px); }

/* ============================================================
   Events
   ============================================================ */
.events { background: var(--bg-soft); }
.event-flagship {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; margin-bottom: 56px;
  background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md);
}
.event-flagship .body { padding: clamp(30px,4vw,56px); display: flex; flex-direction: column; justify-content: center; }
.event-flagship .tag { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.event-flagship h3 { font-size: clamp(22px,2.2vw,30px); margin: 12px 0 16px; }
.event-flagship .meta { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13.5px; margin-bottom: 14px; }
.event-flagship p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 26px; }
.event-flagship .media { position: relative; min-height: 320px; }
.event-flagship .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-flagship .badge {
  position: absolute; top: 18px; right: 18px; z-index: 2; background: #16a34a; color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 7px 14px; border-radius: var(--r-pill);
}

/* ============================================================
   Flagship publications
   ============================================================ */
.flagship-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.flagship-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 320px;
  display: flex; align-items: flex-end; color: #fff; box-shadow: var(--sh-md);
}
.flagship-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.flagship-card:hover img { transform: scale(1.06); }
.flagship-card::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(7,13,42,0) 35%, rgba(7,13,42,.9) 100%); }
.flagship-card .body { position: relative; z-index: 2; padding: 30px; }
.flagship-card .tags { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.flagship-card .tags span { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); padding: 5px 11px; border-radius: var(--r-pill); backdrop-filter: blur(4px); }
.flagship-card h3 { font-size: 20px; font-weight: 700; }
.flagship-card .if { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.78); }
.flagship-card .if b { color: var(--cyan); }

/* ============================================================
   Journals (magazine covers)
   ============================================================ */
.journals { background: var(--bg-soft); overflow: hidden; }
.journals-marquee {
  overflow: hidden; padding: 8px 0 4px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.marquee-track { display: flex; gap: 26px; width: max-content; animation: marquee 70s linear infinite; }
.journals-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.journal-card {
  flex: 0 0 218px; width: 218px; background: #fff; border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--sh-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.journal-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.journal-card .cover { aspect-ratio: 3/4; overflow: hidden; background: var(--bg-soft-2); position: relative; }
.journal-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.journal-card:hover .cover img { transform: scale(1.05); }
.journal-card .body { padding: 15px 16px 18px; }
.journal-card h4 { font-size: 13.5px; font-weight: 700; line-height: 1.34; font-family: var(--font-body); color: var(--ink); }

/* ============================================================
   Partners
   ============================================================ */
.partners-head { text-align: center; margin-bottom: 44px; }
.partners-head .eyebrow { display: block; }
.partners-head h2 { font-size: clamp(24px,2.8vw,34px); margin-top: 9px; }
.partners-head p { color: var(--ink-2); margin-top: 11px; font-size: 15px; }
.partners-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.partner {
  background: #fdfdff; min-height: 148px; display: grid; place-items: center; padding: 28px;
  transition: background .35s, transform .35s var(--ease);
}
.partner:hover { background: #fff; }
.partner svg, .partner img { max-height: 60px; max-width: 82%; opacity: .92; transition: opacity .4s, transform .4s var(--ease); }
.partner:hover svg, .partner:hover img { opacity: 1; transform: scale(1.06); }

/* ============================================================
   CTA
   ============================================================ */
.cta { position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(68% 52% at 50% 120%, rgba(160,228,255,.62) 0%, rgba(64,154,222,.22) 26%, transparent 54%),
    radial-gradient(100% 95% at 50% 0%, #1c4f88 0%, #123c69 38%, #0b274c 68%, #061730 100%);
  padding-block: clamp(70px,9vw,124px);
}
/* central dark "planet" with the CAA mark embossed on it */
.cta-planet { position: absolute; z-index: 1; pointer-events: none;
  width: min(560px, 62vw); aspect-ratio: 1; border-radius: 50%;
  right: 5%; top: 50%; transform: translateY(-50%);
  background: radial-gradient(circle at 40% 30%, #20355b 0%, #122348 36%, #0b1832 62%, #060f24 100%);
  box-shadow: inset -24px -32px 96px rgba(0,0,0,.66), inset 28px 26px 74px rgba(96,176,244,.16), 0 0 110px rgba(46,134,214,.28);
}
.cta-planet::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 5%, rgba(174,228,255,.5), transparent 40%); }
.cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.cta .container { position: relative; z-index: 3; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.cta h2 { font-size: clamp(26px,3.2vw,42px); margin: 0; line-height: 1.12; max-width: 600px; text-shadow: 0 8px 30px rgba(0,0,0,.4); }
.cta h2 .hl { color: var(--brand); }
.cta-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.cta-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.cta-brand img { width: 156px; filter: brightness(0) invert(1); opacity: .96; filter: brightness(0) invert(1) drop-shadow(0 0 24px rgba(120,200,255,.4)); }
.cta-brand b { font-family: var(--font-display); font-size: clamp(22px,2.4vw,30px); color: #fff; letter-spacing: .14em; font-weight: 800; }
.cta-brand span { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.62); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding-block: 72px 36px; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(4,1fr); gap: 44px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 40px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-brand b { display:block; color:#fff; font-family: var(--font-display); font-size: 16px; margin-bottom: 10px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; }
.footer-col h5 { color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-body); font-weight: 600; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 14px; transition: color .25s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 13px; flex-wrap: wrap; gap: 12px; }
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-pill); transition: .3s var(--ease); }
.footer-bottom .socials a:hover { background: #fff; color: var(--navy); transform: translateY(-3px); }

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1320px) { .brand-text span { display: none; } }
@media (max-width: 1100px) {
  .main-nav { display: none; }
}
@media (max-width: 1080px) {
  .mission .container { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .news-featured { grid-template-columns: 1fr; gap: 26px; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .event-flagship { grid-template-columns: 1fr; }
  .event-flagship .media { min-height: 240px; order: -1; }
  .flagship-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr 1fr; }
  .cta .container { grid-template-columns: 1fr; gap: 30px; }
  .cta-brand { padding-top: 10px; }
  .cta-brand img { width: 118px; }
  .cta-planet { right: auto; left: 50%; top: 74%; transform: translate(-50%,-50%); width: min(420px, 84vw); }
}
@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 22px 18px; }
  .cards-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .header-actions .lang { display: none; }
  .header-actions .icon-btn:not(.menu-toggle) { display: none; }
  .header-actions .btn-primary { padding: 10px 16px; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: rgba(7,13,42,.98); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 80px 32px;
  transform: translateX(100%); transition: transform .5s var(--ease); color: #fff;
}
.mobile-menu.open { transform: none; }
.mobile-menu a { font-family: var(--font-display); font-size: 30px; font-weight: 700; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }

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