:root {
  --text: #101828;
  --text-muted: #475467;
  --text-faint: #667085;
  --rule: #eaecf0;
  --pad-x: clamp(20px, 4vw, 64px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; background: #fff; color: var(--text); font: 17px/1.7 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, [tabindex]:focus-visible { outline: 2px solid #475467; outline-offset: 5px; }
.page-header { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 24px var(--pad-x); background: rgba(255,255,255,.94); backdrop-filter: blur(8px); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; text-decoration: none; }
.wordmark-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--text); }
.all-chapters { font-size: 16px; font-weight: 600; text-decoration: none; }
a:hover { text-underline-offset: 4px; }
.all-chapters:hover, .reel-direct-link:hover, .closing-inner a:hover { text-decoration: underline; }
main { width: min(100% - 48px, 880px); margin: 0 auto; }
.hero { padding: 56px 0 0; }
.hero-topline { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--text-faint); }
.hero-topline span + span::before { content: '/'; margin-right: 10px; color: #b2b8c2; }
.hero-body { display: flex; flex-direction: column; }
.hero h1 { order: 0; font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1.22; margin: 20px 0 22px; text-wrap: pretty; }
.hero h1 em { font-style: normal; }
.byline { order: 1; font-size: 13px; color: var(--text-faint); margin: 0 0 28px; }
.byline span { padding: 0 6px; }
.hero-bottom { order: 2; }
.hero-lede { color: var(--text-muted); font-size: 17px; line-height: 1.7; margin: 0; }
.hero-note { font-size: 13px; color: var(--text-faint); line-height: 1.6; margin: 0; }
.chapter-contents { display: flex; flex-wrap: wrap; column-gap: 22px; row-gap: 9px; margin-top: 20px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 13px; }
.chapter-contents > span { color: var(--text-faint); }
.chapter-contents a { font-weight: 500; text-decoration: none; }
.chapter-contents a:hover { text-decoration: underline; }
.section-shell { padding: 64px 0; border-bottom: 1px solid var(--rule); }
.section-index { color: var(--text-faint); font-size: 12px; letter-spacing: .025em; margin-bottom: 12px; }
.index-line { display: none; }
h2 { font-size: clamp(25px, 2.8vw, 32px); line-height: 1.3; letter-spacing: -.025em; font-weight: 700; margin: 0 0 20px; text-wrap: pretty; }
.serif-accent { font: inherit; }
.intro-content > p, .statement-copy > p, .process-intro { color: var(--text-muted); margin: 0 0 20px; }
.intro-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; background: #f9fafb; border: 1px solid var(--rule); border-radius: 14px; padding: 22px 24px; margin-top: 28px; gap: 24px; }
.intro-stats div { display: flex; flex-direction: column; gap: 3px; }
.intro-stats strong { font-size: 26px; letter-spacing: -.03em; line-height: 1.2; }
.intro-stats span { font-size: 12px; color: var(--text-faint); }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 12px; }
.section-heading > p { color: var(--text-muted); margin: 0; }
.section-heading > p + p { margin-top: 20px; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.reel-card { min-width: 0; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; background: #fff; }
/* Keep Instagram's profile header and 4:5 media viewport; crop the social footer. */
.reel-stage { position: relative; width: 100%; height: 0; padding-top: calc(125% + 54px); overflow: hidden; background: #f9fafb; border-bottom: 1px solid var(--rule); }
.reel-stage iframe { display: block; position: absolute; inset: 0; width: 100%; height: calc(100% + 180px); border: 0; opacity: 0; background: #fff; pointer-events: none; }
.reel-card.is-loaded iframe { opacity: 1; pointer-events: auto; }
.embed-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; padding: 24px; text-align: center; }
.embed-fallback > span:nth-child(2) { font-size: 23px; font-weight: 600; line-height: 1.4; }
.fallback-mark { display: none; }
.embed-fallback a { font-size: 13px; font-weight: 500; }
.reel-details { padding: 18px 20px; }
.reel-label { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.reel-label span { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.reel-label strong { font-size: 26px; letter-spacing: -.03em; line-height: 1.25; }
.reel-details dl { margin: 0; }
.reel-details dl > div { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.reel-details dt { font-size: 12px; color: var(--text-faint); margin-bottom: 3px; }
.reel-details dd { margin: 0; font-size: 14px; color: var(--text); line-height: 1.6; overflow-wrap: anywhere; }
.reel-direct-link { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600; text-decoration: none; }
.scroll-cue { display: none; }
.analysis-note { margin-top: 28px; padding: 24px 28px; border-radius: 14px; background: #f9fafb; }
.analysis-note > span { font-size: 14px; font-weight: 600; }
.analysis-note p { color: var(--text-muted); font-size: 17px; margin: 20px 0 0; }
.analysis-note strong { color: var(--text); font-weight: 600; }
.statement-copy > p:last-child { margin-bottom: 0; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; max-width: 760px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 18px; padding: 19px 0; border-top: 1px solid var(--rule); align-items: start; }
.steps li span { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #f2f4f7; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.steps li p { margin: 1px 0 0; color: var(--text-muted); }
.closing-section { padding: 60px 0 72px; }
.closing-inner > p { display: none; }
.closing-inner h2 { max-width: 620px; font-size: clamp(27px, 3vw, 36px); }
.closing-inner a { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.page-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 30px var(--pad-x); border-top: 1px solid var(--rule); font-size: 12px; color: var(--text-faint); }
.page-footer p { margin: 0; max-width: 430px; }
.page-footer .wordmark { color: var(--text); }
@media (max-width: 640px) {
  html { scroll-padding-top: 95px; }
  main { width: calc(100% - 40px); }
  .page-header { padding: 12px 20px; gap: 16px; }
  .page-header a { min-height: 44px; display: inline-flex; align-items: center; }
  .wordmark { font-size: 17px; }
  .all-chapters { font-size: 14px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(28px, 7.2vw, 38px); margin-top: 17px; }
  .hero-lede { font-size: 17px; }
  .byline { font-size: 12px; margin-bottom: 23px; }
  .chapter-contents { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
  .chapter-contents > span { grid-column: 1 / -1; font-size: 12px; }
  .chapter-contents a { display: flex; align-items: center; min-height: 44px; }
  .section-shell { padding: 44px 0; }
  .intro-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 20px 16px; }
  .intro-stats strong { font-size: 24px; }
  .intro-stats span { font-size: 11px; line-height: 1.5; }
  .comparison-scroll { width: calc(100% + 20px); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; padding: 0 20px 6px 0; }
  .comparison-grid { display: flex; width: max-content; gap: 14px; }
  .reel-card { width: min(82vw, 320px); flex: 0 0 auto; scroll-snap-align: start; }
  .reel-details { padding: 18px; }
  .reel-direct-link, .embed-fallback a, .closing-inner a { min-height: 44px; display: inline-flex; align-items: center; }
  .reel-label strong { font-size: 25px; }
  .scroll-cue { display: block; font-size: 12px; color: var(--text-faint); margin: 10px 0 0; }
  .analysis-note { padding: 20px; margin-top: 24px; }
  .closing-section { padding: 44px 0 56px; }
  .page-footer p { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


@media (max-width: 360px) {
  .page-header { gap: 10px; }
  .wordmark { font-size: 16px; }
  .all-chapters { font-size: 13px; }
  .hero-topline { font-size: 12px; gap: 6px; }
  .hero-topline span + span::before { margin-right: 6px; }
  .intro-stats { padding: 16px 12px; gap: 8px; }
}
