/* "The Scroll Stopper" hero: your scroll drives a feed of boring posts that speeds up, blurs, then slams to a
   stop on the FL post. Classes are prefixed st- so nothing clashes with style.css. */
.st { position: relative; height: 300vh; background: var(--yellow); }
.st-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4vw; padding: 92px 5vw 36px; }
/* dotted texture + a soft spotlight behind the phone */
.st-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(17,17,20,.13) 1.2px, transparent 1.3px); background-size: 22px 22px; mask-image: radial-gradient(ellipse 70% 70% at 50% 55%, #000 35%, transparent 80%); pointer-events: none; }
.st-stage::after { content: ""; position: absolute; left: 50%; top: 55%; width: min(90vw, 760px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.75), rgba(255,255,255,0) 62%); pointer-events: none; transition: background .5s; }
.st.stopped .st-stage::after { background: radial-gradient(circle, rgba(255,140,80,.55), rgba(255,106,43,0) 62%); }

/* floating reactions: bored before the stop, in love after */
.st-react { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.st-react span { position: absolute; font-size: clamp(26px, 3vw, 40px); animation: stFloat 6s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(0,0,0,.12)); transition: opacity .4s, transform .4s; }
.st-react .love { opacity: 0; transform: scale(.4); }
.st.stopped .st-react .bored { opacity: 0; transform: scale(.4); }
.st.stopped .st-react .love { opacity: 1; transform: scale(1); }
@keyframes stFloat { 50% { translate: 0 -18px; rotate: 6deg; } }

/* left: the words */
.st-left { position: relative; z-index: 2; align-self: center; }
.st-kicker { display: inline-flex; align-items: center; gap: 8px; font: 800 12px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 20px; background: var(--ink); color: var(--yellow); padding: 9px 14px; border-radius: 30px; }
.st-words { position: relative; }
.st-h { font: 400 clamp(56px, 6.6vw, 118px)/.88 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.st-h .w { display: inline-block; }
.st-h .out { color: #fff; }
.st-h .mark { background: linear-gradient(transparent 64%, var(--orange) 64% 90%, transparent 90%); padding: 0 .06em; }
.st-a, .st-b { transition: opacity .35s, transform .5s cubic-bezier(.2,.9,.25,1.3); }
.st-b { position: absolute; left: 0; top: 0; opacity: 0; transform: scale(.6) rotate(-4deg); transform-origin: left center; }
.st-b .big { font: 400 clamp(80px, 9.4vw, 170px)/.82 var(--display); text-transform: uppercase; }
.st-b .big em { font-style: normal; color: var(--orange); text-shadow: 4px 4px 0 var(--ink); }
.st-b .sub { font-family: var(--body); text-transform: none; margin-top: 20px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; font-weight: 600; max-width: 400px; }
.st.stopped .st-a { opacity: 0; transform: translateY(-30px); }
.st.stopped .st-b { opacity: 1; transform: none; }
.st-ctas { font-family: var(--body); text-transform: none; display: flex; gap: 12px; position: relative; z-index: 4; flex-wrap: wrap; margin-top: 24px; opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .4s; }
.st.cta .st-ctas { opacity: 1; transform: none; }
.st-ctas a { padding: 15px 22px; border-radius: 40px; font-weight: 800; font-size: 15px; }
.st-ctas .go { background: var(--ink); color: #fff; }
.st-ctas .ghost { border: 2px solid var(--ink); }

/* the phone */
.st-phonewrap { position: relative; z-index: 3; display: grid; place-items: center; height: 100%; min-height: 0; perspective: 1400px; }
.st-phone { --tilt: 0deg; --shake: 0px; position: relative; height: min(78vh, 720px); aspect-ratio: 9 / 19; border-radius: 48px; background: linear-gradient(145deg, #2c2c33, #0d0d10 40%, #1b1b20); padding: 11px; box-shadow: 0 50px 90px -20px rgba(60,40,0,.45), 0 0 0 1.5px #3a3a42, inset 0 0 0 2px #050507; transform: rotateY(-12deg) rotateX(5deg) rotate(var(--tilt)) translateX(var(--shake)); will-change: transform; transition: box-shadow .4s; }
.st.stopped .st-phone { box-shadow: 0 50px 90px -20px rgba(60,40,0,.45), 0 0 0 1.5px #3a3a42, inset 0 0 0 2px #050507, 0 0 0 8px rgba(255,106,43,.35), 0 0 60px 10px rgba(255,106,43,.35); }
.st-phone .btn { position: absolute; width: 4px; border-radius: 3px; background: #2a2a31; }
.st-phone .b1 { left: -4px; top: 18%; height: 7%; }
.st-phone .b2 { left: -4px; top: 28%; height: 11%; }
.st-phone .b3 { right: -4px; top: 24%; height: 14%; }
.st-notch { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 30%; height: 26px; border-radius: 20px; background: #000; z-index: 6; }
.st-screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #fff; }
.st-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.22), rgba(255,255,255,0) 32%); pointer-events: none; z-index: 7; }
.st-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; background: #fff; border-bottom: 1px solid #efefef; }
.st-status { display: flex; justify-content: space-between; align-items: center; height: 48px; padding: 6px 26px 0; font: 700 13px/1 var(--body); }
.st-status i { font-style: normal; letter-spacing: 3px; font-size: 11px; }
.st-app { display: flex; justify-content: space-between; align-items: center; padding: 2px 16px 10px; font: 800 19px/1 var(--body); letter-spacing: -.03em; }
.st-app i { font-style: normal; font-size: 18px; letter-spacing: 10px; }
.st-feed { position: absolute; left: 0; right: 0; top: 0; will-change: transform, filter; }
.st-nav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: space-around; align-items: center; height: 52px; padding-bottom: 8px; background: #fff; border-top: 1px solid #efefef; font-size: 19px; color: #222; }
.st-nav .me { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #ffb27a, #ff6a2b); }

/* stories row and posts */
.st-stories { display: flex; gap: 12px; padding: 12px 12px 10px; border-bottom: 1px solid #f1f1f1; overflow: hidden; background: #fff; }
.st-stories span { flex: none; width: 54px; height: 54px; border-radius: 50%; padding: 2.5px; background: linear-gradient(45deg, #d6d6d6, #bdbdbd); }
.st-stories span b { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2.5px solid #fff; background: var(--c); }
.st-post { padding: 10px 0 14px; border-bottom: 1px solid #f1f1f1; background: #fff; }
.st-post .hd { display: flex; align-items: center; gap: 8px; padding: 0 12px 9px; font: 700 12.5px/1 var(--body); color: #222; }
.st-post .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.st-post .hd small { margin-left: auto; color: #aaa; font-weight: 500; }
.st-post .img { aspect-ratio: 1; display: grid; place-items: center; font-size: 66px; position: relative; overflow: hidden; }
.st-post .img span { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; line-height: 1; filter: saturate(.25) drop-shadow(0 10px 14px rgba(0,0,0,.18)); }
.st-post .act { display: flex; gap: 14px; padding: 10px 12px 4px; font-size: 18px; line-height: 22px; height: 36px; color: #333; }
.st-post .likes { padding: 0 12px; font: 700 12.5px/1.4 var(--body); color: #222; }
.st-post .cap { padding: 2px 12px 0; font: 400 12.5px/18px var(--body); height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #666; }
/* fixed heights so the feed does not shift when the web font arrives */
.st-post.fl .cap { white-space: normal; height: 38px; }

/* the FL post */
.st-post.fl .av { background: #121216; box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--orange); }
.st-post.fl .img { background: #121216; }
.st-post.fl .img img { width: 100%; height: 100%; object-fit: cover; }
.st-post.fl .img b { position: absolute; left: 12px; bottom: 10px; font: 400 46px/.85 var(--display); color: #fff; text-shadow: 3px 3px 0 var(--orange); }
.st-post.fl .img .tag { position: absolute; top: 10px; right: 10px; background: var(--yellow); color: #111; font: 800 10px/1 var(--body); padding: 6px 9px; border-radius: 20px; letter-spacing: .06em; }
.st-post.fl .act .hrt { color: #ff3d57; display: inline-block; }
.st.stopped .st-post.fl .act .hrt { animation: stPop .5s ease-out 2; }
.st-post.fl .likes b { color: #111; }
@keyframes stPop { 50% { transform: scale(1.6); } }

/* hearts that fly out of the phone */
.st-hearts { position: absolute; inset: 0; pointer-events: none; z-index: 8; }
.st-hearts span { position: absolute; left: 50%; top: 55%; font-size: 30px; opacity: 0; }
.st.stopped .st-hearts span { animation: stFly 1.6s ease-out forwards; }
@keyframes stFly { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.25) rotate(var(--r)); } }

/* right: the live counter and the speed meter */
.st-right { position: relative; z-index: 2; justify-self: end; display: grid; gap: 18px; width: min(300px, 100%); }
.st-count { background: #fff; border-radius: 24px; padding: 20px 22px; box-shadow: 0 18px 40px rgba(60,40,0,.12); }
.st-count .live { display: inline-flex; align-items: center; gap: 7px; font: 800 11px/1 var(--body); letter-spacing: .16em; color: #ff2d2d; text-transform: uppercase; margin-bottom: 10px; }
.st-count .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff2d2d; animation: stLive 1.2s ease-in-out infinite; }
@keyframes stLive { 50% { opacity: .25; } }
.st-count b { display: block; font: 400 clamp(46px, 4.6vw, 72px)/1 var(--display); font-variant-numeric: tabular-nums; }
.st-count span { font-weight: 700; font-size: 14px; color: #555; }
.st-speed { background: var(--ink); color: #fff; border-radius: 24px; padding: 20px 22px; box-shadow: 0 18px 40px rgba(60,40,0,.14); }
.st-speed span { display: flex; justify-content: space-between; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #bbb; }
.st-speed span em { font-style: normal; font-size: 18px; letter-spacing: 0; }
.st-meter { height: 12px; border-radius: 12px; background: #2a2a30; margin-top: 14px; overflow: hidden; }
.st-meter i { display: block; height: 100%; width: 0; border-radius: 12px; background: linear-gradient(90deg, #3fe37a, var(--yellow), var(--orange), #ff2d2d); }
.st-hint { position: absolute; z-index: 4; left: 50%; bottom: 18px; translate: -50% 0; font: 800 11px/1 var(--body); letter-spacing: .3em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: opacity .3s; }
.st-hint::after { content: "\2193"; font-size: 18px; animation: stBob 1.2s ease-in-out infinite; }
@keyframes stBob { 50% { transform: translateY(6px); } }

@media (max-width: 900px) {
  .st { height: 280vh; }
  /* phones: live pill, the words, then the phone filling whatever height is left */
  .st-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 78px 16px 14px; }
  .st-right { order: -1; width: auto; display: block; z-index: 4; justify-self: auto; }
  .st-count { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 30px; white-space: nowrap; }
  .st-count .live { margin: 0; font-size: 0; gap: 0; }
  .st-count b { font-size: 24px; }
  .st-count span { font-size: 12px; }
  .st-speed, .st-hint, .st-kicker { display: none; }
  .st-left { width: 100%; flex: none; height: 168px; text-align: center; }
  .st-h { font-size: clamp(44px, 12.5vw, 60px); }
  .st-b { left: 0; right: 0; transform-origin: center top; }
  .st-b .big { font-size: clamp(56px, 15vw, 76px); }
  .st-b .big em { text-shadow: 3px 3px 0 var(--ink); }
  .st-b .sub { margin: 8px auto 0; font-size: 14px; max-width: 330px; }
  .st-ctas { display: none; }
  .st-phonewrap { flex: 1 1 auto; width: 100%; }
  .st-phone { height: 100%; max-height: 560px; border-radius: 38px; padding: 8px; transform: rotateY(-6deg) rotateX(3deg) rotate(var(--tilt)) translateX(var(--shake)); }
  .st-notch { top: 15px; height: 20px; }
  .st-screen { border-radius: 30px; }
  .st-status { height: 40px; padding: 4px 20px 0; font-size: 11px; }
  .st-app { font-size: 16px; padding-bottom: 8px; }
  .st-nav { height: 44px; font-size: 16px; }
  .st-stories span { width: 44px; height: 44px; }
  .st-react span { font-size: 26px; }
}
@media (max-width: 900px) and (max-height: 700px) {
  .st-left { height: 140px; }
  .st-h { font-size: 40px; }
  .st-b .big { font-size: 50px; }
  .st-b .sub { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .st-hint::after, .st-react span, .st.stopped .st-hearts span, .st.stopped .st-post.fl .act .hrt, .st-count .live::before { animation: none; } }
