/* Shipped products: home section + short case study pages (Morrow, Offerpath). */

/* Home section: a 3D ring of product cards (user's reference, in the portfolio's own colours and fonts). */
.shipped { position: relative; overflow: hidden; padding: 120px 0 110px; border-top: .8px solid var(--line-dark);
  background: radial-gradient(60% 50% at 50% 62%, rgba(134, 116, 254, .16), transparent 70%), var(--black); }
.shipped__head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; margin-bottom: 64px; }
.shipped__sub { max-width: 520px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .7); }

.ring { --w: 640px; --h: 680px; --depth: 580px; position: relative; max-width: 1500px; margin: 0 auto; padding: 0 var(--gutter); outline: none; }
.ring__stage { height: calc(var(--h) + 40px); perspective: 1700px; perspective-origin: 50% 50%; }
.ring__spin { position: relative; width: var(--w); height: var(--h); margin: 20px auto 0; transform-style: preserve-3d;
  transform: translateZ(calc(var(--depth) * -1)) rotateY(var(--turn, 0deg)); transition: transform 1.1s cubic-bezier(.22, 1.2, .36, 1); }
.ring__face { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: #17171b; border: 1px solid rgba(255, 255, 255, .12); color: #fff;
  transform: rotateY(var(--a, 0deg)) translateZ(var(--depth)); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: filter .6s, border-color .3s, box-shadow .6s; filter: brightness(.6); cursor: pointer; }
.ring__face.is-front { filter: none; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.ring__face.is-front:hover { border-color: rgba(179, 168, 255, .6); }
.ring__face:focus-visible { outline: 2px solid #b3a8ff; outline-offset: 4px; }

.ring__img { position: relative; display: block; flex-shrink: 0; aspect-ratio: 1448 / 905; background: #fff; overflow: hidden; }
.ring__img img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.ring__img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 48px; background: linear-gradient(180deg, transparent, #17171b); }
.ring__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ring__badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 20px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.ring__badge b { width: 7px; height: 7px; border-radius: 50%; background: #5fe3a1; }
.ring__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 28px 26px; }
.ring__type { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: rgba(255, 255, 255, .62); }
.ring__name { font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -.04em; }
.ring__desc { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .74); }
/* benefits: small cards under the description */
.ring__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ring__chips i { padding: 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-style: normal; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.ring__go { margin-top: auto; padding-top: 10px; font-size: 16px; font-weight: 700; color: #b3a8ff; }
.ring__face.is-front:hover .ring__go { color: #fff; }

.ring__nav { position: absolute; top: calc(50% - 40px); z-index: 5; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; cursor: pointer; transition: background .25s, border-color .25s; }
.ring__nav:hover { background: var(--violet-fill, #6c5ce7); border-color: transparent; }
.ring__nav--prev { left: var(--gutter); }
.ring__nav--next { right: var(--gutter); }
.ring__dots { display: flex; justify-content: center; gap: 8px; margin-top: 34px; position: relative; z-index: 5; }
.ring__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .28); cursor: pointer; transition: width .3s, background .3s; }
.ring__dots button[aria-current="true"] { width: 26px; background: #b3a8ff; }
.ring__dots button:focus-visible { outline: 2px solid #b3a8ff; outline-offset: 3px; }

@media (max-width: 1500px) { .ring { --w: 560px; --h: 640px; --depth: 510px; } }
@media (max-width: 1280px) { .ring { --w: 480px; --h: 630px; --depth: 440px; } .ring__name { font-size: 26px; } }
@media (max-width: 1000px) { .ring { --w: 400px; --h: 600px; --depth: 370px; } .ring__desc { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .ring__spin { transition: none; } }

/* phones: no 3D, a plain stack of the three cards */
@media (max-width: 760px) {
  .shipped { padding: 80px 0 80px; }
  .shipped__head { margin-bottom: 36px; }
  .shipped__head h2 br { display: none; }
  .ring__stage { height: auto; perspective: none; }
  .ring__spin { width: 100%; max-width: 400px; height: auto; margin: 0 auto; transform: none; display: flex; flex-direction: column; gap: 18px; }
  .ring__face { position: static; transform: none; filter: none; backface-visibility: visible; }
  .ring__face[data-copy], .ring__nav, .ring__dots { display: none; }
  .ring__body { padding: 18px 22px 24px; }
}

/* case study pages */
.cs-head--shipped { background: #f7f7f7; }
html[data-theme="dark"] .cs-head--shipped { background: #1b1b20; }
.cs-cover--shot { padding: clamp(40px, 6vw, 90px) 0; }
.cs-cover--shot .frame { max-width: 1100px; margin: 0 auto; }
.cs-cover--shot .frame img { display: block; width: 100%; height: auto; }
/* four decision cards sit 2 × 2 (the shared grid is 3 across, which left one card alone) */
@media (min-width: 861px) { .cs-head--shipped ~ .cs-sec .flips { grid-template-columns: repeat(2, 1fr); } }
