/*
  Shared styles for the video meeting introduction page.

  @author: HIRANO Satoshi with Happy
  @copyright 2026 Peace and Passion
  @since: 2026/11/13
*/

.initial-headroom-unpinned,
.headroom-no-transition {
  transform: translateY(-56%);
  transition: none !important;
}

.initial-headroom-no-shadow,
.initial-headroom-no-shadow.headroom--unpinned {
  box-shadow: none !important;
}

.video-meeting-screenshot {
  width: 60%;
  max-width: 400px;
  margin: 0 auto;
}

/* Materialbox controls the image dimensions while it is enlarged. */
.video-meeting-screenshot img.materialboxed.active {
  width: none;
  max-width: none;
}

@media (max-width: 600px) {
  .initial-headroom-unpinned {
    transform: translateY(-46%);
  }
}

.video-meeting-hero {
  position: relative;
  min-height: calc(100svh - 56px);
  margin-top: 0;
  padding: clamp(1.2rem, 3vw, 2.4rem) 0;
  background:
    linear-gradient(rgba(255, 250, 244, .18), rgba(255, 250, 244, .18)),
    var(--video-meeting-background) center / cover no-repeat;
  overflow: hidden;
}

.video-meeting-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  color: #fffdf9;
  text-shadow: 0 2px 18px rgba(99, 52, 44, .42);
}

.video-meeting-brand-strip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  width: 100%;
  height: 48px;
  border-top: 1px solid rgba(255, 255, 255, .48);
  border-bottom: 1px solid rgba(255, 255, 255, .38);
  background: rgba(255, 253, 249, .58);
  color: #63342c;
  letter-spacing: .02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
  backdrop-filter: blur(10px) saturate(1.08);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
}

.video-meeting-brand-strip__item {
  white-space: nowrap;
}

.video-meeting-brand-strip__item--jost {
  font-family: "Jost", sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.30rem);
  font-weight: 500;
  letter-spacing: .18rem;
  text-indent: .18em;
  text-transform: uppercase;
}

.rotate-device-prototype {
  display: flex;
  justify-content: center;
  min-height: calc(100svh - 220px);
  padding: clamp(1rem, 3vw, 2.5rem) 0 0;
  perspective: 1400px;
}

.rotate-device-prototype__scene {
  position: relative;
  width: 100vw;
  height: calc(100svh - 220px);
  min-height: 520px;
  transform-style: preserve-3d;
}

.rotate-device-prototype__glass {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(84vw, 372px);
  height: min(130vw, 520px);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02) 42%, rgba(225, 229, 226, .06)),
    linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .01));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .24),
    inset 0 -18px 36px rgba(255, 255, 255, .04),
    0 34px 80px rgba(99, 52, 44, .16),
    0 12px 34px rgba(120, 76, 67, .10);
  overflow: hidden;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  backdrop-filter: blur(2px) saturate(1.12);
  -webkit-backdrop-filter: blur(2px) saturate(1.12);
  animation:
    rotate-device-prototype-turn 9s cubic-bezier(.65, 0, .25, 1) infinite,
    rotate-device-prototype-visibility 9s linear infinite;
}

.rotate-device-prototype__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  backface-visibility: hidden;
  transform: scaleX(-1);
  animation: rotate-device-prototype-screen 9s cubic-bezier(.65, 0, .25, 1) infinite;
}

.rotate-device-prototype__shine {
  position: absolute;
  inset: -22%;
  border-radius: 42px;
  background:
    linear-gradient(112deg, transparent 18%, rgba(255, 255, 255, .44) 37%, transparent 52%),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .55), transparent 22%);
  opacity: .46;
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translateX(-18%) rotate(8deg);
  animation: rotate-device-prototype-shine 9s cubic-bezier(.65, 0, .25, 1) infinite;
}

@keyframes rotate-device-prototype-turn {
  0% {
    transform: translate3d(-8%, 2%, -120px) rotateX(-7deg) rotateZ(2deg) rotateY(90deg) scale(.86);
  }
  40% {
    transform: translate3d(0, 0, 70px) rotateX(0deg) rotateZ(0deg) rotateY(180deg) scale(1);
  }
  60% {
    transform: translate3d(0, 0, 70px) rotateX(0deg) rotateZ(0deg) rotateY(180deg) scale(1);
  }
  100% {
    transform: translate3d(-8%, 2%, -120px) rotateX(-7deg) rotateZ(2deg) rotateY(270deg) scale(.86);
  }
}

@keyframes rotate-device-prototype-visibility {
  0%, 100% {
    opacity: 0;
  }
  3%, 97% {
    opacity: 1;
  }
}

@keyframes rotate-device-prototype-screen {
  0%, 10%, 95%, 100% {
    filter: blur(2.6px) saturate(.92);
    opacity: .44;
  }
  30%, 70% {
    filter: blur(0) saturate(1);
    opacity: .98;
  }
}

@keyframes rotate-device-prototype-shine {
  0%, 13% {
    opacity: .62;
    transform: translateX(-22%) rotate(8deg);
  }
  43%, 58% {
    opacity: .34;
    transform: translateX(4%) rotate(8deg);
  }
  88%, 100% {
    opacity: .62;
    transform: translateX(28%) rotate(8deg);
  }
}

@media (max-width: 600px) {
  .video-meeting-hero {
    min-height: calc(100svh - 56px);
  }

  .rotate-device-prototype {
    min-height: calc(100svh - 200px);
    padding-top: 1rem;
  }

  .rotate-device-prototype__scene {
    height: calc(100svh - 200px);
    min-height: 430px;
  }

  .video-meeting-brand-strip {
    gap: .8rem;
    overflow-x: auto;
    padding: 0 1rem;
  }
}
