/* Shared product visuals for the "in development" pipeline (used by variants A, B and C) */

/* T·LAB X SPI Protein pouch, drawn in CSS from the packaging artwork */
.pouch {
  --kraft: #e8e3db;
  position: relative; width: 100%; max-width: 260px; aspect-ratio: 3 / 4; margin-inline: auto;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.55), transparent 60%),
    linear-gradient(90deg, rgba(0,0,0,.06), transparent 12%, transparent 88%, rgba(0,0,0,.08)),
    var(--kraft);
  border-radius: 14px 14px 10px 10px;
  box-shadow: 0 30px 50px -25px rgba(40, 20, 10, .55), inset 0 -10px 20px rgba(0,0,0,.05);
  padding: 13% 9% 8%; color: #1d1a17; font-family: "Poppins", system-ui, sans-serif;
  overflow: hidden; isolation: isolate;
  transition: transform .7s cubic-bezier(.2,.7,.1,1);
}
.pouch::before { /* zip seal */
  content: ""; position: absolute; left: 0; right: 0; top: 5%; height: 3px;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 4px, transparent 4px 7px);
}
.pouch__logo { width: 62%; display: block; }
.pouch__tag { display: block; font-size: .42rem; letter-spacing: .22em; text-transform: uppercase; margin-top: 4px; color: #5a534b; }
.pouch__kicker { display: block; font-size: .46rem; letter-spacing: .18em; text-transform: uppercase; margin-top: 16%; }
.pouch__name { display: block; font-size: 2.2rem; line-height: .92; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; margin-top: 4px; }
.pouch__stats { display: flex; gap: 8px; margin-top: 10%; }
.pouch__stats span { display: grid; font-size: .38rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.25; color: #3b352f; padding-right: 8px; border-right: 1px solid rgba(0,0,0,.25); }
.pouch__stats span:last-child { border: 0; }
.pouch__stats b { font-size: .95rem; letter-spacing: 0; color: #1d1a17; }
.pouch__flavour { display: inline-block; margin-top: 9%; background: #5a3020; color: #f4e7dc; font-size: .45rem; letter-spacing: .24em; text-transform: uppercase; padding: 3px 10px; }
.pouch__swirl {
  position: absolute; right: -6%; top: 14%; width: 46%; height: 78%; z-index: -1;
  background:
    radial-gradient(circle at 70% 18%, #6b3a24 0 7%, transparent 7.5%),
    radial-gradient(circle at 30% 72%, #4a2416 0 6%, transparent 6.5%),
    radial-gradient(ellipse 30% 60% at 50% 50%, #7a4029, transparent 70%);
  filter: blur(.3px);
}
.pouch__swirl::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 20%, #8a4a2e 35%, #4a2416 50%, #a35d3a 62%, transparent 78%);
  border-radius: 50% 40% 60% 30% / 30% 60% 40% 70%;
  transform: rotate(-12deg) scaleX(.7); opacity: .9;
}
.pouch__swirl::after { /* chocolate pieces */
  content: ""; position: absolute; width: 22%; aspect-ratio: 1; left: 18%; top: 38%; border-radius: 3px;
  background: linear-gradient(135deg, #6b3a24, #3a1c10); transform: rotate(24deg);
  box-shadow: 18px -48px 0 -3px #5a2f1d, -6px 60px 0 -5px #4a2416;
}
.pouch-wrap:hover .pouch, .pouch:hover { transform: rotate(-3deg) translateY(-6px); }

/* Generic product frame for photo-based pipeline items */
.pipe__visual { display: grid; place-items: center; border-radius: 16px; overflow: hidden; aspect-ratio: 1; margin: 14px 0 12px; }
.pipe__visual--cream { background: #e6f7f3; }
.pipe__visual--cream img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.1,1); }
.pipe:hover .pipe__visual--cream img { transform: scale(1.05); }
.pipe__visual--pouch { background: linear-gradient(160deg, #d9d4cc, #b9b2a8); padding: 9% 0 6%; }
.pipe__visual--soon {
  background:
    radial-gradient(circle at 70% 30%, #ffe9a8 0 18%, #ffc35a 19% 26%, transparent 27%),
    linear-gradient(170deg, #ffd7a0, #ff9fc8 55%, #b98cff);
  position: relative;
}
.pipe__visual--soon span { font-family: "JetBrains Mono", monospace; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; background: rgba(21,12,34,.55); padding: 6px 12px; border-radius: 999px; align-self: end; margin-bottom: 14px; }
.pipe__brand { font-size: .8rem; font-weight: 600; letter-spacing: .02em; }

/* keep the pouch typography when a page styles every <b> in a list */
.pouch b.pouch__name { font-family: "Poppins", system-ui, sans-serif; font-size: 2.2rem; line-height: .92; font-weight: 800; }
.pouch .pouch__stats b { font-family: "Poppins", system-ui, sans-serif; font-size: .95rem; font-weight: 700; line-height: 1.1; }

/* rendered 3D pouch (tools/pouch) */
.pipe__visual--pouch { padding: 6% 0 2%; background: radial-gradient(70% 60% at 50% 45%, #f1eeea, #cfc9c0); }
.pipe__visual--pouch .pouch-img { width: 78%; height: auto; aspect-ratio: auto; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(40,25,15,.25)); transition: transform .8s cubic-bezier(.2,.7,.1,1); }
.pipe:hover .pouch-img, .nextcard:hover .pouch-img { transform: rotate(-3deg) translateY(-6px); }

/* live 3D pouch (assets/ventures/pouch3d.js) */
.pipe__visual--pouch { position: relative; }
.pipe__visual--pouch iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; opacity: 0; transition: opacity .8s ease; }
.pipe__visual--pouch.is-3d iframe { opacity: 1; }
.pipe__visual--pouch.is-3d .pouch-img { opacity: 0; transition: opacity .6s ease; }
.pouch3d__chip {
  position: absolute; left: 50%; bottom: 10px; translate: -50% 0; z-index: 2; pointer-events: none;
  font: 500 .66rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: rgba(21,12,34,.62); padding: 7px 12px; border-radius: 999px;
  animation: pouchChip 4s ease forwards;
}
.pouch3d__chip::before { content: "↔ "; }
@keyframes pouchChip { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
