.button-container {
  display: flex;
  padding: 10px 5px;
}
.button-container.light {
  background-color: #ffffff;
}
.button-container.dark {
  background-color: #151c15;
}
.button-group {
  flex: 0 1 auto;
  margin: 10px;
}
h3 {
  font-size: .8em;
  font-weight: bold;
}
pre {
  font-family: monospace;
  font-size: .7em;
}
.light h3, .light pre { color: #000000; }
.dark h3, .dark pre { color: #ffffff; }

/* Call to Action Styles */
.transform-isolation-wrapper {
    /* Create a new stacking context */
    transform: translateZ(0);
    position: relative;
    z-index: 10;
    display: inline-block;
    
    /* Ensure we're establishing a flat transform context */
    transform-style: flat;
    backface-visibility: hidden;
    
    /* Preserve original positioning */
    margin: 0;
    padding: 0;
}
.expertise-card .case-study-btn.exp-btn {
    /* Reset any transforms that might have been inherited */
    transform-style: flat;
    backface-visibility: hidden;
}
.case-study-btn {
    isolation: isolate;
    position: relative;
	width: 185px;
	display: block;
    transform: translateZ(0);
}
.case_study_btn {
  position: relative;
  display: block;
  width: 185px;
  height: 185px;
  margin: 0px 0px 0px 0px;
  padding: 0px 0px 0px 0px;
  cursor: pointer;

  transform-style: flat;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.case_study_btn:before {
	display: none;
}
.curve-wrapper {
  position: absolute;
  width:100%;
  height: 100%;
  top: 0%;
  left: 50%;
  transform: translate(-50%, 0%);
  transform-origin: center center;
  
  animation: rotateText 20s linear infinite;
  transform-style: preserve-3d;
  transform-origin: center center;
}

.curved-text,
.curved-text2 {
  position: absolute;
  width: 175px;
  font-family:"lft-etica-mono";
  font-weight: 300;
  font-size: .5rem;
  text-transform: uppercase;
  letter-spacing: 0px;

  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}
.btn-a1 .curved-text,
.btn-a1 .curved-text2 {
  color: #141C16;
}
.btn-a2 .curved-text,
.btn-a2 .curved-text2 {
  color: #ffffff;
}
.curved-text {
  top: 20px;
  left: 0px;
}
.curved-text2 {
  top: 25px;
  left: 0px;
}
.curved-text span,
.curved-text2 span {
  min-width: 0.5em;
  text-align: center;
  padding: 0;
  margin: 0;
  /* border: .005rem solid red; */

  transform-origin: center bottom;
  backface-visibility: hidden;
}

.case_study_center {
  position: absolute;
  display: block;
  background: #b2e327;
  top:50%;
  left: 50%;
  width: 87px;
  height: 87px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  
  display: flex;
  justify-content: center;
  align-items: center;
  color: black;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
}
.case_study_center span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-study-btn .arrow {
  flex: auto;
  width: 45px;
  height: 44px;
}
.case-study-btn .draggable_arrow {
  flex: auto;
  width: 55px;
  height: 35px;
}
.case-study-btn.reverse .arrow {
  transform: rotate(-120deg);
}
.case-study-btn .case_study_center span {
  transition: transform 0.3s ease;
}
.case-study-btn:hover .case_study_center span {
  transform: rotate(28deg);
}
.case-study-btn.reverse:hover .case_study_center span {
  transform: rotate(-32deg);
}

.case_study_btn:hover .curve-wrapper {
  animation-play-state: paused;
}

@keyframes rotateText {
  0% {
    transform: translateX(-50%) rotate(0deg);
  }
  100% {
    transform: translateX(-50%) rotate(360deg);
  }
}

/* Button Base Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 8px 8px 15px;
  border-radius: 11px;
  text-decoration: none;
  
  transition: all 0.3s ease;
  cursor: pointer;
  
  font-family: "Instrument Sans", serif;
  font-size: .8em;
  font-weight: 400;
  line-height: 1rem;
}
.btn:before {
	display: none;
}
.btn:hover {
  text-decoration: none;
}
.btn span,
.bottomBadge .arrow-parent {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin: 0px 0 0 10px;
}
.btn .arrow,
.bottomBadge .arrow {
  flex: auto;
  width: 15px;
  height: 14px;
  transition: transform 0.3s ease;
}

.btn:hover .arrow,
.bottomBadge:hover .arrow {
  transform: rotate(27deg);
}

.btn-b1 {
  background-color: transparent;
  color: #141C16;
  border: .05rem solid #999999;
}
.btn-b1 span {
  background: #B3E327;
}
.btn-b1:hover {
  background-color: #141C16;
  color: #FFFFFF;
  border: .05rem solid #141C16;
}

/* Button B2 */
.btn-b2 {
  background-color: transparent;
  color: #FFFFFF;
  border: .05rem solid #ffffff;
}
.btn-b2 span {
  background: #B3E327;
}
.btn-b2:hover {
  background-color: #FFFFFF;
  color: #141C16;
  border: .05rem solid #FFFFFF;
}

/* Button B3 */
.btn-b3 {
  background-color: transparent;
  color: #141C16;
  border: .05rem solid #B3E327;
}
.btn-b3 span {
  background: #B3E327;
}
.btn-b3:hover {
  background-color: #B3E327;
  color: #141C16;
  border: .05rem solid #B3E327;
}
.btn-b3:hover span {
  background: #ffffff;
}

/* Button B4 */
.btn-b4 {
  background-color: transparent;
  color: #ffffff;
  border: .05rem solid #B3E327;
}
.btn-b4 span {
  background: #B3E327;
}
.btn-b4:hover {
  background-color: #B3E327;
  color: #141C16;
  border: .05rem solid #B3E327;
}
.btn-b4:hover span {
  background: #ffffff;
}

/* Button B5 */
.btn-b5 {
  background-color: #141C16;
  color: #FFFFFF;
  border: .05rem solid #141C16;
}
.btn-b5 span {
  background: #B3E327;
}
.btn-b5:hover {
  background-color: #B3E327;
  color: #141C16;
  border: none;
  border: .05rem solid #B3E327;
}
.btn-b5:hover span {
  background: #ffffff;
}

/* Button B6 */
.btn-b6 {
  background-color: #b3e327;
  color: #141c16;
  border: 0.05rem solid #b3e327;
}
.btn-b6 span {
  background: #ffffff;
}
.btn-b6:hover {
  background-color: #ffffff;
  color: #141c16;
  border: none;
  border: 0.05rem solid #b3e327;
}
.btn-b6:hover span {
  background: #b3e327;
}

/* Play Video Button */
.play-video {
  background-color: rgba(255,255,255,.15);
  /* color: #141C16; */
  color: #fff;
  border: .05rem solid #B3E327;
  border-radius: 1.5rem;
  padding: 8px 20px 8px 8px;
  backdrop-filter: blur(2.5px);
}
.play-video span {
  width: 27px;
  height: 27px;
  margin: 0 10px 0 0;
}
.play-video svg {
    width: 27px;
    height: 27px;
}
.custom-cursor {
	position: fixed;
	pointer-events: none;
	transform: translate(-50%, -50%);
    pointer-events: none;
    /* mix-blend-mode: difference; */
	/* transition: all 0.3s ease; */
}

.bottomBadge {
  position: fixed;
  bottom: 20px;
  right: 0px;
  padding: 10px 10px 8px 10px;
    border-radius: 5px 0 0 5px;
    text-transform: uppercase;
    font-family: 'owners-xnarrow', sans-serif;
    font-weight: 500;
    letter-spacing: 2px;
    font-size: 35px;
    line-height: .88;
    text-decoration: none;
    width: 172px;
    height: 80px;
  transition: all 0.3s ease;
  z-index: 10;
  /* inset: auto 0px 20px auto !important; */
  border: none !important;
  /* inset: auto 0px 20px auto !important; */
}
.blackBadge {
  background-color: #011514;
  color: #fff;
}
.greenBadge {
  background-color: #B3E327;
  color: #011514;
}
.blackBadge:hover {
  color: #ffffff;
  background: #B3E327;
  text-decoration: none;
}

.greenBadge:hover {
  color: #B3E327;
  background: #011514;
  text-decoration: none;
}

.bottomBadge .text {
  display: inline;
  word-break: break-word;
}

.bottomBadge .arrow-parent {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin: -5px 0px 0px 0px;
  vertical-align: middle;
}
.blackBadge .arrow-parent {
  background: #B3E327;
}
.greenBadge .arrow-parent {
  background: #ffffff;
}
.bottomBadge:hover .arrow-parent {
  background: #ffffff;
}
@media (max-width: 600px) {
    .bottomBadge {
        font-size: 18px;
        line-height: 1.1;
        width: 105px;
        height: 47px;
        padding: 5px 5px 4px 5px;
    }
    .bottomBadge .arrow-parent {
        width: 20px;
        height: 20px;
        margin: -3px 0px 0px 0px;
    }
    .btn .arrow, .bottomBadge .arrow {
        width: 7px;
        height: 7px;
    }
}


/* CLOSE BUTTONS */
.close-btn {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    cursor: pointer;
  }
  .close-btn.d1 {
    border: 1px solid #02c275;
  }
  .close-btn.d2 {
    border: 1px solid #02c275;
  }
  .close-btn.d3 {
    border: 1px solid #b2e327;
  }
  .close-btn.d4 {
    border: 1px solid #b2e327;
  }
  .close-btn.e1 {
    border: 1px solid #889088;
  }
  .close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  .close-btn::before,
  .close-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 2px;
    transform-origin: center;
  }
  .close-btn.d1::before,
  .close-btn.d1::after,
  .close-btn.d3::before,
  .close-btn.d3::after {
    background-color: #000;
  }
  .close-btn.d2::before,
  .close-btn.d2::after,
  .close-btn.d4::before,
  .close-btn.d4::after {
    background-color: #ffffff;
  }
  .close-btn.e1::before,
  .close-btn.e1::after {
    background-color: #889088;
  }
  .close-btn {
    transition: border-color 0.3s ease;
  }
  
  .close-btn::before,
  .close-btn::after {
    transition: background-color 0.3s ease;
  }
  
  .close-btn.d1:hover {
    border-color: #02c275;
    background-color: #02c275;
  }
  .close-btn.d2:hover {
    border-color: #02c275;
    background-color: #02c275;
  }
  .close-btn.d3:hover {
    border-color: #b2e327;
    background-color: #b2e327;
  }
  .close-btn.d4:hover {
    border-color: #b2e327;
    background-color: #b2e327;
  }
  .close-btn.e1:hover {
    border-color: #5d685d;
    background-color: #5d685d;
  }
  .close-btn.d1:hover::before,
  .close-btn.d1:hover::after,
  .close-btn.d2:hover::before,
  .close-btn.d2:hover::after,
  .close-btn.e1:hover::before,
  .close-btn.e1:hover::after {
    background-color: #ffffff;
  }
  
  .close-btn.d3:hover::before,
  .close-btn.d3:hover::after,
  .close-btn.d4:hover::before,
  .close-btn.d4:hover::after {
    background-color: #000;
  }
  
  .close-btn::before,
  .close-btn::after {
    transition: all 0.3s ease;
  }
  
  /* Transform X into face parts */
  .left-eye {
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    top: 30%;
    left: 28%;
    opacity: 0;
    transition: all 0.4s ease;
  }
  .right-eye {
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    top: 35%;
    right: 28%;
    opacity: 0;
    transition: all 0.4s ease;
  }
  .left-eye.d1,
  .right-eye.d1,
  .left-eye.d3,
  .right-eye.d3 {
    background-color: #000;
  }
  .left-eye.d2,
  .right-eye.d2,
  .left-eye.d4,
  .right-eye.d4 {
    background-color: #fff;
  }
  .close-btn.winky:hover::before {
    width: 45px;
    height: 1px;
    background-color: transparent;
    transform: translate(-45%, 10px) rotate(-15deg);
  }
  .close-btn.d1.winky:hover::before,
  .close-btn.d2.winky:hover::before {
    border-bottom: 1px solid #ffffff;
  }
  .close-btn.d3.winky:hover::before,
  .close-btn.d4.winky:hover::before {
    border-bottom: 1px solid #000000;
  }
  .close-btn.winky:hover::after {
    opacity: 0;
  }
  
  .close-btn.d1:hover .left-eye,
  .close-btn.d1:hover .right-eye,
  .close-btn.d2:hover .left-eye,
  .close-btn.d2:hover .right-eye {
    background-color: #ffffff;
    opacity: 1;
  }
  .close-btn.d3:hover .left-eye,
  .close-btn.d3:hover .right-eye,
  .close-btn.d4:hover .left-eye,
  .close-btn.d4:hover .right-eye {
    background-color: #000;
    opacity: 1;
  }
  
  /* For winky face variation */
  .close-btn.winky:hover .right-eye {
    height: 1px;
    top: 30%;
    border-radius: 0px;
  }
  /* Define winking animation */
  @keyframes wink {
    0%,
    75%,
    100% {
      height: 11px;
      border-radius: 50%;
      top: 30%;
    }
    80%,
    85% {
      height: 1px;
      border-radius: 0px;
      top: 35%;
    }
  }
  .close-btn:hover .right-eye {
    animation: wink 2s infinite ease-in-out;
  }