/* The site's closing (src/partials/footer.html), after mocks/footer.html variant A: an ink field, the sections and
   Start a project in small caps, then the script "Tomorrow Studios" wordmark with the greyhound (a CSS mask over
   wordmark-studios.svg, filled white), the city, where we work and the email laid over the lettering. Also the page
   ending (.end, mocks/ending.html variant B): one very large link to /contact above the footer. */
.sfoot{position:relative;box-sizing:border-box;margin:var(--sp) 0 0;background:var(--ink);color:#fff;padding:22px var(--pad) clamp(30px,3.4vw,52px);
  font-family:var(--display);font-size:var(--t-small);line-height:1.3;
  text-transform:uppercase;font-weight:700;font-stretch:condensed;letter-spacing:.004em}
.sfoot a{color:inherit;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.sfoot a:hover{text-decoration-thickness:1.5px}
.sfoot a:focus-visible{outline:2px solid #fff;outline-offset:3px}
.sfoot-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 28px}
.sfoot-lock{position:relative;display:block;width:min(100%,clamp(300px,52vw,1060px));margin-top:clamp(72px,8.6vw,132px);padding-bottom:clamp(58px,5.4vw,84px)}
.sfoot-word{display:block;width:100%;aspect-ratio:3994/1117;background:#fff;
  -webkit-mask:url(/wordmark-studios.svg) left bottom/contain no-repeat;mask:url(/wordmark-studios.svg) left bottom/contain no-repeat}
.sfoot-over{position:absolute;left:50%;top:64%;transform:translateX(-50%);width:max-content;max-width:92vw;margin:0;text-align:center;
  font-size:clamp(10px,.86vw,13px);line-height:1.28;letter-spacing:.01em;text-transform:uppercase;color:#fff}
.sfoot-over span{display:block}
.sfoot-over span + span{margin-top:1.28em}
.sfoot-over a{text-decoration:none}
.sfoot-over a:hover{text-decoration:underline}
/* The company line, bottom right of the field */
.sfoot-legal{position:absolute;right:var(--pad);bottom:clamp(30px,3.4vw,52px);margin:0;font-size:var(--t-label);color:var(--soft)}
@media (max-width:760px){
  .sfoot{padding:10px var(--pad) calc(28px + env(safe-area-inset-bottom,0px))}
  .sfoot-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 12px}
  /* Each link is a tap target of 40px or more */
  .sfoot-links a{display:inline-block;padding:13px 0}
  .sfoot-lock{margin-top:56px;padding-bottom:132px}
  /* The city, the where-we-work lines and the email are at the label step; the email link is a 44px tap target (the margin keeps the text where it was) */
  .sfoot-over{top:calc(64% - 9px);font-size:var(--t-label)}   /* 9px up: the larger lines and tap target keep the email clear of the company line */
  .sfoot-over a{display:inline-block;padding:15px 0;margin:-5px 0}
  .sfoot-legal{position:static;margin-top:18px}
}

/* The page ending: one very large link to /contact, regular-weight caps set to the full width of the page (the
   [data-fit] script in the footer partial sizes it). It sits last in <main>, above the footer. */
.end{margin:var(--sp) var(--pad) 0;border-top:var(--rule);padding-top:clamp(18px,2.6vw,34px)}
.end-link{display:block;color:var(--ink);text-transform:uppercase;white-space:nowrap;overflow:hidden;
  font-weight:400;line-height:.8;font-size:10.6vw;padding-bottom:.02em}
.end-link [data-fit]{display:inline-block;vertical-align:top;letter-spacing:-.05em;padding-right:.05em}
/* Hover and keyboard focus: the ink rule above the line thickens from 1px to 3px (a 2px line under the border that
   fades in, so nothing moves and only opacity changes). The old hover, ink to black, could not be seen. It is eased
   only where motion is allowed (html.mo); otherwise it is simply there. */
.end{position:relative}
.end::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--ink);opacity:0;pointer-events:none}
.end:has(.end-link:hover)::before,.end:has(.end-link:focus-visible)::before{opacity:1}
html.mo .end::before{transition:opacity var(--d-1) linear}
.end-link:focus-visible{outline:2px solid var(--ink);outline-offset:6px}
.end br{display:none}
main:has(> .end:last-child) ~ .sfoot{margin-top:clamp(28px,3.6vw,52px)}
@media (max-width:760px){
  .end{margin-top:56px;padding-top:16px}
  .end br{display:inline}
  .end-link{font-size:21vw;line-height:.84}
  main:has(> .end:last-child) ~ .sfoot{margin-top:28px}
}
