/* =============================================
   PANEL — fixed fullscreen, hidden by default
   ============================================= */
#fvm-social-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-social-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;
}

/* =============================================
   SCROLL TRACK
   ============================================= */
.sm-scroll-track {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 90; /* Above the animation (50) but below bottom bar (100) */
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  pointer-events: all;
}

.sm-scroll-track::-webkit-scrollbar {
  display: none;
}

.sm-scroll-content {
  height: 500vh;
  /* Long scroll for the phone animation */
}

/* =============================================
   SCREEN BASE
   ============================================= */
.sm-screen-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
}

#sm-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

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

.sm-bg-overlay-color {
  position: absolute;
  inset: 0;
  background: #fef20080;
  /* Vibrant Social Orange */
  z-index: -1;
}

/* [SCROLL TO SEE MORE] — top right */
.sm-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-social-panel.is-active .sm-scroll-see-more {
  opacity: 1;
  transform: translateY(0);
}

/* [EXIT] button — replacing the see more when needed or just top right */
.sm-exit-btn-top {
  position: absolute;
  right: 9.27vw;
  top: 6.25vw;
  z-index: 100;
  background: none;
  border: none;
  font-family: "Montserrat", sans-serif;
  font-size: 1.15vw;
  font-weight: 500;
  letter-spacing: 0.49vw;
  text-transform: uppercase;
  line-height: 3.75vw;
  color: #fff;
  padding: 0;
  pointer-events: all;
  opacity: 0.6;
  transition: opacity 0.3s;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.sm-exit-btn-top:hover {
  opacity: 1;
}

/* HEADLINE — hard-light knockout */
.sm-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-social-panel.is-active .sm-headline-wrap {
  opacity: 1;
  margin-top: -40px;
}

.sm-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding: 0;
  gap: 4vw;
  max-width: 57.29vw;
}

.sm-hero-text {
  font-family: "Montserrat", sans-serif;
  font-size: 10.42vw;
  text-transform: uppercase;
  line-height: 10.42vw;
  color: #808080;
  /* Neutral gray for hard-light blend */
  white-space: nowrap;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.sm-hero-text.text-social {
  font-weight: 300;
  letter-spacing: 70px;
}

.sm-hero-text.text-media {
  font-weight: 700;
  letter-spacing: 70px;
}

/* [SCROLL TO MOVE FORWARD] */
.sm-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: 1rem;
  opacity: 0;
  transition: opacity 0.6s ease 0.65s;
}

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

.sm-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;
}

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

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

/* BOTTOM BAR */
.sm-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* FRONT MOST */
  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;
  pointer-events: all;
}

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

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

/* CTA button */
.sm-cta-btn {
  display: flex;
  padding: 1.04vw;
  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%
  );
  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-in-out,
    background 0.3s ease-in-out,
    transform 0.2s ease-in-out;
}

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

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

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

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

/* ===================================================
   ANIMATED PHONE COMPONENTS (from our-social.html)
   =================================================== */

.sm-screen-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 50;
  /* Above the knockout overlay (z-index 1) but below bottom bar */
}

.sm-dark-box {
  position: absolute;
  z-index: 10;
  bottom: -100vh;
  /* Hidden initially */
  left: 50%;
  transform: translateX(-50%);
  border-radius: 54px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: 3.5px solid #1c2126;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 4px 20px rgba(0, 0, 0, 0.4);
  transform-style: preserve-3d;
  width: 19vw;
  height: 75vh;
}

.sm-dark-box .phone-ui {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  border: 8px solid #000;
  z-index: 1;
  border-radius: 46px;
}

.sm-dark-box .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  border-radius: 46px;
}

.sm-btn-hardware,
.sm-dynamic-island {
  position: absolute;
  z-index: 30;
  background: #1c2126;
}

.sm-dynamic-island {
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 125px;
  height: 34px;
  background-color: #000;
  border-radius: 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 20px;
}

.sm-dynamic-island::after {
  content: "";
  width: 11px;
  height: 11px;
  background: radial-gradient(circle, #1a1a1a 0%, #000 70%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.sm-btn-power {
  width: 2.5px;
  height: 95px;
  right: -3px;
  top: 28%;
  border-radius: 2px;
}

.sm-btn-volume-up {
  width: 2.5px;
  height: 60px;
  left: -3px;
  top: 28%;
  border-radius: 2px;
}

.sm-btn-volume-down {
  width: 2.5px;
  height: 60px;
  left: -3px;
  top: 38%;
  border-radius: 2px;
}

.sm-btn-action {
  width: 2.5px;
  height: 30px;
  left: -3px;
  top: 21%;
  border-radius: 2px;
}

.sm-side-phone {
  position: absolute;
  z-index: 8;
  width: 19vw;
  height: 72vh;
  bottom: 17.5vh;
  border-radius: 54px;
  overflow: hidden;
  background: #fff;
  border: 3.5px solid #1c2126;
  transform-style: preserve-3d;
  box-shadow:
    -1px 1px 0 #a9a9a9,
    -2px 2px 0 #969696,
    -3px 3px 0 #8c8c8c,
    -4px 4px 0 #7a7a7a,
    -5px 5px 0 #696969,
    -6px 6px 0 #595959,
    -15px 20px 30px rgba(0, 0, 0, 0);
}

.sm-left-phone {
  left: 14vw;
}

.sm-right-phone {
  right: 14vw;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .sm-exit-btn-top {
    right: 40px;
    top: 60px;
    font-size: 16px;
    letter-spacing: 5px;
  }

  .sm-bottom-bar {
    padding: 0 40px 40px;
  }

  .sm-hero-text {
    font-size: 12vw;
    letter-spacing: 10px;
  }
}

@media (max-width: 768px) {
  .sm-exit-btn-top {
    right: 24px;
    top: 40px;
    font-size: 12px;
    letter-spacing: 3px;
  }

  .sm-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0 24px 30px;
  }

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

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

  .sm-dark-box,
  .sm-side-phone {
    width: 45vw;
    height: 60vh;
    bottom: 20vh;
  }

  .sm-left-phone {
    left: 5vw;
  }

  .sm-right-phone {
    right: 5vw;
  }
}
