html,
body {
  margin: 0;
  padding: 0;
}

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

/* Fonts setup */

html {
  font-family: MFEK-Sans, sans-serif;
}

body {
  font-size: 24px;
}

@font-face {
  font-family: "MFEK-Sans";
  src: url("fonts/MFEK-Sans.woff2") format("woff2-variations");
  font-weight: 100 1000;
  font-stretch: 50% 200%;
  font-style: normal;
}

@font-face {
  font-family: "MFEK-Sans";
  src: url("fonts/MFEK-Sans-Italic.woff2") format("woff2-variations");
  font-weight: 100 1000;
  font-stretch: 50% 200%;
  font-style: italic;
}

/* Layout */

.column,
.nav-links {
  width: calc(100% - 40px);
  max-width: 1195px;
  margin: auto;
}

html {
  background-color: #5823ad;
  color: #eed3c0;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:where(a:link, a:visited) {
  color: inherit;
}

.upcase {
  text-transform: uppercase;
}

/* Navigation */

nav {
  height: auto;
  padding-top: 40px;
  position: sticky;
  width: 100%;
  top: 0;
  z-index: 1;
}

.nav-links {
  display: grid;
  grid-template-columns: 180px 1fr 1fr 1fr 1fr 220px;
  align-items: center;
  text-align: center;
  font-size: 28px;
  line-height: 1.2;
}

.nav-links :first-child {
  justify-self: start;
}

.nav-links :last-child {
  justify-self: end;
}

.nav-links>* {
  justify-self: center;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  text-decoration: underline;
}

.go-to-contact {
  border: 1px solid currentColor;
  line-height: 1;
  padding: 9px 22px 12px;
}

.go-to-contact svg {
  display: none;
}

.nav-links a.active {
  font-weight: 600;
  position: relative;
}

.nav-links a .wiggle {
  position: absolute;
  left: -20px;
  bottom: -30px;
  width: calc(100% + 40px);
}

h2 {
  margin: 0;
  font-weight: 900;
  font-stretch: 87.5%;
  letter-spacing: 0.06%;
  font-size: 66px;
  line-height: 1.1;
  text-wrap: balance;
}

section {
  margin-top: -200px;
  padding: 0 0 100px;
}

section .nav-links {
  position: relative;
}

section .nav-links::before {
  content: "";
  display: block;
  position: absolute;
  width: calc(100% + 60px);
  height: calc(100% + 40px);
  margin-top: -5px;
  margin-left: -30px;
  background-color: #ff7536;
  z-index: -1;
  clip-path: polygon(0px 0px,
      calc(100% - 10px) 25px,
      100% calc(100% - 20px),
      10px calc(100% - 5px));
}

/***********************
 * Start               *
 ***********************/

#start {
  text-align: center;
  margin-top: 0;
  min-height: calc(1100px + 100px);
  background-image: url(./assets/start-zap-1.svg), url(./assets/start-zap-2.svg);
  background-repeat: no-repeat;
  background-position: top left calc(50dvw - 911px - 390px),
    bottom right calc(50dvw - 1114px - 170px);
}

#start nav {
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0.3) 20%,
      rgba(0, 0, 0, 0.05) 65%,
      rgba(0, 0, 0, 0) 80%);
}

#start .nav-links {
  margin-top: 1px;
}

#start .nav-links::before {
  background: transparent;
}

.top-right-zap {
  position: absolute;
  top: 0;
  left: calc(50% - 144px);
  width: calc(50% + 144px);
  overflow: clip;
  z-index: -1;
}

.top-right-zap .zap {
  background-color: #ff7536;
  clip-path: polygon(0px 0px,
      1424px 0px,
      1424px 588px,
      1104px 726px,
      812px 387px,
      618px 447px,
      462px 188px,
      124px 194px);
  padding-bottom: 152px;
}

.top-right-zap .zap img,
.top-right-zap .zap::before {
  display: block;
  width: 1332px;
  height: 574px;
  object-fit: cover;
  object-position: center;
  margin-left: 110px;
  clip-path: polygon(2px 0,
      1332px 0,
      1332px 365px,
      1030px 574px,
      730px 289px,
      535px 372px,
      372px 158px,
      43px 172px);
}

.bottom-left-zap {
  position: absolute;
  top: 110px;
  right: calc(50% + 103px);
  width: 1176px;
  z-index: 0;
}

.bottom-left-zap .zap {
  background-color: #ff7536;
  clip-path: polygon(0px 0px,
      229px 291px,
      660px 236px,
      676px 522px,
      1000px 610px,
      873px 841px,
      1176px 1044px,
      0px 1044px);
  padding-top: 318px;
  padding-right: 230px;
}

.bottom-left-zap .zap img,
.bottom-left-zap .zap::before {
  display: block;
  width: 947px;
  height: 701px;
  object-fit: cover;
  object-position: center;
  clip-path: polygon(0px 0px,
      230px 117px,
      588px 13px,
      617px 212px,
      873px 326px,
      780px 566px,
      974px 701px,
      0px 701px);
}

.top-right-zap .zap img,
.bottom-left-zap .zap img {
  filter: grayscale() contrast(50%);
  mix-blend-mode: soft-light;
  opacity: 0.6;
}

.top-right-zap .zap::before,
.bottom-left-zap .zap::before {
  content: "";
  display: block;
  position: absolute;
  background-color: #5823ad;
}

.joker-logo {
  margin-top: 200px;
}

h2.tagline {
  margin-top: 20px;
  font-size: 122px;
  line-height: 1;
  font-weight: 900;
  font-stretch: 87.5%;
  text-wrap: auto;
}

/***********************
 * Agency              *
 ***********************/

#agency {
  background-color: #eeccc0;
  color: #2d2d2d;
  text-align: center;
  border-top: 1px solid transparent;
  border-image-source: url(./assets/top-agency-border.svg);
  border-image-slice: 100% 0% 0% 0%;
  border-image-outset: 107px;
  border-image-width: auto;
  border-image-repeat: repeat;

  background-image: url(./assets/agency-zap-2.svg);
  background-repeat: no-repeat;
  background-position: bottom 245px left calc(50dvw - 291px);

  position: relative;
  z-index: 10;

  padding-bottom: 150px;
}

#agency::before {
  content: url(./assets/agency-zap-1.svg);
  position: absolute;
  z-index: 11;
  right: calc(50% + 192px);
  margin-top: -45px;
}

#agency nav {
  margin-top: -20px;
  color: #5823ad;
  z-index: 12;
}

section .nav-links::before {
  /*background-color: #eeccc0;*/
  background-color: #f2d5cc;
}

#agency h2 {
  text-align: center;
}

#agency .column {
  margin-top: 150px;
}

.agency-facets {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

article {
  grid-area: 1 / 1;
  text-align: left;
  display: grid;
  grid-template-columns: 440px 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: "card description";
  align-items: center;
  min-height: 550px;
  margin: 60px 0;
}

article>img {
  grid-area: card;
  align-self: center;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  transition: transform 0.3s;
}

article .facet-description {
  grid-area: description;
}

article h3 {
  margin: 0;
  font-size: 52px;
  letter-spacing: -0.03%;
  font-weight: 900;
  font-stretch: 87.5%;
}

article .facet-description,
article h3 {
  display: none;
}

article.active .facet-description,
article.active h3 {
  display: block;
  z-index: 1;
}

article.active>img {
  transform: none;
}

.agency-facets-selector {
  display: grid;
  background-color: #2d2d2d;
  color: #eeccc0;
  grid-template-columns: auto auto auto auto;
  justify-content: space-between;
  padding: 8px 50px 10px;
  margin: 100px 60px 0;
}

.agency-facets-selector li {
  list-style: none;
  font-size: 23px;
  font-weight: 900;
  font-stretch: 87.5%;
  letter-spacing: -0.01%;
  text-transform: uppercase;
  padding: 0 50px;
  cursor: pointer;
}

.agency-facets-selector .active {
  background-color: #ff7536;
  color: #2d2d2d;
  margin: -20px 0;
  place-content: center;
  cursor: default;
  clip-path: polygon(0% 0%, 100% 5%, 98% 95%, 2% 100%);
}

.background-cards {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: clip;
}

.background-cards img {
  position: absolute;
  z-index: -1;
  transition: inset 0.2s, transform 0.2s;
}

.-first-config .c-1 {
  inset: 520px auto auto calc(50dvw + 190px);
  transform: rotate(20deg);
}

.-first-config .c-2 {
  inset: 610px auto auto calc(50dvw + 815px);
  transform: rotate(0deg);
}

.-first-config .c-3 {
  inset: 650px calc(50dvw + 866px) auto auto;
  transform: rotate(10deg);
}

.-first-config .c-4 {
  inset: 1120px calc(50dvw + 125px) auto auto;
  transform: rotate(0deg);
}

.-first-config .c-5 {
  inset: 1050px calc(50dvw + 822px) auto auto;
  transform: rotate(20deg);
}

.-first-config .c-6 {
  inset: 880px calc(50dvw + 770px) auto auto;
  transform: rotate(-5deg);
}

.-first-config .c-7 {
  inset: 960px auto auto calc(50dvw + 750px);
  transform: rotate(15deg);
}

.-second-config .c-1 {
  inset: 600px auto auto calc(50dvw - 450px);
  transform: rotate(-20deg);
}

.-second-config .c-2 {
  inset: 540px auto auto calc(50dvw + 615px);
  transform: rotate(18deg);
}

.-second-config .c-3 {
  inset: 880px calc(50dvw + 380px) auto auto;
  transform: rotate(12deg);
}

.-second-config .c-4 {
  inset: 1120px calc(50dvw - 344px) auto auto;
  transform: rotate(40deg);
}

.-second-config .c-5 {
  inset: 640px calc(50dvw + 780px) auto auto;
  transform: rotate(-5deg);
}

.-second-config .c-6 {
  inset: 700px calc(50dvw + 700px) auto auto;
  transform: rotate(6deg);
}

.-second-config .c-7 {
  inset: 640px auto auto calc(50dvw + 750px);
  transform: rotate(-4deg);
}

.-third-config .c-1 {
  inset: 950px auto auto calc(50dvw - 320px);
  transform: rotate(-186deg);
}

.-third-config .c-2 {
  inset: 800px auto auto calc(50dvw + 615px);
  transform: rotate(-5deg);
}

.-third-config .c-3 {
  inset: 1120px calc(50dvw + 430px) auto auto;
  transform: rotate(-32deg);
}

.-third-config .c-4 {
  inset: 1180px calc(50dvw - 520px) auto auto;
  transform: rotate(10deg);
}

.-third-config .c-5 {
  inset: 550px calc(50dvw + 650px) auto auto;
  transform: rotate(15deg);
}

.-third-config .c-6 {
  inset: 760px calc(50dvw + 740px) auto auto;
  transform: rotate(-10deg);
}

.-third-config .c-7 {
  inset: 840px auto auto calc(50dvw + 720px);
  transform: rotate(8deg);
}

.awards {
  margin: 20px 0 280px;
}

.awards ul {
  margin-top: 100px;
  margin-bottom: 0;
  padding-left: 0;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  list-style-type: none;
  gap: 55px 90px;
}

.awards li {
  place-content: center;
  align-items: center;
  display: flex;
  flex-flow: column;
}

.awards img {
  max-width: calc(100dvw - 40px);
  max-height: 180px;
  display: block;
  margin-bottom: 10px;
}

.awards .award-name,
.awards .award-for {
  display: block;
  margin: 0;
  line-height: 1.25;
  font-stretch: 87.5%;
}

.awards .award-for {
  font-stretch: 87.5%;
}

/***********************
 * Team                *
 ***********************/

#team {
  background-color: #2d2d2d;
  color: #eeccc0;
  border-top: 1px solid transparent;
  border-image-source: url(./assets/top-team-border.svg);
  border-image-slice: 100% 0% 0% 0%;
  border-image-outset: 100px;
  border-image-width: auto;
  border-image-repeat: repeat;
  background-image: url(./assets/team-zap.svg);
  background-position: center 30%;
  background-repeat: no-repeat;

  position: relative;
  z-index: 20;
}

#team .nav-links::before {
  /* background: #2d2d2d; */
  background: #262626;
}

#team .column {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: repeat(2, 420px);
  justify-content: center;
  gap: 80px 10px;
  margin-top: 100px;
  margin-bottom: 300px;
  isolation: isolate;
}

.team-member {
  display: grid;
  justify-items: center;
  grid-template-rows: 330px auto auto;
  position: relative;
  text-align: center;
}

.team-member .profile {
  object-fit: cover;
  grid-area: 1 / 1;
  border: 0 none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='251' height='333' fill='none'%3E%3Cpath fill='%23EECCC0' d='M0 0h251v333H0z'/%3E%3Cpath fill='%23E0B9AD' d='M251 271.1V333H0v-62.3a132.7 132.7 0 0 1 120.2-89.4 61.2 61.2 0 1 1 16.3.4A132.7 132.7 0 0 1 251 271Z'/%3E%3C/svg%3E");
  width: 250px;
  height: 333px;
  clip-path: polygon(0% 0%, 100% 2.5%, 97% 100%, 2% 98%);
  backface-visibility: hidden;
  transition: transform 0.3s;
  transition-delay: var(--folded-text-delay, 0.5s);
}

.team-member .card,
.team-member .dos {
  grid-area: 1 / 1;
  max-width: 256px;
  backface-visibility: hidden;
  transform: rotateY(180deg);
  transition: transform 0.3s;
  transition-delay: var(--folded-text-delay, 0.5s);
}

.team-member:nth-child(2n) .profile {
  clip-path: polygon(2% 0%, 98% 0%, 98% 99%, 0% 100%);
}

.team-member strong {
  text-transform: uppercase;
  font-size: 26px;
  font-weight: 900;
  font-stretch: 87.5%;
  line-height: 1;
  margin-top: 32px;
}

.team-member .role {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.1;
  text-wrap: balance;
}

#team .team-member {
  transform: none;
  transition: transform 0.3s;
  transition-delay: var(--folded-delay, 0.5s);
  transition-timing-function: ease-out;
}

#team .-folded .team-member {
  transform: var(--folded-transform);
  transition: none;
}

#team .-folded .team-member .profile {
  transform: rotateY(180deg);
  transition: none;
}

#team .-folded .team-member .card {
  transform: none;
  transition: none;
}

#team .-folded strong,
#team .-folded .role {
  opacity: 0;
  transition: none;
}

#team strong,
#team .role {
  opacity: 1;
  transition: opacity 0.3s;
  transition-delay: var(--folded-text-delay, 3s);
}

#team .column.-unfolded .team-member .profile,
#team .column.-unfolded .team-member .card,
#team .column.-unfolded .team-member .dos {
  transition-delay: 0ms !important;
}

#team .column:not(.-fully-unfolded) .team-member .dos,
#team .column.-fully-unfolded .team-member .card {
  display: none;
}

#team .column.-unfolded .team-member:hover .profile {
  transform: rotateY(180deg);
}

#team .column.-unfolded .team-member:hover .card,
#team .column.-unfolded .team-member:hover .dos {
  transform: none;
}

/***********************
 * Best cases          *
 ***********************/

#best-cases {
  background-color: #ff7536;
  color: #2d2d2d;
  min-height: 1400px;
  border-top: 1px solid transparent;
  border-image-source: url(./assets/top-best-cases-border.svg);
  border-image-slice: 100% 0% 0% 0%;
  border-image-outset: 81px;
  border-image-width: auto;
  border-image-repeat: repeat;
  background-image: url(./assets/best-cases-zap.svg);
  background-position: bottom 480px right calc(50dvw + 110px);
  background-repeat: no-repeat;

  display: grid;
  grid-template: 1fr / 1fr;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 360px;

  position: relative;
  z-index: 30;

  overflow-x: clip;
}

#best-cases nav {
  grid-area: 1 / 1;
  align-self: start;
  margin-top: -1px;
}

#best-cases .nav-links::before {
  /* background: #ff7536; */
  background: #ff834d;
}

#best-cases .wiggle path {
  stroke: #eeccc0;
}

#best-cases .joker-stack {
  fill: #eeccc0;
}

#best-cases .column {
  grid-area: 1 / 1;
  margin-top: 200px;
  z-index: 0;
  display: grid;
  align-items: center;
  padding-bottom: 200px;
}

#best-cases h2 {
  display: none;
}

#best-cases h3 {
  margin: 0;
  margin-bottom: 15px;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -0.03%;
  font-weight: 900;
  font-stretch: 87.5%;
}

#best-cases h4 {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.03%;
  font-weight: 800;
  font-stretch: 87.5%;
  text-wrap: balance;
}

.best-case {
  width: 620px;
  max-width: 45%;
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s, transform 0.5s;
  scroll-margin-top: 300px;
}

.best-case.-current {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.best-case:has(~ .best-case.-current),
.best-case.-current:first-child~.best-case:last-child {
  transform: translateX(-100px);
}

.best-case.-current~.best-case,
.best-case:first-child:has(~ .-current:last-child) {
  transform: translateX(100px);
}

.best-case p {
  font-size: 20px;
  line-height: 1.33;
}

.best-case p strong {
  font-weight: 800;
  font-stretch: 87.5%;
}

.case-navigation {
  background-color: transparent;
  width: 68px;
  height: 68px;
  border: 2px solid #2d2d2d;
  border-radius: 50%;
  color: #2d2d2d;
  cursor: pointer;

  position: absolute;
  top: calc(50% - 280px);
  z-index: 1;
}

.case-navigation.previous-case {
  right: min(50dvw + 745px, 100dvw - 150px);
}

.case-navigation.next-case {
  left: min(50dvw + 745px, 100dvw - 150px);
  color: #eeccc0;
  border-color: #eeccc0;
}

.case-navigation:hover,
.case-navigation:focus-visible {
  color: white;
  border-color: white;
}

.case-navigation:active {
  border-width: 4px;
}

.case-navigation svg {
  display: block;
  margin: auto;
}

@media screen and (max-width: 1545px) {
  .case-navigation {
    position: absolute;
    top: unset;
    bottom: 500px;
  }

  .case-navigation.previous-case {
    right: min(50dvw + 525px);
  }

  .case-navigation.next-case {
    left: unset;
    right: min(50dvw + 435px);
    color: #2d2d2d;
    border-color: #2d2d2d;
  }

  .case-navigation.next-case:hover,
  .case-navigation.next-case:focus-visible {
    color: white;
    border-color: white;
  }
}

.case-illustration {
  grid-area: 1 / 1;
  width: calc(50dvw + 250px);
  margin-bottom: 95px;
  align-self: end;
  justify-self: end;
  overflow: clip;
}

.illustration-zap {
  width: 100%;
  height: 100%;
  aspect-ratio: 1440 / 950;
  padding-top: 2.6%; /* 38px / 1440px = 2.6% */
  padding-left: 9%; /* 130px / 1440px = 9% */
  background-color: #5823ad;
  clip-path: polygon(0% 100%,
      25.8% 67.85%,
      20.9% 45.9%,
      29.9% 34.4%,
      28.6% 14.1%,
      46.8% 21.1%,
      57.2% 6.8%,
      77.8% 15.6%,
      100% 0%,
      100% 100%);
}

.illustration-zap .illustrations {
  width: 100%;
  height: 100%;
  clip-path: polygon(0% 100%,
      20% 67.4%,
      17% 46.7%,
      23.8% 32.4%,
      23.9% 13.9%,
      41.5% 19.5%,
      53% 8.5%,
      75.6% 15%,
      100% 0%,
      100% 100%);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  grid-area: 1 / 1;
}

.illustration-zap .illustrations img {
  width: 100%;
  height: 100%;
  grid-area: 1 / 1;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.illustration-zap .illustrations .-current {
  opacity: 1;
}

.illustration-zap .illustrations img:has(~ .-current),
.illustration-zap .illustrations img.-current:first-child~img:last-child {
  transform: translateX(-100px);
}

.illustration-zap .illustrations img.-current~img,
.illustration-zap .illustrations img:first-child:has(~ .-current:last-child) {
  transform: translateX(100px);
}

/***********************
 * Discover            *
 ***********************/

#discover {
  background-color: #eeccc0;
  color: #2d2d2d;
  text-align: center;

  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-image-source: url(./assets/discover-borders.svg);
  border-image-slice: 148 0 108 0;
  border-image-outset: 147px 0 108px 0;
  border-image-width: auto;
  border-image-repeat: repeat;

  padding-bottom: 50px;

  /* necessary so that .case-illustration from #best-cases stays behind */
  position: relative;
  z-index: 40;
  margin-top: -400px;
}

#discover nav {
  margin-top: -30px;
  color: #5823ad;
  z-index: 12;
}

#discover .column {
  margin-top: 80px;
  width: 100%;
  max-width: unset;
}

.locations {
  margin-top: 0;
  margin-bottom: 80px;
  font-size: 30px;
}

.maps {
  min-height: 100px;
  margin-bottom: 136px;
  border: 1px solid transparent;
  border-image-outset: 0 100vw;
  border-image-repeat: repeat round;
  border-image-slice: 0 fill;
  border-image-source: url(./assets/map-grid.svg);
  border-image-width: 1;
  display: grid;
  place-content: center;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.maps img, .pins {
  grid-area: 1 / 1;
  object-fit: contain;
  justify-self: center;
  width: 1573px;
  height: auto;
  max-width: calc(100dvw - 150px);
}

.maps .region-highlights {
  transition: transform 0.3s;
  transform: none;
}

.maps .region-highlights.-unscrolled {
  transform: translateX(0.45%) translateY(0.95%);
  transition: none;
}

.pins {
  grid-area: 1 / 1;
  aspect-ratio: 1573 / 778;
  position: relative;
}

.pin {
  display: block;
  aspect-ratio: 36 / 46;
  width: 2.2%;
  position: absolute;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="36" height="46" fill="none"%3E%3Cpath fill="%23EECCC0" d="m16.55 39.04 1.52 4.26 3.51-3.07.63 1-.42 1.62-.78 1.93-2.67 1.18-2.63-1.03-1.11-1.83.51-3.04 1.44-1.02Z"/%3E%3Cpath fill="%232D2D2D" d="m18.1 43.3-4.2-11.77H0V0h35.98v31.53h-13.9L18.1 43.31Z"/%3E%3Cpath fill="%23EECCC0" d="m30.4 17.38-1.23-.57.07-1.17-4.2-2.58-1.42 3.15.08 5.85-13.46-.32.84-7.02-2.7-2.62-3.65 2.63-.18 1.3-1.47.4-.17-1.56 1.56-.4 2.81-4.21 5.43-1.87 4.1 3.36-2.13 7.5L21 9.74l3.93-.9 2.84 1.26 1.8 5.3 1.15.61-.33 1.38Z"/%3E%3C/svg%3E');
  background-size: 100% 100%;
  transition: transform 0.2s, opacity 0.2s;
  transform-origin: bottom center;

  animation: pining 0.25s;
  animation-fill-mode: both;
}

@keyframes pining {
  0% { transform: scale(0); opacity: 0; }
  90% { transform: scale(1.2); }
  100% { transform: none; opacity: 1; }
}

.-unscrolled ~ .pin {
  animation-play-state: paused;
}

.pin:hover,
.pin:focus-visible {
  transform: scale(1.15);
}

.all-customers {
  display: none;
}

.pin-modal {
  position: absolute;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: grid;
}

.pin-modal::before {
  content: "";
  position: absolute;
  left: -20px;
  top: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  background-color: rgb(45, 45, 45, 0.7);
  clip-path: polygon(0 0, 100% 15px, calc(100% - 10px) 100%, 15px calc(100% - 15px));
}

.pin-modal-content {
  position: absolute;
  display: grid;
  grid-template-areas: "pin customers cross";
  grid-template-rows: auto;
  grid-template-columns: auto auto auto;
  gap: 15px;
  place-content: start start;
}

.pin-modal-content.-bottom-aligned {
  align-items: end;
  align-content: end;
}

.pin-modal-content.-right-aligned {
  grid-template-areas: "cross customers pin";
}

.pin-customers {
  grid-area: customers;

  display: grid;
  width: min-content;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: row;
  place-items: center;
  gap: 20px;
}

.pin-customers.-solo {
  gap: 0;
}

.map-customer {
  background-color: white;
  background-clip: padding-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
  line-height: 20px;
  color: #5823AD;
  padding: 5px;
  gap: 10px;
  text-align: center;
  min-width: 190px;
  text-decoration: none;

  border: 10px solid transparent;
}

.map-customer:link:hover,
.map-customer:link:focus-visible {
  transform: scale(1.05);
  text-decoration: underline;
}

.map-customer:nth-child(4n + 1) {
  padding: 5px 2px 5px 6px;
  border-width: 10px 20px 10px 7px;
  border-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="199" height="118" fill="none"%3E%3Cpath fill="%235823AD" d="m5.48 114.7 190.97 2.84-8.02-108.96-177 .49L5.48 114.7Z"/%3E%3Cpath fill="%23fff" d="m0 108.82 190.97 2.94L182.94 2.8 5.95 3.29 0 108.82Z"/%3E%3C/svg%3E')
    8% 10% fill;
}

.map-customer:nth-child(4n + 2) {
  padding: 5px 10px 2px 5px;
  border-width: 15px 10px 15px 10px;
  border-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="215" height="131" fill="none"%3E%3Cpath fill="%235823AD" d="m10.45 126.69 200.3 3.5 3.76-111.02L10.47 9.92l-.02 116.77Z"/%3E%3Cpath fill="%23fff" d="m2.08 116.66 200.3 3.62 3.76-111.04L2.1 0l-.01 116.66Z"/%3E%3C/svg%3E')
    15% 6.5% fill;
}

.map-customer:nth-child(4n + 3) {
  padding: 5px 5px 4px 2px;
  border-width: 15px;
  border-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="221" height="111" fill="none"%3E%3Cpath fill="%235823AD" d="m10.87 110.39 206.54-4.89.74-93.98-210.55.6 3.27 98.27Z"/%3E%3Cpath fill="%23fff" d="m3.26 103.08 206.55-4.8.75-93.98L0 4.9l3.26 98.18Z"/%3E%3C/svg%3E')
    15% 8% fill;
}

.map-customer:nth-child(4n) {
  padding: 5px 2px 5px 2px;
  border-width: 5px 20px 10px 15px;
  border-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="230" height="179" fill="none"%3E%3Cpath fill="%235823AD" d="m6.24 178.85 223.3-.17-3.11-167.26L6.26 9.43l-.02 169.42Z"/%3E%3Cpath fill="%23fff" d="M0 169.25h223.3L220.18 2 .03 0 0 169.25Z"/%3E%3C/svg%3E')
    6% 8% fill;
}

.map-customer img {
  max-width: 128px;
  max-height: 70px;
}

.highlighted-pin {
  grid-area: pin;
  font-size: 0;
  display: block;
  aspect-ratio: 36 / 46;
  width: 2.2%;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="37" height="47" fill="none"%3E%3Cpath fill="%23FF7536" d="m17.02 39.9 1.56 4.34 3.61-3.14.65 1.02-.43 1.66-.81 1.97-2.74 1.21-2.7-1.05L15 44.03l.53-3.1 1.48-1.04Z"/%3E%3Cpath fill="%23EECCC0" d="m18.6 44.25-4.3-12.03H0V0h37v32.22H22.7l-4.1 12.03Z"/%3E%3Cpath fill="%235823AD" d="m31.25 17.76-1.26-.58.07-1.2-4.31-2.64-1.46 3.22.08 5.98-13.84-.33.87-7.17-2.78-2.68-3.75 2.7-.18 1.32-1.52.4L3 15.19l1.6-.4 2.9-4.3 5.58-1.91L17.29 12l-2.2 7.67 6.5-9.74 4.04-.91 2.92 1.28 1.86 5.4 1.17.64-.33 1.4Z"/%3E%3C/svg%3E');
  background-size: 100% 100%;
}

.close-cross {
  grid-area: cross;
  font-size: 0;
  display: block;
  width: 22px;
  height: 22px;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"%3E%3Cpath fill="%23FF7536" d="M19.93 4.29 15.64 0 9.97 5.68 4.29 0 0 4.3l5.68 5.67L0 15.64l4.29 4.29 5.68-5.68 5.67 5.68 4.29-4.29-5.68-5.68 5.68-5.67Z"/%3E%3C/svg%3E');
  background-size: 100% 100%;
  align-self: start;
}

.selected-pin {
  visibility: hidden;
}

.customer-logos-scroller {
  margin: 50px 0;
  width: 100%;
  overflow: clip;
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr;
}

.customer-logos {
  display: flex;
  flex-flow: row;
  justify-content: start;
  align-items: center;
  justify-items: start;
  list-style-type: none;
  gap: 55px 60px;
  padding-left: 0;
  animation-name: logo-scroll;
  animation-duration: 30s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  animation-fill-mode: both;
  transform-origin: right center;
  width: max-content;
  padding-right: 60px;
}

.customer-logos.-cloned {
  animation-name: logo-scroll-clone;
}

.customer-logos.-first-row {
  grid-area: 1 / 1;
}

.customer-logos.-second-row {
  grid-area: 2 / 1;
  margin-top: 30px;
  animation-direction: reverse;
}

@keyframes logo-scroll {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes logo-scroll-clone {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(100%);
  }
}

.customer-logos li {
  display: grid;
  grid-template: 1fr / 1fr;
  place-content: center;
  align-items: center;
}

.customer-logos li img {
  display: block;
  /*grid-area: 1 / 1;*/
  max-width: 260px;
  max-height: 120px;
}

/***********************
 * Contact             *
 ***********************/

#contact {
  margin-top: 0;
  padding-top: 150px;
  padding-bottom: 50px;
  text-align: center;
  position: relative;
}

.contact-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 130px;
}

.big-contact-button {
  display: block;
  font-size: 30px;
  padding: 0 17px 5px;
  color: #2d2d2d;
  font-weight: 600;
  background: #ff7536;
  box-shadow: 0 7px #d85521;
  text-decoration: none;
}

.big-contact-button:hover,
.big-contact-button:focus-visible {
  background: #ff834d;
}

.big-contact-button:active {
  transform: translateY(5px);
  box-shadow: 0 2px #d85521;
}

.background-enveloppes {
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: clip;
}

.background-enveloppes img {
  position: absolute;
  animation: enveloppe-falling-y 7s, enveloppe-falling-x 4s,
    enveloppe-rotating 1.5s;
  animation-iteration-count: infinite, infinite, infinite;
  animation-direction: normal, alternate, alternate;
  animation-timing-function: linear, ease-in-out, ease-in-out;
  transform-origin: center;
  animation-fill-mode: both, both, both;
}

.background-enveloppes .e-1 {
  left: calc(50dvw - 952px);
  animation-delay: 0.8s;
}

.background-enveloppes .e-2 {
  left: calc(50dvw - 695px);
  animation-delay: 1.9s;
}

.background-enveloppes .e-3 {
  left: calc(50dvw - 143px);
  animation-delay: 2.2s;
}

.background-enveloppes .e-4 {
  left: calc(50dvw + 600px);
  animation-delay: 1.7s;
}

.background-enveloppes .e-5 {
  left: calc(50dvw + 720px);
  animation-delay: 0.7s;
}

.background-enveloppes .e-6 {
  left: calc(50dvw - 200px);
  animation-delay: 3.6s;
}

.background-enveloppes .e-7 {
  left: calc(50dvw + 240px);
  animation-delay: 5.4s;
}

.background-enveloppes .e-8 {
  left: calc(50dvw - 400px);
  animation-delay: 0s;
}

@keyframes enveloppe-falling-y {
  0% {
    top: -200px;
  }

  100% {
    top: calc(100% + 200px);
  }
}

@keyframes enveloppe-falling-x {
  0% {
    margin-left: -50px;
  }

  100% {
    margin-left: 50px;
  }
}

@keyframes enveloppe-rotating {
  0% {
    transform: translateX(-50%) rotate(-10deg);
  }

  100% {
    transform: translateX(-50%) rotate(10deg);
  }
}

.footer-links {
  width: calc(100% - 40px);
  max-width: 975px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
}

footer a {
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  text-decoration: underline;
}

.terms,
.credits {
  font-size: 14px;
}

.terms a,
.credits strong {
  font-weight: 600;
}

.linked-in-link img {
  vertical-align: -5px;
}

footer .linked-in-link:hover,
footer .linked-in-link:focus-visible {
  text-decoration: none;
}

footer .linked-in-link:hover span,
footer .linked-in-link:focus-visible span {
  text-decoration: underline;
}

body>.wiggle {
  display: none;
}

nav.-mobile {
  display: none;
}

.legal-header {
  text-align: center;
  margin-top: 40px;
}

main.legal {
  background-color: #eeccc0;
  color: #2d2d2d;
  padding: 20px 40px 30px;
  width: 1000px;
  margin: 20px auto 50px;
  max-width: calc(100dvw - 100px);

  clip-path: polygon(0 0,
      calc(100% - 10px) 20px,
      calc(100% - 5px) calc(100% - 20px),
      15px calc(100% - 10px));
}

main.legal h1 {
  font-size: 36px;
  font-weight: 900;
  font-stretch: 87.5%;
  margin: 50px 0;
  text-align: center;
}

main.legal h2 {
  font-size: 26px;
  font-weight: 900;
  font-stretch: 87.5%;
  margin: 50px 0 20px;
}

main.legal p,
main.legal li {
  font-size: 18px;
}


/**
 * Adaptativeness for lower resolutions (< HD)
 */

@media screen and (min-width: 800px) and (max-width: 1280px) {
  section .nav-links::before {
    margin-left: -20px;
    width: calc(100% + 40px);
  }

  article {
    grid-template-columns: 34dvw 1fr;
  }

  article>img {
    width: 30dvw;
  }

  .agency-facets-selector {
    margin: 0 min(2dvw, 60px);
    padding: 8px min(2dvw, 50px) 10px;
  }

  #team .column {
    grid-template-columns: repeat(4, 1fr);
  }

  .team-member {
    align-self: start;
    grid-template-rows: auto auto auto;
  }

  .team-member .profile,
  .team-member .card,
  .team-member .dos {
    width: 100%;
    height: auto;
    aspect-ratio: 0.75;
  }

  .best-case {
    width: 40dvw;
    max-width: unset;
  }

  .case-navigation.previous-case {
    left: 20px;
    right: unset;
  }

  .case-navigation.next-case {
    left: 100px;
    right: unset;
  }

  .maps {
    border-image-source: none;
    background-image: url(./assets/map-grid.svg);
    background-position: center center;
  }
}

/**
 * Mobile adaptation: best-effort, as it is not our main target anyway
 */

@media screen and (max-width: 800px) {
  body {
    font-size: 4dvw;
  }

  /* Mobile header: only show the active link */
  nav {
    padding-top: 5px;
  }

  .nav-links {
    width: 100%;
    max-width: 100dvw;
    grid-template-columns: 60px 1fr 60px;
    padding: 0 20px;
    font-size: 6.5dvw;
  }

  section .nav-links::before {
    width: 100%;
    height: calc(100% + 20px);
    margin-left: 0;
    clip-path: polygon(10px 15px,
        calc(100% - 10px) 20px,
        calc(100% - 5px) calc(100% - 20px),
        5px calc(100% - 10px));
  }

  section:not(:first-of-type) nav {
    margin-top: 20px;
  }

  .nav-links .joker-nav {
    grid-column: 1;
  }

  .nav-links .joker-nav svg {
    object-fit: contain;
    width: 75px;
  }

  .nav-links .active {
    grid-column: 2;
    margin-top: -10px;
  }

  .nav-links .go-to-contact {
    grid-column: 3;
    padding: 0;
    height: 55px;
    width: 55px;
    display: grid;
    place-content: center;
    margin-top: -2px;
  }

  .nav-links .go-to-contact span {
    display: none;
  }

  .nav-links .go-to-contact svg {
    display: block;
    width: 32px;
  }

  .nav-links a:not(.active):not(.go-to-contact):not(.joker-nav) {
    display: none;
  }

  /* Mobile menu */

  nav.-mobile {
    display: block;
    position: fixed;
    top: 0;
    right: 100dvw;
    z-index: 100;
    width: 98dvw;
    height: 100dvh;
    background-color: #262626;
    color: #262626;
    clip-path: polygon(0 0,
        calc(100% - 4dvw) 0,
        calc(100% - 6dvw) 100%,
        0 100%);
    padding: 0;
    transition: right 0.2s;
  }

  nav.-mobile::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 95dvw;
    width: 95dvw;
    height: 100dvh;
    background-color: #d85521;
    z-index: 1;
    clip-path: polygon(0 0,
        calc(100% - 2dvw) 0,
        calc(100% - 6dvw) calc(100% - 1dvh),
        0 100%);
    transition: right 0.2s;
  }

  nav.-mobile::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 95dvw;
    width: 95dvw;
    height: 100dvh;
    z-index: 2;
    background-color: #5823ad;
    clip-path: polygon(0 0,
        calc(100% - 5dvw) 0,
        calc(100% - 4dvw) calc(100% - 2dvh),
        0 100%);
    transition: right 0.2s;
  }

  .nav-menu {
    position: relative;
    right: 95dvw;
    width: 95dvw;
    height: 100dvh;
    z-index: 3;
    background-color: white;
    clip-path: polygon(0 0,
        calc(100% - 9dvw) 0,
        calc(100% - 6dvw) calc(100% - 3dvh),
        0 100%);
    display: grid;
    grid-template-columns: max-content;
    padding-left: 6dvw;
    padding-right: 8dvw;
    padding-bottom: 9dvh;
    align-items: center;
    justify-content: center;
    font-size: 8dvw;
    transition: right 0.2s;
  }

  .nav-menu a,
  .nav-menu a.go-to-contact {
    display: block;
    align-items: center;
    text-align: center;
    padding: 10px 20px;
    width: 100%;
    min-height: 10dvh;
    display: grid;
    place-content: center;
    text-decoration: none;
    font-weight: 600;
  }

  .nav-menu a.go-to-contact {
    border: 0 none;
  }

  nav.-mobile.-open {
    right: 2dvw;
  }

  nav.-mobile.-open::before {
    right: 5dvw;
    transition-delay: 0.05s;
  }

  nav.-mobile.-open::after {
    right: 5dvw;
    transition-delay: 0.1s;
  }

  nav.-mobile.-open .nav-menu {
    right: 2dvw;
    transition-delay: 0.15s;
  }

  nav.-mobile.-open .nav-menu a.active {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='169' height='30' viewBox='0 0 169 30' fill='none' %3E%3Cpath stroke='%23FF7536' stroke-miterlimit='10' stroke-width='8' d='M2.2 20.1 39.4 5.2l27.8 17.1 41-17.1 33 19.4L166.3 11' /%3E%3C/svg%3E");
    background-position: center bottom;
    background-repeat: no-repeat;
    padding-bottom: 20px;
  }

  /* #start: place everything as one screen height */

  #start {
    min-height: calc(100dvh + 80px);
    padding-bottom: 280px;
    background-position: top 40px right, bottom 150px right -400px;
  }

  .top-right-zap {
    width: 100dvw;
    height: 32dvh;
    left: 0;
    top: 0;
    z-index: 0;
  }

  .top-right-zap .zap {
    margin-left: unset;
    width: 100%;
    height: 100%;
    padding: 0;

    clip-path: polygon(95px 0px,
        100% 0px,
        100% 100%,
        77% 62%,
        59% 75%,
        45% 24%,
        135px 33%);
  }

  .top-right-zap .zap img,
  .top-right-zap .zap::before {
    clip-path: polygon(140px 26.5%,
        126px 0px,
        100% 0px,
        100% 80%,
        78% 58%,
        59% 65%,
        46% 18%);
    margin: 0;
    width: 100%;
    height: calc(100% - 2dvh);
  }

  .bottom-left-zap {
    position: relative;
    margin-top: 20px;
    margin-left: -20px;
    margin-bottom: -50px;
    width: 100dvw;
    height: 32dvh;
    left: 0;
    top: unset;
    bottom: 0;
    z-index: 0;
  }

  .bottom-left-zap .zap {
    margin-left: unset;
    width: 100dvw;
    height: 100%;
    padding: 0;

    clip-path: polygon(0 0,
        20% 15%,
        43% 8%,
        69% 25%,
        80% 66%,
        100% 100%,
        0 100%);
  }

  .bottom-left-zap .zap img,
  .bottom-left-zap .zap::before {
    clip-path: polygon(0 10%,
        22% 30%,
        43% 16%,
        66% 31%,
        75% 74%,
        100% 100%,
        0 100%);
    margin: 0;
    width: 100dvw;
    height: 100%;
  }

  .joker-logo img {
    width: 100%;
  }

  h2.tagline {
    font-size: 16dvw;
    margin-top: 2dvh;
  }

  /* #agency: show all facets as-is */

  #agency::before {
    right: 0;
    margin-top: 20px;
    z-index: -1;
  }

  #agency .column {
    margin-top: 70px;
  }

  h2 {
    font-size: 12dvw;
    line-height: 1;
  }

  .agency-facets {
    margin-top: 20dvw;
    grid-template-rows: repeat(4, min-content);
    gap: 15dvw 0;
    align-items: start;
  }

  .agency-facets-selector {
    display: none;
  }

  article {
    grid-area: unset;
    grid-template-columns: 1fr 3fr;
    grid-template-rows: min-content min-content;
    grid-template-areas:
      "card title"
      "description description";
    gap: 3dvw 5dvw;
    margin: 0;
    min-height: unset;
  }

  article>img {
    transform: none;
    width: 100%;
  }

  article .facet-description,
  article.active .facet-description {
    display: contents;
  }

  article .facet-description h3 {
    display: block;
    grid-area: title;
    font-size: 10dvw;
    line-height: 1.1;
  }

  article .facet-description h3+p {
    display: block;
    grid-area: description;
    margin: 0;
  }

  .-first-config .c-1 {
    inset: 10% auto auto -200px;
  }

  .-first-config .c-2 {
    inset: 25% -200px auto auto;
  }

  .-first-config .c-3 {
    inset: 35% auto auto -200px;
  }

  .-first-config .c-4 {
    inset: 45% -200px auto auto;
  }

  .-first-config .c-5,
  .-first-config .c-6,
  .-first-config .c-7 {
    display: none;
  }

  .awards {
    margin: 30dvw 0 300px;
  }

  /* #team: make it on two columns */

  #team .column {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    align-items: start;
    gap: 8dvw 2dvw;
    margin-bottom: 200px;
  }

  .team-member {
    grid-template-rows: auto auto auto;
  }

  #team .-folded .team-member {
    transform: none;
    transition: none;
  }

  .team-member strong {
    font-size: 5.5dvw;
    margin-top: 3dvw;
  }

  .team-member .role {
    font-size: 5dvw;
  }

  .team-member .profile,
  .team-member .card,
  .team-member .dos {
    width: 100%;
    height: auto;
    aspect-ratio: 0.75;
  }

  /* #best-cases */

  #best-cases {
    min-height: 100dvh;
    padding-bottom: 400px;
    background-position: top 70px left;
    grid-template-rows: 1fr auto;
    grid-template-columns: 1fr;
    align-items: start;
    justify-items: start;
  }

  #best-cases nav {
    margin-top: 20px;
  }

  #best-cases .column {
    margin-top: 140px;
    width: 100%;
    padding-inline: 20px;
    padding-bottom: 80px;
    overflow-x: clip;
    grid-row: 1;
    grid-column: 1;
    align-items: start;
  }

  .best-case {
    width: calc(100% - 50px);
    max-width: unset;
    display: none;
  }

  .best-case.-current {
    display: block;
  }

  .case-illustration {
    width: 125%;
    margin-bottom: 0;
    grid-row: 2;
    grid-column: 1;
    margin-left: 0;
    margin-bottom: 0;
  }

  .case-navigation.previous-case {
    display: block;
    inset: unset;
    margin-top: -80px;
    margin-left: 20px;
    grid-row: 2;
    grid-column: 1;
    place-self: start start;
    z-index: 10;
  }

  .case-navigation.next-case {
    display: block;
    margin-top: -80px;
    margin-left: 110px;
    inset: unset;
    grid-row: 2;
    grid-column: 1;
    place-self: start start;
    z-index: 20;
  }

  .case-navigation.previous-case:hover,
  .case-navigation.previous-case:focus,
  .case-navigation.next-case {
    color: #2d2d2d;
    border-color: #2d2d2d;
  }

  #best-cases h3 {
    line-height: 1;
  }

  /* #discover */

  #discover {
    padding-bottom: 5dvw;
    border-image-repeat: repeat none;
    /* Workaround weird bug on Chrome that let a pixel line appear */
    clip-path: polygon(0 -104px,
        100% -104px,
        100% calc(100% + 107px),
        0 calc(100% + 107px));
  }

  #discover h2 {
    max-width: calc(100% - 40px);
    margin: 0 auto 4dvw auto;
  }

  #discover nav {
    z-index: 9;
  }

  .locations {
    font-size: 6dvw;
    line-height: 1.2;
    margin-bottom: 10dvw;
  }

  .maps {
    border-image-source: none;
    background-image: url(./assets/map-grid.svg);
    background-position: center center;
    background-size: 5dvw;
    margin-bottom: 20dvw;
    justify-content: start;
    overflow-x: scroll;
    overflow-y: clip;
  }

  .maps img {
    object-fit: contain;
    max-width: unset;
    width: auto;
    max-height: 50dvh;
  }

  .pins {
    max-width: unset;
    width: 101dvh;
    height: 50dvh;
  }

  .selected-pin {
    visibility: visible;
  }

  .pin-modal {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgb(45, 45, 45, 0.7);
  }

  .pin-modal::before {
    display: none;
  }

  .pin-modal-content,
  .pin-modal-content.-right-aligned,
  .pin-modal-content.-bottom-aligned {
    width: 100%;
    height: 100%;
    grid-template-areas: "customers"
      "cross";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-content: center;
    justify-items: center;
    align-content: center;
    padding-left: 10px;
    padding-right: 10px;
    left: unset !important;
    right: unset !important;
    top: unset !important;
    bottom: unset !important;
  }

  .pin-modal-content .highlighted-pin {
    display: none;
  }

  .pin-customers {
    gap: 10px;
    width: unset;
    justify-self: center;
    grid-template-columns: 1fr 1fr;
  }

  .pin-customers.-solo {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .pin-customers.-solo .map-customer {
    max-width: 50%;
  }

  .map-customer {
    font-size: 14px;
    line-height: 14px;
    min-width: 100px;
    gap: 6px;
  }

  .map-customer img {
    max-width: 90px;
    max-height: 60px;
  }

  .customer-logos {
    gap: 20px;
  }

  /* #contact */

  .footer-links {
    flex-flow: column;
    gap: 10px;
  }

  .e-1,
  .e-2,
  .e-4,
  .e-5 {
    /* out of bounds, removing them on mobile */
    display: none;
  }

  .contact-wrapper {
    margin-top: 8dvw;
  }

  .big-contact-button {
    font-size: 6dvw;
  }
}
