/* SimDyns – Local Site Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --teal: #0ea5a5;
  --teal-light: #22d3d3;
  --teal-dark: #0c8585;
  --navy: #1a2b3c;
  --navy-light: #243d55;
  --white: #ffffff;
  --light-gray: #f4f7fa;
  --mid-gray: #dde3ec;
  --text: #1f2937;
  --text-light: #6b7280;
  --font: 'Inter', 'Segoe UI', Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-light); }

/* ── LOGO IMAGE ── */
.logo-img {
  height: 62px;
  width: auto;
  display: block;
}
.footer-brand .logo-img {
  background: white;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ── NAV ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--mid-gray);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.nav-inner {
  max-width: 100%;
  padding: 0 clamp(20px, 4vw, 60px) 0 clamp(40px, 7vw, 120px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 52px;
  height: 52px;
  background: var(--teal);
  color: white;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 2px solid var(--teal-dark);
}
.logo-text { line-height: 1.2; }
.logo-text span:first-child {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}
.logo-text span:last-child {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}
nav ul li a {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  transition: background .2s, color .2s;
}
nav ul li a:hover,
nav ul li a.active {
  background: var(--teal);
  color: var(--white);
}

/* ── PAGE BANNER ── */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-top: 4px solid var(--teal);
  padding: 48px 24px 40px;
  text-align: center;
  color: white;
}
.page-banner h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.breadcrumb {
  font-size: 13px;
  opacity: .75;
}
.breadcrumb a { color: var(--teal-light); }

/* ── HERO HEADLINE ── */
.hero-headline {
  background-image: url('../images/hero-bg-gears2.jpg');
  background-size: cover;
  background-position: center center;
  min-height: 100vh;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
/* Diagonal overlay: white-tinted left zone fades at the diagonal cut, right is raw image */
.hero-headline-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(255,255,255,0.62) 0%,
    rgba(255,255,255,0.50) 35%,
    rgba(255,255,255,0.10) 58%,
    rgba(255,255,255,0.00) 72%
  );
  /* diagonal clip: covers left portion, cuts diagonally toward bottom-right */
  -webkit-mask-image: linear-gradient(105deg, black 0%, black 50%, transparent 72%);
  mask-image: linear-gradient(105deg, black 0%, black 50%, transparent 72%);
}
.hero-headline::after { display: none; }

/* Full-height inner — brand occupies top, cards sit above bottom edge */
.hero-headline-inner {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  position: relative;
  z-index: 1;
  padding-bottom: clamp(60px, 11vh, 130px);
}

/* Brand block — vertically centred in the upper zone */
.hero-headline-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
  padding: clamp(60px, 11vh, 130px) clamp(24px, 4vw, 60px) clamp(36px, 5vh, 64px) clamp(40px, 7vw, 120px);
  max-width: 780px;
}
/* ── HERO BRAND BLOCK ── */
.hero-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  animation: heroFadeDown 0.8s cubic-bezier(0.22,1,0.36,1) 0.1s forwards;
}
.hero-brand-name {
  font-size: clamp(4.2rem, 10vw, 8rem);
  font-weight: 800;
  color: var(--teal-dark);
  letter-spacing: -4px;
  line-height: 1;
}
.hero-brand-divider {
  width: 3px;
  height: clamp(48px, 8vw, 80px);
  background: var(--teal);
  border-radius: 2px;
  flex-shrink: 0;
}
.hero-brand-sub {
  font-size: clamp(0.75rem, 1.4vw, 1rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 5px;
  text-transform: uppercase;
  line-height: 1.5;
  max-width: 140px;
}
/* ── HERO TAGLINE ── */
.hero-tagline {
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.38;
  letter-spacing: -0.2px;
  margin-top: 26px;
  max-width: none;
  padding-left: 0;
  border-left: none;
  opacity: 0;
  animation: heroFadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.45s forwards;
}
.hero-tagline-accent {
  color: var(--teal-dark);
  font-weight: 800;
}

/* ── HERO SERVICE LINE — full-width proof-point bridge strip ── */
.hero-service-line {
  display: flex;
  flex-direction: row;
  gap: 0;
  width: 100%;
  flex: 0 0 auto;
  background: rgba(6, 18, 34, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(14, 165, 165, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px clamp(40px, 7vw, 120px);
  opacity: 0;
  animation: heroFadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.65s forwards;
}
.hero-si {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-si:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}
.hero-si-n {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--teal-light);
  letter-spacing: 2px;
  margin-bottom: 2px;
}
.hero-si-title {
  display: block;
  font-size: 0.90rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.1px;
}
.hero-si-desc {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
  letter-spacing: 0;
}

/* ── HERO SERVICE CARDS — full-width horizontal bottom strip ── */
@keyframes heroCardIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-services {
  display: flex;
  flex-direction: row;
  gap: 0;
  flex: 0 0 auto;
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-service-card {
  flex: 1;
  background: rgba(6, 18, 34, 0.60);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 3px solid transparent;
  border-right: 1px solid rgba(255,255,255,0.09);
  border-left: none;
  border-bottom: none;
  border-radius: 0;
  padding: 32px 36px 26px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: none;
  transition: background 0.22s, border-top-color 0.22s;
  opacity: 0;
  animation: heroCardIn 0.65s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-service-card:nth-child(1) { animation-delay: 0.55s; }
.hero-service-card:nth-child(2) { animation-delay: 0.80s; }
.hero-service-card:nth-child(3) { animation-delay: 1.05s; }
.hero-service-card:last-child { border-right: none; }
.hero-service-card:hover {
  background: rgba(6, 18, 34, 0.85);
  border-top-color: var(--teal);
  transform: none;
  box-shadow: none;
}
.hero-service-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(14,165,165,0.25);
}
.hero-service-icon {
  width: 26px;
  height: 26px;
  color: var(--teal);
  flex-shrink: 0;
}
.hero-service-icon svg { width: 100%; height: 100%; }
.hero-service-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.1px;
}
.hero-service-card p {
  font-size: 0.88rem;
  color: rgba(210, 228, 240, 0.88);
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}
/* Buttons side by side */
.hero-service-btns {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.hero-service-btn {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-align: center;
  background: var(--teal);
  color: #fff;
  transition: background 0.18s, transform 0.15s;
}
.hero-service-btn:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.hero-service-btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(14,165,165,0.55);
  color: var(--teal-light);
}
.hero-service-btn-ghost:hover { background: rgba(14,165,165,0.20); border-color: var(--teal-light); color: #fff; }

/* silence old selectors */
.hero-eyebrow-label, .hero-headline-title, .hero-title-line1,
.hero-title-line2, .hero-single-phrase, .hero-sub-tagline,
.hero-service-list, .hero-cta-row, .hero-cta-primary,
.hero-cta-ghost { display: none; }
@keyframes heroFadeDown {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
/* unused legacy selectors kept inert */
.hero-eyebrow, .hero-title-divider, .hero-title-pillars,
.hero-sd-logo, .hero-service-pills, .hero-headline-sub { display: none; }

/* ── TRIPTYCH HEADER ── */
.triptych-header {
  background: var(--white);
  text-align: center;
  padding: 14px 24px 12px;
  border-top: 3px solid var(--teal);
}
.triptych-header h2 {
  font-size: clamp(0.65rem, 1.2vw, 0.82rem);
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0;
}

/* ── HERO TRIPTYCH ── */
.hero-triptych {
  display: flex;
  min-height: clamp(220px, 36vh, 360px);
  overflow: hidden;
  padding: 0;
}
.hero-panel {
  flex: 1;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: flex 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}
.hero-panel:not(:last-child) {
  border-right: 2px solid rgba(255,255,255,0.18);
}
.hero-panel:hover { flex: 1.9; }
.hero-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--teal);
  z-index: 3;
}
.panel-overlay {
  position: absolute;
  inset: 0;
  transition: opacity 0.4s;
}
.hero-panel--engineering .panel-overlay {
  background: linear-gradient(180deg, rgba(22,38,58,0.52) 0%, rgba(22,38,58,0.88) 100%);
}
.hero-panel--energy .panel-overlay {
  background: linear-gradient(180deg, rgba(8,80,100,0.45) 0%, rgba(14,165,165,0.80) 100%);
}
.hero-panel--deeptech .panel-overlay {
  background: linear-gradient(180deg, rgba(28,12,55,0.50) 0%, rgba(22,30,60,0.88) 100%);
}
.panel-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 26px;
}
.panel-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 10px;
  display: block;
}
.panel-content h2 {
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.15;
}
.panel-content p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 280px;
}
.panel-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 260px;
}
.panel-btn {
  display: block;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  background: var(--teal);
  color: #ffffff;
  border: 2px solid var(--teal);
  transition: all 0.25s;
  letter-spacing: 0.2px;
}
.panel-btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.panel-btn-ghost {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.65);
  color: #ffffff;
  backdrop-filter: blur(4px);
}
.panel-btn-ghost:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--navy);
}
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: all .25s;
  cursor: pointer;
}
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-dark); color: white; box-shadow: 0 4px 16px rgba(14,165,165,.40); }
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}
.btn-outline:hover { background: white; color: var(--navy); }
.btn-teal { background: var(--teal); color: white; }
.btn-outline-teal { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline-teal:hover { background: var(--teal); color: white; }
.btn-teal:hover { background: var(--teal-dark); color: white; }

/* ── SECTIONS ── */
section { padding: 72px 24px; }
.container { max-width: 1200px; margin: auto; }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--teal);
  margin-top: 8px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 700px;
  margin-bottom: 40px;
}

/* ── WHY SIMDYNS ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.core-competences ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.core-competences ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--light-gray);
  border-radius: 6px;
  border-left: 3px solid var(--teal);
  font-size: 14px;
  font-weight: 600;
}
.core-competences ul li::before {
  content: '▸';
  color: var(--teal);
  font-size: 16px;
  flex-shrink: 0;
}

/* ── SERVICE TABS ── */
.service-tabs-bar {
  background: var(--light-gray);
  border-bottom: 1px solid var(--mid-gray);
  position: sticky;
  top: 64px;
  z-index: 90;
}
.service-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.service-tabs::-webkit-scrollbar { display: none; }
.service-tab {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  background: white;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.service-tab:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.service-tab.active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

/* ── SERVICE CARDS ── */
.service-cards { display: flex; flex-direction: column; gap: 56px; }
.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.service-card.reverse { direction: rtl; }
.service-card.reverse > * { direction: ltr; }
.service-img {
  background: linear-gradient(135deg, var(--navy) 0%, #0d4f4f 100%);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.2);
  font-size: 5rem;
  position: relative;
}
.service-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.service-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='rgba(13,138,138,.4)' stroke-width='1'%3E%3Crect x='5' y='5' width='70' height='70'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Cline x1='5' y1='40' x2='75' y2='40'/%3E%3Cline x1='40' y1='5' x2='40' y2='75'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .7;
}
.service-text h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}
.service-text ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 24px;
}
.service-text ul li {
  padding: 7px 0 7px 20px;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--mid-gray);
}
.service-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ── SOLUTIONS GRID ── */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.solution-card {
  background: var(--white);
  border: 1px solid var(--mid-gray);
  border-radius: 10px;
  padding: 28px 24px;
  transition: box-shadow .25s, transform .25s;
  position: relative;
  overflow: hidden;
}
.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform .25s;
  transform-origin: left;
}
.solution-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  transform: translateY(-4px);
  border-left: 3px solid var(--teal);
}
.solution-card:hover::before { transform: scaleX(1); }
.solution-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  color: var(--teal);
}
.solution-icon svg {
  width: 100%;
  height: 100%;
}
.solution-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.solution-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ── NEWS ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--mid-gray);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.news-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  transform: translateY(-4px);
}
.news-thumb {
  background: linear-gradient(135deg, var(--navy), var(--teal-dark));
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
  position: relative;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-body { padding: 20px; }
.news-body .tag {
  display: inline-block;
  background: var(--teal);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.news-body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.news-body h3 a { color: var(--navy); }
.news-body h3 a:hover { color: var(--teal); }

/* ── QUOTE / CTA ── */
.quote-section {
  background: linear-gradient(135deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.28) 100%), url('../images/testimonial-bg.jpg') center/cover no-repeat;
  padding: 64px 24px;
  color: white;
  text-align: center;
}
.quote-section blockquote {
  font-size: 1.3rem;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto 16px;
  opacity: .9;
  line-height: 1.8;
}
.quote-section blockquote::before { content: '"'; font-size: 4rem; color: var(--teal-light); line-height: 0; vertical-align: -.4em; margin-right: 4px; }
.quote-section blockquote::after { content: '"'; font-size: 4rem; color: var(--teal-light); line-height: 0; vertical-align: -.4em; margin-left: 4px; }
.quote-author { font-weight: 700; color: var(--teal-light); letter-spacing: 1px; text-transform: uppercase; font-size: 14px; }

.cta-section {
  background: linear-gradient(135deg, rgba(0,0,0,.50) 0%, rgba(0,0,0,.42) 100%), url('../images/cta-bg.jpg') center/cover no-repeat;
  padding: 64px 24px;
  text-align: center;
  color: white;
}
.cta-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.cta-section p { font-size: 1.1rem; opacity: .9; margin-bottom: 28px; }
.cta-section .btn-outline { border-color: white; color: white; }
.cta-section .btn-outline:hover { background: white; color: var(--teal); }

/* ── PARTNERS ── */
.partners-section { background: var(--light-gray); }
.partners-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 32px;
}
.partner-logo {
  width: 140px;
  height: 70px;
  background: white;
  border: 1px solid var(--mid-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  padding: 8px;
  overflow: hidden;
}
.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.approach-list { list-style: none; margin-top: 16px; }
.approach-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--mid-gray);
  font-size: 0.95rem;
}
.approach-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ── TEAM ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--mid-gray);
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  transition: box-shadow .25s, transform .25s;
}
.team-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  transform: translateY(-4px);
}
.team-avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  font-weight: 700;
  overflow: hidden;
  border: 3px solid var(--teal);
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.team-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.team-card .role { font-size: 13px; color: var(--teal); font-weight: 600; margin-bottom: 12px; }
.team-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; margin-bottom: 14px; }
.team-links { display: flex; justify-content: center; gap: 10px; }
.team-links a {
  width: 32px;
  height: 32px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background .2s;
}
.team-links a:hover { background: var(--teal); color: white; }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.contact-info ul { list-style: none; margin-top: 20px; }
.contact-info ul li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--mid-gray);
}
.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--teal);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-form { background: var(--light-gray); padding: 36px; border-radius: 12px; display: flex; flex-direction: column; }
.contact-form form { display: flex; flex-direction: column; flex: 1; }
.contact-form .form-group:last-of-type { flex: 1; display: flex; flex-direction: column; }
.contact-form .form-group:last-of-type textarea { flex: 1; min-height: 160px; }
.contact-form h2 { margin-bottom: 8px; font-size: 1.5rem; color: var(--navy); }
.contact-form .sub { color: var(--text-light); margin-bottom: 24px; font-size: .95rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--mid-gray);
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font);
  background: white;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ── ARTICLE / NEWS POST ── */
.article-wrap { max-width: 860px; margin: auto; }
.article-wrap article {
  background: white;
  border: 1px solid var(--mid-gray);
  border-radius: 12px;
  padding: 40px 48px;
}
.article-wrap article h3 { font-size: 1.8rem; color: var(--navy); margin-bottom: 8px; }
.article-wrap article h4 { font-size: 1.1rem; color: var(--teal); margin-bottom: 16px; font-weight: 600; }
.article-meta { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }
.article-wrap article p { margin-bottom: 16px; line-height: 1.8; }
.share-bar { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--mid-gray); }
.share-bar h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.share-btns { display: flex; gap: 10px; }
.share-btn {
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: white;
}
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.li { background: #0a66c2; }

/* ── PUBLICATIONS ── */
.pub-grid { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.pub-card {
  background: white;
  border: 1px solid var(--mid-gray);
  border-radius: 10px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: box-shadow .25s;
}
.pub-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.pub-num {
  width: 48px;
  height: 48px;
  background: var(--teal);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.pub-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.pub-card h3 a { color: var(--navy); }
.pub-card h3 a:hover { color: var(--teal); }
.pub-card .tag {
  display: inline-block;
  background: var(--light-gray);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  border-top: 3px solid var(--teal);
}
.footer-main {
  max-width: 1200px;
  margin: auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo-text span:first-child { color: white; }
.footer-brand p { margin-top: 14px; font-size: 14px; opacity: .8; line-height: 1.6; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--teal-light); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.7); transition: color .2s; }
.footer-col ul li a:hover { color: var(--teal-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 24px;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: .65;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  transition: background .2s;
}
.social-links a:hover { background: var(--teal); }

/* ── CASE STUDIES ── */
.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.case-filter {
  padding: 8px 22px;
  border: 2px solid var(--mid-gray);
  background: transparent;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all .2s;
}
.case-filter:hover, .case-filter.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 60px;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--mid-gray);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.case-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
  transform: translateY(-3px);
}
.case-logo-panel {
  height: 180px;
  background: #fafafa;
  border-bottom: 1px solid var(--mid-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px 28px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.case-logo-panel img {
  max-height: 80px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(15%);
  transition: filter .2s;
}
.case-card:hover .case-logo-panel img { filter: grayscale(0%); }
.case-logo-panel--photo {
  padding: 0;
}
.case-logo-panel--photo img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none !important;
}
.case-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.case-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.case-year {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}
.case-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 0;
}
.case-client {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  margin: 0;
}
.case-body > p:not(.case-client) {
  font-size: 0.87rem;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0;
}
.case-activities {
  margin-top: 4px;
  border-top: 1px solid var(--mid-gray);
  padding-top: 12px;
}
.case-activities h4 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--navy);
  margin-bottom: 8px;
}
.case-activities ul {
  padding-left: 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.case-activities ul li {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
}
.case-activities ul li::marker { color: var(--teal); }

/* Cases preview on homepage */
.cases-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-preview-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--mid-gray);
  transition: box-shadow .25s, transform .25s;
}
.case-preview-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.09);
  transform: translateY(-3px);
}
.case-preview-img {
  height: 160px;
  background-size: cover;
  background-position: center;
}
.case-preview-body {
  padding: 20px;
}
.case-preview-body .tag { margin-bottom: 8px; display: inline-block; }
.case-preview-body h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 0 0 6px;
}
.case-preview-body p {
  font-size: 0.84rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-triptych { flex-direction: column; }
  .hero-panel {
    flex: none !important;
    min-height: 160px;
    height: auto;
    transition: none;
  }
  .hero-panel:not(:last-child) { border-right: none; border-bottom: 2px solid rgba(255,255,255,0.18); }
  .panel-content {
    position: relative;
    inset: auto;
    padding: 24px 24px 22px;
    justify-content: center;
    align-items: flex-start;
  }
  .panel-content h2 { font-size: 1.2rem; margin-bottom: 6px; }
  .panel-content p { font-size: 0.82rem; margin-bottom: 12px; line-height: 1.5; }
  .panel-btns { flex-direction: row; flex-wrap: wrap; gap: 8px; max-width: 100%; }
  .panel-btn { flex: 1; min-width: 110px; text-align: center; padding: 9px 14px; font-size: 0.8rem; }
  .panel-overlay {
    position: absolute;
    inset: 0;
  }
  .why-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .cases-preview-grid { grid-template-columns: 1fr 1fr; }
  .service-card { grid-template-columns: 1fr; }
  .service-card.reverse { direction: ltr; }
  .solutions-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
/* ── MOBILE MENU TOGGLE ── */
#menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
}
#menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .25s;
}
#menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-toggle.open span:nth-child(2) { opacity: 0; }
#menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  /* Fill screen accounting for mobile browser chrome */
  .hero-headline {
    min-height: 100svh;
    background-position: 60% center;
  }
  /* Remove diagonal mask, use solid overlay for full readability */
  .hero-headline-overlay {
    -webkit-mask-image: none;
    mask-image: none;
    background: rgba(255,255,255,0.68);
  }
  /* Stack vertically, center everything */
  .hero-headline-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding: 100px 0 0;
  }
  .hero-headline-left {
    align-items: center;
    max-width: 100%;
    padding: 0 24px 32px;
  }
  /* Brand centered */
  .hero-brand { gap: 14px; justify-content: center; }
  .hero-brand-name { font-size: clamp(3rem, 11vw, 4.2rem); letter-spacing: -2px; }
  .hero-brand-divider { height: 44px; }
  .hero-brand-sub { font-size: 0.68rem; letter-spacing: 4px; }
  /* Tagline — readable at mobile size */
  .hero-tagline { font-size: 1.2rem; margin-top: 14px; text-align: center; max-width: 100%; line-height: 1.4; }
  /* Cards: stack vertically full-width */
  .hero-services { flex-direction: column; border-top: none; }
  .hero-service-card {
    flex: none;
    border-top: 1px solid rgba(255,255,255,0.10);
    border-right: none;
    border-left: 4px solid transparent;
    border-bottom: none;
    padding: 22px 24px 18px;
    background: rgba(6, 18, 34, 0.78);
  }
  .hero-service-card:hover { border-top-color: rgba(255,255,255,0.10); border-left-color: var(--teal); }
  .hero-service-card h3 { font-size: 1.05rem; }
  .hero-service-card p { font-size: 0.86rem; line-height: 1.6; }
  .hero-service-btn { font-size: 0.74rem; padding: 7px 14px; }
}

@media (max-width: 480px) {
  .hero-headline { background-position: 55% center; }
  .hero-headline-inner { padding-top: 90px; }
  .hero-headline-left { padding: 0 18px 28px; }
  .hero-brand-name { font-size: clamp(2.6rem, 13vw, 3.4rem); letter-spacing: -2px; }
  .hero-brand-divider { height: 38px; }
  .hero-brand-sub { font-size: 0.62rem; letter-spacing: 3px; max-width: 110px; }
  .hero-tagline { font-size: 1.08rem; }
  .hero-service-card { padding: 20px 18px 16px; }
  .hero-service-card h3 { font-size: 1rem; }
  .hero-service-card p { font-size: 0.82rem; }
}

@media (max-width: 600px) {
  .hero-headline-inner { padding: 110px 16px 32px; }
  .hero-brand { gap: 10px; }
  .hero-brand-name { font-size: clamp(2.4rem, 11vw, 3.2rem); letter-spacing: -2px; }
  .hero-brand-divider { height: 36px; }
  .hero-brand-sub { font-size: 0.6rem; letter-spacing: 3px; max-width: 100px; }
  .hero-tagline { font-size: 1.1rem; margin-top: 10px; }
  .solutions-grid, .news-grid, .team-grid, .cases-grid, .cases-preview-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .core-competences ul { grid-template-columns: 1fr; }
  #menu-toggle { display: flex; }
  nav ul {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    border-top: 2px solid var(--mid-gray);
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    padding: 8px 16px 16px;
    gap: 4px;
    z-index: 99;
  }
  nav ul.open { display: flex; }
}
