/* Nov 25 tweaks: loads last on every page */

/* nav: solid only once past the photo, no see-through band, no fade glitch */
nav.site, body nav { transition: padding .3s var(--ease); }
nav.site.scrolled, nav.site.solid, body nav.solid { background: rgb(var(--bg-rgb)); box-shadow: 0 1px 0 rgba(var(--fg-rgb),.1); }

/* project facts: values only, no Client / Location / Category labels */
.facts dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.facts dd { margin-top: 0; }
.facts { gap: 6px 28px; }

/* gallery captions: plain text, no box */
.g figcaption { background: none; padding: 10px 0 0; }

/* less empty space */
.p-body { padding-block: clamp(48px, 6vw, 88px); }
.gallery { padding-bottom: clamp(48px, 6vw, 88px); }
.next { padding-block: clamp(48px, 6vw, 88px); }
.t-head { padding-bottom: clamp(40px, 5vw, 64px); }
.t-body { padding-block: clamp(24px, 3vw, 48px) clamp(48px, 6vw, 80px); }
.t-work { padding-bottom: clamp(48px, 6vw, 80px); }
body .people { padding-block: clamp(56px, 7vw, 104px) clamp(48px, 6vw, 88px); }
body .contact { padding-block: clamp(56px, 7vw, 104px) clamp(40px, 5vw, 64px); }
footer.site, body footer { padding-top: clamp(24px, 3vw, 48px); }

/* team pages: square photo grid, tight, titles show on hover */
.t-work ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.t-work li, .t-work a { position: relative; display: block; }
.t-work .m { aspect-ratio: 1 / 1; border-radius: 0; }
.t-work h3, .t-work a p { position: absolute; left: 14px; right: 14px; z-index: 1; color: #ECE5D4; opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .45s var(--ease); pointer-events: none; }
.t-work h3 { bottom: 34px; font: 500 17px/1.2 var(--text); letter-spacing: -.01em; }
.t-work a p { bottom: 14px; font-size: 13px; color: rgba(236,229,212,.75); }
.t-work a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,26,16,.7), rgba(17,26,16,0) 55%); opacity: 0; transition: opacity .35s var(--ease); }
.t-work a:hover h3, .t-work a:hover p, .t-work a:focus-visible h3, .t-work a:focus-visible p, .t-work a:hover::after, .t-work a:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .t-work h3, .t-work a p, .t-work a::after { opacity: 1; transform: none; } }
@media (max-width: 700px) { .t-work ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
