/* Instagram story sequence (system B). Phone shell comes from ../assets/phone.css. */
.st-wrap { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(32px, 6vw, 72px); padding-inline: var(--gutter); }
.st-wrap::after { content: ""; position: absolute; bottom: -24px; left: 50%; width: 420px; max-width: 90vw; height: 60px; transform: translateX(-50%); border-radius: 50%; background: rgba(0, 0, 0, 0.7); filter: blur(24px); z-index: 0; pointer-events: none; }
.screen--story { background: #000; color: #fff; }
.st-stage { position: relative; flex: 1 1 auto; overflow: hidden; container-type: inline-size; user-select: none; -webkit-user-select: none; }

/* frames */
.st-frame { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0s linear 0.35s; }
.st-frame.is-on { opacity: 1; visibility: visible; transition: opacity 0.35s ease; }
.st-bg { position: absolute; inset: 0; }
.st-bg--photo { background: radial-gradient(60% 40% at 70% 22%, color-mix(in srgb, var(--funnel-gold-light) 8%, transparent), transparent 70%), radial-gradient(90% 60% at 50% 110%, color-mix(in srgb, var(--funnel-gold) 30%, transparent), transparent 70%), var(--proof-surface); }
.st-bg--plain { background: radial-gradient(80% 50% at 50% 40%, color-mix(in srgb, var(--funnel-gold) 24%, transparent), transparent 70%), var(--proof-surface); }
.st-bg--chart { background: var(--proof-surface); }
.st-swap { position: absolute; left: 50%; top: 21%; transform: translateX(-50%); white-space: nowrap; padding: 6px 10px; border-radius: 99px; background: rgba(11, 8, 9, 0.6); border: 1px solid rgba(245, 241, 240, 0.16); font-size: 2.6cqw; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #a59c9b; }
.st-top, .st-mid, .st-bot { position: absolute; left: 6cqw; right: 6cqw; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4cqw; text-align: center; }
.st-top { top: 20cqw; }
.st-mid { top: 36%; }
.st-mid--center { top: 50%; transform: translateY(-50%); }
.st-bot { bottom: 30cqw; }

/* Instagram "classic" text with a solid background behind each line */
.st-h { margin: 0; font-family: var(--display); font-weight: 700; font-size: 6.6cqw; line-height: 1.5; }
.st-h span { background: #fff; color: #0b0809; padding: 0.12em 0.4em; border-radius: 0.3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.st-h em { font-style: normal; color: var(--funnel-gold-deep); }
.st-h--md { font-size: 5.6cqw; }
.st-h--sm { font-size: 4.4cqw; }
.st-big { margin: 0; font-family: var(--display); font-weight: 700; font-size: 9cqw; line-height: 1.08; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.st-big em { font-style: normal; color: var(--funnel-gold); }
.st-mark { display: inline-flex; align-items: center; gap: 2cqw; font-family: var(--display); font-weight: 700; font-size: 3.4cqw; letter-spacing: 0.16em; text-transform: uppercase; }
.st-mark svg { width: 6cqw; height: 6cqw; }
.st-mark b { color: var(--funnel-gold); }

/* poll sticker */
.poll { width: 76cqw; padding: 5cqw 4cqw 4cqw; border-radius: 4cqw; background: #fff; color: #000; box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, 0.4); display: flex; flex-direction: column; gap: 2.4cqw; }
.poll__q { margin: 0 0 1cqw; font-family: var(--sans); font-weight: 700; font-size: 4.6cqw; line-height: 1.25; }
.poll__o { display: block; padding: 3cqw; border-radius: 2.4cqw; background: #f2f2f2; font-family: var(--sans); font-weight: 600; font-size: 4cqw; }

/* question box sticker */
.qbox { position: relative; width: 76cqw; padding: 9cqw 5cqw 5cqw; border-radius: 4cqw; background: linear-gradient(135deg, var(--funnel-gold), var(--funnel-gold-deep)); text-align: center; box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, 0.4); }
.qbox__av { position: absolute; left: 50%; top: -6cqw; width: 12cqw; height: 12cqw; transform: translateX(-50%); border-radius: 50%; border: 0.8cqw solid #fff; background: radial-gradient(circle at 50% 38%, #c9bdbb 0 28%, transparent 29%), radial-gradient(70% 55% at 50% 100%, #c9bdbb 0 60%, transparent 61%), #2a2122; }
.qbox__q { margin: 0 0 4cqw; font-family: var(--sans); font-weight: 700; font-size: 4.6cqw; line-height: 1.25; color: #fff; }
.qbox__in { display: block; padding: 3.4cqw; border-radius: 2.4cqw; background: rgba(255, 255, 255, 0.92); color: #8a8a8a; font-family: var(--sans); font-size: 3.8cqw; }

/* countdown sticker */
.cd { width: 76cqw; padding: 5cqw; border-radius: 4cqw; background: #fff; color: #000; box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, 0.4); }
.cd__t { margin: 0 0 3cqw; font-family: var(--sans); font-weight: 700; font-size: 4.2cqw; text-transform: uppercase; letter-spacing: 0.04em; }
.cd__n { display: flex; align-items: baseline; justify-content: center; gap: 1.4cqw; font-variant-numeric: tabular-nums; }
.cd__n b { padding: 1.4cqw 2.2cqw; border-radius: 1.6cqw; background: #0b0809; color: #fff; font-family: var(--display); font-size: 7cqw; }
.cd__n i { margin-right: 2cqw; font-style: normal; font-size: 3cqw; color: #666; }
.cd__btn { display: block; margin-top: 4cqw; padding: 2.6cqw; border-radius: 2cqw; background: var(--funnel-gold); color: #fff; font-family: var(--sans); font-weight: 700; font-size: 3.8cqw; }

/* link sticker */
.link-st { display: inline-flex; align-items: center; gap: 2cqw; padding: 3cqw 5cqw; border-radius: 2.4cqw; background: #fff; color: #2f6ff0; font-family: var(--sans); font-weight: 800; font-size: 4.2cqw; letter-spacing: 0.02em; box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, 0.4); position: relative; z-index: 6; }
.link-st svg { width: 5cqw; height: 5cqw; }

/* discovery chart */
.st-chart { position: absolute; left: 6cqw; right: 6cqw; top: 30%; width: calc(100% - 12cqw); height: auto; overflow: visible; }
.st-chart .k line { stroke: rgba(245, 241, 240, 0.5); stroke-width: 3; }
.st-chart .k rect { fill: rgba(245, 241, 240, 0.35); }
.st-chart .k--r line { stroke: var(--funnel-gold); } .st-chart .k--r rect { fill: var(--funnel-gold); }
.st-chart .lvl { stroke: rgba(245, 241, 240, 0.55); stroke-width: 2; stroke-dasharray: 8 8; }
.st-chart text { fill: #d9d1d0; font-family: var(--sans); font-size: 28px; font-weight: 600; letter-spacing: 0.08em; }
.st-chart .tag { fill: var(--funnel-gold); }

/* Instagram story chrome */
.st-chrome { position: absolute; left: 0; right: 0; top: 0; z-index: 5; padding: 2.4cqw 2.4cqw 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent); pointer-events: none; }
.st-bars { display: flex; gap: 1cqw; }
.st-bar { flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.st-bar i { display: block; width: 0; height: 100%; background: #fff; }
.st-bar.is-done i { width: 100%; }
.st-who { display: flex; align-items: center; gap: 2cqw; padding: 2.6cqw 1cqw 4cqw; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; font-size: 3.4cqw; }
.st-av { width: 8cqw; height: 8cqw; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.6); background: radial-gradient(circle at 50% 38%, #c9bdbb 0 28%, transparent 29%), radial-gradient(70% 55% at 50% 100%, #c9bdbb 0 60%, transparent 61%), #2a2122; }
.st-time { color: rgba(255, 255, 255, 0.7); }
.st-x { margin-left: auto; font-size: 6cqw; line-height: 1; }
.st-tap { position: absolute; top: 14%; bottom: 14%; z-index: 4; width: 50%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.st-tap--prev { left: 0; width: 34%; } .st-tap--next { right: 0; width: 66%; }
.st-reply { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 3cqw; padding: 3cqw 4cqw 4cqw; }
.st-reply__in { flex: 1; padding: 2.6cqw 4cqw; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.55); font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; font-size: 3.4cqw; color: rgba(255, 255, 255, 0.85); }
.st-reply svg { width: 6.4cqw; height: 6.4cqw; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* the frame list beside the phone */
.beats { list-style: none; margin: 0; padding: 0; width: min(340px, 100%); display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.beat { width: 100%; display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background 0.25s var(--ease), border-color 0.25s var(--ease); }
.beat:hover { background: rgba(245, 241, 240, 0.04); }
.beat.is-on { border-color: color-mix(in srgb, var(--funnel-gold) 45%, transparent); background: var(--accent-soft); }
.beat__n { flex: none; font-family: var(--display); font-weight: 700; font-size: 0.85rem; color: var(--accent); padding-top: 2px; }
.beat b { display: block; font-family: var(--display); font-size: 1rem; }
.beat > span:last-child > span { display: block; margin-top: 2px; font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.sa__intro .doc__meta { margin-top: 12px; }

@media (max-width: 900px) {
  .st-wrap { flex-direction: column; }
  .beats { width: min(420px, 100%); }
}
@media (prefers-reduced-motion: reduce) { .st-frame, .st-frame.is-on { transition: none; } }

/* his photos */
.st-bg--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-bg--photo:has(img)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 30%, rgba(0,0,0,.2) 55%, rgba(0,0,0,.7) 100%); }
.st-av { background: #dbdbdb; }
.qbox__av { background: #dbdbdb; }
.st-bg--photo ~ * .st-mark, .st-frame:has(.st-bg--photo img) .st-mark { padding: 1.4cqw 3cqw; border-radius: 99px; background: rgba(11, 8, 9, 0.72); }

/* ---- v2: captions in his own story style ---- */
@font-face { font-family: "Barlow Condensed"; src: url("../assets/fonts/bc-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../assets/fonts/bc-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
.cap { margin: 0; max-width: 84cqw; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 600; font-size: 7.2cqw; line-height: 1.32; text-align: center; text-wrap: balance; }
.cap span { padding: 0.08em 0.36em; border-radius: 0.28em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cap--w span { background: #fff; color: #000; }
.cap--b span { background: #000; color: #fff; }
.cap--lg { font-size: 8.4cqw; }
.cap--sm { font-size: 5.6cqw; }
.st-mid--upper { top: 22%; }
.st-mid--low { top: 46%; }
.st-top { top: 22cqw; }
.st-bot { bottom: 26cqw; gap: 3cqw; }
.st-bot--cta { bottom: 30cqw; }
.st-bg--photo img { filter: saturate(1.04) contrast(1.02); }
.st-bg--photo:has(img)::after { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 70%, rgba(0,0,0,.4) 100%); }
.st-chart .tag--g { fill: #3ddc84; }
.st-frame .st-mark { padding: 1.6cqw 3.4cqw; border-radius: 99px; background: rgba(0, 0, 0, 0.75); color: #fff; }
.poll { width: 72cqw; }
.poll__q, .qbox__q { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 600; font-size: 6cqw; line-height: 1.15; }
.poll__o { font-size: 4.4cqw; }
.st-frame .st-chart { left: -4cqw; width: 108cqw; top: 36%; transform: scale(1, 1.5); transform-origin: 50% 0; }
.st-frame .st-chart text { font-size: 30px; transform: scale(1, 0.667); transform-box: fill-box; transform-origin: 0 50%; }


/* proof scoreboard */
.st-bg--dim img { filter: brightness(0.42) saturate(0.9); }
.st-mid--board { top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 4cqw; }
.board { width: 78cqw; padding: 4.5cqw 5cqw; border-radius: 4cqw; background: #fff; color: #000; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; box-shadow: 0 2cqw 6cqw rgba(0,0,0,.35); }
.board__h { margin: 0 0 2cqw; font-size: 4cqw; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--funnel-gold-deep); }
.board__r { margin: 0; display: flex; justify-content: space-between; gap: 3cqw; padding: 2.2cqw 0; border-top: 1px solid #e6e6e6; font-size: 5.4cqw; line-height: 1.15; }
.board__r b { font-weight: 600; }
.board__r span { font-weight: 500; color: #12833f; text-align: right; }
.st-bot--hook { bottom: 22cqw; }
/* photos shown whole, the way Instagram shows a camera-roll photo: fitted over a blurred fill */
.st-bg--fit::after { display: none; }
.st-bg--fit .st-blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(7cqw) brightness(0.5) saturate(1.2); transform: scale(1.2); }
.st-bg--fit .st-pic { position: absolute; inset: auto; left: 12cqw; top: 18cqw; width: 76cqw; height: auto; object-fit: initial; border-radius: 3cqw; box-shadow: 0 2cqw 8cqw rgba(0,0,0,.45); }
.st-bg--sq .st-pic { top: 20cqw; }
.st-bot--fit { top: 125cqw; bottom: auto; gap: 2.6cqw; }
.st-bot--cta2 { top: 104cqw; }
.st-frame:has(.st-mid--poll) .st-pic { left: 22cqw; width: 56cqw; }
.st-frame:has(.st-mid--poll) .st-bot--fit { top: 99cqw; }
.st-mid--poll { top: 124cqw; }
.st-mid--poll .poll { width: 64cqw; gap: 1.8cqw; padding: 3.6cqw; }
.st-mid--poll .poll__q { font-size: 5cqw; }
.st-mid--poll .poll__o { padding: 2.2cqw; font-size: 4cqw; }
.st-mid--poll .poll { width: 66cqw; }

/* full-bleed photos with the copy on top, same as the carousel and static ads */
.st-bg--fit .st-pic { inset: 0; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.st-frame:has(.st-mid--poll) .st-pic { left: 0; width: 100%; }
.st-bg--fit::after { display: block; content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 50%, rgba(0,0,0,.55) 100%); }
.st-bot--fit, .st-bot--cta2, .st-frame:has(.st-mid--poll) .st-bot--fit { top: auto; bottom: 32cqw; }
.st-mid--poll { top: auto; bottom: 56cqw; }
