/* Expertises — stories type Instagram */
.story-deck {
  margin-top: 0.5rem;
}

.story-rings {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.2rem 0.2rem 1.15rem;
  scrollbar-width: none;
}

.story-rings::-webkit-scrollbar {
  display: none;
}

.story-ring {
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.story-ring-avatar {
  width: 68px;
  height: 68px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2fb2ff, #7c5cff 45%, #e91e8c);
  display: grid;
  place-items: center;
}

.story-ring-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #0a101c;
  background: #0a101c;
}

.story-ring.is-seen .story-ring-avatar {
  background: #3a4660;
}

.story-ring.is-active {
  color: #fff;
}

.story-ring.is-active .story-ring-avatar {
  background: linear-gradient(135deg, #7dd3ff, #ff7ac4);
  box-shadow: 0 0 18px rgba(47, 178, 255, 0.35);
}

.story-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 1rem;
}

.story-phone {
  position: relative;
  width: min(96vw, calc(82vh * 16 / 9), 920px);
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 82vh;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 0 8px rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.story-progress {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 5;
  display: flex;
  gap: 4px;
  pointer-events: none;
}

.story-progress i {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
}

.story-progress i b {
  display: block;
  height: 100%;
  width: 0%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.story-topbar {
  position: absolute;
  top: 22px;
  left: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  pointer-events: none;
}

.story-top-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: #0c1730;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px;
}

.story-top-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.story-top-copy strong {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.story-top-copy span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.story-sound {
  appearance: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.story-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 20px;
}

.story-track {
  display: flex;
  height: 100%;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.story-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  background: #000;
  isolation: isolate;
}

.story-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.story-slide video {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #000;
}

.story-slide.is-loading video {
  opacity: 0;
}

.story-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  transition: opacity 0.35s ease;
  background: #000;
}

.story-slide.is-playing .story-poster {
  opacity: 0;
}

.story-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.story-slide.is-loading .story-loader {
  opacity: 1;
}

.story-loader::after {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  animation: story-spin 0.8s linear infinite;
}

@keyframes story-spin {
  to { transform: rotate(360deg); }
}

.story-play-hint {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.story-slide.is-paused-hint .story-play-hint {
  opacity: 1;
}

.story-play-hint i {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.story-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: 4.5rem 1.1rem 1.35rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 70%);
  color: #fff;
  pointer-events: none;
}

.story-caption h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.story-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}

.story-tap {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34%;
  border: 0;
  background: transparent;
  z-index: 4;
  cursor: pointer;
}

.story-tap--prev { left: 0; }
.story-tap--next { right: 0; width: 66%; }

.expertise-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.95);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.expertise-nav:hover {
  border-color: rgba(27, 127, 212, 0.55);
  background: rgba(27, 127, 212, 0.18);
  transform: scale(1.05);
}

.pro-footer {
  border-top: 1px solid var(--line);
  background: #080e18;
}

body.pro-landing .footer-brand-name.brand-gradient {
  background: linear-gradient(92deg, #8ed9ff 8%, #3bb9ff 45%, #ff58b1 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (max-width: 900px) {
  .story-stage {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .expertise-nav {
    position: absolute;
    top: 48%;
    z-index: 6;
    width: 40px;
    height: 40px;
  }

  .expertise-nav--prev { left: 0.15rem; }
  .expertise-nav--next { right: 0.15rem; }

  .story-rings {
    justify-content: flex-start;
    gap: 0.7rem;
  }
}

/* Lottie — hero & expertises */
.anim-lottie {
  width: min(280px, 42vw);
  height: min(280px, 42vw);
  margin: 0 auto;
  pointer-events: none;
}

.anim-lottie--hero {
  position: absolute;
  right: clamp(1rem, 6vw, 4rem);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.55;
  z-index: 2;
}

.anim-scene {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
  width: min(320px, 70vw);
  height: min(320px, 70vw);
}

.anim-scene .anim-lottie {
  position: relative;
  z-index: 1;
}

.anim-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(47, 178, 255, 0.25);
  pointer-events: none;
}

.anim-ring--1 {
  inset: 8%;
  animation: orbFloat 14s ease-in-out infinite alternate;
}

.anim-ring--2 {
  inset: 0;
  border-color: rgba(233, 30, 140, 0.2);
  animation: orbFloat 18s ease-in-out infinite alternate-reverse;
}

@media (max-width: 900px) {
  .anim-lottie--hero {
    display: none;
  }
}
