/* Layout */
html,
body {
  height: 100%;
  overflow: hidden;
}
/* Keep the regular arrow cursor on links and buttons (no hand cursor) */
a,
button {
  cursor: default;
}
.site-container,
.scene__container {
  width: 1140px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & footer */
.site-header {
  position: fixed;
  top: 44px;
  left: 0;
  width: 100%;
  z-index: 900;
}
.site-header a {
  display: block;
  position: relative;
}
.site-header__logo {
  max-width: 200px;
}
.site-footer {
  position: fixed;
  bottom: 44px;
  left: 0;
  width: 100%;
  z-index: 900;
}
.site-footer__contact {
  float: right;
  text-align: right;
}
.site-footer__contact p {
  margin: 0;
  color: #ccc;
  font-size: 12px;
}
.site-footer__contact a {
  color: #aaa;
  font-size: 12px;
}
.site-footer__contact .site-footer__made {
  margin-top: 8px;
}

/* Full-screen sections (one per screen, snap scrolling) */
.sections {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.sections::-webkit-scrollbar {
  display: none;
}
.section {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Section dots (right side) */
.dots {
  position: fixed;
  top: 50%;
  right: 17px;
  z-index: 100;
  transform: translateY(-50%);
}
.dots a {
  display: block;
  position: relative;
  width: 14px;
  height: 13px;
  margin: 7px;
}
.dots a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: #333;
  transition: all 0.1s ease-in-out;
}
.dots a:hover::after {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
}
.dots a.active::after {
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
}

/* Scene */
.scene__content {
  max-width: 250px;
  position: relative;
  z-index: 1;
}
.scene__title {
  margin-bottom: 20px;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.23;
  color: inherit;
}
.scene__outer-circle {
  --size: 500px;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: calc(var(--size) / -2);
  margin-left: calc(var(--size) / -2);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  transition: transform 0.3s ease-out 0.2s;
}
.scene__outer-circle--home,
.scene__outer-circle--orange {
  background-image: linear-gradient(-180deg, #a40014 0%, #f07264 28%, #fea180 57%, #fcc88d 100%);
}
.scene__outer-circle--blue {
  background-image: linear-gradient(-180deg, #4438a6 0%, #3a5bc2 28%, #57a1f2 57%, #b6b5ec 100%);
}
.scene__outer-circle--cyan {
  background-image: linear-gradient(-180deg, #00bdb9 0%, #5de9e5 25%, #d3fefd 70%, #ffdfb6 100%);
}
.scene__outer-circle--purple {
  background-image: linear-gradient(-180deg, #142256 0%, #4a52a5 37%, #ba97db 76%, #ffb797 100%);
}
.animate-circle .scene__outer-circle {
  transition: transform 0.32s ease-in;
  transform: scale3d(5.5, 5.5, 5.5);
}
.scene__inner-circle {
  position: absolute;
  top: 30%;
  left: 30%;
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 calc(var(--size) * 0.04) rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease-out;
}

/* Small screens: stack the text above a smaller circle */
@media screen and (max-width: 767px) {
  .section {
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 90px 0 110px;
  }
  .scene__title {
    font-size: 30px;
    margin-bottom: 12px;
  }
  .scene__outer-circle {
    --size: min(calc(100vw - 40px), calc(96svh - 430px));
    position: relative;
    top: auto;
    left: auto;
    flex-shrink: 0;
    margin: 4vh auto 0;
  }
  .dots {
    right: 0;
  }
  .dots a {
    margin: 7px 4px;
  }
}

/* Showcase (case study modal) */
.showcase {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  margin: auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s 0.14s;
}
.showcase--active {
  opacity: 1;
  visibility: visible;
}
.showcase__separator {
  background: #4144b0;
  border-radius: 8px;
  width: 88px;
  height: 8px;
  margin: 62px 0;
}
.showcase__content {
  margin-top: -160px;
}
.showcase__content::after {
  content: '';
  position: absolute;
  width: 1000px;
  height: 1000px;
  top: -444px;
  right: -480px;
  border-radius: 50%;
  z-index: -1;
  background: rgba(0, 0, 0, 0.05);
}
@media screen and (max-width: 414px) {
  .showcase__content::after {
    display: none;
  }
}
.showcase__content-row {
  padding-bottom: 160px;
}
.showcase__content-row:last-child {
  padding: 0;
}
.showcase p {
  font-weight: 300;
  letter-spacing: 1.25px;
}
.showcase__image-1 {
  margin-top: -88px;
  height: 90vw;
  max-height: 600px;
}
.showcase__image-2 {
  margin-top: -48px;
  float: right;
  height: 100vw;
  max-height: 500px;
}
.showcase__image-3 {
  margin-top: -88px;
  height: 100vw;
  max-height: 600px;
}
@media screen and (max-width: 768px) {
  .showcase__image-1,
  .showcase__image-2,
  .showcase__image-3 {
    margin-top: 32px;
  }
  .showcase__content-row {
    padding-bottom: 80px;
  }
  .showcase__mobile-center-text {
    text-align: center;
  }
}
.showcase__link {
  margin: 80px 0 140px;
}
.showcase__top-bg {
  position: relative;
  height: 500px;
  z-index: -2;
}
.showcase__top-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 150%;
  height: 278%;
  border-radius: 50%;
  background-color: #fff;
  transform: translate(-50%, 14%);
}
@media screen and (max-width: 768px) {
  .showcase__top-bg {
    height: 400px;
  }
  .showcase__top-bg::after {
    width: 174%;
  }
}
@media screen and (max-width: 414px) {
  .showcase__top-bg {
    height: 370px;
  }
  .showcase__top-bg::after {
    width: 220%;
  }
}
.showcase--orange .showcase__top-bg {
  background-image: linear-gradient(-180deg, #a80618 0%, #f27968 28%, #bbf9f7 100%);
}
.showcase--blue .showcase__top-bg {
  background-image: linear-gradient(-180deg, #4438a6 0%, #3a5bc2 28%, #57a1f2 100%);
}
.showcase--cyan .showcase__top-bg {
  background-image: linear-gradient(-180deg, #03beba 0%, #71ece9 28%, #bbf9f7 100%);
}
.showcase--purple .showcase__top-bg {
  background-image: linear-gradient(-180deg, #162459 0%, #464e9e 31%, #9387c9 100%);
}
.showcase__close {
  position: fixed;
  right: 24px;
  top: 24px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0 none;
  border-radius: 50%;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
.showcase__close:hover {
  transform: scale(1.06);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
}
.showcase__close::before,
.showcase__close::after {
  position: absolute;
  top: 13px;
  left: 23px;
  content: ' ';
  height: 22px;
  width: 2px;
  border-radius: 1px;
  background-color: #222;
}
.showcase__close::before {
  transform: rotate(45deg);
}
.showcase__close::after {
  transform: rotate(-45deg);
}
