/* ============================================================
   ПЛАСТИК — блок «Пресс-форма в работе» (главная)
   ============================================================ */
.mold-show {
  position: relative;
  height: clamp(560px, 86vh, 860px);
  padding: var(--nav-h) 0 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 60% at 62% 48%, #FFFFFF 0%, rgba(255,255,255,0) 70%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(255,90,31,.07) 0%, rgba(255,90,31,0) 70%),
    linear-gradient(180deg, var(--bg-warm) 0%, #F3EEE7 100%);
}
/* мягкая сетка «чертежа» */
.mold-show::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(13,13,15,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,13,15,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 50%, #000 30%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}
.mold-show-stage {
  position: absolute;
  inset: var(--nav-h) 0 0 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.mold-show.is-live .mold-show-stage { opacity: 1; }
.mold-show-stage canvas { display: block; width: 100%; height: 100%; }

.mold-show-ui {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 28px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}
.mold-show-ui a, .mold-show-ui button { pointer-events: auto; }

/* Большая подпись цикла */
.mold-cap {
  position: relative;
  min-height: 210px;
  max-width: 560px;
}
.mold-cap-item {
  position: absolute; left: 0; bottom: 0;
  width: 100%;
}
.mold-cap-num {
  font-family: var(--f-head);
  font-weight: 700; font-size: 15px; letter-spacing: .22em;
  color: var(--orange);
  display: flex; align-items: center; gap: 12px;
}
.mold-cap-num::after {
  content: ''; height: 2px; width: 56px; background: var(--orange);
  transform-origin: left; animation: moldLine .9s var(--ease) both;
}
.mold-cap-title {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(3rem, 7.4vw, 6.4rem);
  line-height: .92;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 10px 0 12px;
}
.mold-cap-title .ch {
  display: inline-block;
  animation: moldChar .8s var(--ease) both;
}
.mold-cap-title .accent { color: var(--orange); }
.mold-cap-desc {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 440px;
  animation: moldFade .9s .25s var(--ease) both;
}
.mold-cap-item.is-out { animation: moldOut .45s var(--ease) both; }
@keyframes moldChar { from { opacity: 0; transform: translateY(.45em) rotateX(-70deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes moldFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes moldLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes moldOut  { to { opacity: 0; transform: translateY(-18px); filter: blur(4px); } }

.mold-show-scroll {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: 22px; height: 34px; border-radius: 12px; border: 2px solid rgba(13,13,15,.25);
  z-index: 3; pointer-events: none;
}
.mold-show-scroll::after {
  content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: rgba(13,13,15,.45); animation: moldScroll 1.8s infinite;
}
@keyframes moldScroll { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }

/* Планшеты и телефоны: подпись сверху, форма по центру */
@media (max-width: 900px) {
  .mold-show { height: clamp(600px, 92vh, 820px); }
  .mold-show-ui { padding: 24px 20px 26px; }
  .mold-cap { min-height: 150px; }
  .mold-show-ui { justify-content: flex-start; }
  .mold-show-scroll { display: none; }
}
@media (max-width: 560px) {
  .mold-cap { min-height: 168px; }
  .mold-cap-title { font-size: clamp(2.3rem, 11.5vw, 3.2rem); margin: 8px 0 10px; }
  .mold-cap-desc { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .mold-cap-title .ch, .mold-cap-desc, .mold-cap-num::after, .mold-show-scroll::after { animation: none; }
}

/* светлая подложка под текстом поверх 3D */
.mold-show-ui::before {
  content: '';
  position: absolute;
  left: -40vw; top: 0; bottom: 0; width: calc(40vw + 760px);
  background: linear-gradient(90deg, rgba(251,250,248,.85) 0%, rgba(251,250,248,.72) 62%, rgba(251,250,248,0) 100%);
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 900px) {
  .mold-show-ui::before {
    left: 0; right: 0; width: auto; bottom: auto; height: 62%;
    background: linear-gradient(180deg, rgba(251,250,248,.92) 0%, rgba(251,250,248,.7) 55%, rgba(251,250,248,0) 100%);
  }
}
.mold-cap-title .word { white-space: nowrap; }
.mold-cap-title .accent { display: block; }
