/* v13: one big brand moment per page, everything else quiet. Loaded after site.css on inner pages. */
:root { --terra: #A3402A; --terra-head: #B95533; --ease: cubic-bezier(.2,.7,.2,1); }
body { font-size: 17px; line-height: 1.6; }
.muted { color: rgba(var(--fg-rgb),.66); }

/* nav */
nav.site { height: auto; padding-block: 22px; transition: background-color .4s var(--ease), padding .4s var(--ease); }
nav.site.scrolled, nav.site.solid { padding-block: 14px; background: rgba(var(--bg-rgb),.94); }
nav.site .logo img { height: 52px; transition: height .4s var(--ease); }
nav.site.scrolled .logo img { height: 40px; }
nav.site ul a { font-size: 15px; font-weight: 400; letter-spacing: 0; color: rgba(var(--fg-rgb),.86); text-decoration: none !important; background: linear-gradient(var(--terra), var(--terra)) left bottom / 0 1.5px no-repeat; padding-bottom: 3px; transition: background-size .4s var(--ease), color .3s; }
nav.site ul a:hover, nav.site ul a[aria-current] { color: var(--fg); background-size: 100% 1.5px; }

/* labels: quiet, never eyebrows */
.label, .gallery h2, .t-disc h2, .t-work h2, .p-side h2 { font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; color: rgba(var(--fg-rgb),.6); margin-left: 0; }

/* work index */
.page-head { padding-top: calc(96px + 96px); padding-bottom: 72px; }
.page-head h1 { font-size: clamp(40px, 1rem + 4.4vw, 104px); line-height: .98; max-width: 14ch; margin-left: 0; }
.page-head h1 span { color: var(--terra-head); display: block; }
.work-grid { gap: clamp(56px, 7vw, 104px) clamp(16px, 2vw, 32px); padding-bottom: clamp(96px, 10vw, 160px); }
.wcard { gap: 14px; }
.wcard .m { aspect-ratio: 16 / 10; }
.wcard .row { border-top: 0; padding-top: 0; }
.wcard h2 { font: 500 clamp(19px, 1rem + .4vw, 24px)/1.25 var(--text); letter-spacing: -.01em; width: fit-content; background: linear-gradient(var(--terra), var(--terra)) left bottom / 0 1.5px no-repeat; padding-bottom: 2px; transition: background-size .5s var(--ease); }
.wcard:hover h2, .wcard:focus-visible h2 { background-size: 100% 1.5px; }
.wcard .meta { font-size: 15px; color: rgba(var(--fg-rgb),.6); }
.wcard p.b { font-size: 15px; color: rgba(var(--fg-rgb),.66); margin-top: -6px; }
.wcard:hover img { transform: scale(1.025); }

/* project */
.p-hero { min-height: 100svh; }
.p-hero::after { background: linear-gradient(to top, rgba(var(--bg-rgb),.92) 0%, rgba(var(--bg-rgb),.3) 34%, rgba(var(--bg-rgb),0) 60%), linear-gradient(to bottom, rgba(var(--bg-rgb),.45), rgba(var(--bg-rgb),0) 22%); }
.p-hero .in { padding-bottom: clamp(32px, 5vw, 64px); gap: 28px; }
.p-hero h1 { font-size: clamp(40px, 1rem + 4.6vw, 108px); line-height: .96; max-width: 16ch; }
.facts { gap: 12px 56px; }
.facts dt { font-size: 14px; color: rgba(var(--fg-rgb),.6); }
.facts dd { font-size: 16px; }
.btn { border-color: rgba(var(--fg-rgb),.35); }
.p-body { padding-block: clamp(96px, 10vw, 160px); }
.p-desc { font-size: clamp(19px, 1rem + .35vw, 22px); line-height: 1.6; max-width: 38em; }
.credits div { font-size: 16px; }
.credits a { border-bottom: 0; background: linear-gradient(var(--terra), var(--terra)) left bottom / 100% 1.5px no-repeat; padding-bottom: 2px; }
.gallery { padding-block: 0 clamp(96px, 10vw, 160px); }
.gallery h2 { margin-bottom: 24px; }
.g { column-gap: clamp(12px, 1.4vw, 20px); }
.g figure { margin-bottom: clamp(12px, 1.4vw, 20px); }
.g figcaption { font-size: 14px; color: rgba(var(--fg-rgb),.6); }
.btn.more { border: 0; padding: 0; min-height: 44px; font-size: 16px; background: linear-gradient(var(--terra), var(--terra)) left 80% / 100% 1.5px no-repeat; }

/* next project: big quiet link, no colour slab */
.next { background: none; color: var(--fg); border-top: 1px solid rgba(var(--fg-rgb),.12); padding-block: clamp(64px, 8vw, 120px); display: block; }
.next .label { color: rgba(var(--fg-rgb),.6); }
.next h2 { font: 500 clamp(32px, 1rem + 3.4vw, 80px)/1.02 var(--text); letter-spacing: -.025em; margin-top: 12px; width: fit-content; background: linear-gradient(var(--terra), var(--terra)) left bottom / 0 3px no-repeat; padding-bottom: 6px; transition: background-size .6s var(--ease); }
.next:hover h2, .next:focus-visible h2 { background-size: 100% 3px; }

/* team */
.t-head { padding-top: calc(96px + 72px); padding-bottom: clamp(72px, 8vw, 120px); align-items: end; }
.t-photo { transform: none; background: none; padding: 0; overflow: hidden; }
.t-intro { padding-top: 0; gap: 20px; }
.t-intro h1 { font-size: clamp(36px, 1rem + 3.4vw, 84px); line-height: .98; }
.t-intro .role { font-size: 19px; color: rgba(var(--fg-rgb),.66); margin-top: -6px; }
.t-intro .lede { font-size: clamp(19px, 1rem + .4vw, 23px); }
.phil { border-top: 1px solid rgba(var(--fg-rgb),.14); }
.t-body { padding-block: clamp(56px, 6vw, 96px) clamp(96px, 10vw, 140px); }
.t-about { font-size: clamp(18px, 1rem + .3vw, 21px); }
.t-disc li b { font-weight: 500; }
.t-disc li span { font-size: 14px; color: rgba(var(--fg-rgb),.6); }
.t-work h3 { font: 500 17px/1.3 var(--text); letter-spacing: 0; }
.t-work p { font-size: 14px; color: rgba(var(--fg-rgb),.6); }
.t-work a:hover h3 { text-decoration: none; }

/* contact: the email is the statement */
.contact { padding-block: clamp(96px, 12vw, 176px) clamp(64px, 8vw, 112px); border-top: 1px solid rgba(var(--fg-rgb),.12); }
.contact-left { grid-column: 1 / -1; gap: 36px; }
.contact h2 { font-size: clamp(32px, 1rem + 2.6vw, 64px); letter-spacing: .01em; }
.contact h2 span { color: inherit; }
.email-row { gap: 16px 40px; align-items: end; }
.email { font: 500 clamp(26px, 1rem + 3.4vw, 80px)/1.05 var(--text); letter-spacing: -.025em; border-bottom: 0; background: linear-gradient(var(--terra), var(--terra)) left bottom / 100% 3px no-repeat; padding-bottom: 8px; transition: color .3s; }
.email:hover { color: var(--terra-head); }
.copy-btn { border: 0; padding: 12px 0; min-height: 44px; font-size: 15px; color: rgba(var(--fg-rgb),.75); border-bottom: 1px solid rgba(var(--fg-rgb),.3); }
.contact .svc { border-top: 0; padding-top: 0; color: rgba(var(--fg-rgb),.6); font-size: 16px; }

/* footer: the giant wordmark is the brand moment that closes every page */
footer.site { display: grid; grid-template-columns: 1fr auto; gap: 20px 24px; padding-block: clamp(40px, 5vw, 72px) 24px; border-top: 0; font-size: 14px; color: rgba(var(--fg-rgb),.6); }
footer.site .bigword { grid-column: 1 / -1; width: 100%; height: auto; color: var(--fg); display: block; }
footer.site .fl { grid-column: 1; }
footer.site .fr { grid-column: 2; }
footer.site a:hover { color: var(--fg); }
footer.site img { display: none; }

@media (max-width: 680px) {
  nav.site { padding-block: 16px; } nav.site .logo img, nav.site.scrolled .logo img { height: 40px; }
  .page-head { padding-top: calc(72px + 56px); }
  .t-head { padding-top: calc(72px + 32px); }
}
