/* ==========================================================================
   VMEDO — Occupational Health & Wellness
   Pure HTML5 + CSS3 (no frameworks, no JavaScript)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --red: #E30613;
  --red-dark: #B60310;
  --red-deep: #8E0209;
  --red-soft: #FDECEC;
  --red-softer: #FEF5F5;
  --red-tint: #FBD9DA;

  /* Neutrals */
  --ink: #14161A;
  --ink-2: #2B2F36;
  --body: #4A5058;
  --muted: #737A84;
  --line: #E7E9EC;
  --line-soft: #F0F1F3;
  --surface: #FFFFFF;
  --canvas: #F7F7F8;
  --dark: #16181B;
  --dark-2: #1D2024;

  /* Accent (solutions panel) */
  --green: #157347;
  --green-soft: #EEF7F1;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(20, 22, 26, .04);
  --sh-sm: 0 2px 10px rgba(20, 22, 26, .05);
  --sh-md: 0 8px 26px rgba(20, 22, 26, .07);
  --sh-lg: 0 18px 50px rgba(20, 22, 26, .10);
  --sh-red: 0 12px 28px rgba(227, 6, 19, .28);

  /* Layout */
  --container: 1280px;
  --gutter: clamp(18px, 4vw, 56px);
  --section-y: clamp(56px, 7vw, 104px);

  /* Type */
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --tr: 260ms cubic-bezier(.4, .14, .3, 1);
}

#clients {
  padding-top: clamp(28px, 3vw, 40px);
  padding-bottom: var(--section-y);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--canvas {
  background: var(--canvas);
}

.section--soft {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--canvas) 40%, #FFFFFF 100%);
}

/* Decorative soft wave at the bottom of a section */
.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(60px, 9vw, 130px);
  background:
    radial-gradient(120% 100% at 20% 100%, rgba(227, 6, 19, .07) 0%, transparent 60%),
    radial-gradient(120% 100% at 80% 100%, rgba(227, 6, 19, .05) 0%, transparent 60%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. Typography utilities
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--red);
  font-size: clamp(.75rem, 1.1vw, .875rem);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: clamp(28px, 5vw, 62px);
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.section-title {
  margin-top: 18px;
  font-size: clamp(1.75rem, 3.9vw, 3.25rem);
  line-height: 1.12;
  font-weight: 580 !important;
  letter-spacing: -.02em;
  text-align: center;
  text-wrap: balance;
}

.section-sub {
  margin: 18px auto 0;
  max-width: 68ch;
  text-align: center;
  color: var(--body);
  font-size: clamp(.98rem, 1.35vw, 1.18rem);
  line-height: 1.65;
  text-wrap: balance;
}

.accent {
  color: var(--red);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 30px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: clamp(.95rem, 1.15vw, 1.05rem);
  letter-spacing: -.01em;
  border: 2px solid transparent;
  transition: transform var(--tr), box-shadow var(--tr), background-color var(--tr),
    color var(--tr), border-color var(--tr);
  will-change: transform;
}

.btn svg {
  flex: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--sh-red);
}

.btn--primary:hover {
  background: var(--red-dark);
}

.btn--ghost {
  background: var(--surface);
  color: var(--red);
  border-color: var(--red);
}

.btn--ghost:hover {
  background: var(--red-softer);
}

.btn--light {
  background: #fff;
  color: var(--red);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, .12);
}

.btn--sm {
  padding: 12px 22px;
  border-radius: var(--r-sm);
}

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: clamp(128px, 13vw, 172px);
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.4vw, 52px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 2px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color var(--tr);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--tr);
}

.nav-link:hover {
  color: var(--red);
}

.nav-link:hover::after {
  transform: scaleX(.7);
}

.nav-link.is-active {
  color: var(--red);
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-caret {
  transition: transform var(--tr);
}

.has-dropdown:hover .nav-caret {
  transform: rotate(180deg);
}

/* CSS-only dropdown */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  translate: -50% 0;
  min-width: 262px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--tr), transform var(--tr), visibility var(--tr);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: background var(--tr), color var(--tr);
}

.dropdown a:hover {
  background: var(--red-softer);
  color: var(--red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* CSS-only mobile menu (checkbox toggle — no JavaScript) */
.nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--tr), top var(--tr);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;

  padding-top: 0;
  padding-bottom: 12px !important;

  background: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -12% -18% auto 42%;
  height: 130%;
  border-radius: 46% 54% 40% 60% / 52% 40% 60% 48%;
  background: radial-gradient(circle at 40% 35%, rgba(227, 6, 19, .10), rgba(227, 6, 19, .03) 60%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);

  gap: clamp(24px, 4vw, 56px);

  align-items: center;

  margin: 0;
  padding: 0;
}

.hero-brand {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1;
  font-weight: 550;
  letter-spacing: -.03em;
  color: var(--red);
  animation: rise .7s cubic-bezier(.2, .7, .3, 1) both;
}

/* Move only the text block upward */
.hero-copy {
  margin: 0;
  padding-top: clamp(20px, 2.5vw, 38px);

  align-self: start;
}

.hero-title {
  margin: 0;
  padding: 0;

  font-size: clamp(1.25rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -.025em;

  color: var(--ink);
  animation: rise .7s .07s cubic-bezier(.2, .7, .3, 1) both;
}

.hero-text {
  margin: clamp(18px, 2.4vw, 28px) 0 0;

  max-width: 46ch;

  color: var(--body);

  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.75;
  animation: rise .7s .14s cubic-bezier(.2, .7, .3, 1) both;
}

.hero-actions {
  margin-top: clamp(24px, 3vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: rise .7s .2s cubic-bezier(.2, .7, .3, 1) both;
}

.hero-media {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 0;
  z-index: 2;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -5% -10% 5% 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(227, 6, 19, 0.16) 0%, rgba(227, 6, 19, 0.03) 60%, transparent 80%);
  filter: blur(24px);
  pointer-events: none;
  z-index: -1;
}

.hero-media img {
  display: block;
  width: 100% !important;
  max-width: 680px !important;
  max-height: 560px !important;
  height: auto !important;
  object-fit: contain;

  /* Soft Top & Bottom Gradient Mask (mask-image) */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.95) 10%, #000 20%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.95) 10%, #000 20%, #000 84%, transparent 100%);

  /* 2. Gentle Floating Micro-Animation (animation: floaty) */
  animation: floaty 7s ease-in-out infinite;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes floaty {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 900px) {
  .hero-media {
    justify-content: center;
    margin-top: 20px;
  }

  .hero-media img {
    width: min(100%, 540px);
  }
}

@media (max-width: 600px) {
  .hero-media img {
    width: 100%;
  }
}

/* Trust / statistic cards under hero */
.trust-cards {
  position: relative;
  z-index: 2;
  margin-top: clamp(24px, 3vw, 8px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}

.trust-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 1.8vw, 24px);
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  backdrop-filter: blur(6px);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--red-tint);
}

.trust-card__icon {
  flex: none;
  color: var(--red);
}

.trust-card__body {
  min-width: 0;
}

.trust-card__value {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.trust-card__label {
  margin-top: 2px;
  color: var(--body);
  font-size: clamp(.82rem, 1vw, .95rem);
  line-height: 1.4;
}

.stars {
  display: flex;
  gap: 3px;
  color: var(--red);
  margin-block: 4px 2px;
}

.hero-rule {
  height: 1px;
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 0;
}

/* Fit the entire hero comfortably within a laptop viewport (short height,
   desktop two-column layout only — mobile/tablet layout is untouched). */
@media (min-width: 1025px) and (max-height: 860px) {
  .hero {
    padding-bottom: 20px;
  }

  .hero-copy {
    padding-top: 10px;
  }

  .hero-text {
    margin-top: 14px;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-media img {
    max-height: 46vh;
    width: auto;
    margin-inline: auto;
    display: block;
  }

  .trust-cards {
    margin-top: 16px;
  }

  .trust-card {
    padding: 14px 16px;
  }
}

/* Fit the CTA band comfortably within a laptop viewport too. */
@media (min-width: 1025px) and (max-height: 860px) {
  .cta {
    padding-top: clamp(40px, 5vw, 64px);
    padding-bottom: clamp(32px, 4vw, 48px);
  }

  .cta__actions {
    margin-top: clamp(18px, 2.4vw, 28px);
  }
}

/* ==========================================================================
   PRODUCTION MARQUEE AUTO-SCROLLER FOR CLIENT LOGOS
   ========================================================================== */

.logo-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  margin-top: clamp(28px, 3.5vw, 44px);
  /* Gradient fade masks on left and right edges */
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  padding-block: 10px;
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  animation: logo-marquee-scroll 45s linear infinite;
  gap: 24px;
}

.logo-marquee-track:hover {
  animation-play-state: paused;
}

.logo-marquee-track .logo-card {
  flex: 0 0 180px !important;
  scroll-snap-align: none !important;
}

@keyframes logo-marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   PRODUCTION MARQUEE AUTO-SCROLLER FOR CLIENT TESTIMONIALS
   ========================================================================== */

.testimonial-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  margin-top: clamp(28px, 3.5vw, 44px);
  /* Gradient fade masks on left and right edges */
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  padding-block: 15px;
}

.testimonial-marquee-track {
  display: flex;
  width: max-content;
  animation: testimonial-marquee-scroll 32s linear infinite;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.testimonial-marquee-track:hover {
  animation-play-state: paused;
}

.testimonial-marquee-track .testimonial-card {
  flex: 0 0 clamp(320px, 32vw, 420px) !important;
  scroll-snap-align: none !important;
  margin: 0 !important;
}

@keyframes testimonial-marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   8. Trusted-by carousel (CSS scroll-snap, no JavaScript)
   -------------------------------------------------------------------------- */
.heart-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
  color: var(--red);
}

.heart-divider::before,
.heart-divider::after {
  content: "";
  width: clamp(48px, 8vw, 110px);
  height: 1.5px;
  background: var(--line);
}

.carousel {
  position: relative;
  margin-top: clamp(28px, 3.5vw, 44px);
}

.carousel__track {
  display: flex;
  gap: clamp(12px, 1.6vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 14px;
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.logo-card {
  flex: 0 0 clamp(150px, calc((100% - 7 * 22px) / 8), 220px);
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / .9;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xs);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}

.logo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
  border-color: var(--red-tint);
}

.logo-card img {
  width: 100%;
  max-height: 84px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--red);
  box-shadow: var(--sh-sm);
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr);
  z-index: 3;
}

.carousel__arrow:hover {
  background: var(--red);
  color: #fff;
  box-shadow: var(--sh-red);
}

.carousel__arrow--prev {
  left: calc(var(--gutter) * -1 + 4px);
}

.carousel__arrow--next {
  right: calc(var(--gutter) * -1 + 4px);
}

.dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.dots span {
  width: 11px;
  height: 11px;
  border-radius: var(--r-pill);
  background: var(--line);
  transition: background var(--tr), width var(--tr);
}

.dots span.is-active {
  background: var(--red);
}

/* --------------------------------------------------------------------------
   9. Problem & solution
   -------------------------------------------------------------------------- */
.problem-grid {
  margin-top: clamp(34px, 4.5vw, 60px);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(24px, 3.4vw, 46px);
}

.problem-figure {
  min-width: 0;
}

.problem-figure img {
  width: 100%;
  border-radius: var(--r-xl);
}

.compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--sh-sm);
  height: 100%;
}

.panel__head {
  padding: 18px 20px;
  text-align: center;
  font-size: clamp(.95rem, 1.3vw, 1.15rem);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.panel--problem .panel__head {
  background: var(--red-soft);
  color: var(--red);
}

.panel--solution .panel__head {
  background: var(--green-soft);
  color: var(--green);
}

.panel__list {
  padding: 8px 20px 20px;
}

.panel__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: clamp(.92rem, 1.15vw, 1.02rem);
  line-height: 1.55;
  color: var(--ink-2);
}

.panel__list li:last-child {
  border-bottom: 0;
}

.panel__icon {
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
}

.panel--problem .panel__icon {
  background: var(--red-soft);
  color: var(--red);
}

.panel--solution .panel__icon {
  background: var(--green-soft);
  color: var(--green);
}

.compare__arrow {
  width: 1px;
  height: 80%;
  min-height: 120px;
  justify-self: center;
  align-self: center;
  background: var(--line);
  border-radius: 0;
  box-shadow: none;
  animation: none;
}

.compare__arrow svg {
  display: none;
}

.ecosystem-banner {
  margin-top: clamp(28px, 3.6vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 34px);
  padding: clamp(22px, 3vw, 40px) clamp(18px, 3vw, 44px);
  border: 1.5px solid var(--red-tint);
  border-radius: var(--r-2xl);
  background: linear-gradient(180deg, #fff, var(--red-softer));
  text-align: center;
}

.ecosystem-banner__mark {
  flex: none;
  width: clamp(50px, 5vw, 70px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--r-lg);
  background: var(--red);
  color: #fff;
  box-shadow: var(--sh-red);
}

.ecosystem-banner p {
  font-size: clamp(1.05rem, 2.1vw, 1.85rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   10. Ecosystem / 360° section
   -------------------------------------------------------------------------- */
/* ==========================================================================
   PRODUCTION FIX: ECOSYSTEM STICKY SCROLL & CENTERING
   ========================================================================== */

/* 1. Correct Sticky Viewport Layout on Desktop */
@media (min-width: 1025px) {
  .eco-scroll-runway {
    height: 240vh;
    position: relative;
  }

  #ecosystem {
    position: sticky;
    top: 80px !important;
    /* Locks right below your navbar */
    height: auto !important;
    max-height: none !important;
    min-height: calc(100vh - 70px) !important;
    overflow: visible !important;
    /* Prevents top/bottom clipping */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding-top: 15px !important;
    padding-bottom: 25px !important;
  }
}

/* 2. Compact Title & Subtitle Margins */
#ecosystem .eyebrow,
#ecosystem .eco-tag {
  margin-bottom: 4px !important;
}

#ecosystem .section-title,
#ecosystem h2 {
  margin-top: 2px !important;
  margin-bottom: 6px !important;
  font-size: clamp(1.4rem, 2.2vw, 2rem) !important;
}

#ecosystem .section-sub,
#ecosystem p {
  margin-bottom: 12px !important;
  font-size: 0.88rem !important;
}

/* 3. Compact Grid Layout */
#ecosystem .eco-grid {
  margin-top: 8px !important;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr) !important;
  align-items: center;
  gap: 20px !important;
  width: 100%;
  max-width: 1140px !important;
  margin-inline: auto;
}

/* 4. Scale Orbit Circle to 360px so Top/Bottom Nodes Fit Perfectly */
#ecosystem .orbit {
  position: relative;
  width: 360px !important;
  height: 360px !important;
  margin-inline: auto;
  aspect-ratio: 1;
}

.orbit__ring {
  position: absolute;
  inset: 12%;
  border: 2px dashed var(--red-tint);
  border-radius: var(--r-pill);
}

.orbit__core {
  position: absolute;
  inset: 30%;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: var(--r-pill);
  background: radial-gradient(circle at 50% 50%, #fff 40%, var(--red-softer) 100%);
  border: 2px solid var(--red-tint);
  box-shadow: inset 0 0 40px rgba(227, 6, 19, .08);
  animation: pulse 3.6s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: inset 0 0 40px rgba(227, 6, 19, .08), 0 0 0 0 rgba(227, 6, 19, .16);
  }

  50% {
    box-shadow: inset 0 0 40px rgba(227, 6, 19, .12), 0 0 0 18px rgba(227, 6, 19, 0);
  }
}

.orbit__core b {
  display: block;
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.orbit__core span {
  display: block;
  margin-top: 4px;
  font-size: clamp(.85rem, 1.7vw, 1.1rem);
  font-weight: 700;
  letter-spacing: .04em;
}

/* 4. DEAD-CENTER NODE ICON FIX */
.node {
  position: absolute;
  width: clamp(86px, 18%, 110px);
  translate: -50% -50%;
  text-align: center;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.node__bubble {
  width: clamp(56px, 68%, 80px) !important;
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: var(--r-pill, 50%);
  background: #ffffff;
  border: 1px solid var(--line, #eaeaea);
  color: var(--red, #e31e24);
  box-shadow: var(--sh-sm, 0 4px 12px rgba(0, 0, 0, 0.06));

  /* FORCES SVG ICON TO ABSOLUTE CENTER */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 0 !important;
  flex-shrink: 0;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}

.node__bubble svg {
  position: static !important;
  /* Removes absolute positioning transform bug */
  transform: none !important;
  width: 26px !important;
  height: 26px !important;
  stroke: currentColor;
  display: block !important;
}

.node:hover .node__bubble {
  transform: translateY(-5px) scale(1.05);
  border-color: var(--red);
  box-shadow: var(--sh-md);
}

.node--lead .node__bubble {
  border: 2px solid var(--red);
  width: clamp(66px, 80%, 96px) !important;
}

.node span:not(.node__bubble) {
  display: block;
  margin-top: 6px;
  font-size: clamp(.7rem, 1.1vw, .82rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink, #1a1d20);
  white-space: nowrap;
}

.node--1 {
  top: 12%;
  left: 50%;
}

.node--2 {
  top: 31%;
  left: 83%;
}

.node--3 {
  top: 69%;
  left: 83%;
}

.node--4 {
  top: 88%;
  left: 50%;
}

.node--5 {
  top: 69%;
  left: 17%;
}

.node--6 {
  top: 31%;
  left: 17%;
}

/* 5. Compact Detail Card Spacing */
#ecosystem .service-card {
  padding: 18px 22px !important;
}

#ecosystem .service-card__icon {
  width: 52px !important;
  height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#ecosystem .service-card__icon svg {
  width: 26px !important;
  height: 26px !important;
}

#ecosystem .service-card h3 {
  font-size: 1.25rem !important;
}

#ecosystem .service-card__desc {
  margin-top: 4px !important;
  font-size: 0.88rem !important;
}

#ecosystem .check-list {
  margin-top: 12px !important;
  padding-top: 12px !important;
  gap: 8px !important;
}

#ecosystem .check-list li {
  font-size: 0.88rem !important;
}

#ecosystem .service-card .btn {
  margin-top: 14px !important;
  padding: 8px 18px !important;
  font-size: 0.85rem !important;
}

/* 6. Fix Bottom Banner Position so it never gets hidden */
#ecosystem .partner-banner {
  margin-top: 16px !important;
  padding: 12px 24px !important;
  width: 100%;
  max-width: 1140px;
}

#ecosystem .partner-banner h3 {
  font-size: 1.15rem !important;
}

#ecosystem .partner-banner p {
  font-size: 0.82rem !important;
}

/* 7. Tablet & Mobile Responsive Fallback */
@media (max-width: 1024px) {
  .eco-scroll-runway {
    height: auto !important;
  }

  #ecosystem {
    position: relative !important;
    height: auto !important;
    max-height: none !important;
    padding-block: 60px !important;
  }

  #ecosystem .eco-grid {
    grid-template-columns: 1fr !important;
  }

  #ecosystem .orbit {
    width: min(100%, 380px) !important;
    height: min(100vw, 380px) !important;
  }
}

/* Service detail container & sidebar tabs */
.eco-detail-container {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 28px);
  position: relative;
  z-index: 2;
  /* keep above SVG connector */
}

/* Service detail card */
.service-card {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: #fff;
  box-shadow: var(--sh-md);
  padding: clamp(22px, 2.6vw, 34px);
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow var(--tr), border-color var(--tr);
}

.service-card.switching {
  opacity: 0;
  transform: translateY(6px);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 4px;
  background: var(--red);
  border-radius: 0 4px 4px 0;
}

.service-card__head {
  display: flex;
  gap: 18px;
  align-items: start;
}

.service-card__icon {
  flex: none;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--red-soft);
  color: var(--red);
}

.service-card h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 800;
  color: var(--red);
  letter-spacing: -.02em;
}

.service-card__desc {
  margin-top: 8px;
  color: var(--body);
  font-size: clamp(.92rem, 1.15vw, 1.02rem);
  line-height: 1.6;
}

.check-list {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 16px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(.92rem, 1.15vw, 1.04rem);
  color: var(--ink-2);
}

.check-list svg {
  flex: none;
  color: var(--red);
}

.service-card .btn {
  margin-top: 26px;
}

/* Vertical Sidebar */
.eco-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

.eco-tab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--sh-sm);
}

.eco-tab:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

.eco-tab--active {
  border-color: var(--red);
  border-width: 1.5px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 0 14px rgba(227, 6, 19, 0.25);
  transform: scale(1.05);
}

.eco-tab svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

.eco-tab--active svg {
  stroke: #fff;
}

/* Animations and Active states for Core & Orbit Nodes */
.orbit__core::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 2px dashed var(--red-tint);
  border-radius: 50%;
  animation: rotate-core 30s linear infinite;
  pointer-events: none;
}

@keyframes rotate-core {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.node--lead .node__bubble {
  border: 2.5px solid var(--red);
  box-shadow: 0 0 15px rgba(227, 6, 19, 0.2);
  animation: node-pulse 2s infinite alternate;
}

@keyframes node-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.3);
  }

  100% {
    box-shadow: 0 0 0 12px rgba(227, 6, 19, 0);
  }
}

/* Responsive sidebar configuration */
@media (max-width: 1024px) {
  .eco-detail-container {
    flex-direction: column;
    width: 100%;
  }

  .eco-sidebar {
    order: -1;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    margin-bottom: 16px;
    gap: 12px;
  }
}

.partner-banner {
  margin-top: clamp(30px, 3.8vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(22px, 2.8vw, 36px) clamp(20px, 3vw, 44px);
  border: 1px solid var(--red-tint);
  border-radius: var(--r-2xl);
  background: linear-gradient(90deg, var(--red-softer), #fff 70%);
}

.partner-banner__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  min-width: 0;
}

.partner-banner__inner>svg {
  flex: none;
  color: var(--red);
}

.partner-banner h3 {
  font-size: clamp(1.15rem, 2.1vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

.partner-banner p {
  color: var(--body);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   11. Impact statistics
   -------------------------------------------------------------------------- */
.impact-grid {
  margin-top: clamp(36px, 5vw, 66px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.impact {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  padding-inline: clamp(6px, 1.4vw, 20px);
  border-left: 1px solid var(--line);
  min-width: 0;
}

.impact:first-child {
  border-left: 0;
}

.impact__icon {
  flex: none;
  width: clamp(64px, 6.5vw, 92px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--red-soft);
  color: var(--red);
  transition: transform var(--tr);
}

.impact:hover .impact__icon {
  transform: scale(1.07);
}

.impact__value {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--red);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.impact__label {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: clamp(.86rem, 1.1vw, 1.05rem);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   12. Testimonials
   -------------------------------------------------------------------------- */
.testimonial-card {
  flex: 0 0 clamp(268px, calc((100% - 3 * 24px) / 4), 400px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-xs);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
  border-color: var(--red-tint);
}

.testimonial-card__quote {
  font-size: clamp(2.4rem, 3.6vw, 3.2rem);
  line-height: .8;
  font-weight: 800;
  color: var(--red);
}

.testimonial-card blockquote {
  margin-top: 20px;
  flex: 1;
  color: var(--ink-2);
  font-size: clamp(.94rem, 1.15vw, 1.05rem);
  line-height: 1.7;
}

.testimonial-card__person {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.avatar {
  flex: none;
  width: 62px;
  height: 62px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 6px;
}

.avatar img {
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.testimonial-card__person strong {
  font-size: 1.02rem;
  font-weight: 800;
}

.testimonial-card__person span {
  display: block;
  color: var(--muted);
  font-size: .9rem;
}

/* --------------------------------------------------------------------------
   13. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-top: clamp(64px, 9vw, 132px);
  padding-bottom: clamp(44px, 5.5vw, 80px);
  background:
    radial-gradient(120% 120% at 15% 10%, var(--red) 0%, var(--red-dark) 45%, var(--red-deep) 100%);
  color: #fff;
  isolation: isolate;
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .12);
  pointer-events: none;
  z-index: -1;
}

.cta::before {
  width: 620px;
  height: 620px;
  top: -290px;
  right: -170px;
}

.cta::after {
  width: 900px;
  height: 900px;
  bottom: -560px;
  left: -220px;
}

.cta__dots {
  position: absolute;
  top: 46px;
  left: 44px;
  width: 190px;
  height: 110px;
  background-image: radial-gradient(rgba(255, 255, 255, .35) 2px, transparent 2px);
  background-size: 26px 26px;
  pointer-events: none;
}

.cta h2 {
  font-size: clamp(2rem, 5.4vw, 4.25rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.cta__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(22px, 3vw, 36px);
}

.cta__rule::before,
.cta__rule::after {
  content: "";
  width: clamp(70px, 12vw, 190px);
  height: 1px;
  background: rgba(255, 255, 255, .55);
}

.cta__rule i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.cta p {
  margin: clamp(22px, 3vw, 34px) auto 0;
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.6vw, 1.45rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .93);
}

.cta__actions {
  margin-top: clamp(28px, 3.6vw, 46px);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .82);
  padding-top: clamp(48px, 6vw, 80px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3.4vw, 54px);
  padding-bottom: clamp(36px, 5vw, 64px);
}

.footer-col+.footer-col {
  padding-left: clamp(16px, 3vw, 46px);
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.footer-brand img {
  width: clamp(150px, 16vw, 210px);
}

.footer-brand p {
  margin-top: 22px;
  max-width: 40ch;
  line-height: 1.8;
  font-size: .98rem;
  color: rgba(255, 255, 255, .74);
}

.footer h4 {
  color: var(--red);
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer ul {
  margin-top: 22px;
  display: grid;
  gap: 15px;
}

.footer li a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: rgba(255, 255, 255, .84);
  transition: color var(--tr), transform var(--tr);
}

.footer li a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer li a svg {
  flex: none;
  color: var(--red);
}

.footer .social a svg {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 26px;
  text-align: center;
  font-size: .94rem;
  color: rgba(255, 255, 255, .6);
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .carousel__arrow--prev {
    left: -6px;
  }

  .carousel__arrow--next {
    right: -6px;
  }

  .logo-card {
    flex-basis: clamp(150px, calc((100% - 4 * 18px) / 5), 200px);
  }

  .testimonial-card {
    flex-basis: clamp(260px, calc((100% - 2 * 22px) / 3), 360px);
  }
}

@media (max-width: 1024px) {
  .nav {
    min-height: 74px;
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--gutter);
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--tr), padding var(--tr);
  }

  .nav-toggle-input:checked~.nav-menu {
    max-height: 460px;
    padding-block: 10px 18px;
  }

  .nav-toggle-input:checked~.nav-toggle span {
    background: transparent;
  }

  .nav-toggle-input:checked~.nav-toggle span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle-input:checked~.nav-toggle span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .nav-link {
    padding: 14px 2px;
    border-bottom: 1px solid var(--line-soft);
    justify-content: space-between;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.is-active {
    color: var(--red);
  }

  .dropdown {
    position: static;
    translate: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 6px 0 10px 10px;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--tr);
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    max-height: 300px;
  }

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

  .hero-copy {
    order: 1;
  }

  .hero-media {
    order: 2;
    max-width: 620px;
    margin-inline: auto;
  }

  .hero::before {
    inset: -10% -30% auto 10%;
  }

  .trust-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .problem-grid,
  .eco-grid {
    grid-template-columns: 1fr;
  }

  .problem-figure {
    max-width: 620px;
    margin-inline: auto;
  }

  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 30px;
  }

  .impact:nth-child(odd) {
    border-left: 0;
  }

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

  .footer-col:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 768px) {
  .compare {
    grid-template-columns: 1fr;
  }

  .compare__arrow {
    width: 60px;
    height: 1px;
    min-height: 0;
    margin-block: 6px;
    justify-self: center;
  }

  .ecosystem-banner {
    flex-direction: column;
  }

  .partner-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .partner-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .partner-banner .btn {
    justify-self: center;
  }

  .orbit {
    width: min(100%, 420px);
  }

  .logo-card {
    flex-basis: clamp(140px, calc((100% - 2 * 16px) / 3), 200px);
  }

  .testimonial-card {
    flex-basis: min(84%, 380px);
  }

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

@media (max-width: 560px) {
  .trust-cards {
    grid-template-columns: 1fr;
  }

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

  .impact {
    border-left: 0;
  }

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

  .footer-col+.footer-col {
    padding-left: 0;
    border-left: 0;
  }

  .btn {
    width: auto;
    max-width: 320px;
    padding: 10px 18px;
    font-size: 14px;
  }

  .hero-actions,
  .hero__actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .hero-actions .btn,
  .hero__actions .btn,
  .cta__actions .btn {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 10px 4px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    min-height: 40px !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  .hero-actions .btn svg,
  .hero__actions .btn svg {
    width: 16px !important;
    height: 16px !important;
    margin-right: 4px !important;
    flex-shrink: 0 !important;
  }

  .logo-card {
    flex-basis: min(60%, 220px);
  }

  .carousel__arrow--prev {
    left: -10px;
  }

  .carousel__arrow--next {
    right: -10px;
  }

  .orbit__core {
    inset: 28%;
  }
}

/* ==========================================================================
   UNIFIED CASE STUDIES & BLOGS COMPONENT STYLES
   ========================================================================== */
.content-filter-wrapper {
  text-align: center;
  width: 100%;
  margin-top: 18px;
  margin-bottom: 32px;
}

.content-filter-capsule {
  display: inline-flex;
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 4px 6px;
  margin: 0 auto;
}

.filter-tab {
  background: transparent;
  border: none;
  color: #4B5563;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.filter-tab:hover {
  color: var(--red, #E30613);
}

.filter-tab.active {
  background: var(--red, #E30613);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.25);
}

.blog-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {

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

@media (max-width: 640px) {

  .blog-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card,
.cases .card {
  background: #fff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--r-lg, 16px);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.blog-card:hover,
.cases .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, 0.1));
}

.blog-media,
.card__media {
  position: relative;
  overflow: hidden;
  background: #f2f3f5;
}

.blog-media img,
.card__media img {
  width: 100%;
  aspect-ratio: 15 / 12;
  object-fit: cover;
  transition: transform .45s ease;
}

.blog-card:hover .blog-media img,
.cases .card:hover .card__media img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 6px 10px;
  border-radius: 6px;
  z-index: 2;
}

.badge-case {
  background: var(--red, #E30613);
  color: #fff;
}

.badge-blog {
  background: #fbdcdd;
  color: var(--red-dark, #B60310);
}

.blog-body,
.card__body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.meta,
.meta-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  color: #8a919c;
}

.meta svg,
.meta-date svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
}

.blog-body h3,
.card__body h3 {
  margin: 0 0 14px;
  font-size: 16.5px;
  line-height: 1.42;
  font-weight: 700;
  color: var(--ink, #14181f);
}

.excerpt,
.card__body p {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #555;
  flex: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red, #E30613);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}

.read-more span {
  transition: transform .2s ease;
}

.read-more:hover span {
  transform: translateX(5px);
}

.btn-ghost {
  background: #fff;
  color: var(--red, #E30613);
  border: 1.5px solid var(--red, #E30613);
  border-radius: 8px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-ghost:hover {
  background: #fff5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.15);
}

/* ---------- Decorative Line Design under Section Titles ---------- */
.heading-line-design {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px auto 32px;
  width: 100%;
  max-width: 180px;
}

.heading-line-design .line-start,
.heading-line-design .line-end {
  height: 3px;
  flex: 1;
  background: linear-gradient(90deg, rgba(227, 6, 19, 0.05), rgba(227, 6, 19, 0.9));
  border-radius: 99px;
}

.heading-line-design .line-end {
  background: linear-gradient(90deg, rgba(227, 6, 19, 0.9), rgba(227, 6, 19, 0.05));
}

.heading-line-design .line-dot {
  width: 8px;
  height: 8px;
  background: var(--red, #E30613);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(227, 6, 19, 0.5);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}