*,
*::before,
*::after {
  box-sizing: border-box;
}
.inside-projet {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.project-name {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}
.imagesdescr {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%; 
  overflow-x: hidden; 
}
.imagesdescr5 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  height: 400px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%; 
  overflow-x: hidden; 
}
#imagesdescr {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
.imgdescr {
  height: 100%;
  width: 100%;
}
.imgdescr4 {
  flex: 1 1 calc(33.33% - 1rem);
  max-width: calc(33.33% - 1rem);
  height: auto;
  object-fit: cover;
  box-sizing: border-box;
}
.imgdescr2 {
  height: 300px;
  width: 300px;
  flex: 0 0 auto; 
}
.imgdescr3 {
  display: flex;
  left: 50%;
  height: 50%;
  width: 50%;
  flex: 0 0 auto; 
}
.antigone {
  display: flex;
  align-items: center;
  width: 100%;
  flex-direction: row;
  gap: 1rem;
}
.bordure {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: rgb(0, 0, 0) 2px solid;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1000px;
  max-height: 1200px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border-radius: 10px;
  border: rgb(255, 255, 255) 2px solid;
}
.modal-content {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: fill;
}
.close {
  position: absolute;
  top: 5px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  background: rgba(193, 193, 193, 0.2);
  border-radius: 15px;
  height: 40px;
  width: 40px;
  display: flex;
  z-index: 9000;
}
.cross {
  left: 6px;
  top: -13px;
  position: absolute;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}
.close:hover,
.close:focus {
  background: #e7e7e7;
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 2px px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  cursor: pointer;
}
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  user-select: text;
}
.prev {
  left: 0;
  background: rgba(193, 193, 193, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 2px px rgba(0, 0, 0, 0.1);
}
.next {
  right: 0;
  background: rgba(193, 193, 193, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 2px px rgba(0, 0, 0, 0.1);
}
.prev:hover,
.next:hover {
  background: #e7e7e7;
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 2px px rgba(0, 0, 0, 0.1);
}

@media only screen and (max-width: 768px) {
  h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    line-height: 1.3;
  }
  
  h2 {
    font-size: 0.9rem;
  }
  
  h3 {
    font-size: 1.1rem;
    line-height: 1.5;
  }
  
  p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .imagesdescr,
  .imagesdescr5,
  #imagesdescr {
    flex-direction: column;
    height: auto;
    align-items: center;
  }
  
  .imgdescr4 {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }
  
  .imgdescr2 {
    height: auto;
    width: 100%;
    max-width: 300px;
  }
  
  .imgdescr3 {
    width: 100%;
    max-width: 400px;
    height: auto;
  }
  
  .antigone {
    flex-direction: column;
    gap: 1rem;
  }

  .modal {
    width: 95%;
    max-width: 90vw;
    max-height: 90vh;
  }
  
  .modal-image {
    max-height: 80vh;
    width: 100%;
    object-fit: contain;
  }
  
  .prototype-cta {
    margin-top: 0.5rem;
  }
}

/* Sticky footer */
html, body {
  height: 100%;
}

.inside {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tout {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.footer {
  margin-top: auto;
}

/* Project header and thumbnail */
.project-header {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

.project-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4  ;
  margin-bottom: 0.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--apple-teal) 0%, var(--apple-cyan) 25%, var(--apple-cyan) 50%, var(--apple-violet) 75%, var(--apple-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-type {
  font-size: 0.95rem; 
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte);
  opacity: 0.85;
  text-align: left;
}

.project-thumbnail {
  width: 916px;
  height: 548px; 
  border-radius: 14px;
  overflow: hidden;
  margin: 2rem auto 0 auto;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(161, 161, 161, 0.15);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media only screen and (max-width: 768px) {
  .project-thumbnail {
    width: min(95vw, 916px);
    height: calc(min(95vw, 916px) * 0.598); 
  }
  
  .instay-scroll-gallery {
    margin-top: 0;
  }
  
  .instay-scroll-gallery.full-bleed-center {
    margin-top: 0;
  }
}

.project-thumbnail-large {
  width: 1010px;
  height: calc(1100px * 0.598);
  border-radius: 14px;
  overflow: hidden;
  margin: 2rem auto 0 auto; 
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(161, 161, 161, 0.15);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.project-thumbnail-large img,
.project-thumbnail-large video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media only screen and (max-width: 1200px) {
  .project-thumbnail-large {
    width: min(95vw, 1100px);
    height: calc(min(95vw, 1100px) * 0.598);
  }
}

.full-bleed-center {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: flex;
  justify-content: center;
}

.project-brief {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  margin-top: 2rem;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.brief-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.brief-cell {
  border-top: 1.5px solid var(--apple-blue);
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
}

.brief-label {
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--texte);
  font-size: 1.2rem;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.brief-value {
  color: var(--gris);
  line-height: 1.6;
  font-size: 1.1rem;
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
}

.project-brief {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.brief-media {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.brief-image {
  display: block;
  width: 100%;
  max-width: 916px;
  height: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.project-sync .brief-image {
  border-radius: 14px;
}

@media only screen and (max-width: 1200px) {
  .project-brief {
    gap: 1.75rem;
  }
  .brief-row {
    gap: 1.5rem;
  }
}

@media only screen and (max-width: 1024px) {
  .brief-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .project-brief {
    gap: 1.5rem;
  }
  .brief-value {
    font-size: 0.95rem;
    line-height: 1.3;
  }
  .brief-label {
    font-size: 0.85rem;
    border-top: 1.5px solid var(--apple-blue);
    padding-top: 1rem;
    margin-bottom: 0.25rem;
  }
  
  .brief-cell {
    border-top: none;
    padding-top: 0;
  }
  
  .brief-value {
    border-top: none;
  }
  
  .owner-app-section {
    margin-top: 0;
  }
  
  .prototype-cta {
    margin-top: 1rem;
  }
}

.project-media-wide {
  width: 100%;

}

.project-image-wide {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.project-sync .project-media-wide video.project-image-wide {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.clean-video-player {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  color: rgba(255, 255, 255, 0.92);
}

.clean-video-element {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.clean-video-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.8rem 0.9rem 0.65rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.64) 58%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
}

.clean-video-player.is-controls-hidden .clean-video-controls {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.clean-video-controls-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.clean-video-actions-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
}

.clean-video-play {
  flex-shrink: 0;
}

.clean-video-volume {
  display: inline-flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.capsound-page .clean-video-volume {
  display: none;
}

.clean-video-btn {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 0;
  touch-action: manipulation;
  opacity: 0.95;
  transition: opacity 140ms ease, background-color 140ms ease;
}

.clean-video-btn:hover,
.clean-video-btn:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.clean-video-icon {
  width: 1.24rem;
  height: 1.24rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.clean-video-range {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
}

.clean-video-volume-range {
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%) scaleX(-1);
  direction: ltr;
  width: var(--clean-volume-width, clamp(70px, 12vw, 108px));
  min-width: 0;
  height: 1.2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.clean-video-volume:hover .clean-video-volume-range,
.clean-video-volume:focus-within .clean-video-volume-range,
.clean-video-player.is-volume-open .clean-video-volume-range {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.clean-video-player.is-touch-ui .clean-video-volume-range {
  display: none !important;
}

.clean-video-progress {
  width: 100%;
  height: 1.1rem;
}

.clean-video-range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(#fff, #fff) 0 50% / var(--clean-range-progress, 0%) 100% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)) 0 50% / 100% 100% no-repeat;
  transition: background-size 140ms linear;
}

.clean-video-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -4.5px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  cursor: pointer;
}

.clean-video-volume-range::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  margin-top: -3.5px;
}

.clean-video-volume-range::-webkit-slider-runnable-track {
  transition: none;
}

.clean-video-progress::-webkit-slider-runnable-track {
  transition: none;
}

.clean-video-range::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.clean-video-range::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
}

.clean-video-progress::-moz-range-track,
.clean-video-progress::-moz-range-progress {
  transition: none;
}

.clean-video-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.clean-video-progress:hover::-webkit-slider-runnable-track {
  height: 4px;
}

.clean-video-progress:hover::-moz-range-track,
.clean-video-progress:hover::-moz-range-progress {
  height: 4px;
}

.clean-video-player.is-scrubbing .clean-video-progress::-webkit-slider-runnable-track {
  transition: none;
}

.clean-video-player.is-scrubbing .clean-video-progress::-moz-range-track,
.clean-video-player.is-scrubbing .clean-video-progress::-moz-range-progress {
  transition: none;
}

.clean-video-volume-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
}

.clean-video-player.is-fullscreen {
  border-radius: 0;
}

.clean-video-player.is-fullscreen .clean-video-controls {
  padding: 1rem 1.1rem 0.9rem;
}

@media (max-width: 768px) {
  .clean-video-controls {
    padding: 0.65rem 0.7rem 0.55rem;
    gap: 8px;
  }

  .clean-video-btn {
    width: 2.35rem;
    height: 2.35rem;
  }

  .clean-video-volume-range {
    top: auto;
    bottom: calc(100% + 10px);
    right: 50%;
    transform: translateX(50%) scaleX(-1);
    height: 1.35rem;
    --clean-volume-width: 96px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .clean-video-volume:hover .clean-video-volume-range,
  .clean-video-volume:focus-within .clean-video-volume-range {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .clean-video-player.is-volume-open .clean-video-volume-range {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .clean-video-range::-webkit-slider-thumb {
    width: 13px;
    height: 13px;
  }

  .clean-video-volume-range::-webkit-slider-thumb {
    width: 11px;
    height: 11px;
  }

  .clean-video-range::-moz-range-thumb {
    width: 13px;
    height: 13px;
  }

  .clean-video-volume-range::-moz-range-thumb {
    width: 11px;
    height: 11px;
  }
}

.project-caption {
  margin-top: 0.5rem;
  width: 100%;
}

.project-caption-text {
  color: var(--gris);
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 950px;
  margin: 0.25rem auto 0 auto;
  text-align: center;
}

.owner-app-section {
  width: 100%;
  margin-top: 1rem;
  position: relative;
  z-index: 2;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.owner-app-section .brief-row {
  align-items: flex-start;
}

.owner-app-section .brief-cell:first-child .brief-label {
  margin-top: 0.15rem;
}

.remote-section {
  width: 100%;
  margin-top: 1rem;
}

.remote-section .brief-row {
  align-items: flex-start;
}

.ui-section {
  width: 100%;
  margin-top: 1rem;
  position: relative;
  z-index: 2;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.ui-section .brief-row {
  align-items: flex-start;
}

@media only screen and (max-width: 1024px) {
  .owner-app-section .brief-row {
    grid-template-columns: 1fr;
  }
}

/* Prototype CTA */
.prototype-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}
.prototype-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border: 2px solid var(--bleu);
  border-radius: 999px;
  color: var(--bleu);
  background: transparent;
  text-decoration: none !important;
  font-weight: 600;
  line-height: 1;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
}
.prototype-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--bleu);
  transition: left 0.3s ease;
  z-index: -1;
}
.prototype-link:hover {
  color: #fff;
  border-color: var(--bleu);
}
.prototype-link:hover::before { left: 0; }
.prototype-link:focus-visible { color: #fff; outline: none; }
.prototype-link:focus-visible::before { left: 0; }
.prototype-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
}
.prototype-label { white-space: nowrap; }

/* InStay scroll */
.instay-scroll-gallery {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 2rem;
}

.instay-scroll-wrapper {
  position: relative;
  width: 100%;
}

.instay-scroll-wrapper::after {
  content: '';
  display: block;
  height: var(--instay-scroll-length, 160vh);
}

.instay-scroll-pin {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end; 
  touch-action: pan-y;
}

.instay-scroll-track {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: none;
  padding-right: max(20vw, 220px);
  padding-left: max(14vw, 120px);
  backface-visibility: hidden;
}

.instay-scroll-track::after {
  content: '';
  display: block;
  flex: 0 0 clamp(70px, 8vw, 160px);
}

.instay-screen {
  height: min(80vh, 760px);
  width: auto;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 14px;
  will-change: transform, filter, box-shadow;
  transition: transform 200ms ease, filter 200ms ease, box-shadow 200ms ease;
}

.instay-screen.is-center {
  transform: scale(1.07);
  z-index: 50;
  filter: saturate(1);
}

.instay-screen:not(.is-center) {
  filter: saturate(0.95);
}

@media (max-width: 900px) {
  .instay-scroll-gallery {
    width: 100%;
    margin-left: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  
  .instay-scroll-wrapper {
    padding: 0;
  }
  
  .instay-scroll-wrapper::after {
    display: none;
  }
  
  .instay-scroll-pin {
    position: relative;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .instay-scroll-pin::-webkit-scrollbar {
    display: none;
  }
  
  .instay-scroll-track {
    transform: none !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .instay-screen {
    height: 50vh;
    scroll-snap-align: center;
    flex-shrink: 0;
  }
  
  .instay-screen.is-center {
    transform: none;
  }
}

.instay-scroll-gallery.instay-fallback .instay-scroll-wrapper::after {
  height: 0 !important;
}
.instay-scroll-gallery.instay-fallback .instay-scroll-pin {
  position: relative;
  height: auto;
}
.instay-scroll-gallery.instay-fallback .instay-scroll-track {
  overflow-x: auto;
  transform: none !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 900px) {
  .instay-scroll-gallery.instay-fallback .instay-scroll-track {
    padding-bottom: 0.85rem;
    margin-bottom: 0.2rem;
    scrollbar-gutter: stable both-edges;
  }
}

.instay-scroll-gallery.instay-fallback .instay-screen {
  scroll-snap-align: center;
}

/* InStay zoom  */
.instay-zoom-stage {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -80vh;
  margin-bottom: -80vh;
  padding-top: 80vh;
  padding-bottom: 80vh;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.instay-zoom-stage > * {
  pointer-events: auto;
}

.instay-zoom-wrapper {
  position: relative;
  width: 100%;
  pointer-events: none;
}

.instay-zoom-wrapper::after {
  content: '';
  display: block;
  height: var(--instay-zoom-length, 180vh);
}

.instay-zoom-pin {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
  touch-action: pan-y;
  pointer-events: none;
}

.instay-zoom-pin > * {
  pointer-events: auto;
}

.instay-zoom-canvas {
  width: 100%;
  max-width: 950px;
  aspect-ratio: 16 / 9;
  position: relative;
}

.instay-zoom-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; 
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.08s linear;
  border-radius: 14px;
  box-shadow: none; 
}

.instay-zoom-stage.instay-zoom-fallback .instay-zoom-wrapper::after {
  height: 0 !important;
}
.instay-zoom-stage.instay-zoom-fallback .instay-zoom-pin {
  position: relative;
  height: auto;
}
.instay-zoom-stage.instay-zoom-fallback .instay-zoom-image {
  transform: scale(1) !important;
}

/* Mobile: disable scroll-jacking, show static layout */
@media (pointer: coarse), (max-width: 900px) {
  .instay-zoom-stage {
    width: 100%;
    margin-left: 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-top: 0;
    padding-bottom: 0;
  }
  
  .instay-zoom-stage .instay-zoom-wrapper::after { 
    height: 0 !important; 
  }
  
  .instay-zoom-stage .instay-zoom-pin { 
    position: relative !important;
    height: auto;
  }
  
  .instay-zoom-stage .instay-zoom-image { 
    transform: none !important;
    position: relative;
  }
}

.instay-crossfade-stage {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -60vh;
  margin-bottom: -60vh;
  padding-top: 60vh;
  padding-bottom: 60vh;
}

.instay-crossfade-wrapper { position: relative; width: 100%; }

.instay-crossfade-wrapper::after {
  content: '';
  display: block;
  height: var(--instay-crossfade-length, 120vh);
}

.instay-crossfade-pin {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: pan-y;
}

.instay-crossfade-canvas {
  width: 100%;
  max-width: 950px; 
  aspect-ratio: 16 / 9;
  position: relative;
  margin: 0;
}

.instay-crossfade-canvas img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}

.instay-after { z-index: 1; }
.instay-before { z-index: 2; opacity: var(--instay-before-opacity, 1); transition: opacity 0.06s linear; }

.instay-crossfade-caption {
  text-align: center;
  margin-top: 0.8rem;
  display: inline-flex;
  gap: 0.5rem;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
}
.instay-crossfade-midcaption {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.2rem 0 0.8rem 0;
}
.instay-crossfade-caption .cap { color: var(--gris); font-size: clamp(0.95rem, 1.4vw, 1.15rem); font-weight: 600; letter-spacing: 0.01em; }
.instay-crossfade-caption .cap.gradient {
  background: linear-gradient(135deg, var(--apple-teal), var(--apple-cyan), var(--apple-purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

@media (pointer: coarse), (max-width: 900px) {
  .instay-crossfade-stage {
    width: 100%;
    margin-left: 0;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 0;
    padding-bottom: 0;
  }

  .instay-crossfade-midcaption {
    width: 100%;
    margin-left: 0;
    padding: 0.75rem 0 0.5rem 0;
  }

  .instay-crossfade-canvas {
    width: 100%;
    max-width: 100%;
  }
  
  .instay-crossfade-wrapper::after { 
    height: 0 !important; 
  }
  
  .instay-crossfade-wrapper {
    padding: 0 1rem;
  }
  
  .instay-crossfade-pin { 
    position: relative !important;
    height: auto;
  }
  
  .instay-before { 
    opacity: 0 !important;
    transition: none;
  }
  
  .instay-crossfade-caption { 
    filter: none !important;
  }
}

/* Remote 3D Animation */
.remote-3d-stage {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -35vh;
  margin-bottom: -100vh;
  padding-top: 5vh;
  padding-bottom: 100vh;
}

/* SYNC full-page OBJ overlay */
.project-sync .sync-obj-global {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

.project-sync .sync-obj-global-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.project-sync .sync-obj-global-text {
  position: absolute;
  inset: auto auto 10vh 6vw;
  max-width: min(520px, 50vw);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-sync .sync-obj-global-text p {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  background: linear-gradient(135deg, var(--apple-teal) 0%, var(--apple-cyan) 35%, var(--apple-violet) 70%, var(--apple-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .project-sync .sync-obj-global {
    display: none;
  }
}

.remote-3d-wrapper {
  position: relative;
  width: 100%;
}

.remote-3d-wrapper::after {
  content: '';
  display: block;
  height: 250vh;
}

.remote-3d-pin {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  touch-action: pan-y;
}

.remote-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height:50%;
  outline: none;
  z-index: 10;
}

.remote-3d-text {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  text-align: left;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  max-width: 45%;
  padding: 0 2rem;
}

.remote-3d-text p {
  pointer-events: auto;
}

.remote-3d-text p {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  background: linear-gradient(135deg, var(--apple-teal) 0%, var(--apple-cyan) 25%, var(--apple-cyan) 50%, var(--apple-violet) 75%, var(--apple-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 20px rgba(102, 126, 234, 0.1);
}

@media (max-width: 900px) {
  .remote-3d-stage {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  
  .remote-3d-wrapper {
    padding: 0 1rem;
  }
  
  .remote-3d-wrapper::after {
    height: 0 !important;
  }
  
  .remote-3d-pin {
    position: relative !important;
    height: auto !important;
    display: block !important;
    background: transparent !important;
  }
  
  .remote-3d-pin::before {
    content: '';
    display: block;
    width: 100%;
    height: 30vh;
    background-image: url('/assets/InstayAssets/remote.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  .remote-3d-canvas {
    display: none !important;
  }
  
  .remote-3d-text {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    opacity: 1 !important;
    padding: 1rem 1.5rem;
    text-align: center;
    max-width: 100%;
  }
  
  .remote-3d-text p {
    font-size: clamp(1.2rem, 5vw, 2rem);
  }
}

.remote-3d-stage.remote-3d-fallback .remote-3d-wrapper::after {
  height: 0 !important;
}

.remote-3d-stage.remote-3d-fallback .remote-3d-pin {
  position: relative;
  height: 60vh;
}

/* Planetarium Animation */
.planetarium-phone-stage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.planetarium-phone-spacer {
  position: relative;
  height: 400vh;
}

.planetarium-phone-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10vw;
}

.planetarium-phone-text {
  position: absolute;
  left: 10vw;
  top: 50%;
  transform: translateY(-50%);
  max-width: 40%;
  z-index: 10;
}

.planetarium-phone-text p {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: #333;
  background: linear-gradient(135deg, #00b4d8 0%, #0096c7 25%, #0077b6 50%, #00b4d8 75%, #c39af4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.5s ease-in-out;
}

.planetarium-phone-mockup {
  width: 340px;
  height: 680px;
  flex-shrink: 0;
}

.planetarium-phone-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
  border-radius: 44px;
  padding: 16px;
  box-shadow: 
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 3px rgba(0, 0, 0, 0.9);
}

.planetarium-phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 28px;
  background: #0a0a0a;
  border-radius: 0 0 20px 20px;
  z-index: 10;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.5);
}

.planetarium-phone-notch::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: rgba(40, 40, 40, 0.9);
  border-radius: 4px;
}

.planetarium-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  background-image: url('/assets/PlanetariumAssets/backgroundapp.webp');
  background-size: 250%;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 32px;
  overflow: hidden;
}

.planetarium-phone-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.95) 100%);
  opacity: var(--darken-opacity, 0);
  transition: opacity 0.1s linear;
  pointer-events: none;
  z-index: 1;
  border-radius: 32px;
}

.planetarium-phone-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.planetarium-phone-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
}

@media (max-width: 900px) {
  .planetarium-phone-stage {
    display: none !important;
  }
}