/* The approved homepage footer, shared across mobile pages only. */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter/inter-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter/inter-latin-italic-variable.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
}
#home-start-title > .home-start-desktop-copy { display: contents; }
#home-start-title > .home-start-mobile-copy,
.footer-email-mobile-label { display: none; }
@media (max-width: 620px) {
  body .site-footer.home-footer {
    --body: "Inter", "Helvetica Neue", Arial, sans-serif;
    --mono: "Inter", "Helvetica Neue", Arial, sans-serif;
    --display: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-family: var(--body);
  }
  html.mobile-footer-surface,
  html.mobile-footer-surface body:has(.home-footer) {
    background-color: var(--footer-plum);
    background-image: url("assets/textures/paper-grain.png");
  }
  body:has(.home-footer)::after { display: none; }
  /* Restore the original fullscreen footer; keep the new texture and phrase. */
  body .site-footer.home-footer {
    background-image: url("assets/textures/paper-grain.png");
  }

  body .site-footer.home-footer .home-start-cta,
  body .site-footer.home-footer .home-start-cta-inner,
  body .site-footer.home-footer .footer-grid {
    background: transparent;
  }

  body .site-footer.home-footer .home-start-cta h2 {
    top: 8.3svh;
    left: 8vw;
    width: calc(100% - 16vw);
    font-size: clamp(30px, 10vw, 50px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0;
    text-align: left;
  }

  body .site-footer.home-footer .home-start-link {
    top: calc(clamp(420px, 53.5svh, 470px) - 16px);
  }

  body .site-footer.home-footer .footer-grid {
    align-items: end;
  }

  body .site-footer.home-footer .footer-email-note {
    display: inline-flex;
    justify-self: start;
    margin: 0 0 10px;
    font-size: clamp(12px, 3.1vw, 15px);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: 0.02em;
  }

  body .site-footer.home-footer .footer-email-links { display: none; }

  body .footer-email-note .footer-email-mobile-label {
    font: inherit;
    letter-spacing: inherit;
  }

  body .footer-email-arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 5px;
    vertical-align: baseline;
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  #home-start-title > .home-start-desktop-copy { display: none; }
  #home-start-title > .home-start-mobile-copy { display: block; }

  #home-start-title .footer-idea-rotator {
    display: grid;
    width: 100%;
    overflow: hidden;
    padding-block: 2px;
    font-style: italic;
    font-weight: 500;
  }

  #home-start-title .footer-idea {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translate3d(0, 7px, 0);
    transition: opacity 400ms ease, transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  #home-start-title .footer-idea.is-active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  body .footer-email-desktop-label { display: none; }
  body .footer-email-mobile-label { display: inline; }

  body .site-footer.home-footer[data-footer-arrival] .home-start-cta-inner,
  body .site-footer.home-footer[data-footer-arrival] .footer-grid {
    opacity: 0.88;
    transform: none;
    transition: opacity 650ms ease;
    transition-delay: 0ms;
  }

  body .site-footer.home-footer[data-footer-arrival].is-footer-arrived .home-start-cta-inner,
  body .site-footer.home-footer[data-footer-arrival].is-footer-arrived .footer-grid {
    opacity: 1;
    transform: none;
  }

  body .home-footer .footer-grid .footer-name,
  body .home-footer .footer-grid .footer-note p,
  body .home-footer .footer-grid .footer-links { animation: none; }
  .js body:has(.home-footer) .site-header.is-over-mobile-footer:not(.is-drawer-open) {
    background: var(--footer-plum) url("assets/textures/paper-grain.png");
    color: var(--plum-soft);
  }
  .js body:has(.home-footer) .site-header.is-over-mobile-footer:not(.is-drawer-open) .brand,
  .js body:has(.home-footer) .site-header.is-over-mobile-footer:not(.is-drawer-open) .nav-toggle { color: var(--plum-soft); }
}
@media (max-width: 620px) and (max-height: 680px) {
  body .site-footer.home-footer .home-start-cta h2 { top: 54px; font-size: 27px; line-height: 1.2; }
  body .site-footer.home-footer .home-start-link { top: 54svh; width: clamp(220px, 62vw, 260px); }
}
@media (prefers-reduced-motion: reduce) {
  #home-start-title .footer-idea { transition: none; }
  body .site-footer.home-footer[data-footer-arrival] .home-start-cta-inner,
  body .site-footer.home-footer[data-footer-arrival] .footer-grid { opacity: 1; transform: none; transition: none; }
}
