/* TikTok case study, v2: same shell as Chance AI / Axel.
   White page, left table of contents, wordmark + kicker on top, big two-line headline, meta on the right.
   TikTok Sans (TikTok's open-source typeface) for TikTok-branded display text. */
.tiktok-case { --tt-sans: "TikTok Sans", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif; background: #fff; }
.tiktok-case::before { background: #fff; }
.tiktok-case .site-header { display: none; }
.tiktok-case .tt-page .case-chapter-nav { display: none; }
.tiktok-case .tt-page { --grey: #fff; background: #fff; }

/* Hero */
.tk2-hero { width: min(1152px, calc(100% - 88px)); margin: 0 auto; padding: 36px 0 0; scroll-margin-top: 36px; }
.tk2-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 20px; }
.tk2-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--tt-sans); font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: #161823; }
.tk2-brand img { width: 28px; height: 28px; border-radius: 7px; }
.tk2-top > span:last-child { font-size: 11px; letter-spacing: .1em; color: #53616c; }
.tk2-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding: 26px 0; }
body .tt-page .tk2-intro h1 { font-family: var(--tt-sans); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -.035em; color: #161823 !important; max-width: 640px; text-wrap: balance; }
.tk2-meta { flex-shrink: 0; font-size: 12px; line-height: 1.8; color: #666c75; padding-top: 4px; }
.tk2-meta strong { display: block; color: #28343d; font-weight: 600; }
.tk2-meta .tk2-status { color: #fe2c55; }
.tk2-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tk2-stage { margin: 28px 0 0; }
.tk2-stage video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; background: #f6f1f3; }

/* Buttons: black pill, outline secondary */
.tiktok-case .tt-page .tt-btn { min-height: 44px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; background: #fff; color: #161823; border: 1px solid #161823; box-shadow: none; }
.tiktok-case .tt-page :is(.tt-btn-red, .tt-btn-primary) { background: #161823; color: #fff; border-color: #161823; }
.tiktok-case .tt-page .tt-btn:hover { opacity: .85; }

/* Sections: white, no grey bands */
.tiktok-case .tk-sec, .tiktok-case .tk-sec.is-grey { background: #fff; padding: 52px 0; }
.tiktok-case .tk-sec { scroll-margin-top: 24px; }
.tiktok-case .tk-wrap { width: min(1152px, calc(100% - 88px)); }
.tiktok-case .tk-sec.is-dark { background: #fff; }
.tiktok-case .tk-sec.is-dark > .tk-wrap { background: #161823; color: #fff; border-radius: 28px; padding: 56px; }

/* Section heads in the Chance kicker + headline style */
.tiktok-case .tk-head { margin-bottom: 36px; max-width: 820px; }
.tiktok-case .tk-head small { font-size: 11px; letter-spacing: .11em; text-transform: uppercase; font-weight: 500; color: #666c75; margin-bottom: 12px; }
.tiktok-case .tk-sec.is-dark .tk-head small { color: #a9acb5; }
body.tiktok-case .tt-page .tk-head h2 { font-family: var(--tt-sans); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
.tiktok-case .tk-head p { font-size: 16px; color: #666c75; }

/* Part openers */
.tiktok-case .tk-part-intro { padding: 120px 0 40px; }
.tiktok-case .tk-part-no { font-size: 11px !important; letter-spacing: .11em; text-transform: uppercase; color: #fe2c55 !important; background: none !important; padding: 0 !important; margin-bottom: 14px !important; }
body.tiktok-case .tt-page .tk-part-title { font-family: var(--tt-sans); font-size: clamp(34px, 3.8vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -.04em; max-width: 900px; }

/* Display numbers and headings in TikTok Sans */
body.tiktok-case .tt-page :is(h3, .tk-stats strong, .tk-big, .tk-bigquote p) { font-family: var(--tt-sans); }

/* Cards: grey panels become white cards with a light outline */
.tiktok-case .tk-card.is-grey { background: #fff; box-shadow: inset 0 0 0 1px #e7eaee; }
.tiktok-case .tk-card.is-grey .tk-chips span { background: #f4f5f7; }

@media (max-width: 820px) {
  .tk2-hero, .tiktok-case .tk-wrap { width: calc(100% - 40px); }
  .tk2-hero { padding-top: 88px; }
  .tk2-intro { flex-direction: column; gap: 18px; }
  .tk2-stage video { border-radius: 16px; }
  .tiktok-case .tk-sec.is-dark > .tk-wrap { padding: 32px 22px; border-radius: 20px; }
  .tiktok-case .tk-part-intro { padding: 72px 0 24px; }
}

/* Beat the site-wide SF Pro Rounded rule (html#sf-rounded-site body[data-page-view] * {font-family … !important}) */
html#sf-rounded-site body[data-page-view].tiktok-case :is(.tk2-brand, .tk2-intro h1, .tk-head h2, .tk-part-title, .tt-page h3, .tk-stats strong, .tk-big, .tk-bigquote p) {
  font-family: "TikTok Sans", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif !important;
}
html#sf-rounded-site body[data-page-view].tiktok-case :is(.tk2-brand, .tk2-intro h1, .tk-head h2, .tk-part-title) { font-weight: 700 !important; }
