.ace-arc-scope--footer {
  --bg: #f7f3eb;
  --footer-bg: #10100f;
  --panel: #151514;
  --text: #f7f3eb;
  --muted: rgba(247, 243, 235, 0.72);
  --line: rgba(247, 243, 235, 0.28);
  --line-strong: rgba(247, 243, 235, 0.48);
  --accent: #ff7518;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans: "DM Sans", Arial, sans-serif;
}

[data-theme="light"] .ace-arc-scope--footer, .ace-arc-scope--footer[data-theme="light"] {
  --bg: #ffffff;
  --footer-bg: #fffaf2;
  --panel: #ffffff;
  --text: #11100d;
  --muted: rgba(17, 16, 13, 0.68);
  --line: rgba(17, 16, 13, 0.22);
  --line-strong: rgba(17, 16, 13, 0.42);
}

.ace-arc-scope--footer * {
  box-sizing: border-box;
  border-radius: 0 !important;
}

.ace-arc-scope--footer {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

.ace-arc-scope--footer {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
}

.ace-arc-scope--footer a, .ace-arc-scope--footer button, .ace-arc-scope--footer input {
  font: inherit;
}

.ace-arc-scope--footer .footer-stage {
  min-height: 100vh;
  padding: clamp(40px, 8vw, 96px) 0;
}

.ace-arc-scope--footer .theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--footer-bg);
  color: var(--text);
  cursor: pointer;
}

.ace-arc-scope--footer .ace-footer {
  width: min(100%, 1600px);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.06), transparent 24%),
    var(--footer-bg);
  color: var(--text);
}

.ace-arc-scope--footer .footer-top {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 24px;
  min-height: 112px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(24px, 5vw, 88px);
}

.ace-arc-scope--footer .footer-top p {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-transform: uppercase;
}

.ace-arc-scope--footer .footer-top p:nth-child(2) {
  text-align: center;
}

.ace-arc-scope--footer .footer-top p:nth-child(3) {
  text-align: right;
}

.ace-arc-scope--footer .footer-top span, .ace-arc-scope--footer .brand-line span {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 16px;
  background: var(--accent);
  vertical-align: middle;
}

.ace-arc-scope--footer .footer-main {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 0.9fr) 1.32fr;
  border-bottom: 1px solid var(--line);
}

.ace-arc-scope--footer .brand-panel, .ace-arc-scope--footer .footer-column, .ace-arc-scope--footer .contact-column {
  min-height: 548px;
  border-right: 1px solid var(--line);
  padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 54px);
}

.ace-arc-scope--footer .brand-panel img {
  display: block;
  width: min(260px, 80%);
  min-height: 92px;
  object-fit: contain;
  object-position: left center;
}

.ace-arc-scope--footer .brand-line {
  margin: 22px 0 34px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ace-arc-scope--footer .brand-copy {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.ace-arc-scope--footer .social-block {
  margin-top: 66px;
}

.ace-arc-scope--footer .social-block p, .ace-arc-scope--footer .footer-column h2, .ace-arc-scope--footer .contact-column h2, .ace-arc-scope--footer .insight-copy h2 {
  margin: 0 0 28px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ace-arc-scope--footer .social-block div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.ace-arc-scope--footer .social-block a {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
}

.ace-arc-scope--footer .footer-column a, .ace-arc-scope--footer .contact-column a {
  display: block;
  margin-bottom: 20px;
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
}

.ace-arc-scope--footer .footer-column a:hover, .ace-arc-scope--footer .contact-column a:hover, .ace-arc-scope--footer .footer-bottom a:hover {
  color: var(--accent);
}

.ace-arc-scope--footer .accent-line {
  width: 30px;
  height: 1px;
  margin: -8px 0 30px;
  background: var(--accent);
}

.ace-arc-scope--footer .contact-column {
  font-style: normal;
}

.ace-arc-scope--footer .contact-column p {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 18px;
  margin: 0 0 24px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}

.ace-arc-scope--footer .contact-column i {
  color: var(--accent);
  margin-top: 4px;
}

.ace-arc-scope--footer .contact-column strong {
  display: block;
}

.ace-arc-scope--footer .footer-insights {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 0.92fr) minmax(280px, 0.88fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  min-height: 150px;
  border-bottom: 1px solid var(--line);
  padding: 24px clamp(24px, 5vw, 88px);
}

.ace-arc-scope--footer .insight-copy {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: center;
}

.ace-arc-scope--footer .insight-copy > i {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid var(--line-strong);
  font-size: 28px;
}

.ace-arc-scope--footer .insight-copy h2 {
  margin-bottom: 10px;
}

.ace-arc-scope--footer .insight-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.ace-arc-scope--footer .subscribe-form {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--line-strong);
}

.ace-arc-scope--footer .subscribe-form input {
  width: 100%;
  min-height: 66px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0 28px;
}

.ace-arc-scope--footer .subscribe-form input::placeholder {
  color: var(--muted);
}

.ace-arc-scope--footer .subscribe-form button {
  min-height: 66px;
  border: 0;
  border-left: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0 28px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ace-arc-scope--footer .subscribe-form button i {
  margin-left: 14px;
  color: var(--accent);
}

.ace-arc-scope--footer .footer-sketch {
  position: relative;
  min-height: 90px;
  opacity: 0.5;
}

.ace-arc-scope--footer .footer-sketch span {
  position: absolute;
  display: block;
  border: 1px solid var(--line-strong);
}

.ace-arc-scope--footer .footer-sketch span:nth-child(1) {
  left: 8%;
  bottom: 8px;
  width: 78%;
  height: 42px;
}

.ace-arc-scope--footer .footer-sketch span:nth-child(2) {
  left: 24%;
  bottom: 50px;
  width: 42%;
  height: 28px;
}

.ace-arc-scope--footer .footer-sketch span:nth-child(3) {
  left: 8%;
  bottom: 50px;
  width: 78%;
  height: 1px;
  transform: skewY(-13deg);
}

.ace-arc-scope--footer .footer-sketch span:nth-child(4) {
  left: 58%;
  bottom: 0;
  width: 1px;
  height: 88px;
}

.ace-arc-scope--footer .footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr 52px;
  gap: 24px;
  align-items: center;
  min-height: 82px;
  padding: 0 clamp(24px, 5vw, 88px);
}

.ace-arc-scope--footer .footer-bottom p, .ace-arc-scope--footer .footer-bottom a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.ace-arc-scope--footer .footer-bottom nav {
  display: flex;
  gap: 34px;
}

.ace-arc-scope--footer .footer-bottom p:nth-of-type(2) {
  text-align: right;
}

.ace-arc-scope--footer .footer-mark {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
}

.ace-arc-scope--footer .footer-mark::before, .ace-arc-scope--footer .footer-mark::after {
  position: absolute;
  background: var(--accent);
  content: "";
}

.ace-arc-scope--footer .footer-mark::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.ace-arc-scope--footer .footer-mark::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.ace-arc-scope--footer .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 1120px) {
  .ace-arc-scope--footer .footer-main {
    grid-template-columns: 1.2fr repeat(2, 1fr);
  }

  .ace-arc-scope--footer .contact-column {
    grid-column: span 2;
  }

  .ace-arc-scope--footer .brand-panel, .ace-arc-scope--footer .footer-column, .ace-arc-scope--footer .contact-column {
    min-height: auto;
  }

  .ace-arc-scope--footer .footer-insights {
    grid-template-columns: 1fr;
  }

  .ace-arc-scope--footer .footer-sketch {
    min-height: 120px;
  }
}

@media (max-width: 760px) {
  .ace-arc-scope--footer .footer-stage {
    padding: 0;
  }

  .ace-arc-scope--footer .theme-toggle {
    position: absolute;
  }

  .ace-arc-scope--footer .footer-top, .ace-arc-scope--footer .footer-main, .ace-arc-scope--footer .footer-bottom {
    grid-template-columns: 1fr;
  }

  .ace-arc-scope--footer .footer-top {
    gap: 14px;
    padding: 28px 20px;
  }

  .ace-arc-scope--footer .footer-top p, .ace-arc-scope--footer .footer-top p:nth-child(2), .ace-arc-scope--footer .footer-top p:nth-child(3), .ace-arc-scope--footer .footer-bottom p:nth-of-type(2) {
    text-align: left;
  }

  .ace-arc-scope--footer .brand-panel, .ace-arc-scope--footer .footer-column, .ace-arc-scope--footer .contact-column {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 30px 20px;
  }

  .ace-arc-scope--footer .brand-panel img {
    width: min(240px, 88%);
  }

  .ace-arc-scope--footer .social-block {
    margin-top: 38px;
  }

  .ace-arc-scope--footer .contact-column {
    grid-column: auto;
  }

  .ace-arc-scope--footer .footer-insights {
    padding: 28px 20px;
  }

  .ace-arc-scope--footer .insight-copy, .ace-arc-scope--footer .subscribe-form {
    grid-template-columns: 1fr;
  }

  .ace-arc-scope--footer .subscribe-form button {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
    justify-content: space-between;
    text-align: left;
  }

  .ace-arc-scope--footer .footer-bottom {
    gap: 16px;
    padding: 28px 20px;
  }

  .ace-arc-scope--footer .footer-bottom nav {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
}
