

.sticky-story {
  position: relative;
  padding: 60px 24px 100px;

}
.sticky-story::before {
  content: '';
  position: absolute;
  top: 10%; left: 0;
  width: 100%; height: 80%;
  background:
    radial-gradient(ellipse 40% 30% at 25% 20%, rgba(var(--brand-primary-rgb), 0.1), transparent 60%),
    radial-gradient(ellipse 40% 30% at 75% 70%, rgba(var(--brand-accent-rgb),  0.08), transparent 60%);
  pointer-events: none;
  filter: blur(60px);
  z-index: -1;
}

.sticky-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.sticky-intro h2 {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.35;
  margin: 14px 0 12px;
  color: var(--text);
}
.sticky-scroll-hint {
  display: inline-block;
  margin-top: 8px;
  color: var(--brand-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: sticky-hint-bob 2s ease-in-out infinite;
}
@keyframes sticky-hint-bob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(6px); opacity: 1; }
}

.sticky-stage {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
}

.sticky-phone-col {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

}
.sticky-phone-col.js-pinned .sticky-phone-wrap {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
}
.sticky-phone-col.js-pinned-bottom .sticky-phone-wrap {

  position: absolute;
  bottom: 0;
  top: auto;
  transform: none;
}

.sticky-phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-phone-orb {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(var(--brand-primary-rgb), 0.35) 0%,
    rgba(var(--brand-accent-rgb),  0.18) 40%,
    transparent 70%);
  filter: blur(40px);
  animation: sticky-orb-pulse 4s ease-in-out infinite;
  z-index: 0;
}
@keyframes sticky-orb-pulse {
  0%, 100% { transform: scale(0.95); opacity: 0.8; }
  50%      { transform: scale(1.1);  opacity: 1; }
}

.sticky-phone-frame {
  position: relative;
  width: 300px;
  height: 600px;
  background: linear-gradient(145deg, #0a0c12, #161922 50%, #0a0c12);
  border-radius: 46px;
  padding: 12px;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1.5px rgba(255, 255, 255, 0.08),
    inset 0 0 0 2px rgba(255, 255, 255, 0.04);
  z-index: 1;
}
.sticky-phone-notch {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 26px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 5;
}
.sticky-phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0a0e1a, #161a25);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}

.phone-scene {
  position: absolute;
  inset: 48px 14px 14px;
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.phone-scene.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.ps-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}
.ps-tile {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  animation: ps-tile-fade 0.6s ease backwards;
}
.ps-tile:nth-child(1) { animation-delay: 0.05s; }
.ps-tile:nth-child(2) { animation-delay: 0.1s; }
.ps-tile:nth-child(3) { animation-delay: 0.15s; }
.ps-tile:nth-child(4) { animation-delay: 0.2s; }
.ps-tile:nth-child(5) { animation-delay: 0.25s; }
.ps-tile:nth-child(6) { animation-delay: 0.3s; }
@keyframes ps-tile-fade {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
.ps-caption {
  margin-top: 14px;
  text-align: center;
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
}

.ps-reel-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, var(--brand-accent), var(--brand-secondary), var(--brand-primary));
  background-size: 200% 200%;
  animation: ps-grad-shift 4s ease infinite;
  border-radius: 24px;
}
@keyframes ps-grad-shift {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: 100% 100%; }
}
.ps-reel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.6) 100%);
  border-radius: 24px;
}
.ps-reel-play {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  margin: auto;
  display: grid;
  place-items: center;
  color: var(--brand-primary);
  font-size: 1.2rem;
  animation: ps-pulse 2s ease-in-out infinite;
}
@keyframes ps-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  50%      { transform: scale(1.05); box-shadow: 0 0 0 16px rgba(255,255,255,0); }
}
.ps-reel-meta { color: white; }
.ps-reel-meta strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.ps-reel-meta small  { color: rgba(255,255,255,0.8); font-size: 0.78rem; }

.ps-story-bar {
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin-bottom: 18px;
  overflow: hidden;
}
.ps-story-progress {
  height: 100%;
  width: 0;
  background: white;
  border-radius: 2px;
  animation: ps-story-fill 5s linear infinite;
}
@keyframes ps-story-fill { from { width: 0; } to { width: 100%; } }
.ps-story-content {
  height: calc(100% - 30px);
  background-image: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: white;
}
.ps-story-emoji { font-size: 3rem; margin-bottom: 14px; animation: ps-emoji-bob 2s ease-in-out infinite; }
@keyframes ps-emoji-bob { 0%,100%{transform:translateY(0) rotate(-5deg);} 50%{transform:translateY(-8px) rotate(5deg);} }
.ps-story-title {
  font-size: 1.2rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 24px;
}
.ps-story-poll {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}
.ps-story-poll button {
  background: rgba(255,255,255,0.92);
  border: none;
  color: var(--brand-primary);
  padding: 11px;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.ps-cal-head {
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
  text-align: center;
}
.ps-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 0.7rem;
}
.ps-cal-grid > span {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.5);
  border-radius: 6px;
}
.ps-cal-grid .day { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.04); }
.ps-cal-grid .day.on {
  background-image: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: white;
  font-weight: 700;
}
.ps-cal-grid .day.today {
  outline: 2px solid white;
  outline-offset: -2px;
}
.ps-cal-foot {
  margin-top: 14px;
  text-align: center;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 8px;
  background: rgba(var(--brand-primary-rgb), 0.15);
  border-radius: 8px;
}

.ps-ai-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
  padding-bottom: 8px;
}
.ps-ai-msg {
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: white;
  animation: ps-msg-in 0.5s ease backwards;
}
.ps-ai-user {
  background: rgba(255,255,255,0.1);
  align-self: flex-end;
  max-width: 75%;
  border-bottom-right-radius: 4px;
  animation-delay: 0.1s;
}
.ps-ai-bot {
  background-image: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  align-self: flex-start;
  max-width: 92%;
  border-bottom-left-radius: 4px;
  animation-delay: 0.4s;
}
@keyframes ps-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ps-ai-bot-name {
  display: block;
  font-size: 0.65rem;
  opacity: 0.8;
  margin-bottom: 4px;
}
.ps-ai-bot strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
}
.ps-ai-tags {
  margin-top: 6px;
  font-size: 0.65rem;
  opacity: 0.85;
}
.ps-ai-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: rgba(var(--brand-primary-rgb), 0.2);
  border-radius: 14px;
  align-self: flex-start;
  width: fit-content;
}
.ps-ai-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: white;
  animation: ps-typing-dot 1.4s infinite;
}
.ps-ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ps-ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ps-typing-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1; transform: translateY(-3px); }
}

.sticky-particle {
  position: absolute;
  border-radius: 50%;
  background-image: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  filter: blur(2px);
  opacity: 0.6;
  pointer-events: none;
  animation: sticky-particle-float 6s ease-in-out infinite;
}
.sticky-particle.p1 { width: 16px; height: 16px; top: 8%; left: -10%; animation-delay: 0s; }
.sticky-particle.p2 { width: 12px; height: 12px; bottom: 12%; right: -8%; animation-delay: 2s; }
.sticky-particle.p3 { width: 20px; height: 20px; top: 40%; right: -14%; animation-delay: 4s; }
@keyframes sticky-particle-float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(20px, -30px); }
}

.sticky-scenes-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sticky-scene-card {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
  position: relative;

  opacity: 0.35;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.sticky-scene-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.sticky-scene-num {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 14px;
  background-image: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0.4;
  letter-spacing: -0.04em;
}
.sticky-scene-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 18px;
  box-shadow: 0 12px 30px rgba(var(--brand-primary-rgb), 0.4);
}
.sticky-scene-card h3 {
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.3;
}
.sticky-scene-card p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.85;
  margin: 0 0 22px;
  max-width: 460px;
}
.sticky-scene-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sticky-scene-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--gborder);
  border-radius: 12px;
  transition: all 0.2s;
}
body.light .sticky-scene-bullets li { background: rgba(0,0,0,0.03); }
.sticky-scene-bullets li:hover {
  border-color: var(--brand-primary);
  transform: translateX(-4px);
}
html[dir="ltr"] .sticky-scene-bullets li:hover { transform: translateX(4px); }
.sticky-scene-bullets li i {
  width: 22px; height: 22px;
  border-radius: 50%;
  background-image: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .sticky-story { padding: 40px 16px 60px; }
  .sticky-intro h2 { font-size: 1.7rem; }
  .sticky-intro { margin-bottom: 16px; }


  .sticky-stage {
    grid-template-columns: 1fr;
    gap: 0;
    position: relative;
  }


  .sticky-phone-col {
    position: sticky;
    top: 70px;
    align-self: start;
    height: auto;
    margin-bottom: 16px;
    z-index: 5;
    padding: 12px 0;

    background: linear-gradient(180deg,
      var(--bg, #030610) 0%,
      var(--bg, #030610) 70%,
      rgba(3, 6, 16, 0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  body.light .sticky-phone-col {
    background: linear-gradient(180deg,
      var(--bg, #f0f2ff) 0%,
      var(--bg, #f0f2ff) 70%,
      rgba(240, 242, 255, 0) 100%);
  }


  .sticky-phone-frame {
    width: 200px;
    height: 380px;
    padding: 8px;
    border-radius: 32px;
  }
  .sticky-phone-notch { width: 80px; height: 18px; top: 14px; }
  .sticky-phone-screen { border-radius: 24px; }
  .phone-scene { inset: 38px 10px 10px; }
  .sticky-phone-orb { inset: -25px; filter: blur(28px); }
  .sticky-particle { display: none; }


  .sticky-scene-card {
    min-height: 60vh;
    padding: 24px 0 36px;
    opacity: 1;
    transform: none;
    border-bottom: 1px dashed var(--gborder);

    scroll-snap-align: start;
  }
  .sticky-scene-card:last-child { border-bottom: none; }
  .sticky-scene-num { font-size: 3rem; margin-bottom: 10px; }
  .sticky-scene-card h3 { font-size: 1.45rem; margin-bottom: 10px; }
  .sticky-scene-card p { font-size: 0.95rem; margin-bottom: 16px; }
  .sticky-scene-icon { width: 50px; height: 50px; font-size: 1.2rem; margin-bottom: 14px; border-radius: 14px; }
  .sticky-scene-bullets li { font-size: 0.88rem; padding: 9px 12px; }


  .sticky-scenes-col {
    scroll-snap-type: y proximity;
  }
}

@media (max-width: 480px) {
  .sticky-phone-frame { width: 170px; height: 320px; padding: 7px; border-radius: 28px; }
  .sticky-phone-notch { width: 70px; height: 16px; top: 12px; }
  .sticky-phone-screen { border-radius: 21px; }
  .phone-scene { inset: 32px 8px 8px; }
  .sticky-phone-col { top: 60px; padding: 10px 0; }

  .sticky-scene-card { min-height: auto; padding: 18px 0 30px; }
  .sticky-scene-num { font-size: 2.5rem; }
  .sticky-scene-card h3 { font-size: 1.25rem; }
  .sticky-scene-card p { font-size: 0.9rem; line-height: 1.7; }
  .sticky-intro h2 { font-size: 1.4rem; }


  .ps-tile { font-size: 1.1rem; }
  .ps-caption { font-size: 0.75rem; margin-top: 10px; }
  .ps-reel-meta strong { font-size: 0.85rem; }
  .ps-reel-meta small { font-size: 0.7rem; }
  .ps-reel-play { width: 44px; height: 44px; font-size: 0.95rem; }
  .ps-story-emoji { font-size: 2.2rem; margin-bottom: 10px; }
  .ps-story-title { font-size: 0.95rem; margin-bottom: 14px; }
  .ps-story-poll button { font-size: 0.78rem; padding: 8px; }
  .ps-cal-head { font-size: 0.78rem; margin-bottom: 8px; }
  .ps-cal-grid { font-size: 0.6rem; gap: 2px; }
  .ps-cal-foot { font-size: 0.68rem; padding: 6px; margin-top: 8px; }
  .ps-ai-msg { font-size: 0.7rem; padding: 8px 10px; }
  .ps-ai-bot strong { font-size: 0.78rem; }
}

@media (max-width: 900px) {
  .sticky-story::after {
    content: '';
    position: fixed;
    inset-inline-end: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100px;
    background: linear-gradient(180deg,
      rgba(var(--brand-primary-rgb), 0.3),
      rgba(var(--brand-primary-rgb), 0.1));
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
    pointer-events: none;
  }
  .sticky-story.in-section::after { opacity: 1; }
}
