.tech-video {
  padding: 0;
  position: relative;
  overflow: hidden;
  max-width: none !important;
}

.tech-video__scroll-spacer {
  height: 120vh;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: height;
}

.tech-video__scroll-spacer.collapsed {
  height: 0;
  overflow: hidden;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-video__sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.tech-video__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px 20px;
}

.tech-video__title {
  font-family: "PP Telegraf", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
}

.tech-video__title em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: var(--color-accent, #4967fd);
}

.tech-video__copy {
  font-family: "Inter", sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-cobalt, #050e3d);
  opacity: 0.8;
}

.tech-video__copy p {
  margin-bottom: 1rem;
}

.tech-video__copy p:last-child {
  margin-bottom: 0;
}

.tech-video__media {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.8);
  will-change: transform;
  /* Video container matches overlay image dimensions for perfect alignment */
  width: 1640px;
  max-width: 100%;
  height: auto;
  z-index: 5;
}

.tech-video__player {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 20px 20px;
  display: block;
  background: #000;
  object-fit: cover;
  border-radius: 7vw;
}

@media (max-width: 1300px) {
  .tech-video__player {
    border-radius: 8vw;
  }
}

.tech-video__controls {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 10;
}

.tech-video__overlay-image {
  pointer-events: none;
  user-select: none;
  z-index: 10;
  /* iPhone mockup dimensions - video container matches these exactly */
  width: 1640px;
  max-width: 100%;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity;
}

.tech-video__overlay-text {
  position: absolute;
  top: 12%;
  left: 12%;
  width: min(520px, 40vw);
  max-width: 80%;
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: "Inter Display", sans-serif;
  font-weight: 500;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.8px;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-30px) scale(0.95);
  filter: blur(4px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    filter 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-video__overlay-text.center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  text-align: center;
  width: min(720px, 60vw);
  max-width: 85%;
  color: #f5f5f7;
  text-align: center;
  font-family: "PP Telegraf";
  font-size: clamp(20px, 6vw, 72.851px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.15; /* Proportional line height */
  letter-spacing: -0.02em; /* Proportional letter spacing */
}

.tech-video__overlay-text.center em {
  background: radial-gradient(50% 50% at 50% 50%, #00fbf0 0%, #e2fffe 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Instrument Serif";
  font-size: inherit;
  font-style: italic;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: inherit;
}

.tech-video__overlay-text.center.is-visible {
  transform: translate(-50%, -50%) scale(1);
}

.tech-video__overlay-text.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0px);
}

.tech-video__overlay-text h1,
.tech-video__overlay-text h2,
.tech-video__overlay-text h3,
.tech-video__overlay-text h4,
.tech-video__overlay-text h5,
.tech-video__overlay-text h6 {
  font-family: "Inter Display", sans-serif;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  margin: 0;
  color: inherit;
}

.tech-video__overlay-text p {
  font-family: "Inter Display", sans-serif;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  margin: 0;
  color: inherit;
}

.tech-video__overlay-text em {
  font-style: italic;
  color: #4967fd;
}

.tech-video__bottom-text {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-style: normal;
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -1.2px;
  max-width: 80%;
  opacity: 0;
  transform: translateX(-50%) translateY(30px) scale(0.9);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: blur(3px);
  color: var(--text-color, #fff);
}

.tech-video__bottom-text h1,
.tech-video__bottom-text h2,
.tech-video__bottom-text h3,
.tech-video__bottom-text h4,
.tech-video__bottom-text h5,
.tech-video__bottom-text h6 {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  margin: 0;
  color: inherit;
}

.tech-video__bottom-text p {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  margin: 0;
  color: inherit;
}

.tech-video__play-pause {
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.tech-video__play-pause:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.tech-video__play-pause .pause-icon {
  display: none;
}

.tech-video__play-pause.playing .play-icon {
  display: none;
}

.tech-video__play-pause.playing .pause-icon {
  display: block;
}

/* Responsive - Comprehensive Viewport Coverage */

/* Ultra-wide Screens (2560px+) */
@media (min-width: 2560px) {
  .tech-video__media {
    width: 1640px;
    max-width: 75vw;
    height: auto;
  }

  .tech-video__overlay-text {
    font-size: clamp(52px, 3vw, 68px);
    left: 6%;
    max-width: 50%;
  }

  .tech-video__overlay-text.center {
    font-size: clamp(60px, 4vw, 80px);
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .tech-video__overlay-text.center em {
    font-size: clamp(60px, 4vw, 80px);
    line-height: inherit;
    letter-spacing: inherit;
  }

  .tech-video__bottom-text {
    font-size: clamp(42px, 2.5vw, 56px);
    max-width: 70%;
  }
}

/* Large Desktop/4K (1920px - 2560px) */
@media (min-width: 1920px) and (max-width: 2559px) {
  .tech-video__media {
    width: 1640px;
    max-width: 78vw;
    height: auto;
  }

  .tech-video__overlay-text {
    font-size: clamp(48px, 3.5vw, 58px);
    left: 7%;
    max-width: 55%;
  }

  .tech-video__overlay-text.center {
    font-size: clamp(56px, 4.2vw, 72px);
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .tech-video__overlay-text.center em {
    font-size: clamp(56px, 4.2vw, 72px);
    line-height: inherit;
    letter-spacing: inherit;
  }

  .tech-video__bottom-text {
    font-size: clamp(38px, 3vw, 48px);
    max-width: 75%;
  }
}

/* Standard Large Desktop (1600px - 1920px) */
@media (min-width: 1600px) and (max-width: 1919px) {
  .tech-video__media {
    width: 1640px;
    max-width: 80vw;
    height: auto;
  }

  .tech-video__overlay-text {
    font-size: clamp(44px, 4vw, 52px);
    left: 8%;
    max-width: 58%;
  }

  .tech-video__overlay-text.center {
    font-size: clamp(52px, 4.5vw, 66px);
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .tech-video__overlay-text.center em {
    font-size: clamp(52px, 4.5vw, 66px);
    line-height: inherit;
    letter-spacing: inherit;
  }

  .tech-video__bottom-text {
    font-size: clamp(36px, 3.5vw, 42px);
    max-width: 78%;
  }
}

/* Desktop (1440px - 1600px) */
@media (min-width: 1440px) and (max-width: 1599px) {
  .tech-video__media {
    width: 1640px;
    max-width: 82vw;
    height: auto;
  }

  .tech-video__overlay-text {
    font-size: clamp(40px, 4.2vw, 48px);
    left: 8%;
    max-width: 60%;
  }

  .tech-video__overlay-text.center {
    font-size: clamp(48px, 5vw, 60px);
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .tech-video__overlay-text.center em {
    font-size: clamp(48px, 5vw, 60px);
    line-height: inherit;
    letter-spacing: inherit;
  }

  .tech-video__bottom-text {
    font-size: clamp(34px, 3.8vw, 40px);
    max-width: 80%;
  }
}

/* Standard Desktop (1200px - 1440px) */
@media (min-width: 1200px) and (max-width: 1439px) {
  .tech-video__media {
    width: 1640px;
    max-width: 85vw;
    height: auto;
  }

  .tech-video__overlay-text {
    font-size: clamp(36px, 4.5vw, 44px);
    left: 8%;
    max-width: 62%;
  }

  .tech-video__overlay-text.center {
    font-size: clamp(44px, 5.5vw, 56px);
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .tech-video__overlay-text.center em {
    font-size: clamp(44px, 5.5vw, 56px);
    line-height: inherit;
    letter-spacing: inherit;
  }

  .tech-video__bottom-text {
    font-size: clamp(32px, 4vw, 38px);
    max-width: 82%;
  }
}

/* Small Desktop/Large Laptop (1024px - 1200px) */
@media (min-width: 1024px) and (max-width: 1199px) {
  .tech-video__media {
    width: 1640px;
    max-width: 88vw;
    height: auto;
  }

  .tech-video__overlay-text {
    font-size: clamp(32px, 5vw, 40px);
    left: 8%;
    max-width: 65%;
  }

  .tech-video__overlay-text.center {
    font-size: clamp(40px, 6vw, 52px);
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .tech-video__overlay-text.center em {
    font-size: clamp(40px, 6vw, 52px);
    line-height: inherit;
    letter-spacing: inherit;
  }

  .tech-video__bottom-text {
    font-size: clamp(28px, 4.5vw, 36px);
    max-width: 85%;
  }
}

/* Tablet Landscape (900px - 1024px) */
@media (min-width: 900px) and (max-width: 1023px) {
  .tech-video__media {
    width: 1640px;
    max-width: 90vw;
    height: auto;
  }

  .tech-video__overlay-text {
    font-size: clamp(28px, 5.5vw, 36px);
    left: 8%;
    max-width: 68%;
  }

  .tech-video__overlay-text.center {
    font-size: clamp(28px, 5.5vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .tech-video__overlay-text.center em {
    font-size: clamp(28px, 5.5vw, 36px);
    line-height: inherit;
    letter-spacing: inherit;
  }

  .tech-video__bottom-text {
    font-size: clamp(26px, 5vw, 32px);
    max-width: 88%;
  }
}

/* Tablet Portrait & Small Laptop (768px - 900px) */
@media (min-width: 768px) and (max-width: 899px) {
  .tech-video__media {
    width: 1640px;
    max-width: 92vw;
    height: auto;
  }

  .tech-video__overlay-text {
    font-size: clamp(26px, 6vw, 34px);
    left: 8%;
    max-width: 70%;
  }

  .tech-video__overlay-text.center {
    font-size: clamp(26px, 6vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .tech-video__overlay-text.center em {
    font-size: clamp(26px, 6vw, 34px);
    line-height: inherit;
    letter-spacing: inherit;
  }

  .tech-video__bottom-text {
    font-size: clamp(24px, 5.5vw, 30px);
    max-width: 90%;
  }
}

/* Large Mobile/Small Tablet (640px - 768px) */
@media (max-width: 767px) {
  .tech-video {
    padding: 30px 0;
  }

  .tech-video__content {
    margin-bottom: 25px;
    padding: 0 20px 30px;
  }

  .tech-video__sticky-container {
    position: relative !important;
    height: auto !important;
    width: 100% !important;
    margin-left: 0 !important;
  }

  .tech-video__media {
    width: 90vw;
    position: relative !important;
    transform: translate(0, 0) scale(1) !important;
    top: auto !important;
    left: auto !important;
    margin: 0 auto;
  }

  .tech-video__player {
    border-radius: 40px;
    padding: 0;
  }

  .tech-video__scroll-spacer {
    display: none !important;
    height: 0 !important;
  }

  .tech-video__controls {
    bottom: 15px;
    left: 15px;
  }

  .tech-video__play-pause {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .tech-video__overlay-text {
    top: 10%;
    left: 9%;
    width: auto;
    max-width: 82%;
    padding: 0;
    font-size: clamp(20px, 6.2vw, 30px);
    text-align: left;
  }

  .tech-video__overlay-text.center {
    font-size: clamp(20px, 6.2vw, 30px);
    line-height: 1.25;
    letter-spacing: -0.015em;
  }

  .tech-video__overlay-text.center em {
    font-size: clamp(20px, 6.2vw, 30px);
    line-height: inherit;
    letter-spacing: inherit;
  }

  .tech-video__bottom-text {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    max-width: 100%;
    margin: 25px 0 15px;
    padding: 0 20px;
    font-size: clamp(20px, 5.5vw, 26px);
    left: auto !important;
    bottom: auto !important;
  }
}

/* Standard Mobile (480px - 640px) */
@media (min-width: 480px) and (max-width: 639px) {
  .tech-video {
    padding: 25px 0;
  }

  .tech-video__content {
    padding: 0 18px 25px;
  }

  .tech-video__media {
    width: 85vw;
    height: 30vh;
  }

  .tech-video__player {
    border-radius: 35px;
  }

  .tech-video__overlay-text {
    top: 9%;
    left: 8%;
    max-width: 84%;
    margin: 0;
    padding: 0;
    font-size: clamp(18px, 6.5vw, 28px);
    text-align: left;
  }

  .tech-video__bottom-text {
    font-size: clamp(18px, 6vw, 24px);
    margin: 20px 0 12px;
    padding: 0 18px;
  }

  .tech-video__play-pause {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 479px) {
  .tech-video {
    padding: 20px 0;
  }

  .tech-video__content {
    padding: 0 16px 20px;
    margin-bottom: 0;
  }

  .tech-video__sticky-container {
    position: relative !important;
    height: auto !important;
    width: 100% !important;
    margin-left: 0 !important;
  }

  .tech-video__media {
    width: 88vw;
    height: 25vh;
    min-height: 180px;
    position: relative !important;
    transform: translate(0, 0) scale(1) !important;
    top: auto !important;
    left: auto !important;
    margin: 0 auto;
  }

  .tech-video__player {
    border-radius: 28px;
  }

  .tech-video__scroll-spacer {
    display: none !important;
    height: 0 !important;
  }

  .tech-video__controls {
    bottom: 12px;
    left: 12px;
  }

  .tech-video__play-pause {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .tech-video__overlay-text {
    top: 8%;
    left: 8%;
    width: auto;
    max-width: 86%;
    margin: 0;
    padding: 0;
    font-size: clamp(18px, 7.5vw, 24px);
    text-align: left;
  }

  .tech-video__bottom-text {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    max-width: 100%;
    margin: 18px 0 12px;
    padding: 0 16px;
    font-size: clamp(16px, 7vw, 22px);
    left: auto !important;
    bottom: auto !important;
  }
}

/* Extra Small Mobile (320px and below) */
@media (max-width: 320px) {
  .tech-video {
    padding: 15px 0;
  }

  .tech-video__content {
    padding: 0 12px 15px;
  }

  .tech-video__media {
    width: 92vw;
    height: 22vh;
    min-height: 160px;
  }

  .tech-video__player {
    border-radius: 24px;
  }

  .tech-video__play-pause {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .tech-video__overlay-text {
    top: 8%;
    left: 7%;
    width: auto;
    max-width: 88%;
    margin: 0;
    padding: 0;
    font-size: clamp(16px, 8.5vw, 22px);
    text-align: left;
  }

  .tech-video__bottom-text {
    margin: 15px 0 10px;
    padding: 0 12px;
    font-size: clamp(14px, 8vw, 20px);
  }
}

/* ScrollTrigger Animation States */
.tech-video[data-video-block] {
  overflow: hidden;
}

.tech-video .container {
  overflow: hidden;
  max-width: 100%;
}

.tech-video__container {
  width: 100%;
}

/* Video scaling states */
.tech-video__media.scale-start {
  transform: scale(1.4);
}

.tech-video__media.scale-end {
  transform: scale(0.7);
}

/* Pinned state */
.tech-video.pinned {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

/* Smooth scaling during scroll */
.tech-video__media[data-scroll-scale] {
  transition: none;
}
