:root{color-scheme:dark;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#151619;color:#ddd4ca}*{box-sizing:border-box}body{margin:0;overflow:hidden}main,canvas{display:block;width:100%;height:100svh;height:100dvh}nav{position:fixed;bottom:max(20px,env(safe-area-inset-bottom));right:max(20px,env(safe-area-inset-right));display:flex;gap:8px}button{min-height:44px;min-width:64px;border:1px solid #88807855;border-radius:2px;padding:10px 14px;background:#151619aa;color:#ddd4ca;font:inherit;font-size:11px;letter-spacing:.08em;cursor:pointer}button:hover,button[aria-pressed=true]{border-color:#d8c7b4}button:focus-visible{outline:2px solid #ffe2b8;outline-offset:4px}#fallback{position:absolute;inset:40% 10%;text-align:center;line-height:1.8;font-size:13px}

.edition{position:fixed;bottom:max(26px,env(safe-area-inset-bottom));left:max(28px,env(safe-area-inset-left));margin:0;color:#bbb1a27d;letter-spacing:.13em;font-size:9px;pointer-events:none}.edition span{padding:0 5px}nav a{display:flex;align-items:center;min-height:44px;padding:8px;color:#c7bba58a;text-decoration:none;letter-spacing:.04em;font-size:10px}nav a:hover{color:#e8d4b8}nav a:focus-visible{outline:2px solid #ffe2b8;outline-offset:2px}button{border-color:#b9a78c2b;background:#171a1d66;color:#cabdab;font-size:10px}nav{gap:4px;bottom:max(14px,env(safe-area-inset-bottom));right:max(18px,env(safe-area-inset-right))}@media(max-width:600px){.edition{left:18px;bottom:77px;font-size:8px}nav{left:10px;right:10px;justify-content:flex-end}}
[hidden]{display:none!important}#sculpture-still,#sculpture-still img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}#fallback.sculpture-note{position:fixed;inset:auto 22px 68px auto;max-width:370px;text-align:right;font-size:9px;line-height:1.6;color:#b8b7ba96;z-index:2}.edition{z-index:2}nav{z-index:3}@media(max-width:600px){#fallback.sculpture-note{inset:20px 18px auto;max-width:none;text-align:left;font-size:8px}}

/* Study 06 only: world-projected ash beneath a camera-fixed poetry print. */
main:has(.poem-overlay){position:relative;isolation:isolate}
.poem-overlay{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.poem-overlay .poem-ground{position:absolute;inset:0;width:100%;height:100%}
.poem-poster{position:absolute;top:max(26px,env(safe-area-inset-top));right:max(28px,env(safe-area-inset-right));width:260px;max-width:calc(100% - 32px);max-height:calc(100% - 138px);display:flex;flex-direction:column;overflow:hidden;margin:0;padding:20px 20px 15px;border:1px solid #b9a78c2b;border-radius:1px;background:#151619de;color:#ddd4ca;pointer-events:auto;box-shadow:0 8px 28px #15161933;scroll-padding:16px}
.poem-poster h1{flex:none;margin:0;font:400 13px/1.3 Georgia,'Times New Roman',serif;letter-spacing:.19em;text-transform:uppercase}
.poem-byline{flex:none;margin:7px 0 21px;font:8px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.09em;color:#bbb1a2}
.poem-description{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.poem-verses{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b9a78c55 transparent;font:400 12px/1.7 Georgia,'Times New Roman',serif;letter-spacing:0}
.poem-stanza{margin:0 0 13px}
.poem-stanza:last-child{margin-bottom:0}
.poem-line{display:block;min-height:1.7em}
.poem-word{opacity:0}
.poem-verses:focus-visible{outline:1px solid #b9a78c;outline-offset:-1px}
.poem-footer{flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:14px;padding-top:0;border-top:1px solid #b9a78c2b;font:8px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.03em;color:#bbb1a2}
.poem-count{font-variant-numeric:tabular-nums;white-space:nowrap}
.poem-footer a{display:flex;align-items:center;min-height:44px;font-size:9px;color:#c7bba5;text-decoration:none;text-underline-offset:3px}
.poem-footer a:hover{text-decoration:underline;color:#e8d4b8}
.poem-footer a:focus-visible{outline:2px solid #ffe2b8;outline-offset:4px}
@media(max-width:600px){.poem-poster{top:max(16px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));width:220px;padding:17px 16px 6px;max-height:min(44dvh,calc(100% - 153px))}.poem-byline{margin-bottom:17px}.poem-verses{font-size:12px;line-height:1.65}.poem-line{min-height:1.65em}.poem-stanza{margin-bottom:12px}.poem-footer{margin-top:12px}main:has(.poem-overlay) #fallback.sculpture-note{inset:auto 18px 108px;max-width:none;text-align:left}}
@media(min-width:601px) and (max-height:600px){.poem-poster{top:14px;max-height:calc(100% - 123px);padding-top:15px}.poem-byline{margin-bottom:14px}.poem-stanza{margin-bottom:11px}}

/* Invictus: a quiet margin beside a continuous passage of fire. */
@font-face{font-family:'Cormorant Garamond';src:url('./assets/fonts/CormorantGaramond.ttf') format('truetype');font-weight:300 700;font-display:swap}
@font-face{font-family:'Space Grotesk';src:url('./assets/fonts/SpaceGrotesk.woff2') format('woff2');font-weight:300 700;font-display:swap}
:root{font-family:'Space Grotesk',Arial,sans-serif;background:#080b12}
button,nav a,.edition,.poem-byline,.poem-footer{font-family:'Space Grotesk',Arial,sans-serif}
.poem-poster{top:clamp(28px,5vh,64px);left:clamp(24px,4vw,64px);right:auto;width:340px;max-height:calc(100% - 170px);padding:0 24px 0 0;border:0;border-radius:0;background:linear-gradient(90deg,#090c13e8,#090c1399 85%,transparent);box-shadow:none}
.poem-poster h1{font:500 clamp(36px,3.5vw,54px)/1 'Cormorant Garamond',Georgia,serif;text-transform:none;letter-spacing:-.025em}
.poem-byline{font-size:9px;letter-spacing:.1em;margin:12px 0 28px;color:#a19b91}
.poem-verses{font:500 19px/1.35 'Cormorant Garamond',Georgia,serif;color:#e4d9c8}
.poem-stanza{margin-bottom:21px}.poem-line{min-height:1.35em}
.poem-footer{margin-top:20px;font-size:9px;border-color:#b9a78c26}
.poem-footer a{font-size:9px;color:#aba599}
.edition{left:clamp(24px,4vw,64px);bottom:30px;font-size:9px;letter-spacing:.15em;color:#aaa294}
nav{display:block;left:auto;right:clamp(24px,4vw,64px);bottom:max(24px,env(safe-area-inset-bottom));width:min(580px,calc(100vw - 430px));padding:12px 16px;background:#0b0e15b3;border-top:1px solid #b9a78c30;backdrop-filter:blur(12px)}
.transport{display:flex;gap:4px;align-items:center}.transport button{border:0;background:transparent;min-width:0;min-height:44px;padding:8px 10px;font-size:10px;letter-spacing:.06em;color:#c5beb2}.transport button:hover{background:#e2c99c0d;color:#ffe2b8}.transport #pause{color:#f2dfc4;min-width:62px}.transport #replay{margin-right:auto}.transport #sound{color:#a79f92}
#compare,#stage{display:none}
.timeline-label{display:flex;gap:12px;align-items:center;font-size:8px;letter-spacing:.13em;text-transform:uppercase;color:#aaa294}.timeline-label output{margin-left:auto;font-variant-numeric:tabular-nums;color:#dfc7a4}.timeline-label span{font-variant-numeric:tabular-nums}
#timeline{display:block;width:100%;height:28px;margin:0;accent-color:#d8ac73;cursor:ew-resize;background:transparent}#timeline:focus-visible{outline:1px solid #ffe2b8;outline-offset:2px}.timeline-chapters{display:flex;justify-content:space-between;font-size:8px;letter-spacing:.12em;color:#857d71;text-transform:uppercase}
@media(min-width:601px) and (max-height:760px){.poem-poster{top:26px;width:300px;max-height:calc(100% - 90px)}.poem-poster h1{font-size:38px}.poem-byline{margin-bottom:20px}.poem-verses{font-size:16px}.poem-stanza{margin-bottom:16px}.poem-footer{margin-top:12px}}
@media(max-width:900px){nav{width:calc(100vw - 370px);right:24px;padding:8px}.transport button{padding:8px 6px;font-size:9px}#quality,#angle{display:none}}
@media(max-width:600px){.poem-poster{top:max(24px,env(safe-area-inset-top));left:24px;right:auto;width:calc(100% - 48px);max-height:42dvh;padding:0 16px 0 0;background:linear-gradient(90deg,#090c13d9,transparent)}.poem-poster h1{font-size:38px}.poem-byline{margin:8px 0 16px;font-size:8px}.poem-verses{font-size:17px;line-height:1.35}.poem-line{min-height:1.35em}.poem-stanza{margin-bottom:14px}.poem-footer{margin-top:12px}.edition{left:24px;bottom:150px;font-size:8px}nav{left:16px;right:16px;width:auto;bottom:max(16px,env(safe-area-inset-bottom));padding:8px 12px}.transport button{padding:8px 10px;font-size:10px}.timeline-label{font-size:8px}.timeline-chapters{font-size:7px}}

/* Composition: three non-overlapping regions, including a real canvas viewport. */
.art-stage{position:relative;min-width:0;width:100%;height:100%;overflow:hidden}
body:has(.poem-overlay){height:max(100dvh,540px);min-height:540px;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:20px;padding:32px clamp(24px,3vw,48px) 20px;overflow-y:auto;background:#090c13}
body:has(.poem-overlay) main{display:grid;grid-template-columns:clamp(280px,27vw,340px) minmax(0,1fr);gap:clamp(24px,4vw,64px);width:100%;height:auto;min-height:0;isolation:auto}
.poem-overlay{display:contents}
.art-stage #art,.art-stage .poem-ground{width:100%;height:100%}
.art-stage .poem-ground{position:absolute;inset:0;z-index:1;pointer-events:none}
.poem-poster{position:static;grid-column:1;grid-row:1;align-self:stretch;min-height:0;width:100%;max-width:none;max-height:none;padding:8px 0 0;border:0;background:transparent;box-shadow:none}
.poem-poster h1{font-size:48px}.poem-byline{margin:12px 0 26px}.poem-verses{font-size:18px;line-height:1.4}.poem-line{min-height:1.4em}.poem-stanza{margin-bottom:20px}.poem-footer{margin-top:auto;padding-top:12px;border-top:0;gap:10px;flex-wrap:wrap}.poem-footer a{min-height:32px}
.art-stage{grid-column:2;grid-row:1;height:auto;min-height:0;align-self:stretch;border-radius:2px}
body:has(.poem-overlay) nav{position:static;display:grid;grid-template-columns:minmax(280px,340px) minmax(0,1fr);align-items:center;gap:clamp(24px,4vw,64px);width:100%;padding:16px 0 0;border-top:1px solid #b9a78c26;background:transparent;backdrop-filter:none;z-index:auto}
.transport{justify-content:flex-start;gap:4px;flex-wrap:wrap}.transport #replay{margin-right:0}.transport button{padding:8px;min-width:44px}.timeline-label{font-size:9px}.timeline-chapters{font-size:8px}#timeline{height:32px}.edition{display:none}
body:has(.poem-overlay) #fallback.sculpture-note{position:absolute;inset:auto 16px 16px;max-width:none;text-align:center;background:#090c13cc}
#sculpture-still img{object-fit:contain}
@media(max-width:1000px){body:has(.poem-overlay){padding:24px;gap:16px}body:has(.poem-overlay) main,body:has(.poem-overlay) nav{grid-template-columns:260px minmax(0,1fr);gap:24px}.poem-poster h1{font-size:40px}.poem-verses{font-size:16px}.poem-byline{margin-bottom:20px}.poem-stanza{margin-bottom:16px}}
@media(max-width:700px){body:has(.poem-overlay){height:max(100dvh,720px);min-height:720px;padding:20px 20px 16px;gap:16px}body:has(.poem-overlay) main{grid-template-columns:minmax(0,1fr);grid-template-rows:220px minmax(0,1fr);gap:16px}.poem-poster{grid-column:1;grid-row:1;padding:0}.poem-poster h1{font-size:34px}.poem-byline{margin:6px 0 12px;font-size:8px}.poem-verses{font-size:17px;line-height:1.35}.poem-line{min-height:1.35em}.poem-footer{margin-top:8px;padding-top:0;font-size:8px}.poem-footer a{font-size:8px;min-height:24px}.art-stage{grid-column:1;grid-row:2}body:has(.poem-overlay) nav{grid-template-columns:minmax(0,1fr);gap:6px;padding-top:8px}.transport{justify-content:space-between}.transport button{padding:6px 8px;font-size:10px}.timeline-label{font-size:8px}#timeline{height:28px}.timeline-chapters{font-size:7px}}
@media(min-width:701px) and (max-height:700px){.poem-poster h1{font-size:36px}.poem-byline{margin:8px 0 18px}.poem-verses{font-size:16px}.poem-stanza{margin-bottom:14px}.poem-footer{padding-top:8px}}
