/* Shared refinements. Keep the quiet, image-led design. */
:root { --muted: #716e67; }
[hidden] { display: none !important; }
body:has(#site-nav) { padding-top: 72px; }
#site-nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 72px;
  padding: 0 var(--gutter, 28px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  box-sizing: border-box;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 0; border-bottom: 1px solid var(--line, rgba(17,17,17,.08));
}
#site-nav .brand { flex: 0 1 auto; font-size: 18px; font-weight: 500; letter-spacing: -.015em; line-height: 1.1; text-decoration: none; border: 0; color: #111; }
#site-nav .nav-links { display: inline-flex; gap: 24px; align-items: center; }
#site-nav .nav-links a { font-size: 13px; line-height: 1.4; color: #111; text-decoration: none; }
#site-nav .nav-links a.nav-cta { padding: 12px 16px; background: #111; color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: 1; }
#site-nav .nav-toggle { display: none; position: relative; z-index: 60; padding: 0; margin: 0; background: none; border: 0; border-radius: 0; color: #111; cursor: pointer; }
#site-nav .nav-toggle span { position: absolute; height: 1.5px; background: currentColor; transition: transform .2s ease; }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid currentColor !important;
  outline-offset: 4px !important;
}
img, video, iframe { max-width: 100%; }
main, .tl-body, .tl-media, .form-col, .project-column, .enquiry-field { min-width: 0; }
.nav-links a { opacity: .78; }
.nav-links a[aria-current="page"], .nav-links a:hover { opacity: 1; }
.nav-links a[aria-current="page"]:not(.nav-cta) {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
#site-nav .nav-links a[aria-current="page"]:not(.nav-cta) { text-decoration: underline; text-underline-offset: 5px; }
.nav-toggle, .film-player-close, .hs-popup-close, .itw-wwu-close { min-width: 44px; min-height: 44px; }
.nav-toggle { width: 44px; height: 44px; flex: 0 0 44px; }
.nav-toggle span { left: 12px; right: 12px; }
.nav-toggle span:nth-child(1) { top: 18px; bottom: auto; }
.nav-toggle span:nth-child(2) { top: 26px; bottom: auto; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.hs-popup-inner, .itw-wwu-inner { max-height: calc(100dvh - 48px); overflow-y: auto; }
.hs-popup-close { top: 2px; right: 4px; }
.hs-popup-title, .itw-wwu-title { padding-right: 20px; }
.film-player-overlay:not(.on), .hs-popup-overlay:not(.on) { visibility: hidden; }
.film-player-overlay.on, .hs-popup-overlay.on { visibility: visible; }
.itw-form-status { font-size: 13px; line-height: 1.5; max-width: 32ch; margin: 12px 0 0; color: #333; }
.itw-form-status a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  #site-nav { padding-inline: 20px; gap: 12px; }
  #site-nav .nav-toggle { display: block; }
  #site-nav .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 20px 16px;
    max-height: calc(100dvh - 72px); overflow-y: auto;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--line, #ddd);
    transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  #site-nav.open .nav-links { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  #site-nav .nav-links a { width: 100%; min-height: 44px; padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--line, #ddd); box-sizing: border-box; }
  #site-nav .nav-links a.nav-cta { margin-top: 10px; padding: 14px 16px; text-align: center; border-bottom: 0; }
  .film-player-close { top: 12px; right: 12px; }
  .film-player-fallback { right: 20px; bottom: 20px; max-width: calc(100% - 40px); }
}
@media (min-width: 761px) {
  #site-nav .nav-toggle { display: none; }
  #site-nav .nav-links { visibility: visible; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .itw-cursor { display: none !important; }
  html.itw-cursor-on, html.itw-cursor-on body, html.itw-cursor-on * { cursor: auto !important; }
  html.itw-cursor-on a, html.itw-cursor-on button, html.itw-cursor-on summary { cursor: pointer !important; }
  html.itw-cursor-on input, html.itw-cursor-on textarea { cursor: text !important; }
}

/* The source templates share these small accessibility and mobile rules. */
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[hidden] {display:none!important}
@media(max-width:760px){
  :root{--gutter:20px}
  .itw-cursor{display:none!important}
  html.itw-cursor-on,html.itw-cursor-on body,html.itw-cursor-on *{cursor:auto!important}
  .m-stack > div[style*="justify-content:flex-end"]{justify-content:flex-start!important}
  .films-head{gap:24px}
  #site-nav + main, #site-nav + .shell{min-width:0}
}

.case-jumps{display:flex;gap:12px 28px;flex-wrap:wrap;margin:20px 0 28px;font-size:13px}
.case-jumps a{border-bottom:1px solid var(--line-strong);padding:3px 0;text-underline-offset:4px}
.case-jumps a:hover{border-bottom-color:var(--ink)}
:where(section,li,h2)[id]{scroll-margin-top:100px}
@media(max-width:760px){
  main>section[style*="120px"]{padding-bottom:64px!important}
  footer.site-foot{margin-top:64px;padding-top:36px}
  .case-jumps{gap:12px 20px}
}
