/*
 * Drive headline — structure.
 * A sprite (default: delivery van) reveals an H1 line by line.
 * Ten styles via data-style / DriveHeadline.play(el, style).
 *
 * DO NOT edit this file to re-skin — override tokens in the .tokens.css file.
 */

.sp-drive-headline {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.sp-drive-headline__title {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-ui, "SF Pro Text", -apple-system, sans-serif);
  font-size: var(--sp-drive-headline-size, 24px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.4px;
  text-align: center;
  color: var(--ink, #292929);
}

.sp-drive-headline__line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  background: transparent;
  overflow: visible;
}

/* Earlier lines sit above later ones so descenders (g, y, p) are not
   covered by the next line's stacking context. Sprite layer stays at 8. */
.sp-drive-headline__line:nth-child(1) { z-index: 4; }
.sp-drive-headline__line:nth-child(2) { z-index: 3; }
.sp-drive-headline__line:nth-child(3) { z-index: 2; }
.sp-drive-headline__line:nth-child(n + 4) { z-index: 1; }

.sp-drive-headline__inner {
  display: inline-block;
  white-space: nowrap;
  background: transparent;
  overflow: visible;
}

.sp-drive-headline__word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.sp-drive-headline__accent {
  color: var(--sp-drive-headline-accent, var(--accent, #3b82f6));
}

.sp-drive-headline__park {
  display: inline-block;
  width: var(--sp-drive-headline-sprite, 44px);
  height: var(--sp-drive-headline-sprite, 44px);
  flex-shrink: 0;
  border-radius: var(--radius-nav, 8px);
}

.sp-drive-headline__underline {
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 6px;
  width: 0;
  background: var(--sp-drive-headline-mark, var(--accent, #3b82f6));
  border-radius: var(--radius-pill, 9999px);
  z-index: -1;
  opacity: 0.85;
}

.sp-drive-headline__layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  overflow: visible;
}

.sp-drive-headline__sprite {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--sp-drive-headline-sprite, 44px);
  height: var(--sp-drive-headline-sprite, 44px);
  overflow: visible;
  will-change: transform;
  filter: drop-shadow(0 4px 8px rgba(23, 23, 23, 0.16));
}

.sp-drive-headline__dust {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--sp-drive-headline-mark, var(--accent, #3b82f6));
  pointer-events: none;
  z-index: 2;
}

.sp-drive-headline.is-reduced .sp-drive-headline__layer {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .sp-drive-headline__layer {
    display: none;
  }
}
