/* ==========================================================================
   Service card + 360º orbit — shared by the home, /360-service and every
   service page. Sizes and fonts come from the Framer "Service Orbit 360".
   The JS only animates CSS custom properties (--card-w, --quote-op, --rx…).
   ========================================================================== */

/* ---------- Card ---------- */
.svc-card {
  /* size of the big variant (cursor card, hero card) */
  --w: 460px; --h: 200px; --left: 206px; --f: 1; --r: 18px; --pr: 12px;
  --text: #eae3d9;
  position: relative;
  width: var(--card-w, var(--w));
  height: var(--h);
  border-radius: var(--r);
  background: #171210;
  border: 1px solid rgb(var(--rgb) / 0.32);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38), 0 0 var(--glow, 32px) rgb(var(--rgb) / 0.16);
  overflow: hidden;
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: var(--font);
  letter-spacing: normal;
  text-align: left;
}
.svc-card--orbit {
  --w: 380px; --h: 160px; --left: 168px; --f: 0.84; --r: 15px; --pr: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), 0 0 var(--glow, 18px) rgb(var(--rgb) / 0.26);
}
@media (max-width: 809px) {
  .svc-card--orbit { --w: 300px; --h: 136px; --left: 130px; --f: 0.74; }
}

.svc-card__grid {
  position: absolute; left: 0; top: 0;
  width: calc(var(--w) - 2px); height: calc(var(--h) - 2px);
  padding: 8px; display: grid; gap: 8px;
  grid-template-columns: var(--left) minmax(0, 1fr);
}
.svc-card__info {
  position: relative; min-width: 0; display: flex; flex-direction: column;
  border-radius: var(--pr);
  padding: calc(16px * var(--f)) calc(16px * var(--f)) calc(15px * var(--f));
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.svc-card__name {
  color: var(--text); font-size: calc(16px * var(--f)); line-height: 1.2;
  font-weight: 600; letter-spacing: -0.01em; opacity: var(--title-op, 1);
}
.svc-card__icon {
  flex: none; width: calc(20px * var(--f)); height: calc(20px * var(--f));
  margin-top: calc(9px * var(--f)); stroke-width: 1.6;
  color: var(--pastel); opacity: calc(var(--icon-op, 1) * 0.85);
}
.svc-card__desc {
  margin-top: auto; color: var(--text); opacity: calc(var(--desc-op, 1) * 0.8);
  font-size: calc(12.5px * var(--f)); line-height: 1.42; letter-spacing: -0.005em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.svc-card__quote {
  position: relative; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: var(--pr);
  padding: calc(16px * var(--f)) calc(18px * var(--f)) calc(18px * var(--f));
  background:
    radial-gradient(130% 100% at 85% 0%, rgb(var(--rgb) / 0.34), rgb(var(--rgb) / 0.08) 62%),
    rgb(var(--rgb) / 0.05);
  border: 1px solid rgb(var(--rgb) / 0.18);
  opacity: var(--quote-op, 1);
}
.svc-card__mark {
  display: block; height: calc(16px * var(--f));
  font: calc(38px * var(--f)) / 0.8 Georgia, "Times New Roman", serif;
  color: var(--pastel); opacity: 0.55;
}
.svc-card__quote p {
  color: var(--pastel); font-size: calc(18.5px * var(--f)); line-height: 1.2;
  letter-spacing: -0.02em; font-weight: 500; text-wrap: balance;
}
.svc-card__shine, .svc-card__tint { position: absolute; inset: 0; pointer-events: none; }
.svc-card__shine {
  background: radial-gradient(120% 90% at calc(50% + var(--sx, 0) * 45%) calc(35% + var(--sy, 0) * 45%),
    rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 60%);
}
.svc-card__tint { background: rgb(var(--rgb) / 0.34); opacity: var(--tint, 0); }

/* ---------- Orbit ---------- */
.orbit {
  position: relative; height: 600px; overflow: hidden;
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.orbit.is-dragging { cursor: grabbing; }
.orbit__stage { position: absolute; inset: 0; perspective: 1400px; }
.orbit__items { list-style: none; margin: 0; padding: 0; }
.orbit__item {
  position: absolute; left: 50%; top: 50%; z-index: 22;
  pointer-events: none; will-change: transform, opacity;
}
.orbit:not(.is-ready) .orbit__item { visibility: hidden; }
.orbit__item .svc-card, .orbit__link { pointer-events: auto; }
.orbit__link { display: inline-block; vertical-align: top; border-radius: 15px; outline-offset: 4px; }
.orbit__here {
  position: absolute; left: 12px; bottom: 100%; margin-bottom: 8px;
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  color: rgb(var(--ink)); font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: calc((var(--depth, 1) - 0.55) * 4); /* shown only while its card is at the front */
}
.orbit__here::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: rgb(var(--ink)); box-shadow: 0 0 0 4px rgb(var(--ink) / 0.16);
}
.orbit__rings {
  position: absolute; left: 50%; top: 50%; z-index: 1; overflow: visible; pointer-events: none;
  transform: translate(-50%, -50%);
}
.orbit__rings ellipse {
  fill: none; stroke: rgb(var(--ink)); stroke-opacity: 0.16; stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}
.orbit__rings ellipse.is-current { stroke-opacity: 0.45; stroke-width: 1.3; }
/* The Lamas lockup rides above the orbit, so the cards never cover it. */
.orbit__lockup { position: absolute; left: 50%; top: 50%; z-index: 20; transform: translate(-50%, calc(-50% - 205px)); pointer-events: none; }

@media (max-width: 809px) {
  .orbit { height: 460px; }
  .orbit__lockup { transform: translate(-50%, calc(-50% - 150px)); }
}

/* ---------- 360º ring system (home) ---------- */
.ring-system {
  position: relative; height: min(92vh, 900px); min-height: 560px; overflow: hidden;
  display: grid; place-items: center; user-select: none; -webkit-user-select: none;
}
.ring-system.is-pointing { cursor: pointer; }
.ring-system__rings { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); overflow: visible; pointer-events: none; }
.ring-system__core { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; }
.ring-system__cta { min-height: 44px; padding: 0 26px; }
@media (max-width: 809px) {
  .ring-system { height: 440px; min-height: 0; }
  /* The core has to fit inside the innermost ring. */
  .ring-system__core { gap: 10px; }
  .ring-system .lockup__name { font-size: 30px; }
  .ring-system .lockup__tag { margin-top: 6px; font-size: 7.5px; }
  .ring-system__cta { min-height: 32px; padding: 0 16px; font-size: 12px; }
}

/* ---------- Lamas lockup ---------- */
.lockup { display: grid; justify-items: center; text-align: center; color: var(--c-brand, #7a6249); }
.lockup__name { font-size: 54px; line-height: 1; letter-spacing: -0.03em; font-weight: 300; }
.lockup__tag {
  margin-top: 14px; font-size: 11px; line-height: 1.5; letter-spacing: 0.24em;
  font-weight: 500; text-transform: uppercase; color: var(--c-accent, #a78b6b);
}
@media (max-width: 809px) {
  .lockup__name { font-size: 38px; }
  .lockup__tag { margin-top: 10px; font-size: 9px; }
}

/* ---------- Pill buttons (360º & service pages) ---------- */
.pill-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 180ms ease, background-color 180ms ease;
}
.pill-btn:hover { transform: translateY(-2px); }
.pill-btn--brand { background: #7a6249; color: #fff; box-shadow: 0 8px 24px rgba(74, 55, 36, 0.14); }
.pill-btn--brand:hover { box-shadow: 0 12px 30px rgba(74, 55, 36, 0.2); }
.pill-btn--pastel { background: rgb(var(--pastel)); color: #1a1411; box-shadow: 0 10px 30px rgb(var(--c) / 0.22); }
.pill-btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.22); }
