/* ============================================
   FVM - WEBSITES SERVICE SECTION
   Exact Figma values — pixel perfect
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;900&display=swap");

/* ===================================================
   OUTER PANEL — fixed fullscreen, hidden by default
   =================================================== */
#fvm-websites-panel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  clip-path: inset(100% 0 0 0);
  transition:
    clip-path 0.85s cubic-bezier(0.77, 0, 0.175, 1),
    visibility 0s linear 0.85s;
}

#fvm-websites-panel.is-active {
  visibility: visible;
  pointer-events: all;
  clip-path: inset(0% 0 0 0);
  transition:
    clip-path 0.85s cubic-bezier(0.77, 0, 0.175, 1),
    visibility 0s linear 0s;
}

/* ===================================================
   HORIZONTAL SCROLL TRACK — two screens side by side
   =================================================== */
.ws-scroll-track {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 200vh;
  /* JS will translate this */
  transform: translateY(0);
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
  position: relative;
  z-index: 2;
}

.ws-scroll-track.at-second {
  transform: translateY(-100vh);
}

/* ===================================================
   SCREEN 1 — Hero (WEBSITES headline)
   =================================================== */
.ws-screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  overflow: hidden;
}

/* Canvas background */
#bn-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* #636792c7 overlay with hard-light mix-blend-mode */
.ws-bg-overlay {
  position: absolute;
  inset: 0;
  isolation: isolate;
  mix-blend-mode: hard-light;
  z-index: 1;
  pointer-events: none;
}

.ws-bg-overlay-color {
  position: absolute;
  inset: 0;
  background: #2aaccded;
  /* #5297fde8 */
  z-index: -1;
}

/* [EXIT] — top right, same style as [SCROLL TO SEE MORE] */
/* Figma: position absolute, right: 178px, top: 120px */
.ws-exit-btn {
  position: absolute;
  right: 9.27vw;
  top: 6.25vw;
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 1.15vw;
  font-weight: 500;
  line-height: 3.75vw;
  letter-spacing: 0.49vw;
  text-transform: uppercase;
  color: #fff;
  text-align: right;
  white-space: nowrap;
  padding: 0;
  opacity: 0;
  transform: translateY(-12px);
  transition:
    opacity 0.6s ease 0.55s,
    transform 0.6s ease 0.55s,
    color 0.3s ease;
  text-box-edge: cap alphabetic;
  text-box-trim: trim-both;
}

.ws-exit-btn:hover {
  color: rgba(255, 255, 255, 0.7);
}

#fvm-websites-panel.is-active .ws-exit-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Headline wrapper */
.ws-headline-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 100%;
  text-align: center;
  margin-top: 50px;
  opacity: 0;
  transition:
    opacity 0.7s ease 0.2s,
    margin-top 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
    transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
  padding-inline: 9.11vw;
}

#fvm-websites-panel.is-active .ws-headline-wrap {
  opacity: 1;
  margin-top: 0px;
}

#fvm-websites-panel.at-second .ws-headline-wrap {
  transform: translate(-50%, calc(-50% - 100vh));
}

/* WEBSITES headline */
.ws-headline {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  line-height: 17.19vw;
  white-space: nowrap;
}

/* Both spans — 50% gray for hard-light knockout */
.ws-headline .part-web,
.ws-headline .part-sites {
  font-family: "Montserrat", sans-serif;
  font-size: 10.42vw;
  text-transform: uppercase;
  line-height: 17.19vw;
  color: #808080;
  white-space: nowrap;
  text-box-edge: cap alphabetic;
  text-box-trim: trim-both;
}

/* WEB: weight 300 */
.ws-headline .part-web {
  font-weight: 300;
  letter-spacing: 3.65vw;
  opacity: 1;
}

/* SITES: weight 700 */
.ws-headline .part-sites {
  font-weight: 700;
  letter-spacing: 3.65vw;
  opacity: 1;
}

/* [SCROLL TO MOVE FORWARD] + mouse icon */
.ws-scroll-forward-wrap {
  position: absolute;
  bottom: 10.42vw;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.6s ease 0.6s;
}

#fvm-websites-panel.is-active .ws-scroll-forward-wrap {
  opacity: 1;
}

.ws-scroll-forward-txt {
  font-family: "Montserrat", sans-serif;
  font-size: 1.15vw;
  font-weight: 300;
  line-height: 3.75vw;
  letter-spacing: 0.49vw;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  text-box-edge: cap alphabetic;
  text-box-trim: trim-both;
}

.ws-mouse-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ws-mouse-icon svg {
  width: 22px;
  height: 34px;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 1.5;
  fill: none;
}

.ws-arrow-down {
  width: 10px;
  height: 10px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.8);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.8);
  transform: rotate(45deg);
  margin-top: 2px;
  animation: wsArrowBounce 1.6s ease-in-out infinite;
}

@keyframes wsArrowBounce {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }

  50% {
    transform: rotate(45deg) translateY(5px);
  }
}

.scroll-iconmove img {
  animation: MoveUpDown 3.5s linear infinite;
  position: relative;
}

@keyframes MoveUpDown {
  0%,
  100% {
    bottom: -15px;
  }
  50% {
    bottom: 0px;
  }
}

/* Bottom bar */
.ws-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0px 6.25vw 3.13vw;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s ease 0.5s,
    transform 0.7s ease 0.5s;
}

#fvm-websites-panel.is-active .ws-bottom-bar {
  opacity: 1;
  transform: translateY(0);
}

.ws-desc p {
  font-family: "Montserrat", sans-serif;
  font-size: 1.04vw;
  font-weight: 300;
  line-height: 1.25vw;
  letter-spacing: 1px;
  color: #fff;
  margin: 0;
  max-width: 39.17vw;
  text-box-edge: cap alphabetic;
  text-box-trim: trim-both;
}

/* CTA button */
.ws-cta-btn {
  display: flex;
  padding: 20px;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.33) 0%, rgba(0, 0, 0, 0.33) 100%),
    linear-gradient(
      252deg,
      rgba(233, 20, 196, 0.12) 0.21%,
      rgba(255, 255, 255, 0.12) 99.89%
    );
  box-shadow: 0 18px 40px 0 rgba(0, 0, 0, 0.25);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.2s ease;
}

.ws-cta-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  transform: scale(1.02);
}

.ws-cta-btn .ws-cta-text {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25vw;
  font-weight: 400;
  line-height: 1;
  font-variant: all-small-caps;
  letter-spacing: 10px;
  color: #fff;
  text-transform: uppercase;
  text-box-edge: cap alphabetic;
  text-box-trim: trim-both;
}

.ws-cta-btn .ws-cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ws-cta-btn .ws-cta-arrow svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  stroke-width: 1.5;
  fill: none;
}

/* Screen 2 has a transparent background to show the canvas/overlay */
.ws-screen-2 {
  position: relative;
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* [EXIT] on screen 2 — same style, top right */
.ws-exit-btn-2 {
  position: absolute;
  right: 9.27vw;
  top: 3.65vw;
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 1.15vw;
  font-weight: 500;
  line-height: 3.75vw;
  letter-spacing: 0.49vw;
  text-transform: uppercase;
  color: #fff;
  padding: 0;
  transition: color 0.3s ease;
  text-box-edge: cap alphabetic;
  text-box-trim: trim-both;
}

.ws-exit-btn-2:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Video grid container — centered */
.ws-video-grid-wrap {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  top: -4%;
}

/* 3-column × 2-row grid — exact Figma layout */
.ws-video-grid {
  display: inline-grid;
  gap: 16px;
  grid-template-rows: 10.42vw fit-content(100%) fit-content(100%);
  grid-template-columns: repeat(3, fit-content(100%));
}

/* Each cell */
.ws-video-cell {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 4px solid #fff;
  background: #000;
  width: 22.55vw;
  height: 10.42vw;
}

/* Video element fills cell */
.ws-video-cell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Play/pause overlay icon */
.ws-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: rgba(0, 0, 0, 0.25);
}

.ws-video-cell:hover .ws-play-icon,
.ws-video-cell.is-paused .ws-play-icon {
  opacity: 1;
}

.ws-play-icon svg {
  width: 36px;
  height: 36px;
  fill: rgba(255, 255, 255, 0.85);
  stroke: none;
}

/* Active playing cell — subtle highlight border */
.ws-video-cell.is-playing {
  border-color: rgba(255, 255, 255, 1);
  z-index: 2;
}

/* Bottom bar on screen 2 — same as screen 1 */
.ws-bottom-bar-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 80px 60px 80px;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1200px) {
  .ws-headline .part-web,
  .ws-headline .part-sites {
    font-size: clamp(60px, 9vw, 200px);
    letter-spacing: 20px;
    line-height: 1.65;
  }

  .ws-headline {
    line-height: 1.65;
  }

  .ws-exit-btn,
  .ws-exit-btn-2 {
    right: 40px;
    top: 60px;
    font-size: 16px;
    letter-spacing: 5px;
    line-height: 1.4;
  }

  .ws-video-grid-wrap {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .ws-headline .part-web,
  .ws-headline .part-sites {
    font-size: clamp(42px, 12vw, 90px);
    letter-spacing: 8px;
    line-height: 1.3;
  }

  .ws-headline {
    line-height: 1.3;
  }

  .ws-bottom-bar,
  .ws-bottom-bar-2 {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0 24px 36px;
  }

  .ws-exit-btn,
  .ws-exit-btn-2 {
    right: 16px;
    top: 50px;
    font-size: 11px;
    letter-spacing: 3px;
    line-height: 1.4;
  }

  .ws-scroll-forward-txt {
    font-size: 13px;
    letter-spacing: 4px;
    line-height: 1.4;
  }

  .ws-scroll-forward-wrap {
    bottom: 140px;
  }

  .ws-desc p {
    font-size: 14px;
  }

  .ws-cta-btn .ws-cta-text {
    font-size: 13px;
    letter-spacing: 4px;
  }

  .ws-video-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }

  .ws-video-grid-wrap {
    padding: 20px;
  }
}

/* branding css */

.cards-container {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0px 9.32vw;
  margin: 0 auto;
}

.flip-card-vanilla {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background-color: black;
  overflow: hidden;
  border: 4px solid black;
  border-radius: 10px;
  box-shadow: 0 52px 40px rgba(0, 0, 0, 0.2);
  user-select: none;
  perspective: 2500px;
  perspective-origin: 50% 50%;
  width: 19.79vw;
  transform-style: preserve-3d;
}

.flip-half {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 389 / 285.36;
  transform-style: preserve-3d;
}

.flip-layer {
  position: absolute;
  width: 100%;
  padding: 4px;
}

.top-bg {
  inset: 0;
  height: 200%;
}

.top-fg {
  inset: 0;
  height: 200%;
  background-color: black;
  transform-origin: bottom;
  z-index: 10;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transform: rotateX(0.01deg);
  will-change: transform;
}

.bottom-bg {
  top: 0;
  left: 0;
  height: 200%;
  transform: translateY(-50%);
}

.bottom-fg {
  inset: 0;
  height: 200%;
  background-color: black;
  transform: translateY(-50%);
  transform-origin: top;
  z-index: 10;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.flip-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.flip-image {
  position: absolute;
  display: block;
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.flip-shadow {
  position: absolute;
  inset: 0;
  background-color: black;
  pointer-events: none;
}

.top-shadow {
  opacity: 0;
}

.bottom-shadow {
  opacity: 0.8;
}

.top-bg-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.bottom-bg-overlay {
  position: absolute;
  inset: 0;
  /* background-color: rgba(0, 0, 0, 0.3); */
  pointer-events: none;
}
.divider-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  display: flex;
  align-items: center;
}

.divider-line {
  width: 94%;
  height: 1.5px;
  margin: 0 auto;
  background-color: #000;
}

.divider-tab-left {
  position: absolute;
  left: 0;
  width: 9px;
  height: 96px;
  background-color: #000;
  border-radius: 0 10px 10px 0;
}

.divider-tab-right {
  position: absolute;
  right: 0;
  width: 9px;
  height: 96px;
  background-color: #000;
  border-radius: 10px 0 0 10px;
}

.center-gradient {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 15;
  background: #000;
  filter: blur(8px);
}
