:root{--paper:#fcfbf8;--ink:#203039;--muted:#586973;--accent:#745c16;--line:#d9dfdf;--panel:#eef2f2;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Segoe UI',Arial,sans-serif;font-size:clamp(18px,1.65vw,27px);line-height:1.43}body.dark{--paper:#151d23;--ink:#e5edf1;--muted:#aebec6;--accent:#dccb8a;--line:#45535d;--panel:#25313b;color-scheme:dark}a{color:var(--accent)}header{height:66px;display:flex;align-items:center;gap:12px;padding:10px 3vw;border-bottom:1px solid var(--line);font-size:14px}header span{flex:1}header a{text-decoration:none;font-weight:700}button,select{font:inherit;font-size:15px;padding:8px 12px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:4px;cursor:pointer}button:hover{border-color:var(--accent)}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #2587bf}main{max-width:1600px;margin:auto;padding:0 3vw 70px}.slide{display:none;padding:20px 0 14px;min-height:calc(100vh - 130px)}.slide.active{display:block}.eyebrow{font-size:13px;letter-spacing:.12em;color:var(--accent)}h1{font-size:clamp(28px,2.7vw,44px);line-height:1.15;margin:15px 0 23px}h2{font-size:1.15em}p{margin:.65em 0}.columns{display:grid;grid-template-columns:1fr 1.08fr;gap:36px;align-items:start}.columns>div{min-width:0}aside{border-left:4px solid #008577;background:var(--panel);padding:12px 17px;font-size:.83em;margin:18px 0}.equation{margin:16px 0;background:var(--panel);padding:10px;overflow-x:auto;font-size:.93em}.katex-display{margin:.4em 0}.demo{font-size:16px;min-width:0}.controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin-bottom:9px}.controls label{display:flex;flex-direction:column;font-size:14px;gap:3px;min-width:95px}.controls input[type=range]{width:125px;accent-color:var(--accent)}canvas{display:block;width:100%;height:auto;background:#f4f6f4;border:1px solid var(--line);border-radius:3px}canvas.render{image-rendering:pixelated;max-height:380px;object-fit:contain;background:#111}output.status,.caption{display:block;font-size:13px;color:var(--muted);margin-top:7px}.smallcanvas{max-height:280px;object-fit:contain}.demo .pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}.sources{font-size:.74em;line-height:1.7;padding-left:22px}footer{position:fixed;bottom:0;background:var(--paper);border-top:1px solid var(--line);width:100%;height:58px;display:flex;justify-content:center;align-items:center;gap:25px;font-size:14px;z-index:5}dialog{background:var(--paper);color:var(--ink);border:1px solid var(--line);max-height:85vh;width:min(800px,90vw);font-size:17px}dialog ol{line-height:1.8}.reading .slide{display:block;min-height:0;border-bottom:1px solid var(--line);padding-bottom:50px}.quiz button{display:block;margin:10px 0}.demo strong{color:var(--accent)}@media(max-width:900px){.columns{grid-template-columns:1fr;gap:15px}header span{display:none}header{height:auto;flex-wrap:wrap}.slide{min-height:0}h1{margin:15px 0}main{padding-bottom:75px}.demo canvas{max-height:350px;object-fit:contain}}@media(min-width:901px) and (max-height:780px){body{font-size:21px}h1{font-size:34px;margin:10px 0 17px}.slide{padding-top:14px}.controls{gap:6px 12px}.controls label{font-size:12px}.demo canvas{max-height:290px;object-fit:contain}.demo .pair canvas{max-height:245px}aside{margin:12px 0;padding:10px 14px}.equation{font-size:.87em;margin:12px 0}header{height:56px}p{margin:.55em 0}}@media print{header,footer,.controls{display:none}.slide{display:block;break-after:page;min-height:0}main{padding:0}.columns{grid-template-columns:1fr 1fr}body{font-size:16px}h1{font-size:28px}.demo canvas{max-height:250px}}
.integrator-roles{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;background:var(--panel);padding:12px 18px;margin-bottom:12px;font-size:.84em}.integrator-roles h2{margin:0;font-size:1.05em}.integrator-example{font-size:.8em}.integrator-example summary{cursor:pointer;color:var(--accent)}@media(max-width:900px){.integrator-roles{grid-template-columns:1fr}}
.controls [hidden]{display:none!important}
.texture-question{padding-top:80px;font-size:1.4em}.texture-reveal{display:grid;grid-template-columns:repeat(6,1fr);grid-template-rows:repeat(2,minmax(0,1fr));height:calc(100vh - 255px);max-height:480px;gap:14px}.texture-reveal figure{margin:0;min-height:0;grid-column:span 2;display:flex;justify-content:center}.texture-reveal.five figure:nth-child(4){grid-column:2/span 2}.texture-reveal.five figure:nth-child(5){grid-column:4/span 2}.texture-reveal img{height:100%;max-width:100%;object-fit:contain}.texture-materials{display:flex;align-items:center;gap:40px}.texture-materials>a{flex:0 0 46%;text-align:center}.texture-materials img{height:calc(100vh - 315px);max-height:410px;max-width:100%;object-fit:contain}.texture-materials>p{flex:1}.texture-definition{font-size:.88em}.texture-definition ul{margin-top:0}.texture-definition li{margin-bottom:14px}.texture-definition aside{margin-top:0}.texture-definition h2{font-size:1.1em}.texture-homogeneity{text-align:center}.texture-homogeneity img{max-width:100%;height:calc(100vh - 280px);object-fit:contain}.slide:has(.texture-homogeneity)>h1{font-size:clamp(26px,3vw,40px)}@media(max-width:700px){.texture-materials{flex-direction:column;gap:12px}.texture-materials img{height:260px}.texture-reveal{height:390px;gap:6px}.texture-definition{font-size:1em}.texture-homogeneity img{height:auto;width:100%}}@media print{.texture-reveal{height:400px}.texture-materials img{height:350px}.texture-homogeneity img{height:400px}}
.fresnel-stages:has(.fresnel-approx[open]) .fresnel-exact{display:none}.fresnel-approx summary{cursor:pointer;color:var(--accent);font-weight:600;margin:12px 0}.fresnel-approx .to-exact{display:none}.fresnel-approx[open] .to-approx{display:none}.fresnel-approx[open] .to-exact{display:inline}.fresnel-source{font-size:12px}.fresnel-exact .columns p{font-size:.8em}
.surface-showcase{margin:0;text-align:center}.surface-crop{height:min(510px,calc(100vh - 230px));aspect-ratio:1.075;margin:0 auto;background-image:url('data/taxonomy/btf-original-two-surfaces.png');background-repeat:no-repeat;background-size:210.8% 100%;max-width:100%}.surface-lego{background-position:left center}.surface-marble{background-position:right center}.surface-showcase figcaption{font-size:12px;margin-top:10px;color:var(--muted)}@media(max-width:600px){.surface-crop{height:auto;width:100%}}@media print{.surface-crop{height:450px}}
.slide:has(.original-page)>h1{display:none}.original-page{margin:8px 0 0;text-align:center}.original-page img{display:block;margin:auto;max-width:100%;height:calc(100vh - 175px);object-fit:contain}.buddha-showcase{margin:0;text-align:center}.buddha-showcase img{height:calc(100vh - 245px);max-width:100%;object-fit:contain}.buddha-showcase figcaption{font-size:12px;margin-top:7px}.synthesis-gallery{display:grid;grid-template-columns:1fr 1fr;gap:15px;height:calc(100vh - 240px)}.synthesis-gallery a{min-height:0}.synthesis-gallery img{width:100%;height:100%;object-fit:contain}.dbtf-originals{display:flex;gap:8px;align-items:center}.dbtf-originals img{width:calc((100% - 16px)/3);object-fit:contain}@media(max-width:700px){.original-page img{height:auto;width:100%}.synthesis-gallery{height:auto}.synthesis-gallery img{height:180px}}
