/* DOE TikTok Shop: bold style. Loud like the Outlandish reference, but in DOE's own language:
   - headlines keep DOE's two-weight system, made loud: a condensed caps line + a big light sentence-case line
   - TikTok's split offset (cyan up-left, pink down-right) is the signature on cards, phone and form
   - DOE's drafting grid + crosshairs carry the proof band; TikTok story bars fill over each number
   - colour blocks in our order: violet, paper, pink, black, ink-violet, cyan, pink
   Loaded after styles.css + sections.css; scoped to html.bold. */

@font-face { font-family: 'Archivo'; src: url(assets/fonts/archivo-latin.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

.bold {
  --cond: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --cyan: #25F4EE;
  --pink: #FE2C55;
  --paper: #F4F2ED;
  --ink: #0F0B14;
  --night: #120C24;
  --violet: #5B48F0;
  --split: -7px -7px 0 var(--cyan), 7px 7px 0 var(--pink);
  --split-lg: -10px -10px 0 var(--cyan), 10px 10px 0 var(--pink);
}

/* ---------- headlines: condensed caps line + light sentence-case line ---------- */

.bold .title > span:first-child, .bold .h2 > span:first-child, .bold .cta-title > span:first-child,
.bold .res-big, .bold .story-n, .bold .proofx-grid b, .bold .tick span, .bold .brands li, .bold .res-stats dt, .bold .svc-cell h3, .bold .story b, .bold .faq-list summary {
  font-family: var(--cond);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.bold .title .t-b { font-size: 1.22em; line-height: .84; }
.bold .title .t-l { margin-top: .08em; font-weight: 300; letter-spacing: -0.035em; color: var(--cyan); }
.bold .title { font-size: clamp(56px, min(5.6vw, 10.4vh), 112px); line-height: .98; }
.bold .h2 { font-size: clamp(54px, min(6vw, 11vh), 116px); line-height: .86; }
.bold .h2 > span:first-child { text-shadow: -2px 0 rgba(37, 244, 238, .55), 2px 0 rgba(254, 44, 85, .55); }
.bold .h2 .lt { margin-top: .12em; font-family: var(--display); font-size: .62em; font-weight: 300; line-height: 1.02; letter-spacing: -0.035em; text-transform: none; }
.bold .cta-title { font-size: clamp(60px, 6.4vw, 124px); line-height: .86; }
.bold .cta-title .lt { margin-top: .1em; font-size: .6em; font-weight: 300; line-height: 1.02; letter-spacing: -0.035em; }
.bold .sec-head .h2 > span, .bold .cta-title > span { white-space: normal; }
.bold .sec-head { grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr); }
.bold .label { font-size: 12.5px; letter-spacing: .18em; }
.bold .hero .proof-wrap { display: none; }             /* the proof band right after carries the numbers */
.bold .beat-b .h2 .lt { color: var(--cyan); }
.bold .sec::before, .bold .faq-grid::before { display: none; }

/* drafting crosshair used on light/violet blocks */
.bold .proofx-grid li::before, .bold .proofx-grid::after {
  content: ""; position: absolute; width: 13px; height: 13px; pointer-events: none;
  background: linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat, linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}

/* ---------- proof band: violet, drafting grid, story bars ---------- */

.proofx { position: relative; overflow: hidden; padding-block: clamp(96px, 10vw, 150px); background: var(--violet); color: #fff; isolation: isolate; }
.proofx::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px); background-size: 96px 96px; background-position: -1px -1px; -webkit-mask-image: radial-gradient(90% 100% at 20% 30%, #000 20%, transparent 85%); mask-image: radial-gradient(90% 100% at 20% 30%, #000 20%, transparent 85%); }
.proofx::after { content: ""; position: absolute; z-index: -1; right: -10%; top: -30%; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(37, 244, 238, .28), transparent); pointer-events: none; }
.proofx .label { color: rgba(255, 255, 255, .85); }
.proofx .h2 .lt { color: var(--cyan); }
.proofx-head { margin-bottom: clamp(48px, 5vw, 80px); }
.proofx-grid { position: relative; display: grid; grid-template-columns: 1.35fr 1fr .8fr 1fr; border-top: 1.5px solid rgba(255, 255, 255, .5); border-bottom: 1.5px solid rgba(255, 255, 255, .5); color: #fff; }
.proofx-grid li { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px clamp(16px, 2vw, 30px) 30px; }
.proofx-grid li + li { border-left: 1.5px solid rgba(255, 255, 255, .5); }
.proofx-grid li::before { left: -7px; top: -7px; color: #fff; }
.proofx-grid::after { right: -7px; top: -7px; color: #fff; }
.proofx-grid .bar { position: relative; height: 3px; margin-bottom: 14px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .25); }
.proofx-grid .bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--cyan), #fff 50%, var(--pink)); transform-origin: left; transform: scaleX(0); transition: transform 1.6s cubic-bezier(.4, 0, .2, 1) calc(var(--d, 0ms) + 300ms); }
.proofx-grid .in .bar i { transform: scaleX(1); }
.proofx-grid .k { font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.proofx-grid b { margin-top: 6px; font-size: clamp(56px, 5.2vw, 100px); line-height: .85; white-space: nowrap; }
.proofx-grid li:first-child b { color: var(--cyan); text-shadow: 3px 3px 0 var(--ink); }
.proofx-grid b s { text-decoration: none; color: #fff; font-weight: 400; }
.proofx-grid .d { max-width: 15em; font-size: 15px; font-weight: 600; line-height: 1.35; color: rgba(255, 255, 255, .85); }

/* ---------- services on paper: cards with the TikTok split shadow ---------- */

.bold .svc { background: var(--paper); color: var(--ink); }
.bold .svc .label { color: var(--violet); }
.bold .svc .sec-lede { color: rgba(15, 11, 20, .72); }
.bold .svc .h2 .lt { color: var(--violet); }
.bold .svc .h2 > span:first-child { text-shadow: -2px 0 rgba(37, 244, 238, .9), 2px 0 rgba(254, 44, 85, .8); }
.bold .svc-grid { gap: 34px 30px; padding: 10px; border: 0; }
.bold .svc-grid::before, .bold .svc-grid::after, .bold .svc-cell::before { display: none; }
.bold .svc-cell { border: 2px solid var(--ink); border-radius: 20px; background: #fff; box-shadow: var(--split); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.bold .svc-cell:hover { background: #fff; transform: translate(0, -4px); box-shadow: var(--split-lg); }
.bold .svc-cell h3 { font-size: clamp(32px, 2.6vw, 44px); line-height: .92; }
.bold .svc-cell > p { color: rgba(15, 11, 20, .72); }
.bold .svc-n { color: var(--violet); font-weight: 800; }
.bold .svc-link { color: var(--violet); border-color: rgba(91, 72, 240, .35); }
.bold .vis { border-radius: 14px; background: radial-gradient(120% 90% at 85% 0%, rgba(254, 44, 85, .16), transparent 55%), radial-gradient(110% 90% at 0% 100%, rgba(37, 244, 238, .12), transparent 55%), #141018; }

/* ---------- hashtag ticker ---------- */

.tick { overflow: hidden; padding: 18px 0; background: var(--pink); border-block: 2px solid var(--ink); }
.tick-run { display: flex; align-items: center; gap: clamp(28px, 3vw, 48px); width: max-content; animation: tick 40s linear infinite; }
.tick span { font-size: clamp(32px, 2.8vw, 48px); line-height: 1; white-space: nowrap; color: #fff; }
.tick span.c { color: var(--ink); }
@keyframes tick { to { transform: translateX(calc(-50% - clamp(14px, 1.5vw, 24px))); } }

/* ---------- how it works on black: outlined giant numbers that fill when active ---------- */

.bold .how { background: var(--ink); }
.bold .how .h2 .lt { color: var(--cyan); }
.bold .story { gap: 30px; padding: 10px; border: 0; }
.bold .story::before, .bold .story::after { display: none; }
.bold .story li + li { border-left: 0; }
.bold .story li { border: 1.5px solid rgba(244, 242, 237, .16); border-radius: 20px; background: #17121D; transition: box-shadow .4s var(--ease), border-color .4s; }
.bold .story li.is-on { border-color: transparent; box-shadow: var(--split); }
.bold .story button { padding: 26px 28px 34px; border-radius: 20px; }
.bold .story button:hover { background: rgba(255, 255, 255, .03); }
.bold .story-n { font-size: clamp(120px, 11vw, 200px); line-height: .8; color: transparent; -webkit-text-stroke: 2px rgba(244, 242, 237, .3); text-shadow: none; }
.bold .story li.is-on .story-n { color: #fff; -webkit-text-stroke: 0; text-shadow: -4px 0 var(--cyan), 4px 0 var(--pink); }
.bold .story li.is-done .story-n { -webkit-text-stroke-color: rgba(37, 244, 238, .6); }
.bold .story b { font-size: clamp(34px, 2.8vw, 48px); line-height: .92; }

/* ---------- results on ink-violet: the phone sits on the TikTok split ---------- */

.bold .res { background: var(--night); }
.bold .res .h2 .lt { color: var(--pink); }
.bold .res-grid { position: relative; isolation: isolate; }
.bold .res-phone { box-shadow: -12px -12px 0 var(--cyan), 12px 12px 0 var(--pink); }
.bold .res-card { border: 1.5px solid rgba(255, 255, 255, .14); border-radius: 22px; background: #0B0717; box-shadow: none; }
.bold .res-big { font-size: clamp(88px, 9vw, 170px); line-height: .82; }
.bold .res-big span { color: #fff; text-shadow: -4px 0 var(--cyan), 4px 0 var(--pink); }
.bold .res-big em { font-family: var(--body); font-stretch: 100%; font-size: .17em; font-weight: 600; text-transform: none; letter-spacing: 0; }
.bold .res-stats dt { font-size: clamp(42px, 3.6vw, 64px); line-height: .9; }
.bold .brands { border-top-color: rgba(255, 255, 255, .14); }
.bold .brands li { font-size: clamp(30px, 2.6vw, 44px); color: rgba(244, 242, 237, .42); }

/* ---------- FAQ on cyan ---------- */

.bold .faq { background: var(--cyan); color: var(--ink); padding-bottom: clamp(88px, 9vw, 140px); }
.bold .faq .label { color: var(--ink); }
.bold .faq .h2 > span:first-child { text-shadow: 3px 3px 0 #fff; }
.bold .faq .h2 .lt { color: var(--ink); }
.bold .faq-contact { color: rgba(15, 11, 20, .75); }
.bold .faq-contact a { color: var(--ink); border-color: rgba(15, 11, 20, .45); }
.bold .faq-list, .bold .faq-list details { border-color: rgba(15, 11, 20, .25); }
.bold .faq-list summary { font-size: clamp(28px, 2.4vw, 40px); line-height: .95; }
.bold .faq-list details p { color: rgba(15, 11, 20, .8); }
.bold .faq-icon { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.bold .faq-icon::before, .bold .faq-icon::after { background: var(--ink); }
.bold .faq-list summary:hover .faq-icon, .bold details[open] .faq-icon { background: var(--pink); box-shadow: inset 0 0 0 2px var(--ink); }
.bold .faq-list summary:hover .faq-icon::before, .bold .faq-list summary:hover .faq-icon::after, .bold details[open] .faq-icon::before, .bold details[open] .faq-icon::after { background: #fff; }

/* ---------- closing CTA on pink: drafting grid, light line in ink, form on the split ---------- */

.bold .bk { position: relative; isolation: isolate; padding-block: clamp(96px, 9vw, 150px); background: var(--pink); }
.bold .bk::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 96px 96px; -webkit-mask-image: radial-gradient(70% 90% at 20% 40%, #000 20%, transparent 80%); mask-image: radial-gradient(70% 90% at 20% 40%, #000 20%, transparent 80%); pointer-events: none; }
.bold .cta-panel { overflow: visible; border-radius: 0; background: none; }
.bold .cta-panel::before, .bold .cta-panel::after { display: none; }
.bold .cta-copy { padding: 0 clamp(16px, 3vw, 48px) 0 0; }
.bold .cta-copy .eyebrow { color: #fff; }
.bold .cta-title .lt { color: var(--ink); }
.bold .bk-lede { color: rgba(255, 255, 255, .94); }
.bold .bk-next li { background: rgba(15, 11, 20, .16); }
.bold .bk-next span { color: var(--pink); }
.bold .bk-form { margin: 0; border: 2px solid var(--ink); box-shadow: -10px -10px 0 var(--cyan), 10px 10px 0 var(--ink); }
.bold .bk-chips input:checked + span { background: var(--pink); }
.bold .bk-form .btn-accent { background: var(--pink); }
.bold .bk-form .btn-accent i { color: var(--pink); }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .bold .sec-head { grid-template-columns: minmax(0, 1fr); }
  .proofx-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .proofx-grid li:nth-child(3) { border-left: 0; }
  .proofx-grid li:nth-child(n+3) { border-top: 1.5px solid rgba(255, 255, 255, .5); }
  .bold .cta-copy { padding: 0 0 40px; }
}
@media (max-width: 760px) {
  .bold .title { font-size: clamp(42px, 12.4vw, 56px); }
  .bold .h2 { font-size: clamp(48px, 13.6vw, 68px); }
  .bold .cta-title { font-size: clamp(52px, 15vw, 76px); }
  .proofx { padding-block: 72px 64px; }
  .proofx-grid { grid-template-columns: minmax(0, 1fr); }
  .proofx-grid li + li { border-left: 0; border-top: 1.5px solid rgba(255, 255, 255, .5); }
  .proofx-grid li { padding: 18px 4px 22px; }
  .proofx-grid b { font-size: clamp(50px, 15vw, 72px); }
  .bold .svc-grid { gap: 30px; padding: 8px; }
  .bold .svc-cell { padding: 12px 12px 26px; --split: -5px -5px 0 var(--cyan), 5px 5px 0 var(--pink); }
  .bold .svc-cell + .svc-cell { padding-top: 12px; }
  .bold .svc-n, .bold .svc-cell h3, .bold .svc-cell > p { padding-inline: 6px; }
  .bold .svc-link { margin-inline: 6px; }
  .bold .story { gap: 22px; padding: 6px; }
  .bold .story li { border-bottom: 1.5px solid rgba(244, 242, 237, .16); }
  .bold .story li.is-on { --split: -5px -5px 0 var(--cyan), 5px 5px 0 var(--pink); }
  .bold .story button { padding: 20px 20px 26px; }
  .bold .story-n { font-size: 110px; }
  .bold .res-phone { box-shadow: -8px -8px 0 var(--cyan), 8px 8px 0 var(--pink); }
  .bold .res-big { font-size: clamp(76px, 22vw, 110px); }
  .bold .brands li { font-size: 28px; }
  .bold .faq-list summary { font-size: 28px; }
  .bold .bk-form { box-shadow: -6px -6px 0 var(--cyan), 6px 6px 0 var(--ink); }
  .tick span { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { .tick-run { animation: none; } .proofx-grid .bar i { transition: none; transform: scaleX(1); } }

/* small fixes */
.bold .hook-bar { left: 112px; right: 12px; gap: 3px; }
.bold .hook-bar li { padding: 9px 5px; }
.bold .hook-bar b { font-size: 11.5px; text-overflow: clip; }
.proofx { padding-bottom: clamp(72px, 7vw, 110px); }

/* results: the phone matches the card's height (desktop); the screen goes tall like a modern phone, the video still covers it */
@media (min-width: 1101px) {
  .bold .res-grid { align-items: stretch; }
  .bold .res-phone { display: flex; align-self: stretch; justify-self: center; width: min(100%, 430px); max-width: none; }
  .bold .res-screen { flex: 1; aspect-ratio: auto; min-height: 0; }
}

/* services: dark ink tiles on paper (not white), card + view read as one piece on the split shadow */
.bold .svc-cell, .bold .svc-cell:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.bold .svc-cell h3 { color: #fff; }
.bold .svc-cell > p { color: rgba(244, 242, 237, .72); }
.bold .svc-n { color: var(--cyan); }
.bold .svc-link { color: var(--cyan); border-color: rgba(37, 244, 238, .4); }
.bold .svc-link:hover { border-color: var(--cyan); }
.bold .vis { box-shadow: inset 0 0 0 1px rgba(244, 242, 237, .1); }

/* "anatomy of a video": thumbnail + beats laid out side by side, so they can never overlap at any width */
.bold .vis-hook { display: flex; align-items: center; gap: 12px; padding: 44px 14px 14px 16px; }
.bold .vis-hook .hook-phone { position: relative; inset: auto; flex: none; height: 100%; }
.bold .vis-hook .hook-bar { position: static; flex: 1; min-width: 0; transform: none; }
@media (max-width: 760px) { .bold .vis-hook .hook-bar li { flex: 1 1 0; } .bold .vis-hook .hook-bar b { font-size: 11px; } }
@media (max-width: 400px) { .bold .vis-hook { gap: 8px; } .bold .vis-hook .hook-phone { height: 72%; } .bold .vis-hook .hook-bar { gap: 2px; } .bold .vis-hook .hook-bar li { padding: 8px 4px; } .bold .vis-hook .hook-bar b { font-size: 10.5px; letter-spacing: -0.01em; } }
@media (max-width: 340px) { .bold .vis-hook .hook-phone { height: 56%; } .bold .vis-hook .hook-bar b { font-size: 10px; } }

/* services background: deep indigo instead of paper (user: no white background here) */
.bold .svc { background: radial-gradient(70% 60% at 85% 0%, rgba(254, 44, 85, .14), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(37, 244, 238, .1), transparent 60%), #1B1250; color: #fff; }
.bold .svc .label { color: var(--cyan); }
.bold .svc .h2 .lt { color: var(--cyan); }
.bold .svc .h2 > span:first-child { text-shadow: -2px 0 rgba(37, 244, 238, .55), 2px 0 rgba(254, 44, 85, .55); }
.bold .svc .sec-lede { color: rgba(255, 255, 255, .78); }
.bold .svc-cell, .bold .svc-cell:hover { border-color: rgba(255, 255, 255, .14); }

/* services background: black like "How it works" (user: not blue, black) */
.bold .svc { background: var(--ink); }
.bold .svc-cell, .bold .svc-cell:hover { background: #17121D; border-color: rgba(244, 242, 237, .16); }

/* phones / tall screens: no proof strip in the hero any more, so the copy sits right at the bottom */
.bold.tall .beat { padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 760px) { .bold .beat { padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); } }

/* =========================== scroll motion (motion.js adds html.mo) =========================== */
/* services: the split shadow lands with each card */
.mo .svc-cell, .mo .svc-cell[data-reveal] { transition: none; will-change: transform, opacity; transform-origin: 50% 100%; }
.mo.bold .svc-cell, .mo.bold .svc-cell:hover { box-shadow: calc(-7px * var(--sp, 1)) calc(-7px * var(--sp, 1)) 0 var(--cyan), calc(7px * var(--sp, 1)) calc(7px * var(--sp, 1)) 0 var(--pink); }

/* FAQ + form */
.mo.bold .bk-form { transition: none; box-shadow: calc(-10px * var(--sp, 1)) calc(-10px * var(--sp, 1)) 0 var(--cyan), calc(10px * var(--sp, 1)) calc(10px * var(--sp, 1)) 0 var(--ink); will-change: transform; }

/* results scrub */
.mo .scrub .res-chart svg { transition: none; clip-path: inset(-20px calc((1 - var(--draw, 0)) * 100%) -20px -20px); }
.mo .scrub .res-pt { transition: none; }
.mo .res-phone { will-change: transform; }

/* how it works: pinned while scroll steps through 01 -> 02 -> 03 */
.pin-how.bold .how { height: 300vh; }
.pin-how.bold .how > .wrap { position: sticky; top: calc(var(--nav-h) + 28px); }
.pin-how.bold .story li { transition: box-shadow .4s var(--ease), border-color .4s, transform .5s var(--ease); }

/* ticker: transform driven by scroll */
.mo .tick-run { will-change: transform; }

/* =========================== results: two cases, half image / half stats =========================== */
.cases { display: grid; gap: clamp(28px, 3vw, 44px); }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(520px, 44vw, 680px); overflow: hidden; border-radius: 26px; border: 1.5px solid rgba(255, 255, 255, .14); background: #0B0717; }
.case-media { position: relative; overflow: hidden; margin: 0; background: #000; }
.case-media > video, .case-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); will-change: transform; }
.case-media .res-tag { z-index: 1; left: 18px; bottom: 18px; }
.case-flip .case-media { order: 2; }
.case-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset -6px 0 0 var(--cyan); }
.case-flip .case-media::after { box-shadow: inset 6px 0 0 var(--pink); }
.case-media .res-tag { z-index: 2; }
.bold .case .res-card.case-stats { display: flex; flex-direction: column; justify-content: center; border: 0; border-radius: 0; background: none; padding: clamp(28px, 3.4vw, 56px); }
.case-cap { margin-top: 14px; font-family: var(--display); font-size: clamp(20px, 1.6vw, 26px); font-weight: 600; letter-spacing: -0.02em; }
.case-story { max-width: 30em; margin-top: 10px; font-size: 16.5px; line-height: 1.55; color: var(--mute); }
.case-flip .res-big span { color: #fff; text-shadow: -4px 0 var(--cyan), 4px 0 var(--pink); }
.case-flip .res-stats { margin-top: clamp(28px, 3vw, 44px); }
@media (max-width: 1100px) {
  .case { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .case-media { aspect-ratio: 4 / 3.4; }
  .case-flip .case-media { order: 0; }
  .case-media::after { box-shadow: inset 0 -6px 0 var(--cyan); }
  .case-flip .case-media::after { box-shadow: inset 0 -6px 0 var(--pink); }
}
@media (max-width: 760px) {
  .case { border-radius: 20px; }
  .case-media { aspect-ratio: 4 / 4.2; }
  .bold .case .res-card.case-stats { padding: 22px 18px 26px; }
  .case-cap { font-size: 19px; }
  .case-story { font-size: 15.5px; }
}

/* =========================== case reel (reel.js): one case at a time =========================== */
.reel .cases { position: relative; display: grid; gap: 0; overflow: hidden; isolation: isolate; border: 1.5px solid rgba(255, 255, 255, .14); border-radius: 26px; background: #0B0717; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.reel .case { grid-area: 1 / 1; border: 0; border-radius: 0; background: transparent; visibility: hidden; pointer-events: none; }
.reel .case.is-active, .reel .case.is-leaving { visibility: visible; }
.reel .case.is-active { z-index: 2; pointer-events: auto; }
.reel .case.is-leaving { z-index: 1; }
.reel .case-mac .case-media::after { box-shadow: inset -6px 0 0 var(--pink); }
.case-mac .res-big span { color: #fff; text-shadow: -4px 0 var(--cyan), 4px 0 var(--pink); }
.case-mac .res-stats { margin-top: clamp(28px, 3vw, 44px); }

/* image: the incoming one wipes in over the old one, then settles out of a zoom; drag pulls it a little */
.reel .case-media > video, .reel .case-media > img { transform: scale(1.06); translate: calc(var(--pull, 0) * 44px) 0; transition: translate .5s cubic-bezier(.2, .7, .2, 1); }
.reel .case.is-active .case-media { animation: reel-wipe-n 1.05s cubic-bezier(.77, 0, .18, 1) both; }
.reel[data-dir="prev"] .case.is-active .case-media { animation-name: reel-wipe-p; }
.reel .case.is-active .case-media > video, .reel .case.is-active .case-media > img { animation: reel-settle 1.7s cubic-bezier(.2, .7, .2, 1) both; }
.reel .case.is-leaving .case-media > video, .reel .case.is-leaving .case-media > img { transform: scale(1.06) translateX(calc(var(--dir, 1) * -7%)); filter: brightness(.55); transition: transform 1.05s cubic-bezier(.77, 0, .18, 1), filter 1.05s ease; }
@keyframes reel-wipe-n { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes reel-wipe-p { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes reel-settle { from { transform: scale(1.3); } to { transform: scale(1.06); } }

/* stats: old ones leave fast, new ones rise in a stagger */
.reel .case-stats > * { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .5s ease, transform .75s cubic-bezier(.2, .7, .2, 1); }
.reel .case.is-active .case-stats > * { opacity: 1; transform: none; transition-delay: calc(.38s + var(--i, 0) * 70ms); }
.reel .case.is-leaving .case-stats > * { opacity: 0; transform: translate3d(0, -14px, 0); transition-duration: .28s; transition-delay: 0s; }
.reel .case-stats > :nth-child(2) { --i: 1; } .reel .case-stats > :nth-child(3) { --i: 2; } .reel .case-stats > :nth-child(4) { --i: 3; }
.reel .case-stats > :nth-child(5) { --i: 4; } .reel .case-stats > :nth-child(6) { --i: 5; } .reel .case-stats > :nth-child(7) { --i: 6; }

/* the TikTok edge that rides the wipe */
.reel-sweep { position: absolute; z-index: 5; top: 0; bottom: 0; left: 0; width: 50%; pointer-events: none; overflow: hidden; }
.reel-sweep::before { content: ""; position: absolute; top: -10%; bottom: -10%; left: 100%; width: 16px; background: linear-gradient(90deg, var(--cyan) 0 50%, var(--pink) 50% 100%); box-shadow: 0 0 34px 6px rgba(37, 244, 238, .45), 0 0 60px 10px rgba(254, 44, 85, .3); opacity: 0; }
.reel-sweep.go::before { animation: reel-sweep-n 1.05s cubic-bezier(.77, 0, .18, 1) both; }
.reel[data-dir="prev"] .reel-sweep.go::before { animation-name: reel-sweep-p; }
@keyframes reel-sweep-n { 0% { left: 100%; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { left: -16px; opacity: 0; } }
@keyframes reel-sweep-p { 0% { left: -16px; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* drag badge */
.reel-drag { position: absolute; left: 0; top: 0; z-index: 6; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: #fff; color: var(--ink); font: 800 12.5px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; box-shadow: -4px 0 0 var(--cyan), 4px 0 0 var(--pink); pointer-events: none; opacity: 0; scale: .3; transition: opacity .25s ease, scale .4s cubic-bezier(.2, .7, .2, 1); }
.reel-drag::before, .reel-drag::after { content: "‹"; position: absolute; top: 50%; left: 12px; transform: translateY(-54%); font-size: 20px; letter-spacing: 0; }
.reel-drag::after { content: "›"; left: auto; right: 12px; }
.reel-drag.on { opacity: 1; scale: 1; }
@media (hover: hover) and (pointer: fine) { .reel .case-media { cursor: none; } }

/* nav: story-bar tabs + counter + arrows */
.reel-nav { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; margin-top: 22px; }
.reel-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 320px); gap: 16px; }
.reel-tab { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 20px 24px; border: 1.5px solid rgba(255, 255, 255, .14); border-radius: 16px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .3s, box-shadow .4s cubic-bezier(.2, .7, .2, 1), background-color .3s; }
.reel-tab:hover { border-color: rgba(255, 255, 255, .35); }
.reel-tab .n { font-family: var(--cond); font-stretch: 62%; font-weight: 900; font-size: 40px; line-height: 1; color: rgba(255, 255, 255, .28); transition: color .3s, text-shadow .3s; }
.reel-tab .tx b { display: block; font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.reel-tab .tx span { display: block; margin-top: 2px; font-size: 13px; color: var(--mute); }
.reel-tab .bar { position: absolute; left: 20px; right: 20px; bottom: 11px; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .14); }
.reel-tab .bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--cyan), #fff 50%, var(--pink)); transform-origin: left; transform: scaleX(0); }
.reel-tab.is-on { border-color: transparent; background: #0B0717; box-shadow: -5px -5px 0 var(--cyan), 5px 5px 0 var(--pink); }
.reel-tab.is-on .n { color: #fff; text-shadow: -2px 0 var(--cyan), 2px 0 var(--pink); }
.reel-ctrl { display: flex; align-items: center; gap: 12px; }
.reel-count { display: flex; align-items: baseline; gap: 6px; margin-right: 10px; }
.reel-count b { font-family: var(--cond); font-stretch: 62%; font-weight: 900; font-size: 48px; line-height: 1; }
.reel-count span { font-size: 16px; font-weight: 600; color: var(--mute); }
.reel-btn { display: grid; place-items: center; width: 58px; height: 58px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .3s cubic-bezier(.2, .7, .2, 1); }
.reel-btn svg { width: 20px; height: 20px; }
.reel-btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.reel-btn:active { transform: scale(.94); }
@media (max-width: 1100px) {
  .reel .case-mac .case-media::after { box-shadow: inset 0 -6px 0 var(--pink); }
  .reel-sweep { width: 100%; bottom: auto; }
}
@media (max-width: 760px) {
  .reel .cases { border-radius: 20px; }
  .reel-nav { flex-direction: column; gap: 14px; }
  .reel-tabs { grid-auto-columns: minmax(0, 1fr); gap: 12px; }
  .reel-tab { gap: 10px; padding: 12px 14px 20px; }
  .reel-tab .n { font-size: 30px; }
  .reel-tab .tx b { font-size: 15.5px; }
  .reel-tab .tx span { display: none; }
  .reel-tab .bar { left: 14px; right: 14px; bottom: 9px; }
  .reel-ctrl { justify-content: space-between; }
  .reel-count b { font-size: 38px; }
  .reel-btn { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .reel .case-media, .reel .case-media > *, .reel-sweep::before { animation: none !important; }
  .reel .case-stats > * { transition: none; }
}
