.footer {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-width: 320px;
  height: 100svh;
  min-height: 720px;
  overflow: hidden;
  background: var(--color-surface-dark);
  color: var(--color-content-primary);
}

.footerDecorativeLayer { position: absolute; inset: 0; pointer-events: none; }
.footerOrnament { position: absolute; left: calc(50% + 13.5px); transform: translateX(-50%); color: var(--color-surface-inverse); opacity: 0.5; will-change: transform, opacity; }
.ornamentGraphic { display: block; width: 100%; height: 100%; overflow: visible; }
.footerOrnamentRight, .footerOrnamentLeft { width: 410px; height: 410px; }
.footerOrnamentRight { top: 749px; z-index: 3; }
.footerOrnamentCenter { top: 79px; left: 50%; z-index: 2; width: 810.685px; height: 810.685px; }
.footerOrnamentLeft { top: -191px; z-index: 1; }

/* The home WAAPI scene owns transforms; desktop centering therefore uses left offsets only. */
@media (min-width: 1200px) {
  .footerOrnament { left: calc(50% - 191.5px); transform: none; }
  .footerOrnamentCenter { left: calc(50% - 405.3425px); }
}

.footerContent {
  position: relative;
  z-index: 5;
  display: flex;
  box-sizing: border-box;
  width: calc(100% - 80px);
  min-height: 263px;
  margin: 0 auto;
  padding-top: 340px;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  will-change: transform;
}

.footerSocial { display: flex; align-items: center; gap: 32px; padding-inline: 20px; }
.footerSocial img { display: block; width: 16px; height: 16px; object-fit: contain; }

.footerWordmark {
  height: 149px;
  margin: 0;
  color: var(--color-content-primary);
  font-family: var(--font-geist-mono);
  font-size: var(--font-size-footer-wordmark);
  font-weight: var(--font-weight-logo);
  line-height: var(--line-height-footer-wordmark);
  text-align: center;
  white-space: nowrap;
}
.interactivePrimary { color: var(--color-interactive-primary); }

.footerNavigation { display: flex; align-items: center; justify-content: center; gap: 32px; }
.footerNavigation a {
  display: inline-flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px 10px;
  color: var(--color-content-primary);
  font-family: var(--font-geist-mono);
  font-size: var(--font-size-navigation);
  font-weight: var(--font-weight-navigation);
  line-height: var(--line-height-navigation);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.navButtonTrack { display: block; height: 18px; overflow: hidden; }
.navButtonTrack > span { display: block; height: 18px; transition: transform 200ms ease-out; }
.footerNavigation a:hover .navButtonTrack > span,
.footerNavigation a:focus-visible .navButtonTrack > span { transform: translateY(-18px); }
.footerNavigation a:focus-visible,
.footerMetadata a:focus-visible { outline: 2px solid var(--color-content-primary); outline-offset: 3px; }

.footerMetadata {
  position: absolute;
  right: max(40px, calc(50vw - 666.5px));
  bottom: 80px;
  left: max(40px, calc(50vw - 666.5px));
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-content-tertiary);
  font-family: var(--font-geist-mono);
  font-size: var(--font-size-footer-meta);
  font-weight: var(--font-weight-navigation);
  line-height: var(--line-height-footer-meta);
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform;
}
.footerMetadata a { color: inherit; text-decoration: none; }

@media (max-width: 1199px) {
  .footer { min-height: 760px; }
  .footerOrnament { left: 50%; color: var(--color-surface-inverse); }
  .footerOrnamentRight, .footerOrnamentLeft { top: 280px; width: 326px; height: 326px; }
  .footerOrnamentRight { left: calc(50% - min(36vw, 270px)); }
  .footerOrnamentCenter { top: 80px; width: 645px; height: 645px; }
  .footerOrnamentLeft { left: calc(50% + min(36vw, 270px)); }
  .footerContent { width: calc(100% - 64px); padding-top: 200px; }
  .footerWordmark { height: auto; font-size: var(--font-size-footer-wordmark); line-height: var(--line-height-footer-wordmark); }
  .footerMetadata { right: 32px; bottom: 64px; left: 32px; }
}

@media (max-width: 767px) {
  .footer { min-height: 680px; }
  .footerOrnamentRight, .footerOrnamentLeft { top: 360px; width: 210px; height: 210px; }
  .footerOrnamentRight { left: calc(50% - 145px); }
  .footerOrnamentCenter { top: 125px; width: 466px; height: 466px; }
  .footerOrnamentLeft { left: calc(50% + 145px); }
  .footerContent { width: calc(100% - 40px); padding-top: 180px; gap: 24px; }
  .footerSocial { gap: 24px; }
  .footerWordmark { font-size: var(--font-size-footer-wordmark); }
  .footerNavigation { max-width: 320px; flex-wrap: wrap; gap: 8px 12px; }
  .footerNavigation a { height: 30px; padding: 6px 4px; font-size: var(--font-size-footer-meta); line-height: var(--line-height-footer-meta); }
  .footerMetadata { right: 20px; bottom: 40px; left: 20px; align-items: flex-start; flex-direction: column; gap: 8px; font-size: var(--font-size-footer-meta); line-height: var(--line-height-footer-meta); white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .footerOrnament, .footerContent, .footerMetadata { will-change: auto; }
  .navButtonTrack > span { transition: none; }
}

.footerNavigation a { font-size: var(--font-size-footer-navigation); line-height: var(--line-height-footer-navigation); }
