/* ==========================================================================
   ZG Banner — one banner system for the whole site
   --------------------------------------------------------------------------
   Two variants of the same skeleton:

     .zgb--dark   the product showcase: deep blue, warm orange and red
                  accents, the equipment standing on lit podiums
     .zgb--light  the same layout on white, for the inner pages

   Both carry the same parts: an eyebrow chip, a three line headline in
   mixed colours, a line of text, a row of figures with icons, a button
   bar, the product lineup, a corner badge and a quote tab on the edge.

   The site does not use border-box, so every box here says so.
   ========================================================================== */

/* The banner runs the full width of the window, not the width of the
   page column. The page column is centred, so the banner is pulled back
   by half the difference between the column and the window. */
.zgb {
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100vw;
  /* The banner sits inside the page column, which is sometimes a flex
     row. Without this the column would squeeze the banner back to its
     own width and it would stop reaching the edges of the window. */
  flex-shrink: 0;
  margin-left: calc(50% - 50vw);
  padding: 0;
  font-family: "Poppins", "Open Sans", sans-serif;
}
/* While the banner is on the page the window must not scroll sideways -
   100vw is the window PLUS the scrollbar, so the banner is a few pixels
   wider than the visible area. */
html.zgb-html { overflow-x: hidden; }

/* Astra caps every block of a page that is laid out in blocks to the
   width of the reading column, which would pull the banner back in
   from the edge of the window. The banner is not a block of the page -
   it is the page's own opening - so it keeps the full width. */
.entry-content[data-ast-blocks-layout] > .zgb { max-width: none; }
.zgb *, .zgb *::before, .zgb *::after { box-sizing: border-box; }

/* ---------------------------------------------------------------- palette
   Taken from the company logo: a royal blue and a lime green. Everything
   the banner says in colour comes from these two.
   ------------------------------------------------------------------------ */
.zgb {
  --zg-blue: #003ccc;
  --zg-blue-d: #001f6b;
  --zg-blue-l: #4d8cff;
  --zg-lime: #6cc00c;
  --zg-lime-l: #8fe03a;
  --zg-ink: #0c1b33;
  --zg-nav: #00081c;
}

/* ---------------------------------------------------------- dark variant */
.zgb--dark {
  color: #fff;
  background:
    radial-gradient(115% 85% at 92% 112%, rgba(108, 192, 12, .15) 0%, rgba(108, 192, 12, 0) 52%),
    radial-gradient(90% 80% at 12% -10%, rgba(0, 60, 204, .46) 0%, rgba(0, 60, 204, 0) 58%),
    linear-gradient(170deg, #00081c 0%, #00102f 46%, #00081c 100%);
}
/* the light streaks behind the copy */
.zgb--dark .zgb-bg::before,
.zgb--dark .zgb-bg::after {
  content: "";
  position: absolute;
  top: -30%;
  width: 46%;
  height: 170%;
  transform: rotate(14deg);
  background: linear-gradient(90deg, rgba(77, 140, 255, 0), rgba(77, 140, 255, .16), rgba(77, 140, 255, 0));
  filter: blur(6px);
}
.zgb--dark .zgb-bg::before { right: 26%; }
.zgb--dark .zgb-bg::after { right: 8%; width: 24%; background: linear-gradient(90deg, rgba(108, 192, 12, 0), rgba(108, 192, 12, .22), rgba(108, 192, 12, 0)); }
.zgb-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* a fine grid, barely there */
.zgb-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(120% 90% at 70% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 40%, #000 0%, transparent 72%);
}

/* --------------------------------------------------------- light variant */
.zgb--light {
  color: var(--zg-ink);
  background:
    radial-gradient(80% 110% at 106% 46%, rgba(108, 192, 12, .085) 0%, rgba(108, 192, 12, 0) 56%),
    radial-gradient(70% 110% at -6% 20%, rgba(0, 60, 204, .08) 0%, rgba(0, 60, 204, 0) 62%),
    linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
}
.zgb--light .zgb-grid {
  background-image:
    linear-gradient(rgba(11, 61, 100, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 61, 100, .05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(110% 90% at 20% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(110% 90% at 20% 30%, #000 0%, transparent 70%);
}
/* the tinted block behind the corner badge */
.zgb--light .zgb-corner-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 60, 204, .07) 0%, rgba(108, 192, 12, .09) 100%);
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

/* --------------------------------------------------------------- the grid */
.zgb-in {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 45%) minmax(0, 55%);
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
  padding: 54px 34px 46px;
}
/* On the pages where the header floats over the content, the banner has
   to give the header its own room at the top, or the chip and the
   headline slide under the navigation. */
.zgb--under .zgb-in { padding-top: 118px; }

/* ------------------------------------------------------------- the copy */
.zgb-copy { position: relative; z-index: 3; }

.zgb-chip {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 4px;
  color: #0a2400;
  background: linear-gradient(90deg, var(--zg-lime), var(--zg-lime-l));
  margin-bottom: 16px;
}
.zgb--light .zgb-chip {
  color: #fff;
  background: linear-gradient(90deg, var(--zg-blue), #2f6dff);
}

.zgb-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.55vw, 50px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -1.3px;
  text-transform: uppercase;
}
.zgb-title span { display: block; }
.zgb-title .c1 { color: var(--zg-lime-l); }
.zgb-title .c2 { color: var(--zg-blue-l); }
.zgb-title .c3 { color: #fff; }
.zgb--light .zgb-title .c1 { color: var(--zg-blue); }
.zgb--light .zgb-title .c2 { color: var(--zg-blue-d); }
.zgb--light .zgb-title .c3 { color: var(--zg-ink); }
.zgb--dark .zgb-title { text-shadow: 0 10px 40px rgba(0, 0, 0, .45); }

.zgb-sub {
  margin: 0 0 22px;
  font-size: 14.6px;
  line-height: 1.65;
  max-width: 470px;
  color: rgba(255, 255, 255, .78);
}
.zgb--light .zgb-sub { color: #45596f; }

/* the row of figures with their icons */
.zgb-feats {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 12px;
}
.zgb-feats li {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 140px;
}
.zgb-fic {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 1px solid rgba(108, 192, 12, .5);
  background: rgba(108, 192, 12, .14);
  color: var(--zg-lime-l);
}
.zgb-fic svg { width: 17px; height: 17px; }
.zgb--light .zgb-fic { border-color: rgba(0, 60, 204, .2); background: rgba(0, 60, 204, .06); color: var(--zg-blue); }
.zgb-fl {
  font-size: 9.4px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.3;
  color: rgba(255, 255, 255, .86);
}
.zgb--light .zgb-fl { color: #2c435c; }

/* the button bar */
.zgb-cta {
  display: flex;
  align-items: stretch;
  max-width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
}
.zgb-b1, .zgb-b2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12.4px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 20px;
  white-space: nowrap;
  transition: background .2s, color .2s, transform .2s;
}
.zgb-b1 { background: var(--zg-blue); color: #fff; flex: 1 1 auto; }
.zgb-b1:hover { background: #1a55ff; color: #fff; }
.zgb-b2 { background: rgba(6, 14, 32, .85); color: #fff; }
.zgb--light .zgb-b2 { background: var(--zg-ink); }
.zgb-b2:hover { background: var(--zg-blue-d); color: #fff; }
.zgb-b1 svg, .zgb-b2 svg { width: 16px; height: 16px; }

/* ------------------------------------------------- the product lineup */
.zgb-stage {
  position: relative;
  align-self: stretch;
  min-height: 470px;
  /* the lineup is tilted and dragged by zg-banner.js */
  transform-style: preserve-3d;
  transition: transform .18s ease-out;
  will-change: transform;
  cursor: grab;
  touch-action: pan-y;
}
.zgb-stage.is-dragging { cursor: grabbing; transition: none; }
/* the name of the machine, under it, on hover */
.zgb-item figcaption {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translate(-50%, 6px);
  white-space: nowrap;
  font-size: 10.4px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.zgb--dark .zgb-item figcaption {
  color: #eaf7d8;
  background: rgba(0, 8, 24, .82);
  border: 1px solid rgba(108, 192, 12, .45);
}
.zgb--light .zgb-item figcaption {
  color: #fff;
  background: rgba(0, 31, 107, .9);
  border: 1px solid rgba(0, 60, 204, .4);
}
.zgb-item:hover figcaption,
.zgb-item:focus-within figcaption {
  opacity: 1;
  transform: translate(-50%, 0);
}
.zgb-item {
  position: absolute;
  margin: 0;
  left: var(--x);
  bottom: var(--y);
  width: var(--w);
  z-index: var(--z, 2);
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .55));
  /* zg-banner.js writes --drift as the page is scrolled */
  transform: translateY(var(--drift, 0px));
}
.zgb-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.zgb-item:hover { z-index: 9; }
.zgb-item:hover img { transform: translateY(-10px) scale(1.05); }
/* the podium the equipment stands on */
.zgb-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 124%;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(108, 192, 12, .5) 0%, rgba(108, 192, 12, .11) 62%, rgba(108, 192, 12, 0) 100%);
  box-shadow: 0 0 24px rgba(108, 192, 12, .28);
}
.zgb--light .zgb-item::after {
  background: radial-gradient(closest-side, rgba(0, 60, 204, .22) 0%, rgba(0, 60, 204, .05) 64%, rgba(0, 60, 204, 0) 100%);
  box-shadow: 0 0 18px rgba(0, 60, 204, .16);
}
.zgb--light .zgb-item { filter: drop-shadow(0 18px 22px rgba(0, 31, 107, .18)); }

/* the lit floor under the whole lineup */
.zgb-floor {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -14%;
  height: 46%;
  z-index: 1;
  background: radial-gradient(60% 100% at 50% 100%, rgba(108, 192, 12, .15) 0%, rgba(108, 192, 12, 0) 70%);
  pointer-events: none;
}
.zgb--light .zgb-floor { background: radial-gradient(60% 100% at 50% 100%, rgba(0, 60, 204, .10) 0%, rgba(0, 60, 204, 0) 70%); }

/* ------------------------------------------------------ corner badge */
.zgb-corner {
  position: absolute;
  right: 22px;
  top: 22px;
  z-index: 8;
  width: 176px;
  padding: 16px 14px 15px;
  text-align: center;
  color: #fff;
  background: linear-gradient(140deg, var(--zg-lime) 0%, #4e9000 100%);
  color: #0a2400;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(108, 192, 12, .3);
}
.zgb--light .zgb-corner {
  background: linear-gradient(140deg, var(--zg-blue) 0%, var(--zg-blue-d) 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 60, 204, .28);
}
.zgb-corner b {
  display: block;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 6px;
}
.zgb-corner span {
  display: block;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.5px;
}
.zgb-corner em {
  display: block;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .3);
}
.zgb--dark .zgb-corner em { border-top-color: rgba(10, 36, 0, .22); }

/* --------------------------------------------------------- the quote tab */
.zgb-tab {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  writing-mode: vertical-rl;
  padding: 20px 13px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, var(--zg-blue), var(--zg-blue-d));
  border-radius: 6px 0 0 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  transition: background .2s, padding .2s;
}
.zgb-tab:hover { background: linear-gradient(180deg, var(--zg-lime), #4e9000); color: #0a2400; padding-left: 18px; }
.zgb-tab svg { width: 15px; height: 15px; transform: rotate(90deg); }

/* ------------------------------------------------------------ the ribbon */
.zgb-note {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, .26);
  padding: 8px 20px;
  pointer-events: none;
}
.zgb--light .zgb-note { color: rgba(11, 61, 100, .3); }

/* ==========================================================================
   The old opening band
   --------------------------------------------------------------------------
   Eleven pages still carry the band they were built with: a dark card with
   the page title, an eyebrow and a paragraph - the same job the banner now
   does. It is hidden, so the page does not open twice.

   Every rule is scoped to one page id (WordPress writes page-id-NNNN on the
   body), so no other page on the site is touched.
   ========================================================================== */
.page-id-2383 .zgx-head,                         /* Our Products        */
.page-id-2907 .zgt-hero,                         /* Sizing Tools        */
.page-id-20   .zg-contact-wrapper > .zg-contact-hero,   /* Contact     */
.page-id-2494 .certification-wrapper > .hero-section,   /* Certification*/
.page-id-2225 .gallery-module > .gallery-hero-header,   /* Gallery     */
.page-id-2293 .container > .faq-header,                 /* FAQs        */
.page-id-2963 .zg > .zg-band:first-child,        /* China               */
.page-id-2593 .zg > .zg-band:first-child,        /* Blog                */
.page-id-2623 .zg > .zg-band:first-child,        /* Top Search          */
.page-id-2625 .zg > .zg-band:first-child,        /* Global Service      */
.page-id-2627 .zg > .zg-band:first-child {       /* Applications        */
  display: none !important;
}

/* -------------------------------------------------------------- narrower */
@media (max-width: 1180px) {
  .zgb-in { grid-template-columns: minmax(0, 48%) minmax(0, 52%); padding: 40px 24px 36px; }
  .zgb--under .zgb-in { padding-top: 104px; }
  .zgb-corner { width: 144px; padding: 13px 11px; right: 12px; top: 12px; }
  .zgb-corner span { font-size: 19px; }
  .zgb-stage { min-height: 370px; }
}
@media (max-width: 860px) {
  .zgb-in {
    grid-template-columns: 1fr;
    padding: 30px 18px 26px;
  }
  .zgb--under .zgb-in { padding-top: 94px; }
  .zgb-title { font-size: clamp(27px, 7.4vw, 42px); letter-spacing: -1px; }
  .zgb-sub { font-size: 13.8px; margin-bottom: 18px; }
  .zgb-feats { gap: 8px 16px; margin-bottom: 20px; }
  .zgb-feats li { max-width: 148px; }
  .zgb-fic { width: 32px; height: 32px; }
  .zgb-fic svg { width: 16px; height: 16px; }
  .zgb-fl { font-size: 9.6px; }
  .zgb-b1, .zgb-b2 { padding: 12px 11px; font-size: 10.4px; letter-spacing: .06em; gap: 7px; }
  .zgb-b1 svg, .zgb-b2 svg { width: 14px; height: 14px; }
  .zgb-stage {
    min-height: 0;
    height: 235px;
    margin-top: 16px;
  }
  .zgb-item { width: calc(var(--w) * 0.84); }
  .zgb-corner { display: none; }
  .zgb-tab {
    top: auto;
    bottom: 0;
    right: 0;
    transform: none;
    writing-mode: horizontal-tb;
    border-radius: 6px 0 0 0;
    padding: 11px 16px;
    gap: 8px;
  }
  .zgb-tab svg { transform: none; }
  .zgb-note { display: none; }
}

/* ==========================================================================
   .zgb--home  —  the banner the home page opens with
   --------------------------------------------------------------------------
   The dark showcase is gone. The home page now opens on paper: white through
   to pale blue, a blueprint grid on the left, the headline in the logo blue,
   and the equipment standing on a soft diagonal of light on the right.

   Nothing here is a hard shape. The diagonal is a gradient with a wide
   transition, so it never reads as a wedge cut out of the banner, and there
   is no border anywhere near the top edge.

   What moves:
     * a soft light follows the pointer across the whole banner
       (--zgx / --zgy, written by zg-banner.js);
     * the three headline lines rise one after another as the page paints;
     * each machine slides against the pointer by its own depth (--p), so the
       lineup has real parallax and not just a tilt;
     * the lineup still tilts, drags and drifts as it does on every page;
     * the primary button has a slow sheen, and the figures light up on hover.
   ========================================================================== */

.zgb--home {
  color: var(--zg-ink);
  background:
    radial-gradient(60% 88% at 4% -16%, rgba(0, 60, 204, .09) 0%, rgba(0, 60, 204, 0) 62%),
    radial-gradient(46% 72% at 56% 118%, rgba(108, 192, 12, .10) 0%, rgba(108, 192, 12, 0) 66%),
    linear-gradient(180deg, #ffffff 0%, #f6faff 46%, #e8f1fc 100%);
}

/* the blueprint grid, only under the words */
.zgb--home .zgb-grid {
  background-image:
    linear-gradient(rgba(0, 60, 204, .052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 60, 204, .052) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(94% 104% at 10% 36%, #000 0%, transparent 64%);
  -webkit-mask-image: radial-gradient(94% 104% at 10% 36%, #000 0%, transparent 64%);
}

/* the light that follows the pointer */
.zgb--home .zgb-spot {
  position: absolute;
  left: var(--zgx, 30%);
  top: var(--zgy, 36%);
  width: 780px;
  height: 780px;
  margin: -390px 0 0 -390px;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(0, 60, 204, .11) 0%, rgba(0, 60, 204, .045) 46%, rgba(0, 60, 204, 0) 100%);
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
}
.zgb--home.is-live .zgb-spot { opacity: 1; }

/* the diagonal of light behind the equipment */
.zgb--home .zgb-slab {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(99deg,
    rgba(255, 255, 255, 0) 16%,
    rgba(255, 255, 255, .30) 58%,
    rgba(255, 255, 255, .74) 100%);
}
.zgb--home .zgb-slab::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -20%;
  width: 66%;
  height: 78%;
  background: radial-gradient(closest-side, rgba(0, 60, 204, .085), rgba(0, 60, 204, 0) 72%);
  filter: blur(4px);
}

/* ------------------------------------------------------------------ layout */
.zgb--home .zgb-in {
  grid-template-columns: minmax(0, 43%) minmax(0, 57%);
  max-width: 1560px;
  padding: 58px 34px 48px;
  gap: 0 22px;
}

/* -------------------------------------------------------------------- copy */
.zgb--home .zgb-chip {
  color: #fff;
  background: var(--zg-blue);
  border-radius: 4px;
  padding: 8px 15px;
  letter-spacing: .15em;
  box-shadow: 0 10px 22px rgba(0, 60, 204, .24);
}

.zgb--home .zgb-title {
  font-size: clamp(30px, 3.82vw, 55px);
  line-height: 1.05;
  letter-spacing: -1.6px;
  margin-bottom: 18px;
}
.zgb--home .zgb-title .c1 { color: var(--zg-blue); }
.zgb--home .zgb-title .c2 { color: var(--zg-blue); }
.zgb--home .zgb-title .c3 { color: #08192c; }

.zgb--home .zgb-sub {
  color: #4b5f76;
  max-width: 490px;
  font-size: 14.8px;
  line-height: 1.66;
  margin-bottom: 24px;
}

/* the figures: two across, the number in ink and the rest in blue grey */
.zgb--home .zgb-feats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 22px;
  max-width: 492px;
  margin-bottom: 28px;
}
.zgb--home .zgb-feats li {
  max-width: none;
  gap: 10px;
  align-items: flex-start;
}
.zgb--home .zgb-fic {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  border: 1px solid rgba(0, 60, 204, .16);
  background: #fff;
  color: var(--zg-blue);
  box-shadow: 0 7px 16px rgba(0, 60, 204, .11);
  transition: background .22s, color .22s, transform .22s, box-shadow .22s, border-color .22s;
}
.zgb--home .zgb-fic svg { width: 18px; height: 18px; }
.zgb--home .zgb-feats li:hover .zgb-fic {
  background: var(--zg-blue);
  border-color: var(--zg-blue);
  color: #fff;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 24px rgba(0, 60, 204, .32);
}
.zgb--home .zgb-fl {
  color: #6b7d92;
  font-size: 10.3px;
  letter-spacing: .05em;
  line-height: 1.38;
  text-transform: uppercase;
  padding-top: 2px;
}
.zgb--home .zgb-fl b {
  display: block;
  color: #0a1a2e;
  font-size: 11.6px;
  font-weight: 900;
  letter-spacing: .02em;
  margin-bottom: 1px;
}

/* ------------------------------------------------------------- the buttons */
.zgb--home .zgb-cta {
  max-width: 494px;
  border-radius: 6px;
  box-shadow: 0 22px 40px rgba(0, 31, 107, .2);
}
.zgb--home .zgb-b1,
.zgb--home .zgb-b2 {
  padding: 18px 22px;
  font-size: 12.6px;
  letter-spacing: .09em;
}
.zgb--home .zgb-b1 {
  background: linear-gradient(180deg, #1966ff 0%, #0a4ad6 100%);
  position: relative;
  overflow: hidden;
}
.zgb--home .zgb-b2 { background: #0b1a2d; }
.zgb--home .zgb-b1:hover { background: linear-gradient(180deg, #2f7cff 0%, #1055e6 100%); }
.zgb--home .zgb-b2:hover { background: #16283f; }
/* a slow sheen across the primary action */
.zgb--home .zgb-b1::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .38), rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
  transition: left .7s cubic-bezier(.2, .7, .3, 1);
}
.zgb--home .zgb-b1:hover::after { left: 125%; }
.zgb--home .zgb-b2 svg { transition: transform .25s; }
.zgb--home .zgb-b2:hover svg { transform: translateX(4px); }

/* -------------------------------------------------------------- the lineup */
.zgb--home .zgb-stage {
  min-height: 520px;
  align-self: center;
}
.zgb--home .zgb-item {
  filter: drop-shadow(0 16px 20px rgba(13, 40, 90, .17));
  /* --mx / --my come from the pointer, --p is the depth of this machine */
  transform:
    translate3d(calc(var(--mx, 0px) * var(--p, 1)), calc(var(--my, 0px) * var(--p, 1)), 0)
    translateY(var(--drift, 0px));
  transition: transform .12s linear;
}
.zgb--home .zgb-item::after {
  background: radial-gradient(closest-side,
    rgba(0, 60, 204, .17) 0%, rgba(0, 60, 204, .04) 66%, rgba(0, 60, 204, 0) 100%);
  box-shadow: none;
}
.zgb--home .zgb-floor {
  background: radial-gradient(58% 92% at 50% 100%,
    rgba(0, 60, 204, .09) 0%, rgba(0, 60, 204, 0) 72%);
}
.zgb--home .zgb-item figcaption {
  color: #fff;
  background: rgba(8, 24, 44, .93);
  border: 1px solid rgba(0, 60, 204, .38);
  box-shadow: 0 10px 22px rgba(8, 24, 44, .22);
}

/* ---------------------------------------------------------- corner + tab */
.zgb--home .zgb-corner {
  right: 26px;
  top: 26px;
  width: 196px;
  padding: 18px 16px 15px;
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(158deg, #17479b 0%, #0a1a2e 100%);
  box-shadow: 0 24px 46px rgba(10, 26, 46, .3);
}
.zgb--home .zgb-corner b {
  font-size: 10.4px;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 9px;
}
.zgb--home .zgb-corner span {
  font-size: 24px;
  line-height: 1.06;
}
.zgb--home .zgb-corner em {
  font-size: 12px;
  letter-spacing: .26em;
  color: rgba(255, 255, 255, .9);
  margin-top: 10px;
  padding-top: 10px;
}
.zgb--home .zgb-tab {
  background: #0b1a2d;
  color: #fff;
  box-shadow: -8px 0 26px rgba(10, 26, 46, .2);
}
.zgb--home .zgb-tab:hover { background: var(--zg-blue); color: #fff; }

/* --------------------------------------------------------------- the rise */
@media (prefers-reduced-motion: no-preference) {
  .zgb--home .zgb-title span {
    animation: zgbRise .78s cubic-bezier(.19, .82, .28, 1) both;
    animation-delay: calc(var(--i, 0) * 95ms + 40ms);
  }
  .zgb--home .zgb-chip {
    animation: zgbFade .6s ease both;
  }
  @keyframes zgbRise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes zgbFade {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ------------------------------------------------------------------ narrow */
@media (max-width: 1240px) {
  .zgb--home .zgb-in { grid-template-columns: minmax(0, 45%) minmax(0, 55%); padding: 46px 26px 40px; }
  .zgb--home .zgb-stage { min-height: 450px; }
  .zgb--home .zgb-sub { font-size: 14.2px; }
  .zgb--home .zgb-b1, .zgb--home .zgb-b2 { padding: 15px 16px; font-size: 11.6px; }
  .zgb--home .zgb-corner { width: 176px; right: 20px; top: 20px; }
  .zgb--home .zgb-corner span { font-size: 21px; }
}

/* still two columns, just tighter - the copy needs its 400px and the
   lineup needs the rest */
@media (max-width: 1024px) {
  .zgb--home .zgb-in { grid-template-columns: minmax(0, 46%) minmax(0, 54%); padding: 42px 22px 36px; gap: 0 16px; }
  .zgb--home .zgb-title { font-size: clamp(28px, 3.7vw, 40px); letter-spacing: -1.2px; }
  .zgb--home .zgb-sub { font-size: 13.6px; max-width: 100%; }
  .zgb--home .zgb-feats { gap: 12px 14px; max-width: 100%; }
  .zgb--home .zgb-fl { font-size: 9.6px; }
  .zgb--home .zgb-fl b { font-size: 10.6px; }
  .zgb--home .zgb-cta { max-width: 100%; }
  .zgb--home .zgb-b1, .zgb--home .zgb-b2 { padding: 14px 12px; font-size: 10.6px; gap: 7px; letter-spacing: .06em; }
  .zgb--home .zgb-b1 svg, .zgb--home .zgb-b2 svg { width: 14px; height: 14px; }
  .zgb--home .zgb-stage { min-height: 420px; }
  .zgb--home .zgb-corner { width: 150px; right: 14px; top: 14px; padding: 14px 12px 12px; }
  .zgb--home .zgb-corner b { font-size: 9px; margin-bottom: 6px; }
  .zgb--home .zgb-corner span { font-size: 18px; }
  .zgb--home .zgb-corner em { font-size: 10px; margin-top: 7px; padding-top: 7px; }
}

/* ------------------------------------------------------------------ stacked
   Below 960 the copy takes the full width and the lineup becomes a
   filmstrip: the machines stand in a row on a shared floor, in their own
   proportions, and wrap when they run out of width. Absolute percentages
   cannot work once the stage is wide and short - they landed on top of
   each other.
   ------------------------------------------------------------------------ */
@media (max-width: 960px) {
  .zgb--home .zgb-in { grid-template-columns: 1fr; padding: 40px 22px 34px; }
  .zgb--home .zgb-title { font-size: clamp(29px, 5.6vw, 44px); }
  .zgb--home .zgb-sub { max-width: none; }
  .zgb--home .zgb-feats { max-width: 560px; gap: 14px 30px; }
  .zgb--home .zgb-cta { max-width: 560px; }
  .zgb--home .zgb-b1, .zgb--home .zgb-b2 { padding: 15px 18px; font-size: 11.8px; }

  .zgb--home .zgb-stage {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 10px 16px;
    min-height: 0;
    height: auto;
    margin-top: 26px;
    transform: none;
    cursor: default;
    touch-action: auto;
  }
  .zgb--home .zgb-item {
    position: static;
    width: auto;
    transform: none;
    filter: drop-shadow(0 10px 14px rgba(13, 40, 90, .14));
  }
  .zgb--home .zgb-item img { height: 118px; width: auto; }
  .zgb--home .zgb-item::after,
  .zgb--home .zgb-floor { display: none; }
  .zgb--home .zgb-item figcaption { bottom: -26px; }

  /* the quote tab drops to the corner so it cannot cut the buttons */
  .zgb--home .zgb-tab {
    top: auto;
    bottom: 0;
    right: 0;
    transform: none;
    writing-mode: horizontal-tb;
    border-radius: 6px 0 0 0;
    padding: 11px 16px;
    gap: 8px;
    font-size: 11px;
  }
  .zgb--home .zgb-tab svg { transform: none; width: 14px; height: 14px; }
}

@media (max-width: 560px) {
  .zgb--home .zgb-in { padding: 26px 16px 24px; }
  .zgb--home .zgb-title { font-size: clamp(27px, 9vw, 38px); letter-spacing: -1px; }
  .zgb--home .zgb-sub { font-size: 13.6px; margin-bottom: 18px; }
  .zgb--home .zgb-feats { gap: 12px 14px; margin-bottom: 20px; }
  .zgb--home .zgb-fic { width: 33px; height: 33px; }
  .zgb--home .zgb-fic svg { width: 16px; height: 16px; }
  .zgb--home .zgb-fl { font-size: 9.4px; }
  .zgb--home .zgb-fl b { font-size: 10.4px; }
  .zgb--home .zgb-b1, .zgb--home .zgb-b2 { padding: 13px 10px; font-size: 10.2px; gap: 7px; letter-spacing: .05em; }
  .zgb--home .zgb-stage { margin-top: 20px; gap: 8px 12px; }
  .zgb--home .zgb-item img { height: 96px; }
  /* 4.13 : 1 is wider than a phone - it would take a row to itself */
  .zgb--home .zgb-item:nth-child(6) { display: none; }
  .zgb--home .zgb-item figcaption { display: none; }
}

/* ==========================================================================
   The header on a banner page, in the narrow band before it collapses
   --------------------------------------------------------------------------
   Between 922px and 1180px Astra still shows the desktop header, and there
   is not quite enough room for the menu and the WhatsApp button: the last
   menu item drops to a second row and the button breaks its word. Half a
   line of CSS keeps it on one row. This only touches pages that carry a
   banner - the body class is set by the suite.
   ========================================================================== */
@media (min-width: 922px) and (max-width: 1180px) {
  .zgb-page .main-header-menu { flex-wrap: nowrap; }
  .zgb-page .main-header-menu > .menu-item > .menu-link {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 13.4px;
    white-space: nowrap;
  }
  .zgb-page .ast-header-button-1 .ast-custom-button {
    font-size: 12px;
    padding: 9px 16px;
    line-height: 1.2;
    white-space: nowrap;
  }
}
