/* East Pharma Technologies — Homepage */

:root {
  --teal: #00a8a8;
  --purple: #894181;
  --navy: #0b1f3a;
  --text: #090408;
  --text-muted: #29282a;
  --text-label: #3c3c3b;
  --gray: #8f8f8d;
  --tab-inactive: #bbbbb6;
  --gray-bg: #f5f7fa;
  --border: #cacac0;
  --divider: #a3aab4;
  --input-border: #b4bbc3;
  --white: #fff;
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.08);
  --radius: 10px;
  --radius-lg: 20px;
  --radius-pill: 40px;
  --container: min(1296px, calc(100% - 48px));
  --header-h: 80px;
  --transition: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
.hero-slide video { max-width: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 9999;
  padding: 8px 16px; background: var(--teal); color: var(--white);
}
.skip-link:focus { left: 16px; }

.container { width: var(--container); margin-inline: auto; }
.text-center { text-align: center; }

.panel--rounded {
  background: var(--gray-bg);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 58px; padding: 0 24px; border-radius: var(--radius-pill);
  font-size: 18px; font-weight: 400; transition: transform 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: var(--white); }
.btn--gradient {
  border: none;
  color: var(--white);
  background: var(--purple);
}
.btn--gradient:hover {
  background: #7a3a74;
}
.btn--ghost { border: 1px solid var(--white); color: var(--white); }
.btn--outline { border: 1px solid var(--white); color: var(--white); }
.btn--outline-teal { border: 1px solid var(--teal); color: var(--teal); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--sm { height: 50px; padding: 0 20px; font-size: 16px; }
.btn--compact { height: 58px; padding: 0 20px; min-width: 190px; }
.btn--center { margin-inline: auto; }
.btn-arrow { width: 14px; height: 14px; flex-shrink: 0; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: background 0.3s, box-shadow 0.3s;
  overflow: visible;
}
.site-header::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}
.site-header.is-scrolled {
  background: var(--white);
  backdrop-filter: none;
  box-shadow: var(--shadow-lg);
}
.site-header.is-scrolled::after {
  background: var(--border);
}
.site-header.is-scrolled .main-nav {
  color: var(--text);
}
.site-header.is-scrolled .main-nav a:not(.btn) {
  color: var(--text);
}
.site-header.is-scrolled .main-nav a:not(.btn):hover {
  color: var(--teal);
}
.site-header.is-scrolled .nav-toggle span {
  background: var(--text);
}
.site-header.is-scrolled .main-nav .btn--outline {
  border-color: var(--text);
  color: var(--text);
}
.site-header.is-scrolled .main-nav .btn--outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo__mark {
  --logo-h: 48px;
  --logo-w: calc(var(--logo-h) * 110 / 76);
  height: var(--logo-h);
  width: var(--logo-w);
  object-fit: contain;
  object-position: left center;
}
.logo__mark--color {
  display: none;
}
.site-header.is-scrolled .logo__mark--light {
  display: none;
}
.site-header.is-scrolled .logo__mark--color {
  display: block;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.main-nav {
  display: flex; align-items: center; gap: 28px;
  font-size: 16px; color: var(--white);
}
.main-nav a:not(.btn):hover { color: var(--teal); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  transform-origin: center;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(9, 4, 8, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 769px) {
  .nav-backdrop {
    display: none !important;
  }
}

/* Products mega menu */
.nav-item--products {
  position: static;
}

.nav-item__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  position: relative;
}

.nav-item__trigger.is-active,
.nav-item--products.is-open .nav-item__trigger {
  font-weight: 600;
}

.nav-item--products.is-open .nav-item__trigger::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: currentColor;
}

.nav-item__chevron {
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav-item--products.is-open .nav-item__chevron {
  transform: rotate(180deg);
}

.products-mega {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  width: min(1296px, calc(100vw - 48px));
  z-index: 120;
  padding: 0;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(9, 4, 8, 0.14);
  color: var(--text);
}

.products-mega[hidden] {
  display: none !important;
}

.products-mega__inner {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  box-sizing: border-box;
}

.products-mega__cats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.products-mega__group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.products-mega__sub {
  display: none;
}

.products-mega__cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.products-mega__cat:hover {
  background: #f7f7f7;
}

.products-mega__cat.is-active {
  color: var(--purple);
  border-color: #e0d0de;
  background: #faf6fa;
}

.products-mega__cat-arrow {
  flex-shrink: 0;
  opacity: 0;
  color: var(--purple);
  transition: opacity 0.2s ease;
}

.products-mega__cat.is-active .products-mega__cat-arrow,
.products-mega__cat:hover .products-mega__cat-arrow {
  opacity: 1;
}

.products-mega__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.products-mega__product {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: var(--white);
  color: var(--text) !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.products-mega__product:hover,
.products-mega__product.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white) !important;
}

.site-header .products-mega a:not(.btn),
.site-header.is-scrolled .main-nav .products-mega a:not(.btn),
body.is-inner-hero-nav .site-header:not(.is-scrolled) .main-nav .products-mega a:not(.btn) {
  color: var(--text);
}

.site-header .products-mega a.products-mega__product.is-active,
.site-header .products-mega a.products-mega__product:hover,
.site-header.is-scrolled .main-nav .products-mega a.products-mega__product.is-active,
.site-header.is-scrolled .main-nav .products-mega a.products-mega__product:hover {
  color: var(--white) !important;
}

.site-header.is-scrolled .main-nav .nav-item__trigger,
.site-header.is-scrolled .main-nav .nav-item__trigger:hover {
  color: var(--text);
}

.site-header.is-scrolled .main-nav .nav-item__trigger:hover {
  color: var(--teal);
}

@media (max-width: 1100px) and (min-width: 769px) {
  .products-mega__inner {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 20px;
    padding: 22px;
  }

  .products-mega__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Hero — Figma frame 1600×850; content vertically centered */
.hero {
  position: relative;
  height: clamp(640px, 53.125vw, 850px);
  max-height: 100svh;
  color: var(--white);
  overflow: hidden;
}

/* Hidden until initHeroSlider finishes — prevents default copy / stale slide flash */
.hero:not(.is-ready) .hero-layout {
  visibility: hidden;
}
.hero:not(.is-ready) .hero-slider {
  opacity: 0;
}
.hero.is-ready .hero-slider {
  opacity: 1;
  transition: opacity 0.35s ease;
}

.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.65s ease;
  contain: layout style paint;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img,
.hero-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-slide__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
  transition: opacity 0.4s ease;
}
.hero-slide video {
  z-index: 1;
}
.hero-slide video.is-hidden { display: none; }
.hero-slide--minimal {
  background: #ececec;
}
.hero-slide--minimal .hero-slide__video--logo {
  object-fit: cover;
  object-position: center center;
}
/* Top gradient so fixed nav stays readable over light logo video */
.hero.is-logo-reveal .hero-overlay {
  opacity: 1;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(11, 31, 58, 0.82) 0%,
    rgba(11, 31, 58, 0.5) 14%,
    rgba(11, 31, 58, 0.22) 32%,
    rgba(11, 31, 58, 0.06) 48%,
    transparent 58%
  );
}
.hero.is-logo-reveal .hero-layout .hero-grid {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.hero.is-logo-reveal .hero-controls {
  z-index: 4;
}
body.is-hero-logo-nav .site-header:not(.is-scrolled) {
  background: transparent;
  box-shadow: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Figma: navy left-to-right for headline + light top fade for nav */
  background:
    linear-gradient(
      180deg,
      rgba(11, 31, 58, 0.55) 0%,
      rgba(11, 31, 58, 0.12) 18%,
      transparent 36%
    ),
    linear-gradient(
      90deg,
      rgba(11, 31, 58, 1) 0%,
      rgba(11, 31, 58, 0.72) 38%,
      rgba(11, 31, 58, 0.45) 58%,
      rgba(11, 31, 58, 0.15) 78%,
      transparent 100%
    );
}
.hero-layout {
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
  padding-bottom: clamp(32px, 4vw, 48px);
}

.hero-grid {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

@media (min-width: 1201px) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 727px) minmax(0, 1fr);
    align-items: stretch;
    column-gap: clamp(24px, 7.7vw, 123px);
  }

  .hero-col--content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
  }

  .hero-col--side,
  .hero-col--stat {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    min-height: 0;
  }

  .hero-main {
    max-width: 727px;
  }

  .hero-stat,
  .hero-capabilities {
    width: 400px;
    max-width: 400px;
  }

  .hero[data-layout='capabilities'] .hero-col--side {
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
  }

  .hero[data-layout='capabilities'] .hero-capabilities {
    width: 100%;
    max-width: min(440px, 100%);
    height: 100%;
    max-height: 100%;
    margin-left: auto;
    margin-right: 0;
    padding: 28px 14px;
  }

  .hero-title {
    font-size: 64px;
    line-height: 72px;
    margin-bottom: 28px;
  }

  .hero-subtitle {
    font-size: 22px;
    line-height: 32px;
    margin-bottom: 32px;
  }

  .btn--hero {
    width: 260px;
    min-width: 260px;
  }

  .btn--hero .btn-arrow {
    width: 11px;
    height: 11px;
  }

  .hero-stat-icon {
    width: 75px;
    height: 75px;
  }

  .hero-stat-text strong {
    font-size: 24px;
    line-height: 34px;
  }

  .hero-stat-text p {
    font-size: 20px;
    line-height: 26px;
  }
}

@media (max-width: 1200px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .hero-col--content {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero-col--side,
  .hero-col--stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
  }

  .hero-stat,
  .hero-capabilities {
    width: fit-content;
    max-width: min(288px, calc(100% - 120px));
    margin-right: calc(71px + 36px);
  }

  .hero[data-layout='capabilities'] .hero-capabilities {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
  }

}

.hero-main {
  max-width: 727px;
  min-width: 0;
}

.hero-title {
  margin: 0 0 clamp(16px, 1.75vw, 28px);
  font-size: clamp(30px, 4vw, 64px);
  font-weight: 700;
  line-height: 1.125;
  letter-spacing: -0.02em;
}

.hero-title__line {
  display: block;
}

.hero-subtitle {
  margin: 0 0 clamp(20px, 2vw, 32px);
  max-width: 709px;
  font-size: clamp(16px, 1.375vw, 22px);
  font-weight: 400;
  line-height: 1.4545;
  opacity: 0.9;
}

.hero-subtitle__line {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 1.5vw, 24px);
}

.btn--hero {
  width: min(260px, 100%);
  min-width: min(260px, 100%);
}

.btn--hero .btn-arrow {
  width: 11px;
  height: 11px;
}

.hero-stat {
  display: grid;
  grid-template-columns: clamp(56px, 4.7vw, 75px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 1.25vw, 14px);
  width: fit-content;
  max-width: min(340px, 100%);
  min-height: clamp(120px, 8.9vw, 143px);
  height: auto;
  padding: clamp(14px, 1.25vw, 18px) clamp(14px, 1.25vw, 18px);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: var(--radius);
  isolation: isolate;
}

.hero-stat-icon {
  position: relative;
  width: clamp(60px, 4.7vw, 75px);
  height: clamp(60px, 4.7vw, 75px);
  flex-shrink: 0;
}

.hero-stat-circle {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-stat-facility {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50%;
  height: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.hero-stat-text {
  min-width: 0;
}

.hero-stat-text strong {
  display: block;
  margin: 0 0 4px;
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 700;
  line-height: 1.42;
  opacity: 0.9;
}

.hero-stat-text p {
  margin: 0;
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 400;
  line-height: 1.3;
  opacity: 0.9;
}

/* Slide 2 — capabilities glass card */
.hero-capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  align-content: stretch;
  flex: 0 1 auto;
  width: 100%;
  max-width: 440px;
  max-height: 100%;
  margin-left: auto;
  padding: 28px 14px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  isolation: isolate;
  box-sizing: border-box;
}

.hero-cap-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 8px;
  min-height: 0;
  text-align: center;
}

.hero-cap-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 18%;
  height: 64%;
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-cap-item:nth-child(2n)::after {
  display: none;
}

.hero-cap-item__icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
}

.hero-cap-item__icon img {
  width: 48px;
  height: 48px;
}

.hero-cap-item__label {
  margin: 0;
  max-width: 150px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--white);
}

.hero[data-layout='capabilities'] .hero-title {
  font-size: clamp(28px, 3.5vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero[data-layout='capabilities'] .hero-actions {
  margin-top: clamp(8px, 1vw, 12px);
}

.hero[data-layout='capabilities'] .hero-stat {
  display: none !important;
}

.hero[data-layout='capabilities'] .btn--hero {
  width: min(280px, 100%);
  min-width: min(280px, 100%);
}

/* Slide 4 — our expertise (content only, no side panel) */
.hero[data-layout='expertise'] .hero-col--side {
  display: none;
}

.hero[data-layout='expertise'] .hero-grid {
  grid-template-columns: minmax(0, 1fr);
}

.hero[data-layout='expertise'] .hero-main {
  max-width: min(860px, 100%);
}

.hero[data-layout='expertise'] .hero-title {
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.125;
  margin-bottom: clamp(12px, 1.4vw, 18px);
}

.hero[data-layout='expertise'] .hero-subtitle {
  max-width: 680px;
  margin-bottom: clamp(14px, 1.6vw, 20px);
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.4;
  opacity: 1;
}

.hero-expertise-list:not([hidden]) {
  display: grid;
}

.hero-expertise-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px) clamp(24px, 3.5vw, 48px);
  width: 100%;
  max-width: 820px;
  margin: 0 0 clamp(20px, 2.2vw, 28px);
}

.hero-expertise-list__col {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 16px);
}

.hero-expertise-list__col li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--white);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 400;
  line-height: 1.35;
}

.hero-expertise-list__col img {
  flex-shrink: 0;
  width: 16px;
  height: 13px;
  margin-top: 3px;
}

.hero[data-layout='expertise'] .hero-layout {
  padding-bottom: clamp(72px, 8vw, 96px);
}

.hero[data-layout='expertise'] .hero-actions {
  margin-top: 0;
}

.hero[data-layout='expertise'] .btn--hero {
  width: min(260px, 100%);
  min-width: min(260px, 100%);
}

/* Slide 3 — quality compliance + cert strip */
.hero[data-layout='compliance'] .hero-col--side {
  display: none;
}

.hero[data-layout='compliance'] .hero-main {
  max-width: min(820px, 100%);
}

.hero[data-layout='compliance'] .hero-title {
  font-size: clamp(32px, 4.2vw, 64px);
  line-height: 1.12;
}

.hero[data-layout='compliance'] .hero-actions {
  margin-bottom: clamp(20px, 2.5vw, 32px);
}

.hero[data-layout='compliance'] .btn--hero {
  width: min(280px, 100%);
  min-width: min(280px, 100%);
}

.hero-cert-strip:not([hidden]) {
  display: flex;
}

.hero-cert-strip {
  flex-direction: column;
  gap: clamp(12px, 1.4vw, 18px);
  width: min(820px, 100%);
  max-width: 100%;
  min-height: 0;
  padding: clamp(18px, 2vw, 26px) clamp(20px, 2.2vw, 30px);
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  overflow: visible;
  box-sizing: border-box;
}

.hero-cert-strip__row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.hero-cert-strip__row:first-child {
  --cert-logo-h: clamp(36px, 3.8vw, 54px);
  gap: clamp(10px, 1.1vw, 16px);
}

.hero-cert-strip__row:last-child {
  --cert-logo-h: clamp(32px, 3.4vw, 48px);
  gap: clamp(6px, 0.7vw, 10px);
}

.hero-cert-strip__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
  height: var(--cert-logo-h);
}

.hero-cert-strip__logo {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-controls {
  position: absolute;
  left: 0;
  bottom: 50px;
  z-index: 4;
  display: flex;
  align-items: center;
  margin-top: 0;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline: 20px;
}

.hero-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s;
}

.hero-dot.is-active {
  background: transparent;
  border: 1px solid var(--white);
  box-sizing: border-box;
}

.hero-dot:hover:not(.is-active) {
  opacity: 0.85;
}

.hero-arrow {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 9px;
  height: 18px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.hero-arrow img {
  width: 9px;
  height: 18px;
  object-fit: contain;
}

.hero-arrow--prev {
  transform: scaleX(-1);
}

.hero-arrow:hover { opacity: 0.85; }

/* Live chat — Figma: 61×151px white tab, icon bottom */
.live-chat {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 98;
  width: 61px;
  height: 151px;
  padding: 21px 16px 20px;
  background: var(--white);
  border-radius: 6px 0 0 6px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: #3c3c3b;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}

.live-chat:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
}

/* Hide only Zoho’s launcher button — keep chat window + its own close control */
body .zsiq_floatmain .zsiqbtn,
body .zsiq_theme1 .zsiqbtn,
body #zsiq_float .zsiqbtn,
body .siq_bft {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.live-chat__label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 0;
}

.live-chat__icon {
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  object-fit: contain;
}

/* Sections */
.section { padding: 80px 0; }
.section-title {
  font-weight: 700; line-height: 1.15; margin: 0 0 16px;
  color: var(--text);
}
.section-title--lg {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.185;
}
.section-title--md {
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.2;
}
.section-title--light { color: var(--white); }
.section-subtitle {
  font-size: 18px; color: var(--text-muted); opacity: 0.9;
  max-width: 967px; margin: 0 auto 48px; line-height: 1.55;
}

/* Products — Figma corner deco: 812×325.3, 15% opacity, luminosity blend */
.section--products {
  position: relative;
  background: var(--gray-bg);
  overflow: hidden;
}

.section--products__deco {
  position: absolute;
  width: 812px;
  height: 325.3px;
  pointer-events: none;
  z-index: 0;
  line-height: 0;
}

.section--products__deco img {
  display: block;
  width: 812px;
  height: 325.3px;
  max-width: none;
  opacity: 0.22;
  /* Luminosity in Framer; screen/lighten makes black PNG hexes visible on --gray-bg */
  mix-blend-mode: screen;
}

.section--products__deco--bl {
  left: 0;
  bottom: 0;
}

.section--products__deco--bl img {
  object-fit: none;
  object-position: left bottom;
}

.section--products__deco--tr {
  right: 0;
  top: 0;
}

.section--products__deco--tr img {
  object-fit: none;
  object-position: right top;
}

.section--products .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .section--products__deco {
    width: min(812px, 92vw);
    height: calc(min(812px, 92vw) * 325.3 / 812);
  }

  .section--products__deco img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}
.product-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0;
  max-width: 100%;
  margin: 0 auto 40px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.product-tabs.is-scrollable {
  justify-content: flex-start;
  overflow-x: auto;
  scroll-behavior: auto;
  cursor: grab;
  touch-action: pan-x;
  scrollbar-width: none;
}

.product-tabs.is-scrollable::-webkit-scrollbar {
  display: none;
}

.product-tabs.is-scrollable.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.product-tabs.is-scrollable .product-tab {
  cursor: grab;
}

.product-tabs.is-scrollable.is-dragging .product-tab {
  cursor: grabbing;
}

.product-tabs.is-dragging .product-tab,
.product-tabs.is-dragging .product-tab::after {
  transition: none;
}

.product-tab {
  position: relative;
  flex-shrink: 0;
  padding: 12px 16px 16px;
  min-width: 132px;
  font-size: 16px;
  color: var(--gray);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.25s;
  text-align: center;
  white-space: nowrap;
}
.product-tab::after {
  content: ''; position: absolute; left: 8px; right: 8px; bottom: 0;
  height: 3px; background: var(--tab-inactive);
  transition: background 0.3s;
}
.product-tab.is-active { color: var(--teal); font-weight: 600; }
.product-tab.is-active::after { background: var(--teal); }
.product-tab:hover { color: var(--teal); }

/* Products carousel — same card design; slides right-to-left when overflow */
.product-carousel {
  display: flex;
  align-items: center;
  gap: 24px;
}

.product-carousel__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.product-carousel__arrow {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.product-carousel__arrow:hover:not(:disabled) {
  background: var(--gray-bg);
}

.product-carousel__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.product-carousel__arrow img {
  display: block;
  filter: brightness(0);
}

.product-carousel .product-cards {
  display: flex;
  gap: 16px;
  height: 350px;
  width: max-content;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.product-carousel--fit .product-cards {
  width: 100%;
  transform: none !important;
}

/* Extra track space after the last card so hover expand (400px) has room */
.product-carousel__trail {
  flex-shrink: 0;
  height: 350px;
  align-self: stretch;
}

.product-carousel--fit .product-carousel__trail {
  display: none;
}

.product-carousel .product-card {
  position: relative;
  flex: 0 0 220px;
  width: 220px;
  min-width: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    flex 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    min-width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* JS-driven hover in slide mode — avoids the gap "deadzone" that breaks :has(:hover).
   Inactive cards keep 220px so flex reflow does not slide the row left (end cards were
   jumping ~70px per preceding card). Only the active card grows to 400px. */
.product-carousel:not(.product-carousel--fit) .product-cards.is-hovering .product-card:not(.is-card-active) {
  flex: 0 0 220px;
  width: 220px;
  min-width: 220px;
}

.product-carousel:not(.product-carousel--fit) .product-cards.is-hovering .product-card.is-card-active {
  flex: 0 0 400px;
  width: 400px;
  min-width: 400px;
  z-index: 2;
}

.product-carousel--fit .product-card {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

.product-carousel--fit .product-cards:has(.product-card:hover) .product-card:not(:hover) {
  flex: 0.6 1 0;
  width: auto;
  min-width: 0;
}

.product-carousel--fit .product-cards:has(.product-card:hover) .product-card:hover {
  flex: 2 1 0;
  width: auto;
  min-width: 0;
  z-index: 2;
}

.product-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.product-card__media {
  position: absolute;
  inset: 0;
  background: var(--navy);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.4s ease, transform 0.5s ease;
}

.product-card:hover .product-card__media img,
.product-card:focus-within .product-card__media img,
.product-carousel--fit .product-card.is-card-active .product-card__media img,
.product-carousel:not(.product-carousel--fit) .product-cards.is-hovering .product-card.is-card-active .product-card__media img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.04);
}

.product-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 33, 60, 0.05) 0%, rgba(14, 33, 60, 0.45) 100%);
  opacity: 0.85;
  transition: opacity 0.35s ease, background 0.35s ease;
}

.product-card:hover .product-card__gradient,
.product-card:focus-within .product-card__gradient,
.product-carousel--fit .product-card.is-card-active .product-card__gradient,
.product-carousel:not(.product-carousel--fit) .product-cards.is-hovering .product-card.is-card-active .product-card__gradient {
  opacity: 1;
  background: linear-gradient(180deg, rgba(14, 33, 60, 0) 0%, rgba(14, 33, 60, 0.82) 100%);
}

.product-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 20px;
  color: var(--white);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

/* Slide mode: JS-driven; others hide body/gradient, active card keeps them visible. */
.product-carousel:not(.product-carousel--fit) .product-cards.is-hovering .product-card:not(.is-card-active) .product-card__body {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.product-carousel:not(.product-carousel--fit) .product-cards.is-hovering .product-card:not(.is-card-active) .product-card__gradient {
  opacity: 0;
}

/* Fit mode (e.g. Sterilization tab): pure CSS hover works fine — no track overflow. */
.product-carousel--fit .product-cards:has(.product-card:hover) .product-card:not(:hover) .product-card__body,
.product-carousel--fit .product-cards:has(.product-card:focus-within) .product-card:not(:focus-within) .product-card__body {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.product-carousel--fit .product-cards:has(.product-card:hover) .product-card:not(:hover) .product-card__gradient,
.product-carousel--fit .product-cards:has(.product-card:focus-within) .product-card:not(:focus-within) .product-card__gradient {
  opacity: 0;
}

.product-card:hover .product-card__body,
.product-card:focus-within .product-card__body,
.product-carousel--fit .product-card.is-card-active .product-card__body,
.product-carousel:not(.product-carousel--fit) .product-cards.is-hovering .product-card.is-card-active .product-card__body {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.product-card__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}

.product-card__status {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.product-card__desc {
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.4s ease, margin 0.4s ease;
}

.product-card:hover .product-card__desc,
.product-card:focus-within .product-card__desc,
.product-carousel--fit .product-card.is-card-active .product-card__desc,
.product-carousel:not(.product-carousel--fit) .product-cards.is-hovering .product-card.is-card-active .product-card__desc {
  max-height: 120px;
  opacity: 1;
  margin: 0 0 12px;
}

.strength-card__value.is-counting {
  font-variant-numeric: tabular-nums;
}
.product-card__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 18px; color: var(--white);
  text-decoration: none;
}
.product-panel.is-refreshing .product-card {
  animation: fadeIn 0.32s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Defer paint for below-fold sections until near viewport */
.section--strengths,
.section--infra,
.section--quality-compliance,
.section--customers,
.section--testimonials,
.section--about-cta,
.section--news,
.section--partner,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

.section--partner {
  contain-intrinsic-size: auto 280px;
}

.section-divider {
  width: 100%;
  height: 1px;
  margin: 0;
  background: var(--divider);
}

/* Strengths — Figma: 244×281 cards, 110px icon circles, 36px value, 18px label */
.strength-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 19px;
  margin-top: 38px;
}

.strength-card {
  position: relative;
  height: 281px;
  padding: 46px 16px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  cursor: default;
}

.strength-card__icon {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  transition: background 0.35s ease;
}

.strength-card__icon img {
  width: auto;
  height: auto;
  max-width: 58px;
  max-height: 58px;
  object-fit: contain;
}

.strength-card__icon img[data-icon="teal"] {
  filter: brightness(0) invert(1);
}

.strength-card__icon img[data-icon="light"] {
  filter: none;
}

.strength-card__value {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 4px;
  color: var(--text);
  transition: color 0.35s ease;
}

.strength-card__label {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  margin: 0;
  color: var(--text);
  transition: color 0.35s ease;
}

.strength-card__label--multiline {
  max-width: 11em;
  line-height: 1.35;
}

.strength-card.is-active,
.strength-card:hover {
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
}

.strength-card.is-active .strength-card__icon,
.strength-card:hover .strength-card__icon {
  background: var(--white);
}

/* Purple icon on white circle when card is hovered/active */
.strength-card.is-active .strength-card__icon img,
.strength-card:hover .strength-card__icon img {
  filter: brightness(0) saturate(100%) invert(36%) sepia(28%) saturate(1200%) hue-rotate(260deg)
    brightness(94%) contrast(92%);
}

.strength-card.is-active .strength-card__value,
.strength-card.is-active .strength-card__label,
.strength-card:hover .strength-card__value,
.strength-card:hover .strength-card__label {
  color: var(--white);
}

/* Infrastructure — scaled image heights (70% of Figma: 416×240 left stack + 416×504 carousels) */
.infra-header {
  margin-bottom: 40px;
}

.infra-header__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.infra-header__row .section-title {
  margin: 0;
}

.infra-header__cta {
  flex-shrink: 0;
  min-width: 190px;
  background: var(--purple);
}
.infra-header__cta:hover {
  background: #7a3a74;
}

.infra-desc {
  max-width: 671px;
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.55;
  opacity: 0.9;
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.infra-column--left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 504px;
}

.infra-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.infra-card--image-top {
  flex: 0 0 240px;
  height: 240px;
  border: 1px solid var(--border);
  background: var(--white);
}

.infra-card--image-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.infra-card--info {
  flex: 0 0 240px;
  height: 240px;
  background: var(--navy);
  padding: 20px 20px 20px 32px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  box-sizing: border-box;
}

.infra-card__info-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.infra-card--info p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  opacity: 0.9;
}

.infra-card--tall {
  min-height: 504px;
  height: 504px;
}

.infra-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 504px;
  border-radius: var(--radius);
  overflow: hidden;
}

.infra-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.infra-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.infra-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.infra-slide__shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  min-height: 220px;
  max-height: 340px;
  background: linear-gradient(to top, var(--navy) 9.615%, rgba(11, 31, 58, 0) 100%);
  pointer-events: none;
}

.infra-card[data-carousel="right"] .infra-slide__shade {
  background: linear-gradient(to top, var(--navy) 12.019%, rgba(11, 31, 58, 0) 100%);
}

.infra-slide__text {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 24px;
  z-index: 2;
  margin: 0;
  color: var(--white);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.4;
  opacity: 0.9;
}

/* Figma hemisphere + arrow controls — flush to card edges */
.infra-side-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 84px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
  line-height: 0;
  display: grid;
  place-items: center;
}

.infra-side-btn--prev {
  left: 0;
}

.infra-side-btn--next {
  right: 0;
  left: auto;
}

.infra-side-btn__hemi {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.1));
}

.infra-side-btn:hover .infra-side-btn__hemi {
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.14));
}

.infra-side-btn__arrow {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 26px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

/* Quality compliance — homepage badge marquee */
.section--quality-compliance {
  background: var(--gray-bg);
  padding: clamp(64px, 7vw, 88px) 0 clamp(56px, 6vw, 72px);
  overflow: hidden;
}

.section--quality-compliance .container {
  max-width: none;
  width: 100%;
  padding-inline: max(24px, calc((100% - 1296px) / 2));
  box-sizing: border-box;
}

.home-quality__title {
  margin: 0 0 clamp(40px, 4.5vw, 56px);
  text-align: center;
  line-height: 64px;
  color: var(--text);
}

.home-quality-marquee {
  overflow: hidden;
  margin: 0;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
}

.home-quality-marquee__inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  width: max-content;
  backface-visibility: hidden;
}

.section--quality-compliance.is-inview .home-quality-marquee--right .home-quality-marquee__inner {
  animation: homeQualityMarqueeRight 45s linear infinite;
}

.section--quality-compliance:not(.is-inview) .home-quality-marquee__inner {
  animation: none;
}

.home-quality-marquee:hover .home-quality-marquee__inner {
  animation-play-state: paused;
}

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

.home-quality-badge {
  flex: 0 0 auto;
  width: clamp(88px, 8vw, 125px);
  height: clamp(88px, 8vw, 125px);
  display: grid;
  place-items: center;
}

.home-quality-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .home-quality-marquee__inner {
    animation: none !important;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
    box-sizing: border-box;
  }

  .home-quality-marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* Certifications — legacy carousel (product pages) */
.section--certs {
  background: var(--teal);
  padding: 64px 0;
  overflow: hidden;
}

.section--certs .section-title {
  margin-bottom: 48px;
}

.certs-carousel {
  overflow: hidden;
}

.certs-carousel__track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
}

.section--certs.is-inview .certs-carousel__track--animate {
  animation: certsScroll 42s linear infinite;
}

.section--certs:not(.is-inview) .certs-carousel__track--animate {
  animation: none;
}

.certs-carousel:hover .certs-carousel__track--animate {
  animation-play-state: paused;
}

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

.cert-badge {
  flex: 0 0 152px;
  width: 152px;
  height: 152px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cert-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cert-badge:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.cert-badge__logo-wrap {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #b5b5b5;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cert-badge__logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.35s ease;
}

.cert-badge:hover .cert-badge__logo,
.cert-badge:focus-visible .cert-badge__logo {
  filter: grayscale(0%);
}

.cert-badge__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  color: #3c3c3b;
  text-align: center;
}

/* Certificate lightbox */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cert-modal.is-open {
  display: flex;
}

.cert-modal[hidden] {
  display: none !important;
}

.cert-modal.is-open[hidden] {
  display: flex !important;
}

.cert-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 4, 8, 0.55);
}

.cert-modal__content {
  position: relative;
  z-index: 1;
  display: inline-block;
  max-width: min(960px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  line-height: 0;
}

.cert-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.cert-modal__close:hover {
  filter: brightness(1.08);
}

.cert-modal__image {
  display: block;
  max-width: min(960px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.cert-modal-open {
  overflow: hidden;
}

/* Gallery Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gallery-lightbox.is-open,
.gallery-lightbox.is-open[hidden] {
  display: flex !important;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.gallery-lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(1200px, calc(100vw - 120px));
  max-height: calc(100vh - 100px);
}

.gallery-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 100px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox__close {
  position: absolute;
  top: -50px;
  right: 0;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.gallery-lightbox__close:hover {
  transform: scale(1.1);
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: #0b1f3a;
  font-size: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 3;
}

.gallery-lightbox__nav:hover {
  transform: translateY(-50%) scale(1.1);
}

.gallery-lightbox__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gallery-lightbox__nav:disabled:hover {
  transform: translateY(-50%);
}

.gallery-lightbox__nav--prev {
  left: -80px;
}

.gallery-lightbox__nav--next {
  right: -80px;
}

.gallery-lightbox__nav svg {
  width: 24px;
  height: 24px;
  display: block;
  color: #0b1f3a;
}

.gallery-lightbox__nav svg path {
  stroke: #0b1f3a;
}

.gallery-lightbox__nav img {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) saturate(100%);
}

.gallery-lightbox__counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .gallery-lightbox__nav--prev {
    left: 10px;
  }
  
  .gallery-lightbox__nav--next {
    right: 10px;
  }
  
  .gallery-lightbox__content {
    max-width: calc(100vw - 48px);
  }
  
  .gallery-lightbox__close {
    top: 10px;
    right: 10px;
  }
}

/* Customers — logo-only infinite marquee with edge fade */
.section--customers {
  padding: 120px 0;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.section--customers .container {
  max-width: none;
  width: 100%;
  padding-inline: 0;
}

.section--customers .section-title {
  width: var(--container);
  max-width: 100%;
  margin-inline: auto;
  margin-bottom: 48px;
  padding-inline: max(24px, calc((100% - 1296px) / 2));
  box-sizing: border-box;
}

.section--customers .marquee--left {
  margin-top: 40px;
}

.marquee {
  overflow: hidden;
  margin: 0;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 15%,
    #000 85%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 15%,
    #000 85%,
    transparent 100%
  );
}

.marquee__inner {
  display: flex;
  gap: 48px;
  width: max-content;
  align-items: center;
  backface-visibility: hidden;
}

.section--customers.is-inview .marquee--right .marquee__inner,
.section--customers.is-inview .marquee--left .marquee__inner {
  animation-duration: 70s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.section--customers.is-inview .marquee--right .marquee__inner {
  animation-name: marqueeRight;
}

.section--customers.is-inview .marquee--left .marquee__inner {
  animation-name: marqueeLeft;
}

.section--customers:not(.is-inview) .marquee__inner {
  animation: none;
}

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

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

.customer-logo {
  flex-shrink: 0;
  display: block;
  height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  background: transparent;
}

.customer-logo--aavishkar {
  height: 45px;
  max-width: 168px;
}

.customer-logo--neocell {
  height: 38px;
  max-width: 144px;
}

.customer-logo:not([src]) {
  visibility: hidden;
  min-width: 120px;
}

/* Testimonials — Figma carousel */
.section--testimonials {
  background: var(--navy);
  padding: clamp(60px, 7vw, 100px) 0;
}

.section--testimonials .container {
  max-width: min(1685px, calc(100% - 48px));
  width: min(1685px, calc(100% - 48px));
}

.section--testimonials .section-title {
  margin-bottom: clamp(32px, 4vw, 48px);
  font-size: 46px;
  line-height: 62px;
}

.testimonial-carousel {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 100%;
  margin: 0 auto;
}

.testimonial-carousel__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.testimonial-carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 19px;
  padding: 0;
  box-sizing: border-box;
}

.testimonial-carousel__row {
  display: flex;
  gap: 19px;
  height: 320px;
}

/* Row 1: 347 | 345 | 565 (proportions: 27.6% | 27.5% | 44.9%) */
.testimonial-carousel__row:first-child .testimonial-card:nth-child(1) { flex: 347 0 0; }
.testimonial-carousel__row:first-child .testimonial-card:nth-child(2) { flex: 345 0 0; }
.testimonial-carousel__row:first-child .testimonial-card:nth-child(3) { flex: 565 0 0; }

/* Row 2: 347 | 565 | 345 */
.testimonial-carousel__row:last-child .testimonial-card:nth-child(1) { flex: 347 0 0; }
.testimonial-carousel__row:last-child .testimonial-card:nth-child(2) { flex: 565 0 0; }
.testimonial-carousel__row:last-child .testimonial-card:nth-child(3) { flex: 345 0 0; }

.testimonial-carousel__arrow {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.testimonial-carousel__arrow:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.testimonial-carousel__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.testimonial-carousel__arrow img {
  display: block;
  width: 20px;
  height: 20px;
}

.testimonial-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.testimonial-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s ease;
}

.testimonial-carousel__dot.is-active {
  background: var(--teal);
}

.testimonial-carousel__dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.6);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  margin: 0;
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  box-sizing: border-box;
}

.testimonial-card__quote-icon {
  width: 32px;
  height: 24px;
  margin-bottom: 12px;
  color: var(--teal);
  flex-shrink: 0;
}

.testimonial-card__quote-icon svg {
  width: 100%;
  height: 100%;
}

.testimonial-card__text {
  flex: 1;
  margin: 0 0 16px;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  line-height: 20px;
  color: #343840;
}

.testimonial-card__meta {
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: #001639;
  margin-top: auto;
  flex-shrink: 0;
}

/* Hover effect - teal background on hover */
.testimonial-card {
  transition: background 0.3s ease;
}

.testimonial-card:hover {
  background: var(--teal);
}

.testimonial-card:hover .testimonial-card__quote-icon {
  color: var(--white);
}

.testimonial-card:hover .testimonial-card__text {
  color: var(--white);
}

.testimonial-card:hover .testimonial-card__meta {
  color: var(--white);
}

.testimonial-card__quote-icon,
.testimonial-card__text,
.testimonial-card__meta {
  transition: color 0.3s ease;
}


@media (max-width: 1200px) {
  .testimonial-carousel__row {
    flex-wrap: wrap;
    height: auto;
    gap: 16px;
  }
  
  .testimonial-carousel__row .testimonial-card {
    flex: 1 1 calc(50% - 8px) !important;
    min-height: 280px;
  }
  
  .testimonial-card__text {
    font-size: 12px;
    line-height: 18px;
  }
  
  .testimonial-carousel__arrow {
    width: 56px;
    height: 56px;
  }
  
  .section--testimonials .section-title {
    font-size: 36px;
    line-height: 48px;
  }
}

@media (max-width: 768px) {
  .section--testimonials {
    padding: 48px 0 56px;
  }

  .section--testimonials .container {
    max-width: min(1685px, calc(100% - 32px));
    width: min(1685px, calc(100% - 32px));
  }

  .section--testimonials .section-title {
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.2;
    margin-bottom: 28px;
  }

  .testimonial-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px 18px;
    padding: 0;
  }

  .testimonial-carousel__viewport {
    flex: 1 1 100%;
    order: -1;
    width: 100%;
    overflow: hidden;
  }

  .testimonial-carousel__track {
    align-items: stretch;
  }

  .testimonial-carousel__slide {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    height: auto;
  }

  .testimonial-carousel__row {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 0;
    min-height: 0;
  }

  .testimonial-carousel__row .testimonial-card,
  .testimonial-carousel__slide .testimonial-card {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 260px;
    height: auto;
    padding: 22px 20px;
  }

  .testimonial-carousel__arrow {
    display: grid;
    width: 44px;
    height: 44px;
  }

  .testimonial-carousel__arrow img {
    width: 16px;
    height: 16px;
  }

  .testimonial-carousel__dots {
    flex: 1 1 100%;
    margin-top: 8px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .testimonial-carousel__dot {
    width: 9px;
    height: 9px;
  }

  .testimonial-card__text {
    font-size: 14px;
    line-height: 1.45;
  }

  .testimonial-card__meta {
    font-size: 12px;
    line-height: 1.4;
  }

  /* Touch: disable hover teal flash sticking after tap */
  .testimonial-card:hover {
    background: var(--white);
  }

  .testimonial-card:hover .testimonial-card__quote-icon {
    color: var(--teal);
  }

  .testimonial-card:hover .testimonial-card__text {
    color: #343840;
  }

  .testimonial-card:hover .testimonial-card__meta {
    color: #001639;
  }
}

/* About CTA — Figma panel */
.section--about-cta {
  background: var(--white);
  padding: 72px 0 36px;
}

.about-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(280px, 30vw, 340px);
  padding: 56px clamp(40px, 8vw, 96px);
  background: var(--gray-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-sizing: border-box;
}

.about-cta__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  padding-inline: clamp(12px, 4vw, 24px);
  text-align: center;
  box-sizing: border-box;
}

.about-cta__title {
  margin: 0 0 32px;
  max-width: 100%;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.54px;
  color: var(--text);
}

.about-cta__btn {
  min-width: 280px;
  background: var(--purple);
}
.about-cta__btn:hover {
  background: #7a3a74;
}

.about-cta__deco {
  position: absolute;
  z-index: 1;
  height: auto;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.about-cta__deco--jars {
  left: 0;
  bottom: 0;
  width: clamp(150px, 17vw, 240px);
}

.about-cta__deco--clip {
  right: 0;
  top: 0;
  width: clamp(130px, 15vw, 210px);
}

/* News & Events — Figma carousel */
.section--news {
  padding: 60px 0 120px;
  background: var(--white);
  overflow: visible;
}

.news-block {
  --news-arrow-size: 56px;
  --news-carousel-gap: 24px;
  display: grid;
  grid-template-columns: var(--news-arrow-size) minmax(0, 1fr) var(--news-arrow-size);
  column-gap: var(--news-carousel-gap);
  row-gap: 40px;
  align-items: center;
}

.news-header {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 24px;
  min-width: 0;
}

.news-header .section-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.news-header__cta {
  flex-shrink: 0;
  white-space: nowrap;
  height: 52px;
  padding: 0 28px;
  font-size: 17px;
  gap: 10px;
  border: none;
  background: var(--purple);
  color: var(--white);
}
.news-header__cta:hover {
  background: #7a3a74;
  color: var(--white);
}

.news-carousel__arrow--prev {
  grid-column: 1;
  grid-row: 2;
}

.news-carousel__viewport {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  overflow: hidden;
  padding: 6px 1px 14px;
  margin-bottom: -14px;
  container-type: inline-size;
  container-name: news-viewport;
}

.news-carousel__arrow--next {
  grid-column: 3;
  grid-row: 2;
}

.news-carousel__track {
  display: flex;
  gap: var(--news-carousel-gap);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-carousel__arrow {
  flex-shrink: 0;
  width: var(--news-arrow-size);
  height: var(--news-arrow-size);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.news-carousel__arrow:hover:not(:disabled) {
  background: var(--gray-bg);
}

.news-carousel__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.news-carousel__arrow img {
  display: block;
  filter: brightness(0);
}

.news-carousel__dots {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.news-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #d9d9d9;
  cursor: pointer;
  transition: background 0.2s ease;
}

.news-carousel__dot.is-active {
  background: var(--purple);
}

.news-carousel__track .news-card {
  flex: 0 0 100cqw;
  width: 100cqw;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
}

@media (min-width: 1100px) {
  .news-carousel__track .news-card {
    flex: 0 0 calc((100cqw - 2 * var(--news-carousel-gap)) / 3);
    width: calc((100cqw - 2 * var(--news-carousel-gap)) / 3);
  }
}

.news-carousel__track .news-card__media {
  position: relative;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f0f0f0;
}

.news-carousel__track .news-card__media img {
  width: 100%;
  aspect-ratio: 416 / 231;
  object-fit: cover;
  object-position: center;
  display: block;
}

.news-carousel__track .news-card__media--empty {
  aspect-ratio: 416 / 231;
  background: var(--teal);
}

.news-carousel__track .news-card__media--cert {
  background: #52a4a4;
}

.news-carousel__track .news-card__media--cert img {
  object-fit: contain;
}

.news-carousel__track .news-card__pill {
  position: absolute;
  left: 20px;
  top: 20px;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  background: var(--white);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: var(--text);
}

.news-carousel__track .news-card__date {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: #8e8e8e;
}

.news-carousel__track .news-card__title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 0;
  color: var(--text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.news-carousel__track .news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: #34b2c1;
  text-decoration: none;
}

.news-carousel__track .news-card__link:hover {
  opacity: 0.85;
}

.news-carousel__track .news-card__link img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Partner CTA */
.section--partner {
  background: var(--purple);
  padding: clamp(48px, 5vw, 72px) 0;
}

.partner-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.partner-cta__title {
  margin: 0;
  max-width: 773px;
  flex: 1 1 420px;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.185;
  letter-spacing: -0.54px;
  color: var(--white);
}

.partner-cta__btn {
  flex-shrink: 0;
  min-width: 220px;
}

/* Footer — Figma navy */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) repeat(3, 1fr);
  gap: 40px 32px;
  padding-bottom: 48px;
}

.footer-col__logo {
  display: block;
  width: 142px;
  height: auto;
  max-height: none;
  margin-bottom: 20px;
  object-fit: contain;
}

.footer-col__tagline {
  margin: 0 0 24px;
  max-width: 300px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}

.footer-col__title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul:not(.contact-list) {
  gap: 18px;
}

.footer-col ul a {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #a8a8a8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--teal);
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.5;
  color: #a8a8a8;
}

.contact-list li a {
  color: #a8a8a8;
}

.contact-list li a:hover {
  color: var(--teal);
}

.contact-list__icon {
  flex-shrink: 0;
  width: 16px;
  height: auto;
  margin-top: 3px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.social-links a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-links a img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom__copy,
.footer-bottom__legal {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #a6a6a6;
}

.footer-bottom__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.footer-bottom__legal a {
  color: #a6a6a6;
  text-decoration: none;
}

.footer-bottom__legal a:hover {
  color: var(--white);
}

.footer-bottom__sep {
  color: #a6a6a6;
  user-select: none;
}

/* WhatsApp — fixed on all pages/sections */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 64px;
  height: 64px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  border: 1px solid #d9dbde;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* Tablet / small desktop — stat card visible, stacked hero layout */
@media (min-width: 769px) and (max-width: 1200px) {
  .hero-layout {
    padding-bottom: 100px;
  }

  .hero-col--side,
  .hero-col--stat {
    margin-top: auto;
    padding-bottom: 4px;
  }

  .hero-stat,
  .hero-capabilities {
    margin-right: calc(71px + 36px);
    max-width: min(288px, calc(100% - 120px));
  }

  .hero[data-layout='capabilities'] .hero-col--side {
    justify-content: center;
  }

  .hero[data-layout='capabilities'] .hero-capabilities {
    max-width: 100%;
    margin-right: 0;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .hero-stat {
    margin-right: calc(71px + 32px);
    max-width: min(268px, calc(100% - 115px));
  }

  .hero-stat-text strong {
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.35;
  }

  .hero-stat-text p {
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.3;
  }
}

/* Large desktop — two-column hero */
@media (min-width: 1201px) {
  .hero-stat {
    width: 400px;
    max-width: 400px;
    margin-right: 88px;
  }
}
.whatsapp-float img { width: 46px; height: 46px; object-fit: contain; }
.whatsapp-float__badge {
  position: absolute; top: -2px; right: -2px;
  width: 13px; height: 13px;
  background: #50cc5d;
  border-radius: 50%;
  border: 2px solid var(--white);
}

/* Hero — short viewports */
@media (max-height: 860px) {
  .hero {
    height: 100svh;
    max-height: none;
  }
  .hero-layout {
    padding-top: var(--header-h);
    padding-bottom: 32px;
  }
  .hero-title {
    font-size: clamp(28px, 3.6vw, 48px);
    line-height: 1.125;
    margin-bottom: 14px;
  }
  .hero-subtitle {
    font-size: 17px;
    line-height: 1.45;
    margin-bottom: 20px;
  }

  .hero[data-layout='capabilities'] .hero-capabilities {
    padding: 16px 12px;
  }

  .hero[data-layout='capabilities'] .hero-cap-item {
    padding: 8px 6px;
    gap: 8px;
  }

  .hero[data-layout='capabilities'] .hero-cap-item__icon {
    width: 80px;
    height: 80px;
  }

  .hero[data-layout='capabilities'] .hero-cap-item__icon img {
    width: 42px;
    height: 42px;
  }

  .hero[data-layout='capabilities'] .hero-cap-item__label {
    font-size: 14px;
    max-width: 140px;
  }
}

@media (max-width: 1200px) {
  .infra-grid { grid-template-columns: 1fr; }
  .infra-column--left { min-height: 0; }
  .infra-card--tall,
  .infra-carousel {
    min-height: 300px;
    height: auto;
  }

  .hero-stat,
  .hero-capabilities {
    margin-right: 0;
  }

  .infra-slide__text {
    left: 24px;
    right: 24px;
    bottom: 20px;
    font-size: 15px;
  }
  .infra-header__row {
    flex-direction: column;
    align-items: flex-start;
  }
  .infra-header__cta { width: 100%; max-width: 250px; }
  .live-chat { display: none; }
}

@media (max-width: 1100px) {
  .strength-cards { grid-template-columns: repeat(3, 1fr); }

  .testimonial-carousel {
    gap: 16px;
  }

  .testimonial-carousel__arrow {
    width: 48px;
    height: 48px;
  }

  .testimonial-carousel__arrow img {
    width: 22px;
    height: auto;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .section--products .section-subtitle {
    margin-bottom: 20px;
  }

  .product-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    margin: 0 auto 28px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 28px), transparent 100%);
  }

  .product-tabs::-webkit-scrollbar {
    display: none;
  }

  .product-tab {
    scroll-snap-align: start;
    min-width: auto;
    padding: 10px 14px 14px;
    font-size: 14px;
  }

  .product-tab::after {
    left: 6px;
    right: 6px;
    height: 2px;
  }

  .product-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px 20px;
  }

  .product-carousel__viewport {
    flex: 1 1 100%;
    order: -1;
    width: 100%;
    overflow: hidden;
    /* Keep bottom radius visible — avoid clipping against siblings */
    padding-bottom: 2px;
  }

  .product-carousel__arrow {
    width: 44px;
    height: 44px;
  }

  .product-carousel__arrow img {
    width: 18px;
    height: auto;
  }

  .product-carousel .product-cards,
  .product-cards {
    flex-direction: row;
    height: 340px;
    width: max-content;
  }

  .product-carousel .product-card,
  .product-card {
    flex: 0 0 auto !important;
    width: var(--product-card-w, 100%) !important;
    min-width: var(--product-card-w, 100%) !important;
    max-width: none;
    height: 340px !important;
    min-height: 340px;
    border-radius: 12px;
    overflow: hidden !important;
    box-sizing: border-box;
  }

  .product-carousel__trail {
    display: none !important;
  }

  .product-carousel .product-cards:has(.product-card:hover) .product-card:not(:hover),
  .product-carousel .product-cards:has(.product-card:hover) .product-card:hover,
  .product-carousel:not(.product-carousel--fit) .product-cards.is-hovering .product-card:not(.is-card-active),
  .product-carousel:not(.product-carousel--fit) .product-cards.is-hovering .product-card.is-card-active {
    flex: 0 0 auto !important;
    width: var(--product-card-w, 100%) !important;
    min-width: var(--product-card-w, 100%) !important;
  }

  /* Width of each slide = viewport width (set via JS-friendly % of track parent) */
  .product-carousel__viewport .product-card {
    flex-basis: var(--product-card-w, 100%) !important;
  }

  .product-card__media img {
    filter: none;
    transform: none;
  }

  .product-card__gradient,
  .product-card:hover .product-card__gradient,
  .product-card:focus-within .product-card__gradient,
  .product-cards:has(.product-card:hover) .product-card:not(:hover) .product-card__gradient,
  .product-cards:has(.product-card:focus-within) .product-card:not(:focus-within) .product-card__gradient,
  .product-carousel:not(.product-carousel--fit) .product-cards.is-hovering .product-card:not(.is-card-active) .product-card__gradient {
    opacity: 1;
    background: linear-gradient(
      180deg,
      rgba(11, 31, 58, 0.15) 0%,
      rgba(11, 31, 58, 0.45) 42%,
      rgba(11, 31, 58, 0.88) 100%
    );
  }

  .product-card__body,
  .product-cards:has(.product-card:hover) .product-card:not(:hover) .product-card__body,
  .product-cards:has(.product-card:focus-within) .product-card:not(:focus-within) .product-card__body,
  .product-carousel:not(.product-carousel--fit) .product-cards.is-hovering .product-card:not(.is-card-active) .product-card__body {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 20px 18px 22px;
  }

  .product-card__title {
    font-size: 20px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  }

  .product-card__desc,
  .product-card:hover .product-card__desc,
  .product-card:focus-within .product-card__desc,
  .product-carousel--fit .product-card.is-card-active .product-card__desc,
  .product-carousel:not(.product-carousel--fit) .product-cards.is-hovering .product-card.is-card-active .product-card__desc {
    max-height: 4.5em;
    opacity: 1;
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  }

  .product-card__link {
    font-size: 16px;
  }

  .strength-cards { grid-template-columns: repeat(2, 1fr); }
  .about-cta {
    align-items: center;
    justify-content: center;
    padding: 56px 32px;
    min-height: 360px;
  }

  .about-cta__body {
    max-width: 28rem;
  }

  .about-cta__deco {
    opacity: 0.95;
  }

  .about-cta__deco--jars {
    left: -4px;
    bottom: -18px;
    width: clamp(130px, 24vw, 190px);
  }

  .about-cta__deco--clip {
    right: -6px;
    top: -6px;
    width: clamp(115px, 20vw, 165px);
  }

  .about-cta__title {
    font-size: clamp(24px, 6vw, 34px);
    margin-bottom: 24px;
  }

  .about-cta__btn {
    min-width: 0;
    width: auto;
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  :root {
    --container: min(1296px, calc(100% - 32px));
    --header-h: 64px;
  }

  .logo__mark {
    --logo-h: 40px;
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 95;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 28px;
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    box-shadow: 0 18px 40px rgba(9, 4, 8, 0.22);
  }

  .main-nav > a:not(.btn),
  .main-nav .nav-item__trigger {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 14px 4px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .main-nav > a:not(.btn):hover,
  .main-nav .nav-item__trigger:hover {
    color: var(--teal);
  }

  .main-nav > a:not(.btn).is-active,
  .main-nav .nav-item__trigger.is-active {
    color: var(--teal);
    font-weight: 600;
  }

  .main-nav > a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    min-height: 52px;
    margin-top: 24px;
    padding: 0 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    background: transparent;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: none;
    outline: none;
  }

  .main-nav > a.btn:hover,
  .main-nav > a.btn:focus-visible {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
  }

  .site-header.is-scrolled .main-nav {
    background: var(--white);
    color: var(--text);
    box-shadow: var(--shadow-lg);
  }

  .site-header.is-scrolled .main-nav > a:not(.btn),
  .site-header.is-scrolled .main-nav .nav-item__trigger {
    color: var(--text);
    border-bottom-color: #ececec;
  }

  .site-header.is-scrolled .main-nav > a:not(.btn):hover,
  .site-header.is-scrolled .main-nav .nav-item__trigger:hover,
  .site-header.is-scrolled .main-nav > a:not(.btn).is-active,
  .site-header.is-scrolled .main-nav .nav-item__trigger.is-active {
    color: var(--teal);
  }

  .site-header.is-scrolled .main-nav > a.btn {
    border-color: var(--teal);
    color: var(--teal);
    background: transparent;
  }

  .site-header.is-scrolled .main-nav > a.btn:hover,
  .site-header.is-scrolled .main-nav > a.btn:focus-visible {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
  }

  .main-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-item--products {
    width: 100%;
  }

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

  .nav-item--products.is-open .nav-item__trigger::after {
    display: none;
  }

  .products-mega {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    margin: 8px 0 12px;
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
  }

  .site-header.is-scrolled .products-mega {
    border-color: #e6e6e6;
    background: #f7f8fa;
    color: var(--text);
  }

  .products-mega__inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px;
  }

  .products-mega__grid {
    display: none !important;
  }

  .products-mega__cats {
    gap: 6px;
  }

  .products-mega__group {
    border-radius: 10px;
    overflow: hidden;
  }

  .products-mega__cat {
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
  }

  .products-mega__cat:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
  }

  .products-mega__cat.is-active {
    color: var(--white);
    border-color: rgba(0, 168, 168, 0.55);
    background: rgba(0, 168, 168, 0.18);
  }

  .products-mega__cat-arrow {
    opacity: 1;
    color: currentColor;
    transform: rotate(90deg);
    transition: transform 0.2s ease;
  }

  .products-mega__group.is-open .products-mega__cat-arrow {
    transform: rotate(-90deg);
  }

  .products-mega__sub {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0 4px 12px;
    margin: 0 0 4px;
    border-left: 2px solid rgba(0, 168, 168, 0.45);
  }

  .products-mega__group.is-open .products-mega__sub:not([hidden]) {
    display: flex;
  }

  .products-mega__sub .products-mega__product,
  .site-header:not(.is-scrolled) .products-mega .products-mega__sub a.products-mega__product {
    justify-content: flex-start;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white) !important;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
  }

  .products-mega__sub .products-mega__product:hover,
  .products-mega__sub .products-mega__product.is-active,
  .site-header:not(.is-scrolled) .products-mega .products-mega__sub a.products-mega__product:hover,
  .site-header:not(.is-scrolled) .products-mega .products-mega__sub a.products-mega__product.is-active {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white) !important;
  }

  /* Scrolled (white) header drawer */
  .site-header.is-scrolled .products-mega__cat {
    border-color: #e6e6e6;
    background: var(--white);
    color: var(--text);
  }

  .site-header.is-scrolled .products-mega__cat.is-active {
    color: var(--purple);
    border-color: #e0d0de;
    background: #faf6fa;
  }

  .site-header.is-scrolled .products-mega__sub {
    border-left-color: rgba(0, 168, 168, 0.35);
  }

  .site-header.is-scrolled .products-mega__sub .products-mega__product,
  .site-header.is-scrolled .main-nav .products-mega .products-mega__sub a.products-mega__product {
    border-color: #e6e6e6;
    background: var(--white);
    color: var(--text) !important;
  }

  .site-header.is-scrolled .products-mega__sub .products-mega__product:hover,
  .site-header.is-scrolled .products-mega__sub .products-mega__product.is-active {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white) !important;
  }

  .site-header:not(.is-scrolled) .main-nav > a:not(.btn),
  .site-header:not(.is-scrolled) .main-nav .nav-item__trigger {
    color: #fff !important;
  }

  .site-header:not(.is-scrolled) .main-nav > a:not(.btn):hover,
  .site-header:not(.is-scrolled) .main-nav .nav-item__trigger:hover,
  .site-header:not(.is-scrolled) .main-nav > a:not(.btn).is-active,
  .site-header:not(.is-scrolled) .main-nav .nav-item__trigger.is-active,
  .site-header:not(.is-scrolled) .nav-item--products.is-open .nav-item__trigger {
    color: #b8f3ef !important;
  }

  /* Contact Us must stay light on the navy mobile drawer (product/inner pages
     otherwise inherit dark outline-button styles meant for the white header). */
  .site-header:not(.is-scrolled) .main-nav > a.btn,
  .site-header:not(.is-scrolled) .main-nav .btn--outline,
  body.is-inner-page-nav .site-header:not(.is-scrolled) .main-nav > a.btn,
  body.is-inner-page-nav .site-header:not(.is-scrolled) .main-nav .btn--outline,
  body.is-inner-hero-nav .site-header:not(.is-scrolled) .main-nav > a.btn,
  body.is-inner-hero-nav .site-header:not(.is-scrolled) .main-nav .btn--outline {
    border-color: rgba(255, 255, 255, 0.95) !important;
    color: #fff !important;
    background: transparent !important;
  }

  .site-header:not(.is-scrolled) .main-nav > a.btn:hover,
  .site-header:not(.is-scrolled) .main-nav > a.btn:focus-visible,
  .site-header:not(.is-scrolled) .main-nav .btn--outline:hover,
  .site-header:not(.is-scrolled) .main-nav .btn--outline:focus-visible,
  body.is-inner-page-nav .site-header:not(.is-scrolled) .main-nav > a.btn:hover,
  body.is-inner-page-nav .site-header:not(.is-scrolled) .main-nav > a.btn:focus-visible,
  body.is-inner-page-nav .site-header:not(.is-scrolled) .main-nav .btn--outline:hover,
  body.is-inner-page-nav .site-header:not(.is-scrolled) .main-nav .btn--outline:focus-visible {
    background: #fff !important;
    color: var(--navy) !important;
    border-color: #fff !important;
  }

  /* —— Hero (mobile) —— */
  .hero {
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    display: block;
  }

  .hero-layout {
    position: absolute;
    inset: 0;
    z-index: 3;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: calc(var(--header-h) + 16px);
    padding-bottom: 72px;
    box-sizing: border-box;
  }

  .hero-grid {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero.is-logo-reveal .hero-layout .hero-grid {
    flex: 0 0 0;
    height: 0;
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .hero.is-logo-reveal .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(11, 31, 58, 0.78) 0%,
      rgba(11, 31, 58, 0.35) 16%,
      rgba(11, 31, 58, 0.08) 36%,
      transparent 52%
    );
  }

  .hero-title {
    font-size: clamp(28px, 8.2vw, 38px);
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 22px;
    max-width: 34ch;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 0;
  }

  .hero-actions .btn--hero,
  .hero[data-layout='capabilities'] .btn--hero,
  .hero[data-layout='expertise'] .btn--hero,
  .hero[data-layout='compliance'] .btn--hero {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 52px;
  }

  .hero-col--side {
    display: none;
  }

  .hero[data-layout='capabilities'] .hero-col--side {
    display: flex;
    width: 100%;
    margin-top: 4px;
  }

  .hero[data-layout='capabilities'] .hero-layout {
    justify-content: center;
    padding-top: calc(var(--header-h) + 10px);
    padding-bottom: 72px;
  }

  .hero[data-layout='capabilities'] .hero-grid {
    flex: 0 1 auto;
    justify-content: center;
    gap: 10px;
    overflow: visible;
  }

  .hero[data-layout='capabilities'] .hero-title {
    font-size: clamp(20px, 5.4vw, 26px);
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
  }

  .hero[data-layout='capabilities'] .hero-title__line {
    display: inline;
  }

  .hero[data-layout='capabilities'] .hero-title__line::after {
    content: ' ';
  }

  .hero[data-layout='capabilities'] .hero-actions {
    gap: 8px;
  }

  .hero[data-layout='capabilities'] .btn--hero {
    height: 44px;
    font-size: 14px;
  }

  .hero[data-layout='capabilities'] .hero-capabilities {
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    /* 4×2 grid keeps vertical height manageable on phones */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    padding: 10px 6px;
    border-radius: 12px;
    gap: 0;
  }

  .hero[data-layout='capabilities'] .hero-cap-item {
    padding: 8px 4px;
    gap: 6px;
  }

  .hero[data-layout='capabilities'] .hero-cap-item::after {
    top: 18%;
    height: 64%;
  }

  .hero[data-layout='capabilities'] .hero-cap-item:nth-child(2n)::after {
    display: block;
  }

  .hero[data-layout='capabilities'] .hero-cap-item:nth-child(4n)::after {
    display: none;
  }

  .hero[data-layout='capabilities'] .hero-cap-item__icon {
    width: 56px;
    height: 56px;
  }

  .hero[data-layout='capabilities'] .hero-cap-item__icon img {
    width: 28px;
    height: 28px;
  }

  .hero[data-layout='capabilities'] .hero-cap-item__label {
    max-width: none;
    font-size: 11px;
    line-height: 1.25;
  }

  .hero-cap-item {
    padding: 10px 6px;
    gap: 8px;
  }

  .hero-cap-item__icon {
    width: 56px;
    height: 56px;
  }

  .hero-cap-item__icon img {
    width: 28px;
    height: 28px;
  }

  .hero-cap-item__label {
    max-width: none;
    font-size: 11px;
    line-height: 1.3;
  }

  .hero[data-layout='compliance'] .hero-col--side {
    display: none;
  }

  .hero-expertise-list {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }

  .hero-expertise-list__col {
    gap: 12px;
  }

  .hero-expertise-list__col li {
    font-size: 14px;
    line-height: 1.4;
  }

  .hero-cert-strip {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border-radius: 16px;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero-cert-strip__row {
    flex-wrap: nowrap;
    min-width: max-content;
  }

  .hero-cert-strip__row:first-child {
    --cert-logo-h: 28px;
    gap: 10px;
  }

  .hero-cert-strip__row:last-child {
    --cert-logo-h: 26px;
    gap: 8px;
  }

  .hero-stat,
  .hero-capabilities {
    margin-right: 0;
    max-width: 100%;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(11, 31, 58, 0.72) 0%,
        rgba(11, 31, 58, 0.28) 22%,
        rgba(11, 31, 58, 0.45) 55%,
        rgba(11, 31, 58, 0.78) 100%
      ),
      linear-gradient(
        90deg,
        rgba(11, 31, 58, 0.88) 0%,
        rgba(11, 31, 58, 0.5) 55%,
        rgba(11, 31, 58, 0.2) 100%
      );
  }

  .hero-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
    z-index: 6;
    margin: 0;
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    box-sizing: border-box;
  }

  .hero-dots {
    margin-inline: 18px;
    gap: 10px;
  }

  .hero-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  }

  .hero-dot.is-active {
    background: transparent;
    border: 1.5px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  }

  .hero-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(11, 31, 58, 0.28);
    backdrop-filter: blur(6px);
  }

  .hero-arrow img {
    width: 10px;
    height: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  }

  /* Logo slide is light — use darker controls for contrast */
  .hero.is-logo-reveal .hero-controls {
    z-index: 6;
  }

  .hero.is-logo-reveal .hero-dot {
    background: rgba(11, 31, 58, 0.35);
    box-shadow: none;
  }

  .hero.is-logo-reveal .hero-dot.is-active {
    background: transparent;
    border-color: rgba(11, 31, 58, 0.75);
  }

  .hero.is-logo-reveal .hero-arrow {
    background: rgba(11, 31, 58, 0.08);
  }

  .hero.is-logo-reveal .hero-arrow img {
    filter: brightness(0) saturate(100%) opacity(0.65);
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }

  body:has(.cookie-consent.is-visible) .whatsapp-float {
    bottom: 120px;
  }

  .strength-cards { grid-template-columns: 1fr; }

  .site-footer {
    padding: 48px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    padding-bottom: 32px;
  }

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

  .footer-col--brand .footer-col__tagline {
    max-width: none;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 20px;
  }

  .footer-col__logo {
    width: 128px;
    margin-bottom: 16px;
  }

  .footer-col__title {
    margin-bottom: 14px;
    font-size: 17px;
  }

  .footer-col ul:not(.contact-list) {
    gap: 12px;
  }

  .footer-col ul a {
    font-size: 15px;
  }

  /* Contact column spans full width under the two link columns */
  .footer-grid > .footer-col:last-child {
    grid-column: 1 / -1;
    padding-top: 4px;
  }

  .contact-list {
    gap: 14px;
  }

  .contact-list li {
    font-size: 15px;
    word-break: break-word;
  }

  .contact-list li a[href^='mailto:'] {
    overflow-wrap: anywhere;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 0 calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .footer-bottom__copy {
    font-size: 13px;
    line-height: 1.45;
    max-width: 100%;
  }

  .footer-bottom__legal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    width: 100%;
    max-width: 360px;
  }

  .footer-bottom__sep {
    display: none;
  }

  .footer-bottom__legal a {
    font-size: 13px;
    line-height: 1.4;
  }

  .section--partner {
    padding: 56px 0;
  }

  .partner-cta {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 28px;
    min-height: 0;
  }

  .partner-cta__title {
    flex: none;
    max-width: 18em;
    width: 100%;
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.25;
    letter-spacing: -0.02em;
  }

  .partner-cta__btn {
    flex: none;
    width: auto;
    min-width: 200px;
    max-width: 100%;
  }

  .section--customers {
    padding: clamp(48px, 10vw, 80px) 0;
  }

  .section--about-cta {
    padding: 48px 0 32px;
  }

  .about-cta {
    align-items: center;
    justify-content: center;
    padding: 56px 18px 56px;
    min-height: 420px;
  }

  .about-cta__body {
    max-width: 20rem;
    padding-inline: 12px;
    margin-top: 0;
  }

  .about-cta__deco {
    display: block;
    opacity: 1;
    z-index: 1;
  }

  .about-cta__deco--jars {
    left: -12px;
    bottom: -28px;
    width: clamp(140px, 42vw, 180px);
  }

  .about-cta__deco--clip {
    right: -14px;
    top: -8px;
    width: clamp(110px, 34vw, 150px);
  }

  .about-cta__title {
    font-size: clamp(22px, 5.8vw, 28px);
    margin-bottom: 22px;
  }

  .about-cta__btn {
    min-width: 0;
    width: auto;
    max-width: 100%;
    padding-inline: 22px;
  }

  .infra-card--tall,
  .infra-carousel {
    min-height: 260px;
  }

  .product-carousel {
    gap: 12px 16px;
  }

  .product-carousel__arrow {
    width: 40px;
    height: 40px;
  }

  .product-carousel .product-card,
  .product-card {
    height: 320px !important;
    min-height: 320px;
  }

  .product-carousel .product-cards {
    height: 320px;
    min-height: 0;
  }

  .product-card__body,
  .product-cards:has(.product-card:hover) .product-card:not(:hover) .product-card__body,
  .product-cards:has(.product-card:focus-within) .product-card:not(:focus-within) .product-card__body,
  .product-carousel:not(.product-carousel--fit) .product-cards.is-hovering .product-card:not(.is-card-active) .product-card__body {
    padding: 16px 14px 18px;
  }

  .product-card__desc,
  .product-card:hover .product-card__desc,
  .product-card:focus-within .product-card__desc {
    -webkit-line-clamp: 2;
    max-height: 3em;
    font-size: 12.5px;
  }

  .news-block {
    --news-arrow-size: 44px;
    --news-carousel-gap: 16px;
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    grid-template-areas:
      'header header header header'
      'viewport viewport viewport viewport'
      '. prev next .'
      'dots dots dots dots';
    column-gap: 12px;
    row-gap: 18px;
    align-items: center;
    justify-items: stretch;
  }

  .news-header {
    grid-area: header;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }

  .news-header .section-title {
    font-size: clamp(28px, 7.5vw, 36px);
    line-height: 1.15;
    width: 100%;
  }

  .news-header__cta {
    height: 48px;
    padding: 0 22px;
    font-size: 16px;
    margin-left: 0;
    width: auto;
    max-width: none;
    white-space: nowrap;
  }

  .news-carousel__viewport {
    grid-area: viewport;
    width: 100%;
    min-width: 0;
    padding: 0;
    margin: 0;
  }

  .news-carousel__arrow--prev {
    grid-area: prev;
    justify-self: end;
  }

  .news-carousel__arrow--next {
    grid-area: next;
    justify-self: start;
  }

  .news-carousel__arrow {
    width: var(--news-arrow-size);
    height: var(--news-arrow-size);
  }

  .news-carousel__arrow img {
    width: 16px;
    height: auto;
  }

  .news-carousel__dots {
    grid-area: dots;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
    gap: 10px;
  }

  .news-carousel__track .news-card {
    flex: 0 0 100%;
    width: 100%;
  }

  .news-carousel__track .news-card__media {
    margin-bottom: 14px;
  }

  .news-carousel__track .news-card__pill {
    left: 14px;
    top: 14px;
    padding: 6px 14px;
    font-size: 14px;
    line-height: 20px;
  }

  .news-carousel__track .news-card__date {
    font-size: 15px;
    line-height: 22px;
  }

  .news-carousel__track .news-card__title {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.35;
  }

  .news-carousel__track .news-card__link {
    font-size: 16px;
    line-height: 22px;
  }

  .section--news {
    padding: 48px 0 64px;
  }
}

/* Short phones — further compact hero capabilities slide */
@media (max-width: 768px) and (max-height: 720px) {
  .hero[data-layout='capabilities'] .hero-title {
    font-size: clamp(18px, 4.8vw, 22px);
    margin-bottom: 6px;
  }

  .hero[data-layout='capabilities'] .hero-capabilities {
    padding: 8px 4px;
  }

  .hero[data-layout='capabilities'] .hero-cap-item {
    padding: 6px 2px;
    gap: 4px;
  }

  .hero[data-layout='capabilities'] .hero-cap-item__icon {
    width: 48px;
    height: 48px;
  }

  .hero[data-layout='capabilities'] .hero-cap-item__icon img {
    width: 24px;
    height: 24px;
  }

  .hero[data-layout='capabilities'] .btn--hero {
    height: 40px;
  }
}

/* Event popup — upcoming event banner */
.event-popup {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.event-popup.is-open {
  display: flex;
}

.event-popup[hidden] {
  display: none !important;
}

.event-popup.is-open[hidden] {
  display: flex !important;
}

.event-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 4, 8, 0.6);
}

.event-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 48px));
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.event-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.event-popup__link {
  display: block;
  line-height: 0;
}

.event-popup__banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.event-popup__caption {
  margin: 0;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: var(--navy);
}

.event-popup__actions {
  display: flex;
  justify-content: center;
  padding: 16px 20px 20px;
  background: var(--white);
}

.event-popup__book {
  min-width: 200px;
  font-weight: 600;
}

body.event-popup-open {
  overflow: hidden;
}

/* Cookie consent bar */
.cookie-consent {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  max-width: 960px;
  margin: 0 auto;
}

.cookie-consent.is-visible {
  display: flex;
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.cookie-consent__text a {
  color: var(--teal);
  font-weight: 600;
}

.cookie-consent__accept {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-consent {
    left: 16px;
    right: 16px;
    bottom: 16px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
