/* Site-wide fixes on top of the Webflow styles.
   1. Floating bottom menu ("My portfolio · Projects · Contact · My CV" + "Let's chat").
   The Webflow version sized the pill as a % of the screen and the text in vw, so it squashed,
   wrapped or overlapped while resizing. Here the pill hugs its links, stays on one line, and
   text + padding scale together with the window. One --nav-f drives every size. */
.nav-container-2 {
  --nav-f: clamp(12px, 3vw - 3px, 17px);
  left: 0; right: 0;
  bottom: calc(max(12px, 2vh) + env(safe-area-inset-bottom, 0px));
  width: 100%; height: auto;
  padding: 0 16px; box-sizing: border-box;
  display: flex; justify-content: center; align-items: center;
  gap: 12px;
  pointer-events: none; /* the empty strip around the menu doesn't block the page */
}
.nav-container-2 > * { pointer-events: auto; }

.nav-container-2 .div-block-8 {
  display: flex; align-items: center; gap: 4px;
  width: auto; max-width: 100%; min-width: 0; height: auto;
  padding: 6px; box-sizing: border-box;
}
.nav-container-2 .div-block-8 .link-8,
.nav-container-2 .div-block-8 .link-8.w--current {
  flex: 0 1 auto; width: auto; min-width: 0; height: auto;
  padding: .85em 1.1em;
  border-radius: 100px;
  font-size: var(--nav-f); line-height: 1.1;
  white-space: nowrap; text-align: center;
  transition: background-color .2s ease, color .2s ease;
}
.nav-container-2 .div-block-8 .link-8.w--current,
.nav-container-2 .div-block-8 .link-8.w--current:hover { background-color: #000; color: #fff; }
.nav-container-2 .div-block-8 .link-8:not(.w--current):hover { background-color: rgba(0, 0, 0, .07); color: #000; }
/* dark menu on the case-study pages (Webflow's own hover turned this text black on black) */
.nav-container-2 .div-block-8.div_black .link-8 { color: #fff; }
.nav-container-2 .div-block-8.div_black .link-8:not(.w--current):hover { background-color: rgba(255, 255, 255, .14); color: #fff; }

/* "Let's chat": same height and text size as the menu pill */
.nav-container-2 .button-7 {
  flex: 0 0 auto;
  font-size: var(--nav-f); line-height: 1.1;
  padding: calc(.85em + 5px) 1.5em;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .nav-container-2 { --nav-f: clamp(17px, .4vw + 13px, 19px); }
  .nav-container-2 .div-block-8 .link-8,
  .nav-container-2 .div-block-8 .link-8.w--current { padding: .85em 1.4em; }
}
/* phones: Webflow hides "Let's chat" here, so the menu gets the whole width */
@media (max-width: 479px) {
  .nav-container-2 { --nav-f: clamp(11.5px, 4.4vw - 2.5px, 14px); padding: 0 12px; }
  .nav-container-2 .div-block-8 { gap: 2px; padding: 5px; }
  .nav-container-2 .div-block-8 .link-8,
  .nav-container-2 .div-block-8 .link-8.w--current { flex: 1 1 auto; padding: .85em .7em; }
}

/* Home page, 480–767px: Webflow laid the project list out as 9 squeezed columns side by side,
   which pushed the page wider than the screen. Stack them like on phones instead. */
@media (min-width: 480px) and (max-width: 767px) {
  .project-wrapper-2, .project-wrapper_container { flex-direction: column; }
  .project-wrapper_container { padding-top: 0; padding-bottom: 0; }
}
/* hero line under the big title: 100% width + 4em margin ran off the right edge */
.hero-bottom_text { width: auto; max-width: 100%; box-sizing: border-box; }
