/* The collaboration stage shares the existing feature tabs. */
.feature-stage {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  gap: clamp(20px, 3vw, 50px);
  padding-block: 40px;
}
.feature-panels { width: 100%; min-width: 0; }
.feature-panel h3 { font-size: clamp(28px, 3.35vw, 56px); white-space: normal; }
.feature-description { font-size: clamp(15px, 1.35vw, 22px); }
.feature-art.collab-visual {
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
  min-width: 0;
  aspect-ratio: 6 / 5;
  margin: 0;
  transform: none;
  pointer-events: auto;
  isolation: isolate;
  container-type: inline-size;
}
.collab-visual::before {
  content: "";
  position: absolute;
  inset: 8% -4% 4%;
  z-index: -2;
  background: radial-gradient(ellipse at 50% 48%, #ff4a2620, #ff4a2608 44%, transparent 70%);
  pointer-events: none;
}
.collab-grid {
  position: absolute;
  inset: 9% 0 11%;
  z-index: -2;
  background-image: linear-gradient(#ffa88d09 1px, transparent 1px), linear-gradient(90deg, #ffa88d09 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse, #000 24%, transparent 72%);
  pointer-events: none;
}
.feature-art .collab-orbit {
  position: absolute;
  inset: 12% 14% auto;
  width: 72%;
  height: auto;
  opacity: .17;
  mix-blend-mode: screen;
  transform: rotate(-15deg);
  transition: none;
  mask-image: radial-gradient(ellipse, #000 42%, transparent 70%);
  pointer-events: none;
}
.collab-eyebrow {
  position: absolute;
  left: 5%;
  top: 4%;
  display: flex;
  align-items: center;
  gap: 9px;
  font: 10px/1.5 Arial, sans-serif;
  letter-spacing: .19em;
  color: #b29588;
}
.collab-eyebrow > span { width: 5px; height: 5px; border-radius: 50%; background: #ff7148; box-shadow: 0 0 10px #ff663b99; }
.collab-network { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.collab-orbit-line { stroke: #ff84541c; stroke-width: 1; }
.collab-orbit-line-inner { stroke: #ff845413; stroke-dasharray: 2 8; }
.collab-wire { stroke: #fa77584f; stroke-width: 1.2; transition: stroke .3s, stroke-width .3s; }
.collab-flow {
  stroke: #ffa37e;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 3 97;
  filter: drop-shadow(0 0 4px #ff572f);
  animation: collab-signal 4.5s linear infinite;
}
.collab-link--procurement .collab-flow { animation-delay: -1.1s; }
.collab-link--warehouse .collab-flow { animation-delay: -2.2s; }
.collab-link--finance .collab-flow { animation-delay: -3.3s; }
.collab-sparks { fill: #ff9b6c; opacity: .6; animation: collab-spark 4s ease-in-out infinite; }
.collab-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.collab-core-halo {
  position: absolute;
  inset: -16%;
  border: 1px solid #ff774c35;
  border-radius: 50%;
  box-shadow: 0 0 36px #ff5a2712, inset 0 0 24px #ff5a2715;
  animation: collab-breathe 5s ease-in-out infinite;
}
.collab-core-halo::after { content: ""; position: absolute; inset: -10%; border: 1px solid #ff774c15; border-radius: 50%; }
.collab-core-face {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #ee957966;
  border-radius: 25%;
  background: linear-gradient(135deg, #602c20 0%, #281914 40%, #140e0c 100%);
  box-shadow: inset 0 1px 1px #ffc4ac38, 0 18px 36px #0008, 0 0 55px #f847272b;
}
.feature-art .collab-core-face img {
  width: 43%;
  height: auto;
  object-fit: contain;
  mask-image: none;
  transform: none;
  transition: none;
  filter: drop-shadow(0 4px 12px #ff572f4d);
}
.collab-core-face strong { font-size: clamp(12px, 2.8cqw, 21px); font-weight: 600; white-space: nowrap; letter-spacing: -.035em; }
.collab-core-face > span { font-size: clamp(8px, 1.65cqw, 12px); letter-spacing: .16em; color: #bf9b8d; }
.collab-role {
  position: absolute;
  z-index: 3;
  width: 31%;
  padding: 0;
  background: transparent;
  border-radius: 18px;
  transform: translate(-50%, -50%);
  text-align: left;
}
.collab-role--operations { left: 18%; top: 26%; }
.collab-role--procurement { left: 82%; top: 30%; --float-delay: -1.5s; }
.collab-role--warehouse { left: 16%; top: 70%; --float-delay: -3s; }
.collab-role--finance { left: 84%; top: 74%; --float-delay: -4.5s; }
.collab-role-face {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(7px, 2cqw, 13px);
  padding: clamp(10px, 2.5cqw, 18px);
  border: 1px solid #89675654;
  border-radius: inherit;
  background: linear-gradient(125deg, #302924ed, #171514ed 65%);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 #ffffff0b, 0 12px 28px #0008;
  animation: collab-float 6s var(--float-delay, 0s) ease-in-out infinite;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.collab-role-icon {
  width: clamp(26px, 7.5cqw, 46px);
  height: clamp(26px, 7.5cqw, 46px);
  padding: clamp(4px, 1cqw, 7px);
  border-radius: 9px;
  background: #ff8c5d0c;
  color: #cfad9d;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color .3s, background .3s;
}
.collab-role-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.collab-role-name strong { font-size: clamp(14px, 3cqw, 22px); font-weight: 500; line-height: 1.3; white-space: nowrap; }
.collab-role-name > span { font: clamp(8px, 1.6cqw, 11px)/1.4 Arial, sans-serif; color: #a28d81; letter-spacing: .02em; }
.collab-role-face > i { position: absolute; top: 9px; right: 10px; width: 3px; height: 3px; border-radius: 50%; background: #bb8771; transition: background .3s, box-shadow .3s; }
.collab-role[aria-pressed="true"] .collab-role-face,
.collab-role:focus-visible .collab-role-face {
  border-color: #ff9a6ec9;
  background: linear-gradient(125deg, #593125f5, #211713f5 75%);
  box-shadow: inset 0 1px 0 #ffd1af26, 0 14px 30px #0008, 0 0 30px #ff632122;
}
.collab-role[aria-pressed="true"] .collab-role-icon,
.collab-role:focus-visible .collab-role-icon { color: #ffb892; background: #ff8c5d17; }
.collab-role[aria-pressed="true"] i,
.collab-role:focus-visible i { background: #ffc694; box-shadow: 0 0 9px #ff8c5d; }
.collab-visual[data-active-role="operations"] .collab-link--operations,
.collab-visual[data-active-role="procurement"] .collab-link--procurement,
.collab-visual[data-active-role="warehouse"] .collab-link--warehouse,
.collab-visual[data-active-role="finance"] .collab-link--finance { --wire-color: #ffa175; --wire-width: 2; }
.collab-link .collab-wire { stroke: var(--wire-color, #fa77584f); stroke-width: var(--wire-width, 1.2); }
.collab-footer { position: absolute; inset: auto 0 0; text-align: center; }
.collab-caption { font-size: clamp(12px, 2.5cqw, 17px); color: #c7b7ae; line-height: 1.8; letter-spacing: .03em; }
.collab-hint { display: block; color: #8f8076; font-size: clamp(10px, 1.8cqw, 12px); line-height: 1.8; margin-top: 3px; }
@media (hover: hover) and (pointer: fine) {
  .collab-role:hover .collab-role-face { border-color: #ff9a6ec9; background: linear-gradient(125deg, #593125f5, #211713f5 75%); box-shadow: inset 0 1px 0 #ffd1af26, 0 14px 30px #0008, 0 0 30px #ff632122; }
  .collab-role:hover .collab-role-icon { color: #ffb892; background: #ff8c5d17; }
  .collab-role:hover i { background: #ffc694; box-shadow: 0 0 9px #ff8c5d; }
  .collab-visual:has(.collab-role--operations:hover) .collab-link--operations,
  .collab-visual:has(.collab-role--procurement:hover) .collab-link--procurement,
  .collab-visual:has(.collab-role--warehouse:hover) .collab-link--warehouse,
  .collab-visual:has(.collab-role--finance:hover) .collab-link--finance { --wire-color: #ffa175; --wire-width: 2; }
}
.collab-visual.is-suspended *, .collab-visual.is-suspended *::after { animation-play-state: paused; }
@keyframes collab-signal { to { stroke-dashoffset: -100; } }
@keyframes collab-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes collab-breathe { 0%, 100% { opacity: .5; transform: scale(.98); } 50% { opacity: 1; transform: scale(1.03); } }
@keyframes collab-spark { 0%, 100% { opacity: .35; } 50% { opacity: .8; } }
@media (max-width: 1000px) {
  .feature-stage { grid-template-columns: .9fr 1.1fr; gap: 20px; }
  .feature-panel h3 { font-size: clamp(26px, 3.5vw, 35px); }
  .feature-description { font-size: 14px; }
  .collab-core-face { gap: 4px; }
  .collab-role { border-radius: 13px; }
}
@media (max-width: 700px) {
  .feature-stage { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 32px 30px; }
  .feature-panel h3 { font-size: clamp(28px, 7vw, 40px); }
  .feature-description { font-size: 14px; }
  .feature-art.collab-visual { max-width: 500px; justify-self: center; }
  .collab-eyebrow { font-size: 9px; }
  .collab-role { border-radius: 12px; }
}
@media (max-width: 360px) {
  .collab-role-face { gap: 5px; padding: 9px 7px; }
  .collab-role-icon { width: 24px; height: 24px; }
  .collab-role-name > span { font-size: 7px; }
  .collab-core-face > span { font-size: 7px; }
  .collab-caption { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .collab-visual *, .collab-visual *::after { animation: none !important; transition: none !important; }
  .collab-flow { stroke-dasharray: none; opacity: .35; }
}
