/* ============================================
   DATA OFFICE FINANCE — SERVIER
   Design System & Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Manrope:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #242268;
  --primary-dark: #1a1a50;
  --primary-light: #2d2d80;
  --accent: #0170c4;
  --accent-light: #0d8aed;
  --accent-glow: rgba(1, 112, 196, 0.15);

  --bg: #f6f7fb;
  --bg-alt: #eef0f7;
  --card: #ffffff;
  --card-hover: #fafbff;

  --text: #1a1a2e;
  --text-secondary: #5a5a7a;
  --text-muted: #8e8ea8;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.7);

  --border: #e2e4ec;
  --border-light: #f0f1f5;

  --shadow-sm: 0 1px 3px rgba(36, 34, 104, 0.06);
  --shadow-md: 0 4px 16px rgba(36, 34, 104, 0.08);
  --shadow-lg: 0 8px 32px rgba(36, 34, 104, 0.1);
  --shadow-xl: 0 16px 48px rgba(36, 34, 104, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --nav-height: 72px;
  --container: 1180px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

a:hover {
  color: var(--accent-light);
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  max-width: 65ch;
}

.label {
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .label {
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all 0.35s var(--ease-out);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  text-decoration: none;
}

.nav-brand .brand-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 18px;
  font-family: 'Sora', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease-out);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--bg-alt);
}

.nav-links a.active {
  color: var(--accent);
  background: var(--accent-glow);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(1, 112, 196, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: hero-glow 8s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(1, 112, 196, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: hero-glow 10s ease-in-out infinite alternate-reverse;
}

@keyframes hero-glow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.1); }
}

/* Animated grid pattern */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-on-dark);
  max-width: 720px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero-label .dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  color: var(--text-on-dark);
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
}

.hero h1 .accent {
  background: linear-gradient(135deg, #4db8ff, #0170c4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 16px rgba(1, 112, 196, 0.3);
}

.btn-primary:hover {
  background: var(--accent-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(1, 112, 196, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 13px 20px;
}

.btn-ghost:hover {
  color: var(--primary);
  background: var(--bg-alt);
}

.btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* --- Stats Band --- */
.stats-band {
  background: var(--card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 16px;
}

.stat-number {
  font-family: 'Sora', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.stat-number .stat-suffix {
  font-size: 1.6rem;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- Cards --- */
.card {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.35s var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

/* --- News Cards --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  display: flex;
  flex-direction: column;
}

.news-card-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  overflow: hidden;
}

.news-card-image .news-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.3);
}

.news-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.news-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 100px;
  color: var(--accent);
  background: var(--accent-glow);
}

.news-tag.projet { color: #0170c4; background: rgba(1, 112, 196, 0.1); }
.news-tag.equipe { color: #059669; background: rgba(5, 150, 105, 0.1); }
.news-tag.tech { color: #7c3aed; background: rgba(124, 58, 237, 0.1); }
.news-tag.metier { color: #d97706; background: rgba(217, 119, 6, 0.1); }

.news-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.news-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.4;
}

.news-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--accent);
}

.news-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-card-author {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.news-card-link {
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-card-link:hover {
  gap: 8px;
}

.news-card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease-out);
}

/* News Filters */
.news-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.news-filter-btn {
  padding: 8px 20px;
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.news-filter-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.news-filter-btn.active {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}

/* --- About / Skills Cards --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.skill-card {
  padding: 32px 24px;
  text-align: center;
}

.skill-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--accent-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.35s var(--ease-out);
}

.skill-card:hover .skill-card-icon {
  background: var(--accent);
  color: white;
  transform: scale(1.08);
}

.skill-card-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.8;
}

.skill-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.skill-card .short-name {
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.skill-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.about-intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 0 20px;
}

.about-intro p {
  margin: 0 auto;
  font-size: 1.1rem;
}

/* --- Org Chart --- */
.orgchart-container {
  padding: 40px 0 80px;
  overflow-x: auto;
}

.org-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: fit-content;
  padding: 20px;
}

/* Top: Director + Leader stacked */
.oc-top {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.oc-top-node {
  position: relative;
}

.oc-connector-v {
  width: 2px;
  height: 32px;
  background: var(--border);
  margin: 0 auto;
}

/* Column layout for branches */
.oc-columns {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
}

.oc-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 200px;
  max-width: 300px;
  position: relative;
}

.oc-column::before {
  content: '';
  width: 2px;
  height: 28px;
  background: var(--border);
}

.oc-col-head {
  margin-bottom: 4px;
}

.oc-col-label {
  padding: 10px 20px;
  font-family: 'Sora', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px dashed var(--border);
}

.oc-col-members {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  position: relative;
  width: 100%;
}

.oc-col-members::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 12px;
  background: var(--border);
}

.oc-col-members .org-node {
  width: 100%;
}

/* Org Node Card */
.org-node {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
  transition: all 0.3s var(--ease-out);
  cursor: default;
}

.org-node:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.org-node.director {
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg, #f8f8ff, var(--card));
}

.org-node.leader {
  border-left: 4px solid var(--accent);
}

.org-node.manager {
  border-left: 4px solid #2a7de1;
}

.org-node.member {
  min-width: 180px;
  padding: 14px 18px;
}

.org-node.intern {
  min-width: 180px;
  padding: 14px 18px;
  border-left: 4px solid #8b5cf6;
}

.org-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.org-avatar.director { background: var(--primary); }
.org-avatar.leader { background: var(--accent); }
.org-avatar.manager { background: #2a7de1; }
.org-avatar.member { background: #5a9fd4; width: 38px; height: 38px; font-size: 0.72rem; border-radius: 10px; }
.org-avatar.intern { background: #8b5cf6; width: 38px; height: 38px; font-size: 0.72rem; border-radius: 10px; }

.org-info h4 {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}

.org-node.member .org-info h4,
.org-node.intern .org-info h4 {
  font-size: 0.85rem;
}

.org-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.org-team-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-family: 'Sora', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-alt);
  color: var(--text-secondary);
  vertical-align: middle;
}

/* --- Page Hero (internal pages) --- */
.page-hero {
  background: var(--primary);
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(1, 112, 196, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero .label {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
  display: block;
}

.page-hero h1 {
  color: var(--text-on-dark);
  position: relative;
}

.page-hero p {
  color: var(--text-on-dark-muted);
  font-size: 1.1rem;
  margin-top: 14px;
  max-width: 600px;
  position: relative;
}

/* --- News Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--card);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s var(--ease-spring);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-alt);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease-out);
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  padding-right: 40px;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.modal-content {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.modal-content p {
  margin-bottom: 14px;
  max-width: none;
}

/* --- Footer --- */
.footer {
  background: var(--primary);
  color: var(--text-on-dark);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.footer-brand .brand-icon {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.35s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .org-sub-branches {
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-content {
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .modal {
    padding: 28px;
    margin: 12px;
  }

  /* Orgchart mobile */
  .orgchart-container {
    padding: 20px 0 60px;
  }

  .org-node {
    min-width: 180px;
    padding: 14px 16px;
  }

  .org-node.member,
  .org-node.intern {
    min-width: 150px;
    padding: 12px 14px;
  }

  .org-branches,
  .org-sub-branches {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .btn {
    padding: 12px 22px;
    font-size: 0.85rem;
  }
}
