/* ──────────────────────────────────────────────────────────────
   The Bigger Picture · results
   Four connected stages on warm paper. Solid marks are things the
   visitor did; outlined marks are things the page assumed.
   ────────────────────────────────────────────────────────────── */

.reveal { --measure: 660px; --wide: 1040px; --pad: clamp(20px, 5vw, 48px); outline: none; font-size: 18px; line-height: 1.55; padding-bottom: 0; }
.reveal > * { max-width: calc(var(--wide) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.reveal h1, .reveal h2, .reveal h3 { font-weight: 700; letter-spacing: -.015em; line-height: 1.08; text-wrap: balance; }
.reveal h2 { font-size: clamp(32px, 5vw, 50px); }
.reveal h3 { font-size: clamp(21px, 2.6vw, 26px); letter-spacing: -.01em; }

.cite { font-size: .75em; font-weight: 600; text-decoration: none; vertical-align: .3em; color: var(--violet); }
.cite:hover { text-decoration: underline; }
.note { font-size: 15.5px; color: var(--muted); max-width: var(--measure); }

/* Observed and inferred: the one distinction every stage uses. */
.mark { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); vertical-align: -1px; }
.mark.is-observed { background: var(--ink); }
.mark.is-inferred { box-shadow: none; background: var(--grad); opacity: .9; outline: 1.5px dashed var(--violet); outline-offset: 2px; width: 8px; height: 8px; margin: 2px; }

[data-seen] { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .8s var(--ease); }
[data-seen].is-seen { opacity: 1; transform: none; }

/* ───────────── opening ───────────── */

.rv-open { padding-top: clamp(22px, 4vw, 44px); display: grid; gap: 18px; }
.rv-id { justify-self: end; font-weight: 700; font-size: clamp(16px, 1.7vw, 21px); }
.rv-open h1 { margin-top: clamp(24px, 7vw, 80px); font-size: clamp(42px, 8vw, 84px); max-width: 12em; }
.rv-lead { font-size: clamp(19px, 2.3vw, 23px); line-height: 1.45; max-width: 34em; }
.reveal > .stages { position: sticky; top: 10px; z-index: 20; margin: 22px 0 0 max(var(--pad), calc((100% - var(--wide)) / 2)); padding: 6px; }
.stages { display: flex; gap: 6px; width: max-content; max-width: calc(100% - 2 * var(--pad)); overflow-x: auto; background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px; scrollbar-width: none; }
.stages a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; color: var(--muted); transition: background-color .2s, color .2s; }
.stages b { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--wash); font-size: 12.5px; color: var(--ink); }
.stages a.is-here { background: var(--ink); color: var(--white); }
.stages a.is-here b { background: var(--grad); color: var(--white); }
.rv-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14.5px; color: var(--muted); }
.rv-key .mark:not(:first-child) { margin-left: 16px; }
/* The stage links travel with the reader. */
.reveal > .rv-open { position: relative; z-index: 6; }

/* ───────────── stages ───────────── */

.stage-block, .reading { padding-top: clamp(72px, 11vw, 136px); display: grid; gap: clamp(22px, 3vw, 34px); scroll-margin-top: 20px; }
.stage-head { display: grid; gap: 12px; max-width: var(--measure); }
.stage-n { font-weight: 600; font-size: 15px; }
.stage-lead { font-size: clamp(18px, 2vw, 20px); line-height: 1.5; max-width: var(--measure); color: var(--ink-2); }

/* ───────────── 1 · timeline ───────────── */

.timeline { display: grid; gap: 4px; }
.tl-row { display: grid; grid-template-columns: minmax(150px, 250px) 1fr; gap: 12px 24px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.tl-row:last-child { border-bottom: 1px solid var(--line); }
.tl-who { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; min-width: 0; }
.tl-who > div { display: grid; min-width: 0; }
.tl-who b { font-size: 14px; font-weight: 600; color: var(--muted); }
.tl-who span { font-size: 15.5px; line-height: 1.25; font-weight: 500; }
.thumb { width: 100%; aspect-ratio: 9 / 16; height: auto; object-fit: cover; background: var(--wash); border-radius: 6px; }
.thumb.is-missing { background: repeating-linear-gradient(135deg, var(--wash) 0 6px, var(--line) 6px 12px); }
.tl-lane { display: grid; gap: 6px; min-width: 0; padding-right: 60px; }
/* The track is the clip, to scale; the fill is what played. */
.tl-track { position: relative; width: var(--len); min-width: 60px; height: 14px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.tl-played { position: absolute; inset: 0 auto 0 0; width: var(--played); border-radius: 999px; background: var(--ink); transform-origin: left; }
.tl-row[data-seen] .tl-played { transform: scaleX(0); transition: transform 1.1s var(--ease) .2s; }
.tl-row.is-seen .tl-played { transform: none; }
.tl-mark { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; line-height: 1; font-weight: 700; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); transition: transform .2s var(--ease); z-index: 1; }
.tl-mark.is-given { background: var(--grad); color: var(--white); box-shadow: none; }
.tl-mark:hover, .tl-mark:focus-visible { transform: scale(1.25); z-index: 2; }
.tl-sum { font-size: 13.5px; color: var(--muted); }
.tl-readout { min-height: 3em; padding: 12px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; font-size: 15.5px; max-width: var(--measure); }
@media (max-width: 640px) { .tl-row { grid-template-columns: 1fr; } .tl-lane { padding-right: 34px; } }

.count { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); margin-top: clamp(10px, 2vw, 24px); max-width: 760px; }
.count__n b { font-weight: 700; font-size: clamp(84px, 15vw, 150px); line-height: .85; letter-spacing: -.04em; font-variant-numeric: tabular-nums; display: block; }
.count__t { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.35; }
.count__t b { font-weight: 600; }
.tally { display: grid; gap: 8px; }
.tally li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: center; font-size: 13.5px; color: var(--muted); }
.tally__dots { display: flex; flex-wrap: wrap; gap: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .tally .mark { opacity: 0; transform: scale(.2); transition: opacity .25s ease, transform .35s var(--ease); }
  .tally.is-seen .mark { opacity: 1; transform: none; }
  .tally li:nth-child(1) .mark { transition-delay: .1s; } .tally li:nth-child(2) .mark { transition-delay: .3s; } .tally li:nth-child(3) .mark { transition-delay: .5s; }
  .tally li:nth-child(4) .mark { transition-delay: .7s; } .tally li:nth-child(5) .mark { transition-delay: .9s; } .tally li:nth-child(6) .mark { transition-delay: 1.1s; }
}
.fold summary { cursor: pointer; width: max-content; font-size: 15.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.fold__cols { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px 32px; font-size: 14.5px; }
.fold h4 { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.fold li { position: relative; padding: 2px 0 2px 20px; color: var(--ink-2); }
.fold li::before { content: ''; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); }
.fold li.is-given { font-weight: 600; color: var(--ink); }
.fold li.is-given::before { background: var(--ink); }

/* ───────────── 2 · the profile forming ───────────── */

.infer { display: grid; gap: 20px; }
.stepper { display: flex; flex-wrap: wrap; gap: 8px; }
.stepper button { min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 500; background: var(--white); border: 1px solid var(--line); transition: background-color .2s, color .2s, border-color .2s; }
.stepper button[aria-selected='true'] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.stepper__play { margin-left: auto; color: var(--violet); border-color: transparent !important; background: none !important; font-weight: 600 !important; }
.infer__grid { display: grid; gap: 24px clamp(28px, 5vw, 64px); }
@media (min-width: 880px) { .infer__grid { grid-template-columns: 1.05fr 1fr; align-items: start; } }

.profile { display: grid; }
.profile li { display: grid; grid-template-columns: minmax(118px, 34%) 1fr; grid-template-areas: 'name bar' 'name read'; column-gap: 16px; row-gap: 3px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); transition: opacity .4s; }
.profile li:last-child { border-bottom: 1px solid var(--line); }
.profile__name { grid-area: name; font-weight: 600; font-size: 15.5px; line-height: 1.2; }
.profile__bar { grid-area: bar; height: 12px; border-radius: 999px; border: 1.5px dashed #b9b5ad; overflow: hidden; }
.profile__bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad); transition: width .8s var(--ease); }
.profile__read { grid-area: read; font-size: 13.5px; color: var(--muted); }
.profile li.is-empty { opacity: .45; }
.profile li.is-against .profile__bar i { background: var(--ink); }

.infer-notes { display: grid; gap: 12px; align-content: start; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; font-size: 15.5px; line-height: 1.45; }
.infer-notes__h { font-size: 14px; color: var(--muted); }
.infer-notes__h b { display: block; color: var(--ink); font-size: 17px; }
.infer-notes ul { display: grid; gap: 7px; }
.infer-notes li { position: relative; padding-left: 24px; }
.infer-notes li .mark { position: absolute; left: 0; top: .32em; }
.infer-notes .observed li { font-weight: 500; }
.infer-notes .inferred { padding-top: 12px; border-top: 1px dashed var(--line); }
.infer-notes em { display: block; font-size: 14.5px; color: var(--muted); }

.judge { display: grid; gap: 12px; max-width: 760px; margin-top: clamp(10px, 2vw, 24px); }
.verdict { display: grid; }
.verdict li { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.verdict li:last-child { border-bottom: 1px solid var(--line); }
.verdict p { display: grid; gap: 2px; }
.verdict b { font-weight: 600; font-size: 19px; line-height: 1.25; }
.verdict small { font-size: 14.5px; color: var(--muted); }
.verdict__btns { display: flex; gap: 6px; }
.verdict__btns button { min-width: 74px; min-height: 42px; padding: 0 14px; font-weight: 600; font-size: 15.5px; background: var(--white); border: 1px solid #9b9892; border-radius: 10px; transition: background-color .15s, color .15s, border-color .15s; }
.verdict__btns button[aria-pressed='true'] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.verdict__score { min-height: 1.4em; font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; letter-spacing: -.01em; }
@media (max-width: 480px) { .verdict li { grid-template-columns: 1fr; } }

/* ───────────── 3 · the flow ───────────── */

.flow { display: grid; gap: 12px; }
.flow__heads, .flow__body { display: grid; grid-template-columns: 1fr .8fr 1.15fr; column-gap: clamp(28px, 9vw, 130px); }
.flow__heads span { font-size: 13.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.flow__body { position: relative; align-items: center; }
.flow__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flow__col { display: grid; gap: 9px; position: relative; z-index: 1; min-width: 0; }
.node { width: 100%; min-height: 44px; padding: 8px 12px; display: grid; gap: 1px; text-align: left; font-size: 14.5px; font-weight: 600; line-height: 1.2; background: var(--white); border: 1px solid var(--line); border-radius: 12px; transition: opacity .3s, border-color .2s, box-shadow .2s, transform .25s var(--ease); overflow-wrap: anywhere; }
.node small { font-size: 12px; font-weight: 500; color: var(--muted); }
.node--act { border-color: var(--ink); }
.node--int { text-align: center; border: 1.5px dashed var(--violet); border-radius: 999px; background: rgba(255, 255, 255, .8); }
.node--story.is-ad { background: var(--ink); color: var(--white); border-color: var(--ink); }
.node--story.is-ad small { color: #c9c6ff; }
.node.is-dim { opacity: .28; }
.node.is-lit { box-shadow: 0 3px 0 var(--violet); transform: translateY(-1px); }
.node[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--violet), 0 3px 0 var(--violet); }
@media (hover: hover) { .node:hover { border-color: var(--violet); } }

.link { fill: none; stroke: #b9b5ad; stroke-linecap: round; opacity: .75; transition: opacity .3s, stroke .3s; }
.link.is-against { stroke-dasharray: .012 .018; }
.link.is-test { stroke-dasharray: .004 .02; }
.link.is-assumed { stroke-dasharray: .03 .02; }
.link.is-sold { stroke: var(--ink); }
.link.is-lit { stroke: url(#flow-grad); opacity: 1; }
.link.is-dim { opacity: .12; }
@media (prefers-reduced-motion: no-preference) { .link.is-for.is-lit, .link.is-match.is-lit, .link.is-sold.is-lit { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace .8s var(--ease) forwards; } }
@keyframes trace { to { stroke-dashoffset: 0; } }

.flow__panel { min-height: 9em; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 8px; align-content: start; max-width: 760px; font-size: 16.5px; }
.flow__kicker { font-size: 13.5px; font-weight: 600; color: var(--violet); }
.flow__legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--muted); }
.flow__legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 30px; height: 0; border-top: 3px solid #b9b5ad; display: inline-block; }
.lg.is-against { border-top-style: dashed; }
.lg.is-test { border-top-style: dotted; }
.lg.is-assumed { border-top: 3px dashed #b9b5ad; width: 36px; }
.lg.is-sold { border-top-color: var(--ink); }
@media (max-width: 560px) {
  .flow__heads, .flow__body { grid-template-columns: 1fr .72fr 1fr; column-gap: 22px; }
  .node { font-size: 12.5px; padding: 7px 8px; border-radius: 10px; }
  .node small { font-size: 10.5px; }
  .node--story { font-size: 12px; }
  .flow__heads span { font-size: 11.5px; gap: 4px; } .flow__heads .mark { display: none; }
}

/* ───────────── 4 · who benefits ───────────── */

.chain { display: grid; gap: 14px; }
.chain li { position: relative; padding: 20px 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 4px; align-content: start; }
.chain__n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--white); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.chain b { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.chain span:last-child { font-size: 15.5px; color: var(--ink-2); line-height: 1.4; }
@media (min-width: 820px) {
  .chain { grid-template-columns: repeat(4, 1fr); gap: 26px; }
  .chain li:not(:last-child)::after { content: '→'; position: absolute; right: -22px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--violet); }
}
@media (prefers-reduced-motion: no-preference) {
  .chain[data-seen] { opacity: 1; transform: none; }
  .chain li { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .7s var(--ease); }
  .chain.is-seen li { opacity: 1; transform: none; }
  .chain li:nth-child(2) { transition-delay: .18s; } .chain li:nth-child(3) { transition-delay: .36s; } .chain li:nth-child(4) { transition-delay: .54s; }
}

.adwhy { display: grid; gap: 12px; max-width: 760px; }
.adwhy__lead { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.4; }
.adtrail { display: grid; font-size: 16px; }
.adtrail li { display: grid; grid-template-columns: 16px 68px 1fr; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); }
.trail li:last-child { border-bottom: 1px solid var(--line); }
.adtrail li span:nth-child(2) { color: var(--muted); font-size: 14.5px; }

.platforms { max-width: 760px; padding: 22px 24px; border-left: 3px solid; border-image: linear-gradient(var(--blue), var(--orchid)) 1; display: grid; gap: 10px; font-size: 16.5px; }
.platforms__tag { font-size: 13.5px; font-weight: 600; color: var(--violet); }
.kept { max-width: 760px; display: grid; gap: 12px; justify-items: start; padding-top: 8px; }

/* ───────────── the reading ───────────── */

.readings { display: grid; max-width: 820px; }
.reading-item { border-top: 1px solid var(--ink); }
.reading-item:last-child { border-bottom: 1px solid var(--ink); }
.reading-item summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; display: grid; gap: 2px; }
.reading-item summary::-webkit-details-marker { display: none; }
.reading-item summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 400; line-height: 1; transition: transform .3s var(--ease); }
.reading-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.reading-item__who { font-size: 14.5px; font-weight: 500; color: var(--muted); }
.reading-item__title { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -.015em; line-height: 1.12; }
.reading-item__body { padding: 0 0 24px; display: grid; gap: 12px; max-width: var(--measure); font-size: 17px; }
.reading-item__you { padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; font-size: 16px; }
.reading-item__you b { font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reading-item__ref { font-size: 14px; color: var(--muted); }

/* ───────────── close ───────────── */

.rv-close { padding-top: clamp(80px, 13vw, 160px); }
.rv-last { font-weight: 700; font-size: clamp(30px, 5.4vw, 54px); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; max-width: 18em; }
.rv-btns { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.rv-btns .link { font-size: 15.5px; min-height: 44px; }
.rv-notes { margin-top: clamp(64px, 10vw, 110px); padding: 30px 0 max(48px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 26px 44px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.rv-notes h3 { font-size: 14.5px; font-weight: 600; letter-spacing: 0; color: var(--ink); margin: 0 0 6px; }
.rv-notes p + p { margin-top: 8px; }
.rv-notes li { padding: 2px 0; overflow-wrap: anywhere; }
.sources { list-style: decimal; padding-left: 1.4em; }
.sources li:target { background: var(--white); }
@media (min-width: 900px) { .rv-notes { grid-template-columns: repeat(3, 1fr); } }

/* ───────────── readings, platforms, consequences ───────────── */

.mark.is-platform { width: 4px; height: 14px; border-radius: 2px; box-shadow: none; background: linear-gradient(var(--blue), var(--orchid)); }
.rv-key { gap: 8px 22px; }
.rv-key span { display: inline-flex; align-items: center; gap: 8px; }
.rv-key .mark:not(:first-child) { margin-left: 0; }
.platforms__tag { display: flex; align-items: center; gap: 8px; }
.theory { max-width: 760px; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 6px; font-size: 17px; line-height: 1.5; }
.theory__tag { font-size: 13.5px; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: max-content; }
.matters { max-width: 760px; display: grid; gap: 8px; }
.matters p { font-size: clamp(18px, 2vw, 20px); line-height: 1.5; }
.refs li { padding-left: 1.4em; text-indent: -1.4em; margin-bottom: 6px; }
