/* Shared footer: the same "Let's collaborate" footer as the homepage, used on the case pages.
   Copied from site/index.html; keep the two in step. */
.foot .dash{display:inline-block;width:5px;height:1.5px;background:currentColor;transition:width .3s cubic-bezier(.2,.7,.2,1)}
.foot{z-index:29;background:var(--bg-page);min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:space-between}
.foot>.wrap,.foot>.foot-mid{width:100%}

/* Footer: marquee "Let's collaborate/", the email button in the middle, links and status */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.foot{position:relative;border-top:0;padding-block:56px calc(112px + env(safe-area-inset-bottom,0px));overflow:hidden}
.foot-top{display:flex;justify-content:space-between;align-items:flex-end}
.foot .foot-top>*{margin-bottom:24px}
/* Dividers drawn on the content box, so they start and end exactly where the links, the arrow and the status row do */
.foot-top,.foot-bot{background:linear-gradient(var(--border-default),var(--border-default)) no-repeat;background-origin:content-box;background-clip:content-box;background-size:100% 1px}
.foot-top{background-position:left bottom}.foot-bot{background-position:left top}
/* Dot grid behind the footer too (it is opaque so it can slide over the testimonials), lined up with the page grid */
.foot::before{content:"";position:absolute;inset:0;background-image:var(--dot-base);background-size:1rem 1rem;background-attachment:fixed;opacity:.8;pointer-events:none}
.foot>*{position:relative;z-index:1}
.foot-links{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none;font:400 14px/1 var(--mono);letter-spacing:0}
/* tertiary buttons, like About me / LinkedIn in the dock */
.foot-links a{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;background:var(--bg-page);color:var(--text-primary);text-decoration:none;box-shadow:inset 0 0 0 1px var(--border-default);transition:box-shadow .2s ease}
.foot-links a:hover,.foot-links a:focus-visible{box-shadow:inset 0 0 0 1px var(--accent-fill)}
.foot-links .ext{width:11px;height:11px;margin-left:-2px;color:var(--text-accent);transition:transform .25s ease}.foot-links a:hover .ext{transform:translate(2px,-2px)}
.to-top{display:grid;place-items:center;width:40px;height:40px;background:transparent;color:var(--text-primary);box-shadow:inset 0 0 0 1px var(--border-default);transition:box-shadow .2s ease,background-color .2s ease}   /* outlined, like the testimonial arrows */
.to-top svg{transition:transform .25s ease}.to-top:hover svg{transform:translateY(-2px)}
.to-top:hover{box-shadow:inset 0 0 0 1px #A394F9;background:rgba(163,148,249,.08)}
.to-top:focus-visible{outline:2px solid #A394F9;outline-offset:2px}
.foot-mid{position:relative;display:grid;place-items:center;margin-block:32px 40px}
.mq{margin:0;width:100%;overflow:hidden;font-size:clamp(129px,20.1vw,321px);line-height:1.15;font-weight:500;letter-spacing:-.05em;color:var(--bg-raised);white-space:nowrap;user-select:none}
.mq-track{display:inline-flex;animation:mq 40s linear infinite}
.mq-track span{padding-right:.3em}
@keyframes mq{to{transform:translateX(-50%)}}
.foot-cta{position:absolute;inset:0;z-index:1;display:grid;place-items:center;pointer-events:none}
.foot-cta .mail{pointer-events:auto}
.foot-bot{display:flex;flex-wrap:wrap;align-items:center;gap:12px 32px;padding-top:0}
.foot-bot>*{margin-top:20px}
.foot-open{display:inline-flex;align-items:center;gap:10px;font:400 14px/20px var(--mono);letter-spacing:0}
.foot-open i{width:8px;height:8px;border-radius:50%;background:#2E9E5B}
.foot .foot-clock{color:var(--text-accent)}.foot-clock em{font-style:normal;color:var(--text-secondary)}
.foot .foot-c{margin-left:auto;color:var(--text-secondary)}
@media (max-width:700px){.foot .foot-c{margin-left:0}.mq{font-size:96px}}
@media (prefers-reduced-motion:reduce) and (min-width:901px){.mq-track{animation:none}}
/* Email button: "Get in touch" at rest; on hover it shows the address and a "Click to copy/" tip pops up above */
.mail{all:unset;box-sizing:border-box;position:relative;display:inline-flex;cursor:pointer}
.mail-face{display:inline-flex;align-items:center;gap:10px;min-height:40px;padding:0 16px;background:var(--accent-fill);color:#FBFBFB;font:400 14px/1 var(--mono);letter-spacing:0;white-space:nowrap;box-shadow:0 6px 20px rgba(48,38,108,.12);transition:background-color .3s ease}
.mail .m-b{display:none}
.mail:hover .m-a,.mail:focus-visible .m-a,.mail.copied .m-a{display:none}
.mail:hover .m-b,.mail:focus-visible .m-b,.mail.copied .m-b{display:inline}
.mail:hover .mail-face,.mail:focus-visible .mail-face,.mail.copied .mail-face{background:#30266C}
.mail:hover .dash,.mail:focus-visible .dash{width:16px}
.mail:focus-visible{outline:2px solid var(--accent-fill);outline-offset:3px}
.mail-tip{position:absolute;left:0;bottom:calc(100% + 6px);padding:3px 8px;background:var(--accent-fill);color:#FBFBFB;font:400 11px/1.3 var(--mono);letter-spacing:0;white-space:nowrap;opacity:0;transform:translateY(6px);transition:opacity .45s cubic-bezier(.25,.1,.25,1) .05s,transform .6s cubic-bezier(.16,1,.3,1) .05s;pointer-events:none}
.mail:hover .mail-tip,.mail:focus-visible .mail-tip,.mail.copied .mail-tip{opacity:1;transform:none}
.mail-lg .mail-face{min-height:48px;padding:0 24px;font-size:16px}
@media (max-width:700px){
  .foot-links,.foot-links a,.mail-face{font-size:12px!important;line-height:12px!important}
  .foot-top{gap:6px;align-items:flex-end}
  .foot-links{flex:1 1 auto;flex-wrap:nowrap;gap:6px;min-width:0}
  .foot-links li{flex:1 1 auto;min-width:0}
  .foot-links a{width:100%;justify-content:center;padding:0 6px;gap:6px;white-space:nowrap}
  .foot .to-top{flex:none}
}
@media (max-width:900px){
  .foot{height:100vh;height:100svh;min-height:0}
  .foot-mid{min-height:0;overflow:hidden}
  .foot .mq{font-size:calc((100svh - 300px) / 1.25);line-height:1.2}
}
@media (max-width:700px){
  .foot{padding-block:24px calc(24px + env(safe-area-inset-bottom,0px))}
  .foot-links{gap:.5rem}
  .foot-mid{flex:1;margin-block:16px;align-content:center}
  .mq{font-size:56svh;line-height:1.2}
  .foot-bot{flex-wrap:nowrap;justify-content:space-between;gap:12px}
  .foot-bot .mono-tag{font-size:11px;line-height:14px;white-space:nowrap}
  .foot .foot-c{margin-left:auto}
  .foot-c .c-long{display:none}
}
@media (hover:none){
  .mail:hover:not(.copied) .mail-tip{opacity:0;transform:translateY(6px)}
  .mail:hover:not(.copied) .mail-face{background:var(--accent-fill)}
  .mail:hover:not(.copied) .dash{width:5px}
  .mail-face{transition:background-color .45s cubic-bezier(.25,.1,.25,1)}
  .mail.copied .mail-face{background:#30266C}
}
.foot .mono-tag{letter-spacing:0;text-transform:none}
/* no bottom nav on the case pages, so less room under the footer */
@media (min-width:701px){.foot{padding-bottom:calc(56px + env(safe-area-inset-bottom,0px))}}
.foot::before{opacity:.35}   /* same dot strength as the homepage footer */

.mail-face{font-weight:300}
