/* ============================================
   FVM — FILM & PHOTO SERVICE PANEL
   Exact Figma design — pixel perfect
   ============================================ */

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

/* =============================================
   PANEL — fixed fullscreen, hidden by default
   ============================================= */
#fvm-fp-panel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  /* Wipe up from bottom — same as websites panel */
  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-fp-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;
}

/* =============================================
   VERTICAL SCROLL TRACK
   ============================================= */
#fvm-fp-track {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 200vh;
  transform: translateY(0);
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
  position: relative;
  z-index: 2;
}

#fvm-fp-track.at-second {
  transform: translateY(-100vh);
}

.fp-bg-overlay {
  position: absolute;
  inset: 0;
  isolation: isolate;
  mix-blend-mode: hard-light;
  z-index: 1;
}

.fp-bg-overlay-color {
  position: absolute;
  inset: 0;
  background: rgba(232, 147, 226, 0.6);
  z-index: -1;
}

/* =============================================
   SCREEN BASE
   ============================================= */
.fp-screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  overflow: hidden;
}

/* =============================================
   SCREEN BACKGROUND CANVAS
   ============================================= */
#fp-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* =============================================
   SCREEN 1 — HERO
   ============================================= */

/* [SCROLL TO SEE MORE] — top right */
/* Figma: right 178px, top 120px, Montserrat 22px w500 ls 9.4px */
#fvm-fp-panel .fp-scroll-see-more {
  position: absolute;
  right: 178px;
  top: 120px;
  z-index: 10;
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 72px;
  letter-spacing: 9.4px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-14px);
  transition:
    opacity 0.6s ease 0.55s,
    transform 0.6s ease 0.55s;
  text-box-edge: cap alphabetic;
  text-box-trim: trim-both;
}

#fvm-fp-panel.is-active .fp-scroll-see-more {
  opacity: 1;
  transform: translateY(0);
}

/* HEADLINE wrap — centered vertically */
#fvm-fp-panel .fp-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);
}

#fvm-fp-panel.is-active .fp-headline-wrap {
  opacity: 1;
  margin-top: -60px;
}

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

/* HEADLINE — two lines stacked */
.fp-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0 6.25vw;
  gap: 5rem;
}

/* FILM& — thin weight 300 */
.fp-headline .fp-line1 {
  font-family: "Montserrat", sans-serif;
  font-size: 10.42vw;
  font-weight: 300;
  letter-spacing: 3.65vw;
  text-transform: uppercase;
  line-height: 11.46vw;
  color: #808080;
  opacity: 1;
  white-space: nowrap;
  text-box-edge: cap alphabetic;
  text-box-trim: trim-both;
}

/* PHOTO — bold weight 700 */
.fp-headline .fp-line2 {
  font-family: "Montserrat", sans-serif;
  font-size: 10.42vw;
  font-weight: 700;
  letter-spacing: 3.65vw;
  text-transform: uppercase;
  line-height: 11.46vw;
  color: #808080;
  opacity: 1;
  white-space: nowrap;
  text-box-edge: cap alphabetic;
  text-box-trim: trim-both;
}

/* [SCROLL TO MOVE FORWARD] + mouse icon */
#fvm-fp-panel .fp-scroll-forward-wrap {
  position: absolute;
  bottom: 156px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.6s ease 0.65s;
}

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

.fp-scroll-forward-txt {
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 300;
  line-height: 72px;
  letter-spacing: 9.4px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  text-box-edge: cap alphabetic;
  text-box-trim: trim-both;
}

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

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

.fp-arrow-chevron {
  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: fpArrowBounce 1.6s ease-in-out infinite;
}

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

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

/* BOTTOM BAR — desc left, CTA right */
#fvm-fp-panel .fp-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 120px 60px 120px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s ease 0.5s,
    transform 0.7s ease 0.5s;
}

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

.fp-desc p {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 24px;
  letter-spacing: 1px;
  color: #fff;
  /* text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25); */
  margin: 0;
  max-width: 752px;
  text-box-edge: cap alphabetic;
  text-box-trim: trim-both;
}

/* CTA Button — exact Figma */
.fp-cta-btn {
  display: flex;
  padding: 20px;
  justify-content: space-between;
  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%
  );
  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,
    background 0.3s,
    transform 0.2s;
  max-width: 718px;
}

.fp-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);
}

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

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

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

/* =============================================
   SCREEN 2 — Film & Photo sub-section (from zip)
   ============================================= */
.fp-screen-2 {
  background: #000;
  display: flex;
  flex-direction: column;
}

/* Video top */
.fp2-video-section {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #000;
}

.fp2-video-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.fp2-main-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp2-video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fp2-exit-btn {
  align-self: flex-end;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 16px;
  font-size: 12px;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 2px;
  cursor: pointer;
  pointer-events: auto;
  transition:
    background 0.3s,
    color 0.3s;
}

.fp2-exit-btn:hover {
  background: #fff;
  color: #000;
}

.fp2-timecode {
  font-family: "Courier New", monospace;
  font-size: 32px;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  font-weight: 500;
  opacity: 0.8;
}

/* Timeline */
.fp2-timeline-section {
  height: 200px;
  background: linear-gradient(135deg, #1a061d 0%, #2d0b3a 50%, #1a061d 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

.fp2-timeline-inner {
  height: 100%;
  position: relative;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fp2-ruler {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 30px;
}

.fp2-time-label {
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: #888;
  letter-spacing: 1px;
}

.fp2-ticks {
  flex: 1;
  height: 100%;
  margin: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fp2-tick {
  width: 1px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
}

.fp2-tick:nth-child(5n) {
  height: 14px;
  background: rgba(255, 255, 255, 0.6);
}

.fp2-filmstrip {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 60px;
  overflow: hidden;
}

.fp2-thumb-group {
  display: flex;
  gap: 40px;
  width: 100%;
  justify-content: space-around;
}

.fp2-thumb {
  width: 160px;
  height: 90px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
  flex-shrink: 0;
}

.fp2-thumb-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  filter: brightness(0.7) grayscale(0.3);
  transition: all 0.5s ease;
}

.fp2-thumb.fp2-active {
  transform: scale(1.1);
  border-color: #9c27b0;
  box-shadow: 0 0 20px rgba(156, 39, 176, 0.4);
}

.fp2-thumb.fp2-active .fp2-thumb-img {
  filter: brightness(1) grayscale(0);
}

.fp2-playhead {
  position: absolute;
  top: 0;
  left: 10%;
  height: 100%;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  z-index: 10;
  pointer-events: none;
}

.fp2-playhead::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
}

/* [EXIT] on screen 2 — same style as screen 1 label */
.fp2-exit-top {
  position: absolute;
  right: 9.27vw;
  top: 1.56vw;
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 1.15vw;
  font-weight: 500;
  letter-spacing: 0.49vw;
  text-transform: uppercase;
  color: #fff;
  padding: 0;
  transition: color 0.3s;
}

.fp2-exit-top:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
  .fp-headline .fp-line1,
  .fp-headline .fp-line2 {
    font-size: clamp(60px, 10vw, 180px);
    letter-spacing: 20px;
  }

  #fvm-fp-panel .fp-scroll-see-more {
    right: 40px;
    top: 60px;
    font-size: 16px;
    letter-spacing: 5px;
    line-height: 1.5;
  }
}

@media (max-width: 768px) {
  .fp-headline .fp-line1,
  .fp-headline .fp-line2 {
    font-size: clamp(42px, 13vw, 90px);
    letter-spacing: 8px;
  }

  #fvm-fp-panel .fp-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0 24px 36px;
  }

  #fvm-fp-panel .fp-scroll-see-more {
    right: 16px;
    top: 50px;
    font-size: 11px;
    letter-spacing: 3px;
    line-height: 1.4;
  }

  .fp-scroll-forward-txt {
    font-size: 13px;
    letter-spacing: 4px;
  }

  #fvm-fp-panel .fp-scroll-forward-wrap {
    bottom: 130px;
  }

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

  .fp-cta-btn .fp-cta-text {
    font-size: 14px;
    letter-spacing: 5px;
  }

  .fp2-thumb {
    width: 100px;
    height: 60px;
  }

  .fp2-exit-top {
    right: 20px;
    font-size: 14px;
    letter-spacing: 4px;
  }
}
