.hero.collection-masthead {
  --masthead-text: #f1f5fc;
  --masthead-muted: #afbbce;
  --masthead-surface: #141e2d;
  --masthead-line: #304058;
  --accent: #a6d2fd;
  padding-block: clamp(25px, 3.25vw, 46px) clamp(18px, 2.3vw, 34px);
  text-align: start;
}

.collection-masthead .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .58fr);
  align-items: center;
  gap: clamp(24px, 4vw, 62px);
}

.collection-masthead__content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero.collection-masthead h1 {
  color: var(--masthead-text);
  font-size: clamp(2.45rem, 4.4vw, 4.3rem);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.collection-masthead .hero-description {
  max-width: 34em;
  margin-top: clamp(8px, 1.2vw, 16px);
  color: var(--masthead-muted);
  line-height: 1.65;
  text-wrap: pretty;
}

.collection-masthead .search-area {
  width: min(100%, 400px);
  margin-top: clamp(16px, 1.8vw, 24px);
}

.collection-masthead .search-form {
  min-height: 46px;
  border-color: var(--masthead-line);
  border-radius: 12px;
  background: var(--masthead-surface);
}

.collection-masthead .search-symbol { color: var(--masthead-muted); }
.collection-masthead .search-form:focus-within { border-color: var(--accent); }

.collection-masthead .collection-links {
  justify-content: flex-start;
  align-items: center;
  gap: 4px 15px;
  margin-top: 13px;
}

.collection-masthead .collection-links .text-link { min-height: 44px; }

.collection-masthead .collection-links :is([href="#ui-gallery"], #workspace-gallery-link) {
  padding-inline: 12px;
  border: 1px solid var(--masthead-line);
  border-radius: 11px;
  color: var(--masthead-text);
  font-weight: 620;
}

.collection-masthead .collection-links a[href="#ui-gallery"]::after {
  width: 7px;
  height: 7px;
  margin-inline: 2px 1px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  content: '';
}

.collection-masthead .collection-links :is([href="#ui-gallery"], #workspace-gallery-link):hover {
  border-color: #8caed5;
  color: var(--accent);
}

.collection-masthead__artwork {
  justify-self: end;
  display: grid;
  justify-items: end;
  width: 100%;
  max-width: 378px;
  height: clamp(150px, 14vw, 217px);
  padding: 9px 12px;
  overflow: hidden;
  border: 1px solid var(--masthead-line);
  border-radius: 16px;
  background: radial-gradient(ellipse at 72% 55%, #20334b, #0c1421 78%);
}

.collection-masthead__artwork img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

@media (max-width: 740px) {
  .hero.collection-masthead { padding-block: 23px 17px; }

  .collection-masthead .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 23px;
  }

  .hero.collection-masthead h1 { font-size: clamp(2.25rem, 8vw, 3.1rem); }
  .collection-masthead__artwork { display: none; }
}
