/*WD-CSS*/:where(#app) :is(h1,h2,h3,h4,h5,h6,p,blockquote,figure,figcaption,ul,ol,li,img,a,label,button,input,hr,strong,b,em,small,sup,sub,mark,table,th,td,caption,dl,dt,dd,section,article,aside,header,footer,main,nav){all:revert}:root{--torn:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath d='M0.0 0.5L9.0 1.0L18.0 0.9L27.0 0.1L36.0 0.1L45.0 0.1L54.1 0.7L63.1 0.2L72.1 1.0L81.1 0.9L90.1 3.8L99.1 1.4L108.1 0.2L117.1 0.5L126.1 0.3L135.1 1.0L144.1 0.9L153.2 0.1L162.2 1.1L171.2 0.5L180.2 0.7L189.2 1.3L198.2 0.4L207.2 0.8L216.2 1.2L225.2 1.6L234.2 0.7L243.2 0.2L252.3 0.1L261.3 1.2L270.3 1.4L279.3 1.1L288.3 0.9L297.3 1.3L306.3 0.8L315.3 0.1L324.3 1.0L333.3 1.3L342.3 0.6L351.4 0.0L360.4 0.3L369.4 0.1L378.4 0.2L387.4 0.6L396.4 0.1L405.4 0.9L414.4 1.3L423.4 0.4L432.4 0.6L441.4 1.5L450.5 0.3L459.5 0.4L468.5 0.9L477.5 0.0L486.5 0.6L495.5 1.5L504.5 0.8L513.5 3.3L522.5 1.4L531.5 1.4L540.5 0.6L549.5 0.2L558.6 0.1L567.6 0.3L576.6 2.8L585.6 0.0L594.6 0.2L603.6 0.0L612.6 1.0L621.6 0.4L630.6 0.6L639.6 1.4L648.6 0.7L657.7 0.1L666.7 0.5L675.7 1.3L684.7 0.0L693.7 0.8L702.7 3.1L711.7 0.8L720.7 1.4L729.7 0.4L738.7 0.3L747.7 0.9L756.8 0.5L765.8 1.3L774.8 1.4L783.8 1.3L792.8 0.4L801.8 2.8L810.8 0.0L819.8 0.4L828.8 1.5L837.8 1.5L846.8 1.5L855.9 0.4L864.9 0.3L873.9 1.0L882.9 1.3L891.9 1.0L900.9 0.1L909.9 1.5L918.9 1.2L927.9 0.3L936.9 0.5L945.9 1.6L955.0 0.6L964.0 1.2L973.0 0.2L982.0 1.4L991.0 0.2L998.4 0.0L999.4 9.0L997.6 18.0L998.4 27.0L999.2 36.0L999.3 45.0L998.7 54.1L999.6 63.1L999.6 72.1L999.6 81.1L999.8 90.1L999.4 99.1L999.1 108.1L999.3 117.1L999.2 126.1L996.9 135.1L999.3 144.1L1000.0 153.2L999.7 162.2L998.8 171.2L999.5 180.2L999.1 189.2L999.8 198.2L999.6 207.2L998.8 216.2L999.1 225.2L998.5 234.2L999.0 243.2L999.2 252.3L999.3 261.3L999.2 270.3L998.9 279.3L998.5 288.3L999.1 297.3L998.7 306.3L999.8 315.3L999.9 324.3L999.9 333.3L998.7 342.3L999.8 351.4L998.9 360.4L998.6 369.4L999.6 378.4L999.4 387.4L998.4 396.4L999.7 405.4L999.2 414.4L999.7 423.4L996.6 432.4L999.1 441.4L1000.0 450.5L999.0 459.5L999.9 468.5L998.7 477.5L999.8 486.5L999.9 495.5L999.6 504.5L999.3 513.5L998.7 522.5L999.8 531.5L999.1 540.5L997.6 549.5L998.9 558.6L999.9 567.6L999.0 576.6L999.9 585.6L999.9 594.6L999.3 603.6L999.1 612.6L999.6 621.6L999.2 630.6L999.8 639.6L999.9 648.6L999.5 657.7L998.8 666.7L999.2 675.7L997.2 684.7L997.4 693.7L998.8 702.7L999.7 711.7L998.5 720.7L998.7 729.7L999.2 738.7L999.4 747.7L998.9 756.8L999.5 765.8L998.9 774.8L999.4 783.8L999.9 792.8L999.9 801.8L999.6 810.8L999.9 819.8L998.6 828.8L999.5 837.8L999.5 846.8L999.7 855.9L999.6 864.9L998.4 873.9L999.6 882.9L999.5 891.9L1000.0 900.9L999.2 909.9L999.7 918.9L1000.0 927.9L999.9 936.9L997.7 945.9L999.5 955.0L999.1 964.0L998.8 973.0L998.9 982.0L999.4 991.0L1000.0 998.4L991.0 998.8L982.0 999.9L973.0 998.6L964.0 998.8L955.0 999.8L945.9 999.2L936.9 998.7L927.9 999.1L918.9 998.9L909.9 997.4L900.9 999.8L891.9 999.8L882.9 999.1L873.9 999.0L864.9 997.0L855.9 998.7L846.8 999.2L837.8 998.9L828.8 998.8L819.8 999.9L810.8 998.8L801.8 998.8L792.8 999.2L783.8 999.2L774.8 998.8L765.8 999.0L756.8 999.8L747.7 998.8L738.7 996.9L729.7 999.9L720.7 998.9L711.7 998.9L702.7 999.2L693.7 999.3L684.7 998.6L675.7 998.4L666.7 1000.0L657.7 998.7L648.6 999.3L639.6 999.7L630.6 999.7L621.6 999.8L612.6 998.5L603.6 998.7L594.6 998.6L585.6 999.6L576.6 997.0L567.6 1000.0L558.6 999.3L549.5 999.8L540.5 999.5L531.5 1000.0L522.5 998.7L513.5 998.5L504.5 998.6L495.5 999.4L486.5 998.4L477.5 999.4L468.5 997.3L459.5 999.8L450.5 999.5L441.4 999.6L432.4 999.2L423.4 999.4L414.4 998.6L405.4 999.0L396.4 998.5L387.4 996.6L378.4 998.8L369.4 998.8L360.4 997.3L351.4 998.5L342.3 999.2L333.3 999.5L324.3 998.4L315.3 999.0L306.3 999.1L297.3 999.7L288.3 999.7L279.3 999.2L270.3 998.5L261.3 999.3L252.3 999.7L243.2 999.5L234.2 999.6L225.2 999.1L216.2 998.8L207.2 999.3L198.2 999.4L189.2 999.9L180.2 998.5L171.2 999.2L162.2 998.6L153.2 999.6L144.1 999.4L135.1 998.5L126.1 996.4L117.1 999.9L108.1 998.6L99.1 996.8L90.1 999.4L81.1 998.7L72.1 998.4L63.1 999.8L54.1 999.2L45.0 998.5L36.0 999.0L27.0 999.3L18.0 999.9L9.0 999.6L1.0 1000.0L0.2 991.0L1.0 982.0L0.2 973.0L0.8 964.0L0.6 955.0L3.2 945.9L0.5 936.9L1.5 927.9L1.4 918.9L0.4 909.9L1.5 900.9L2.7 891.9L0.8 882.9L0.7 873.9L1.1 864.9L2.6 855.9L0.5 846.8L1.1 837.8L1.3 828.8L0.8 819.8L1.6 810.8L1.3 801.8L0.4 792.8L0.5 783.8L0.8 774.8L0.4 765.8L1.1 756.8L0.2 747.7L0.3 738.7L2.5 729.7L0.1 720.7L1.4 711.7L1.2 702.7L1.5 693.7L0.3 684.7L3.4 675.7L1.1 666.7L0.6 657.7L2.5 648.6L0.4 639.6L1.5 630.6L1.5 621.6L0.6 612.6L1.3 603.6L0.1 594.6L0.6 585.6L0.3 576.6L3.7 567.6L0.7 558.6L3.5 549.5L0.1 540.5L1.5 531.5L1.2 522.5L0.5 513.5L1.5 504.5L0.4 495.5L0.5 486.5L0.0 477.5L1.5 468.5L3.7 459.5L0.4 450.5L1.5 441.4L0.6 432.4L0.7 423.4L1.5 414.4L1.3 405.4L1.3 396.4L1.0 387.4L0.5 378.4L1.3 369.4L0.3 360.4L0.4 351.4L0.1 342.3L0.5 333.3L1.4 324.3L0.4 315.3L0.2 306.3L1.1 297.3L0.4 288.3L1.0 279.3L1.2 270.3L1.1 261.3L1.3 252.3L0.9 243.2L1.2 234.2L0.4 225.2L0.2 216.2L0.9 207.2L0.6 198.2L0.8 189.2L1.3 180.2L1.6 171.2L0.8 162.2L1.3 153.2L0.1 144.1L0.2 135.1L1.6 126.1L1.5 117.1L1.4 108.1L0.4 99.1L1.5 90.1L1.0 81.1L0.3 72.1L0.2 63.1L0.4 54.1L1.0 45.0L0.0 36.0L1.1 27.0L0.5 18.0L1.3 9.0Z'/%3E%3C/svg%3E");--tornh:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath d='M0.0 0.5L6.0 1.1L12.0 0.6L18.1 0.2L24.1 0.8L30.1 0.1L36.1 0.1L42.2 2.5L48.2 1.2L54.2 0.8L60.2 1.9L66.3 2.3L72.3 0.2L78.3 0.0L84.3 0.5L90.4 0.6L96.4 0.6L102.4 0.5L108.4 1.2L114.5 1.0L120.5 0.4L126.5 0.3L132.5 0.9L138.6 1.0L144.6 1.1L150.6 0.0L156.6 1.1L162.7 1.2L168.7 0.1L174.7 0.9L180.7 0.1L186.7 1.2L192.8 0.1L198.8 1.8L204.8 1.0L210.8 0.7L216.9 0.2L222.9 0.2L228.9 0.1L234.9 0.3L241.0 1.2L247.0 0.4L253.0 0.3L259.0 1.0L265.1 0.1L271.1 0.3L277.1 0.9L283.1 0.4L289.2 0.1L295.2 0.3L301.2 0.4L307.2 1.2L313.3 0.7L319.3 0.2L325.3 1.1L331.3 0.3L337.3 0.9L343.4 0.2L349.4 1.1L355.4 0.5L361.4 0.0L367.5 0.3L373.5 0.3L379.5 0.7L385.5 0.2L391.6 0.1L397.6 0.7L403.6 0.7L409.6 1.1L415.7 0.0L421.7 0.5L427.7 0.2L433.7 0.7L439.8 0.4L445.8 1.2L451.8 0.8L457.8 1.8L463.9 0.0L469.9 0.8L475.9 0.0L481.9 0.6L488.0 0.4L494.0 0.1L500.0 0.9L506.0 0.9L512.0 1.0L518.1 0.4L524.1 1.1L530.1 0.5L536.1 1.0L542.2 0.7L548.2 0.7L554.2 0.1L560.2 1.2L566.3 0.9L572.3 0.9L578.3 0.5L584.3 0.1L590.4 0.0L596.4 0.6L602.4 0.8L608.4 0.7L614.5 2.0L620.5 0.4L626.5 0.2L632.5 1.1L638.6 0.5L644.6 0.4L650.6 0.2L656.6 1.0L662.7 1.1L668.7 0.7L674.7 0.2L680.7 1.0L686.7 0.9L692.8 0.3L698.8 0.5L704.8 0.3L710.8 0.8L716.9 0.4L722.9 1.2L728.9 1.8L734.9 2.7L741.0 0.9L747.0 0.4L753.0 0.0L759.0 2.2L765.1 1.0L771.1 1.8L777.1 0.8L783.1 0.8L789.2 1.0L795.2 0.8L801.2 0.6L807.2 0.0L813.3 0.9L819.3 0.3L825.3 0.8L831.3 0.7L837.3 0.5L843.4 1.1L849.4 1.1L855.4 0.2L861.4 0.8L867.5 0.5L873.5 1.1L879.5 1.1L885.5 0.8L891.6 0.9L897.6 0.8L903.6 0.3L909.6 1.2L915.7 0.6L921.7 0.4L927.7 1.0L933.7 0.1L939.8 0.7L945.8 2.3L951.8 1.0L957.8 1.0L963.9 0.4L969.9 0.2L975.9 0.6L981.9 1.0L988.0 1.1L994.0 1.1L1000.0 0.0L1000.0 1000.0L1000.0 999.7L994.0 999.7L988.0 999.2L981.9 999.0L975.9 999.6L969.9 999.0L963.9 999.8L957.8 998.8L951.8 999.3L945.8 999.4L939.8 997.6L933.7 998.8L927.7 999.5L921.7 999.3L915.7 999.2L909.6 999.4L903.6 998.9L897.6 999.7L891.6 999.8L885.5 999.0L879.5 999.4L873.5 999.8L867.5 998.9L861.4 997.4L855.4 999.8L849.4 999.2L843.4 999.6L837.3 999.9L831.3 999.9L825.3 999.7L819.3 999.4L813.3 999.5L807.2 999.4L801.2 999.8L795.2 999.2L789.2 999.0L783.1 999.0L777.1 999.1L771.1 998.9L765.1 999.6L759.0 999.7L753.0 998.9L747.0 999.7L741.0 999.7L734.9 999.0L728.9 999.1L722.9 999.5L716.9 1000.0L710.8 999.2L704.8 998.8L698.8 999.4L692.8 999.4L686.7 999.8L680.7 998.2L674.7 999.3L668.7 999.3L662.7 999.8L656.6 999.0L650.6 998.9L644.6 999.9L638.6 999.4L632.5 999.6L626.5 999.4L620.5 997.6L614.5 999.2L608.4 999.8L602.4 999.1L596.4 999.8L590.4 997.7L584.3 998.9L578.3 999.2L572.3 999.2L566.3 999.3L560.2 998.8L554.2 999.7L548.2 999.1L542.2 999.0L536.1 998.9L530.1 999.2L524.1 999.1L518.1 999.1L512.0 999.6L506.0 1000.0L500.0 999.2L494.0 999.7L488.0 999.2L481.9 999.2L475.9 999.4L469.9 998.8L463.9 999.2L457.8 997.1L451.8 999.3L445.8 999.7L439.8 999.9L433.7 999.5L427.7 999.7L421.7 999.3L415.7 998.8L409.6 998.8L403.6 999.0L397.6 999.3L391.6 999.9L385.5 999.8L379.5 999.8L373.5 997.6L367.5 998.9L361.4 999.4L355.4 999.6L349.4 999.2L343.4 999.7L337.3 998.0L331.3 998.0L325.3 999.8L319.3 999.5L313.3 997.4L307.2 998.8L301.2 999.9L295.2 999.5L289.2 998.8L283.1 999.4L277.1 999.1L271.1 998.8L265.1 999.3L259.0 999.3L253.0 998.1L247.0 999.4L241.0 999.5L234.9 999.5L228.9 999.3L222.9 999.1L216.9 998.8L210.8 999.1L204.8 999.9L198.8 999.1L192.8 999.6L186.7 999.2L180.7 999.3L174.7 999.1L168.7 999.7L162.7 998.9L156.6 1000.0L150.6 999.7L144.6 999.3L138.6 999.4L132.5 999.9L126.5 999.3L120.5 999.6L114.5 999.7L108.4 999.1L102.4 999.9L96.4 999.0L90.4 999.1L84.3 999.5L78.3 999.0L72.3 999.2L66.3 999.6L60.2 999.1L54.2 999.5L48.2 999.9L42.2 999.9L36.1 999.3L30.1 999.2L24.1 999.1L18.1 999.7L12.0 999.9L6.0 999.1L0.0 1000.0Z'/%3E%3C/svg%3E");
--bg:#F5F3EB; --surface:#FFFFFF; --surface-2:#EDE8DC; --ink:#262A33; --muted:#5B5F6B; --faint:#8A8D96;
--line:#D8D2C4; --navy:#293A88; --navy-ink:#293A88; --plum:#963672; --magenta:#B85C9C;
--teal:#12A296; --teal-ink:#0E6B63; --sun:#F4D25A; --ochre:#C99A12; --night:#1C2650; --on-night:#F3EFE6;
--mark:rgba(244,210,90,.55); --shadow:0 1px 0 rgba(38,42,51,.06),0 18px 40px -24px rgba(28,38,80,.45);
--serif:"zarid serif","29LT Zarid Serif","29LT Zarid Sans AL","IBM Plex Sans Arabic",Georgia,serif;
--latin:"Source Sans 3","Source Sans Pro",Arial,sans-serif;
--measure:680px; --wide:1120px; --gut:16px;
--grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
--bg:#121A33; --surface:#1A2444; --surface-2:#202C50; --ink:#F3EFE6; --muted:#B9BDCC; --faint:#8F95AB;
--line:#34406A; --navy:#9FB2F2; --navy-ink:#B9C7F7; --plum:#E8A6D0; --magenta:#E39AC9; --teal:#3FC3B5; --teal-ink:#5FD3C6;
--sun:#F4D25A; --ochre:#E9C04A; --night:#0B1128; --mark:rgba(244,210,90,.22); --shadow:0 18px 40px -24px rgba(0,0,0,.7);
}}
:root[data-theme="dark"]{
--bg:#121A33; --surface:#1A2444; --surface-2:#202C50; --ink:#F3EFE6; --muted:#B9BDCC; --faint:#8F95AB;
--line:#34406A; --navy:#9FB2F2; --navy-ink:#B9C7F7; --plum:#E8A6D0; --magenta:#E39AC9; --teal:#3FC3B5; --teal-ink:#5FD3C6;
--sun:#F4D25A; --ochre:#E9C04A; --night:#0B1128; --mark:rgba(244,210,90,.22); --shadow:0 18px 40px -24px rgba(0,0,0,.7);
}
#app, #app *{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
html:root body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--serif);font-size:19px;line-height:2;overflow-x:clip}
#app::before{content:"";position:absolute;inset:0;background:var(--grain);opacity:.22;pointer-events:none;z-index:-1;mix-blend-mode:multiply}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) #app::before{mix-blend-mode:screen;opacity:.18}}
:root[data-theme="dark"] #app::before{mix-blend-mode:screen;opacity:.18}
#app{position:relative;z-index:1}
#app img{max-width:100%;height:auto;display:block}
#app a{color:inherit}
#app .col{max-width:var(--measure);margin-inline:auto;padding-inline:var(--gut)}
#app .wide{max-width:var(--wide);margin-inline:auto;padding-inline:var(--gut)}
#app [lang=en],#app .lat{font-family:var(--latin)}
#app .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
#app .site{border-bottom:1px solid var(--line);background:var(--surface);font-size:14px;line-height:1}
#app .site .wide{display:flex;align-items:center;justify-content:space-between;height:56px}
#app .site b{font-family:var(--latin);font-weight:700;letter-spacing:.02em;color:var(--navy)}
#app .site span{color:var(--faint)}
#app .wd-bar{position:fixed;top:0;inset-inline:0;z-index:30;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);transform:translateY(-100%);visibility:hidden;transition:transform .35s ease,visibility .35s;font-size:15px;line-height:1.4}
#app .wd-bar.on{transform:none;visibility:visible}
#app .wd-bar .wide{display:flex;align-items:center;gap:14px;height:52px}
#app .wd-bar .t{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}
#app .wd-bar .t small{color:var(--muted);font-weight:400;margin-inline-start:8px}
#app .wd-bar button{font:inherit;background:none;border:1px solid var(--line);color:var(--ink);border-radius:999px;padding:6px 14px;cursor:pointer;white-space:nowrap}
#app .wd-bar button:hover{border-color:var(--ink)}
#app .prog{position:absolute;inset-inline:0;bottom:-1px;height:3px;background:transparent}
#app .prog i{display:block;height:100%;width:100%;background:var(--plum);transform-origin:right;transform:scaleX(0)}
#app .toc{position:absolute;top:100%;inset-inline-end:var(--gut);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);padding:10px;min-width:280px;display:none;margin:0;list-style:none;counter-reset:t}
#app .toc.open{display:block}
#app .toc a{display:flex;gap:12px;padding:8px 10px;text-decoration:none;border-radius:4px;counter-increment:t}
#app .toc a::before{content:counter(t,decimal-leading-zero);color:var(--plum);font-family:var(--latin);font-weight:700;font-size:13px;padding-top:2px}
#app .toc a:hover,#app .toc a.cur{background:var(--surface-2)}
#app .hero{padding:56px 0 40px;position:relative}
#app .hero .wide{display:grid;grid-template-columns:1fr 1.3fr;gap:56px;align-items:center}
#app .kicker{display:inline-flex;align-items:center;gap:10px;font-size:15px;font-weight:700;color:var(--plum);margin:0 0 18px;letter-spacing:0}
#app .kicker::before{content:"";width:28px;height:3px;background:var(--plum)}
#app .hero h1{font-size:clamp(46px,6.4vw,84px);line-height:1.12;margin:0;font-weight:700;letter-spacing:-.01em}
#app .hero h1 .sub{display:block;font-size:.44em;line-height:1.45;margin-top:18px;color:var(--navy-ink)}
#app .dek{font-size:21px;line-height:1.85;color:var(--muted);margin:24px 0 0;max-width:34em}
#app .byline{display:flex;align-items:center;gap:14px;margin-top:30px;padding-top:22px;border-top:1px solid var(--line);font-size:15px;line-height:1.6}
#app .byline img{width:52px;height:52px;border-radius:50%;object-fit:cover}
#app .byline a{font-weight:700;text-decoration:none;border-bottom:1px solid var(--line)}
#app .byline a:hover{border-color:var(--ink)}
#app .byline .meta{display:block;color:var(--muted)}
#app .art{position:relative;filter:drop-shadow(0 22px 30px rgba(28,38,80,.28));margin:0}
#app .art img{width:100%;-webkit-mask:var(--torn) center/100% 100% no-repeat;mask:var(--torn) center/100% 100% no-repeat}
#app .art figcaption,#app .plate figcaption,#app .photo figcaption{font-size:13px;line-height:1.6;color:var(--faint);margin-top:10px}
#app .hero .obj{position:absolute;width:92px;inset-inline-start:-34px;bottom:-24px;transform:rotate(-8deg);filter:drop-shadow(0 8px 10px rgba(0,0,0,.25))}
#app .story p{margin:0 0 1.15em;text-wrap:pretty}
#app .story p.lead{font-size:1.16em;line-height:1.95}
#app .story strong{font-weight:700}
#app .story mark{background:linear-gradient(transparent 55%,var(--mark) 55%);color:inherit;padding:0 .1em}
#app .story p.note{font-size:16px;line-height:1.85;color:var(--muted);border-inline-start:3px solid var(--line);padding:4px 18px 4px 0;margin-block:1.6em}
#app .story p.end::after{content:"";display:inline-block;width:.55em;height:.55em;background:var(--plum);margin-inline-start:.4em;vertical-align:middle}
#app sup.fn{line-height:0;font-size:.62em;font-family:var(--latin);margin-inline-start:1px}
#app sup.fn button,#app .term{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
#app sup.fn button{color:var(--plum);font-weight:700;padding:0 1px}
#app .term{border-bottom:1.5px dotted var(--plum);line-height:inherit}
#app .term:hover,#app sup.fn button:hover{color:var(--plum)}
#app button:focus-visible,#app a:focus-visible{outline:2px solid var(--navy);outline-offset:3px;border-radius:2px}
#app .chapter{padding-top:40px;scroll-margin-top:64px}
#app .ch-head{margin:40px 0 30px;position:relative}
#app .ch-head .n{display:block;font-family:var(--latin);font-weight:700;font-size:14px;letter-spacing:.14em;color:var(--plum);margin-bottom:6px}
#app .ch-head h2{font-size:clamp(30px,4vw,42px);line-height:1.3;margin:0;font-weight:700}
#app .ch-head::after{content:"";display:block;width:56px;height:3px;background:var(--ink);margin-top:18px}
#app .fig{margin:44px auto 52px}
#app .fig-h{font-size:22px;line-height:1.5;font-weight:700;margin:0 0 6px}
#app .fig-sub{font-size:15px;line-height:1.7;color:var(--muted);margin:0 0 22px}
#app .src{font-size:13px;line-height:1.6;color:var(--faint);margin-top:16px;border-top:1px solid var(--line);padding-top:10px}
#app .rv{opacity:0;transform:translateY(14px);transition:opacity .8s cubic-bezier(.16,1,.3,1),transform .8s cubic-bezier(.16,1,.3,1)}
#app .rv.in{opacity:1;transform:none}
#app .keys{display:grid;grid-template-columns:repeat(4,1fr);border-block:2px solid var(--ink);margin:52px auto}
#app .keys div{padding:22px 20px 20px;border-inline-start:1px solid var(--line)}
#app .keys div:first-child{border:0}
#app .keys b{display:block;font-family:var(--latin);font-size:56px;line-height:1;font-weight:700;color:var(--ink)}
#app .keys div.p b{color:var(--plum)}
#app .keys div.t b{color:var(--teal-ink)}
#app .keys span{display:block;font-size:15px;line-height:1.65;color:var(--muted);margin-top:12px}
#app .path ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:0;position:relative}
#app .path li{position:relative;padding:34px 18px 0 22px}
#app .path li::before{content:"";position:absolute;top:9px;inset-inline:0;height:2px;background:var(--line)}
#app .path li:first-child::before{inset-inline-start:9px}
#app .path li::after{content:"";position:absolute;top:2px;inset-inline-start:0;width:16px;height:16px;border-radius:50%;background:var(--bg);border:3px solid var(--navy)}
#app .path .yr{font-family:var(--latin);font-weight:700;font-size:28px;line-height:1;color:var(--navy-ink)}
#app .path .yr:empty::before{content:"\00a0"}
#app .path .ct{display:block;font-weight:700;font-size:17px;line-height:1.5;margin-top:10px}
#app .path .no{display:block;font-size:13px;color:var(--faint);line-height:1.6}
#app .path .rs{display:block;font-size:15px;line-height:1.7;color:var(--muted);margin-top:8px}
#app .verdict{margin-top:26px;display:flex;gap:16px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-inline-start:4px solid var(--plum);padding:16px 20px;font-size:16px;line-height:1.8}
#app .verdict b{color:var(--plum);white-space:nowrap}
#app .scope{display:grid;grid-template-columns:1.1fr 1fr;gap:40px;align-items:center;background:var(--surface);border:1px solid var(--line);padding:32px;box-shadow:var(--shadow)}
#app .scope dl{display:grid;grid-template-columns:1fr 1fr;gap:22px 28px;margin:0}
#app .scope dt{font-family:var(--latin);font-weight:700;font-size:44px;line-height:1;color:var(--navy-ink)}
#app .scope dd{margin:6px 0 0;font-size:15px;line-height:1.6;color:var(--muted)}
#app .scope .map{position:relative}
#app .scope .map img{width:100%;opacity:.95}
#app .scope .gov{font-size:14px;line-height:1.9;color:var(--muted);margin-top:14px}
#app .bars{display:grid;gap:18px}
#app .bar{display:grid;grid-template-columns:150px 1fr 64px;gap:16px;align-items:center;font-size:16px;line-height:1.4}
#app .bar .tr{height:30px;background:var(--surface-2);position:relative;overflow:hidden}
#app .bar .tr i{position:absolute;inset-block:0;inset-inline-start:0;width:var(--v);background:var(--navy);transform:scaleX(0);transform-origin:right;transition:transform 1.2s cubic-bezier(.16,1,.3,1)}
#app .bar.hi .tr i{background:var(--plum)}
#app .in .bar .tr i{transform:none}
#app .bar .v{font-family:var(--latin);font-weight:700;font-size:20px}
#app .doc{position:relative;background:#FBF8EE;color:#262A33;padding:44px 48px 36px;box-shadow:var(--shadow);transform:rotate(-.6deg);border:1px solid #E3DCC9;max-width:620px}
#app .doc::before{content:"";position:absolute;inset:10px;border:1px solid #E3DCC9;pointer-events:none}
#app .doc .lbl{font-size:13px;letter-spacing:.04em;color:#8A6B12;font-weight:700}
#app .doc blockquote{margin:14px 0 18px;font-size:clamp(26px,3.3vw,34px);line-height:1.6;font-weight:700}
#app .doc blockquote mark{background:linear-gradient(transparent 58%,rgba(244,210,90,.75) 58%);color:inherit}
#app .doc .cite{font-size:14px;line-height:1.7;color:#5B5F6B}
#app .doc .stamp{position:absolute;width:86px;inset-inline-start:24px;bottom:-26px;transform:rotate(12deg);filter:drop-shadow(0 6px 8px rgba(0,0,0,.25))}
#app .dots{display:grid;grid-template-columns:repeat(20,1fr);gap:6px;max-width:560px}
#app .dots i{aspect-ratio:1;border-radius:50%;background:var(--surface-2);border:1px solid var(--line);transition:background .4s ease,transform .4s ease}
#app .in .dots i.on{background:var(--plum);border-color:var(--plum);transform:scale(1.25)}
#app .dotsrow{display:grid;grid-template-columns:auto 1fr;gap:36px;align-items:center}
#app .big{font-family:var(--latin);font-weight:700;font-size:96px;line-height:.9;color:var(--plum)}
#app .big small{font-size:.38em}
#app .dotsrow p{margin:8px 0 0;font-size:17px;line-height:1.75;color:var(--muted);max-width:15em}
#app .survey{background:var(--night);color:var(--on-night);padding:34px 36px;display:grid;grid-template-columns:auto 1fr;gap:34px;align-items:start}
#app .survey .n{font-family:var(--latin);font-weight:700;font-size:80px;line-height:.9;color:var(--sun)}
#app .survey .n span{display:block;font-family:var(--serif);font-size:16px;line-height:1.6;color:#C9CDE0;font-weight:400;margin-top:12px;max-width:9em}
#app .survey h4{margin:0 0 12px;font-size:19px;line-height:1.5}
#app .survey ul{margin:0;padding:0;list-style:none;display:grid;gap:10px}
#app .survey li{font-size:16px;line-height:1.7;padding-inline-start:22px;position:relative;color:#E6E3DA}
#app .survey li::before{content:"";position:absolute;inset-inline-start:0;top:.75em;width:10px;height:2px;background:var(--sun)}
#app .survey .cav{font-size:13px;color:#A7ADC6;margin-top:16px;line-height:1.6}
#app .waffle-wrap{display:grid;grid-template-columns:auto 1fr;gap:40px;align-items:center}
#app .waffle{display:grid;grid-template-columns:repeat(5,52px);gap:8px;direction:rtl}
#app .waffle i{width:52px;height:52px;background:var(--surface-2);border:1px solid var(--line);transition:background .5s ease,border-color .5s ease}
#app .in .waffle i{background:var(--c);border-color:var(--c)}
#app .legend{list-style:none;margin:0;padding:0;display:grid;gap:14px}
#app .legend li{display:grid;grid-template-columns:18px 52px 1fr;gap:12px;align-items:baseline;font-size:16px;line-height:1.6}
#app .legend li::before{content:"";width:14px;height:14px;background:var(--c);transform:translateY(2px)}
#app .legend b{font-family:var(--latin);font-size:24px;line-height:1}
#app .legend em{font-style:normal;color:var(--faint);font-size:13px;font-family:var(--latin)}
#app .laws{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
#app .law{background:var(--surface);border:1px solid var(--line);padding:22px 22px 24px;position:relative}
#app .law .a{font-size:14px;font-weight:700;color:var(--teal-ink)}
#app .law .a b{font-family:var(--latin);font-size:30px;display:block;line-height:1.1;color:var(--ink);margin-top:4px}
#app .law p{margin:12px 0 0;font-size:16px;line-height:1.8}
#app .law-src{font-size:13px;color:var(--faint);margin-top:14px}
#app .cmp{display:flex;gap:0;border-top:2px solid var(--ink);padding-top:18px}
#app .cmp div{flex:1;padding-inline-end:18px;font-size:15px;line-height:1.7;color:var(--muted)}
#app .cmp b{display:block;font-family:var(--latin);font-size:30px;line-height:1.1;color:var(--ink)}
#app .cmp div.y b{color:var(--plum)}
#app .flow{display:grid;gap:0;justify-items:center;text-align:center;position:relative}
#app .flow .box{background:var(--surface);border:1px solid var(--line);padding:14px 22px;font-size:17px;line-height:1.7;max-width:460px;box-shadow:var(--shadow)}
#app .flow .box.dark{background:var(--night);color:var(--on-night);border-color:var(--night)}
#app .flow .arr{width:2px;height:30px;background:var(--ink);position:relative}
#app .flow .arr::after{content:"";position:absolute;bottom:-1px;left:50%;width:10px;height:10px;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:translate(-50%,0) rotate(45deg)}
#app .flow .or{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;width:100%;max-width:680px;position:relative;padding-top:22px}
#app .flow .or::before{content:"";position:absolute;top:0;inset-inline:16.6%;height:2px;background:var(--ink)}
#app .flow .or>div{position:relative;background:var(--surface);border:2px solid var(--plum);padding:14px 12px;font-size:16px;line-height:1.6;font-weight:700}
#app .flow .or>div::before{content:"";position:absolute;top:-24px;left:50%;width:2px;height:22px;background:var(--ink)}
#app .flow .or>div small{display:block;font-weight:400;color:var(--muted);font-size:13px}
#app .flow .or>div img{width:34px;margin:0 auto 6px}
#app .flow .tag{font-size:13px;color:var(--plum);font-weight:700;margin:14px 0 0}
#app .flow .last{font-size:15px;line-height:1.7;color:var(--muted);margin-top:14px;max-width:440px}
#app .split{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);background:var(--surface)}
#app .split>div{padding:24px 26px}
#app .split>div+div{border-inline-start:1px solid var(--line);background:repeating-linear-gradient(-45deg,transparent 0 9px,color-mix(in srgb,var(--plum) 9%,transparent) 9px 10px)}
#app .split h4{margin:0 0 8px;font-size:15px;color:var(--muted);font-weight:400}
#app .split p{margin:0;font-size:20px;line-height:1.6;font-weight:700}
#app .split .ok{color:var(--teal-ink)}
#app .split .no{color:var(--plum)}
#app .split .ft{grid-column:1/-1;border-top:1px solid var(--line);font-size:14px;color:var(--muted);padding:12px 26px;line-height:1.6;background:transparent}
#app .band{background:var(--night);color:var(--on-night);padding:96px 0;margin:56px 0;position:relative;overflow:hidden}
#app .band blockquote{margin:0;font-size:clamp(40px,7vw,88px);line-height:1.3;font-weight:700}
#app .band blockquote::before{content:"«";color:var(--sun)}
#app .band blockquote::after{content:"»";color:var(--sun)}
#app .band .gloss{font-size:20px;color:#C9CDE0;margin-top:14px}
#app .band cite{display:block;font-style:normal;font-size:16px;color:#A7ADC6;margin-top:28px;line-height:1.7}
#app .band .obj{position:absolute;width:150px;inset-inline-start:6%;bottom:-18px;opacity:.9;transform:rotate(-10deg)}
#app .pq{margin:48px 0;padding:0;border:0}
#app .pq blockquote{margin:0;font-size:clamp(26px,3.4vw,34px);line-height:1.65;font-weight:700;position:relative;padding-top:42px}
#app .pq blockquote::before{content:"”";position:absolute;top:-6px;inset-inline-start:0;font-family:Georgia,serif;font-size:96px;line-height:1;color:var(--plum)}
#app .pq cite{display:flex;align-items:center;gap:12px;font-style:normal;font-size:15px;color:var(--muted);margin-top:16px;line-height:1.6}
#app .pq cite img{width:44px;height:44px;border-radius:50%;object-fit:cover}
#app .pq .init{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);color:var(--plum);font-weight:700;font-size:15px;flex:none}
#app .pq.wide-q{max-width:860px;margin-inline:auto}
#app .proposal{background:var(--surface);border-top:4px solid var(--teal);padding:28px 30px;box-shadow:var(--shadow)}
#app .proposal .lbl{font-size:14px;font-weight:700;color:var(--teal-ink)}
#app .proposal blockquote{margin:10px 0 0;font-size:24px;line-height:1.75;font-weight:700}
#app .proposal cite{display:block;font-style:normal;font-size:14px;color:var(--muted);margin-top:12px}
#app .plate{margin:56px auto;position:relative;filter:drop-shadow(0 20px 26px rgba(28,38,80,.22))}
#app .plate img{width:100%;-webkit-mask:var(--tornh) center/100% 100% no-repeat;mask:var(--tornh) center/100% 100% no-repeat}
#app .plate figcaption{text-align:center}
#app .photo{margin:48px auto}
#app .photo img{width:100%;filter:grayscale(1) contrast(1.05);transition:filter 1.2s ease}
#app .photo.in img{filter:grayscale(.15)}
#app .voice{display:flex;gap:12px;align-items:center;font-size:14px;line-height:1.55;margin:4px 0 22px;padding:10px 0;border-block:1px solid var(--line)}
#app .voice img,#app .voice .init{width:52px;height:52px;border-radius:50%;object-fit:cover;flex:none;filter:grayscale(1)}
#app .voice b{display:block;font-size:15px}
#app .voice span{color:var(--muted)}
#app .place{display:flex;gap:14px;align-items:center;margin:0 0 26px;font-size:14px;line-height:1.5;color:var(--muted)}
#app .place img{width:86px;height:64px;object-fit:cover;filter:grayscale(1) contrast(1.1);-webkit-mask:var(--torn) center/100% 100%;mask:var(--torn) center/100% 100%}
#app .place b{display:block;color:var(--ink);font-size:16px}
@media (min-width:1240px){#app .voice,#app .place{float:left;clear:left;width:210px;margin-left:-260px;margin-top:8px;flex-direction:column;align-items:flex-start;border:0;border-top:2px solid var(--ink);padding-top:14px}
#app .voice img,#app .voice .init{width:64px;height:64px}
#app .place img{width:210px;height:140px}}
#app .method{background:var(--surface);border:1px solid var(--line);padding:32px 34px;margin:64px auto 0}
#app .method h2,#app .gl h2,#app .refs h2{font-size:26px;line-height:1.4;margin:0 0 18px}
#app .method ul{margin:0;padding:0;list-style:none;display:grid;gap:14px;counter-reset:m}
#app .method li{position:relative;padding-inline-start:44px;font-size:16.5px;line-height:1.85;counter-increment:m}
#app .method li::before{content:counter(m,decimal-leading-zero);position:absolute;inset-inline-start:0;top:2px;font-family:var(--latin);font-weight:700;font-size:15px;color:var(--plum)}
#app .gl{margin-top:64px}
#app .gl .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
#app .gl dl{margin:0;background:var(--surface);border:1px solid var(--line);padding:18px 20px;position:relative}
#app .gl dl::before{content:"";position:absolute;top:0;inset-inline-start:0;width:36px;height:3px;background:var(--plum)}
#app .gl dt{font-weight:700;font-size:18px;line-height:1.5}
#app .gl dd{margin:6px 0 0;font-size:15px;line-height:1.75;color:var(--muted)}
#app .gl dl:target,#app .gl dl.flash{outline:2px solid var(--plum)}
#app .refs{margin-top:64px}
#app .refs ol{margin:0;padding:0;list-style:none;display:grid;gap:10px;counter-reset:r}
#app .refs li{font-size:15px;line-height:1.8;color:var(--muted);padding-inline-start:34px;position:relative;counter-increment:r}
#app .refs li::before{content:counter(r);position:absolute;inset-inline-start:0;font-family:var(--latin);font-weight:700;color:var(--plum)}
#app .refs li.flash{color:var(--ink)}
#app .refs a{color:var(--navy-ink);direction:ltr;unicode-bidi:isolate;white-space:nowrap}
#app .author{display:grid;grid-template-columns:96px 1fr;gap:24px;align-items:start;border-top:2px solid var(--ink);margin-top:64px;padding-top:28px}
#app .author img{width:96px;height:96px;border-radius:50%;object-fit:cover}
#app .author .lbl{font-size:13px;color:var(--plum);font-weight:700}
#app .author h3{margin:2px 0 8px;font-size:22px;line-height:1.4}
#app .author p{margin:0;font-size:16px;line-height:1.85;color:var(--muted)}
#app .author a{font-size:15px;font-weight:700;color:var(--navy-ink);display:inline-block;margin-top:10px}
#app .credits{font-size:14px;line-height:1.8;color:var(--faint);border-top:1px solid var(--line);margin-top:40px;padding:20px 0 64px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
#app .pop{position:absolute;z-index:40;max-width:340px;background:var(--night);color:var(--on-night);padding:14px 16px 16px;font-size:15px;line-height:1.75;box-shadow:0 18px 40px -12px rgba(0,0,0,.5);display:none}
#app .pop.on{display:block}
#app .pop b{display:block;color:var(--sun);font-size:15px;margin-bottom:2px}
#app .pop a{color:#C9D4FF;font-size:13px}
@media (max-width:980px){#app .hero .wide{grid-template-columns:1fr;gap:34px}
#app .hero .art{order:-1}
#app .keys{grid-template-columns:1fr 1fr}
#app .keys div:nth-child(3){border:0}
#app .keys div{border-top:1px solid var(--line)}
#app .keys div:nth-child(-n+2){border-top:0}
#app .scope{grid-template-columns:1fr}
#app .laws,#app .gl .grid{grid-template-columns:1fr 1fr}}
@media (max-width:640px){#app .path .yr:empty{display:none}
html:root body{font-size:18px;line-height:1.95}
#app .hero{padding-top:28px}
#app .dek{font-size:18px}
#app .keys b{font-size:44px}
#app .path ol{grid-template-columns:1fr}
#app .path li{padding:0 34px 22px 0}
#app .path li::before{top:0;bottom:0;height:auto;width:2px;inset-inline-start:7px;inset-inline-end:auto}
#app .path li:first-child::before{inset-inline-start:7px;top:9px}
#app .path li::after{top:2px}
#app .bar{grid-template-columns:96px 1fr 54px;gap:10px;font-size:14px}
#app .dotsrow,#app .survey,#app .waffle-wrap{grid-template-columns:1fr;gap:22px}
#app .big{font-size:72px}
#app .dots{gap:4px}
#app .waffle{grid-template-columns:repeat(5,1fr);max-width:320px}
#app .waffle i{width:auto;aspect-ratio:1;height:auto}
#app .laws,#app .gl .grid{grid-template-columns:1fr}
#app .flow .or{grid-template-columns:1fr;padding-top:0}
#app .flow .or::before,#app .flow .or>div::before{display:none}
#app .flow .or>div{margin-top:10px}
#app .split{grid-template-columns:1fr}
#app .split>div+div{border-inline-start:0;border-top:1px solid var(--line)}
#app .doc{padding:34px 26px 30px;transform:none}
#app .cmp{flex-direction:column;gap:14px}
#app .band{padding:64px 0}
#app .band .obj{width:96px}
#app .scope{padding:22px}
#app .scope dt{font-size:36px}
#app .survey{padding:26px 22px}
#app .method{padding:24px 20px}
#app .author{grid-template-columns:64px 1fr;gap:16px}
#app .author img{width:64px;height:64px}
#app .wd-bar .t small{display:none}}
@media (prefers-reduced-motion:reduce){#app .rv,#app .rv.in{opacity:1;transform:none;transition:none}
#app .bar .tr i,#app .waffle i,#app .dots i,#app .photo img{transition:none}
html{scroll-behavior:auto}}
:root{--m-field:#293A88;--m-cov:#93A0D6;--m-out:#E6E1D4;--m-stroke:#FFFFFF}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--m-field:#6F86E6;--m-cov:#3A4A86;--m-out:#232E52;--m-stroke:#121A33}}
:root[data-theme="dark"]{--m-field:#6F86E6;--m-cov:#3A4A86;--m-out:#232E52;--m-stroke:#121A33}
#app .paper{--ink:#262A33;--muted:#5B5F6B;--faint:#8A8D96;--line:#D8D2C4;--plum:#963672;--navy-ink:#293A88;--surface:#FFFFFF;--surface-2:#EDE8DC;
background:#F3F1EA url("https://cdn.prod.website-files.com/67e4711942c68e6541630d16/6b0430e369a8f75ea2c7a9ef_wd-grid-paper.webp") center top/1200px auto repeat;color:var(--ink)}
#app .hero.paper{padding:64px 0 56px;border-bottom:1px solid var(--line)}
#app .art{filter:none}
#app .art figcaption{text-align:left}
#app .stage{position:relative;width:100%}
#app .stage img{position:absolute;height:auto;max-width:none;transform:rotate(var(--r,0deg));filter:drop-shadow(0 10px 14px rgba(28,38,80,.22));-webkit-mask:none!important;mask:none!important;will-change:transform}
#app .cbanner{padding:56px 0 40px;margin:0 0 28px;border-block:1px solid var(--line)}
#app .cb-in{display:grid;grid-template-columns:minmax(240px,.75fr) 1.6fr;gap:48px;align-items:center}
#app .cbanner .ch-head{margin:0}
#app .band-cap{font-size:18px;line-height:1.8;color:var(--muted);margin:18px 0 0;max-width:18em}
#app .tone-white{background:var(--surface);padding-bottom:40px;border-block:1px solid var(--line)}
#app .tone-dark{--bg:#1C2650;--surface:#24305E;--surface-2:#2D3A6C;--ink:#F3EFE6;--muted:#C9CDE0;--faint:#A7ADC6;--line:#3A467A;--plum:#F0B4DA;--navy-ink:#B9C7F7;--mark:rgba(244,210,90,.25);
background:#1C2650;color:var(--ink);padding-bottom:56px}
#app .tone-dark .pq .init{background:#2D3A6C}
#app .voice img,#app .voice .init{width:84px;height:84px;filter:none}
#app .pq cite img{width:56px;height:56px}
#app .byline img{width:60px;height:60px}
#app .author{grid-template-columns:132px 1fr}
#app .author img{width:132px;height:132px}
@media (min-width:1240px){#app .voice img,#app .voice .init{width:120px;height:120px}}
#app .photo img{filter:grayscale(.6) contrast(1.03)}
#app .photo.in img{filter:none}
#app .photo.full img{width:100%;max-height:600px;object-fit:cover}
#app .photo.mid{max-width:760px}
#app .photo figcaption{font-size:13px;line-height:1.6;color:var(--faint);margin-top:10px}
#app .mapfig{background:var(--surface);border:1px solid var(--line);padding:30px 32px;box-shadow:var(--shadow)}
#app .mgrid{display:grid;grid-template-columns:1.75fr 1fr;gap:32px;align-items:start}
#app .mwrap{position:relative}
#app .ymap{width:100%;height:auto;display:block;overflow:hidden}
#app .ymap path{stroke:var(--m-stroke);stroke-width:.9;stroke-linejoin:round;cursor:pointer;transition:fill .2s ease}
#app .ymap path.field{fill:var(--m-field)}
#app .ymap path.cov{fill:var(--m-cov)}
#app .ymap path.out{fill:var(--m-out)}
#app .ymap path:hover,#app .ymap path:focus,#app .ymap path.sel{fill:var(--plum);outline:none}
#app .ymap .lb{font-family:var(--serif);font-size:8.5px;font-weight:700;fill:#fff;text-anchor:middle;pointer-events:none;paint-order:stroke;stroke:rgba(20,28,64,.55);stroke-width:2.2px}
#app .ymap .lb.out{fill:var(--faint);stroke:none;font-weight:400}
#app .ymap .case text{font:700 7px var(--latin);fill:#262A33;text-anchor:middle;pointer-events:none}
#app .ymap .case circle{fill:var(--sun);stroke:#262A33;stroke-width:1.4;pointer-events:none}
#app .ymap .case .halo{stroke:none;opacity:.45;transform-box:fill-box;transform-origin:center;animation:pulse 2.4s ease-out infinite}
@keyframes pulse{0%{transform:scale(.6);opacity:.6}100%{transform:scale(2);opacity:0}}
#app .mtip{position:absolute;pointer-events:none;background:var(--night);color:var(--on-night);padding:8px 12px;font-size:14px;line-height:1.5;white-space:nowrap;transform:translate(-50%,-120%);box-shadow:0 10px 24px -10px rgba(0,0,0,.5)}
#app .mtip b{display:block;color:var(--sun)}
#app .mstats{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px;margin:0 0 22px;padding-bottom:22px;border-bottom:1px solid var(--line)}
#app .mstats dt{font-weight:700;font-size:40px;line-height:1;color:var(--navy-ink)}
#app .mstats dd{margin:6px 0 0;font-size:14px;line-height:1.5;color:var(--muted)}
#app .mlegend{list-style:none;margin:0 0 20px;padding:0;display:grid;gap:8px;font-size:14px;line-height:1.5}
#app .mlegend li{display:flex;align-items:center;gap:10px}
#app .mlegend i{width:16px;height:12px;flex:none}
#app .mlegend i.field{background:var(--m-field)}
#app .mlegend i.cov{background:var(--m-cov)}
#app .mlegend i.out{background:var(--m-out);border:1px solid var(--line)}
#app .mlegend i.dot{width:12px;height:12px;border-radius:50%;background:var(--sun);border:1.5px solid #262A33}
#app .cases{list-style:none;margin:0;padding:0;display:grid;gap:10px;counter-reset:k}
#app .cases li{display:grid;grid-template-columns:28px 1fr;align-items:baseline;font-size:15px;line-height:1.5;counter-increment:k}
#app .cases li::before{content:counter(k);width:22px;height:22px;border-radius:50%;background:var(--sun);color:#262A33;font:700 12px/22px var(--latin);text-align:center}
#app .cases b{display:block}
#app .cases span{color:var(--muted);font-size:13px;grid-column:2}
@media (max-width:980px){#app .cb-in{grid-template-columns:1fr;gap:24px}
#app .mgrid{grid-template-columns:1fr}}
@media (max-width:640px){#app .hero.paper{padding:28px 0 36px}
#app .cbanner{padding:36px 0 24px}
#app .mapfig{padding:20px 16px}
#app .ymap .lb{font-size:10px}
#app .voice img,#app .voice .init{width:72px;height:72px}
#app .author{grid-template-columns:84px 1fr}
#app .author img{width:84px;height:84px}
#app .band-cap{font-size:16px}}
@media (prefers-reduced-motion:reduce){#app .ymap .case .halo{animation:none}}
#app .band{background:#963672;color:#fff}
#app .band blockquote::before,#app .band blockquote::after{color:#F4D25A}
#app .band .gloss{color:#F6DDEB}
#app .band cite{color:#EBC6DC}
#app .stg>*{opacity:0;translate:0 16px;transition:opacity .6s ease,translate .7s cubic-bezier(.16,1,.3,1)}
#app .stg.in>*{opacity:1;translate:0 0}
#app .path li::before{transform:scaleX(0);transform-origin:right;transition:transform .8s cubic-bezier(.16,1,.3,1) var(--d,0s)}
#app .path ol.in li::before{transform:scaleX(1)}
#app .mapfig .ymap path{transition:fill .5s ease var(--d,0s)}
#app .mapfig:not(.in) .ymap path.cov,#app .mapfig:not(.in) .ymap path.field{fill:var(--m-out)}
#app .ymap .case{opacity:0;transition:opacity .5s ease 1.6s}
#app .mapfig.in .ymap .case{opacity:1}
#app .ch-head .n,#app .ch-head h2,#app .ch-head .band-cap{transition:opacity .8s ease,translate .9s cubic-bezier(.16,1,.3,1)}
#app .ch-head:not(.in) h2{translate:0 18px}
#app .ch-head:not(.in) .band-cap{opacity:0}
#app .ch-head::after{transform:scaleX(0);transform-origin:right;transition:transform .9s cubic-bezier(.16,1,.3,1) .25s}
#app .ch-head.in::after{transform:scaleX(1)}
#app .doc{transition:transform 1s cubic-bezier(.16,1,.3,1)}
#app .fig:not(.in) .doc{transform:rotate(-4deg) translateY(20px)}
#app .doc .stamp{transition:opacity .3s ease .7s,scale .45s cubic-bezier(.3,1.6,.5,1) .7s}
#app .fig:not(.in) .doc .stamp{opacity:0;scale:1.8}
#app .band blockquote{transition:opacity 1s ease,letter-spacing 1.4s cubic-bezier(.16,1,.3,1)}
#app .band:not(.in) blockquote{opacity:0;letter-spacing:.06em}
@media (prefers-reduced-motion:reduce){#app .stage img,#app .stg>*{opacity:1!important;translate:none!important;scale:none!important;transition:none!important}
#app .path li::before,#app .ch-head::after{transform:none!important;transition:none!important}
#app .ymap .case{opacity:1;transition:none}
#app .mapfig .ymap path{transition:none}
#app .fig .doc,#app .fig .doc .stamp,#app .band blockquote{transform:none;opacity:1;scale:none;letter-spacing:0;transition:none}}
@media (max-width:980px) and (min-width:641px){#app .hero .art{max-width:600px;margin-inline:auto;width:100%}
#app .laws{grid-template-columns:repeat(3,1fr)}
#app .cb-in .stage{max-width:720px;margin-inline:auto}}
.js-motion #app .stage img{opacity:0}
#app .stage img.bob{animation:bob 5.5s ease-in-out infinite alternate}
#app .stage img.sway{transform-origin:50% 0}
@keyframes bob{from{translate:0 0}to{translate:0 -12px}}
#app .hero h1 .w{display:inline-block;clip-path:inset(0 0 0 0);}
.js-motion #app .hero h1 .w>span{display:inline-block;transform:translateY(105%);transition:transform 1s cubic-bezier(.16,1,.3,1) var(--d,0s)}
.js-motion #app .hero h1 .w{clip-path:inset(-10% -5% 0 -5%)}
.js-motion #app .hero.go h1 .w>span{transform:none}
.js-motion #app .hero .kicker,.js-motion #app .hero .dek,.js-motion #app .hero .byline{opacity:0;translate:0 16px;transition:opacity .9s ease var(--d,0s),translate 1s cubic-bezier(.16,1,.3,1) var(--d,0s)}
.js-motion #app .hero.go .kicker,.js-motion #app .hero.go .dek,.js-motion #app .hero.go .byline{opacity:1;translate:0 0}
.js-motion #app .story>p{opacity:0;translate:0 22px;transition:opacity .9s ease,translate 1s cubic-bezier(.16,1,.3,1)}
.js-motion #app .story>p.in{opacity:1;translate:0 0}
#app .story mark,#app .doc blockquote mark{background:linear-gradient(var(--mark),var(--mark)) right 62%/0% 42% no-repeat;transition:background-size 1.3s cubic-bezier(.65,0,.35,1) .35s}
#app .story p.in mark,#app .fig.in .doc blockquote mark{background-size:100% 42%}
#app .doc blockquote mark{--mark:rgba(244,210,90,.8)}
#app .band blockquote .bw{display:inline-block;opacity:0;translate:0 .5em;rotate:-3deg;transition:opacity .6s ease var(--d),translate .8s cubic-bezier(.2,1.4,.4,1) var(--d),rotate .8s cubic-bezier(.2,1.4,.4,1) var(--d)}
#app .band.in blockquote .bw{opacity:1;translate:0 0;rotate:0deg}
#app .band:not(.in) blockquote{opacity:1;letter-spacing:0}
.js-motion #app .waffle i{transition:background .35s ease,border-color .35s ease,scale .5s cubic-bezier(.3,1.6,.5,1);scale:.4}
.js-motion #app .in .waffle i{scale:1}
.js-motion #app .pq blockquote{clip-path:inset(0 0 0 100%);transition:clip-path 1.4s cubic-bezier(.65,0,.35,1)}
.js-motion #app .pq.in blockquote{clip-path:inset(0 0 0 0)}
#app .path ol{--p:0}
#app .path li::before{transform:scaleX(var(--lp,0));transition:none}
#app .path li::after{transition:background .4s ease,scale .5s cubic-bezier(.3,1.6,.5,1)}
#app .path li.hit::after{background:var(--navy);scale:1.25}
@media (prefers-reduced-motion:reduce){.js-motion #app .stage img{opacity:1}
#app .stage img.bob{animation:none}
.js-motion #app .hero h1 .w>span,.js-motion #app .hero .kicker,.js-motion #app .hero .dek,.js-motion #app .hero .byline,.js-motion #app .story>p,.js-motion #app .pq blockquote,#app .band blockquote .bw{transform:none;opacity:1;translate:none;clip-path:none;rotate:none;transition:none}
#app .story mark,#app .doc blockquote mark{background-size:100% 42%;transition:none}
#app .path li::before{transform:none}
.js-motion #app .waffle i{scale:1}}
#app .ico{display:block;width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;margin-bottom:14px;color:var(--faint)}
#app .keys .p .ico{color:var(--plum)}
#app .keys .t .ico{color:var(--teal-ink)}
#app .mstats .ico{width:28px;height:28px;margin-bottom:8px;color:var(--navy-ink)}
#app .survey .n .ico{color:var(--sun);width:40px;height:40px}
#app .dotsrow .ico{color:var(--plum);width:38px;height:38px}
.js-motion #app .ico path,.js-motion #app .ico circle{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.4s cubic-bezier(.65,0,.35,1) .2s}
.js-motion #app .in .ico path,.js-motion #app .in .ico circle,.js-motion #app .ico.in path,.js-motion #app .ico.in circle{stroke-dashoffset:0}
#app .docfig{margin:44px 0 52px}
#app .docpaper{position:relative;background:#fff;border:1px solid #E3DCC9;padding:38px 22px 20px;box-shadow:var(--shadow)}
#app .docpaper .lbl{position:absolute;top:12px;inset-inline-start:22px;font-size:13px;font-weight:700;color:var(--plum)}
#app .docpaper::after{content:"";position:absolute;inset:auto 0 0 0;height:28px;background:linear-gradient(transparent,#fff)}
#app .zoom{all:unset;display:block;cursor:zoom-in;width:100%}
#app .zoom:focus-visible{outline:2px solid var(--navy);outline-offset:4px}
#app .docfig figcaption,#app .deeds figcaption{font-size:13.5px;line-height:1.7;color:var(--faint);margin-top:12px}
#app .deeds figcaption b{display:block;color:var(--ink);font-size:15px;margin-bottom:2px}
#app .deedrow{display:grid;grid-template-columns:1fr 1fr;gap:22px;padding:10px 6px}
#app .deed img{width:100%;box-shadow:0 18px 30px -18px rgba(28,38,80,.55);border:6px solid #fff}
#app .deed.a{rotate:2.2deg}
#app .deed.b{rotate:-1.8deg;margin-top:24px}
.js-motion #app .deeds .deed{opacity:0;translate:0 40px;transition:opacity .8s ease,translate 1.1s cubic-bezier(.16,1,.3,1),rotate 1.1s cubic-bezier(.16,1,.3,1)}
.js-motion #app .deeds .deed.b{transition-delay:.18s}
.js-motion #app .deeds.in .deed{opacity:1;translate:0 0}
.js-motion #app .docfig .docpaper{clip-path:inset(0 0 100% 0);transition:clip-path 1.3s cubic-bezier(.65,0,.35,1)}
.js-motion #app .docfig.in .docpaper{clip-path:inset(0 0 0 0)}
#app .lbox{position:fixed;inset:0;z-index:60;background:rgba(12,16,34,.88);display:grid;place-items:center;padding:24px;cursor:zoom-out}
#app .lbox[hidden]{display:none}
#app .lbox img{max-width:min(1200px,96vw);max-height:90vh;width:auto;height:auto;background:#fff;box-shadow:0 30px 60px rgba(0,0,0,.5)}
#app .lbx{position:absolute;top:14px;inset-inline-end:18px;font:32px/1 var(--latin);color:#fff;background:none;border:0;cursor:pointer}
#app .cbanner .band-cap{max-width:20em}
#app #c9 .band-cap{font-size:22px;line-height:1.75;color:var(--ink);font-weight:700;border-inline-start:3px solid var(--teal);padding-inline-start:16px}
@media (max-width:640px){#app .deedrow{gap:12px}
#app .deed img{border-width:4px}
#app .docpaper{padding:34px 12px 14px}
#app #c9 .band-cap{font-size:18px}
#app .ico{width:28px;height:28px;margin-bottom:10px}}
@media (prefers-reduced-motion:reduce){.js-motion #app .ico path,.js-motion #app .ico circle{stroke-dashoffset:0}
.js-motion #app .deeds .deed{opacity:1;translate:none}
.js-motion #app .docfig .docpaper{clip-path:none}}
#app,#app .hero,#app .cbanner,#app .chapter{overflow-x:clip}
:root{--faint:#6B6F78}
#app .art figcaption,#app .photo figcaption,#app .docfig figcaption,#app .deeds figcaption,#app .src,#app .law-src{font-size:14px}
#app .bar span small{display:block;font-size:12.5px;color:var(--muted);font-weight:400;line-height:1.4}
#app .bar{grid-template-columns:190px 1fr 64px}
#app .est{display:inline-block;background:var(--plum);color:#fff;font-size:12px;line-height:1;padding:5px 8px;margin-inline-end:6px;vertical-align:middle}
#app .tldr{background:var(--surface);border:1px solid var(--line);border-top:4px solid var(--navy-ink);padding:20px 24px 14px;margin:0 0 34px}
#app .tldr .lbl{font-size:14px;font-weight:700;color:var(--navy-ink)}
#app .tldr ul{margin:10px 0 0;padding:0;list-style:none;display:grid;gap:10px}
#app .tldr li{position:relative;padding-inline-start:20px;font-size:16.5px;line-height:1.85}
#app .tldr li::before{content:"";position:absolute;inset-inline-start:0;top:.75em;width:8px;height:8px;background:var(--plum)}
#app .closing{margin-top:56px;display:grid;gap:22px}
#app .tip{background:var(--night);color:var(--on-night);padding:24px 26px}
#app .tip b{display:block;font-size:20px;color:var(--sun);margin-bottom:6px}
#app .tip p{margin:0;font-size:16px;line-height:1.85;color:#E6E3DA}
#app .share{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:15px}
#app .share span{font-weight:700;margin-inline-end:6px}
#app .sh{font:inherit;font-size:14px;border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:7px 14px;border-radius:999px;text-decoration:none;cursor:pointer}
#app .sh:hover{border-color:var(--ink)}
#app .corr{font-size:14px;line-height:1.8;color:var(--muted);margin:0;border-top:1px solid var(--line);padding-top:14px}
#app .en-link{font-family:var(--latin);font-weight:700;color:var(--navy-ink)}
@media (max-width:640px){#app .bar{grid-template-columns:110px 1fr 54px}
#app .tldr{padding:16px 16px 10px}}
/*WD-MAP*/
/*WD-JS*/(()=>{
const $=(s,r=document)=>r.querySelector(s), $$=(s,r=document)=>[...r.querySelectorAll(s)];
const reduce=matchMedia('(prefers-reduced-motion: reduce)').matches;
/* reveal + figure animations */
const io=new IntersectionObserver(es=>es.forEach(e=>{if(e.isIntersecting){e.target.classList.add('in');io.unobserve(e.target)}}),{rootMargin:'0px 0px -12% 0px'});
$$('.rv,.photo').forEach(el=>reduce?el.classList.add('in'):io.observe(el));
$$('.waffle i').forEach((el,i)=>el.style.transitionDelay=(reduce?0:i*70)+'ms');
$$('.dots i.on').forEach((el,i)=>el.style.transitionDelay=(reduce?0:400+i*250)+'ms');
/* sticky bar, progress, current chapter */
const bar=$('.wd-bar'), hero=$('.hero'), prog=$('.prog i'), title=$('.wd-bar .t span'), chs=$$('.chapter'), links=$$('.toc a');
let ticking=false;
function onScroll(){
ticking=false;
const y=scrollY, h=document.documentElement.scrollHeight-innerHeight;
prog.style.transform=`scaleX(${Math.min(1,Math.max(0,y/h))})`;
bar.classList.toggle('on',y>hero.offsetTop+hero.offsetHeight-80);
let cur=null;for(const c of chs){if(c.getBoundingClientRect().topa.classList.toggle('cur',cur&&a.hash==='#'+cur.id));
}
addEventListener('scroll',()=>{if(!ticking){ticking=true;requestAnimationFrame(onScroll)}},{passive:true});
onScroll();
/* table of contents */
const tb=$('.wd-bar button'), toc=$('.toc');
tb.addEventListener('click',e=>{e.stopPropagation();const o=toc.classList.toggle('open');tb.setAttribute('aria-expanded',o)});
links.forEach(a=>a.addEventListener('click',()=>{toc.classList.remove('open');tb.setAttribute('aria-expanded',false)}));
/* popovers: footnotes + glossary */
const pop=$('.pop');let owner=null;
function show(btn,html){
if(owner===btn){hide();return}
owner=btn;pop.innerHTML=html;pop.classList.add('on');
const r=btn.getBoundingClientRect(), w=Math.min(340,innerWidth-32);
pop.style.maxWidth=w+'px';
let x=r.left+r.width/2-w/2+scrollX; x=Math.max(16+scrollX,Math.min(x,scrollX+innerWidth-w-16));
pop.style.left=x+'px'; pop.style.top=(r.bottom+scrollY+10)+'px';
btn.setAttribute('aria-expanded','true');
}
function hide(){if(owner)owner.setAttribute('aria-expanded','false');owner=null;pop.classList.remove('on')}
$$('sup.fn button').forEach(b=>b.addEventListener('click',e=>{e.stopPropagation();
const li=$('#ref-'+b.dataset.n);show(b,`المرجع ${b.dataset.n}${li.innerHTML}
كل المراجع ↓`)}));
$$('.term').forEach(b=>b.addEventListener('click',e=>{e.stopPropagation();
const d=$('#g-'+b.dataset.g);show(b,`${d.querySelector('dt').textContent}${d.querySelector('dd').textContent}
مسرد المصطلحات ↓`)}));
pop.addEventListener('click',e=>{const a=e.target.closest('a');if(a){const t=$(a.hash);hide();t&&(t.classList.add('flash'),setTimeout(()=>t.classList.remove('flash'),2200))}else e.stopPropagation()});
document.addEventListener('click',()=>{hide();toc.classList.remove('open')});
document.addEventListener('keydown',e=>{if(e.key==='Escape'){hide();toc.classList.remove('open')}});
addEventListener('resize',hide);
})();
(()=>{
const reduce=matchMedia('(prefers-reduced-motion: reduce)').matches;
const $=(s,r=document)=>r.querySelector(s), $$=(s,r=document)=>[...r.querySelectorAll(s)];
const clamp=(v,a=0,b=1)=>Math.max(a,Math.min(b,v));
const ease=t=>1-Math.pow(1-t,3);
/* ── map tooltip ── */
const tip=$('.mtip'),wrap=$('.mwrap');
if(tip){
let sel=null;
const show=p=>{const r=wrap.getBoundingClientRect(),b=p.getBoundingClientRect();
tip.innerHTML=`${p.dataset.name}${p.dataset.st}`;tip.hidden=false;
tip.style.left=(b.left+b.width/2-r.left)+'px';tip.style.top=(b.top+b.height/2-r.top)+'px'};
$$('.ymap path').forEach(p=>{
p.addEventListener('mouseenter',()=>show(p));p.addEventListener('focus',()=>show(p));
p.addEventListener('mouseleave',()=>{if(sel!==p)tip.hidden=true});p.addEventListener('blur',()=>{tip.hidden=true});
p.addEventListener('click',e=>{e.stopPropagation();if(sel)sel.classList.remove('sel');sel=p;p.classList.add('sel');show(p)});
});
document.addEventListener('click',()=>{if(sel){sel.classList.remove('sel');sel=null}tip.hidden=true});
}
/* ── split words for the big quote ── */
$$('.band blockquote').forEach(q=>{const w=q.textContent.trim().split(/\s+/);q.innerHTML=w.map((x,i)=>`${x}`).join(' ')});
/* ── stagger groups ── */
['.laws','.gl .grid','.flow .or','.cases','.mlegend','.survey ul','.mstats','.keys','.legend','.method ul','.refs ol'].forEach(sel=>$$(sel).forEach(g=>{
g.classList.add('stg');[...g.children].forEach((c,i)=>c.style.transitionDelay=(i*110)+'ms')}));
$$('.mapfig .ymap path').forEach((p,i)=>p.style.setProperty('--d',(i*0.06)+'s'));
$$('.waffle i').forEach((el,i)=>el.style.transitionDelay=(i*110)+'ms');
/* ── count-up ── */
const counters=$$('.keys b,.mstats dt,.big,.survey .n,.legend b').map(el=>{
const tn=[...el.childNodes].find(n=>n.nodeType===3&&/\d/.test(n.textContent));if(!tn)return null;
const v=parseInt(tn.textContent,10);if(!(v>1&&v<1000))return null;if(!reduce)tn.textContent='0';return {el,tn,v,done:false};
}).filter(Boolean);
function count(c){if(c.done)return;c.done=true;if(reduce){c.tn.textContent=c.v;return}
const t0=performance.now(),D=1800;const step=t=>{const k=clamp((t-t0)/D);c.tn.textContent=Math.round(c.v*ease(k));if(k<1)requestAnimationFrame(step)};requestAnimationFrame(step)}
/* ── reveal on view (IO + sweep fallback) ── */
const targets=[...$$('.rv'),...$$('.photo'),...$$('.fig'),...$$('.stg'),...$$('.ch-head'),...$$('.mapfig'),...$$('.band'),...$$('.story>p'),...$$('.pq')];
function reveal(t){if(t.classList.contains('in'))return;t.classList.add('in');counters.filter(c=>t.contains(c.el)).forEach(count)}
if(reduce){targets.forEach(reveal)}else{
const io=new IntersectionObserver(es=>es.forEach(e=>{if(e.isIntersecting){reveal(e.target);io.unobserve(e.target)}}),{rootMargin:'0px 0px -12% 0px'});
targets.forEach(t=>io.observe(t));
}
let pend=targets.slice();
function sweep(){const lim=innerHeight*.88;pend=pend.filter(t=>{if(t.classList.contains('in'))return false;if(t.getBoundingClientRect().top{
const imgs=$$('img',st);
return {st,hero:st.classList.contains('hero-stage'),t0:null,pieces:imgs.map((im,i)=>{
const L=parseFloat(im.style.left)/100,T=parseFloat(im.style.top)/100,W=parseFloat(im.style.width)/100;
const ar=(im.getAttribute('height')/im.getAttribute('width'))||1;
return {im,i,L,T,W,ar,r:parseFloat(im.style.getPropertyValue('--r'))||0,sp:+im.dataset.speed||0,
spin:(i%2?1:-1)*(12+(i*7)%16),bob:(+im.dataset.speed>=.45)};
})};
});
function stageProgress(s,rect,vh,now){
if(s.hero){if(s.t0===null)return 0;return clamp((now-s.t0)/1700,0,1)*1.6}
return clamp((vh*.98-rect.top)/(vh*.62),0,1)*1.6;
}
function render(now){
const vh=innerHeight;let busy=false;
for(const s of stages){
const rect=s.st.getBoundingClientRect();
if(rect.bottom<-300||rect.top>vh+300)continue;
const P=reduce?2:stageProgress(s,rect,vh,now);
const sw=rect.width,sh=rect.height,n=s.pieces.length;
for(const p of s.pieces){
const cx=p.L+p.W/2, cy=p.T+(p.W*sw*p.ar/sh)/2;
const dx=(cx-.5)*sw*.7, dy=(cy-.5)*sh*.7+(s.hero?40:90);
const local=clamp((P-(p.i/n)*.6)/1);const e=ease(local);
let py=0;
if(!reduce){const c=rect.top+sh/2-vh/2;py=clamp(-c*p.sp*.22,-80,80);
if(s.hero&&rect.top<0)py+= -rect.top*p.sp*.35;}
const k=1-e;
p.im.style.transform=`translate3d(${(dx*k).toFixed(1)}px,${(dy*k+py).toFixed(1)}px,0) rotate(${(p.r+p.spin*k).toFixed(2)}deg) scale(${(.78+.22*e).toFixed(3)})`;
p.im.style.opacity=clamp(e*1.5).toFixed(3);
if(p.bob&&e>=1&&!p.im.classList.contains('bob'))p.im.classList.add('bob');
if(local<1&&s.hero)busy=true;
}
}
/* court-path line drawn by scroll */
for(const ol of $$('.path ol')){
const r=ol.getBoundingClientRect();if(r.bottom<-200||r.top>vh+200)continue;
const lis=[...ol.children],n=lis.length;
const pr=reduce?1:clamp((vh*.86-r.top)/(r.height+vh*.25));
lis.forEach((li,i)=>{const lp=clamp(pr*n-i);li.style.setProperty('--lp',lp.toFixed(3));li.classList.toggle('hit',lp>.05)});
}
sweep();
return busy;
}
let ticking=false;
function frame(now){ticking=false;const busy=render(now);if(busy)kick()}
function kick(){if(!ticking){ticking=true;requestAnimationFrame(frame)}}
addEventListener('scroll',kick,{passive:true});addEventListener('resize',kick);
/* ── hero entrance ── */
const hero=$('.hero');
function start(){
const hs=stages.find(s=>s.hero);if(hs)hs.t0=performance.now()+250;
hero&&hero.classList.add('go');kick();
}
if(hero){
const h1=$('h1',hero);
if(h1&&!reduce){let k=0;const walk=node=>{[...node.childNodes].forEach(ch=>{
if(ch.nodeType===3&&ch.textContent.trim()){const f=document.createDocumentFragment();
ch.textContent.split(/(\s+)/).forEach(w=>{if(!w.trim()){f.append(w);return}const o=document.createElement('span');o.className='w';const i=document.createElement('span');i.textContent=w;i.style.setProperty('--d',(.15+k++*.12)+'s');o.append(i);f.append(o)});
ch.replaceWith(f)}else if(ch.nodeType===1)walk(ch)})};walk(h1)}
[['.kicker',.05],['.dek',.75],['.byline',.95]].forEach(([s,d])=>{const e=$(s,hero);e&&e.style.setProperty('--d',d+'s')});
}
if(document.readyState==='complete')requestAnimationFrame(start);else addEventListener('load',()=>requestAnimationFrame(start));
render(performance.now());
})();
(()=>{
const lb=document.querySelector('.lbox');if(!lb)return;const im=lb.querySelector('img');let last=null;
document.querySelectorAll('.zoom').forEach(b=>b.addEventListener('click',e=>{e.stopPropagation();const s=b.querySelector('img');im.src=s.src;im.alt=s.alt;lb.hidden=false;last=b;lb.querySelector('.lbx').focus()}));
const close=()=>{lb.hidden=true;last&&last.focus()};
lb.addEventListener('click',close);addEventListener('keydown',e=>{if(e.key==='Escape'&&!lb.hidden)close()});
})();
(()=>{
const u=encodeURIComponent(location.href.split('#')[0]),t=encodeURIComponent(document.title);
const L={x:`https://twitter.com/intent/tweet?url=${u}&text=${t}`,fb:`https://www.facebook.com/sharer/sharer.php?u=${u}`,wa:`https://wa.me/?text=${t}%20${u}`};
document.querySelectorAll('.sh[data-net]').forEach(a=>a.href=L[a.dataset.net]);
const c=document.querySelector('.sh.copy');if(c)c.addEventListener('click',async()=>{const o=c.textContent;try{await navigator.clipboard.writeText(location.href.split('#')[0]);c.textContent=document.documentElement.lang==='en'?'Copied':'تم النسخ'}catch(e){c.textContent=document.documentElement.lang==='en'?'Copy failed':'تعذّر النسخ'}setTimeout(()=>c.textContent=o,2000)});
})();