/* ============================================
   SAORA+ WEBSITE — Premium CSS
   LFM Consultancy design system
   © 2026 Saora Industries Sdn Bhd
   ============================================ */

/* Accessibility: screen-reader-only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Self-hosted Nata Sans variable font */
@font-face {
  font-family: 'Nata Sans';
  src: url('../fonts/NataSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Base palette (premium dark) */
  --bg-dark: #1a1a18;
  --bg-dark-rgb: 26, 26, 24;
  --bg-soft: #222220;
  --bg-card: #2a2a28;
  --text-cream: #f3f2ee;
  --text-cream-rgb: 243, 242, 238;
  --text-muted: rgba(243, 242, 238, 0.6);
  --text-dim: rgba(243, 242, 238, 0.4);
  --border-subtle: rgba(243, 242, 238, 0.08);
  --border-light: rgba(243, 242, 238, 0.15);

  /* Saora+ accents (used sparingly per brand guidelines) */
  --accent: #FF4001;
  --accent-rgb: 255, 64, 1;
  --brand-pink: #F7C0D0;
  --brand-maroon: #330B17;

  /* Light sections */
  --bg-light: #f3f2ee;
  --text-dark: #1a1a18;
  --text-dark-muted: rgba(26, 26, 24, 0.6);
  --border-dark: rgba(26, 26, 24, 0.1);

  /* Typography */
  --font: 'Nata Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Scale */
  --text-xs: 0.7rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.5rem;
  --text-5xl: 5rem;
  --text-display: 8rem;

  /* Spacing */
  --pad: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(5rem, 12vw, 10rem);
  --gap-sm: 0.75rem;
  --gap: 1.5rem;
  --gap-lg: 2.5rem;
  --gap-xl: 4rem;

  /* Layout */
  --container: 1200px;
  --container-sm: 960px;
  --container-lg: 1400px;

  /* Effects */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.35s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; }
body { font-family: var(--font); font-weight: 400; font-size: var(--text-base); line-height: 1.6; color: var(--text-cream); background: var(--bg-dark); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
.allcaps { text-transform: uppercase; letter-spacing: 0.12em; font-size: var(--text-xs); font-weight: 600; }
.image { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.container-sm { max-width: var(--container-sm); margin: 0 auto; padding: 0 var(--pad); }
.container-lg { max-width: var(--container-lg); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section-pad) 0; position: relative; overflow-x: hidden; }
.pad { padding: 0 var(--pad); }

/* ---------- Buttons (premium style with hover bg reveal) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.85em 2em; font-weight: 500; font-size: var(--text-sm);
  border-radius: 100px; position: relative; overflow: hidden;
  transition: all var(--dur) var(--ease); z-index: 1;
}
.btn::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); z-index: -1;
}
.btn:hover::before { transform: scaleX(1); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary::before { background: #d63600; }
.btn-primary:hover { transform: translateY(-2px); }

.btn-outline { border: 1px solid var(--border-light); }
.btn-outline::before { background: rgba(255,255,255,0.08); }

.btn-arrow::after { content: '→'; margin-left: 0.2em; transition: transform 0.3s var(--ease); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Section Heading ---------- */
.heading-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.35em 1em; border: 1px solid var(--border-light);
  border-radius: 100px; margin-bottom: 1.5rem;
}
.heading-tag.is-dark { border-color: var(--border-dark); color: var(--text-dark); }
.section-heading h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); max-width: 680px; }

/* ---------- Square decorative elements ---------- */
.squares { display: flex; gap: 3px; position: absolute; }
.sq { width: 5px; height: 5px; border-radius: 1.5px; background: var(--accent); }
.sq.white { background: #fff; }
.sq.muted { background: var(--text-muted); }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.25rem 0; transition: all var(--dur) ease;
}
.navbar.scrolled {
  background: rgba(var(--bg-dark-rgb), 0.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle); padding: 0.75rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo img, .nav-logo svg { height: 26px; width: auto; }
.logo-img { height: 36px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-size: var(--text-sm); font-weight: 500; opacity: 0.7; transition: opacity var(--dur); position: relative; }
.nav-link:hover { opacity: 1; }
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1.5px;
  background: var(--accent); transition: width var(--dur) var(--ease);
}
.nav-link:hover::after { width: 100%; }
.nav-cta { margin-left: 0.5rem; }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 28px; z-index: 1001; }
.nav-toggle span { display: block; width: 100%; height: 1.5px; background: var(--text-cream); transition: all var(--dur); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ============================================
   HERO (full-bleed image bg + overlay)
   ============================================ */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--bg-dark-rgb),0.3) 0%, rgba(var(--bg-dark-rgb),0.5) 50%, rgba(var(--bg-dark-rgb),0.9) 100%);
}
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: var(--gap); padding: 6rem var(--pad) 4rem; }
.hero-left { width: 100%; max-width: 700px; }
.hero-left h1 { font-size: clamp(1.6rem, 4vw, 3.2rem); font-weight: 400; line-height: 1.12; margin-bottom: 1rem; }
.hero-left h1 strong { font-weight: 700; }
.hero-tag-inline { display: inline-flex; align-items: center; gap: 8px; }
.hero-tag-inline .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero-right { max-width: 520px; }
.hero-right p { color: var(--text-muted); font-size: clamp(0.8rem, 2.5vw, var(--text-sm)); line-height: 1.7; }

/* ============================================
   TAGLINE VIDEO
   ============================================ */
.tagline-video-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}
.tagline-video-wrap {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tagline-vid {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
  filter: brightness(0.95);
}

/* ============================================
   STATEMENT BANNER
   ============================================ */
.statement-banner {
  background: var(--brand-pink);
  width: 100%;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 5rem);
  position: relative;
}
.statement-inner {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 1600px;
  margin: 0 auto;
}
.statement-cross-wrap {
  flex-shrink: 0;
  width: clamp(140px, 20vw, 320px);
  height: clamp(140px, 20vw, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.statement-cross-svg {
  width: 100%;
  height: 100%;
  will-change: transform;
}
.statement-text {
  flex: 1;
}
.statement-text h2 {
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--brand-maroon);
  margin: 0;
}
.statement-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-top: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid rgba(51, 11, 23, 0.12);
}
.statement-sub .allcaps {
  color: var(--brand-maroon);
  opacity: 0.6;
}
.statement-sub .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .statement-inner {
    flex-direction: column;
    text-align: center;
  }
  .statement-cross-wrap {
    width: 120px;
    height: 120px;
  }
  .statement-sub {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-section { padding: 1.25rem 0; overflow: hidden; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.marquee-track { display: flex; gap: 3rem; white-space: nowrap; }
.marquee-item { font-size: var(--text-2xl); font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0; display: flex; align-items: center; gap: 3rem; }
.marquee-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ============================================
   ABOUT GRID (vertical cards)
   ============================================ */
.section-about { background: var(--bg-dark); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: var(--gap);
  align-items: stretch;
}
.v-card {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 2.5rem;
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease);
}
.v-card:hover { transform: translateY(-4px); }
.v-card.is-image { padding: 0; min-height: 400px; }
.v-card.is-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-card.is-image .v-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(var(--bg-dark-rgb),0.85) 100%);
}
.v-card.is-accent { background: var(--accent); }
.v-card .card-title { font-size: var(--text-2xl); font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.v-card .card-title .dim { opacity: 0.6; font-weight: 400; }
.v-card p { color: var(--text-muted); line-height: 1.7; font-size: var(--text-sm); }
.v-card.is-accent p { color: rgba(255,255,255,0.85); }
.v-card .card-bottom { margin-top: auto; padding-top: 2rem; }
.v-card .big-num { font-size: var(--text-4xl); font-weight: 800; line-height: 1; color: var(--accent); }
.v-card.is-accent .big-num { color: #fff; }
.v-card .sub-text { font-size: var(--text-xs); color: var(--text-muted); margin-top: 4px; }
.v-card.is-accent .sub-text { color: rgba(255,255,255,0.7); }

/* About card carousel */
.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.carousel-slide.active {
  opacity: 1;
}
.carousel-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* Tab panel carousel */
.tab-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.tab-carousel-slide.active {
  opacity: 1;
}
.tab-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

/* ============================================
   TABS (progress bar + large image)
   ============================================ */
.section-tabs { background: var(--bg-dark); }
.tabs-component { display: grid; grid-template-columns: 400px 1fr; gap: var(--gap-xl); align-items: start; }
.tab-content-wrap { display: flex; flex-direction: column; }
.tab-list { display: flex; flex-direction: column; gap: 4px; }
.tab-item {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg); cursor: pointer; opacity: 0.5;
  transition: all var(--dur) ease; border: 1px solid transparent; position: relative; overflow: hidden;
}
.tab-item:hover { opacity: 0.7; background: rgba(255,255,255,0.02); }
.tab-item.active { opacity: 1; background: rgba(255,255,255,0.04); border-color: var(--border-subtle); }
.tab-progress { position: absolute; bottom: 0; left: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.tab-icon { width: 56px; height: 56px; border-radius: 14px; background: transparent; border: 2px solid rgba(var(--accent-rgb),0.25); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.3s ease; }
.tab-icon .tab-mark-icon { width: 36px; height: 36px; object-fit: contain; }
.tab-item.active .tab-icon { background: var(--accent); border-color: var(--accent); }
.tab-mark-icon, .dir-mark-icon { width: 32px; height: 32px; object-fit: contain; }

/* Grayscale placeholder filter for images awaiting final assets */
.hero-bg img,
.case-card-img img,
.tab-image-panel img,
.v-card.is-image img,
.cta-bg img {
  filter: grayscale(100%) brightness(0.7);
  transition: filter 0.4s ease;
}
.case-card:hover .case-card-img img,
.tab-image-panel.active img { filter: grayscale(60%) brightness(0.8); }
.tab-item h5 { font-size: var(--text-md); font-weight: 600; margin-bottom: 4px; }
.tab-item p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.5; }
.tab-item.active p { color: var(--text-cream); opacity: 0.7; }

/* Tab image panel */
.tab-image-wrap { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-card); }
.tab-image-panel { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s ease; }
.tab-image-panel.active { opacity: 1; }
.tab-image-panel img { width: 100%; height: 100%; object-fit: cover; }
.tab-image-panel .tab-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(var(--bg-dark-rgb),0.8) 100%);
}
.tab-img-bottom { position: absolute; bottom: 2rem; left: 0; right: 0; padding: 0 1.5rem; text-align: center; }
.tab-img-bottom .line { display: none; }
.tab-img-bottom p { font-size: var(--text-sm); color: var(--text-cream); opacity: 0.8; }

/* ============================================
   CASE STUDIES (large feature cards)
   ============================================ */
.section-cases { background: var(--bg-dark); }
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.case-card {
  background: var(--bg-card); border-radius: var(--radius-xl); overflow: hidden;
  position: relative; min-height: 500px; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease);
}
.case-card:hover { transform: translateY(-6px); }
.case-card-img { position: relative; height: 280px; overflow: hidden; }
.case-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.case-card:hover .case-card-img img { transform: scale(1.05); }
.case-card-img .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(var(--bg-dark-rgb),0.4)); }

/* Case card carousel slides */
.case-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease-in-out; }
.case-slide.active { opacity: 1; }
.case-progress-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.1); z-index: 3; }
.case-progress-fill { height: 100%; width: 0%; background: var(--accent); transition: none; }
.case-label {
  position: absolute; top: 1rem; left: 1rem; padding: 0.3em 0.8em;
  background: var(--accent); color: #fff; border-radius: 100px;
  font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.case-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.case-body h3 { font-size: var(--text-lg); font-weight: 600; margin-bottom: 0.75rem; line-height: 1.3; }
.case-body > p { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.7; margin-bottom: 1rem; }
.case-stats { display: flex; gap: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border-subtle); margin-top: auto; }
.case-stat .val { font-size: var(--text-xl); font-weight: 800; color: var(--accent); line-height: 1; }
.case-stat .lbl { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }

/* ============================================
   ORANG ASLI — EXPANDABLE INFO
   ============================================ */
.section-oa-info { background: var(--bg-dark); padding: var(--gap-lg) 0; }
.oa-teaser {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 2rem; border-radius: var(--radius-xl);
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  cursor: pointer; transition: border-color 0.3s ease, background 0.3s ease;
}
.oa-teaser:hover { border-color: var(--accent); background: var(--bg-soft); }
.oa-teaser-label { font-size: var(--text-xs); color: var(--accent); letter-spacing: 0.12em; display: block; margin-bottom: 0.3rem; }
.oa-teaser h3 { font-size: var(--text-lg); font-weight: 700; color: var(--text-cream); margin: 0; }
.oa-toggle-btn { flex-shrink: 0; }
.oa-teaser[aria-expanded="true"] .oa-toggle-btn { display: none; }

/* Expandable panel */
.oa-panel {
  max-height: 0; overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 0;
}
.oa-panel.open { max-height: 1200px; opacity: 1; }
.oa-panel-inner {
  padding: 2rem; margin-top: 1rem;
  border-radius: var(--radius-xl); background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

/* 3-column grid */
.oa-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
.oa-col h4 { font-size: var(--text-md); color: var(--accent); margin-bottom: 0.75rem; }
.oa-col p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; margin-bottom: 0.75rem; text-align: justify; hyphens: manual; -webkit-hyphens: manual; }

/* Ethnic group cards */
.oa-ethnic-groups { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; }
.oa-ethnic {
  padding: 0.75rem 1rem; border-radius: var(--radius);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle);
  text-align: justify; hyphens: manual; -webkit-hyphens: manual;
}
.oa-ethnic-name { display: block; font-weight: 700; color: var(--text-cream); font-size: 0.85rem; margin-bottom: 0.25rem; }
.oa-ethnic-desc { font-size: 0.78rem; color: var(--text-dim); line-height: 1.5; text-align: justify; hyphens: manual; -webkit-hyphens: manual; }

/* Stats mini rows */
.oa-stats-mini { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.oa-stat-row { display: flex; align-items: baseline; gap: 0.75rem; }
.oa-stat-val { font-size: 1.4rem; font-weight: 800; color: var(--accent); flex-shrink: 0; }
.oa-stat-lbl { font-size: 0.8rem; color: var(--text-dim); }

/* Footer */
.oa-panel-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border-subtle);
}
.oa-source { font-size: 0.7rem; color: var(--text-dim); font-style: italic; margin: 0; }
.oa-close-btn {
  background: none; border: 1px solid var(--border-light); color: var(--text-muted);
  padding: 0.4em 1.2em; border-radius: var(--radius); font-size: 0.8rem;
  cursor: pointer; transition: color 0.3s, border-color 0.3s;
}
.oa-close-btn:hover { color: var(--text-cream); border-color: var(--accent); }

@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .section-oa-info, .section-cta { overflow-x: hidden; }
  .oa-grid { grid-template-columns: 1fr; }
  .oa-teaser {
    flex-direction: column; gap: 1rem; text-align: center;
    max-width: 100%; box-sizing: border-box;
    touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  }
  .oa-teaser .oa-toggle-btn { pointer-events: none; }
  .oa-panel { max-width: 100%; box-sizing: border-box; overflow-x: hidden; }
  .oa-panel-inner { padding: 1.25rem; max-width: 100%; box-sizing: border-box; }
  .faq-question { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .faq-list { max-width: 100%; }
}

/* ============================================
   IMPACT (big numbers feature section)
   ============================================ */
.section-impact { background: var(--bg-soft); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-lg); text-align: center; }
.impact-num { font-size: var(--text-4xl); font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }
.impact-label { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ============================================
   ROSLING-STYLE IMPACT DASHBOARD
   ============================================ */
.section-dashboard { background: var(--bg-dark); }
.dashboard-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-lg); margin-bottom: var(--gap-xl);
}
.chart-card {
  background: var(--bg-card); border-radius: var(--radius-xl); padding: 2rem;
  border: 1px solid var(--border-subtle);
}
.chart-title { font-size: var(--text-lg); font-weight: 600; margin-bottom: 0.25rem; }
.chart-subtitle { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: 1.5rem; }
.chart-source { font-size: 0.65rem; color: var(--text-dim); margin-top: 1rem; font-style: italic; }

/* Rosling Wrap */
.rosling-wrap {
  background: var(--bg-card); border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle); padding: 2rem;
  margin-bottom: var(--gap-lg);
}

/* Dual Panel: Map + Info */
.rosling-dual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  margin-bottom: 1.5rem;
}
.rosling-map-panel { display: flex; flex-direction: column; }
.map-container {
  background: rgba(0, 0, 0, 0.25); border-radius: var(--radius);
  padding: 1rem; position: relative; flex: 1;
}
#malaysiaMap { width: 100%; height: auto; max-height: 480px; }

/* SVG Map */
.map-outline {
  fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1.5; stroke-linejoin: round;
}
.map-state-label {
  font-size: 8px; fill: rgba(255, 255, 255, 0.2);
  font-family: 'Nata Sans', sans-serif; font-weight: 500;
}
.map-hq-label {
  font-size: 7px; fill: var(--accent); font-weight: 600;
  font-family: 'Nata Sans', sans-serif;
}

/* Settlement dots — inactive (dim grey) */
.settlement-group circle {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 0.5;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Settlement dots — active (glowing) */
.settlement-group.active circle {
  fill: var(--accent);
  stroke: rgba(var(--accent-rgb), 0.4);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.6));
  animation: pulseGlow 2.5s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.4)); }
  100% { filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.8)); }
}

/* Map legend */
.map-caption {
  display: flex; align-items: center; gap: 1.25rem;
  justify-content: center; margin-top: 0.75rem;
  font-size: 0.6rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.map-caption-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; margin-right: 4px;
}
.map-caption-dot.inactive { background: rgba(255, 255, 255, 0.1); }
.map-caption-dot.active { background: var(--accent); box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.5); }

/* Info Panel */
.rosling-info-panel {
  display: flex; flex-direction: column; justify-content: flex-start;
}
.rosling-year-display { flex-shrink: 0; }
.rosling-year {
  font-size: clamp(4rem, 8vw, 7rem); font-weight: 800; line-height: 1;
  color: var(--accent); opacity: 0.25;
  transition: opacity 0.3s ease;
  text-shadow: 0 0 60px rgba(var(--accent-rgb), 0.3);
}
.rosling-narrative { margin-bottom: 1.5rem; }
.rosling-narrative p {
  font-size: var(--text-sm); color: var(--text-cream); line-height: 1.7;
  opacity: 0.8; transition: opacity 0.4s ease;
  min-height: 5em;
}

/* Live counters */
.rosling-live-counters {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-bottom: 1rem;
}
.live-counter { text-align: center; }
.live-counter-num {
  display: block; font-size: var(--text-2xl); font-weight: 800;
  line-height: 1; margin-bottom: 0.2rem;
  transition: transform 0.3s var(--ease);
}
.live-counter-lbl {
  font-size: 0.6rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* State tag */
.rosling-state-tag {
  font-size: var(--text-xs); color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600; min-height: 1.2em;
  padding: 0.4em 0.8em; border-radius: 100px;
  background: rgba(var(--accent-rgb), 0.1);
  display: inline-block;
  transition: opacity 0.3s ease;
}
.legend-dot {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block;
}

/* Timeline controls */
.rosling-controls {
  display: flex; align-items: center; gap: 1rem;
}
.rosling-play-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s var(--ease); flex-shrink: 0;
  cursor: pointer; border: none;
}
.rosling-play-btn:hover { transform: scale(1.1); background: #d63600; }
.rosling-timeline-wrap { flex: 1; }
.rosling-slider {
  width: 100%; height: 6px; -webkit-appearance: none; appearance: none;
  background: rgba(255, 255, 255, 0.08); border-radius: 3px;
  outline: none; cursor: pointer;
}
.rosling-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px;
  border-radius: 50%; background: var(--accent);
  cursor: pointer; border: 3px solid var(--bg-card);
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.4);
  transition: transform 0.2s;
}
.rosling-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.rosling-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  border: 3px solid var(--bg-card);
}
.rosling-year-marks {
  position: relative; height: 1.2em;
  font-size: 0.6rem; color: var(--text-dim);
  margin-top: 6px;
}
.rosling-year-marks span {
  position: absolute; transform: translateX(-50%);
}
.rosling-year-marks span:nth-child(1) { left: 0%; transform: translateX(0); }
.rosling-year-marks span:nth-child(2) { left: 18.18%; }
.rosling-year-marks span:nth-child(3) { left: 36.36%; }
.rosling-year-marks span:nth-child(4) { left: 54.55%; }
.rosling-year-marks span:nth-child(5) { left: 72.73%; }
.rosling-year-marks span:nth-child(6) { left: 100%; transform: translateX(-100%); }

/* Poverty bar chart */
.poverty-bars { display: flex; flex-direction: column; gap: 1.5rem; }
.poverty-row { display: flex; flex-direction: column; gap: 0.5rem; }
.poverty-label { font-size: var(--text-sm); color: var(--text-cream); font-weight: 500; }
.poverty-bar-track {
  display: flex; flex-direction: column; gap: 6px;
  background: rgba(255, 255, 255, 0.03); border-radius: 6px; padding: 6px;
}
.poverty-bar {
  height: 32px; border-radius: 4px; display: flex;
  align-items: center; justify-content: flex-end; padding-right: 10px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 0;
}
.poverty-bar.oa-bar { background: var(--accent); }
.poverty-bar.nat-bar { background: rgba(255, 255, 255, 0.15); position: relative; }
.poverty-bar.nat-bar .poverty-bar-value { position: absolute; left: 100%; margin-left: 8px; color: var(--text-muted); }
.poverty-bar-value {
  font-size: 0.75rem; font-weight: 700; color: #fff;
  white-space: nowrap;
}
.poverty-legend {
  display: flex; gap: 1.5rem; margin-top: 0.5rem;
  font-size: var(--text-xs); color: var(--text-muted);
}
.poverty-legend span { display: flex; align-items: center; gap: 6px; }

/* Summary card */
.rosling-summary-card { display: flex; flex-direction: column; }
.rosling-final-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  flex: 1; align-content: center;
}
.rosling-stat { text-align: center; }
.rosling-stat-num {
  display: block; font-size: var(--text-3xl); font-weight: 800;
  line-height: 1; margin-bottom: 0.25rem;
}
.rosling-stat-lbl {
  font-size: var(--text-xs); color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}

.dashboard-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
  background: var(--bg-card); border-radius: var(--radius-xl);
  padding: 2rem; border: 1px solid var(--border-subtle);
}
.dash-stat { text-align: center; }
.dash-stat-value {
  display: block; font-size: var(--text-2xl); font-weight: 800;
  color: var(--accent); margin-bottom: 0.25rem;
}
.dash-stat-label {
  font-size: var(--text-xs); color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.4;
}

/* ============================================
   AWARDS & RECOGNITION
   ============================================ */
.section-awards { background: var(--bg-soft); border-top: 1px solid var(--border-subtle); }
.awards-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
}
.award-card {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 2rem;
  text-align: center; border: 1px solid var(--border-subtle);
  transition: all var(--dur) var(--ease);
}
.award-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.award-year {
  font-size: var(--text-3xl); font-weight: 800; color: var(--accent);
  margin-bottom: 0.75rem; line-height: 1;
}
.award-card h4 {
  font-size: var(--text-md); font-weight: 700; margin-bottom: 0.5rem;
  line-height: 1.3;
}
.award-card p { font-size: var(--text-sm); color: var(--text-muted); }

/* ============================================
   PARTNERS & ACCREDITATION
   ============================================ */
.section-partners { background: var(--bg-dark); padding: var(--gap-xl) 0; }
.partners-strip {
  text-align: center; margin-bottom: var(--gap-xl);
  padding-bottom: var(--gap-xl);
  border-bottom: 1px solid var(--border-subtle);
}
.partners-label {
  font-size: var(--text-xs); text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-dim); margin-bottom: 1.25rem;
}
.partners-marquee {
  overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.partners-track {
  display: flex; align-items: center; gap: 0;
  white-space: nowrap; width: max-content;
  animation: partnerScroll 35s linear infinite;
}
.partners-marquee:hover .partners-track {
  animation-play-state: paused;
}
.partner-logo-text {
  font-size: var(--text-md); font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.02em; padding: 0 1rem;
  transition: color 0.3s ease;
}
.partner-logo-text:hover { color: var(--text-cream); }
.partner-dot {
  color: var(--text-dim); font-size: 1.2rem; flex-shrink: 0;
}
@keyframes partnerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.accreditation-badges {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap);
}
.badge-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 1.5rem; border: 1px solid var(--border-subtle);
}
.badge-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(76, 175, 80, 0.15); color: #4CAF50;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; flex-shrink: 0;
}
.badge-item strong {
  font-size: var(--text-sm); font-weight: 600; display: block;
  margin-bottom: 0.25rem;
}
.badge-item p {
  font-size: var(--text-xs); color: var(--text-muted); line-height: 1.5;
  margin: 0;
}

/* ============================================
   DIRECTION
   ============================================ */
.section-direction { background: var(--bg-light); color: var(--text-dark); }
.direction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-xl); align-items: center; }
.direction-left h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 1.25rem; color: var(--text-dark); }
.direction-left h2 strong { font-weight: 700; }
.direction-left p { color: var(--text-dark-muted); font-size: var(--text-md); line-height: 1.7; margin-bottom: 1rem; text-align: justify; hyphens: manual; -webkit-hyphens: manual; }
.direction-cards { display: flex; flex-direction: column; gap: var(--gap); }
.dir-card {
  background: #fff; border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
  display: flex; gap: 1rem; align-items: flex-start; transition: all var(--dur) var(--ease);
  border: 1px solid var(--border-dark);
}
.dir-card:hover { transform: translateX(4px); box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.dir-icon { width: 44px; height: 44px; border-radius: 10px; background: none; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.dir-card h4 { font-size: var(--text-md); font-weight: 600; margin-bottom: 2px; color: var(--text-dark); }
.dir-card p { font-size: var(--text-sm); color: var(--text-dark-muted); line-height: 1.5; }

/* ============================================
   CTA (glassmorphic style)
   ============================================ */
.section-cta { position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: center; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg .cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--bg-dark-rgb),0.7) 0%, rgba(var(--bg-dark-rgb),0.85) 100%);
}
.cta-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-xl); align-items: center; }
.cta-text h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1.5rem; }
.cta-text h2 strong { font-weight: 700; }
.cta-text p { color: var(--text-muted); font-size: var(--text-md); line-height: 1.7; margin-bottom: 2rem; text-align: justify; hyphens: manual; -webkit-hyphens: manual; }
.cta-info { margin-bottom: 1rem; }
.cta-info .label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 2px; }
.cta-info .value { font-size: var(--text-lg); }

/* Glass card */
.glass-card {
  background: rgba(var(--text-cream-rgb), 0.05);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(var(--text-cream-rgb), 0.1);
  border-radius: var(--radius-xl); padding: 2.5rem;
}
.glass-card h4 { font-size: var(--text-2xl); font-weight: 700; margin-bottom: 0.5rem; }
.glass-card > p { color: var(--text-muted); margin-bottom: 1.5rem; }
.form-input {
  width: 100%; padding: 0.8em 1.2em; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
  color: var(--text-cream); font-family: inherit; font-size: var(--text-sm);
  margin-bottom: var(--gap-sm); outline: none; transition: border-color 0.2s;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus { border-color: var(--accent); }
textarea.form-input { min-height: 100px; resize: vertical; }

/* Form feedback */
.form-feedback {
  text-align: center; padding: 2rem 1rem;
}
.form-feedback-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.form-feedback p { color: var(--text-muted); font-size: var(--text-sm); }
.btn.is-sending { opacity: 0.6; pointer-events: none; }
.cf-turnstile { margin-bottom: var(--gap-sm); }

/* ============================================
   FAQ
   ============================================ */
.section-faq { background: var(--bg-dark); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; font-size: var(--text-md); font-weight: 500; text-align: left;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--border-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 0.9rem; transition: all var(--dur) var(--ease); pointer-events: none;
}
.faq-item.active .faq-icon { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--dur) ease; }
.faq-answer-inner { padding-bottom: 1.25rem; color: var(--text-muted); line-height: 1.8; font-size: var(--text-sm); }
.faq-item.active .faq-answer { max-height: 300px; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--bg-dark); border-top: 1px solid var(--border-subtle); padding: 4rem 0 1.5rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: var(--gap-xl); margin-bottom: 3rem; }
.footer-brand { max-width: 300px; }
.footer-brand p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; margin: 1rem 0 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
  transition: all var(--dur) var(--ease);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.footer-col h6 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-cream); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: var(--text-sm); color: var(--text-muted); padding: 0.35em 0; transition: all 0.2s; }
.footer-col a:hover { color: var(--accent); transform: translateX(3px); }
.footer-nl { display: flex; margin-top: 0.75rem; }
.footer-nl input { flex: 1; padding: 0.65em 1em; background: rgba(255,255,255,0.06); border: 1px solid var(--border-light); border-right: none; border-radius: var(--radius) 0 0 var(--radius); color: var(--text-cream); font-family: inherit; font-size: var(--text-sm); outline: none; }
.footer-nl input::placeholder { color: var(--text-dim); }
.footer-nl button { padding: 0.65em 1.25em; background: var(--accent); color: #fff; border-radius: 0 var(--radius) var(--radius) 0; font-weight: 600; transition: background 0.2s; }
.footer-nl button:hover { background: #d63600; }
.footer-display { font-size: clamp(3rem, 9vw, 7rem); font-weight: 800; color: rgba(var(--text-cream-rgb),0.04); text-transform: uppercase; text-align: center; padding: 1rem 0; }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding-top: 1rem; display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--text-dim); }
.footer-bottom a { transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent); }

/* Scroll to top */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px;
  border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  opacity: 0; transform: translateY(20px); transition: all var(--dur) var(--ease); z-index: 999;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); }

/* Reveal base */
.reveal { opacity: 0; transform: translateY(40px); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-content { flex-direction: column; align-items: flex-start; }
  .hero-right { max-width: 100%; }
  .about-grid { grid-template-columns: 1fr; }
  .v-card { min-height: 300px; }
  .tabs-component { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .direction-grid { grid-template-columns: 1fr; }
  .cta-content { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .rosling-dual { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Mobile nav — full-screen overlay */
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background: rgba(var(--bg-dark-rgb), 0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; align-items: center;
    padding: 2rem; gap: 1.5rem;
    transition: right var(--dur) var(--ease); z-index: 1000;
  }
  .nav-links.open { right: 0; }
  .nav-link { font-size: var(--text-lg); opacity: 1; }
  .nav-toggle { display: flex; z-index: 1001; }
  .nav-cta { margin-left: 0; }

  /* Hero text padding — prevent clipping on narrow viewports */
  .hero-content { padding-left: 0.5rem; padding-right: 0.5rem; }
  .hero-left h1 { padding-right: 1rem; }
  .hero-right p { font-size: clamp(0.8rem, 3vw, 1rem); }

  /* Prevent text overflow globally */
  h1, h2, h3, h4, h5, h6, p { overflow-wrap: break-word; word-wrap: break-word; }

  /* Rosling year — scale down */
  .rosling-year { font-size: clamp(3rem, 12vw, 5rem); }

  /* Impact grid tighter */
  .impact-num { font-size: clamp(1.8rem, 6vw, 3rem); }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  /* Statement banner */
  .statement-text h2 { font-size: clamp(1.8rem, 5vw, 3rem); }
}

@media (max-width: 480px) {
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .case-stats { flex-wrap: wrap; }
  .awards-grid { grid-template-columns: 1fr; }
  .accreditation-badges { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .rosling-live-counters { grid-template-columns: 1fr; }
  .rosling-final-stats { grid-template-columns: 1fr; }
  .hero-left h1 { font-size: clamp(1.4rem, 6vw, 2rem); }
  .hero-right p { font-size: clamp(0.75rem, 3.5vw, 0.9rem); }
}

/* ============================================
   AI CHAT WIDGET (Glassmorphic)
   ============================================ */
.chat-widget { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; pointer-events: none; }

/* FAB toggle */
.chat-fab {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(var(--accent-rgb), 0.4);
  transition: all 0.3s var(--ease); cursor: pointer; border: none;
  position: relative; pointer-events: auto;
}
.chat-fab:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.5); }
.chat-fab-icon, .chat-fab-close { position: absolute; transition: all 0.3s var(--ease); display: flex; align-items: center; justify-content: center; }
.chat-fab-close { opacity: 0; transform: rotate(-90deg) scale(0.5); font-size: 1.2rem; }
.chat-widget.open .chat-fab-icon { opacity: 0; transform: rotate(90deg) scale(0.5); }
.chat-widget.open .chat-fab-close { opacity: 1; transform: rotate(0) scale(1); }

/* Panel */
.chat-panel {
  width: 380px; max-height: 520px;
  background: rgba(var(--bg-dark-rgb), 0.92);
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(var(--text-cream-rgb), 0.1);
  border-radius: var(--radius-xl);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.35s var(--ease);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.chat-widget.open .chat-panel {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(var(--text-cream-rgb), 0.08);
  background: rgba(var(--text-cream-rgb), 0.03);
}
.chat-header-left { display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: rgba(var(--accent-rgb), 0.1); padding: 4px; }
.chat-title { font-size: 0.9rem; font-weight: 600; }
.chat-subtitle { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.chat-close {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(var(--text-cream-rgb), 0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--text-muted);
  transition: all 0.2s; cursor: pointer; border: none;
}
.chat-close:hover { background: rgba(var(--text-cream-rgb), 0.12); color: var(--text-cream); }

/* Messages area */
.chat-messages {
  flex: 1; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  min-height: 300px; max-height: 350px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
  overscroll-behavior: contain;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* Message bubbles */
.chat-msg { display: flex; gap: 8px; align-items: flex-start; animation: chatMsgIn 0.3s var(--ease) both; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-msg-avatar { width: 28px; height: 28px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.chat-msg-avatar img { width: 100%; height: 100%; object-fit: contain; background: rgba(var(--accent-rgb), 0.1); padding: 3px; border-radius: 8px; }
.chat-msg-bubble {
  max-width: 85%; padding: 0.65rem 0.9rem;
  border-radius: 14px; font-size: 0.85rem; line-height: 1.5;
}
.chat-msg.bot .chat-msg-bubble {
  background: rgba(var(--text-cream-rgb), 0.06);
  border: 1px solid rgba(var(--text-cream-rgb), 0.06);
  border-top-left-radius: 4px;
  color: var(--text-cream);
}
.chat-msg.user .chat-msg-bubble {
  background: var(--accent);
  color: #fff;
  border-top-right-radius: 4px;
}

@keyframes chatMsgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Typing indicator */
.typing-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dots span:nth-child(2) { animation-delay: 0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0.32s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Input */
.chat-input-wrap {
  display: flex; gap: 6px; padding: 0.75rem 1rem;
  border-top: 1px solid rgba(var(--text-cream-rgb), 0.08);
  background: rgba(var(--text-cream-rgb), 0.02);
}
.chat-input {
  flex: 1; padding: 0.6em 0.9em;
  background: rgba(var(--text-cream-rgb), 0.06);
  border: 1px solid rgba(var(--text-cream-rgb), 0.08);
  border-radius: 12px;
  color: var(--text-cream); font-family: inherit; font-size: 0.85rem;
  outline: none; transition: border-color 0.2s;
}
.chat-input::placeholder { color: var(--text-dim); }
.chat-input:focus { border-color: var(--accent); }
.chat-send {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; cursor: pointer; border: none; flex-shrink: 0;
}
.chat-send:hover { background: #d63600; transform: scale(1.05); }

/* Mobile responsive */
@media (max-width: 480px) {
  .chat-widget { bottom: 1rem; right: 1rem; left: 1rem; }
  .chat-panel { width: 100%; max-height: 70vh; }
  .chat-fab { width: 50px; height: 50px; }
}

/* ============================================
   LEGAL MODALS (Privacy & Terms)
   ============================================ */
.legal-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overscroll-behavior: contain;
}
body.modal-open { overflow: hidden; }
.legal-modal.active { opacity: 1; visibility: visible; }

.legal-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

.legal-modal-content {
  position: relative; z-index: 1;
  /* Glassmorphism card */
  background: rgba(30, 30, 28, 0.75);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 640px;
  max-height: 80vh;
  display: flex; flex-direction: column;
  transform: translateY(30px);
  transition: transform 0.4s var(--ease);
}
.legal-modal.active .legal-modal-content { transform: translateY(0); }

/* Sticky header with close button */
.legal-modal-close {
  position: sticky; top: 0; right: 0;
  float: right;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-muted);
  transition: all 0.2s ease; cursor: pointer; border: none;
  margin: 1rem 1rem 0 auto;
  z-index: 2; flex-shrink: 0;
}
.legal-modal-close:hover { background: rgba(255, 255, 255, 0.15); color: var(--text-cream); }

/* Scrollable body */
.legal-modal-content h2,
.legal-modal-content .legal-date,
.legal-modal-content .legal-body {
  padding: 0 2.5rem;
}
.legal-modal-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700;
  margin: -0.5rem 0 0.25rem;
}
.legal-date { font-size: var(--text-xs); color: var(--text-muted); margin-bottom: 1rem; }
.legal-body {
  overflow-y: auto; flex: 1;
  padding-bottom: 2rem !important;
  mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
}
.legal-body h3 {
  font-size: var(--text-base); font-weight: 600; color: var(--accent);
  margin-top: 1.5rem; margin-bottom: 0.5rem;
}
.legal-body p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.8; margin-bottom: 0.5rem; }
.legal-body ul { padding-left: 1.25rem; margin: 0.5rem 0; list-style: disc; }
.legal-body li { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.8; margin-bottom: 0.3rem; }
.legal-body a { color: var(--accent); text-decoration: underline; }

/* Scrollbar styling */
.legal-body::-webkit-scrollbar { width: 4px; }
.legal-body::-webkit-scrollbar-track { background: transparent; }
.legal-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 2px; }
.legal-body::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

@media (max-width: 640px) {
  .legal-modal { padding: 1rem; }
  .legal-modal-content { max-height: 90vh; }
  .legal-modal-content h2,
  .legal-modal-content .legal-date,
  .legal-modal-content .legal-body { padding: 0 1.5rem; }
}

/* ============================================
   LANGUAGE PICKER
   ============================================ */
.lang-picker {
  position: relative;
  z-index: 1002;
}
.lang-picker-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-cream); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.lang-picker-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.lang-picker-btn svg { opacity: 0.6; transition: transform 0.25s var(--ease); }
.lang-dropdown.open + .lang-picker-btn svg,
.lang-picker-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 180px; padding: 6px;
  background: rgba(30, 30, 28, 0.92);
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all 0.25s var(--ease);
}
.lang-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-option {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 14px; border-radius: 8px;
  background: none; border: none; color: var(--text-cream);
  font-size: 14px; cursor: pointer; text-align: left;
  transition: background 0.2s var(--ease);
}
.lang-option:hover { background: rgba(255,255,255,0.08); }
.lang-option.active { background: rgba(var(--accent-rgb), 0.15); color: var(--accent); }
.lang-flag { font-size: 18px; }
.lang-name { flex: 1; }

@media (max-width: 768px) {
  .lang-picker { margin-right: 0.5rem; }
  .lang-picker-btn { padding: 5px 8px; font-size: 12px; }
  .lang-dropdown { right: -1rem; }
}
