/* 🧭 Footer rail authority
   Footer owns its own spacing here. Keep homepage/test overrides away from footer geometry.
   Clean rebuild: one desktop block, one tablet block, one mobile block. */
:root {
  --nexus-footer-rail-x: clamp(1.65rem, 2.25vw, 3.35rem);
  --nexus-footer-right-safe-x: 0px;
  --nexus-footer-address-width: clamp(22rem, 28vw, 30rem);
  --nexus-footer-content-max: 96rem;
  --nexus-footer-mobile-x: clamp(1.1rem, 5vw, 1.55rem);
}

.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  scroll-margin-top: clamp(5.75rem, 8vw, 7rem);
  padding: clamp(1.55rem, 2.6vw, 2.45rem) 0 clamp(4.25rem, 6vw, 5.75rem);
  background:
    radial-gradient(900px 560px at 50% 42%, rgba(64, 94, 255, 0.13), transparent 64%),
    radial-gradient(760px 440px at 22% 42%, rgba(34, 211, 238, 0.06), transparent 68%),
    linear-gradient(180deg, rgba(9, 18, 48, 0.98), rgba(4, 10, 30, 0.96)),
    linear-gradient(90deg, rgba(50, 78, 210, 0.07), rgba(19, 154, 210, 0.04));
}

@supports not (overflow: clip) {
  .site-footer {
    overflow: hidden;
  }
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  will-change: transform;
  transform: translate3d(var(--footer-ambient-glow-x, 0), var(--footer-ambient-glow-y, 0), 0);
  background:
    radial-gradient(circle at 16% 14%, rgba(34, 211, 238, 0.06), transparent 20%),
    radial-gradient(circle at 82% 18%, rgba(99, 102, 241, 0.06), transparent 24%);
  filter: blur(18px);
  opacity: 0.8;
}

.site-footer > .container,
.site-footer .container {
  box-sizing: border-box;
  width: min(100%, var(--nexus-footer-content-max));
  max-width: var(--nexus-footer-content-max);
  margin-inline: auto;
  padding-inline: var(--nexus-footer-rail-x);
}

.site-footer__shell {
  position: relative;
  isolation: isolate;
  z-index: 1;
  width: 100%;
  margin-inline: 0;
  padding: 0 0 clamp(0.55rem, 1vw, 0.85rem);
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.site-footer__topline,
.site-footer__bottomline {
  position: relative;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14) 12%, rgba(255, 255, 255, 0.14) 88%, transparent);
}

/* ===== Background Scanner Layer ===== */
.footer-scanner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
  isolation: isolate;
  contain: paint;
  backface-visibility: hidden;
  transform: none;
}

.site-footer__main::before {
  content: none;
}

.footer-scanner::before,
.footer-scanner::after {
  content: "";
  position: absolute;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(125, 239, 213, 0.82);
  box-shadow:
    0 0 0 1px rgba(124, 240, 200, 0.10),
    0 0 12px rgba(124, 240, 200, 0.22),
    0 0 26px rgba(34, 211, 238, 0.11);
  opacity: 0.34;
  z-index: 0;
  will-change: transform, opacity;
}

.footer-scanner::before {
  left: clamp(7.5rem, 17vw, 15rem);
  top: clamp(8rem, 46%, 15rem);
  animation: footer-satellite-drift-left 11s ease-out infinite;
}

.footer-scanner::after {
  right: clamp(4.8rem, 8vw, 8.5rem);
  bottom: clamp(4.6rem, 16%, 7.5rem);
  width: 0.36rem;
  height: 0.36rem;
  animation: footer-satellite-drift-right 13s ease-out 1.4s infinite;
}

.footer-scanner__satellite {
  position: absolute;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(125, 239, 213, 0.72);
  box-shadow:
    0 0 0 1px rgba(125, 239, 213, 0.10),
    0 0 10px rgba(125, 239, 213, 0.19),
    0 0 22px rgba(34, 211, 238, 0.10);
  opacity: 0.32;
  z-index: 2;
  pointer-events: none;
  will-change: transform, opacity;
}

.footer-scanner__satellite--left-mid {
  left: clamp(9rem, 18vw, 18rem);
  top: 46%;
  animation: footer-satellite-left-mid 12s ease-in-out infinite;
}

.footer-scanner__satellite--right-low {
  right: clamp(5rem, 10vw, 10rem);
  bottom: clamp(3.8rem, 9vw, 7rem);
  animation: footer-satellite-right-low 14s ease-in-out 1.6s infinite;
}

.footer-scanner__svg {
  position: relative;
  z-index: 1;
  display: block;
  width: min(1180px, 108vw);
  max-width: none;
  aspect-ratio: 1 / 1;
  height: auto;
  opacity: 0.48;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.scanner-ring {
  fill: none;
  stroke: rgba(65, 186, 255, 0.14);
  stroke-width: 0.82px;
}

.scanner-axis {
  stroke: rgba(65, 186, 255, 0.11);
  stroke-width: 0.78px;
}

.scanner-core-glow {
  fill: rgba(60, 92, 255, 0.07);
  filter: blur(7px) drop-shadow(0 0 34px rgba(66, 91, 255, 0.18));
  transform-origin: 400px 400px;
  transform: scale(0.42);
}

.scanner-sweep-group {
  transform-origin: 400px 400px;
  transform-box: view-box;
  animation: footer-scanner-rotate 20s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.scanner-sweep-line {
  stroke: rgba(118, 215, 255, 0.18);
  stroke-width: 0.68px;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.1));
  transform-origin: 400px 400px;
  transform: rotate(-10deg);
}

.scanner-sweep-wedge {
  fill: rgba(74, 104, 255, 0.14);
  filter: blur(6px) drop-shadow(0 0 28px rgba(80, 106, 255, 0.16));
  opacity: 0.76;
  transform-origin: 400px 400px;
  transform: rotate(-38deg) scaleX(1.02) scaleY(0.86);
}

@keyframes footer-satellite-drift-left {
  0% { opacity: 0; transform: translate3d(-8px, 10px, 0) scale(0.62); }
  18% { opacity: 0.38; }
  62% { opacity: 0.26; transform: translate3d(18px, -18px, 0) scale(1.04); }
  100% { opacity: 0; transform: translate3d(38px, -34px, 0) scale(1.38); }
}

@keyframes footer-satellite-drift-right {
  0% { opacity: 0; transform: translate3d(10px, 8px, 0) scale(0.58); }
  20% { opacity: 0.36; }
  64% { opacity: 0.24; transform: translate3d(-16px, -18px, 0) scale(1.03); }
  100% { opacity: 0; transform: translate3d(-36px, -36px, 0) scale(1.36); }
}

@keyframes footer-satellite-left-mid {
  0% { opacity: 0; transform: translate3d(-18px, 20px, 0) scale(0.65); }
  18% { opacity: 0.44; }
  55% { opacity: 0.32; transform: translate3d(36px, -18px, 0) scale(1.05); }
  100% { opacity: 0; transform: translate3d(86px, -54px, 0) scale(1.35); }
}

@keyframes footer-satellite-right-low {
  0% { opacity: 0; transform: translate3d(18px, 18px, 0) scale(0.62); }
  20% { opacity: 0.38; }
  58% { opacity: 0.28; transform: translate3d(-32px, -28px, 0) scale(1.04); }
  100% { opacity: 0; transform: translate3d(-78px, -64px, 0) scale(1.32); }
}

@keyframes footer-scanner-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .scanner-sweep-group,
  .footer-scanner__satellite,
  .footer-scanner::before,
  .footer-scanner::after {
    animation: none;
  }
}

/* ===== Footer base content styles ===== */
.site-footer__main {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: grid;
  width: 100%;
  min-width: 0;
}

.site-footer__brand-column {
  min-width: 0;
}

.site-footer__brand-stack {
  min-width: 0;
}

.site-brand--footer .site-brand__mark {
  width: clamp(52px, 5.5vw, 58px);
  height: clamp(52px, 5.5vw, 58px);
}

.site-brand--footer .site-brand__text {
  gap: 0.3rem;
}

.site-brand--footer .site-brand__text strong {
  letter-spacing: 0.22em;
}

.site-brand--footer .site-brand__text span {
  letter-spacing: 0.16em;
}

.site-footer__tagline {
  margin: 0;
  color: rgba(224, 232, 255, 0.62);
  font-size: clamp(0.9rem, 1vw, 0.98rem);
  line-height: 1.65;
}

.site-footer__links-grid {
  display: grid;
  min-width: 0;
}

.site-footer__group {
  min-width: 0;
}

.site-footer__group h3,
.site-footer__legal-row h3 {
  margin: 0 0 clamp(0.75rem, 1.2vw, 1rem);
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer__list {
  display: grid;
  gap: clamp(0.68rem, 1vw, 0.9rem);
}

.site-footer__list a,
.site-footer__legal-list a,
.site-footer__copy {
  color: rgba(224, 232, 255, 0.72);
}

.site-footer__list a {
  text-decoration: none;
  transition: color 260ms ease, opacity 260ms ease;
  font-size: clamp(0.9rem, 1vw, 0.98rem);
}

.site-footer__legal-list a {
  text-decoration: none;
  transition: color 260ms ease, opacity 260ms ease;
  font-size: clamp(0.7rem, 0.78vw, 0.78rem);
  opacity: 0.55;
  white-space: nowrap;
}

.site-footer__list a:hover {
  color: #ffffff;
  opacity: 0.88;
}

.site-footer__legal-list a:hover {
  color: rgba(224, 232, 255, 0.95);
  opacity: 0.72;
}

.site-footer__address {
  margin: 0;
  color: rgba(224, 232, 255, 0.68);
  font-style: normal;
  font-size: clamp(0.88rem, 0.95vw, 0.95rem);
  line-height: 1.6;
}

.site-footer__address span {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.66rem, 0.75vw, 0.7rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__contact-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.45rem;
}

.site-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.site-footer__icon {
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.65;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.site-footer__icon svg {
  width: 100%;
  height: 100%;
}

.site-footer__contact-link {
  color: rgba(224, 232, 255, 0.72);
  font-size: clamp(0.82rem, 0.9vw, 0.9rem);
  line-height: 1.5;
  text-decoration: none;
  transition: color 220ms ease, opacity 220ms ease;
}

.site-footer__contact-link:hover {
  color: #ffffff;
}

.site-footer__legal-row {
  position: relative;
  isolation: isolate;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-footer__legal-list {
  display: flex;
}

.site-footer__bottom {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-width: 0;
}

.site-footer__copy {
  margin: 0;
  color: rgba(224, 232, 255, 0.62);
  font-size: clamp(0.66rem, 0.7vw, 0.74rem);
  line-height: 1.6;
}

.site-footer__meta {
  display: contents;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.site-footer__social-link,
.site-footer__social a {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(232, 238, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
  font-size: 0;
  text-decoration: none;
  line-height: 0;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.site-footer__social-link::before {
  color: currentColor;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.site-footer__social-link[aria-label="Facebook"]::before { content: "f"; font-size: 1.05rem; }
.site-footer__social-link[aria-label="Instagram"]::before { content: "◎"; font-size: 1.05rem; }
.site-footer__social-link[aria-label="X"]::before { content: "𝕏"; font-size: 0.95rem; }
.site-footer__social-link[aria-label="GitHub"]::before { content: "GH"; font-size: 0.64rem; letter-spacing: 0.04em; }
.site-footer__social-link[aria-label="YouTube"]::before { content: "▶"; font-size: 0.84rem; }

.site-footer__social-link svg,
.site-footer__social a svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  fill: currentColor;
  pointer-events: none;
}

.site-footer__social-link:hover,
.site-footer__social a:hover {
  transform: translateY(-1px);
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.06);
  box-shadow:
    0 8px 18px rgba(34, 211, 238, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.site-footer__credit {
  margin: 0;
  color: rgba(224, 232, 255, 0.62);
  font-size: clamp(0.72rem, 0.78vw, 0.82rem);
  line-height: 1.5;
  text-align: center;
}

.site-footer__credit a {
  color: rgba(224, 232, 255, 0.82);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.16);
  transition: color 260ms ease, border-color 260ms ease;
}

.site-footer__credit a:hover {
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.32);
}

/* ═══════════════════════════════════════════════════════════════
   1) DESKTOP LAYOUT — ≥1024px
   Clean 4-column grid: brand | solutions | support | service area.
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .site-footer {
    overflow: clip;
    padding-top: clamp(4.25rem, 5.25vw, 6rem);
    padding-bottom: clamp(5.75rem, 6.5vw, 7.25rem);
  }

  .site-footer > .container,
  .site-footer .container {
    padding-inline: var(--header-pad-desktop, var(--nexus-footer-rail-x));
  }

  .site-footer__main {
    grid-template-columns: minmax(13rem, 18rem) minmax(8rem, 1fr) minmax(10rem, 1fr) minmax(17rem, 22rem);
    grid-template-rows: auto auto;
    column-gap: clamp(1.25rem, 2vw, 2rem);
    row-gap: 0;
    align-items: start;
    padding-top: clamp(1.5rem, 2.1vw, 2.25rem);
    padding-bottom: clamp(0.65rem, 1vw, 0.95rem);
    min-width: 0;
  }

  .site-footer__brand-column {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: start;
    min-width: 0;
  }

  .site-footer__brand-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.65rem, 1vw, 0.9rem);
    min-width: 0;
    max-width: 100%;
  }

  .site-footer .site-brand--footer {
    justify-content: flex-start;
    margin-inline: 0;
    min-width: 0;
    max-width: 100%;
  }

  .site-brand--footer .site-brand__text {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
  }

  .site-footer__links-grid {
    display: contents;
  }

  .site-footer__links-grid > .site-footer__group {
    min-width: 0;
    max-width: 100%;
  }

  .site-footer__links-grid > .site-footer__group:nth-of-type(1) {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    align-self: start;
    text-align: left;
  }

  .site-footer__links-grid > .site-footer__group:nth-of-type(2) {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    align-self: start;
    text-align: left;
  }

  .site-footer__group--address,
  .site-footer__links-grid > .site-footer__group:nth-of-type(3) {
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .site-footer__group--address h3,
  .site-footer__group--address .site-footer__address,
  .site-footer__group--address .site-footer__contact-link {
    display: block;
    text-align: right;
  }

  .site-footer__group--address .site-footer__contact-list {
    justify-items: end;
    margin-left: 0;
    width: 100%;
  }

  .site-footer__group--address .site-footer__contact-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: end;
    align-items: center;
    width: 100%;
    min-width: 0;
    text-align: right;
  }

  .site-footer__group--address .site-footer__icon {
    justify-self: end;
    margin-left: 0.45rem;
    margin-right: 0;
  }

  .site-footer__group--address .site-footer__contact-link[href^="tel"],
  .site-footer__group--address .site-footer__contact-link[href^="mailto"] {
    width: 100%;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .site-footer__legal-row {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: end;
    row-gap: 0.35rem;
    margin-top: clamp(1rem, 1.35vw, 1.4rem);
    padding-top: clamp(0.55rem, 0.85vw, 0.75rem);
    padding-bottom: clamp(0.9rem, 1.2vw, 1.4rem);
    padding-right: 0;
    text-align: right;
    width: 100%;
    min-width: 0;
  }

  .site-footer__legal-row h3 {
    grid-row: 1;
    justify-self: end;
    margin: 0;
    font-size: clamp(0.6rem, 0.68vw, 0.68rem);
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.42);
    text-align: right;
  }

  .site-footer__legal-list {
    grid-row: 2;
    justify-self: end;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(1rem, 1.6vw, 1.8rem);
    width: auto;
    max-width: 100%;
    margin-left: auto;
    text-align: right;
  }

  .site-footer__bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "copy social"
      "credit credit";
    align-items: center;
    gap: 0.85rem clamp(1.1rem, 1.8vw, 1.8rem);
    padding-top: clamp(0.85rem, 1.2vw, 1.2rem);
    padding-bottom: clamp(2.5rem, 3.5vw, 4rem);
    padding-right: 0;
    min-width: 0;
  }

  .site-footer__copy {
    grid-area: copy;
    justify-self: start;
    max-width: 60rem;
    text-align: left;
  }

  .site-footer__social {
    grid-area: social;
    justify-self: end;
    justify-content: flex-end;
  }

  .site-footer__credit {
    grid-area: credit;
    justify-self: center;
  }
}

/* Keep the floating scroll shuttle away from footer links on compact/tablet widths.
   JS can re-assert button display, so use !important here as a footer safety kill-switch. */
@media (max-width: 1023px) {
  .scroll-shuttle,
  [data-scroll-shuttle],
  .back-to-top,
  .scroll-to-top,
  [data-back-to-top],
  .site-footer__back-to-top {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   2) TABLET LAYOUT — 641px to 1023px
   Single-column deck, two-column links, service/legal left-aligned.
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 641px) and (max-width: 1023px) {
  .site-footer {
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
    padding-bottom: clamp(4rem, 8vw, 6rem);
  }

  .site-footer > .container,
  .site-footer .container {
    width: 100%;
    max-width: none;
    padding-inline: var(--nexus-footer-rail-x);
  }

  .site-footer__shell {
    padding-top: clamp(0.95rem, 2.2vw, 1.45rem);
    padding-bottom: clamp(1.5rem, 3vw, 2.15rem);
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: clamp(1.75rem, 3.5vw, 2.65rem);
    align-items: start;
    padding-block: clamp(1.15rem, 2.4vw, 1.75rem);
  }

  .site-footer__brand-column {
    justify-self: start;
    width: 100%;
  }

  .site-footer__brand-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(0.65rem, 1vw, 0.9rem);
    max-width: 24rem;
  }

  .site-footer__links-grid {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    column-gap: clamp(2rem, 5vw, 3.5rem);
    row-gap: clamp(1.5rem, 3.5vw, 2rem);
    justify-items: start;
    align-items: start;
    width: 100%;
  }

  .site-footer__group--address {
    justify-self: end;
    width: 100%;
    max-width: 30rem;
    margin-left: auto;
    padding-top: 0;
    border-top: 0;
    text-align: right;
  }

  .site-footer__group--address h3,
  .site-footer__group--address .site-footer__address,
  .site-footer__group--address .site-footer__contact-link {
    text-align: right;
  }

  .site-footer__group--address .site-footer__contact-list {
    justify-items: end;
  }

  .site-footer__group--address .site-footer__contact-item {
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: center;
    text-align: right;
  }

  .site-footer__legal-row {
    display: grid;
    grid-template-rows: auto auto;
    row-gap: 0.5rem;
    justify-items: end;
    text-align: right;
    margin-top: clamp(0.5rem, 1.5vw, 0.85rem);
    padding-top: clamp(0.9rem, 1.9vw, 1.2rem);
  }

  .site-footer__legal-row h3 {
    justify-self: end;
    margin: 0;
    font-size: clamp(0.6rem, 0.68vw, 0.68rem);
    letter-spacing: 0.2em;
    opacity: 0.42;
  }

  .site-footer__legal-list {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem 1.4rem;
  }

  .site-footer__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "copy social"
      "credit credit";
    align-items: center;
    gap: 0.85rem clamp(1.4rem, 2vw, 2rem);
    padding-bottom: clamp(4.5rem, 8vw, 5.75rem);
  }

  .site-footer__copy {
    grid-area: copy;
    justify-self: start;
    text-align: left;
  }

  .site-footer__social {
    grid-area: social;
    justify-self: end;
    justify-content: flex-end;
  }

  .site-footer__credit {
    grid-area: credit;
  }
}

/* ═══════════════════════════════════════════════════════════════
   3) MOBILE LAYOUT — ≤640px
   Fully centred, one-column, calmer scale.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .site-footer {
    padding-top: 0;
    padding-bottom: clamp(7.5rem, 22vw, 9.5rem);
  }

  .site-footer > .container,
  .site-footer .container {
    width: 100%;
    max-width: none;
    padding-inline: var(--nexus-footer-mobile-x);
  }

  .site-footer__shell {
    overflow: hidden;
    padding-top: clamp(0.95rem, 3.8vw, 1.35rem);
    padding-bottom: clamp(1.5rem, 5vw, 2.3rem);
  }

  .site-footer__topline {
    display: none;
  }

  .site-footer__bottomline {
    opacity: 0.58;
  }

  .footer-scanner {
    opacity: 0.48;
  }

  .footer-scanner__svg {
    width: min(740px, 158vw);
    opacity: 0.24;
  }

  .scanner-core-glow {
    opacity: 0.48;
  }

  .scanner-sweep-wedge {
    opacity: 0.18;
    filter: blur(10px) drop-shadow(0 0 18px rgba(80, 106, 255, 0.1));
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0;
    padding: 0;
  }

  .site-footer__brand-column,
  .site-footer__brand-stack,
  .site-footer__links-grid,
  .site-footer__group,
  .site-footer__group--address,
  .site-footer__legal-row,
  .site-footer__bottom,
  .site-footer__social {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
    align-items: center;
    justify-content: center;
    justify-items: center;
  }

  .site-footer__brand-column {
    display: flex;
    flex-direction: column;
    padding-top: clamp(1.05rem, 4.5vw, 1.55rem);
    padding-bottom: 0;
  }

  .site-footer__brand-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(0.65rem, 2.5vw, 0.9rem);
  }

  .site-brand--footer {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(0.7rem, 2.8vw, 0.9rem);
    width: auto;
    max-width: min(100%, 22rem);
    margin-inline: auto;
  }

  .site-brand--footer .site-brand__mark {
    flex: 0 0 clamp(42px, 10.5vw, 50px);
    width: clamp(42px, 10.5vw, 50px);
    height: clamp(42px, 10.5vw, 50px);
    min-width: clamp(42px, 10.5vw, 50px);
    min-height: clamp(42px, 10.5vw, 50px);
    aspect-ratio: 1 / 1;
    margin: 0;
    border-radius: 0.8rem;
  }

  .site-brand--footer .site-brand__text {
    display: grid;
    justify-items: start;
    align-items: center;
    gap: 0.1rem;
    width: auto;
    max-width: calc(100vw - 8rem);
    min-width: 0;
  }

  .site-brand--footer .site-brand__text strong,
  .site-brand--footer .site-brand__text span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
  }

  .site-brand--footer .site-brand__text strong {
    font-size: clamp(0.7rem, 3vw, 0.82rem);
    letter-spacing: clamp(0.045em, 0.85vw, 0.085em);
    line-height: 1.05;
  }

  .site-brand--footer .site-brand__text span {
    font-size: clamp(0.5rem, 2.15vw, 0.6rem);
    letter-spacing: clamp(0.04em, 0.75vw, 0.08em);
    line-height: 1.15;
  }

  .site-footer__tagline {
    max-width: min(100%, 26rem);
    margin-inline: auto;
    text-align: center;
  }

  .site-footer__brand-column::after {
    content: "";
    display: block;
    width: min(100%, 22rem);
    height: 1px;
    margin: clamp(1rem, 4vw, 1.3rem) auto 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14) 20%, rgba(255, 255, 255, 0.14) 80%, transparent);
  }

  .site-footer__links-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: clamp(1rem, 4vw, 1.45rem);
  }

  .site-footer__group + .site-footer__group {
    margin-top: clamp(1.55rem, 5.5vw, 2.15rem);
  }

  .site-footer__group h3,
  .site-footer__legal-row h3 {
    margin-bottom: clamp(0.5rem, 2vw, 0.7rem);
    font-size: clamp(0.78rem, 3vw, 0.88rem);
    line-height: 1.18;
    letter-spacing: 0.17em;
    text-align: center;
  }

  .site-footer__list,
  .site-footer__contact-list,
  .site-footer__group--address .site-footer__contact-list {
    width: 100%;
    gap: clamp(0.52rem, 2.2vw, 0.72rem);
    justify-content: center;
    justify-items: center;
    text-align: center;
  }

  .site-footer__list a,
  .site-footer__contact-link {
    display: inline-block;
    width: auto;
    margin-inline: auto;
    text-align: center;
    font-size: clamp(0.76rem, 2.95vw, 0.86rem);
    line-height: 1.34;
  }

  .site-footer__group--address {
    margin-top: clamp(1.8rem, 6vw, 2.45rem);
    padding-top: 0;
    padding-bottom: clamp(7.5rem, 24vw, 10rem);
  }

  .site-footer__group--address .site-footer__address,
  .site-footer__group--address .site-footer__contact-link {
    text-align: center;
    margin-inline: auto;
  }

  .site-footer__group--address .site-footer__contact-list {
    padding-bottom: clamp(1.4rem, 5vw, 2rem);
  }

  .site-footer__group--address .site-footer__address {
    width: min(100%, 28rem);
    max-width: 28rem;
    font-size: clamp(0.78rem, 3vw, 0.88rem);
    line-height: 1.4;
  }

  .site-footer__contact-item,
  .site-footer__group--address .site-footer__contact-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    margin-inline: auto;
  }

  .site-footer__icon {
    width: 0.9rem;
    height: 0.9rem;
    margin-top: 0;
  }

  .site-footer__legal-row {
    display: grid;
    grid-template-rows: auto auto;
    row-gap: 0.5rem;
    margin-top: clamp(0.9rem, 3.4vw, 1.35rem);
    padding-top: clamp(1.15rem, 3.8vw, 1.5rem);
    padding-bottom: clamp(0.85rem, 3vw, 1.15rem);
  }

  .site-footer__legal-row h3 {
    justify-self: center;
    margin: 0;
    opacity: 0.48;
  }

  .site-footer__legal-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.9rem;
    width: min(100%, 23rem);
    margin-inline: auto;
  }

  .site-footer__legal-list a {
    display: inline-block;
    text-align: center;
    font-size: clamp(0.68rem, 2.7vw, 0.78rem);
    opacity: 0.55;
  }

  .site-footer__bottom {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "social"
      "credit";
    gap: clamp(0.62rem, 2.25vw, 0.82rem);
    padding-top: clamp(0.6rem, 2.25vw, 0.85rem);
    padding-bottom: clamp(5.5rem, 18vw, 7.5rem);
    text-align: center;
  }

  .site-footer__copy {
    grid-area: copy;
    max-width: 22rem;
    margin-inline: auto;
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.58;
  }

  .site-footer__social {
    grid-area: social;
    justify-self: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: clamp(0.65rem, 3vw, 1rem);
  }

  .site-footer__credit {
    grid-area: credit;
    justify-self: center;
    max-width: 22rem;
    margin-inline: auto;
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.58;
  }


}
