/* ═══════════════════════════════════════════════════════════
   SERVICES ORBIT CAROUSEL  (services.html #svc-orbit)
   Vanilla port of the "Dish Orbit Carousel" from 21st.dev.
   Page scroll drives it: the stage pins and each stretch of
   scroll swings the next service in on a wide orbit.
   Built by services-orbit.js from the cards in .services-grid.
   ═══════════════════════════════════════════════════════════ */
#svc-orbit { position: relative; background: var(--cream, #faf3e1); padding: 0; }
#svc-orbit .so-intro { text-align: center; padding: 5.5rem 5% 0; }
#svc-orbit .so-intro .section-tag { color: var(--orange); }
#svc-orbit .so-intro .section-sub { margin: 0 auto; color: rgba(10,10,10,.55); }
.so-trk { position: relative; width: 100%; }
.so-root {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; width: 100%;
  color: #14100a; container-type: inline-size; -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(ellipse 55% 60% at 30% 45%, rgba(255,255,255,.65), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #faf3e1 0%, #f6ecd6 100%);
  outline: none;
}
.so-root * { box-sizing: border-box; }
.so-root:focus-visible { box-shadow: inset 0 0 0 2px var(--orange); }

.so-canvas {
  position: absolute; left: 50%; top: calc(50% + 34px); width: 960px; height: 520px;
  transform: translate(-50%, -50%) scale(var(--so-s, 1)); transform-origin: 50% 50%;
}
.so-arc { position: absolute; left: 0; top: 0; width: 960px; height: 520px; overflow: visible; pointer-events: none; }
.so-arc path { opacity: .38; transition: fill 1.1s ease; }

.so-btn { appearance: none; border: 0; background: none; color: inherit; font: inherit; padding: 0; margin: 0; cursor: pointer; }
.so-btn:focus-visible, .so-acts a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 10px; }

/* side pager */
.so-pager { position: absolute; left: 76px; top: 112px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.so-dot { width: 14px; height: 9px; display: grid; place-items: center; transition: height .45s cubic-bezier(.3,.7,.2,1); }
.so-dot i { display: block; width: 3px; height: 3px; border-radius: 3px; background: #14100a; opacity: .4;
  transition: height .45s cubic-bezier(.3,.7,.2,1), opacity .3s, background .3s; }
.so-dot[aria-current] { height: 24px; }
.so-dot[aria-current] i { height: 20px; opacity: 1; background: var(--orange); }

/* the "plate": a disc in the service's colours with its emoji */
.so-plates { position: absolute; left: 130px; top: 82px; width: 245px; height: 245px; touch-action: pan-y; }
.so-orbit { position: absolute; inset: 0; transform-origin: 69% -217%; visibility: hidden; will-change: transform; }
.so-plate {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.22), rgba(255,255,255,0) 45%),
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.035) 0deg 6deg, transparent 6deg 14deg),
    linear-gradient(145deg, var(--c1, #05040e), var(--c2, #1a0a3e));
  box-shadow: 0 0 0 10px rgba(255,255,255,.75), 0 0 0 11px rgba(20,16,10,.08),
              0 26px 40px -10px rgba(40,25,5,.35), 0 6px 12px rgba(40,25,5,.18);
  display: grid; place-items: center;
}
.so-plate span { font-size: 112px; line-height: 1; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); user-select: none; }
.so-plate b {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  font-family: var(--font-display, sans-serif); font-size: 12px; letter-spacing: 2px; color: rgba(255,255,255,.7);
}

/* title */
.so-head { position: absolute; left: 392px; top: 92px; width: 320px; height: 160px; }
.so-hd { position: absolute; inset: 0; visibility: hidden; }
.so-eye { font-family: var(--font-head, serif); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange); margin: 0 0 4px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-hd h2 { margin: 0; font: inherit; }
.so-t1, .so-t2 { display: block; white-space: nowrap; line-height: 1.02; margin: 0; }
.so-t1 { font-family: var(--font-body, sans-serif); font-weight: 300; letter-spacing: -.01em; margin-top: 8px; text-transform: uppercase; color: #3a3226; }
.so-t2 { font-family: var(--font-display, sans-serif); font-weight: 800; letter-spacing: -.02em; margin-top: 6px; text-transform: uppercase; color: #14100a; }

/* actions */
.so-acts { position: absolute; left: 396px; top: 282px; display: flex; gap: 12px; font-size: 12.5px; font-weight: 700; }
.so-acts a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 50px; text-decoration: none;
  font-family: var(--font-head, serif); letter-spacing: .3px; transition: transform .25s, box-shadow .25s; }
.so-acts a:first-child { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(255,85,85,.35); }
.so-acts a:last-child { background: #14100a; color: #faf3e1; }
.so-acts a:hover { transform: translateY(-2px); }

/* glass info card */
.so-card { position: absolute; left: 722px; top: 120px; width: 223px; padding: 18px 20px 20px; border-radius: 20px;
  background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(20,16,10,.06) inset, 0 18px 40px -24px rgba(40,25,5,.35); }
.so-tabs { display: flex; justify-content: space-between; padding: 0 6px 0 12px; font-size: 12px; margin-bottom: 16px; }
.so-tab { color: rgba(20,16,10,.5); font-weight: 600; padding: 3px 0; border-bottom: 2px solid transparent; }
.so-tab[aria-selected=true] { color: #14100a; border-color: var(--orange); }
.so-bodies { display: grid; }
.so-body { grid-area: 1 / 1; visibility: hidden; }
.so-rate { position: relative; height: 58px; margin: 0 0 12px 4px; }
.so-badge { position: absolute; left: 0; top: 0; width: 46px; height: 58px; border-radius: 10px; transition: background .6s; }
.so-num { position: absolute; left: 9px; top: 6px; font-family: var(--font-display, sans-serif); font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.so-price { font-family: var(--font-display, sans-serif); font-size: 15px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.so-tag { font-size: 10.5px; color: rgba(20,16,10,.55); margin: 4px 0 10px; }
.so-desc { font-size: 12px; line-height: 1.45; margin: 0; min-height: 70px; color: #2a241b; }
.so-ing { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; min-height: 70px; }
.so-ing li { font-size: 10.5px; padding: 4px 9px; border-radius: 99px; background: rgba(20,16,10,.07); }
.so-desc[hidden], .so-ing[hidden] { display: none; }
.so-more { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 700; color: var(--orange); text-decoration: none; }

/* thumbnail strip */
.so-strip { position: absolute; left: 130px; top: 362px; width: 560px; height: 122px; display: flex; align-items: center; }
.so-arrow { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 50%; transition: background .25s; }
.so-arrow:hover { background: rgba(20,16,10,.07); }
.so-arrow svg { width: 12px; height: 16px; fill: currentColor; }
.so-win { position: relative; width: 472px; height: 122px; overflow: hidden; flex: none; margin: 0 4px;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.so-track { position: absolute; left: 0; top: 0; display: flex; transition: transform .6s cubic-bezier(.65,0,.35,1); }
.so-th { width: 118px; height: 122px; display: flex; justify-content: center; padding-top: 3px; }
.so-th .so-btn { width: 84px; height: 116px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 7px; padding-top: 10px; transition: background .45s, box-shadow .45s; }
.so-th .so-btn[aria-current] { background: rgba(255,255,255,.7); box-shadow: 0 10px 24px -16px rgba(40,25,5,.4); }
.so-mini { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 25px;
  background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: 0 4px 8px rgba(40,25,5,.22); transition: transform .45s; }
.so-th .so-btn[aria-current] .so-mini { transform: scale(1.08); }
.so-th span { font-size: 10px; line-height: 1.25; text-align: center; font-weight: 600; color: rgba(20,16,10,.75); max-width: 80px; }

.so-hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; font-size: 11px; color: rgba(20,16,10,.45); letter-spacing: .5px; }
.so-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── phones ── */
@container (max-width: 639px) {
  .so-canvas { position: relative; left: auto; top: auto; width: 100%; height: 100%; transform: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px 18px 18px; }
  .so-arc { width: 220%; height: auto; left: -70%; top: -10px; }
  .so-pager { left: 8px; top: 50%; transform: translateY(-50%); gap: 1px; }
  .so-dot { height: 7px; } .so-dot[aria-current] { height: 18px; } .so-dot[aria-current] i { height: 14px; }
  .so-plates { position: relative; left: auto; top: auto; width: min(46vw, 26svh); height: min(46vw, 26svh); flex: none; }
  .so-plate span { font-size: min(21vw, 12svh); }
  .so-plate b { bottom: 12%; font-size: 10px; }
  .so-head { position: relative; left: auto; top: auto; width: 100%; height: 118px; margin-top: 16px; flex: none; }
  .so-hd { text-align: center; transform: scale(.8); transform-origin: 50% 0; }
  .so-acts { position: relative; left: auto; top: auto; margin-top: 2px; flex: none; }
  .so-card { position: relative; left: auto; top: auto; width: 100%; max-width: 420px; margin-top: 12px; padding: 14px 16px 16px; flex: none; }
  .so-rate { height: 46px; } .so-badge { height: 46px; width: 40px; } .so-num { font-size: 24px; }
  .so-desc, .so-ing { min-height: 0; }
  .so-strip, .so-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .so-track, .so-dot, .so-dot i, .so-th .so-btn, .so-mini, .so-arc path, .so-badge { transition: none; }
}

/* the grid is the carousel's data source: hide it once the carousel is built */
.so-ready #services-main.so-source { display: none; }

/* official brand logo inside the circle (only when the file exists in /logos) */
.so-logo { display: none; position: absolute; inset: 15%; border-radius: 50%; background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.25); place-items: center; }
.so-logo img { width: 62%; height: 62%; object-fit: contain; }
.logo-ok .so-logo { display: grid; }
.logo-ok > span { display: none; }
.so-mini { position: relative; }
.so-mini .so-logo { inset: 4px; box-shadow: none; }
.so-th .so-mini > span { font-size: 25px; max-width: none; line-height: 1; }

