.artive-services {
  background: var(--surface, #f0f0f0);
}

.artive-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--ink, #161616);
  isolation: isolate;
}

.artive-service {
  min-width: 0;
  position: relative;
  border-radius: var(--radius-card);
  color: var(--ink, #161616);
  text-decoration: none;
}

.artive-service-panel {
  display: grid;
  align-content: start;
  position: relative;
  min-height: 100%;
  padding: 24px clamp(18px, 2vw, 32px) 27px;
  border-radius: inherit;
  transition: background-color .18s ease, box-shadow .18s ease;
}

.artive-service + .artive-service {
  border-inline-start: 1px solid var(--rule, #ccc);
}

.artive-service-icon {
  display: grid;
  place-items: center start;
  block-size: 82px;
  margin-block-end: 16px;
}

.artive-service-symbol {
  position: relative;
  inline-size: 72px;
  block-size: 72px;
}

.artive-service-original,
.artive-service-artwork,
.artive-service-motion {
  display: block;
  inline-size: 100%;
  block-size: 100%;
}

.artive-service-original {
  object-fit: contain;
  object-position: left center;
}

.artive-service-artwork,
.artive-service-motion {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.artive-service-motion { visibility: hidden; }

.service-vinyl-groove,
.service-sfx-wave {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-vinyl-groove {
  stroke: var(--accent);
  opacity: 0;
  stroke-width: 3.2;
  stroke-dasharray: .2 100;
}

.service-sfx-wave { stroke: black; stroke-width: 5; }

.artive-service h3 {
  margin: 0 0 10px;
  padding-inline-end: 14px;
  font-family: var(--home-display-font);
  font-size: clamp(1.13rem, 1.7vw, 1.55rem);
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -.03em;
}

.artive-service-copy {
  display: grid;
  padding-inline-end: 10px;
}

.artive-service-copy p {
  grid-area: 1 / 1;
  margin: 0;
  max-inline-size: 33ch;
  color: var(--muted, #535353);
  font-size: .85rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  transition: opacity .24s var(--artive-ease, ease);
}

.artive-service-summary {
  display: none;
}

.artive-service-arrow {
  position: absolute;
  top: 24px;
  inset-inline-end: clamp(18px, 2vw, 32px);
  color: var(--accent);
  font-size: 1.45rem;
  line-height: 1;
  transition: color .24s var(--artive-ease, ease), transform .24s var(--artive-ease, ease);
}

.artive-service:focus-visible {
  outline: 2px solid var(--accent-text, #a21d5d);
  outline-offset: -2px;
}

.artive-service:focus-visible .artive-service-panel { background: var(--paper, white); }

.artive-service:focus-visible .artive-service-arrow {
  color: var(--accent-text, #a21d5d);
}

@media (hover: hover) and (pointer: fine) {
  .artive-service-summary { display: block; }
  .artive-service-detail { opacity: 0; }
  .artive-service:is(:hover, :focus-visible) .artive-service-panel { background: var(--paper, white); }
  .artive-service:is(:hover, :focus-visible) .artive-service-summary { opacity: 0; }
  .artive-service:is(:hover, :focus-visible) .artive-service-detail { opacity: 1; }
  .artive-service:is(:hover, :focus-visible) .artive-service-arrow {
    color: var(--accent-text, #a21d5d);
    transform: translateX(4px);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .artive-service-panel {
    pointer-events: none;
    transform: translateY(0) scale(1);
    transition: transform .17s ease-out, background-color .17s ease, box-shadow .17s ease;
  }
  .artive-service:hover { z-index: 1; }
  .artive-service:hover .artive-service-panel {
    transform: translateY(-3px) scale(1.045);
    box-shadow: 0 8px 24px rgb(24 16 24 / 10%);
    transition-timing-function: cubic-bezier(.2, .88, .34, 1.62), ease, ease;
    transition-duration: .29s, .17s, .2s;
  }
  .artive-service:hover .artive-service-detail { transition-delay: .06s; }

  .artive-service:is(:hover, :focus-visible) .artive-service-motion { visibility: visible; }
  .artive-service:is(:hover, :focus-visible) [data-service-icon="vo"] .artive-service-original {
    visibility: hidden;
  }
  .artive-service:is(:hover, :focus-visible) .service-vinyl-groove {
    animation: service-trace .92s linear both;
  }
  .artive-service:is(:hover, :focus-visible) .service-violin {
    animation: service-violin-slide .56s cubic-bezier(.55, 0, .27, 1) both;
  }
  .artive-service:is(:hover, :focus-visible) .service-sfx-wave {
    animation: service-sfx-rebound .78s ease-in-out both;
  }
  .artive-service:is(:hover, :focus-visible) .service-voice-wave {
    animation: service-voice-ripple .2s ease-out both;
  }
  .artive-service:is(:hover, :focus-visible) .service-voice-wave:nth-last-child(2) { animation-delay: .09s; }
  .artive-service:is(:hover, :focus-visible) .service-voice-wave:last-child { animation-delay: .18s; }
}

@keyframes service-trace {
  0% { opacity: 0; stroke-dasharray: .2 100; stroke-dashoffset: 0; }
  9%, 91% { opacity: 1; }
  16% { stroke-dasharray: 4 100; stroke-dashoffset: 0; }
  28% { stroke-dasharray: 19 100; stroke-dashoffset: 0; }
  42% { stroke-dasharray: 53 100; stroke-dashoffset: -3; }
  55% { stroke-dasharray: 81 100; stroke-dashoffset: -9; }
  66% { stroke-dasharray: 61 100; stroke-dashoffset: -35; }
  79% { stroke-dasharray: 21 100; stroke-dashoffset: -78; }
  90% { stroke-dasharray: 2.8 100; stroke-dashoffset: -97; }
  96%, 100% { stroke-dasharray: .2 100; stroke-dashoffset: -99.8; }
  100% { opacity: 0; }
}

@keyframes service-violin-slide {
  from { opacity: .08; transform: translate(-20px, 20px); }
  to { opacity: 1; transform: translate(0, 0); }
}

@keyframes service-sfx-rebound {
  22%, 27% { d: path("M3 77H41L48 77L59 77L69 77L78 77L86 77L95 77L103 77H143"); }
  45% { d: path("M3 81H41L48 51L59 108L69 32L78 80L86 69L95 89L103 73H143"); }
  62% { d: path("M3 82H41L48 60L59 99L69 40L78 82L86 57L95 105L103 71H143"); }
  78% { d: path("M3 82H41L48 56L59 105L69 30L78 81L86 64L95 98L103 71H143"); }
}

@keyframes service-voice-ripple {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 800px) {
  .artive-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .artive-service:nth-child(odd) { border-inline-start: 0; }
  .artive-service:nth-child(n+3) { border-block-start: 1px solid var(--rule, #ccc); }
  .artive-service-panel { padding: 15px 13px 17px; }
  .artive-service-icon { block-size: 47px; margin-block-end: 12px; }
  .artive-service-symbol { inline-size: 45px; block-size: 45px; }
  .artive-service h3 { padding-inline-end: 0; }
  .artive-service-copy { padding-inline-end: 0; }
  .artive-service-copy p { font-size: .77rem; }
  .artive-service-arrow { top: 15px; inset-inline-end: 13px; font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .artive-service-panel,
  .artive-service-copy p,
  .artive-service-arrow { transition: none; }
  .artive-service:is(:hover, :focus-visible) .artive-service-arrow { transform: none; }
}
