*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #0A1A2F;
  --bg-secondary: #112B4A;
  --accent: #4A7CB5;
  --accent-hover: #3B6A9E;
  --accent-light: rgba(74, 124, 181, 0.15);
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
  --text-muted: #94A3B8;
  --text-light-muted: #64748B;
  --border-subtle: rgba(255,255,255,0.08);
  --font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font); color: var(--white); background: var(--bg-primary); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── ACCESSIBILITY ── */
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 9999;
  background: var(--accent); color: var(--white); padding: 12px 24px;
  font-size: 0.875rem; font-weight: 500; border-radius: 0 0 4px 4px;
  text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── HEADER ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 40px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease;
}
.site-header.scrolled {
  background: rgba(10, 26, 47, 0.92); padding: 16px 40px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.header-logo { display: flex; align-items: center; flex-shrink: 0; gap: 12px; }
.header-logo img {
  height: 44px; width: auto;
  transition: height 0.4s ease;
  -webkit-transform: translateZ(0); transform: translateZ(0);
}
.site-header.scrolled .header-logo img { height: 34px; }
.header-logo .logo-text { display: flex; flex-direction: column; }
.header-logo .logo-name { font-size: 1.625rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; color: var(--white); transition: font-size 0.4s ease; }
.header-logo .logo-tagline { font-size: 0.625rem; font-weight: 400; letter-spacing: 0.08em; color: var(--text-muted); line-height: 1.3; margin-top: 3px; transition: font-size 0.4s ease; }
.site-header.scrolled .header-logo .logo-name { font-size: 1.25rem; }
.site-header.scrolled .header-logo .logo-tagline { font-size: 0.5rem; }

.header-nav { display: flex; gap: 40px; align-items: center; }
.header-nav a { font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); transition: color 0.2s; }
.header-nav a:hover { color: var(--white); }

.mobile-toggle { display: none; -webkit-appearance: none; appearance: none; background: none; border: none; cursor: pointer; padding: 8px; outline: none; box-shadow: none; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: all 0.3s ease; border-radius: 1px; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── HERO ── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; background: var(--bg-primary); overflow: hidden; }
.hero-bg::before {
  content: ''; position: absolute; top: -50%; left: -50%; right: -50%; bottom: -50%;
  background:
    radial-gradient(ellipse 600px 600px at 20% 30%, rgba(74, 124, 181, 0.15), transparent),
    radial-gradient(ellipse 800px 400px at 80% 60%, rgba(17, 43, 74, 0.6), transparent),
    radial-gradient(ellipse 400px 600px at 60% 20%, rgba(74, 124, 181, 0.08), transparent);
  animation: meshDrift 20s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: ''; position: absolute; top: -50%; left: -50%; right: -50%; bottom: -50%;
  background:
    radial-gradient(ellipse 500px 500px at 70% 80%, rgba(74, 124, 181, 0.1), transparent),
    radial-gradient(ellipse 600px 300px at 30% 70%, rgba(17, 43, 74, 0.4), transparent);
  animation: meshDrift2 25s ease-in-out infinite alternate;
}
.hero-grid {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0;
  background-image: linear-gradient(rgba(74, 124, 181, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(74, 124, 181, 0.03) 1px, transparent 1px);
  background-size: 80px 80px; animation: gridPulse 8s ease-in-out infinite;
}
.particle { position: absolute; border-radius: 50%; background: rgba(74, 124, 181, 0.3); pointer-events: none; z-index: 1; }
.particle:nth-child(1) { width: 3px; height: 3px; top: 20%; left: 15%; animation: float 12s ease-in-out infinite; }
.particle:nth-child(2) { width: 2px; height: 2px; top: 60%; left: 75%; animation: float 16s ease-in-out infinite 2s; }
.particle:nth-child(3) { width: 4px; height: 4px; top: 35%; left: 55%; animation: float 14s ease-in-out infinite 4s; }
.particle:nth-child(4) { width: 2px; height: 2px; top: 75%; left: 25%; animation: float 18s ease-in-out infinite 1s; }
.particle:nth-child(5) { width: 3px; height: 3px; top: 45%; left: 85%; animation: float 15s ease-in-out infinite 3s; }
.particle:nth-child(6) { width: 2px; height: 2px; top: 15%; left: 65%; animation: float 13s ease-in-out infinite 5s; }
.particle:nth-child(7) { width: 3px; height: 3px; top: 80%; left: 45%; animation: float 17s ease-in-out infinite 2s; }
.particle:nth-child(8) { width: 2px; height: 2px; top: 50%; left: 35%; animation: float 11s ease-in-out infinite 6s; }
.hero-scanline {
  position: absolute; left: 0; right: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(74, 124, 181, 0.2), transparent);
  animation: scanline 8s linear infinite;
}

@keyframes meshDrift { 0% { transform: translate(0, 0) rotate(0deg); } 100% { transform: translate(5%, 3%) rotate(2deg); } }
@keyframes meshDrift2 { 0% { transform: translate(0, 0) rotate(0deg); } 100% { transform: translate(-3%, 5%) rotate(-1deg); } }
@keyframes gridPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes float {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  25% { transform: translate(30px, -40px); opacity: 0.8; }
  50% { transform: translate(-20px, -80px); opacity: 0.4; }
  75% { transform: translate(40px, -30px); opacity: 0.7; }
}
@keyframes scanline { 0% { top: -2%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 102%; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .hero-headline, .hero-subline, .hero-tagline, .hero-cta { opacity: 1 !important; transform: none !important; }
  .js-loaded .fade-in { opacity: 1 !important; transform: none !important; }
}

.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10, 26, 47, 0.3); z-index: 2; }
.hero-content { position: relative; z-index: 3; text-align: center; padding: 0 24px; max-width: 900px; }
.hero-headline {
  font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 28px;
  opacity: 0; transform: translateY(30px); animation: fadeUp 1s ease 0.3s forwards;
}
.hero-headline em { font-style: normal; color: var(--accent); }
.hero-subline {
  font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 300; color: var(--text-muted); letter-spacing: 0.02em; margin-bottom: 20px;
  opacity: 0; transform: translateY(20px); animation: fadeUp 1s ease 0.6s forwards;
}
.hero-tagline {
  font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 56px;
  opacity: 0; transform: translateY(20px); animation: fadeUp 1s ease 0.75s forwards;
}
.hero-cta { opacity: 0; transform: translateY(20px); animation: fadeUp 1s ease 0.9s forwards; }
.btn-primary {
  display: inline-block; background: var(--accent); color: var(--white); font-family: var(--font);
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 28px; border: none; border-radius: 4px; cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:focus-visible { box-shadow: 0 0 0 3px rgba(74, 124, 181, 0.4); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ── SECTIONS ── */
.section { min-height: 100vh; display: flex; align-items: center; padding: 100px 40px; box-sizing: border-box; }
.section-inner { max-width: 960px; margin: 0 auto; width: 100%; }
.section-headline { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 48px; }
.section-body p { font-size: 1.0625rem; font-weight: 300; line-height: 1.75; color: var(--text-muted); margin-bottom: 12px; }
.section-body p:last-child { margin-bottom: 0; }

.section--about { background: var(--bg-primary); border-top: 1px solid var(--border-subtle); }
.section--about .section-body p { margin-bottom: 8px; }
.section--about .section-body p.spacer { margin-bottom: 24px; }

.section--services { background: var(--bg-secondary); }
.services-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-subtle); margin-top: 48px; border: 1px solid var(--border-subtle); }
.capability-item { background: var(--bg-secondary); padding: 36px 32px; transition: background 0.3s ease; }
.capability-item:hover { background: rgba(17, 43, 74, 0.8); }
.capability-item h3 { font-size: 0.9375rem; font-weight: 500; margin-bottom: 8px; }
.capability-item p { font-size: 0.8125rem; font-weight: 300; color: var(--text-muted); line-height: 1.6; }

.section--approach { background: var(--bg-primary); border-top: 1px solid var(--border-subtle); }
.approach-lines p { font-size: 1.125rem; font-weight: 300; color: var(--text-muted); margin-bottom: 4px; }
.approach-lines p.spacer { margin-bottom: 24px; }
.approach-lines p.emphasis { color: var(--white); font-weight: 400; }

.section--offices { background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); }
.offices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 48px; }
.office-card { /* semantic wrapper */ }
.office-city { font-size: 1.125rem; font-weight: 500; margin-bottom: 6px; }
.office-country { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.office-address { font-size: 0.8125rem; font-weight: 300; color: var(--text-muted); line-height: 1.8; }
.office-address a { color: var(--accent); transition: color 0.2s; }
.office-address a:hover { color: var(--white); }

/* ── LEADERSHIP – symmetrical 5-col with subgrid ── */
.section--leadership { background: var(--bg-primary); border-top: 1px solid var(--border-subtle); }
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 0 40px;
  margin-top: 56px;
}
.leader-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  padding: 0;
}
.leader-name { font-size: 1rem; font-weight: 500; margin-bottom: 4px; align-self: start; }
.leader-role { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; line-height: 1.4; align-self: start; }
.leader-credentials { font-size: 0.8125rem; font-weight: 300; color: var(--text-muted); line-height: 1.6; align-self: start; }
.leader-expertise { font-size: 0.75rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0.02em; padding-top: 16px; border-top: 1px solid var(--border-subtle); align-self: start; margin-top: 16px; }

/* ── IMPRINT ── */
.section--imprint { background: var(--bg-secondary); min-height: auto; }
.imprint-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 60px; margin-top: 40px; }
.imprint-block h3 { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.imprint-block p { font-size: 0.9375rem; font-weight: 300; color: var(--text-muted); line-height: 1.8; margin-bottom: 4px; }
.imprint-block p strong { color: var(--white); font-weight: 500; }
.imprint-block a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
.imprint-block a:hover { color: var(--white); }
.imprint-note { margin-top: 40px; font-size: 0.8125rem; font-weight: 300; color: var(--text-muted); line-height: 1.8; max-width: 700px; }
.imprint-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ── FOOTER ── */
.site-footer { background: var(--bg-primary); border-top: 1px solid var(--border-subtle); padding: 80px 40px 60px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: stretch; }
.footer-wrap { max-width: 1100px; margin: 0 auto; width: 100%; }
.footer-headline { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; color: var(--white); text-align: left; margin-bottom: 48px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.footer-brand { /* semantic wrapper */ }
.footer-brand-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.footer-brand-logo img { height: 52px; width: auto; display: block; -webkit-transform: translateZ(0); transform: translateZ(0); }
.footer-brand-logo .logo-text { display: flex; flex-direction: column; }
.footer-brand-logo .logo-name { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; color: var(--white); }
.footer-brand-logo .logo-tagline { font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.08em; color: var(--text-muted); line-height: 1.3; margin-top: 3px; }
.footer-legal { font-size: 0.8125rem; font-weight: 300; color: var(--text-muted); line-height: 1.8; }
.footer-legal strong { font-weight: 500; color: var(--white); }
.footer-links { text-align: right; }
.footer-links-nav { margin-bottom: 32px; }
.footer-links-nav a { display: block; font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 12px; transition: color 0.2s; }
.footer-links-nav a:hover { color: var(--white); }
.footer-contact { font-size: 0.8125rem; font-weight: 300; color: var(--text-muted); line-height: 1.8; }
.footer-contact a { transition: color 0.2s; }
.footer-contact a:hover { color: var(--white); }
.footer-bottom { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border-subtle); font-size: 0.75rem; color: var(--text-muted); font-weight: 300; }

/* ── SCROLL ANIMATIONS ── */
.fade-in { opacity: 1; transform: translateY(0); transition: opacity 0.8s ease, transform 0.8s ease; }
.js-loaded .fade-in { opacity: 0; transform: translateY(24px); }
.js-loaded .fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1200px) { .leadership-grid { grid-template-columns: repeat(3, 1fr); }
  .leader-card:nth-child(n+4) { margin-top: 40px; }
}
@media (max-width: 1024px) {
  .leadership-grid { grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
  .leader-card:nth-child(n+3) { margin-top: 40px; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .offices-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  html { scroll-padding-top: 70px; }
  .site-header { padding: 10px 16px; }
  .site-header.scrolled { padding: 8px 16px; }
  .header-logo img { height: 30px; width: auto; }
  .site-header.scrolled .header-logo img { height: 26px; }
  .header-logo .logo-name { font-size: 1.1875rem; }
  .header-logo .logo-tagline { font-size: 0.5rem; }
  .site-header.scrolled .header-logo .logo-name { font-size: 1.0625rem; }
  .site-header.scrolled .header-logo .logo-tagline { font-size: 0.4375rem; }
  .header-nav {
    display: flex !important; position: fixed !important; top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh; height: 100dvh;
    background: rgba(10, 26, 47, 0.97);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    flex-direction: column; justify-content: center; align-items: center; gap: 28px;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 999;
  }
  .header-nav.open { opacity: 1 !important; pointer-events: auto !important; visibility: visible !important; }
  .header-nav a { font-size: 1.125rem; letter-spacing: 0.12em; padding: 8px 16px; min-height: 44px; display: flex; align-items: center; color: var(--white) !important; text-transform: uppercase; }
  .mobile-toggle { display: flex !important; z-index: 1001; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; -webkit-appearance: none; appearance: none; background: none; border: none; }
  .section { min-height: 100svh; padding: 80px 20px; }
  .section-headline { font-size: clamp(1.5rem, 6vw, 2.25rem); margin-bottom: 32px; }
  .section-body p { font-size: 1rem; }
  .hero { min-height: 100svh; }
  .hero-headline { font-size: clamp(2rem, 10vw, 3.25rem); }
  .hero-subline { font-size: clamp(0.9375rem, 3vw, 1.125rem); }
  .hero-tagline { font-size: 0.75rem; margin-bottom: 40px; }
  .btn-primary { padding: 14px 24px; min-height: 48px; font-size: 0.8125rem; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-item { padding: 28px 24px; }
  .capability-item h3 { font-size: 1rem; }
  .capability-item p { font-size: 0.875rem; }
  .leadership-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 28px; }
  .leader-card { grid-row: auto; grid-template-rows: auto auto auto auto; min-height: auto; padding-bottom: 8px; margin-top: 0; }
  .leader-name { font-size: 1.0625rem; }
  .offices-grid { grid-template-columns: 1fr; gap: 28px; }
  .imprint-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { text-align: left; }
  .footer-brand-logo img { height: 36px; }
  .footer-brand-logo .logo-name { font-size: 1.375rem; }
  .footer-brand-logo .logo-tagline { font-size: 0.5625rem; }
  .footer-links-nav a { min-height: 44px; display: flex; align-items: center; }
  .site-footer { padding: 60px 20px 40px; min-height: 100svh; }
  .approach-lines p { font-size: 1rem; }
}
/* ── SMALL PHONES (≤375px: iPhone SE, older Androids) ── */
@media (max-width: 375px) {
  .site-header { padding: 10px 16px; }
  .header-logo img { height: 24px; }
  .header-logo .logo-name { font-size: 1rem; }
  .header-logo .logo-tagline { font-size: 0.4375rem; }
  .section { min-height: 100svh; padding: 60px 16px; }
  .section-headline { font-size: 1.375rem; }
  .hero-headline { font-size: clamp(1.75rem, 10vw, 2.5rem); }
  .capability-item { padding: 24px 20px; }
  .footer-brand-logo img { height: 28px; }
  .footer-brand-logo .logo-name { font-size: 1.125rem; }
}

/* ── WordPress Block Editor Overrides ── */
.wp-site-blocks { padding: 0 !important; }
.wp-block-group { margin-top: 0; margin-bottom: 0; }
.wp-block-columns { margin-bottom: 0; }
.wp-block-heading { margin-top: 0; margin-bottom: 0; }
.wp-block-paragraph { margin-top: 0; margin-bottom: 0; }
.wp-block-separator { margin-top: 0; margin-bottom: 0; }
.entry-content > * { margin-top: 0; margin-bottom: 0; }
body { margin: 0; padding: 0; }
.wp-block-navigation .wp-block-navigation-item a { color: var(--text-muted); font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
.wp-block-navigation .wp-block-navigation-item a:hover { color: var(--white); }


/* Hide empty "Placed cookies" section on Cookie Policy page */
#cmplz-cookies-overview { display: none !important; }
h2:has(+ #cmplz-cookies-overview) { display: none !important; }


/* Push content below sticky header on subpages (Cookie Policy, Privacy Policy, etc.) */
body:not(.home) .wp-site-blocks {
  padding-top: 100px;
}
