/* v21 · the article pages: a moving hero, a contents strip, each point a card with its own looping picture */
:root { --a-ink: #0F1923; --a-red: #E31837; --a-amber: #F5C451; --a-pine: #2F5D50; --a-sky: #9CC9E3; --a-go: #16A34A; --a-display: 'Unbounded', system-ui, sans-serif; }
html { scroll-padding-top: 96px; }

/* reading progress */
.a21-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 1001; height: 3px; pointer-events: none; }
.a21-progress i { display: block; height: 100%; background: var(--a-red); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- hero ---------- */
.tp-hero { padding: 120px 0 56px; overflow: hidden; background: radial-gradient(120% 120% at 85% 10%, #1D3550 0%, #0F1923 60%); }
.a21-herogrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 40px; }
.tp-hero__title { font-family: var(--a-display); font-weight: 700; font-size: clamp(32px, 4vw, 52px); letter-spacing: -.04em; line-height: 1.08; }
.a21-count { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; font-size: 15px; color: rgba(255, 255, 255, .75); }
.a21-count b { font-family: var(--a-display); font-size: 40px; line-height: 1; color: #FF6B81; }
.a21-scene { display: grid; place-items: center; padding: 18px; border-radius: 24px; background: #FBF6EE; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.a21-scene svg { width: 100%; max-width: 420px; height: auto; overflow: visible; }

/* ---------- contents strip ---------- */
.tp-content { padding: 48px 0 80px; }
.a21-toc { max-width: 1000px; margin: 0 auto 28px; }
.a21-toc__h { margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6B7280; }
.a21-toc ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.a21-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.a21-toc a { display: flex; align-items: center; gap: 10px; height: 100%; padding: 8px 14px 8px 8px; border: 1.5px solid #E5E7EB; border-radius: 14px; background: #fff; font-size: 13.5px; font-weight: 600; color: #1F2937; transition: border-color .2s, background .2s, color .2s, translate .2s; }
.a21-toc a:hover { translate: 0 -2px; border-color: var(--a-red); color: var(--a-red); }
.a21-toc a b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #FEE2E2; color: var(--a-red); font-size: 11px; }
.a21-toc a span { min-width: 0; line-height: 1.35; }
.a21-toc a.is-on { background: var(--a-ink); border-color: var(--a-ink); color: #fff; }
.a21-toc a.is-on b { background: var(--a-red); color: #fff; }

/* ---------- a point ---------- */
.tp-items { max-width: 1000px; }
.tp-item.a21-item { display: grid; grid-template-columns: 240px minmax(0, 1fr); grid-template-areas: "pic num" "pic tag" "pic title" "pic body"; grid-template-rows: auto auto auto 1fr; column-gap: 36px; padding: 32px; border: 0; border-radius: 24px; box-shadow: 0 30px 60px -44px rgba(17, 24, 39, .45); margin-bottom: 20px;
    opacity: 0; translate: 0 24px; transition: opacity .6s ease, translate .6s cubic-bezier(.2, .8, .2, 1); }
.tp-item.a21-item.is-in { opacity: 1; translate: 0 0; }
.a21-pic { grid-area: pic; align-self: start; position: sticky; top: 100px; display: grid; place-items: center; aspect-ratio: 1; border-radius: 20px; background: #FBF6EE; }
.a21-item--myths .a21-pic { background: #FFF1E8; } .a21-item--misconceptions .a21-pic { background: #EEF5FA; } .a21-item--transparency .a21-pic { background: #F2F7F4; }
.a21-pic svg { width: 88%; height: auto; overflow: visible; }
.tp-item__number { grid-area: num; justify-self: start; margin-bottom: 10px; font-family: var(--a-display); font-size: 13px; }
.a21-tag { grid-area: tag; justify-self: start; margin-bottom: 8px; }
.a21-tag span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 999px; background: var(--a-ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.a21-tag span::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--a-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' stroke='white' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.tp-item.a21-item .tp-item__title { grid-area: title; margin-bottom: 18px; font-family: var(--a-display); font-weight: 700; font-size: clamp(20px, 2vw, 26px); line-height: 1.2; letter-spacing: -.03em; }
.tp-item.a21-item .tp-item__body { grid-area: body; min-width: 0; }
.tp-item.a21-item .tp-item__body > h3 { display: inline-flex; align-items: center; gap: 8px; color: var(--a-go); }
.tp-item.a21-item .tp-item__body > h3::before { content: ''; width: 22px; height: 22px; border-radius: 50%; background: var(--a-go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tp-item.a21-item .tp-item__body > p { font-size: 16px; color: #374151; }
/* the law as a document with a seal */
.tp-item.a21-item .tp-item__proof { position: relative; padding: 24px 24px 22px; border: 0; border-radius: 18px; background: #FFFDF8; box-shadow: inset 0 0 0 1.5px #EFE6D6; }
.tp-item.a21-item .tp-item__proof::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--a-red); }
.tp-item.a21-item .tp-item__proof h4 { padding-right: 56px; color: #6B5B45; }
.tp-item.a21-item .tp-item__proof blockquote { border-left: 0; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px -12px rgba(60, 40, 20, .4); font-family: Georgia, 'Times New Roman', serif; font-size: 15.5px; color: #1F2937; }
.tp-item.a21-item .tp-item__translation { padding-left: 14px; }
.a21-seal { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; color: var(--a-red); }
.a21-seal svg { width: 100%; height: 100%; }
.a21-sealr { fill: none; stroke: var(--a-red); stroke-width: 2.5; stroke-dasharray: 3 4; transform-box: fill-box; transform-origin: center; }
.a21-sealr2 { fill: rgba(227, 24, 55, .08); stroke: var(--a-red); stroke-width: 2; }
.is-live .a21-sealr { animation: aSpin 16s linear infinite; }
/* share / next */
.a21-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #F0F1F3; }
.a21-share, .a21-next { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 999px; font: 700 14px/1 Inter, sans-serif; cursor: pointer; transition: background .2s, color .2s, border-color .2s, translate .2s; }
.a21-share { border: 1.5px solid #E5E7EB; background: #fff; color: var(--a-ink); }
.a21-share:hover { border-color: var(--a-red); color: var(--a-red); translate: 0 -2px; }
.a21-share svg, .a21-next svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.a21-next { background: var(--a-ink); color: #fff; }
.a21-next b { color: #FF6B81; }
.a21-next:hover { background: var(--a-red); translate: 0 -2px; }
.a21-next:hover b { color: #fff; }
.a21-next--cta { background: var(--a-red); }
.a21-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1002; translate: -50% 20px; padding: 12px 18px; border-radius: 14px; background: var(--a-ink); color: #fff; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, translate .25s; }
.a21-toast.is-on { opacity: 1; translate: -50% 0; }

@media (max-width: 900px) {
    .tp-hero { padding: 100px 0 36px; }
    .a21-herogrid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .a21-scene { padding: 10px; }
    .a21-scene svg { max-width: 260px; }
    .tp-content { padding: 28px 0 56px; }
    .a21-toc ol { display: flex; gap: 8px; }
    .a21-toc a { padding: 4px; border-radius: 50%; }
    .a21-toc a b { width: 34px; height: 34px; font-size: 12px; }
    .a21-toc a span { display: none; }
    .tp-item.a21-item { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pic" "num" "tag" "title" "body"; padding: 16px 16px 20px; border-radius: 20px; }
    .a21-pic { position: relative; top: 0; aspect-ratio: auto; height: 180px; margin-bottom: 16px; }
    .a21-pic svg { width: auto; height: 160px; }
    .tp-item.a21-item .tp-item__proof { padding: 18px 14px 16px; }
    .tp-item.a21-item .tp-item__proof h4 { padding-right: 48px; }
    .a21-seal { width: 40px; height: 40px; }
    .a21-foot > * { flex: 1 1 auto; justify-content: center; }
}

/* ---------- the drawing kit ---------- */
:where(.a21-pic, .a21-scene) svg * { transform-box: fill-box; transform-origin: center; }
.a-paper { fill: #fff; stroke: var(--a-ink); stroke-width: 3; stroke-linejoin: round; }
.a-redf { fill: var(--a-red); } .a-amberf { fill: var(--a-amber); } .a-pinef { fill: var(--a-pine); } .a-skyf { fill: var(--a-sky); } .a-inkf { fill: var(--a-ink); } .a-whf { fill: #fff; } .a-go { fill: var(--a-go); }
.a-darkred { fill: #B71430; }
.a-stk { stroke: var(--a-ink); stroke-width: 3; stroke-linejoin: round; } .a-stk--thin { stroke-width: 2; } .a-stk--fat { stroke-width: 4; }
.a-st { fill: none; stroke: var(--a-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; } .a-st--thin { stroke-width: 2; } .a-st--fat { stroke-width: 5; } .a-st--xfat { stroke-width: 7; } .a-st--w { stroke-width: 6; }
.a-rst { fill: none; stroke: var(--a-red); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; } .a-rst--thin { stroke-width: 2.5; } .a-rst--fat { stroke-width: 7; }
.a-wst { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.a-line { fill: rgba(15, 25, 35, .16); } .a-soft { fill: #EEF1F4; }
.a-sh { fill: rgba(15, 25, 35, .1); }
.a-coin { fill: var(--a-amber); stroke: var(--a-ink); stroke-width: 2.5; }
.a-skin { fill: #F2C7A5; stroke: var(--a-ink); stroke-width: 2; }
.a-redc { color: var(--a-red); } .a-whc { color: #fff; }
.a-oldst { fill: none; stroke: #9CA3AF; stroke-width: 3; stroke-dasharray: 6 4; }
.a-stampc { fill: rgba(227, 24, 55, .08); stroke: var(--a-red); stroke-width: 3; stroke-dasharray: 5 4; }
.a-route { fill: none; stroke: var(--a-red); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; }
.a-lens { fill: rgba(156, 201, 227, .35); stroke: var(--a-ink); stroke-width: 5; }
.a-glass { fill: rgba(156, 201, 227, .3); stroke: var(--a-ink); stroke-width: 3; stroke-linejoin: round; }
.a-stitch { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 2; stroke-dasharray: 4 4; }
.a-factst { fill: rgba(22, 163, 74, .1); stroke: var(--a-go); stroke-width: 4; }
.a-t { font: 700 18px var(--a-display); text-anchor: middle; fill: var(--a-ink); letter-spacing: -.02em; }
.a-t--s { font-size: 16px; } .a-t--xs { font-size: 13px; } .a-t--xxs { font-size: 8.5px; letter-spacing: 0; } .a-t--m { font-size: 26px; } .a-t--l { font-size: 46px; }
.a-t--w { fill: #fff; } .a-t--red { fill: var(--a-red); } .a-t--go { fill: var(--a-go); } .a-t--grey { fill: #9CA3AF; }
.a-draw { stroke-dasharray: 1; }

/* the movements — only while the card is on screen */
.is-live .a-bob { animation: aBob 3.2s ease-in-out infinite; }
.is-live .a-pop { animation: aPop 4s cubic-bezier(.3, 1.6, .5, 1) infinite backwards; }
.is-live .a-stamp { animation: aStamp 4s cubic-bezier(.5, 0, .7, 1) infinite; }
.is-live .a-stamp--slow { animation-duration: 5s; }
.is-live .a-draw { animation: aDraw 4s ease-in-out infinite; }
.is-live .a-pulse { animation: aPulse 2.2s ease-in-out infinite; }
.is-live .a-spin { animation: aSpin 5s cubic-bezier(.3, 0, .2, 1) infinite; }
.is-live .a-flip { animation: aFlip 4s ease-in-out infinite; }
.is-live .a-shake { animation: aShake 2.4s ease-in-out infinite; }
.is-live .a-rise { animation: aRise 4s cubic-bezier(.3, 1.3, .5, 1) infinite; }
.is-live .a-scan { animation: aScan 2s ease-in-out infinite alternate; }
.is-live .a-scanmag { animation: aScanMag 4s ease-in-out infinite; }
.is-live .a-heromag { animation: aHeroMag 5s ease-in-out infinite; }
.a-flag { transform-origin: 0 50%; }
.is-live .a-flag { animation: aFlag 1.6s ease-in-out infinite; }
.is-live .a-split-l { animation: aSplitL 4s ease-in-out infinite; }
.is-live .a-split-r { animation: aSplitR 4s ease-in-out infinite; }
.a-redact { transform-origin: 0 50%; }
.is-live .a-redact { animation: aRedact 4s ease-in-out infinite; }
.a-swing21 { transform-origin: 0 0; }
.is-live .a-swing21 { animation: aSwing 2.6s ease-in-out infinite; }
.is-live .a-hop { animation: aHop 2.4s cubic-bezier(.3, 1.4, .5, 1) infinite; }
.a-teeter { transform-origin: 50% 10%; }
.is-live .a-teeter { animation: aTeeter 4s ease-in-out infinite; }
.a-plane21 { transform-box: view-box; transform-origin: 0 0; offset-anchor: 0 0; opacity: 0; offset-path: path('M50 100 C80 30 130 30 160 64'); offset-rotate: auto; offset-distance: 0%; }
.is-live .a-plane21 { animation: aAlong 4s ease-in-out infinite; }
.a-d1 { animation-delay: -1.2s !important; } .a-d2 { animation-delay: .5s !important; }
@keyframes aBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes aPop { 0% { scale: 0; } 12%, 85% { scale: 1; } 100% { scale: 0; } }
@keyframes aStamp { 0%, 30% { scale: 2.4; opacity: 0; rotate: -20deg; } 40% { scale: 1; opacity: 1; rotate: -6deg; } 45% { scale: 1.08; } 50%, 88% { scale: 1; opacity: 1; rotate: -6deg; } 100% { opacity: 0; rotate: -6deg; } }
@keyframes aDraw { 0%, 10% { stroke-dashoffset: 1; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes aPulse { 0%, 100% { scale: 1; } 50% { scale: 1.08; } }
@keyframes aSpin { from { rotate: 0deg; } to { rotate: 360deg; } }
@keyframes aFlip { 0%, 35% { rotate: 0deg; } 50%, 85% { rotate: 180deg; } 100% { rotate: 360deg; } }
@keyframes aShake { 0%, 50%, 100% { rotate: 0deg; } 55% { rotate: -9deg; } 60% { rotate: 9deg; } 65% { rotate: -7deg; } 70% { rotate: 7deg; } 75% { rotate: -4deg; } 80% { rotate: 0deg; } }
@keyframes aRise { 0% { translate: 0 30px; opacity: 0; } 20%, 80% { translate: 0 0; opacity: 1; } 100% { translate: 0 30px; opacity: 0; } }
@keyframes aScan { from { translate: 0 -16px; } to { translate: 0 16px; } }
@keyframes aScanMag { 0%, 100% { translate: 0 0; } 33% { translate: -34px -14px; } 66% { translate: -16px 2px; } }
@keyframes aHeroMag { 0%, 100% { translate: 0 0; } 40% { translate: -110px 10px; } 60% { translate: -110px 10px; } }
@keyframes aFlag { 0%, 100% { scale: 1 1; } 50% { scale: .82 1; } }
@keyframes aSplitL { 0%, 30%, 100% { translate: 0 0; rotate: 0deg; } 50%, 80% { translate: -8px 4px; rotate: -4deg; } }
@keyframes aSplitR { 0%, 30%, 100% { translate: 0 0; rotate: 0deg; } 50%, 80% { translate: 8px 4px; rotate: 4deg; } }
@keyframes aRedact { 0%, 10% { scale: 0 1; } 35%, 100% { scale: 1 1; } }
@keyframes aSwing { 0%, 100% { rotate: -8deg; } 50% { rotate: 8deg; } }
@keyframes aHop { 0%, 100% { translate: 0 18px; opacity: 0; } 30%, 70% { translate: 0 0; opacity: 1; } }
@keyframes aTeeter { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }
@keyframes aAlong { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 80% { offset-distance: 100%; opacity: 1; } 90%, 100% { offset-distance: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .a21-pic *, .a21-scene *, .a21-sealr { animation: none !important; }
    .tp-item.a21-item { opacity: 1; translate: none; }
    .a-draw { stroke-dashoffset: 0; }
}

/* ---------- v22 · a page of its own for one point ---------- */
.a21-onetag { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-family: var(--a-display); font-size: 14px; font-weight: 700; letter-spacing: .04em; color: #fff; }
.a21-scene--one svg { max-width: 360px; }
body[data-art21-one] .tp-item.a21-item .tp-item__title { display: none; }
body[data-art21-one] .tp-hero__title { font-size: clamp(26px, 3.2vw, 44px); }
.a21-toc--one { text-align: left; }
.a21-toc--one ol { display: flex; flex-wrap: wrap; gap: 8px; }
.a21-toc--one a { padding: 4px; border-radius: 50%; }
.a21-toc--one a b { width: 36px; height: 36px; font-size: 12px; }
.a21-toc--one a span { display: none; }
@media (max-width: 900px) { .a21-scene--one svg { max-width: 240px; } }
body[data-art21-one] .tp-item.a21-item { grid-template-columns: minmax(0, 1fr); grid-template-areas: "num" "tag" "title" "body"; }
body[data-art21-one] .a21-pic { display: none; }
body[data-art21-one] .tp-items { max-width: 820px; }
