/* ============================================================
   Chainfir Capital — Design System v4.0
   Modern Tech VC · Precision Design · White + Blush Pink Accent
   ============================================================ */

/* ===== RESET & BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #0a0a0f;
  background: #ffffff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

::selection {
  background: #ff8fa3;
  color: #fff;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
/* Fix: map legacy variable names to existing tokens */
  --border-color: var(--line);
  --text-primary: var(--ink);
  --text-secondary: var(--muted);
  --text-muted: var(--muted-light);
  --accent-color: var(--accent-dark);
  --bg-alt: var(--bg-gray);
  /* Base — pristine white with subtle warmth */
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-gray: #f5f5f7;
  --surface: #ffffff;
  --surface-hover: #fafafa;

  /* Ink — deep charcoal with blue undertone */
  --ink: #0a0a0f;
  --ink-2: #1a1a2e;
  --ink-3: #2d2d3a;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --muted-faint: #d1d5db;

  /* Line — precise hairlines */
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --line-soft: #f3f4f6;

  /* Accent — Blush Pink (precise, elegant, used sparingly) */
  --accent: #ff8fa3;
  --accent-dark: #ff6b85;
  --accent-light: #ffb3c1;
  --accent-pale: #ffe0e6;
  --accent-soft: rgba(255, 143, 163, 0.12);
  --accent-soft-2: rgba(255, 143, 163, 0.06);
  --accent-glow: rgba(255, 143, 163, 0.25);

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, #ff8fa3 0%, #ff6b85 100%);
  --gradient-soft: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  --gradient-hero: linear-gradient(135deg, #fff5f7 0%, #ffffff 50%, #f0f9ff 100%);

  /* Typography scale */
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-lg: 17px;
  --fs-xl: 20px;
  --fs-2xl: 28px;
  --fs-3xl: 36px;
  --fs-4xl: 48px;
  --fs-5xl: 64px;
  --fs-display: clamp(40px, 6vw, 72px);
  --fs-display-lg: clamp(48px, 8vw, 96px);

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 140px;

  /* Radius — precise, slightly soft */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows — soft, architectural */
  --shadow-sm: 0 1px 3px rgba(10, 10, 15, 0.05);
  --shadow-md: 0 4px 20px rgba(10, 10, 15, 0.06);
  --shadow-lg: 0 12px 40px rgba(10, 10, 15, 0.08);
  --shadow-xl: 0 24px 80px rgba(10, 10, 15, 0.1);
  --shadow-accent: 0 8px 30px rgba(255, 143, 163, 0.3);

  /* Animation */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur-base: 300ms;
  --dur-slow: 600ms;
  --dur-slower: 1000ms;

  /* Layout */
  --max-w: 1280px;
  --max-w-wide: 1440px;
  --nav-h: 72px;
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.container-wide {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.section {
  padding: var(--space-2xl) 0;
  position: relative;
}
.section-lg { padding: var(--space-3xl) 0; }
.section-sm { padding: var(--space-xl) 0; }

/* Section header */
.section-header {
  margin-bottom: var(--space-xl);
}
.section-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: var(--space-sm);
}
.section-title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: var(--space-md);
  max-width: 20ch;
}
.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.6;
}
.section-footer {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: center;
}

/* ============================================================
   NAVIGATION — Precision Glass
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: all var(--dur-base) var(--ease);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(10, 10, 15, 0.04);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo img { height: 32px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  padding: 4px;
  background: var(--bg-gray);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 500;
}
.lang-switcher button {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 500;
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.lang-switcher button:hover { color: var(--ink-3); }
.lang-switcher button.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Global Talent button */
.nav-talent-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gradient-accent);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--dur-base) var(--ease-out);
  box-shadow: 0 2px 10px rgba(255, 143, 163, 0.3);
}
.nav-talent-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 143, 163, 0.4);
}
.nav-talent-btn svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--dur-fast) var(--ease);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--dur-base) var(--ease-out);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--ink-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.btn-accent {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 143, 163, 0.3);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 143, 163, 0.45);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-outline:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 14px 12px;
}
.btn-ghost:hover {
  color: var(--accent-dark);
}
.btn svg { width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

/* ============================================================
   HERO — Impactful Tech VC
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-hero);
}

/* Subtle grid background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(10, 10, 15, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 15, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}

/* Accent glow */
.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.hero-content { max-width: 680px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
  50% { box-shadow: 0 0 0 8px var(--accent-soft-2); }
}

.hero-title {
  font-size: var(--fs-display-lg);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero-title .accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--fs-lg);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 52ch;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stat-num {
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-label {
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* Hero visual — clean image card replacing old floating cards */
.hero-visual {
  position: relative;
  height: 540px;
  display: flex;
  align-items: center;
}
.hero-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--bg-gray);
  /* Clip bottom-right watermark area using rounded corners + overlay */
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Mask the bottom-right watermark by zooming slightly and offsetting */
  object-position: center 30%;
  transform: scale(1.15);
  transform-origin: center top;
}
.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(10, 10, 15, 0.4) 100%
  );
  pointer-events: none;
}
.hero-image-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
}
.hero-image-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-image-value {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-image-meta {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--muted-light), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ============================================================
   INVESTMENT FOCUS — Grid Cards
   ============================================================ */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.focus-card {
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.focus-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.focus-card:hover {
  border-color: var(--muted-faint);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.focus-card:hover::before { transform: scaleX(1); }

.focus-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  color: var(--accent-dark);
}
.focus-icon svg { width: 28px; height: 28px; }

.focus-card h3 {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.focus-card p {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   STATS STRIP (homepage unified stats below hero)
   ============================================================ */
.stats-strip {
  padding: var(--space-xl) 0 var(--space-lg);
}
.stats-strip .stats-bar {
  margin-top: 0;
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.stats-strip .stat-num {
  font-size: var(--fs-4xl);
}

/* ============================================================
   WHY PROFITABLE COMPANIES
   ============================================================ */
.why-section {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  position: relative;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: var(--space-xl);
}
.why-card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
}
.why-card:hover {
  border-color: var(--muted-faint);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.why-num {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.why-card h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.why-card p {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.7;
}

/* Think tank embedded banner */
.think-tank {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 48px 56px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0f 100%);
  border-radius: var(--radius-xl);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.think-tank::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 143, 163, 0.3) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.think-tank-left { position: relative; z-index: 1; }
.think-tank-label {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 143, 163, 0.15);
  color: var(--accent-light);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.think-tank-title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}
.think-tank-desc {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}
.think-tank-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
.think-tank-stat {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}
.think-tank-num {
  font-size: var(--fs-2xl);
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.think-tank-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ============================================================
   SUB-BUSINESSES (3 sub-businesses section)
   ============================================================ */
.sub-businesses-section {
  background: var(--bg-soft);
}
.sub-businesses-section .section-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.sub-businesses-section .section-title,
.sub-businesses-section .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}
.sub-businesses-section .section-subtitle {
  margin-bottom: var(--space-xl);
}
.sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sub-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.sub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.sub-card:hover {
  border-color: var(--muted-faint);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.sub-card:hover::before { transform: scaleX(1); }
.sub-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.sub-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  color: var(--accent-dark);
  transition: all var(--dur-base) var(--ease-out);
}
.sub-card:hover .sub-icon {
  background: var(--gradient-accent);
  color: #fff;
  transform: rotate(-4deg);
}
.sub-tag {
  font-family: 'SF Mono', 'Monaco', monospace;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--muted-light);
  letter-spacing: 0.1em;
}
.sub-card h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.sub-card p {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}
.sub-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent-dark);
  transition: gap var(--dur-base) var(--ease-out);
}
.sub-card:hover .sub-cta {
  gap: 10px;
}

/* ============================================================
   FOOTER — Sub-Businesses Friendly Links
   ============================================================ */
.footer-friendly {
  /* ensures the friendly links column has space */
}
.footer-friendly-desc {
  font-size: var(--fs-xs);
  color: var(--muted-light);
  line-height: 1.6;
  margin-bottom: 14px;
}
.footer-friendly ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.friendly-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  transition: color var(--dur-fast) var(--ease);
  padding: 4px 0;
}
.friendly-link:hover { color: var(--accent-dark); }
.friendly-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  flex-shrink: 0;
}
.friendly-external {
  margin-left: auto;
  opacity: 0.4;
  transition: opacity var(--dur-fast) var(--ease);
}
.friendly-link:hover .friendly-external { opacity: 1; }

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */
.portfolio-section {
  background: var(--bg-soft);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portfolio-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out);
  cursor: pointer;
}
.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--muted-faint);
}
.portfolio-img {
  aspect-ratio: 16/10;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.portfolio-img img {
  width: 60%;
  max-height: 60%;
  object-fit: contain;
  transition: transform var(--dur-slow) var(--ease-out);
}
.portfolio-item:hover .portfolio-img img {
  transform: scale(1.08);
}
.portfolio-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 10, 15, 0.05) 100%);
  pointer-events: none;
}
.portfolio-info {
  padding: 24px;
}
.portfolio-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.portfolio-name {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.portfolio-desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.6;
}

.portfolio-cta {
  text-align: center;
  margin-top: 48px;
}

/* ============================================================
   TEAM SECTION
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out);
  cursor: pointer;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--muted-faint);
}
.team-photo {
  aspect-ratio: 1;
  background: var(--bg-gray);
  overflow: hidden;
  position: relative;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--dur-slow) var(--ease-out);
}
.team-card:hover .team-photo img {
  transform: scale(1.05);
}
.team-photo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 15, 0.1) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}
.team-card:hover .team-photo::after { opacity: 1; }

.team-info {
  padding: 20px;
  text-align: center;
}
.team-name {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.team-role {
  font-size: var(--fs-sm);
  color: var(--accent-dark);
  font-weight: 500;
}

/* ============================================================
   NEWS / INSIGHTS
   ============================================================ */
.news-section { background: var(--bg-soft); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out);
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--muted-faint);
}
.news-img {
  aspect-ratio: 16/9;
  background: var(--bg-gray);
  overflow: hidden;
}
.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.news-card:hover .news-img img { transform: scale(1.05); }

.news-body { padding: 24px; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.news-category {
  font-weight: 600;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.news-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.news-excerpt {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 143, 163, 0.3) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(100, 150, 255, 0.15) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta-section .section-label {
  color: var(--accent-light);
}
.cta-section .section-title {
  color: #fff;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-section .btn-accent {
  background: var(--gradient-accent);
  color: #fff;
}
.cta-section .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.cta-section .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* ============================================================
   PAGE HEADER — Sub pages
   ============================================================ */
.page-header {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 60px;
  background: var(--gradient-soft);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(10, 10, 15, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 15, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, black, transparent);
  -webkit-mask-image: linear-gradient(180deg, black, transparent);
  pointer-events: none;
}
.page-header-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb span:last-child { color: var(--ink); font-weight: 500; }
.page-header h1 {
  font-size: var(--fs-4xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}
.page-header p {
  font-size: var(--fs-lg);
  color: var(--muted);
  line-height: 1.7;
  max-width: 52ch;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 {
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 24px;
}
.about-text p {
  font-size: var(--fs-base);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-gray);
}
.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 143, 163, 0.1) 0%, transparent 50%);
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: var(--space-2xl);
}
.stat-item {
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num .accent { color: var(--accent-dark); }
.stat-label {
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.value-item {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all var(--dur-base) var(--ease-out);
}
.value-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--muted-faint);
}
.value-num {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: var(--font-mono, monospace);
}
.value-item h4 {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.value-item p {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all var(--dur-base) var(--ease-out);
}
.contact-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--muted-faint);
}
.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: var(--radius-md);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-item h4 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.contact-item p {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.6;
}

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
}
.contact-form-wrap h3 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-3);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  transition: all var(--dur-fast) var(--ease);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-form .btn-primary {
  align-self: flex-start;
  margin-top: 8px;
}

/* ============================================================
   VERIFICATION PAGE
   ============================================================ */
.verification-wrap {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.verification-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent-dark);
}
.verification-icon svg { width: 40px; height: 40px; }
.verification-wrap h2 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.verification-wrap p {
  color: var(--muted);
  margin-bottom: 32px;
}
.verification-form {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
}

/* ============================================================
   DETAIL PAGES (Portfolio / Team / News)
   ============================================================ */
.detail-hero {
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 40px;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: 32px;
  transition: color var(--dur-fast) var(--ease);
}
.detail-back:hover { color: var(--accent-dark); }
.detail-back svg { width: 16px; height: 16px; }

.detail-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}
.detail-title {
  font-size: var(--fs-4xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--fs-sm);
  color: var(--muted);
  flex-wrap: wrap;
}
.detail-meta .tag {
  padding: 4px 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-xs);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.detail-body {
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--ink-3);
}
.detail-body p { margin-bottom: 20px; }
.detail-body h3 {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.detail-body ul {
  margin-bottom: 20px;
  padding-left: 24px;
}
.detail-body ul li {
  margin-bottom: 8px;
  list-style: disc;
}

.detail-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  align-self: start;
}
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.sidebar-card h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sidebar-info-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
}
.sidebar-info-row .label { color: var(--muted); }
.sidebar-info-row .value { color: var(--ink); font-weight: 600; }

/* Team detail specific */
.team-detail-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}
.team-detail-photo {
  width: 240px;
  height: 240px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-gray);
}
.team-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.team-detail-name {
  font-size: var(--fs-4xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 8px;
}
.team-detail-role {
  font-size: var(--fs-xl);
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 16px;
}
.team-detail-social {
  display: flex;
  gap: 12px;
}
.team-detail-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gray);
  border-radius: var(--radius-full);
  color: var(--muted);
  transition: all var(--dur-fast) var(--ease);
}
.team-detail-social a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.team-detail-social svg { width: 18px; height: 18px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-2xl) 0 var(--space-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}
.footer-brand .logo img {
  filter: brightness(0) invert(1);
}
.footer-brand p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 32ch;
  margin-bottom: 24px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--dur-fast) var(--ease);
}
.footer-social a:hover {
  background: var(--accent);
  color: #fff;
}
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--dur-fast) var(--ease);
}
.footer-col ul li a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.4);
}
.footer-slogan {
  font-style: italic;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.d1 { transition-delay: 100ms; }
.d2 { transition-delay: 200ms; }
.d3 { transition-delay: 300ms; }
.d4 { transition-delay: 400ms; }
.d5 { transition-delay: 500ms; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 400px; order: -1; }
  .hero-card-1 { top: 0; right: 10%; }
  .hero-card-2 { top: 140px; left: 5%; }
  .hero-card-3 { bottom: 0; right: 20%; }
  
  .focus-grid,
  .portfolio-grid,
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  
  .about-hero { grid-template-columns: 1fr; gap: 40px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  
  .contact-grid { grid-template-columns: 1fr; }
  .detail-content { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .team-detail-header { grid-template-columns: 1fr; text-align: center; }
  .team-detail-photo { margin: 0 auto; }
  .team-detail-social { justify-content: center; }
}

@media (max-width: 768px) {
  :root {
    --space-2xl: 64px;
    --space-3xl: 80px;
  }
  
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .lang-switcher { display: none; }
  
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stat-num { font-size: var(--fs-2xl); }
  
  .focus-grid,
  .portfolio-grid,
  .news-grid,
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  
  .section-title { font-size: var(--fs-2xl); }
  .page-header h1 { font-size: var(--fs-3xl); }
  
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  
  .form-row { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--line); }
  .stat-item:last-child { border-bottom: none; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  
  .contact-form-wrap { padding: 24px; }
  .detail-header { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .nav-talent-btn span { display: none; }
  .nav-talent-btn { padding: 10px; }
}

/* Tablet / small laptop */
@media (max-width: 1024px) {
  .why-grid,
  .sub-grid { grid-template-columns: repeat(2, 1fr); }

  .think-tank {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 36px;
  }
  .think-tank-right {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .hero-visual { height: 380px; }
  .hero-image-wrap img { object-position: center 25%; transform: scale(1.1); }
  .hero-image-caption {
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 10px 14px;
  }
  .hero-image-value { font-size: var(--fs-xl); }

  .stats-strip { padding: var(--space-md) 0 var(--space-sm); }
  .stats-strip .stat-num { font-size: var(--fs-2xl); }

  .why-grid,
  .sub-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-card,
  .sub-card { padding: 24px 20px; }

  .think-tank {
    padding: 32px 24px;
    gap: 24px;
    border-radius: var(--radius-lg);
  }
  .think-tank-title { font-size: var(--fs-xl); }
  .think-tank-right { gap: 12px; }
  .think-tank-num { font-size: var(--fs-xl); }

  .footer-friendly-desc { display: none; }
}

@media (max-width: 480px) {
  .hero-image-caption { flex-direction: row; align-items: center; gap: 12px; }
  .hero-image-caption > * { flex: 0 0 auto; }

  .think-tank-right { grid-template-columns: 1fr; }

  .stats-strip .stats-bar { grid-template-columns: 1fr 1fr; }
  .stats-strip .stat-item:nth-child(2) { border-right: none; }
  .stats-strip .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Mobile nav */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 24px;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}
.nav-links.open a {
  font-size: var(--fs-lg);
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.nav-links.open a:last-child { border-bottom: none; }

/* ============================================================
   RTL SUPPORT (Arabic)
   ============================================================ */
[dir="rtl"] {
  font-family: 'Segoe UI', Tahoma, 'Noto Sans Arabic', 'Noto Sans CJK SC', sans-serif;
}

[dir="rtl"] .hero-title,
[dir="rtl"] .section-title,
[dir="rtl"] .detail-title {
  letter-spacing: -0.01em;
}

[dir="rtl"] .hero-eyebrow .dot {
  margin-right: 0;
  margin-left: 10px;
}

[dir="rtl"] .btn svg {
  margin-left: 0;
  margin-right: 8px;
  transform: scaleX(-1);
}

[dir="rtl"] .hero-scroll-line {
  margin-right: 0;
  margin-left: 12px;
}

[dir="rtl"] .breadcrumb span {
  margin: 0 8px;
}

[dir="rtl"] .focus-card .focus-icon {
  margin-right: 0;
  margin-left: 16px;
}

[dir="rtl"] .team-detail-social a + a {
  margin-left: 0;
  margin-right: 12px;
}

[dir="rtl"] .footer-social a + a {
  margin-left: 0;
  margin-right: 12px;
}

[dir="rtl"] .detail-back svg {
  margin-right: 0;
  margin-left: 8px;
  transform: scaleX(-1);
}

[dir="rtl"] .sidebar-info-row .label {
  margin-right: 0;
  margin-left: 12px;
}

[dir="rtl"] .contact-icon {
  margin-right: 0;
  margin-left: 16px;
}

[dir="rtl"] .value-num {
  margin-right: 0;
  margin-left: 8px;
}

[dir="rtl"] .detail-body ul {
  padding-left: 0;
  padding-right: 24px;
}

[dir="rtl"] .detail-body li::before {
  left: auto;
  right: -20px;
}

[dir="rtl"] .hero-stat-num + .hero-stat-label {
  margin-left: 0;
  margin-right: 24px;
}

@media (max-width: 768px) {
  [dir="rtl"] .nav-links.open {
    right: 0;
    left: 0;
  }
}


/* ============================================================
   NEW COMPONENTS - Language Dropdown & Insights
   ============================================================ */

/* ============================================================
   LANGUAGE DROPDOWN
   ============================================================ */
.lang-dropdown {
  position: relative;
}

.lang-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.lang-dropdown-toggle:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.lang-current {
  min-width: 24px;
  text-align: center;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 100;
  overflow: hidden;
}

.lang-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
  text-align: left;
  transition: background 0.15s ease;
}

.lang-option:hover {
  background: var(--bg-alt);
}

.lang-option.active {
  background: var(--accent-light);
  color: var(--accent-color);
  font-weight: 500;
}

.lang-flag {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-alt);
  border-radius: 4px;
  flex-shrink: 0;
}

/* ============================================================
   INSIGHTS / RESEARCH REPORTS
   ============================================================ */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.insights-grid-full {
  margin-top: 0;
}

.insight-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-color);
}

.insight-cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--accent-light) 0%, #fff 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  position: relative;
}

.insight-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-color);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.02em;
  width: fit-content;
}

.insight-cover h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}

.insight-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insight-cat {
  font-size: 12px;
  color: var(--accent-color);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.insight-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.insight-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
}

.insight-actions {
  display: flex;
  gap: 4px;
}

.icon-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--bg-alt);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--accent-color);
  color: white;
}

/* ============================================================
   TEAM GRID PREVIEW (4 columns)
   ============================================================ */
.team-grid-preview {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid-preview {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .insights-grid {
    grid-template-columns: 1fr;
  }
  .team-grid-preview {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lang-dropdown-toggle {
    padding: 5px 10px;
    font-size: 12px;
  }
  
  .lang-dropdown-menu {
    right: auto;
    left: 0;
    min-width: 140px;
  }
}

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

/* RTL support for language dropdown */
[dir="rtl"] .lang-dropdown-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .lang-option {
  text-align: right;
}

[dir="rtl"] .insight-actions {
  flex-direction: row-reverse;
}


/* ============================================================
   SERVICES DROPDOWN
   ============================================================ */
.svc-dropdown {
  position: relative;
}

.svc-dropdown .nav-talent-btn {
  cursor: pointer;
}

.svc-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(10, 10, 15, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s var(--ease);
  z-index: 100;
  overflow: hidden;
  padding: 6px;
}

.svc-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.svc-option {
  display: block;
  padding: 12px 16px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-3);
  border-radius: var(--radius-sm);
  transition: all 0.15s var(--ease);
  text-decoration: none;
}

.svc-option:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

[dir="rtl"] .svc-dropdown-menu {
  right: auto;
  left: 0;
}

@media (max-width: 768px) {
  .svc-dropdown-menu {
    right: auto;
    left: 0;
    min-width: 200px;
  }
  .nav-talent-btn span[data-i18n="nav.services"] {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-talent-btn span {
    display: none;
  }
  .nav-talent-btn {
    padding: 10px;
  }
  .svc-dropdown-menu {
    position: fixed;
    left: 16px;
    right: 16px;
    min-width: auto;
  }
}

/* ============================================================
   UX ENHANCEMENTS
   ============================================================ */

/* ===== Scroll to Top Button ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s var(--ease-out);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px var(--accent-glow);
}

.scroll-top:active {
  transform: translateY(-1px);
}

/* ===== Focus States (Accessibility) ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ===== Button Active States ===== */
.btn:active {
  transform: scale(0.97);
}

.btn-primary:active {
  box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-outline:active {
  background: var(--accent-soft);
}

.btn-ghost:active {
  background: var(--bg-gray);
}

/* ===== Form Validation ===== */
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-input.error {
  border-color: #ef4444;
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  color: #ef4444;
  font-size: var(--fs-xs);
  margin-top: 6px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  color: #10b981;
  font-size: var(--fs-sm);
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  display: none;
}

.form-success.visible {
  display: block;
}

/* ===== Smooth reveal improvements ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
.reveal.d5 { transition-delay: 0.5s; }

/* ===== Card hover improvements ===== */
.portfolio-card,
.team-card,
.news-card,
.insight-card {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.portfolio-card:hover,
.team-card:hover,
.news-card:hover,
.insight-card:hover {
  transform: translateY(-4px);
}

/* ===== Nav link underline animation ===== */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ===== Mobile scroll-top adjustments ===== */
@media (max-width: 768px) {
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* ============================================================
   ROUND 7 — Redefined Team Grid + Insight Detail + Related
   ============================================================ */

/* ----- Filter pills (Team + Insight filters share) ----- */
.team-filter,
.insights-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.filter-pill:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}
.filter-pill.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ----- Team sub-grouping titles ----- */
.team-subgroup {
  margin-bottom: 56px;
}
.team-subgroup-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
  position: relative;
  padding-left: 14px;
}
.team-subgroup-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 8px;
  width: 3px;
  background: var(--accent);
  border-radius: 3px;
}

/* ----- Team card grid variants ----- */
.team-grid-3 { grid-template-columns: repeat(3, 1fr); }
.team-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .team-grid-3, .team-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .team-grid-3, .team-grid-4 { grid-template-columns: 1fr; }
}

/* ----- Rich team card ----- */
.team-card-rich {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
}
.team-card-rich:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}
.team-card-rich .team-photo {
  aspect-ratio: 4 / 3;
  background: var(--bg-gray);
}
.team-card-rich .team-info {
  padding: 18px 20px 16px;
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.team-card-rich .team-name {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.team-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.team-card-rich .team-role {
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 500;
  margin-bottom: 6px;
}
.team-card-rich .team-bio {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  flex: 1;
}
.team-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.team-loc {
  font-size: 11px;
  color: var(--muted-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.team-loc::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.team-cta {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s var(--ease);
}
.team-card-rich:hover .team-cta {
  color: var(--accent-dark);
  gap: 8px;
}
.team-card-rich:hover .team-cta::after {
  content: '→';
}

/* ----- Insight card (as <a>) clickability + cover variants ----- */
.insight-card {
  position: relative;
  cursor: pointer;
}
.insight-cover {
  position: relative;
  background: linear-gradient(135deg, var(--accent-light) 0%, #fff 100%);
}
.insight-cover.cover-blue   { background: linear-gradient(135deg, #d2e8ff 0%, #fff 100%); }
.insight-cover.cover-violet { background: linear-gradient(135deg, #e9d8ff 0%, #fff 100%); }
.insight-cover.cover-amber  { background: linear-gradient(135deg, #ffe0b8 0%, #fff 100%); }
.insight-cover.cover-green  { background: linear-gradient(135deg, #c8f0d8 0%, #fff 100%); }
.insight-cover.cover-teal   { background: linear-gradient(135deg, #b8edea 0%, #fff 100%); }
.insight-cover.cover-pink   { background: linear-gradient(135deg, var(--accent-light) 0%, #fff 100%); }
.insight-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  position: absolute; bottom: 16px; right: 16px;
  color: var(--accent-dark);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s var(--ease-out);
}
.insight-card:hover .insight-arrow {
  transform: translateX(4px) rotate(-10deg);
  background: var(--accent);
  color: #fff;
}

/* ----- Article Detail (insight-detail.html) ----- */
.article-detail { padding: 40px 0 80px; }
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-head { margin: 24px 0 28px; text-align: left; }
.article-head .insight-badge { margin-bottom: 16px; }
.article-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.article-lede {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.article-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted-light);
  flex-wrap: wrap;
}
.article-meta .dot { color: var(--accent); }

.article-toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 28px 0;
}
.toc-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.article-toc ol {
  list-style: decimal;
  padding-left: 18px;
  margin: 0;
  columns: 2;
  column-gap: 20px;
}
.article-toc li { padding: 4px 0; font-size: 13px; color: var(--muted); }
.article-toc li a { color: var(--muted); text-decoration: none; }
.article-toc li a:hover { color: var(--accent-dark); }
@media (max-width: 600px) { .article-toc ol { columns: 1; } }

.article-body { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.article-cover-strip {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-md);
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.cover-mini {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: inline-block;
}
.cover-mini.cover-blue   { background: linear-gradient(135deg, #d2e8ff, #93c5fd); }
.cover-mini.cover-violet { background: linear-gradient(135deg, #e9d8ff, #c4b5fd); }
.cover-mini.cover-amber  { background: linear-gradient(135deg, #ffe0b8, #fbbf24); }
.cover-mini.cover-green  { background: linear-gradient(135deg, #c8f0d8, #86efac); }
.cover-mini.cover-teal   { background: linear-gradient(135deg, #b8edea, #5eead4); }
.cover-mini.cover-pink   { background: linear-gradient(135deg, var(--accent-light), var(--accent)); }
.article-author { margin-left: auto; font-style: italic; }

.article-section {
  margin: 36px 0;
  scroll-margin-top: 100px;
}
.article-h {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.article-body p { margin-bottom: 14px; }

.article-callout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.article-callout strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent-light);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  font-weight: 600;
}
.article-callout span {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}
.article-callout em {
  font-size: 12px;
  color: var(--muted-light);
  font-style: normal;
}

.article-actions {
  display: flex;
  gap: 12px;
  margin: 40px 0 12px;
  flex-wrap: wrap;
}

.related-reports, .related-team {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.related-reports h3, .related-team h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.related-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.related-cover {
  height: 80px;
  border-radius: var(--radius-sm);
}
.related-cat, .related-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  font-weight: 700;
}
.related-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
}
.related-meta, .related-role, .related-loc {
  font-size: 11px;
  color: var(--muted-light);
}
.related-photo {
  width: 100%; aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-gray);
}
.related-photo img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ----- Detail page content layout ----- */
.detail-content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  margin: 32px 0;
}
@media (max-width: 900px) {
  .detail-content { grid-template-columns: 1fr; gap: 24px; }
}
.detail-body h3 {
  font-size: 18px; font-weight: 700; color: var(--ink);
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}
.detail-body p { font-size: 15px; line-height: 1.75; color: var(--ink-2); margin-bottom: 14px; }
.detail-body ul {
  margin: 12px 0 16px;
  padding-left: 18px;
}
.detail-body ul li { list-style: disc; padding: 4px 0; color: var(--ink-2); font-size: 14.5px; }

.sidebar-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}
.sidebar-card h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.sidebar-info-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.sidebar-info-row:last-child { border-bottom: none; }
.sidebar-info-row .label { color: var(--muted-light); }
.sidebar-info-row .value { color: var(--ink); font-weight: 500; text-align: right; }
.sidebar-info-row .value a { color: var(--accent-dark); }
.sidebar-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.stat-mini { text-align: center; }
.stat-mini .num {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1.2;
}
.stat-mini .lbl { font-size: 10px; color: var(--muted-light); text-transform: uppercase; letter-spacing: 0.05em; }

.btn-block { display: block; text-align: center; width: 100%; }

/* ----- Team detail hero ===== */
.team-detail-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
}
@media (max-width: 600px) { .team-detail-header { grid-template-columns: 1fr; text-align: center; } }
.team-detail-photo {
  width: 200px; height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-gray);
}
.team-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-detail-name {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--ink);
  margin: 6px 0 4px;
  letter-spacing: -0.02em;
}
.team-detail-role { font-size: 16px; color: var(--accent-dark); font-weight: 500; margin-bottom: 12px; }
.team-detail-social { display: flex; gap: 12px; }
.team-detail-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-gray);
  color: var(--muted);
  transition: all 0.2s var(--ease);
}
.team-detail-social a:hover { background: var(--ink); color: #fff; }
.team-detail-social svg { width: 16px; height: 16px; }
.detail-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.detail-meta .tag {
  background: var(--accent); color: #fff;
  padding: 3px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ----- Skeleton placeholders ----- */
.skeleton { background: linear-gradient(90deg, var(--bg-gray) 25%, var(--line-soft) 50%, var(--bg-gray) 75%); background-size: 200% 100%; animation: skel 1.5s infinite; height: 100%; }
.skeleton-line { display: inline-block; height: 12px; background: var(--bg-gray); border-radius: 6px; margin: 4px 0; }
.skeleton-line.w-20 { width: 80px; }
@keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }



/* ===== Hero role router pills (round-4) ===== */
.hero-roles {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 14px 0 10px;
}
.hero-roles .role-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid rgba(192,101,122,.30);
  color: var(--ink-2, #1a1a2e);
  background: rgba(255,255,255,.75);
  border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(192,101,122,.08);
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.hero-roles .role-pill:hover {
  background: var(--accent, #f5a3b7);
  border-color: var(--accent, #f5a3b7);
  color: #fff;
  transform: translateY(-1px);
}
.hero-roles .role-pill svg { opacity: .75; }
.hero-roles .role-pill:hover svg { opacity: 1; }
@media (max-width: 720px) {
  .hero-roles { gap: 8px; }
  .hero-roles .role-pill { padding: 8px 12px; font-size: 12.5px; }
}

/* ===== CTA title middle-highlight ===== */
.section-title.cta-title-row { line-height: 1.18; }
.section-title .cta-accent {
  color: var(--accent, #f5a3b7);
  font-style: italic;
}

/* ===== Contact page role banner ===== */
.role-banner {
  background: linear-gradient(135deg, rgba(245,163,183,.10), rgba(167,139,250,.06));
  border: 1px solid rgba(245,163,183,.25);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 28px;
}
.role-banner-label {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-dark, #c0657a);
  margin-bottom: 12px;
}
.role-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 16px;
}
.role-select {
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  background: #fff;
  border: 1.5px solid #ddd;
  font-size: 14px; font-weight: 500;
  color: #333;
  transition: all .25s;
  font-family: inherit;
}
.role-select:hover { border-color: var(--accent, #f5a3b7); color: var(--accent-dark, #c0657a); }
.role-select.active {
  background: var(--accent, #f5a3b7);
  border-color: var(--accent, #f5a3b7);
  color: #fff;
}
.role-context {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.role-context-title {
  font-size: 17px; font-weight: 600; margin-bottom: 6px; color: var(--text, #111);
  font-family: inherit;
}
.role-context-desc {
  font-size: 14.5px; color: #555; line-height: 1.6; margin: 0;
}

/* ===== Focus grid (portfolio page) ===== */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.focus-card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  transition: all .25s;
}
.focus-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.08); border-color: var(--accent, #f5a3b7); }
.focus-tag {
  display: inline-block;
  padding: 3px 10px; border-radius: 6px;
  background: var(--accent, #f5a3b7); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  margin-bottom: 14px;
}
.focus-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--text, #111); }
.focus-card p { font-size: 14.5px; color: #555; line-height: 1.6; margin: 0; }
@media (max-width: 1024px) { .focus-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .focus-grid { grid-template-columns: 1fr; } }

/* ===== Sidebar download button ===== */
.sidebar-download {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--accent, #f5a3b7);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  transition: all .25s;
  font-weight: 500;
}
.sidebar-download:hover {
  background: var(--accent-dark, #c0657a);
  transform: translateY(-1px);
  color: #fff;
}
.sidebar-download-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.18);
  border-radius: 8px;
}
.sidebar-download-text { display: flex; flex-direction: column; line-height: 1.3; }
.sidebar-download-main { font-size: 14px; font-weight: 600; }
.sidebar-download-meta { font-size: 11.5px; opacity: .85; margin-top: 2px; }
