.josh-bg-section {
  background-image:
    radial-gradient(circle at 78% 42%, rgba(192, 160, 128, 0.12), transparent 28rem),
    linear-gradient(90deg, rgba(7, 7, 7, 0.96) 0%, rgba(7, 7, 7, 0.82) 42%, rgba(7, 7, 7, 0.58) 72%, rgba(7, 7, 7, 0.88) 100%),
    linear-gradient(180deg, rgba(7, 7, 7, 0.9) 0%, transparent 34%, rgba(7, 7, 7, 0.9) 100%);
  background-position: center right, center, center;
  background-repeat: no-repeat;
  background-size: cover;
}

.josh-bg-section--working {
  background-image:
    linear-gradient(90deg, rgba(7, 7, 7, 0.96) 0%, rgba(7, 7, 7, 0.82) 34%, rgba(7, 7, 7, 0.54) 66%, rgba(7, 7, 7, 0.9) 100%),
    linear-gradient(180deg, rgba(7, 7, 7, 0.88) 0%, rgba(7, 7, 7, 0.46) 45%, rgba(7, 7, 7, 0.96) 100%),
    url("/assets/working-equity-advisory.png?v=20260521-section-bg") !important;
  background-position: center, center, center 42% !important;
  background-repeat: no-repeat;
  background-size: cover;
}

.josh-bg-section--working::before,
.josh-bg-section--working::after {
  content: none !important;
  display: none !important;
}

.josh-bg-section--working > * {
  position: relative;
  z-index: 3;
}

.josh-bg-section--working [style*="opacity"],
.josh-bg-section--working [style*="transform"] {
  opacity: 1 !important;
  transform: none !important;
}

.josh-bg-section > .absolute.inset-0.opacity-15,
.experience-refined.josh-bg-section--experience > .absolute.inset-0.opacity-15 {
  display: none !important;
}

.engagement-card {
  display: flex;
  flex-direction: column;
  min-height: 25rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(192, 160, 128, 0.18) !important;
  border-radius: 0.85rem !important;
  background: rgba(16, 15, 14, 0.78) !important;
  box-shadow: none !important;
}

.engagement-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.engagement-card > * {
  position: relative;
  z-index: 1;
}

.engagement-card a {
  margin-top: auto;
  border-radius: 0.65rem !important;
  box-shadow: none !important;
}

.engagement-primary {
  border-color: rgba(192, 160, 128, 0.42) !important;
  background: rgba(22, 20, 18, 0.9) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26) !important;
}

.engagement-primary::before {
  border-top-color: rgba(192, 160, 128, 0.24);
}

.engagement-primary h3 {
  max-width: 24rem;
}

.engagement-card:not(.engagement-primary) {
  min-height: 25rem;
}

.engagement-card:not(.engagement-primary) a {
  background: rgba(192, 160, 128, 0.13) !important;
  color: #c0a080 !important;
}

.engagement-quiet {
  opacity: 0.72 !important;
  background: rgba(10, 10, 10, 0.52) !important;
}

.engagement-quiet a {
  border-color: rgba(192, 160, 128, 0.2) !important;
  background: transparent !important;
}

.engagement-reduced {
  align-items: stretch;
}

.engagement-reduced .engagement-primary {
  order: 0;
}

.engagement-reduced .engagement-card:not(.engagement-primary) {
  order: 1;
}

.journal-ticker-window {
  cursor: default;
}

.journal-ticker-track {
  will-change: transform;
  animation: journal-ticker 42s ease-in-out infinite alternate;
}

.journal-ticker-card {
  transform: translateZ(0);
}

@keyframes journal-ticker {
  from {
    transform: translate3d(calc(min(100vw, 68rem) - 100%), 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .journal-ticker-track {
    animation: none;
    transform: translate3d(0, 0, 0);
  }
}

@media (min-width: 768px) {
  .engagement-primary {
    grid-column: span 2 / span 2;
  }

  .engagement-reduced .engagement-quiet {
    grid-column: span 2 / span 2;
  }
}

@media (min-width: 1024px) {
  .engagement-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    align-items: stretch;
  }

  .engagement-card {
    padding: 1.35rem !important;
    min-height: clamp(23rem, 29vw, 27rem) !important;
  }

  .engagement-card h3 {
    margin-bottom: 0.75rem !important;
    font-size: clamp(1.35rem, 1.5vw, 1.86rem) !important;
    line-height: 1.12 !important;
  }

  .engagement-card p:first-child {
    margin-bottom: 0.75rem !important;
  }

  .engagement-card p:nth-of-type(2) {
    margin-bottom: 1rem !important;
    line-height: 1.45 !important;
  }

  .engagement-card a {
    padding-top: 0.8rem !important;
    padding-bottom: 0.8rem !important;
  }

  .engagement-primary {
    grid-column: auto !important;
    grid-row: auto !important;
    padding: 1.45rem !important;
    box-shadow: none !important;
  }

  .engagement-quiet {
    grid-column: auto;
  }

  .engagement-reduced {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }

  .engagement-reduced .engagement-primary {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .engagement-reduced .engagement-card:not(.engagement-primary) {
    min-height: clamp(23rem, 29vw, 27rem);
  }

  .engagement-reduced .engagement-quiet {
    grid-column: auto !important;
  }
}

@media (min-width: 1280px) {
  .engagement-grid {
    gap: 1rem !important;
  }

  .engagement-card {
    padding: 1.45rem !important;
  }

  .engagement-primary {
    padding: 1.85rem !important;
  }
}

@media (max-width: 720px) {
  .engagement-card {
    border-radius: 0.8rem !important;
    min-height: 27rem;
  }

  .engagement-card a {
    border-radius: 0.6rem !important;
  }

  .josh-bg-section--working {
    background-image:
      linear-gradient(180deg, rgba(7, 7, 7, 0.9) 0%, rgba(7, 7, 7, 0.7) 40%, rgba(7, 7, 7, 0.97) 100%),
      linear-gradient(90deg, rgba(7, 7, 7, 0.94) 0%, rgba(7, 7, 7, 0.66) 100%),
      url("/assets/working-equity-advisory.png?v=20260521-section-bg") !important;
    background-position: center, center, 48% top !important;
  }
}
