/* The closing invitation and directory share the same frame as the benefits. */
#footer {
  --footer-line: #ffffff30;
  padding: 42px var(--gutter) 0;
  background: var(--blue);
  color: #f6f7ee;
}
#footer .footer-shell { max-width: 1360px; margin-inline: auto; }
#footer .footer-heading {
  padding-bottom: 24px;
  gap: 32px;
  align-items: center;
  border-color: var(--footer-line);
}
#footer .footer-heading .mono { font-size: 10px; letter-spacing: .04em; color: #c6d3ff; }
#footer .footer-heading > .mono:first-child { gap: 11px; }
#footer .footer-heading > .mono:first-child::before { width: 5px; height: 5px; }
#footer .footer-invitation {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 62px 0;
}
#footer .footer-pitch h2 {
  font-size: clamp(60px, 6.1vw, 94px);
  line-height: 1.02;
  letter-spacing: -.06em;
  text-wrap: balance;
}
#footer .footer-pitch h2 > span { color: #e5f477; }
#footer .footer-pitch > p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 440px;
  margin-top: 28px;
  color: #d0dbff;
  letter-spacing: -.012em;
}
#footer .footer-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 320px;
  max-width: 100%;
  min-height: 64px;
  padding: 18px 22px;
  margin-top: 30px;
  gap: 30px;
  font-size: 17px;
  background: #e5f477;
  color: #1b2823;
  transition: background .2s, transform .2s;
}
#footer .footer-primary > span { font-size: 28px; line-height: 1; border-left: 1px solid #1b28232e; padding-left: 21px; }
#footer .footer-primary:hover { background: #f6f7ee; transform: translateY(-2px); }
#footer .footer-primary:hover > span { transform: none; }
#footer .footer-privacy {
  font-size: 10px;
  line-height: 1.75;
  letter-spacing: .035em;
  margin-top: 18px;
  color: #c6d3ff;
  max-width: 400px;
}

/* A small material study makes the promise tangible. */
#footer .footer-study {
  display: block;
  width: 100%;
  max-width: 560px;
  padding: 26px 24px 24px;
  background: #2345cd;
  border: 1px solid #ffffff29;
  position: relative;
  justify-self: end;
  align-self: center;
  color: #d0dbff;
}
#footer .footer-study::before, #footer .footer-study::after {
  content: "+";
  position: absolute;
  font: 15px var(--mono);
  color: #d0dbff90;
  line-height: 1;
}
#footer .footer-study::before { top: -8px; left: -5px; }
#footer .footer-study::after { right: -5px; bottom: -8px; }
#footer .footer-study svg { display: block; width: 100%; height: auto; overflow: visible; }
#footer .footer-study text { font: 12px var(--mono); letter-spacing: .04em; }
#footer .footer-study > p {
  display: block;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -.025em;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid #ffffff26;
  text-align: center;
}
#footer .footer-study > p br { display: none; }
#footer .footer-study > p > span { color: #e5f477; margin-left: .25em; }

/* A compact directory, with a readable destination for every link. */
#footer .footer-directory {
  display: grid;
  grid-template-columns: .9fr 1.12fr .84fr;
  gap: 64px;
  padding: 38px 0 42px;
  align-items: start;
  border-color: var(--footer-line);
}
#footer .footer-identity { display: block; min-width: 0; }
#footer .footer-logo {
  display: inline-flex;
  align-items: center;
  font-size: 142px;
  line-height: 1.08;
  letter-spacing: -.085em;
  font-weight: 500;
  gap: 20px;
  padding: 0 8px 0 0;
}
#footer .footer-logo > svg { width: .29em; height: .29em; margin-top: .12em; }
#footer .footer-identity > p { font-size: 14px; line-height: 1.5; margin: 16px 0 0; max-width: none; color: #c6d3ff; }
#footer .footer-label {
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .04em;
  color: #c6d3ff;
  min-height: 0;
  margin-bottom: 18px;
}
#footer .footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  padding-top: 12px;
  min-width: 0;
}
#footer .footer-nav .footer-label { grid-column: 1/-1; }
#footer .footer-nav > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  min-height: 52px;
  font-size: 16px;
  line-height: 1.4;
  border-bottom: 1px solid var(--footer-line);
  transition: color .2s, border-color .2s;
}
#footer .footer-nav > a > span:last-child { font-size: 9px; color: #c6d3ff; }
#footer .footer-nav > a:hover { color: #e5f477; border-color: #e5f47799; }
#footer .footer-next { padding-top: 12px; }
#footer .footer-next > p { font-size: 25px; letter-spacing: -.025em; line-height: 1.25; }
#footer .footer-next > p > span { color: #e5f477; }
#footer .footer-questions {
  display: flex;
  width: 100%;
  max-width: 250px;
  justify-content: space-between;
  min-height: 44px;
  gap: 20px;
  padding: 10px 0;
  margin-top: 18px;
  font-size: 14px;
  border-color: var(--footer-line);
}
#footer .footer-questions > span { font-size: 22px; }
#footer .footer-colophon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0 18px;
  gap: 24px;
  border-color: var(--footer-line);
  color: #c6d3ff;
}
#footer .footer-colophon .mono { font-size: 9px; letter-spacing: .035em; }
#footer .footer-colophon > a { font-size: 12px; gap: 14px; min-height: 44px; }
#footer .footer-colophon > a > span { width: 32px; height: 32px; font-size: 20px; }

@media(max-width:1100px) {
  #footer .footer-invitation { gap: 44px; }
  #footer .footer-pitch h2 { font-size: 6.3vw; }
  #footer .footer-pitch > p { font-size: 17px; }
  #footer .footer-study { padding: 20px 18px; }
  #footer .footer-study > p { font-size: 20px; margin-top: 18px; padding-top: 18px; }
  #footer .footer-primary { font-size: 16px; min-width: 300px; }
  #footer .footer-directory { gap: 36px; grid-template-columns: .9fr 1.1fr .9fr; }
  #footer .footer-logo { font-size: 118px; gap: 16px; }
  #footer .footer-nav { gap: 0 18px; }
  #footer .footer-nav > a { font-size: 14px; gap: 8px; }
  #footer .footer-next > p { font-size: 23px; }
  #footer .footer-questions { font-size: 13px; }
}
@media(max-width:800px) {
  #footer { padding-top: 34px; }
  #footer .footer-heading .mono { font-size: 9px; }
  #footer .footer-invitation { grid-template-columns: 1fr; gap: 38px; padding: 48px 0; }
  #footer .footer-pitch h2 { font-size: clamp(46px, 8.6vw, 66px); }
  #footer .footer-pitch > p { font-size: 17px; max-width: 470px; margin-top: 24px; }
  #footer .footer-primary { margin-top: 26px; }
  #footer .footer-study { max-width: 540px; justify-self: center; padding: 26px; }
  #footer .footer-study text { font-size: 14px; }
  #footer .footer-study > p { font-size: 24px; }
  #footer .footer-directory { grid-template-columns: 1fr 1fr; gap: 32px 40px; padding-block: 32px; }
  #footer .footer-identity { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  #footer .footer-logo { font-size: 124px; }
  #footer .footer-identity > p { max-width: 160px; margin: 0; font-size: 15px; }
  #footer .footer-nav { grid-template-columns: 1fr; padding: 0; }
  #footer .footer-nav > a { font-size: 16px; min-height: 46px; padding: 11px 0; }
  #footer .footer-next { padding: 0; }
  #footer .footer-label { font-size: 9px; margin-bottom: 16px; }
  #footer .footer-next > p { font-size: 25px; }
  #footer .footer-questions { font-size: 14px; }
}
@media(max-width:500px) {
  #footer { padding-top: 28px; }
  #footer .footer-heading { padding-bottom: 20px; }
  #footer .footer-heading > .mono:last-child { display: none; }
  #footer .footer-heading .mono { font-size: 9px; }
  #footer .footer-invitation { padding: 38px 0 40px; gap: 34px; }
  #footer .footer-pitch h2 { font-size: 10.7vw; line-height: 1.06; letter-spacing: -.055em; }
  #footer .footer-pitch > p { font-size: 16px; line-height: 1.65; margin-top: 22px; }
  #footer .footer-primary { min-width: 0; width: 100%; font-size: 15px; min-height: 62px; padding: 17px 20px; gap: 20px; }
  #footer .footer-primary > span { font-size: 26px; padding-left: 16px; }
  #footer .footer-privacy { font-size: 10px; line-height: 1.8; max-width: 290px; margin-top: 16px; }
  #footer .footer-study { padding: 20px 16px; }
  #footer .footer-study text { font-size: 17px; letter-spacing: 0; }
  #footer .footer-study > p { font-size: 21px; line-height: 1.25; margin-top: 18px; padding-top: 18px; }
  #footer .footer-study > p br { display: block; }
  #footer .footer-study > p > span { margin-left: 0; }
  #footer .footer-directory { gap: 30px 28px; }
  #footer .footer-logo { font-size: 108px; gap: 15px; }
  #footer .footer-identity { gap: 24px; }
  #footer .footer-identity > p { max-width: 100px; font-size: 13px; }
  #footer .footer-label { font-size: 9px; line-height: 1.7; min-height: 32px; margin-bottom: 10px; }
  #footer .footer-nav > a { font-size: 14px; gap: 8px; }
  #footer .footer-nav > a > span:last-child { font-size: 9px; }
  #footer .footer-next > p { font-size: 22px; line-height: 1.3; }
  #footer .footer-questions { font-size: 12px; gap: 8px; margin-top: 18px; }
  #footer .footer-questions > span { font-size: 20px; }
  #footer .footer-colophon { flex-wrap: wrap; gap: 0 14px; padding-block: 14px 20px; }
  #footer .footer-colophon > .mono:nth-child(2) { order: 3; width: 100%; font-size: 8px; }
  #footer .footer-colophon > a { margin-left: auto; font-size: 11px; gap: 12px; }
}
@media(max-width:360px) {
  #footer .footer-pitch h2 { font-size: 11vw; }
  #footer .footer-primary { padding-inline: 16px; gap: 12px; font-size: 14px; }
  #footer .footer-logo { font-size: 96px; gap: 12px; }
  #footer .footer-identity > p { font-size: 12px; }
  #footer .footer-directory { column-gap: 22px; }
  #footer .footer-next > p { font-size: 20px; }
  #footer .footer-nav > a { font-size: 13px; }
  #footer .footer-study > p { font-size: 20px; }
}
@media(prefers-reduced-motion:reduce) {
  #footer .footer-primary:hover { transform: none; }
}
