/* Shared responsive and footer refinements kept separate from the generated base stylesheet. */
html,
body {
  max-width: 100%;
}

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

.case-page--spooky,
.spooky-case-v2 {
  overflow-x: clip;
}

/* Footer: identity on the left, structured company information on the right. */
.site-footer .footer__top {
  grid-template-columns: minmax(280px, 0.72fr) minmax(620px, 1.28fr);
  align-items: start;
  gap: clamp(55px, 7vw, 110px);
  min-height: 205px;
}

.footer__identity {
  display: grid;
  gap: 32px;
  min-width: 0;
}

.site-footer .footer__identity .brand {
  justify-self: start;
  min-height: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.site-footer .footer__identity > p {
  max-width: 350px;
  margin: 0;
  color: #ffffffa8;
  font-size: 13px;
  line-height: 1.65;
}

.footer__information {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(220px, 1fr) minmax(245px, 1.12fr);
  gap: clamp(30px, 4vw, 64px);
  min-width: 0;
  padding: 6px 0 8px clamp(30px, 4vw, 62px);
  border-left: 1px solid #ffffff2b;
}

.footer__company-details,
.footer__address,
.footer__contact {
  display: grid;
  align-content: start;
  justify-self: stretch;
  gap: 8px;
  margin: 0;
  color: #ffffffa8;
  font-size: 11px;
  font-style: normal;
  line-height: 1.55;
}

.footer__detail-label {
  margin-bottom: 9px;
  color: var(--berry);
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer__company-name {
  margin-bottom: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.site-footer .footer__contact a {
  width: fit-content;
  max-width: 100%;
  padding-bottom: 3px;
  border-bottom: 1px solid #ffffff5c;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.site-footer .footer__contact a:hover {
  color: #fff;
  border-bottom-color: var(--berry);
}

/* The services section previously used a temporary W ✦ S mark. */
.atelier-emblem {
  display: block;
  width: 180px;
  height: auto;
  border: 0;
  border-radius: 0;
}

.atelier-emblem img {
  display: block;
  width: 100%;
  height: auto;
}

.form-privacy-note {
  max-width: 690px;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.form-privacy-note a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--berry);
  text-underline-offset: 3px;
}

.form-privacy-note a:hover {
  color: var(--berry);
}

@media (max-width: 1100px) and (min-width: 701px) {
  .site-footer .footer__top {
    grid-template-columns: minmax(230px, 0.65fr) minmax(0, 1.35fr);
    gap: 48px;
  }

  .footer__information {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .site-header {
    z-index: 1000;
  }

  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .site-header__inner .brand {
    justify-self: start;
  }

  .menu-button {
    position: relative;
    z-index: 1002;
    justify-self: end;
  }

  .mobile-menu {
    position: fixed;
    z-index: 1001;
    top: 70px !important;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: 100vw;
    min-height: calc(100dvh - 70px);
    padding: 42px 24px 32px;
    overflow-y: auto;
    visibility: hidden;
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 18px 35px rgb(0 0 0 / 24%);
  }

  .mobile-menu.is-open {
    visibility: visible;
  }

  .mobile-menu nav a {
    border-bottom-color: rgb(255 255 255 / 32%);
  }

  .mobile-menu > p {
    color: rgb(255 255 255 / 68%);
  }

  .arcane-stage {
    width: 100%;
    min-height: 410px;
  }

  .arcane-stage__frame--wizard {
    width: 64%;
    left: -5%;
  }

  .arcane-stage__frame--berries {
    width: 50%;
    height: 70%;
    top: 15%;
    right: 0;
  }

  .spooky-case-v2 .spooky-browser--hero,
  .spooky-case-v2 .spooky-flow-card .spooky-browser {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .spooky-case-v2 .spooky-browser--hero {
    transform: none !important;
  }

  .site-footer .footer__top {
    grid-template-columns: 1fr !important;
    gap: 34px;
  }

  .footer__identity {
    gap: 22px;
  }

  .footer__information {
    grid-template-columns: 1fr;
    gap: 27px;
    padding: 29px 0 0;
    border-top: 1px solid #ffffff2b;
    border-left: 0;
  }

  .footer__contact {
    grid-column: auto;
    justify-self: start;
  }
}
