/*
 * Home page (front-page.php, template-parts/home/*). Ported from the approved mock
 * docs/design/site-direction/index.html, view #home (.s-hero without its Converge lines, .s-fus, .fig, .s-stats,
 * .s-sol-top, .s-index, .s-blog, .s-quotes, .s-val, .s-acc). Tokens only.
 * Rules sit under .gp-home so they outrank the Elementor kit (.elementor-kit-N a, h2)
 * while Elementor stays active for other pages.
 */

.gp-home {
  font-size: var(--gp-fs-body);
  line-height: var(--gp-lh-body);
  color: var(--gp-text);
  background: var(--gp-white);
}
.gp-home img { display: block; max-width: 100%; height: auto; }
.gp-home a { color: inherit; }
.gp-home .gp-btn { color: var(--gp-white); text-decoration: none; }
.gp-home .gp-btn--ghost { color: var(--gp-navy); }
.gp-home .gp-band--dk .gp-btn,
.gp-home .home-hero .gp-btn { color: var(--gp-ink); }
.gp-home .gp-h-xl, .gp-home .gp-h-l, .gp-home .gp-h-m { font-family: var(--gp-font); color: var(--gp-navy); }
.gp-home .gp-band--dk .gp-lt, .gp-home .home-hero .gp-lt { color: var(--gp-head-dk); }
.gp-home .gp-band--dk .gp-bd, .gp-home .home-hero .gp-bd { color: var(--gp-white); }
.gp-home p { margin: 0; }
.gp-home .gp-eyebrow { margin: 0 0 30px; }

/* ---------- Hero ---------- */

/*
 * The hero runs up under the header, and while the page is at the top the header is
 * transparent, so bar and hero read as one dark block. Once scrolled it is solid Dark
 * Blue, and it never has a bottom rule here. Opening Services keeps the bar as it is: the
 * menu's Dark Blue wipes down from the top of the bar through it and on into the menu, so
 * bar and menu are one block with no second shade (layout.css, option A). The mobile
 * drawer makes the bar solid.
 */
.home .site-header {
  border-bottom-color: transparent;
  transition: transform .3s var(--gp-ease), background-color .32s ease-out;
}
.home .site-header.is-at-top:not(.is-nav-open) { background-color: transparent; }
.gp-home .home-hero {
  /* Space above the headline: a little above true centre, so it reads as centred. */
  --gp-hero-top: 120px;
  margin-top: calc(-1 * var(--gp-header-h));
}

.gp-home .home-hero {
  position: relative;
  overflow: hidden;
  background: var(--gp-cover);
  color: var(--gp-text-dk);
}
/*
 * Background film (the theme's own video file) under a Dark Blue tint (the gradient at
 * high opacity). It fades in over 1.5s once playing. From 2.5s before the end the whole
 * film layer fades, over 2s, to the hero background, so the film never restarts.
 */
.gp-home .home-hero__film { position: absolute; inset: 0; overflow: hidden; pointer-events: none; transition: opacity 2s cubic-bezier(.4, 0, .2, 1); }
.gp-home .home-hero__film video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(.4, 0, .2, 1);
}
.gp-home .home-hero__film.is-playing video { opacity: 1; }
.gp-home .home-hero__film::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gp-cover);
  opacity: .86;
}
.gp-home .home-hero.is-ending .home-hero__film { opacity: 0; }

/* Dot grid, fading in towards the right. */
.gp-home .home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(var(--gp-dots-dk) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, black 100%);
  mask-image: linear-gradient(90deg, transparent 30%, black 100%);
  pointer-events: none;
}
.gp-home .home-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: calc(660px + var(--gp-header-h));
  padding-top: calc(var(--gp-hero-top) + var(--gp-header-h));
}
.gp-home .home-hero__main { margin-bottom: 84px; }
.gp-home .home-hero__stand { max-width: 31ch; margin: 44px 0 0; color: var(--gp-text-dk); }

.gp-home .home-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.gp-home .home-mask > span { display: block; }
.gp-js .gp-home .home-mask > span { animation: gp-home-rise .7s var(--gp-ease) both; }
.gp-js .gp-home .home-mask:nth-child(2) > span { animation-delay: .09s; }
@keyframes gp-home-rise { from { transform: translateY(102%); } to { transform: none; } }

/* Jump links. */
.gp-home .home-jump {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: auto;
  border-top: 1px solid var(--gp-rule-dk);
}
.gp-home .home-jump a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gp-space-4);
  padding: 24px 28px 26px 0;
  border-right: 1px solid var(--gp-rule-dk);
  color: var(--gp-head-dk);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  transition: color var(--gp-dur-fast) ease-out;
}
.gp-home .home-jump a + a { padding-left: 28px; }
.gp-home .home-jump a:last-child { border-right: 0; }
.gp-home .home-jump a::after {
  content: '\2193';
  color: var(--gp-accent);
  font-size: 17px;
  transition: transform var(--gp-dur) var(--gp-ease);
}
.gp-home .home-jump a:hover { color: var(--gp-white); }
.gp-home .home-jump a:hover::after { transform: translateY(4px); }

/*
 * Desktop: the hero fills the window, with the three jump links along its foot as the
 * invitation to explore: larger labels, an arrow in a square, and
 * an orange line that draws across the top of a link on hover. On a short laptop window
 * the headline and spacing tighten so everything fits.
 */
@media (min-width: 961px) {
  .gp-home .home-hero__inner {
    min-height: max(560px, 100vh);
    min-height: max(560px, 100svh);
    padding-top: calc(clamp(52px, 10vh, var(--gp-hero-top)) + var(--gp-header-h));
  }
  .gp-home .home-hero__title { font-size: clamp(60px, 11vh, var(--gp-fs-xl)); }
  .gp-home .home-hero__stand { margin-top: clamp(22px, 4vh, 44px); }
  .gp-home .home-hero__main { margin-bottom: clamp(36px, 7vh, 84px); }

  /* The row runs 28px past the content edge on each side, so every link has the same
     padding inside its hover box while the first label stays in line with the headline. */
  .gp-home .home-jump { margin-inline: -28px; border-top-color: rgba(225, 241, 250, .28); }
  .gp-home .home-jump a {
    position: relative;
    padding: clamp(22px, 4vh, 34px) 28px clamp(24px, 4.4vh, 38px) 28px;
    color: var(--gp-white);
    font-size: clamp(16px, 1.3vw, 19px);
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: -.005em;
    transition: background-color var(--gp-dur) ease-out;
  }
  .gp-home .home-jump a + a { padding-left: 28px; }
  /* Orange line across the top of the link, drawn on hover or focus. */
  .gp-home .home-jump a::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gp-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--gp-ease);
    pointer-events: none;
  }
  .gp-home .home-jump a:hover::before,
  .gp-home .home-jump a:focus-visible::before { transform: scaleX(1); }
  .gp-home .home-jump a:hover { background-color: rgba(225, 241, 250, .05); }
  /* Arrow in a square, nudging downwards in turn. */
  .gp-home .home-jump a::after {
    content: '';
    flex: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(225, 241, 250, .35);
    /* The arrow is drawn, not a text character, so it sits exactly in the middle. */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23DF531C' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M8 2.5v10.5M3.5 8.5 8 13l4.5-4.5'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
    transition: border-color var(--gp-dur) ease-out, background-color var(--gp-dur) ease-out;
  }
  .gp-home .home-jump a:hover::after,
  .gp-home .home-jump a:focus-visible::after {
    border-color: var(--gp-accent);
    background-color: var(--gp-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23FFFFFF' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M8 2.5v10.5M3.5 8.5 8 13l4.5-4.5'/%3E%3C/svg%3E");
  }
}
@media (prefers-reduced-motion: reduce) {
  .gp-home .home-jump a::before { transition: none; }
}

/* ---------- Fusion Hub and the convergence figure ---------- */

/* Heading on one line, the figure, then the text (about two lines) left and the button right. */
.gp-home .home-fusion__h { margin-bottom: 48px; }
.gp-home .home-fusion__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-top: 48px;
}
.gp-home .home-fusion__row p { max-width: 68ch; margin: 0; font-size: 18px; line-height: 1.65; }
.gp-home .home-fusion__row .gp-btn { flex: none; }
/*
 * Desktop: the whole Fusion Hub section (heading, figure, text and button) fits one
 * window. Its spacing follows the window height, and on a short laptop window the figure
 * is capped in height (it then sits centred, a little narrower than the column).
 */
@media (min-width: 961px) {
  .gp-home .home-fusion { padding-block: clamp(32px, 6vh, var(--gp-band-y)); }
  .gp-home .home-fusion .home-fig svg { max-height: max(260px, calc(100vh - 430px)); max-height: max(260px, calc(100svh - 430px)); }
  .gp-home .home-fusion__h { margin-bottom: clamp(20px, 4vh, 48px); font-size: min(var(--gp-fs-l), 3.6vw); white-space: nowrap; }
  .gp-home .home-fusion .home-fig { padding-block: clamp(16px, 3vh, 40px); }
  .gp-home .home-fusion .home-fig svg { max-height: max(280px, calc(100vh - 390px)); max-height: max(280px, calc(100svh - 390px)); margin-inline: auto; }
  .gp-home .home-fusion__row { margin-top: clamp(20px, 4vh, 48px); }
}

.gp-home .home-fig {
  margin: 0;
  padding: 40px 0;
  border-top: 1px solid var(--gp-navy);
  border-bottom: 1px solid var(--gp-rule-lt);
}
.gp-home .home-fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.gp-home .home-fig text { font-family: var(--gp-font); }
.gp-home .home-fig .t { font-size: 19px; font-weight: 600; fill: var(--gp-navy); }
.gp-home .home-fig .d { font-size: 14.5px; font-weight: 400; fill: var(--gp-text); }
.gp-home .home-fig .ln { fill: none; stroke: var(--gp-navy); stroke-width: 1; stroke-opacity: .5; stroke-linecap: square; }
.gp-home .home-fig .dot { fill: var(--gp-navy); }
.gp-home .home-fig .box { fill: var(--gp-white); stroke: none; }
.gp-home .home-fig .edge { fill: none; stroke: var(--gp-navy); stroke-width: 1; stroke-opacity: .5; stroke-linecap: square; }
.gp-home .home-fig .tick { fill: none; stroke: var(--gp-accent); stroke-width: 1.5; }
.gp-home .home-fig .wipe { transform-box: fill-box; transform-origin: left center; }


/* Pulses: a 16px orange dash at 160px/s along each whole route, one per route every 6s. */
.gp-home .home-fig__pulses path {
  fill: none;
  stroke: var(--gp-accent);
  stroke-width: 1.5;
  stroke-dasharray: 16px 960px;
  stroke-dashoffset: 16px;
  opacity: 0;
}
/*
 * One cycle is 3.8s with no waiting inside it: the three pulses leave the factors together
 * and meet at the spine (0 to 1.3s), a single pulse passes straight through Fusion Hub
 * (to 2.2s, quickly, as most of that run is hidden behind the box), then three fan out
 * together to the outcomes (to 3.4s). --len is each path's length.
 */
@media (prefers-reduced-motion: no-preference) {
  .gp-home .home-fig .home-fig__pulses path { opacity: 1; animation: 3.8s linear infinite both; }
  .gp-home .home-fig .home-fig__pulses .p-in { animation-name: gp-home-fig-in; }
  .gp-home .home-fig .home-fig__pulses .p-trunk { animation-name: gp-home-fig-trunk; }
  .gp-home .home-fig .home-fig__pulses .p-out { animation-name: gp-home-fig-out; }
  /* Held until the section lands (assets/js/screens.js), so the cycle begins at the left. */
  .gp-home .home-fig.is-wait .home-fig__pulses path { animation: none; opacity: 0; }
  /*
   * A middle way between "all there" and "draws itself in": every word, the box and the
   * logo are present on arrival, so the section can be read at once; only the connecting
   * lines trace through, quickly (0.8s in all), left to right, and the pulses follow.
   */
  .gp-home .home-fig .ln,
  .gp-home .home-fig .edge { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
  .gp-home .home-fig.is-wait .ln,
  .gp-home .home-fig.is-wait .edge { stroke-dashoffset: 1; }
  .gp-home .home-fig:not(.is-wait) .home-fig__in .ln { transition: stroke-dashoffset .3s cubic-bezier(.4, 0, .8, .8) 0s; }
  .gp-home .home-fig:not(.is-wait) .edge { transition: stroke-dashoffset .22s linear .3s; }
  .gp-home .home-fig:not(.is-wait) .home-fig__out .ln { transition: stroke-dashoffset .3s cubic-bezier(.1, .4, .4, 1) .5s; }
  .gp-home .home-fig:not(.is-wait) .home-fig__pulses path { animation-delay: .8s; }
  /* While the single pulse is passing through the box (hidden behind it), the logo swells
     very slightly and settles, so the way in and the way out read as one event. */
  .gp-home .home-fig__box image,
  .gp-home .home-fig__box text { transform-box: fill-box; transform-origin: center; }
  .gp-home .home-fig:not(.is-wait) .home-fig__box image,
  .gp-home .home-fig:not(.is-wait) .home-fig__box text { animation: gp-home-fig-beat 3.8s ease-in-out .8s infinite both; }
  /* The orange corner marks arrive with the box outline, not before it. */
  .gp-home .home-fig.is-wait .tick { opacity: 0; }
  .gp-home .home-fig:not(.is-wait) .tick { opacity: 1; transition: opacity .2s ease-out .5s; }
}
@keyframes gp-home-fig-beat {
  0%, 36%, 60%, 100% { transform: none; }
  47% { transform: scale(1.018); }
}
@keyframes gp-home-fig-in {
  0% { stroke-dashoffset: 16px; }
  34%, 100% { stroke-dashoffset: calc(var(--len) * -1px); }
}
@keyframes gp-home-fig-trunk {
  0%, 34% { stroke-dashoffset: 16px; }
  58%, 100% { stroke-dashoffset: calc(var(--len) * -1px); }
}
@keyframes gp-home-fig-out {
  0%, 58% { stroke-dashoffset: 16px; }
  90%, 100% { stroke-dashoffset: calc(var(--len) * -1px); }
}

/* ---------- Statistics ---------- */

.gp-home .home-stats__grid { display: grid; grid-template-columns: 1fr 1fr 340px; }
.gp-home .home-stat { padding: 0 44px 0 0; }
.gp-home .home-stat + .home-stat { padding-left: 44px; border-left: 1px solid var(--gp-rule-dk); }
.gp-home .home-stat__num {
  display: block;
  margin-bottom: 26px;
  color: var(--gp-white);
  font-weight: 600;
  font-size: 124px;
  line-height: 1;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.gp-home .home-stat__num i {
  margin-left: 6px;
  color: var(--gp-accent);
  font-style: normal;
  font-size: .5em;
  letter-spacing: 0;
  vertical-align: .62em;
}
.gp-home .home-stat p { max-width: 34ch; font-size: 16px; line-height: 1.65; }
.gp-home .home-impact {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 28px;
  padding-left: 44px;
  border-left: 1px solid var(--gp-rule-dk);
}
.gp-home .home-impact p { margin: 0; color: var(--gp-white); font-size: 20px; line-height: 1.4; }
/*
 * Wide screens: the three columns share two rows (figure, then text), so the impact line
 * ends level with the foot of the figures and its button starts level with the text
 * beneath them.
 */
@media (min-width: 1101px) {
  .gp-home .home-stats__grid { grid-template-rows: auto auto auto; row-gap: 22px; }
  .gp-home .home-stat,
  .gp-home .home-impact { display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: 0; row-gap: 22px; }
  .gp-home .home-stat__num { margin-bottom: 0; }
  .gp-home .home-stat p { margin: 0; align-self: start; }
  .gp-home .home-impact p { align-self: end; padding-bottom: 9px; }
  .gp-home .home-impact > div { grid-row: 3; align-self: start; padding-top: 6px; }
  .gp-home .home-stat p { grid-row: 3; }
}

/* ---------- Services index ---------- */

.gp-home .home-svc { scroll-margin-top: var(--gp-header-h); }
.gp-home .home-svc__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 540px;
  gap: 72px;
  align-items: start;
  margin-bottom: 72px;
}
.gp-home .home-svc__intro { padding-top: 44px; }
.gp-home .home-svc__intro p { margin: 0 0 16px; }
.gp-home .home-svc__intro .gp-btn { margin-top: 14px; }
.gp-home .home-svc__index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
.gp-home .home-svc__group-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gp-navy);
  font-weight: 500;
  font-size: var(--gp-fs-label);
  line-height: 1.7;
}
.gp-home .home-svc__group-h span {
  color: var(--gp-navy);
  font-weight: 500;
  font-size: var(--gp-fs-label);
  letter-spacing: var(--gp-track-label);
  text-transform: uppercase;
}
.gp-home .home-svc__group-h em {
  color: var(--gp-text);
  font-style: normal;
  font-weight: 500;
  font-size: var(--gp-fs-label);
  letter-spacing: .1em;
}
.gp-home .home-svc__row {
  position: relative;
  display: block;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--gp-rule-lt);
  text-decoration: none;
  transition: padding-left .25s var(--gp-ease), border-color var(--gp-dur-fast) ease-out;
}
.gp-home .home-svc__row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 33px;
  width: 0;
  height: 2px;
  background: var(--gp-accent);
  transition: width .25s var(--gp-ease);
}
.gp-home .home-svc__row:hover { padding-left: 22px; border-color: var(--gp-navy); }
.gp-home .home-svc__row:hover::before { width: 12px; }
.gp-home .home-svc__name {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 8px;
  color: var(--gp-navy);
  font-family: var(--gp-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.gp-home .home-svc__name small {
  color: var(--gp-text);
  font-weight: 500;
  font-size: var(--gp-fs-label-xs);
  letter-spacing: .16em;
  white-space: nowrap;
  transition: color var(--gp-dur-fast) ease-out;
}
.gp-home .home-svc__row:hover .home-svc__name small { color: var(--gp-navy); }
.gp-home .home-svc__row p { max-width: 36ch; color: var(--gp-text); font-size: 14.5px; line-height: 1.6; }

/* ---------- Blogs ---------- */

.gp-home .home-blogs__h { margin-bottom: 52px; }
.gp-home .home-blogs__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 72px; }
.gp-home .home-post { display: block; text-decoration: none; }
.gp-home .home-post__im { overflow: hidden; background: var(--gp-surface-lt); }
.gp-home .home-post__im img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform var(--gp-dur-slow) var(--gp-ease);
}
.gp-home .home-post:hover .home-post__im img { transform: scale(1.025); }
.gp-home .home-post__date {
  display: block;
  color: var(--gp-text);
  font-weight: 500;
  font-size: var(--gp-fs-label-sm);
  letter-spacing: var(--gp-track-btn);
  text-transform: uppercase;
}
.gp-home .home-post h3 { margin: 0; color: var(--gp-navy); font-family: var(--gp-font); font-weight: 600; text-wrap: balance; }
.gp-home .home-post p { margin: 0 0 16px; color: var(--gp-text); font-size: 15px; }
.gp-home .home-post__more {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--gp-rule-lt);
  color: var(--gp-navy);
  font-weight: 500;
  font-size: var(--gp-fs-label-sm);
  letter-spacing: var(--gp-track-btn);
  text-transform: uppercase;
  transition: border-color var(--gp-dur-fast) ease-out;
}
.gp-home .home-post:hover .home-post__more { border-color: var(--gp-accent); }
.gp-home .home-post--lead .home-post__date { margin: 24px 0 12px; }
.gp-home .home-post--lead h3 { margin: 0 0 14px; font-size: 30px; line-height: 1.18; letter-spacing: -.012em; }
.gp-home .home-blogs__side { display: flex; flex-direction: column; }
.gp-home .home-post--row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 192px;
  gap: 28px;
  margin-bottom: 32px;
  padding: 0 0 32px;
  border-bottom: 1px solid var(--gp-rule-lt);
}
.gp-home .home-post--row:first-child { padding-top: 32px; border-top: 1px solid var(--gp-navy); }
.gp-home .home-post--row h3 { margin: 10px 0; font-size: 19px; line-height: 1.3; }
.gp-home .home-post--row p { margin-bottom: 12px; font-size: 14px; }
.gp-home .home-post--row .home-post__im { align-self: start; }

/* ---------- Testimonials ---------- */

.gp-home .home-clients { scroll-margin-top: var(--gp-header-h); }
.gp-home .home-clients__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 580px;
  gap: 72px;
  align-items: end;
  margin-bottom: 68px;
}
.gp-home .home-clients__top p { font-size: 16px; }
.gp-home .home-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--gp-rule-dk);
  border: 1px solid var(--gp-rule-dk);
}
.gp-home .home-quote {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0;
  padding: 40px 44px 38px;
  background: var(--gp-ink);
  transition: background-color var(--gp-dur) ease-out;
}
.gp-home .home-quote:hover { background: var(--gp-surface-dk); }
.gp-home .home-quote blockquote { margin: 0; color: var(--gp-head-dk); font-size: 17px; line-height: 1.7; font-weight: 400; }
.gp-home .home-quote figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  color: var(--gp-text-dk);
  font-weight: 500;
  font-size: var(--gp-fs-label-sm);
  line-height: 1.6;
  letter-spacing: var(--gp-track-btn);
  text-transform: uppercase;
}
.gp-home .home-quote figcaption img { flex: none; width: 34px; height: 34px; opacity: .85; }

/* ---------- Social values and accreditations ---------- */

.gp-home .home-values__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 620px;
  gap: 72px;
  align-items: start;
}
.gp-home .home-values__grid .gp-lt { white-space: nowrap; }
.gp-home .home-values__grid p { max-width: 52ch; margin: 28px 0 0; }
.gp-home .home-acc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--gp-rule-lt);
  border: 1px solid var(--gp-rule-lt);
}
.gp-home .home-acc li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 132px;
  padding: 22px;
  background: var(--gp-white);
}
.gp-home .home-acc img { width: auto; height: auto; max-width: 100%; max-height: 84px; }

/* ---------- Reduced motion: everything shown in its final state ---------- */

@media (prefers-reduced-motion: reduce) {
  .gp-js .gp-home .home-mask > span { animation: none; }
  .gp-home .home-jump a::after,
  .gp-home .home-svc__row,
  .gp-home .home-svc__row::before,
  .gp-home .home-post__im img,
  .gp-home .home-quote { transition: none; }
  .gp-home .home-jump a:hover::after,
  .gp-home .home-post:hover .home-post__im img { transform: none; }
  .gp-home .home-svc__row:hover { padding-left: 0; }
  .gp-home .home-svc__row:hover::before { width: 0; }
  .gp-home .home-hero__film { display: none; }
}

/* ---------- Narrower screens: stack, never scroll sideways (phone pass is a later task) ---------- */

@media (max-width: 1100px) {
  .gp-home .home-svc__top,
  .gp-home .home-clients__top,
  .gp-home .home-values__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .gp-home .home-svc__intro { padding-top: 0; }
  .gp-home .home-stats__grid { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .gp-home .home-impact { grid-column: 1 / -1; padding-left: 0; padding-top: 40px; border-left: 0; border-top: 1px solid var(--gp-rule-dk); }
  .gp-home .home-stat__num { font-size: 96px; }
}
@media (max-width: 860px) {
  .gp-home .home-fusion__row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .gp-home .home-svc__index,
  .gp-home .home-blogs__grid,
  .gp-home .home-quotes { grid-template-columns: minmax(0, 1fr); }
  .gp-home .home-jump { grid-template-columns: minmax(0, 1fr); }
  .gp-home .home-jump a,
  .gp-home .home-jump a + a { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--gp-rule-dk); }
  .gp-home .home-hero__inner { min-height: 0; padding-top: calc(96px + var(--gp-header-h)); }
  .gp-home .home-hero__main { margin-bottom: 56px; }
}
@media (max-width: 720px) {
  .gp-home .home-stats__grid { grid-template-columns: minmax(0, 1fr); }
  .gp-home .home-stat,
  .gp-home .home-stat + .home-stat { padding: 0; border-left: 0; }
  .gp-home .home-stat__num { font-size: 72px; }
  .gp-home .home-post--row { grid-template-columns: minmax(0, 1fr); }
  .gp-home .home-quote { padding: 28px 24px; }
  .gp-home .home-acc li { height: 104px; padding: 16px; }
  .gp-home .home-values__grid .gp-lt { white-space: normal; }
}

/* ---------- Screen by screen (desktop windows at least 600px tall) ----------
 *
 * Each idea fills one window: hero, Fusion Hub, statistics, services (all twelve, in their three groups, beside the heading), blogs, testimonials (one at a time beside the heading) and
 * social values. The page moves one screen at a time (mandatory snap), and each screen's
 * content plays a short entrance as it arrives. Tabs and carousel are switched on by assets/js/screens.js; without it, on
 * phones and in short windows, everything is shown and the page scrolls normally.
 */
@media (min-width: 1101px) and (min-height: 600px) {
  /* Every section is exactly one window tall here, so the page moves a screen at a time:
     each scroll lands on the next screen, never part-way between two. */
  html:has(.gp-home) { scroll-snap-type: y mandatory; }
  html:has(.gp-home) .site-footer { scroll-snap-align: end; }

  .gp-home .home-hero,
  .gp-home .home-fusion,
  .gp-home .home-stats,
  .gp-home .home-svc,
  .gp-home .home-blogs,
  .gp-home .home-clients,
  .gp-home .home-values { scroll-snap-align: start; scroll-snap-stop: always; }

  .gp-home .home-fusion,
  .gp-home .home-stats,
  .gp-home .home-svc,
  .gp-home .home-blogs,
  .gp-home .home-clients,
  .gp-home .home-values {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    /* Room for the header bar, which returns over the top of the window on scrolling up. */
    padding-top: calc(var(--gp-header-h) + clamp(12px, 3vh, 44px));
    padding-bottom: clamp(20px, 5vh, 88px);
  }
  .gp-home .home-svc__group[hidden],
  .gp-home .home-quote[hidden] { display: none; }
  .gp-home .home-fusion > .gp-inner,
  .gp-home .home-stats > .gp-inner,
  .gp-home .home-svc > .gp-inner,
  .gp-home .home-blogs > .gp-inner,
  .gp-home .home-clients > .gp-inner,
  .gp-home .home-values > .gp-inner { flex: none; }

  /* Services: heading, introduction and quiz button left; tabs and the chosen group right. */

  /* Testimonials: heading and paragraph left; one quote at a time right. */
  .gp-home .home-clients > .gp-inner:has(.is-carousel) { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(56px, 7vw, 120px); align-items: center; }
  .gp-home .home-clients > .gp-inner:has(.is-carousel) .home-clients__top { display: block; margin-bottom: 0; }
  .gp-home .home-clients > .gp-inner:has(.is-carousel) .home-clients__top p { margin: clamp(20px, 4vh, 36px) 0 0; }
  .gp-home .home-quotes.is-carousel { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; min-height: min(440px, 62vh); padding-left: clamp(32px, 4vw, 64px); background: none; border: 0; border-left: 1px solid var(--gp-rule-dk); }
  .gp-home .is-carousel .home-quote { align-self: center; gap: clamp(20px, 3.4vh, 32px); padding: 0; background: none; }
  .gp-home .is-carousel .home-quote:not([hidden]) { animation: gp-tab-in .4s var(--gp-ease) both; }
  .gp-home .is-carousel .home-quote:hover { background: none; }
  .gp-home .is-carousel .home-quote blockquote { color: var(--gp-white); font-size: clamp(18px, 2.9vh, 23px); line-height: 1.55; letter-spacing: -.005em; }
  .gp-home .home-quotes__nav { display: flex; align-items: center; gap: 12px; margin-top: clamp(24px, 4vh, 44px); }
  /* Without JavaScript there is no carousel: its counter and arrows stay out of sight. */
  .gp-home .home-quotes__nav[hidden] { display: none; }
  .gp-home .home-quotes__count { margin-right: auto; color: var(--gp-text-dk); font-weight: 500; font-size: 12px; letter-spacing: var(--gp-track-label); font-variant-numeric: tabular-nums; }
  .gp-home .home-quotes__count b { color: var(--gp-white); font-weight: 600; }
  .gp-home .home-quotes__btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(225, 241, 250, .35);
    background: none;
    color: var(--gp-white);
    font-family: var(--gp-font);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: border-color var(--gp-dur-fast) ease-out, background-color var(--gp-dur-fast) ease-out;
  }
  .gp-home .home-quotes__btn:hover { border-color: var(--gp-accent); background: var(--gp-accent); }

  /* Blogs: the lead picture gives way so the feed fits one window. */
  .gp-home .home-blogs__h { margin-bottom: clamp(20px, 4vh, 52px); }
  .gp-home .home-post--lead .home-post__im img { aspect-ratio: auto; height: clamp(150px, calc(100vh - 560px), 420px); height: clamp(150px, calc(100svh - 560px), 420px); }
  .gp-home .home-post--lead .home-post__date { margin: clamp(12px, 2.4vh, 24px) 0 10px; }
  .gp-home .home-post--row { margin-bottom: clamp(14px, 2.6vh, 32px); padding-bottom: clamp(14px, 2.6vh, 32px); }
  .gp-home .home-post--row:first-child { padding-top: clamp(14px, 2.6vh, 32px); }
  .gp-home .home-post--row:last-child { margin-bottom: 0; }
}
@keyframes gp-tab-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gp-home .is-carousel .home-quote:not([hidden]) { animation: none; }
}

/* Short desktop windows (laptops): the side posts drop their teaser line so the feed fits. */
@media (min-width: 1101px) and (min-height: 600px) and (max-height: 790px) {
  .gp-home .home-post--row { grid-template-columns: minmax(0, 1fr) 160px; }
  .gp-home .home-post--row p { display: none; }
  .gp-home .home-post--row h3 { margin: 8px 0; font-size: 17.5px; }
  .gp-home .home-post--lead h3 { font-size: 26px; }
}

/* ---------- Arrival: one considered entrance per section (assets/js/screens.js) ----------
 *
 * In the spirit of the hero and the Fusion Hub figure, each later section draws itself in
 * once as it arrives: a line that fills to each statistic, service rows in turn, the lead
 * picture wiping in, the testimonial divider drawing down, accreditations one by one.
 * .is-armed is set only when JavaScript runs and motion is allowed, so without either the
 * page is simply complete.
 */
.gp-home .home-stat__bar { position: relative; display: block; height: 1px; margin: 22px 0 22px; background: var(--gp-rule-dk); }
.gp-home .home-stat__bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 3px;
  background: var(--gp-accent);
  transform: scaleX(var(--gp-v, 0));
  transform-origin: left;
}
.gp-home .home-stats.is-armed .home-stat__bar::after { transform: scaleX(0); }
/* The line fills with the count (assets/js/numerals.js sets .is-count): same start, same
   0.9s, same ease, once per page view. */
.gp-home .home-stats.is-count .home-stat__bar::after { transform: scaleX(var(--gp-v, 0)); transition: transform .9s cubic-bezier(.45, 0, .55, 1) 0s; }
.gp-home .home-stats.is-count .home-stat:nth-child(2) .home-stat__bar::after { transition-delay: 0s; }
@media (min-width: 1101px) { .gp-home .home-stat__bar { margin: 0; align-self: center; } }

/* Shared rise, with a per-item delay. */
.gp-home .is-armed .gp-arrive,
.gp-home .home-stats.is-armed .home-stat,
.gp-home .home-stats.is-armed .home-impact,
.gp-home .home-svc.is-armed .home-svc__top,
.gp-home .home-svc.is-armed .home-svc__group:not([hidden]) .home-svc__row,
.gp-home .home-blogs.is-armed .home-blogs__h,
.gp-home .home-blogs.is-armed .home-post--lead > *:not(.home-post__im),
.gp-home .home-blogs.is-armed .home-post--row,
.gp-home .home-clients.is-armed .home-clients__top,
.gp-home .home-clients.is-armed .home-quote:not([hidden]),
.gp-home .home-clients.is-armed .home-quotes__nav,
.gp-home .home-values.is-armed .home-values__grid > div,
.gp-home .home-values.is-armed .home-acc li > * { opacity: 0; transform: translateY(22px); }
.gp-home .home-stats.is-in .home-stat,
.gp-home .home-stats.is-in .home-impact,
.gp-home .home-svc.is-in .home-svc__top,
.gp-home .home-svc.is-in .home-svc__group:not([hidden]) .home-svc__row,
.gp-home .home-blogs.is-in .home-blogs__h,
.gp-home .home-blogs.is-in .home-post--lead > *:not(.home-post__im),
.gp-home .home-blogs.is-in .home-post--row,
.gp-home .home-clients.is-in .home-clients__top,
.gp-home .home-clients.is-in .home-quote:not([hidden]),
.gp-home .home-clients.is-in .home-quotes__nav,
.gp-home .home-values.is-in .home-values__grid > div,
.gp-home .home-values.is-in .home-acc li > * {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease-out var(--gp-d, 0s), transform .7s var(--gp-ease) var(--gp-d, 0s);
}
.gp-home .home-stat:nth-child(2) { --gp-d: .15s; }
.gp-home .home-impact { --gp-d: .3s; }
.gp-home .home-svc__row:nth-of-type(1) { --gp-d: .25s; }
.gp-home .home-svc__row:nth-of-type(2) { --gp-d: .34s; }
.gp-home .home-svc__row:nth-of-type(3) { --gp-d: .43s; }
.gp-home .home-svc__row:nth-of-type(4) { --gp-d: .52s; }
.gp-home .home-svc__row:nth-of-type(n+5) { --gp-d: .6s; }
.gp-home .home-post--lead > *:not(.home-post__im) { --gp-d: .45s; }
.gp-home .home-post--row:nth-child(1) { --gp-d: .35s; }
.gp-home .home-post--row:nth-child(2) { --gp-d: .5s; }
.gp-home .home-post--row:nth-child(n+3) { --gp-d: .65s; }
.gp-home .home-quote { --gp-d: .3s; }
.gp-home .home-quotes__nav { --gp-d: .5s; }
.gp-home .home-acc li:nth-child(1) > * { --gp-d: .2s; }
.gp-home .home-acc li:nth-child(2) > * { --gp-d: .3s; }
.gp-home .home-acc li:nth-child(3) > * { --gp-d: .4s; }
.gp-home .home-acc li:nth-child(4) > * { --gp-d: .5s; }
.gp-home .home-acc li:nth-child(5) > * { --gp-d: .6s; }
.gp-home .home-acc li:nth-child(n+6) > * { --gp-d: .7s; }
/* Once a section has arrived, switching a tab or a quote uses its own short entrance. */

/* Blogs: the lead picture wipes in from the left. */
.gp-home .home-blogs.is-armed .home-post--lead .home-post__im { clip-path: inset(0 100% 0 0); }
.gp-home .home-blogs.is-in .home-post--lead .home-post__im { clip-path: inset(0 0 0 0); transition: clip-path .9s cubic-bezier(.6, 0, .2, 1) .1s; }

/* Testimonials: the divider draws down; progress segments mark the place. */
@media (min-width: 1101px) and (min-height: 600px) {
  .gp-home .home-quotes.is-carousel { position: relative; border-left: 0; }
  .gp-home .home-quotes.is-carousel::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--gp-rule-dk);
    transform-origin: top;
  }
  .gp-home .home-clients.is-armed .home-quotes.is-carousel::before { transform: scaleY(0); }
  .gp-home .home-clients.is-in .home-quotes.is-carousel::before { transform: none; transition: transform .9s var(--gp-ease) .1s; }
}
.gp-home .home-quotes__segs { display: flex; gap: 6px; margin-right: 16px; }
.gp-home .home-quotes__segs i { position: relative; display: block; width: 44px; height: 2px; background: var(--gp-rule-dk); overflow: hidden; }
.gp-home .home-quotes__segs i::after { content: ''; position: absolute; inset: 0; background: var(--gp-accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--gp-ease); }
.gp-home .home-quotes__segs i.is-on::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .gp-home .home-quotes__segs i::after { transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.gp-home) { scroll-behavior: smooth; }
}

/* Statistics as a full screen: the two figures fill the window, each over its line and
   its sentence, with the impact line and its button together along the foot. */
@media (min-width: 1101px) and (min-height: 600px) {
  .gp-home .home-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    column-gap: 0;
    row-gap: clamp(28px, 6vh, 72px);
  }
  .gp-home .home-stat,
  .gp-home .home-stat + .home-stat {
    display: flex;
    flex-direction: column;
    grid-row: auto;
    gap: 0;
    padding: 0 clamp(40px, 5vw, 88px) 0 0;
  }
  .gp-home .home-stat + .home-stat { padding-left: clamp(40px, 5vw, 88px); padding-right: 0; }
  .gp-home .home-stat__num { font-size: clamp(150px, 30vh, 300px); line-height: .86; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
  .gp-home .home-stat__bar { align-self: stretch; margin: clamp(18px, 3.4vh, 36px) 0 clamp(16px, 3vh, 30px); }
  .gp-home .home-stat p { max-width: 38ch; font-size: clamp(17px, 2.5vh, 21px); line-height: 1.5; color: var(--gp-head-dk); }
  .gp-home .home-impact {
    grid-column: 1 / -1;
    grid-row: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
    padding: clamp(22px, 4.4vh, 44px) 0 0;
    border-left: 0;
    border-top: 1px solid var(--gp-rule-dk);
  }
  .gp-home .home-impact p { align-self: center; padding-bottom: 0; font-size: clamp(22px, 3.4vh, 30px); letter-spacing: -.01em; }
  .gp-home .home-impact > div { grid-row: auto; align-self: center; padding-top: 0; flex: none; }
}

/* Services screen: starts near the top, and holds still when the tab changes. The three
   groups share one cell sized to the tallest, so switching never moves the block. */
@media (min-width: 1101px) and (min-height: 600px) {
  .gp-home .home-svc { justify-content: flex-start; padding-top: calc(var(--gp-header-h) + clamp(14px, 3.6vh, 72px)); padding-bottom: clamp(8px, 2vh, 64px); }
}

/* Testimonials screen: starts near the top, and holds still when the quote changes. The
   quotes share one cell sized to the longest, so the controls never move. */
@media (min-width: 1101px) and (min-height: 600px) {
  .gp-home .home-clients { justify-content: flex-start; padding-top: calc(var(--gp-header-h) + clamp(20px, 8vh, 96px)); }
  .gp-home .home-clients > .gp-inner:has(.is-carousel) { align-items: start; }
  .gp-home .home-quotes.is-carousel { min-height: 0; grid-template-rows: auto auto; }
  .gp-home .home-quotes.is-carousel .home-quote { grid-area: 1 / 1; align-self: start; }
  .gp-home .home-quotes.is-carousel .home-quote[hidden] { display: flex; visibility: hidden; }
  .gp-home .home-quotes.is-carousel .home-quotes__nav { grid-area: 2 / 1; }
  .gp-home .is-carousel .home-quote blockquote { font-size: clamp(19px, 3.1vh, 30px); line-height: 1.5; }
  .gp-home .home-clients > .gp-inner:has(.is-carousel) .home-clients__top p { font-size: clamp(16px, 2.2vh, 19px); line-height: 1.65; }
  .gp-home .home-quotes__nav { margin-top: clamp(28px, 6vh, 72px); }
}

/* Services screen: all twelve visible. Heading, introduction and quiz button in a narrow
   column on the left; the three groups side by side on the right. */
@media (min-width: 1101px) and (min-height: 600px) {
  .gp-home .home-svc > .gp-inner { display: grid; grid-template-columns: minmax(0, 3.1fr) minmax(0, 8fr); gap: clamp(40px, 4.5vw, 80px); align-items: start; }
  .gp-home .home-svc__top { display: block; margin-bottom: 0; }
  .gp-home .home-svc__top .gp-h-l { font-size: clamp(32px, 3.1vw, 46px); }
  .gp-home .home-svc__intro { padding-top: clamp(16px, 3vh, 32px); }
  .gp-home .home-svc__intro p { font-size: clamp(14px, 1.9vh, 16px); line-height: 1.65; }
  .gp-home .home-svc__index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 2.6vw, 44px); }
  .gp-home .home-svc__group-h { padding-bottom: clamp(8px, 1.6vh, 14px); }
  .gp-home .home-svc__row { padding-block: clamp(8px, 1.6vh, 20px); }
  .gp-home .home-svc__intro .gp-btn { white-space: nowrap; padding-inline: 18px; letter-spacing: .12em; }
  .gp-home .home-svc__name { font-size: clamp(15px, 2.1vh, 17px); }
  .gp-home .home-svc__row p { max-width: none; margin: clamp(3px, .7vh, 8px) 0 0; font-size: clamp(12.5px, 1.75vh, 14.5px); line-height: 1.5; }
}

/* Screen mode: sections land flush with the top of the window. (The header allowance is
   already inside each screen's padding, so the anchor offset used elsewhere must not
   apply here: it pushed these two screens 72px down and off the bottom.) */
@media (min-width: 1101px) and (min-height: 600px) {
  .gp-home .home-svc,
  .gp-home .home-clients { scroll-margin-top: 0; }

  /* Services: a calmer index. No repeated EXPLORE labels; the name and its line of text
     with even space between rows, and the hover marker as the only cue. */
  .gp-home .home-svc > .gp-inner { grid-template-columns: minmax(0, 2.9fr) minmax(0, 8fr); gap: clamp(48px, 5.5vw, 96px); }
  .gp-home .home-svc__index { gap: clamp(28px, 3.2vw, 56px); }
  .gp-home .home-svc__name small { display: none; }
  .gp-home .home-svc__group-h { padding-bottom: clamp(10px, 1.8vh, 16px); }
  .gp-home .home-svc__row { padding-block: clamp(9px, 1.85vh, 22px); }
  .gp-home .home-svc__row p { margin-top: clamp(4px, .9vh, 9px); }
  .gp-home .home-svc__row:last-of-type { border-bottom: 0; }
}

/* Hero links: an arrow pointing down means "further down this page"; a link that opens
   another page points right. */
@media (min-width: 961px) {
  .gp-home .home-jump a:not([href^="#"])::after { rotate: -90deg; }
}

/* The hero's single invitation: one link at the foot, left, with its arrow beside it. */
.gp-home .home-jump { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 961px) {
  .gp-home .home-jump { display: flex; margin-inline: 0; border-top: 0; padding-bottom: clamp(28px, 6vh, 64px); }
  .gp-home .home-jump a,
  .gp-home .home-jump a:last-child {
    gap: 22px;
    padding: 0;
    border-right: 0;
    font-size: clamp(18px, 1.5vw, 22px);
  }
  .gp-home .home-jump a::before { content: none; }
  .gp-home .home-jump a:hover { background-color: transparent; }
  .gp-home .home-jump a::after { order: -1; width: 52px; height: 52px; }
}
@media (min-width: 961px) {
  /* Centred at the foot of the hero, as the cue to carry on down the page. */
  .gp-home .home-jump { justify-content: center; }
}
@media (min-width: 961px) {
  /* The words, with the arrow centred beneath them. */
  .gp-home .home-jump a,
  .gp-home .home-jump a:last-child { flex-direction: column; gap: clamp(12px, 2.2vh, 20px); text-align: center; }
  .gp-home .home-jump a::after { order: 1; }
  .gp-home .home-jump { padding-bottom: clamp(20px, 4.5vh, 48px); }
}
@media (min-width: 961px) {
  /* The standfirst is one thought: keep it on one line under the headline. */
  .gp-home .home-hero__stand { max-width: none; white-space: nowrap; }
}

/* Statistics: the figures and their sentences appear at once and quickly, so they can be
   read straight away (no staggered rise on this screen). */
.gp-home .home-stats.is-in .home-stat,
.gp-home .home-stats.is-in .home-impact { transition: opacity .3s ease-out 0s, transform .35s var(--gp-ease) 0s; }
.gp-home .home-stats.is-armed .home-stat,
.gp-home .home-stats.is-armed .home-impact { transform: translateY(10px); }
.gp-home .home-stats.is-in .home-stat,
.gp-home .home-stats.is-in .home-impact { transform: none; }

/* ==========================================================================
   Phone and tablet pass (below 1101px only; the one-screen-per-section mode and
   everything above stay desktop only). The narrow-screen Fusion Hub flow is hidden
   from 861px up, so desktop is unchanged.
   ========================================================================== */

@media (min-width: 861px) {
  .gp-home .home-flow { display: none; }
}

/* ---------- Hero: fills the first screen; headline and standfirst, the link at the foot ---------- */

@media (max-width: 960px) {
  .gp-home .home-hero__inner {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(var(--gp-header-h) + env(safe-area-inset-top) + 32px);
    padding-bottom: 24px;
  }
  .gp-home .home-hero__main { margin: auto 0; padding-bottom: 24px; }
  .gp-home .home-hero__title { text-wrap: balance; }
  .gp-home .home-hero__stand { max-width: 34ch; margin-top: 28px; text-wrap: pretty; }

  /* The single invitation: words with the arrow in a square beneath, centred, as on desktop. */
  .gp-home .home-jump { display: flex; justify-content: center; margin-top: 0; border-top: 0; }
  .gp-home .home-jump a,
  .gp-home .home-jump a + a,
  .gp-home .home-jump a:last-child {
    flex-direction: column;
    gap: 14px;
    padding: 8px 0;
    border: 0;
    color: var(--gp-white);
    font-size: 17px;
    font-weight: 500;
    text-align: center;
  }
  .gp-home .home-jump a::after {
    content: '';
    width: 48px;
    height: 48px;
    border: 1px solid rgba(225, 241, 250, .35);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23DF531C' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M8 2.5v10.5M3.5 8.5 8 13l4.5-4.5'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  }
}
@media (min-width: 721px) and (max-width: 960px) {
  /* Tablets: the headline steps down so it keeps its two-line shape. */
  .gp-home .home-hero__title { font-size: clamp(56px, 8.4vw, 76px); }
}

/* ---------- Fusion Hub: the figure as a vertical flow of real text ---------- */

@media (max-width: 860px) {
  .gp-home .home-fusion__h { margin-bottom: 32px; }
  /* Two lines again on a narrow screen: Regular, then SemiBold. */
  .gp-home .home-fusion__h .gp-lt,
  .gp-home .home-fusion__h .gp-bd { display: block; text-wrap: balance; }
  .gp-home .home-fig { display: none; }

  .gp-home .home-flow {
    --flow-line: rgba(31, 35, 66, .5);
    margin: 0;
    padding: 32px 0;
    border-top: 1px solid var(--gp-navy);
    border-bottom: 1px solid var(--gp-rule-lt);
  }
  .gp-home .home-flow__list { margin: 0; padding: 0; list-style: none; }
  .gp-home .home-flow__list li { position: relative; padding: 0 0 22px 28px; }
  .gp-home .home-flow__list--out li:last-child { padding-bottom: 0; }
  /* A square marker on a rail at the left, as in the drawing. */
  .gp-home .home-flow__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    background: var(--gp-navy);
  }
  .gp-home .home-flow__list li::after {
    content: '';
    position: absolute;
    left: 3.5px;
    top: 0;
    bottom: 0;
    border-left: 1px solid var(--flow-line);
  }
  .gp-home .home-flow__list--in li:first-child::after { top: 13px; }
  .gp-home .home-flow__list--out li:last-child::after { bottom: auto; height: 13px; }
  .gp-home .home-flow__t { display: block; color: var(--gp-navy); font-size: 17px; font-weight: 600; line-height: 1.5; }
  .gp-home .home-flow__d { display: block; color: var(--gp-text); font-size: 15px; line-height: 1.5; }

  /* The rail turns in to the box and out of it again, in square line work: down, across
     to the middle, down into the box; and the same in mirror below it. */
  .gp-home .home-flow__list--in::after,
  .gp-home .home-flow__list--out::before {
    content: '';
    display: block;
    width: calc(50% - 3.5px);
    height: 18px;
    margin-left: 3.5px;
    border-left: 1px solid var(--flow-line);
  }
  .gp-home .home-flow__list--in::after { border-bottom: 1px solid var(--flow-line); }
  .gp-home .home-flow__list--out::before { border-top: 1px solid var(--flow-line); }
  .gp-home .home-flow__hub {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    margin: 18px 0;
    padding: 24px;
    /* The outline and, over it, the orange corner marks of the drawing (top left and
       bottom right), all painted as background so the marks sit on the outline. */
    --tick: linear-gradient(var(--gp-accent), var(--gp-accent));
    --rule: linear-gradient(var(--flow-line), var(--flow-line));
    background:
      var(--tick) left top / 22px 2px no-repeat,
      var(--tick) left top / 2px 22px no-repeat,
      var(--tick) right bottom / 22px 2px no-repeat,
      var(--tick) right bottom / 2px 22px no-repeat,
      var(--rule) left top / 100% 1px no-repeat,
      var(--rule) left bottom / 100% 1px no-repeat,
      var(--rule) left top / 1px 100% no-repeat,
      var(--rule) right top / 1px 100% no-repeat,
      var(--gp-white);
  }
  .gp-home .home-flow__hub img { width: min(210px, 70%); height: auto; }
  .gp-home .home-flow__hub::before,
  .gp-home .home-flow__hub::after {
    content: '';
    position: absolute;
    left: 50%;
    height: 18px;
    border-left: 1px solid var(--flow-line);
    pointer-events: none;
  }
  .gp-home .home-flow__hub::before { bottom: 100%; }
  .gp-home .home-flow__hub::after { top: 100%; }
  .gp-home .home-flow__list--in li:last-child { padding-bottom: 22px; }

  .gp-home .home-fusion__row { margin-top: 32px; }
  .gp-home .home-fusion__row p { font-size: 17px; }
}
@media (min-width: 600px) and (max-width: 860px) {
  /* Tablets: the flow keeps a figure's proportions rather than running the full width. */
  .gp-home .home-flow > * { max-width: 560px; }
}

/* ---------- Statistics ---------- */

@media (max-width: 720px) {
  .gp-home .home-stats__grid { row-gap: 48px; }
  .gp-home .home-stat__num { font-size: 84px; }
  .gp-home .home-stat__bar { margin: 20px 0 18px; }
  .gp-home .home-impact { gap: 24px; padding-top: 36px; }
  .gp-home .home-impact p { font-size: 19px; text-wrap: balance; }
}

/* ---------- Services: all twelve, a compact row each ---------- */

@media (max-width: 1100px) {
  .gp-home .home-svc__top { margin-bottom: 48px; }
}
@media (min-width: 600px) and (max-width: 860px) {
  /* Each group's four services in two columns. */
  .gp-home .home-svc__index { gap: 40px; }
  .gp-home .home-svc__group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; align-content: start; }
  .gp-home .home-svc__group-h { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .gp-home .home-svc__index { gap: 40px; }
  .gp-home .home-svc__row { padding: 16px 0 18px; }
  .gp-home .home-svc__row::before { top: 27px; }
  .gp-home .home-svc__name { margin-bottom: 4px; }
  .gp-home .home-svc__row p { max-width: none; font-size: 15px; line-height: 1.55; }
  /* No hover on touch: the rows do not shift when tapped. */
  .gp-home .home-svc__row:hover { padding-left: 0; }
  .gp-home .home-svc__row:hover::before { width: 0; }
}
@media (max-width: 480px) {
  .gp-home .home-svc__intro .gp-btn { justify-content: space-between; width: 100%; }
}

/* ---------- Blogs: the lead post, then compact rows with a thumbnail ---------- */

@media (max-width: 860px) {
  .gp-home .home-blogs__h { margin-bottom: 32px; }
  .gp-home .home-blogs__grid { gap: 40px; }
  .gp-home .home-post--lead h3 { font-size: 24px; }
  .gp-home .home-post--lead .home-post__date { margin: 20px 0 10px; }
  .gp-home .home-post--row:first-child { padding-top: 28px; }
}
@media (max-width: 720px) {
  .gp-home .home-post--row {
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
  }
  .gp-home .home-post--row:last-child { margin-bottom: 0; }
  .gp-home .home-post--row h3 { margin: 6px 0 8px; font-size: 17px; line-height: 1.35; }
  .gp-home .home-post--row p { margin-bottom: 10px; font-size: 15px; line-height: 1.55; }
  .gp-home .home-post--row .home-post__im img { aspect-ratio: 4 / 3; }
  .gp-home .home-post--row .home-post__im { margin-top: 4px; }
}

/* ---------- Testimonials: a row to swipe through on phones; all four there ---------- */

@media (max-width: 720px) {
  .gp-home .home-clients__top { margin-bottom: 40px; }
  .gp-home .home-quotes:not(.is-carousel) {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--gp-gutter));
    padding: 0 var(--gp-gutter) 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gp-gutter);
    scrollbar-width: none;
    background: none;
    border: 0;
  }
  .gp-home .home-quotes:not(.is-carousel)::-webkit-scrollbar { display: none; }
  .gp-home .home-quotes:not(.is-carousel) .home-quote {
    flex: 0 0 86%;
    gap: 24px;
    padding: 28px 24px;
    border: 1px solid var(--gp-rule-dk);
    scroll-snap-align: start;
  }
  .gp-home .home-quote blockquote { font-size: 16px; line-height: 1.65; }
  .gp-home .home-quote blockquote p { margin: 0; }
  .gp-home .home-quote:hover { background: var(--gp-ink); }
}

/* ---------- Social values and accreditations ---------- */

@media (max-width: 720px) {
  .gp-home .home-values__grid { gap: 36px; }
  .gp-home .home-values__grid p { margin-top: 20px; }
}
@media (max-width: 480px) {
  .gp-home .home-acc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-home .home-acc li { height: 120px; }
}

/* ---------- Motion on narrow screens: a quick fade and short rise, nothing staggered ---------- */

@media (max-width: 1100px) {
  body .gp-home .home-stats .home-stat,
  body .gp-home .home-stats .home-impact,
  body .gp-home .home-svc .home-svc__row,
  body .gp-home .home-blogs .home-post--lead > *,
  body .gp-home .home-blogs .home-post--row,
  body .gp-home .home-clients .home-quote,
  body .gp-home .home-values .home-acc li > * { --gp-d: 0s; }
  .gp-home .is-armed .gp-arrive,
  .gp-home .home-stats.is-armed .home-stat,
  .gp-home .home-stats.is-armed .home-impact,
  .gp-home .home-svc.is-armed .home-svc__top,
  .gp-home .home-svc.is-armed .home-svc__group:not([hidden]) .home-svc__row,
  .gp-home .home-blogs.is-armed .home-blogs__h,
  .gp-home .home-blogs.is-armed .home-post--lead > *:not(.home-post__im),
  .gp-home .home-blogs.is-armed .home-post--row,
  .gp-home .home-clients.is-armed .home-clients__top,
  .gp-home .home-clients.is-armed .home-quote:not([hidden]),
  .gp-home .home-values.is-armed .home-values__grid > div,
  .gp-home .home-values.is-armed .home-acc li > * { transform: translateY(10px); }
  .gp-home .home-stats.is-in .home-stat,
  .gp-home .home-stats.is-in .home-impact,
  .gp-home .home-svc.is-in .home-svc__top,
  .gp-home .home-svc.is-in .home-svc__group:not([hidden]) .home-svc__row,
  .gp-home .home-blogs.is-in .home-blogs__h,
  .gp-home .home-blogs.is-in .home-post--lead > *:not(.home-post__im),
  .gp-home .home-blogs.is-in .home-post--row,
  .gp-home .home-clients.is-in .home-clients__top,
  .gp-home .home-clients.is-in .home-quote:not([hidden]),
  .gp-home .home-values.is-in .home-values__grid > div,
  .gp-home .home-values.is-in .home-acc li > * { transform: none; transition: opacity .4s ease-out, transform .45s var(--gp-ease); }
  /* The lead picture simply appears with its post. */
  .gp-home .home-blogs.is-armed .home-post--lead .home-post__im { clip-path: none; }
}

@media (max-width: 1100px) {
  /* The hero's link lands the Fusion Hub section clear of the bar. */
  .gp-home .home-fusion { scroll-margin-top: var(--gp-header-h); }
}
@media (min-width: 861px) and (max-width: 1100px) {
  /* Side posts beside the lead: a smaller thumbnail, so the titles keep a readable width. */
  .gp-home .home-blogs__grid { gap: 48px; }
  .gp-home .home-post--row { grid-template-columns: minmax(0, 1fr) 128px; gap: 20px; }
  .gp-home .home-post--row .home-post__im img { aspect-ratio: 4 / 3; }
}

/* Phones: the standfirst wraps into even lines, so "real-world" is not split at its hyphen. */
@media (max-width: 960px) {
  .gp-home .home-hero__stand { text-wrap: balance; }
}

/* Without JavaScript on narrow screens the header is an ordinary block holding the whole
   menu (layout.css), so the hero starts below it instead of running up under it. */
@media (max-width: 960px) {
  html:not(.gp-js) .gp-home .home-hero { margin-top: 0; }
}
