/* =====================================================================
   Magnum Resources — Homepage Redesign
   Mobile-first, performance-first, SEO-targeted.
   Scoped to .mr-home wrapper to avoid colliding with existing styles.
   ===================================================================== */

:root {
  /* Brand palette — refined, logo unchanged */
  --mr-primary: #395BA0;
  --mr-primary-dark: #1F3A78;
  --mr-primary-glow: #3E5AE8;
  --mr-cta: #0369A1;
  --mr-cta-dark: #075985;
  --mr-ink: #1A1F2E;
  --mr-ink-soft: #3A4252;
  --mr-muted: #5B6478;
  --mr-line: #E5E8F0;
  --mr-surface: #F8F9FD;
  --mr-surface-2: #F2F4FC;
  --mr-white: #FFFFFF;
  --mr-success: #10B981;

  /* Typography — Manrope (display) + Inter (body) */
  --mr-font-display: 'Manrope', system-ui, -apple-system, sans-serif;
  --mr-font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Fluid type scale */
  --mr-fs-base: clamp(16px, 1vw + 14px, 18px);
  --mr-fs-lg: clamp(18px, 1.2vw + 14px, 21px);
  --mr-fs-xl: clamp(22px, 1.5vw + 16px, 28px);
  --mr-fs-2xl: clamp(28px, 2.2vw + 18px, 40px);
  --mr-fs-3xl: clamp(36px, 3.5vw + 20px, 64px);
  --mr-fs-4xl: clamp(44px, 5vw + 22px, 84px);

  /* Spacing scale */
  --mr-space-2: 0.5rem;
  --mr-space-3: 0.75rem;
  --mr-space-4: 1rem;
  --mr-space-5: 1.5rem;
  --mr-space-6: 2rem;
  --mr-space-8: 3rem;
  --mr-space-10: 4rem;
  --mr-space-12: 6rem;
  --mr-space-16: 8rem;

  /* Radius + shadow */
  --mr-radius-sm: 8px;
  --mr-radius: 14px;
  --mr-radius-lg: 22px;
  --mr-radius-pill: 999px;
  --mr-shadow-sm: 0 2px 8px rgba(26, 31, 46, 0.04);
  --mr-shadow: 0 8px 30px rgba(26, 31, 46, 0.06);
  --mr-shadow-lg: 0 20px 60px rgba(26, 31, 46, 0.10);

  /* Container */
  --mr-container: min(1280px, 92vw);

  /* Motion */
  --mr-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Reset / base — scoped ----- */
.mr-home,
.mr-home * {
  box-sizing: border-box;
}

.mr-home {
  font-family: var(--mr-font-body);
  font-size: var(--mr-fs-base);
  line-height: 1.65;
  color: var(--mr-ink);
  background: var(--mr-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.mr-home img,
.mr-home svg,
.mr-home video {
  max-width: 100%;
  height: auto;
  display: block;
}

.mr-home h1,
.mr-home h2,
.mr-home h3,
.mr-home h4,
.mr-home h5,
.mr-home h6 {
  font-family: var(--mr-font-display);
  color: var(--mr-ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
}

.mr-home p {
  margin: 0;
  color: var(--mr-ink-soft);
}

.mr-home a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--mr-ease);
}

.mr-home a:hover {
  color: var(--mr-primary);
}

.mr-home .mr-container {
  width: var(--mr-container);
  margin-inline: auto;
}

/* ----- Buttons ----- */
.mr-home .mr-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.45rem;
  border-radius: var(--mr-radius-pill);
  font-family: var(--mr-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--mr-ease), background 0.25s var(--mr-ease),
    color 0.25s var(--mr-ease), border-color 0.25s var(--mr-ease),
    box-shadow 0.25s var(--mr-ease);
  white-space: nowrap;
}

.mr-home .mr-btn--primary {
  background: linear-gradient(135deg, var(--mr-cta) 0%, var(--mr-cta-dark) 100%);
  border-color: var(--mr-cta);
  color: var(--mr-white);
  box-shadow: 0 8px 24px rgba(3, 105, 161, 0.28);
}

.mr-home .mr-btn--primary:hover {
  background: linear-gradient(135deg, var(--mr-cta-dark) 0%, #064e72 100%);
  border-color: var(--mr-cta-dark);
  color: var(--mr-white);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(3, 105, 161, 0.36);
}

.mr-home .mr-btn--ghost {
  background: transparent;
  color: var(--mr-ink);
  border-color: var(--mr-line);
}

.mr-home .mr-btn--ghost:hover {
  background: var(--mr-surface);
  color: var(--mr-primary);
  border-color: var(--mr-primary);
}

.mr-home .mr-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--mr-ease);
}

.mr-home .mr-btn:hover svg {
  transform: translateX(4px);
}

/* ----- Eyebrow / section tags ----- */
.mr-home .mr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mr-font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mr-primary);
}

.mr-home .mr-eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--mr-primary);
  display: inline-block;
}

/* =====================================================================
   1) HERO — split layout, fast LCP, no big media
   ===================================================================== */
.mr-hero {
  padding: clamp(1.75rem, 3vw, 3rem) 0 clamp(1.75rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, var(--mr-surface) 0%, var(--mr-white) 100%);
  position: relative;
  overflow: hidden;
}

.mr-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(62, 90, 232, 0.08) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.mr-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  position: relative;
}

@media (min-width: 992px) {
  .mr-hero__grid {
    grid-template-columns: 1.1fr 1fr;
    grid-template-areas:
      "copy visual"
      "ctas visual";
    row-gap: 0;
  }

  .mr-hero__copy { grid-area: copy; }
  .mr-hero__visual { grid-area: visual; }
  .mr-hero__ctas {
    grid-area: ctas;
    align-self: start;
  }
}

.mr-hero__copy {
  max-width: 640px;
}

.mr-hero h1 {
  font-size: clamp(30px, 2.6vw + 16px, 52px);
  font-weight: 800;
  margin-top: var(--mr-space-3);
  margin-bottom: var(--mr-space-3);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.mr-hero h1 .mr-accent {
  color: var(--mr-primary);
  display: inline;
}

.mr-hero__lead {
  font-size: clamp(15px, 0.5vw + 14px, 18px);
  color: var(--mr-ink-soft);
  margin-bottom: var(--mr-space-4);
  line-height: 1.55;
}

.mr-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mr-space-3);
  margin-top: var(--mr-space-5);
  margin-bottom: 0;
}

/* Hero CTAs use the shared header CTA blue. */
.mr-hero .mr-btn--primary {
  background: linear-gradient(135deg, var(--mr-cta) 0%, var(--mr-cta-dark) 100%);
  border-color: var(--mr-cta);
  box-shadow: 0 8px 24px rgba(3, 105, 161, 0.28);
}
.mr-hero .mr-btn--primary:hover {
  background: linear-gradient(135deg, var(--mr-cta-dark) 0%, #064e72 100%);
  border-color: var(--mr-cta-dark);
  box-shadow: 0 14px 34px rgba(3, 105, 161, 0.36);
}
.mr-hero .mr-btn--ghost {
  background: transparent;
  color: var(--mr-ink);
  border-color: var(--mr-line);
}
.mr-hero .mr-btn--ghost:hover {
  background: rgba(3, 105, 161, 0.06);
  color: var(--mr-cta-dark);
  border-color: var(--mr-cta);
}

/* Hero stats row — sits between lead paragraph and CTAs in the left column */
.mr-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mr-space-5);
  list-style: none;
  padding: var(--mr-space-4) 0 0;
  margin: var(--mr-space-2) 0 0;
  border-top: 1px solid var(--mr-line);
}
.mr-hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mr-hero__stats strong {
  font-family: var(--mr-font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--mr-ink);
  letter-spacing: -0.01em;
}
.mr-hero__stats span {
  font-size: 0.78rem;
  color: var(--mr-muted);
  font-weight: 500;
}

/* Hero visual rail (right column) — 3×3 grid of 9 brand tiles.
   Capped via max-width so total height aligns with the left copy column
   (eyebrow + H1 + lead + stats + CTAs) and the whole hero fits within
   the first desktop viewport without scrolling. */
.mr-hero__visual {
  position: relative;
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
}

.mr-hero__visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  aspect-ratio: 1 / 1;
}

@media (max-width: 767px) {
  .mr-hero__visual { max-width: 380px; }
  .mr-hero__visual-grid {
    grid-template-columns: repeat(3, 1fr);
    aspect-ratio: 1 / 1;
    gap: 6px;
  }
}

/* Coming-soon style for tiles whose product catalogue is pending */
.mr-hero__tile--soon { opacity: 0.85; }
.mr-hero__tile--soon::before {
  content: 'Coming soon';
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(14, 165, 233, 0.92);
  padding: 3px 8px;
  border-radius: 999px;
}

.mr-hero__tile {
  border-radius: var(--mr-radius);
  overflow: hidden;
  background: var(--mr-surface-2);
  position: relative;
  box-shadow: var(--mr-shadow-sm);
  transition: transform 0.35s var(--mr-ease), box-shadow 0.35s var(--mr-ease);
  display: block;
  aspect-ratio: 1 / 1;
}

.mr-hero__tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--mr-shadow-lg);
  z-index: 2;
}

.mr-hero__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--mr-ease);
}

.mr-hero__tile:hover img {
  transform: scale(1.08);
}

.mr-hero__tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(26, 31, 46, 0.78) 100%);
  pointer-events: none;
}

.mr-hero__tile-brand {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 22px;
  color: var(--mr-white);
  font-family: var(--mr-font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  z-index: 1;
  text-transform: uppercase;
}

.mr-hero__tile-label {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.15;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 767px) {
  .mr-hero__tile-brand { font-size: 0.65rem; bottom: 18px; }
  .mr-hero__tile-label { font-size: 0.55rem; bottom: 5px; }
}

/* =====================================================================
   2) TRUST STRIP — global principal logos
   ===================================================================== */
.mr-trust {
  padding: var(--mr-space-8) 0;
  background: var(--mr-white);
  border-top: 1px solid var(--mr-line);
  border-bottom: 1px solid var(--mr-line);
}

.mr-trust__label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mr-muted);
  margin-bottom: var(--mr-space-5);
}

.mr-trust__rail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--mr-space-6) var(--mr-space-4);
  align-items: center;
}

@media (min-width: 640px) {
  .mr-trust__rail {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 992px) {
  .mr-trust__rail {
    grid-template-columns: repeat(8, 1fr);
  }
}

.mr-trust__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  filter: grayscale(0.8) contrast(0.9);
  opacity: 0.75;
  transition: filter 0.3s var(--mr-ease), opacity 0.3s var(--mr-ease),
    transform 0.3s var(--mr-ease);
}

.mr-trust__logo:hover {
  filter: grayscale(0) contrast(1);
  opacity: 1;
  transform: translateY(-2px);
}

.mr-trust__logo img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

/* =====================================================================
   3) SOLUTIONS GRID — 5 keyword-targeted categories
   ===================================================================== */
.mr-section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.mr-section--surface {
  background: var(--mr-surface);
}

.mr-section__head {
  max-width: 720px;
  margin-bottom: var(--mr-space-6);
}

.mr-section__head--center {
  text-align: center;
  margin-inline: auto;
}

.mr-section__head h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin: 0.6rem 0 0.75rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.mr-section__head p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--mr-muted);
  margin: 0;
}

.mr-solutions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .mr-solutions {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: uniform 4-column grid (8 solution cards = a clean 4 x 2). */
@media (min-width: 1024px) {
  .mr-solutions {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mr-solution {
  background: var(--mr-white);
  border: 1px solid var(--mr-line);
  border-radius: 10px;
  padding: 1.1rem 1.15rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--mr-ease), border-color 0.3s var(--mr-ease),
    box-shadow 0.3s var(--mr-ease);
  text-decoration: none;
  color: inherit;
}

.mr-solution::after {
  content: '';
  position: absolute;
  inset: auto -40% -40% auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(57, 91, 160, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  transition: transform 0.5s var(--mr-ease);
  pointer-events: none;
}

.mr-solution:hover {
  transform: translateY(-3px);
  border-color: #BFDBFE;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
  color: inherit;
  text-decoration: none;
}

.mr-solution:hover::after {
  transform: scale(1.3);
}

/* Branding tile — fills the empty 8th grid slot */
.mr-solution--brand {
  background: #fff;
  border-color: var(--mr-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  pointer-events: none;
  cursor: default;
  overflow: hidden;
  position: relative;
}

/* Hide on mobile/tablet — only show in the 4-col desktop grid slot */
@media (max-width: 1023px) {
  .mr-solution--brand {
    display: none;
  }
}

.mr-solution--brand::after {
  display: none; /* suppress the hover glow blob */
}

.mr-solution--brand__mark {
  width: 130px;
  height: 130px;
  object-fit: contain;
  flex-shrink: 0;
}

.mr-solution--brand__name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #141f49;
  line-height: 1.2;
}

.mr-solution--brand__sub {
  font-size: 0.68rem;
  color: #395ba0;
  letter-spacing: 0.04em;
}

.mr-solution__icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--mr-primary) 0%, var(--mr-primary-glow) 100%);
  color: var(--mr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mr-solution__icon svg {
  width: 19px;
  height: 19px;
}

.mr-solution h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--mr-ink);
}

.mr-solution p {
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
  color: var(--mr-muted);
}

/* Principal badges — small pills under description */
.mr-solution__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 0.1rem;
}

.mr-solution__brand {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--mr-primary);
  background: rgba(3, 105, 161, 0.07);
  border: 1px solid rgba(3, 105, 161, 0.18);
  border-radius: 4px;
  padding: 2px 6px;
  text-transform: uppercase;
  line-height: 1.2;
}

.mr-solution__cta {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--mr-primary);
  font-size: 0.78rem;
  transition: gap 0.2s var(--mr-ease);
}

.mr-solution__cta svg {
  flex-shrink: 0;
  transition: transform 0.25s var(--mr-ease);
}

.mr-solution:hover .mr-solution__cta { gap: 8px; }

.mr-solution:hover .mr-solution__cta svg {
  transform: translateX(2px);
}

/* ── Compact Solutions section so the heading + all 8 cards (4 x 2) fit one
   desktop viewport without scrolling. Scoped to .mr-section--solutions so no
   other section is affected; desktop-only so mobile/tablet keep full spacing. */
@media (min-width: 1024px) {
  .mr-section--solutions { padding: clamp(1.4rem, 3vw, 2.4rem) 0; }
  .mr-section--solutions .mr-section__head { margin-bottom: 1.1rem; }
  .mr-section--solutions .mr-section__head h2 { margin: 0.25rem 0 0.45rem; }
  .mr-section--solutions .mr-section__head p { font-size: 0.9rem; line-height: 1.5; }
  .mr-section--solutions .mr-solutions { gap: 12px; }
  .mr-section--solutions .mr-solution { padding: 0.9rem 1rem 0.85rem; gap: 0.4rem; }
  .mr-section--solutions .mr-solution__icon { width: 34px; height: 34px; border-radius: 7px; }
  .mr-section--solutions .mr-solution__icon svg { width: 17px; height: 17px; }
  .mr-section--solutions .mr-solution h3 { font-size: 0.95rem; line-height: 1.25; }
  .mr-section--solutions .mr-solution p {
    font-size: 0.8rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mr-section--solutions .mr-solution__brands { margin-top: 0.05rem; }
  .mr-section--solutions .mr-solution__cta { margin-top: auto; padding-top: 0.3rem; }
}

/* =====================================================================
   4) STATS BAND — counters
   ===================================================================== */
/* =====================================================================
   4) PROOF BENTO — asymmetric credential grid
   ===================================================================== */
.mr-proof {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  background: #fff;
  border-top: 1px solid var(--mr-line);
  border-bottom: 1px solid var(--mr-line);
}

.mr-proof__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  align-items: center;
}

@media (max-width: 900px) {
  .mr-proof__inner { grid-template-columns: 1fr; gap: 0; }
}

/* ── Left narrative ─────────────────────────────── */
.mr-proof__narrative {
  padding: clamp(2.5rem, 4vw, 4rem) clamp(2rem, 4vw, 4rem) clamp(2.5rem, 4vw, 4rem) 0;
  border-right: 1px solid var(--mr-line);
}

@media (max-width: 900px) {
  .mr-proof__narrative {
    border-right: none;
    border-bottom: 1px solid var(--mr-line);
    padding: 2.5rem 0;
  }
}

.mr-proof__heading {
  font-family: var(--mr-font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 800;
  color: var(--mr-ink);
  line-height: 1.22;
  margin: 0.7rem 0 1rem;
  letter-spacing: -0.02em;
}

.mr-proof__sub {
  font-size: 0.92rem;
  color: var(--mr-muted);
  line-height: 1.75;
  max-width: 370px;
  margin-bottom: 1.8rem;
}

.mr-proof__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mr-primary);
  text-decoration: none;
  transition: gap 0.2s var(--mr-ease);
}
.mr-proof__link svg { flex-shrink: 0; transition: transform 0.2s var(--mr-ease); }
.mr-proof__link:hover { gap: 8px; }
.mr-proof__link:hover svg { transform: translateX(2px); }

/* ── Right bento grid ───────────────────────────── */
.mr-proof__bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
  padding: clamp(2.5rem, 4vw, 4rem) 0 clamp(2.5rem, 4vw, 4rem) clamp(2rem, 4vw, 4rem);
}

@media (max-width: 900px) {
  .mr-proof__bento { padding: 2.5rem 0 0; }
}

.mr-proof__cell {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  padding: 1.8rem 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(15,23,42,.06), 0 8px 20px rgba(15,23,42,.07);
  transition: transform 0.25s var(--mr-ease), box-shadow 0.25s var(--mr-ease);
}
.mr-proof__cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(15,23,42,.12);
  border-color: #BFDBFE;
}

/* Hero cell — spans full left column, dark background */
.mr-proof__cell--hero {
  grid-column: 1;
  grid-row: 1 / 3;
  background: var(--mr-ink);
  color: var(--mr-white);
  justify-content: flex-end;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}
.mr-proof__cell--hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(57, 91, 160, 0.25);
  pointer-events: none;
}
.mr-proof__cell--hero::after {
  content: '';
  position: absolute;
  top: -10px; right: -10px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(57, 91, 160, 0.18);
  pointer-events: none;
}

/* Accent cell — deeper primary tint for contrast on white page */
.mr-proof__cell--accent {
  background: #DBEAFE;
  border: 1px solid #BFDBFE;
}

/* Clickable solution-areas card → /solutions, with a bottom-right arrow badge */
.mr-proof__cell--link {
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.mr-proof__cell--link:hover { text-decoration: none; }
.mr-proof__cell-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mr-primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(15,23,42,.18);
  transition: transform 0.25s var(--mr-ease), background 0.25s var(--mr-ease);
}
.mr-proof__cell-arrow svg {
  width: 17px;
  height: 17px;
  display: block;
  color: #fff;
  stroke: #fff;
}
.mr-proof__cell--link:hover .mr-proof__cell-arrow {
  transform: translateX(3px);
  background: var(--mr-ink);
}

/* Numbers */
.mr-proof__num {
  font-family: var(--mr-font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--mr-ink);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.4rem;
}

.mr-proof__num--hero {
  font-size: clamp(3rem, 5vw, 4.2rem);
  color: #fff;
  margin-bottom: 0.5rem;
}

.mr-proof__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mr-muted);
  line-height: 1.3;
}

.mr-proof__cell--hero .mr-proof__label { color: rgba(255,255,255,0.7); }
.mr-proof__cell--accent .mr-proof__label { color: var(--mr-primary); }

.mr-proof__sub-label {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}

.mr-proof__cell--accent .mr-proof__sub-label {
  color: rgba(3, 105, 161, 0.55);
}

@media (max-width: 480px) {
  .mr-proof__bento { grid-template-columns: 1fr; }
  .mr-proof__cell--hero { grid-column: 1; grid-row: auto; min-height: 160px; }
}

/* =====================================================================
   5) FEATURED MACHINES — top traffic products
   ===================================================================== */
.mr-products {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--mr-space-5);
}

@media (min-width: 640px) {
  .mr-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .mr-products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .mr-products .mr-product {
    flex: 0 0 calc(33.333% - var(--mr-space-5) * 2 / 3);
    max-width: calc(33.333% - var(--mr-space-5) * 2 / 3);
  }
}

@media (min-width: 1280px) {
  .mr-products {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
  .mr-products .mr-product {
    flex: none;
    max-width: none;
  }
}

.mr-product {
  background: var(--mr-white);
  border: 1px solid var(--mr-line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--mr-ease), box-shadow 0.3s var(--mr-ease), border-color 0.3s var(--mr-ease);
}

.mr-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.10);
  border-color: #BAE6FD;
  color: inherit;
  text-decoration: none;
}

.mr-product__image {
  height: 210px;
  background: #F1F5F9;
  border-bottom: 1px solid var(--mr-line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mr-product__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform 0.45s var(--mr-ease);
}

.mr-product:hover .mr-product__image img {
  transform: scale(1.04);
}

.mr-product__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.mr-product__brand {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mr-primary);
  background: rgba(3, 105, 161, 0.08);
  border: 1px solid rgba(3, 105, 161, 0.18);
  border-radius: 4px;
  padding: 2px 8px;
  width: fit-content;
}

.mr-product h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--mr-ink);
}

.mr-product__cta {
  margin-top: auto;
  font-weight: 600;
  color: var(--mr-ink-soft);
  font-size: 0.83rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s var(--mr-ease), gap 0.2s var(--mr-ease);
}

.mr-product__cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s var(--mr-ease);
}

.mr-product:hover .mr-product__cta {
  color: var(--mr-primary);
  gap: 8px;
}

.mr-product:hover .mr-product__cta svg {
  transform: translateX(2px);
}

.mr-section__footer {
  margin-top: var(--mr-space-8);
  display: flex;
  justify-content: center;
}

.mr-home .mr-featured-section .mr-section__footer {
  position: relative;
  margin-top: var(--mr-space-7);
  padding-top: var(--mr-space-5);
}

.mr-home .mr-featured-section .mr-section__footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(640px, 100%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.45), transparent);
}

.mr-home .mr-featured-section .mr-section__footer .mr-btn--ghost {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--mr-cta) 0%, var(--mr-cta-dark) 100%);
  border-color: var(--mr-cta);
  color: var(--mr-white);
  box-shadow: 0 8px 24px rgba(3, 105, 161, 0.28);
}

.mr-home .mr-featured-section .mr-section__footer .mr-btn--ghost:hover {
  background: linear-gradient(135deg, var(--mr-cta-dark) 0%, #064e72 100%);
  border-color: var(--mr-cta-dark);
  color: var(--mr-white);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(3, 105, 161, 0.36);
}

/* =====================================================================
   6) WHY MAGNUM — 4-up E-E-A-T grid
   ===================================================================== */
.mr-why {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--mr-space-5);
}

@media (min-width: 640px) {
  .mr-why {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .mr-why {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mr-why__item {
  background: var(--mr-white);
  border: 1px solid var(--mr-line);
  border-radius: var(--mr-radius-lg);
  padding: var(--mr-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--mr-space-3);
  transition: transform 0.3s var(--mr-ease), border-color 0.3s var(--mr-ease);
}

.mr-why__item:hover {
  transform: translateY(-4px);
  border-color: var(--mr-primary);
}

.mr-why__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--mr-radius-sm);
  background: var(--mr-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--mr-space-2);
}

.mr-why__icon img,
.mr-why__icon svg {
  width: 28px;
  height: 28px;
}

.mr-why__item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.mr-why__item p {
  font-size: 0.95rem;
  line-height: 1.55;
}

/* =====================================================================
   7) INSIGHTS GRID — news + blog
   ===================================================================== */
.mr-insights {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--mr-space-5);
}

@media (min-width: 640px) {
  .mr-insights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .mr-insights {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mr-insight {
  display: flex;
  flex-direction: column;
  gap: var(--mr-space-3);
}

.mr-insight__image {
  aspect-ratio: 16 / 10;
  border-radius: var(--mr-radius);
  overflow: hidden;
  background: var(--mr-surface);
}

.mr-insight__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--mr-ease);
}

.mr-insight:hover .mr-insight__image img {
  transform: scale(1.04);
}

.mr-insight__date {
  font-size: 0.82rem;
  color: var(--mr-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.mr-insight {
  text-decoration: none;
  color: inherit;
}

.mr-insight__read {
  margin-top: 0.4rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--mr-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s var(--mr-ease);
}

.mr-insight__read svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s var(--mr-ease);
}

.mr-insight:hover .mr-insight__read {
  gap: 8px;
}

.mr-insight:hover .mr-insight__read svg {
  transform: translateX(2px);
}

.mr-insight h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.32;
  font-weight: 700;
  /* Standardise + clamp to 3 lines so every card aligns regardless of title length */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s var(--mr-ease);
}

.mr-insight:hover h3 {
  color: var(--mr-primary);
}

/* =====================================================================
   8) FINAL CTA BAND
   ===================================================================== */
.mr-final {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.mr-final__card {
  background: linear-gradient(135deg, var(--mr-ink) 0%, #2A3650 100%);
  color: var(--mr-white);
  border-radius: var(--mr-radius-lg);
  padding: clamp(2.5rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--mr-space-6);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.mr-final__card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(62, 90, 232, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .mr-final__card {
    grid-template-columns: 1.4fr 1fr;
  }
}

.mr-final h2 {
  color: var(--mr-white);
  font-size: var(--mr-fs-3xl);
  font-weight: 800;
  position: relative;
}

.mr-final p {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--mr-fs-lg);
  margin-top: var(--mr-space-4);
  position: relative;
}

.mr-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mr-space-4);
  position: relative;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .mr-final__actions {
    justify-content: flex-end;
  }
}

.mr-final .mr-btn--primary {
  background: linear-gradient(135deg, var(--mr-cta) 0%, var(--mr-cta-dark) 100%);
  border-color: var(--mr-cta);
}

.mr-final .mr-btn--primary:hover {
  background: linear-gradient(135deg, var(--mr-cta-dark) 0%, #064e72 100%);
  border-color: var(--mr-cta-dark);
  color: var(--mr-white);
}

.mr-final .mr-btn--ghost {
  background: transparent;
  color: var(--mr-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.mr-final .mr-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--mr-white);
  border-color: rgba(255, 255, 255, 0.6);
}

/* =====================================================================
   Reveal animations — used by IntersectionObserver in JS
   ===================================================================== */
.mr-home [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--mr-ease), transform 0.7s var(--mr-ease);
  transition-delay: var(--mr-reveal-delay, 0s);
}

.mr-home [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .mr-home [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =====================================================================
   Marquee — for trust strip if user prefers continuous scroll
   ===================================================================== */
@keyframes mr-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.mr-marquee {
  overflow: hidden;
  position: relative;
}

.mr-marquee__track {
  display: flex;
  gap: var(--mr-space-8);
  width: max-content;
  animation: mr-marquee 40s linear infinite;
}

.mr-marquee:hover .mr-marquee__track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .mr-marquee__track {
    animation: none;
  }
}

/* =====================================================================
   Mobile performance / minor polish
   ===================================================================== */
@media (max-width: 640px) {
  .mr-home .mr-section {
    padding: 3rem 0;
  }
  .mr-home .mr-hero {
    padding-top: 2.5rem;
  }
  .mr-home .mr-btn {
    width: 100%;
    justify-content: center;
  }
  .mr-hero__ctas {
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .mr-home .mr-hero {
    padding: 1rem 0 1.25rem;
  }

  .mr-hero__grid {
    gap: 0.65rem;
    align-items: stretch;
  }

  .mr-hero__copy {
    max-width: none;
  }

  .mr-home .mr-hero__copy[data-reveal],
  .mr-home .mr-hero__visual[data-reveal] {
    opacity: 1;
    transform: none;
  }

  .mr-hero .mr-eyebrow {
    gap: 0.35rem;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .mr-home .mr-hero .mr-eyebrow::before {
    width: 20px;
  }

  .mr-hero h1 {
    font-size: clamp(25px, 6.7vw, 30px);
    line-height: 1.05;
    letter-spacing: 0;
    margin-top: 0.55rem;
    margin-bottom: 0.55rem;
  }

  .mr-hero h1 .mr-accent {
    display: inline-block;
    white-space: nowrap;
  }

  .mr-hero__lead {
    display: block;
    overflow: visible;
    font-size: 0.84rem;
    line-height: 1.34;
    margin-bottom: 0.8rem;
  }

  /* Single-row 4-column stats — fully transparent, hero crosshatch faded above */
  .mr-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0.9rem 0;
    margin: 0.85rem 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(20, 31, 73, 0.12);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .mr-hero__stats li {
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    gap: 4px;
    padding: 0 0.55rem;
    text-align: center;
    overflow: hidden;
  }

  .mr-hero__stats li + li {
    border-left: 1px solid rgba(20, 31, 73, 0.12);
  }

  /* Fade the crosshatch pattern out vertically much earlier so the stats area is fully clean */
  .mr-home .mr-hero::after {
    -webkit-mask-image: linear-gradient(180deg, black 0%, black 15%, transparent 38%) !important;
    mask-image: linear-gradient(180deg, black 0%, black 15%, transparent 38%) !important;
  }

  .mr-hero__stats li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 0 0.35rem;
    text-align: center;
    min-width: 0;
  }

  .mr-hero__stats li + li {
    border-left: 1px solid rgba(20, 31, 73, 0.1);
  }

  .mr-hero__stats strong {
    font-family: var(--mr-font-display);
    font-size: clamp(1.05rem, 4.4vw, 1.25rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--mr-primary);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mr-hero__stat-label {
    font-size: clamp(0.65rem, 2.4vw, 0.72rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--mr-muted);
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-transform: none;
  }

  /* Use short-form mobile labels (data-mobile attr) for long labels so they fit on one line */
  .mr-hero__stat-label[data-mobile] {
    font-size: 0;
  }
  .mr-hero__stat-label[data-mobile]::after {
    content: attr(data-mobile);
    display: inline-block;
    font-size: clamp(0.65rem, 2.4vw, 0.72rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--mr-muted);
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .mr-hero__visual {
    max-width: 100%;
    margin-top: 0.15rem;
  }

  .mr-hero__visual-grid {
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 5px;
    aspect-ratio: 1.28 / 1;
  }

  .mr-hero__tile {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 8px;
  }

  .mr-hero__tile::after {
    background: linear-gradient(180deg, transparent 42%, rgba(26, 31, 46, 0.82) 100%);
  }

  .mr-hero__tile-brand {
    left: 6px;
    right: 6px;
    bottom: 16px;
    font-size: 0.56rem;
    line-height: 1;
  }

  .mr-hero__tile-label {
    left: 6px;
    right: 6px;
    bottom: 5px;
    font-size: 0.48rem;
    line-height: 1;
  }

  .mr-hero__tile--soon::before {
    top: 5px;
    right: 5px;
    padding: 2px 5px;
    font-size: 0.45rem;
  }

  .mr-hero__ctas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    flex-direction: initial;
    width: 100%;
    margin-top: 0.15rem;
  }

  .mr-home .mr-hero .mr-btn {
    width: auto;
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    padding: 0.66rem 0.45rem;
    gap: 0.35rem;
    font-size: clamp(0.72rem, 3vw, 0.82rem);
  }

  .mr-home .mr-hero .mr-btn svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
  }
}

/* =====================================================================
   PRINCIPALS SHOWCASE — 8 cards, one per global brand
   ===================================================================== */
.mr-principals-section {
  padding-top: clamp(3.5rem, 5vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 5vw, 5.5rem);
}
.mr-principals-section .mr-section__head {
  margin-bottom: var(--mr-space-8);
}

.mr-principals {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--mr-space-4);
}
@media (min-width: 580px) {
  .mr-principals { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .mr-principals { grid-template-columns: repeat(4, 1fr); }
}

.mr-home .mr-principal {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--mr-space-3);
  padding: var(--mr-space-5);
  background: var(--mr-white);
  border: 1px solid var(--mr-line);
  border-radius: var(--mr-radius);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.35s var(--mr-ease),
              border-color 0.35s var(--mr-ease),
              box-shadow 0.35s var(--mr-ease);
  min-height: 280px;
}
.mr-home .mr-principal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mr-primary) 0%, var(--mr-primary-glow) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--mr-ease);
}
.mr-home .mr-principal:hover {
  transform: translateY(-6px);
  border-color: rgba(57, 91, 160, 0.3);
  box-shadow: var(--mr-shadow-lg);
  color: inherit;
}
.mr-home .mr-principal:hover::before { transform: scaleX(1); }

.mr-principal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--mr-space-3);
  min-height: 56px;
}
.mr-principal__logo {
  height: 56px;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.mr-principal__logo img {
  height: 40px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.3s var(--mr-ease);
}
.mr-home .mr-principal:hover .mr-principal__logo img { filter: grayscale(0); }

.mr-principal__country {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--mr-surface-2);
  color: var(--mr-ink-soft);
  border-radius: var(--mr-radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.mr-principal__flag { font-size: 0.85rem; line-height: 1; }

.mr-principal__name {
  font-family: var(--mr-font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--mr-ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.mr-principal__specialty {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  background: rgba(57, 91, 160, 0.1);
  color: var(--mr-primary);
  border-radius: var(--mr-radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mr-principal__teaser {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--mr-ink-soft);
  margin: 0;
  flex: 1;
}

.mr-principal__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  color: var(--mr-primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: gap 0.25s var(--mr-ease);
}
.mr-principal__cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--mr-ease);
}
.mr-home .mr-principal:hover .mr-principal__cta { gap: 0.7rem; }
.mr-home .mr-principal:hover .mr-principal__cta svg { transform: translateX(3px); }

/* =====================================================================
   AUTOMATION FEEL — Precision engineering micro-details
   All new animations respect prefers-reduced-motion.
   ===================================================================== */

/* 1. Dot-grid background — Featured Machines section */
.mr-home .mr-featured-section {
  position: relative;
}
.mr-home .mr-featured-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #C4CEEA 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.mr-home .mr-featured-section .mr-container {
  position: relative;
  z-index: 1;
}

/* 2a. Blueprint corner brackets — product cards */
.mr-home .mr-product {
  position: relative;
}
.mr-home .mr-product::before,
.mr-home .mr-product::after {
  content: '';
  position: absolute;
  width: 13px;
  height: 13px;
  border-color: var(--mr-primary);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.22s var(--mr-ease);
  pointer-events: none;
  z-index: 2;
}
.mr-home .mr-product::before {
  top: 9px; left: 9px;
  border-width: 2px 0 0 2px;
}
.mr-home .mr-product::after {
  bottom: 9px; right: 9px;
  border-width: 0 2px 2px 0;
}
.mr-home .mr-product:hover::before,
.mr-home .mr-product:hover::after {
  opacity: 1;
}

/* 2b. Blueprint corner bracket — principal cards (::before taken by top bar) */
.mr-home .mr-principal::after {
  content: '';
  position: absolute;
  bottom: 10px; right: 10px;
  width: 13px; height: 13px;
  border-color: var(--mr-primary);
  border-style: solid;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transition: opacity 0.22s var(--mr-ease);
  pointer-events: none;
}
.mr-home .mr-principal:hover::after {
  opacity: 1;
}

/* 3. Pulsing status dot — product CTA "View specifications" */
.mr-home .mr-product__cta::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mr-success);
  margin-right: 5px;
  animation: mr-dot-pulse 2.6s ease-in-out infinite;
}
@keyframes mr-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(16, 185, 129, 0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
}

/* 4. Spec ticker strip — inside Featured Machines heading */
.mr-ticker-wrap {
  overflow: hidden;
  border-top: 1px dashed var(--mr-line);
  border-bottom: 1px dashed var(--mr-line);
  padding: 8px 0;
  margin: 1.4rem 0 2.6rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 7%, black 93%, transparent 100%);
  mask-image:         linear-gradient(90deg, transparent 0%, black 7%, black 93%, transparent 100%);
}
.mr-ticker-track {
  display: flex;
  width: max-content;
  animation: mr-ticker-scroll 30s linear infinite;
}
.mr-ticker-track:hover {
  animation-play-state: paused;
}
.mr-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 2.2rem;
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 0.72rem;
  color: var(--mr-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mr-ticker-item::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--mr-primary);
  opacity: 0.45;
}
@keyframes mr-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 5. Typewriter cursor */
.mr-home .mr-eyebrow.mr-tw::after {
  content: '|';
  color: var(--mr-primary);
  margin-left: 1px;
  animation: mr-blink 0.75s step-end infinite;
}
.mr-home .mr-eyebrow.mr-tw.mr-tw--done::after {
  display: none;
}
@keyframes mr-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Kill all new animations if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mr-home .mr-product__cta::before       { animation: none; }
  .mr-ticker-track                         { animation: none; }
  .mr-home .mr-eyebrow.mr-tw::after        { display: none; }
  .mr-home .mr-featured-section::before   { display: none; }
}

/* =====================================================================
   HERO — Automation background: crosshatch grid + circuit traces + radar
   ===================================================================== */

/* Blueprint crosshatch grid — full hero fill, fades toward bottom */
.mr-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57, 91, 160, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 91, 160, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(160deg, black 10%, rgba(0,0,0,0.5) 55%, transparent 88%);
  mask-image:         linear-gradient(160deg, black 10%, rgba(0,0,0,0.5) 55%, transparent 88%);
}

/* Keep hero text/tiles above all bg decorations */
.mr-hero .mr-container {
  position: relative;
  z-index: 2;
}

/* Wrapper for circuit SVG + radar */
.mr-hero__auto-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

/* ---- Circuit board SVG ---- */
.mr-hero__circuit-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 54%;
  height: 100%;
  opacity: 0.13;
}

/* PCB trace lines — marching dash animation */
.mh-trace {
  fill: none;
  stroke: #395BA0;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 3 7;          /* dash 3 gap 7 → period 10 */
  animation: mh-march 0.9s linear infinite;
}
.mh-trace--b { animation-duration: 1.5s;  animation-delay: -0.75s; }
.mh-trace--c { animation-duration: 0.6s;  animation-delay: -0.3s; }

@keyframes mh-march {
  to { stroke-dashoffset: -10; }  /* one full period per loop */
}

/* Junction nodes */
.mh-node {
  fill: #395BA0;
  opacity: 0.72;
}

/* Active nodes — scale-pulse (transform not r, for broad browser support) */
.mh-node--pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: mh-node-pulse 2.8s ease-in-out infinite;
}
.mh-node--pulse.mh-d2 { animation-delay: -0.93s; }
.mh-node--pulse.mh-d3 { animation-delay: -1.87s; }

@keyframes mh-node-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.72; }
  50%       { transform: scale(2.6); opacity: 0.08; }
}

/* ---- Radar ping accent — bottom-left ---- */
.mr-hero__radar {
  position: absolute;
  bottom: 13%;
  left: 3.5%;
  width: 86px;
  height: 86px;
}
/* Center dot */
.mr-hero__radar::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #395BA0;
  opacity: 0.42;
}
/* Expanding rings */
.mr-hero__radar span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid #395BA0;
  opacity: 0;
  animation: mh-radar-ping 3.6s ease-out infinite;
}
.mr-hero__radar span:nth-child(2) { animation-delay: 1.2s; }
.mr-hero__radar span:nth-child(3) { animation-delay: 2.4s; }

@keyframes mh-radar-ping {
  0%   { transform: scale(0.1); opacity: 0.5; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* Mobile tweaks */
@media (max-width: 991px) {
  .mr-hero__circuit-svg { width: 100%; opacity: 0.07; }
  .mr-hero__radar       { bottom: auto; top: 8%; left: auto; right: 4%; width: 64px; height: 64px; }
}
@media (max-width: 575px) {
  .mr-hero__radar { display: none; }
}

/* Kill everything if motion preference set */
@media (prefers-reduced-motion: reduce) {
  .mr-hero::after   { display: none; }
  .mr-hero__auto-bg { display: none; }
}

/* =====================================================================
   PRINCIPAL CARDS — prn-card system (matches /principals listing page)
   ===================================================================== */
:root {
  --prn-navy:   #0F172A;
  --prn-blue:   #0369A1;
  --prn-border: #E2E8F0;
  --prn-muted:  #64748B;
  --prn-font:   'Manrope', system-ui, -apple-system, sans-serif;
}
/* 9 principals laid out as 5 + 4 — second row centered.
   Trick: 10 sub-columns, each card spans 2, the 6th card offsets by 1
   so cards 6-9 sit at cols 2-9 (leaving 1 sub-col empty on each side). */
.prn-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 16px;
}
.prn-grid > .prn-card { grid-column: span 2; }
/* Card 6 (SIEGER) starts at col 2 AND keeps the 2-col span — using shorthand
   so a bare grid-column-start doesn't override the span from the rule above. */
.prn-grid > .prn-card:nth-child(6) { grid-column: 2 / span 2; }

@media (max-width: 1280px) {
  .prn-grid { grid-template-columns: repeat(4, 1fr); }
  .prn-grid > .prn-card { grid-column: auto; }
  .prn-grid > .prn-card:nth-child(6) { grid-column: auto; }
}
@media (max-width: 1100px) { .prn-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width:  767px) { .prn-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width:  479px) { .prn-grid { grid-template-columns: 1fr; gap: 14px; } }

/* Slight scale-down at 5-up so the smaller cards still feel balanced */
@media (min-width: 1281px) {
  .prn-card__logo { height: 112px; padding: 14px 20px; }
  .prn-card__logo img { max-height: 62px; }
  .prn-card__body { padding: 16px 16px 18px; }
  .prn-card__name { font-size: 15px; }
  .prn-card__desc { font-size: 12.5px; line-height: 1.55; }
}

.prn-card {
  background: #fff;
  border: 1px solid var(--prn-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.prn-card:hover {
  box-shadow: 0 6px 24px rgba(15,23,42,.09);
  transform: translateY(-3px);
  border-color: #BAE6FD;
  text-decoration: none;
}
.prn-card__logo {
  background: #F8FAFC;
  border-bottom: 1px solid var(--prn-border);
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  position: relative;
  flex-shrink: 0;
}
.prn-card__logo img {
  max-height: 72px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  transition: transform .2s;
}
.prn-card:hover .prn-card__logo img { transform: scale(1.04); }
.prn-card__country {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #EFF6FF;
  color: var(--prn-blue);
  font-family: var(--prn-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #BFDBFE;
  line-height: 1.7;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.prn-card__country .fi {
  width: 14px;
  height: 11px;
  border-radius: 2px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.prn-card__country-line {
  display: none;
}
.prn-card__body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.prn-card__name {
  font-family: var(--prn-font);
  font-size: 15px;
  font-weight: 700;
  color: var(--prn-navy);
  margin: 0 0 7px;
  line-height: 1.3;
}
.prn-card__desc {
  font-family: var(--prn-font);
  font-size: 12px;
  color: var(--prn-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prn-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--prn-font);
  font-size: 11px;
  font-weight: 600;
  color: #166534;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 5px;
  padding: 5px 10px;
  margin-bottom: 14px;
  flex-shrink: 0;
  width: fit-content;
}
.prn-card__badge svg { flex-shrink: 0; }
.prn-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--prn-font);
  font-size: 12px;
  font-weight: 700;
  color: var(--prn-blue);
  text-decoration: none;
  flex-shrink: 0;
  transition: gap .15s;
}
.prn-card__cta svg { flex-shrink: 0; transition: transform .15s; }
.prn-card:hover .prn-card__cta { gap: 8px; }
.prn-card:hover .prn-card__cta svg { transform: translateX(2px); }

@media (max-width: 640px) {
  .mr-principals-section {
    padding-top: 2.25rem;
    padding-bottom: 2.5rem;
  }

  .mr-principals-section .mr-section__head {
    margin-bottom: 1rem;
  }

  .mr-principals-section .mr-section__head h2 {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
    line-height: 1.12;
  }

  .mr-principals-section .mr-section__head p {
    display: none;
  }

  .prn-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .prn-grid > .prn-card,
  .prn-grid > .prn-card:nth-child(6) {
    grid-column: auto;
  }

  .prn-card {
    min-width: 0;
    border-radius: 9px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  }

  .mr-home .prn-card[data-reveal] {
    opacity: 1;
    transform: none;
  }

  .prn-card__logo {
    height: 58px;
    padding: 8px 8px 6px;
  }

  .prn-card__logo img {
    max-height: 38px;
    max-width: 92%;
  }

  .prn-card__country {
    display: none;
  }

  .prn-card__body {
    padding: 6px 6px 8px;
    align-items: center;
    text-align: center;
  }

  .prn-card__name {
    display: none;
  }

  .prn-card__country-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
    margin-bottom: 6px;
    padding: 3px 8px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 999px;
    color: var(--prn-blue);
    font-family: var(--prn-font);
    font-size: clamp(0.58rem, 2.35vw, 0.67rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .prn-card__country-line .fi {
    width: 13px;
    height: 9px;
    border-radius: 2px;
    flex-shrink: 0;
  }

  .prn-card__desc,
  .prn-card__cta {
    display: none;
  }

  .prn-card__badge {
    width: 100%;
    justify-content: center;
    gap: 3px;
    margin: 0;
    padding: 3px 3px;
    border-radius: 999px;
    font-size: 0;
    line-height: 1;
  }

  .prn-card__badge::after {
    content: 'Auth. Dist. India';
    font-size: clamp(0.48rem, 2.2vw, 0.58rem);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  .prn-card__badge svg {
    width: 10px;
    height: 10px;
  }
}
