/* ==========================================================================
   Services overview page
   ========================================================================== */

/* ========== Hero ========== */
.sv-hero {
  padding: clamp(49px, 3vw, 73px) 0 clamp(60px, 5vw, 100px);
  position: relative;
  overflow: hidden;
}
.sv-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}
.sv-crumb {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.sv-crumb a { color: var(--fg-muted); }
.sv-crumb a:hover { color: var(--fg); }

.sv-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
  position: relative;
}
.sv-head {
  font-size: clamp(44px, 6vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0;
}
/* 360° gets the same "hero-strike" treatment as other hero accents
   (italic serif, accent color). Override to tighten metrics. */
.sv-360 {
  letter-spacing: -0.02em;
}
.sv-lede {
  margin: 28px 0 0;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 48ch;
}
.sv-hero-ctas {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ========== 360° orbit animation (hero right) ========== */
.sv-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}
.sv-orbit {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1;
  color: var(--fg);
  flex-shrink: 0;
}
.sv-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: svOrbitSpin 80s linear infinite;
}
.sv-orbit-ring-2 {
  inset: 10%;
  border-style: dashed;
  opacity: 0.55;
  animation-duration: 60s;
  animation-direction: reverse;
}
.sv-orbit-ring-3 {
  inset: 30%;
  border-color: color-mix(in oklab, var(--accent) 30%, transparent);
  animation-duration: 40s;
}
.sv-orbit-spokes {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  color: var(--fg-muted);
}

/* Ring of nodes — rotates; each node counter-rotates to stay upright. */
.sv-orbit-rotate {
  position: absolute;
  inset: 0;
  animation: svOrbitSpin 45s linear infinite;
  transform-origin: center;
}
.sv-orbit-node {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  /* transform set inline per node: rotate(a) translateY(-170px) rotate(-a) */
}
.sv-orbit-node-inner {
  position: absolute;
  transform: translate(-50%, -50%);
  /* Counter-rotate to cancel out the parent ring's spin,
     so the pill label stays upright no matter where it sits on the ring. */
  animation: svOrbitCounter 45s linear infinite;
  transform-origin: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.sv-orbit-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.sv-orbit-lbl {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
}
@keyframes svOrbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes svOrbitCounter {
  /* Start at translate(-50%,-50%) — apply rotation AFTER translate
     so it spins around the pill's own center, not around the ring. */
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}

.sv-orbit-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.sv-orbit-badge {
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4%;
  text-align: center;
}
.sv-orbit-badge-sm {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  white-space: nowrap;
}
.sv-orbit-badge-lg {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.sv-orbit-arc {
  position: absolute;
  inset: -4%;
  width: 108%; height: 108%;
  animation: svOrbitSpin 90s linear infinite;
  pointer-events: none;
  opacity: 0.45;
}
.sv-orbit-text {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  fill: var(--fg-muted);
}

/* ========== Bento grid ========== */
.sv-bento {
  padding: clamp(60px, 6vw, 120px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sv-bento-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 4vw, 64px);
}
.sv-bento-head .h2 {
  max-width: 16ch;
  margin-top: 12px;
}
.sv-bento-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 38ch;
  margin: 0;
  padding-bottom: 8px;
}

.sv-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: 12px;
}

/* Card base */
.sv-bc {
  position: relative;
  padding: 24px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 300ms cubic-bezier(.2,.8,.2,1);
  isolation: isolate;
}
.sv-bc:hover {
  transform: translateY(-3px);
}
.sv-bc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}
.sv-bc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.75;
}
.sv-bc-kicker::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}
.sv-bc-arrow {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center; justify-content: center;
  opacity: 0.6;
  transition: all 240ms ease;
}
.sv-bc:hover .sv-bc-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}
.sv-bc-n {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: auto;
  position: relative;
  z-index: 2;
}
.sv-bc-title {
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
  max-width: 14ch;
  position: relative;
  z-index: 2;
}
.sv-bc-tags {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 2;
}
.sv-bc-tags li {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.65;
  white-space: nowrap;
}

/* Variants */
.sv-bc-lime {
  background: var(--accent);
  color: var(--accent-ink);
}
.sv-bc-dark {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
}
.sv-bc-dark .sv-bc-arrow,
.sv-bc-dark .sv-bc-kicker,
.sv-bc-dark .sv-bc-tags li {
  border-color: var(--border-strong);
}
.sv-bc-dark:hover { border-color: color-mix(in oklab, var(--accent) 50%, var(--border-strong)); }

/* Brand pattern card — pattern image behind content with strong opacity */
.sv-bc-pattern {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
}
.sv-bc-pattern-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  mix-blend-mode: normal;
  filter: contrast(1.05);
}
.sv-bc-pattern::after {
  /* Subtle dark gradient at top for kicker legibility */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    color-mix(in oklab, var(--bg) 35%, transparent) 0%,
    color-mix(in oklab, var(--bg) 0%, transparent) 30%,
    color-mix(in oklab, var(--bg) 40%, transparent) 75%,
    color-mix(in oklab, var(--bg) 75%, transparent) 100%
  );
  pointer-events: none;
}
.sv-bc-pattern .sv-bc-kicker,
.sv-bc-pattern .sv-bc-n,
.sv-bc-pattern .sv-bc-title,
.sv-bc-pattern .sv-bc-tags {
  color: #fff;
}
.sv-bc-pattern .sv-bc-kicker { border-color: rgba(255,255,255,0.5); }
.sv-bc-pattern .sv-bc-arrow { border-color: rgba(255,255,255,0.5); color: #fff; }
.sv-bc-pattern .sv-bc-tags li { border-color: rgba(255,255,255,0.4); }

/* Sizes — desktop 12-col grid */
.sv-bento-grid .sv-bc:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.sv-bento-grid .sv-bc:nth-child(2) { grid-column: span 5; grid-row: span 1; }
.sv-bento-grid .sv-bc:nth-child(3) { grid-column: span 5; grid-row: span 1; }
.sv-bento-grid .sv-bc:nth-child(4) { grid-column: span 5; grid-row: span 2; }
.sv-bento-grid .sv-bc:nth-child(5) { grid-column: span 4; grid-row: span 2; }
.sv-bento-grid .sv-bc:nth-child(6) { grid-column: span 3; grid-row: span 1; }
.sv-bento-grid .sv-bc:nth-child(7) { grid-column: span 3; grid-row: span 1; }
.sv-bento-grid .sv-bc:nth-child(8) { grid-column: span 3; grid-row: span 1; }
.sv-bento-grid .sv-bc:nth-child(9) { grid-column: span 3; grid-row: span 1; }

/* ========== Device trio composite (Web card) ========== */
/* Card has bottom padding 24px + a 32px-tall tag row.
   Sit the image exactly 5px above the tag row. */
.sv-devices {
  position: absolute;
  bottom: 54px;    /* image's bottom sits 5px above the tags row */
  right: 24px;
  width: 46%;
  max-width: 360px;
  pointer-events: none;
  z-index: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.sv-devices-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.25));
}

/* ========== Meta + Google mark on Paid card ========== */
.sv-bc-metagoogle {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 40%;
  max-width: 150px;
  display: flex;
  justify-content: flex-end;
  z-index: 0;
  pointer-events: none;
}
.sv-bc-metagoogle img {
  width: 100%;
  height: auto;
  opacity: 0.9;
}

/* ========== Social media icons on Social card ========== */
/* Same small (1-row) size as Email card.  Icons sit in bottom-right,
   lifted so they don't collide with the title. */
.sv-bc-social {
  position: absolute;
  right: 10px;
  bottom: 58px;       /* push up above the title */
  width: 58%;
  max-width: 170px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  z-index: 0;
  pointer-events: none;
}
.sv-bc-social img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45));
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .sv-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sv-hero-visual {
    order: 2;
    width: min(480px, 100%);
    margin: 0 auto;
  }
  .sv-bento-head { grid-template-columns: 1fr; }
  .sv-bento-grid { grid-auto-rows: 160px; }
  .sv-bento-grid .sv-bc:nth-child(1) { grid-column: span 12; grid-row: span 2; }
  .sv-bento-grid .sv-bc:nth-child(2),
  .sv-bento-grid .sv-bc:nth-child(3) { grid-column: span 6; grid-row: span 1; }
  .sv-bento-grid .sv-bc:nth-child(4) { grid-column: span 6; grid-row: span 2; }
  .sv-bento-grid .sv-bc:nth-child(5) { grid-column: span 6; grid-row: span 2; }
  .sv-bento-grid .sv-bc:nth-child(6),
  .sv-bento-grid .sv-bc:nth-child(7),
  .sv-bento-grid .sv-bc:nth-child(8),
  .sv-bento-grid .sv-bc:nth-child(9) { grid-column: span 6; grid-row: span 1; }
  .sv-devices { width: 58%; bottom: 38%; }
}
@media (max-width: 680px) {
  .sv-head { font-size: clamp(44px, 12vw, 68px); }
  .sv-bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .sv-bento-grid .sv-bc:nth-child(n) {
    grid-column: span 1;
    grid-row: auto;
    min-height: 220px;
  }
  .sv-bento-grid .sv-bc:nth-child(1) { min-height: 380px; }
  .sv-devices { width: 70%; bottom: 40%; }
  .sv-orbit { width: 88vw; }
}

/* ============= MOBILE FIXES (≤760px) ============= */
@media (max-width: 760px) {
  .sv-hero-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .sv-bento-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .sv-bc { grid-column: span 1 !important; min-height: 280px; }
  .sv-bento-head { grid-template-columns: 1fr; gap: 12px; }
  .sv-hero-head { font-size: clamp(40px, 11vw, 64px) !important; }
}
