/* A readable closing signature, with one optional decorative introduction. */
.site-footer { padding: 3rem 0 1.5rem; scroll-margin-top:calc(var(--header-height,88px) + 24px); }
.footer-intro { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; }
.footer-identity { min-width: 0; }
.footer-brand { display: inline-block; color: var(--accent-light); max-width: 100%; }
.footer-brand-frame { position: relative; display: block; border-left: 2px solid currentColor; padding: .2em .3em .25em; font-size: clamp(2.3rem,6.5vw,5.8rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.15; white-space: nowrap; }
.footer-brand-frame::before, .footer-brand-frame::after { content: ''; position: absolute; left: 0; height: 2px; background: currentColor; transform-origin: left center; }
.footer-brand-frame::before { top: 0; width: 48%; }
.footer-brand-frame::after { bottom: 0; width: 100%; }
.footer-identity > p { color: var(--text-secondary); font-size: .9rem; margin-top: 1rem; line-height: 1.7; }
.footer-next { display: inline-flex; align-items: center; gap: 1rem; color: var(--accent-light); font-size: 1rem; font-weight: 500; border-bottom: 1px solid var(--accent-light); padding-block: .7rem; flex-shrink: 0; }
.footer-next span { display: inline-block; transition: transform .2s ease; }
.footer-next:hover span { transform: translate(2px,-2px); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr 1.2fr; gap: 2rem; padding: 2rem 0 2.5rem; border-block: 1px solid var(--border); }
.footer-grid h2 { color: var(--accent-light); font-size: .8rem; font-weight: 600; margin: 0 0 1rem; line-height: 1.6; }
.footer-grid a { display: block; color: var(--text-secondary); font-size: .88rem; line-height: 1.7; padding-block: .5rem; width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; text-underline-offset: .25em; }
.footer-contact address { font-style: normal; font-size: .88rem; color: var(--text-secondary); line-height: 1.9; margin-bottom: .8rem; }
.footer-contact a { color: var(--accent-light); }
.footer-baseline { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.3rem; flex-wrap: wrap; }
.footer-baseline p { color: var(--text-secondary); font-size: .8rem; line-height: 1.6; }
.site-footer .theme-toggle { min-height: 44px; }
.footer-identity.is-introduced .footer-brand-frame::before { animation: footer-line-intro .6s ease-out both; }
.footer-identity.is-introduced .footer-brand-frame::after { animation: footer-line-intro .7s .08s ease-out both; }
@keyframes footer-line-intro { from { transform: scaleX(.08); } to { transform: scaleX(1); } }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 600px) {
  .site-footer { padding-top: 2.5rem; }
  .footer-intro { flex-direction: column; align-items: flex-start; gap: 1.3rem; margin-bottom: 1.8rem; }
  .footer-brand-frame { font-size: clamp(2.2rem,10vw,3.4rem); }
  .footer-grid { gap: 1.7rem 1rem; }
  .footer-grid h2 { font-size: .8rem; }
  .footer-grid a, .footer-contact address { font-size: .82rem; }
  .footer-baseline { align-items: flex-start; }
  .footer-baseline > p:nth-child(2) { width: 100%; order: 3; }
}
@media (max-width: 360px) { .footer-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .footer-identity.is-introduced .footer-brand-frame::before,
  .footer-identity.is-introduced .footer-brand-frame::after { animation: none; }
  .footer-next span { transition: none; }
  .footer-next:hover span { transform: none; }
}
