/* footer.css — shared homepage footer for case pages */
.footer .container{max-width:1280px;margin:0 auto;padding:0 clamp(20px,5vw,80px)}
/* ============ FOOTER ============ */
  .footer {
    background: var(--footer);
    color: #fff;
    padding: clamp(64px, 8vw, 120px) 0;
    position: relative;
    overflow: hidden;
  }
  .footer-glow {
    position: absolute;
    width: clamp(200px, 17vw, 270px);
    aspect-ratio: 1 / 1;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
    background: url('assets/footer-ascii.webp') center / contain no-repeat;
    filter: invert(1);
    opacity: 0.20;
    z-index: 0;
  }
  .footer-inner, .footer-base {
    position: relative;
    z-index: 1;
  }
  @media (max-width: 760px) {
    .footer-glow {
      width: 170px;
      opacity: 0.18;
    }
  }
  .footer-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto auto;
    column-gap: 64px;
    row-gap: 40px;
    align-items: start;
    justify-items: start;
  }
  .footer-inner > :first-child { justify-self: start; }
  .footer-inner > :nth-child(2),
  .footer-inner > :nth-child(3) { justify-self: end; }
  .footer h2 {
    font-family: 'Work Sans', sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.1;
    font-weight: 500;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
  }
  .footer h2 .em {
    font-family: 'Work Sans', sans-serif;
    color: var(--terracotta);
    font-weight: 400;
  }
  .footer p { color: rgba(255,255,255,.7); margin: 0; max-width: none; font-size: 15px; }
  .footer-col h4 {
    font-family: 'Work Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin: 0 0 16px;
    font-weight: 400;
  }
  .footer-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-family: 'Work Sans', sans-serif;
    font-size: clamp(18px, 1.6vw, 22px);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color .3s ease, transform .3s ease;
  }
  .footer-col a:hover {
    color: var(--terracotta);
    transform: translateX(3px);
  }
  .footer-col a svg {
    width: 14px; height: 14px;
    transition: transform .3s ease;
  }
  .footer-col a:hover svg { transform: translate(2px, -2px); }

  .footer-base {
    margin-top: clamp(48px, 6vw, 80px);
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 32px;
    font-family: 'Work Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    position: relative;
    width: 100%;
    box-sizing: border-box;
  }
  .footer-base > * { min-width: 0; }

  @media (max-width:760px){.footer-inner{grid-template-columns:1fr 1fr;gap:32px}.footer-inner>:first-child{grid-column:1/span 2}.footer-base{font-size:10px;gap:8px}}
@media (max-width:540px){.footer .container{padding:0 20px}.footer-inner{grid-template-columns:1fr 1fr;gap:32px;justify-items:start}.footer-inner>:first-child{grid-column:1/span 2;justify-self:start}.footer-inner>:nth-child(2),.footer-inner>:nth-child(3){justify-self:start}.footer-base{flex-direction:column;align-items:flex-start}}
