.reference-crew {
  display: block;
  position: relative;
  isolation: isolate;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1579 / 510;
  background: #0b0b0d;
  outline: 1px solid transparent;
  outline-offset: -2px;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), outline-color .3s, box-shadow .3s;
  animation: card-in .5s cubic-bezier(.2,.7,.3,1) backwards;
}
.reference-crew:hover {
  transform: translateY(-6px);
  outline-color: #f0c65c;
  box-shadow: 0 22px 44px -22px #f0c65c80;
}
.reference-crew .crew-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Show only the Crew panel of the original 1672 × 940 image.
     The visible panel is x=45, y=353, width=1579, height=510. */
  background-position: 48.387% 82.093%;
  background-size: 105.89% auto;
  background-repeat: no-repeat;
}
.reference-crew .crew-visual[data-background-ready] {
  background-image: url('../assets/crew-optimized-1672.webp');
}
.reference-crew .crew-visual::after {
  content: '';
  position: absolute;
  inset: 5% 12px;
  background: linear-gradient(to right, #100e0a 0%, #100e0a 53%, transparent 60%);
  pointer-events: none;
}
.reference-crew .crew-copy {
  position: absolute;
  left: 3.8%;
  top: 12.2%;
  width: 49%;
  z-index: 1;
}
.reference-crew .eyebrow { font-size: 12px; letter-spacing: 2px; }
.reference-crew h2 {
  font-size: clamp(30px, 2.95vw, 43px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 14px 0 23px;
}
.reference-crew p { font-size: 15px; line-height: 1.6; margin: 0; color: #e3e0d9; }
.reference-crew .crew-benefits { gap: 14px; flex-wrap: nowrap; margin: 24px 0; }
.reference-crew .crew-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 13px;
}
.reference-crew .crew-benefits li::before { content: none; }
.reference-crew .crew-benefits li + li { border-left: 1px solid #4d4430; padding-left: 14px; }
.reference-crew .crew-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  border: 1px solid #f0c65c;
  border-radius: 50%;
  box-shadow: 0 0 10px #f0c65c22;
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.reference-crew:hover .crew-icon { transform: scale(1.07); }
.crew-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.reference-crew .crew-note { font-size: 13px; color: #bebbb6; }
@media (min-width: 901px) and (max-width: 1200px) {
  .reference-crew h2 { font-size: 32px; margin: 12px 0 16px; }
  .reference-crew p { font-size: 13px; }
  .reference-crew .crew-benefits { gap: 8px; margin: 18px 0; }
  .reference-crew .crew-benefits li { font-size: 11px; gap: 6px; }
  .reference-crew .crew-benefits li + li { padding-left: 8px; }
  .reference-crew .crew-icon { width: 32px; height: 32px; }
  .reference-crew .crew-note { font-size: 11px; }
}
@media (max-width: 900px) {
  .reference-crew { aspect-ratio: auto; border: 1px solid #b99a3c; border-left: 3px solid #f0c65c; }
  .reference-crew .crew-copy { position: relative; left: auto; top: auto; width: auto; padding: 26px 22px; background: #100e0a; }
  .reference-crew h2 { font-size: 32px; margin: 14px 0 20px; }
  .reference-crew p { font-size: 15px; }
  .reference-crew .crew-benefits { flex-direction: column; align-items: flex-start; gap: 13px; margin: 22px 0; }
  .reference-crew .crew-benefits li { font-size: 14px; }
  .reference-crew .crew-benefits li + li { border: 0; padding-left: 0; }
  .reference-crew .crew-note { font-size: 13px; }
  .reference-crew .crew-visual {
    position: relative;
    z-index: 0;
    width: 100%;
    flex-shrink: 0;
    height: auto;
    aspect-ratio: 760 / 510;
    background-size: auto 184.314%;
    background-position: 94.737% 82.093%;
  }
  .reference-crew .crew-visual::after { display: none; }
  .reference-crew .crew-copy { order: 0; }
  .reference-crew { display: flex; flex-direction: column; }
  .reference-crew .crew-visual { order: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .reference-crew { animation: none; transition: none; }
  .reference-crew .crew-icon { transition: none; }
  .reference-crew:hover, .reference-crew:hover .crew-icon { transform: none; }
}

/* The entire invitation card is one native, keyboard-accessible link. */
.reference-crew .crew-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  cursor: pointer;
}
.reference-crew:has(.crew-card-link:focus-visible) {
  outline: 3px solid #f0c65c;
  outline-offset: 3px;
}
.reference-crew .crew-card-link:focus-visible { outline: none; }
