:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-light: #60a5fa;
  --gold: #f59e0b;
  --coral: #fb7185;
  --text: #172033;
  --text-light: #64748b;
  --bg: #f8fbff;
  --bg-alt: #f1f6fd;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --border: #dbe7f3;
  --radius: 16px;
  --transition: all 0.28s ease;
  --shadow-soft: 0 8px 24px rgba(37, 99, 235, 0.08);
  --shadow-medium: 0 18px 44px rgba(15, 23, 42, 0.12);

  --title-gradient: linear-gradient(135deg, #2563eb 0%, #6366f1 55%, #fb7185 100%);
  --title-size: clamp(2.4rem, 4.8vw, 4.1rem);
  --title-weight: 800;
  --title-spacing: -0.04em;
  --title-line: 0.98;
  --hero-title-font: "Cormorant Garamond", serif;
  --hero-title-accent: var(--accent);
}

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

html {
  scroll-padding-top: 96px;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.06), transparent 24%),
    var(--bg);
}

h1 {
  font-family: "Inter", sans-serif;
  font-weight: var(--title-weight);
  line-height: 1.02;
  letter-spacing: var(--title-spacing);
  color: var(--primary);
}

h2,
h3 {
  font-family: "Inter", sans-serif;
  font-weight: var(--title-weight);
  letter-spacing: -0.03em;
  color: var(--accent);
}

p {
  margin-bottom: 18px;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.18);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes buttonShine {
  0% {
    transform: translateX(-140%) skewX(-20deg);
    opacity: 0;
  }
  20% {
    opacity: 0.35;
  }
  100% {
    transform: translateX(220%) skewX(-20deg);
    opacity: 0;
  }
}

@keyframes statGlow {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.08);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(96, 165, 250, 0.18),
      0 0 22px rgba(96, 165, 250, 0.08);
  }
}

@keyframes lineReveal {
  from {
    width: 0;
    opacity: 0.3;
  }
  to {
    width: 72px;
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(70px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes teamModalIn {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

h1 {
  animation-delay: 0.1s;
}
h2 {
  animation-delay: 0.2s;
}
h3 {
  animation-delay: 0.3s;
}
p {
  animation-delay: 0.4s;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

header::before {
  content: "";
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) * -1);
  left: 0;
  right: 0;
  height: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, 0.96);
}

header.scrolled {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

header .container.nav {
  max-width: 1320px;
  margin: 0 auto;
  height: 96px;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.logo img {
  width: 98px;
  height: 98px;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.logo-main {
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-sub {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7c8aa5;
  margin-top: 0.22rem;
}

header nav {
  min-width: 0;
  display: flex;
  justify-content: center;
}

header nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.45rem;
  list-style: none;
  min-width: 0;
  flex-wrap: nowrap;
}

header nav li {
  flex: 0 1 auto;
  min-width: 0;
}

header nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #111827;
  white-space: nowrap;
  transition: color 0.25s ease, transform 0.25s ease;
}

header nav a:hover,
header nav a.active {
  color: var(--accent);
}

header nav a:hover {
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  justify-self: end;
}

/* ===== HEADER DROPDOWN NAV ===== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: #111827;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-dropdown-toggle:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-dropdown-toggle i {
  font-size: 0.78rem;
  transition: transform 0.25s ease;
}

.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--accent);
}

.nav-dropdown.open .nav-dropdown-toggle i {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 0.55rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  z-index: 1200;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  text-decoration: none;
  color: #111827;
  font-weight: 600;
  font-size: 0.93rem;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.nav-dropdown-menu a:hover {
  background: #f3f6fb;
  color: var(--accent-dark);
  transform: translateX(2px);
}

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

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 46px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #111827;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
}

.lang-toggle:hover {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  padding: 0.45rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: unset;
  z-index: 1300;
}

.lang-dropdown.open .lang-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 52px;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  color: #111827;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-option:hover {
  background: #f3f6fb;
}

.lang-option.active {
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

/* ===== HEADER CTA ===== */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(135deg, #e11d48, #f43f5e);
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.2);
  transition: all 0.25s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.28);
}

/* ===== MOBILE TOGGLE ===== */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  justify-self: end;
  background: transparent;
  border: none;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: #111827;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f7f9fd 0%, #eef3fb 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(96, 165, 250, 0.12), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.08), transparent 24%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
  padding: 7rem 0 3rem;
}

.hero-text {
  max-width: 720px;
  animation: fadeInUp 1s ease;
}

.hero-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.35rem;
  margin-left: 95px;
  animation: fadeInUp 0.8s ease both;
}

.hero-badge .hero-brand {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
  transform: none;
}

.hero-badge .hero-kicker {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
}

.hero-title-block {
  display: block;
  margin-bottom: 1.4rem;
  animation: fadeInUp 0.95s ease both;
}

.hero-text h1 {
  font-family: var(--hero-title-font);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 600;
  line-height: 0.78;
  letter-spacing: -0.025em;
  color: #111111;
  margin-bottom: 2.2rem;
  max-width: 720px;
  animation: fadeInUp 0.95s ease both;
}

.hero-title-line {
  display: block;
}

.hero-title-accent {
  color: var(--hero-title-accent);
  font-style: italic;
}

.hero-subtext {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 620px;
  margin-bottom: 2rem;
  line-height: 1.4;
  animation: fadeInUp 1.1s ease both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 1.2s ease both;
}

/* ===== HERO VISUAL ===== */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 560px;
  margin-left: auto;
  animation: fadeInUp 1.1s ease both;
}

.hero-shape {
  position: absolute;
  border-radius: 999px;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-shape-top {
  top: 0;
  left: 160px;
  width: 270px;
  height: 120px;
  background-image: url("img/hero-lab1.jpg");
  background-position: center top;
  opacity: 0.95;
  animation: softFloat 8s ease-in-out infinite;
}

.hero-shape-main {
  top: 120px;
  left: 0;
  width: 470px;
  height: 160px;
  background-image: url("img/hero-lab2.jpg");
  background-position: center 35%;
  animation: softFloat 10s ease-in-out infinite;
}

.hero-shape-middle {
  top: 265px;
  left: 170px;
  width: 390px;
  height: 160px;
  background-image: url("img/hero-lab3.jpg");
  background-position: center 55%;
  animation: softFloat 9s ease-in-out infinite reverse;
}

.hero-shape-bottom {
  bottom: 35px;
  left: 0;
  width: 250px;
  height: 135px;
  background-image: url("img/hero-lab4.jpg");
  background-position: center bottom;
  animation: softFloat 11s ease-in-out infinite;
}

.hero-visual:hover .hero-shape {
  transform: translateY(-4px);
}

/* ===== BUTTONS ===== */
.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.8rem;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: "Inter", sans-serif;
}

.button::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -30%;
  width: 32%;
  height: 150%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-140%) skewX(-20deg);
  pointer-events: none;
}

.button:hover::after {
  animation: buttonShine 0.95s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.24);
}

.button.primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.34);
  filter: brightness(1.03);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.button.secondary:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px) scale(1.01);
  border-color: var(--accent-light);
}

/* ===== HERO STATS ===== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 900px;
  animation: fadeInUp 1.35s ease both;
}

.stat {
  text-align: center;
  padding: 0.95rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(96, 165, 250, 0.12);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease;
  animation: statGlow 4.5s ease-in-out infinite;
}

.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.22);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  display: block;
  font-family: "Playfair Display", serif;
}

.stat-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  margin-top: 0.35rem;
  display: block;
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 0;
  position: relative;
}

.section.alt {
  background: linear-gradient(180deg, rgba(241, 246, 253, 0.92), rgba(248, 251, 255, 0.98));
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin: 0;
  font-size: var(--title-size);
  line-height: var(--title-line);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-spacing);
  color: var(--accent);
  display: inline-block;
  position: relative;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 3px;
  background: var(--title-gradient);
  border-radius: 999px;
  animation: lineReveal 0.9s ease;
}

.section-header p {
  font-size: 1.02rem;
  color: var(--text-light);
  margin-top: 1.4rem;
}

.section-header p.section-subtitle-blue {
  color: var(--accent-dark);
  opacity: 0.82;
}

/* ===== CLIENTS ===== */
#clients {
  padding: 2.6rem 0;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

#clients h3 {
  text-align: center;
  color: var(--text-light);
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  font-family: "Inter", sans-serif;
}

.client-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 1.5rem 2rem;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 700;
  color: #5b6475;
  opacity: 1;
  transition: transform 0.25s ease, color 0.25s ease;
}

.client-logo:hover {
  transform: translateY(-2px);
  color: var(--primary);
}

.client-logo i {
  width: 28px;
  text-align: center;
  font-size: 1.6rem;
  color: #5b84f1;
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}

.client-logo:hover i {
  transform: scale(1.06);
  color: var(--accent);
}

/* ===== ABOUT ===== */
.about-premium {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.about-intro {
  max-width: 920px;
  margin: 0 auto 4rem;
  text-align: center;
}

.about-intro h2 {
  font-size: var(--title-size);
  line-height: var(--title-line);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-spacing);
  color: var(--accent);
  margin-bottom: 2rem;
}

.about-text {
  display: grid;
  gap: 1.4rem;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-light);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
  margin-top: 1rem;
}

.about-feature {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.8rem 1.6rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.about-feature-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.about-feature-text h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.about-feature-text p {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--text-light);
}

/* ===== ABOUT STEPS ===== */
.about-text-steps {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 2.4rem;
}

.about-step {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.about-step.left .about-step-number {
  order: 1;
  text-align: left;
}

.about-step.left .about-step-content {
  order: 2;
  max-width: 760px;
}

.about-step.right {
  grid-template-columns: minmax(0, 1fr) 120px;
}

.about-step.right .about-step-number {
  order: 2;
  text-align: right;
}

.about-step.right .about-step-content {
  order: 1;
  max-width: 760px;
  margin-left: auto;
  text-align: right;
}

.about-step-number {
  font-family: "Playfair Display", serif;
  font-size: 5.4rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
  opacity: 0.14;
  user-select: none;
}

.about-step-content p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text);
}

.about-step:not(:last-child) .about-step-content::after {
  content: "";
  display: block;
  width: 88px;
  height: 2px;
  margin-top: 1.8rem;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.35;
}

/* ===== HISTORY ===== */
#history {
  background: var(--bg-alt);
}

.history-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.history-text {
  padding: 0;
}

.history-text .about-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 1.2rem;
  margin-bottom: 1.8rem;
}

.history-text h3 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  margin-bottom: 1.6rem;
  line-height: 1.2;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.history-text p {
  font-size: 0.98rem;
  color: var(--text-light);
  line-height: 1.9;
}

.history-media {
  position: relative;
  border: none;
  background: transparent;
}

.history-media img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  transition: transform 0.45s ease;
}

.history-card-split:hover .history-media img,
.history-media:hover img {
  transform: scale(1.03);
}

.history-quote {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--primary);
  color: var(--surface);
  padding: 1.6rem 1.8rem;
  border-radius: 18px;
  max-width: 280px;
  box-shadow: 0 20px 50px rgba(8, 15, 30, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.2);
  z-index: 2;
}

.history-quote blockquote {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0 0 0.8rem;
}

.history-quote cite {
  font-size: 0.8rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}

.history-card-split {
  padding: 0;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* ===== EXPERTISE ===== */
.expertise-steps {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.expertise-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.expertise-step {
  position: relative;
  padding-left: 2.2rem;
}

.step-number {
  font-size: 4.6rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.8rem;
  font-family: "Playfair Display", serif;
  letter-spacing: -2px;
}

.expertise-step h3 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

.expertise-step p {
  color: var(--text-light);
  line-height: 1.75;
  font-size: 1rem;
  max-width: 420px;
}

.expertise-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 3px;
  height: calc(100% - 1.1rem);
  background: linear-gradient(to bottom, var(--accent), var(--accent-light));
  border-radius: 999px;
}

.expertise-step:hover .step-number {
  transform: translateY(-4px);
  transition: transform 0.3s ease;
}

.expertise-outro {
  margin-top: 3.5rem;
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.expertise-outro p {
  color: var(--text-light);
  line-height: 1.75;
  font-size: 1.02rem;
}

/* ===== SERVICES ===== */
.services-section {
  position: relative;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7fd 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.services-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem;
}

.services-header h2 {
  margin: 0;
  font-size: var(--title-size);
  line-height: var(--title-line);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-spacing);
  color: var(--accent);
}

.services-header h2 span {
  color: var(--accent);
}

.services-header p {
  max-width: 720px;
  margin: 1.2rem auto 0;
  font-size: 1.02rem;
  color: var(--text-light);
  line-height: 1.75;
}

.services-grid-soft {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.service-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 1.7rem 1.45rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.14);
}

.service-panel-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-dark);
  font-size: 1.1rem;
}

.service-panel:nth-child(2) .service-panel-icon {
  background: rgba(99, 102, 241, 0.09);
  color: #4f46e5;
}

.service-panel:nth-child(3) .service-panel-icon {
  background: rgba(251, 113, 133, 0.1);
  color: #e11d48;
}

.service-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.12rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.service-panel-lead {
  margin: 0 0 1rem;
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--text-light);
}

.service-panel ul {
  list-style: none;
  margin: 0;
  padding: 0.95rem 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.service-panel li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.72rem;
  color: var(--text);
  line-height: 1.7;
  font-size: 0.95rem;
}

.service-panel li:last-child {
  margin-bottom: 0;
}

.service-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.services-outro {
  max-width: 900px;
  margin: 2.2rem auto 0;
  text-align: center;
}

.services-outro p {
  margin: 0;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
}

/* ===== PHILOSOPHY ===== */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.philosophy-card {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 1.7rem;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transition: all 0.35s ease;
  border: 1px solid var(--border);
  position: relative;
}

.philosophy-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.11);
  border-color: rgba(96, 165, 250, 0.24);
}

.philosophy-number {
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.1;
  position: absolute;
  top: 0.5rem;
  right: 1.1rem;
  font-family: "Playfair Display", serif;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.philosophy-card:hover .philosophy-number {
  transform: scale(1.04);
  opacity: 0.16;
}

.philosophy-card h3 {
  font-size: 1.22rem;
  margin-bottom: 0.7rem;
  position: relative;
  z-index: 1;
}

.philosophy-card p {
  color: var(--text-light);
  font-size: 0.96rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ===== TEAM ===== */
#team {
  background: var(--surface);
}

.team-featured {
  display: flex;
  justify-content: center;
  margin: 0 auto 2.5rem;
}

.team-featured .team-card {
  width: 100%;
  max-width: 480px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 100%;
  margin: 0 auto;
}

.team-card {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(8, 15, 30, 0.08);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: none;
  transform: translateZ(0);
}

.team-card:hover {
  transform: translateY(-7px) translateZ(0);
  box-shadow: 0 24px 56px rgba(8, 15, 30, 0.13);
  border-color: rgba(37, 99, 235, 0.15);
}

.team-image {
  position: relative;
  aspect-ratio: 3 / 3.3;
  overflow: hidden;
}

.team-image img,
.team-modal__left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  image-rendering: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.team-image img {
  transition: transform 0.55s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.04);
}

.team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 15, 30, 0.72) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.5rem;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.linkedin-icon {
  width: 54px;
  height: 54px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  color: var(--accent);
  transition: var(--transition);
  text-decoration: none;
}

.linkedin-icon:hover {
  transform: scale(1.08);
}

.team-info {
  padding: 1.4rem 1.5rem 1.6rem;
}

.team-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ===== CONTACT ===== */
.contact-grid {
  max-width: 980px;
  margin: 0 auto;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-item {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 1.35rem;
  border-radius: 14px;
  display: flex;
  gap: 1rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.24);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.contact-item:hover .contact-icon {
  transform: translateY(-2px) rotate(-5deg);
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.2);
}

.contact-icon i {
  font-size: 1.25rem;
  color: white;
}

.contact-details h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.contact-details p,
.contact-details a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.94rem;
}

.contact-details a:hover {
  color: var(--accent-dark);
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(180deg, #0b1120, #0f172a);
  color: white;
  padding: 3.5rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
  line-height: 1.7;
  font-size: 0.96rem;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 0.75rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-links a {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.social-links a:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.24);
}

.footer-links h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  font-family: "Inter", sans-serif;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
}

.footer-contact i {
  color: var(--accent-light);
}

.footer-bottom {
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
}

/* ===== COOKIE ===== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 520px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  z-index: 10000;
  border: 1px solid var(--border);
  display: none;
}

.cookie-banner.show {
  display: block;
  animation: slideUp 0.5s ease;
}

.cookie-banner h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  font-family: "Inter", sans-serif;
}

.cookie-banner p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.94rem;
}

.cookie-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.cookie-buttons .button {
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 15, 32, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  backdrop-filter: blur(5px);
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 2rem;
  border-radius: 18px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.22);
  border: 1px solid var(--border);
  animation: fadeInUp 0.35s ease;
}

.cookie-modal-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
  font-family: "Inter", sans-serif;
}

.cookie-options {
  margin: 1.4rem 0;
}

.cookie-options label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem;
  margin-bottom: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.75);
}

.cookie-options label:hover {
  background: var(--surface-soft);
  border-color: rgba(37, 99, 235, 0.28);
}

.cookie-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}

.cookie-modal-buttons {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.back-to-top.show {
  opacity: 1;
  pointer-events: all;
  animation: softPulse 2.4s ease-in-out infinite;
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.32);
  filter: brightness(1.03);
}

/* ===== TEAM MODAL ===== */
.team-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
}

.team-modal.show {
  display: block;
}

.team-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

.team-modal__panel {
  position: relative;
  width: min(1100px, calc(100% - 2rem));
  margin: 4vh auto;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: teamModalIn 0.18s ease;
  border: 1px solid var(--border);
}

.team-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: none;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
}

.team-modal__close:hover {
  background: rgba(37, 99, 235, 0.14);
  transform: translateY(-1px) rotate(90deg);
}

.team-modal__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  height: 100%;
  min-height: 460px;
}

.team-modal__left {
  background: linear-gradient(180deg, #0f172a, #1e3a8a);
  height: 100%;
  min-height: 460px;
}

.team-modal__right {
  padding: 1.8rem 1.8rem 1.6rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.team-modal__right h3 {
  font-size: var(--title-size);
  line-height: var(--title-line);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-spacing);
  margin-bottom: 0.3rem;
}

.team-modal__role {
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: "Inter", sans-serif;
}

.team-modal__bio {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.98rem;
}

.team-modal__bio p {
  margin-bottom: 0.9rem;
}

.team-modal__right::-webkit-scrollbar {
  width: 9px;
}

.team-modal__right::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.24);
  border-radius: 999px;
}

.team-modal__right::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.05);
}

/* ===== CAREERS ===== */
.careers-section {
  background: #f3ece8;
  position: relative;
  overflow: hidden;
  padding: 3.8rem 0;
}

.careers-section::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.careers-section::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.05), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.careers-header {
  margin-bottom: 2.2rem;
}

.careers-header h2 {
  font-size: var(--title-size);
  line-height: var(--title-line);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-spacing);
  color: var(--accent);
  margin-bottom: 0.9rem;
  position: relative;
  display: inline-block;
}

.careers-header h2::after {
  display: none;
}

.careers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.career-card {
  text-align: center;
  padding: 1rem 1rem 0.2rem;
  border-radius: 18px;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  animation: fadeInUp 0.7s ease both;
}

.career-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.career-card:nth-child(2) {
  animation-delay: 0.12s;
}

.career-card:nth-child(3) {
  animation-delay: 0.24s;
}

.career-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  color: #ef233c;
  font-size: 2.1rem;
  transition: transform 0.3s ease;
}

.career-icon::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dotted rgba(239, 35, 60, 0.35);
  border-radius: 50%;
}

.career-card:hover .career-icon {
  transform: scale(1.06) translateY(-2px);
}

.career-card h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.career-card p {
  font-size: 1rem;
  line-height: 1.65;
  color: #24364d;
  max-width: 400px;
  margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  header .container.nav {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 1rem;
    padding: 0 1rem;
  }

  header nav ul {
    gap: 1rem;
  }

  header nav a,
  .nav-dropdown-toggle {
    font-size: 0.84rem;
  }

  .lang-toggle,
  .header-cta {
    height: 42px;
  }

  .footer-content {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 968px) {
  html {
    scroll-padding-top: 82px;
  }

  .container {
    padding: 0 1.15rem;
  }

  .about-features,
  .services-grid-soft,
  .philosophy-grid,
  .contact-info,
  .footer-content,
  .careers-grid,
  .expertise-steps-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .about-intro {
    margin-bottom: 3rem;
  }

  .about-step,
  .about-step.right {
    grid-template-columns: 80px 1fr;
  }

  .about-step-number {
    font-size: 3.4rem;
  }

  .about-step-content p {
    font-size: 1rem;
  }

  header {
    background: rgba(255, 255, 255, 0.98);
  }

  header .container.nav {
    grid-template-columns: auto auto auto;
    height: 78px;
    column-gap: 0.75rem;
  }

  .logo {
    gap: 0.55rem;
    min-width: 0;
  }

  .logo img {
    width: 68px;
    height: 68px;
  }

  .logo-text {
    min-width: 0;
  }

  .logo-main {
    font-size: 0.98rem;
  }

  .logo-sub {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
  }

  header nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    display: block;
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }

  header nav.active {
    transform: translateY(0);
  }

  header nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    align-items: flex-start;
  }

  header nav a,
  .nav-dropdown-toggle {
    font-size: 0.98rem;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    justify-self: end;
  }

  .header-cta {
    display: none;
  }

  .lang-dropdown {
    display: block;
  }

  .lang-toggle {
    width: auto;
    min-width: 62px;
    height: 40px;
    padding: 0 0.85rem;
    font-size: 0.92rem;
  }

  .lang-menu {
    right: 0;
    min-width: auto;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 100%;
    margin-top: 0.75rem;
    box-shadow: none;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
    transform: none;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 6.5rem 0 2.8rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-badge {
    margin-left: 0;
    margin-bottom: 1rem;
  }

  .hero-badge .hero-brand {
    font-size: 1.7rem;
  }

  .hero-text h1 {
    font-size: clamp(2.4rem, 8vw, 4rem);
    line-height: 0.88;
    margin-bottom: 1.4rem;
    max-width: 100%;
  }

  .hero-subtext {
    max-width: 100%;
  }

  .hero-visual {
    margin: 0 auto;
    max-width: 470px;
    height: 470px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .about-step,
  .about-step.right {
    grid-template-columns: 80px 1fr;
    gap: 1.2rem;
  }

  .about-step.left .about-step-number,
  .about-step.right .about-step-number {
    order: 1;
    text-align: left;
  }

  .about-step.left .about-step-content,
  .about-step.right .about-step-content {
    order: 2;
    text-align: left;
    margin-left: 0;
    max-width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .history-split {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .history-media img {
    height: 420px;
  }

  .history-quote {
    left: 1rem;
    bottom: 1rem;
    max-width: calc(100% - 2rem);
  }

  .team-modal__panel {
    width: calc(100% - 1rem);
    margin: 2vh auto;
    max-height: 94vh;
  }

  .team-modal__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .team-modal__left {
    min-height: auto;
    height: 260px;
  }

  .team-modal__right {
    padding: 1.25rem 1.1rem 1.2rem;
  }

  /* Clients: défilement horizontal mobile */
  #clients .container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #clients .container::-webkit-scrollbar {
    display: none;
  }

  .client-logos {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    width: max-content;
    min-width: 100%;
    padding-bottom: 0.25rem;
  }

  .client-logo {
    flex: 0 0 auto;
    justify-content: flex-start;
    min-height: auto;
    font-size: 1rem;
    white-space: nowrap;
  }

  .client-logo i {
    width: 24px;
    min-width: 24px;
    font-size: 1.3rem;
  }

  #clients h3 {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    margin-bottom: 1.4rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  header .container.nav {
    grid-template-columns: minmax(0, 1fr) auto auto;
    height: 76px;
    column-gap: 0.55rem;
  }

  .logo {
    gap: 0.45rem;
    min-width: 0;
  }

  .logo img {
    width: 58px;
    height: 58px;
  }

  .logo-main {
    font-size: 0.9rem;
  }

  .logo-sub {
    display: none;
  }

  .header-actions {
    display: flex;
    justify-self: end;
  }

  .lang-toggle {
    width: auto;
    min-width: 58px;
    height: 38px;
    padding: 0 0.75rem;
    border-radius: 999px;
  }

  .mobile-toggle {
    justify-self: end;
  }

  .mobile-toggle span {
    width: 23px;
  }

  .hero-content,
  .hero-layout {
    padding: 6.1rem 0 2.4rem;
  }

  .hero-badge {
    margin-left: 0;
  }

  .hero-badge .hero-brand {
    font-size: 1.35rem;
    transform: none;
    line-height: 1.15;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 0.92;
  }

  .hero-subtext {
    font-size: 0.98rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .header-cta {
    width: 100%;
    justify-content: center;
  }

  .hero-visual {
    max-width: 320px;
    height: 320px;
  }

  .hero-shape-top {
    top: 0;
    left: 92px;
    width: 160px;
    height: 70px;
  }

  .hero-shape-main {
    top: 70px;
    left: 0;
    width: 270px;
    height: 92px;
  }

  .hero-shape-middle {
    top: 150px;
    left: 85px;
    width: 235px;
    height: 92px;
  }

  .hero-shape-bottom {
    bottom: 18px;
    left: 0;
    width: 150px;
    height: 82px;
  }

  .section {
    padding: 3.8rem 0;
  }

  .section-header {
    margin-bottom: 2.2rem;
  }

  .section-header h2,
  .careers-header h2,
  .services-header h2 {
    font-size: 1.9rem;
  }

  .history-text h3 {
    font-size: 1.75rem;
  }

  .history-media img {
    height: 320px;
    border-radius: 18px;
  }

  .history-quote {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 1rem;
    max-width: 100%;
    border-radius: 16px;
    padding: 1.25rem 1.3rem;
  }

  .history-quote blockquote {
    font-size: 0.98rem;
  }

  .about-step,
  .about-step.right {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .about-step-number {
    font-size: 2.6rem;
  }

  .service-panel {
    padding: 1.45rem 1.2rem;
    border-radius: 16px;
  }

  .service-panel h3 {
    font-size: 1.02rem;
  }

  .service-panel-lead,
  .service-panel li,
  .services-outro p {
    font-size: 0.93rem;
  }

  .team-info {
    padding: 1.2rem 1.2rem 1.35rem;
  }

  .team-info h3 {
    font-size: 1.08rem;
  }

  .desc {
    font-size: 0.86rem;
  }

  .contact-item {
    padding: 1.1rem;
    align-items: flex-start;
  }

  .contact-icon {
    width: 44px;
    height: 44px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-links,
  .footer-contact {
    grid-column: auto;
  }

  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }

  .cookie-modal-content {
    width: calc(100% - 1.25rem);
    padding: 1.25rem;
  }

  .cookie-modal-buttons {
    flex-direction: column;
  }

  .cookie-modal-buttons .button {
    width: 100%;
    justify-content: center;
  }

  .back-to-top {
    width: 46px;
    height: 46px;
    right: 1rem;
    bottom: 1rem;
  }

  .team-modal__panel {
    width: calc(100% - 0.75rem);
    border-radius: 14px;
  }

  .team-modal__left {
    height: 220px;
  }

  .team-modal__right h3 {
    font-size: 1.7rem;
  }

  .team-modal__bio {
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .careers-section {
    padding: 3rem 0;
  }

  .career-icon {
    width: 74px;
    height: 74px;
    font-size: 1.9rem;
  }

  .client-logos {
    gap: 1.4rem;
  }

  .client-logo {
    font-size: 0.94rem;
  }

  .client-logo i {
    font-size: 1.2rem;
  }
}

@media (max-width: 420px) {
  .logo img {
    width: 52px;
    height: 52px;
  }

  .logo-main {
    font-size: 0.82rem;
  }

  .hero-badge .hero-brand {
    font-size: 1.15rem;
  }

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

  .hero-visual {
    max-width: 280px;
    height: 280px;
  }

  .hero-shape-top {
    left: 80px;
    width: 140px;
    height: 62px;
  }

  .hero-shape-main {
    width: 235px;
    height: 82px;
  }

  .hero-shape-middle {
    top: 130px;
    left: 74px;
    width: 206px;
    height: 82px;
  }

  .hero-shape-bottom {
    width: 132px;
    height: 72px;
  }

  .section-header h2,
  .careers-header h2,
  .services-header h2 {
    font-size: 1.7rem;
  }

  .lang-toggle {
    min-width: 54px;
    padding: 0 0.65rem;
    font-size: 0.88rem;
  }

  .mobile-toggle span {
    width: 21px;
  }

  .client-logos {
    gap: 1.15rem;
  }

  .client-logo {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== RESPONSIVE IMPROVEMENTS ===== */
img,
video,
svg {
  max-width: 100%;
  height: auto;
}

.team-card,
.service-panel,
.about-feature,
.contact-item,
.philosophy-card,
.career-card {
  min-width: 0;
}

.team-info h3,
.service-panel h3,
.about-feature-text h3,
.contact-details h3,
.career-card h3,
.footer-links a,
.footer-contact p,
.footer-contact a {
  overflow-wrap: anywhere;
}
#clients h2 {
  text-align: center;
  width: 100%;
  margin: 0 auto;
}