/* Footer-only editorial composition. Shared site typography and artwork stay intact. */
#contact.contact-footer{
  background:#0a0a0a;color:#f2f2f2;
  padding-top:clamp(56px,5.6vw,96px);padding-bottom:28px;
  border-top:1px solid transparent;
}
.contact-footer .contact-availability{
  max-width:48em;font-size:11px;line-height:1.7;font-weight:400;
  letter-spacing:.12em;text-transform:uppercase;color:#aaa;
}
.contact-footer .contact-title{
  margin:20px 0 32px;font:var(--font-weight-light) clamp(88px,11.4vw,208px)/1.12 var(--font-primary);
  letter-spacing:-.065em;
}
:root:lang(vi) .contact-footer .contact-title{word-spacing:.06em}
.contact-footer .contact-title span{white-space:nowrap}
.contact-footer .contact-email{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  width:100%;min-height:80px;padding:12px 0 24px;
  border-bottom:1px solid transparent;
  font-size:clamp(30px,3.25vw,60px);line-height:1.35;letter-spacing:-.04em;
}
.contact-footer .contact-email>span{min-width:0;overflow-wrap:anywhere}
.contact-footer .contact-email>.icon-ne{width:.65em;height:.65em;stroke-width:.85}
.contact-footer .contact-secondary{
  display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;
  gap:12px 32px;padding:16px 0 40px;
}
.contact-footer .contact-profiles{display:flex;flex-wrap:wrap;gap:8px 32px}
.contact-footer .contact-secondary a,.contact-footer .brief-trigger{
  display:inline-flex;align-items:center;gap:10px;min-height:44px;
  max-width:100%;padding:8px 0;background:none;color:inherit;
  font:400 16px/1.5 var(--font-primary);letter-spacing:-.015em;text-align:left;
}
.contact-footer .contact-secondary span{font:inherit;color:inherit}
.contact-footer .footer-bottom{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;
  gap:24px;padding-top:24px;border-top:1px solid transparent;
}
.contact-footer .footer-bottom>.footer-copyright{
  width:auto;margin-left:auto;text-align:right;font-size:12px;line-height:1.5;color:#aaa;
}
.contact-footer .back-top{
  width:44px;height:44px;min-width:44px;margin:0;border-color:#ffffff40;color:inherit;
}
.contact-footer .icon-up{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter}
.contact-footer a,.contact-footer .brief-trigger{transition:color .2s}
.contact-footer a:hover,.contact-footer .brief-trigger:hover{color:#aaa}
.contact-footer a:focus-visible,.contact-footer .brief-trigger:focus-visible{outline:2px solid currentColor;outline-offset:5px}
@media(max-width:760px){
  #contact.contact-footer{padding-top:48px;padding-bottom:24px}
  .contact-footer .contact-availability{font-size:10px;letter-spacing:.08em;max-width:34em}
  .contact-footer .contact-title{font-size:clamp(62px,18vw,120px);margin:24px 0 24px;letter-spacing:-.06em;line-height:1.15}
  :root:lang(vi) .contact-footer .contact-title{font-size:clamp(50px,15.5vw,104px)}
  :root:lang(vi) .contact-footer .contact-title span{display:block}
  .contact-footer .contact-email{gap:14px;min-height:72px;padding:8px 0 22px;font-size:clamp(22px,6.15vw,36px);line-height:1.4;letter-spacing:-.04em}
  .contact-footer .contact-email>.icon-ne{width:18px;height:18px}
  .contact-footer .contact-secondary{gap:4px 24px;padding:12px 0 28px}
  .contact-footer .contact-profiles{gap:4px 28px}
  .contact-footer .contact-secondary a,.contact-footer .brief-trigger{font-size:15px}
  .contact-footer .footer-bottom{gap:16px;padding-top:20px}
  .contact-footer .footer-bottom>.footer-copyright{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.contact-footer a,.contact-footer .brief-trigger{transition:none}}

/* Shared final layout: Home and every project use the same composition. */
#contact.contact-footer{
  display:flex;flex-wrap:wrap;align-items:center;
  column-gap:clamp(24px,3.2vw,64px);row-gap:0;
  padding:clamp(96px,10vw,208px) clamp(24px,3.5vw,72px) clamp(48px,4.2vw,96px);
  border-top:0;
}
#contact.contact-footer::before{content:none}
#contact.contact-footer .contact-opening{flex:0 0 100%;min-width:0}
#contact.contact-footer .contact-availability{
  max-width:none;font-size:clamp(14px,1.2vw,24px);line-height:1.4;
  letter-spacing:-.03em;color:#d1d1d1;
}
#contact.contact-footer .contact-title{
  font-size:clamp(64px,9.2vw,180px);line-height:1.05;letter-spacing:-.04em;
  margin:clamp(24px,1.67vw,32px) 0 clamp(24px,1.67vw,32px);
}
#contact.contact-footer .contact-secondary,
#contact.contact-footer .contact-profiles{display:contents}
#contact.contact-footer .contact-email,
#contact.contact-footer .contact-secondary a,
#contact.contact-footer .brief-trigger{
  display:inline-flex;align-items:center;justify-content:flex-start;
  gap:clamp(12px,1.15vw,22px);width:auto;max-width:100%;min-height:44px;
  padding:8px 0;border:0;background:none;
  font:400 clamp(16px,1.2vw,24px)/1.4 var(--font-primary);letter-spacing:-.03em;
}
#contact.contact-footer .contact-email>.icon-ne,
#contact.contact-footer .contact-secondary .icon-ne{width:.65em;height:.65em;flex:0 0 auto}
#contact.contact-footer .footer-bottom{
  display:grid;grid-template-columns:minmax(0,1fr) auto 44px;
  align-items:center;gap:clamp(24px,2vw,40px);
  flex:0 0 100%;width:100%;min-width:0;
  margin-top:clamp(96px,10vw,208px);padding-top:0;border-top:0;
}
#contact.contact-footer .footer-monogram{display:block;width:clamp(48px,4vw,80px);height:auto}
#contact.contact-footer .footer-signoff{display:flex;flex-direction:column;align-items:flex-end;min-width:0}
/* Huy's SVG wordmark; font-size is only its sizing unit (4.426em = previous ink width). */
#contact.contact-footer .footer-signature{
  display:block;width:4.426em;height:auto;font-size:6.6vw;
}
#contact.contact-footer .footer-copyright{
  margin-top:-.3em;padding-right:4vw;
  font:400 clamp(11px,.8vw,16px)/1.5 var(--font-primary);color:#aaa;
}
#contact.contact-footer .footer-copyright .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;
}
#contact.contact-footer .back-top{justify-self:end}
@media(max-width:760px){
  #contact.contact-footer{padding:64px 20px 36px;column-gap:28px;row-gap:8px}
  #contact.contact-footer .contact-availability{font-size:12px;line-height:1.6;letter-spacing:0}
  #contact.contact-footer .contact-title{font-size:clamp(36px,11.8vw,52px);margin:24px 0;letter-spacing:-.04em}
  :root:lang(vi) #contact.contact-footer .contact-title{font-size:clamp(32px,10.8vw,48px)}
  #contact.contact-footer .contact-email{flex:0 0 100%}
  #contact.contact-footer .contact-email,
  #contact.contact-footer .contact-secondary a,
  #contact.contact-footer .brief-trigger{font-size:16px;gap:12px}
  #contact.contact-footer .footer-bottom{grid-template-columns:36px minmax(0,1fr) 44px;gap:12px;margin-top:72px}
  #contact.contact-footer .footer-monogram{width:36px}
  #contact.contact-footer .footer-signature{font-size:clamp(30px,8.6vw,60px)}
  #contact.contact-footer .footer-copyright{margin-top:4px;padding-right:0;font-size:11px}
}

/* Footer V2 layout (2026-11-17): links in one light row, monogram + back-to-top hidden
   (kept in the markup), large centred Huy Phung signature built from sand (footer-sand.js). */
#contact.contact-footer{position:relative;isolation:isolate}
#contact.contact-footer>*:not(.footer-sand){position:relative;z-index:1}
#contact.contact-footer .footer-sand{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
#contact.contact-footer .contact-availability{color:#f2f2f2;font-weight:var(--font-weight-light)}
#contact.contact-footer .contact-email,
#contact.contact-footer .contact-secondary a,
#contact.contact-footer .brief-trigger{font-weight:var(--font-weight-light);column-gap:clamp(14px,1.3vw,26px);margin-right:clamp(8px,1.4vw,28px)}
#contact.contact-footer .contact-email>.icon-ne,
#contact.contact-footer .contact-secondary .icon-ne{color:#9a9a9a}
#contact.contact-footer .footer-monogram,
#contact.contact-footer .back-top{display:none}
#contact.contact-footer .footer-bottom{display:block;margin-top:clamp(88px,13vw,300px)}
#contact.contact-footer .footer-signoff{align-items:center}
#contact.contact-footer .footer-signature{width:81%;max-width:1700px;font-size:inherit}
#contact.contact-footer .footer-copyright{align-self:flex-end;margin-top:clamp(28px,5vw,110px);padding-right:0}
@media(max-width:760px){
  #contact.contact-footer .contact-email,
  #contact.contact-footer .contact-secondary a,
  #contact.contact-footer .brief-trigger{margin-right:0}
  #contact.contact-footer .footer-bottom{margin-top:64px}
  #contact.contact-footer .footer-signature{width:100%;font-size:inherit}
  #contact.contact-footer .footer-copyright{margin-top:20px}
}
