/* Shared white Demo Lab identity bar for standalone proof demos. */

.portfolio-ecosystem {
  position: sticky;
  top: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2.4vw, 34px);
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 72px);
  color: #172522;
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.96), rgba(250, 251, 247, 0.92)),
    radial-gradient(circle at 7% 50%, rgba(183, 202, 161, 0.2), transparent 28%),
    radial-gradient(circle at 92% 45%, rgba(204, 154, 70, 0.14), transparent 24%);
  border-bottom: 1px solid rgba(23, 37, 34, 0.08);
  box-shadow: 0 18px 46px rgba(23, 37, 34, 0.08);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.portfolio-ecosystem,
.portfolio-ecosystem * {
  box-sizing: border-box;
}

.portfolio-ecosystem a {
  color: inherit;
  text-decoration: none;
}

.portfolio-ecosystem__brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.portfolio-ecosystem__brand:hover,
.portfolio-ecosystem__brand:focus-visible {
  opacity: 0.9;
  transform: translateY(-1px);
}

.portfolio-ecosystem__photo {
  display: block;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  object-fit: cover;
  object-position: center;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  box-shadow:
    0 12px 28px rgba(23, 37, 34, 0.13),
    0 0 0 1px rgba(23, 37, 34, 0.1);
}

.portfolio-ecosystem__brand span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.portfolio-ecosystem__brand strong,
.portfolio-ecosystem__brand small {
  display: block;
  overflow: hidden;
  max-width: min(52vw, 520px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-ecosystem__brand strong {
  color: #172522;
  font-size: clamp(1rem, 1.1vw, 1.24rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.02;
}

.portfolio-ecosystem__brand small {
  color: rgba(60, 78, 80, 0.76);
  font-size: clamp(0.78rem, 0.78vw, 0.9rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.18;
}

.portfolio-ecosystem__links {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.5vw, 22px);
}

.portfolio-ecosystem__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 2px;
  color: rgba(54, 71, 75, 0.86);
  border-radius: 12px;
  font-size: clamp(0.9rem, 0.9vw, 1rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.portfolio-ecosystem__links a:hover,
.portfolio-ecosystem__links a:focus-visible {
  color: #172522;
  background: rgba(23, 37, 34, 0.055);
  transform: translateY(-1px);
}

.portfolio-ecosystem__support {
  min-height: 48px !important;
  padding: 0 18px !important;
  color: #ffffff !important;
  background:
    linear-gradient(135deg, #0d4c3d 0%, #159163 52%, #4fc878 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 12px !important;
  box-shadow:
    0 18px 42px rgba(15, 145, 99, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.portfolio-ecosystem__support:hover,
.portfolio-ecosystem__support:focus-visible {
  color: #ffffff !important;
  background:
    linear-gradient(135deg, #083d31 0%, #0fa36a 48%, #73df96 100%) !important;
  box-shadow:
    0 22px 54px rgba(15, 145, 99, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.portfolio-ecosystem ~ .site-header {
  top: 92px !important;
}

@media (max-width: 760px) {
  .portfolio-ecosystem {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 12px 14px 14px;
  }

  .portfolio-ecosystem__brand {
    width: 100%;
  }

  .portfolio-ecosystem__photo {
    width: 44px;
    height: 44px;
    border-width: 2px;
  }

  .portfolio-ecosystem__brand strong,
  .portfolio-ecosystem__brand small {
    max-width: calc(100vw - 96px);
  }

  .portfolio-ecosystem__links {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .portfolio-ecosystem__links a {
    flex: 1 1 auto;
    min-height: 38px;
    padding: 9px 8px;
    font-size: 0.86rem;
    background: rgba(23, 37, 34, 0.045);
  }

  .portfolio-ecosystem__support {
    flex: 1.25 1 auto;
    min-height: 40px !important;
    padding-inline: 10px !important;
  }

  .portfolio-ecosystem ~ .site-header {
    top: 12px !important;
  }
}

@media (max-width: 430px) {
  .portfolio-ecosystem__brand small {
    white-space: normal;
  }

  .portfolio-ecosystem__links {
    display: grid;
    grid-template-columns: minmax(74px, 0.78fr) minmax(132px, 1.22fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-ecosystem__brand,
  .portfolio-ecosystem__links a {
    transition: none;
  }
}
