/* Services grid (SlidingHighlight component): double-bezel frosted glass cards.
   The grid is server-rendered with inline styles and no hooks, so it is targeted by structure:
   root > [highlight, arrow, grid > .shg-card-wrap]. */

:root {
  --glass-accent: var(--token-ea2b24cc-11a3-4cc3-8bbb-ba3c8215c20d, #4e2bda);
  --glass-ease: cubic-bezier(.22, 1, .36, 1);
  --glass-radius: 24px;
  --glass-bezel: 6px;
}

div:has(> div > .shg-card-wrap) { background: transparent !important; }

div:has(> .shg-card-wrap) {
  gap: 16px !important;
  border: 0 !important;
  counter-reset: shg-card;
}

/* Animatable glare strength, so the hover light fades instead of swapping gradients. */
@property --glare { syntax: '<number>'; inherits: false; initial-value: 0; }

/* Outer shell: frosted plate with a hairline edge; glare follows the pointer
   (--glass-x/--glass-y from about-cards.js, registered in about-cards.css). */
.shg-card-wrap {
  counter-increment: shg-card;
  isolation: isolate;
  overflow: hidden !important; /* keeps the number watermark inside the card */
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: var(--glass-radius);
  background:
    radial-gradient(320px circle at var(--glass-x, 50%) var(--glass-y, 0%),
      rgba(255, 255, 255, calc(.16 * var(--glare))), rgba(255, 255, 255, calc(.03 * var(--glare))) 50%, transparent 75%),
    radial-gradient(130% 120% at 0% 0%, rgba(78, 43, 218, calc(.75 * var(--glare))), rgba(78, 43, 218, calc(.2 * var(--glare))) 60%, transparent 100%),
    rgba(255, 255, 255, calc(.035 + .015 * var(--glare))) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0), 0 30px 60px -40px rgba(0, 0, 0, .9);
  transition: --glare .5s var(--glass-ease), border-color .5s var(--glass-ease), box-shadow .5s var(--glass-ease);
}

/* Inner core: darker glass with its own top highlight and concentric radius. */
.shg-card-wrap::after {
  content: "";
  position: absolute;
  inset: var(--glass-bezel);
  z-index: -2;
  border-radius: calc(var(--glass-radius) - var(--glass-bezel));
  background: linear-gradient(165deg, rgba(20, 24, 32, .8), rgba(6, 8, 12, .88));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .03);
  transition: background-color .5s var(--glass-ease), opacity .5s var(--glass-ease);
}

/* Index number as an outlined watermark behind the content, like the experience years.
   It sits above the inner core (z -2) and below the text. */
.shg-card-wrap::before {
  content: counter(shg-card, decimal-leading-zero);
  position: absolute;
  right: 26px;
  bottom: -24px;
  z-index: -1;
  font: 700 150px/1 'Satoshi', 'Inter', sans-serif;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .09);
  pointer-events: none;
  transition: -webkit-text-stroke-color .6s var(--glass-ease), translate .8s var(--glass-ease);
}

.shg-card-wrap:hover {
  --glare: 1;
  border-color: rgba(255, 255, 255, .26) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .3), 0 30px 80px -30px rgba(78, 43, 218, .6);
}
.shg-card-wrap:hover::after { opacity: .35; }
.shg-card-wrap:hover::before { -webkit-text-stroke-color: rgba(160, 140, 255, .5); translate: -10px 0; }

/* The component's shared highlight slides between cards through the gaps; each card glows on its own instead. */
div:has(> div > .shg-card-wrap) > div:empty { display: none !important; }

/* Arrow: a glass button nested in the card corner instead of a square tab.
   It pops in on the hovered card rather than flying across the gaps. */
div:has(> div > .shg-card-wrap) > div:has(> svg) {
  width: 44px !important;
  height: 44px !important;
  translate: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .14) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform-origin: center !important;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1) !important;
}
div:has(> div > .shg-card-wrap) > div:has(> svg) svg { stroke: #fff; }

@media (prefers-reduced-motion: reduce) {
  .shg-card-wrap, .shg-card-wrap::before, .shg-card-wrap::after { transition: none; }
}

/* Service icon tile (injected by services.js) and a clearer eyebrow. */
.shg-card-wrap { cursor: pointer; }
.svc-card-icon {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #cfc6ff;
  background: radial-gradient(120% 120% at 0% 0%, rgba(117, 86, 242, .45), rgba(78, 43, 218, .12));
  border: 1px solid rgba(160, 140, 255, .32);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .2);
  pointer-events: none;
  transition: color .4s var(--glass-ease), border-color .4s var(--glass-ease), box-shadow .4s var(--glass-ease), scale .5s cubic-bezier(.34, 1.56, .64, 1);
}
.shg-card-wrap:hover .svc-card-icon {
  color: #fff;
  border-color: rgba(200, 188, 255, .6);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .3), 0 0 24px rgba(117, 86, 242, .55);
  scale: 1.06;
}
.shg-card-wrap > p:first-of-type {
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: .16em !important;
  color: #c4b8ff !important;
  transition: color .4s var(--glass-ease) !important;
}
.shg-card-wrap:hover > p:first-of-type { color: #fff !important; }
.shg-card-wrap:focus-visible { outline: 2px solid rgba(196, 184, 255, .9); outline-offset: 3px; }

/* Service pop-up (services.js). */
html.svc-locked { overflow: hidden; }
.svc-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 24px;
}
.svc-modal[hidden] { display: none; }
.svc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 8, .62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .45s var(--glass-ease);
}
.svc-panel {
  position: relative;
  width: min(580px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 32px;
  border-radius: var(--glass-radius);
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(160deg, rgba(44, 34, 84, .78), rgba(10, 10, 18, .86));
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .18), 0 40px 120px -40px rgba(78, 43, 218, .75), 0 30px 60px -30px rgba(0, 0, 0, .9);
  color: #fff;
  font-family: 'Satoshi', 'Inter', sans-serif;
  opacity: 0;
  transform: translateY(18px) scale(.97);
  transition: opacity .45s var(--glass-ease), transform .55s var(--glass-ease);
}
.svc-modal.is-open .svc-backdrop { opacity: 1; }
.svc-modal.is-open .svc-panel { opacity: 1; transform: none; }
.svc-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  cursor: pointer;
  transition: background-color .3s var(--glass-ease), rotate .4s var(--glass-ease);
}
.svc-close:hover { background: rgba(255, 255, 255, .16); rotate: 90deg; }
.svc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.svc-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: radial-gradient(120% 120% at 0% 0%, rgba(117, 86, 242, .7), rgba(78, 43, 218, .2));
  border: 1px solid rgba(200, 188, 255, .4);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .3), 0 0 32px rgba(117, 86, 242, .45);
}
.svc-index { font: 400 12px/1 'GT America Mono', ui-monospace, monospace; letter-spacing: .12em; color: rgba(255, 255, 255, .45); }
.svc-eyebrow { margin: 0 0 10px; font: 500 11px/1.4 'GT America Mono', ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: #c4b8ff; }
.svc-title { margin: 0 0 14px; font: 700 28px/1.2 'Satoshi', 'Inter', sans-serif; letter-spacing: -.02em; color: #fff; }
.svc-body { margin: 0 0 22px; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, .76); }
.svc-points { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.svc-points li { position: relative; padding-left: 30px; font-size: 15px; font-weight: 500; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.svc-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(160, 140, 255, .55);
  background: rgba(78, 43, 218, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.svc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.svc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  font: 600 15px/1 'Satoshi', 'Inter', sans-serif;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  transition: filter .35s var(--glass-ease), translate .35s var(--glass-ease), background-color .35s var(--glass-ease), box-shadow .35s var(--glass-ease);
}
.svc-btn:not(.svc-btn-primary):hover { background: rgba(255, 255, 255, .15); translate: 0 -1px; }
.svc-btn-primary {
  background: linear-gradient(160deg, rgba(117, 86, 242, .95), rgba(78, 43, 218, .85));
  border-color: rgba(255, 255, 255, .2);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .3), 0 16px 36px -18px rgba(78, 43, 218, .9);
}
.svc-btn-primary:hover { filter: brightness(1.12); translate: 0 -1px; }
.svc-btn svg { transition: translate .35s var(--glass-ease); }
.svc-btn-primary:hover svg { translate: 3px 0; }
.svc-btn:focus-visible, .svc-close:focus-visible { outline: 2px solid rgba(196, 184, 255, .9); outline-offset: 3px; }
@media (max-width: 600px) {
  .svc-panel { padding: 24px; }
  .svc-title { font-size: 23px; }
  .svc-actions .svc-btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-panel { transform: none; transition: opacity .2s; }
  .svc-backdrop { transition: opacity .2s; }
  .svc-card-icon, .svc-close { transition: none; }
}

/* Room for the icon row: the grid (and its Framer containers) size to their content
   instead of the fixed height Framer exported, with a minimum card height. */
div:has(> div > div > .shg-card-wrap),
div:has(> div > div > div > .shg-card-wrap),
div:has(> div > .shg-card-wrap) { height: auto !important; }
div:has(> .shg-card-wrap) {
  height: auto !important;
  grid-template-rows: none !important;
  grid-auto-rows: minmax(210px, auto) !important;
}
