/* Custom additions on top of the Webflow export. Bump ?v= in the pages after editing. */

/* Contact drawer */
.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}

.contact-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  width: min(440px, 100vw);
  padding: 32px;
  overflow-y: auto;
  box-sizing: border-box;
  background-color: #0c0c0c;
  border-left: 1px solid #ffffff14;
  color: #fff;
  font-family: Ppneuemachina, Tahoma, sans-serif;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .45s;
}

.contact-open .contact-overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease;
}

.contact-open .contact-drawer {
  transform: none;
  visibility: visible;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

.contact-open {
  overflow: hidden;
}

.contact-drawer-close {
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #ffffff14;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: opacity .2s;
}

.contact-drawer-close:hover {
  opacity: .8;
}

.contact-drawer-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 8px;
  font-family: Ppneuemachina, Tahoma, sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
}

.contact-drawer-title span {
  color: #ff6101;
}

.contact-drawer-lead {
  margin: 0 0 32px;
  color: #ffffffa3;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  background-color: #ffffff0d;
  color: #fff;
  text-decoration: none;
  transition: background-color .2s;
}

.contact-item:hover {
  background-color: #ffffff1a;
}

.contact-item-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.contact-item-label {
  color: #ffffff7a;
  font-size: 13px;
  line-height: 1.4;
}

.contact-item-value {
  overflow: hidden;
  font-size: 18px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-item-arrow {
  color: #ff6101;
  font-size: 20px;
}

.contact-copy {
  flex: none;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background-color: #ffffff14;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: opacity .2s;
}

.contact-copy:hover {
  opacity: .8;
}

.contact-cv {
  display: block;
  margin-top: auto;
  padding: 16px 24px;
  border-radius: 8px;
  background-color: #fff;
  color: #0c0c0c;
  text-align: center;
  text-decoration: none;
  transition: opacity .2s;
}

.contact-list + .contact-cv {
  margin-top: 32px;
}

.contact-cv:hover {
  opacity: .8;
}

.contact-drawer :focus-visible,
[data-contact-open]:focus-visible {
  outline: 2px solid #ff6101;
  outline-offset: 3px;
}

/* NDA block: NDA badge next to the text, eye next to the highlights */
.container.container-nda {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 80px;
  grid-template-areas:
    "nda  text text"
    "list list eye";
  column-gap: 40px;
  row-gap: 0;
  align-items: center;
}

.container-nda .nda-teaser {
  display: contents;
}

.container-nda .image-10 {
  grid-area: nda;
  width: 100%;
  max-width: 120px;
}

.container-nda .bold-text-7 {
  grid-area: text;
  font-size: 18px;
  line-height: 1.6;
}

.container-nda .image-11 {
  grid-area: eye;
  justify-self: end;
  width: 100%;
  max-width: 80px;
}

.nda-highlights {
  grid-area: list;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #ffffff1f;
}

.nda-highlights ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.nda-highlights li {
  position: relative;
  padding-left: 28px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
}

.nda-highlights li + li {
  margin-top: 6px;
}

.nda-highlights li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #ff6101;
}

.nda-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 8px;
  background-color: #ffffff14;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  transition: opacity .2s;
}

.nda-cta:hover {
  opacity: .8;
}

.nda-cta span {
  color: #ff6101;
}

/* Marquee: the content holds two identical halves and moves by -50%, so it must be exactly as wide as its items */
.marquee-content {
  width: max-content;
}

/* Short descriptions in case studies */
.case-text {
  margin: 0;
  font-family: Ppneuemachina, Tahoma, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  text-align: center;
  opacity: .72;
}

.case-text.case-intro {
  max-width: 640px;
  text-align: left;
}

/* Hero subtitle */
.hero-subtitle {
  max-width: 560px;
  margin: 24px 0 0;
  color: #ffffffa3;
  font-family: Ppneuemachina, Tahoma, sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
}

@media screen and (max-width: 767px) {
  /* Phones: everything in one column, in reading order */
  .container.container-nda {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "nda"
      "text"
      "list"
      "eye";
    row-gap: 20px;
  }

  .container-nda .image-10 {
    max-width: 96px;
  }

  .container-nda .image-11 {
    justify-self: start;
    max-width: 60px;
  }

  .nda-highlights {
    margin-top: 0;
    padding-top: 20px;
  }

  .hero-subtitle {
    font-size: 18px;
  }
}

@media screen and (max-width: 479px) {
  .container-nda .bold-text-7,
  .case-text {
    font-size: 16px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .contact-drawer {
    padding: 24px 20px;
  }

  .contact-drawer-title {
    font-size: 32px;
  }

  .nda-highlights li {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-overlay,
  .contact-drawer,
  .contact-open .contact-overlay,
  .contact-open .contact-drawer {
    transition: none;
  }

  .marquee-content {
    animation: none;
  }
}

/* Project card hover effect: the hover image slides in from the bottom (layers are added by site.js on pointer devices) */
.fx-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.fx-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-position: 50%;
  background-size: cover;
  pointer-events: none;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.fx-hover {
  clip-path: inset(100% 0 0 0);
  transition: clip-path .5s cubic-bezier(.7, 0, .2, 1), transform .55s cubic-bezier(.2, .7, .2, 1);
}

.fx-card.is-hovered .fx-layer {
  transform: scale(1.04);
}

.fx-card.is-hovered .fx-hover {
  clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  .fx-layer,
  .fx-hover {
    transition: none;
  }

  .fx-card.is-hovered .fx-layer {
    transform: none;
  }
}
