/* Thesis section: one wide scene across the section (the new colleague's first day), the three claims as its captions.
   The picture is site/teza.jpg, one band of the brand render; what stands on it (the screen's two programs, the sign on the desk,
   the shelf's name, the light on the floor line) is one SVG in the band's own pixels, written by tzgen.py into site/teza.html. */
#teza>div{gap:0!important}
/* head: the heading on the left, the lead and the button on the right, both ending on one line */
#teza>div>div:first-child{flex:1 1 100%!important;display:grid!important;grid-template-columns:minmax(0,7fr) minmax(0,5fr);grid-template-rows:1fr auto auto;gap:0 clamp(24px,3.4vw,48px)!important;align-items:end}
#teza>div>div:first-child>div:first-child{display:contents!important}
#teza>div>div:first-child>div:first-child>p:first-child{grid-column:1;grid-row:1;align-self:end;margin-bottom:14px!important}
#teza>div>div:first-child h2{grid-column:1;grid-row:2/4;max-width:none!important}
#teza>div>div:first-child>div:first-child>p:last-child{grid-column:2;grid-row:1/3;max-width:none!important;margin-bottom:18px!important}
#teza>div>div:first-child>div:last-child{grid-column:2;grid-row:3;padding-bottom:10px}

#teza .tzs{position:relative;flex:1 1 100%;width:100%;margin-top:clamp(8px,1.1vw,16px)}
/* low wide screens: less air above the head, and the whole section (head, scene, captions) gives up width together, so the scene fits the screen and every caption stays under its part */
@media (min-width:760px){#teza{padding-top:clamp(52px,7vh,124px)!important}#teza>div{max-width:min(1280px,calc(max(400px,100vh - 300px)*var(--tz-ar)))!important}}
#teza .tzs-im,#teza .tzs-ov{position:absolute;inset:0;width:100%;height:100%;display:block}
/* the picture's ground is the page's ground; its edges fade so that no frame can show */
#teza .tzs-im{-webkit-mask-image:linear-gradient(90deg,transparent,#000 1.2%,#000 99%,transparent),linear-gradient(transparent,#000 2%,#000 98%,transparent);mask-image:linear-gradient(90deg,transparent,#000 1.2%,#000 99%,transparent),linear-gradient(transparent,#000 2%,#000 98%,transparent);-webkit-mask-composite:source-in;mask-composite:intersect}
#teza .tzs-w{fill:#1D1F1C;stroke:#34372F;stroke-width:1}
#teza .tzs-b{fill:#3C3F38}
#teza .tzs-c{fill:#31342E}
#teza .tzs-b.on,#teza .tzs-c.on{fill:#BEF264}
#teza .tzs-cur{filter:drop-shadow(0 1px 1px rgba(0,0,0,.5))}
#teza .tzs-name,#teza .tzs-word{font-family:Inter,system-ui,sans-serif;font-weight:600;letter-spacing:-.02em;fill:#151614}
#teza .tzs-name{fill:#3A3C38}
#teza .tzs-pulse{opacity:0}
@media (prefers-reduced-motion:no-preference){
 #teza .tzs-pulse{animation:tzs-pulse 7s linear infinite}
 #teza .tzs-b.on{animation:tzs-read 7s ease-in-out infinite}
 #teza .tzs-c.on{animation:tzs-cell 7s ease-in-out infinite}
 #teza .tzs-cur{animation:tzs-cur 7s cubic-bezier(.22,1,.36,1) infinite}
 #teza .tzs-sign{animation:tzs-sign 14s cubic-bezier(.22,1,.36,1) infinite}
}
@keyframes tzs-read{0%,30%{fill:#3C3F38}34%,93%{fill:#BEF264}98%,100%{fill:#3C3F38}}
@keyframes tzs-cell{0%,60%{fill:#31342E}64%,93%{fill:#BEF264}98%,100%{fill:#31342E}}
@keyframes tzs-sign{0%,46%{transform:translateY(0)}50%,96%{transform:translateY(calc(-1*var(--tz-sh)))}100%{transform:translateY(0)}}

/* the three claims: no numbers, no old tiles; they stand close under the picture, their headings on one line, their texts on the next */
#teza ol>li>span:first-child,#teza ol>li>.tz-v{display:none!important}
#teza ol{flex:1 1 100%!important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto auto auto;gap:0 clamp(24px,3.4vw,48px);margin-top:clamp(10px,1.4vw,18px)!important}
#teza ol>li{display:grid!important;grid-row:span 3;grid-template-rows:subgrid;gap:0!important;align-items:start!important;padding:0!important;border-top:0!important}
#teza ol>li>span:nth-child(2){display:contents!important}
/* each claim hangs from one lime mark, the three marks in one row under the floor line of the picture */
#teza ol>li::before{content:"";width:9px;height:9px;background:#BEF264;margin-bottom:12px}
#teza ol>li>span:nth-child(2)>span:first-child{font-size:clamp(22px,1.9vw,27px)!important;text-wrap:balance;margin-bottom:8px}

/* the page guide steps aside while the picture, which has the same figure in it, is on screen */
html.tz-here .g-bot{opacity:0!important;pointer-events:none!important}

/* narrow screens: each claim gets its own part of the same picture (site/teza-m.jpg, the picture with everything drawn in):
   the desk with the screen over the first claim, the key and the shelf as two upright parts beside the second and the third */
@media (max-width:759px){
 #teza .tzs{display:none}
 #teza>div>div:first-child{grid-template-columns:1fr}
 #teza>div>div:first-child>div:first-child>p:first-child,#teza>div>div:first-child h2,#teza>div>div:first-child>div:first-child>p:last-child,#teza>div>div:first-child>div:last-child{grid-column:1;grid-row:auto}
 #teza>div>div:first-child h2{margin-bottom:16px!important}
 #teza ol{grid-template-columns:1fr;grid-template-rows:none;gap:30px 0;margin-top:26px!important}
 #teza ol>li{display:grid!important;grid-row:auto;grid-template-rows:none;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:0 18px!important;align-items:center!important}
 #teza ol>li:first-child{display:block!important}
 #teza ol>li>span:nth-child(2){display:flex!important}
 #teza ol>li>span:nth-child(2)>span:first-child{margin-bottom:0}
 #teza ol>li::before{content:"";display:block;width:auto;height:auto;margin:0;background:url(teza-m.jpg) no-repeat;-webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 93%,transparent);mask-image:linear-gradient(90deg,transparent,#000 9%,#000 93%,transparent)}
 #teza ol>li:first-child::before{margin:0 0 14px}
 /* the second part starts in the middle of the desk: a longer fade on its left */
 #teza ol>li:nth-child(2)::before{-webkit-mask-image:linear-gradient(90deg,transparent 2%,#000 17%,#000 93%,transparent);mask-image:linear-gradient(90deg,transparent 2%,#000 17%,#000 93%,transparent)}
}
/* between a phone and the wide layout the first part also stands beside its claim */
@media (min-width:560px) and (max-width:759px){
 #teza ol>li:first-child{display:grid!important;grid-template-columns:minmax(0,5fr) minmax(0,4fr);gap:0 28px!important}
 #teza ol>li:first-child::before{margin:0}
 #teza ol>li{grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:0 28px!important}
}
