/* Offerings — 3-up grid + chasing gradient border (v1) */

@property --of-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:is(.theme-v1, .theme-v2) #offerings {
  overflow-x: clip;
}

:is(.theme-v1, .theme-v2) #offerings .ofc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.2vw, 1.5rem);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--section-pad-x, 5vw) var(--section-pad-y, 30px);
  overflow: visible;
  user-select: auto;
  cursor: default;
}

:is(.theme-v1, .theme-v2) #offerings .ofc.is-dragging {
  cursor: default;
}

:is(.theme-v1, .theme-v2) .ofcard-shell {
  --of-angle: 0deg;
  position: relative;
  min-width: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(#12100c, #12100c) padding-box,
    conic-gradient(
      from var(--of-angle),
      #e05a1a 0%,
      #f5c842 18%,
      #ff8f4a 36%,
      #d85a18 54%,
      #b8862e 72%,
      #ff6b2c 86%,
      #e05a1a 100%
    )
    border-box;
  border: 2px solid transparent;
  animation: of-border-chase 3.2s linear infinite;
}

:is(.theme-v1, .theme-v2) .ofcard-shell:nth-child(2) {
  animation-duration: 3.6s;
  animation-delay: -0.4s;
}

:is(.theme-v1, .theme-v2) .ofcard-shell:nth-child(3) {
  animation-duration: 3s;
  animation-delay: -0.9s;
}

@keyframes of-border-chase {
  to {
    --of-angle: 360deg;
  }
}

:is(.theme-v1, .theme-v2) .ofcard-shell .ofcard {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 520px;
  flex-shrink: 1;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg3);
}

:is(.theme-v1, .theme-v2) .ofcard-shell:hover .ofcard .ofim {
  transform: scale(1);
}

:is(.theme-v1, .theme-v2) .ofcard-shell:hover .ofcard .ofim img {
  filter: brightness(0.32);
}

:is(.theme-v1, .theme-v2) .ofcard-shell:hover .ofcard .ofds {
  opacity: 1;
  transform: translateY(0);
}

:is(.theme-v1, .theme-v2) .ofcard-shell:hover .ofcard .ofa {
  transform: translateX(6px);
}

/* Coaching portrait — keep face in frame */
:is(.theme-v1, .theme-v2) .ofcard-shell:nth-child(2) .ofim img {
  object-position: 50% 5%;
}

/* Story Labs — shorter title; nudge text up to match cards 1 & 2 */
:is(.theme-v1, .theme-v2) .ofcard-shell:nth-child(3) .ofbd {
  transform: translateY(-2.4rem);
}

@media (max-width: 1024px) {
  :is(.theme-v1, .theme-v2) #offerings .ofc {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  :is(.theme-v1, .theme-v2) .ofcard-shell .ofcard {
    min-height: 480px;
  }

  :is(.theme-v1, .theme-v2) .ofcard-shell:nth-child(3) .ofbd {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.theme-v1, .theme-v2) .ofcard-shell {
    animation: none;
    background: linear-gradient(#12100c, #12100c) padding-box,
      linear-gradient(90deg, #e05a1a, #f5c842, #e05a1a) border-box;
  }
}
