/* Studio bento and the networks block, with IguanaGift presented as one of the house. */
.studio {
  padding-top: 150px;
}
.studio .section-head h2 {
  margin-top: 4px;
}
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
}
.motion .bento-card.is-in {
  transition:
    transform 500ms var(--ease-out),
    box-shadow 500ms var(--ease-out);
}
.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -36px rgba(25, 28, 26, 0.4);
}
.bento-card h3 {
  margin-top: 6px;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.bento-card p {
  max-width: 360px;
  font-size: 15px;
  color: var(--color-text-muted);
}
.bento-wide {
  grid-column: span 2;
}
.bento-full {
  grid-column: 1 / -1;
}
.bento-wide,
.bento-full {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 32px;
}
.bento-copy {
  display: grid;
  gap: 12px;
}

.fan-art {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.fan-source {
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--flow-ink);
  color: var(--flow-paper);
  font-family: var(--font-heading);
  font-size: 17px;
  white-space: nowrap;
}
.fan-lines {
  width: 100%;
  min-width: 60px;
  height: 220px;
  stroke: var(--color-logo);
  stroke-width: 1.5;
}
.fan-lines path {
  stroke-dasharray: 1;
}
.motion .bento-fan:not(.is-in) .fan-lines path {
  stroke-dashoffset: 1;
}
.motion .bento-fan.is-in .fan-lines path {
  stroke-dashoffset: 1;
  animation: draw 1.2s 400ms var(--ease-out) forwards;
}
.fan-nets {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fan-nets li {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  font-size: 13px;
  font-weight: 600;
}
.fan-nets .is-iguana {
  border-color: rgba(103, 63, 180, 0.3);
  background: var(--iguana-soft);
  color: var(--iguana);
}
.motion .bento-fan.is-in .fan-nets li {
  animation: fade-up 600ms var(--ease-out) both;
}
.motion .bento-fan.is-in .fan-nets li:nth-child(1) { animation-delay: 900ms; }
.motion .bento-fan.is-in .fan-nets li:nth-child(2) { animation-delay: 980ms; }
.motion .bento-fan.is-in .fan-nets li:nth-child(3) { animation-delay: 1060ms; }
.motion .bento-fan.is-in .fan-nets li:nth-child(4) { animation-delay: 1140ms; }
.motion .bento-fan.is-in .fan-nets li:nth-child(5) { animation-delay: 1220ms; }

.auto-art,
.chat-art,
.week-art,
.inbox-art {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}
.auto-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--color-bg);
  font-size: 13px;
  font-weight: 600;
}
.auto-row--muted {
  color: var(--color-text-muted);
  font-weight: 500;
}
.toggle {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 99px;
  background: var(--color-brand);
}
.toggle i {
  position: absolute;
  top: 3px;
  left: 21px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}
.motion .bento-auto.is-in .toggle {
  animation: toggle-track 4.8s 1s ease-in-out infinite;
}
.motion .bento-auto.is-in .toggle i {
  animation: toggle-knob 4.8s 1s ease-in-out infinite;
}
@keyframes toggle-track {
  0%, 45%, 100% { background: var(--color-brand); }
  50%, 95% { background: var(--color-border-strong); }
}
@keyframes toggle-knob {
  0%, 45%, 100% { left: 21px; }
  50%, 95% { left: 3px; }
}
.auto-chip {
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--color-success-soft);
  color: var(--color-success-ink);
  font-size: 11px;
}

.bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.4;
}
.bubble-you {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: var(--flow-ink);
  color: var(--flow-paper);
}
.bubble-agent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border-bottom-left-radius: 4px;
  background: var(--tone-soft);
  color: var(--tone-ink);
}
.bubble-agent .face {
  margin-top: -1px;
}
.motion .bento-chat.is-in .bubble {
  animation: fade-up 600ms var(--ease-out) both;
}
.motion .bento-chat.is-in .bubble-you {
  animation-delay: 500ms;
}
.motion .bento-chat.is-in .bubble-agent {
  animation-delay: 1300ms;
}

.week-art {
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.week-art > span {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 6px;
  min-height: 96px;
  padding: 10px 0;
  border-radius: 12px;
  background: var(--color-bg);
}
.week-art b {
  font-size: 11px;
  color: var(--color-text-muted);
}
.week-art i {
  width: 70%;
  height: 12px;
  border-radius: 99px;
  background: var(--tone);
}
.motion .bento-calendar.is-in .week-art i {
  animation: pop 500ms var(--ease-spring) both;
  animation-delay: calc(400ms + var(--i, 0) * 70ms);
}

.inbox-art > span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--color-bg);
  font-size: 13px;
}
.inbox-art b {
  font-weight: 500;
}
.motion .bento-inbox.is-in .inbox-art > span {
  animation: inbox-in 700ms var(--ease-out) both;
}
.motion .bento-inbox.is-in .inbox-art > span:nth-child(2) { animation-delay: 200ms; }
.motion .bento-inbox.is-in .inbox-art > span:nth-child(3) { animation-delay: 400ms; }
@keyframes inbox-in {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
}

.video-art {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2.4fr 1fr;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: var(--color-stage);
}
.video-clip {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  height: 120px;
  border-radius: 12px;
  color: var(--stage-text);
  font-size: 13px;
  font-weight: 600;
}
.video-clip--intro {
  background: #4d6654;
}
.video-clip--outro {
  background: #7a4a72;
}
.video-clip--main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}
.video-clip--main {
  isolation: isolate;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.video-clip--main img {
  z-index: -1;
}
.video-playhead {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 18px;
  width: 2px;
  border-radius: 2px;
  background: #f2967d;
  box-shadow: 0 0 0 4px rgba(242, 150, 125, 0.2);
}
.motion .bento-video.is-in .video-playhead {
  animation: playhead 6s 600ms linear infinite;
}
@keyframes playhead {
  from {
    left: 18px;
  }
  to {
    left: calc(100% - 20px);
  }
}

/* Networks. */
.networks {
  padding: 40px 0 160px;
}
.net-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.net-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 230px;
  padding: 28px 24px;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  background: var(--color-surface);
}
.motion .net-tile.is-in {
  transition:
    transform 500ms var(--ease-out),
    border-color 300ms;
}
.net-tile:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-strong);
}
.net-tile img {
  margin-bottom: auto;
}
.net-tile h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.net-tile p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text-muted);
}
.net-tile--iguana {
  border-color: rgba(103, 63, 180, 0.28);
  background: var(--iguana-soft);
}
.net-tile--iguana h3 {
  color: var(--iguana);
}
.net-tile--iguana img {
  border-radius: 10px;
}
.net-badge {
  position: absolute;
  top: 22px;
  right: 20px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--iguana);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.iguana-spot {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 36px;
  margin-top: 20px;
  padding: 30px 44px;
  border: 1px solid rgba(103, 63, 180, 0.22);
  border-radius: 28px;
  background: #fff;
}
.iguana-mascot {
  width: 150px;
  translate: 0 var(--shift, 0px);
}
.motion .iguana-spot.is-in .iguana-mascot {
  animation: float 6s ease-in-out infinite;
}
.iguana-spot .eyebrow {
  color: var(--iguana);
}
.iguana-spot h3 {
  margin: 10px 0 8px;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.025em;
  color: #2e1a57;
}
.iguana-spot p:last-child {
  max-width: 640px;
  color: var(--color-text-muted);
}
