/* Tallis concept, web copy: what changed so the filmed site works as a normal page.
   - room for the Drenin concept bar (36px) above the site's own fixed nav
   - a working menu (the film's menu button had no menu)
   - wide screens: the project view and the estimate sheet stay in the site's 520px column instead of the whole window
   - a pointer from the photo-only projects to the one project that has the drawing view */
:root{--dcb-h:36px;--bar-h:92px}
body{padding-top:var(--dcb-h)}
.nav{top:var(--dcb-h)}
.skip{top:calc(var(--dcb-h) + 8px)}
html{scroll-padding-top:calc(var(--bar-h) + 8px)}

/* menu */
.tmenu{position:fixed;top:var(--bar-h);left:0;right:0;z-index:21;display:grid;background:var(--slab) var(--broom) 0 0/432px 240px;
  border-top:1px solid var(--ink);border-bottom:1.5px solid var(--ink);box-shadow:0 18px 30px -18px rgb(20 18 14 / .6)}
.tmenu[hidden]{display:none}
.tmenu a{display:flex;align-items:center;min-height:54px;padding:0 var(--gut);border-bottom:1px solid rgb(22 21 19 / .35);
  font-weight:720;font-stretch:96%;font-size:20px;text-decoration:none;color:var(--ink)}
.tmenu a:last-child{border-bottom:0;background:var(--chalk);color:#fff}
.tmenu a:focus-visible{outline-offset:-4px}
.menu[aria-expanded="true"] i:first-child{transform:translateY(3.75px) rotate(45deg)}
.menu[aria-expanded="true"] i:last-child{transform:translateY(-3.75px) rotate(-45deg)}
.menu i{transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.menu{min-width:44px;min-height:44px;justify-content:end;align-content:center}
.nav-est{padding:12px 0}

/* photo-only projects point to the drawing view */
.pv-hint{position:absolute;left:var(--gut);right:var(--gut);bottom:max(18px,env(safe-area-inset-bottom));z-index:7;margin:0;padding:11px 13px 12px;
  background:rgb(22 21 19 / .9);color:var(--white);font-size:13.5px;line-height:19px}
.pv-hint[hidden]{display:none}
.pv-hint a{display:inline-block;margin-top:4px;color:#fff;font-weight:650;text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--chalk-hi);text-decoration-thickness:2px}

/* the project title stays on one line at phone widths, so the bar under it is never covered (the film was 432px wide) */
.pv-title h2{white-space:nowrap;font-size:min(38px,8.8vw);line-height:36px}
.pv-title p{max-width:100px}

@media (min-width:700px){
  .nav{right:auto}   /* film site: left + right + width + auto margins pushed the centred nav 100px right on wide screens */
  .tmenu{left:calc(50% - 260px);right:auto;width:520px}
  .pv,.ef{left:calc(50% - 260px);right:auto;width:520px}
  .pv{box-shadow:0 0 0 1px var(--ink),0 30px 80px -20px rgb(0 0 0 / .55)}
  .ef{box-shadow:0 0 0 1px var(--ink),0 30px 80px -20px rgb(0 0 0 / .55)}
}
@media (prefers-reduced-motion:reduce){.menu i{transition:none}}
