/* Homepage block 2 (partials/home-agent-orbit.php), Figma 2:109 (y 821-1836).
   Each pair = photo + card laid out as in the Figma frame. js/home-orbit.js
   places the pairs around the heading and animates them in. */

.orb { background: #fff; }
.orb-track { position: relative; }
.orb-sticky { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; padding: 96px 16px; }

.orb-h {
  position: relative; z-index: 2; margin: 0; text-align: center;
  font-family: var(--sans); font-weight: 400; color: #0a111a;
  font-size: clamp(36px, 4.23vw, 64px); line-height: 1.2; letter-spacing: -0.5px;
}

.orb-copy { position: relative; z-index: 2; display: grid; place-items: center; }
.orb-copy > .orb-h { grid-area: 1 / 1; }
.orb-h--2 { max-width: 1040px; }
.orb:not(.is-live) .orb-h--2 { margin-top: 24px; }
.orb.is-live .orb-h--2 { opacity: 0; }
@media (max-width: 1023px) { .orb-copy { display: grid; gap: 20px; } .orb-copy > .orb-h { grid-area: auto; } .orb-h--2 { font-size: 28px; color: #5c6370; } }
.orb-field { list-style: none; margin: 0; padding: 0; }

/* ---------- pair ---------- */
.orb-pair { position: relative; }
.orb-photo { display: block; overflow: hidden; border-radius: 18px; background: #eceae4; }
.orb-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.orb-card {
  position: absolute; z-index: 1; display: flex; flex-direction: column; gap: 10px;
  padding: 12px 14px; border-radius: 14px; background: #f9f9f9;
  box-shadow: 0 18px 40px -26px rgba(10, 17, 26, 0.35);
}
.orb-card p { margin: 0; }
.orb-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.orb-status {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px;
  font-family: var(--sans); font-weight: 500; font-size: 11px; line-height: 14px; white-space: nowrap;
}
.orb-status img { width: 5px; height: 5px; display: block; }
.orb-status--red { background: #fceded; color: #e5474d; }
.orb-status--amber { background: #fcf2db; color: #b8801a; }
.orb-step { font-family: var(--sans); font-weight: 500; font-size: 11px; line-height: 14px; color: #8c949e; white-space: nowrap; }
.orb-card-t { font-family: var(--sans); font-weight: 500; font-size: 14px; line-height: 20px; color: #0a111a; }
.orb-card-b { font-family: var(--sans); font-weight: 400; font-size: 12px; line-height: 17px; color: #5c6370; }

/* Figma geometry of each pair (photo + card, card on top). */
.orb-pair--find   { width: 417px; height: 235px; }
.orb-pair--find   .orb-photo { position: absolute; left: 207px; top: 0; width: 210px; height: 190px; }
.orb-pair--find   .orb-card  { left: 0; top: 97px; width: 280px; min-height: 138px; }
.orb-pair--verify { width: 510px; height: 225px; }
.orb-pair--verify .orb-photo { position: absolute; left: 247px; top: 0; width: 263px; height: 225px; }
.orb-pair--verify .orb-card  { left: 0; top: 23px; width: 290px; min-height: 118px; }
.orb-pair--wait   { width: 399px; height: 222px; }
.orb-pair--wait   .orb-photo { position: absolute; left: 0; top: 0; width: 207px; height: 222px; }
.orb-pair--wait   .orb-card  { left: 139px; top: 22px; width: 260px; min-height: 118px; }
.orb-pair--book   { width: 480px; height: 231px; }
.orb-pair--book   .orb-photo { position: absolute; left: 0; top: 0; width: 261px; height: 210px; }
.orb-pair--book   .orb-card  { left: 190px; top: 93px; width: 290px; min-height: 138px; }

/* ---------- scripted (pinned) mode, desktop ---------- */
@media (min-width: 1024px) {
  .orb.is-live .orb-track { height: 300vh; }
  .orb.is-live .orb-sticky { position: sticky; top: 0; height: 100vh; min-height: 0; padding: 0; }
  .orb.is-live .orb-field { position: absolute; inset: 0; z-index: 1; }
  .orb.is-live .orb-pair { position: absolute; left: 50%; top: 50%; opacity: 0; will-change: transform; transform-origin: 50% 50%; }
  .orb.is-live .orb-h { opacity: 0; }
}

/* ---------- static mode (phones, no script, reduced motion) ---------- */
.orb:not(.is-live) .orb-sticky, .orb .orb-sticky { }
@media (max-width: 1023px) {
  .orb-sticky { display: flex; flex-direction: column; gap: 40px; padding: 72px 16px; min-height: 0; }
  .orb-field { display: grid; grid-template-columns: 1fr; gap: 28px; width: 100%; max-width: 560px; }
  .orb-pair, .orb-pair--find, .orb-pair--verify, .orb-pair--wait, .orb-pair--book { width: auto; height: auto; display: grid; }
  .orb-pair .orb-photo { position: static !important; width: 100% !important; height: 220px !important; }
  .orb-pair .orb-card { position: relative !important; left: auto !important; top: auto !important; width: calc(100% - 32px) !important; margin: -48px 16px 0; }
}
@media (min-width: 1024px) {
  .orb:not(.is-live) .orb-sticky { display: flex; flex-direction: column; gap: 56px; }
  .orb:not(.is-live) .orb-field { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 48px; max-width: 1200px; }
}
