/* Benjineering Labs · the studio opening */

/* ---------- the stage ---------- */
.studio {
  position: relative;
  margin: 8px;
  height: calc(100svh - 16px);
  min-height: 600px;
  max-height: 1100px;
  border-radius: 22px;
  overflow: hidden;
  background: #0b0d12;
  color: #fff;
  isolation: isolate;
}
.studio-scene, .glass-under {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.studio-scene { opacity: 0; transition: opacity 1.2s ease; }
.studio.is-ready .studio-scene { opacity: 1; }
.studio-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 60% 45%, transparent 55%, rgb(5 6 9 / 0.55) 100%),
    linear-gradient(to top, rgb(6 7 10 / 0.78) 0%, rgb(6 7 10 / 0.25) 34%, transparent 52%),
    linear-gradient(to right, rgb(6 7 10 / 0.5) 0%, transparent 46%);
}
.studio-grain {
  position: absolute;
  inset: -50%;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { .studio-grain { animation: none; } }
/* Phones: a still grain without blending, so the studio repaints cheaply. */
@media (max-width: 880px), (pointer: coarse) { .studio-grain { animation: none; mix-blend-mode: normal; opacity: 0.05; inset: 0; } }

.studio-copy {
  position: absolute;
  left: clamp(20px, 3.4vw, 48px);
  bottom: clamp(24px, 4vw, 52px);
  max-width: min(760px, 62%);
  z-index: 2;
}
.studio-copy h1 {
  font: 500 clamp(52px, 8vw, 122px)/0.9 "Inter", sans-serif;
  letter-spacing: -0.048em;
  text-wrap: balance;
}
.studio-copy h1 em.accent { font-size: 1.08em; letter-spacing: -0.02em; padding-right: 0.06em; }
.studio-copy p {
  margin-top: clamp(16px, 2vw, 24px);
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: rgb(255 255 255 / 0.74);
  text-wrap: pretty;
}
.studio-copy .rise { opacity: 0; transform: translateY(18px); animation: rise 0.9s cubic-bezier(.2,.7,.2,1) forwards; }
.studio-copy .rise:nth-child(2) { animation-delay: 0.12s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.now-card {
  position: absolute;
  right: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.6vw, 34px);
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: center;
  width: 286px;
  padding: 14px 16px 14px 14px;
  border-radius: 20px;
  text-decoration: none;
}
.now-card img { width: 46px; height: 46px; border-radius: 11px; grid-row: span 3; box-shadow: 0 4px 14px rgb(0 0 0 / 0.35); }
.now-card img[hidden] { display: none; }
.now-card img[hidden] ~ * { grid-column: 1 / -1; }
.now-card .k { font: 500 12px/1.3 "Inter", sans-serif; color: rgb(255 255 255 / 0.62); }
.now-card .n { font: 500 17px/1.25 "Inter", sans-serif; letter-spacing: -0.015em; }
.now-card .l { font: 400 13px/1.4 "Inter", sans-serif; color: rgb(255 255 255 / 0.7); }
.now-card > * { transition: opacity 0.26s ease, transform 0.26s ease; }
.now-card.is-swapping > * { opacity: 0; transform: translateY(4px); }


/* ---------- small screens ---------- */
@media (max-width: 880px) {
  .studio-copy p { font-size: 15px; }
  .studio-copy { max-width: none; right: 20px; bottom: 132px; }
  .now-card { left: 16px; right: 16px; width: auto; }
}
@media (max-width: 560px) {
  .studio { margin: 6px; height: calc(100svh - 12px); border-radius: 18px; }
}
