/* Marion Isolation, home page mockup v1 */

:root {
  --navy: #0e3568;
  --blue: #044699;
  --red: #9d0927;
  --red-dark: #7a061e;
  --text: #393939;
  --muted: #5d6470;
  --soft: #f3f5f9;
  --white: #fff;

  --font-body: "Nunito", system-ui, sans-serif;
  --font-ui: "Montserrat", system-ui, sans-serif;
  --font-display: "Montserrat", system-ui, sans-serif;
  --display-weight: 400;
  --heading-weight: 400;

  --header-h: 88px;
  --intro-overlap: 96px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
  --radius: 14px;
  --shadow: 0 12px 40px rgba(14, 53, 104, .1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 18px; border-radius: 999px; background: var(--navy); color: var(--white);
  font: 600 .95rem var(--font-ui); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Shared text styles */

.overline {
  margin-bottom: .5rem;
  color: var(--muted);
  font: 400 .95rem/1.4 var(--font-ui);
  letter-spacing: .01em;
}

.section-title {
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: var(--heading-weight);
  font-size: clamp(2.2rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.section-title--center { margin-bottom: clamp(28px, 4vw, 48px); text-align: center; }

/* h3: the weight of the section titles, about two thirds of their size at every width */
.expertise__title, .card__title, .value__title {
  font-family: var(--font-display);
  font-weight: var(--heading-weight);
  font-size: clamp(1.5rem, 2.2vw, 1.8rem);
  line-height: 1.2;
}

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 30px; border: 2px solid var(--red); border-radius: 999px;
  background: var(--red); color: var(--white);
  font: 600 1rem/1.2 var(--font-ui); text-decoration: none; text-transform: uppercase;
  transition: background-color .2s, border-color .2s, color .2s;
}
.button:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.button--outline { background: var(--white); color: var(--red); }
.button--outline:hover { border-color: var(--red); background: var(--red); color: var(--white); }
/* On the navy intro box: white outline, quiet next to the red calls to action */
.button--light { border-color: var(--white); background: var(--navy); color: var(--white); }
.button--light:hover { border-color: var(--white); background: var(--white); color: var(--navy); }
.button--light:focus-visible { outline-color: var(--white); }

/* Two-line button: the call to action and its promise underneath */
.button--stacked { flex-direction: column; gap: 4px; padding-block: 12px; text-align: center; }
.button__sub { color: #ffd6d6; font: 400 .875rem/1.3 var(--font-body); text-transform: none; }
.button:hover .button__sub { color: var(--white); }
.button--outline .button__sub { color: var(--red); }
.button--outline:hover .button__sub { color: #ffd6d6; }
/* Navy outline: the hero phone button, next to the red quote button */
.button--navy { border-color: var(--navy); color: var(--navy); }
.button--navy:hover { border-color: var(--navy); background: var(--navy); }
.button--navy .button__sub { color: var(--navy); }
.button--navy:hover .button__sub { color: var(--white); }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(14, 53, 104, .08); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
}
.site-header__logo img { width: auto; height: 64px; transition: height .25s; }
.site-header.is-scrolled .site-header__logo img { height: 54px; }

.site-nav { display: flex; align-items: center; gap: clamp(24px, 4vw, 64px); }
.site-nav__list { display: flex; gap: clamp(20px, 2.4vw, 36px); }
.site-nav__list a {
  color: #333; font: 500 1rem var(--font-ui); text-decoration: none;
  padding-block: 6px; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav__list a:hover { color: var(--red); border-color: var(--red); }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1px solid #d6dbe4; border-radius: 999px;
  background: var(--white); color: var(--navy);
  font: 600 .9rem var(--font-ui); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; content: "";
  transition: transform .2s, opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */

.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(560px, calc(100svh - var(--header-h)), 820px);
}

.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media::after {
  position: absolute; inset: 0; content: "";
  background: linear-gradient(90deg, #fff 0%, #fff 34%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, 0) 72%);
}
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 50%;
  animation: hero-zoom 16s ease-in-out infinite alternate;
}
/* The photo keeps the top two thirds of the square original; framed on the ceiling discs */
.hero__slide--2 { object-position: 70% 45%; opacity: 0; animation: hero-fade 16s ease-in-out infinite, hero-zoom 16s ease-in-out infinite alternate; }

@keyframes hero-fade {
  0%, 40% { opacity: 0; }
  50%, 90% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero__inner { position: relative; z-index: 1; }
.hero__text { max-width: 640px; padding-block: 56px 140px; }
.hero__text .overline { margin-bottom: 1rem; }

.hero__title {
  margin-bottom: 1.75rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(2.5rem, min(5.4vw, 8.8svh), 4.6rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.hero__lead { max-width: 30em; margin-bottom: 2.5rem; color: var(--navy); font-size: clamp(1.3rem, 1.95vw, 1.6rem); line-height: 1.45; }
/* Flex rows stretch their items, so both buttons share the height of the taller one */
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px 16px; }

/* Wide screens: the hero fills the first screen and stays pinned under the header while the
   intro box slides over it, then scrolls away once the box overlaps it by --intro-overlap.
   The spacer gives the pinned hero that much scroll; the intro's negative margin takes it back. */
@media (min-width: 961px) and (prefers-reduced-motion: no-preference) {
  .hero { position: sticky; top: var(--header-h); min-height: calc(100svh - var(--header-h)); }
  .hero-stack::after { display: block; height: var(--intro-overlap); content: ""; }
}

/* Intro box */

.intro { position: relative; z-index: 2; margin-top: calc(-1 * var(--intro-overlap)); }
.intro__box {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(36px, 6vw, 72px) clamp(28px, 6vw, 88px);
  border-radius: var(--radius);
  background: var(--navy); color: var(--white);
  box-shadow: var(--shadow);
}
.intro__box::after {
  position: absolute; right: -40px; bottom: -70px; width: 300px; aspect-ratio: 2644 / 1411; content: "";
  background: rgba(255, 255, 255, .07);
  -webkit-mask: url("logo/marion-symbole.svg") center / contain no-repeat;
  mask: url("logo/marion-symbole.svg") center / contain no-repeat;
}
.intro__title {
  font-family: var(--font-display);
  font-weight: var(--heading-weight);
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  line-height: 1.3;
}
.intro__text { position: relative; z-index: 1; display: grid; gap: 1.25rem; justify-items: start; color: #e3e9f3; }

/* Client logos */

.clients { padding-block: clamp(56px, 7vw, 88px) clamp(24px, 4vw, 40px); }
.clients__viewport {
  overflow: hidden; margin-top: 1.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients__track {
  display: flex; gap: clamp(40px, 5vw, 72px); align-items: center;
  width: max-content; padding-block: 8px;
  animation: marquee 45s linear infinite;
}
.clients__viewport:hover .clients__track, .clients__viewport:focus-within .clients__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - clamp(40px, 5vw, 72px) / 2)); } }

.clients__item { display: flex; align-items: center; justify-content: center; height: 92px; }
.clients__logo { width: auto; height: 56px; max-width: 200px; object-fit: contain; }
.clients__logo--square { height: 76px; }
.clients__logo--tall { height: 84px; }

/* Expertises */

.expertises { padding-block: clamp(48px, 6vw, 80px) var(--section); }
.expertises__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.expertise { display: grid; align-content: start; justify-items: center; gap: 1.25rem; text-align: center; }
.expertise__photo {
  width: min(100%, 260px); aspect-ratio: 1;
  border-radius: 50%; object-fit: cover;
  box-shadow: var(--shadow);
}
.expertise__title { color: var(--navy); }

/* Before / after */

.before-after { padding-bottom: var(--section); }
.compare {
  position: relative; overflow: hidden;
  max-width: 1100px; margin-inline: auto; aspect-ratio: 1400 / 800;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.compare__img, .compare__before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; translate: -50% 0;
  background: var(--white); pointer-events: none;
}
.compare__handle::after {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; translate: -50% -50%; content: "‹ ›";
  display: grid; place-items: center;
  border-radius: 50%; background: var(--white); color: var(--navy);
  font: 700 1.1rem/1 var(--font-ui); box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}
.compare__tag {
  position: absolute; top: 18px; padding: 6px 14px; border-radius: 999px;
  background: rgba(14, 53, 104, .75); color: var(--white);
  font: 600 .85rem var(--font-ui); pointer-events: none;
}
.compare__tag--before { left: 18px; }
.compare__tag--after { right: 18px; }
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
}
.compare:has(.compare__range:focus-visible) { outline: 3px solid var(--blue); outline-offset: 4px; }

/* History */

.history { padding-bottom: var(--section); }
.history__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.history .section-title { text-align: right; }
.history__text { display: grid; gap: 1.1rem; justify-items: start; }
.history__text .button { margin-top: .75rem; }

/* Strengths: cards, then values, in the navy band */

.cards { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); margin-bottom: clamp(28px, 3.5vw, 44px); }
.card {
  display: grid; align-content: start; gap: .75rem;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--radius); background: var(--white);
  color: var(--text); text-align: center;
}
.card__title { color: var(--navy); }

.values {
  position: relative; overflow: hidden;
  padding-block: clamp(56px, 7vw, 88px) calc(clamp(56px, 7vw, 88px) + clamp(40px, 6vw, 80px));
  background: var(--navy); color: #e3e9f3;
}
.values::before {
  position: absolute; left: 50%; top: 66%; width: min(70vw, 760px); aspect-ratio: 2644 / 1411; translate: -50% -50%; content: "";
  background: rgba(255, 255, 255, .06);
  -webkit-mask: url("logo/marion-symbole.svg") center / contain no-repeat;
  mask: url("logo/marion-symbole.svg") center / contain no-repeat;
}
.values__list { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.value { display: grid; grid-template-columns: auto 1fr; align-content: start; align-items: center; gap: .6rem .75rem; }
.value__icon { width: 40px; height: 40px; fill: var(--white); }
.value p { grid-column: 1 / -1; }
.value__title { color: var(--white); }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 80px); fill: var(--white); }

/* Gallery */

.gallery { padding-block: clamp(40px, 5vw, 64px) var(--section); }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1.2vw, 16px); }
.gallery__item { position: relative; display: block; overflow: hidden; container-type: inline-size; border-radius: var(--radius); aspect-ratio: 1; background: var(--soft); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.04); }
/* On hover, a navy veil shows the title, centred and cut to --title-lines lines;
   the lightbox caption gives the title in full */
.gallery__item::before { position: absolute; inset: 0; z-index: 1; content: ""; background: rgba(14, 53, 104, .6); opacity: 0; transition: opacity .3s; }
.gallery__title {
  --title-lines: 3;
  position: absolute; top: 50%; left: 0; right: 0; z-index: 1; translate: 0 -50%;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--title-lines); line-clamp: var(--title-lines); overflow: hidden;
  padding-inline: 10%;
  color: var(--white); font: 600 clamp(.875rem, 5.5cqi, 1.125rem)/1.35 var(--font-ui); text-align: center; text-wrap: balance;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  opacity: 0; transition: opacity .3s;
}
.gallery__item:hover::before, .gallery__item:hover .gallery__title,
.gallery__item:focus-visible::before, .gallery__item:focus-visible .gallery__title { opacity: 1; }
.gallery__zoom {
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(255, 255, 255, .88); box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  pointer-events: none; transition: background-color .2s;
}
.gallery__zoom svg { width: 20px; height: 20px; fill: var(--navy); transition: fill .2s; }
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { background: var(--red); }
.gallery__item:hover .gallery__zoom svg, .gallery__item:focus-visible .gallery__zoom svg { fill: var(--white); }

/* Contact: the details at left, the map at right, edge to edge in the box */

.contact { padding-bottom: var(--section); }
.contact__box {
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  border-radius: var(--radius); background: var(--soft);
}
.contact__main {
  display: grid; justify-items: start; align-content: center; gap: 1rem;
  padding: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 64px);
}
.contact__title { text-wrap: balance; }
.contact__main .button { margin-top: .5rem; }
.contact__list { display: grid; gap: 1.1rem; margin-top: 1.75rem; color: var(--navy); }
.contact__list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.contact__list svg { width: 22px; height: 22px; margin-top: 2px; fill: var(--red); }
.contact__phone { font: 500 1.1rem/1.3 var(--font-ui); }
.contact__phone a { display: block; color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 600; text-decoration: none; }
.contact__phone a:hover { color: var(--red); }
.contact__social a { color: var(--navy); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contact__social a:hover { color: var(--red); }

/* Keyless Google embed, in Google's colours */
.contact__map { position: relative; isolation: isolate; min-height: 400px; background: var(--soft); }
.contact__map iframe { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; border: 0; }

/* Switch: the contact__map--duotone class recolours the map in navy and pale blue.
   The map turns grey, a "lighten" navy layer replaces the dark tones,
   a "multiply" pale blue layer the light ones. The layers let the mouse through. */
.contact__map--duotone { --map-dark: var(--navy); --map-light: #eef3fa; background: var(--map-light); }
.contact__map--duotone iframe { filter: grayscale(1) contrast(1.25); }
.contact__map--duotone::before,
.contact__map--duotone::after { position: absolute; inset: 0; content: ""; pointer-events: none; }
.contact__map--duotone::before { z-index: 1; background: var(--map-dark); mix-blend-mode: lighten; }
.contact__map--duotone::after { z-index: 2; background: var(--map-light); mix-blend-mode: multiply; }

/* Footer */

.site-footer { --footer-space: 28px; padding-block: calc(2 * var(--footer-space)) var(--footer-space); background: var(--navy); color: #d7deea; }
.site-footer__inner { display: grid; justify-items: center; gap: var(--footer-space); text-align: center; }
.site-footer__logo { width: 140px; }
.site-footer__tagline { max-width: 40em; font-style: italic; }
.site-footer a { color: var(--white); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-footer a:hover { color: #ffd0d8; }
.site-footer :focus-visible { outline-color: var(--white); }
.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px;
  width: 100%; padding-top: var(--footer-space); border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .88rem;
}
.site-footer__legal ul { display: flex; gap: 24px; }

/* Lightbox: GLightbox, recoloured; its overlay is appended to <body> */

#glightbox-body .goverlay { background: var(--navy); }
@media (min-width: 769px) {
  #glightbox-body .goverlay { background: rgba(14, 53, 104, .92); }
}
#glightbox-body .gbtn { background-color: rgba(14, 53, 104, .7); }
#glightbox-body .gbtn:hover { background-color: var(--red); }
/* Caption: the gallery title in full, white on the overlay, over a navy fade on phones */
#glightbox-body .gslide-description { background: none; }
#glightbox-body .gdesc-inner { padding: 16px 8px 0; }
#glightbox-body .gslide-desc { color: var(--white); font: 500 1.0625rem/1.5 var(--font-ui); text-align: center; text-wrap: balance; }
.glightbox-mobile #glightbox-body .gslide-description { padding: 32px 16px 48px; background: linear-gradient(rgba(14, 53, 104, 0), rgba(14, 53, 104, .9)); }

/* PARiSiAM signature: not part of the site; the kit's comments stay in French */

/* ---------- Signature de la maquette ----------
   Volontairement hors charte du client (blanc pur, gris froid, police système) :
   on doit voir au premier coup d'œil que ce n'est pas le site officiel. */

.signature {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  color: #3a3a3a;
  border: 1px dashed #9a9a9a;
  border-radius: 14px;
  padding: 12px 16px;
  font: 400 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0;
  text-align: left;
}
.signature p { margin: 0; }
.signature a { color: #3a3a3a; text-decoration: underline; text-underline-offset: 2px; }
.signature a:hover { color: #d62020; }
.signature :focus-visible { outline: 2px solid #d62020; outline-offset: 2px; }
.signature__logo { flex: none; display: block; cursor: pointer; }
.signature__logo img { display: block; width: 120px; height: auto; }
/* Icône « lien externe » (Lucide, external-link) : ces liens s'ouvrent dans un nouvel onglet */
.signature__externe { display: inline-block; width: .95em; height: .95em; margin-left: .2em; vertical-align: -.1em; }
/* Texte lu seulement par les lecteurs d'écran (inutile si le site a déjà sa classe .sr-only) */
.signature .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Encadré flottant, en bas à gauche, affiché pendant tout le défilement */
.signature--flottante {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 50;
  max-width: calc(100% - 32px);
  padding-right: 44px; /* place du bouton Fermer */
  box-shadow: 0 6px 24px rgba(0, 0, 0, .14);
  transition: opacity .25s, visibility .25s;
}
.signature--flottante.est-masquee { opacity: 0; visibility: hidden; }
/* Fermé par le visiteur (attribut hidden posé par le script) */
.signature--flottante[hidden] { display: none; }

/* Bouton Fermer, en haut à droite de l'encadré flottant */
.signature__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: #6a6a6a;
  cursor: pointer;
}
.signature__close:hover { background: #f2f2f2; color: #d62020; }
.signature__close svg { width: 16px; height: 16px; }

/* Même encadré en bas de page */
.note-maquette {
  background: #f2f2f2;
  padding: 24px var(--gutter);
  display: flex;
  justify-content: center;
}

@media (max-width: 560px) {
  .signature { gap: 12px; font-size: 12px; }
  .signature__logo img { width: 88px; }
  .signature--flottante { left: 8px; bottom: 8px; max-width: calc(100% - 16px); }
}

/* Responsive */

@media (max-width: 1080px) {
  .site-nav__list { gap: 18px; }
  .site-nav__list a { font-size: .95rem; }
}

@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .site-header__logo img { height: 54px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 20px;
    padding: 16px var(--gutter) 28px;
    background: var(--white); box-shadow: 0 16px 24px rgba(14, 53, 104, .08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid #e6e9ef; }
  .button--header { align-self: flex-start; }

  .intro__box, .history__inner, .contact__box { grid-template-columns: 1fr; }
  .contact__map { min-height: 340px; }
  .history .section-title { text-align: left; }
  .cards, .values__list { grid-template-columns: 1fr; }
  .cards { max-width: 560px; margin-inline: auto; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__media { position: relative; height: 31vw; min-height: 120px; max-height: 210px; }
  /* Eased fade (scrim curve): a straight 0–45 % fade left a hard line where it stopped */
  .hero__media::after {
    background: linear-gradient(0deg,
      #fff 0%, rgba(255, 255, 255, .738) 11.4%, rgba(255, 255, 255, .541) 20.4%,
      rgba(255, 255, 255, .382) 28.2%, rgba(255, 255, 255, .278) 33.9%, rgba(255, 255, 255, .194) 39%,
      rgba(255, 255, 255, .126) 43.8%, rgba(255, 255, 255, .075) 48.1%, rgba(255, 255, 255, .042) 51.7%,
      rgba(255, 255, 255, .021) 54.6%, rgba(255, 255, 255, .008) 57.1%, rgba(255, 255, 255, .002) 58.9%,
      rgba(255, 255, 255, 0) 60%);
  }
  .hero__text { padding-block: 20px 120px; }
  .button { padding-inline: 16px; text-align: center; text-wrap: balance; }
  .button__sub { font-size: .8125rem; text-wrap: balance; }
  .hero__actions .button { flex: 1 1 auto; }
  .expertises__list { grid-template-columns: 1fr; gap: 48px; max-width: 360px; margin-inline: auto; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .compare__handle::after { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide { animation: none; }
  .hero__slide--2 { display: none; }
  .clients__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .clients__track [aria-hidden="true"] { display: none; }
  .gallery__item img, .gallery__item::before, .gallery__title { transition: none; }
  #glightbox-body, #glightbox-body * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
