/*
Theme Name: Merr IT
Theme URI: https://www.merr-it.com/
Author: Merr IT
Description: Custom block theme for Merr IT business technology services.
Version: 0.9.10
Requires at least: 6.8
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: merr-it
*/

:root {
  color-scheme: only light;
  --merr-shadow-sm: 0 10px 30px rgba(7, 23, 39, 0.08);
  --merr-shadow-lg: 0 28px 70px rgba(7, 23, 39, 0.14);
  --cs-navy: #071833;
  --cs-blue: #174ad7;
  --cs-line: #d9dde5;
  --cs-cream: #fbfaf7;
  --cs-muted: #566276;
  --cs-wide: min(1600px, calc(100vw - 64px));
}

html { scroll-behavior: smooth; }

body {
  background: #fff;
  color: var(--cs-navy);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

a { text-underline-offset: 0.18em; }

.wp-site-blocks { overflow: clip; }

.merr-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(11, 31, 51, 0.08);
  backdrop-filter: blur(16px);
}

.merr-header .wp-block-navigation__responsive-container-open,
.merr-header .wp-block-navigation__responsive-container-close {
  border-radius: 999px;
  padding: 0.6rem;
}

.merr-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: inherit;
}

.merr-brand img {
  display: block;
  width: 158px;
  height: auto;
}

.merr-header > .wp-block-group,
.merr-header .alignwide {
  width: var(--cs-wide);
  max-width: none;
}

.merr-header .wp-block-button__link {
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.merr-phone {
  color: var(--cs-navy);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* The complete service offering remains scannable without a long flyout. */
@media (min-width: 1181px) {
  .merr-header .merr-services-menu > .wp-block-navigation__submenu-container {
    box-sizing: border-box;
    left: 50% !important;
    width: min(850px, calc(100vw - 48px)) !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 175px 1.15fr 0.9fr 1.15fr;
    grid-template-rows: 70px 48px 68px 44px 44px 38px;
    gap: 0.1rem 1rem;
    padding: 0.75rem !important;
    border: 1px solid var(--cs-line) !important;
    border-radius: 8px;
    background: #fff !important;
    box-shadow: 0 24px 60px rgba(7, 24, 51, 0.14) !important;
    transform: translateX(-18%);
  }

  .merr-header .merr-services-menu > .wp-block-navigation__submenu-container::before {
    box-sizing: border-box;
    grid-column: 1;
    grid-row: 1 / 7;
    min-height: 100%;
    padding: 1.2rem 1.05rem;
    border-radius: 6px;
    background: linear-gradient(145deg, var(--cs-navy), #12345f);
    color: #fff;
    content: "MERR IT SERVICES\A\A Technology that keeps business moving.";
    white-space: pre-line;
    font-size: 1.04rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.35;
  }

  .merr-header .merr-services-menu:hover > .wp-block-navigation__submenu-container,
  .merr-header .merr-services-menu:focus-within > .wp-block-navigation__submenu-container,
  .merr-header .merr-services-menu:has(> button[aria-expanded="true"]) > .wp-block-navigation__submenu-container {
    visibility: visible !important;
    opacity: 1 !important;
  }

  .merr-header .merr-services-menu > .wp-block-navigation__submenu-container > .wp-block-navigation-item {
    width: auto;
    min-width: 0;
    align-self: start;
  }

  .merr-header .merr-services-menu > .wp-block-navigation__submenu-container > .wp-block-navigation-item > a {
    min-height: 34px;
    align-items: center;
    padding: 0.32rem 0.5rem !important;
    border-radius: 4px;
    line-height: 1.3;
  }

  .merr-header .merr-services-menu > .wp-block-navigation__submenu-container > .wp-block-navigation-item > a:hover {
    background: var(--wp--preset--color--mist);
    color: var(--cs-blue);
  }

  .merr-menu-support { grid-column: 2 !important; }
  .merr-menu-security { grid-column: 3 !important; }
  .merr-menu-workplace { grid-column: 4 !important; }
  .merr-menu-improvement { grid-column: 3 !important; }

  .merr-services-menu > .wp-block-navigation__submenu-container > :nth-child(-n+5) { grid-column: 2 !important; }
  .merr-services-menu > .wp-block-navigation__submenu-container > :nth-child(6),
  .merr-services-menu > .wp-block-navigation__submenu-container > :nth-child(7),
  .merr-services-menu > .wp-block-navigation__submenu-container > :nth-child(12) { grid-column: 3 !important; }
  .merr-services-menu > .wp-block-navigation__submenu-container > :nth-child(n+8):nth-child(-n+11) { grid-column: 4 !important; }

  .merr-services-menu > .wp-block-navigation__submenu-container > :nth-child(1),
  .merr-services-menu > .wp-block-navigation__submenu-container > :nth-child(6),
  .merr-services-menu > .wp-block-navigation__submenu-container > :nth-child(8) { grid-row: 1; }
  .merr-services-menu > .wp-block-navigation__submenu-container > :nth-child(2),
  .merr-services-menu > .wp-block-navigation__submenu-container > :nth-child(7),
  .merr-services-menu > .wp-block-navigation__submenu-container > :nth-child(9) { grid-row: 2; }
  .merr-services-menu > .wp-block-navigation__submenu-container > :nth-child(3),
  .merr-services-menu > .wp-block-navigation__submenu-container > :nth-child(10) { grid-row: 3; }
  .merr-services-menu > .wp-block-navigation__submenu-container > :nth-child(4),
  .merr-services-menu > .wp-block-navigation__submenu-container > :nth-child(11) { grid-row: 4; }
  .merr-services-menu > .wp-block-navigation__submenu-container > :nth-child(5) { grid-row: 5; }
  .merr-services-menu > .wp-block-navigation__submenu-container > :nth-child(12) {
    grid-row: 3 !important;
    margin-top: 0.2rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--cs-line);
  }

  .merr-menu-group-start::before {
    display: block;
    padding: 0 0.5rem 0.4rem;
    color: var(--cs-blue);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .merr-menu-group-start {
    display: block !important;
  }

  .merr-menu-support.merr-menu-group-start::before { content: "IT support & cloud"; }
  .merr-menu-security.merr-menu-group-start::before { content: "Security & resilience"; }
  .merr-menu-workplace.merr-menu-group-start::before { content: "Connected workplace"; }
  .merr-menu-improvement.merr-menu-group-start::before { content: "Improvement"; }

  .merr-menu-view-all {
    display: flex !important;
    justify-content: flex-end;
    grid-column: 2 / -1 !important;
    grid-row: 6;
    margin-top: 0.2rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--cs-line);
  }

  .merr-menu-view-all > a {
    width: 100% !important;
    min-height: 34px !important;
    padding-inline: 0.65rem !important;
    justify-content: flex-end;
    background: transparent !important;
    color: var(--cs-blue) !important;
    font-weight: 800;
  }

  .merr-menu-view-all > a::after {
    margin-left: 0.45rem;
    content: "→";
  }

  .merr-menu-view-all > a:hover {
    background: var(--wp--preset--color--mist) !important;
    color: var(--cs-navy) !important;
  }
}

.merr-hero {
  position: relative;
  isolation: isolate;
}

.merr-hero::before {
  position: absolute;
  z-index: -1;
  inset: 6% auto auto -12%;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(36, 139, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.merr-eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.merr-card {
  height: 100%;
  border: 1px solid rgba(11, 31, 51, 0.10);
  box-shadow: var(--merr-shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.merr-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 139, 255, 0.35);
  box-shadow: var(--merr-shadow-lg);
}

.merr-proof-strip {
  border-block: 1px solid rgba(11, 31, 51, 0.10);
}

.merr-dark-panel {
  position: relative;
  overflow: hidden;
}

.merr-dark-panel::after {
  position: absolute;
  inset: auto -8rem -10rem auto;
  width: 25rem;
  height: 25rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  content: "";
}

.merr-footer a { color: inherit; }

.merr-breadcrumbs {
  width: min(100%, var(--wp--style--global--wide-size));
  margin: 0 auto var(--wp--preset--spacing--40);
  color: var(--wp--preset--color--stone);
  font-size: var(--wp--preset--font-size--small);
}

.merr-breadcrumbs a { color: inherit; }

/* A single visual system for every inner page. */
.merr-inner-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.25rem, 7vw, 7rem);
  border-bottom: 1px solid var(--cs-line);
}

.merr-inner-hero::after {
  position: absolute;
  right: max(2rem, calc((100vw - 1240px) / 2));
  bottom: -115px;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(23, 74, 215, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(23, 74, 215, 0.045), 0 0 0 84px rgba(23, 74, 215, 0.025);
  content: "";
  pointer-events: none;
}

.merr-inner-hero--sector::after,
.merr-inner-hero--story::after {
  border-color: rgba(36, 214, 208, 0.32);
  box-shadow: 0 0 0 42px rgba(36, 214, 208, 0.07), 0 0 0 84px rgba(36, 214, 208, 0.035);
}

.merr-inner-hero > * { position: relative; z-index: 1; }
.merr-inner-hero .merr-breadcrumbs { margin-bottom: clamp(2.25rem, 4vw, 3.75rem); }
.merr-inner-hero .merr-eyebrow { margin-bottom: 1rem; }
.merr-inner-hero .wp-block-post-title,
.merr-inner-hero .wp-block-query-title,
.merr-inner-hero .merr-hero-title {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.75rem, 5.4vw, 5.25rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.merr-inner-hero .merr-hero-copy {
  width: min(100%, var(--wp--style--global--wide-size));
  max-width: var(--wp--style--global--wide-size);
  margin-right: auto !important;
  margin-left: auto !important;
}

.merr-inner-hero .merr-hero-copy .merr-eyebrow {
  margin-bottom: 1rem;
  color: var(--wp--preset--color--blue);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 700;
}
.merr-inner-hero .merr-hero-title {
  font-size: clamp(2.75rem, 4.4vw, 4.35rem);
}
.merr-inner-hero .merr-hero-title span { color: var(--wp--preset--color--blue); }

.merr-inner-hero .merr-breadcrumbs,
.merr-inner-hero .merr-eyebrow,
.merr-inner-hero .wp-block-post-title,
.merr-inner-hero .wp-block-query-title,
.merr-inner-hero .wp-block-post-excerpt,
.merr-inner-hero .merr-archive-lead {
  margin-right: auto !important;
  margin-left: max(0px, calc((100% - 1240px) / 2)) !important;
}

.merr-inner-hero .wp-block-post-excerpt,
.merr-inner-hero .wp-block-term-description {
  max-width: 760px;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0;
  color: var(--cs-muted);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.55;
}

.merr-inner-hero--sector .wp-block-post-excerpt,
.merr-inner-hero--story .wp-block-post-excerpt { color: #c8d3e4; }
.merr-inner-hero .wp-block-post-excerpt__excerpt { margin: 0; }
.merr-inner-hero:has(.merr-page-visual) .wp-block-post-title,
.merr-inner-hero:has(.merr-page-visual) .wp-block-query-title,
.merr-inner-hero:has(.merr-page-visual) .merr-hero-title,
.merr-inner-hero:has(.merr-page-visual) .wp-block-post-excerpt,
.merr-inner-hero:has(.merr-page-visual) .merr-archive-lead { max-width: 700px; }

.merr-inner-hero > .wp-block-shortcode:has(.merr-page-visual) {
  position: absolute;
  z-index: 2;
  top: 54%;
  right: max(2rem, calc((100vw - 1240px) / 2));
  width: min(31vw, 410px);
  margin: 0;
  transform: translateY(-50%);
}

.merr-inner-hero > .merr-page-visual {
  position: absolute;
  z-index: 2;
  top: 54%;
  right: max(2rem, calc((100vw - 1240px) / 2));
  width: min(31vw, 410px);
  margin: 0;
  transform: translateY(-50%);
}

.merr-page-visual {
  position: relative;
  padding: 1.1rem 1.2rem 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(23, 74, 215, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 60px rgba(7, 24, 51, 0.11);
  backdrop-filter: blur(12px);
}

.merr-inner-hero--sector .merr-page-visual,
.merr-inner-hero--story .merr-page-visual {
  border-color: rgba(132, 177, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.merr-page-visual__diagram { height: 170px; }
.merr-page-visual__diagram:has(img) {
  height: 185px;
  margin: -1.1rem -1.2rem 1rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(23, 74, 215, 0.15);
}
.merr-page-visual__diagram img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}
.merr-page-visual:hover .merr-page-visual__diagram img { transform: scale(1.025); }
.merr-page-visual svg { width: 100%; height: 100%; overflow: visible; }
.merr-page-visual svg path,
.merr-page-visual svg circle,
.merr-page-visual svg rect {
  fill: rgba(255, 255, 255, 0.88);
  stroke: var(--cs-blue);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.merr-page-visual svg path { fill: none; stroke: #8aa0cc; }
.merr-page-visual svg rect { fill: var(--cs-navy); stroke: var(--cs-blue); }
.merr-page-visual svg .merr-visual-mark { stroke: #fff; stroke-width: 3; }
.merr-page-visual svg .merr-visual-pulse { stroke: var(--cs-blue); stroke-dasharray: 5 7; }
.merr-page-visual svg .merr-visual-dot { fill: var(--cs-blue); stroke: #fff; }
.merr-inner-hero--sector .merr-page-visual svg path { stroke: #6586b6; }
.merr-inner-hero--sector .merr-page-visual svg circle { fill: #102b49; stroke: var(--cs-aqua, #24d6d0); }
.merr-page-visual__label { margin: 0 0 0.8rem; color: var(--cs-navy); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.merr-inner-hero--sector .merr-page-visual__label,
.merr-inner-hero--story .merr-page-visual__label { color: #fff; }
.merr-page-visual ul { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.merr-page-visual li { padding: 0.45rem 0.68rem; border: 1px solid var(--cs-line); border-radius: 999px; background: #fff; color: var(--cs-navy); font-size: 0.72rem; font-weight: 750; }
.merr-inner-hero--sector .merr-page-visual li,
.merr-inner-hero--story .merr-page-visual li { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.09); color: #fff; }
.merr-archive-lead { max-width: 760px; margin: 1.75rem 0 0; color: var(--cs-muted); font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.55; }

.merr-content-shell {
  padding-block: clamp(4rem, 7vw, 7rem);
}

.merr-prose {
  max-width: 790px;
  color: #263548;
  font-size: 1.04rem;
  line-height: 1.78;
}

.merr-prose > :first-child { margin-top: 0; }
.merr-prose > :last-child { margin-bottom: 0; }
.merr-prose > p.has-large-font-size:first-child {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  color: var(--cs-navy);
  font-size: clamp(1.3rem, 2vw, 1.65rem) !important;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.52;
}

.merr-prose h2 {
  margin-top: clamp(3.5rem, 7vw, 5.75rem);
  margin-bottom: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--cs-line);
  color: var(--cs-navy);
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.merr-prose h2::before {
  display: block;
  width: 42px;
  height: 3px;
  margin: -1.2rem 0 1.5rem;
  background: var(--cs-blue);
  content: "";
}

.merr-prose h3 { margin-top: 2.5rem; color: var(--cs-navy); font-size: 1.35rem; }
.merr-prose p { margin-block: 0 1.25rem; }
.merr-prose ul,
.merr-prose ol {
  margin-block: 1.75rem 2.25rem;
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--cs-line);
  border-radius: 14px;
  background: var(--cs-cream);
  list-style-position: outside;
}

.merr-prose li { margin-left: 1rem; padding: 0.3rem 0 0.3rem 0.35rem; }
.merr-prose li::marker { color: var(--cs-blue); }
.merr-prose a { font-weight: 650; }
.merr-content-shell .wp-block-post-featured-image img { border-radius: 20px; }

.merr-archive-shell {
  padding-block: clamp(4rem, 7vw, 7rem);
  background: #f4f6f9;
}

.merr-archive-shell .wp-block-post-template { gap: 1.25rem; }
.merr-archive-card {
  position: relative;
  min-height: 100%;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  overflow: hidden;
  border: 1px solid var(--cs-line);
  border-radius: 14px;
  box-shadow: none;
}

.merr-archive-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--cs-blue);
  content: "";
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 180ms ease;
}

.merr-archive-card:hover { transform: translateY(-4px); box-shadow: var(--merr-shadow-sm); }
.merr-archive-card:hover::before { transform: scaleY(1); }
.merr-archive-card .wp-block-post-featured-image { margin: -2.25rem -2.25rem 1.75rem; }
.merr-archive-card .wp-block-post-featured-image img { border-radius: 0; }
.merr-archive-card .wp-block-post-title { margin: 0 0 1rem; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.12; }
.merr-archive-card .wp-block-post-title a { color: var(--cs-navy); text-decoration: none; }
.merr-archive-card .wp-block-post-excerpt { margin: 0; color: var(--cs-muted); font-size: 0.95rem; line-height: 1.65; }
.merr-archive-card .wp-block-post-excerpt__more-link { display: inline-block; margin-top: 1.25rem; color: var(--cs-blue); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; }

.merr-skip-link {
  position: fixed;
  z-index: 9999;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  background: #fff;
  color: #071727;
}

.merr-skip-link:focus { transform: translateY(0); }

@media (max-width: 781px) {
  .merr-brand img { width: 120px; }
  .merr-hero { padding-top: var(--wp--preset--spacing--50) !important; }
  .merr-hero h1 { font-size: clamp(2.6rem, 12vw, 4.2rem) !important; }
  .merr-desktop-utility { display: none !important; }
}

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

/* Connected Spaces homepage */
.cs-hero,
.cs-proof,
.cs-services,
.cs-sectors,
.cs-contact {
  box-sizing: border-box;
}

.cs-hero {
  background: var(--cs-cream);
  color: var(--cs-navy);
  border-bottom: 1px solid var(--cs-line);
}

.cs-hero__inner {
  box-sizing: border-box;
  width: var(--cs-wide);
  min-height: 610px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(480px, 0.88fr) minmax(620px, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  padding: clamp(2.5rem, 4vw, 4rem) 0;
}

.cs-hero__copy { position: relative; z-index: 2; }

.cs-eyebrow {
  margin: 0 0 1.45rem;
  color: var(--cs-blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cs-hero h1,
.cs-section-intro h2 {
  margin: 0;
  color: var(--cs-navy);
  font-family: "Arial Narrow", "Aptos Display", Impact, sans-serif;
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-transform: uppercase;
}

.cs-hero h1 { font-size: clamp(3.55rem, 4.65vw, 4.75rem); }
.cs-hero h1 {
  width: 116%;
  transform: scaleX(0.86);
  transform-origin: left center;
}
.cs-hero h1 span { display: block; white-space: nowrap; }

.cs-hero__lead {
  max-width: 670px;
  margin: 1.5rem 0 0;
  color: #263650;
  font-size: clamp(1.04rem, 1.25vw, 1.3rem);
  line-height: 1.62;
}

.cs-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.45rem;
  margin-top: 1.6rem;
}

.cs-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--cs-blue);
  border-radius: 3px;
  background: var(--cs-blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.cs-button:hover { transform: translateY(-2px); background: var(--cs-navy); color: #fff; }
.cs-button:focus-visible,
.cs-text-link:focus-visible,
.cs-service a:focus-visible,
.cs-sector-links a:focus-visible { outline: 3px solid #71a4ff; outline-offset: 4px; }

.cs-text-link {
  color: var(--cs-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.cs-location {
  margin: 1.25rem 0 0;
  color: var(--cs-muted);
  font-size: 0.82rem;
}
.cs-location span { margin-right: 0.5rem; color: var(--cs-blue); }

.cs-workplace {
  position: relative;
  min-width: 0;
  background: var(--cs-cream);
}
.cs-workplace > img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.cs-callouts { list-style: none; margin: 0; padding: 0; }
.cs-callout {
  position: absolute;
  display: flex;
  max-width: 135px;
  align-items: center;
  gap: 0.5rem;
  color: var(--cs-navy);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-transform: uppercase;
}
.cs-callout::after { position: absolute; top: 50%; width: 54px; border-top: 1px dotted #758196; content: ""; }
.cs-callout__icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid #a5afbd;
  border-radius: 50%;
  color: var(--cs-blue);
  font-size: 1rem;
}
.cs-callout--it { top: 20%; left: 0; }
.cs-callout--it::after,
.cs-callout--voip::after,
.cs-callout--av::after { left: calc(100% + 8px); }
.cs-callout--cloud { top: 11%; right: 4%; }
.cs-callout--cloud::after,
.cs-callout--infrastructure::after,
.cs-callout--physical::after { right: calc(100% + 8px); }
.cs-callout--infrastructure { top: 33%; right: 3%; }
.cs-callout--voip { top: 44%; left: 0; }
.cs-callout--av { bottom: 14%; left: 2%; }
.cs-callout--physical { top: 49%; right: 0; }

@keyframes merr-workplace-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -5px, 0) scale(1.006); }
}

@keyframes merr-callout-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -4px, 0); }
}

@keyframes merr-status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(36, 87, 230, 0.24); }
  50% { box-shadow: 0 0 0 8px rgba(36, 87, 230, 0); }
}

.cs-workplace > img {
  transform-origin: 54% 58%;
  animation: merr-workplace-drift 11s ease-in-out infinite;
  will-change: transform;
}

.cs-callout { animation: merr-callout-float 5.8s ease-in-out infinite; }
.cs-callout:nth-child(2) { animation-delay: -1.1s; }
.cs-callout:nth-child(3) { animation-delay: -2.3s; }
.cs-callout:nth-child(4) { animation-delay: -3.4s; }
.cs-callout:nth-child(5) { animation-delay: -4.5s; }
.cs-callout:nth-child(6) { animation-delay: -5.2s; }
.cs-callout__icon { animation: merr-status-pulse 3.2s ease-out infinite; }
.cs-callout:nth-child(2) .cs-callout__icon { animation-delay: -0.7s; }
.cs-callout:nth-child(3) .cs-callout__icon { animation-delay: -1.4s; }
.cs-callout:nth-child(4) .cs-callout__icon { animation-delay: -2.1s; }
.cs-callout:nth-child(5) .cs-callout__icon { animation-delay: -2.8s; }
.cs-callout:nth-child(6) .cs-callout__icon { animation-delay: -3.1s; }

@media (prefers-reduced-motion: reduce) {
  .cs-workplace > img,
  .cs-callout,
  .cs-callout__icon { animation: none !important; }
}

.cs-proof { background: #fff; border-bottom: 1px solid var(--cs-line); }
.cs-proof__inner {
  width: var(--cs-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.cs-proof p {
  box-sizing: border-box;
  min-height: 92px;
  margin: 0;
  padding: 1rem clamp(0.85rem, 1.4vw, 1.4rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-right: 1px solid var(--cs-line);
}
.cs-proof p:first-child { border-left: 1px solid var(--cs-line); }
.cs-proof strong { flex: 0 0 auto; color: var(--cs-navy); font-size: 1.55rem; line-height: 1; white-space: nowrap; }
.cs-proof span { color: #39465a; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.035em; line-height: 1.35; text-transform: uppercase; }
.cs-proof span b { color: var(--cs-navy); font-weight: 800; }

.cs-proof-mark {
  position: relative;
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  box-sizing: border-box;
  color: var(--cs-navy) !important;
  font-size: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.cs-proof-mark--calendar { border: 1.5px solid var(--cs-navy); border-radius: 3px; }
.cs-proof-mark--calendar::before { position: absolute; inset: 7px 0 auto; border-top: 1.5px solid var(--cs-navy); content: ""; }
.cs-proof-mark--calendar::after { color: var(--cs-blue); font-size: 13px; content: "✓"; }
.cs-proof-mark--customers::before { font-size: 30px; font-weight: 400; content: "♙"; }
.cs-proof-mark--customers::after { position: absolute; right: 0; bottom: 3px; color: var(--cs-blue); font-size: 16px; content: "+"; }
.cs-proof-mark--current { border: 1.5px solid var(--cs-navy); border-radius: 50%; }
.cs-proof-mark--current::before { width: 9px; height: 9px; border: 1.5px solid var(--cs-navy); border-radius: 50%; content: ""; }
.cs-proof-mark--current::after { position: absolute; bottom: 5px; width: 17px; height: 7px; border: 1.5px solid var(--cs-navy); border-bottom: 0; border-radius: 10px 10px 0 0; content: ""; }
.cs-proof-mark--shield { width: 29px; height: 33px; border: 1.5px solid var(--cs-navy); border-radius: 13px 13px 16px 16px; clip-path: polygon(50% 0,100% 17%,91% 72%,50% 100%,9% 72%,0 17%); }
.cs-proof-mark--shield::after { color: var(--cs-blue); font-size: 14px; content: "✓"; }
.cs-proof-mark--microsoft { grid-template-columns: repeat(2, 13px); grid-template-rows: repeat(2, 13px); gap: 2px; }
.cs-proof-mark--microsoft i { display: block; width: 13px; height: 13px; background: var(--cs-navy); }
.cs-proof-mark--microsoft i:first-child { background: #f35325; }
.cs-proof-mark--microsoft i:nth-child(2) { background: #81bc06; }
.cs-proof-mark--microsoft i:nth-child(3) { background: #05a6f0; }
.cs-proof-mark--microsoft i:nth-child(4) { background: #ffba08; }
.cs-proof-mark--eset {
  width: 48px;
  height: 25px;
  border: 1.5px solid var(--cs-navy);
  border-radius: 10px;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
}

.cs-services { background: #fff; border-bottom: 1px solid var(--cs-line); }
.cs-section-grid {
  width: var(--cs-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  border-inline: 1px solid var(--cs-line);
}
.cs-section-intro,
.cs-service { min-width: 0; padding: clamp(1.35rem, 1.8vw, 1.8rem) clamp(1.15rem, 1.5vw, 1.55rem); }
.cs-section-intro h2 { font-size: clamp(2.4rem, 3vw, 3.1rem); }
.cs-section-intro > p:last-child { margin: 1.5rem 0 0; color: var(--cs-muted); font-size: 0.9rem; }
.cs-service {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-rows: auto 1fr;
  align-content: center;
  column-gap: 0.85rem;
  border-left: 1px solid var(--cs-line);
}
.cs-service__number { position: absolute; top: 1.15rem; right: 1.2rem; color: #8793a4; font: 700 0.65rem/1 ui-monospace, monospace; }
.cs-service__icon { display: block; margin-bottom: 0.65rem; color: var(--cs-blue); font-size: 1.55rem; line-height: 1; }
.cs-service h3 { margin: 0; font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.18; text-transform: uppercase; }
.cs-service h3 a { color: var(--cs-navy); text-decoration: none; }
.cs-service p { margin: 0.6rem 0 1.35rem; color: var(--cs-muted); font-size: 0.78rem; line-height: 1.45; }
.cs-service__arrow { position: absolute; right: 1.2rem; bottom: 1.15rem; color: var(--cs-blue); font-size: 1.25rem; text-decoration: none; }

.cs-line-icon {
  grid-column: 1;
  grid-row: 1;
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--cs-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cs-service .cs-line-icon + h3 {
  grid-column: 2;
  align-self: center;
}
.cs-service .cs-line-icon ~ p {
  grid-column: 1 / -1;
  align-self: start;
  margin-top: 0.9rem;
}

.cs-sectors { background: var(--cs-cream); }
.cs-sector-strip {
  width: var(--cs-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  border-inline: 1px solid var(--cs-line);
}
.cs-sector-strip > .cs-eyebrow {
  display: flex;
  min-height: 112px;
  align-items: center;
  margin: 0;
  padding: 1.25rem 2rem;
}
.cs-sector-strip > a {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-left: 1px solid var(--cs-line);
  color: var(--cs-navy);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}
.cs-sector-strip > a:hover { background: #fff; color: var(--cs-blue); }
.cs-sector-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cs-sectors__inner { width: var(--cs-wide); margin: 0 auto; padding: clamp(3rem, 4vw, 4.75rem) 0; }
.cs-featured-story { box-sizing: border-box; width: var(--cs-wide); margin: clamp(2rem, 4vw, 4rem) auto 0; display: grid; grid-template-columns: 0.55fr 1.35fr 1.4fr auto; gap: clamp(1.25rem, 3vw, 3rem); align-items: center; padding: clamp(1.5rem, 3vw, 2.75rem); background: var(--cs-navy); color: #fff; text-decoration: none; }
.cs-featured-story__label { color: #88afff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.cs-featured-story strong { font-size: clamp(1.5rem, 2.4vw, 2.35rem); line-height: 1.08; }
.cs-featured-story__scope { color: #c4cddd; font-size: 0.86rem; line-height: 1.6; }
.cs-featured-story__link { white-space: nowrap; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; }
.cs-featured-story:hover .cs-featured-story__link { color: var(--cs-aqua); }
.cs-sectors__heading { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 3rem; align-items: end; }
.cs-sectors__heading h2 { max-width: 740px; margin: 0; color: var(--cs-navy); font-size: clamp(2.2rem, 4vw, 4.2rem); line-height: 1.02; }
.cs-sector-links { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 2.5rem; border-block: 1px solid var(--cs-line); }
.cs-sector-links a { display: flex; min-height: 98px; align-items: center; gap: 0.85rem; padding: 1.15rem; border-right: 1px solid var(--cs-line); color: var(--cs-navy); font-size: 0.76rem; font-weight: 800; text-decoration: none; text-transform: uppercase; transition: color 180ms ease, background 180ms ease; }
.cs-sector-links a:first-child { border-left: 1px solid var(--cs-line); }
.cs-sector-links a:hover { background: #fff; color: var(--cs-blue); }
.cs-sector-links span { color: var(--cs-blue); font-size: 1.65rem; }
.cs-testimonial { max-width: 900px; margin: 2.75rem 0 0 auto; padding-left: 2rem; border-left: 3px solid var(--cs-blue); }
.cs-testimonial blockquote { margin: 0; color: var(--cs-navy); font-size: clamp(1.45rem, 2.3vw, 2.4rem); letter-spacing: -0.025em; line-height: 1.25; }
.cs-testimonial__source { margin-top: 1.25rem; color: var(--cs-muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }
.cs-testimonial__source span { font-weight: 400; }
.merr-story-facts { margin: 3rem 0 4rem; border-block: 1px solid var(--cs-line); }
.merr-story-facts > .wp-block-group { min-height: 120px; padding: 1.5rem; border-right: 1px solid var(--cs-line); }
.merr-story-facts > .wp-block-group:first-child { border-left: 1px solid var(--cs-line); }
.merr-story-facts p { margin: 0.35rem 0; }
.merr-story-gallery { width: min(calc(100vw - 3rem), 1040px); max-width: none !important; margin: 0 0 4.5rem 50% !important; transform: translateX(-50%); }
.merr-story-gallery figure { position: relative; margin: 0; overflow: hidden; background: var(--cs-navy); }
.merr-story-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.merr-story-gallery figure:hover img { transform: scale(1.015); }
.merr-story-gallery figcaption { position: absolute; inset: auto 0 0; padding: 2.75rem 1.25rem 1rem; background: linear-gradient(transparent, rgb(7 24 51 / 0.88)); color: #fff; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.03em; }
.merr-story-gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.merr-story-gallery__grid figure { aspect-ratio: 4 / 3; }
.merr-story-gallery__portrait img { object-position: center 68%; }
.merr-story-scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 2rem 0 4rem; padding: 1px; background: var(--cs-line); list-style: none; }
.merr-story-scope li { display: flex; flex-direction: column; gap: 0.65rem; min-height: 155px; padding: 1.5rem; background: #fff; }
.merr-story-scope strong { color: var(--cs-navy); font-size: 1.15rem; }
.merr-story-scope span { color: var(--cs-muted); font-size: 0.95rem; line-height: 1.55; }
.merr-story-closing { margin-top: 4rem; padding: clamp(2rem, 4vw, 3.5rem); background: var(--cs-navy); color: #fff; }
.merr-story-closing .merr-eyebrow { color: #88afff; }
.merr-story-closing h3 { margin: 0; color: #fff; font-size: clamp(1.65rem, 3vw, 2.75rem); line-height: 1.15; }

.cs-contact { background: var(--cs-navy); color: #fff; }
.cs-contact__inner { width: var(--cs-wide); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr auto; gap: clamp(2rem, 5vw, 6rem); align-items: center; padding: clamp(3.5rem, 6vw, 6.5rem) 0; }
.cs-contact .cs-eyebrow { color: #88afff; }
.cs-contact h2 { margin: 0; color: #fff; font-size: clamp(2.5rem, 4vw, 4.5rem); line-height: 1; }
.cs-contact__inner > p { color: #c4cddd; font-size: 1.05rem; }
.cs-contact__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.cs-button--light { border-color: #fff; background: #fff; color: var(--cs-navy); }
.cs-contact__actions > a:last-child { color: #fff; font-weight: 800; text-decoration: none; }

@media (max-width: 1180px) {
  :root { --cs-wide: min(100% - 40px, 1100px); }
  .merr-header { background: #fff !important; color: var(--cs-navy) !important; backdrop-filter: none !important; }
  .merr-header .wp-block-navigation { margin-left: auto; }
  .merr-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .merr-header .wp-block-navigation__responsive-container-open {
    position: relative;
    z-index: 22;
    display: inline-flex !important;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: var(--cs-blue) !important;
    color: #fff !important;
  }
  .merr-header .wp-block-navigation__responsive-container-open svg,
  .merr-header .wp-block-navigation__responsive-container-close svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
  }
  .merr-header .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed !important;
    z-index: 100000 !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    display: flex !important;
    overflow-y: auto;
    background: #fff !important;
    color: var(--cs-navy) !important;
  }
  .merr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    width: 100%;
    padding: 5rem 1.5rem 2rem;
  }
  .merr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    width: 100%;
    align-items: stretch !important;
  }
  .merr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; }
  .merr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
    padding: 0 0 0.5rem 1rem !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  /* On phones the services archive is the catalogue; keep the drawer navigational. */
  .merr-header .wp-block-navigation__responsive-container.is-menu-open .merr-services-menu > .wp-block-navigation__submenu-container,
  .merr-header .wp-block-navigation__responsive-container.is-menu-open .merr-services-menu > .wp-block-navigation__submenu-icon {
    display: none !important;
  }
  .merr-header .merr-services-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    padding: 0.65rem 0 !important;
    font-size: 0.95rem !important;
  }
  .merr-header .merr-menu-view-all > a {
    color: var(--cs-blue) !important;
    font-weight: 800;
  }
  .merr-header .wp-block-navigation__responsive-container-close { color: var(--cs-navy) !important; }
  .cs-hero__inner { min-height: 570px; grid-template-columns: minmax(390px, 0.92fr) minmax(440px, 1.08fr); gap: 1.25rem; }
  .cs-hero h1 { font-size: clamp(3rem, 5.3vw, 3.7rem); }
  .cs-callouts { display: none; }
  .cs-proof__inner { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cs-proof p { grid-column: span 2; }
  .cs-proof p:nth-child(n+4) { grid-column: span 3; }
  .cs-proof p:nth-child(3) { border-right: 0; }
  .cs-proof p:nth-child(n+4) { border-top: 1px solid var(--cs-line); }
  .cs-section-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-section-intro { grid-column: 1 / -1; }
  .cs-service:nth-of-type(odd) { border-left: 0; }
  .cs-sector-strip { grid-template-columns: repeat(2, 1fr); }
  .cs-sector-strip > .cs-eyebrow { grid-column: 1 / -1; min-height: 72px; border-bottom: 1px solid var(--cs-line); }
  .cs-sector-strip > a:nth-of-type(odd) { border-left: 0; }
  .cs-sector-strip > a:nth-of-type(n+3) { border-top: 1px solid var(--cs-line); }
  .merr-inner-hero > .wp-block-shortcode:has(.merr-page-visual) { display: none; }
  .merr-inner-hero > .merr-page-visual { display: none; }
  .merr-inner-hero:has(.merr-page-visual) .wp-block-post-title,
  .merr-inner-hero:has(.merr-page-visual) .wp-block-query-title,
  .merr-inner-hero:has(.merr-page-visual) .merr-hero-title,
  .merr-inner-hero:has(.merr-page-visual) .wp-block-post-excerpt,
  .merr-inner-hero:has(.merr-page-visual) .merr-archive-lead { max-width: 800px; }
  .merr-inner-hero .merr-breadcrumbs,
  .merr-inner-hero .merr-eyebrow,
  .merr-inner-hero .wp-block-post-title,
  .merr-inner-hero .wp-block-query-title,
  .merr-inner-hero .merr-hero-copy,
  .merr-inner-hero .wp-block-post-excerpt,
  .merr-inner-hero .merr-archive-lead { margin-left: 0 !important; }
}

@media (max-width: 781px) {
  :root { --cs-wide: calc(100% - 32px); }
  .merr-header { backdrop-filter: none !important; }
  .merr-header > .wp-block-group { min-height: 56px; }
  .merr-brand img { width: 124px; }
  .merr-header .wp-block-navigation__responsive-container-open,
  .merr-header .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; justify-content: center; }
  .merr-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.25rem 1rem 2rem; }
  .merr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: stretch; gap: 0; }
  .merr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { border-bottom: 1px solid var(--cs-line); }
  .merr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { width: 100%; padding: 0.9rem 0; font-size: 1.05rem; }
  .cs-hero__inner { min-height: 0; grid-template-columns: 1fr; gap: 1.25rem; padding: 2.25rem 0 1.5rem; }
  .cs-eyebrow { margin-bottom: 1rem; font-size: 0.69rem; }
  .cs-hero h1 { max-width: 10ch; font-size: clamp(2.85rem, 13.5vw, 4.6rem); line-height: 0.9; }
  .cs-hero h1 { width: auto; transform: none; }
  .cs-hero h1 span { white-space: normal; }
  .cs-hero__lead { margin-top: 1.25rem; font-size: 1rem; line-height: 1.55; }
  .cs-actions { gap: 1rem; margin-top: 1.35rem; }
  .cs-button { min-height: 50px; }
  .cs-location { margin-top: 1rem; line-height: 1.5; }
  .cs-workplace { width: min(100%, 440px); margin: 0 auto; }
  .cs-proof__inner { width: 100%; min-width: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cs-proof p { grid-column: span 3; min-width: 0; max-width: 100%; min-height: 88px; overflow: hidden; padding: 0.75rem 0.85rem; gap: 0.3rem 0.6rem; border-top: 1px solid var(--cs-line); }
  .cs-proof p:nth-child(-n+2) { display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; }
  .cs-proof p:nth-child(-n+2) .cs-proof-mark { grid-column: 1; grid-row: 1 / 3; align-self: center; }
  .cs-proof p:nth-child(-n+2) strong { grid-column: 2; grid-row: 1; }
  .cs-proof p:nth-child(-n+2) > span:last-child { grid-column: 2; grid-row: 2; min-width: 0; }
  .cs-proof p > span:last-child { overflow-wrap: normal; word-break: normal; }
  .cs-proof p:nth-child(n+3) { grid-column: span 2; min-height: 76px; flex-direction: column; justify-content: center; gap: 0.35rem; text-align: center; }
  .cs-proof p:nth-child(2),
  .cs-proof p:last-child { border-right: 0; }
  .cs-proof p:nth-child(3) { border-left: 0; }
  .cs-proof strong { font-size: 1.35rem; }
  .cs-proof span { font-size: 0.61rem; }
  .cs-proof-mark { transform: scale(0.9); }
  .cs-section-grid { width: 100%; grid-template-columns: 1fr; border-inline: 0; }
  .cs-section-intro { padding: 1.75rem 1rem 1.5rem; }
  .cs-section-intro h2 { font-size: clamp(2.15rem, 10vw, 2.5rem); }
  .cs-service { grid-template-columns: 46px 1fr; min-height: 0; padding: 1.4rem 1rem; border-top: 1px solid var(--cs-line); border-left: 0; column-gap: 0.85rem; }
  .cs-line-icon { width: 42px; height: 42px; }
  .cs-service h3 { font-size: 1rem; }
  .cs-service .cs-line-icon ~ p { margin: 0.75rem 0 0; font-size: 0.82rem; line-height: 1.55; }
  .cs-sector-strip { width: 100%; }
  .cs-sectors__heading { grid-template-columns: 1fr; gap: 0.5rem; }
  .cs-sector-links { grid-template-columns: repeat(2, 1fr); }
  .cs-sector-links a:nth-child(2) { border-right: 0; }
  .cs-sector-links a:nth-child(n+3) { border-top: 1px solid var(--cs-line); }
  .cs-testimonial { margin-top: 3rem; }
  .cs-featured-story { width: 100%; grid-template-columns: 1fr; }
  .merr-story-facts { grid-template-columns: 1fr !important; }
  .merr-story-facts > .wp-block-group { min-height: 0; border-left: 1px solid var(--cs-line); border-bottom: 1px solid var(--cs-line); }
  .merr-story-gallery { width: 100vw; margin-bottom: 3.5rem; }
  .merr-story-gallery__grid { grid-template-columns: 1fr; }
  .merr-story-gallery__grid figure { aspect-ratio: 4 / 3; }
  .merr-story-scope { grid-template-columns: 1fr; }
  .cs-contact__inner { grid-template-columns: 1fr; gap: 1.25rem; padding: 3rem 0; }
  .cs-contact h2 { max-width: 12ch; font-size: clamp(2.35rem, 11vw, 3.4rem); }
  .cs-contact__inner > p { margin: 0; font-size: 1rem; line-height: 1.6; }
  .cs-contact__actions { margin-top: 0.35rem; }
  .merr-footer { padding-top: 3rem !important; padding-bottom: 2rem !important; }
  .merr-footer > .wp-block-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.25rem; }
  .merr-footer > .wp-block-columns > .wp-block-column { margin: 0; }
  .merr-footer > .wp-block-columns > .wp-block-column:first-child { grid-column: 1 / -1; }
  .merr-footer .wp-block-navigation__container { gap: 0.45rem; }
  .merr-footer .wp-block-navigation-item__content { padding-block: 0.2rem; }
  .merr-inner-hero { padding-block: 3.25rem 3.75rem; }
  .merr-inner-hero::after { right: -145px; bottom: -145px; }
  .merr-inner-hero .merr-breadcrumbs { margin-bottom: 2.25rem; font-size: 0.72rem; }
  .merr-inner-hero .wp-block-post-title,
  .merr-inner-hero .wp-block-query-title,
  .merr-inner-hero .merr-hero-title { font-size: clamp(2.55rem, 12vw, 3.9rem); line-height: 1; }
  .merr-content-shell,
  .merr-archive-shell { padding-block: 3.75rem; }
  .merr-content-shell,
  .merr-archive-shell { padding-inline: 1.25rem; }
  .merr-prose { font-size: 1rem; line-height: 1.72; }
  .merr-prose > p.has-large-font-size:first-child { margin-bottom: 3rem; }
  .merr-prose h2 { margin-top: 3.75rem; }
  .merr-archive-shell .wp-block-post-template { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root { --cs-wide: calc(100% - 28px); }
  .cs-actions { align-items: stretch; flex-direction: column; }
  .cs-actions .cs-button { width: 100%; box-sizing: border-box; }
  .cs-actions .cs-text-link { padding-block: 0.45rem; }
  .cs-proof strong { font-size: 1.25rem; }
  .cs-hero__inner { padding-top: 1.75rem; }
  .cs-proof p { padding: 0.7rem 0.6rem; }
  .cs-proof p:nth-child(-n+2) { grid-template-columns: 32px minmax(0, 1fr); column-gap: 0.55rem; }
  .cs-proof p:nth-child(n+3) { min-height: 72px; padding-inline: 0.35rem; }
  .cs-proof p:nth-child(n+3) .cs-proof-mark { transform: scale(0.78); }
  .cs-proof p:nth-child(n+3) > span:last-child { font-size: 0.55rem; line-height: 1.25; }
  .cs-sector-links { grid-template-columns: 1fr; }
  .cs-sector-links a { min-height: 92px; border: 0; border-bottom: 1px solid var(--cs-line); }
  .cs-sector-strip { grid-template-columns: 1fr; }
  .cs-sector-strip > .cs-eyebrow { min-height: 64px; padding-inline: 1rem; }
  .cs-sector-strip > a { min-height: 78px; padding: 0.9rem 1rem; border-left: 0; border-top: 1px solid var(--cs-line); }
  .cs-sector-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .cs-featured-story { padding: 1.5rem 1rem; gap: 0.9rem; }
  .merr-footer > .wp-block-columns { grid-template-columns: 1fr 1fr; }
  .merr-footer > .wp-block-columns > .wp-block-column:last-child { grid-column: 1 / -1; }
}

/* Customer support remains quick to find without competing with the primary sales CTA. */
.merr-header .merr-customer-login > a {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--cs-line);
  border-radius: 999px;
  white-space: nowrap;
}

.merr-header .merr-customer-login > a:hover {
  border-color: var(--cs-blue);
  color: var(--cs-blue);
}

@media (max-width: 1180px) {
  .merr-header .wp-block-navigation__responsive-container.is-menu-open .merr-customer-login {
    margin-top: 1rem;
    border-bottom: 0 !important;
  }

  .merr-header .wp-block-navigation__responsive-container.is-menu-open .merr-customer-login > a {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center !important;
    padding: 0.85rem 1.25rem;
    border: 1px solid var(--cs-blue) !important;
    border-radius: 4px !important;
    background: var(--cs-blue) !important;
    color: #fff !important;
    text-align: center;
  }
}

.merr-support-portal {
  margin-block: 2rem 3rem;
  overflow: hidden;
  border: 1px solid var(--cs-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--merr-shadow-sm);
}

.merr-support-portal__intro { padding: clamp(1.5rem, 4vw, 2.75rem); }
.merr-support-portal__intro > p:first-child { max-width: 720px; font-size: 1.08rem; }
.merr-support-portal__hint { margin-bottom: 0; color: var(--cs-muted); font-size: 0.875rem; }
.merr-support-portal__embed { border-top: 1px solid var(--cs-line); }
.merr-support-portal__embed summary { padding: 1.15rem clamp(1.5rem, 4vw, 2.75rem); color: var(--cs-navy); cursor: pointer; font-weight: 800; }
.merr-support-portal__embed iframe { display: block; width: 100%; min-height: 650px; border: 0; border-top: 1px solid var(--cs-line); }
.merr-support-portal__embed > p { padding-inline: clamp(1.5rem, 4vw, 2.75rem); }
