/* V5 applies exclusively to the existing homepage. */
.gr-page--home .gr-home-clients .gr-client-logos {
  --gr-logo-columns: 5;
}

.gr-page--home .gr-home-clients .gr-client-logos.is-marquee {
  display: block;
  overflow: hidden;
}

.gr-page--home .gr-home-clients .gr-clients-viewport {
  width: 100%;
  overflow: hidden;
}

.gr-page--home .gr-home-clients .gr-clients-track {
  display: flex;
  width: max-content;
  animation: gr-clients-scroll 35s linear infinite;
  will-change: transform;
}

.gr-page--home .gr-home-clients .gr-clients-set {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--gr-logo-gap);
  padding-inline-end: var(--gr-logo-gap);
}

.gr-page--home .gr-home-clients .gr-clients-set > * {
  flex: 0 0 var(--gr-logo-width);
  width: var(--gr-logo-width);
  min-width: 0;
}

@keyframes gr-clients-scroll {
  to { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .gr-page--home .gr-home-clients .gr-client-logos {
    --gr-logo-columns: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gr-page--home .gr-home-clients .gr-clients-track {
    animation: none;
    transform: none;
    will-change: auto;
  }
}

:is(.gr-page--home, .gr-page--about, .gr-page--projects, .gr-page--blog, .gr-page--products, .gr-page--paves, .gr-page--dalles, .gr-page--carreaux, .gr-page--bordures, .gr-page--caniveaux) header.wp-block-template-part,
.admin-bar:is(.gr-page--home, .gr-page--about, .gr-page--projects, .gr-page--blog, .gr-page--products, .gr-page--paves, .gr-page--dalles, .gr-page--carreaux, .gr-page--bordures, .gr-page--caniveaux) header.wp-block-template-part {
  position: fixed;
  inset-inline: 0;
  top: var(--gr-home-admin-offset, var(--wp-admin--admin-bar--height, 0px));
  z-index: 30;
}

/* Share the Hero hover behaviour with other homepage CTAs only. */
:is(.gr-page--home, .gr-page--catalogue) .wp-block-post-content .wp-block-button__link:not(.gr-home-hero-actions *) {
  transition: transform 280ms ease-out, background-color 280ms ease-out,
    color 280ms ease-out, border-color 280ms ease-out;
}

:is(.gr-page--home, .gr-page--catalogue) .wp-block-post-content .wp-block-button__link:not(.gr-home-hero-actions *)::after {
  transition: transform 280ms ease-out;
}

:is(.gr-page--home, .gr-page--catalogue) .wp-block-post-content .wp-block-button__link:not(.gr-home-hero-actions *):hover {
  background-color: color-mix(in srgb, var(--wp--preset--color--blue) 96%, white 4%);
  transform: scale(1.02);
}

:is(.gr-page--home, .gr-page--catalogue) .wp-block-post-content :is(.is-style-gr-outline, .is-style-outline) .wp-block-button__link:not(.gr-home-hero-actions *):hover {
  background-color: rgb(255 255 255 / .04);
}

:is(.gr-page--home, .gr-page--catalogue) .wp-block-post-content .is-style-gr-outline .wp-block-button__link:not(.gr-home-hero-actions *):hover {
  color: var(--wp--preset--color--blue);
}

:is(.gr-page--home, .gr-page--catalogue) .wp-block-post-content .wp-block-button__link:not(.gr-home-hero-actions *):hover::after {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  :is(.gr-page--home, .gr-page--catalogue) .wp-block-post-content .wp-block-button__link:not(.gr-home-hero-actions *),
  :is(.gr-page--home, .gr-page--catalogue) .wp-block-post-content .wp-block-button__link:not(.gr-home-hero-actions *)::after {
    transition: none;
  }

  :is(.gr-page--home, .gr-page--catalogue) .wp-block-post-content .wp-block-button__link:not(.gr-home-hero-actions *):hover,
  :is(.gr-page--home, .gr-page--catalogue) .wp-block-post-content .wp-block-button__link:not(.gr-home-hero-actions *):hover::after {
    transform: none;
  }
}

:is(.gr-page--home, .gr-page--about, .gr-page--projects, .gr-page--blog, .gr-page--products, .gr-page--paves, .gr-page--dalles, .gr-page--carreaux, .gr-page--bordures, .gr-page--caniveaux) .gr-header {
  --gr-home-header-height: 112px;
  --gr-home-header-compact-height: 96px;
  display: flex;
  align-items: center;
  height: var(--gr-home-header-height);
  min-height: 0;
  padding-block: 0;
  background: transparent;
  color: #fff;
  border-bottom-color: transparent;
  transition: background-color 350ms ease, color 350ms ease,
    height 350ms ease, box-shadow 350ms ease, border-color 350ms ease;
}

:is(.gr-page--home, .gr-page--about, .gr-page--projects, .gr-page--blog, .gr-page--products, .gr-page--paves, .gr-page--dalles, .gr-page--carreaux, .gr-page--bordures, .gr-page--caniveaux) .gr-header-inner {
  width: 100%;
}

:is(.gr-page--home, .gr-page--about, .gr-page--projects, .gr-page--blog, .gr-page--products, .gr-page--paves, .gr-page--dalles, .gr-page--carreaux, .gr-page--bordures, .gr-page--caniveaux) .gr-header .gr-brand {
  position: relative;
  aspect-ratio: 272 / 262;
}

:is(.gr-page--home, .gr-page--about, .gr-page--projects, .gr-page--blog, .gr-page--products, .gr-page--paves, .gr-page--dalles, .gr-page--carreaux, .gr-page--bordures, .gr-page--caniveaux) .gr-header .gr-brand img {
  height: 100%;
  object-fit: contain;
  transform-origin: center;
  transition: transform 350ms ease, opacity 350ms ease;
}

:is(.gr-page--home, .gr-page--about, .gr-page--projects, .gr-page--blog, .gr-page--products, .gr-page--paves, .gr-page--dalles, .gr-page--carreaux, .gr-page--bordures, .gr-page--caniveaux) .gr-header .gr-home-logo-color {
  position: absolute;
  inset: 0;
  opacity: 0;
}

:is(.gr-page--home, .gr-page--about, .gr-page--projects, .gr-page--blog, .gr-page--products, .gr-page--paves, .gr-page--dalles, .gr-page--carreaux, .gr-page--bordures, .gr-page--caniveaux) .gr-header.is-scrolled {
  height: var(--gr-home-header-compact-height);
  background: #fff;
  color: var(--wp--preset--color--blue);
  border-bottom-color: rgb(26 62 95 / .12);
  box-shadow: 0 2px 12px rgb(7 40 53 / .07);
}

:is(.gr-page--home, .gr-page--about, .gr-page--projects, .gr-page--blog, .gr-page--products, .gr-page--paves, .gr-page--dalles, .gr-page--carreaux, .gr-page--bordures, .gr-page--caniveaux) .gr-header.is-scrolled .gr-brand img {
  transform: scale(.82);
}

:is(.gr-page--home, .gr-page--about, .gr-page--projects, .gr-page--blog, .gr-page--products, .gr-page--paves, .gr-page--dalles, .gr-page--carreaux, .gr-page--bordures, .gr-page--caniveaux) .gr-header.is-scrolled .gr-home-logo-white {
  opacity: 0;
}

:is(.gr-page--home, .gr-page--about, .gr-page--projects, .gr-page--blog, .gr-page--products, .gr-page--paves, .gr-page--dalles, .gr-page--carreaux, .gr-page--bordures, .gr-page--caniveaux) .gr-header.is-scrolled .gr-home-logo-color {
  opacity: 1;
}

:is(.gr-page--home, .gr-page--about, .gr-page--projects, .gr-page--blog, .gr-page--products, .gr-page--paves, .gr-page--dalles, .gr-page--carreaux, .gr-page--bordures, .gr-page--caniveaux) .gr-header.is-scrolled .wp-block-navigation-item__content {
  text-shadow: none;
}

.gr-page--home .gr-hero--home {
  min-height: 0;
  height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
  height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
  width: 100%;
  aspect-ratio: auto;
  background: #072835;
}

.gr-page--home .gr-hero--home::after {
  display: none;
}

.gr-page--home .gr-hero--home .gr-media :is(img, video) {
  object-fit: cover;
  object-position: var(--gr-media-position, 50% 50%);
}

.gr-page--home .gr-home-hero-actions {
  position: absolute;
  inset-inline: var(--gr-gutter);
  bottom: clamp(72px, 9svh, 112px);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.gr-page--home .gr-home-hero-actions .wp-block-button__link {
  min-height: 52px;
  padding: 16px 24px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: 0 4px 20px rgb(7 40 53 / .15);
  transition: transform 280ms ease-out, background-color 280ms ease-out,
    color 280ms ease-out, border-color 280ms ease-out;
}

.gr-page--home .gr-home-hero-actions .wp-block-button__link::after {
  transition: transform 280ms ease-out;
}

.gr-page--home .gr-home-hero-actions .gr-home-cta-secondary .wp-block-button__link {
  background: rgb(7 40 53 / .72);
  border-color: #fff;
  color: #fff;
}

.gr-page--home .gr-home-hero-actions .wp-block-button__link:hover {
  background-color: color-mix(in srgb, var(--wp--preset--color--blue) 96%, white 4%);
  transform: scale(1.02);
}

.gr-page--home .gr-home-hero-actions .gr-home-cta-secondary .wp-block-button__link:hover {
  background-color: color-mix(in srgb, rgb(7 40 53 / .72) 96%, rgb(255 255 255 / .72) 4%);
}

.gr-page--home .gr-home-hero-actions .wp-block-button__link:hover::after {
  transform: translateX(3px);
}

.gr-page--home .gr-home-hero-actions .wp-block-button__link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 7px #072835;
}

@media (max-width: 1000px) {
  :is(.gr-page--home, .gr-page--about, .gr-page--projects, .gr-page--blog, .gr-page--products, .gr-page--paves, .gr-page--dalles, .gr-page--carreaux, .gr-page--bordures, .gr-page--caniveaux) .gr-header {
    --gr-home-header-height: 84px;
    --gr-home-header-compact-height: 76px;
  }
}

@media (max-width: 600px) {
  :is(.gr-page--home, .gr-page--about, .gr-page--projects, .gr-page--blog, .gr-page--products, .gr-page--paves, .gr-page--dalles, .gr-page--carreaux, .gr-page--bordures, .gr-page--caniveaux) .gr-header {
    --gr-home-header-height: 76px;
    --gr-home-header-compact-height: 68px;
  }

  .gr-page--home .gr-hero--home .gr-media :is(img, video) {
    object-position: var(--gr-media-mobile-position, 50% 50%);
  }

  .gr-page--home .gr-home-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-width: 360px;
    margin-inline: auto;
  }

  .gr-page--home .gr-home-hero-actions .wp-block-button,
  .gr-page--home .gr-home-hero-actions .wp-block-button__link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.gr-page--home, .gr-page--about, .gr-page--projects, .gr-page--blog, .gr-page--products, .gr-page--paves, .gr-page--dalles, .gr-page--carreaux, .gr-page--bordures, .gr-page--caniveaux) .gr-header,
  :is(.gr-page--home, .gr-page--about, .gr-page--projects, .gr-page--blog, .gr-page--products, .gr-page--paves, .gr-page--dalles, .gr-page--carreaux, .gr-page--bordures, .gr-page--caniveaux) .gr-header .gr-brand img,
  .gr-page--home .gr-home-hero-actions .wp-block-button__link,
  .gr-page--home .gr-home-hero-actions .wp-block-button__link::after {
    transition: none;
  }

  .gr-page--home .gr-home-hero-actions .wp-block-button__link:hover,
  .gr-page--home .gr-home-hero-actions .wp-block-button__link:hover::after {
    transform: none;
  }
}
/* V5 targeted media and proportions; all other pages retain their styles. */
.gr-page--home .gr-family-grid--home { max-width: 1020px; gap: 32px; }
.gr-page--home .gr-family-grid--home .gr-family-card { height: 420px; }
.gr-page--home .gr-family-grid--home .gr-family-label { background: rgb(26 62 95 / .72); }
.gr-page--home .gr-family-grid--home .gr-family-label span { display: inline; }
.gr-page--home .gr-home-story .gr-story-media { width: 100%; }
.gr-page--home .gr-home-story .gr-story-media::before { display: none; }
.gr-page--home .gr-home-president > figure { height: auto; }
.gr-page--home .gr-home-president > figure :is(img,video) { height: auto; object-fit: contain; }
:is(.gr-page--home, .gr-page--about, .gr-page--projects) .gr-stats--home .gr-figures { grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(16px,2.2vw,32px); }
:is(.gr-page--home, .gr-page--about, .gr-page--projects) .gr-stats--home .gr-figure { min-width: 0; }
:is(.gr-page--home, .gr-page--about, .gr-page--projects) .gr-stats--home .gr-figure-value { font-size: clamp(32px,3.75vw,54px); white-space: nowrap; text-transform: none; }
:is(.gr-page--home, .gr-page--about, .gr-page--projects) .gr-stats--home .gr-figure-label { overflow-wrap: anywhere; }
:is(.gr-page--home, .gr-page--about, .gr-page--projects) .gr-stats--home .gr-figure-value sup { font-size: .5em; line-height: 0; vertical-align: super; text-transform: none; }
:is(.gr-page--home,.gr-page--about) .gr-stats--home .gr-figure-value--since { position:relative; display:inline-block; vertical-align:top; text-align:center; }
:is(.gr-page--home,.gr-page--about) .gr-stats--home .gr-figure-prefix { position:absolute; inset-inline:0; bottom:100%; font-size:.4em; font-weight:400; line-height:1.5; text-align:center; color:white; }
/* Keep the media, overlay and content within one stable section stack. */
:is(.gr-page--home,.gr-page--about) .gr-stats--home > .gr-stats-media { position:absolute; inset:0; width:100%; height:100%; margin:0; z-index:0; }
:is(.gr-page--home,.gr-page--about) .gr-stats--home > .gr-stats-media :is(img,video) { position:absolute; inset:0; width:100%; height:100%; max-width:none; max-height:none; object-fit:cover; }
:is(.gr-page--home,.gr-page--about) .gr-stats--home::after { z-index:1; }
:is(.gr-page--home,.gr-page--about) .gr-stats--home > .gr-stats-content { position:relative; z-index:2; }
@media(max-width:1000px) {
 .gr-page--home .gr-family-grid--home .gr-family-card { height: 360px; }
 .gr-page--home .gr-family-grid--home .gr-family-label { font-size: 23px; padding: 24px 18px; }
 :is(.gr-page--home, .gr-page--about, .gr-page--projects) .gr-stats--home .gr-figures { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
 .gr-page--home .gr-family-grid--home { gap: 24px; }
 .gr-page--home .gr-family-grid--home .gr-family-card { height: clamp(300px,90vw,370px); }
 .gr-page--home .gr-family-grid--home .gr-family-label { font-size: 25px; }
 :is(.gr-page--home, .gr-page--about, .gr-page--projects) .gr-stats--home .gr-figure-value { font-size: clamp(30px,8.5vw,37px); }
}
/* Final homepage adjustments, retaining the existing component markup. */
:is(.gr-page--home, .gr-page--about, .gr-page--projects, .gr-page--blog, .gr-page--products, .gr-page--paves, .gr-page--dalles, .gr-page--carreaux, .gr-page--bordures, .gr-page--caniveaux) .gr-header:not(.is-scrolled) .gr-home-logo-white { transform: scale(1.47108); }
.gr-page--home .gr-family-grid--home { grid-template-columns: repeat(3,minmax(0,1fr)); }
.gr-page--home .gr-family-card img { transition:transform 400ms ease-out; }
.gr-page--home .gr-family-card .gr-family-label span { transition:transform 400ms ease-out; }
.gr-page--home .gr-family-card:is(:hover,:focus-within) img { transform:scale(1.03); }
.gr-page--home .gr-family-card:is(:hover,:focus-within) .gr-family-label span { transform:translateX(3px); }
.gr-page--home .gr-family-card:focus-within { outline:3px solid var(--wp--preset--color--orange); outline-offset:4px; }
:is(.gr-page--home, .gr-page--about, .gr-page--projects) :is(.gr-home-story,.gr-stats--home) {
 --gr-section-header:96px;
 box-sizing:border-box;
 min-height:calc(100svh - var(--gr-section-header) - var(--wp-admin--admin-bar--height,0px));
 height:auto;
 padding-block:clamp(40px,6svh,72px);
 align-items:center;
}
.gr-page--home .gr-home-story .gr-story-copy { padding-block:0; }

:is(.gr-page--home, .gr-page--about, .gr-page--projects) .gr-stats--home { display:flex; }
:is(.gr-page--home, .gr-page--about, .gr-page--projects) .gr-stats--home .gr-figures { margin-top:clamp(32px,6svh,60px)!important; padding-block:20px; }
@media(max-width:1000px) {
 :is(.gr-page--home, .gr-page--about, .gr-page--projects) :is(.gr-home-story,.gr-stats--home) { --gr-section-header:76px; }
}
@media(max-width:600px) {
 .gr-page--home .gr-family-grid--home { grid-template-columns:minmax(0,1fr); }
 .gr-page--home .gr-family-grid--home .gr-family-card:nth-child(n) { grid-column:auto; }
 :is(.gr-page--home, .gr-page--about, .gr-page--projects) :is(.gr-home-story,.gr-stats--home) { --gr-section-header:68px; }
 .gr-page--home .gr-home-president { display:flex; flex-direction:column; gap:32px; align-items:stretch; }
 :is(.gr-page--home, .gr-page--about, .gr-page--projects) .gr-stats--home .gr-figures { row-gap:40px; }
}
@media(prefers-reduced-motion:reduce) {
 .gr-page--home .gr-family-card img,.gr-page--home .gr-family-card .gr-family-label span { transition:none; }
 .gr-page--home .gr-family-card:is(:hover,:focus-within) img,.gr-page--home .gr-family-card:is(:hover,:focus-within) .gr-family-label span { transform:none; }
}

/* Restore the original products composition and contain the president section. */
.gr-page--home .gr-family-grid--home .gr-family-catalogue { justify-content:center; align-self:stretch; padding:0; }
.gr-page--home .gr-family-grid--home .gr-family-catalogue p { font-size:21px; line-height:1.45; text-align:left; }
.gr-page--home .gr-family-grid--home .gr-family-catalogue .wp-block-buttons { margin-top:24px; justify-content:flex-start; }
.gr-page--home .gr-home-president { min-height:0; height:auto; padding-block:64px; align-items:center; }
.gr-page--home .gr-home-president > figure { margin-top:-134px!important; align-self:start; position:relative; z-index:1; }
.gr-page--home .gr-home-president .gr-president-copy { min-width:0; padding-top:0; }
@media(max-width:1000px) {
 .gr-page--home .gr-family-grid--home .gr-family-catalogue p { font-size:17px; }
}
@media(max-width:600px) {
 .gr-page--home .gr-home-president { padding-block:40px; }
 .gr-page--home .gr-home-president > figure { margin-top:-72px!important; align-self:stretch; }
 .gr-page--home .gr-family-grid--home .gr-family-catalogue { padding-block:8px; }
 .gr-page--home .gr-family-grid--home .gr-family-catalogue p { font-size:15px; }
}
/* Reserve space for the validated portrait overlap below the story CTA. */
.gr-page--home .gr-home-story { padding-bottom:104px; }
@media(max-width:600px) {
 .gr-page--home .gr-home-story { padding-bottom:66px; }
}
@media(min-width:1001px) {
 .gr-page--home .gr-home-president .gr-president-copy { grid-area:1 / 2 / 2 / 3; position:absolute; inset:auto 0 0; align-self:end; }
 .gr-page--home .gr-president-copy > .wp-block-buttons { margin-top:16px; }
 .gr-page--home .gr-president-copy > .gr-president-name { margin-top:12px; }
}
/* Homepage realisations: three editorial bands, independent mobile carousels. */
.gr-page--home .gr-home-realisations { background:#f4f4f4; color:var(--wp--preset--color--blue); padding:60px max(24px,calc((100% - 1248px)/2)) 44px; }
.gr-page--home .gr-home-realisations > h2 { font-size:48px; font-weight:400; line-height:1.2; text-align:center; text-transform:uppercase; margin:0 0 34px; }
.gr-page--home .gr-realisation-band { margin:0 0 24px; }
.gr-page--home .gr-realisation-band > h3 { font-size:24px; font-weight:600; line-height:1.2; text-transform:uppercase; margin:0 0 10px; }
.gr-page--home .gr-realisation-viewport { overflow:hidden; border-radius:24px; }
.gr-page--home .gr-realisation-track { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin:0; }
.gr-page--home .gr-realisation-track > figure { min-width:0; margin:0; aspect-ratio:25 / 11; border-radius:24px; overflow:hidden; }
.gr-page--home .gr-realisation-track img { width:100%; height:100%; object-fit:cover; }
.gr-page--home .gr-realisation-controls { display:none; }
.gr-page--home .gr-home-realisations > .wp-block-buttons { justify-content:center; margin:36px 0 0; }
.gr-page--home .gr-home-realisations > .wp-block-buttons .wp-block-button__link { display:flex; justify-content:space-between; align-items:center; width:300px; min-height:48px; padding:14px 20px; border-radius:12px; font-size:13px; }
@media(max-width:767px) {
 .gr-page--home .gr-home-realisations { padding:42px 24px 50px; }
 .gr-page--home .gr-home-realisations > h2 { font-size:30px; margin-bottom:32px; white-space:nowrap; }
 .gr-page--home .gr-realisation-band { position:relative; margin-bottom:32px; }
 .gr-page--home .gr-realisation-band > h3 { font-size:20px; margin-bottom:10px; }
 .gr-page--home .gr-realisation-track { display:flex; gap:0; transform:translateX(calc(var(--gr-slide,0) * -100%)); transition:transform 350ms ease; touch-action:pan-y; }
 .gr-page--home .gr-realisation-track > figure { flex:0 0 100%; width:100%; }
 .gr-page--home .gr-realisation-controls { display:block; }
 .gr-page--home .gr-realisation-arrow { position:absolute; top:var(--gr-arrow-center); transform:translateY(-50%); width:40px; height:40px; padding:0; border:0; border-radius:50%; background:rgb(255 255 255 / .9); color:var(--wp--preset--color--blue); font-size:24px; line-height:1; cursor:pointer; }
 .gr-page--home .gr-realisation-arrow--prev { left:12px; }
 .gr-page--home .gr-realisation-arrow--next { right:12px; }
 .gr-page--home .gr-realisation-arrow:disabled { opacity:.5; cursor:default; }
 .gr-page--home .gr-realisation-dots { display:flex; justify-content:center; margin-top:3px; gap:0; }
 .gr-page--home .gr-realisation-dot { width:14px; height:24px; padding:0; border:0; background:transparent; cursor:pointer; display:grid; place-items:center; }
 .gr-page--home .gr-realisation-dot::before { content:''; width:6px; height:6px; border-radius:50%; background:#a4b4bf; }
 .gr-page--home .gr-realisation-dot[aria-current=true]::before { background:var(--wp--preset--color--orange); }
 .gr-page--home .gr-home-realisations > .wp-block-buttons { margin-top:34px; }
 .gr-page--home .gr-home-realisations > .wp-block-buttons .wp-block-button__link { width:min(300px,calc(100vw - 48px)); }
}
@media(max-width:360px) {
 .gr-page--home .gr-home-realisations > h2 { font-size:25px; }
 .gr-page--home .gr-realisation-band > h3 { font-size:17px; }
}
@media(prefers-reduced-motion:reduce) {
 .gr-page--home .gr-realisation-track { transition:none; }
}

/* Section-only finishes. Mobile spacing and image geometry remain unchanged. */
@media(min-width:768px) {
 .gr-page--home .gr-realisation-band:not(:has(+ .wp-block-buttons)) { margin-bottom:48px; }
 .gr-page--home .gr-realisation-track img { transition:transform 400ms ease-out; }
 :is(.gr-page--home, .gr-page--projects) .gr-realisation-photo:is(:hover,:focus-visible) img { transform:scale(1.03); }
}
:is(.gr-page--home, .gr-page--projects, .gr-page--blog) .gr-realisation-photo { display:block; width:100%; height:100%; border:0; padding:0; background:transparent; cursor:zoom-in; border-radius:inherit; }
:is(.gr-page--home, .gr-page--projects, .gr-page--blog) .gr-realisation-photo:focus-visible { outline:3px solid var(--wp--preset--color--orange); outline-offset:-4px; }
:is(.gr-page--home, .gr-page--projects, .gr-page--blog) .gr-realisation-lightbox { position:fixed; inset:0; width:100%; height:100%; max-width:none; max-height:none; margin:0; padding:0; border:0; background:transparent; color:white; overflow:hidden; }
:is(.gr-page--home, .gr-page--projects, .gr-page--blog) .gr-realisation-lightbox::backdrop { background:rgb(3 20 32 / .94); }
:is(.gr-page--home, .gr-page--projects, .gr-page--blog) .gr-lightbox-stage { position:absolute; inset:64px 80px; display:flex; justify-content:center; align-items:center; touch-action:pan-y; }
:is(.gr-page--home, .gr-page--projects, .gr-page--blog) .gr-lightbox-image { display:block; max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; user-select:none; }
:is(.gr-page--home, .gr-page--projects, .gr-page--blog) .gr-lightbox-control { position:absolute; display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid rgb(255 255 255 / .3); border-radius:50%; background:rgb(255 255 255 / .08); color:white; font:32px/1 sans-serif; cursor:pointer; }
:is(.gr-page--home, .gr-page--projects, .gr-page--blog) .gr-lightbox-close { top:16px; right:20px; }
:is(.gr-page--home, .gr-page--projects, .gr-page--blog) .gr-lightbox-prev { left:var(--gr-viewer-prev,20px); top:var(--gr-viewer-y,50%); }
:is(.gr-page--home, .gr-page--projects, .gr-page--blog) .gr-lightbox-next { left:var(--gr-viewer-next,calc(100% - 64px)); right:auto; top:var(--gr-viewer-y,50%); }
:is(.gr-page--home, .gr-page--projects, .gr-page--blog) .gr-lightbox-counter { position:absolute; bottom:20px; left:0; right:0; text-align:center; font-size:13px; color:rgb(255 255 255 / .8); pointer-events:none; }
@media(max-width:767px) {
 :is(.gr-page--home, .gr-page--projects, .gr-page--blog) .gr-lightbox-stage { inset:80px 12px; }


}
@media(prefers-reduced-motion:reduce) {
 .gr-page--home .gr-realisation-track img { transition:none; }
 :is(.gr-page--home, .gr-page--projects) .gr-realisation-photo:is(:hover,:focus-visible) img { transform:none; }
}

/* Position gallery controls against the displayed image, not the viewport. */
:is(.gr-page--home, .gr-page--projects, .gr-page--blog) .gr-lightbox-prev,:is(.gr-page--home, .gr-page--projects, .gr-page--blog) .gr-lightbox-next { box-sizing:border-box; width:44px; height:44px; transform:none; overflow:visible; z-index:2; line-height:0; }
:is(.gr-page--home, .gr-page--projects, .gr-page--blog) .gr-lightbox-control svg { width:16px; height:16px; display:block; overflow:visible; pointer-events:none; }
.gr-page--home .gr-home-realisations { --gr-products-bottom-space:160px; margin-top:calc(80px - var(--gr-products-bottom-space) - 60px); }
@media(min-width:1001px) {
 .gr-page--home .gr-home-realisations { --gr-products-bottom-space:214px; }
}
@media(max-width:767px) {
 :is(.gr-page--home, .gr-page--projects, .gr-page--blog) .gr-lightbox-prev,:is(.gr-page--home, .gr-page--projects, .gr-page--blog) .gr-lightbox-next { width:40px; height:40px; }
 .gr-page--home .gr-home-realisations { margin-top:calc(48px - var(--gr-products-bottom-space) - 42px); }
}
@media(max-width:600px) {
 .gr-page--home .gr-home-realisations { --gr-products-bottom-space:65px; }
}

/* About V5: original editorial layout with the shared navbar and key figures. */
.gr-page--about .gr-hero--about {
 min-height:calc(100vh - var(--wp-admin--admin-bar--height,0px));
 min-height:calc(100svh - var(--wp-admin--admin-bar--height,0px));
 height:auto; aspect-ratio:auto;
}
.gr-page--about .gr-hero--about .gr-media img { object-fit:cover; object-position:var(--gr-media-position,50% 50%); }
.gr-page--about .gr-about-president > figure { height:auto; }
.gr-page--about .gr-about-president > figure :is(img,video) { height:auto; object-fit:contain; }
@media(max-width:600px) {
 .gr-page--about .gr-hero--about .gr-media img { object-position:var(--gr-media-mobile-position,50% 50%); }
}

/* Realisations V5 uses the existing project content model and shared lightbox. */
.gr-page--projects .gr-hero--projects { min-height:calc(100vh - var(--wp-admin--admin-bar--height,0px)); min-height:calc(100svh - var(--wp-admin--admin-bar--height,0px)); height:auto; aspect-ratio:auto; }
.gr-page--projects .gr-hero-media img { object-fit:cover; object-position:var(--gr-media-position,50% 50%); }
.gr-page--projects [data-gr-projects-v5] .gr-project-filters { flex-wrap:wrap; gap:16px 32px; }
.gr-page--projects [data-gr-projects-v5] .gr-project-filters button { font-size:14px; text-transform:uppercase; }
.gr-page--projects .gr-project-grid-v5 { columns:3; column-gap:24px; column-fill:balance; }
.gr-page--projects .gr-project-photo { display:block; width:100%; break-inside:avoid; margin:0 0 24px; min-width:0; aspect-ratio:4/3; border-radius:24px; overflow:hidden; background:#edf1f3; }
.gr-page--projects .gr-project-photo[hidden] { display:none; }
.gr-page--projects .gr-project-photo img { display:block; width:100%; height:100%; object-fit:cover; transition:transform 400ms ease-out; }
.gr-page--projects .gr-project-photo .gr-realisation-photo:is(:hover,:focus-visible) img { transform:scale(1.03); }
@media(max-width:767px) {
 .gr-page--projects .gr-project-grid-v5 { columns:2; column-gap:16px; }
 .gr-page--projects .gr-project-photo { margin-bottom:16px; }
 .gr-page--projects [data-gr-projects-v5] .gr-project-filters { gap:12px 20px; }
 .gr-page--projects [data-gr-projects-v5] .gr-project-filters button { font-size:12px; text-align:left; }
 .gr-page--projects .gr-hero-media img { object-position:var(--gr-media-mobile-position,50% 50%); }
}
@media(max-width:480px) { .gr-page--projects .gr-project-grid-v5 { columns:1; } }
@media(prefers-reduced-motion:reduce) {
 .gr-page--projects .gr-project-photo img { transition:none; }
 .gr-page--projects .gr-project-photo .gr-realisation-photo:is(:hover,:focus-visible) img { transform:none; }
}

.gr-page--projects .gr-project-photo--square { aspect-ratio:1; }
.gr-page--projects .gr-project-photo--portrait { aspect-ratio:3/4; }

/* Contact retains its initial header layout, background and logo. */
:is(.gr-page--contact, .gr-page--catalogue, .gr-page--product-nav) header.wp-block-template-part { position:sticky; top:var(--gr-home-admin-offset,var(--wp-admin--admin-bar--height,0px)); z-index:30; }
:is(.gr-page--contact, .gr-page--catalogue, .gr-page--product-nav) .gr-header { color:var(--wp--preset--color--blue); transition:background-color 350ms ease,color 350ms ease,padding 350ms ease,min-height 350ms ease,box-shadow 350ms ease; }
:is(.gr-page--contact, .gr-page--catalogue, .gr-page--product-nav) .gr-header .wp-block-navigation-item__content { color:var(--wp--preset--color--blue); text-shadow:none; }
:is(.gr-page--contact, .gr-page--catalogue, .gr-page--product-nav) .gr-header .gr-brand { position:relative; }
:is(.gr-page--contact, .gr-page--catalogue, .gr-page--product-nav) .gr-header .gr-brand img { transition:transform 350ms ease,opacity 350ms ease; transform-origin:center; }
:is(.gr-page--contact, .gr-page--catalogue, .gr-page--product-nav) .gr-header .gr-home-logo-color { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; opacity:0; }
:is(.gr-page--contact, .gr-page--catalogue, .gr-page--product-nav) .gr-header.is-scrolled { background:#fff; color:var(--wp--preset--color--blue); padding-block:14px; min-height:84px; box-shadow:0 2px 12px rgb(7 40 53 / .07); }
:is(.gr-page--contact, .gr-page--catalogue, .gr-page--product-nav) .gr-header.is-scrolled .gr-home-logo-white { opacity:0; }
:is(.gr-page--contact, .gr-page--catalogue, .gr-page--product-nav) .gr-header.is-scrolled .gr-home-logo-color { opacity:1; transform:scale(.82); }
@media(max-width:600px) {
 :is(.gr-page--contact, .gr-page--catalogue, .gr-page--product-nav) header.wp-block-template-part { position:fixed; top:var(--gr-home-admin-offset,var(--wp-admin--admin-bar--height,0px)); }
}
@media(prefers-reduced-motion:reduce) {
 :is(.gr-page--contact, .gr-page--catalogue, .gr-page--product-nav) .gr-header,:is(.gr-page--contact, .gr-page--catalogue, .gr-page--product-nav) .gr-header .gr-brand img { transition:none; }
}

/* Three editable locations fit the existing Contact panel. */
.gr-page--contact .gr-contact-locations { display:flex; flex-direction:column; }
.gr-page--contact .gr-contact-locations .gr-coordinates { margin-top:auto; padding-top:28px; }
.gr-page--contact .gr-contact-locations .gr-coordinates + .gr-coordinates { margin-top:auto; }
.gr-page--contact .gr-contact-locations .gr-coordinates h3 { font-size:22px; margin-bottom:16px; text-transform:uppercase; }
.gr-page--contact .gr-contact-locations .gr-coordinates address p { margin-top:12px!important; }
.gr-page--contact .gr-contact-locations .gr-coordinates address p:first-child { margin-top:0!important; }
@media(max-width:1000px) and (min-width:601px) {
 .gr-page--contact .gr-contact-locations .gr-coordinates { padding-top:20px; }
}
@media(max-width:600px) {
 .gr-page--contact .gr-contact-locations { gap:0; }
 .gr-page--contact .gr-contact-locations .gr-coordinates { padding:16px; margin-top:16px; }
 .gr-page--contact .gr-contact-locations .gr-coordinates + .gr-coordinates { margin-top:16px; }
 .gr-page--contact .gr-contact-locations .gr-coordinates h3 { font-size:20px; margin-bottom:12px; }
 .gr-page--contact .gr-contact-locations .gr-coordinates address { line-height:1.5; }
 .gr-page--contact .gr-contact-locations .gr-coordinates address p { margin-top:8px!important; }
}

@media(max-width:600px) {
 .gr-page--contact .gr-contact-locations .gr-coordinates:first-of-type { padding-bottom:26px; }
}

/* Main Products page only: existing editorial Hero and media slots. */
.gr-page--products .gr-hero--products { min-height:calc(100vh - var(--wp-admin--admin-bar--height,0px)); min-height:calc(100svh - var(--wp-admin--admin-bar--height,0px)); height:auto; aspect-ratio:auto; }
.gr-page--products :is(.gr-hero--products,.gr-products-banner) .gr-media img { width:100%; height:100%; object-fit:cover; object-position:var(--gr-media-position,50% 50%); }
@media(max-width:600px) {
 .gr-page--products :is(.gr-hero--products,.gr-products-banner) .gr-media img { object-position:var(--gr-media-mobile-position,50% 50%); }
}
/* Keep the two existing Desktop columns: family and factory share one row. */
@media(min-width:1001px) {
 .gr-page--contact .gr-contact-form .gr-field--family,
 .gr-page--contact .gr-contact-form .gr-field--factory { grid-column:auto; }
}

@media(max-width:600px) {
 .gr-page--catalogue .gr-header:not(.is-scrolled) { background:transparent; border-color:#fff3; }
}

.gr-page--product-nav .gr-header{background:#fff}
/* Phone-only corrections; desktop compositions are unchanged. */
@media(max-width:600px){
 :is(.gr-page--contact,.gr-page--catalogue) header.wp-block-template-part{position:sticky;top:var(--gr-home-admin-offset,var(--wp-admin--admin-bar--height,0px))}
 :is(.gr-page--contact,.gr-page--catalogue) .gr-header-inner{display:flex;align-items:center;justify-content:space-between;min-height:40px;gap:24px}
 :is(.gr-page--contact,.gr-page--catalogue) .gr-header .gr-brand{position:relative;left:auto;top:auto;flex:none;width:44px;aspect-ratio:267/254;transform:none}
 :is(.gr-page--contact,.gr-page--catalogue) .gr-header .gr-brand picture{display:block;width:100%;height:100%}
 :is(.gr-page--contact,.gr-page--catalogue) .gr-header .gr-brand img{width:100%;height:100%;object-fit:contain}
 .gr-page--contact .gr-header:not(.is-scrolled){background:#fff;color:var(--wp--preset--color--blue)}
 .gr-page--home .gr-home-story .gr-story-copy{width:calc(100% - 48px);max-width:none;min-width:0;margin-inline:auto;padding-inline:0}
 .gr-page--home .gr-home-story .gr-story-copy>p{width:100%;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal;text-align:left}
 .gr-page--home .gr-home-story .gr-story-copy .wp-block-button__link{min-width:0;max-width:100%;white-space:normal}
}
@media(max-width:1000px){
 .gr-header .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open{position:fixed;inset:calc(var(--gr-home-admin-offset,0px) + 84px) 16px auto auto;width:min(360px,calc(100% - 32px));height:auto;min-height:0;max-height:calc(100svh - var(--gr-home-admin-offset,0px) - 100px);overflow:auto;padding:20px 24px;border-radius:18px;box-shadow:0 12px 40px rgb(7 40 53 / .22)}
 .gr-header .is-menu-open .wp-block-navigation__responsive-dialog{margin:0;width:100%}
 .gr-header .is-menu-open .wp-block-navigation__responsive-container-content{padding-top:36px;gap:0}
 .gr-header .is-menu-open .gr-nav-rails{display:flex;flex-direction:column;gap:4px;width:100%}
 .gr-header .is-menu-open .wp-block-navigation__container{gap:4px;font-size:16px;width:100%;align-items:stretch}
 .gr-header .is-menu-open .wp-block-navigation-item__content{padding-block:8px;color:var(--wp--preset--color--blue);text-shadow:none}
 .gr-header .is-menu-open .wp-block-navigation__responsive-container-close{top:0;right:0;color:var(--wp--preset--color--blue)}
}
/* Mobile navbar geometry and page-specific states only. */
@media(max-width:600px){
 .gr-page .gr-header{display:flex;align-items:center;height:76px;min-height:76px;padding:0 24px;transition:background-color 350ms ease,color 350ms ease,height 350ms ease,min-height 350ms ease,box-shadow 350ms ease}
 .gr-page .gr-header.is-scrolled{height:68px;min-height:68px;padding:0 24px}
 .gr-page .gr-header-inner{display:flex;align-items:center;justify-content:space-between;width:100%;height:44px;min-height:44px;gap:24px}
 .gr-page .gr-header .gr-brand{position:relative;left:auto;top:auto;display:block;flex:0 0 44px;width:44px;height:44px;aspect-ratio:auto;transform:none}
 .gr-page .gr-header .gr-brand picture{display:block;width:100%;height:100%}
 .gr-page .gr-header .gr-brand img{width:100%;height:100%;object-fit:contain;transform-origin:center;transition:transform 350ms ease,opacity 350ms ease}
 .gr-page .gr-header .gr-home-logo-color{position:absolute;inset:0;opacity:0}
 .gr-page .gr-header .wp-block-navigation{flex:0 0 44px;align-self:center;margin:0}
 .gr-page .gr-header .wp-block-navigation__responsive-container-open{position:relative;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;color:inherit}
 .gr-page .gr-header .wp-block-navigation__responsive-container-open svg{display:none}
 .gr-page .gr-header .wp-block-navigation__responsive-container-open::before{content:'';display:block;width:24px;height:18px;background:linear-gradient(currentColor,currentColor) 0 0/24px 2px no-repeat,linear-gradient(currentColor,currentColor) 0 8px/24px 2px no-repeat,linear-gradient(currentColor,currentColor) 0 16px/24px 2px no-repeat}
 .gr-page--contact header.wp-block-template-part{position:fixed;inset-inline:0;top:var(--gr-home-admin-offset,var(--wp-admin--admin-bar--height,0px))}
 .gr-page--contact .gr-header:not(.is-scrolled){background:transparent;color:white;border-bottom-color:transparent}
 .gr-page--contact .gr-header:not(.is-scrolled) .gr-home-logo-white{opacity:1;transform:scale(1.47108)}
 :is(.gr-page--catalogue,.gr-page--product-nav) header.wp-block-template-part{position:sticky;top:var(--gr-home-admin-offset,var(--wp-admin--admin-bar--height,0px))}
 :is(.gr-page--catalogue,.gr-page--product-nav) .gr-header:not(.is-scrolled){background:#fff;color:var(--wp--preset--color--blue);border-bottom-color:var(--gr-rule)}
 :is(.gr-page--catalogue,.gr-page--product-nav) .gr-header:not(.is-scrolled) .gr-home-logo-white{transform:none;opacity:1}
 .gr-page .gr-header.is-scrolled{background:#fff;color:var(--wp--preset--color--blue)}
 .gr-page .gr-header.is-scrolled .gr-home-logo-white{opacity:0}
 .gr-page .gr-header.is-scrolled .gr-home-logo-color{opacity:1;transform:scale(.82)}
}
@media(max-width:600px) and (prefers-reduced-motion:reduce){.gr-page .gr-header,.gr-page .gr-header .gr-brand img{transition:none}}
/* Editable semantic title: available to assistive technology, outside the visual composition. */
.gr-page--home .gr-home-seo-title{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
