.section-jump-control {
  --sl-size: 46px;
  --sl-svg: 62px;
  --sl-pad: #f5f5f5;
  --sl-icon: #18181b;
  --sl-accent: #f5f5f5;
  --sl-well: #27272a;
  --sl-band: #52525b;
  --sl-stroke: 3px;
  --sl-dot: 8px;
  --sl-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  position: fixed;
  left: 50%;
  bottom: calc(1.55rem + env(safe-area-inset-bottom));
  z-index: 72;
  display: inline-block;
  width: var(--sl-size);
  height: var(--sl-size);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 12px, 0) scale(0.94);
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.28s ease, transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-site-ready .section-jump-control {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0) scale(1);
}

body.is-page-leaving .section-jump-control {
  opacity: 0;
  pointer-events: none;
}

.section-jump-control[hidden] { display: none; }

.sling-button__fx {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--sl-svg);
  height: var(--sl-svg);
  margin: calc(var(--sl-svg) / -2) 0 0 calc(var(--sl-svg) / -2);
  overflow: visible;
  pointer-events: none;
  shape-rendering: geometricPrecision;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.sling-button__well {
  fill: var(--sl-well);
  stroke: rgba(244, 244, 241, 0.14);
  stroke-width: 1;
  transition: fill 180ms ease, stroke 180ms ease;
}

.sling-button[data-sent] .sling-button__well {
  fill: #111;
  stroke: rgba(244, 244, 241, 0.28);
}

.sling-button__tension { opacity: 0; }

.sling-button__band {
  fill: none;
  stroke: var(--sl-band);
  stroke-width: var(--sl-stroke);
  stroke-linecap: round;
  transition: stroke-width 160ms var(--sl-ease-out), opacity 160ms ease;
}

.sling-button[data-armed] .sling-button__band {
  stroke-width: calc(var(--sl-stroke) * 1.45);
}

.sling-button__band--hot {
  stroke: var(--sl-accent);
  opacity: 0;
}

.sling-button__arc {
  display: none;
}


.sling-button__move {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.sling-button__pad {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: grab;
  outline: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.sling-button__pad::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
}

.sling-button__pad[data-held] { cursor: grabbing; }

.sling-button__pad:focus-visible {
  outline: 1px solid rgba(244, 244, 241, 0.9);
  outline-offset: 5px;
}

.sling-button__face {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sl-pad);
  color: var(--sl-icon);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(0,0,0,.12), 0 6px 18px rgba(0,0,0,.26);
  transition: transform 160ms var(--sl-ease-out), box-shadow 200ms ease;
}

.sling-button__pad[data-held] .sling-button__face { transform: scale(0.97); }

.sling-button__pad[data-armed] .sling-button__face {
  transform: scale(1.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,1), inset 0 -1px 0 rgba(0,0,0,.1), 0 9px 24px rgba(0,0,0,.32);
}

@media (hover: hover) and (pointer: fine) {
  .sling-button__pad:not([data-held]):hover .sling-button__face { transform: scale(1.02); }
}

.sling-button__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transform: rotate(0deg);
  transition: transform 360ms cubic-bezier(0.23, 1, 0.32, 1);
}

.sling-button[data-direction="up"] .sling-button__icon { transform: rotate(180deg); }

.sling-button__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sling-button__particles,
.sling-button__dot { pointer-events: none; }

.sling-button__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--sl-dot);
  height: var(--sl-dot);
  margin: calc(var(--sl-dot) / -2) 0 0 calc(var(--sl-dot) / -2);
  border-radius: 50%;
  background: var(--sl-accent);
  opacity: 0;
}

.sling-button__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .section-jump-control {
    --sl-size: 44px;
    --sl-svg: 60px;
    bottom: calc(2rem + env(safe-area-inset-bottom));
  }
  .sling-button__icon { width: 15px; height: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .section-jump-control,
  .sling-button__face,
  .sling-button__icon,
  .sling-button__band,
  .sling-button__arc,
  .sling-button__well { transition: none !important; }
}

/* Keep explicitly resized node cards internally elastic at compact heights. */
.hero-custom-node.has-user-height {
  display: flex;
  flex-direction: column;
}

.hero-custom-node.has-user-height > .hero-custom-node__meta,
.hero-custom-node.has-user-height > .hero-custom-node__media-footer {
  flex: 0 0 auto;
}

.hero-custom-node.has-user-height > .hero-custom-node__editor,
.hero-custom-node.has-user-height > .hero-custom-node__link-body,
.hero-custom-node.has-user-height > .hero-custom-node__media-frame,
.hero-custom-node.has-user-height > .hero-custom-node__embed-frame {
  flex: 1 1 0;
  min-height: 0;
}

.hero-custom-node.has-user-height > .hero-custom-node__editor {
  max-height: none;
}

.hero-custom-node.has-user-height > .hero-custom-node__link-body {
  overflow-y: auto;
}

.hero-custom-node.has-user-height > .hero-custom-node__media-frame,
.hero-custom-node.has-user-height > .hero-custom-node__embed-frame {
  aspect-ratio: auto;
}

/* Mobile footer clearance: dock the return control above D/AI instead of over audio. */
@media (max-width: 760px) {
  body.is-site-ready .section-jump-control[data-direction="up"] {
    transform: translate3d(calc(-50% + 50vw - 51px), -62px, 0) scale(1);
  }
}

@media (max-width: 640px) {
  body.is-site-ready .section-jump-control[data-direction="up"] {
    transform: translate3d(calc(-50% + 50vw - max(14px, env(safe-area-inset-right)) - 26px), -48px, 0) scale(1);
  }
}
