/* ================================================================
   Altegra Theme — Component Styles
   Imports after style.css (base variables + reset)
   ================================================================ */

/* ================================================================
   Full-width layout fix
   ================================================================ */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.site-main {
  width: 100%;
  max-width: 100%;
  display: block;
}

/* Ensure every top-level section spans the full viewport */
.hero,
.section,
.stats-section,
.cta-band,
.page-hero {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ================================================================
   Translation Plugin — Nav Integration
   Covers: WPML, TranslatePress, Weglot, Polylang, GTranslate
   ================================================================ */

/* --- Shared wrapper reset --- */
.site-header__inner .wpml-ls,
.site-header__inner .trp-language-switcher,
.site-header__inner .weglot-container,
.site-header__inner .pll-parent-menu-item,
.site-header__inner #google_translate_element,
.site-header__inner .gtranslate_wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* --- WPML Language Switcher --- */
.wpml-ls-statics-shortcode_actions,
.wpml-ls {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
}
.wpml-ls-item a,
.wpml-ls-item-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
  padding: 0.4rem 0.75rem !important;
  font-size: var(--text-sm) !important;
  font-weight: var(--font-weight-medium) !important;
  color: var(--color-text) !important;
  background: var(--color-bg-alt) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
  transition: background var(--transition-fast), border-color var(--transition-fast) !important;
}
.wpml-ls-item a:hover,
.wpml-ls-item-toggle:hover {
  background: var(--color-accent-light) !important;
  border-color: var(--color-accent) !important;
  color: var(--color-accent) !important;
}
.wpml-ls-flag { width: 18px; height: auto; border-radius: 2px; }
.wpml-ls-sub-menu {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-xl) !important;
  padding: var(--space-2) !important;
  min-width: 140px !important;
}
.wpml-ls-sub-menu a {
  background: transparent !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  padding: 0.5rem 0.75rem !important;
  color: var(--color-text) !important;
}
.wpml-ls-sub-menu a:hover {
  background: var(--color-accent-light) !important;
  color: var(--color-accent) !important;
  border: none !important;
}

/* --- TranslatePress --- */
.trp-language-switcher .trp-ls-shortcode-current-language,
.trp-language-switcher ul li a {
  display: flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
  padding: 0.4rem 0.75rem !important;
  font-size: var(--text-sm) !important;
  font-weight: var(--font-weight-medium) !important;
  color: var(--color-text) !important;
  background: var(--color-bg-alt) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.trp-language-switcher ul {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-xl) !important;
  padding: var(--space-2) !important;
}
.trp-language-switcher ul li a {
  background: transparent !important;
  border: none !important;
}

/* --- Weglot --- */
.weglot-container .wgcurrent a,
.weglot-container li a {
  display: flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
  padding: 0.4rem 0.75rem !important;
  font-size: var(--text-sm) !important;
  font-weight: var(--font-weight-medium) !important;
  color: var(--color-text) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  background: var(--color-bg-alt) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
}

/* --- Polylang --- */
.pll-parent-menu-item > a {
  display: flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
  padding: 0.4rem 0.75rem !important;
  font-size: var(--text-sm) !important;
  font-weight: var(--font-weight-medium) !important;
  color: var(--color-text) !important;
  background: var(--color-bg-alt) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  text-decoration: none !important;
}

/* --- GTranslate / Google Translate --- */
.gtranslate_wrapper,
#google_translate_element {
  display: flex !important;
  align-items: center !important;
}
.goog-te-gadget-simple {
  background: var(--color-bg-alt) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.25rem 0.5rem !important;
  font-size: var(--text-sm) !important;
  font-family: var(--font-sans) !important;
}
.goog-te-gadget-simple a,
.goog-te-gadget-simple span {
  color: var(--color-text) !important;
  text-decoration: none !important;
}
.goog-te-gadget img { display: none !important; }

/* Hide the "Powered by Google" bar in translate frame */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }

/* ================================================================
   Language Switcher (native flag toggle)
   ================================================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 3px;
  flex-shrink: 0;
}

.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.625rem;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.lang-switcher__btn:hover {
  color: var(--color-text);
}

.lang-switcher__btn.is-active {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(10,22,40,0.1);
}

.lang-switcher__flag {
  font-size: 1rem;
  line-height: 1;
}

/* ================================================================
   Buttons
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast), box-shadow var(--transition-fast),
              transform var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
  box-shadow: 0 4px 20px rgba(26,110,240,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn--outline:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.btn--ghost-white {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.35);
}
.btn--ghost-white:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.btn--white {
  background: #fff;
  color: var(--color-accent);
  border-color: #fff;
}
.btn--white:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-accent-hover);
}

.btn--sm  { padding: 0.5rem 1.25rem; font-size: var(--text-xs); }
.btn--lg  { padding: 1rem 2.25rem; font-size: var(--text-base); }
.btn--xl  { padding: 1.125rem 2.5rem; font-size: var(--text-lg); }
.btn--full { width: 100%; justify-content: center; }

/* ================================================================
   Badge / Tag / Eyebrow
   ================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.875rem;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  border: 1px solid;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge--accent {
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-color: rgba(26,110,240,0.2);
}
.badge--dark {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.2);
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-full);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

/* ================================================================
   Section Headers
   ================================================================ */
.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}
.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-black);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}
.section-footer {
  text-align: center;
  margin-top: var(--space-12);
}

/* ================================================================
   Site Header
   ================================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.is-sticky {
  background: var(--color-header-bg);
  box-shadow: 0 2px 16px var(--color-header-shadow);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-4);
  flex-wrap: nowrap;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.site-header__brand { flex-shrink: 0; }

.site-header__logo-text {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-black);
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.custom-logo { height: 44px; width: auto; }

/* Nav */
.site-nav { flex: 1; display: flex; justify-content: center; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.875rem;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}
.nav__link:hover,
.current-menu-item > .nav__link,
.current-menu-parent > .nav__link {
  color: var(--color-accent);
  background: var(--color-accent-light);
}
.current-menu-item > .nav__link { color: var(--color-accent); background: var(--color-accent-light); font-weight: var(--font-weight-semibold); }

.nav__chevron {
  transition: transform var(--transition-fast);
  opacity: 0.7;
}

/* Dropdown */
.menu-item-has-children { position: relative; }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  list-style: none;
  z-index: var(--z-above);
}

.menu-item-has-children:hover > .nav__dropdown,
.menu-item-has-children:focus-within > .nav__dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.menu-item-has-children:hover > .nav__link .nav__chevron {
  transform: rotate(180deg);
}

.nav__dropdown-link {
  display: block;
  padding: 0.625rem 0.875rem;
  font-size: var(--text-sm);
  color: var(--color-text);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav__dropdown-link:hover { background: var(--color-accent-light); color: var(--color-accent); }

/* Header actions */
.site-header__actions { flex-shrink: 0; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  flex-shrink: 0;
  z-index: var(--z-above);
}
.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
  transform-origin: center;
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: calc(var(--z-header) - 1);
  opacity: 0;
  pointer-events: none;   /* hidden overlay must NOT swallow taps on the page */
  transition: opacity var(--transition-base);
}
.nav-overlay.is-visible { opacity: 1; pointer-events: auto; }

/* ================================================================
   Hero Section
   ================================================================ */
.hero {
  position: relative;
  min-height: min(90vh, 860px);
  display: flex;
  align-items: center;
  background: var(--color-bg);
  background-image: linear-gradient(150deg, #FFFFFF 0%, #EEF2F8 40%, #E4ECF9 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding-top: 72px; /* header height */
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 70% 40%, rgba(25,86,200,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero__overlay {
  display: none;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 0;
  align-items: stretch;
  padding-block: 0;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: none;
  width: 100%;
  text-align: left;
  padding-block: var(--space-16) var(--space-14);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__badge { margin-bottom: var(--space-5); }

.hero__heading {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: var(--font-weight-black);
  color: var(--color-primary);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}

.hero__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-inline: 0;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero__trust { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.hero__trust-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--font-weight-medium);
}
.hero__trust-logos {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.hero__trust-logo-placeholder {
  width: 80px;
  height: 28px;
  background: var(--color-border);
  border-radius: var(--radius-sm);
}

/* Hero visual column removed — stats moved to dedicated stats section */

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

/* ── Hero Visual — Circular portrait with flowing art (right column) ── */
.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding-block: var(--space-12);
}

/* Stage holding the circle + decorative art */
.hero__visual-inner {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

/* Soft flowing gradient blobs behind the circle */
.hero__blob {
  position: absolute;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  filter: blur(10px);
  opacity: 0.55;
  z-index: 0;
}
.hero__blob--a {
  width: 78%;
  height: 78%;
  top: -6%;
  right: -8%;
  background: linear-gradient(140deg, rgba(25,86,200,0.32), rgba(25,86,200,0.04));
  animation: heroBlob 14s ease-in-out infinite;
}
.hero__blob--b {
  width: 60%;
  height: 60%;
  bottom: -4%;
  left: -6%;
  background: linear-gradient(140deg, rgba(10,22,40,0.22), rgba(10,22,40,0.02));
  animation: heroBlob 18s ease-in-out infinite reverse;
}

/* Rotating dashed orbit rings */
.hero__orbit {
  position: absolute;
  top: 2%;
  left: 2%;
  width: 96%;
  height: 96%;
  border: 1.5px dashed rgba(25,86,200,0.28);
  border-radius: 50%;
  z-index: 1;
  animation: heroSpin 40s linear infinite;
}
.hero__orbit--inner {
  top: 11%;
  left: 11%;
  width: 78%;
  height: 78%;
  border-color: rgba(10,22,40,0.12);
  animation: heroSpin 28s linear infinite reverse;
}

/* Floating accent dots */
.hero__float-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--color-accent);
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(25,86,200,0.12);
}
.hero__float-dot--1 { width: 14px; height: 14px; top: 3%;   left: 50%; animation: heroFloat 6s   ease-in-out infinite; }
.hero__float-dot--2 { width: 10px; height: 10px; top: 52%;  right: 0;  background: var(--color-primary); box-shadow: 0 0 0 4px rgba(10,22,40,0.10); animation: heroFloat 7s ease-in-out infinite 0.6s; }
.hero__float-dot--3 { width: 8px;  height: 8px;  bottom: 8%; left: 13%; animation: heroFloat 5.5s ease-in-out infinite 0.3s; }

/* The circular portrait with a gradient ring */
.hero__circle {
  position: relative;
  z-index: 3;
  width: min(82%, 420px);
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--color-accent) 0%, var(--color-primary) 100%);
  box-shadow: 0 30px 60px -18px rgba(10,22,40,0.45);
}
.hero__circle-img,
.hero__circle-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  background: linear-gradient(160deg, #1a3a5c 0%, #0A1628 100%);
}
.hero__circle-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6);
}

/* Floating stats badge on the circle edge */
.hero__circle-badge {
  position: absolute;
  z-index: 4;
  bottom: 6%;
  left: -4%;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-4);
  text-align: center;
  min-width: 84px;
  box-shadow: var(--shadow-xl);
}
.hero__circle-badge-num {
  display: block;
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-black);
  color: var(--color-accent);
  line-height: 1.1;
}
.hero__circle-badge-sub {
  display: block;
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

/* Caption under the circle */
.hero__cap {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__cap-company {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
}
.hero__cap-name {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  line-height: 1.2;
}
.hero__cap-role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@keyframes heroSpin { to { transform: rotate(360deg); } }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes heroBlob {
  0%, 100% { transform: translate(0, 0) scale(1);      border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  50%      { transform: translate(0, -10px) scale(1.05); border-radius: 58% 42% 37% 63% / 56% 59% 41% 44%; }
}
.hero__scroll-dot {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  opacity: 0.5;
  border-radius: 50%;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ================================================================
   Section Wave Dividers (Salesforce-style curved transitions)
   ================================================================ */
.section-wave {
  position: absolute;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 5;
  pointer-events: none;
}
.section-wave--bottom {
  bottom: -2px; /* overshoot so the anti-aliased edge doesn't leave a hairline seam */
}
.section-wave svg {
  display: block;
  width: 100%;
  height: 64px;
}

/* ================================================================
   Mega Menu — Option A: 3-column header panel
   (CEO spotlight | Latest insights | Company links)
   ================================================================ */

/* Trigger button in the nav */
.mega-menu-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.45rem var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1;
}
.mega-menu-trigger:hover,
.mega-menu-trigger.is-active {
  color: var(--color-accent);
  background: var(--color-accent-light);
}
.mega-menu-trigger__arrow {
  transition: transform 0.22s ease;
  flex-shrink: 0;
}
.mega-menu-trigger.is-active .mega-menu-trigger__arrow {
  transform: rotate(180deg);
}

/* Backdrop overlay */
.mega-menu-backdrop {
  position: fixed;
  inset: 72px 0 0;
  background: rgba(10, 22, 40, 0.32);
  z-index: 198;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.mega-menu-backdrop.is-visible {
  opacity: 1;
  pointer-events: all;
}

/* Panel */
.mega-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 199;
  background: var(--color-surface);
  box-shadow: 0 16px 60px rgba(10, 22, 40, 0.13), 0 4px 16px rgba(10, 22, 40, 0.06);
  border-top: 1px solid var(--color-border);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  pointer-events: none;
  visibility: hidden;
}
.mega-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  visibility: visible;
}

/* 3-column grid */
.mega-menu__inner {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 1fr;
  gap: 0;
  padding: var(--space-8) 0 var(--space-6);
}
.mega-menu__col {
  padding: 0 var(--space-8);
  border-right: 1px solid var(--color-border);
}
.mega-menu__col:first-child { padding-left: 0; }
.mega-menu__col:last-child { border-right: none; }

.mega-menu__col-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: var(--space-4);
}

/* ── Col 1: Team spotlight ───────────────────────────────────── */
.mega-menu__team-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #1a3a5c 0%, #0A1628 100%);
  margin-bottom: var(--space-3);
}
.mega-menu__team-photo-wrap {
  position: absolute;
  inset: 0;
}
.mega-menu__team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mega-menu__team-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mega-menu__team-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6) var(--space-4) var(--space-3);
  background: linear-gradient(to top, rgba(10, 22, 40, 0.88) 0%, transparent 100%);
}
.mega-menu__team-info strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  color: #fff;
  line-height: 1.3;
}
.mega-menu__team-info span {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
}

/* ── Col 2: Blog posts ───────────────────────────────────────── */
.mega-menu__post {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: color 0.15s;
}
.mega-menu__post:first-of-type { padding-top: 0; }
.mega-menu__post:last-of-type { border-bottom: none; }
.mega-menu__post:hover { color: var(--color-accent); }
.mega-menu__post-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
}
.mega-menu__post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mega-menu__post-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-bg-alt));
}
.mega-menu__post-text strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
  margin-bottom: 2px;
}
.mega-menu__post-text span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ── Col 3: Company links ────────────────────────────────────── */
.mega-menu__about-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}
.mega-menu__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mega-menu__links a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background 0.15s ease, color 0.15s ease;
}
.mega-menu__links a:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
}
.mega-menu__links a svg { opacity: 0.45; flex-shrink: 0; transition: opacity 0.15s; }
.mega-menu__links a:hover svg { opacity: 1; }

/* Shared "view all" CTA */
.mega-menu__view-all {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  text-decoration: none;
  transition: gap 0.15s ease;
}
.mega-menu__view-all:hover { gap: var(--space-2); }

/* Footer bar inside mega menu */
.mega-menu__footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-3) 0;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.mega-menu__footer a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.mega-menu__footer a:hover { color: var(--color-accent); }

/* Hide on mobile */
@media (max-width: 768px) {
  .mega-menu-trigger { display: none; }
  .mega-menu,
  .mega-menu-backdrop { display: none; }
}

/* ================================================================
   Services Overview
   ================================================================ */
.services-overview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}
.service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--color-accent-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-accent);
}

.service-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}
.service-card__title a {
  color: var(--color-primary);
  text-decoration: none;
}
.service-card__title a:hover { color: var(--color-accent); }

.service-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-5);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  text-decoration: none;
  transition: gap var(--transition-fast);
}
.service-card__link:hover { gap: 0.5rem; color: var(--color-accent-hover); }

/* ================================================================
   Why Choose Us
   ================================================================ */
/* Full-bleed split: image merges into the left edge, content on the right */
.why-choose-us {
  position: relative;
  background: var(--color-bg-alt);
  overflow: hidden;
  margin-bottom: -1px; /* close the hairline seam under the wave */
}
.why-choose-us .section-wave svg { height: 52px; }
.why-choose-us__inner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: stretch;
}

.why-choose-us__media {
  position: relative;
  min-height: 100%;
}

.why-choose-us__img,
.why-choose-us__img-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
  /* Dissolve the image into the section as it approaches the text (no hard edge) */
  -webkit-mask-image: linear-gradient(to right, #000 38%, rgba(0,0,0,0.55) 68%, transparent 100%);
          mask-image: linear-gradient(to right, #000 38%, rgba(0,0,0,0.55) 68%, transparent 100%);
}
.why-choose-us__img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1a3a5c 0%, #0A1628 100%);
  border: none;
}
.why-choose-us__img-placeholder svg { stroke: rgba(255,255,255,0.22); }

/* Content column aligns to the site container on the right */
.why-choose-us__content {
  padding-block: clamp(var(--space-8), 3.5vw, var(--space-12)) clamp(var(--space-16), 5vw, var(--space-20));
  padding-left: clamp(var(--space-6), 4vw, var(--space-12));
  padding-right: clamp(var(--space-6), 4vw, var(--space-16));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.why-choose-us__content .section-title { margin-bottom: var(--space-3); }
.why-choose-us__content .section-subtitle { margin-bottom: var(--space-6); }

.why-choose-us__badge {
  position: absolute;
  bottom: var(--space-8);
  left: var(--space-8);
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-xl);
  z-index: 6;
}
.why-choose-us__badge-number {
  display: block;
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-black);
  line-height: 1;
}
.why-choose-us__badge-text {
  display: block;
  font-size: var(--text-xs);
  opacity: 0.85;
  font-weight: var(--font-weight-medium);
  max-width: 120px;
}

/* Feature list */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}
.feature-list__item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.feature-list__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.feature-list__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.feature-list__title {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
}
.feature-list__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

/* ================================================================
   Blog Grid — 3-column editorial magazine layout
   ================================================================ */

/* Section */
.section--blog-grid {
  background: var(--color-surface);
  padding-top: var(--space-20);
  padding-bottom: 96px; /* clearance before wave */
  position: relative;
}

/* Header row */
.blog-preview__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
  margin-bottom: var(--space-12);
}
.blog-preview__header-text { max-width: 620px; margin-inline: auto; }
.blog-preview__header-text .section-title { margin-bottom: var(--space-2); }
.blog-preview__view-all { flex-shrink: 0; }
.blog-preview__controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* 3-column grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

/* ── Blog Post Card ─────────────────────────────────────────────── */
.blog-post-card {
  background: var(--color-surface);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  position: relative;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animated left accent bar on hover */
.blog-post-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 3px 0 0 3px;
  z-index: 1;
}
.blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(10, 22, 40, 0.13), 0 8px 20px rgba(10, 22, 40, 0.07);
}
.blog-post-card:hover::before { transform: scaleY(1); }

/* ── Thumbnail ─────────────────────────────────────────────────── */
.blog-post-card__img-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-alt);
  flex-shrink: 0;
  text-decoration: none;
}
.blog-post-card__img {
  width: 100%;
  height: 100%;
  object-fit: fill;   /* show the whole image (stretched) — never crop; card size fixed */
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.blog-post-card:hover .blog-post-card__img { transform: scale(1.07); }

/* Placeholder thumbnail with subtle diagonal pattern */
.blog-post-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 40%, #e0eaff 100%);
  position: relative;
}
.blog-post-card__img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 18px,
    rgba(26, 110, 240, 0.07) 18px,
    rgba(26, 110, 240, 0.07) 19px
  );
}

/* Large editorial number badge on thumbnail */
.blog-post-card__num {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.25);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  user-select: none;
  transition: color 0.35s ease;
}
.blog-post-card:hover .blog-post-card__num { color: rgba(255, 255, 255, 0.5); }

/* ── Card Body ─────────────────────────────────────────────────── */
.blog-post-card__body {
  padding: var(--space-6) var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

/* Meta row: category badge + reading time */
.blog-post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.blog-post-card__cat {
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 0.2rem 0.72rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.blog-post-card__read {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.blog-post-card__read::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Title */
.blog-post-card__title {
  font-size: clamp(1rem, 0.9vw + 0.6rem, 1.2rem);
  font-weight: 700;
  line-height: 1.38;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-post-card__title a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.blog-post-card__title a:hover { color: var(--color-accent); }

/* Excerpt */
.blog-post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer: date left · read link right */
.blog-post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}
.blog-post-card__date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.blog-post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
  transition: gap var(--transition-fast);
}
.blog-post-card__link svg { flex-shrink: 0; }
.blog-post-card__link:hover { gap: var(--space-2); }

/* ================================================================
   Team Cinema — Dark cinematic auto-scroll portrait strip
   ================================================================ */

.section--team-cinema {
  background: linear-gradient(180deg, #0A1628 0%, #0d1e38 100%);
  /* Generous top padding so "THE EXPERTS" eyebrow breathes below the wave */
  padding-top: var(--space-20);
  padding-bottom: 0; /* marquee-outer margin-bottom + wave height handles spacing */
  overflow: hidden;
  position: relative;
  /* Pull up 2px to eliminate sub-pixel rendering gap at wave seam */
  margin-top: -2px;
}

/* All text inside the dark section is light-coloured */
.section--team-cinema .section-eyebrow { color: #60a5fa; }
.section--team-cinema .section-title   { color: #ffffff; }

/* Header row */
.team-cinema__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
  padding-bottom: var(--space-8);
}
.team-cinema__header-text { max-width: 640px; margin-inline: auto; }
.team-cinema__header-text .section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--font-weight-black);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}

/* "Meet the Team" CTA — outlined light variant */
.btn--outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.55rem var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.btn--outline-light:hover {
  border-color: #60a5fa;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.08);
}
.team-cinema__header-cta { flex-shrink: 0; }

/* ── Marquee outer — 80 % wide, centred, clips the strip ── */
.team-cinema__marquee-outer {
  overflow: hidden;
  width: 80%;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  /* Space below strip so wave divider doesn't clip the cards */
  margin-bottom: 88px;
}

/* Marquee track */
.team-cinema__track--marquee {
  display: flex;
  gap: var(--space-3);
  overflow: visible;
  scroll-snap-type: none;
  scrollbar-width: none;
  cursor: default;
  width: max-content;
  /* No left-padding offset: the centred outer handles alignment */
  animation: teamMarquee 28s linear infinite;
}
.team-cinema__track--marquee::-webkit-scrollbar { display: none; }

.team-cinema__track--marquee:hover,
.team-cinema__track--marquee:focus-within {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .team-cinema__track--marquee { animation: none; }
}

@keyframes teamMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Cinema Slide — shorter cards so they clear the wave ──── */
.team-cinema__slide {
  flex: 0 0 clamp(160px, 18vw, 230px);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  aspect-ratio: 3 / 4;
  background: #0d1e38;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.team-cinema__slide:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(96, 165, 250, 0.25);
}
.team-cinema__slide:hover .team-cinema__photo { transform: scale(1.06); }

/* Subtle colour accent line at top on hover */
.team-cinema__slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1A6EF0, #60a5fa);
  z-index: 4;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.team-cinema__slide:hover::before { opacity: 1; }

/* Photo */
.team-cinema__photo-wrap {
  position: absolute;
  inset: 0;
}
.team-cinema__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s ease;
}
.team-cinema__photo--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(175deg, #132e52 0%, #060f1e 100%);
}

/* Initials badge when no photo */
.team-cinema__initials {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-black);
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: -0.02em;
  user-select: none;
}

/* Gradient overlay for caption legibility */
.team-cinema__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-10) var(--space-5) var(--space-5);
  background: linear-gradient(
    to top,
    rgba(6, 15, 30, 0.97) 0%,
    rgba(6, 15, 30, 0.7)  45%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 2;
}

/* Company label */
.team-cinema__company {
  font-size: 9px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 4px;
}

.team-cinema__name {
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.team-cinema__role {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.team-cinema__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  margin-top: var(--space-2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
  z-index: 3;
}
.team-cinema__slide:hover .team-cinema__linkedin {
  opacity: 1;
  transform: translateY(0);
}
.team-cinema__linkedin:hover { color: #60a5fa; }

/* ================================================================
   Section eyebrow — accent line before text
   ================================================================ */
.section-eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  /* inline-flex (not flex) so the eyebrow follows the parent's text-align:
     centred under centred headers, left under left-aligned ones. */
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Section-level "stat proof" bar — reusable inline metric strip */
.section-proofs {
  display: flex;
  gap: var(--space-8);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}
.section-proof__number {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-black);
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -0.03em;
}
.section-proof__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ================================================================
   Contact Page
   ================================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-12);
  align-items: start;
}
.contact-form-col__title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-6);
}
.contact-form__note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}
.contact-info-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
}
.contact-info-card h3 {
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-accent-light);
}
.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
}
.contact-info-list a { color: var(--color-text); text-decoration: none; }
.contact-info-list a:hover { color: var(--color-accent); }
.contact-info-icon {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}
.contact-hours {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}
.contact-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.contact-map iframe { display: block; }

/* Process step number */
.process-step__num {
  font-size: 3rem;
  font-weight: var(--font-weight-black);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-4);
  font-variant-numeric: tabular-nums;
}
.service-card--centered { text-align: center; }
.service-card--centered .service-card__title { text-align: center; }
.service-card--centered .service-card__excerpt { text-align: center; }

/* section with no bottom padding (used above contact form) */
.section--no-pb { padding-bottom: 0; }

/* ================================================================
   Testimonials
   ================================================================ */
.testimonials__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.testimonial-card__stars {
  display: flex;
  gap: 0.125rem;
}

.testimonial-card__quote {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
  font-style: italic;
  flex: 1;
  margin: 0;
}

.testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.testimonial-card__avatar--initials {
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--text-base);
}

.testimonial-card__cite {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-style: normal;
}
.testimonial-card__cite strong {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
}
.testimonial-card__cite span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.testimonials__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.testimonials__btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.testimonials__dots { display: flex; gap: var(--space-2); }
.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.testimonials__dot.is-active {
  background: var(--color-accent);
  transform: scale(1.3);
}

/* ================================================================
   Case Studies Preview
   ================================================================ */
.case-studies-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.case-study-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.case-study-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.case-study-card__thumb { display: block; overflow: hidden; aspect-ratio: 16/9; }
.case-study-card__thumb--placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-accent-light) 0%, rgba(26,110,240,0.1) 100%);
}
.case-study-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.case-study-card:hover .case-study-card__img { transform: scale(1.04); }

.case-study-card__body { padding: var(--space-8); }

.case-study-card__tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.case-study-card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
.case-study-card__title a {
  color: var(--color-primary);
  text-decoration: none;
}
.case-study-card__title a:hover { color: var(--color-accent); }

.case-study-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-5);
}

/* ================================================================
   CTA Band
   ================================================================ */
.cta-band {
  padding-block: var(--space-16);
  background: var(--color-primary);
  background-image: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(26,110,240,0.2) 0%, transparent 70%);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
}

.cta-band__content { max-width: 600px; }

.cta-band__heading {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-black);
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.cta-band__sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

.cta-band__actions {
  display: flex;
  gap: var(--space-4);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ================================================================
   Page Hero (inner pages)
   ================================================================ */
.page-hero {
  background: var(--color-bg);
  background-image: linear-gradient(150deg, #FFFFFF 0%, #EEF2F8 60%, #E4ECF9 100%);
  padding-block: clamp(5rem, 10vw, 9rem);
  padding-top: calc(72px + clamp(3rem, 6vw, 6rem));
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.page-hero__title {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-black);
  color: var(--color-primary);
  letter-spacing: -0.03em;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

.page-hero__sub {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  max-width: 560px;
  margin-inline: auto;
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}

/* ================================================================
   Blog / Content Cards
   ================================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: var(--space-8);
}

.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.post-card__thumb { display: block; overflow: hidden; aspect-ratio: 16/9; }
.post-card__img {
  width: 100%; height: 100%;
  object-fit: fill;   /* show the whole image (stretched) — never crop; card size fixed */
  transition: transform var(--transition-slow);
}
.post-card:hover .post-card__img { transform: scale(1.04); }

.post-card__body { padding: var(--space-6); }

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.post-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}
.post-card__title a { color: var(--color-primary); text-decoration: none; }
.post-card__title a:hover { color: var(--color-accent); }

.post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
}

/* ================================================================
   Page Content Section (page.php)
   ================================================================ */
.page-content-section__thumb {
  margin-bottom: var(--space-10);
}

/* Gutenberg blocks — full-width and wide-width support */
.entry-content .alignwide {
  margin-inline: calc(-1 * var(--container-pad));
  max-width: calc(100% + 2 * var(--container-pad));
  width: calc(100% + 2 * var(--container-pad));
}

.entry-content .alignfull {
  margin-inline: calc(-50vw + 50%);
  width: 100vw;
  max-width: 100vw;
}

/* Gutenberg native block default max-width override */
.entry-content .wp-block {
  max-width: 100%;
}

.entry-content .wp-block-columns {
  gap: var(--space-8);
}

.entry-content .wp-block-image img {
  border-radius: var(--radius-lg);
}

.entry-content .wp-block-group {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
}

.entry-content .wp-block-group.has-background {
  padding: var(--space-8);
}

.entry-content .wp-block-cover {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.entry-content .wp-block-quote {
  border-left: 4px solid var(--color-accent);
  padding-left: var(--space-6);
  font-style: italic;
  color: var(--color-primary);
}

/* ================================================================
   Single Post / Page Content
   ================================================================ */
.entry-content {
  font-size: var(--text-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}
.entry-content h2 { font-size: var(--text-3xl); margin-block: var(--space-10) var(--space-4); }
.entry-content h3 { font-size: var(--text-2xl); margin-block: var(--space-8) var(--space-3); }
.entry-content h4 { font-size: var(--text-xl); margin-block: var(--space-6) var(--space-3); }
.entry-content p { margin-bottom: var(--space-5); }
.entry-content a { color: var(--color-accent); text-decoration: underline; text-decoration-color: rgba(26,110,240,0.3); }
.entry-content a:hover { text-decoration-color: var(--color-accent); }
.entry-content ul, .entry-content ol { padding-left: var(--space-6); margin-bottom: var(--space-5); }
.entry-content li { margin-bottom: var(--space-2); }
.entry-content ul li { list-style: disc; }
.entry-content ol li { list-style: decimal; }
.entry-content blockquote {
  border-left: 4px solid var(--color-accent);
  margin: var(--space-8) 0;
  padding: var(--space-6) var(--space-8);
  background: var(--color-accent-light);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-primary);
}
.entry-content code {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.875em;
}
.entry-content pre {
  background: var(--color-primary);
  color: #e2e8f0;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin-bottom: var(--space-6);
}
.entry-content pre code { background: none; border: none; padding: 0; color: inherit; }
.entry-content img { border-radius: var(--radius-lg); margin: var(--space-8) auto; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-6); }
.entry-content th, .entry-content td { padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); text-align: left; }
.entry-content th { background: var(--color-bg); font-weight: var(--font-weight-semibold); }

/* ================================================================
   Contact Form
   ================================================================ */
.contact-form { display: flex; flex-direction: column; gap: var(--space-5); }

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}
.form-label .required { color: var(--color-accent); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}
.form-control::placeholder { color: var(--color-text-light); }
.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(26,110,240,0.15);
}
textarea.form-control { resize: vertical; min-height: 160px; }

.form-feedback {
  display: none;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.form-feedback.success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; display: block; }
.form-feedback.error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; display: block; }

/* ================================================================
   Breadcrumbs
   ================================================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--color-accent); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-accent-hover); }
.breadcrumbs__separator { opacity: 0.5; }
.breadcrumbs__current { color: var(--color-text); }

/* ================================================================
   Team Cards
   ================================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--space-8);
}

.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-align: center;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.team-card__photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  /* Blur-up: start blurred, sharpen when the card reveals on scroll */
  filter: blur(18px);
  transform: scale(1.04);
  transition: transform var(--transition-slow), filter 1s ease;
}
.team-card.revealed .team-card__photo img {
  filter: blur(0);
  transform: scale(1);
}
.team-card:hover .team-card__photo img { transform: scale(1.05); }

/* Fallback initial when a member has no photo */
.team-card__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
}
.team-card__photo-placeholder span {
  font-size: 3rem;
  font-weight: var(--font-weight-black);
  color: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
  .team-card__photo img { filter: none; transform: none; }
}

.team-card__body { padding: var(--space-5) var(--space-6); }
.team-card__name {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}
.team-card__role {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-3);
}
.team-card__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.team-card__linkedin:hover { color: var(--color-accent); }

/* ================================================================
   Pagination
   ================================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.page-numbers:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.page-numbers.current { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.page-numbers.dots { border: none; background: none; cursor: default; }

/* ================================================================
   Site Footer
   ================================================================ */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.75);
}

.footer-top {
  padding-block: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.09);
}

.footer-top__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6) var(--space-10);
}

.footer-col__title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.footer-col__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-8);
  list-style: none;
}
.footer-col__links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-col__links a:hover { color: #fff; }

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: var(--line-height-normal);
  margin-top: var(--space-3);
  margin-bottom: 0;
  max-width: 280px;
}
/* Hide the (empty) social block when no links are set so it adds no height */
.footer-social:empty { display: none; }

.footer-logo__text {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-black);
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.footer-social__link {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.footer-social__link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.footer-contact { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-contact p { margin: 0; }
.footer-contact a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: var(--space-5);
}
.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.footer-bottom__copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  margin: 0;
}
.footer-bottom__copy a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-bottom__copy a:hover { color: #fff; }

.footer-legal-nav { display: flex; gap: var(--space-5); list-style: none; }
.footer-legal-nav a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-legal-nav a:hover { color: rgba(255,255,255,0.8); }

/* ================================================================
   404 Page
   ================================================================ */
.error-404-content {
  text-align: center;
  padding: var(--space-32) 0;
  max-width: 560px;
  margin-inline: auto;
}
.error-404__code {
  font-size: 8rem;
  font-weight: var(--font-weight-black);
  color: var(--color-accent-light);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: var(--space-4);
}
.error-404__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}
.error-404__sub {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

/* ================================================================
   Sidebar & Widgets
   ================================================================ */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-12);
  align-items: start;
}

.sidebar { position: sticky; top: calc(72px + var(--space-8)); }

.widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}
.widget__title {
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-accent-light);
}

/* ================================================================
   Search Results
   ================================================================ */
.search-form { display: flex; gap: var(--space-3); }
.search-form input[type="search"] { flex: 1; }

/* ================================================================
   Responsive — Tablet (≤ 1024px)
   ================================================================ */
@media (max-width: 1024px) {
  .hero__content { max-width: 100%; }

  .services-overview__grid { grid-template-columns: repeat(2, 1fr); }
  .why-choose-us__inner { grid-template-columns: 1fr; }
  .why-choose-us__media { max-width: 560px; }
  .why-choose-us__badge { right: 0; }

  .blog-preview__header { align-items: center; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }

  .hero__container { grid-template-columns: 1fr 0.65fr; }
  .team-cinema__header { align-items: center; }
  .team-cinema__slide  { flex: 0 0 clamp(200px, 30vw, 280px); }

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

  .footer-top__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }

  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }

  .cta-band__inner { flex-direction: column; text-align: center; }
  .cta-band__actions { justify-content: center; }
}

/* ================================================================
   Responsive — Mobile (≤ 768px)
   ================================================================ */
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  /* Header nav — slide in from right */
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 80vw);
    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 100px var(--space-6) var(--space-8);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    z-index: var(--z-header);
    box-shadow: -4px 0 24px rgba(10,22,40,0.1);
  }
  .site-nav.is-open { transform: translateX(0); }

  .nav__menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 0.875rem var(--space-4); font-size: var(--text-base); color: var(--color-text); }

  .nav__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: all;
    box-shadow: none;
    background: var(--color-bg-alt);
    border: none;
    margin: var(--space-1) 0;
    display: none;
  }
  .menu-item-has-children.is-open > .nav__dropdown { display: block; }

  /* Hide CTA button on mobile, keep lang-switcher */
  .header-cta-btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-overlay { display: block; }

  /* Keep lang-switcher visible and compact on mobile */
  .lang-switcher {
    border: 1px solid var(--color-border);
    gap: 1px;
  }
  .lang-switcher__btn { padding: 0.25rem 0.5rem; }
  .lang-switcher__label { display: none; } /* flag only on mobile */

  /* Hero — single column on mobile; text first, then the rotating circle */
  .hero__container { grid-template-columns: 1fr; }
  .hero__content { order: 0; padding-block: var(--space-6) var(--space-8); text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { order: 1; padding-block: var(--space-4) 0; }
  .hero__visual-inner { width: min(78vw, 320px); }
  .hero__heading { font-size: clamp(1.75rem, 6vw, 2.5rem); }

  .services-overview__grid { grid-template-columns: 1fr; }

  .team-cinema__slide { flex: 0 0 clamp(200px, 60vw, 280px); }

  .testimonials__track { grid-template-columns: 1fr; }

  .case-studies-preview__grid { grid-template-columns: 1fr; }

  .footer-top__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom__inner { flex-direction: column; text-align: center; }
  .footer-legal-nav { justify-content: center; flex-wrap: wrap; }

  .form-group--row { grid-template-columns: 1fr; }

  .section-title { font-size: var(--text-3xl); }
  .cta-band__heading { font-size: var(--text-3xl); }
  .page-hero__title { font-size: var(--text-3xl); }

  .section-header { margin-bottom: var(--space-8); }

  /* Mobile wave is smaller */
  .section-wave svg { height: 44px; }
}

/* ================================================================
   Services Page — Full Page Redesign
   ================================================================ */

/* ── Hero ────────────────────────────────────────────────────────── */
.svc-hero {
  background: linear-gradient(135deg, #0A1628 0%, #0c1f50 100%);
  position: relative;
  overflow: hidden;
  padding: var(--space-20) 0 0;
}

/* Optional photo overlay */
.svc-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  mix-blend-mode: luminosity;
}

/* Decorative glowing blobs */
.svc-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.svc-hero__blob--1 {
  width: 480px; height: 480px;
  background: rgba(26, 110, 240, 0.25);
  top: -120px; right: -100px;
}
.svc-hero__blob--2 {
  width: 320px; height: 320px;
  background: rgba(26, 110, 240, 0.12);
  bottom: 60px; left: -80px;
}

.svc-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: left;
  padding-block: var(--space-8) var(--space-20);
}

/* Large years-of-experience badge (left of the headline) */
.svc-hero__years {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: clamp(1.5rem, 4vw, 3.5rem);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}
.svc-hero__years-num {
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-weight: 800;
  color: #60a5fa;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.svc-hero__years-num .js-counter { color: #60a5fa; }
.svc-hero__years-label {
  margin-top: var(--space-3);
  max-width: 9em;
  font-size: clamp(0.9rem, 0.5vw + 0.7rem, 1.15rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
}

.svc-hero__text { flex: 1 1 auto; min-width: 0; }

.svc-hero__eyebrow {
  justify-content: flex-start;
  color: #60a5fa;
}
.svc-hero__eyebrow::before { background: #60a5fa; }

.svc-hero__title {
  font-size: clamp(2.4rem, 4vw + 1rem, 4.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: var(--space-4) 0 var(--space-5);
}

.svc-hero__subtitle {
  font-size: clamp(1rem, 1.2vw + 0.4rem, 1.2rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 640px;
  margin-inline: 0;
}

.svc-hero__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Stack the hero on smaller screens */
@media (max-width: 768px) {
  .svc-hero__content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-6);
    padding-block: var(--space-4) var(--space-16);
  }
  .svc-hero__years {
    align-items: center;
    padding-right: 0;
    padding-bottom: var(--space-6);
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
  .svc-hero__years-label { max-width: none; }
  .svc-hero__eyebrow { justify-content: center; }
  .svc-hero__subtitle { margin-inline: auto; }
  .svc-hero__actions { justify-content: center; }
}

/* Stats bar */
.svc-hero__stats-wrap {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
}
.svc-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.svc-hero__stat {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.svc-hero__stat:last-child { border-right: none; }
.svc-hero__stat-num {
  font-size: clamp(1.8rem, 2.5vw + 0.5rem, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.03em;
}
.svc-hero__stat-num .js-counter { color: #60a5fa; }
.svc-hero__stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--space-1);
  letter-spacing: 0.01em;
}

/* ── Intro Section ───────────────────────────────────────────────── */
.svc-intro {
  padding: var(--space-20) 0;
  background: var(--color-surface);
}
.svc-intro__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.svc-intro__text-col .section-eyebrow { margin-bottom: var(--space-3); }

.svc-intro__headline {
  font-size: clamp(1.6rem, 2vw + 0.5rem, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}
.svc-intro__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}
.svc-intro__proof {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.svc-intro__proof-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}
.svc-intro__proof-item svg { flex-shrink: 0; margin-top: 2px; }

.svc-intro__img-col { position: relative; }
.svc-intro__img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #0A1628 0%, #1a3a6e 100%);
  box-shadow: 0 32px 72px rgba(10, 22, 40, 0.18);
}
.svc-intro__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.svc-intro__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating experience badge */
.svc-intro__badge {
  position: absolute;
  bottom: -16px;
  left: -20px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 16px;
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 12px 32px rgba(26, 110, 240, 0.45);
  min-width: 90px;
}
.svc-intro__badge-num {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.svc-intro__badge-sub {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-top: 2px;
}

/* ── Services Cards Grid ─────────────────────────────────────────── */
.svc-cards-section {
  background: var(--color-bg-alt);
  padding: var(--space-20) 0;
}
.svc-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
}
.svc-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 0 2px var(--color-accent);
  opacity: 0;
  transition: opacity 0.38s ease;
  pointer-events: none;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(10, 22, 40, 0.12); }
.svc-card:hover::after { opacity: 1; }

.svc-card__img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.svc-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-card:hover .svc-card__img-wrap img { transform: scale(1.06); }

.svc-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0A1628 0%, #1a3a6e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
}

.svc-card__body {
  padding: var(--space-6) var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.svc-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}
.svc-card__title a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.svc-card__title a:hover { color: var(--color-accent); }

.svc-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.svc-card__footer {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}
.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  transition: gap var(--transition-fast);
}
.svc-card__link:hover { gap: var(--space-2); }

/* ── Delivery Process ────────────────────────────────────────────── */
.svc-process {
  background: var(--color-surface);
  padding: var(--space-20) 0;
}
.svc-process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
  margin-top: var(--space-4);
}

/* Horizontal connecting line between step circles */
.svc-process__grid::before {
  content: '';
  position: absolute;
  top: 27px; /* centre of the 56px circle */
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent) 0%, rgba(26, 110, 240, 0.15) 100%);
  z-index: 0;
}

.svc-process__step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 var(--space-2);
}
.svc-process__icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  box-shadow: 0 8px 24px rgba(26, 110, 240, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.svc-process__step:hover .svc-process__icon-wrap {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(26, 110, 240, 0.5);
}
.svc-process__num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.svc-process__step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.svc-process__step-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ── Platforms Row ───────────────────────────────────────────────── */
.svc-platforms {
  background: var(--color-bg-alt);
  padding: var(--space-10) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.svc-platforms__inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  justify-content: center;
}
.svc-platforms__label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.svc-platforms__list {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}
.svc-platforms__chip {
  padding: var(--space-2) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}
.svc-platforms__chip:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
  color: var(--color-accent);
}

/* ── Services Page Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .svc-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-process__grid { grid-template-columns: repeat(2, 1fr); }
  .svc-process__grid::before { display: none; }
  .svc-intro__inner { grid-template-columns: 1fr; gap: var(--space-10); }
  .svc-intro__img-col { max-width: 560px; margin: 0 auto; }
  .svc-hero__stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .svc-cards-grid { grid-template-columns: 1fr; }
  .svc-process__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .svc-hero__stats { grid-template-columns: 1fr; }
  .svc-hero__stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .svc-hero__stat:last-child { border-bottom: none; }
  .svc-intro__badge { left: 0; bottom: -12px; }
}

/* ════════════════════════════════════════════════════════════════
   Blog Listing Page  (page-blog.php / index.php)
   ════════════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────────────── */
.blg-hero {
  background: #0A1628;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blg-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(26,110,240,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.blg-hero__eyebrow { color: #1A6EF0; margin-bottom: .5rem; }
.blg-hero__title {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  margin: 0 auto .75rem;
  max-width: 800px;
}
.blg-hero__sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.55);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Featured Story ──────────────────────────────────────────── */
.blg-featured {
  background: #0A1628;
  padding: 0 0 clamp(4rem, 8vw, 6rem);
}
.blg-featured__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
}
.blg-featured__img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #0e1f3d;
}
.blg-featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.blg-featured__img-wrap:hover .blg-featured__img { transform: scale(1.05); }
.blg-featured__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,22,40,0.4) 0%, transparent 100%);
}
.blg-featured__no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0e1f3d 0%, #132c59 100%);
}
.blg-featured__content {
  background: #0e1e3a;
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blg-featured__labels {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.blg-featured__badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .75rem;
  background: rgba(26,110,240,0.2);
  border: 1px solid rgba(26,110,240,0.35);
  color: #7ab3ff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-radius: 100px;
}
.blg-featured__cat {
  display: inline-block;
  padding: .3rem .75rem;
  background: #1A6EF0;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 100px;
  text-decoration: none;
  transition: background .2s;
}
.blg-featured__cat:hover { background: #1558c8; }
.blg-featured__title {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1rem;
}
.blg-featured__title a { color: inherit; text-decoration: none; transition: color .2s; }
.blg-featured__title a:hover { color: #7ab3ff; }
.blg-featured__excerpt {
  font-size: .95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.blg-featured__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.75rem;
}
.blg-featured__cta svg { vertical-align: -2px; transition: transform .2s; }
.blg-featured__cta:hover svg { transform: translateX(4px); }

/* ── Article List with Search ────────────────────────────────── */
.blg-list-section {
  background: #F8FAFC;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

/* Header row: title left, search right */
.blg-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}
.blg-list-header__left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}
.blg-list-header__heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0A1628;
  white-space: nowrap;
}
.blg-list-header__line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, #1A6EF0, transparent);
  min-width: 40px;
}
.blg-list-header__search {
  position: relative;
  flex-shrink: 0;
}
.blg-search__icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6B7280;
  pointer-events: none;
}
.blg-search__input {
  padding: .65rem 1rem .65rem 2.6rem;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  font-size: .875rem;
  color: #0A1628;
  background: #fff;
  width: 260px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.blg-search__input::placeholder { color: #9CA3AF; }
.blg-search__input:focus {
  border-color: #1A6EF0;
  box-shadow: 0 0 0 3px rgba(26,110,240,0.1);
}

/* Horizontal list */
.blg-list { display: flex; flex-direction: column; }

.blg-list-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
  padding: 1.5rem 0;
  border-top: 1px solid #E2E8F0;
  align-items: center;
  transition: background .15s;
}
.blg-list-item:last-of-type { border-bottom: 1px solid #E2E8F0; }

.blg-list-item__img-wrap {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: #0A1628;
  flex-shrink: 0;
}
.blg-list-item__img {
  width: 100%;
  height: 100%;
  object-fit: fill;   /* show the whole image (stretched) — never crop; card size fixed */
  display: block;
  transition: transform .4s ease;
}
.blg-list-item__img-wrap:hover .blg-list-item__img { transform: scale(1.07); }
.blg-list-item__no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0A1628, #1a2e50);
  aspect-ratio: 3/2;
  border-radius: 10px;
}

.blg-list-item__content {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.blg-list-item__meta {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .75rem;
  color: #6B7280;
  flex-wrap: wrap;
}
.blg-list-item__cat {
  color: #1A6EF0;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .7rem;
}
.blg-list-item__cat:hover { text-decoration: underline; }
.blg-list-item__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0A1628;
  margin: 0;
}
.blg-list-item__title a { color: inherit; text-decoration: none; transition: color .2s; }
.blg-list-item__title a:hover { color: #1A6EF0; }
.blg-list-item__excerpt {
  font-size: .875rem;
  color: #6B7280;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blg-list-item__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 600;
  color: #1A6EF0;
  text-decoration: none;
  transition: gap .2s;
  margin-top: .15rem;
}
.blg-list-item__link:hover { gap: .6rem; }
.blg-no-results {
  padding: 2rem 0;
  color: #6B7280;
  font-size: .95rem;
}

/* keep .blg-card styles for index.php grid */
.blg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
}
.blg-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}
.blg-card:hover {
  box-shadow: 0 12px 40px rgba(10,22,40,0.12);
  transform: translateY(-4px);
}
.blg-card__img-wrap {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #0A1628;
}
.blg-card__img {
  width: 100%;
  height: 100%;
  object-fit: fill;   /* show the whole image (stretched) — never crop; card size fixed */
  display: block;
  transition: transform .45s ease;
}
.blg-card__img-wrap:hover .blg-card__img { transform: scale(1.07); }
.blg-card__no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0A1628 0%, #1a2e50 100%);
  aspect-ratio: 16/10;
}
.blg-card__body {
  padding: 1.35rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}
.blg-card__body::before {
  content: '';
  position: absolute;
  top: 0; left: 1.5rem; right: 1.5rem;
  height: 2px;
  background: linear-gradient(to right, #1A6EF0, #E8F0FE);
  opacity: 0;
  transition: opacity .25s;
}
.blg-card:hover .blg-card__body::before { opacity: 1; }
.blg-card__meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  color: #6B7280;
  margin-bottom: .6rem;
  flex-wrap: wrap;
}
.blg-card__cat {
  color: #1A6EF0;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .7rem;
}
.blg-card__cat:hover { text-decoration: underline; }
.blg-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0A1628;
  margin-bottom: auto;
  padding-bottom: 1rem;
}
.blg-card__title a { color: inherit; text-decoration: none; transition: color .2s; }
.blg-card__title a:hover { color: #1A6EF0; }
.blg-card__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 600;
  color: #1A6EF0;
  text-decoration: none;
  transition: gap .2s;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #E2E8F0;
}
.blg-card__link:hover { gap: .6rem; }

/* ── Pagination ──────────────────────────────────────────────── */
.blg-pagination {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.blg-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 .75rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  color: #0A1628;
  border: 1px solid #E2E8F0;
  background: #fff;
  transition: all .2s;
}
.blg-pagination .page-numbers:hover,
.blg-pagination .page-numbers.current {
  background: #1A6EF0;
  border-color: #1A6EF0;
  color: #fff;
}
.blg-pagination .page-numbers.dots {
  border: none;
  background: none;
  color: #6B7280;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .blg-grid { grid-template-columns: repeat(2, 1fr); }
  .blg-search__input { width: 220px; }
}
@media (max-width: 860px) {
  .blg-featured__inner { grid-template-columns: 1fr; }
  .blg-featured__img-wrap { aspect-ratio: 16/9; }
  .blg-list-item { grid-template-columns: 180px 1fr; gap: 1.25rem; }
}
@media (max-width: 640px) {
  .blg-grid { grid-template-columns: 1fr; }
  .blg-hero__title { font-size: 2.25rem; }
  .blg-list-header { gap: 1rem; }
  .blg-list-header__left { flex-wrap: wrap; }
  .blg-list-header__search { width: 100%; }
  .blg-search__input { width: 100%; }
  .blg-list-item { grid-template-columns: 130px 1fr; gap: 1rem; }
  .blg-list-item__title { font-size: 1rem; }
}

/* Legacy blog classes kept for archive.php compatibility */
.blog-lp-hero {
  background: var(--color-primary);
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(26,110,240,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.blog-lp-hero__eyebrow { color: var(--color-accent); }
.blog-lp-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: .5rem 0 1.1rem;
}
.blog-lp-hero__sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Featured Post ───────────────────────────────────────────── */
.blog-featured {
  background: var(--color-primary);
  padding: 0 0 clamp(4rem, 8vw, 6rem);
}
.blog-featured__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.blog-featured__labels {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.blog-featured__badge {
  display: inline-block;
  padding: .3rem .85rem;
  background: rgba(26,110,240,0.25);
  border: 1px solid rgba(26,110,240,0.4);
  color: #7ab3ff;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: var(--radius-full);
}
.blog-featured__cat {
  display: inline-block;
  padding: .3rem .85rem;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition-fast);
}
.blog-featured__cat:hover { background: #1558c8; }
.blog-featured__title {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.1rem;
}
.blog-featured__title a { color: inherit; text-decoration: none; }
.blog-featured__title a:hover { color: #7ab3ff; }
.blog-featured__excerpt {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.blog-featured__meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.75rem;
}
.blog-featured__meta-sep { color: rgba(255,255,255,0.2); }
.blog-featured__cta svg { vertical-align: middle; transition: transform var(--transition-fast); }
.blog-featured__cta:hover svg { transform: translateX(4px); }

.blog-featured__img-col {}
.blog-featured__img-wrap {
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  position: relative;
}
.blog-featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.blog-featured__img-wrap:hover .blog-featured__img { transform: scale(1.04); }
.blog-featured__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0e1f3d 0%, #132c59 100%);
  aspect-ratio: 16 / 10;
}

/* ── More Articles header ────────────────────────────────────── */
.blog-posts { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.blog-posts__header { margin-bottom: var(--space-8); }
.blog-posts__heading {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

/* ── Editorial article list ──────────────────────────────────── */
.blog-posts__list { display: flex; flex-direction: column; }

.blog-article {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-top: 1px solid var(--color-border);
  transition: background var(--transition-fast);
}
.blog-article:last-child { border-bottom: 1px solid var(--color-border); }

/* Thumbnail */
.blog-article__img-col { position: relative; }
.blog-article__img-wrap {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color-primary);
  position: relative;
}
.blog-article__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.blog-article__img-wrap:hover .blog-article__img { transform: scale(1.06); }
.blog-article__img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a5f 100%);
  border-radius: var(--radius-lg);
}

/* Number badge */
.blog-article__num {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 2.75rem;
  font-weight: 900;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  font-variant-numeric: tabular-nums;
}

/* Content */
.blog-article__content { padding-top: .15rem; }
.blog-article__meta {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: .6rem;
  flex-wrap: wrap;
}
.blog-article__cat {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: var(--text-xs);
}
.blog-article__cat:hover { text-decoration: underline; }
.blog-article__sep { color: var(--color-border); }
.blog-article__read { font-size: var(--text-xs); }

.blog-article__title {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: .55rem;
}
.blog-article__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.blog-article__title a:hover { color: var(--color-accent); }

.blog-article__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: .9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-article__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  transition: gap var(--transition-fast);
}
.blog-article__link:hover { gap: .6rem; }

/* ── Pagination ──────────────────────────────────────────────── */
.blog-pagination {
  margin-top: var(--space-12);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 .6rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: all var(--transition-fast);
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.blog-pagination .page-numbers.dots {
  border: none;
  background: none;
  color: var(--color-text-muted);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .blog-featured__inner { grid-template-columns: 1fr; gap: 2rem; }
  .blog-featured__img-col { order: -1; max-width: 600px; }
  .blog-article { grid-template-columns: 240px 1fr; }
}
@media (max-width: 640px) {
  .blog-article { grid-template-columns: 1fr; gap: 1rem; }
  .blog-article__num { font-size: 2rem; }
  .blog-featured__title { font-size: 1.65rem; }
}

/* ================================================================
   Print styles
   ================================================================ */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta-band { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .container { max-width: 100%; padding: 0; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
}

/* ================================================================
   Homepage — Mission, Vision & Values (4C)
   ================================================================ */
.mission-vision__slogan {
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-accent); /* fallback */
  /* Keep the slogan on ONE line: break out to full width, centre, and
     scale the font to the viewport so it never wraps. */
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-inline: var(--space-4);
  text-align: center;
  white-space: nowrap;
  font-size: clamp(1.25rem, 5.6vw, 3.375rem);
}

/* Keep these home section headings on ONE line too (full-width, centred,
   viewport-scaled font) — 'Comprehensive PLM Solutions' & 'The people
   behind every project.' */
#services-heading,
#team-cinema-heading {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-inline: var(--space-4);
  text-align: center;
  white-space: nowrap;
}
#services-heading   { font-size: clamp(1.25rem, 5.6vw, 3.375rem); }
#team-cinema-heading { font-size: clamp(1.25rem, 5.3vw, 4.5rem); }

/* --- Mission & Vision cards --- */
.mission-vision__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.mv-card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.mv-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--color-accent);
}
.mv-card--vision::before { background: var(--color-primary); }
.mv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.mv-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--color-accent-light);
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}
.mv-card--vision .mv-card__icon {
  background: rgba(10,22,40,0.06);
  color: var(--color-primary);
}

.mv-card__label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.mv-card__text {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-snug);
  color: var(--color-text);
  margin: 0;
}

/* --- 4C Values --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.value-card {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}
.value-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-5);
  border-radius: var(--radius-full);
  background: var(--color-accent-light);
  color: var(--color-accent);
}
.value-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.value-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mission-vision__grid { grid-template-columns: 1fr; margin-bottom: var(--space-12); }
  .values-grid { grid-template-columns: 1fr; }
  .mv-card__text { font-size: var(--text-lg); }
}

/* ================================================================
   Blog Listing Page — compact heading + uniform grid
   ================================================================ */
.blg-head {
  background: linear-gradient(150deg, #FFFFFF 0%, #EEF2F8 60%, #E4ECF9 100%);
  padding-top: calc(72px + clamp(2.5rem, 5vw, 4.5rem));
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.blg-head__eyebrow { justify-content: center; }
.blg-head__title {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-black);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-primary);
  margin: var(--space-2) 0 var(--space-4);
}
.blg-head__sub {
  max-width: 620px;
  margin: 0 auto;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

/* Toolbar / search */
.blg-archive__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-8);
}
.blg-archive__search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: min(100%, 320px);
  padding: 0 var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.blg-archive__search:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}
.blg-archive__search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--color-text);
  font-family: inherit;
}

.blg-no-results {
  text-align: center;
  color: var(--color-text-muted);
  padding: var(--space-10) 0;
  font-size: var(--text-lg);
}

/* Empty state */
.blg-empty {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}
.blg-empty__title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.blg-empty__text { color: var(--color-text-muted); }

/* Blog page: make cards a touch airier than the homepage 3-up */
.blg-archive .blog-grid { gap: var(--space-8) var(--space-6); }

/* ================================================================
   Single blog post — wider reading column (~80% of the screen)
   ================================================================ */
.container--reading {
  width: 80%;
  max-width: 1280px;
}
@media (max-width: 782px) {
  .container--reading { width: 100%; }
}

/* ================================================================
   Single blog post — full-width heading (remove narrow title cap)
   ================================================================ */
.single .page-hero__title {
  max-width: none;
}

/* ================================================================
   Single post — centered category + date above the title
   ================================================================ */
.single-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.single-hero__meta a {
  color: var(--color-accent);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-xs);
}
.single-hero__meta a:hover { color: var(--color-accent-hover); }
.single-hero__dot { color: var(--color-text-light); }

/* ================================================================
   News page — stylish horizontal blocks
   ================================================================ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.news-card {
  display: grid;
  grid-template-columns: clamp(220px, 32%, 340px) 1fr;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-accent);
}

.news-card__media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #1a3a5c 0%, #0A1628 100%);
  min-height: 200px;
}
.news-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;   /* show the whole image (stretched) — never crop; card size fixed */
  transition: transform var(--transition-slow);
}
.news-card:hover .news-card__img { transform: scale(1.06); }
.news-card__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card__body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.news-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.news-card__cat {
  color: var(--color-accent);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-xs);
}
.news-card__dot { color: var(--color-text-light); }
.news-card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
.news-card__title a { color: var(--color-primary); }
.news-card__title a:hover { color: var(--color-accent); }
.news-card__excerpt {
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-5);
}
.news-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  transition: gap var(--transition-fast);
}
.news-card__link:hover { gap: var(--space-3); }

/* Stack the news card on smaller screens */
@media (max-width: 720px) {
  .news-card { grid-template-columns: 1fr; }
  .news-card__media { min-height: 200px; height: 200px; }
  .news-card__body { padding: var(--space-6); }
}

/* ================================================================
   Standard pages — no title banner; clear the fixed header
   ================================================================ */
.page-content-section {
  padding-top: calc(72px + clamp(1.5rem, 4vw, 3rem));
}

/* Standard pages with no title banner — first section clears the fixed header */
.section--page-top {
  padding-top: calc(72px + clamp(1.5rem, 4vw, 3rem));
}

/* ================================================================
   Hero circle — rotating team gallery (cross-fade + Ken Burns)
   ================================================================ */
.hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(160deg, #1a3a5c 0%, #0A1628 100%);
}
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.1s ease, transform 5s ease;
  will-change: opacity, transform;
}
.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Caption cross-fade as the gallery advances */
.hero__cap {
  transition: opacity 0.35s ease;
}
.hero__cap.is-fading {
  opacity: 0;
}

/* ================================================================
   Team Listing page — 3 large columns, full-width feel
   ================================================================ */
.team-archive .container {
  max-width: min(1600px, 94vw);
}
.team-archive .team-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.team-archive .team-card__name { font-size: var(--text-xl); }

/* Icon-only LinkedIn (no text) — circular button */
.team-card__linkedin--icon {
  gap: 0;
  width: 40px;
  height: 40px;
  justify-content: center;
  margin: 0 auto;
  border-radius: var(--radius-full);
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}
.team-card__linkedin--icon:hover {
  background: var(--color-accent);
  color: #fff;
}

@media (max-width: 900px) {
  .team-archive .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .team-archive .team-grid { grid-template-columns: 1fr; }
}

/* Remove the hairline seam between the hero wave and the section below it */
.hero { margin-bottom: -1px; }

/* ================================================================
   Homepage — Blog posts horizontal marquee (rolls, pause on hover)
   ================================================================ */
.blog-marquee {
  overflow: hidden;
  padding-block: var(--space-2);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.blog-marquee__track {
  display: flex;
  width: max-content;
  animation: blogMarquee 48s linear infinite;
}
.blog-marquee:hover .blog-marquee__track,
.blog-marquee:focus-within .blog-marquee__track {
  animation-play-state: paused;
}
/* display:contents lets the duplicated set's cards become track flex items */
.blog-marquee__dup { display: contents; }

/* Each card owns its trailing gap via margin so the -50% loop is seamless */
.blog-marquee__track .blog-post-card {
  flex: 0 0 clamp(280px, 82vw, 360px);
  margin-right: var(--space-6);
}

@keyframes blogMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .blog-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .blog-marquee__track { animation: none; }
}

/* Mission & Vision section background — differentiate from the white blog above it */
.mission-vision { background: var(--color-bg-alt); }

/* ================================================================
   Post/page content — center images & figures by default
   (explicit left/right alignment still floats; wide/full untouched)
   ================================================================ */
.entry-content figure:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull) {
  text-align: center;
  margin-inline: auto;
}
.entry-content figure img { margin-block: 0; }
.entry-content figcaption {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}
.entry-content .alignleft  { float: left;  margin: var(--space-2) var(--space-6) var(--space-4) 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: var(--space-2) 0 var(--space-4) var(--space-6); max-width: 50%; }
.entry-content .alignleft img, .entry-content .alignright img { margin: 0; max-width: 100%; }

/* ================================================================
   Why Choose Us — 2-column feature list + full-bleed split responsive
   ================================================================ */
.why-choose-us__media { min-height: 400px; }

.feature-list--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5) var(--space-10);
}
.feature-list--2col .feature-list__item { margin: 0; }
.feature-list--2col .feature-list__desc { font-size: var(--text-sm); }

@media (max-width: 900px) {
  .why-choose-us__inner { grid-template-columns: 1fr; }
  .why-choose-us__media { min-height: 300px; max-width: none; }
  /* On mobile the image stacks on top — dissolve downward into the content */
  .why-choose-us__img,
  .why-choose-us__img-placeholder {
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  }
  .why-choose-us__content {
    padding-inline: var(--container-pad);
    padding-right: var(--container-pad);
  }
  .feature-list--2col { grid-template-columns: 1fr; gap: var(--space-5); }
  .why-choose-us__badge { left: var(--space-5); bottom: var(--space-5); }
}

/* Close the 1px hairline seam under the team & blog wave dividers */
.section--team-cinema,
.section--blog-grid {
  margin-bottom: -1px;
}

/* ================================================================
   Mega-menu — cycling team card + horizontal blog scroll
   ================================================================ */
/* Team spotlight: cross-fading member slides */
.mega-menu__team-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.mega-menu__team-slide.is-active { opacity: 1; }

/* Blog posts: horizontal auto-scroll */
.mega-menu__posts-scroll {
  overflow: hidden;
  height: 232px;
  margin-bottom: var(--space-3);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.mega-menu__posts-track {
  display: flex;
  flex-direction: column;
  animation: mmPostsMarquee 22s linear infinite;
}
.mega-menu__posts-scroll:hover .mega-menu__posts-track,
.mega-menu__posts-scroll:focus-within .mega-menu__posts-track { animation-play-state: paused; }
.mega-menu__posts-dup { display: contents; }
.mega-menu__posts-track .mega-menu__post {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
@keyframes mmPostsMarquee {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .mega-menu__posts-scroll { overflow-y: auto; height: auto; }
  .mega-menu__posts-track { animation: none; }
  .mega-menu__team-slide { transition: none; }
}

/* Footer note (was a link, now plain text) */
.mega-menu__footer-note {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
}

/* ================================================================
   Contact form — spam honeypot + more stylish card
   ================================================================ */
/* Honeypot: off-screen (not display:none, so bots still fill it) */
.altegra-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-col {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  box-shadow: var(--shadow-lg);
}
.contact-form-col__title {
  position: relative;
  padding-bottom: var(--space-4);
}
.contact-form-col__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary) 100%);
}

/* Softer, roomier inputs */
.form-control {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
}
.form-control:focus { background: var(--color-surface); }
.form-control.is-invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.12);
}

/* ================================================================
   Contact page — stylish redesign (heading · form · info band · map)
   ================================================================ */
.contact-intro { text-align: center; }
.contact-intro__eyebrow { justify-content: center; }
.contact-intro__title {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-black);
  letter-spacing: -0.03em;
  color: var(--color-primary);
  margin: var(--space-2) 0 var(--space-3);
}
.contact-intro__sub {
  max-width: 560px;
  margin: 0 auto;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

/* Form card, centred */
.contact-form-section { padding-top: var(--space-10); }
.contact-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-6), 3.5vw, var(--space-10));
  box-shadow: var(--shadow-xl);
}
.contact-card__title {
  position: relative;
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
}
.contact-card__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary) 100%);
}
.contact-form .btn { width: 100%; justify-content: center; }

/* Info band — three circular items over a layered navy accent */
.contact-band { padding-block: var(--space-12) var(--space-16); }
.contact-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  background: linear-gradient(135deg, #0c1f50 0%, #0A1628 100%);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-10), 4vw, var(--space-12));
  box-shadow: var(--shadow-2xl);
}
.contact-band__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-2xl);
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(26,110,240,0.28) 0%, transparent 70%);
  pointer-events: none;
}
.contact-band__item { text-align: center; }
.contact-band__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  color: var(--color-accent);
  background: #fff;
  box-shadow: 0 12px 26px -10px rgba(0,0,0,0.55);
  position: relative;
  z-index: 1;
}
.contact-band__item { position: relative; z-index: 1; }
.contact-band__item h3 {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: var(--space-2);
}
.contact-band__item p { color: rgba(255,255,255,0.72); font-size: var(--text-sm); line-height: 1.7; margin: 0; }
.contact-band__item a { color: rgba(255,255,255,0.72); }
.contact-band__item a:hover { color: #fff; }

/* Google map */
.contact-map-section { padding-bottom: var(--space-24); }
.contact-map {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}
.contact-map__frame {
  width: 100%;
  height: 460px;
  border: 0;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  display: block;
}
.contact-map__card {
  position: absolute;
  top: var(--space-8);
  left: calc(var(--container-pad) + var(--space-8));
  max-width: 300px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-2xl);
}
.contact-map__pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-lg);
  background: var(--color-accent-light);
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.contact-map__card strong { display: block; font-size: var(--text-lg); color: var(--color-primary); }
.contact-map__card p { color: var(--color-text-muted); font-size: var(--text-sm); margin: var(--space-2) 0 var(--space-4); line-height: 1.6; }
.contact-map__dir {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
}
.contact-map__dir:hover { gap: var(--space-3); }

@media (max-width: 780px) {
  .contact-band__inner { grid-template-columns: 1fr; gap: var(--space-6); }
  .contact-map__frame { height: 360px; }
  .contact-map__card {
    position: static;
    max-width: none;
    margin: calc(-1 * var(--space-16)) var(--space-4) 0;
    left: auto; top: auto;
  }
}

/* ================================================================
   Contact page — split layout (map left 60% · form + info right 40%)
   ================================================================ */
.contact-split {
  display: grid;
  grid-template-columns: 60% 40%;
  min-height: 100vh;
}

/* Left: full-height map */
.contact-split__map {
  position: relative;
  min-height: 480px;
}
.contact-split__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* Custom centre marker (map is centred on the office, marker drawn by us) */
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  z-index: 2;
  pointer-events: none;
  color: var(--color-accent);
  filter: drop-shadow(0 6px 8px rgba(10, 22, 40, 0.35));
}
.map-pin__glyph {
  display: block;
  animation: map-pin-bob 2.4s ease-in-out infinite;
}
.map-pin__pulse {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 26px;
  height: 26px;
  transform: translate(-50%, 50%);
  border-radius: var(--radius-full);
  background: var(--color-accent);
  opacity: 0.35;
  animation: map-pin-pulse 2.4s ease-out infinite;
}
@keyframes map-pin-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
@keyframes map-pin-pulse {
  0%   { transform: translate(-50%, 50%) scale(0.5); opacity: 0.45; }
  70%  { transform: translate(-50%, 50%) scale(2.2);  opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .map-pin__glyph, .map-pin__pulse { animation: none; }
  .map-pin__pulse { display: none; }
}

/* Stylish address card, bottom-right */
.map-card {
  position: absolute;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: 3;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
  border-top: 3px solid var(--color-accent);
}
.map-card__name {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
.map-card__addr {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.map-card__dir {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-sm);
}
.map-card__dir:hover { color: var(--color-accent-hover); }

/* Right: heading + form + info */
.contact-split__panel {
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(72px + var(--space-10)) clamp(var(--space-6), 4vw, var(--space-16)) var(--space-12);
}
.contact-split__inner {
  width: 100%;
  max-width: none;
  margin-block: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.contact-split__title {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-black);
  letter-spacing: -0.03em;
  color: var(--color-primary);
  margin: var(--space-2) 0;
}
.contact-split__sub {
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}
.contact-split .contact-form .btn { width: 100%; justify-content: center; }

/* ── Contact information: full-width horizontal band ─────────── */
.contact-infobar {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-10);
}
.contact-infobar__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  gap: var(--space-8) var(--space-12);
  align-items: start;
}
.contact-infobar__grid .ci-item + .ci-item {
  padding-left: var(--space-8);
  border-left: 1px solid var(--color-border);
}

.ci-item { display: flex; align-items: flex-start; gap: var(--space-4); }
.ci-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--color-accent-light);
  color: var(--color-accent);
}
.ci-text { display: flex; flex-direction: column; }
.ci-text strong {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.ci-text a,
.ci-text span { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.5; }
.ci-text a:hover { color: var(--color-accent); }

@media (max-width: 900px) {
  .contact-split { grid-template-columns: 1fr; min-height: 0; }
  .contact-split__map { min-height: 320px; order: 2; }
  .contact-split__panel {
    order: 1;
    padding: calc(72px + var(--space-6)) var(--container-pad) var(--space-10);
  }
  .contact-split__inner { max-width: none; margin-block: 0; }

  .map-card {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    max-width: none;
  }

  .contact-infobar__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .contact-infobar__grid .ci-item + .ci-item {
    padding-left: 0;
    padding-top: var(--space-6);
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }
}

/* ================================================================
   Mobile: one-card-at-a-time snap carousels (blog + team)
   ----------------------------------------------------------------
   Replace the desktop smooth marquee with a PowerPoint-style slide
   carousel — each card snaps into view; auto-advance is driven by
   initMobileCarousels() in main.js. Desktop keeps the marquee.

   NOTE: this block MUST live after the base .blog-marquee /
   .team-cinema rules above so that source order lets these overrides
   win (equal specificity) — otherwise the marquee animation and
   overflow:hidden keep running on mobile and slide the cards away.
   ================================================================ */
@media (max-width: 768px) {
  /* Blog — show ONLY the top-most post, no scrolling at all.
     (Marquee/animation/duplicate all disabled; single static card.) */
  .blog-marquee {
    overflow: hidden;
    scroll-snap-type: none;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .blog-marquee__track {
    display: block;
    width: 100%;
    padding-inline: 0;
    animation: none;
  }
  .blog-marquee__dup { display: none; }                       /* drop the loop duplicate */
  .blog-marquee__track > .blog-post-card { display: none; }   /* hide every post… */
  .blog-marquee__track > .blog-post-card:first-child {        /* …except the first */
    display: flex;
    width: 100%;
    margin: 0;
  }

  /* Team */
  .team-cinema__marquee-outer {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16vw;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 0;
  }
  .team-cinema__marquee-outer::-webkit-scrollbar { display: none; }
  .team-cinema__track--marquee {
    animation: none;
    padding-inline: 16vw;
  }
  .team-cinema__slide[aria-hidden="true"] { display: none; } /* drop duplicates */
  .team-cinema__slide {
    flex: 0 0 68vw;
    scroll-snap-align: start;
  }
}

/* ================================================================
   "What is PLM?" page template
   ================================================================ */
.plm-intro__head { text-align: center; max-width: 860px; margin-inline: auto; }

/* Section titles break out to the full viewport width, stay centred, and
   scale so the whole title fits on ONE line on desktop. (They wrap again
   on phones — see the mobile block below — where one line is unreadable.) */
.plm-intro__title,
.plm-video__heading {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-inline: var(--space-4);
  text-align: center;
  white-space: nowrap;
}
.plm-intro__title {
  font-size: clamp(1.25rem, 3.15vw, 3.375rem);
  margin-top: var(--space-3);
}

/* PLM diagram — Product · Life Cycle · Management */
.plm-diagram {
  margin: var(--space-12) auto var(--space-10);
  max-width: 720px;
  text-align: center;
}
.plm-diagram__img {
  display: block;
  margin-inline: auto;
  max-width: 100%;
  height: auto;
}
.plm-diagram__word {
  display: block;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: var(--font-weight-black);
  letter-spacing: 0.08em;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-8);
  position: relative;
}
/* connector bar under the PLM wordmark */
.plm-diagram__word::after {
  content: '';
  position: absolute;
  left: 16.6%;
  right: 16.6%;
  bottom: -18px;
  height: 18px;
  border: 2px solid var(--color-border);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.plm-diagram__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.plm-diagram__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.plm-diagram__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  background: var(--color-accent-light);
  color: var(--color-accent);
}
.plm-diagram__label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
}

/* Two-column explanation */
.plm-intro__text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8) var(--space-12);
  max-width: 1040px;
  margin-inline: auto;
}
.plm-intro__para {
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* Benefits — "Unlock Your Organization's Potential" */
.plm-benefits__header {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
.plm-benefits__heading {
  font-size: var(--text-4xl);
  line-height: var(--line-height-tight);
  margin: 0;
}
.plm-benefits__sub {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: var(--line-height-relaxed);
  margin: 0;
  padding-top: var(--space-2);
}
.plm-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* always three per row on desktop */
  gap: var(--space-6);
}
.plm-benefit {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.plm-benefit:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.plm-benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--color-accent-light);
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}
.plm-benefit__title {
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin: 0;
}
.plm-benefit__desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* Video section */
.plm-video { background: var(--color-bg-alt); }
.plm-video__heading {
  font-size: clamp(1.5rem, 4.7vw, 3.375rem);
  margin-bottom: var(--space-10);
}
.plm-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #000;
}
.plm-video__frame iframe,
.plm-video__frame video,
.plm-video__frame embed,
.plm-video__frame object {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}
/* Uploaded video: letterbox inside the 16:9 frame rather than distort */
.plm-video__frame video { object-fit: contain; background: #000; }

/* Tablet: two benefit cards per row */
@media (max-width: 960px) {
  .plm-benefits__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Phones: let the titles wrap at a readable size instead of one tiny line */
  .plm-intro__title,
  .plm-video__heading { white-space: normal; padding-inline: var(--container-pad); }
  .plm-intro__title { font-size: var(--text-3xl); }
  .plm-video__heading { font-size: var(--text-3xl); }
  .plm-intro__text { grid-template-columns: 1fr; gap: var(--space-6); }
  .plm-diagram__cols { gap: var(--space-3); }
  .plm-diagram__icon { width: 60px; height: 60px; }
  .plm-diagram__label { font-size: var(--text-xs); }

  .plm-benefits__header { grid-template-columns: 1fr; gap: var(--space-4); margin-bottom: var(--space-8); }
  .plm-benefits__heading { font-size: var(--text-3xl); }
  .plm-benefits__grid { grid-template-columns: 1fr; }   /* one per row on phones */
}
