/* Abu Dhabi International Building Codes · v5.4 · 2 Dec 2026 · Tony: "Yes, build" (stills-5) and "check alignment". One piece a screen on black.
   One rule for every screen, the same as Al Forsan v6: the words or the picture start 36 px under the bar, the piece ends 36 px above the foot of the screen, every piece touches its line (72 or 1368 at 1440),
   the words stand 64 px beside it with their last line on its foot. Headings: one size on the whole page. */
:root{--nameh:97px;--t-section:clamp(32px,3.06vw,44px)}
.film{--ar:16/9}@media (max-width:760px){.film{--ar:1080/1350}}
@media (min-width:761px) and (max-height:500px){.film{height:min(56.25vw,calc(100svh - var(--hdr)))}}
/* opening A: the film on both lines, the name under it on the first screen; the small line is whole on the first screen or wholly below it */
@media (min-width:761px){.opened.name .t-title{font-size:calc(var(--lw) * .0401);line-height:1.1;white-space:nowrap}.opened.name{--rm:calc(100svh - var(--hdr) - min(var(--lw) * 9 / 16,100svh - var(--hdr) - var(--nameh)) - 14px - var(--lw) * .0441)}.opened.name .under{margin-top:calc(2px + clamp(0px,(30px - var(--rm)) * 999,max(0px,var(--rm) + 12px)))}}
main{overflow-x:clip}.part{padding:36px 0 var(--s6)}.part .t-section b{font-weight:600}.part-h .t-section,.hh .t-section{text-box:trim-both cap alphabetic}.grp,.grp+.grp{padding:0}.part.idea{padding-top:36px}
.hs{--H:min(100svh - var(--hdr) - 72px,940px);--Hw:calc(var(--H) - var(--t-section) * .7 - 42px);padding-block:36px}.hs .pic{margin:0}.hs .q{color:var(--quiet)}.q{text-wrap:pretty}.hh p{text-wrap:balance}
.hh{display:flex;align-items:flex-end;column-gap:32px;height:calc(var(--t-section) * .7);margin-bottom:42px}.hh p,.hh .t-section{margin:0}
.ru-c{margin:0;color:var(--quiet);line-height:20px}.u{margin:24px 0 0}
.more{margin-top:36px}.u+.more{margin-top:12px}.more>summary{display:inline-block;list-style:none;cursor:pointer}.more>summary::-webkit-details-marker{display:none}.more>summary::after{content:"+";margin-left:10px;font-weight:400}.more[open]>summary::after{content:"\2212"}.more>.stack{margin-top:24px}
.half{display:grid;grid-template-columns:1fr 1fr;gap:var(--g)}.mcol{display:grid;gap:var(--g)}.one{max-width:calc((var(--lw) + var(--g)) * var(--cols,12) / 12 - var(--g))}
/* the tower of books: the poster on the left line, the eight names' column ends on the right line */
.tw-s,.tw-p{position:relative}.tw-p{z-index:1}.tw-s canvas{display:block;position:absolute;left:0;top:-14px;width:100%;height:calc(100% + 64px);cursor:grab;touch-action:pan-y}.tw-s canvas:active{cursor:grabbing}.tw-s canvas:focus-visible{outline-offset:-4px}.tw-s ul{list-style:none;margin:0;padding:0}.tw-s li{font:500 19px/1 var(--display);white-space:nowrap}.is3d li{visibility:hidden}.is3d li.on{visibility:visible}.tw-still{display:none}.no3d canvas{display:none}.no3d .tw-still{display:block}.no3d li{visibility:visible}
/* the hologram at its own 500 px, the pair together on the left line */
.holo{display:flex;gap:var(--g)}.hseq{flex:0 1 500px;min-width:0}.hf img{display:block;width:100%;height:auto}.hf img[hidden]{display:none}.hc{display:flex;align-items:center;gap:var(--s2);margin-top:var(--s1)}.holo b{color:var(--paper);font-weight:600;margin-right:6px}.hf.all{display:grid;grid-template-columns:1fr 1fr;gap:4px}
/* the touch table on both lines; only the three books that open carry a line */
.tscreen>[role=tabpanel][hidden]{display:none}.tp{position:relative}.tp img{display:block;width:100%;height:auto}
.hot{position:absolute;z-index:2;padding:0;border:0;background:none;cursor:pointer}.h-fire{left:61.125%;top:79.333%;width:4.875%;height:10.444%}.h-energy{left:47.5%;top:79.333%;width:5%;height:10.444%}.h-pmc{left:40.75%;top:79.333%;width:4.875%;height:10.444%}.h-back{left:2.5%;top:65.333%;width:18.75%;height:6.222%}
#tp-home .hot{outline:2px solid #F7F5F1;outline-offset:3px}#tp-home .hot::after{content:"";position:absolute;inset:-6px -4px}.hot:focus-visible{outline:4px solid var(--cyan)!important;outline-offset:3px}@media (hover:hover) and (pointer:fine){.hot:hover{outline:4px solid var(--cyan);outline-offset:3px}}
.ttabs{display:flex;flex-wrap:wrap;gap:4px var(--s3);margin-top:var(--s2)}.ttabs button{min-height:44px;min-width:44px;padding:0;border:0;border-bottom:2px solid transparent;background:none;color:var(--quiet);font:600 18px/1 var(--display);cursor:pointer}.ttabs [aria-selected=true]{color:var(--paper);border-color:var(--paper)}.ttabs button:focus-visible{outline-offset:4px}
.table .t-small{margin-top:var(--s2)}.sw{display:none}main .cap{max-width:62ch;text-wrap:pretty}
@media (min-width:761px){
.hh p,.part-h .q{text-box:trim-end cap alphabetic}.part-h{display:flex;align-items:flex-end;column-gap:32px;height:calc(var(--t-section) * .7);margin-bottom:42px}.part-h .t-section{flex:none;margin:0}.part-h .q{margin:0}.hh .t-section{flex:none}
.hs.L{display:grid;column-gap:64px;align-items:end;grid-template-columns:auto minmax(0,1fr)}.hs.L>.pic{order:-1}.wd>h2:last-child,.wd>h3:last-child{text-box:trim-end cap alphabetic}.hs.n9>.pic{width:min(var(--H) * var(--r),(var(--lw) + var(--g)) * var(--cols,9) / 12 - var(--g))}
/* two upright pieces at one height on one line, the words at their top on the other */
.hs.P{display:grid;gap:var(--g);grid-template-columns:minmax(0,1fr) auto auto;align-items:stretch}.hs.PR{grid-template-columns:auto auto minmax(0,1fr)}.hs.PR>.wd{order:3}.hs.P>.pic{width:min(494px,var(--H) * .70774,(var(--lw) - 2 * var(--g)) * .396)}/* the two Arabic ads at one height: together they are eight columns, the left one starts on a column, the right one ends on the line */
.hs.ar>.pic{--ph:min(var(--H),((var(--lw) + var(--g)) * 8 / 12 - 2 * var(--g)) / 1.19629);width:calc(var(--ph) * 907 / 1502)}.hs.ar>.pic:last-child{width:calc(var(--ph) * 907 / 1531)}
.P>.wd{display:flex;flex-direction:column;justify-content:space-between}.P>.wd>h2,.P>.wd>h3{text-box:trim-start cap alphabetic}
.tw{--tp:min((var(--Hw) - 43px) * .60626,var(--lw) * .34);display:grid;grid-template-columns:var(--tp) minmax(0,1fr);column-gap:var(--g)}.tw-p .ru-c{margin-top:18px;white-space:nowrap}.tw-s{height:calc(var(--tp) * 1.64946)}.tw-s ul{position:absolute;top:0;bottom:0;left:calc(100% - 206px)}.tw-s li{position:absolute;left:0;transform:translateY(-50%)}.tw-still{position:absolute;left:0;top:-14px;width:min(100%,(100% - 206px) * 1.3);height:calc(100% + 64px);object-fit:contain;object-position:0 100%}
.hand{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--g);align-items:end}.hand>.pic{grid-column:1/span 7}.hand>.mcol{grid-column:9/-1}
}
/* only the pairs hold a whole screen; a short screen ends 96 px under its piece and the next one rises into view */
@media (min-width:761px) and (min-aspect-ratio:1/1){.hs.P{min-height:calc(100svh - var(--hdr));align-content:start}}
@media (min-width:761px){.hs.L,.hs.W{padding-bottom:96px}
/* the close-up's word stands on the names' column, level with the caption */
.tw+.more{margin-top:-25px}.tw+.more>summary{position:relative;z-index:2;margin-left:calc(var(--lw) - 204px);line-height:20px}
/* the summit: four photographs in two equal columns on one screen; the link ends on the glass case's foot */
.s4{--x:max(300px,min((var(--lw) + var(--g)) * 5 / 12 - var(--g),(100svh - var(--hdr) - var(--t-section) * .7 - 78px - 14px - var(--g)) * .7737));display:grid;grid-template-columns:var(--x) var(--x);gap:var(--g);align-items:start}.s4>:nth-child(4){grid-area:2/2}.s4 .u{grid-area:2/2;align-self:end;margin:0 0 -4px;white-space:nowrap;line-height:20px}.s4 .lnk{display:block;width:max-content;min-height:0;line-height:20px}
/* the site: the home page leads, the inner page beside it, feet level */
.half.web{grid-template-columns:calc((var(--lw) + var(--g)) * 8 / 12 - var(--g)) minmax(0,1fr);align-items:end}}
@media (min-width:761px) and (max-width:1279px){.tw+.more{margin-top:-24px}}
@media (min-width:761px) and (max-width:1023px){.tw+.more>summary{margin-left:calc(var(--lw) - 171px)}.s4{grid-template-columns:1fr 1fr}.s4 .u{grid-area:3/1/auto/-1}}
@media (max-width:760px){.s4{display:grid;gap:16px}}
@media (min-width:761px) and (max-height:960px){.table{max-width:calc((var(--lw) + var(--g)) * 11 / 12 - var(--g))}}
@media (min-width:761px) and (max-width:1279px){.hs.n9{--cols:8!important}.idea .part-h{display:block;height:auto}.idea .part-h .q{margin-top:18px;max-width:62ch}}
@media (min-width:761px) and (max-width:1023px){.tw-s li{font-size:16px}.hh,.part-h{display:flex;flex-wrap:wrap;height:auto;align-items:center}.hh>p,.part-h>p{order:3;flex:0 0 100%;margin-top:18px!important}}
@media (max-width:760px){
.one{max-width:none}.part{padding:20px 0 var(--s4)}.grp,.grp+.grp{padding:0}.part.idea{padding-top:20px}.hs{padding-block:20px 28px}.hs.L,.hs.P{display:grid;gap:20px}.hh{display:grid;gap:14px;height:auto;margin-bottom:20px}.wd .t-section,.wd p,.hh p,.part-h .q{text-box:trim-both cap alphabetic}.hh p{margin-top:2px}.part-h{margin-bottom:32px}.part-h .q{margin-top:16px}
.half{grid-template-columns:1fr;gap:16px}.hand{display:grid;gap:16px}.mcol{gap:16px}.hs.P{gap:16px}.PR>.wd{display:contents}.PR>.wd>.pic{order:3}.PR>.wd>h3{margin-bottom:4px}
.tw{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}.tw-p .ru-c{margin-top:12px}.tw-s canvas{position:relative;top:0;height:auto;aspect-ratio:350/414}.tw-s{overflow:clip;padding-bottom:6px}.tw-s ul{display:grid;grid-template-columns:auto auto;justify-content:space-between;gap:14px 12px;margin-top:4px}.tw-s li{font-size:16px}.tw-still{width:140%;max-width:none;height:auto}
.holo{display:grid;gap:var(--s3)}.sw{display:inline}.hot{min-width:44px}
/* the phone's table is 480 high and slides sideways, so a book is a real target */
.tscreen{width:100vw;margin-left:calc(50% - 50vw)}.tscreen>[role=tabpanel]{overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain}.tp{width:853px;height:480px}.tp img{height:480px}}
/* v5.4.2 · the tower's focus frame: round the tower alone, behind the books, clear of the small line under the poster and of the names (the phone keeps the canvas's own) */
@media (min-width:761px){.tw-s{isolation:isolate}.tw-s canvas:focus-visible{outline:0}.tw-s:has(canvas:focus-visible)::after{content:"";position:absolute;z-index:-1;left:0;top:-14px;bottom:-10px;right:214px;border:2px solid var(--cyan);pointer-events:none}}
@media (min-width:761px) and (max-width:1023px){.tw-s:has(canvas:focus-visible)::after{right:182px}}
