.footer {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background-color: #080a0f;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  color: #f5f2ed;
}

.footer::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 auto auto 0;
  width: 34%;
  height: 3px;
  background: var(--amber);
}

.footer .site-grid-signals {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  max-width: none !important;
  overflow: hidden;
  opacity: 0.82;
  pointer-events: none;
}

.footer > :not(.site-grid-signals) {
  position: relative;
  z-index: 1;
}

.footer .site-grid-node {
  width: 7px;
  height: 7px;
  background: #ff5a00;
  box-shadow:
    0 0 0 3px rgba(255, 90, 0, 0.12),
    0 0 14px rgba(255, 90, 0, 0.72),
    0 0 30px rgba(255, 90, 0, 0.28);
}

.footer .site-grid-node::before {
  inset: -7px;
  border-color: rgba(255, 121, 48, 0.42);
}

.footer .site-grid-signals .site-grid-node-a { animation-name: footerGridRouteA; }
.footer .site-grid-signals .site-grid-node-b { animation-name: footerGridRouteB; }
.footer .site-grid-signals .site-grid-node-c { animation-name: footerGridRouteC; }
.footer .site-grid-signals .site-grid-node-d { animation-name: footerGridRouteD; }
.footer .site-grid-signals .site-grid-node-e { animation-name: footerGridRouteE; }

@keyframes footerGridRouteA {
  0% { left: -14px; top: 72%; opacity: 0; }
  7%, 31% { opacity: 0.5; }
  34% { left: 34%; top: 72%; opacity: 0.92; }
  37%, 62% { opacity: 0.5; }
  65% { left: 66%; top: 72%; opacity: 0.92; }
  68%, 94% { opacity: 0.5; }
  100% { left: 102%; top: 72%; opacity: 0; }
}

@keyframes footerGridRouteB {
  0% { left: calc(100% + 14px); top: 84%; opacity: 0; }
  8%, 31% { opacity: 0.46; }
  34% { left: 68%; top: 84%; opacity: 0.86; }
  37%, 62% { opacity: 0.46; }
  65% { left: 34%; top: 84%; opacity: 0.86; }
  68%, 94% { opacity: 0.46; }
  100% { left: -14px; top: 84%; opacity: 0; }
}

@keyframes footerGridRouteC {
  0% { left: 28%; top: 62%; opacity: 0; }
  8%, 31% { opacity: 0.48; }
  34% { left: 28%; top: 72%; opacity: 0.9; }
  37%, 62% { opacity: 0.48; }
  65% { left: 28%; top: 84%; opacity: 0.9; }
  68%, 94% { opacity: 0.48; }
  100% { left: 28%; top: 96%; opacity: 0; }
}

@keyframes footerGridRouteD {
  0% { left: 78%; top: 96%; opacity: 0; }
  8%, 31% { opacity: 0.44; }
  34% { left: 78%; top: 86%; opacity: 0.84; }
  37%, 62% { opacity: 0.44; }
  65% { left: 78%; top: 76%; opacity: 0.84; }
  68%, 94% { opacity: 0.44; }
  100% { left: 78%; top: 64%; opacity: 0; }
}

@keyframes footerGridRouteE {
  0% { left: 10%; top: 78%; opacity: 0; }
  7%, 31% { opacity: 0.5; }
  34% { left: 46%; top: 78%; opacity: 0.92; }
  37%, 62% { opacity: 0.5; }
  65% { left: 46%; top: 90%; opacity: 0.92; }
  68%, 94% { opacity: 0.5; }
  100% { left: 90%; top: 90%; opacity: 0; }
}

.footer > * {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 57fr) minmax(420px, 43fr);
  min-height: 700px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-contact-details,
.footer-message-panel {
  padding: clamp(54px, 6vw, 96px) clamp(28px, 6vw, 92px);
}

.footer-contact-details {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-section-label {
  display: inline-flex;
  width: fit-content;
  gap: 10px;
  align-items: center;
  margin: 0;
  color: rgba(245, 242, 237, 0.72) !important;
  font-family: var(--mono-font);
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-section-label i {
  width: 9px;
  height: 9px;
  background: var(--amber);
}

.footer-contact-details > h2,
.footer-form-head h2 {
  color: #f5f2ed;
  letter-spacing: 0;
}

.footer-contact-details > h2 {
  max-width: 790px;
  margin: clamp(28px, 4vw, 56px) 0 clamp(32px, 5vw, 66px);
  font-size: clamp(3rem, 6.1vw, 7.2rem);
  line-height: 0.92;
}

.footer-direct-contact {
  display: grid;
  gap: 8px;
  width: fit-content;
}

.footer-direct-contact a {
  color: #f5f2ed;
  font-size: clamp(1.65rem, 3.2vw, 4rem);
  font-weight: 650;
  line-height: 1.12;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-direct-contact a:hover,
.footer-direct-contact a:focus-visible {
  color: var(--amber);
}

.footer-locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 78px);
  margin-top: auto;
  padding-top: clamp(50px, 8vw, 104px);
}

.footer-locations article {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.footer-locations h3 {
  margin: 24px 0 12px;
  color: #f5f2ed;
  font-size: clamp(1.4rem, 2vw, 2.3rem);
}

.footer-locations address {
  color: rgba(245, 242, 237, 0.6);
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.65;
}

.footer-map-shell {
  width: 100%;
  margin: clamp(26px, 3vw, 42px) 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.footer-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  font-family: var(--mono-font);
  font-size: 0.66rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-map-head span {
  color: var(--amber);
}

.footer-map-head strong {
  color: rgba(245, 242, 237, 0.62);
  font-weight: 600;
}

.footer-map-frame {
  position: relative;
  height: clamp(180px, 16vw, 218px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #d9d9d9;
}

.footer-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.08) brightness(0.86);
  pointer-events: none;
}

.footer-map-frame > a {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(10, 12, 17, 0.9);
  color: #f5f2ed;
  font-family: var(--mono-font);
  font-size: 0.65rem;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.footer-map-frame > a span,
.footer-map-frame > a strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-map-frame > a i {
  width: 8px;
  height: 8px;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(255, 88, 0, 0.15);
}

.footer-map-frame > a strong {
  font-weight: 700;
}

.footer-map-frame > a b {
  color: var(--amber);
  font-size: 0.85rem;
}

.footer-map-frame > a:hover,
.footer-map-frame > a:focus-visible {
  border-color: var(--amber);
  background: rgba(10, 12, 17, 0.98);
}

.footer-message-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  background: rgba(12, 15, 22, 0.9);
}

.footer-form-head {
  margin-bottom: clamp(36px, 4vw, 58px);
}

.footer-form-head h2 {
  margin: 18px 0 0;
  font-size: clamp(2rem, 3.2vw, 4.1rem);
  line-height: 1;
}

.footer .contact-form {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  grid-template-rows: auto auto minmax(230px, 1fr) auto auto auto;
  gap: 28px;
  margin: 0;
}

.footer .contact-form > label:nth-of-type(3) {
  min-height: 230px;
  grid-template-rows: auto minmax(0, 1fr);
}

.footer .contact-form label {
  display: grid;
  gap: 10px;
  color: #f5f2ed;
  font-family: var(--mono-font);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer .contact-form input,
.footer .contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  outline: 0;
  background: transparent;
  padding: 14px 0;
  color: #f5f2ed;
  font: 500 1rem/1.45 var(--body-font);
  transition: border-color 180ms ease;
}

.footer .contact-form textarea {
  min-height: 230px;
  height: 100%;
  resize: vertical;
}

.footer .contact-form input::placeholder,
.footer .contact-form textarea::placeholder {
  color: rgba(245, 242, 237, 0.38);
}

.footer .contact-form input:focus,
.footer .contact-form textarea:focus {
  border-color: var(--amber);
}

.footer-attachment-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
}

.footer .contact-form .footer-attachment-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  padding: 0;
  white-space: nowrap;
}

.footer .contact-form .footer-attachment-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0 14px;
  color: #f5f2ed;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.footer-attachment-button > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--mono-font);
  font-size: 1rem;
  line-height: 1;
}

.footer .contact-form .footer-attachment-input:focus-visible + .footer-attachment-button,
.footer .contact-form .footer-attachment-button:hover {
  border-color: var(--amber);
  background: rgba(255, 90, 0, 0.08);
}

.footer-attachment-name {
  overflow: hidden;
  color: rgba(245, 242, 237, 0.68);
  font-size: 0.82rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-attachment-remove {
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: 0 4px;
  color: var(--amber);
  font-family: var(--mono-font);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.footer-attachment-remove:hover,
.footer-attachment-remove:focus-visible {
  color: #f5f2ed;
}

.footer-attachment-field small {
  grid-column: 1 / -1;
  color: rgba(245, 242, 237, 0.42);
  font-family: var(--mono-font);
  font-size: 0.61rem;
  line-height: 1.45;
  text-transform: uppercase;
}

.footer-submit {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--amber);
  background: var(--amber);
  padding: 0 22px;
  color: #080a0f;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
  overflow: hidden;
}

.footer-submit span {
  display: inline-block;
  animation: footerSendText 2.8s ease-in-out infinite;
}

.footer-submit svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  animation: footerSendArrow 1.9s ease-in-out infinite;
}

.footer-submit:hover,
.footer-submit:focus-visible {
  background: #f5f2ed;
}

.footer-submit:hover svg,
.footer-submit:focus-visible svg {
  animation-duration: 760ms;
}

.footer-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

@keyframes footerSendText {
  0%, 72%, 100% { transform: translateX(0); }
  82% { transform: translateX(3px); }
}

@keyframes footerSendArrow {
  0%, 100% { transform: translateX(0); opacity: 0.72; }
  48% { transform: translateX(7px); opacity: 1; }
  58% { transform: translateX(-3px); opacity: 0; }
  60% { transform: translateX(-3px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-submit span,
  .footer-submit svg {
    animation: none;
  }
}

.footer .form-status {
  min-height: 22px;
  margin: -12px 0 0;
  color: var(--amber) !important;
  font-size: 0.68rem;
  line-height: 1.45;
}

.footer-navigation {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 1.5fr) minmax(190px, 0.72fr) minmax(190px, 0.72fr);
  gap: clamp(46px, 7vw, 112px);
  padding: clamp(58px, 6vw, 88px) clamp(28px, 6vw, 92px) clamp(54px, 5vw, 76px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-navigation::before {
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(28px, 6vw, 92px);
  width: clamp(74px, 10vw, 150px);
  height: 3px;
  background: var(--amber);
}

.footer-brand-block .footer-wordmark {
  color: #f5f2ed;
  font-size: clamp(2.5rem, 4vw, 5rem);
  text-decoration: none;
}

.footer-brand-block .footer-logo-wordmark {
  display: block;
  width: clamp(178px, 15vw, 232px);
  height: clamp(58px, 5vw, 76px);
  overflow: hidden;
}

.footer-logo-wordmark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.footer-brand-block p {
  max-width: 390px;
  margin: 26px 0 0;
  color: #f5f2ed;
  font-family: var(--display-font);
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-weight: 650;
  line-height: 0.98;
}

.footer-brand-block .footer-outro-cta {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  border-bottom: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--mono-font);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, gap 220ms ease;
}

.footer-brand-block .footer-outro-cta:hover,
.footer-brand-block .footer-outro-cta:focus-visible {
  gap: 18px;
  color: #f5f2ed;
}

.footer-links,
.footer-socials {
  display: grid;
  gap: 0;
  align-content: start;
}

.footer .footer-nav-label {
  margin: 0 0 22px;
  color: var(--amber);
  font-family: var(--mono-font);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-links a,
.footer-socials a {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  padding: 0;
  color: rgba(245, 242, 237, 0.72);
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, padding-left 220ms ease;
}

.footer-links a::after {
  content: "\2192";
  color: rgba(245, 242, 237, 0.38);
  transition: color 180ms ease, transform 220ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-socials a:hover,
.footer-socials a:focus-visible {
  border-color: var(--amber);
  color: var(--amber);
  padding-left: 6px;
}

.footer-links a:hover::after,
.footer-links a:focus-visible::after {
  color: var(--amber);
  transform: translateX(4px);
}

.fine-print {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px clamp(28px, 6vw, 92px) 24px;
  color: rgba(245, 242, 237, 0.48);
  font-family: var(--mono-font);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.fine-print > div {
  display: flex;
  gap: 22px;
}

.fine-print a {
  color: inherit;
  text-decoration: none;
}

.fine-print > a:last-child {
  justify-self: end;
}

.fine-print a:hover,
.fine-print a:focus-visible {
  color: var(--amber);
}

@media (max-width: 980px) {
  .footer-contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-contact-details {
    min-height: 660px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .footer-message-panel {
    padding-bottom: 76px;
  }

  .footer .contact-form {
    flex: 0 0 auto;
    grid-template-rows: none;
  }

  .footer .contact-form > label:nth-of-type(3) {
    min-height: 190px;
  }

  .footer .contact-form textarea {
    min-height: 190px;
    height: auto;
  }
}

@media (max-width: 720px) {
  .footer-contact-details,
  .footer-message-panel {
    padding: 48px 22px;
  }

  .footer-contact-details {
    min-height: 620px;
  }

  .footer-contact-details > h2 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .footer-direct-contact a {
    font-size: clamp(1.45rem, 7vw, 2.3rem);
  }

  .footer-locations,
  .footer-navigation,
  .fine-print {
    grid-template-columns: 1fr;
  }

  .footer-locations {
    gap: 32px;
  }

  .footer-map-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .footer-map-frame {
    height: 210px;
  }

  .footer-map-frame > a {
    min-height: 72px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
  }

  .footer-navigation {
    gap: 42px;
    padding: 54px 22px 48px;
  }

  .footer-brand-block p {
    max-width: 320px;
  }

  .fine-print {
    align-items: start;
    padding: 22px 22px 100px;
  }

  .fine-print > div {
    flex-wrap: wrap;
  }

  .fine-print > a:last-child {
    justify-self: start;
  }

  .footer .site-grid-signals {
    opacity: 0.7;
  }

  .footer .site-grid-node {
    width: 6px;
    height: 6px;
    box-shadow:
      0 0 0 3px rgba(255, 90, 0, 0.1),
      0 0 12px rgba(255, 90, 0, 0.64),
      0 0 24px rgba(255, 90, 0, 0.22);
  }
}

@media (max-width: 520px) {
  .footer-attachment-field {
    grid-template-columns: 1fr auto;
  }

  .footer .contact-form .footer-attachment-button,
  .footer-attachment-name {
    grid-column: 1 / -1;
  }
}
