html {
  scroll-padding-top: 6rem;
}

#top {
  min-height: 760px;
}

#top > .relative.mx-auto {
  min-height: 620px;
}

#top .max-w-3xl {
  position: relative;
  z-index: 2;
}

.premium-doc-stack {
  position: absolute;
  right: clamp(1rem, 5vw, 4.5rem);
  top: clamp(8.25rem, 12vw, 10.75rem);
  z-index: 1;
  width: min(37vw, 29rem);
  min-width: 22rem;
  height: 34rem;
  pointer-events: none;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.premium-doc-stack__glow {
  position: absolute;
  inset: 11% -8% 3%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 206, 117, 0.34), transparent 42%),
    radial-gradient(circle at 55% 55%, rgba(180, 236, 242, 0.22), transparent 56%);
  filter: blur(20px);
  opacity: 0.95;
  animation: docGlow 5s ease-in-out infinite;
}

.premium-doc-stack__tray {
  position: absolute;
  left: 8%;
  right: 5%;
  bottom: 1.5rem;
  height: 4.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
  box-shadow: 0 42px 70px rgba(2, 30, 42, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transform: rotateX(67deg) translateZ(-95px);
}

.premium-doc-stack__page {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 15.2rem;
  height: 21.2rem;
  border-radius: 1.15rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 251, 252, 0.9) 58%, rgba(255, 243, 214, 0.92)),
    repeating-linear-gradient(180deg, transparent 0 1.75rem, rgba(34, 124, 150, 0.1) 1.75rem 1.85rem);
  box-shadow:
    0 24px 50px rgba(2, 30, 42, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.86) inset,
    0 -1px 0 rgba(34, 124, 150, 0.14) inset;
  transform-origin: 50% 100%;
  opacity: 0;
  overflow: hidden;
  animation: foldToStack 6.8s cubic-bezier(0.2, 0.75, 0.15, 1) infinite;
}

.premium-doc-stack__page::before,
.premium-doc-stack__page::after {
  content: "";
  position: absolute;
}

.premium-doc-stack__page::before {
  inset: 1.7rem 1.5rem auto;
  height: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 124, 150, 0.48), rgba(34, 124, 150, 0.12));
  box-shadow:
    0 2.3rem 0 -0.05rem rgba(34, 124, 150, 0.18),
    0 4.6rem 0 -0.05rem rgba(34, 124, 150, 0.14),
    0 6.9rem 0 -0.05rem rgba(34, 124, 150, 0.12),
    0 9.2rem 0 -0.05rem rgba(34, 124, 150, 0.1);
}

.premium-doc-stack__page::after {
  right: 1.25rem;
  bottom: 1.15rem;
  width: 4.6rem;
  height: 4.6rem;
  border: 0.28rem solid rgba(209, 164, 61, 0.38);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 122, 0.22), transparent 58%);
}

.premium-doc-stack__page:nth-child(2) {
  --drop-x: -50%;
  --drop-y: -50%;
  --start-rotate: -18deg;
  --land-rotate: -8deg;
  --z: 52px;
  animation-delay: 0s;
}

.premium-doc-stack__page:nth-child(3) {
  --drop-x: -48%;
  --drop-y: -47%;
  --start-rotate: 15deg;
  --land-rotate: 5deg;
  --z: 38px;
  animation-delay: 0.55s;
}

.premium-doc-stack__page:nth-child(4) {
  --drop-x: -53%;
  --drop-y: -45%;
  --start-rotate: -10deg;
  --land-rotate: -2deg;
  --z: 24px;
  animation-delay: 1.1s;
}

.premium-doc-stack__page:nth-child(5) {
  --drop-x: -47%;
  --drop-y: -49%;
  --start-rotate: 20deg;
  --land-rotate: 8deg;
  --z: 10px;
  animation-delay: 1.65s;
}

.premium-doc-stack__seal {
  position: absolute;
  right: 0.75rem;
  bottom: 8rem;
  display: grid;
  place-items: center;
  width: 6.2rem;
  height: 6.2rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff5cc, #d8a536 62%, #9f741f);
  color: #123746;
  font: 800 0.7rem/1.1 var(--font-montserrat, Montserrat, Arial, sans-serif);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 22px 42px rgba(3, 38, 48, 0.34), inset 0 2px 0 rgba(255, 255, 255, 0.64);
  animation: sealArrive 6.8s cubic-bezier(0.2, 0.75, 0.15, 1) infinite;
}

.contact-socials,
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-socials a,
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.contact-socials a {
  border: 1px solid rgba(34, 124, 150, 0.18);
  background: #fff;
  color: #1a6278;
  box-shadow: 0 12px 24px rgba(3, 55, 61, 0.08);
}

.footer-socials a {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.86);
}

.contact-socials a:hover,
.footer-socials a:hover {
  transform: translateY(-2px);
}

.legal-checks {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.legal-checks label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: #5a7077;
  font-size: 0.9rem;
  line-height: 1.45;
}

.legal-checks input {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  margin-top: 0.1rem;
  accent-color: #227c96;
}

.legal-checks a {
  color: #227c96;
  font-weight: 700;
  text-underline-offset: 3px;
}

.legal-checks__error {
  color: #dc2626;
  font-size: 0.8rem;
}

.stack-variant-switcher {
  position: absolute;
  right: clamp(1rem, 5vw, 4.5rem);
  top: clamp(40.5rem, 54vw, 43.25rem);
  z-index: 3;
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 38px rgba(3, 38, 48, 0.18);
  backdrop-filter: blur(14px);
}

.stack-variant-switcher button {
  min-height: 2.15rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font: 700 0.76rem/1 var(--font-montserrat, Montserrat, Arial, sans-serif);
  letter-spacing: 0;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.stack-variant-switcher button:hover,
.stack-variant-switcher button.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: #1a6278;
}

.stack-variant-switcher button:hover {
  transform: translateY(-1px);
}

.premium-doc-stack--v1 .premium-doc-stack__page {
  opacity: 1;
  animation: executiveStack 7.5s cubic-bezier(0.18, 0.82, 0.22, 1) infinite;
}

.premium-doc-stack--v1 .premium-doc-stack__page:nth-child(2) {
  --start-x: -116%;
  --start-y: -66%;
  --end-x: -56%;
  --end-y: -12%;
  --rotate-start: -16deg;
  --rotate-end: -7deg;
  --lift: 92px;
  animation-delay: 0s;
}

.premium-doc-stack--v1 .premium-doc-stack__page:nth-child(3) {
  --start-x: -7%;
  --start-y: -76%;
  --end-x: -51%;
  --end-y: -7%;
  --rotate-start: 11deg;
  --rotate-end: 4deg;
  --lift: 72px;
  animation-delay: 0.42s;
}

.premium-doc-stack--v1 .premium-doc-stack__page:nth-child(4) {
  --start-x: -93%;
  --start-y: -45%;
  --end-x: -48%;
  --end-y: -2%;
  --rotate-start: -8deg;
  --rotate-end: -2deg;
  --lift: 54px;
  animation-delay: 0.84s;
}

.premium-doc-stack--v1 .premium-doc-stack__page:nth-child(5) {
  --start-x: -19%;
  --start-y: -52%;
  --end-x: -45%;
  --end-y: 3%;
  --rotate-start: 15deg;
  --rotate-end: 7deg;
  --lift: 36px;
  animation-delay: 1.26s;
}

.premium-doc-stack--v1 .premium-doc-stack__seal {
  animation: executiveSeal 7.5s cubic-bezier(0.18, 0.82, 0.22, 1) infinite;
}

.premium-doc-stack--v2 .premium-doc-stack__page {
  opacity: 1;
  animation: signatureFlow 8s cubic-bezier(0.16, 0.78, 0.24, 1) infinite;
}

.premium-doc-stack--v2 .premium-doc-stack__page:nth-child(2) {
  --fan-x: -71%;
  --fan-y: -21%;
  --fan-r: -14deg;
  --stack-x: -52%;
  --stack-y: 6%;
  --stack-r: -4deg;
  animation-delay: 0s;
}

.premium-doc-stack--v2 .premium-doc-stack__page:nth-child(3) {
  --fan-x: -54%;
  --fan-y: -29%;
  --fan-r: -5deg;
  --stack-x: -49%;
  --stack-y: 9%;
  --stack-r: 0deg;
  animation-delay: 0.2s;
}

.premium-doc-stack--v2 .premium-doc-stack__page:nth-child(4) {
  --fan-x: -36%;
  --fan-y: -24%;
  --fan-r: 8deg;
  --stack-x: -46%;
  --stack-y: 12%;
  --stack-r: 4deg;
  animation-delay: 0.4s;
}

.premium-doc-stack--v2 .premium-doc-stack__page:nth-child(5) {
  --fan-x: -49%;
  --fan-y: -12%;
  --fan-r: 1deg;
  --stack-x: -43%;
  --stack-y: 15%;
  --stack-r: 8deg;
  animation-delay: 0.6s;
}

.premium-doc-stack--v2 .premium-doc-stack__seal {
  animation: signatureSeal 8s cubic-bezier(0.16, 0.78, 0.24, 1) infinite;
}

.premium-doc-stack--v2::after {
  content: "";
  position: absolute;
  left: 17%;
  top: 63%;
  width: 13rem;
  height: 2.2rem;
  border-bottom: 0.24rem solid rgba(217, 174, 79, 0.72);
  border-radius: 50%;
  opacity: 0;
  transform: rotate(-6deg);
  animation: signatureStroke 8s ease-in-out infinite;
}

.premium-doc-stack--v3 .premium-doc-stack__page {
  opacity: 1;
  animation: archiveSlide 7.8s cubic-bezier(0.2, 0.72, 0.18, 1) infinite;
}

.premium-doc-stack--v3 .premium-doc-stack__page:nth-child(2) {
  --lane-y: -38%;
  --stack-y: 0%;
  --r: -5deg;
  animation-delay: 0s;
}

.premium-doc-stack--v3 .premium-doc-stack__page:nth-child(3) {
  --lane-y: -18%;
  --stack-y: 5%;
  --r: -1deg;
  animation-delay: 0.35s;
}

.premium-doc-stack--v3 .premium-doc-stack__page:nth-child(4) {
  --lane-y: 2%;
  --stack-y: 10%;
  --r: 3deg;
  animation-delay: 0.7s;
}

.premium-doc-stack--v3 .premium-doc-stack__page:nth-child(5) {
  --lane-y: 22%;
  --stack-y: 15%;
  --r: 7deg;
  animation-delay: 1.05s;
}

.premium-doc-stack--v3 .premium-doc-stack__tray {
  height: 6.25rem;
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.07)),
    linear-gradient(90deg, rgba(255, 211, 112, 0.28), transparent 38%, rgba(180, 236, 242, 0.18));
  transform: rotateX(64deg) translateZ(-76px);
}

.premium-doc-stack--v3 .premium-doc-stack__seal {
  animation: archiveSeal 7.8s cubic-bezier(0.2, 0.72, 0.18, 1) infinite;
}

@keyframes executiveStack {
  0%, 7% {
    opacity: 0;
    transform: translate3d(var(--start-x), var(--start-y), var(--lift)) rotateX(0deg) rotateY(-8deg) rotateZ(var(--rotate-start)) scale(0.93);
  }
  22%, 46% {
    opacity: 1;
    transform: translate3d(var(--start-x), var(--start-y), var(--lift)) rotateX(0deg) rotateY(0deg) rotateZ(var(--rotate-start)) scale(1);
  }
  66%, 88% {
    opacity: 1;
    transform: translate3d(var(--end-x), var(--end-y), 28px) rotateX(63deg) rotateY(0deg) rotateZ(var(--rotate-end)) scale(0.98);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--end-x), calc(var(--end-y) + 1rem), 22px) rotateX(63deg) rotateZ(var(--rotate-end)) scale(0.96);
  }
}

@keyframes executiveSeal {
  0%, 58% {
    opacity: 0;
    transform: translate3d(0.9rem, -3.3rem, 110px) rotate(-10deg) scale(0.82);
  }
  72%, 91% {
    opacity: 1;
    transform: translate3d(0, 0, 110px) rotate(5deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(0.35rem, 0.7rem, 110px) rotate(5deg) scale(0.96);
  }
}

@keyframes signatureFlow {
  0%, 12% {
    opacity: 0;
    transform: translate3d(-50%, -78%, 82px) rotateX(0deg) rotateZ(-3deg) scale(0.92);
  }
  28%, 52% {
    opacity: 1;
    transform: translate3d(var(--fan-x), var(--fan-y), 78px) rotateX(0deg) rotateZ(var(--fan-r)) scale(1);
  }
  72%, 90% {
    opacity: 1;
    transform: translate3d(var(--stack-x), var(--stack-y), 22px) rotateX(61deg) rotateZ(var(--stack-r)) scale(0.98);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--stack-x), calc(var(--stack-y) + 0.75rem), 18px) rotateX(61deg) rotateZ(var(--stack-r)) scale(0.96);
  }
}

@keyframes signatureSeal {
  0%, 43% {
    opacity: 0;
    transform: translate3d(-7rem, 1rem, 120px) rotate(-24deg) scale(0.7);
  }
  55%, 89% {
    opacity: 1;
    transform: translate3d(-1.25rem, 0.25rem, 120px) rotate(-8deg) scale(0.96);
  }
  100% {
    opacity: 0;
    transform: translate3d(-0.8rem, 1.1rem, 120px) rotate(-8deg) scale(0.92);
  }
}

@keyframes signatureStroke {
  0%, 34% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  45%, 76% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  92%, 100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes archiveSlide {
  0%, 10% {
    opacity: 0;
    transform: translate3d(48%, var(--lane-y), 82px) rotateX(0deg) rotateZ(var(--r)) scale(0.96);
  }
  28%, 48% {
    opacity: 1;
    transform: translate3d(-18%, var(--lane-y), 86px) rotateX(0deg) rotateZ(var(--r)) scale(1);
  }
  70%, 89% {
    opacity: 1;
    transform: translate3d(-50%, var(--stack-y), 25px) rotateX(64deg) rotateZ(var(--r)) scale(0.98);
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, calc(var(--stack-y) + 0.85rem), 20px) rotateX(64deg) rotateZ(var(--r)) scale(0.96);
  }
}

@keyframes archiveSeal {
  0%, 64% {
    opacity: 0;
    transform: translate3d(2.4rem, -1.8rem, 120px) rotate(14deg) scale(0.76);
  }
  76%, 91% {
    opacity: 1;
    transform: translate3d(0.15rem, 0.65rem, 120px) rotate(8deg) scale(0.95);
  }
  100% {
    opacity: 0;
    transform: translate3d(0.3rem, 1.3rem, 120px) rotate(8deg) scale(0.9);
  }
}

@keyframes foldToStack {
  0% {
    opacity: 0;
    transform: translate3d(calc(var(--drop-x) - 6rem), -120%, 170px) rotateX(72deg) rotateY(-20deg) rotateZ(var(--start-rotate)) scale(0.88);
  }
  14% {
    opacity: 1;
  }
  38% {
    transform: translate3d(var(--drop-x), var(--drop-y), var(--z)) rotateX(0deg) rotateY(0deg) rotateZ(var(--land-rotate)) scale(1);
  }
  66% {
    opacity: 1;
    transform: translate3d(var(--drop-x), calc(var(--drop-y) + 5.2rem), var(--z)) rotateX(68deg) rotateY(0deg) rotateZ(var(--land-rotate)) scale(0.98);
  }
  86% {
    opacity: 1;
    transform: translate3d(var(--drop-x), calc(var(--drop-y) + 5.2rem), var(--z)) rotateX(68deg) rotateY(0deg) rotateZ(var(--land-rotate)) scale(0.98);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drop-x), calc(var(--drop-y) + 5.2rem), var(--z)) rotateX(68deg) rotateY(0deg) rotateZ(var(--land-rotate)) scale(0.98);
  }
}

@keyframes sealArrive {
  0%, 48% {
    opacity: 0;
    transform: translate3d(2rem, -6rem, 120px) rotate(-18deg) scale(0.7);
  }
  62%, 86% {
    opacity: 1;
    transform: translate3d(0, 0, 120px) rotate(8deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(0.75rem, 1.5rem, 120px) rotate(8deg) scale(0.96);
  }
}

@keyframes docGlow {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@media (max-width: 1023px) {
  #top {
    min-height: 0;
  }

  .premium-doc-stack {
    position: relative;
    right: auto;
    top: auto;
    width: min(100%, 25rem);
    min-width: 0;
    height: 25rem;
    margin: 2.5rem auto 0;
  }

  .stack-variant-switcher {
    position: relative;
    right: auto;
    top: auto;
    margin: 0.75rem auto 0;
    width: max-content;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .premium-doc-stack {
    height: 20rem;
    transform: scale(0.82);
    transform-origin: top center;
    margin-bottom: -2.8rem;
  }

  .premium-doc-stack__page {
    width: 12.3rem;
    height: 17.2rem;
    border-radius: 0.9rem;
  }

  .premium-doc-stack__seal {
    right: 1.1rem;
    bottom: 6rem;
    width: 5rem;
    height: 5rem;
    font-size: 0.58rem;
  }

  .stack-variant-switcher {
    gap: 0.25rem;
    transform: scale(0.92);
    transform-origin: center;
  }

  .stack-variant-switcher button {
    min-height: 2rem;
    padding: 0 0.65rem;
    font-size: 0.68rem;
  }
}

/* === Final hero scene: one transparent Three.js canvas, no legacy media === */
#top .bm-video-stage,
#top .hero-video-stage,
#top .premium-doc-stage,
#top .real-paper-stage,
#top .doc-animation-switcher,
#top .hero-3d-stage:not(.hero-paper-webgl) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hero-paper-webgl {
  position: relative;
  z-index: 3;
  width: min(100%, 42rem);
  height: clamp(31rem, 38vw, 36rem);
  align-self: center;
  justify-self: end;
  overflow: visible;
  background: transparent;
  pointer-events: none;
  contain: layout style;
}

.hero-paper-webgl__canvas {
  position: absolute;
  top: calc(-1 * var(--hero-webgl-overscan-y, 0px));
  right: auto;
  bottom: auto;
  left: calc(-1 * var(--hero-webgl-overscan-x, 0px));
  display: block;
  width: var(--hero-webgl-render-width, 100%) !important;
  height: var(--hero-webgl-render-height, 100%) !important;
  max-width: none !important;
  background: transparent !important;
  pointer-events: none !important;
  touch-action: none;
}

@media (min-width: 1024px) {
  #top > .relative.mx-auto {
    max-width: 90rem !important;
    grid-template-columns: minmax(0, 47rem) minmax(32rem, 42rem) !important;
    gap: clamp(1.6rem, 3vw, 4rem) !important;
    align-items: center !important;
  }

  #top > .relative.mx-auto > .max-w-3xl {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 5;
  }

  .hero-paper-webgl {
    grid-column: 2;
    grid-row: 1;
    margin-right: clamp(-1.2rem, -1vw, -.2rem);
  }
}

@media (max-width: 1023px) {
  .hero-paper-webgl {
    width: min(96vw, 38rem);
    height: clamp(25rem, 68vw, 31rem);
    margin: 1rem auto 0;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .hero-paper-webgl {
    width: min(100%, 23.5rem);
    height: 21.5rem;
    margin: -1.35rem auto 0;
    overflow: visible;
  }

  .hero-paper-webgl__canvas {
    right: auto;
    bottom: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-doc-stack *,
  .premium-doc-stack {
    animation: none !important;
  }

  .premium-doc-stack__page {
    opacity: 1;
    transform: translate3d(-50%, 8%, 24px) rotateX(62deg) rotateZ(0deg);
  }

  .premium-doc-stack__seal {
    opacity: 1;
    transform: rotate(8deg);
  }
}

/* Final production animation: calm executive document stack. */
.premium-doc-stack--final {
  top: clamp(8.9rem, 12vw, 10.5rem);
  width: min(35vw, 27.5rem);
  height: 33rem;
}

.premium-doc-stack--final .premium-doc-stack__glow {
  inset: 16% -2% 8%;
  background:
    radial-gradient(circle at 52% 45%, rgba(255, 207, 119, 0.22), transparent 38%),
    radial-gradient(circle at 44% 64%, rgba(190, 239, 244, 0.2), transparent 58%);
  filter: blur(22px);
  animation: finalGlow 7s ease-in-out infinite;
}

.premium-doc-stack__desk {
  position: absolute;
  left: 3.5rem;
  right: 1.75rem;
  bottom: 3.2rem;
  height: 6.2rem;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.03) 64%, transparent 72%);
  box-shadow: 0 40px 80px rgba(5, 39, 51, 0.34);
  transform: rotateX(67deg);
}

.premium-doc-stack--final .premium-doc-stack__tray {
  left: 14%;
  right: 10%;
  bottom: 4.2rem;
  height: 3.6rem;
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05)),
    linear-gradient(90deg, rgba(255, 211, 112, 0.2), transparent 38%, rgba(190, 239, 244, 0.16));
  box-shadow: 0 24px 44px rgba(3, 32, 43, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: rotateX(66deg) translateZ(-48px);
}

.premium-doc-stack--final .premium-doc-stack__page {
  top: 43%;
  width: 15rem;
  height: 20.5rem;
  border-radius: 0.9rem;
  opacity: 1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 251, 252, 0.96) 62%, rgba(255, 246, 222, 0.96)),
    repeating-linear-gradient(180deg, transparent 0 1.72rem, rgba(34, 124, 150, 0.095) 1.72rem 1.82rem);
  box-shadow:
    0 28px 54px rgba(3, 35, 47, 0.24),
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 -1px 0 rgba(34, 124, 150, 0.14) inset;
  animation: none;
}

.premium-doc-stack--final .premium-doc-stack__page:nth-child(3) {
  transform: translate3d(-53%, 3.15rem, 18px) rotateX(62deg) rotateZ(-7deg);
}

.premium-doc-stack--final .premium-doc-stack__page:nth-child(4) {
  transform: translate3d(-49%, 3.55rem, 26px) rotateX(62deg) rotateZ(-2deg);
}

.premium-doc-stack--final .premium-doc-stack__page:nth-child(5) {
  transform: translate3d(-45%, 3.95rem, 34px) rotateX(62deg) rotateZ(4deg);
}

.premium-doc-stack--final .premium-doc-stack__page:nth-child(6) {
  transform-origin: 50% 88%;
  animation: finalTopDocument 6.8s cubic-bezier(0.2, 0.78, 0.2, 1) infinite;
}

.premium-doc-stack__clip {
  position: absolute;
  left: 48%;
  top: 40.5%;
  z-index: 8;
  width: 5.2rem;
  height: 1.05rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 231, 167, 0.96), rgba(197, 144, 40, 0.96));
  box-shadow: 0 14px 30px rgba(51, 39, 8, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: translate3d(-50%, 4.55rem, 72px) rotateX(62deg) rotateZ(1deg);
  animation: finalClipSettle 6.8s cubic-bezier(0.2, 0.78, 0.2, 1) infinite;
}

.premium-doc-stack--final .premium-doc-stack__seal {
  right: 1.35rem;
  bottom: 8.6rem;
  width: 5.8rem;
  height: 5.8rem;
  opacity: 1;
  animation: finalSeal 6.8s cubic-bezier(0.2, 0.78, 0.2, 1) infinite;
}

@keyframes finalTopDocument {
  0%, 9% {
    opacity: 0;
    transform: translate3d(-42%, -3.2rem, 105px) rotateX(18deg) rotateY(-7deg) rotateZ(7deg) scale(0.96);
  }
  24%, 38% {
    opacity: 1;
    transform: translate3d(-44%, -1.5rem, 94px) rotateX(5deg) rotateY(-2deg) rotateZ(4deg) scale(1);
  }
  58%, 87% {
    opacity: 1;
    transform: translate3d(-42%, 4.3rem, 44px) rotateX(62deg) rotateY(0deg) rotateZ(7deg) scale(0.99);
  }
  100% {
    opacity: 0;
    transform: translate3d(-42%, 4.95rem, 40px) rotateX(62deg) rotateZ(7deg) scale(0.985);
  }
}

@keyframes finalClipSettle {
  0%, 45% {
    opacity: 0;
    transform: translate3d(-50%, 2.2rem, 96px) rotateX(46deg) rotateZ(-4deg) scale(0.88);
  }
  58%, 88% {
    opacity: 1;
    transform: translate3d(-50%, 4.55rem, 72px) rotateX(62deg) rotateZ(1deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, 4.9rem, 72px) rotateX(62deg) rotateZ(1deg) scale(0.98);
  }
}

@keyframes finalSeal {
  0%, 54% {
    opacity: 0;
    transform: translate3d(1.2rem, -2.2rem, 130px) rotate(-11deg) scale(0.82);
  }
  68%, 88% {
    opacity: 1;
    transform: translate3d(0, 0, 130px) rotate(6deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(0.25rem, 0.65rem, 130px) rotate(6deg) scale(0.96);
  }
}

/* 2026 hero refresh: centered document animation variants and overflow guard. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

#top {
  overflow-x: clip;
}

#top > .relative.mx-auto {
  display: grid;
  grid-template-columns: minmax(0, 46rem) minmax(18rem, 28rem);
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.4rem);
  min-height: clamp(38rem, 74vh, 45rem);
}

#top .max-w-3xl {
  max-width: 45rem;
}

#top h1 {
  font-size: clamp(2.5rem, 4.8vw, 3.75rem) !important;
  line-height: 1.04 !important;
}

.premium-doc-stage {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-self: center;
  width: min(100%, 28rem);
  min-height: 31rem;
  margin-left: auto;
  pointer-events: auto;
}

.premium-doc-stack {
  position: relative;
  inset: auto;
  width: min(100%, 26rem);
  min-width: 0;
  height: 26.5rem;
  margin: 0 auto;
  pointer-events: none;
  perspective: 1400px;
  transform: none;
  transform-style: preserve-3d;
}

.premium-doc-stack__glow {
  inset: 14% 3% 10%;
  background:
    radial-gradient(circle at 52% 42%, rgba(255, 208, 122, 0.24), transparent 40%),
    radial-gradient(circle at 48% 58%, rgba(182, 237, 244, 0.26), transparent 62%);
  filter: blur(24px);
  animation: refinedGlow 7s ease-in-out infinite;
}

.premium-doc-stack__desk {
  position: absolute;
  left: 12%;
  right: 10%;
  bottom: 5.8rem;
  height: 4.9rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.04) 63%, transparent 74%);
  box-shadow: 0 34px 70px rgba(4, 36, 48, 0.34);
  transform: rotateX(66deg);
}

.premium-doc-stack__tray {
  left: 16%;
  right: 12%;
  bottom: 6.8rem;
  height: 2.8rem;
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06)),
    linear-gradient(90deg, rgba(255, 211, 112, 0.2), transparent 40%, rgba(184, 236, 242, 0.18));
  box-shadow: 0 24px 46px rgba(3, 32, 43, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.44);
  transform: rotateX(66deg) translateZ(-46px);
}

.premium-doc-stack__page {
  top: 23%;
  width: 12.2rem;
  height: 16.8rem;
  border-radius: 0.95rem;
  opacity: 1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.985), rgba(241, 251, 252, 0.96) 62%, rgba(255, 246, 224, 0.96)),
    repeating-linear-gradient(180deg, transparent 0 1.58rem, rgba(34, 124, 150, 0.095) 1.58rem 1.68rem);
  box-shadow:
    0 26px 54px rgba(3, 35, 47, 0.23),
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 -1px 0 rgba(34, 124, 150, 0.14) inset;
  animation: none;
}

.premium-doc-stack__page::before {
  inset: 1.35rem 1.25rem auto;
  height: 0.5rem;
  box-shadow:
    0 1.85rem 0 -0.04rem rgba(34, 124, 150, 0.18),
    0 3.7rem 0 -0.04rem rgba(34, 124, 150, 0.14),
    0 5.55rem 0 -0.04rem rgba(34, 124, 150, 0.12),
    0 7.4rem 0 -0.04rem rgba(34, 124, 150, 0.1);
}

.premium-doc-stack__page::after {
  right: 0.95rem;
  bottom: 0.9rem;
  width: 3.65rem;
  height: 3.65rem;
}

.premium-doc-stack__page--one {
  transform: translate3d(-55%, 2.05rem, 18px) rotateX(62deg) rotateZ(-7deg);
}

.premium-doc-stack__page--two {
  transform: translate3d(-51%, 2.38rem, 26px) rotateX(62deg) rotateZ(-2deg);
}

.premium-doc-stack__page--three {
  transform: translate3d(-47%, 2.72rem, 34px) rotateX(62deg) rotateZ(4deg);
}

.premium-doc-stack__page--four {
  transform-origin: 50% 88%;
}

.premium-doc-stack__seal {
  right: 1.05rem;
  bottom: 9rem;
  width: 4.8rem;
  height: 4.8rem;
  font-size: 0.62rem;
  opacity: 1;
}

.premium-doc-stack--stack .premium-doc-stack__page--four {
  animation: refinedStackTop 6.8s cubic-bezier(0.2, 0.78, 0.2, 1) infinite;
}

.premium-doc-stack--stack .premium-doc-stack__seal {
  animation: refinedStackSeal 6.8s cubic-bezier(0.2, 0.78, 0.2, 1) infinite;
}

.premium-doc-stack--sign .premium-doc-stack__page--one {
  animation: refinedFanOne 7.4s cubic-bezier(0.18, 0.76, 0.18, 1) infinite;
}

.premium-doc-stack--sign .premium-doc-stack__page--two {
  animation: refinedFanTwo 7.4s cubic-bezier(0.18, 0.76, 0.18, 1) infinite;
}

.premium-doc-stack--sign .premium-doc-stack__page--three {
  animation: refinedFanThree 7.4s cubic-bezier(0.18, 0.76, 0.18, 1) infinite;
}

.premium-doc-stack--sign .premium-doc-stack__page--four {
  animation: refinedSignTop 7.4s cubic-bezier(0.18, 0.76, 0.18, 1) infinite;
}

.premium-doc-stack--sign::after {
  content: "";
  position: absolute;
  left: 39%;
  top: 48%;
  z-index: 9;
  width: 7.5rem;
  height: 1.45rem;
  border-bottom: 0.18rem solid rgba(218, 172, 66, 0.74);
  border-radius: 50%;
  opacity: 0;
  transform: rotate(-7deg);
  animation: refinedSignatureStroke 7.4s ease-in-out infinite;
}

.premium-doc-stack--sign .premium-doc-stack__seal {
  animation: refinedSignSeal 7.4s cubic-bezier(0.18, 0.76, 0.18, 1) infinite;
}

.premium-doc-stack--registry .premium-doc-stack__page {
  animation: refinedRegistrySlide 7.6s cubic-bezier(0.19, 0.74, 0.18, 1) infinite;
}

.premium-doc-stack--registry .premium-doc-stack__page--one {
  --lane: -2.6rem;
  --delay: 0s;
}

.premium-doc-stack--registry .premium-doc-stack__page--two {
  --lane: -0.85rem;
  --delay: 0.18s;
}

.premium-doc-stack--registry .premium-doc-stack__page--three {
  --lane: 0.85rem;
  --delay: 0.36s;
}

.premium-doc-stack--registry .premium-doc-stack__page--four {
  --lane: 2.55rem;
  --delay: 0.54s;
}

.premium-doc-stack--registry .premium-doc-stack__seal {
  animation: refinedRegistrySeal 7.6s cubic-bezier(0.19, 0.74, 0.18, 1) infinite;
}

.doc-animation-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  width: max-content;
  max-width: 100%;
  margin: -4.35rem auto 0;
  padding: 0.36rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 38px rgba(3, 38, 48, 0.18);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.doc-animation-switcher button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 2.18rem;
  min-height: 2.18rem;
  min-width: 5.45rem;
  padding: 0 0.88rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font: 700 0.76rem/1 var(--font-montserrat, Montserrat, Arial, sans-serif);
  letter-spacing: 0;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.doc-animation-switcher button:hover,
.doc-animation-switcher button.is-active {
  background: rgba(255, 255, 255, 0.94);
  color: #1a6278;
}

.doc-animation-switcher button:hover {
  transform: translateY(-1px);
}

@keyframes refinedStackTop {
  0%, 9% {
    opacity: 0;
    transform: translate3d(-43%, -2.15rem, 105px) rotateX(18deg) rotateY(-7deg) rotateZ(7deg) scale(0.96);
  }
  24%, 38% {
    opacity: 1;
    transform: translate3d(-44%, -0.85rem, 94px) rotateX(5deg) rotateY(-2deg) rotateZ(4deg) scale(1);
  }
  58%, 88% {
    opacity: 1;
    transform: translate3d(-44%, 2.65rem, 44px) rotateX(62deg) rotateY(0deg) rotateZ(7deg) scale(0.99);
  }
  100% {
    opacity: 0;
    transform: translate3d(-44%, 3.1rem, 40px) rotateX(62deg) rotateZ(7deg) scale(0.985);
  }
}

@keyframes refinedStackSeal {
  0%, 54% {
    opacity: 0;
    transform: translate3d(0.75rem, -1.65rem, 130px) rotate(-11deg) scale(0.82);
  }
  68%, 88% {
    opacity: 1;
    transform: translate3d(-0.2rem, 0, 130px) rotate(6deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-0.05rem, 0.5rem, 130px) rotate(6deg) scale(0.96);
  }
}

@keyframes refinedFanOne {
  0%, 16%, 100% { transform: translate3d(-57%, 2.05rem, 18px) rotateX(62deg) rotateZ(-7deg); }
  36%, 62% { transform: translate3d(-67%, 0.1rem, 80px) rotateX(6deg) rotateZ(-13deg); }
}

@keyframes refinedFanTwo {
  0%, 16%, 100% { transform: translate3d(-51%, 2.38rem, 26px) rotateX(62deg) rotateZ(-2deg); }
  36%, 62% { transform: translate3d(-51%, -0.25rem, 88px) rotateX(3deg) rotateZ(-3deg); }
}

@keyframes refinedFanThree {
  0%, 16%, 100% { transform: translate3d(-45%, 2.72rem, 34px) rotateX(62deg) rotateZ(4deg); }
  36%, 62% { transform: translate3d(-35%, 0.2rem, 80px) rotateX(6deg) rotateZ(10deg); }
}

@keyframes refinedSignTop {
  0%, 16%, 100% { transform: translate3d(-43%, 2.9rem, 44px) rotateX(62deg) rotateZ(7deg); }
  36%, 62% { transform: translate3d(-43%, 1.05rem, 96px) rotateX(7deg) rotateZ(4deg); }
}

@keyframes refinedSignatureStroke {
  0%, 40% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  50%, 68% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  86%, 100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes refinedSignSeal {
  0%, 48% {
    opacity: 0;
    transform: translate3d(-1.5rem, -0.8rem, 130px) rotate(-16deg) scale(0.8);
  }
  62%, 84% {
    opacity: 1;
    transform: translate3d(-0.55rem, 0.35rem, 130px) rotate(-7deg) scale(0.96);
  }
  100% {
    opacity: 0;
    transform: translate3d(-0.4rem, 0.65rem, 130px) rotate(-7deg) scale(0.92);
  }
}

@keyframes refinedRegistrySlide {
  0%, 12% {
    opacity: 0;
    transform: translate3d(50%, var(--lane), 94px) rotateX(0deg) rotateZ(4deg) scale(0.96);
  }
  30%, 52% {
    opacity: 1;
    transform: translate3d(-18%, var(--lane), 94px) rotateX(0deg) rotateZ(1deg) scale(1);
  }
  70%, 90% {
    opacity: 1;
    transform: translate3d(-49%, 2.5rem, 36px) rotateX(62deg) rotateZ(3deg) scale(0.99);
  }
  100% {
    opacity: 0;
    transform: translate3d(-49%, 2.95rem, 34px) rotateX(62deg) rotateZ(3deg) scale(0.985);
  }
}

@keyframes refinedRegistrySeal {
  0%, 62% {
    opacity: 0;
    transform: translate3d(1rem, -1.1rem, 130px) rotate(12deg) scale(0.78);
  }
  74%, 90% {
    opacity: 1;
    transform: translate3d(0, 0.35rem, 130px) rotate(8deg) scale(0.94);
  }
  100% {
    opacity: 0;
    transform: translate3d(0.15rem, 0.75rem, 130px) rotate(8deg) scale(0.9);
  }
}

@keyframes refinedGlow {
  0%, 100% {
    opacity: 0.74;
    transform: scale(0.98);
  }
  48%, 72% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@media (max-width: 1180px) {
  #top > .relative.mx-auto {
    grid-template-columns: minmax(0, 1fr);
  }

  .premium-doc-stage {
    width: min(100%, 28rem);
    min-height: 30rem;
    margin: 2rem auto 0;
  }
}

@media (max-width: 640px) {
  html,
  body,
  #top {
    overflow-x: hidden;
  }

  #top > .relative.mx-auto {
    min-height: 0;
  }

  .premium-doc-stage {
    width: min(100%, 21rem);
    min-height: 20.5rem;
    margin-top: 1.25rem;
  }

  .premium-doc-stack {
    width: 19rem;
    height: 17rem;
    transform: scale(0.74);
    transform-origin: top center;
  }

  .premium-doc-stack__page {
    top: 20%;
    width: 10.3rem;
    height: 14rem;
  }

  .premium-doc-stack__tray {
    bottom: 6.3rem;
  }

  .premium-doc-stack__desk {
    bottom: 5.55rem;
  }

  .premium-doc-stack__seal {
    right: 1.25rem;
    bottom: 8.25rem;
    width: 4.1rem;
    height: 4.1rem;
    font-size: 0.52rem;
  }

  .doc-animation-switcher {
    width: min(100%, calc(100vw - 2rem));
    margin-top: -4.3rem;
    transform: none;
    transform-origin: center;
  }

  .doc-animation-switcher button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 2rem;
    padding: 0 0.65rem;
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-doc-stack *,
  .premium-doc-stack::after {
    animation: none !important;
  }
}

@media (max-width: 640px) {
  .premium-doc-stack--final {
    width: min(100%, 19rem);
    height: 16rem;
    margin-top: 1rem;
    margin-bottom: -1rem;
    transform: scale(0.72);
    transform-origin: top center;
  }

  .premium-doc-stack--final .premium-doc-stack__page {
    top: 20%;
    width: 10.2rem;
    height: 13.9rem;
  }

  .premium-doc-stack--final .premium-doc-stack__tray {
    bottom: 6.4rem;
  }

  .premium-doc-stack__desk {
    bottom: 5.75rem;
  }

  .premium-doc-stack--final .premium-doc-stack__seal {
    right: 1.4rem;
    bottom: 8.5rem;
    width: 4.1rem;
    height: 4.1rem;
    font-size: 0.52rem;
  }
}

@keyframes finalGlow {
  0%, 100% {
    opacity: 0.74;
    transform: scale(0.98);
  }
  48%, 72% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@media (max-width: 1023px) {
  .premium-doc-stack--final {
    top: auto;
    width: min(100%, 25rem);
    height: 24rem;
  }
}

@media (max-width: 640px) {
  .premium-doc-stack--final {
    height: 15.5rem;
    margin-top: 1rem;
    margin-bottom: -1rem;
  }

  .premium-doc-stack--final .premium-doc-stack__page {
    width: 10.2rem;
    height: 13.9rem;
    top: 20%;
  }

  .premium-doc-stack__clip {
    width: 4rem;
    height: 0.82rem;
  }

  .premium-doc-stack--final .premium-doc-stack__seal {
    right: 1.4rem;
    bottom: 8.5rem;
    width: 4.1rem;
    height: 4.1rem;
    font-size: 0.52rem;
  }

  .premium-doc-stack--final .premium-doc-stack__tray {
    bottom: 6.4rem;
  }

  .premium-doc-stack__desk {
    bottom: 5.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-doc-stack--final .premium-doc-stack__page:nth-child(6) {
    opacity: 1;
    transform: translate3d(-42%, 4.3rem, 44px) rotateX(62deg) rotateZ(7deg);
  }

  .premium-doc-stack__clip {
    opacity: 1;
  }
}

/* Viewport fit polish for the selected production animation. */
.premium-doc-stack--final {
  right: clamp(1.5rem, 4vw, 4rem);
  top: clamp(6.2rem, 8vw, 7.1rem);
  width: min(32vw, 24.5rem);
  height: 27rem;
}

.premium-doc-stack--final .premium-doc-stack__page {
  top: 28%;
  width: 11.8rem;
  height: 16.1rem;
}

.premium-doc-stack--final .premium-doc-stack__page::before {
  inset: 1.45rem 1.28rem auto;
  height: 0.52rem;
  box-shadow:
    0 2rem 0 -0.04rem rgba(34, 124, 150, 0.18),
    0 4rem 0 -0.04rem rgba(34, 124, 150, 0.14),
    0 6rem 0 -0.04rem rgba(34, 124, 150, 0.12),
    0 8rem 0 -0.04rem rgba(34, 124, 150, 0.1);
}

.premium-doc-stack--final .premium-doc-stack__page::after {
  width: 3.8rem;
  height: 3.8rem;
  right: 1rem;
  bottom: 0.95rem;
}

.premium-doc-stack--final .premium-doc-stack__page:nth-child(3) {
  transform: translate3d(-55%, 2rem, 18px) rotateX(62deg) rotateZ(-7deg);
}

.premium-doc-stack--final .premium-doc-stack__page:nth-child(4) {
  transform: translate3d(-51%, 2.3rem, 26px) rotateX(62deg) rotateZ(-2deg);
}

.premium-doc-stack--final .premium-doc-stack__page:nth-child(5) {
  transform: translate3d(-47%, 2.6rem, 34px) rotateX(62deg) rotateZ(4deg);
}

.premium-doc-stack--final .premium-doc-stack__tray {
  left: 15%;
  right: 10%;
  bottom: 8.1rem;
  height: 2.75rem;
}

.premium-doc-stack__desk {
  left: 3rem;
  right: 1.8rem;
  bottom: 7.35rem;
  height: 4.8rem;
}

.premium-doc-stack__clip {
  top: 39.5%;
  width: 4.5rem;
  height: 0.9rem;
}

.premium-doc-stack--final .premium-doc-stack__seal {
  right: 1.05rem;
  bottom: 10.1rem;
  width: 4.75rem;
  height: 4.75rem;
  font-size: 0.62rem;
}

@keyframes finalTopDocument {
  0%, 9% {
    opacity: 0;
    transform: translate3d(-42%, -2.2rem, 105px) rotateX(18deg) rotateY(-7deg) rotateZ(7deg) scale(0.96);
  }
  24%, 38% {
    opacity: 1;
    transform: translate3d(-44%, -0.9rem, 94px) rotateX(5deg) rotateY(-2deg) rotateZ(4deg) scale(1);
  }
  58%, 87% {
    opacity: 1;
    transform: translate3d(-44%, 2.55rem, 44px) rotateX(62deg) rotateY(0deg) rotateZ(7deg) scale(0.99);
  }
  100% {
    opacity: 0;
    transform: translate3d(-44%, 3.05rem, 40px) rotateX(62deg) rotateZ(7deg) scale(0.985);
  }
}

@keyframes finalClipSettle {
  0%, 45% {
    opacity: 0;
    transform: translate3d(-50%, 0.8rem, 96px) rotateX(46deg) rotateZ(-4deg) scale(0.88);
  }
  58%, 88% {
    opacity: 1;
    transform: translate3d(-50%, 2.5rem, 72px) rotateX(62deg) rotateZ(1deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, 2.85rem, 72px) rotateX(62deg) rotateZ(1deg) scale(0.98);
  }
}

@keyframes finalSeal {
  0%, 54% {
    opacity: 0;
    transform: translate3d(0.8rem, -1.7rem, 130px) rotate(-11deg) scale(0.82);
  }
  68%, 88% {
    opacity: 1;
    transform: translate3d(-0.25rem, 0, 130px) rotate(6deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-0.05rem, 0.5rem, 130px) rotate(6deg) scale(0.96);
  }
}

/* Final QA lock: keep the hero animation centered and prevent horizontal drift. */
#top {
  overflow: hidden;
}

#top > .relative.mx-auto {
  width: min(100%, 76rem);
  max-width: calc(100vw - 2rem);
}

.premium-doc-stage {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 0.75rem;
  min-width: 0;
  overflow: visible;
}

.premium-doc-stack {
  flex: 0 0 auto;
}

.doc-animation-switcher {
  align-self: center !important;
  flex: 0 0 auto;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  overflow: visible;
  white-space: nowrap;
}

.doc-animation-switcher button {
  line-height: 1;
}

@media (max-width: 1180px) {
  #top > .relative.mx-auto {
    max-width: min(46rem, calc(100vw - 2rem));
  }
}

@media (max-width: 640px) {
  #top > .relative.mx-auto {
    max-width: calc(100vw - 1.25rem);
  }

  .premium-doc-stage {
    width: min(100%, 21rem);
    min-height: 20rem;
    gap: 0.5rem;
  }

  .doc-animation-switcher {
    width: min(100%, calc(100vw - 1.5rem));
    margin-top: 0 !important;
    padding: 0.28rem;
  }
}

/* Strict premium document animation: crisp, business-like, no blurred image panel. */
.premium-doc-stage {
  width: min(100%, 29rem) !important;
  min-height: 31rem !important;
  margin-left: auto;
}

.premium-doc-stack {
  position: relative;
  isolation: isolate;
  width: min(100%, 27rem) !important;
  height: 27rem !important;
  min-width: 0;
  margin: 0 auto;
  overflow: visible;
  transform: none !important;
  perspective: 1300px;
  transform-style: preserve-3d;
}

.premium-doc-stack__aura {
  position: absolute;
  inset: 2.7rem 1.2rem 3.2rem;
  z-index: 0;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 55% 26%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(14, 76, 92, 0.26));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.premium-doc-stack__shadow {
  position: absolute;
  left: 14%;
  right: 10%;
  bottom: 5.1rem;
  height: 2.35rem;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(3, 34, 43, 0.35), rgba(3, 34, 43, 0) 70%);
  filter: blur(8px);
  animation: strictShadow 7s ease-in-out infinite;
}

.premium-doc-stack__base {
  position: absolute;
  left: 17%;
  right: 12%;
  bottom: 6.5rem;
  height: 5.85rem;
  z-index: 2;
  transform: rotateX(62deg) rotateZ(-2deg);
  transform-style: preserve-3d;
}

.premium-doc-stack__base span {
  position: absolute;
  inset: auto 0 0;
  height: 3.75rem;
  border-radius: 0.7rem 0.7rem 0.42rem 0.42rem;
  background:
    linear-gradient(90deg, rgba(20, 82, 96, 0.14), transparent 12%, transparent 86%, rgba(20, 82, 96, 0.12)),
    linear-gradient(180deg, #ffffff 0%, #f3f8f8 70%, #d8e6e7 100%);
  border: 1px solid rgba(202, 220, 221, 0.95);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 0.45rem 0.7rem rgba(9, 43, 51, 0.08);
}

.premium-doc-stack__base span:nth-child(1) { transform: translate3d(-0.2rem, -0.18rem, 1px) rotateZ(-1.4deg); }
.premium-doc-stack__base span:nth-child(2) { transform: translate3d(0.05rem, -0.52rem, 6px) rotateZ(0.8deg); }
.premium-doc-stack__base span:nth-child(3) { transform: translate3d(-0.1rem, -0.9rem, 11px) rotateZ(-0.5deg); }
.premium-doc-stack__base span:nth-child(4) { transform: translate3d(0.18rem, -1.26rem, 16px) rotateZ(0.9deg); }
.premium-doc-stack__base span:nth-child(5) { transform: translate3d(-0.04rem, -1.62rem, 21px) rotateZ(-0.7deg); }
.premium-doc-stack__base span:nth-child(6) { transform: translate3d(0.14rem, -1.98rem, 26px) rotateZ(0.35deg); }

.premium-doc-stack__sheet {
  position: absolute;
  left: 50%;
  top: 24%;
  z-index: 4;
  width: 12.35rem;
  height: 16.4rem;
  border-radius: 0.86rem;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(248, 253, 253, 0.96) 48%, rgba(226, 240, 241, 0.94)),
    #ffffff;
  border: 1px solid rgba(218, 231, 232, 0.98);
  box-shadow:
    0 1.1rem 2.4rem rgba(2, 36, 47, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.premium-doc-stack__sheet::before {
  content: "";
  position: absolute;
  left: 1.28rem;
  right: 1.25rem;
  top: 1.55rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(40, 126, 145, 0.28);
  box-shadow:
    0 2rem 0 rgba(40, 126, 145, 0.14),
    0 3.95rem 0 rgba(40, 126, 145, 0.12),
    0 5.9rem 0 rgba(40, 126, 145, 0.1),
    0 7.85rem 0 rgba(40, 126, 145, 0.09);
}

.premium-doc-stack__sheet::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  bottom: 1.08rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 0.28rem solid rgba(210, 178, 101, 0.42);
}

.premium-doc-stack__sheet i {
  position: absolute;
  left: 1.28rem;
  bottom: 1.95rem;
  width: 4.7rem;
  height: 0.38rem;
  border-radius: 999px;
  background: rgba(31, 111, 129, 0.16);
}

.premium-doc-stack__sheet--back {
  opacity: 0.86;
  transform: translate3d(-55%, 4.05rem, 38px) rotateX(62deg) rotateZ(-4deg);
}

.premium-doc-stack__sheet--middle {
  opacity: 0.93;
  transform: translate3d(-50%, 3.6rem, 48px) rotateX(62deg) rotateZ(-1deg);
}

.premium-doc-stack__sheet--front {
  transform: translate3d(-45%, 3.15rem, 58px) rotateX(62deg) rotateZ(2deg);
}

.premium-doc-stack__sheet--moving {
  z-index: 8;
  animation: strictSheetToStack 7s cubic-bezier(0.2, 0.78, 0.2, 1) infinite;
}

.premium-doc-stack__seal {
  position: absolute;
  right: 4.2rem;
  bottom: 9.7rem;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  color: rgba(119, 83, 20, 0.78);
  font: 800 0.58rem/1.18 var(--font-montserrat, Montserrat, Arial, sans-serif);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 248, 228, 0.74);
  border: 0.3rem solid rgba(211, 178, 96, 0.46);
  box-shadow: 0 0.7rem 1.5rem rgba(63, 43, 10, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  animation: strictSeal 7s cubic-bezier(0.2, 0.78, 0.2, 1) infinite;
}

.premium-doc-stack__check {
  position: absolute;
  right: 5.55rem;
  bottom: 11.05rem;
  z-index: 12;
  width: 1.35rem;
  height: 0.72rem;
  border-left: 0.22rem solid rgba(23, 113, 97, 0.86);
  border-bottom: 0.22rem solid rgba(23, 113, 97, 0.86);
  border-radius: 0 0 0 0.12rem;
  opacity: 0;
  transform: rotate(-45deg) scale(0.7);
  animation: strictCheck 7s cubic-bezier(0.2, 0.78, 0.2, 1) infinite;
}

.premium-doc-stack--sign .premium-doc-stack__sheet--moving {
  animation-name: strictSignSheet;
}

.premium-doc-stack--sign .premium-doc-stack__seal {
  animation-name: strictSignSeal;
}

.premium-doc-stack--registry .premium-doc-stack__sheet--moving {
  animation-name: strictRegistrySheet;
}

.premium-doc-stack--registry .premium-doc-stack__seal,
.premium-doc-stack--registry .premium-doc-stack__check {
  animation-delay: 0.35s;
}

.doc-animation-switcher {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(8, 54, 68, 0.36);
  box-shadow: 0 0.8rem 2rem rgba(2, 25, 33, 0.13);
}

@keyframes strictSheetToStack {
  0%, 9% {
    opacity: 0;
    transform: translate3d(-42%, -2.35rem, 120px) rotateX(9deg) rotateY(-5deg) rotateZ(3deg) scale(0.98);
  }
  22%, 38% {
    opacity: 1;
    transform: translate3d(-43%, -0.7rem, 112px) rotateX(2deg) rotateY(-2deg) rotateZ(1.2deg) scale(1);
  }
  60%, 88% {
    opacity: 1;
    transform: translate3d(-43.5%, 2.74rem, 68px) rotateX(62deg) rotateY(0deg) rotateZ(2.2deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-43.5%, 3.12rem, 64px) rotateX(62deg) rotateZ(2.2deg) scale(0.99);
  }
}

@keyframes strictSignSheet {
  0%, 15%, 100% {
    opacity: 1;
    transform: translate3d(-43.5%, 2.74rem, 68px) rotateX(62deg) rotateZ(2.2deg);
  }
  35%, 60% {
    opacity: 1;
    transform: translate3d(-43%, 0.72rem, 116px) rotateX(4deg) rotateZ(1deg);
  }
}

@keyframes strictRegistrySheet {
  0%, 12% {
    opacity: 0;
    transform: translate3d(38%, -0.85rem, 110px) rotateX(3deg) rotateZ(1deg) scale(0.98);
  }
  31%, 50% {
    opacity: 1;
    transform: translate3d(-11%, -0.85rem, 110px) rotateX(3deg) rotateZ(0deg) scale(1);
  }
  70%, 91% {
    opacity: 1;
    transform: translate3d(-43.5%, 2.74rem, 68px) rotateX(62deg) rotateZ(2.2deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(-43.5%, 3.12rem, 64px) rotateX(62deg) rotateZ(2.2deg);
  }
}

@keyframes strictSeal {
  0%, 56% {
    opacity: 0;
    transform: translate3d(0.45rem, -1rem, 135px) rotate(-7deg) scale(0.84);
  }
  69%, 89% {
    opacity: 1;
    transform: translate3d(0, 0, 135px) rotate(4deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(0.05rem, 0.45rem, 135px) rotate(4deg) scale(0.95);
  }
}

@keyframes strictSignSeal {
  0%, 44% {
    opacity: 0;
    transform: translate3d(-1.4rem, -0.55rem, 135px) rotate(-11deg) scale(0.82);
  }
  58%, 82% {
    opacity: 1;
    transform: translate3d(-0.3rem, 0.15rem, 135px) rotate(-5deg) scale(0.98);
  }
  100% {
    opacity: 0;
    transform: translate3d(-0.1rem, 0.5rem, 135px) rotate(-5deg) scale(0.92);
  }
}

@keyframes strictCheck {
  0%, 66% {
    opacity: 0;
    transform: rotate(-45deg) scale(0.72);
  }
  76%, 89% {
    opacity: 1;
    transform: rotate(-45deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: rotate(-45deg) scale(0.92);
  }
}

@keyframes strictShadow {
  0%, 100% {
    opacity: 0.72;
    transform: scaleX(0.94);
  }
  45%, 78% {
    opacity: 0.92;
    transform: scaleX(1.03);
  }
}

@media (max-width: 1180px) {
  .premium-doc-stage {
    margin: 2rem auto 0;
  }
}

@media (max-width: 640px) {
  .premium-doc-stage {
    width: min(100%, 21rem) !important;
    min-height: 20.25rem !important;
    margin-top: 0.8rem;
  }

  .premium-doc-stack {
    width: 20rem !important;
    height: 19rem !important;
    transform: scale(0.8) !important;
    transform-origin: top center;
  }

  .premium-doc-stack__sheet {
    width: 10.6rem;
    height: 14rem;
  }

  .premium-doc-stack__base {
    bottom: 4.2rem;
  }

  .premium-doc-stack__shadow {
    bottom: 3.1rem;
  }

  .premium-doc-stack__seal {
    right: 3.1rem;
    bottom: 7.5rem;
    width: 3.7rem;
    height: 3.7rem;
    font-size: 0.5rem;
  }

  .premium-doc-stack__check {
    right: 4.25rem;
    bottom: 8.8rem;
  }

  #top h1 {
    font-size: clamp(2.05rem, 9.5vw, 2.45rem) !important;
    line-height: 1.08 !important;
  }
}

/* Air-stack revision: no background square, more falling sheets, larger hero visual. */
#top {
  padding-top: clamp(2.4rem, 4.8vw, 4.7rem) !important;
}

#top > .relative.mx-auto {
  grid-template-columns: minmax(0, 45rem) minmax(22rem, 34rem);
  gap: clamp(1.6rem, 3.6vw, 3.8rem);
  min-height: clamp(42rem, 78vh, 49rem);
  padding-top: clamp(2.1rem, 3.8vw, 3.6rem);
  align-items: start;
}

.premium-doc-stage {
  width: min(100%, 34rem) !important;
  min-height: 31.5rem !important;
  margin-top: -0.25rem;
  align-self: start !important;
  justify-content: flex-start !important;
}

.premium-doc-stack {
  width: min(100%, 32rem) !important;
  height: 28.6rem !important;
}

.premium-doc-stack__aura {
  inset: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 52% 37%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08) 20%, transparent 48%),
    radial-gradient(ellipse at 50% 78%, rgba(255, 255, 255, 0.12), transparent 48%) !important;
  box-shadow: none !important;
  pointer-events: none;
}

.premium-doc-stack__shadow {
  left: 15%;
  right: 8%;
  bottom: 4.95rem;
  height: 2.7rem;
  opacity: 0.78;
  filter: blur(12px);
}

.premium-doc-stack__base {
  left: 12%;
  right: 7%;
  bottom: 6.35rem;
  height: 6.85rem;
}

.premium-doc-stack__base span {
  height: 4.25rem;
}

.premium-doc-stack__base span:nth-child(1) { transform: translate3d(-0.55rem, 0.06rem, 1px) rotateZ(-1.8deg); }
.premium-doc-stack__base span:nth-child(2) { transform: translate3d(0.35rem, -0.36rem, 6px) rotateZ(1.1deg); }
.premium-doc-stack__base span:nth-child(3) { transform: translate3d(-0.42rem, -0.78rem, 11px) rotateZ(-0.8deg); }
.premium-doc-stack__base span:nth-child(4) { transform: translate3d(0.42rem, -1.18rem, 16px) rotateZ(1deg); }
.premium-doc-stack__base span:nth-child(5) { transform: translate3d(-0.28rem, -1.58rem, 21px) rotateZ(-0.9deg); }
.premium-doc-stack__base span:nth-child(6) { transform: translate3d(0.28rem, -1.98rem, 26px) rotateZ(0.5deg); }

.premium-doc-stack__sheet {
  top: 16%;
  width: 13.7rem;
  height: 17.8rem;
}

.premium-doc-stack__sheet--back {
  transform: translate3d(-59%, 4.35rem, 38px) rotateX(62deg) rotateZ(-4.2deg);
}

.premium-doc-stack__sheet--middle {
  transform: translate3d(-52%, 3.86rem, 48px) rotateX(62deg) rotateZ(-1.2deg);
}

.premium-doc-stack__sheet--front {
  transform: translate3d(-45%, 3.36rem, 58px) rotateX(62deg) rotateZ(2deg);
}

.premium-doc-stack__sheet--fall {
  z-index: 7;
  opacity: 0;
  box-shadow:
    0 1rem 2.1rem rgba(2, 36, 47, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.premium-doc-stack__sheet--fall-one {
  animation: strictFallOne 7.6s cubic-bezier(0.2, 0.78, 0.2, 1) infinite;
}

.premium-doc-stack__sheet--fall-two {
  animation: strictFallTwo 7.6s cubic-bezier(0.2, 0.78, 0.2, 1) infinite;
}

.premium-doc-stack__sheet--fall-three {
  animation: strictFallThree 7.6s cubic-bezier(0.2, 0.78, 0.2, 1) infinite;
}

.premium-doc-stack__sheet--moving {
  animation-duration: 7.6s;
}

.premium-doc-stack__seal {
  right: 3.55rem;
  bottom: 8.85rem;
  width: 4.6rem;
  height: 4.6rem;
}

.premium-doc-stack__check {
  right: 5rem;
  bottom: 10.25rem;
}

@keyframes strictFallOne {
  0%, 8% {
    opacity: 0;
    transform: translate3d(-112%, -3.35rem, 138px) rotateX(5deg) rotateY(10deg) rotateZ(-17deg) scale(0.86);
  }
  23%, 43% {
    opacity: 0.9;
    transform: translate3d(-82%, -1.15rem, 118px) rotateX(2deg) rotateY(5deg) rotateZ(-9deg) scale(0.95);
  }
  64%, 90% {
    opacity: 0.88;
    transform: translate3d(-58%, 3.55rem, 62px) rotateX(62deg) rotateY(0deg) rotateZ(-3deg) scale(0.99);
  }
  100% {
    opacity: 0;
    transform: translate3d(-58%, 3.9rem, 60px) rotateX(62deg) rotateZ(-3deg) scale(0.98);
  }
}

@keyframes strictFallTwo {
  0%, 18% {
    opacity: 0;
    transform: translate3d(12%, -4.15rem, 144px) rotateX(8deg) rotateY(-8deg) rotateZ(14deg) scale(0.84);
  }
  35%, 54% {
    opacity: 0.92;
    transform: translate3d(-18%, -1.75rem, 126px) rotateX(3deg) rotateY(-3deg) rotateZ(7deg) scale(0.94);
  }
  72%, 92% {
    opacity: 0.86;
    transform: translate3d(-48%, 3.25rem, 68px) rotateX(62deg) rotateZ(1.4deg) scale(0.99);
  }
  100% {
    opacity: 0;
    transform: translate3d(-48%, 3.62rem, 66px) rotateX(62deg) rotateZ(1.4deg) scale(0.98);
  }
}

@keyframes strictFallThree {
  0%, 28% {
    opacity: 0;
    transform: translate3d(44%, -2.75rem, 132px) rotateX(5deg) rotateY(-10deg) rotateZ(19deg) scale(0.86);
  }
  45%, 62% {
    opacity: 0.88;
    transform: translate3d(8%, -0.7rem, 116px) rotateX(2deg) rotateY(-4deg) rotateZ(10deg) scale(0.94);
  }
  78%, 94% {
    opacity: 0.82;
    transform: translate3d(-41%, 2.95rem, 72px) rotateX(62deg) rotateZ(3deg) scale(0.99);
  }
  100% {
    opacity: 0;
    transform: translate3d(-41%, 3.34rem, 70px) rotateX(62deg) rotateZ(3deg) scale(0.98);
  }
}

@media (max-width: 1180px) {
  #top {
    padding-top: clamp(1.7rem, 4vw, 3rem) !important;
  }

  #top > .relative.mx-auto {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: clamp(1.6rem, 4vw, 2.4rem);
  }

  .premium-doc-stage {
    width: min(100%, 32rem) !important;
    min-height: 30rem !important;
    margin: 2rem auto 0;
  }
}

@media (max-width: 640px) {
  #top {
    padding-top: 1.35rem !important;
  }

  #top > .relative.mx-auto {
    padding-top: 4.1rem !important;
  }

  .premium-doc-stage {
    width: min(100%, 22rem) !important;
    min-height: 22rem !important;
    margin-top: 1rem;
  }

  .premium-doc-stack {
    width: 23rem !important;
    height: 21.5rem !important;
    transform: scale(0.78) !important;
    transform-origin: top center;
  }

  .premium-doc-stack__sheet {
    width: 11.8rem;
    height: 15.2rem;
  }
}

/* Hero composition cleanup: remove glitchy stamps/checkmarks and fit first viewport. */
#top {
  padding-top: clamp(1.35rem, 3.2vw, 2.8rem) !important;
}

#top > .relative.mx-auto {
  grid-template-columns: minmax(0, 42rem) minmax(21rem, 31rem);
  align-items: center;
  gap: clamp(1.3rem, 3vw, 3rem);
  min-height: min(42rem, calc(100vh - 5.25rem));
  padding-top: clamp(3rem, 4.2vw, 4.2rem);
  padding-bottom: clamp(2rem, 3.4vw, 3rem);
}

#top h1 {
  max-width: 42rem;
  font-size: clamp(2.45rem, 4.25vw, 3.42rem) !important;
  line-height: 1.06 !important;
}

#top h1 + p,
#top .max-w-3xl p {
  max-width: 39rem;
}

.premium-doc-stage {
  width: min(100%, 31rem) !important;
  min-height: 27.5rem !important;
  margin-top: 0 !important;
  justify-content: center !important;
}

.premium-doc-stack {
  width: min(100%, 29.5rem) !important;
  height: 25rem !important;
}

.premium-doc-stack__sheet {
  top: 13.5%;
  width: 12.7rem;
  height: 16.5rem;
}

.premium-doc-stack__sheet::after,
.premium-doc-stack__seal,
.premium-doc-stack__check {
  display: none !important;
  animation: none !important;
}

.premium-doc-stack__sheet i {
  width: 5.1rem;
  opacity: 0.78;
}

.premium-doc-stack__base {
  left: 10%;
  right: 7%;
  bottom: 5.7rem;
}

.premium-doc-stack__shadow {
  bottom: 4.2rem;
}

.premium-doc-stack__sheet--back {
  transform: translate3d(-59%, 4rem, 38px) rotateX(62deg) rotateZ(-4deg);
}

.premium-doc-stack__sheet--middle {
  transform: translate3d(-52%, 3.52rem, 48px) rotateX(62deg) rotateZ(-1deg);
}

.premium-doc-stack__sheet--front {
  transform: translate3d(-45%, 3.05rem, 58px) rotateX(62deg) rotateZ(2deg);
}

.doc-animation-switcher {
  margin-top: 0 !important;
  transform: scale(0.94);
  transform-origin: top center;
}

@media (max-width: 1180px) {
  #top > .relative.mx-auto {
    min-height: 0;
    padding-top: 3.1rem;
  }

  #top h1 {
    max-width: 44rem;
  }

  .premium-doc-stage {
    width: min(100%, 29rem) !important;
    min-height: 26.5rem !important;
    margin-top: 1rem !important;
  }
}

@media (max-width: 640px) {
  #top {
    padding-top: 0.9rem !important;
  }

  #top > .relative.mx-auto {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    padding-top: 5.05rem !important;
    padding-bottom: 2rem;
  }

  #top > .relative.mx-auto > :not(.premium-doc-stage) {
    order: 1;
  }

  #top h1 {
    font-size: clamp(1.95rem, 8.8vw, 2.32rem) !important;
    line-height: 1.08 !important;
    width: auto !important;
    max-width: 100% !important;
  }

  .premium-doc-stage {
    order: 2;
    width: min(100%, 21rem) !important;
    min-height: 17rem !important;
    margin: 1.4rem auto 0 !important;
  }

  .premium-doc-stack {
    width: 20.5rem !important;
    height: 16.5rem !important;
    transform: scale(0.7) !important;
    transform-origin: top center;
  }

  .premium-doc-stack__sheet {
    width: 11rem;
    height: 14.2rem;
  }

  .doc-animation-switcher {
    margin-top: -3.8rem !important;
    transform: none;
  }
}

/* Full hero/header redesign pass: wider, balanced and stable. */
header > .mx-auto {
  max-width: min(94rem, calc(100vw - 2rem)) !important;
}

#top {
  min-height: auto !important;
  padding-top: calc(env(safe-area-inset-top, 0px) + 5.25rem) !important;
  padding-bottom: 0 !important;
}

#top > .relative.mx-auto {
  display: grid !important;
  grid-template-columns: minmax(0, 47rem) minmax(25rem, 35rem);
  align-items: center;
  width: min(94rem, calc(100vw - 2rem));
  max-width: min(94rem, calc(100vw - 2rem)) !important;
  box-sizing: border-box;
  height: calc(100svh - 5.25rem);
  min-height: 38rem !important;
  padding: clamp(1.35rem, 2vw, 2rem) clamp(0.4rem, 1vw, 0.8rem) clamp(1.2rem, 2vw, 1.8rem);
  gap: clamp(2.2rem, 4vw, 5rem);
}

#top .max-w-3xl {
  max-width: 47rem !important;
}

#top .max-w-3xl > .inline-flex {
  max-width: min(100%, 39rem);
  margin-bottom: clamp(1rem, 2vw, 1.4rem) !important;
  padding: 0.62rem 1rem !important;
  white-space: normal;
  line-height: 1.25;
}

#top h1 {
  max-width: 46rem !important;
  font-size: clamp(2.45rem, 4vw, 3.55rem) !important;
  line-height: 1.035 !important;
  letter-spacing: 0 !important;
}

#top h1 + p {
  max-width: 42rem !important;
  margin-top: clamp(1rem, 1.7vw, 1.35rem) !important;
  font-size: clamp(1rem, 1.15vw, 1.12rem) !important;
}

#top .max-w-3xl > .mt-10 {
  margin-top: clamp(1.2rem, 2vw, 1.65rem) !important;
  gap: 0.9rem !important;
}

#top .max-w-3xl > .mt-10 a {
  min-width: 14.4rem;
  height: 3.35rem !important;
  padding-inline: 1.55rem !important;
  font-size: 0.98rem !important;
}

#top dl {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem !important;
  max-width: 43rem !important;
  margin-top: clamp(1.15rem, 2vw, 1.55rem) !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

#top dl > div {
  min-width: 0;
  min-height: 5.8rem;
  padding: 0.82rem 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

#top dl dt {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.12em;
  min-height: 2.1rem;
  color: #fff !important;
  font-size: clamp(1.36rem, 1.8vw, 1.78rem) !important;
  line-height: 1.02 !important;
  white-space: normal;
}

#top dl dt span {
  display: inline-block;
}

#top dl > div:nth-child(2) dt {
  column-gap: 0.12em;
}

#top dl > div:nth-child(2) dt span:nth-child(1)::after,
#top dl > div:nth-child(2) dt span:nth-child(2)::after {
  content: none;
}

#top dl dd {
  max-width: 12rem;
  margin-top: 0.38rem !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.72rem !important;
  line-height: 1.25 !important;
}

.premium-doc-stage {
  align-self: center !important;
  justify-self: center;
  justify-content: center !important;
  width: min(100%, 32rem) !important;
  min-height: 27.5rem !important;
  margin: 0 !important;
}

.premium-doc-stack {
  width: min(100%, 30rem) !important;
  height: 24.8rem !important;
}

.premium-doc-stack__sheet {
  top: 14%;
  width: 13.15rem;
  height: 17rem;
}

.doc-animation-switcher {
  margin-top: -0.6rem !important;
  width: max-content;
  max-width: 100%;
}

.doc-animation-switcher button {
  min-width: 4.9rem;
  padding-inline: 0.72rem;
}

.premium-doc-stack--fall .premium-doc-stack__sheet--moving {
  animation: strictDropMain 7.4s cubic-bezier(0.17, 0.78, 0.2, 1) infinite;
}

.premium-doc-stack--fall .premium-doc-stack__sheet--fall-one {
  animation: strictDropOne 7.4s cubic-bezier(0.17, 0.78, 0.2, 1) infinite;
}

.premium-doc-stack--fall .premium-doc-stack__sheet--fall-two {
  animation: strictDropTwo 7.4s cubic-bezier(0.17, 0.78, 0.2, 1) infinite;
}

.premium-doc-stack--fall .premium-doc-stack__sheet--fall-three {
  animation: strictDropThree 7.4s cubic-bezier(0.17, 0.78, 0.2, 1) infinite;
}

.premium-doc-stack--fall .premium-doc-stack__sheet--back {
  animation: strictBaseBreathe 7.4s ease-in-out infinite;
}

@keyframes strictDropOne {
  0%, 8% {
    opacity: 0;
    transform: translate3d(-88%, -6.8rem, 160px) rotateX(1deg) rotateY(7deg) rotateZ(-11deg) scale(0.86);
  }
  25%, 42% {
    opacity: 0.95;
    transform: translate3d(-70%, -2.35rem, 125px) rotateX(3deg) rotateY(2deg) rotateZ(-5deg) scale(0.94);
  }
  63%, 90% {
    opacity: 0.92;
    transform: translate3d(-58%, 3.7rem, 62px) rotateX(62deg) rotateY(0deg) rotateZ(-3.5deg) scale(0.99);
  }
  100% {
    opacity: 0;
    transform: translate3d(-58%, 4rem, 60px) rotateX(62deg) rotateZ(-3.5deg) scale(0.98);
  }
}

@keyframes strictDropTwo {
  0%, 18% {
    opacity: 0;
    transform: translate3d(-28%, -7.6rem, 166px) rotateX(2deg) rotateY(-5deg) rotateZ(8deg) scale(0.84);
  }
  35%, 52% {
    opacity: 0.95;
    transform: translate3d(-36%, -2.75rem, 132px) rotateX(2deg) rotateY(-2deg) rotateZ(3deg) scale(0.94);
  }
  70%, 92% {
    opacity: 0.9;
    transform: translate3d(-49%, 3.36rem, 68px) rotateX(62deg) rotateZ(0.5deg) scale(0.99);
  }
  100% {
    opacity: 0;
    transform: translate3d(-49%, 3.72rem, 66px) rotateX(62deg) rotateZ(0.5deg) scale(0.98);
  }
}

@keyframes strictDropThree {
  0%, 29% {
    opacity: 0;
    transform: translate3d(34%, -6.95rem, 158px) rotateX(1deg) rotateY(-8deg) rotateZ(13deg) scale(0.86);
  }
  47%, 64% {
    opacity: 0.92;
    transform: translate3d(4%, -2rem, 124px) rotateX(2deg) rotateY(-3deg) rotateZ(6deg) scale(0.94);
  }
  80%, 94% {
    opacity: 0.86;
    transform: translate3d(-42%, 3.05rem, 72px) rotateX(62deg) rotateZ(3deg) scale(0.99);
  }
  100% {
    opacity: 0;
    transform: translate3d(-42%, 3.42rem, 70px) rotateX(62deg) rotateZ(3deg) scale(0.98);
  }
}

@keyframes strictDropMain {
  0%, 40% {
    opacity: 0;
    transform: translate3d(-50%, -8.2rem, 178px) rotateX(0deg) rotateY(0deg) rotateZ(1deg) scale(0.88);
  }
  56%, 70% {
    opacity: 1;
    transform: translate3d(-47%, -1.75rem, 132px) rotateX(2deg) rotateZ(1deg) scale(0.96);
  }
  86%, 96% {
    opacity: 1;
    transform: translate3d(-45%, 3.08rem, 76px) rotateX(62deg) rotateZ(2deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-45%, 3.4rem, 74px) rotateX(62deg) rotateZ(2deg) scale(0.98);
  }
}

@keyframes strictBaseBreathe {
  0%, 100% {
    transform: translate3d(-59%, 4rem, 38px) rotateX(62deg) rotateZ(-4deg);
  }
  74%, 92% {
    transform: translate3d(-60%, 4.14rem, 38px) rotateX(62deg) rotateZ(-4.3deg);
  }
}

@media (max-width: 1180px) {
  header > .mx-auto,
  #top > .relative.mx-auto {
    max-width: min(54rem, calc(100vw - 2rem)) !important;
    width: min(54rem, calc(100vw - 2rem));
  }

  #top > .relative.mx-auto {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 2.4rem;
  }

  .premium-doc-stage {
    width: min(100%, 31rem) !important;
    min-height: 27rem !important;
    margin: 0.75rem auto 0 !important;
  }
}

@media (max-width: 760px) {
  #top {
    min-height: auto;
    padding-top: calc(env(safe-area-inset-top, 0px) + 4.5rem) !important;
  }

  #top > .relative.mx-auto {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: min(100%, calc(100vw - 1.5rem));
    max-width: calc(100vw - 1.5rem) !important;
    padding: 1.35rem 0 2.2rem !important;
    gap: 0;
  }

  #top > .relative.mx-auto > :not(.premium-doc-stage) {
    order: 1;
  }

  #top .max-w-3xl > .inline-flex {
    max-width: 100%;
    margin-bottom: 1.05rem !important;
    font-size: 0.64rem !important;
    letter-spacing: 0.08em !important;
  }

  #top h1 {
    width: auto !important;
    max-width: 100% !important;
    font-size: clamp(2.05rem, 9vw, 2.72rem) !important;
    line-height: 1.06 !important;
  }

  #top h1 + p {
    max-width: 100% !important;
    margin-top: 1.2rem !important;
    font-size: 0.98rem !important;
    line-height: 1.55 !important;
  }

  #top .max-w-3xl > .mt-10 {
    margin-top: 1.4rem !important;
  }

  #top .max-w-3xl > .mt-10 a {
    width: 100%;
    min-width: 0;
    height: 3.3rem !important;
  }

  #top dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem !important;
    margin-top: 1.35rem !important;
  }

  #top dl > div {
    min-height: 6.45rem;
    padding: 0.72rem 0.58rem;
    border-radius: 0.85rem;
  }

  #top dl dt {
    min-height: 2.1rem;
    font-size: clamp(1.12rem, 5vw, 1.38rem) !important;
    line-height: 1.05 !important;
    color: #fff !important;
  }

  #top dl dd {
    margin-top: 0.4rem !important;
    font-size: 0.62rem !important;
    line-height: 1.24 !important;
  }

  .premium-doc-stage {
    order: 2;
    width: min(100%, 21rem) !important;
    min-height: 15rem !important;
    margin: 1.1rem auto 0 !important;
  }

  .premium-doc-stack {
    width: 20.5rem !important;
    height: 15.4rem !important;
    transform: scale(0.66) !important;
    transform-origin: top center;
  }

  .premium-doc-stack__sheet {
    width: 11rem;
    height: 14.2rem;
  }

  .doc-animation-switcher {
    margin-top: -4.8rem !important;
    transform: scale(0.92);
    width: min(100%, calc(100vw - 1.5rem));
  }

  .doc-animation-switcher button {
    min-width: 0;
    padding-inline: 0.46rem;
    font-size: 0.6rem;
  }
}

/* Visible consent checkboxes in the lead form. */
.legal-checks label {
  align-items: center !important;
  cursor: pointer;
}

.legal-checks input[type="checkbox"] {
  position: relative;
  display: inline-grid !important;
  place-items: center;
  appearance: none;
  -webkit-appearance: none;
  width: 1.08rem !important;
  height: 1.08rem !important;
  min-width: 1.08rem;
  flex: 0 0 1.08rem;
  margin: 0 !important;
  border: 1.7px solid #8fb4bd;
  border-radius: 0.28rem;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(18, 78, 92, 0.08);
  opacity: 1 !important;
  visibility: visible !important;
  vertical-align: middle;
}

.legal-checks input[type="checkbox"]::after {
  content: "";
  width: 0.54rem;
  height: 0.3rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: rotate(-45deg) translateY(-0.02rem);
}

.legal-checks input[type="checkbox"]:checked {
  border-color: #227c96;
  background: #227c96;
}

.legal-checks input[type="checkbox"]:checked::after {
  opacity: 1;
}

.legal-checks input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(34, 124, 150, 0.22);
  outline-offset: 2px;
}

#contact button[id^="amo-consent"] {
  position: relative;
  display: inline-grid !important;
  place-items: center;
  width: 1.12rem !important;
  height: 1.12rem !important;
  min-width: 1.12rem;
  margin-top: 0.02rem;
  border: 1.7px solid #8fb4bd !important;
  border-radius: 0.28rem !important;
  background: #fff !important;
  box-shadow: inset 0 1px 2px rgba(18, 78, 92, 0.08);
  opacity: 1 !important;
}

#contact button[id^="amo-consent"]::after {
  content: "";
  width: 0.54rem;
  height: 0.3rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: rotate(-45deg) translateY(-0.02rem);
}

#contact button[id^="amo-consent"][data-state="checked"],
#contact button[id^="amo-consent"][aria-checked="true"] {
  border-color: #227c96 !important;
  background: #227c96 !important;
}

#contact button[id^="amo-consent"][data-state="checked"]::after,
#contact button[id^="amo-consent"][aria-checked="true"]::after {
  opacity: 1;
}

/* Initial header refinement. */
header {
  border-bottom-color: rgba(34, 124, 150, 0.13) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 0.9rem 2.4rem rgba(7, 56, 70, 0.07);
  backdrop-filter: blur(16px);
}

header > .mx-auto {
  position: relative;
  min-height: 4.5rem !important;
}

header nav[aria-label="Главное меню"] {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: 2.15rem !important;
}

header nav a {
  color: #174f62 !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-width: 0 !important;
  height: auto !important;
}

header nav a:hover,
header a[href^="tel:"]:hover {
  color: #227c96 !important;
}

header a[href^="tel:"] {
  color: #174f62 !important;
}

header .header-consultation-link {
  height: 2.5rem !important;
  min-width: 11.25rem;
  padding: 0 1rem !important;
  border: 1px solid #B6DD1C !important;
  background: #B6DD1C !important;
  color: #174f62 !important;
  box-shadow: 0 0.65rem 1.55rem rgba(182, 221, 28, 0.28) !important;
  font-size: 0.875rem !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
  animation: none !important;
}

@media (max-width: 1320px) {
  header .header-consultation-link {
    min-width: 10.9rem;
    padding: 0 0.95rem !important;
    font-size: 0.86rem !important;
  }
}

header .header-consultation-link:hover {
  border-color: #a7cc16 !important;
  background: #a7cc16 !important;
  color: #174f62 !important;
  box-shadow: 0 0.8rem 1.8rem rgba(182, 221, 28, 0.38) !important;
}

@media (max-width: 760px) {
  header > .mx-auto {
    min-height: 4.35rem !important;
  }

  header .header-consultation-link {
    width: auto;
    min-width: 0;
  }
}

/* Testimonials spacing repair. */
#testimonials > .mx-auto {
  padding-left: max(1rem, 2vw) !important;
  padding-right: max(1rem, 2vw) !important;
}

#testimonials > .mx-auto > div {
  padding: clamp(1.5rem, 2.4vw, 2rem) !important;
}

#testimonials .sw-app.w-full {
  padding: 30px !important;
}

#testimonials h2 {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem) !important;
}

#testimonials button,
#testimonials [role="button"] {
  margin-top: 1.5rem;
}

@media (max-width: 767px) {
  #testimonials > .mx-auto > div {
    padding: 1rem !important;
  }

  #testimonials h2 {
    margin-bottom: 1.25rem !important;
  }
}

/* Mobile hero animation fit. */
@media (max-width: 760px) {
  #top {
    min-height: auto !important;
    padding-bottom: 5.8rem !important;
  }

  #top > .relative.mx-auto {
    padding-bottom: 2.8rem !important;
  }

  .premium-doc-stage {
    width: min(100%, 20rem) !important;
    min-height: 16.5rem !important;
    margin: 10rem auto 0 !important;
    overflow: visible;
  }

  .premium-doc-stack {
    width: 20rem !important;
    height: 16rem !important;
    transform: scale(0.66) translateY(-0.9rem) !important;
    transform-origin: top center;
  }

  .premium-doc-stack__sheet {
    top: 9% !important;
    width: 10.8rem !important;
    height: 13.95rem !important;
    border-radius: 0.8rem !important;
  }

  .premium-doc-stack__base {
    bottom: 3.95rem !important;
  }

  .premium-doc-stack__shadow {
    bottom: 3.05rem !important;
  }
}

@media (max-width: 420px) {
  #top {
    padding-bottom: 6.2rem !important;
  }

  #top > .relative.mx-auto {
    padding-bottom: 3.2rem !important;
  }

  .premium-doc-stage {
    width: min(100%, 19rem) !important;
    min-height: 15.6rem !important;
    margin-top: 0.9rem !important;
  }

  .premium-doc-stack {
    width: 19rem !important;
    height: 15.3rem !important;
    transform: scale(0.62) translateY(-0.75rem) !important;
  }

  .premium-doc-stack__sheet {
    width: 10.25rem !important;
    height: 13.25rem !important;
  }
}

/* Four clearly different document animation modes. */
.doc-animation-switcher {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap !important;
  gap: 0.42rem !important;
  width: min(100%, 29rem) !important;
  margin: 0.35rem auto 0 !important;
  padding: 0.46rem !important;
  border-radius: 1.4rem !important;
}

.doc-animation-switcher__label {
  flex: 0 0 100%;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.doc-animation-switcher button {
  min-width: 6.1rem !important;
}

.premium-doc-stack .premium-doc-stack__sheet--fall,
.premium-doc-stack .premium-doc-stack__sheet--moving {
  opacity: 0;
}

.premium-doc-stack--stack .premium-doc-stack__sheet--back,
.premium-doc-stack--stack .premium-doc-stack__sheet--middle,
.premium-doc-stack--stack .premium-doc-stack__sheet--front {
  animation: clearStackBreath 7.2s ease-in-out infinite;
}

.premium-doc-stack--stack .premium-doc-stack__sheet--moving {
  opacity: 1;
  animation: clearStackSingle 7.2s cubic-bezier(0.2, 0.78, 0.2, 1) infinite !important;
}

.premium-doc-stack--sign .premium-doc-stack__sheet--back {
  transform: translate3d(-68%, 3.9rem, 38px) rotateX(62deg) rotateZ(-16deg) !important;
}

.premium-doc-stack--sign .premium-doc-stack__sheet--middle {
  transform: translate3d(-50%, 3.45rem, 48px) rotateX(62deg) rotateZ(0deg) !important;
}

.premium-doc-stack--sign .premium-doc-stack__sheet--front {
  transform: translate3d(-32%, 3.9rem, 38px) rotateX(62deg) rotateZ(16deg) !important;
}

.premium-doc-stack--sign .premium-doc-stack__sheet--moving {
  opacity: 1;
  animation: clearSignDocument 7.4s cubic-bezier(0.18, 0.76, 0.18, 1) infinite !important;
}

.premium-doc-stack--sign::after {
  content: "";
  position: absolute;
  left: 42%;
  top: 38%;
  z-index: 20;
  width: 7.2rem;
  height: 1.5rem;
  border-bottom: 0.2rem solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  opacity: 0;
  transform: rotate(-8deg);
  animation: clearSignatureLine 7.4s ease-in-out infinite !important;
}

.premium-doc-stack--registry .premium-doc-stack__base {
  transform: translateY(0.8rem) scaleX(1.08);
}

.premium-doc-stack--registry .premium-doc-stack__sheet--back,
.premium-doc-stack--registry .premium-doc-stack__sheet--middle,
.premium-doc-stack--registry .premium-doc-stack__sheet--front,
.premium-doc-stack--registry .premium-doc-stack__sheet--moving {
  opacity: 1;
  animation: clearRegistrySlide 6.9s cubic-bezier(0.2, 0.72, 0.18, 1) infinite !important;
}

.premium-doc-stack--registry .premium-doc-stack__sheet--back {
  --registry-y: -2.6rem;
  --registry-delay: 0s;
}

.premium-doc-stack--registry .premium-doc-stack__sheet--middle {
  --registry-y: -0.85rem;
  --registry-delay: 0.18s;
}

.premium-doc-stack--registry .premium-doc-stack__sheet--front {
  --registry-y: 0.85rem;
  --registry-delay: 0.36s;
}

.premium-doc-stack--registry .premium-doc-stack__sheet--moving {
  --registry-y: 2.55rem;
  --registry-delay: 0.54s;
}

.premium-doc-stack--fall .premium-doc-stack__sheet--back,
.premium-doc-stack--fall .premium-doc-stack__sheet--middle,
.premium-doc-stack--fall .premium-doc-stack__sheet--front {
  animation: clearFallBase 7.6s ease-in-out infinite !important;
}

.premium-doc-stack--fall .premium-doc-stack__sheet--fall,
.premium-doc-stack--fall .premium-doc-stack__sheet--moving {
  opacity: 1;
}

.premium-doc-stack--fall .premium-doc-stack__sheet--fall-one {
  animation: clearFallOne 7.6s cubic-bezier(0.17, 0.78, 0.2, 1) infinite !important;
}

.premium-doc-stack--fall .premium-doc-stack__sheet--fall-two {
  animation: clearFallTwo 7.6s cubic-bezier(0.17, 0.78, 0.2, 1) infinite !important;
}

.premium-doc-stack--fall .premium-doc-stack__sheet--fall-three {
  animation: clearFallThree 7.6s cubic-bezier(0.17, 0.78, 0.2, 1) infinite !important;
}

.premium-doc-stack--fall .premium-doc-stack__sheet--moving {
  animation: clearFallFour 7.6s cubic-bezier(0.17, 0.78, 0.2, 1) infinite !important;
}

@keyframes clearStackBreath {
  0%, 100% { filter: brightness(1); }
  52% { filter: brightness(1.04); }
}

@keyframes clearStackSingle {
  0%, 10% {
    opacity: 0;
    transform: translate3d(-42%, -3.2rem, 138px) rotateX(8deg) rotateY(-6deg) rotateZ(5deg) scale(0.94);
  }
  24%, 42% {
    opacity: 1;
    transform: translate3d(-43%, -0.8rem, 116px) rotateX(2deg) rotateY(-2deg) rotateZ(2deg) scale(1);
  }
  64%, 90% {
    opacity: 1;
    transform: translate3d(-43.5%, 2.84rem, 68px) rotateX(62deg) rotateZ(2deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-43.5%, 3.2rem, 64px) rotateX(62deg) rotateZ(2deg) scale(0.98);
  }
}

@keyframes clearSignDocument {
  0%, 18%, 100% {
    opacity: 1;
    transform: translate3d(-43%, 2.6rem, 78px) rotateX(62deg) rotateZ(0deg);
  }
  36%, 58% {
    opacity: 1;
    transform: translate3d(-43%, -0.55rem, 118px) rotateX(9deg) rotateZ(-1deg);
  }
}

@keyframes clearSignatureLine {
  0%, 37%, 100% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  48%, 64% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  76% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes clearRegistrySlide {
  0% {
    opacity: 0;
    transform: translate3d(48%, var(--registry-y), 92px) rotateX(0deg) rotateZ(3deg) scale(0.94);
  }
  18%, 36% {
    opacity: 1;
    transform: translate3d(-44%, var(--registry-y), 84px) rotateX(0deg) rotateZ(0deg) scale(0.98);
  }
  55%, 88% {
    opacity: 1;
    transform: translate3d(-50%, calc(2.8rem + var(--registry-y) * 0.15), 54px) rotateX(62deg) rotateZ(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, 3.25rem, 50px) rotateX(62deg) rotateZ(0deg) scale(0.98);
  }
}

@keyframes clearFallBase {
  0%, 100% { transform: translate3d(-52%, 3.56rem, 48px) rotateX(62deg) rotateZ(-1deg); }
  52% { transform: translate3d(-52%, 3.86rem, 48px) rotateX(62deg) rotateZ(-1deg); }
}

@keyframes clearFallOne {
  0%, 8% { opacity: 0; transform: translate3d(-84%, -7.5rem, 160px) rotateX(0deg) rotateZ(-12deg) scale(0.86); }
  26%, 42% { opacity: 0.98; transform: translate3d(-70%, -2.25rem, 126px) rotateX(4deg) rotateZ(-5deg) scale(0.94); }
  64%, 92% { opacity: 0.95; transform: translate3d(-58%, 3.7rem, 62px) rotateX(62deg) rotateZ(-4deg) scale(1); }
  100% { opacity: 0; transform: translate3d(-58%, 4rem, 60px) rotateX(62deg) rotateZ(-4deg) scale(0.98); }
}

@keyframes clearFallTwo {
  0%, 18% { opacity: 0; transform: translate3d(-26%, -8.1rem, 168px) rotateX(0deg) rotateZ(9deg) scale(0.84); }
  36%, 52% { opacity: 0.98; transform: translate3d(-36%, -2.8rem, 132px) rotateX(3deg) rotateZ(3deg) scale(0.94); }
  70%, 94% { opacity: 0.95; transform: translate3d(-48%, 3.35rem, 68px) rotateX(62deg) rotateZ(2deg) scale(1); }
  100% { opacity: 0; transform: translate3d(-48%, 3.75rem, 64px) rotateX(62deg) rotateZ(2deg) scale(0.98); }
}

@keyframes clearFallThree {
  0%, 29% { opacity: 0; transform: translate3d(-54%, -8.8rem, 172px) rotateX(0deg) rotateZ(-3deg) scale(0.86); }
  47%, 62% { opacity: 0.98; transform: translate3d(-54%, -2.2rem, 136px) rotateX(3deg) rotateZ(-1deg) scale(0.94); }
  78%, 96% { opacity: 0.95; transform: translate3d(-43%, 3.05rem, 74px) rotateX(62deg) rotateZ(4deg) scale(1); }
  100% { opacity: 0; transform: translate3d(-43%, 3.45rem, 70px) rotateX(62deg) rotateZ(4deg) scale(0.98); }
}

@keyframes clearFallFour {
  0%, 39% { opacity: 0; transform: translate3d(-42%, -7.7rem, 176px) rotateX(0deg) rotateZ(6deg) scale(0.86); }
  57%, 69% { opacity: 0.98; transform: translate3d(-42%, -1.9rem, 140px) rotateX(3deg) rotateZ(2deg) scale(0.94); }
  84%, 98% { opacity: 0.95; transform: translate3d(-38%, 2.75rem, 82px) rotateX(62deg) rotateZ(5deg) scale(1); }
  100% { opacity: 0; transform: translate3d(-38%, 3.2rem, 78px) rotateX(62deg) rotateZ(5deg) scale(0.98); }
}

@media (max-width: 760px) {
  #top {
    padding-bottom: 22rem !important;
  }

  #top > .relative.mx-auto {
    padding-bottom: 4rem !important;
  }

  .premium-doc-stage {
    width: min(100%, 21rem) !important;
    min-height: 20.25rem !important;
    margin: 10rem auto 0 !important;
    gap: 0.75rem !important;
    overflow: visible !important;
  }

  .premium-doc-stack {
    width: 20rem !important;
    height: 16.8rem !important;
    transform: scale(0.64) !important;
    transform-origin: top center;
    margin-bottom: -5.25rem !important;
  }

  .premium-doc-stack__sheet {
    width: 10.45rem !important;
    height: 13.5rem !important;
  }

  .doc-animation-switcher {
    position: relative;
    z-index: 5;
    width: min(100%, 20rem) !important;
    margin: 0 auto !important;
    padding: 0.38rem !important;
    transform: none !important;
  }

  .doc-animation-switcher button {
    flex: 1 1 calc(50% - 0.5rem) !important;
    min-width: 0 !important;
    height: 2.05rem !important;
    font-size: 0.66rem !important;
    padding-inline: 0.35rem !important;
  }
}

/* Final distinct animation concepts. */
.premium-doc-stack--stack .premium-doc-stack__sheet--fall {
  display: none !important;
}

.premium-doc-stack--stack .premium-doc-stack__sheet--back,
.premium-doc-stack--stack .premium-doc-stack__sheet--middle,
.premium-doc-stack--stack .premium-doc-stack__sheet--front {
  opacity: 1 !important;
}

.premium-doc-stack--stack .premium-doc-stack__sheet--moving {
  display: block !important;
  opacity: 1 !important;
  animation: conceptStackPlace 6.8s cubic-bezier(0.2, 0.78, 0.2, 1) infinite !important;
}

.premium-doc-stack--sign .premium-doc-stack__base,
.premium-doc-stack--sign .premium-doc-stack__sheet--back,
.premium-doc-stack--sign .premium-doc-stack__sheet--middle,
.premium-doc-stack--sign .premium-doc-stack__sheet--fall {
  display: none !important;
}

.premium-doc-stack--sign .premium-doc-stack__sheet--front {
  opacity: 0.92 !important;
  transform: translate3d(-50%, 1.75rem, 34px) rotateX(58deg) rotateZ(-2deg) scale(0.94) !important;
}

.premium-doc-stack--sign .premium-doc-stack__sheet--moving {
  display: block !important;
  opacity: 1 !important;
  animation: conceptSignSheet 7.2s cubic-bezier(0.18, 0.76, 0.18, 1) infinite !important;
}

.premium-doc-stack--sign::before {
  content: "";
  position: absolute;
  left: 39%;
  top: 44%;
  z-index: 22;
  width: 5.4rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(34, 124, 150, 0.52);
  box-shadow:
    0 1.05rem 0 rgba(34, 124, 150, 0.2),
    0 2.1rem 0 rgba(34, 124, 150, 0.16);
  opacity: 0;
  transform: rotate(-5deg);
  animation: conceptSignLines 7.2s ease-in-out infinite !important;
}

.premium-doc-stack--registry .premium-doc-stack__base {
  display: block !important;
  height: 7.8rem !important;
  bottom: 3.2rem !important;
  opacity: 0.9;
  transform: perspective(620px) rotateX(64deg) scaleX(1.18) !important;
}

.premium-doc-stack--registry .premium-doc-stack__sheet--back,
.premium-doc-stack--registry .premium-doc-stack__sheet--middle,
.premium-doc-stack--registry .premium-doc-stack__sheet--front,
.premium-doc-stack--registry .premium-doc-stack__sheet--moving {
  display: block !important;
  opacity: 1 !important;
  width: 9.4rem !important;
  height: 12.2rem !important;
  animation: conceptRegistryTrack 6.6s cubic-bezier(0.2, 0.72, 0.18, 1) infinite !important;
}

.premium-doc-stack--registry .premium-doc-stack__sheet--fall {
  display: none !important;
}

.premium-doc-stack--registry .premium-doc-stack__sheet--back {
  --concept-lane: -3.4rem;
  --concept-delay: 0s;
}

.premium-doc-stack--registry .premium-doc-stack__sheet--middle {
  --concept-lane: -1.15rem;
  --concept-delay: 0.18s;
}

.premium-doc-stack--registry .premium-doc-stack__sheet--front {
  --concept-lane: 1.15rem;
  --concept-delay: 0.36s;
}

.premium-doc-stack--registry .premium-doc-stack__sheet--moving {
  --concept-lane: 3.4rem;
  --concept-delay: 0.54s;
}

.premium-doc-stack--fall .premium-doc-stack__base {
  display: block !important;
}

.premium-doc-stack--fall .premium-doc-stack__sheet--back,
.premium-doc-stack--fall .premium-doc-stack__sheet--middle,
.premium-doc-stack--fall .premium-doc-stack__sheet--front {
  opacity: 0.74 !important;
  animation: conceptFallStackPulse 7.4s ease-in-out infinite !important;
}

.premium-doc-stack--fall .premium-doc-stack__sheet--fall,
.premium-doc-stack--fall .premium-doc-stack__sheet--moving {
  display: block !important;
  opacity: 1 !important;
}

.premium-doc-stack--fall .premium-doc-stack__sheet--fall-one {
  animation: conceptFallRainOne 7.4s cubic-bezier(0.18, 0.76, 0.2, 1) infinite !important;
}

.premium-doc-stack--fall .premium-doc-stack__sheet--fall-two {
  animation: conceptFallRainTwo 7.4s cubic-bezier(0.18, 0.76, 0.2, 1) infinite !important;
}

.premium-doc-stack--fall .premium-doc-stack__sheet--fall-three {
  animation: conceptFallRainThree 7.4s cubic-bezier(0.18, 0.76, 0.2, 1) infinite !important;
}

.premium-doc-stack--fall .premium-doc-stack__sheet--moving {
  animation: conceptFallRainFour 7.4s cubic-bezier(0.18, 0.76, 0.2, 1) infinite !important;
}

@keyframes conceptStackPlace {
  0%, 12% {
    opacity: 0;
    transform: translate3d(-18%, -5.2rem, 150px) rotateX(0deg) rotateY(-14deg) rotateZ(11deg) scale(0.9);
  }
  30%, 44% {
    opacity: 1;
    transform: translate3d(-43%, -1.05rem, 122px) rotateX(2deg) rotateY(-3deg) rotateZ(4deg) scale(1);
  }
  65%, 90% {
    opacity: 1;
    transform: translate3d(-44%, 3.05rem, 74px) rotateX(62deg) rotateZ(2deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-44%, 3.35rem, 70px) rotateX(62deg) rotateZ(2deg) scale(0.98);
  }
}

@keyframes conceptSignSheet {
  0%, 18%, 100% {
    transform: translate3d(-50%, 2.2rem, 72px) rotateX(58deg) rotateZ(-2deg) scale(0.98);
  }
  34%, 68% {
    transform: translate3d(-50%, -0.95rem, 132px) rotateX(7deg) rotateZ(0deg) scale(1.04);
  }
}

@keyframes conceptSignLines {
  0%, 38%, 100% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  52%, 72% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  84% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes conceptRegistryTrack {
  0% {
    opacity: 0;
    transform: translate3d(72%, var(--concept-lane), 90px) rotateX(0deg) rotateZ(0deg) scale(0.9);
  }
  22%, 42% {
    opacity: 1;
    transform: translate3d(-42%, var(--concept-lane), 90px) rotateX(0deg) rotateZ(0deg) scale(0.96);
  }
  62%, 86% {
    opacity: 1;
    transform: translate3d(-56%, calc(2.65rem + var(--concept-lane) * 0.18), 54px) rotateX(66deg) rotateZ(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-70%, 3.2rem, 48px) rotateX(66deg) rotateZ(0deg) scale(0.96);
  }
}

@keyframes conceptFallStackPulse {
  0%, 100% { filter: brightness(1); }
  62% { filter: brightness(1.06); }
}

@keyframes conceptFallRainOne {
  0%, 8% { opacity: 0; transform: translate3d(-94%, -8.8rem, 170px) rotateX(0deg) rotateZ(-19deg) scale(0.82); }
  28%, 44% { opacity: 0.98; transform: translate3d(-76%, -2.4rem, 128px) rotateX(5deg) rotateZ(-9deg) scale(0.94); }
  68%, 92% { opacity: 0.96; transform: translate3d(-58%, 3.95rem, 66px) rotateX(62deg) rotateZ(-4deg) scale(1); }
  100% { opacity: 0; transform: translate3d(-58%, 4.3rem, 62px) rotateX(62deg) rotateZ(-4deg) scale(0.98); }
}

@keyframes conceptFallRainTwo {
  0%, 20% { opacity: 0; transform: translate3d(-12%, -9.5rem, 176px) rotateX(0deg) rotateZ(17deg) scale(0.8); }
  39%, 56% { opacity: 0.98; transform: translate3d(-30%, -2.9rem, 134px) rotateX(4deg) rotateZ(8deg) scale(0.94); }
  74%, 95% { opacity: 0.96; transform: translate3d(-48%, 3.55rem, 72px) rotateX(62deg) rotateZ(2deg) scale(1); }
  100% { opacity: 0; transform: translate3d(-48%, 3.95rem, 68px) rotateX(62deg) rotateZ(2deg) scale(0.98); }
}

@keyframes conceptFallRainThree {
  0%, 32% { opacity: 0; transform: translate3d(-55%, -10rem, 182px) rotateX(0deg) rotateZ(-3deg) scale(0.82); }
  51%, 66% { opacity: 0.98; transform: translate3d(-55%, -2.1rem, 138px) rotateX(3deg) rotateZ(-1deg) scale(0.94); }
  82%, 97% { opacity: 0.96; transform: translate3d(-43%, 3.18rem, 80px) rotateX(62deg) rotateZ(4deg) scale(1); }
  100% { opacity: 0; transform: translate3d(-43%, 3.55rem, 76px) rotateX(62deg) rotateZ(4deg) scale(0.98); }
}

@keyframes conceptFallRainFour {
  0%, 44% { opacity: 0; transform: translate3d(-28%, -9rem, 188px) rotateX(0deg) rotateZ(11deg) scale(0.82); }
  61%, 73% { opacity: 0.98; transform: translate3d(-39%, -1.65rem, 144px) rotateX(3deg) rotateZ(4deg) scale(0.94); }
  86%, 98% { opacity: 0.96; transform: translate3d(-38%, 2.9rem, 88px) rotateX(62deg) rotateZ(5deg) scale(1); }
  100% { opacity: 0; transform: translate3d(-38%, 3.28rem, 84px) rotateX(62deg) rotateZ(5deg) scale(0.98); }
}

/* Refined sign and registry concepts. */
.premium-doc-stack--sign .premium-doc-stack__aura {
  inset: 2.4rem 4.2rem 4rem !important;
}

.premium-doc-stack--sign .premium-doc-stack__shadow {
  left: 26% !important;
  right: 22% !important;
  bottom: 5.2rem !important;
  opacity: 0.42 !important;
}

.premium-doc-stack--sign .premium-doc-stack__sheet--front {
  display: block !important;
  opacity: 0.3 !important;
  transform: translate3d(-50%, 3.5rem, 28px) rotateX(62deg) rotateZ(-2deg) scale(0.94) !important;
}

.premium-doc-stack--sign .premium-doc-stack__sheet--moving {
  width: 12.9rem !important;
  height: 16.7rem !important;
  top: 10% !important;
  animation: refinedSignFocusSheet 7.2s cubic-bezier(0.18, 0.76, 0.18, 1) infinite !important;
}

.premium-doc-stack--sign::before {
  left: 38% !important;
  top: 39% !important;
  width: 6.8rem !important;
  height: 0.35rem !important;
  background: #227c96 !important;
  box-shadow:
    0 1rem 0 rgba(34, 124, 150, 0.22),
    0 2rem 0 rgba(34, 124, 150, 0.16) !important;
  animation: refinedSignTextLines 7.2s ease-in-out infinite !important;
}

.premium-doc-stack--sign::after {
  left: 42% !important;
  top: 58% !important;
  width: 5.8rem !important;
  height: 1.2rem !important;
  border-bottom-color: rgba(209, 164, 61, 0.88) !important;
  border-bottom-width: 0.2rem !important;
  animation: refinedSignStroke 7.2s ease-in-out infinite !important;
}

.premium-doc-stack--registry .premium-doc-stack__aura {
  inset: 3.4rem 1.2rem 4rem !important;
}

.premium-doc-stack--registry .premium-doc-stack__base {
  height: 5.6rem !important;
  bottom: 5rem !important;
  opacity: 0.78;
}

.premium-doc-stack--registry .premium-doc-stack__sheet--front,
.premium-doc-stack--registry .premium-doc-stack__sheet--moving {
  display: block !important;
  width: 12.1rem !important;
  height: 15.6rem !important;
  top: 15% !important;
}

.premium-doc-stack--registry .premium-doc-stack__sheet--back,
.premium-doc-stack--registry .premium-doc-stack__sheet--middle {
  display: none !important;
}

.premium-doc-stack--registry .premium-doc-stack__sheet--front {
  opacity: 0.46 !important;
  transform: translate3d(-50%, 3.45rem, 44px) rotateX(62deg) rotateZ(-1deg) scale(0.96) !important;
  animation: refinedRegistryBase 7s ease-in-out infinite !important;
}

.premium-doc-stack--registry .premium-doc-stack__sheet--moving {
  opacity: 1 !important;
  animation: refinedRegistryInspect 7s cubic-bezier(0.2, 0.72, 0.18, 1) infinite !important;
}

.premium-doc-stack--registry::before {
  content: "";
  position: absolute;
  left: 29%;
  right: 23%;
  top: 28%;
  z-index: 24;
  height: 0.18rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  box-shadow: 0 0 1.1rem rgba(255, 255, 255, 0.72);
  opacity: 0;
  animation: refinedRegistryScan 7s ease-in-out infinite !important;
}

.premium-doc-stack--registry::after {
  content: "";
  position: absolute;
  right: 28%;
  top: 52%;
  z-index: 25;
  width: 3.6rem;
  height: 3.6rem;
  border: 0.22rem solid rgba(34, 124, 150, 0.84);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  animation: refinedRegistryApprove 7s ease-in-out infinite !important;
}

@keyframes refinedSignFocusSheet {
  0%, 18%, 100% {
    transform: translate3d(-50%, 2.85rem, 74px) rotateX(62deg) rotateZ(-1.2deg) scale(0.96);
  }
  34%, 68% {
    transform: translate3d(-50%, -0.6rem, 140px) rotateX(5deg) rotateZ(0deg) scale(1.04);
  }
}

@keyframes refinedSignTextLines {
  0%, 32%, 100% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  45%, 74% {
    opacity: 0.72;
    clip-path: inset(0 0 0 0);
  }
  84% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes refinedSignStroke {
  0%, 48%, 100% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: rotate(-8deg) translateY(0);
  }
  60%, 75% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: rotate(-8deg) translateY(0);
  }
  86% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    transform: rotate(-8deg) translateY(0.2rem);
  }
}

@keyframes refinedRegistryBase {
  0%, 100% {
    opacity: 0.42;
    filter: brightness(1);
  }
  58% {
    opacity: 0.56;
    filter: brightness(1.06);
  }
}

@keyframes refinedRegistryInspect {
  0%, 12% {
    opacity: 0;
    transform: translate3d(20%, -1.2rem, 136px) rotateX(0deg) rotateZ(5deg) scale(0.94);
  }
  28%, 58% {
    opacity: 1;
    transform: translate3d(-50%, -0.7rem, 132px) rotateX(4deg) rotateZ(0deg) scale(1.03);
  }
  76%, 92% {
    opacity: 1;
    transform: translate3d(-50%, 3.15rem, 70px) rotateX(62deg) rotateZ(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, 3.45rem, 66px) rotateX(62deg) rotateZ(0deg) scale(0.98);
  }
}

@keyframes refinedRegistryScan {
  0%, 30%, 100% {
    opacity: 0;
    transform: translateY(-1.8rem);
  }
  42% {
    opacity: 1;
    transform: translateY(-1.8rem);
  }
  62% {
    opacity: 1;
    transform: translateY(4.8rem);
  }
  72% {
    opacity: 0;
    transform: translateY(4.8rem);
  }
}

@keyframes refinedRegistryApprove {
  0%, 62%, 100% {
    opacity: 0;
    transform: scale(0.78);
  }
  73%, 88% {
    opacity: 1;
    transform: scale(1);
  }
}

/* === Premium paper stack animation v4: natural, presentation-grade, CSS-only === */
:root {
  --ekom-accent: #b4db18;
  --ekom-blue: #387998;
  --ekom-deep: #123b48;
}

#top > .relative.mx-auto {
  display: grid !important;
  grid-template-columns: minmax(0, 46rem) minmax(18rem, 29rem) !important;
  align-items: center !important;
  gap: clamp(1.25rem, 3vw, 3.5rem) !important;
  min-height: clamp(40rem, 78vh, 47rem) !important;
}

#top .max-w-3xl {
  max-width: 46rem !important;
}

#top h1 {
  font-size: clamp(2.45rem, 4.65vw, 3.65rem) !important;
  line-height: 1.04 !important;
}

.premium-doc-stage {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  place-items: center !important;
  width: min(100%, 29rem) !important;
  min-height: 33rem !important;
  margin-left: auto !important;
  pointer-events: none !important;
}

.premium-doc-stack {
  position: relative !important;
  inset: auto !important;
  width: min(100%, 28rem) !important;
  min-width: 0 !important;
  height: 31rem !important;
  margin: 0 auto !important;
  perspective: 1500px !important;
  transform-style: preserve-3d !important;
  pointer-events: none !important;
  filter: drop-shadow(0 34px 45px rgba(3, 28, 38, 0.22));
}

.premium-doc-stack__aura,
.premium-doc-stack__shadow,
.premium-doc-stack__base,
.premium-doc-stack__sheet,
.premium-doc-stack__clip,
.premium-doc-stack__seal {
  position: absolute !important;
  display: block !important;
  box-sizing: border-box !important;
}

.premium-doc-stack__aura {
  inset: 8% 0 4% !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 52% 32%, rgba(180, 219, 24, 0.24), transparent 35%),
    radial-gradient(circle at 45% 58%, rgba(56, 121, 152, 0.28), transparent 59%),
    radial-gradient(circle at 62% 70%, rgba(255, 255, 255, 0.16), transparent 48%) !important;
  filter: blur(28px) !important;
  opacity: 0.9 !important;
  animation: docAuraBreath 7s ease-in-out infinite !important;
}

.premium-doc-stack__shadow {
  left: 14% !important;
  right: 9% !important;
  bottom: 3.2rem !important;
  height: 5.7rem !important;
  border-radius: 50% !important;
  background: radial-gradient(ellipse at center, rgba(2, 27, 36, 0.42), rgba(2, 27, 36, 0.14) 45%, transparent 72%) !important;
  transform: rotateX(67deg) translateZ(-90px) !important;
  animation: docShadowPulse 6.9s cubic-bezier(0.2, 0.75, 0.2, 1) infinite !important;
}

.premium-doc-stack__base {
  left: 22% !important;
  right: 13% !important;
  bottom: 7.8rem !important;
  height: 4.2rem !important;
  border-radius: 1.2rem !important;
  transform: rotateX(64deg) rotateZ(-3deg) translateZ(-44px) !important;
  transform-style: preserve-3d !important;
}

.premium-doc-stack__base span {
  position: absolute;
  left: 0;
  right: 0;
  height: 0.46rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.82), rgba(235,250,252,0.92) 42%, rgba(215,235,238,0.72));
  box-shadow: 0 12px 24px rgba(1, 24, 34, 0.11), inset 0 1px 0 rgba(255,255,255,0.9);
}

.premium-doc-stack__base span:nth-child(1) { bottom: 0; transform: translateZ(0); }
.premium-doc-stack__base span:nth-child(2) { bottom: .46rem; transform: translateX(.12rem) translateZ(3px); }
.premium-doc-stack__base span:nth-child(3) { bottom: .92rem; transform: translateX(-.08rem) translateZ(6px); }
.premium-doc-stack__base span:nth-child(4) { bottom: 1.38rem; transform: translateX(.18rem) translateZ(9px); }
.premium-doc-stack__base span:nth-child(5) { bottom: 1.84rem; transform: translateX(-.14rem) translateZ(12px); }
.premium-doc-stack__base span:nth-child(6) { bottom: 2.3rem; transform: translateX(.05rem) translateZ(15px); }

.premium-doc-stack__sheet {
  left: 50% !important;
  top: 18% !important;
  width: 13.2rem !important;
  height: 18.1rem !important;
  border: 1px solid rgba(56, 121, 152, 0.12) !important;
  border-radius: 0.72rem 1.05rem 0.86rem 0.94rem !important;
  background:
    linear-gradient(138deg, rgba(255,255,255,0.98), rgba(247,253,254,0.98) 56%, rgba(242,249,250,0.96)),
    repeating-linear-gradient(180deg, transparent 0 1.58rem, rgba(56,121,152,0.08) 1.58rem 1.67rem) !important;
  box-shadow:
    0 27px 45px rgba(1, 31, 43, 0.2),
    0 2px 0 rgba(255,255,255,0.95) inset,
    0 -1px 0 rgba(56,121,152,0.12) inset !important;
  overflow: hidden !important;
  transform-style: preserve-3d !important;
  backface-visibility: hidden !important;
}

.premium-doc-stack__sheet::before {
  content: "";
  position: absolute;
  inset: 1.35rem 1.25rem auto;
  height: .54rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 121, 152, 0.46), rgba(56, 121, 152, 0.12));
  box-shadow:
    0 1.85rem 0 -.05rem rgba(56, 121, 152, 0.16),
    0 3.7rem 0 -.05rem rgba(56, 121, 152, 0.13),
    0 5.55rem 0 -.05rem rgba(56, 121, 152, 0.1),
    0 7.4rem 0 -.05rem rgba(56, 121, 152, 0.08),
    0 9.25rem 0 -.05rem rgba(56, 121, 152, 0.07);
}

.premium-doc-stack__sheet::after {
  content: "";
  position: absolute;
  right: -0.04rem;
  top: -0.04rem;
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 0 0.98rem 0 1.1rem;
  background:
    linear-gradient(135deg, rgba(232, 245, 247, 0.98), rgba(255,255,255,0.95) 48%, rgba(213, 236, 240, 0.86));
  box-shadow: -10px 10px 18px rgba(28, 80, 96, 0.09);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.premium-doc-stack__sheet i,
.premium-doc-stack__sheet b {
  position: absolute;
  display: block;
  border-radius: 999px;
  pointer-events: none;
}

.premium-doc-stack__sheet i {
  left: 1.25rem;
  bottom: 1.15rem;
  width: 4.3rem;
  height: 1.4rem;
  border: 2px solid rgba(180, 219, 24, 0.52);
  transform: rotate(-7deg);
}

.premium-doc-stack__sheet b {
  right: 1.05rem;
  bottom: 1.1rem;
  width: 3.5rem;
  height: 3.5rem;
  border: 0.24rem solid rgba(180, 219, 24, 0.46);
  background: radial-gradient(circle, rgba(180, 219, 24, 0.1), transparent 58%);
}

.premium-doc-stack__sheet--back {
  transform: translate3d(-57%, 5.35rem, 15px) rotateX(63deg) rotateZ(-7.5deg) !important;
}
.premium-doc-stack__sheet--middle {
  transform: translate3d(-52%, 5.72rem, 25px) rotateX(63deg) rotateZ(-2.5deg) !important;
}
.premium-doc-stack__sheet--front {
  transform: translate3d(-47%, 6.08rem, 35px) rotateX(63deg) rotateZ(3.5deg) !important;
}
.premium-doc-stack__sheet--moving {
  transform-origin: 50% 88% !important;
  animation: naturalStackSheet 6.9s cubic-bezier(.2,.78,.18,1) infinite !important;
}

.premium-doc-stack__clip {
  left: 52% !important;
  top: 57% !important;
  z-index: 9 !important;
  width: 5.1rem !important;
  height: .95rem !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(245,255,210,.98), var(--ekom-accent) 46%, rgba(114,150,0,.98)) !important;
  box-shadow: 0 12px 25px rgba(36, 52, 0, 0.22), inset 0 1px 0 rgba(255,255,255,0.82) !important;
  transform: translate3d(-50%, 2.5rem, 78px) rotateX(63deg) rotateZ(2deg) !important;
  animation: naturalClip 6.9s cubic-bezier(.2,.78,.18,1) infinite !important;
}

.premium-doc-stack__seal {
  right: 1.65rem !important;
  bottom: 11.1rem !important;
  z-index: 10 !important;
  display: grid !important;
  place-items: center !important;
  width: 4.7rem !important;
  height: 4.7rem !important;
  border-radius: 50% !important;
  border: .16rem solid rgba(255,255,255,0.58) !important;
  background:
    radial-gradient(circle at 34% 29%, rgba(255,255,255,.92), rgba(180,219,24,.95) 38%, rgba(122,158,1,.98) 74%) !important;
  color: #123b48 !important;
  font: 900 .78rem/1 var(--font-montserrat, Montserrat, Arial, sans-serif) !important;
  letter-spacing: .08em !important;
  box-shadow: 0 20px 35px rgba(7, 38, 48, .26), inset 0 2px 0 rgba(255,255,255,.72) !important;
  animation: naturalSeal 6.9s cubic-bezier(.2,.78,.18,1) infinite !important;
}

/* Alternative moods via ?docs=sign / ?docs=registry / ?docs=fall */
.premium-doc-stack--sign .premium-doc-stack__sheet--back { animation: signBack 7.4s ease-in-out infinite !important; }
.premium-doc-stack--sign .premium-doc-stack__sheet--middle { animation: signMiddle 7.4s ease-in-out infinite !important; }
.premium-doc-stack--sign .premium-doc-stack__sheet--front { animation: signFront 7.4s ease-in-out infinite !important; }
.premium-doc-stack--sign .premium-doc-stack__sheet--moving { animation: signTop 7.4s ease-in-out infinite !important; }
.premium-doc-stack--sign::after {
  content: "";
  position: absolute;
  left: 43%;
  top: 45%;
  z-index: 11;
  width: 8.2rem;
  height: 1.8rem;
  border-bottom: .22rem solid rgba(180, 219, 24, .78);
  border-radius: 50%;
  transform: rotate(-8deg);
  animation: signStroke 7.4s ease-in-out infinite;
}

.premium-doc-stack--registry .premium-doc-stack__sheet { animation: registryDoc 7.7s cubic-bezier(.18,.76,.18,1) infinite !important; }
.premium-doc-stack--registry .premium-doc-stack__sheet--back { --lane-y: -2.8rem; --lane-r: -4deg; animation-delay: 0s !important; }
.premium-doc-stack--registry .premium-doc-stack__sheet--middle { --lane-y: -1rem; --lane-r: -1deg; animation-delay: .18s !important; }
.premium-doc-stack--registry .premium-doc-stack__sheet--front { --lane-y: .85rem; --lane-r: 2deg; animation-delay: .36s !important; }
.premium-doc-stack--registry .premium-doc-stack__sheet--moving { --lane-y: 2.7rem; --lane-r: 5deg; animation-delay: .54s !important; }

.premium-doc-stack--fall .premium-doc-stack__sheet--back { animation: fallDocA 7.2s cubic-bezier(.2,.78,.18,1) infinite !important; }
.premium-doc-stack--fall .premium-doc-stack__sheet--middle { animation: fallDocB 7.2s cubic-bezier(.2,.78,.18,1) infinite !important; }
.premium-doc-stack--fall .premium-doc-stack__sheet--front { animation: fallDocC 7.2s cubic-bezier(.2,.78,.18,1) infinite !important; }
.premium-doc-stack--fall .premium-doc-stack__sheet--moving { animation: fallDocD 7.2s cubic-bezier(.2,.78,.18,1) infinite !important; }

.doc-animation-switcher,
.stack-variant-switcher {
  display: none !important;
}

@keyframes naturalStackSheet {
  0%, 8% { opacity: 0; transform: translate3d(-43%, -3.1rem, 118px) rotateX(15deg) rotateY(-8deg) rotateZ(8deg) scale(.96); }
  24%, 39% { opacity: 1; transform: translate3d(-45%, -1.35rem, 98px) rotateX(4deg) rotateY(-2deg) rotateZ(4deg) scale(1); }
  59%, 88% { opacity: 1; transform: translate3d(-44%, 6.35rem, 46px) rotateX(63deg) rotateY(0deg) rotateZ(7deg) scale(.99); }
  100% { opacity: 0; transform: translate3d(-44%, 6.9rem, 42px) rotateX(63deg) rotateZ(7deg) scale(.985); }
}

@keyframes naturalClip {
  0%, 46% { opacity: 0; transform: translate3d(-50%, .8rem, 112px) rotateX(38deg) rotateZ(-5deg) scale(.86); }
  61%, 88% { opacity: 1; transform: translate3d(-50%, 2.5rem, 78px) rotateX(63deg) rotateZ(2deg) scale(1); }
  100% { opacity: 0; transform: translate3d(-50%, 2.9rem, 76px) rotateX(63deg) rotateZ(2deg) scale(.97); }
}

@keyframes naturalSeal {
  0%, 54% { opacity: 0; transform: translate3d(.95rem, -1.7rem, 128px) rotate(-12deg) scale(.82); }
  68%, 88% { opacity: 1; transform: translate3d(0, 0, 128px) rotate(7deg) scale(1); }
  100% { opacity: 0; transform: translate3d(.15rem, .52rem, 128px) rotate(7deg) scale(.96); }
}

@keyframes docAuraBreath { 0%,100%{opacity:.72;transform:scale(.98)} 50%{opacity:1;transform:scale(1.035)} }
@keyframes docShadowPulse { 0%,100%{opacity:.62;transform:rotateX(67deg) translateZ(-90px) scale(.96)} 60%{opacity:.88;transform:rotateX(67deg) translateZ(-90px) scale(1.05)} }

@keyframes signBack { 0%,18%,100%{transform:translate3d(-57%,5.35rem,15px) rotateX(63deg) rotateZ(-7.5deg)} 38%,64%{transform:translate3d(-68%,.45rem,86px) rotateX(5deg) rotateZ(-14deg)} }
@keyframes signMiddle { 0%,18%,100%{transform:translate3d(-52%,5.72rem,25px) rotateX(63deg) rotateZ(-2.5deg)} 38%,64%{transform:translate3d(-52%,.1rem,94px) rotateX(3deg) rotateZ(-3deg)} }
@keyframes signFront { 0%,18%,100%{transform:translate3d(-47%,6.08rem,35px) rotateX(63deg) rotateZ(3.5deg)} 38%,64%{transform:translate3d(-36%,.55rem,86px) rotateX(5deg) rotateZ(10deg)} }
@keyframes signTop { 0%,18%,100%{transform:translate3d(-44%,6.35rem,46px) rotateX(63deg) rotateZ(7deg)} 38%,64%{transform:translate3d(-43%,1.65rem,102px) rotateX(6deg) rotateZ(4deg)} }
@keyframes signStroke { 0%,42%{opacity:0;clip-path:inset(0 100% 0 0)} 52%,70%{opacity:1;clip-path:inset(0 0 0 0)} 88%,100%{opacity:0;clip-path:inset(0 0 0 0)} }

@keyframes registryDoc {
  0%, 12% { opacity: 0; transform: translate3d(48%, var(--lane-y), 96px) rotateX(0deg) rotateZ(var(--lane-r)) scale(.96); }
  31%, 52% { opacity: 1; transform: translate3d(-18%, var(--lane-y), 96px) rotateX(0deg) rotateZ(var(--lane-r)) scale(1); }
  72%, 90% { opacity: 1; transform: translate3d(-49%, 5.85rem, 38px) rotateX(63deg) rotateZ(var(--lane-r)) scale(.99); }
  100% { opacity: 0; transform: translate3d(-49%, 6.3rem, 34px) rotateX(63deg) rotateZ(var(--lane-r)) scale(.985); }
}

@keyframes fallDocA { 0%,100%{transform:translate3d(-57%,5.35rem,15px) rotateX(63deg) rotateZ(-7.5deg)} 18%{transform:translate3d(-70%,-1rem,95px) rotateX(0deg) rotateZ(-18deg)} 50%,86%{transform:translate3d(-57%,5.35rem,15px) rotateX(63deg) rotateZ(-7.5deg)} }
@keyframes fallDocB { 0%,12%,100%{transform:translate3d(-52%,5.72rem,25px) rotateX(63deg) rotateZ(-2.5deg)} 28%{transform:translate3d(-48%,-1.35rem,102px) rotateX(0deg) rotateZ(6deg)} 58%,86%{transform:translate3d(-52%,5.72rem,25px) rotateX(63deg) rotateZ(-2.5deg)} }
@keyframes fallDocC { 0%,24%,100%{transform:translate3d(-47%,6.08rem,35px) rotateX(63deg) rotateZ(3.5deg)} 42%{transform:translate3d(-30%,-.8rem,100px) rotateX(0deg) rotateZ(16deg)} 68%,88%{transform:translate3d(-47%,6.08rem,35px) rotateX(63deg) rotateZ(3.5deg)} }
@keyframes fallDocD { 0%,36%,100%{transform:translate3d(-44%,6.35rem,46px) rotateX(63deg) rotateZ(7deg)} 54%{transform:translate3d(-44%,-1.55rem,110px) rotateX(0deg) rotateZ(-5deg)} 78%,90%{transform:translate3d(-44%,6.35rem,46px) rotateX(63deg) rotateZ(7deg)} }

@media (max-width: 1180px) {
  #top > .relative.mx-auto {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .premium-doc-stage {
    width: min(100%, 28rem) !important;
    min-height: 30rem !important;
    margin: 2rem auto 0 !important;
  }
}

@media (max-width: 640px) {
  #top > .relative.mx-auto {
    min-height: 0 !important;
  }
  .premium-doc-stage {
    width: min(100%, 21rem) !important;
    min-height: 19.5rem !important;
    margin-top: 1.25rem !important;
  }
  .premium-doc-stack {
    width: 20rem !important;
    height: 19rem !important;
    transform: scale(.72) !important;
    transform-origin: top center !important;
  }
  .premium-doc-stack__sheet {
    top: 15% !important;
    width: 12.2rem !important;
    height: 16.5rem !important;
  }
  .premium-doc-stack__seal {
    right: 1.35rem !important;
    bottom: 9.8rem !important;
    width: 4.2rem !important;
    height: 4.2rem !important;
    font-size: .68rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-doc-stack * { animation: none !important; }
  .premium-doc-stack__sheet--moving { opacity: 1 !important; transform: translate3d(-44%, 6.35rem, 46px) rotateX(63deg) rotateZ(7deg) scale(.99) !important; }
  .premium-doc-stack__clip, .premium-doc-stack__seal { opacity: 1 !important; }
}

/* === AI layered document animation v5: SVG assets + cinematic stacking === */
#top > .relative.mx-auto {
  display: grid !important;
  grid-template-columns: minmax(0, 46rem) minmax(18rem, 31rem) !important;
  align-items: center !important;
  gap: clamp(1.5rem, 3.2vw, 4rem) !important;
  min-height: clamp(42rem, 80vh, 49rem) !important;
}

#top .max-w-3xl {
  max-width: 46rem !important;
}

#top h1 {
  font-size: clamp(2.45rem, 4.55vw, 3.58rem) !important;
  line-height: 1.035 !important;
}

.ai-paper-stage {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  place-items: center !important;
  width: min(100%, 31rem) !important;
  min-height: 34rem !important;
  margin-left: auto !important;
  pointer-events: none !important;
  isolation: isolate !important;
}

.ai-paper-scene {
  --mx: 0deg;
  --my: 0deg;
  position: relative !important;
  width: min(100%, 30rem) !important;
  height: 32rem !important;
  transform-style: preserve-3d !important;
  perspective: 1550px !important;
  transform: rotateY(var(--mx)) rotateX(var(--my)) translateZ(0) !important;
  transition: transform .45s cubic-bezier(.2,.8,.2,1) !important;
  filter: drop-shadow(0 38px 42px rgba(2, 26, 35, .17)) !important;
}

.ai-paper-scene img,
.ai-paper-scene__glow,
.ai-paper-scene__spark {
  position: absolute !important;
  display: block !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  transform-style: preserve-3d !important;
}

.ai-paper-scene__glow {
  inset: 5% -6% 0 !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 50% 33%, rgba(180, 219, 24, .28), transparent 33%),
    radial-gradient(circle at 62% 62%, rgba(56, 121, 152, .42), transparent 58%),
    radial-gradient(circle at 32% 72%, rgba(255, 255, 255, .14), transparent 48%) !important;
  filter: blur(34px) !important;
  opacity: .92 !important;
  animation: aiGlowPulse 7s ease-in-out infinite !important;
}

.ai-paper-scene__shadow {
  left: 4% !important;
  bottom: 1.6rem !important;
  width: 94% !important;
  height: auto !important;
  opacity: .86 !important;
  transform: rotateX(68deg) translateZ(-120px) scale(.96) !important;
  animation: aiStackShadow 6.8s cubic-bezier(.2,.78,.18,1) infinite !important;
}

.ai-paper-scene__paper {
  left: 50% !important;
  top: 46% !important;
  width: 18.3rem !important;
  height: auto !important;
  border-radius: 1rem !important;
  backface-visibility: hidden !important;
}

.ai-paper-scene__paper--blueprint {
  z-index: 2 !important;
  transform: translate3d(-58%, -19%, 18px) rotateX(64deg) rotateZ(-8.5deg) !important;
  animation: aiBaseSheetOne 6.8s cubic-bezier(.2,.78,.18,1) infinite !important;
}

.ai-paper-scene__paper--checklist {
  z-index: 3 !important;
  transform: translate3d(-53%, -18%, 33px) rotateX(64deg) rotateZ(-2deg) !important;
  animation: aiBaseSheetTwo 6.8s cubic-bezier(.2,.78,.18,1) infinite !important;
}

.ai-paper-scene__paper--main {
  z-index: 4 !important;
  transform: translate3d(-48%, -17%, 48px) rotateX(64deg) rotateZ(4.5deg) !important;
  animation: aiBaseSheetThree 6.8s cubic-bezier(.2,.78,.18,1) infinite !important;
}

.ai-paper-scene__paper--incoming {
  z-index: 5 !important;
  opacity: 0 !important;
  transform-origin: 50% 86% !important;
  animation: aiIncomingPaper 6.8s cubic-bezier(.18,.84,.18,1) infinite !important;
}

.ai-paper-scene__clip {
  z-index: 8 !important;
  left: 45% !important;
  top: 58% !important;
  width: 6.7rem !important;
  height: auto !important;
  animation: aiClipLand 6.8s cubic-bezier(.18,.84,.18,1) infinite !important;
}

.ai-paper-scene__stamp {
  z-index: 9 !important;
  right: 3.3rem !important;
  bottom: 8.4rem !important;
  width: 6rem !important;
  height: auto !important;
  opacity: 0 !important;
  animation: aiStampApprove 6.8s cubic-bezier(.18,.84,.18,1) infinite !important;
}

.ai-paper-scene__spark {
  z-index: 10 !important;
  width: .68rem !important;
  height: .68rem !important;
  border-radius: 50% !important;
  background: #b4db18 !important;
  box-shadow: 0 0 0 .45rem rgba(180, 219, 24, .13), 0 0 2rem rgba(180, 219, 24, .68) !important;
  opacity: 0 !important;
}

.ai-paper-scene__spark--one {
  right: 22% !important;
  top: 28% !important;
  animation: aiSparkOne 6.8s ease-in-out infinite !important;
}

.ai-paper-scene__spark--two {
  left: 22% !important;
  bottom: 23% !important;
  width: .48rem !important;
  height: .48rem !important;
  animation: aiSparkTwo 6.8s ease-in-out infinite !important;
}

.ai-paper-scene--sign .ai-paper-scene__paper--blueprint { animation: aiSignSheetOne 7.2s ease-in-out infinite !important; }
.ai-paper-scene--sign .ai-paper-scene__paper--checklist { animation: aiSignSheetTwo 7.2s ease-in-out infinite !important; }
.ai-paper-scene--sign .ai-paper-scene__paper--main { animation: aiSignSheetThree 7.2s ease-in-out infinite !important; }
.ai-paper-scene--sign .ai-paper-scene__paper--incoming { animation: aiSignTop 7.2s ease-in-out infinite !important; }

.ai-paper-scene--registry .ai-paper-scene__paper--blueprint { animation: aiRegistrySheet 7.4s cubic-bezier(.2,.78,.18,1) infinite !important; --shift-y: -2.3rem; --rot: -7deg; animation-delay: 0s !important; }
.ai-paper-scene--registry .ai-paper-scene__paper--checklist { animation: aiRegistrySheet 7.4s cubic-bezier(.2,.78,.18,1) infinite !important; --shift-y: -.5rem; --rot: -1deg; animation-delay: .18s !important; }
.ai-paper-scene--registry .ai-paper-scene__paper--main { animation: aiRegistrySheet 7.4s cubic-bezier(.2,.78,.18,1) infinite !important; --shift-y: 1.1rem; --rot: 5deg; animation-delay: .36s !important; }
.ai-paper-scene--registry .ai-paper-scene__paper--incoming { animation: aiRegistrySheet 7.4s cubic-bezier(.2,.78,.18,1) infinite !important; --shift-y: 2.6rem; --rot: 9deg; animation-delay: .54s !important; }

.ai-paper-scene--fall .ai-paper-scene__paper--blueprint { animation: aiFallOne 7.1s cubic-bezier(.2,.78,.18,1) infinite !important; }
.ai-paper-scene--fall .ai-paper-scene__paper--checklist { animation: aiFallTwo 7.1s cubic-bezier(.2,.78,.18,1) infinite !important; }
.ai-paper-scene--fall .ai-paper-scene__paper--main { animation: aiFallThree 7.1s cubic-bezier(.2,.78,.18,1) infinite !important; }
.ai-paper-scene--fall .ai-paper-scene__paper--incoming { animation: aiFallFour 7.1s cubic-bezier(.2,.78,.18,1) infinite !important; }

@keyframes aiGlowPulse { 0%,100%{opacity:.72;transform:scale(.96)} 50%{opacity:1;transform:scale(1.05)} }
@keyframes aiStackShadow { 0%,100%{opacity:.52;transform:rotateX(68deg) translateZ(-120px) scale(.92)} 58%,86%{opacity:.9;transform:rotateX(68deg) translateZ(-120px) scale(1.04)} }

@keyframes aiBaseSheetOne { 0%,17%{transform:translate3d(-62%,-34%,82px) rotateX(10deg) rotateZ(-17deg);opacity:.2} 35%,100%{transform:translate3d(-58%,-19%,18px) rotateX(64deg) rotateZ(-8.5deg);opacity:1} }
@keyframes aiBaseSheetTwo { 0%,25%{transform:translate3d(-49%,-36%,92px) rotateX(8deg) rotateZ(6deg);opacity:.2} 43%,100%{transform:translate3d(-53%,-18%,33px) rotateX(64deg) rotateZ(-2deg);opacity:1} }
@keyframes aiBaseSheetThree { 0%,34%{transform:translate3d(-36%,-32%,94px) rotateX(7deg) rotateZ(16deg);opacity:.22} 52%,100%{transform:translate3d(-48%,-17%,48px) rotateX(64deg) rotateZ(4.5deg);opacity:1} }

@keyframes aiIncomingPaper {
  0%, 9% { opacity: 0; transform: translate3d(-32%, -62%, 150px) rotateX(0deg) rotateY(-12deg) rotateZ(13deg) scale(.94); }
  24%, 38% { opacity: 1; transform: translate3d(-42%, -39%, 128px) rotateX(3deg) rotateY(-3deg) rotateZ(6deg) scale(1); }
  58%, 88% { opacity: 1; transform: translate3d(-45%, -16%, 64px) rotateX(64deg) rotateY(0deg) rotateZ(8deg) scale(.99); }
  100% { opacity: 0; transform: translate3d(-45%, -13%, 62px) rotateX(64deg) rotateZ(8deg) scale(.985); }
}

@keyframes aiClipLand {
  0%,49% { opacity:0; transform: translate3d(-40%, -2rem, 128px) rotateX(20deg) rotateZ(-12deg) scale(.82); }
  65%,88% { opacity:1; transform: translate3d(-40%, 0, 83px) rotateX(64deg) rotateZ(4deg) scale(1); }
  100% { opacity:0; transform: translate3d(-40%, .35rem, 82px) rotateX(64deg) rotateZ(4deg) scale(.97); }
}

@keyframes aiStampApprove {
  0%,58% { opacity:0; transform: translate3d(.8rem, -2rem, 132px) rotate(-18deg) scale(.74); }
  68% { opacity:1; transform: translate3d(0, 0, 132px) rotate(8deg) scale(1.08); }
  75%,88% { opacity:1; transform: translate3d(0, 0, 132px) rotate(8deg) scale(1); }
  100% { opacity:0; transform: translate3d(.2rem, .8rem, 132px) rotate(8deg) scale(.96); }
}

@keyframes aiSparkOne { 0%,62%{opacity:0;transform:translate3d(0,1rem,140px) scale(.2)} 70%{opacity:1;transform:translate3d(.2rem,-.2rem,140px) scale(1)} 82%,100%{opacity:0;transform:translate3d(.75rem,-1rem,140px) scale(.2)} }
@keyframes aiSparkTwo { 0%,55%{opacity:0;transform:translate3d(0,.8rem,130px) scale(.2)} 66%{opacity:.9;transform:translate3d(-.2rem,-.1rem,130px) scale(1)} 80%,100%{opacity:0;transform:translate3d(-.8rem,-.7rem,130px) scale(.2)} }

@keyframes aiSignSheetOne { 0%,16%,100%{transform:translate3d(-58%,-19%,18px) rotateX(64deg) rotateZ(-8.5deg)} 38%,64%{transform:translate3d(-70%,-37%,112px) rotateX(4deg) rotateZ(-15deg)} }
@keyframes aiSignSheetTwo { 0%,16%,100%{transform:translate3d(-53%,-18%,33px) rotateX(64deg) rotateZ(-2deg)} 38%,64%{transform:translate3d(-54%,-39%,116px) rotateX(3deg) rotateZ(-3deg)} }
@keyframes aiSignSheetThree { 0%,16%,100%{transform:translate3d(-48%,-17%,48px) rotateX(64deg) rotateZ(4.5deg)} 38%,64%{transform:translate3d(-38%,-36%,112px) rotateX(4deg) rotateZ(10deg)} }
@keyframes aiSignTop { 0%,16%,100%{opacity:1;transform:translate3d(-45%,-16%,64px) rotateX(64deg) rotateZ(8deg)} 38%,64%{opacity:1;transform:translate3d(-44%,-30%,126px) rotateX(4deg) rotateZ(5deg)} }

@keyframes aiRegistrySheet { 0%,12%{opacity:0;transform:translate3d(48%,var(--shift-y),104px) rotateX(0deg) rotateZ(var(--rot)) scale(.96)} 31%,52%{opacity:1;transform:translate3d(-20%,var(--shift-y),106px) rotateX(0deg) rotateZ(var(--rot)) scale(1)} 72%,90%{opacity:1;transform:translate3d(-50%,-17%,48px) rotateX(64deg) rotateZ(var(--rot)) scale(.99)} 100%{opacity:0;transform:translate3d(-50%,-13%,46px) rotateX(64deg) rotateZ(var(--rot)) scale(.985)} }

@keyframes aiFallOne { 0%,100%{transform:translate3d(-58%,-19%,18px) rotateX(64deg) rotateZ(-8.5deg)} 18%{transform:translate3d(-73%,-40%,113px) rotateX(0deg) rotateZ(-18deg)} 50%,86%{transform:translate3d(-58%,-19%,18px) rotateX(64deg) rotateZ(-8.5deg)} }
@keyframes aiFallTwo { 0%,12%,100%{transform:translate3d(-53%,-18%,33px) rotateX(64deg) rotateZ(-2deg)} 28%{transform:translate3d(-49%,-42%,118px) rotateX(0deg) rotateZ(6deg)} 58%,86%{transform:translate3d(-53%,-18%,33px) rotateX(64deg) rotateZ(-2deg)} }
@keyframes aiFallThree { 0%,24%,100%{transform:translate3d(-48%,-17%,48px) rotateX(64deg) rotateZ(4.5deg)} 42%{transform:translate3d(-31%,-39%,116px) rotateX(0deg) rotateZ(16deg)} 68%,88%{transform:translate3d(-48%,-17%,48px) rotateX(64deg) rotateZ(4.5deg)} }
@keyframes aiFallFour { 0%,36%,100%{opacity:1;transform:translate3d(-45%,-16%,64px) rotateX(64deg) rotateZ(8deg)} 54%{opacity:1;transform:translate3d(-42%,-44%,128px) rotateX(0deg) rotateZ(-5deg)} 78%,90%{opacity:1;transform:translate3d(-45%,-16%,64px) rotateX(64deg) rotateZ(8deg)} }

@media (max-width: 1180px) {
  #top > .relative.mx-auto {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .ai-paper-stage {
    width: min(100%, 30rem) !important;
    min-height: 31rem !important;
    margin: 2rem auto 0 !important;
  }
}

@media (max-width: 640px) {
  #top > .relative.mx-auto {
    min-height: 0 !important;
  }
  .ai-paper-stage {
    width: min(100%, 21rem) !important;
    min-height: 19rem !important;
    margin-top: 1rem !important;
  }
  .ai-paper-scene {
    width: 20.5rem !important;
    height: 19rem !important;
    transform: scale(.7) rotateY(var(--mx)) rotateX(var(--my)) !important;
    transform-origin: top center !important;
  }
  .ai-paper-scene__paper {
    width: 16.6rem !important;
  }
  .ai-paper-scene__stamp {
    right: 2.4rem !important;
    bottom: 8rem !important;
    width: 5.2rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-paper-scene,
  .ai-paper-scene * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* 2026-07 realistic paper animation rewrite: natural layered documents, no icon look. */
#top {
  overflow: hidden !important;
  min-height: auto !important;
  padding-top: calc(env(safe-area-inset-top, 0px) + 5.25rem) !important;
}

#top > .relative.mx-auto {
  display: grid !important;
  grid-template-columns: minmax(0, 47rem) minmax(25rem, 36rem) !important;
  align-items: center !important;
  width: min(94rem, calc(100vw - 2rem)) !important;
  max-width: min(94rem, calc(100vw - 2rem)) !important;
  min-height: 38rem !important;
  height: min(48rem, calc(100svh - 5.25rem)) !important;
  gap: clamp(2rem, 4.2vw, 5rem) !important;
  padding: clamp(1.25rem, 2vw, 2rem) clamp(0.35rem, 1vw, 0.8rem) clamp(1.2rem, 2vw, 1.8rem) !important;
}

.real-paper-stage {
  position: relative;
  z-index: 1;
  justify-self: center;
  align-self: center;
  width: min(100%, 36rem);
  min-height: 31rem;
  display: grid;
  place-items: center;
  pointer-events: auto;
  perspective: 1400px;
}

.real-paper-scene {
  --mx: 0deg;
  --my: 0deg;
  position: relative;
  width: min(100%, 35rem);
  height: 31rem;
  transform-style: preserve-3d;
  transform: rotateX(var(--my)) rotateY(var(--mx));
  transition: transform 0.35s ease-out;
}

.real-paper-scene__ambient {
  position: absolute;
  inset: 0 0 1rem;
  border-radius: 45% 55% 42% 58%;
  background:
    radial-gradient(circle at 46% 30%, rgba(255,255,255,0.23), transparent 27%),
    radial-gradient(ellipse at 50% 64%, rgba(56,121,152,0.24), transparent 55%),
    radial-gradient(ellipse at 70% 55%, rgba(180,219,24,0.18), transparent 44%);
  filter: blur(22px);
  opacity: 0.8;
  transform: translateZ(-80px) scale(0.96);
  animation: realAmbient 8.2s ease-in-out infinite;
}

.real-paper-scene__desk-shadow {
  position: absolute;
  left: 12%;
  right: 5%;
  bottom: 3.4rem;
  height: 4rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(3, 32, 44, 0.42), rgba(3, 32, 44, 0.16) 44%, transparent 72%);
  filter: blur(10px);
  transform: rotateX(64deg) translateZ(-70px);
  animation: realShadow 7.8s ease-in-out infinite;
}

.real-paper-scene__stack {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.real-paper-scene__edge,
.real-sheet {
  position: absolute;
  left: 50%;
  top: 12.6%;
  width: 14.9rem;
  height: 19.4rem;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.real-paper-scene__edge {
  z-index: 1;
  border-radius: 0.32rem 0.5rem 0.42rem 0.32rem;
  background:
    linear-gradient(90deg, rgba(32,72,82,0.16), transparent 8%, transparent 90%, rgba(32,72,82,0.13)),
    linear-gradient(180deg, #fbfbf8 0%, #e7ecea 88%, #cfdad9 100%);
  border: 1px solid rgba(206, 218, 218, 0.95);
  box-shadow:
    0 0.45rem 0.8rem rgba(6, 40, 50, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.8);
  opacity: 0.96;
}

.real-paper-scene__edge::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.34rem;
  height: 0.16rem;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(74,92,96,0.14) 0 0.42rem, transparent 0.42rem 0.72rem);
}

.real-paper-scene__edge--one { transform: translate3d(-60%, 6.6rem, 20px) rotateX(63deg) rotateZ(-5.5deg); }
.real-paper-scene__edge--two { transform: translate3d(-52%, 6.12rem, 30px) rotateX(63deg) rotateZ(-1.6deg); }
.real-paper-scene__edge--three { transform: translate3d(-44%, 5.66rem, 40px) rotateX(63deg) rotateZ(3.6deg); }

.real-sheet {
  z-index: 4;
  overflow: hidden;
  border-radius: 0.34rem 0.52rem 0.46rem 0.36rem;
  clip-path: polygon(0.9% 0.2%, 99.1% 0.7%, 99.6% 98.8%, 73% 99.5%, 45% 99%, 0.5% 98.7%);
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.96), transparent 19%),
    radial-gradient(circle at 83% 75%, rgba(220,226,218,0.24), transparent 22%),
    repeating-linear-gradient(7deg, rgba(31,75,87,0.022) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(93deg, rgba(84,78,55,0.018) 0 1px, transparent 1px 7px),
    linear-gradient(118deg, #fffef9 0%, #fafbf6 47%, #eef3f1 100%);
  border: 1px solid rgba(216, 224, 222, 0.98);
  box-shadow:
    0 1.6rem 2.8rem rgba(2, 31, 42, 0.18),
    0 0.18rem 0.5rem rgba(2, 31, 42, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.96),
    inset -0.6rem 0 1rem rgba(38, 88, 101, 0.035);
}

.real-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(96deg, rgba(9,53,66,0.06), transparent 7%, transparent 88%, rgba(9,53,66,0.045)),
    radial-gradient(circle at 12% 70%, rgba(85,76,52,0.05), transparent 12%),
    radial-gradient(circle at 78% 18%, rgba(39,103,119,0.04), transparent 13%);
  mix-blend-mode: multiply;
}

.real-sheet::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  top: -15%;
  height: 34%;
  background: linear-gradient(180deg, rgba(255,255,255,0.62), rgba(255,255,255,0));
  transform: rotate(-7deg);
  pointer-events: none;
}

.real-sheet__corner {
  position: absolute;
  right: -0.08rem;
  top: -0.08rem;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, rgba(218,226,224,0.94), rgba(255,255,255,0.72) 52%, rgba(199,211,209,0.42));
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  box-shadow: -0.18rem 0.18rem 0.44rem rgba(20,64,74,0.08);
  opacity: 0.75;
}

.real-sheet__header {
  position: absolute;
  left: 1.28rem;
  right: 1.22rem;
  top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
}

.real-sheet__header span {
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(56, 121, 152, 0.24);
}

.real-sheet__header span:first-child { width: 4.4rem; }
.real-sheet__header span:last-child { width: 2.2rem; background: rgba(180, 219, 24, 0.36); }

.real-sheet__title {
  position: absolute;
  left: 1.28rem;
  top: 2.35rem;
  color: rgba(27, 77, 91, 0.62);
  font: 800 0.66rem/1 var(--font-montserrat, Montserrat, Arial, sans-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.real-sheet__rows {
  position: absolute;
  left: 1.28rem;
  right: 1.28rem;
  top: 4.05rem;
  display: grid;
  gap: 0.66rem;
}

.real-sheet__rows span {
  display: block;
  width: var(--w);
  height: 0.34rem;
  border-radius: 999px;
  background: rgba(34, 93, 108, 0.15);
  box-shadow: 0 1.05rem 0 rgba(34, 93, 108, 0.08);
}

.real-sheet__table {
  position: absolute;
  left: 1.28rem;
  right: 1.28rem;
  bottom: 1.35rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.28rem;
  opacity: 0.74;
}

.real-sheet__table span {
  height: 1.05rem;
  border-radius: 0.18rem;
  background: rgba(56, 121, 152, 0.09);
  border: 1px solid rgba(56, 121, 152, 0.09);
}

.real-sheet--base-1 { transform: translate3d(-58.5%, 5.72rem, 48px) rotateX(63deg) rotateZ(-5deg); opacity: 0.93; }
.real-sheet--base-2 { transform: translate3d(-51%, 5.28rem, 60px) rotateX(63deg) rotateZ(-1.7deg); opacity: 0.97; }
.real-sheet--base-3 { transform: translate3d(-44.2%, 4.82rem, 72px) rotateX(63deg) rotateZ(2.2deg); }

.real-sheet--incoming {
  z-index: 8;
  opacity: 0;
  box-shadow:
    0 1.2rem 2.35rem rgba(2, 31, 42, 0.14),
    0 0.16rem 0.45rem rgba(2, 31, 42, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.96);
}

.real-sheet--top {
  z-index: 11;
  transform-origin: 50% 88%;
  animation: realTopSheet 8.2s cubic-bezier(0.2, 0.78, 0.2, 1) infinite;
}

.real-sheet--incoming-1 { animation: realSheetOne 8.2s cubic-bezier(0.2, 0.78, 0.2, 1) infinite; }
.real-sheet--incoming-2 { animation: realSheetTwo 8.2s cubic-bezier(0.2, 0.78, 0.2, 1) infinite; }
.real-sheet--incoming-3 { animation: realSheetThree 8.2s cubic-bezier(0.2, 0.78, 0.2, 1) infinite; }

.real-paper-scene__clip {
  position: absolute;
  left: 50%;
  top: 46.5%;
  z-index: 13;
  width: 5.5rem;
  height: 1.15rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.45), transparent 38%),
    linear-gradient(90deg, #d1d8d7 0%, #f7fbfb 25%, #9caeae 64%, #e9eeee 100%);
  box-shadow:
    0 0.75rem 1.25rem rgba(3, 34, 44, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.86),
    inset 0 -2px 0 rgba(71,89,92,0.1);
  transform-origin: center;
  animation: realClip 8.2s cubic-bezier(0.2, 0.78, 0.2, 1) infinite;
}

.real-paper-scene__clip span {
  position: absolute;
  inset: 0.28rem 0.48rem;
  border-radius: inherit;
  border: 1px solid rgba(71, 94, 98, 0.22);
  border-left-color: rgba(255,255,255,0.72);
}

.real-paper-scene__stamp {
  position: absolute;
  right: 4.45rem;
  bottom: 8.95rem;
  z-index: 14;
  display: grid;
  place-items: center;
  width: 4.85rem;
  height: 4.85rem;
  border-radius: 50%;
  color: rgba(37, 113, 96, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background:
    radial-gradient(circle, rgba(255,255,255,0.16), transparent 58%),
    rgba(180, 219, 24, 0.08);
  border: 0.28rem solid rgba(40, 129, 107, 0.33);
  box-shadow: inset 0 0 0 1px rgba(40,129,107,0.23), 0 0.8rem 1.5rem rgba(3,34,44,0.11);
  transform-origin: center;
  animation: realStamp 8.2s cubic-bezier(0.2, 0.78, 0.2, 1) infinite;
}

.real-paper-scene__stamp span {
  display: block;
  font: 900 1.08rem/1 var(--font-montserrat, Montserrat, Arial, sans-serif);
}

.real-paper-scene__stamp small {
  display: block;
  margin-top: -1.45rem;
  font: 800 0.46rem/1 var(--font-montserrat, Montserrat, Arial, sans-serif);
}

.real-paper-scene--sign .real-sheet--base-1 { animation: realFanOne 8s ease-in-out infinite; }
.real-paper-scene--sign .real-sheet--base-2 { animation: realFanTwo 8s ease-in-out infinite; }
.real-paper-scene--sign .real-sheet--base-3 { animation: realFanThree 8s ease-in-out infinite; }
.real-paper-scene--sign .real-sheet--top { animation-name: realSignTop; }
.real-paper-scene--sign .real-paper-scene__stamp { animation-name: realSignStamp; }

.real-paper-scene--registry .real-sheet--incoming-1,
.real-paper-scene--registry .real-sheet--incoming-2,
.real-paper-scene--registry .real-sheet--incoming-3 {
  animation-name: realRegistrySheet;
}
.real-paper-scene--registry .real-sheet--incoming-1 { animation-delay: 0s; --lane: -3.2rem; --rot: -4deg; }
.real-paper-scene--registry .real-sheet--incoming-2 { animation-delay: 0.23s; --lane: -1.05rem; --rot: 0deg; }
.real-paper-scene--registry .real-sheet--incoming-3 { animation-delay: 0.46s; --lane: 1.2rem; --rot: 4deg; }

.real-paper-scene--fall .real-sheet--incoming-1 { animation-name: realDropOne; }
.real-paper-scene--fall .real-sheet--incoming-2 { animation-name: realDropTwo; }
.real-paper-scene--fall .real-sheet--incoming-3 { animation-name: realDropThree; }
.real-paper-scene--fall .real-sheet--top { animation-name: realDropTop; }

@keyframes realSheetOne {
  0%, 8% { opacity: 0; transform: translate3d(-96%, -4.2rem, 138px) rotateX(2deg) rotateY(8deg) rotateZ(-13deg) scale(0.88); }
  24%, 42% { opacity: 0.96; transform: translate3d(-77%, -1.25rem, 116px) rotateX(1deg) rotateY(3deg) rotateZ(-7deg) scale(0.96); }
  62%, 90% { opacity: 0.92; transform: translate3d(-57%, 4.3rem, 78px) rotateX(63deg) rotateZ(-4deg) scale(0.995); }
  100% { opacity: 0; transform: translate3d(-57%, 4.76rem, 74px) rotateX(63deg) rotateZ(-4deg) scale(0.985); }
}

@keyframes realSheetTwo {
  0%, 18% { opacity: 0; transform: translate3d(-30%, -5.05rem, 152px) rotateX(2deg) rotateY(-7deg) rotateZ(10deg) scale(0.86); }
  34%, 52% { opacity: 0.96; transform: translate3d(-38%, -1.75rem, 124px) rotateX(1deg) rotateY(-2deg) rotateZ(4deg) scale(0.96); }
  70%, 92% { opacity: 0.91; transform: translate3d(-49%, 4.05rem, 88px) rotateX(63deg) rotateZ(0.6deg) scale(0.995); }
  100% { opacity: 0; transform: translate3d(-49%, 4.45rem, 84px) rotateX(63deg) rotateZ(0.6deg) scale(0.985); }
}

@keyframes realSheetThree {
  0%, 29% { opacity: 0; transform: translate3d(28%, -4.35rem, 144px) rotateX(2deg) rotateY(-9deg) rotateZ(14deg) scale(0.88); }
  46%, 64% { opacity: 0.93; transform: translate3d(0%, -1.15rem, 118px) rotateX(1deg) rotateY(-3deg) rotateZ(7deg) scale(0.96); }
  78%, 94% { opacity: 0.86; transform: translate3d(-41%, 3.78rem, 96px) rotateX(63deg) rotateZ(3.6deg) scale(0.995); }
  100% { opacity: 0; transform: translate3d(-41%, 4.18rem, 92px) rotateX(63deg) rotateZ(3.6deg) scale(0.985); }
}

@keyframes realTopSheet {
  0%, 42% { opacity: 0; transform: translate3d(-51%, -5.7rem, 166px) rotateX(0deg) rotateY(0deg) rotateZ(1deg) scale(0.88); }
  58%, 72% { opacity: 1; transform: translate3d(-47%, -1.45rem, 132px) rotateX(1.5deg) rotateZ(1deg) scale(0.96); }
  86%, 96% { opacity: 1; transform: translate3d(-44.2%, 3.48rem, 108px) rotateX(63deg) rotateZ(2.6deg) scale(1); }
  100% { opacity: 0; transform: translate3d(-44.2%, 3.84rem, 104px) rotateX(63deg) rotateZ(2.6deg) scale(0.985); }
}

@keyframes realClip {
  0%, 63% { opacity: 0; transform: translate3d(-50%, 1.6rem, 152px) rotateX(42deg) rotateZ(-4deg) scale(0.84); }
  76%, 94% { opacity: 1; transform: translate3d(-50%, 3.95rem, 128px) rotateX(63deg) rotateZ(2deg) scale(1); }
  100% { opacity: 0; transform: translate3d(-50%, 4.25rem, 128px) rotateX(63deg) rotateZ(2deg) scale(0.96); }
}

@keyframes realStamp {
  0%, 70% { opacity: 0; transform: translate3d(0.7rem, -1.05rem, 150px) rotate(-9deg) scale(0.86); }
  80% { opacity: 1; transform: translate3d(-0.02rem, 0, 150px) rotate(4deg) scale(1.08); }
  84%, 94% { opacity: 0.92; transform: translate3d(-0.02rem, 0, 150px) rotate(4deg) scale(1); }
  100% { opacity: 0; transform: translate3d(0.08rem, 0.35rem, 150px) rotate(4deg) scale(0.95); }
}

@keyframes realAmbient { 0%, 100% { opacity: 0.68; transform: translateZ(-80px) scale(0.96); } 55%, 78% { opacity: 0.92; transform: translateZ(-80px) scale(1.04); } }
@keyframes realShadow { 0%, 100% { opacity: 0.72; transform: rotateX(64deg) translateZ(-70px) scaleX(0.94); } 70%, 92% { opacity: 0.94; transform: rotateX(64deg) translateZ(-70px) scaleX(1.04); } }

@keyframes realFanOne { 0%, 16%, 100% { transform: translate3d(-58.5%, 5.72rem, 48px) rotateX(63deg) rotateZ(-5deg); } 36%, 62% { transform: translate3d(-67%, 0.6rem, 118px) rotateX(5deg) rotateZ(-12deg); } }
@keyframes realFanTwo { 0%, 16%, 100% { transform: translate3d(-51%, 5.28rem, 60px) rotateX(63deg) rotateZ(-1.7deg); } 36%, 62% { transform: translate3d(-51%, 0.15rem, 126px) rotateX(4deg) rotateZ(-2deg); } }
@keyframes realFanThree { 0%, 16%, 100% { transform: translate3d(-44.2%, 4.82rem, 72px) rotateX(63deg) rotateZ(2.2deg); } 36%, 62% { transform: translate3d(-35%, 0.6rem, 118px) rotateX(5deg) rotateZ(9deg); } }
@keyframes realSignTop { 0%, 16%, 100% { transform: translate3d(-44.2%, 3.48rem, 108px) rotateX(63deg) rotateZ(2.6deg); } 36%, 62% { transform: translate3d(-43%, -0.2rem, 140px) rotateX(4deg) rotateZ(2deg); } }
@keyframes realSignStamp { 0%, 48% { opacity: 0; transform: translate3d(-1.2rem, -0.6rem, 150px) rotate(-13deg) scale(0.86); } 62%, 86% { opacity: 0.92; transform: translate3d(-0.45rem, 0.22rem, 150px) rotate(-5deg) scale(0.98); } 100% { opacity: 0; transform: translate3d(-0.25rem, 0.5rem, 150px) rotate(-5deg) scale(0.94); } }

@keyframes realRegistrySheet {
  0%, 12% { opacity: 0; transform: translate3d(48%, var(--lane), 140px) rotateX(2deg) rotateZ(var(--rot)) scale(0.92); }
  32%, 52% { opacity: 0.96; transform: translate3d(-12%, var(--lane), 132px) rotateX(2deg) rotateZ(calc(var(--rot) / 2)) scale(1); }
  72%, 92% { opacity: 0.9; transform: translate3d(-48%, 4.1rem, 92px) rotateX(63deg) rotateZ(1.5deg) scale(0.995); }
  100% { opacity: 0; transform: translate3d(-48%, 4.48rem, 88px) rotateX(63deg) rotateZ(1.5deg) scale(0.985); }
}

@keyframes realDropOne { 0%, 8% { opacity: 0; transform: translate3d(-105%, -7.4rem, 170px) rotateX(1deg) rotateY(7deg) rotateZ(-12deg) scale(0.84); } 28%, 44% { opacity: .95; transform: translate3d(-76%, -2.4rem, 132px) rotateX(2deg) rotateZ(-6deg) scale(.94); } 66%, 92% { opacity: .9; transform: translate3d(-58%, 4.3rem, 78px) rotateX(63deg) rotateZ(-4deg) scale(.995); } 100% { opacity: 0; transform: translate3d(-58%, 4.7rem, 74px) rotateX(63deg) rotateZ(-4deg) scale(.985); } }
@keyframes realDropTwo { 0%, 18% { opacity: 0; transform: translate3d(-26%, -8.1rem, 180px) rotateX(1deg) rotateY(-5deg) rotateZ(9deg) scale(0.84); } 38%, 54% { opacity: .95; transform: translate3d(-37%, -2.7rem, 138px) rotateX(2deg) rotateZ(4deg) scale(.94); } 72%, 94% { opacity: .9; transform: translate3d(-49%, 4.05rem, 88px) rotateX(63deg) rotateZ(.6deg) scale(.995); } 100% { opacity: 0; transform: translate3d(-49%, 4.45rem, 84px) rotateX(63deg) rotateZ(.6deg) scale(.985); } }
@keyframes realDropThree { 0%, 29% { opacity: 0; transform: translate3d(38%, -7.35rem, 172px) rotateX(1deg) rotateY(-8deg) rotateZ(14deg) scale(0.84); } 49%, 65% { opacity: .92; transform: translate3d(4%, -1.9rem, 128px) rotateX(2deg) rotateZ(7deg) scale(.94); } 80%, 95% { opacity: .85; transform: translate3d(-41%, 3.78rem, 96px) rotateX(63deg) rotateZ(3.6deg) scale(.995); } 100% { opacity: 0; transform: translate3d(-41%, 4.18rem, 92px) rotateX(63deg) rotateZ(3.6deg) scale(.985); } }
@keyframes realDropTop { 0%, 40% { opacity: 0; transform: translate3d(-51%, -8.6rem, 190px) rotateX(0deg) rotateZ(1deg) scale(.84); } 58%, 72% { opacity: 1; transform: translate3d(-47%, -1.8rem, 142px) rotateX(1.5deg) rotateZ(1deg) scale(.95); } 88%, 97% { opacity: 1; transform: translate3d(-44.2%, 3.48rem, 108px) rotateX(63deg) rotateZ(2.6deg) scale(1); } 100% { opacity: 0; transform: translate3d(-44.2%, 3.84rem, 104px) rotateX(63deg) rotateZ(2.6deg) scale(.985); } }

@media (max-width: 1180px) {
  #top > .relative.mx-auto {
    grid-template-columns: minmax(0, 1fr) !important;
    width: min(54rem, calc(100vw - 2rem)) !important;
    max-width: min(54rem, calc(100vw - 2rem)) !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .real-paper-stage {
    width: min(100%, 34rem);
    min-height: 29rem;
    margin: 0.8rem auto 0;
  }
}

@media (max-width: 760px) {
  #top {
    padding-top: calc(env(safe-area-inset-top, 0px) + 4.5rem) !important;
  }
  #top > .relative.mx-auto {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: min(100%, calc(100vw - 1.5rem)) !important;
    max-width: calc(100vw - 1.5rem) !important;
    padding: 1.35rem 0 2.2rem !important;
  }
  #top > .relative.mx-auto > :not(.real-paper-stage) { order: 1; }
  .real-paper-stage {
    order: 2;
    width: min(100%, 21rem);
    min-height: 17rem;
    margin: 1rem auto 0;
  }
  .real-paper-scene {
    width: 24rem;
    height: 20rem;
    transform: scale(0.66) rotateX(var(--my)) rotateY(var(--mx));
    transform-origin: top center;
  }
  .real-paper-scene__edge,
  .real-sheet {
    width: 12rem;
    height: 15.7rem;
  }
  .real-paper-scene__stamp {
    right: 4.1rem;
    bottom: 7.6rem;
    width: 4rem;
    height: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .real-paper-scene *,
  .real-paper-scene::before,
  .real-paper-scene::after {
    animation: none !important;
  }
  .real-sheet--incoming { display: none; }
  .real-sheet--top { opacity: 1; transform: translate3d(-44.2%, 3.48rem, 108px) rotateX(63deg) rotateZ(2.6deg); }
  .real-paper-scene__clip { opacity: 1; transform: translate3d(-50%, 3.95rem, 128px) rotateX(63deg) rotateZ(2deg); }
  .real-paper-scene__stamp { opacity: 0.92; transform: translate3d(-0.02rem, 0, 150px) rotate(4deg) scale(1); }
}

/* === v5 photorealistic paper-stack animation: raster paper assets + natural motion === */
.photo-paper-stage {
  position: absolute;
  top: 50%;
  right: clamp(1rem, 5vw, 4.8rem);
  z-index: 0;
  width: min(42vw, 34rem);
  height: min(45vw, 35rem);
  transform: translateY(-46%);
  pointer-events: none;
  perspective: 1600px;
  contain: layout paint;
}

.photo-paper-scene {
  --mx: 0deg;
  --my: 0deg;
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(58deg + var(--my))) rotateZ(calc(-7deg + var(--mx))) translate3d(0, 0, 0);
  filter: drop-shadow(0 34px 42px rgba(2, 17, 23, .28));
  animation: photoSceneBreath 7.8s ease-in-out infinite;
}

.photo-paper-scene__light {
  position: absolute;
  left: 8%;
  top: 0;
  width: 82%;
  height: 82%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(180,219,24,.25), rgba(56,121,152,.16) 34%, transparent 68%);
  transform: translate3d(4%, -6%, -80px) rotateX(-58deg);
  filter: blur(20px);
  opacity: .85;
}

.photo-paper-scene__desk-shadow {
  position: absolute;
  left: 50%;
  top: 72%;
  width: 80%;
  height: 22%;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(0, 15, 22, .44), rgba(0, 15, 22, .18) 42%, transparent 72%);
  transform: translate3d(-50%, -50%, -100px) rotateX(-58deg);
  filter: blur(15px);
  animation: photoShadow 7.8s ease-in-out infinite;
}

.photo-paper-scene__thickness {
  position: absolute;
  left: 50%;
  top: 53%;
  width: 58%;
  height: 4.8%;
  border-radius: 0 0 1.2rem 1.2rem;
  background: linear-gradient(90deg, rgba(197,205,204,.82), rgba(255,255,255,.74), rgba(174,187,190,.86));
  box-shadow: inset 0 -8px 14px rgba(38, 63, 72, .18), 0 8px 22px rgba(0,0,0,.12);
  transform-origin: center;
  opacity: .92;
}
.photo-paper-scene__thickness--one { transform: translate3d(-49%, 6.05rem, 4px) rotateZ(-3deg); }
.photo-paper-scene__thickness--two { transform: translate3d(-48%, 6.72rem, 2px) rotateZ(2deg); width: 55%; opacity: .74; }

.photo-doc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(68%, 23.5rem);
  height: auto;
  transform-origin: 50% 62%;
  will-change: transform, opacity, filter;
  user-select: none;
  -webkit-user-drag: none;
  mix-blend-mode: normal;
}

.photo-doc--base-1 {
  transform: translate3d(-54%, -49%, 18px) rotateZ(-8.2deg);
  opacity: .96;
  animation: photoBaseOne 7.8s cubic-bezier(.21,.85,.2,1) infinite;
}
.photo-doc--base-2 {
  transform: translate3d(-50%, -50%, 34px) rotateZ(-2.7deg);
  opacity: .98;
  animation: photoBaseTwo 7.8s cubic-bezier(.21,.85,.2,1) infinite;
}
.photo-doc--base-3 {
  transform: translate3d(-46%, -50%, 50px) rotateZ(3.8deg);
  opacity: .99;
  animation: photoBaseThree 7.8s cubic-bezier(.21,.85,.2,1) infinite;
}
.photo-doc--moving-1 {
  z-index: 4;
  animation: photoSheetSlideOne 7.8s cubic-bezier(.18,.86,.18,1) infinite;
}
.photo-doc--moving-2 {
  z-index: 5;
  animation: photoSheetSlideTwo 7.8s cubic-bezier(.18,.86,.18,1) infinite;
}
.photo-doc--top {
  z-index: 6;
  animation: photoTopSettle 7.8s cubic-bezier(.18,.9,.15,1) infinite;
}

.photo-paper-scene__clip {
  position: absolute;
  left: 39%;
  top: 14%;
  width: 18%;
  z-index: 8;
  transform-origin: center;
  opacity: 0;
  animation: photoClipIn 7.8s ease-in-out infinite;
  filter: drop-shadow(0 9px 10px rgba(0,0,0,.22));
}

.photo-paper-scene__stamp {
  position: absolute;
  left: 51%;
  top: 54%;
  width: 28%;
  z-index: 9;
  transform-origin: center;
  opacity: 0;
  mix-blend-mode: multiply;
  animation: photoStampIn 7.8s cubic-bezier(.18,.92,.18,1) infinite;
  filter: blur(.15px) drop-shadow(0 2px 2px rgba(0,0,0,.08));
}

@keyframes photoSceneBreath {
  0%, 100% { transform: rotateX(calc(58deg + var(--my))) rotateZ(calc(-7deg + var(--mx))) translate3d(0, 0, 0); }
  50% { transform: rotateX(calc(59.2deg + var(--my))) rotateZ(calc(-6.1deg + var(--mx))) translate3d(.15rem, -.28rem, 0); }
}
@keyframes photoShadow { 0%,100% { opacity: .92; transform: translate3d(-50%, -50%, -100px) rotateX(-58deg) scale(.96); } 50% { opacity: .7; transform: translate3d(-50%, -50%, -100px) rotateX(-58deg) scale(1.05); } }
@keyframes photoBaseOne { 0% { transform: translate3d(-70%, -70%, 0px) rotateZ(-17deg); opacity: 0; filter: blur(2px); } 12%,100% { transform: translate3d(-54%, -49%, 18px) rotateZ(-8.2deg); opacity: .96; filter: blur(0); } 16% { transform: translate3d(-55%, -50%, 18px) rotateZ(-8.8deg); } }
@keyframes photoBaseTwo { 0%,8% { transform: translate3d(-28%, -78%, 8px) rotateZ(11deg); opacity: 0; filter: blur(2px); } 22%,100% { transform: translate3d(-50%, -50%, 34px) rotateZ(-2.7deg); opacity: .98; filter: blur(0); } 26% { transform: translate3d(-49.4%, -50.5%, 34px) rotateZ(-3.3deg); } }
@keyframes photoBaseThree { 0%,16% { transform: translate3d(-70%, -22%, 18px) rotateZ(-18deg); opacity: 0; filter: blur(2px); } 32%,100% { transform: translate3d(-46%, -50%, 50px) rotateZ(3.8deg); opacity: .99; filter: blur(0); } 36% { transform: translate3d(-46.8%, -50.8%, 50px) rotateZ(3.1deg); } }
@keyframes photoSheetSlideOne { 0%,24% { transform: translate3d(-17%, -91%, 76px) rotateZ(18deg) scale(1.02); opacity: 0; filter: blur(2.2px); } 43%,100% { transform: translate3d(-51%, -52%, 68px) rotateZ(-5.6deg) scale(1); opacity: .96; filter: blur(0); } 47% { transform: translate3d(-50.4%, -53%, 68px) rotateZ(-6.3deg); } }
@keyframes photoSheetSlideTwo { 0%,36% { transform: translate3d(-88%, -82%, 88px) rotateZ(-24deg) scale(1.015); opacity: 0; filter: blur(2.4px); } 55%,100% { transform: translate3d(-49%, -51%, 84px) rotateZ(1.9deg) scale(1); opacity: .98; filter: blur(0); } 59% { transform: translate3d(-49.5%, -51.8%, 84px) rotateZ(1.1deg); } }
@keyframes photoTopSettle { 0%,48% { transform: translate3d(-46%, -108%, 140px) rotateZ(14deg) scale(1.04); opacity: 0; filter: blur(2px); } 66% { transform: translate3d(-48%, -52.7%, 114px) rotateZ(-1.3deg) scale(1); opacity: 1; filter: blur(0); } 70% { transform: translate3d(-48.7%, -53.4%, 114px) rotateZ(-2deg) scale(1); } 78%,100% { transform: translate3d(-48%, -52.7%, 114px) rotateZ(-1.3deg) scale(1); opacity: 1; filter: blur(0); } }
@keyframes photoClipIn { 0%,64% { opacity: 0; transform: translate3d(-50%, -80%, 150px) rotateZ(-9deg) scale(.9); } 74%,100% { opacity: .95; transform: translate3d(-50%, -50%, 150px) rotateZ(-7deg) scale(1); } 78% { transform: translate3d(-50%, -48%, 150px) rotateZ(-6deg) scale(1.02); } }
@keyframes photoStampIn { 0%,72% { opacity: 0; transform: translate3d(-50%, -50%, 156px) rotateZ(12deg) scale(1.55); filter: blur(1.1px); } 77% { opacity: .86; transform: translate3d(-50%, -50%, 156px) rotateZ(7deg) scale(.86); filter: blur(.2px); } 84%,100% { opacity: .74; transform: translate3d(-50%, -50%, 156px) rotateZ(7deg) scale(1); filter: blur(.15px); } }

.photo-paper-scene--sign .photo-doc--moving-1 { animation-name: photoSheetSlideTwo; }
.photo-paper-scene--sign .photo-doc--moving-2 { animation-name: photoTopSettle; }
.photo-paper-scene--sign .photo-paper-scene__stamp { animation-delay: .08s; }
.photo-paper-scene--registry .photo-doc--moving-1 { animation-duration: 6.8s; }
.photo-paper-scene--registry .photo-doc--moving-2 { animation-duration: 6.8s; }
.photo-paper-scene--fall .photo-doc--moving-1 { animation-name: photoSheetSlideOne; animation-duration: 6.2s; }
.photo-paper-scene--fall .photo-doc--moving-2 { animation-name: photoSheetSlideTwo; animation-duration: 6.2s; }
.photo-paper-scene--fall .photo-doc--top { animation-name: photoTopSettle; animation-duration: 6.2s; }

@media (min-width: 1024px) {
  #top > .relative.mx-auto > .max-w-3xl { position: relative; z-index: 2; max-width: 48rem; }
  #top > .relative.mx-auto { min-height: 34rem; display: flex; align-items: center; }
}

@media (max-width: 1023px) {
  .photo-paper-stage {
    position: relative;
    top: auto;
    right: auto;
    width: min(90vw, 31rem);
    height: 21rem;
    margin: 2rem auto 0;
    transform: none;
  }
  #top > .relative.mx-auto { display: flex; flex-direction: column; }
  #top > .relative.mx-auto > .max-w-3xl { position: relative; z-index: 2; }
  .photo-paper-scene { transform: rotateX(58deg) rotateZ(-7deg) scale(.92); }
}

@media (max-width: 640px) {
  .photo-paper-stage { width: min(96vw, 25rem); height: 17rem; margin-top: 1.25rem; }
  .photo-paper-scene { transform: rotateX(59deg) rotateZ(-7deg) scale(.78); }
  .photo-paper-scene__stamp { width: 31%; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-paper-scene,
  .photo-paper-scene *,
  .photo-doc { animation: none !important; }
  .photo-doc--base-1 { transform: translate3d(-54%, -49%, 18px) rotateZ(-8.2deg); opacity: .96; }
  .photo-doc--base-2 { transform: translate3d(-50%, -50%, 34px) rotateZ(-2.7deg); opacity: .98; }
  .photo-doc--base-3 { transform: translate3d(-46%, -50%, 50px) rotateZ(3.8deg); opacity: .99; }
  .photo-doc--moving-1 { transform: translate3d(-51%, -52%, 68px) rotateZ(-5.6deg); opacity: .96; }
  .photo-doc--moving-2 { transform: translate3d(-49%, -51%, 84px) rotateZ(1.9deg); opacity: .98; }
  .photo-doc--top { transform: translate3d(-48%, -52.7%, 114px) rotateZ(-1.3deg); opacity: 1; }
  .photo-paper-scene__clip { opacity: .95; transform: translate3d(-50%, -50%, 150px) rotateZ(-7deg); }
  .photo-paper-scene__stamp { opacity: .74; transform: translate3d(-50%, -50%, 156px) rotateZ(7deg); }
}


/* === 3D hero animation with GLB sheet + binder clip models === */
.photo-paper-stage,
.real-paper-stage,
.premium-doc-stage,
.real-paper-scene,
.photo-paper-scene {
  display: none !important;
}

.hero-3d-stage {
  position: relative;
  width: min(100%, 38rem);
  height: clamp(23rem, 37vw, 35rem);
  justify-self: end;
  align-self: center;
  z-index: 1;
  isolation: isolate;
  pointer-events: none;
}

.hero-3d-stage__backdrop,
.hero-3d-stage__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-3d-stage__backdrop {
  background:
    radial-gradient(ellipse at 50% 72%, rgba(5, 19, 26, 0.20), rgba(5, 19, 26, 0.08) 28%, transparent 64%),
    radial-gradient(circle at 60% 18%, rgba(255,255,255,0.22), transparent 28%);
  filter: blur(10px);
}

.hero-3d-stage__glow--one {
  background: radial-gradient(circle at 26% 28%, rgba(180,219,24,0.18), transparent 40%);
  filter: blur(18px);
}

.hero-3d-stage__glow--two {
  background: radial-gradient(circle at 72% 45%, rgba(56,121,152,0.23), transparent 46%);
  filter: blur(24px);
}

.hero-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-3d-stage--failed::after {
  content: "3D animation failed to load";
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  padding: .75rem 1rem;
  border-radius: .85rem;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  text-align: center;
}

@media (min-width: 1024px) {
  #top > .relative.mx-auto {
    grid-template-columns: minmax(0, 47rem) minmax(24rem, 38rem) !important;
    align-items: center !important;
  }

  .hero-3d-stage {
    margin-right: clamp(.2rem, 1.5vw, 1.6rem);
  }
}

@media (max-width: 1023px) {
  #top > .relative.mx-auto {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: auto !important;
  }

  .hero-3d-stage {
    width: min(92vw, 34rem);
    height: clamp(18rem, 58vw, 27rem);
    margin: 1.25rem auto 0;
    align-self: center;
  }
}

@media (max-width: 640px) {
  .hero-3d-stage {
    width: min(96vw, 28rem);
    height: clamp(16rem, 68vw, 23rem);
    margin-top: .9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-3d-stage__glow--one,
  .hero-3d-stage__glow--two {
    filter: blur(14px);
  }
}

/* === Robust fallback if the browser blocks external Three.js modules === */
.hero-3d-stage--failed::after {
  content: none !important;
  display: none !important;
}

.hero-3d-stage--fallback .hero-3d-canvas,
.hero-3d-stage--fallback .hero-3d-stage__backdrop,
.hero-3d-stage--fallback .hero-3d-stage__glow {
  display: none !important;
}

.hero-3d-fallback {
  position: absolute;
  inset: 3% 5% 0;
  perspective: 1100px;
  transform-style: preserve-3d;
  animation: ekomFallbackFloat 6.5s ease-in-out infinite;
}

.hero-3d-fallback__shadow {
  position: absolute;
  left: 50%;
  bottom: 9%;
  width: 58%;
  height: 12%;
  border-radius: 999px;
  background: rgba(5, 22, 30, .22);
  filter: blur(18px);
  transform: translateX(-50%) rotateX(68deg);
}

.hero-3d-fallback__paper {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(68%, 20.5rem);
  aspect-ratio: 0.72;
  border-radius: .28rem;
  background:
    linear-gradient(92deg, rgba(255,255,255,.98), rgba(241,247,247,.94)),
    repeating-linear-gradient(180deg, transparent 0 2.15rem, rgba(56,121,152,.13) 2.15rem 2.24rem);
  box-shadow:
    0 1.2rem 2.5rem rgba(4, 24, 32, .22),
    inset 0 0 0 1px rgba(255,255,255,.85),
    inset 0 -1.5rem 2rem rgba(25, 80, 95, .06);
  transform-origin: 50% 78%;
  transform-style: preserve-3d;
  overflow: hidden;
}

.hero-3d-fallback__paper::before {
  content: "";
  position: absolute;
  inset: 11% 12% 14%;
  background:
    linear-gradient(90deg, #b4db18 0 24%, transparent 24%) 0 0 / 100% .35rem no-repeat,
    linear-gradient(90deg, rgba(56,121,152,.55), rgba(56,121,152,.08)) 0 18% / 82% .22rem no-repeat,
    linear-gradient(90deg, rgba(56,121,152,.18), transparent) 0 32% / 88% .18rem no-repeat,
    linear-gradient(90deg, rgba(56,121,152,.18), transparent) 0 42% / 72% .18rem no-repeat,
    linear-gradient(90deg, rgba(56,121,152,.18), transparent) 0 52% / 86% .18rem no-repeat,
    linear-gradient(90deg, rgba(56,121,152,.18), transparent) 0 62% / 64% .18rem no-repeat,
    linear-gradient(90deg, rgba(56,121,152,.18), transparent) 0 76% / 76% .18rem no-repeat;
  opacity: .82;
}

.hero-3d-fallback__paper::after {
  content: "";
  position: absolute;
  right: -3%;
  top: -2%;
  width: 25%;
  aspect-ratio: 1;
  border-radius: 0 0 0 100%;
  background: radial-gradient(circle at 100% 0, rgba(255,255,255,.92), rgba(229,237,238,.94) 55%, rgba(158,176,180,.32));
  box-shadow: -1rem 1rem 1.8rem rgba(20, 45, 52, .16);
}

.hero-3d-fallback__paper--1 {
  animation: ekomFallbackPaper1 1.35s cubic-bezier(.2,.8,.18,1) both;
}
.hero-3d-fallback__paper--2 {
  animation: ekomFallbackPaper2 1.65s .14s cubic-bezier(.2,.8,.18,1) both;
}
.hero-3d-fallback__paper--3 {
  animation: ekomFallbackPaper3 1.85s .28s cubic-bezier(.2,.8,.18,1) both;
}

.hero-3d-fallback__clip {
  position: absolute;
  left: 50%;
  top: 15%;
  width: 7.2rem;
  height: 4.2rem;
  border: .52rem solid rgba(231,232,226,.96);
  border-bottom-width: .95rem;
  border-radius: 1rem 1rem .55rem .55rem;
  box-shadow: 0 .65rem 1.4rem rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.75);
  transform: translate3d(-50%, -50%, 145px) rotateX(58deg) rotateZ(-3deg);
  animation: ekomFallbackClip 2.1s .65s cubic-bezier(.2,.8,.18,1) both;
}
.hero-3d-fallback__clip::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -.95rem;
  height: .36rem;
  border-radius: 999px;
  background: #b4db18;
}

.hero-3d-fallback__stamp {
  position: absolute;
  left: 59%;
  top: 62%;
  width: 4.6rem;
  height: 4.6rem;
  border: .22rem solid rgba(180,219,24,.78);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(180,219,24,.86);
  font: 900 1.45rem/1 system-ui, -apple-system, Segoe UI, sans-serif;
  letter-spacing: .03em;
  box-shadow: inset 0 0 0 .14rem rgba(56,121,152,.42);
  transform: translate3d(-50%, -50%, 160px) rotateZ(-8deg) scale(.82);
  opacity: 0;
  animation: ekomFallbackStamp .55s 1.85s cubic-bezier(.18,1.4,.32,1) forwards;
}

@keyframes ekomFallbackFloat {
  0%, 100% { transform: rotateX(3deg) rotateY(-4deg) translateY(0); }
  50% { transform: rotateX(4deg) rotateY(-2deg) translateY(-.45rem); }
}
@keyframes ekomFallbackPaper1 {
  from { opacity: 0; transform: translate3d(-72%, -34%, 0) rotateZ(-15deg) rotateX(18deg); }
  to { opacity: 1; transform: translate3d(-53%, -50%, 0) rotateZ(-4.8deg) rotateX(0); }
}
@keyframes ekomFallbackPaper2 {
  from { opacity: 0; transform: translate3d(-30%, -80%, 60px) rotateZ(15deg) rotateX(20deg); }
  to { opacity: 1; transform: translate3d(-50%, -52%, 45px) rotateZ(1.7deg) rotateX(0); }
}
@keyframes ekomFallbackPaper3 {
  from { opacity: 0; transform: translate3d(-54%, -96%, 110px) rotateZ(8deg) rotateX(18deg); }
  to { opacity: 1; transform: translate3d(-49%, -54%, 88px) rotateZ(-1.2deg) rotateX(0); }
}
@keyframes ekomFallbackClip {
  from { opacity: 0; transform: translate3d(-50%, -92%, 170px) rotateX(58deg) rotateZ(-8deg) scale(.88); }
  to { opacity: 1; transform: translate3d(-50%, -50%, 145px) rotateX(58deg) rotateZ(-3deg) scale(1); }
}
@keyframes ekomFallbackStamp {
  to { opacity: .78; transform: translate3d(-50%, -50%, 160px) rotateZ(-8deg) scale(1); }
}

/* === Premium 3D refinement: softer composition, real shadow catcher, no circle shadow === */
.hero-3d-stage {
  width: min(100%, 40.5rem) !important;
  height: clamp(25rem, 39vw, 36rem) !important;
  overflow: visible !important;
}

.hero-3d-stage__backdrop {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0) 36%),
    radial-gradient(ellipse at 54% 50%, rgba(255,255,255,0.13), rgba(255,255,255,0.035) 42%, transparent 70%) !important;
  filter: blur(18px) !important;
  opacity: .78 !important;
}

.hero-3d-stage__glow--one {
  background: radial-gradient(ellipse at 30% 26%, rgba(180,219,24,0.14), transparent 46%) !important;
  filter: blur(24px) !important;
  opacity: .88 !important;
}

.hero-3d-stage__glow--two {
  background: radial-gradient(ellipse at 74% 58%, rgba(56,121,152,0.18), transparent 52%) !important;
  filter: blur(30px) !important;
  opacity: .9 !important;
}

.hero-3d-canvas {
  filter: saturate(1.04) contrast(1.015) drop-shadow(0 1.4rem 2.6rem rgba(0, 18, 26, .10));
}

@media (min-width: 1024px) {
  .hero-3d-stage {
    transform: translateX(.35rem) translateY(-.25rem);
  }
}

@media (max-width: 1023px) {
  .hero-3d-stage {
    height: clamp(20rem, 62vw, 30rem) !important;
    margin-top: 1.4rem !important;
  }
}

/* refined fallback also loses the old circular shadow */
.hero-3d-fallback__shadow {
  width: 68% !important;
  height: 15% !important;
  border-radius: 38% 58% 44% 52% !important;
  background:
    radial-gradient(ellipse at 48% 48%, rgba(4,20,28,.22), rgba(4,20,28,.10) 54%, transparent 76%) !important;
  filter: blur(24px) !important;
  transform: translateX(-50%) rotateX(68deg) rotateZ(-7deg) !important;
}

/* === Hero animation switcher + alternate premium variants === */
.hero-variant-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-3d-stage--dom-mode .hero-3d-canvas {
  opacity: 0 !important;
  visibility: hidden !important;
}

.hero-3d-stage--dom-mode.hero-3d-stage--fallback .hero-variant-layer {
  visibility: visible;
}

.hero-3d-stage--sheets-mode .hero-variant-layer {
  pointer-events: none;
}

.doc-animation-switcher {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center;
  grid-column: 1 / -1;
  justify-self: center;
  gap: 0.5rem !important;
  width: min(100%, 36rem) !important;
  margin: 0.75rem auto 0 !important;
  padding: 0.65rem !important;
  border-radius: 1.2rem !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 1rem 2rem rgba(4, 22, 31, 0.08) !important;
  position: relative;
  z-index: 2;
}

.doc-animation-switcher__label {
  flex: 0 0 100%;
  margin-bottom: 0.05rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.doc-animation-switcher button {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.1) !important;
  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.92) !important;
  min-width: 6.65rem !important;
  min-height: 2.5rem !important;
  padding: 0.6rem 0.85rem !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
  cursor: pointer;
}

.doc-animation-switcher button:hover,
.doc-animation-switcher button.is-active {
  background: linear-gradient(135deg, rgba(180,219,24,0.24), rgba(56,121,152,0.22)) !important;
  border-color: rgba(180,219,24,0.44) !important;
  box-shadow: 0 0.9rem 1.6rem rgba(10, 34, 42, 0.18) !important;
  transform: translateY(-1px);
}

.doc-animation-switcher__mobile {
  display: none;
}

.hero-variant {
  position: absolute;
  inset: 0;
  isolation: isolate;
}

.hero-variant__shadow {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 56%;
  height: 13%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(4,20,28,.24), rgba(4,20,28,.12) 48%, transparent 74%);
  filter: blur(20px);
}

/* Scene: construction object + document */
.hero-variant--scene {
  animation: ekomVariantFloat 8s ease-in-out infinite;
}

.scene-floor {
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: 66%;
  height: 6%;
  transform: translateX(-50%) skewX(-14deg);
  border-radius: 1rem;
  background: linear-gradient(90deg, rgba(56,121,152,0.18), rgba(180,219,24,0.20), rgba(56,121,152,0.12));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.scene-building {
  position: absolute;
  left: 26%;
  bottom: 25%;
  width: 34%;
  height: 42%;
  border-radius: 1.6rem 1.6rem 1rem 1rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.72), rgba(232,240,243,0.24));
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 1.2rem 2rem rgba(6, 24, 32, 0.16), inset 0 0 0 1px rgba(255,255,255,0.08);
  transform-origin: 50% 100%;
  transform: perspective(700px) rotateX(10deg) rotateY(-14deg);
  overflow: hidden;
  animation: sceneBuildingRise 7.8s cubic-bezier(.22,.72,.18,1) infinite;
}

.scene-building__grid,
.scene-building__tower,
.scene-building__core {
  position: absolute;
}

.scene-building__grid {
  inset: 10% 8% 8%;
  background:
    linear-gradient(rgba(56,121,152,.32) 0 0) 0 100%/100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(56,121,152,.18) 0 2px, transparent 2px 17%),
    repeating-linear-gradient(180deg, rgba(56,121,152,.14) 0 2px, transparent 2px 16%);
  opacity: .88;
}

.scene-building__tower {
  left: 52%;
  bottom: 8%;
  width: 18%;
  height: 74%;
  border-radius: .7rem .7rem .2rem .2rem;
  background: linear-gradient(180deg, rgba(180,219,24,0.5), rgba(180,219,24,0.16));
  box-shadow: 0 0 0 1px rgba(180,219,24,0.25);
}

.scene-building__core {
  left: 14%;
  bottom: 8%;
  width: 28%;
  height: 54%;
  border-radius: .7rem .7rem .2rem .2rem;
  background: linear-gradient(180deg, rgba(56,121,152,0.45), rgba(56,121,152,0.16));
}

.scene-crane {
  position: absolute;
  left: 24%;
  bottom: 49%;
  width: 31%;
  height: 20%;
  border-left: 4px solid rgba(180,219,24,0.72);
  border-top: 4px solid rgba(180,219,24,0.72);
  transform-origin: 0 100%;
  animation: sceneCraneSway 7.8s ease-in-out infinite;
}

.scene-crane::after,
.scene-crane span {
  content: "";
  position: absolute;
}

.scene-crane::after {
  right: 7%;
  top: 2px;
  width: 2px;
  height: 58%;
  background: rgba(255,255,255,.52);
}

.scene-crane span {
  right: 1%;
  top: 58%;
  width: .95rem;
  height: .95rem;
  border-radius: .3rem;
  background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(180,219,24,.82));
  box-shadow: 0 .4rem .8rem rgba(8, 25, 33, .18);
}

.scene-doc {
  position: absolute;
  right: 18%;
  bottom: 25%;
  width: 33%;
  height: 48%;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,247,248,.92));
  box-shadow: 0 1.4rem 2.4rem rgba(6, 24, 32, .18), inset 0 0 0 1px rgba(255,255,255,.88);
  transform-origin: 50% 100%;
  overflow: hidden;
  animation: sceneDocReveal 7.8s cubic-bezier(.22,.72,.18,1) infinite;
}

.scene-doc::before {
  content: "";
  position: absolute;
  inset: 9% 10% auto;
  height: .38rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #387998, #b4db18);
}

.scene-doc__lines {
  position: absolute;
  inset: 22% 10% 12%;
  background:
    linear-gradient(90deg, rgba(56,121,152,.16), transparent 72%) 0 0/100% .24rem no-repeat,
    linear-gradient(90deg, rgba(56,121,152,.16), transparent 82%) 0 18%/100% .2rem no-repeat,
    linear-gradient(90deg, rgba(56,121,152,.16), transparent 65%) 0 34%/100% .2rem no-repeat,
    linear-gradient(90deg, rgba(56,121,152,.16), transparent 88%) 0 54%/100% .2rem no-repeat,
    linear-gradient(90deg, rgba(56,121,152,.16), transparent 58%) 0 72%/100% .2rem no-repeat;
}

.scene-doc__seal {
  position: absolute;
  right: 11%;
  bottom: 10%;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: .18rem solid rgba(180,219,24,.72);
  box-shadow: inset 0 0 0 .12rem rgba(56,121,152,.3);
  color: rgba(180,219,24,.82);
  display: grid;
  place-items: center;
  font: 900 1rem/1 system-ui, sans-serif;
  letter-spacing: .04em;
}

.scene-doc__badge,
.scene-chip,
.permit-badge,
.premium-folder__hint {
  color: #f8fbfb;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .02em;
  background: linear-gradient(135deg, rgba(56,121,152,.88), rgba(37,79,98,.92));
  box-shadow: 0 .8rem 1.4rem rgba(6, 24, 32, .16);
  border: 1px solid rgba(255,255,255,.16);
}

.scene-doc__badge {
  position: absolute;
  left: 10%;
  bottom: 12%;
  padding: .38rem .58rem;
  border-radius: 999px;
}

.scene-chip {
  position: absolute;
  padding: .45rem .7rem;
  border-radius: 999px;
  animation: sceneChipFloat 5.4s ease-in-out infinite;
}

.scene-chip--one { left: 13%; top: 16%; }
.scene-chip--two { right: 12%; top: 17%; animation-delay: .6s; }
.scene-chip--three { right: 10%; bottom: 18%; animation-delay: 1.1s; }

/* Blueprint -> permit */
.hero-variant--blueprint {
  animation: ekomVariantFloat 8.6s ease-in-out infinite;
}

.blueprint-board,
.blueprint-permit {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
}

.blueprint-board {
  width: 54%;
  height: 64%;
  transform: translate(-58%, -52%) rotate(-8deg);
  border-radius: 1.2rem;
  background: linear-gradient(155deg, rgba(23,74,98,.94), rgba(11,46,66,.92));
  box-shadow: 0 1.3rem 2.5rem rgba(6, 24, 32, .22);
  overflow: hidden;
  animation: blueprintBoardPulse 8.4s cubic-bezier(.18,.72,.18,1) infinite;
}

.blueprint-board__grid,
.blueprint-board__plan,
.blueprint-board__measure,
.blueprint-permit__lines {
  position: absolute;
}

.blueprint-board__grid {
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 12%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.08) 0 1px, transparent 1px 12%);
}

.blueprint-board__plan {
  inset: 16% 14% 18%;
  border: 2px solid rgba(180,219,24,.75);
  border-radius: .4rem;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.08);
}

.blueprint-board__plan::before,
.blueprint-board__plan::after,
.blueprint-board__measure::before,
.blueprint-board__measure::after {
  content: "";
  position: absolute;
}

.blueprint-board__plan::before {
  left: 17%; top: 16%; width: 38%; height: 26%;
  border: 2px solid rgba(255,255,255,.78);
}

.blueprint-board__plan::after {
  right: 12%; bottom: 18%; width: 28%; height: 22%;
  border: 2px solid rgba(255,255,255,.78);
}

.blueprint-board__measure {
  inset: 12% 9%;
}

.blueprint-board__measure::before {
  left: 10%; bottom: 6%; width: 62%; height: 2px; background: rgba(255,255,255,.68);
}
.blueprint-board__measure::after {
  right: 10%; top: 8%; width: 2px; height: 48%; background: rgba(255,255,255,.68);
}

.blueprint-permit {
  width: 47%;
  height: 61%;
  padding: 1.25rem 1.1rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(244,248,249,.95));
  box-shadow: 0 1.6rem 2.7rem rgba(6,24,32,.22), inset 0 0 0 1px rgba(255,255,255,.86);
  transform: translate(-38%, -46%) rotate(6deg) scale(.82);
  opacity: 0;
  animation: blueprintPermitMorph 8.4s cubic-bezier(.18,.72,.18,1) infinite;
}

.blueprint-permit__title {
  color: #387998;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.1;
}

.blueprint-permit__meta {
  margin-top: .45rem;
  color: rgba(47,65,72,.72);
  font-size: .76rem;
  line-height: 1.35;
}

.blueprint-permit__lines {
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1rem;
  top: 4.9rem;
  background:
    linear-gradient(90deg, rgba(56,121,152,.14), transparent 70%) 0 0/100% .22rem no-repeat,
    linear-gradient(90deg, rgba(56,121,152,.14), transparent 82%) 0 14%/100% .2rem no-repeat,
    linear-gradient(90deg, rgba(56,121,152,.14), transparent 64%) 0 28%/100% .2rem no-repeat,
    linear-gradient(90deg, rgba(56,121,152,.14), transparent 88%) 0 45%/100% .2rem no-repeat,
    linear-gradient(90deg, rgba(56,121,152,.14), transparent 74%) 0 63%/100% .2rem no-repeat,
    linear-gradient(90deg, rgba(56,121,152,.14), transparent 52%) 0 81%/100% .2rem no-repeat;
}

.blueprint-permit__stamp {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: .18rem solid rgba(180,219,24,.74);
  color: rgba(180,219,24,.84);
  font: 900 1rem/1 system-ui, sans-serif;
  box-shadow: inset 0 0 0 .12rem rgba(56,121,152,.32);
}

.blueprint-pulse {
  position: absolute;
  left: 56%;
  top: 48%;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  border: 1px solid rgba(180,219,24,.18);
  animation: blueprintPulseRing 3.2s ease-out infinite;
}

/* Certificate card */
.hero-variant--card {
  animation: ekomVariantFloat 8.2s ease-in-out infinite;
}

.permit-card-3d {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 60%;
  height: 40%;
  transform: translate(-50%, -50%) perspective(1200px) rotateX(20deg) rotateY(-18deg) rotateZ(-4deg);
  border-radius: 1.6rem;
  background:
    linear-gradient(125deg, rgba(255,255,255,.95), rgba(231,239,242,.72) 42%, rgba(200,220,228,.58)),
    linear-gradient(145deg, rgba(180,219,24,.22), rgba(56,121,152,.16));
  border: 1px solid rgba(255,255,255,.44);
  box-shadow: 0 1.8rem 3.2rem rgba(5,20,28,.2), inset 0 0 0 1px rgba(255,255,255,.38);
  overflow: hidden;
  animation: permitCardTilt 8.6s ease-in-out infinite;
}

.permit-card-3d__shine,
.permit-card-3d__holo {
  position: absolute;
  inset: 0;
}

.permit-card-3d__shine {
  background: linear-gradient(115deg, rgba(255,255,255,.42) 14%, transparent 38%, rgba(255,255,255,.08) 64%, transparent 74%);
  transform: translateX(-100%);
  animation: permitCardShine 4.4s ease-in-out infinite;
}

.permit-card-3d__holo {
  right: 1rem;
  top: .95rem;
  left: auto;
  bottom: auto;
  width: 5.4rem;
  height: 1.05rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(180,219,24,.86), rgba(56,121,152,.86), rgba(255,255,255,.84));
  opacity: .9;
}

.permit-card-3d__brand,
.permit-card-3d__title,
.permit-card-3d__meta,
.permit-card-3d__number,
.permit-card-3d__status,
.permit-card-3d__stamp {
  position: absolute;
  z-index: 2;
}

.permit-card-3d__brand {
  left: 1.35rem;
  top: 1.1rem;
  color: #387998;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: .08em;
}

.permit-card-3d__title {
  left: 1.35rem;
  top: 3rem;
  color: #224552;
  font-size: 1.42rem;
  font-weight: 800;
}

.permit-card-3d__meta {
  left: 1.35rem;
  top: 4.95rem;
  right: 1.35rem;
  color: rgba(47,65,72,.72);
  font-size: .78rem;
  line-height: 1.35;
}

.permit-card-3d__number {
  left: 1.35rem;
  bottom: 1.15rem;
  color: rgba(47,65,72,.72);
  font-size: .82rem;
  letter-spacing: .08em;
}

.permit-card-3d__status {
  right: 1.35rem;
  bottom: 1.22rem;
  padding: .36rem .58rem;
  border-radius: 999px;
  color: #fbfcfb;
  font-size: .7rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(180,219,24,.92), rgba(111,160,10,.92));
}

.permit-card-3d__stamp {
  right: 1.2rem;
  top: 3.1rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: .18rem solid rgba(56,121,152,.32);
  box-shadow: inset 0 0 0 .16rem rgba(180,219,24,.64);
  color: rgba(56,121,152,.82);
  display: grid;
  place-items: center;
  font: 900 1rem/1 system-ui, sans-serif;
  letter-spacing: .03em;
}

.permit-badge {
  position: absolute;
  padding: .46rem .72rem;
  border-radius: 999px;
}

.permit-badge--one { left: 15%; top: 16%; }
.permit-badge--two { right: 14%; bottom: 18%; }

/* Folder dossier */
.hero-variant--folder {
  animation: ekomVariantFloat 8.4s ease-in-out infinite;
}

.premium-folder {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60%;
  height: 52%;
  transform: translate(-50%, -50%) perspective(1100px) rotateX(16deg) rotateY(-15deg) rotateZ(-5deg);
  transform-style: preserve-3d;
  animation: premiumFolderOpen 8.4s cubic-bezier(.18,.72,.18,1) infinite;
}

.premium-folder__back,
.premium-folder__doc,
.premium-folder__tab,
.premium-folder__label,
.premium-folder__clip {
  position: absolute;
}

.premium-folder__back {
  inset: 11% 4% 10% 4%;
  border-radius: 1.2rem 1.2rem 1.4rem 1.4rem;
  background: linear-gradient(155deg, rgba(44,82,98,.96), rgba(26,57,70,.96));
  box-shadow: 0 1.5rem 2.8rem rgba(5,20,28,.22), inset 0 0 0 1px rgba(255,255,255,.06);
}

.premium-folder__tab {
  left: 10%;
  top: 4%;
  width: 28%;
  height: 16%;
  border-radius: 1rem 1rem 0 0;
  background: linear-gradient(180deg, rgba(56,121,152,.92), rgba(39,84,104,.92));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.premium-folder__label {
  left: 14%;
  top: 15%;
  color: rgba(255,255,255,.92);
  font-size: .96rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.premium-folder__doc {
  left: 18%;
  right: 12%;
  top: 18%;
  bottom: 12%;
  border-radius: .9rem;
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(243,247,248,.95));
  box-shadow: 0 1rem 2.1rem rgba(5,20,28,.14), inset 0 0 0 1px rgba(255,255,255,.88);
  overflow: hidden;
  transform: translate3d(0, 12%, 2px);
  animation: folderDocSlide 8.4s cubic-bezier(.18,.72,.18,1) infinite;
}

.premium-folder__doc::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 11%;
  height: .35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #387998, #b4db18);
}

.premium-folder__doc-lines {
  position: absolute;
  inset: 24% 10% 12%;
  background:
    linear-gradient(90deg, rgba(56,121,152,.15), transparent 72%) 0 0/100% .24rem no-repeat,
    linear-gradient(90deg, rgba(56,121,152,.15), transparent 88%) 0 16%/100% .2rem no-repeat,
    linear-gradient(90deg, rgba(56,121,152,.15), transparent 68%) 0 32%/100% .2rem no-repeat,
    linear-gradient(90deg, rgba(56,121,152,.15), transparent 84%) 0 50%/100% .2rem no-repeat,
    linear-gradient(90deg, rgba(56,121,152,.15), transparent 58%) 0 66%/100% .2rem no-repeat,
    linear-gradient(90deg, rgba(56,121,152,.15), transparent 78%) 0 82%/100% .2rem no-repeat;
}

.premium-folder__doc-stamp {
  position: absolute;
  right: 10%;
  bottom: 11%;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  border: .18rem solid rgba(180,219,24,.76);
  display: grid;
  place-items: center;
  color: rgba(180,219,24,.86);
  font: 900 1rem/1 system-ui, sans-serif;
  box-shadow: inset 0 0 0 .12rem rgba(56,121,152,.3);
  transform: scale(.82);
  opacity: 0;
  animation: folderStampLand 8.4s cubic-bezier(.18,.72,.18,1) infinite;
}

.premium-folder__clip {
  right: 7%;
  top: 7%;
  width: 3.2rem;
  height: 2rem;
  border: .34rem solid rgba(232,233,228,.95);
  border-bottom-width: .56rem;
  border-radius: .8rem .8rem .35rem .35rem;
  box-shadow: 0 .7rem 1.1rem rgba(0,0,0,.16);
}

.premium-folder__hint {
  position: absolute;
  right: 14%;
  bottom: 14%;
  padding: .5rem .8rem;
  border-radius: 999px;
}

@keyframes ekomVariantFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-.35rem); }
}

@keyframes sceneBuildingRise {
  0%, 14% { opacity: 0; transform: perspective(700px) rotateX(10deg) rotateY(-14deg) translateY(1.6rem) scale(.9); }
  28%, 68% { opacity: 1; transform: perspective(700px) rotateX(10deg) rotateY(-14deg) translateY(0) scale(1); }
  86%, 100% { opacity: 1; transform: perspective(700px) rotateX(10deg) rotateY(-14deg) translateY(.2rem) scale(.985); }
}

@keyframes sceneDocReveal {
  0%, 12% { opacity: 0; transform: translateY(1.8rem) rotate(6deg) scale(.9); }
  26%, 68% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  84%, 100% { opacity: 1; transform: translateY(.1rem) rotate(-1deg) scale(.99); }
}

@keyframes sceneCraneSway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

@keyframes sceneChipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-.3rem); }
}

@keyframes blueprintBoardPulse {
  0%, 28% { opacity: 1; transform: translate(-58%, -52%) rotate(-8deg) scale(1); }
  44%, 58% { opacity: .34; transform: translate(-60%, -52%) rotate(-11deg) scale(.95); }
  68%, 100% { opacity: .18; transform: translate(-61%, -52%) rotate(-13deg) scale(.92); }
}

@keyframes blueprintPermitMorph {
  0%, 28% { opacity: 0; transform: translate(-38%, -42%) rotate(9deg) scale(.78); }
  46%, 68% { opacity: 1; transform: translate(-42%, -48%) rotate(0deg) scale(1); }
  84%, 100% { opacity: 1; transform: translate(-42%, -48%) rotate(-2deg) scale(.99); }
}

@keyframes blueprintPulseRing {
  0% { transform: translate(-50%, -50%) scale(.6); opacity: 0; }
  40% { opacity: .46; }
  100% { transform: translate(-50%, -50%) scale(1.55); opacity: 0; }
}

@keyframes permitCardTilt {
  0%, 100% { transform: translate(-50%, -50%) perspective(1200px) rotateX(20deg) rotateY(-18deg) rotateZ(-4deg); }
  28% { transform: translate(-50%, -51%) perspective(1200px) rotateX(14deg) rotateY(5deg) rotateZ(0deg); }
  62% { transform: translate(-50%, -49%) perspective(1200px) rotateX(18deg) rotateY(-10deg) rotateZ(3deg); }
}

@keyframes permitCardShine {
  0%, 22% { transform: translateX(-110%); opacity: 0; }
  34%, 56% { transform: translateX(110%); opacity: .85; }
  100% { transform: translateX(110%); opacity: 0; }
}

@keyframes premiumFolderOpen {
  0%, 18% { transform: translate(-50%, -50%) perspective(1100px) rotateX(22deg) rotateY(-18deg) rotateZ(-7deg) scale(.96); }
  38%, 72% { transform: translate(-50%, -50%) perspective(1100px) rotateX(16deg) rotateY(-15deg) rotateZ(-5deg) scale(1); }
  100% { transform: translate(-50%, -50%) perspective(1100px) rotateX(18deg) rotateY(-16deg) rotateZ(-6deg) scale(.985); }
}

@keyframes folderDocSlide {
  0%, 16% { transform: translate3d(0, 18%, 2px); }
  38%, 72% { transform: translate3d(0, -4%, 24px); }
  100% { transform: translate3d(0, 12%, 8px); }
}

@keyframes folderStampLand {
  0%, 42% { opacity: 0; transform: scale(.82); }
  54%, 76% { opacity: .82; transform: scale(1); }
  100% { opacity: .82; transform: scale(.98); }
}

@media (max-width: 1023px) {
  .doc-animation-switcher {
    width: min(100%, 24rem) !important;
    padding: .5rem !important;
  }

  .doc-animation-switcher button {
    flex: 1 1 calc(50% - .5rem) !important;
    min-width: 0 !important;
  }

  .scene-building { left: 20%; width: 38%; }
  .scene-doc { right: 14%; width: 36%; }
  .blueprint-board { width: 62%; height: 66%; }
  .blueprint-permit { width: 52%; height: 62%; }
  .permit-card-3d { width: 72%; height: 43%; }
  .premium-folder { width: 72%; height: 56%; }
}

@media (max-width: 640px) {
  .doc-animation-switcher {
    width: min(100%, 20.5rem) !important;
    margin-top: .55rem !important;
    padding: .44rem !important;
    gap: .42rem !important;
  }

  .doc-animation-switcher__desktop { display: none; }
  .doc-animation-switcher__mobile { display: inline; }

  .doc-animation-switcher button {
    min-height: 2.15rem !important;
    font-size: .68rem !important;
    padding: .5rem .6rem !important;
  }

  .scene-doc__badge,
  .scene-chip,
  .permit-badge,
  .premium-folder__hint {
    font-size: .62rem;
  }

  .scene-building { left: 18%; bottom: 26%; width: 40%; height: 40%; }
  .scene-doc { right: 12%; bottom: 24%; width: 38%; height: 46%; }
  .scene-crane { left: 20%; bottom: 50%; width: 34%; }
  .blueprint-board { width: 66%; height: 66%; }
  .blueprint-permit { width: 56%; height: 60%; padding: 1rem .9rem .85rem; }
  .blueprint-permit__title { font-size: 1rem; }
  .blueprint-permit__meta { font-size: .68rem; }
  .permit-card-3d { width: 80%; height: 44%; border-radius: 1.2rem; }
  .permit-card-3d__brand { left: 1rem; top: .9rem; font-size: .84rem; }
  .permit-card-3d__title { left: 1rem; top: 2.5rem; font-size: 1.12rem; }
  .permit-card-3d__meta { left: 1rem; top: 4rem; right: 1rem; font-size: .66rem; }
  .permit-card-3d__number { left: 1rem; bottom: .95rem; font-size: .66rem; }
  .permit-card-3d__status { right: 1rem; bottom: 1rem; font-size: .58rem; }
  .permit-card-3d__stamp { right: .9rem; top: 2.7rem; width: 3.2rem; height: 3.2rem; font-size: .8rem; }
  .premium-folder { width: 80%; height: 58%; }
  .premium-folder__label { font-size: .82rem; }
  .premium-folder__hint { right: 10%; bottom: 16%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-variant,
  .hero-variant *,
  .hero-3d-fallback,
  .hero-3d-fallback * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

/* === Hero model variants from uploaded GLB === */
.hero-fallback-layer,
.hero-variant-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-model-view {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-model-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-model-status {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9rem;
  max-width: calc(100% - 2rem);
  min-height: 2.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: rgba(255,255,255,.96);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, rgba(15,40,55,.82), rgba(10,30,42,.74));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 1rem 1.8rem rgba(5,20,28,.14);
  backdrop-filter: blur(10px);
}

.hero-model-status.is-loading::before {
  content: '';
  width: 0.95rem;
  height: 0.95rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.22);
  border-top-color: #b4db18;
  animation: heroModelSpin 0.9s linear infinite;
}

.hero-model-status.is-hidden {
  opacity: 0;
}

@keyframes heroModelSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .hero-model-status {
    bottom: 8%;
    min-width: 7.8rem;
    min-height: 2.1rem;
    padding: 0.48rem 0.75rem;
    font-size: 0.68rem;
  }
}

/* Premium presentation for uploaded 3D model variants */
.hero-model-view {
  position: absolute;
  inset: 0;
  overflow: visible;
  background: none;
}

.hero-model-decor,
.hero-model-decor span {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-model-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-model-glow {
  border-radius: 50%;
  filter: blur(34px);
  opacity: 0.85;
}

.hero-model-glow--one {
  inset: 24% auto auto 50%;
  width: 8.8rem;
  height: 8.8rem;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(56,121,152,0.22), rgba(56,121,152,0));
}

.hero-model-glow--two {
  inset: auto auto 17% 54%;
  width: 7.6rem;
  height: 4rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(180,219,24,0.14), rgba(180,219,24,0));
}

.hero-model-tech {
  opacity: 0;
}

.hero-model-view[data-style='hologram'] .hero-model-tech {
  opacity: 0.4;
}

.hero-model-tech--one {
  inset: 18% 30% auto auto;
  width: 4.6rem;
  height: 4.6rem;
  border-top: 1px solid rgba(143,220,255,0.24);
  border-right: 1px solid rgba(143,220,255,0.24);
}

.hero-model-tech--two {
  inset: auto auto 22% 36%;
  width: 5rem;
  height: 3.2rem;
  border-left: 1px solid rgba(143,220,255,0.2);
  border-bottom: 1px solid rgba(143,220,255,0.2);
}

.hero-model-dots {
  inset: 0;
  background-image:
    radial-gradient(circle at 38% 30%, rgba(175,232,255,.35) 0 1px, transparent 1.4px),
    radial-gradient(circle at 64% 38%, rgba(175,232,255,.30) 0 1px, transparent 1.4px),
    radial-gradient(circle at 56% 61%, rgba(175,232,255,.22) 0 1px, transparent 1.4px),
    radial-gradient(circle at 46% 69%, rgba(175,232,255,.18) 0 1px, transparent 1.4px);
  opacity: 0;
}

.hero-model-view[data-style='hologram'] .hero-model-dots {
  opacity: 0.55;
}

.hero-model-scan {
  inset: 20% 34% 18% 36%;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent 0%, rgba(169,232,255,0.22) 50%, transparent 100%);
  opacity: 0;
  transform: translateY(-16%);
}

.hero-model-view[data-style='hologram'] .hero-model-scan {
  opacity: 1;
  animation: heroModelScan 4.6s ease-in-out infinite;
}

.hero-model-view[data-style='original'] .hero-model-glow--one {
  background: radial-gradient(circle, rgba(255,255,255,0.14), rgba(255,255,255,0));
}

.hero-model-view[data-style='original'] .hero-model-glow--two {
  background: radial-gradient(ellipse at center, rgba(180,219,24,0.12), rgba(180,219,24,0));
}

.hero-model-status {
  display: none !important;
}

@keyframes heroModelScan {
  0% { transform: translateY(-18%); opacity: 0; }
  18% { opacity: 0.18; }
  50% { transform: translateY(12%); opacity: 0.34; }
  100% { transform: translateY(20%); opacity: 0; }
}

@media (max-width: 640px) {
  .hero-model-glow--one {
    width: 6.8rem;
    height: 6.8rem;
  }

  .hero-model-glow--two {
    width: 6rem;
    height: 3.2rem;
  }

  .hero-model-tech--one {
    width: 3.4rem;
    height: 3.4rem;
  }

  .hero-model-tech--two {
    width: 3.8rem;
    height: 2.5rem;
  }
}

/* === Final hero: premium video variants, anti-loop presentation === */
.hero-3d-stage.hero-video-stage {
  width: min(100%, 43rem) !important;
  height: clamp(25rem, 41vw, 37rem) !important;
  overflow: visible !important;
  isolation: isolate;
}

.hero-video-stage .hero-3d-canvas,
.hero-video-stage .hero-fallback-layer,
.hero-video-stage .hero-model-view {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.hero-video-stage .hero-variant-layer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  inset: -4% -5% -5% -5%;
  overflow: visible;
  pointer-events: none;
}

.hero-video-shell {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 2.4rem;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.18), transparent 28%),
    radial-gradient(circle at 72% 66%, rgba(180,219,24,.18), transparent 34%),
    linear-gradient(145deg, rgba(39,129,155,.96), rgba(25,92,115,.92));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 2.2rem 5rem rgba(3,25,34,.18);
  transform: translateZ(0);
}

.hero-video-shell::before,
.hero-video-shell::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}

.hero-video-shell::before {
  inset: 8% 7%;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,.16) 45%, transparent 53% 100%);
  mix-blend-mode: screen;
  opacity: .7;
  animation: heroVideoLightSweep 8.6s ease-in-out infinite;
}

.hero-video-shell::after {
  left: 11%;
  right: 11%;
  bottom: 6%;
  height: 14%;
  background: radial-gradient(ellipse at center, rgba(2,15,22,.28), rgba(2,15,22,.12) 44%, transparent 72%);
  filter: blur(20px);
  transform: translateY(20%);
}

.hero-video-frame {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(1.2rem) scale(.985);
  transition: opacity .62s ease, transform .72s cubic-bezier(.2,.8,.2,1), filter .62s ease;
  filter: blur(8px) saturate(.9);
  z-index: 2;
}

.hero-video-frame.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0) saturate(1.04) contrast(1.02);
}

.hero-video-frame video {
  width: 100%;
  height: 100%;
  max-width: 108%;
  max-height: 108%;
  object-fit: contain;
  object-position: center;
  display: block;
  transform-origin: 50% 54%;
  animation: heroVideoFloat 9.5s ease-in-out infinite;
  filter: drop-shadow(0 2rem 2.6rem rgba(0,18,26,.18));
}

.hero-video-stage[data-video-variant="xray"] .hero-video-frame video {
  max-width: 116%;
  max-height: 116%;
  animation-duration: 11s;
}

.hero-video-stage[data-video-variant="docs"] .hero-video-frame video {
  max-width: 112%;
  max-height: 112%;
}

.hero-video-stage[data-video-variant="card"] .hero-video-frame video {
  max-width: 110%;
  max-height: 110%;
  filter: drop-shadow(0 2rem 2.8rem rgba(0,18,26,.24));
}

.hero-video-stage[data-video-variant="construction"] .hero-video-frame video {
  max-width: 108%;
  max-height: 108%;
}

.hero-video-noise,
.hero-video-orbit,
.hero-video-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.hero-video-noise {
  opacity: .14;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255,255,255,.16) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 68%, rgba(255,255,255,.12) 0 1px, transparent 1.5px);
  background-size: 3.2rem 3.2rem, 4.4rem 4.4rem;
  animation: heroVideoNoise 16s linear infinite;
}

.hero-video-orbit {
  inset: 10% 8%;
  border-radius: 2rem;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 2rem rgba(255,255,255,.04);
  transform: rotate(-5deg);
}

.hero-video-scan {
  width: 22%;
  left: -24%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.13), transparent);
  transform: skewX(-16deg);
  animation: heroVideoScan 7.8s ease-in-out infinite;
}

.doc-animation-switcher {
  width: min(100%, 44rem) !important;
  margin-top: 1rem !important;
  backdrop-filter: blur(16px);
}

@keyframes heroVideoFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(.001deg) scale(1); }
  50% { transform: translate3d(0, -0.45rem, 0) rotate(.001deg) scale(1.012); }
}

@keyframes heroVideoLightSweep {
  0%, 100% { transform: translateX(-38%) rotate(0deg); opacity: .24; }
  45%, 55% { opacity: .72; }
  100% { transform: translateX(38%) rotate(0deg); }
}

@keyframes heroVideoScan {
  0%, 22% { transform: translateX(0) skewX(-16deg); opacity: 0; }
  35% { opacity: .5; }
  62% { opacity: 0; }
  100% { transform: translateX(640%) skewX(-16deg); opacity: 0; }
}

@keyframes heroVideoNoise {
  from { background-position: 0 0, 0 0; }
  to { background-position: 3.2rem 6.4rem, -4.4rem 4.4rem; }
}

@media (max-width: 1023px) {
  .hero-3d-stage.hero-video-stage {
    height: clamp(20rem, 72vw, 31rem) !important;
  }
  .hero-video-stage .hero-variant-layer { inset: -2% -4%; }
  .hero-video-shell { border-radius: 1.8rem; }
}

@media (max-width: 640px) {
  .hero-3d-stage.hero-video-stage {
    height: clamp(18rem, 84vw, 27rem) !important;
  }
  .hero-video-stage[data-video-variant="xray"] .hero-video-frame video,
  .hero-video-stage[data-video-variant="docs"] .hero-video-frame video,
  .hero-video-stage[data-video-variant="card"] .hero-video-frame video,
  .hero-video-stage[data-video-variant="construction"] .hero-video-frame video {
    max-width: 124%;
    max-height: 124%;
  }
}


/* === Hero video background cleanup: transparent/hidden backgrounds === */
.hero-video-shell {
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.13), transparent 30%),
    radial-gradient(circle at 78% 72%, rgba(180,219,24,.12), transparent 36%),
    linear-gradient(145deg, #27819b 0%, #1f748d 48%, #27819b 100%) !important;
  overflow: hidden !important;
}

.hero-video-frame {
  overflow: hidden;
  border-radius: inherit;
}

.hero-video-frame video {
  background: transparent !important;
  -webkit-mask-image: radial-gradient(ellipse at 50% 52%, #000 0 62%, rgba(0,0,0,.94) 72%, rgba(0,0,0,.28) 88%, transparent 100%);
  mask-image: radial-gradient(ellipse at 50% 52%, #000 0 62%, rgba(0,0,0,.94) 72%, rgba(0,0,0,.28) 88%, transparent 100%);
}

.hero-video-stage[data-video-variant="xray"] .hero-video-frame video,
.hero-video-stage[data-video-variant="card"] .hero-video-frame video {
  mix-blend-mode: normal;
  filter: drop-shadow(0 2rem 2.8rem rgba(0,18,26,.18)) brightness(1.05) contrast(1.08) saturate(1.06);
}

.hero-video-stage[data-video-variant="docs"] .hero-video-frame video,
.hero-video-stage[data-video-variant="construction"] .hero-video-frame video {
  filter: drop-shadow(0 2rem 2.6rem rgba(0,18,26,.14)) saturate(1.03) contrast(1.02);
}

.hero-video-stage[data-video-variant="docs"] .hero-video-frame::after,
.hero-video-stage[data-video-variant="construction"] .hero-video-frame::after {
  content: '';
  position: absolute;
  right: 3.5%;
  bottom: 3%;
  width: min(12rem, 28%);
  height: min(4.2rem, 13%);
  border-radius: 2rem;
  background: radial-gradient(ellipse at center, rgba(39,129,155,.98), rgba(39,129,155,.82) 54%, rgba(39,129,155,0) 76%);
  filter: blur(2px);
  z-index: 4;
  pointer-events: none;
}

.hero-video-stage[data-video-variant="docs"] .hero-video-frame::after {
  right: 4%;
  bottom: 4%;
  width: min(10rem, 25%);
  height: min(3.6rem, 11%);
}

.hero-video-stage[data-video-variant="construction"] .hero-video-frame::after {
  right: 2%;
  bottom: 2%;
  width: min(16rem, 34%);
  height: min(5rem, 14%);
}

.hero-video-shell::before {
  opacity: .42 !important;
}

/* === 2026 premium hero scene upgrade: layered CGI, masked video, auto-switch friendly === */
.hero-3d-stage.hero-video-stage {
  --hero-mx: 0;
  --hero-my: 0;
  width: min(100%, 46rem) !important;
  height: clamp(27rem, 43vw, 39rem) !important;
  perspective: 1200px;
}

.hero-video-stage .hero-variant-layer {
  transform: rotateX(calc(var(--hero-my) * -2.5deg)) rotateY(calc(var(--hero-mx) * 3.5deg)) translate3d(calc(var(--hero-mx) * .35rem), calc(var(--hero-my) * .25rem), 0);
  transition: transform .22s ease-out;
}

.hero-video-shell {
  border-radius: 2.8rem !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at calc(24% + var(--hero-mx) * 4%) calc(18% + var(--hero-my) * 3%), rgba(255,255,255,.18), transparent 28%),
    radial-gradient(circle at 80% 72%, rgba(180,219,24,.18), transparent 38%),
    radial-gradient(circle at 32% 78%, rgba(56,121,152,.54), transparent 42%),
    linear-gradient(135deg, #27819b 0%, #236f89 44%, #27819b 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    inset 0 -5rem 8rem rgba(0,25,34,.13),
    0 2.8rem 7rem rgba(4,35,46,.26),
    0 0 0 1px rgba(255,255,255,.08);
}

.hero-video-shell::before {
  inset: -18% !important;
  border-radius: 0 !important;
  background:
    conic-gradient(from 20deg at 50% 50%, transparent 0 18%, rgba(255,255,255,.16) 24%, transparent 32% 60%, rgba(180,219,24,.16) 68%, transparent 78% 100%) !important;
  animation: heroPremiumAura 18s linear infinite !important;
  mix-blend-mode: screen;
  opacity: .48 !important;
}

.hero-video-shell::after {
  left: 10% !important;
  right: 10% !important;
  bottom: 4% !important;
  height: 17% !important;
  background: radial-gradient(ellipse at center, rgba(0,17,26,.32), rgba(0,17,26,.12) 44%, transparent 76%) !important;
  filter: blur(24px) !important;
}

.hero-video-depth {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  z-index: 1;
  filter: blur(6px);
  opacity: .78;
}

.hero-video-depth--one {
  width: 62%;
  height: 62%;
  left: 5%;
  top: 7%;
  background: radial-gradient(circle, rgba(255,255,255,.12), rgba(255,255,255,0) 62%);
  animation: heroDepthOne 12s ease-in-out infinite;
}

.hero-video-depth--two {
  width: 55%;
  height: 55%;
  right: 0;
  bottom: 3%;
  background: radial-gradient(circle, rgba(180,219,24,.18), rgba(180,219,24,0) 64%);
  animation: heroDepthTwo 14s ease-in-out infinite;
}

.hero-video-orbit {
  inset: 7% 6% !important;
  border-radius: 2.5rem !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  box-shadow:
    inset 0 0 3rem rgba(255,255,255,.055),
    0 0 4rem rgba(180,219,24,.08);
  z-index: 5;
}

.hero-video-frame {
  z-index: 3;
  border-radius: inherit;
  transform: translate3d(0, 1.4rem, 0) scale(.97) rotateX(4deg);
  transition: opacity .78s ease, transform .88s cubic-bezier(.18,.82,.22,1), filter .78s ease;
}

.hero-video-frame.is-active {
  transform: translate3d(0, 0, 0) scale(1) rotateX(0deg);
}

.hero-video-frame video,
.hero-video-composite-layer video {
  -webkit-mask-image: radial-gradient(ellipse at 50% 52%, #000 0 56%, rgba(0,0,0,.97) 66%, rgba(0,0,0,.55) 82%, transparent 100%) !important;
  mask-image: radial-gradient(ellipse at 50% 52%, #000 0 56%, rgba(0,0,0,.97) 66%, rgba(0,0,0,.55) 82%, transparent 100%) !important;
  transform: translate3d(calc(var(--hero-mx) * -.4rem), calc(var(--hero-my) * -.28rem), 0) scale(1.02);
}

.hero-video-frame--showcase {
  inset: 0;
  overflow: visible;
}

.hero-video-frame--showcase > video {
  display: none;
}

.hero-video-composite-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero-video-composite-layer video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  animation: heroCompositeFloat 11s ease-in-out infinite;
}

.hero-video-composite-layer--xray {
  z-index: 1;
  opacity: .54;
  transform: translate3d(9%, -4%, 0) scale(.82);
  filter: blur(.2px) saturate(1.16) drop-shadow(0 2rem 2rem rgba(0,16,24,.10));
}

.hero-video-composite-layer--documents {
  z-index: 2;
  opacity: .88;
  transform: translate3d(-18%, 15%, 0) scale(.55) rotate(-5deg);
  filter: drop-shadow(0 1.8rem 2rem rgba(0,18,26,.18));
}

.hero-video-composite-layer--card {
  z-index: 4;
  opacity: .96;
  transform: translate3d(-11%, -8%, 0) scale(.63) rotate(-3deg);
  filter: drop-shadow(0 2rem 2.4rem rgba(0,18,26,.22));
}

.hero-video-composite-layer--construction {
  z-index: 3;
  opacity: .86;
  transform: translate3d(16%, 13%, 0) scale(.58) rotate(4deg);
  filter: drop-shadow(0 2rem 2.6rem rgba(0,18,26,.18));
}

.hero-video-frame--showcase::before {
  content: '';
  position: absolute;
  inset: 12% 8% 6%;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(180,219,24,.16), transparent 66%);
  filter: blur(18px);
  z-index: 0;
}

.hero-video-frame--showcase::after {
  content: '';
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 8%;
  height: 15%;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(1,21,31,.34), transparent 72%);
  filter: blur(18px);
  z-index: 0;
}

.hero-video-stage[data-video-variant="showcase"] .hero-video-shell {
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,.20), transparent 29%),
    radial-gradient(circle at 76% 70%, rgba(180,219,24,.19), transparent 42%),
    linear-gradient(140deg, #27819b, #1e6f88 50%, #27819b) !important;
}

.hero-video-stage[data-video-variant="showcase"] .hero-video-scan {
  animation-duration: 10.5s;
}

.hero-video-stage[data-video-variant="docs"] .hero-video-frame video,
.hero-video-stage[data-video-variant="construction"] .hero-video-frame video {
  mix-blend-mode: normal;
  filter: drop-shadow(0 2rem 2.5rem rgba(0,18,26,.17)) brightness(1.03) contrast(1.04) saturate(1.06) !important;
}

.hero-video-stage[data-video-variant="docs"] .hero-video-frame::after,
.hero-video-stage[data-video-variant="construction"] .hero-video-frame::after {
  opacity: .42;
  mix-blend-mode: normal;
}

.doc-animation-switcher {
  background: rgba(255,255,255,.70) !important;
  border: 1px solid rgba(56,121,152,.13) !important;
  box-shadow: 0 1rem 2.6rem rgba(4,35,46,.10) !important;
}

.doc-animation-switcher button {
  transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease !important;
}

.doc-animation-switcher button:hover {
  transform: translateY(-1px);
}

.doc-animation-switcher button.is-active {
  box-shadow: 0 .8rem 1.4rem rgba(56,121,152,.18) !important;
}

@keyframes heroPremiumAura {
  from { transform: rotate(0deg) scale(1.06); }
  to { transform: rotate(360deg) scale(1.06); }
}

@keyframes heroDepthOne {
  0%, 100% { transform: translate3d(-4%, 0, 0) scale(1); opacity: .58; }
  50% { transform: translate3d(5%, 4%, 0) scale(1.08); opacity: .88; }
}

@keyframes heroDepthTwo {
  0%, 100% { transform: translate3d(3%, 2%, 0) scale(1.02); opacity: .46; }
  50% { transform: translate3d(-4%, -4%, 0) scale(1.12); opacity: .82; }
}

@keyframes heroCompositeFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -.65rem, 0) scale(1.015); }
}

@media (max-width: 1023px) {
  .hero-3d-stage.hero-video-stage {
    width: min(100%, 42rem) !important;
    height: clamp(22rem, 72vw, 33rem) !important;
  }
  .hero-video-composite-layer--xray { transform: translate3d(7%, -2%, 0) scale(.88); }
  .hero-video-composite-layer--documents { transform: translate3d(-16%, 17%, 0) scale(.58) rotate(-5deg); }
  .hero-video-composite-layer--card { transform: translate3d(-10%, -8%, 0) scale(.65) rotate(-3deg); }
  .hero-video-composite-layer--construction { transform: translate3d(15%, 14%, 0) scale(.6) rotate(4deg); }
}

@media (max-width: 640px) {
  .hero-3d-stage.hero-video-stage {
    height: clamp(19rem, 85vw, 28rem) !important;
  }
  .hero-video-shell { border-radius: 2rem !important; }
  .hero-video-composite-layer--xray { transform: translate3d(6%, -4%, 0) scale(.92); opacity: .5; }
  .hero-video-composite-layer--documents { transform: translate3d(-18%, 19%, 0) scale(.62) rotate(-5deg); }
  .hero-video-composite-layer--card { transform: translate3d(-12%, -9%, 0) scale(.68) rotate(-3deg); }
  .hero-video-composite-layer--construction { transform: translate3d(16%, 16%, 0) scale(.62) rotate(4deg); }
}

/* === BM final alternative: clean embedded video cards, no alpha-key artifacts === */
#top > .relative.mx-auto {
  position: relative;
}

.bm-video-stage {
  width: min(100%, 34rem) !important;
  height: clamp(19rem, 32vw, 29rem) !important;
  justify-self: end;
  align-self: center;
  position: relative;
  pointer-events: auto;
  z-index: 4;
  overflow: visible !important;
  transform: translateZ(0);
}

.bm-video-stage__wrap {
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(39,129,155,.92), rgba(25,86,108,.88));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -2.5rem 4.5rem rgba(6,32,43,.14),
    0 1.8rem 4.5rem rgba(5,35,47,.22),
    0 0 0 1px rgba(255,255,255,.10);
  isolation: isolate;
}

.bm-video-stage__wrap::before,
.bm-video-stage__wrap::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

.bm-video-stage__wrap::before {
  inset: 0;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.20), transparent 28%),
    radial-gradient(circle at 72% 72%, rgba(180,219,24,.13), transparent 36%),
    linear-gradient(115deg, transparent 0 34%, rgba(255,255,255,.10) 45%, transparent 57% 100%);
  mix-blend-mode: screen;
  opacity: .52;
}

.bm-video-stage__wrap::after {
  left: 14%;
  right: 14%;
  bottom: 7%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(2,17,24,.32), transparent 70%);
  filter: blur(16px);
  opacity: .54;
}

.bm-video-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(.7rem) scale(.98);
  filter: blur(6px) saturate(.96);
  transition: opacity .55s ease, transform .65s cubic-bezier(.2,.78,.2,1), filter .55s ease;
  z-index: 2;
}

.bm-video-frame.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0) saturate(1.02) contrast(1.02);
}

.bm-video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: scale(.86);
  transform-origin: center;
  border-radius: 1.45rem;
  animation: bmVideoBreath 10s ease-in-out infinite;
}

.bm-video-stage[data-video="docs"] .bm-video-frame video {
  transform: scale(.80) translateY(1.2%);
}

.bm-video-stage__glow {
  position: absolute;
  inset: 8% 9%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(180,219,24,.18), rgba(78,169,197,.13) 42%, transparent 72%);
  filter: blur(26px);
  z-index: 1;
  pointer-events: none;
}

.bm-video-stage__caption {
  position: absolute;
  left: 1.1rem;
  bottom: 1rem;
  z-index: 5;
  max-width: calc(100% - 2.2rem);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .82rem;
  border-radius: 999px;
  color: rgba(255,255,255,.82);
  background: rgba(9,47,62,.36);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.bm-video-stage__caption::before {
  content: '';
  width: .45rem;
  height: .45rem;
  border-radius: 999px;
  background: #b4db18;
  box-shadow: 0 0 1rem rgba(180,219,24,.75);
}

.bm-video-switcher.doc-animation-switcher {
  z-index: 7 !important;
}

@keyframes bmVideoBreath {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -.35rem; }
}

@media (min-width: 1024px) {
  #top > .relative.mx-auto {
    display: grid !important;
    grid-template-columns: minmax(0, 47rem) minmax(24rem, 35rem) !important;
    align-items: center !important;
    gap: clamp(1.8rem, 4vw, 4.8rem) !important;
  }
  .bm-video-stage { margin-right: clamp(.1rem, 1vw, 1.1rem) !important; }
}

@media (max-width: 1023px) {
  .bm-video-stage {
    width: min(92vw, 31rem) !important;
    height: clamp(17rem, 58vw, 24rem) !important;
    margin: 1.5rem auto 0 !important;
  }
  .bm-video-frame video { transform: scale(.9); }
  .bm-video-stage[data-video="docs"] .bm-video-frame video { transform: scale(.83) translateY(1.5%); }
}

@media (max-width: 640px) {
  .bm-video-stage {
    height: clamp(15.5rem, 68vw, 21rem) !important;
  }
  .bm-video-stage__caption { display: none; }
}

/* === Final uploaded hero videos: clean stage and background handling === */
.bm-video-stage {
  width: min(100%, 36rem) !important;
  height: clamp(21rem, 34vw, 31rem) !important;
}

.bm-video-stage__wrap {
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.18), transparent 30%),
    radial-gradient(circle at 72% 74%, rgba(180, 219, 24, 0.13), transparent 38%),
    linear-gradient(145deg, rgba(45, 139, 165, 0.92), rgba(25, 92, 114, 0.9)) !important;
}

.bm-video-frame {
  inset: 0.35rem !important;
  border-radius: 1.7rem !important;
}

.bm-video-frame video {
  background: transparent !important;
  border-radius: inherit !important;
}

.bm-video-frame--alpha video {
  transform: scale(0.98) !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2rem 2.7rem rgba(0, 18, 26, 0.22)) brightness(1.03) contrast(1.06) !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.bm-video-frame--masked video {
  transform: scale(0.9) !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2rem 2.5rem rgba(0, 18, 26, 0.16)) brightness(1.02) contrast(1.04) saturate(1.05) !important;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0 64%, rgba(0, 0, 0, 0.92) 73%, rgba(0, 0, 0, 0.28) 88%, transparent 100%) !important;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0 64%, rgba(0, 0, 0, 0.92) 73%, rgba(0, 0, 0, 0.28) 88%, transparent 100%) !important;
}

.bm-video-frame--clean {
  background: rgba(255, 255, 255, 0.035);
}

.bm-video-frame--clean video {
  transform: scale(0.86) !important;
  object-fit: contain !important;
  filter: drop-shadow(0 1.6rem 2.2rem rgba(0, 18, 26, 0.18)) brightness(1.02) contrast(1.03) saturate(1.02) !important;
  -webkit-mask-image: linear-gradient(#000, #000) !important;
  mask-image: linear-gradient(#000, #000) !important;
}

.bm-video-stage[data-video="papers"] .bm-video-frame video {
  transform: scale(0.84) translateY(1%) !important;
}

.bm-video-stage[data-video="single"] .bm-video-frame video {
  transform: scale(0.9) translateY(1%) !important;
}

.bm-video-stage[data-video="card"] .bm-video-frame video {
  transform: scale(0.94) translateY(-1%) !important;
}

.bm-video-stage[data-video="building"] .bm-video-frame video {
  transform: scale(0.96) translateY(1%) !important;
}

.bm-video-stage[data-video="crane"] .bm-video-frame video {
  transform: scale(0.86) translateY(1%) !important;
}

.bm-video-stage__caption {
  background: rgba(5, 42, 54, 0.42) !important;
  color: rgba(255, 255, 255, 0.86) !important;
}

.bm-video-switcher.doc-animation-switcher {
  width: min(100%, 36rem) !important;
  margin-top: 0.85rem !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.bm-video-switcher .doc-animation-switcher__label {
  display: none !important;
}

.bm-video-switcher button {
  min-width: 7.2rem !important;
}

@media (max-width: 1023px) {
  .bm-video-stage {
    width: min(94vw, 34rem) !important;
    height: clamp(20rem, 68vw, 28rem) !important;
    margin: 1.5rem auto 0 !important;
  }
}

@media (max-width: 640px) {
  #top {
    padding-bottom: 4.5rem !important;
  }

  .bm-video-stage {
    width: min(100%, 21rem) !important;
    height: 18.5rem !important;
    margin-top: 1.15rem !important;
  }

  .bm-video-stage__wrap {
    border-radius: 1.45rem !important;
  }

  .bm-video-frame {
    inset: 0.2rem !important;
    border-radius: 1.25rem !important;
  }

  .bm-video-frame--masked video {
    transform: scale(0.84) !important;
  }

  .bm-video-stage[data-video="papers"] .bm-video-frame video {
    transform: scale(0.78) translateY(0) !important;
  }

  .bm-video-stage[data-video="single"] .bm-video-frame video {
    transform: scale(0.84) translateY(0) !important;
  }

  .bm-video-stage[data-video="card"] .bm-video-frame video,
  .bm-video-stage[data-video="building"] .bm-video-frame video {
    transform: scale(0.88) !important;
  }

  .bm-video-stage[data-video="crane"] .bm-video-frame video {
    transform: scale(0.8) !important;
  }

  .bm-video-switcher.doc-animation-switcher {
    width: min(100%, 21rem) !important;
    margin-top: 0.7rem !important;
  }

  .bm-video-switcher button {
    flex: 1 1 calc(50% - 0.5rem) !important;
    min-width: 0 !important;
  }
}

/* Calm transparent video presentation: no background square, less visual weight. */
.bm-video-stage__wrap {
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.bm-video-stage__wrap::before,
.bm-video-stage__wrap::after,
.bm-video-stage__glow {
  display: none !important;
}

.bm-video-frame,
.bm-video-frame--clean {
  background: transparent !important;
  overflow: visible !important;
}

.bm-video-frame video {
  animation: none !important;
  translate: none !important;
  will-change: opacity, transform;
}

.bm-video-stage[data-video="card"] .bm-video-frame,
.bm-video-stage[data-video="building"] .bm-video-frame {
  opacity: 0.78 !important;
}

.bm-video-stage[data-video="card"] .bm-video-frame video {
  opacity: 0.82 !important;
  transform: scale(0.9) translateY(-1%) !important;
  filter: drop-shadow(0 1.7rem 2.2rem rgba(0, 18, 26, 0.18)) brightness(1.02) contrast(1.04) !important;
}

.bm-video-stage[data-video="building"] .bm-video-frame video {
  opacity: 0.76 !important;
  transform: scale(0.92) translateY(1%) !important;
  filter: drop-shadow(0 1.6rem 2.1rem rgba(0, 18, 26, 0.16)) brightness(1.03) contrast(1.05) !important;
}

@media (max-width: 640px) {
  .bm-video-stage[data-video="card"] .bm-video-frame video {
    transform: scale(0.84) !important;
  }

  .bm-video-stage[data-video="building"] .bm-video-frame video {
    transform: scale(0.86) !important;
  }
}

/* Larger final videos, smoother permit edges, realistic paper stack and crane color fit. */
.bm-video-stage {
  width: min(100%, 39rem) !important;
  height: clamp(23rem, 36vw, 33rem) !important;
}

.bm-video-frame--alpha video {
  image-rendering: auto;
  transform: translateZ(0) scale(1.04) !important;
  filter:
    blur(0.16px)
    drop-shadow(0 1.8rem 2.3rem rgba(0, 18, 26, 0.18))
    brightness(1.02)
    contrast(1.03) !important;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0 72%, rgba(0, 0, 0, 0.9) 84%, transparent 100%) !important;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0 72%, rgba(0, 0, 0, 0.9) 84%, transparent 100%) !important;
}

.bm-video-stage[data-video="card"] .bm-video-frame,
.bm-video-stage[data-video="building"] .bm-video-frame {
  opacity: 0.72 !important;
}

.bm-video-stage[data-video="card"] .bm-video-frame video {
  opacity: 0.78 !important;
  transform: translateZ(0) scale(1) translateY(-1%) !important;
}

.bm-video-stage[data-video="building"] .bm-video-frame video {
  opacity: 0.72 !important;
  transform: translateZ(0) scale(1.02) translateY(1%) !important;
}

.bm-video-stage[data-video="crane"] .bm-video-frame {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.08), transparent 48%),
    linear-gradient(145deg, rgba(39, 129, 155, 0.92), rgba(28, 102, 125, 0.92)) !important;
  border-radius: 1.8rem !important;
  overflow: hidden !important;
}

.bm-video-stage[data-video="crane"] .bm-video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(34, 124, 150, 0.2);
  mix-blend-mode: color;
}

.bm-video-stage[data-video="crane"] .bm-video-frame video {
  transform: scale(0.98) translateY(0) !important;
  filter: saturate(0.86) hue-rotate(8deg) brightness(1.02) contrast(1.04) !important;
}

.realistic-paper-stack {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.realistic-paper-stack__shadow {
  position: absolute;
  left: 18%;
  right: 16%;
  bottom: 23%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 20, 28, 0.32), rgba(0, 20, 28, 0.12) 48%, transparent 72%);
  filter: blur(16px);
}

.realistic-paper-stack__pages {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 19.5rem;
  height: 7.4rem;
  transform: translate(-50%, -50%) rotateX(62deg) rotateZ(-2deg);
  transform-style: preserve-3d;
}

.realistic-paper-stack__pages span {
  position: absolute;
  left: calc(var(--i, 0) * 0.03rem);
  right: calc(var(--i, 0) * -0.02rem);
  bottom: calc(var(--i, 0) * 0.22rem);
  height: 1.02rem;
  border-radius: 0.16rem 0.22rem 0.2rem 0.16rem;
  background:
    linear-gradient(180deg, #ffffff 0%, #eef3f5 54%, #d9e1e4 100%);
  border: 1px solid rgba(98, 121, 130, 0.18);
  box-shadow:
    0 0.03rem 0 rgba(255, 255, 255, 0.85) inset,
    0 0.18rem 0.26rem rgba(19, 58, 69, 0.08);
  transform: translateZ(calc(var(--i, 0) * 0.7px)) rotateZ(calc((var(--i, 0) - 4) * 0.18deg));
}

.realistic-paper-stack__pages span:nth-child(1) { --i: 0; }
.realistic-paper-stack__pages span:nth-child(2) { --i: 1; }
.realistic-paper-stack__pages span:nth-child(3) { --i: 2; }
.realistic-paper-stack__pages span:nth-child(4) { --i: 3; }
.realistic-paper-stack__pages span:nth-child(5) { --i: 4; }
.realistic-paper-stack__pages span:nth-child(6) { --i: 5; }
.realistic-paper-stack__pages span:nth-child(7) { --i: 6; }
.realistic-paper-stack__pages span:nth-child(8) { --i: 7; }
.realistic-paper-stack__pages span:nth-child(9) { --i: 8; }
.realistic-paper-stack__pages span:nth-child(10) { --i: 9; }

.realistic-paper-stack__top,
.realistic-paper-stack__fall {
  position: absolute;
  left: 50%;
  top: 37%;
  width: 18.8rem;
  height: 12.8rem;
  border-radius: 0.42rem 0.5rem 0.46rem 0.36rem;
  background:
    linear-gradient(178deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 253, 0.96) 62%, rgba(232, 240, 243, 0.96)),
    repeating-linear-gradient(180deg, transparent 0 1.35rem, rgba(34, 124, 150, 0.12) 1.42rem 1.52rem);
  box-shadow:
    0 1.4rem 2.5rem rgba(0, 24, 33, 0.13),
    0 0.05rem 0 rgba(255, 255, 255, 0.9) inset;
  transform: translate(-50%, -50%) rotateX(62deg) rotateZ(-1.6deg);
}

.realistic-paper-stack__top::before,
.realistic-paper-stack__fall::before {
  content: "";
  position: absolute;
  inset: 1.1rem 1.3rem auto;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(34, 124, 150, 0.22);
  box-shadow:
    0 1.35rem 0 rgba(34, 124, 150, 0.12),
    0 2.7rem 0 rgba(34, 124, 150, 0.1),
    0 4.05rem 0 rgba(34, 124, 150, 0.08);
}

.realistic-paper-stack__top {
  animation: realisticPaperTop 7.2s ease-in-out infinite;
}

.realistic-paper-stack__fall {
  opacity: 0;
  z-index: 3;
  animation: realisticPaperFall 7.2s cubic-bezier(0.18, 0.76, 0.18, 1) infinite;
}

.realistic-paper-stack__fall--two {
  animation-delay: 2.4s;
  transform-origin: 48% 86%;
}

@keyframes realisticPaperTop {
  0%, 100% { transform: translate(-50%, -50%) rotateX(62deg) rotateZ(-1.6deg); }
  46%, 60% { transform: translate(-50%, -48%) rotateX(62deg) rotateZ(-1.1deg); }
}

@keyframes realisticPaperFall {
  0%, 8% {
    opacity: 0;
    transform: translate(-50%, -110%) rotateX(6deg) rotateY(-8deg) rotateZ(8deg) scale(0.94);
  }
  24%, 38% {
    opacity: 1;
    transform: translate(-50%, -68%) rotateX(10deg) rotateY(-3deg) rotateZ(3deg) scale(0.98);
  }
  58%, 82% {
    opacity: 1;
    transform: translate(-50%, -49%) rotateX(62deg) rotateY(0deg) rotateZ(-1deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -48%) rotateX(62deg) rotateZ(-1deg) scale(0.995);
  }
}

@media (max-width: 1023px) {
  .bm-video-stage {
    width: min(96vw, 37rem) !important;
    height: clamp(22rem, 70vw, 31rem) !important;
  }
}

@media (max-width: 640px) {
  .bm-video-stage {
    width: min(100%, 22rem) !important;
    height: 20rem !important;
  }

  .realistic-paper-stack {
    transform: scale(0.78);
  }

  .bm-video-stage[data-video="card"] .bm-video-frame video {
    transform: translateZ(0) scale(0.9) !important;
  }

  .bm-video-stage[data-video="building"] .bm-video-frame video {
    transform: translateZ(0) scale(0.92) !important;
  }
}

/* Final polish: enhanced card, soft crane integration, more natural paper stack. */
.bm-video-stage[data-video="card"] .bm-video-frame,
.bm-video-stage[data-video="building"] .bm-video-frame {
  opacity: 0.84 !important;
}

.bm-video-stage[data-video="card"] .bm-video-frame video {
  opacity: 0.9 !important;
  transform: translateZ(0) scale(1.08) translateY(-1%) !important;
  filter:
    blur(0.08px)
    drop-shadow(0 1.9rem 2.35rem rgba(0, 18, 26, 0.2))
    brightness(1.03)
    contrast(1.05) !important;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0 78%, rgba(0, 0, 0, 0.92) 89%, transparent 100%) !important;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0 78%, rgba(0, 0, 0, 0.92) 89%, transparent 100%) !important;
}

.bm-video-stage[data-video="crane"] .bm-video-frame {
  inset: -0.35rem !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.bm-video-stage[data-video="crane"] .bm-video-frame::before {
  display: none !important;
}

.bm-video-stage[data-video="crane"] .bm-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 0 48%, rgba(34, 124, 150, 0.22) 70%, rgba(34, 124, 150, 0.92) 100%);
}

.bm-video-stage[data-video="crane"] .bm-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  opacity: 0.94 !important;
  transform: scale(1.08) translateY(0) !important;
  filter: saturate(0.92) hue-rotate(6deg) brightness(1.03) contrast(1.02) !important;
  -webkit-mask-image: radial-gradient(ellipse at 50% 52%, #000 0 58%, rgba(0, 0, 0, 0.86) 72%, rgba(0, 0, 0, 0.24) 87%, transparent 100%) !important;
  mask-image: radial-gradient(ellipse at 50% 52%, #000 0 58%, rgba(0, 0, 0, 0.86) 72%, rgba(0, 0, 0, 0.24) 87%, transparent 100%) !important;
}

.realistic-paper-stack {
  filter: drop-shadow(0 2rem 2.4rem rgba(0, 18, 26, 0.12));
}

.realistic-paper-stack__shadow {
  left: 13%;
  right: 11%;
  bottom: 18%;
  height: 22%;
  opacity: 0.85;
}

.realistic-paper-stack__pages {
  width: 22rem;
  height: 8.9rem;
  top: 56%;
  transform: translate(-50%, -50%) rotateX(66deg) rotateZ(-2.2deg);
}

.realistic-paper-stack__pages::before,
.realistic-paper-stack__pages::after {
  content: "";
  position: absolute;
  left: 0.45rem;
  right: 0.35rem;
  border-radius: 0.22rem;
  pointer-events: none;
}

.realistic-paper-stack__pages::before {
  bottom: 0.15rem;
  height: 7.4rem;
  background:
    repeating-linear-gradient(180deg, rgba(70, 89, 97, 0.28) 0 1px, rgba(255, 255, 255, 0.68) 1px 4px, rgba(201, 213, 218, 0.48) 4px 6px);
  opacity: 0.8;
  transform: translateY(1.9rem) skewX(-6deg);
  filter: blur(0.15px);
}

.realistic-paper-stack__pages::after {
  bottom: -0.18rem;
  height: 1.4rem;
  background: linear-gradient(180deg, rgba(245, 250, 251, 0.96), rgba(190, 204, 210, 0.86));
  box-shadow: 0 0.7rem 1rem rgba(0, 20, 28, 0.1);
}

.realistic-paper-stack__pages span {
  height: 0.88rem;
  border-radius: 0.08rem 0.28rem 0.2rem 0.12rem;
  background:
    linear-gradient(90deg, rgba(217, 227, 231, 0.76), rgba(255, 255, 255, 0.96) 12%, rgba(244, 249, 250, 0.98) 72%, rgba(210, 222, 227, 0.9)),
    linear-gradient(180deg, #ffffff 0%, #edf4f6 62%, #d6e0e4 100%);
  border-color: rgba(91, 118, 128, 0.2);
}

.realistic-paper-stack__top,
.realistic-paper-stack__fall {
  width: 20.4rem;
  height: 13.6rem;
  top: 38%;
  border-radius: 0.22rem 0.56rem 0.42rem 0.26rem;
  background:
    linear-gradient(100deg, rgba(255,255,255,0.16), transparent 25%),
    linear-gradient(178deg, rgba(255, 255, 255, 0.99), rgba(249, 252, 253, 0.97) 62%, rgba(231, 240, 243, 0.97)),
    repeating-linear-gradient(180deg, transparent 0 1.28rem, rgba(34, 124, 150, 0.11) 1.35rem 1.45rem);
}

.realistic-paper-stack__top::after,
.realistic-paper-stack__fall::after {
  content: "";
  position: absolute;
  right: -0.22rem;
  top: 0.45rem;
  bottom: 0.4rem;
  width: 0.55rem;
  border-radius: 0 0.24rem 0.24rem 0;
  background: repeating-linear-gradient(180deg, #d7e1e5 0 2px, #f7fbfc 2px 5px);
  opacity: 0.9;
  transform: skewY(4deg);
}

.realistic-paper-stack__fall {
  box-shadow:
    0 1.8rem 2.8rem rgba(0, 24, 33, 0.14),
    0 0.05rem 0 rgba(255, 255, 255, 0.92) inset;
}

@media (max-width: 640px) {
  .bm-video-stage[data-video="card"] .bm-video-frame video {
    transform: translateZ(0) scale(0.96) !important;
  }

  .bm-video-stage[data-video="crane"] .bm-video-frame video {
    transform: scale(1.02) !important;
  }

  .realistic-paper-stack {
    transform: scale(0.68);
  }
}

/* Fix card alpha source and make crane feel less like a rectangular insert. */
.bm-video-stage[data-video="card"] .bm-video-frame {
  opacity: 0.82 !important;
}

.bm-video-stage[data-video="card"] .bm-video-frame video {
  opacity: 0.86 !important;
  transform: translateZ(0) scale(1.02) translateY(-1%) !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  filter:
    blur(0.12px)
    drop-shadow(0 1.9rem 2.35rem rgba(0, 18, 26, 0.19))
    brightness(1.04)
    contrast(1.04) !important;
}

.bm-video-stage[data-video="crane"] {
  width: min(100%, 41rem) !important;
}

.bm-video-stage[data-video="crane"] .bm-video-frame {
  inset: -1.15rem !important;
}

.bm-video-stage[data-video="crane"] .bm-video-frame video {
  object-fit: cover !important;
  object-position: center 48% !important;
  opacity: 0.9 !important;
  transform: scale(1.18) translateY(-1%) !important;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.26) 7%, #000 18%, #000 82%, rgba(0,0,0,.26) 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.28) 8%, #000 18%, #000 82%, rgba(0,0,0,.2) 91%, transparent 100%) !important;
  -webkit-mask-composite: source-in !important;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.26) 7%, #000 18%, #000 82%, rgba(0,0,0,.26) 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.28) 8%, #000 18%, #000 82%, rgba(0,0,0,.2) 91%, transparent 100%) !important;
  mask-composite: intersect !important;
}

.bm-video-stage[data-video="crane"] .bm-video-frame::after {
  inset: -0.2rem !important;
  background:
    linear-gradient(90deg, rgba(34,124,150,0.96), transparent 16%, transparent 84%, rgba(34,124,150,0.96)),
    linear-gradient(180deg, rgba(34,124,150,0.9), transparent 16%, transparent 82%, rgba(34,124,150,0.9)) !important;
}

@media (max-width: 640px) {
  .bm-video-stage[data-video="crane"] .bm-video-frame video {
    transform: scale(1.12) translateY(-1%) !important;
  }
}

/* New alpha webm assets for card and crane: no panel/square background. */
.bm-video-stage[data-video="card"] .bm-video-frame,
.bm-video-stage[data-video="crane"] .bm-video-frame {
  inset: 0 !important;
  opacity: 1 !important;
  overflow: visible !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.bm-video-stage[data-video="card"] .bm-video-frame::before,
.bm-video-stage[data-video="card"] .bm-video-frame::after,
.bm-video-stage[data-video="crane"] .bm-video-frame::before,
.bm-video-stage[data-video="crane"] .bm-video-frame::after {
  display: none !important;
}

.bm-video-stage[data-video="card"] .bm-video-frame video,
.bm-video-stage[data-video="crane"] .bm-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  opacity: 0.9 !important;
  background: transparent !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  filter:
    blur(0.08px)
    drop-shadow(0 1.9rem 2.45rem rgba(0, 18, 26, 0.2))
    brightness(1.03)
    contrast(1.04) !important;
}

.bm-video-stage[data-video="card"] .bm-video-frame video {
  transform: translateZ(0) scale(1.04) translateY(-1%) !important;
}

.bm-video-stage[data-video="crane"] .bm-video-frame video {
  transform: translateZ(0) scale(1.02) translateY(0) !important;
}

@media (max-width: 640px) {
  .bm-video-stage[data-video="card"] .bm-video-frame video {
    transform: translateZ(0) scale(0.94) !important;
  }

  .bm-video-stage[data-video="crane"] .bm-video-frame video {
    transform: translateZ(0) scale(0.94) !important;
  }
}

/* Restore crane mp4 look, remove visible square; soften card edges. */
.bm-video-stage[data-video="card"] .bm-video-frame {
  opacity: 0.74 !important;
}

.bm-video-stage[data-video="card"] .bm-video-frame video {
  opacity: 0.78 !important;
  transform: translateZ(0) scale(1.02) translateY(-1%) !important;
  filter:
    blur(0.22px)
    drop-shadow(0 1.7rem 2.2rem rgba(0, 18, 26, 0.17))
    brightness(1.04)
    contrast(1.03) !important;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0 70%, rgba(0, 0, 0, 0.86) 82%, rgba(0, 0, 0, 0.28) 93%, transparent 100%) !important;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0 70%, rgba(0, 0, 0, 0.86) 82%, rgba(0, 0, 0, 0.28) 93%, transparent 100%) !important;
}

.bm-video-stage[data-video="crane"] {
  width: min(100%, 41rem) !important;
}

.bm-video-stage[data-video="crane"] .bm-video-frame {
  inset: -1.2rem !important;
  opacity: 1 !important;
  overflow: hidden !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.bm-video-stage[data-video="crane"] .bm-video-frame::before {
  display: none !important;
}

.bm-video-stage[data-video="crane"] .bm-video-frame::after {
  content: "";
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(34,124,150,0.98), transparent 15%, transparent 85%, rgba(34,124,150,0.98)),
    linear-gradient(180deg, rgba(34,124,150,0.96), transparent 15%, transparent 82%, rgba(34,124,150,0.96));
}

.bm-video-stage[data-video="crane"] .bm-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center 48% !important;
  opacity: 0.94 !important;
  transform: scale(1.18) translateY(-1%) !important;
  filter: saturate(0.92) hue-rotate(6deg) brightness(1.03) contrast(1.02) !important;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.24) 7%, #000 18%, #000 82%, rgba(0,0,0,.24) 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.26) 8%, #000 18%, #000 82%, rgba(0,0,0,.2) 91%, transparent 100%) !important;
  -webkit-mask-composite: source-in !important;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.24) 7%, #000 18%, #000 82%, rgba(0,0,0,.24) 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.26) 8%, #000 18%, #000 82%, rgba(0,0,0,.2) 91%, transparent 100%) !important;
  mask-composite: intersect !important;
}

@media (max-width: 640px) {
  .bm-video-stage[data-video="card"] .bm-video-frame video {
    transform: translateZ(0) scale(0.9) !important;
  }

  .bm-video-stage[data-video="crane"] .bm-video-frame video {
    transform: scale(1.1) translateY(-1%) !important;
  }
}

/* Strong crane edge dissolve: remove the visible rectangular video bounds. */
.bm-video-stage[data-video="crane"] .bm-video-frame {
  inset: -2rem !important;
  overflow: visible !important;
  -webkit-mask-image: radial-gradient(ellipse at 50% 52%, #000 0 46%, rgba(0, 0, 0, 0.72) 58%, rgba(0, 0, 0, 0.18) 72%, transparent 86%) !important;
  mask-image: radial-gradient(ellipse at 50% 52%, #000 0 46%, rgba(0, 0, 0, 0.72) 58%, rgba(0, 0, 0, 0.18) 72%, transparent 86%) !important;
}

.bm-video-stage[data-video="crane"] .bm-video-frame video {
  transform: scale(1.28) translateY(-1.5%) !important;
  -webkit-mask-image: radial-gradient(ellipse at 50% 52%, #000 0 42%, rgba(0, 0, 0, 0.7) 56%, rgba(0, 0, 0, 0.16) 70%, transparent 84%) !important;
  mask-image: radial-gradient(ellipse at 50% 52%, #000 0 42%, rgba(0, 0, 0, 0.7) 56%, rgba(0, 0, 0, 0.16) 70%, transparent 84%) !important;
}

.bm-video-stage[data-video="crane"] .bm-video-frame::after {
  inset: -2.5rem !important;
  display: block !important;
  background:
    radial-gradient(ellipse at 50% 52%, transparent 0 44%, rgba(34, 124, 150, 0.34) 60%, rgba(34, 124, 150, 0.92) 80%, #227c96 100%) !important;
}

@media (max-width: 640px) {
  .bm-video-stage[data-video="crane"] .bm-video-frame video {
    transform: scale(1.18) translateY(-1%) !important;
  }
}

/* Crane final crop: hide source-frame borders instead of fading the whole rectangle. */
.bm-video-stage[data-video="crane"] .bm-video-frame {
  inset: -3.4rem -4.2rem -3.2rem -4.2rem !important;
  overflow: hidden !important;
  background: transparent !important;
  -webkit-mask-image: radial-gradient(ellipse at 52% 55%, #000 0 54%, rgba(0,0,0,.94) 64%, rgba(0,0,0,.48) 77%, transparent 92%) !important;
  mask-image: radial-gradient(ellipse at 52% 55%, #000 0 54%, rgba(0,0,0,.94) 64%, rgba(0,0,0,.48) 77%, transparent 92%) !important;
}

.bm-video-stage[data-video="crane"] .bm-video-frame video {
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 0.86 !important;
  transform: scale(1.48) translateY(-2.8%) !important;
  filter: saturate(0.88) hue-rotate(7deg) brightness(1.02) contrast(1.02) !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.bm-video-stage[data-video="crane"] .bm-video-frame::after {
  inset: -0.2rem !important;
  display: block !important;
  background:
    radial-gradient(ellipse at 52% 55%, transparent 0 48%, rgba(34,124,150,.18) 62%, rgba(34,124,150,.72) 80%, #227c96 100%),
    linear-gradient(180deg, rgba(34,124,150,.88), transparent 23%, transparent 78%, rgba(34,124,150,.9)) !important;
}

.bm-video-stage[data-video="crane"] .bm-video-stage__caption,
.bm-video-stage[data-video="crane"] .bm-video-frame + .bm-video-stage__caption {
  opacity: 0.9;
}

@media (max-width: 640px) {
  .bm-video-stage[data-video="crane"] .bm-video-frame {
    inset: -2.6rem -3rem -2.4rem -3rem !important;
  }

  .bm-video-stage[data-video="crane"] .bm-video-frame video {
    transform: scale(1.34) translateY(-2%) !important;
  }
}

/* Restore crane to the previous readable size while keeping soft edges. */
.bm-video-stage[data-video="crane"] .bm-video-frame {
  inset: -1.2rem !important;
  -webkit-mask-image: radial-gradient(ellipse at 50% 52%, #000 0 50%, rgba(0, 0, 0, 0.82) 64%, rgba(0, 0, 0, 0.28) 78%, transparent 92%) !important;
  mask-image: radial-gradient(ellipse at 50% 52%, #000 0 50%, rgba(0, 0, 0, 0.82) 64%, rgba(0, 0, 0, 0.28) 78%, transparent 92%) !important;
}

.bm-video-stage[data-video="crane"] .bm-video-frame video {
  transform: scale(1.18) translateY(-1%) !important;
  opacity: 0.94 !important;
}

.bm-video-stage[data-video="crane"] .bm-video-frame::after {
  inset: -0.2rem !important;
  background:
    radial-gradient(ellipse at 50% 52%, transparent 0 48%, rgba(34, 124, 150, 0.24) 65%, rgba(34, 124, 150, 0.78) 84%, #227c96 100%) !important;
}

@media (max-width: 640px) {
  .bm-video-stage[data-video="crane"] .bm-video-frame {
    inset: -1rem !important;
  }

  .bm-video-stage[data-video="crane"] .bm-video-frame video {
    transform: scale(1.08) translateY(-1%) !important;
  }
}

/* Prevent old experimental hero animations from flashing during hydration. */
#top .hero-3d-stage:not(.bm-video-stage),
#top .premium-doc-stage,
#top .hero-video-stage:not(.bm-video-stage) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Final variant set: default X-Ray, cascade sheets, no crane/single-sheet variants. */
.cascade-fall-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  pointer-events: none;
  overflow: hidden;
}

.bm-video-frame--cascade {
  inset: -2% -4% 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

.bm-video-stage[data-video="papers"] .bm-video-frame {
  opacity: 1 !important;
}

.bm-video-stage[data-video="papers"] .bm-video-stage__caption {
  display: none !important;
}

.bm-video-stage[data-video="building"] .bm-video-frame {
  opacity: 0.86 !important;
}

.bm-video-stage[data-video="building"] .bm-video-frame video {
  opacity: 0.82 !important;
  transform: translateZ(0) scale(1.14) translateY(0) !important;
  filter:
    blur(0.08px)
    drop-shadow(0 1.9rem 2.4rem rgba(0, 18, 26, 0.18))
    brightness(1.04)
    contrast(1.05) !important;
}

.bm-video-switcher button[data-hero-video-variant="single"],
.bm-video-switcher button[data-hero-video-variant="crane"] {
  display: none !important;
}

@media (max-width: 640px) {
  .cascade-fall-frame {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .bm-video-frame--cascade {
    inset: -1% -2% 0 !important;
  }

  .bm-video-stage[data-video="building"] .bm-video-frame video {
    transform: translateZ(0) scale(1.02) !important;
  }
}

/* Keep the WebGL hero layout authoritative over legacy experiments above. */
@media (min-width: 1024px) {
  #top > .relative.mx-auto {
    max-width: 90rem !important;
    grid-template-columns: minmax(0, 47rem) minmax(32rem, 42rem) !important;
    gap: clamp(1.6rem, 3vw, 4rem) !important;
    align-items: center !important;
  }
}

/* Keep the full hero visible on short laptop screens without shrinking the type. */
@media (min-width: 1024px) and (max-height: 820px) {
  #top > .relative.mx-auto > .max-w-3xl > p {
    margin-top: 1rem !important;
  }

  #top > .relative.mx-auto > .max-w-3xl > div:nth-of-type(2) {
    margin-top: 1.25rem !important;
  }

  #top > .relative.mx-auto > .max-w-3xl > dl {
    margin-top: 0.9rem !important;
  }
}

/* One WebGL canvas switches between the two document-focused hero scenes. */
.hero-paper-webgl__canvas {
  will-change: opacity, transform;
}

.hero-animation-switcher {
  position: relative;
  z-index: 12;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 17rem);
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(8, 63, 80, 0.54);
  box-shadow: 0 0.9rem 2.4rem rgba(5, 38, 49, 0.15);
  backdrop-filter: blur(12px);
}

.hero-animation-switcher button {
  min-width: 0;
  height: 2.35rem;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-animation-switcher button:hover {
  color: #fff;
}

.hero-animation-switcher button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero-animation-switcher button.is-active {
  color: #155269;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0.35rem 1.1rem rgba(4, 34, 45, 0.16);
}

@media (min-width: 1024px) {
  .hero-animation-switcher {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: center;
    margin-bottom: 1.15rem;
  }
}

@media (max-width: 1023px) {
  .hero-animation-switcher {
    justify-self: center;
    margin: -0.35rem auto 1.25rem;
  }
}

@media (max-width: 640px) {
  .hero-animation-switcher {
    width: min(100%, 18rem);
    margin-top: 2rem;
  }

  .hero-animation-switcher button {
    height: 2.2rem;
    padding: 0 0.45rem;
    font-size: 0.74rem;
  }
}

/* === ECOM FINAL PRODUCTION OVERRIDES 2026-07-23 === */
:root {
  --ekom-accent: #B6DD1C;
  --ekom-accent-hover: #c5eb32;
  --ekom-accent-text: #123f50;
}

/* Accent color is authoritative across calls to action and highlights. */
.header-consultation-link,
header a[href="#contact"],
#top a[href="#contact"],
#top a[href="#quiz"],
section a[href="#contact"].rounded-full,
section a[href="#quiz"].rounded-full,
.amo-crm-form button[type="submit"] {
  background: var(--ekom-accent) !important;
  border-color: var(--ekom-accent) !important;
  color: var(--ekom-accent-text) !important;
  box-shadow: 0 12px 30px rgba(182, 221, 28, .28) !important;
}
.header-consultation-link:hover,
header a[href="#contact"]:hover,
#top a[href="#contact"]:hover,
#top a[href="#quiz"]:hover,
.amo-crm-form button[type="submit"]:hover {
  background: var(--ekom-accent-hover) !important;
  color: var(--ekom-accent-text) !important;
}

/* Only one hero animation exists in production: Inspection. */
#top .hero-animation-switcher,
#top .doc-animation-switcher,
#top .stack-variant-switcher,
#top .bm-video-switcher,
#top .hero-3d-stage,
#top .bm-video-stage,
#top .hero-video-stage,
#top .premium-doc-stage,
#top .real-paper-stage,
#top .realistic-paper-stack,
#top .final-paper-stack,
#top .refined-paper-stage,
#top .paper-stack-scene,
#top video[class*="hero"],
#top iframe[class*="cascade"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#top .hero-paper-webgl {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 1023px) {
  #top .hero-paper-webgl {
    margin-top: .25rem !important;
    margin-bottom: .25rem !important;
  }
}
@media (max-width: 640px) {
  #top .hero-paper-webgl {
    margin-top: -.35rem !important;
    margin-bottom: -.45rem !important;
    min-height: 22rem !important;
  }
}
