.footer{
  padding:clamp(90px,12vw,150px) 0 36px;
  background:radial-gradient(circle at 20% 0,rgba(255,238,88,.14),transparent 28%),var(--black);
  color:var(--paper);
  border-top:1px solid var(--line-dark);
}

.footer-grid{
  display:grid;
  grid-template-columns:minmax(340px,1.35fr) minmax(130px,.48fr) minmax(280px,.9fr) minmax(130px,.48fr);
  gap:clamp(32px,4vw,64px);
  align-items:start;
}

.footer-brand h2{
  max-width:720px;
  margin-bottom:22px;
  font-size:clamp(44px,7vw,112px);
  line-height:.9;
  letter-spacing:-.08em;
}

.footer-brand p{
  max-width:560px;
  color:var(--muted-dark);
  font-size:clamp(18px,1.7vw,23px);
  line-height:1.42;
}

.footer-col h3{
  margin-bottom:20px;
  color:var(--yellow);
  font-size:11px;
  font-weight:800;
  letter-spacing:.17em;
  text-transform:uppercase;
}

.footer-nav a,
.footer-languages a{
  display:block;
  width:max-content;
  max-width:100%;
  margin-bottom:12px;
  color:var(--muted-dark);
  font-weight:650;
  text-decoration:none;
  transition:color .15s ease,transform .15s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-languages a:hover,
.footer-languages a:focus-visible{
  color:var(--yellow);
  transform:translateX(3px);
}

.footer-contact{
  min-width:0;
}

.footer-contact-link{
  min-height:70px;
  margin:0 0 12px;
  border:1px solid rgba(247,243,231,.16);
  background:rgba(255,255,255,.035);
  color:var(--paper);
  text-decoration:none;
  transition:border-color .15s ease,background .15s ease,transform .15s ease;
}

.footer-contact-link:not(.footer-email-reveal),
.footer-email-reveal > summary{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 20px;
  gap:13px;
  align-items:center;
  min-height:68px;
  padding:13px 14px;
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible,
.footer-email-reveal:focus-within{
  border-color:var(--yellow);
  background:rgba(255,238,88,.08);
  transform:translateY(-2px);
}

.footer-email-reveal{
  display:block;
  overflow:hidden;
}

.footer-email-reveal > summary{
  list-style:none;
  cursor:pointer;
  outline:none;
}

.footer-email-reveal > summary::-webkit-details-marker{
  display:none;
}

.footer-email-reveal > summary::marker{
  content:"";
}

.footer-contact-icon{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  background:var(--yellow);
  color:var(--black);
}

.footer-contact-icon svg,
.footer-contact-arrow,
.footer-email-action svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.footer-contact-icon-linkedin svg{
  stroke-width:2;
}

.footer-contact-copy{
  display:grid;
  min-width:0;
  gap:4px;
}

.footer-contact-copy small{
  color:rgba(247,243,231,.52);
  font-size:10px;
  font-weight:750;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.footer-contact-copy strong{
  overflow-wrap:anywhere;
  color:var(--paper);
  font-size:13px;
  font-weight:750;
  line-height:1.25;
}

.footer-email-copy-stack{
  display:grid;
  min-width:0;
}

.footer-email-copy-stack > strong{
  grid-area:1/1;
  transition:opacity .16s ease,transform .16s ease,color .16s ease;
}

.footer-email-address{
  opacity:0;
  color:var(--yellow);
  transform:translateY(5px);
  pointer-events:none;
}

.footer-email-reveal:hover .footer-email-prompt,
.footer-email-reveal:focus-within .footer-email-prompt,
.footer-email-reveal[open] .footer-email-prompt{
  opacity:0;
  transform:translateY(-5px);
}

.footer-email-reveal:hover .footer-email-address,
.footer-email-reveal:focus-within .footer-email-address,
.footer-email-reveal[open] .footer-email-address{
  opacity:1;
  transform:translateY(0);
}

.footer-contact-arrow{
  width:18px;
  height:18px;
  color:rgba(247,243,231,.52);
  transition:color .15s ease,transform .15s ease;
}

.footer-contact-link:hover .footer-contact-arrow,
.footer-contact-link:focus-visible .footer-contact-arrow,
.footer-email-reveal:focus-within .footer-contact-arrow{
  color:var(--yellow);
  transform:translateX(2px);
}

.footer-contact-link:hover .footer-contact-arrow-external,
.footer-contact-link:focus-visible .footer-contact-arrow-external{
  transform:translate(2px,-2px);
}

.footer-email-reveal:hover .footer-email-chevron,
.footer-email-reveal:focus-within .footer-email-chevron{
  transform:translateY(2px);
}

.footer-email-reveal[open] .footer-email-chevron{
  color:var(--yellow);
  transform:rotate(180deg);
}

.footer-email-action{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:44px;
  padding:11px 15px 12px 69px;
  border-top:1px solid rgba(247,243,231,.13);
  color:var(--paper);
  font-size:12px;
  font-weight:750;
  text-decoration:none;
  transition:background .15s ease,color .15s ease;
}

.footer-email-action:hover,
.footer-email-action:focus-visible{
  background:var(--yellow);
  color:var(--black);
}

.footer-email-action svg{
  width:17px;
  height:17px;
}

.footer-bottom{
  display:flex;
  justify-content:space-between;
  gap:24px;
  margin-top:80px;
  padding-top:24px;
  border-top:1px solid var(--line-dark);
  color:rgba(247,243,231,.48);
  font-size:13px;
}

.footer-mark{
  width:100%;
  height:2px;
  margin-top:44px;
  background:linear-gradient(90deg,transparent,var(--yellow),transparent);
}

.card{position:relative}
.card:after{content:"";position:absolute;right:18px;bottom:18px;width:90px;height:70px;opacity:.18;background:linear-gradient(135deg,transparent 45%,var(--yellow) 46% 54%,transparent 55%)}
.dark .card:after{opacity:.28}
.grid.three .card:first-child:after{background:url('/visuals/urban-grid.svg') center/cover no-repeat;width:120px;height:76px;border-radius:16px}
.grid.three .card:nth-child(2):after,.grid.two .card:first-child:after{background:url('/visuals/operations-layer.svg') center/cover no-repeat;width:120px;height:76px;border-radius:16px}
.grid.three .card:nth-child(3):after{background:url('/visuals/knowledge-graph.svg') center/cover no-repeat;width:120px;height:76px;border-radius:16px}

@media(max-width:1180px){
  .footer-grid{
    grid-template-columns:minmax(320px,1.2fr) minmax(130px,.5fr) minmax(280px,.9fr);
  }
  .footer-languages{
    grid-column:2;
  }
}

@media(max-width:840px){
  .footer-grid{
    grid-template-columns:1fr 1fr;
  }
  .footer-brand{
    grid-column:1/-1;
  }
  .footer-contact{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
  }
  .footer-contact h3{
    grid-column:1/-1;
    margin-bottom:0;
  }
  .footer-languages{
    grid-column:auto;
  }
}

@media(max-width:580px){
  .footer-grid{
    grid-template-columns:1fr;
  }
  .footer-brand,
  .footer-contact,
  .footer-languages{
    grid-column:auto;
  }
  .footer-contact{
    display:block;
  }
  .footer-contact h3{
    margin-bottom:20px;
  }
  .footer-bottom{
    display:grid;
    margin-top:56px;
  }
}

@media(hover:none){
  .footer-email-reveal:hover .footer-email-prompt{
    opacity:1;
    transform:none;
  }
  .footer-email-reveal:hover .footer-email-address{
    opacity:0;
    transform:translateY(5px);
  }
  .footer-email-reveal[open] .footer-email-prompt{
    opacity:0;
    transform:translateY(-5px);
  }
  .footer-email-reveal[open] .footer-email-address{
    opacity:1;
    transform:translateY(0);
  }
}
