* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --thumbnail-border-radius: 16px;
}

html {
  background-color: #1a1b1e;
  overflow-y: auto;
  overflow-x: hidden;
}

body {
  font-family: "Geist", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 100vh;
}

p {
  font-family: "Geist", sans-serif;
  font-size: 16px;
  line-height: 1.4em;
  letter-spacing: 0px;
  color: #ffffff;
  margin-bottom: 20px;
}

b {
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
}

h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 75px;
  letter-spacing: 0px;
  color: #fdf9f8;
}

@media screen and (max-width: 767px) {
  h2 {
    font-size: 40px;
    line-height: 56px;
  }
}

.container {
  padding: 0 15px;
  margin: 0 auto;
  max-width: 1400px;
}

/* ELEMENTS */

.label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.02em;
  padding: 10px 20px;
  background-color: #7c9bfc;
  border-radius: 100px;
  margin-bottom: 24px;
}

.button--small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.02em;
  padding: 10px 20px;
  background-color: #7c9bfc;
  border-radius: 100px;
  margin-bottom: 24px;
  text-decoration: none;
  color: #000000;
  gap: 2px;
}

.button--regular {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
  padding: 20px 30px;
  background-color: #7c9bfc;
  border-radius: 100px;
  text-decoration: none;
  color: #fff;
  background-color: #26262b;
  gap: 7px;
}

/* HEADER */
.header {
  position: relative;
  margin: 86px auto 0;
  background-color: #fdf9f8;
  border: 1px solid #e0e2d9;
  padding: 7px;
  border-radius: 100px;
  z-index: 50;
  width: fit-content;
}

.header.hide {
  /* Remove hide functionality since header is no longer fixed */
  opacity: 1;
}

.nav--list {
  display: flex;
  list-style: none;
  gap: 3px;
}

.nav--link {
  display: inline-block;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(17, 17, 17, 1);
  text-decoration: none;
  padding: 14px 20px;
  line-height: 1;
  border-radius: 100px;
  white-space: nowrap;
}

.nav--button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  border: none;
  background-color: #33c68a;
  cursor: pointer;
}

/* active */
.nav--item.active .nav--link {
  background-color: #ff744b;
  color: #000000;
}

@media screen and (max-width: 767px) {
  .header {
    margin: 15px auto 0;
  }
  
  .header.hide {
    /* Remove hide functionality on mobile too */
    opacity: 1;
  }
  
  /* Video expanded by default on mobile */
  .hero .popupVideo {
    display: block;
  }
  
  .hero .popupVideo.collapse {
    width: 308px;
    height: auto;
    bottom: auto;
    overflow: visible;
  }
  
  .hero .popupVideo.collapse .btn-mute {
    display: flex;
  }
  
  .hero .popupVideo.collapse .popupVideo--actions {
    top: 28px;
    left: auto;
    right: 28px;
    width: auto;
    height: auto;
    justify-content: flex-end;
    align-items: flex-start;
  }
  
  .hero .popupVideo.collapse video {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  
  .hero .popupVideo.collapse .btn--collapse .on {
    display: block;
  }
  
  .hero .popupVideo.collapse .btn--collapse .off {
    display: none;
  }
  
  .hero .popupVideo.collapse .popupVideo--action {
    display: flex;
  }
}

/* HERO SECTION */

.hero {
  position: relative;
  padding: 120px 0 0;
  min-height: 100vh;
  overflow: hidden;
}

.hero--content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 20;
}

.hero--left {
  flex: 1;
}

.hero--title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 128px;
  line-height: 135px;
  letter-spacing: 0px;
  color: #ffffff;
  margin-bottom: 46px;
}

.hero--right {
  max-width: 42%;
}

.hero--text {
  font-weight: 300;
  width: 540px;
}

.hero--buttons {
  display: flex;
  gap: 16px;
}

/* footer  */
.footer {
  margin-top: 20px;
  padding: 25px 0 100px;
  text-align: center;
}

.footer p {
  margin-bottom: 0;
  padding-top: 33px;
}

.footer p b {
  font-size: 10px;
  font-weight: 300;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background-color: #33C68A;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #2aa870;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

@media screen and (max-width: 767px) {
  .back-to-top {
    bottom: 20px;
    left: 50%;
    width: 45px;
    height: 45px;
  }
  
  .back-to-top img {
    width: 18px;
    height: 18px;
  }
}

.hero .popupVideo {
  display: none;
}



@media screen and (max-width: 767px) {
  .hero .popupVideo {
    display: none; /* Hide hero intro video on mobile; one video only (about section) */
  }
  .hero {
    padding: 40px 0 0;
    min-height: 844px;
  }
  .hero .container {
    padding-left: 24px;
    padding-right: 24px;
    position: relative;
    z-index: 1;
  }
  .hero--content {
    display: block;
  }
  .hero--title {
    font-size: 64px;
    line-height: 75px;
    margin-bottom: 24px;
  }
  .hero--right {
    max-width: 100%;
  }
  .hero .label {
    margin-bottom: 8px;
  }
  .hero--text {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    margin-top: 8px;
    margin-bottom: 28px;
    line-height: 1.6;
  }
  .footer {
    padding-bottom: 170px;
  }
  .hero.hero-cubes {
    min-height: 844px;
  }
}
@media screen and (min-width: 768px) and (max-width: 992px) {
  .hero-cubes {
    height: 1400px;
  }
}

@media screen and (min-width: 769px) and (max-width: 1200px) and (orientation: landscape) {
  .hero-cubes {
    height: 1100px;
  }
  .hero {
    padding: 100px 0 0;
  }
}


/* Desktop: canvas must never capture input so wheel/trackpad scroll works anywhere */
.canvas-animation {
  position: absolute;
  top: 0;
  left: -1px;
  bottom: -1px;
  right: -1px;
  pointer-events: none !important;
  border: none;
}
#canvas-body {
  /* Desktop: never capture mouse/wheel so page scrolls normally (not just over scrollbar) */
  pointer-events: none !important;
}

/* Ensure canvas never blocks scrolling - allow all scroll gestures */
#canvas-body,
.canvas-animation {
  overscroll-behavior: auto;
}

/* Critical fix: Ensure canvas wrapper doesn't interfere with scrolling */
.canvas-animation {
  /* Already has pointer-events: none which is good */
  /* But ensure it doesn't capture any scroll events */
  will-change: auto;
}
.canvas-animation .icon {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -100px;
}
.page-content {
  min-height: 100%;
  width: 100%;
  transition: opacity 0.4s cubic-bezier(0.645, 0.045, 0.355, 1), visibility 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
}
#canvas-body {
  max-width: 100%;
  max-height: 100%;
  width: 100%!important;
  height: 100%!important;
  margin-left: 0;
  margin-right: 0;
  background-color: transparent;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ABOUT SECTION */

.about {
  padding: 90px 0 80px;
  height: auto;
}

.about--content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.about--right {
  max-width: 500px;
}

.about--item {
  margin-bottom: 54px;
}

.about--item p b {
  font-size: 16px;
  font-weight: 400;
}

.about .popupVideo {
  display: block;
}

@media screen and (max-width: 767px) {
  
  .about {
    padding: 30px 0 0;
  }
  .about--content {
    display: block;
  }
  .about--title {
    margin-bottom: 36px;
  }
  .about--right {
    max-width: 100%;
  }
  .about .popupVideo {
    display: block;
  }
  
  /* About section video expanded by default on mobile */
  .about .popupVideo:not(.collapse) {
    width: 308px;
    height: auto;
  }
  
  .about .popupVideo:not(.collapse) video {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* PRODUCT SECTION */

.projects {
  padding: 60px 0 0;
}

.projects--title {
  max-width: 650px;
  margin-bottom: 66px;
}

.projects--list {
  display: flex;
  flex-direction: column;
  /* gap: 40px; */
  border-top: 1px solid #ffffff4d;
}

.project--item {
  display: flex;
  gap: 40px;
  border-bottom: 1px solid #ffffff4d;
  padding: 69px 0;
  cursor: pointer;
}

.project--item--content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project--item--content p {
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.project--item--title {
  font-family: "Geist", sans-serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0px;
  color: #ffffff;
  margin: 0;
}

.project--item--title.project--item--role {
  font-size: 16px;
}

.project--item--slider {
  position: relative;
  width: 50%;
  height: 100%;
}

@media screen and (max-width: 767px) {
  .projects {
    padding: 30px 0 0;
  }
  .projects--title {
    margin-bottom: 35px;
  }
  .project--item {
    display: block;
    padding: 20px 0 50px;
  }
  .project--item--slider {
    margin-top: 30px;
    width: 100%;
  }
}

/* sliders */
.swiper--wrapper {
  position: relative;
  overflow: visible;
  margin: 0 -4px;
}
.swiper {
  position: relative;
  background-color: transparent;
  overflow: hidden;
}

.swiper .swiper-slide {
  /* background: #dfe1e7; */
  height: 100%;
  padding: 0 4px;
}

.swiper .swiper-slide a,
.swiper .swiper-slide .morph-dialog-root,
.swiper .swiper-slide .morph-dialog-trigger {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}
.swiper .swiper-slide img,
.swiper .swiper-slide video,
.swiper .swiper-slide .morph-dialog-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  image-rendering: auto;
}

/* Morphing dialog card: thumbnail with footer (title, subtitle, +) */
.morph-dialog-card {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
}
.morph-dialog-card .morph-dialog-thumb {
  flex: 1;
  min-height: 0;
}
.morph-dialog-card-footer {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}
.morph-dialog-card-meta {
  min-width: 0;
}
.morph-dialog-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
  color: inherit;
}
.morph-dialog-subtitle {
  font-size: 0.8125rem;
  margin: 0.15em 0 0;
  opacity: 0.9;
  color: inherit;
}
.morph-dialog-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.25rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
}
/* Dialog content layout: image fixed, body scrollable */
.morph-dialog-content-card .morph-dialog-full {
  flex-shrink: 0;
}
.morph-dialog-content-body {
  padding: 1.5rem;
  color: #fff !important;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.morph-dialog-content-body .morph-dialog-title-lg,
.morph-dialog-content-body .morph-dialog-subtitle-lg,
.morph-dialog-content-body .morph-dialog-description,
.morph-dialog-content-body p {
  color: #fff !important;
}
.morph-dialog-title-lg {
  font-size: 1.5rem;
  color: #fff !important;
}
.morph-dialog-subtitle-lg {
  font-size: 0.9375rem;
  margin-top: 0.25em;
  color: #fff !important;
}
.morph-dialog-description {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #fff !important;
}

.swiper .swiper-slide-1 {
  width: 100%;
  height: 550px;
}

.swiper .swiper-slide-1-2 {
  width: 50%;
  height: 204px;
}

.swiper .swiper-slide-1-4 {
  width: 25%;
  height: 204px;
}

.swiper-pagination {
  position: absolute;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin-top: 29px;
  padding: 6px 9px;
  width: auto !important;
  height: fit-content !important;
  border-radius: 100px;
  gap: 4px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #3c3c46 !important;
}
.swiper-pagination-bullet {
  display: inline-block !important;
  position: static !important;
  width: 4px;
  height: 4px;
  border-radius: 100px;
  background-color: #dfe1e7;
  opacity: 1;
  margin: 0 !important;
}
.swiper-pagination-bullet-active {
  background-color: #797757;
}


@media screen and (max-width: 767px) {
  .swiper-pagination {
    margin-top: 16px;
  }
  .swiper .swiper-slide {
    height: 350px;
  }
  .swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Video section */

.videoSection {
  padding: 90px 0;
}

.videoSection--title {
  max-width: 690px;
  font-size: 48px;
  margin: 0 auto 52px;
  text-align: center;
}


@media screen and (max-width: 767px) {
  .videoSection--title {
    font-size: 45px;
  }
}
/* video element */

.videoElement {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  font-size: 0;
  position: relative;
}

video {
  width: 100%;
}

.videoElement--controls {
  position: absolute;
  bottom: 23px;
  right: 39px;
  display: flex;
  gap: 16px;
  z-index: 2;
}

.videoElement--button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 110px;
  background: #ffffff;
  border: none;
}

.videoElement--button:hover {
  cursor: pointer;
}

.videoElement .sound-on,
.videoElement .sound-off {
  display: none;
}

.videoElement.muted .sound-on {
  display: block;
}

.videoElement:not(.muted) .sound-off {
  display: block;
}

@media screen and (min-width: 768px) {
  .videoElement--button--fullscreen {
    display: none!important;
  }
}

@media screen and (max-width: 767px) { 
  .videoSection {
    padding-bottom: 20px;
  }
  .videoElement--controls {
    right: 20px;
    bottom: 16px;
  }
}

/* FAQ SECTION */

.faq {
  padding: 60px 0;
}

.faq--content {
  background-color: #222228;
  border-radius: 48px;
  padding: 60px 50px;
}

.faq--title {
  font-size: 48px;
}

.accordion--item {
  border-bottom: 1px solid #ffffff4d;
}

.accordion--item:not(.show) .accordion--content {
  max-height: 0;
  overflow: hidden;
}

.accordion--button {
  border: none;
  background: transparent;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 65px;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-align: left;
  width: 100%;
  padding: 9px 0;
  outline: none;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .faq {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .faq--content {
    padding: 37px 24px 40px;
  }
  .faq--title {
    font-size: 45px;
    text-align: center;
  }
  .accordion--button {
    font-size: 24px;
    line-height: 25px;
    padding: 17px 0;
  }
  .accordion--content  p{
    line-height: 27px;
  }
}


/* pricing */

.pricing {
  padding: 60px 0;
}

.pricing--title {
  font-size: 48px;
  text-align: center;
}

.pricing--inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pricing--item {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 24px;
  color: #1a1b1e;
}

.pricing--item--title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 65px;
  letter-spacing: 0px;
  margin-bottom: 8px;
}

.pricing--price {
  font-family: "Geist", sans-serif;
  font-size: 36px;
  line-height: 1em;
  font-weight: 500;
  margin-bottom: 10px;
  margin-top: 26px;
  color: #26262B;
}

.pricing--price span:not(.price-number) {
  font-size: 16px;
  font-weight: 500;
}

.pricing--descr {
  font-family: "Geist", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1a1b1e;
  margin-bottom: 0;
}

.pricing--divider {
  border: none;
  border-top: 2px solid #0000001a;
  margin: 16px 0;
}

.pricing--list--title {
  font-family: "Geist", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4em;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  margin-top: 31px;
}

.pricing--list {
  margin-bottom: 5px;
}

.pricing--list li {
  font-family: "Geist", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6em;
  display: flex;
  align-items: start;
  gap: 12px;
}

.pricing--list li:before {
  content: '•';
}

.pricing--list__simple li {
  margin-left: 30px;
  font-weight: 400;
}

.pricing--item .btn {
  width: 100%;
}

.pricing--bottom-text {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding-top: 24px;
  color: #1a1b1e;
  margin-top: auto;
}

.pricing--item:nth-child(1) {
  background-color: #7c9bfc;
}

.pricing--item:nth-child(2) {
  background-color: #ff744b;
}

.pricing--item:nth-child(3) {
  background-color: #fec630;
}

.pricing--item:nth-child(4) {
  background-color: #d8d69d;
}
.pricing--item:nth-child(4) p {
  font-size: 18px;
}



@media screen and (min-width: 992px) {
  .pricing {
    padding-top: 40px;
  }
  .pricing--title {
    font-size: 56px;
    margin-bottom: 20px;
  }
  .pricing--item {
    display: flex;
    flex-direction: column;
  }
  .pricing--item:nth-child(1) .pricing--list,
  .pricing--item:nth-child(2) .pricing--list {
    min-height: 350px;
  }
  .pricing--item--title {
    margin-bottom: 15px;
  }
  .pricing--price {
    margin-bottom: 27px;
  }
  .pricing--inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* grid-template-rows: repeat(2, 1fr); */
    grid-auto-rows: minmax(min-content, max-content);
    gap: 24px;
  }

  .pricing--item:nth-child(1),
  .pricing--item:nth-child(2) {
    grid-row: span 2;
  }
}



.pricing--control {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.pricing--control.is-hidden {
  display: none;
}

.pricing--toggle {
  display: flex;
  gap: 0;
  background-color: #fff;
  padding: 8px;
  border-radius: 100px;
  border: 1px solid #fdf9f8;
}

.pricing--toggle--button {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4em;
  letter-spacing: -0.02em;
  color: #1a1b1e;
  padding: 10px;
  background-color: transparent;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.pricing--toggle--button.active {
  background: #33c68a;
  color: #36394a;
}

@media screen and (max-width: 767px) {
  .pricing {
    padding-top: 20px;
  }
  .pricing--title {
    margin-bottom: 17px;
  }
  .pricing--control {
    margin-bottom: 17px;
  }
  .pricing--toggle--button {
    font-size: 14px;
    
  }
  .pricing--item:nth-child(3) {
    order: 1;
  }
  .pricing--item:nth-child(1) {
    order: 2;
  }
  .pricing--item:nth-child(2) {
    order: 3;
  }
  .pricing--item:nth-child(4) {
    order: 4;
  }
  .pricing--list--title {
    margin-bottom: 5px;
  }
  .pricing--bottom-text {
    margin-top: 80px;
  }
}



/* .carousel {
  display: flex;
  height: 546px;
}

.carousel .slide {
  height: 100%;
  padding: 0 8px;
  pointer-events: none;
}

.carousel .slide img {
  height: 100%;
  border-radius: 26px;
} */

.hero-rotator-wrapper {
  display: inline-block;
  height: 141px;
  transform: translateY(0.24em);
  pointer-events: none;
}
.hero-rotator {
  display: inline-block;
  overflow: hidden;
  height: 100%;
  background-color: transparent;
}

@media screen and (max-width: 767px) {
  .hero-rotator-wrapper {
    height: 74px;
  }
  
}

video::-webkit-media-controls-panel {
  display: none !important;
  opacity: 1 !important;
}







.popupVideo {
  margin-top: 90px;
  margin-bottom: 90px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  z-index: 30;
  font-size: 0;
  max-width: 80%;
  max-height: 70%;
  width: 308px;
  max-height: 85%;
}

.popupVideo video {
  max-width: 100%;
}

.popupVideo--actions {
  position: absolute;
  top: 28px;
  right: 28px;
  display: flex;
  gap: 10px;
}

.popupVideo--action {
  position: absolute;
  bottom: 22px;
  left: 24px;
  right: 24px;
  width: auto;
}

/* if collapse  */
.popupVideo.collapse {
  width: 200px;
  height: 200px;
  bottom: 30px;
  overflow: hidden;
}

.popupVideo.collapse .btn-mute {
  display: none;
}

.popupVideo.collapse .popupVideo--actions {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.popupVideo.collapse video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popupVideo.collapse .btn--collapse .on {
  display: none;
}
.popupVideo.collapse .btn--collapse .off {
  display: block;
}

.popupVideo.collapse .popupVideo--action {
  display: none;
}

@media screen and (min-width: 992px) {
  .popupVideo.collapse {
    width: 200px;
    height: 200px;
  }
  
}

@media screen and (max-width: 767px) {
  .popupVideo {
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .popupVideo .button--regular {
    padding: 16px 20px;
    font-size: 14px;
  }
  
  /* Mobile collapse state - smaller video in corner (hero only; about stays in flow) */
  .popupVideo.collapse {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    width: 150px;
    height: 150px;
    margin: 0;
    z-index: 100;
  }

  /* About section: keep collapsed video in flow, right under the title */
  .about .popupVideo.collapse {
    position: relative;
    bottom: auto;
    right: auto;
    left: auto;
    width: 200px;
    height: 200px;
    margin-top: 24px;
    margin-bottom: 0;
    z-index: auto;
  }
}




.btn--circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 100%;
  border: 1px solid #dfe1e7;
  background-color: white;
}

/* video player buttons  */

/* if muted */
.btn-mute .mute-off {
  display: block;
}
.btn-mute .mute-on {
  display: none;
}

/* if not muted */
.btn-mute.on .mute-off {
  display: none;
}
.btn-mute.on .mute-on {
  display: block;
}

.btn--collapse .on {
  display: block;
}
.btn--collapse .off {
  display: none;
}






/* // loop */


.animation-container {
  width: 100vw;
  height: 546px;
  position: relative;
  overflow: hidden;
  margin-top: 30px;
}

.image-track {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
}

.image-track img {
  height: 100%;
  width: auto;
  object-fit: cover;
  border-radius: 26px;
}

/* Ensure swipe gestures work on touch devices */
@media (hover: none) and (pointer: coarse) {
  .project--item--slider {
    cursor: default;
  }
}

/* ============================================================================
   Project card modal (full-screen, vertically scrollable)
   ============================================================================ */
body.overflow-hidden {
  overflow: hidden;
  height: 100%;
}

/* When modal is open, only the content area scrolls; overlay does not */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(26, 27, 30, 0.98);
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s ease, opacity 0.2s ease;
  overflow: hidden;
  touch-action: none; /* overlay captures touch; content has pan-y below */
}

.project-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.project-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  transition: background-color 0.15s ease;
}

.project-modal__close:hover,
.project-modal__close:focus {
  background-color: rgba(255, 255, 255, 0.2);
  outline: none;
}

.project-modal__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.project-modal__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 4rem 1rem 2rem;
  touch-action: pan-y; /* only this area scrolls on touch */
  overscroll-behavior: contain; /* scroll chaining stays inside modal */
}

.project-modal__title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  color: #fff;
  margin: 0 0 1.5rem;
  text-align: left;
  max-width: var(--modal-hero-max-width, 900px);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  width: 100%;
}

.project-modal__hero {
  width: 100%;
  max-width: var(--modal-hero-max-width, 900px);
  margin: 0 auto 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
}

.project-modal__hero img,
.project-modal__hero video {
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--modal-hero-media-max-height, 70vh);
  object-fit: contain;
  object-position: center;
  vertical-align: middle;
  transform: scale(var(--modal-hero-zoom, 1));
  border-radius: 16px;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.project-modal__grid {
  max-width: var(--modal-grid-max-width, 900px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(var(--modal-grid-columns, 2), 1fr);
  gap: var(--modal-grid-gap, 0.75rem);
}

.project-modal__grid-item {
  border-radius: 16px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
}

.project-modal__grid-item img,
.project-modal__grid-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
  border-radius: 16px;
  image-rendering: auto;
}

@media screen and (max-width: 767px) {
  .project-modal__content {
    padding: 3.5rem 0.75rem 1.5rem;
  }

  .project-modal__close {
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
  }

  .project-modal__grid {
    gap: 0.5rem;
  }
}
