.profile-slidebar {
  --profile-progress: 0%;
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 4vw, 64px);
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 64px);
  color: #f5f7f8;
  background: radial-gradient(circle at 12% -110%, #d8a74724, transparent 43%), linear-gradient(110deg, #091725f7, #10253af2 55%, #071421f8);
  border-bottom: 1px solid #d6ad5a59;
  box-shadow: 0 16px 42px #06111e61, inset 0 1px #ffffff1c;
  backdrop-filter: blur(18px);
  isolation: isolate;
}
.profile-slidebar::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: 0;
  width: var(--profile-progress);
  height: 3px;
  background: linear-gradient(90deg, #c88f32, #f5ca72 75%, #fff1bc);
  box-shadow: 0 0 17px #f0bd5c9c;
  transition: width 1.45s cubic-bezier(.19, 1, .22, 1);
}

.profile-slidebar-label { min-width: 0; }
.profile-slidebar-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e6b356;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.5;
}
.profile-slidebar-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #f0c36a;
  box-shadow: 0 0 0 4px #e6b35623, 0 0 14px #e6b356a6;
  animation: profile-beacon 4.8s ease-in-out infinite;
}
@keyframes profile-beacon {
  50% { box-shadow: 0 0 0 7px #e6b3560b, 0 0 22px #e6b356c4; }
}
.profile-slidebar-current {
  display: flex;
  align-items: baseline;
  gap: 14px;
  white-space: nowrap;
  font-size: .9375rem;
  line-height: 1.5;
}
.profile-slidebar-current span {
  color: #e6b356;
  font-size: .75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}
.profile-slidebar-current strong {
  overflow: hidden;
  max-width: 38ch;
  text-overflow: ellipsis;
  font-weight: 600;
}
.profile-slidebar-current.is-changing { animation: profile-tag-in 1.05s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes profile-tag-in {
  from { opacity: .15; filter: blur(5px); transform: translateY(12px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.profile-slidebar-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(38vw, 440px);
  flex: 0 0 auto;
}
.profile-slidebar-controls button {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  color: #f5f7f8;
  background: #ffffff0d;
  transition: color .4s, background .4s, border-color .4s, transform .55s cubic-bezier(.16, 1, .3, 1), box-shadow .4s;
}
.profile-slidebar-controls button:not(:disabled):hover {
  color: #0b1928;
  background: #e6b356;
  border-color: #e6b356;
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 0 0 5px #e6b3561e, 0 7px 20px #0007;
}
.profile-slidebar-controls button:disabled { opacity: .35; cursor: default; }
.profile-slidebar-controls input[type="range"] {
  flex: 1 1 auto;
  width: 100%;
  height: 32px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.profile-slidebar-controls input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, #c78c2b, #f7d17f var(--profile-progress), #ffffff55 var(--profile-progress));
}
.profile-slidebar-controls input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, #c78c2b, #f7d17f var(--profile-progress), #ffffff55 var(--profile-progress));
}
.profile-slidebar-controls input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6.5px;
  appearance: none;
  -webkit-appearance: none;
  border: 3px solid #0b1928;
  border-radius: 50%;
  background: #e6b356;
  box-shadow: 0 0 0 2px #e6b356, 0 0 16px #e6b35691;
}
.profile-slidebar-controls input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 3px solid #0b1928;
  border-radius: 50%;
  background: #e6b356;
  box-shadow: 0 0 0 2px #e6b356, 0 0 16px #e6b35691;
}
.profile-slidebar :is(button, input):focus-visible {
  outline: 3px solid #e6b356;
  outline-offset: 4px;
}

.profile-page { scroll-margin-top: 74px; }
.profile-page::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e9af45 25%, #fff0ad 50%, #e9af45 75%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
.profile-motion-ready .profile-page.is-visible::before {
  transform: scaleX(1);
  transition: transform 1.8s cubic-bezier(.19, 1, .22, 1) .25s;
}
.profile-page::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(112deg, transparent 41%, #fff2c20d 47%, #f7c3671d 50%, #fff2c20d 53%, transparent 59%);
  transform: translateX(-110%);
  pointer-events: none;
}
.profile-motion-ready .profile-page.is-visible::after {
  animation: profile-light-pass 2.15s cubic-bezier(.19, 1, .22, 1) .25s both;
}
@keyframes profile-light-pass {
  0% { transform: translateX(-110%); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateX(110%); opacity: 0; }
}
.profile-motion-ready .profile-page.is-awaiting > a {
  opacity: 0;
  transform: translateY(48px) scale(1.025);
  filter: saturate(.7) brightness(.82);
}
.profile-motion-ready .profile-page > a {
  transform-origin: center 20%;
  transition: opacity 1.45s ease, transform 1.75s cubic-bezier(.19,1,.22,1), filter 1.7s ease;
}
.profile-motion-ready .profile-page.is-visible > a {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: saturate(1) brightness(1);
}

@media (max-width: 760px) {
  .profile-slidebar { flex-wrap: wrap; gap: 7px; min-height: 98px; padding: 9px 16px 11px; }
  .profile-slidebar-label { width: 100%; }
  .profile-slidebar-kicker { font-size: .5625rem; }
  .profile-slidebar-current { gap: 10px; font-size: .8125rem; }
  .profile-slidebar-current strong { max-width: calc(100vw - 110px); }
  .profile-slidebar-controls { width: 100%; gap: 12px; }
  .profile-slidebar-controls button { flex-basis: 30px; width: 30px; height: 30px; }
  .profile-page { scroll-margin-top: 98px; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-slidebar-kicker::before { animation: none; }
  .profile-slidebar::after,
  .profile-motion-ready .profile-page.is-visible::before { transition: none; }
  .profile-motion-ready .profile-page.is-visible::after { animation: none; }
  .profile-slidebar-current.is-changing { animation: none; }
  .profile-slidebar-controls button,
  .profile-motion-ready .profile-page > a { transition: none; }
  .profile-motion-ready .profile-page.is-awaiting > a { opacity: 1; transform: none; filter: none; }
}
