@layer sections {
  .site-footer {
    padding: 9vh 8vw 4.5vh;
    background: var(--color-footer, #37556b);
    color: var(--color-white, #ffffff);
    font-family: var(--font-sans, "source-han-sans-japanese", system-ui, sans-serif);
  }

  .site-footer *,
  .site-footer *::before,
  .site-footer *::after {
    box-sizing: border-box;
  }

  .site-footer a {
    color: inherit;
    text-decoration: none;
  }

  .site-footer img {
    display: block;
    max-width: 100%;
    height: auto;
  }

  .site-footer__inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    width: min(100%, var(--container-max, 1440px));
    max-width: none;
    margin-inline: auto;
  }

  .site-footer__logo {
    width: clamp(273.16px, 33.63vw, 430px);
    line-height: 0;
    opacity: 1;
  }

  .site-footer__logo:hover,
  .site-footer__logo:active,
  .site-footer__logo:visited {
    opacity: 1;
  }

  .site-footer .footer-menu {
    display: block;
    padding-block-start: 2px;
  }

  .site-footer .footer-menu__title {
    margin: 0 0 15px;
    font-size: 8px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.18em;
    opacity: 0.48;
  }

  .site-footer .footer-menu__item {
    display: block;
    font-size: 9px;
    font-weight: 400;
    line-height: 2.2;
    letter-spacing: 0.11em;
    opacity: 0.7;
    white-space: nowrap;
    transition: opacity 180ms ease;
  }

  .site-footer .footer-menu__item:hover {
    opacity: 1;
  }

  .site-footer .footer-menu__item:active {
    opacity: 0.82;
  }

  .site-footer .footer-menu__item:visited {
    opacity: 0.7;
  }

  .site-footer .footer-legal {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 8px;
    line-height: normal;
    letter-spacing: 0.11em;
  }

  .site-footer .footer-legal a {
    opacity: 0.7;
    transition: opacity 180ms ease;
  }

  .site-footer .footer-legal a:hover {
    opacity: 1;
  }

  .site-footer .footer-legal a:active {
    opacity: 0.82;
  }

  .site-footer .footer-legal a:visited {
    opacity: 0.7;
  }

  .site-footer .footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .site-footer .footer-social a {
    display: inline-flex;
    width: 19px;
    height: 19px;
    opacity: 0.7;
    transition: opacity 180ms ease;
  }

  .site-footer .footer-social a:hover {
    opacity: 1;
  }

  .site-footer .footer-social a:active,
  .site-footer .footer-social a:visited {
    opacity: 0.7;
  }

  .site-footer .footer-social img {
    width: 100%;
    height: 100%;
  }

  .site-footer .footer-social a[aria-label="Bluesky"] img {
    transform: translateY(0.5px) scale(0.94);
    transform-origin: center;
  }

  .site-footer .footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: max-content;
    justify-self: start;
    align-self: start;
    min-height: 29px;
    padding: 8px 14px 8px 13px;
    border: 0;
    border-radius: 999px;
    background: var(--color-paper-warm, #f2efe7);
    color: var(--color-ink, #37556b);
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.14em;
    opacity: 0.88;
    transition: opacity 180ms ease;
  }

  .site-footer .footer-contact__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
  }

  .site-footer .footer-contact:hover {
    opacity: 0.72;
  }

  .site-footer .footer-contact:active {
    opacity: 0.82;
  }

  .site-footer .footer-contact:visited {
    opacity: 0.88;
  }

  .site-footer__meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin: 0;
    padding-block-start: 10px;
    border-top: 1px solid rgb(255 255 255 / 0.18);
    font-size: 9px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.1em;
    opacity: 0.56;
  }

  .site-footer__mantra {
    letter-spacing: 0.13em;
    opacity: 0.78;
  }

  .site-footer__copyright {
    margin: 0;
  }

  @media (min-width: 916px) {
    .site-footer__logo {
      grid-column: 2 / span 5;
      grid-row: 1 / span 2;
      align-self: start;
    }

    .site-footer .footer-menu[aria-label="Studio"] {
      grid-column: 8 / span 2;
      grid-row: 1;
    }

    .site-footer .footer-menu[aria-label="Services"] {
      grid-column: 10 / span 2;
      grid-row: 1;
    }

    .site-footer .footer-contact {
      grid-column: 10 / span 2;
      grid-row: 2;
      margin-block-start: 0;
    }

    .site-footer .footer-legal {
      grid-column: 10 / span 2;
      grid-row: 3;
    }

    .site-footer .footer-social {
      grid-column: 10 / span 2;
      grid-row: 4;
      margin-block-start: 12px;
    }

    .site-footer__meta {
      grid-column: 2 / span 10;
      grid-row: 6;
      margin-block-start: -12px;
    }
  }

  @media (max-width: 540px) {
    .site-footer {
      padding: 9svh 24px 5svh;
    }

    .site-footer__inner {
      grid-template-columns: 1fr 114px 114px;
      gap: 0 14px;
    }

    .site-footer__logo {
      grid-column: 1 / -1;
      grid-row: 1;
      width: 202px;
      margin-inline-start: 20px;
    }

    .site-footer__logo img {
      width: clamp(170px, 48.3vw, 202px);
      max-width: none;
    }

    .site-footer .footer-menu[aria-label="Studio"] {
      grid-column: 2;
      grid-row: 2;
      width: 114px;
      margin-block-start: 8svh;
    }

    .site-footer .footer-menu[aria-label="Services"] {
      grid-column: 3;
      grid-row: 2;
      width: 114px;
      margin-block-start: 8svh;
    }

    .site-footer .footer-menu__item {
      display: block;
      padding-block: 3.6px;
      line-height: 1.4;
      white-space: normal;
    }

    .site-footer .footer-contact {
      grid-column: 1 / -1;
      grid-row: 3;
      justify-self: center;
      margin-block-start: 7svh;
      min-height: 40px;
      padding: 12px 18px;
      border: 1px solid var(--color-dictionary-text, #f2efe7);
      background: var(--color-paper-warm, #f2efe7);
      font-size: 11px;
      line-height: 1;
      letter-spacing: 0.14em;
    }

    .site-footer .footer-legal {
      grid-column: 1 / -1;
      grid-row: 4;
      justify-self: center;
      flex-direction: row;
      gap: 18px;
      width: max-content;
      margin-block-start: 5svh;
      font-size: 10px;
      line-height: 2.1;
      letter-spacing: 0.1em;
    }

    .site-footer .footer-social {
      grid-column: 1 / -1;
      grid-row: 5;
      justify-self: center;
      margin-block-start: 2svh;
    }

    .site-footer__meta {
      grid-column: 1 / -1;
      grid-row: 7;
      justify-self: center;
      width: 100%;
      margin-block-start: 12px;
      border-top-color: rgb(242 239 231 / 0.16);
      opacity: 0.52;
    }
  }

  @media (min-width: 541px) and (max-width: 915px) {
    .site-footer {
      padding: 8vh 6.2vw 5vh;
    }

    .site-footer__inner {
      gap: 12px 1.6vw;
    }

    .site-footer__logo {
      grid-column: 2 / span 5;
      grid-row: 1 / span 2;
      width: clamp(273.16px, 35.6vw, 344.4px);
    }

    .site-footer .footer-menu[aria-label="Studio"] {
      grid-column: 6 / span 2;
      grid-row: 3;
      margin-block-start: 4vh;
    }

    .site-footer .footer-menu[aria-label="Services"] {
      grid-column: 9 / span 3;
      grid-row: 3;
      margin-block-start: 4vh;
    }

    .site-footer .footer-contact {
      grid-column: 9 / span 3;
      grid-row: 4;
      margin-block-start: 25px;
    }

    .site-footer .footer-legal {
      grid-column: 9 / span 3;
      grid-row: 5;
      margin-block-start: 3vh;
    }

    .site-footer .footer-social {
      grid-column: 9 / span 3;
      grid-row: 6;
      margin-block-start: 12px;
    }

    .site-footer__meta {
      grid-column: 2 / span 10;
      grid-row: 8;
      margin-block-start: 0;
    }
  }

  @media (prefers-reduced-motion: reduce) {

    .site-footer .footer-menu__item,
    .site-footer .footer-contact,
    .site-footer .footer-legal a,
    .site-footer .footer-social a {
      transition: none;
    }
  }
}