/* =============================================================================
   TRACKORIGIN · ISOLATED GLOBAL FOOTER
   Fully scoped to #trackoriginFooter.
   Does not use .wrap, .row, .nav, .section, .card, .brand, or page classes.
   ============================================================================= */

#trackoriginFooter,
#trackoriginFooter *,
#trackoriginFooter *::before,
#trackoriginFooter *::after {
  box-sizing: border-box;
}

#trackoriginFooter {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse 46% 42% at 82% 14%, rgba(45, 85, 184, 0.12), transparent 64%),
    #07112d;
  border-top: 1px solid rgba(245, 239, 224, 0.08);
  color: #f5efe0;
  overflow: hidden;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#trackoriginFooter a {
  color: inherit;
  text-decoration: none;
}

#trackoriginFooter a:hover {
  color: #f5efe0;
}

#trackoriginFooter p,
#trackoriginFooter h2 {
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   SHELL
   -------------------------------------------------------------------------- */

#trackoriginFooter .to-footer__shell {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(24px, 4vw, 56px);
  padding-right: clamp(24px, 4vw, 56px);
}

/* --------------------------------------------------------------------------
   MAIN LAYOUT
   -------------------------------------------------------------------------- */

#trackoriginFooter .to-footer__main {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: clamp(56px, 7vw, 108px);
  align-items: start;
  padding-top: clamp(58px, 6vw, 84px);
  padding-bottom: clamp(44px, 5vw, 66px);
}

/* --------------------------------------------------------------------------
   BRAND BLOCK
   -------------------------------------------------------------------------- */

#trackoriginFooter .to-footer__brand {
  display: block;
  min-width: 0;
}

#trackoriginFooter .to-footer__logo-link {
  display: inline-flex;
  width: 250px;
  max-width: 100%;
  line-height: 0;
}

#trackoriginFooter .to-footer__logo {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

#trackoriginFooter .to-footer__statement {
  max-width: 34ch;
  margin-top: 26px;
  color: rgba(245, 239, 224, 0.65);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
}

#trackoriginFooter .to-footer__standard {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  padding: 10px 15px;
  border: 1px solid rgba(245, 239, 224, 0.18);
  color: rgba(245, 239, 224, 0.65);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#trackoriginFooter .to-footer__standard-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid #3a6cd9;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f5efe0;
  font-family: Anton, Impact, "Arial Black", sans-serif;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0;
}

#trackoriginFooter .to-footer__standard-text {
  display: inline-block;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   LINK COLUMNS
   -------------------------------------------------------------------------- */

#trackoriginFooter .to-footer__links {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: clamp(28px, 4vw, 58px);
  min-width: 0;
}

#trackoriginFooter .to-footer__col {
  display: block;
  min-width: 0;
}

#trackoriginFooter .to-footer__col h2 {
  margin-bottom: 18px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 239, 224, 0.4);
}

#trackoriginFooter .to-footer__col a {
  display: block;
  margin-bottom: 12px;
  color: rgba(245, 239, 224, 0.65);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
  overflow-wrap: anywhere;
}

#trackoriginFooter .to-footer__col a[href^="mailto:"] {
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   BOTTOM BAR
   -------------------------------------------------------------------------- */

#trackoriginFooter .to-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(245, 239, 224, 0.08);
  color: rgba(245, 239, 224, 0.4);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

#trackoriginFooter .to-footer__bottom p {
  color: rgba(245, 239, 224, 0.4);
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

#trackoriginFooter .to-footer__legal {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#trackoriginFooter .to-footer__legal a {
  color: rgba(245, 239, 224, 0.4);
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

#trackoriginFooter .to-footer__legal a:hover {
  color: #f5efe0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  #trackoriginFooter .to-footer__main {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  #trackoriginFooter .to-footer__statement {
    max-width: 56ch;
  }

  #trackoriginFooter .to-footer__links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  #trackoriginFooter .to-footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 46px;
  }

  #trackoriginFooter .to-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  #trackoriginFooter .to-footer__legal {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  #trackoriginFooter .to-footer__shell {
    padding-left: 22px;
    padding-right: 22px;
  }

  #trackoriginFooter .to-footer__main {
    padding-top: 48px;
  }

  #trackoriginFooter .to-footer__logo-link,
  #trackoriginFooter .to-footer__logo {
    width: 225px;
  }

  #trackoriginFooter .to-footer__links {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  #trackoriginFooter .to-footer__standard {
    align-items: flex-start;
  }

  #trackoriginFooter .to-footer__legal {
    flex-direction: column;
    gap: 10px;
  }
}

/* =============================================================================
   PREMIUM UPGRADES (additive — all scoped to #trackoriginFooter)
   System status rail · monogram backdrop · link-column hover · entity line
   ============================================================================= */

/* ── System status rail ────────────────────────────────────────── */
#trackoriginFooter .to-footer__status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 36px);
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(245, 239, 224, 0.08);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 239, 224, 0.55);
  position: relative;
}

#trackoriginFooter .to-footer__status::before {
  /* Slim blue hairline at the very top of the footer */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(58, 108, 217, 0.55) 50%, transparent 100%);
  pointer-events: none;
}

#trackoriginFooter .to-footer__status-cell {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

#trackoriginFooter .to-footer__status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  flex-shrink: 0;
  transform: translateY(-1px);
  animation: footer-status-pulse 2.2s ease-in-out infinite;
}

#trackoriginFooter .to-footer__status-label {
  color: rgba(245, 239, 224, 0.85);
  font-weight: 600;
}

#trackoriginFooter .to-footer__status-k {
  color: rgba(245, 239, 224, 0.4);
  font-weight: 600;
}

#trackoriginFooter .to-footer__status-v {
  color: rgba(245, 239, 224, 0.85);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#trackoriginFooter .to-footer__status-v a {
  color: rgba(245, 239, 224, 0.85);
  border-bottom: 1px dotted rgba(245, 239, 224, 0.25);
  padding-bottom: 1px;
}

#trackoriginFooter .to-footer__status-v a:hover {
  color: #3a6cd9;
  border-bottom-color: #3a6cd9;
}

@keyframes footer-status-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #trackoriginFooter .to-footer__status-dot { animation: none; }
}

/* ── Monogram backdrop behind brand column ─────────────────────── */
#trackoriginFooter .to-footer__brand {
  position: relative;
  z-index: 1;
}

#trackoriginFooter .to-footer__monogram {
  position: absolute;
  top: -52px;
  left: -18px;
  font-family: Anton, Impact, "Arial Black", sans-serif;
  font-size: clamp(180px, 22vw, 320px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(58, 108, 217, 0.14);
  text-stroke: 1px rgba(58, 108, 217, 0.14);
  pointer-events: none;
  user-select: none;
  z-index: -1;
  opacity: 0.6;
}

/* ── Link column hover treatments — left edge tick on hover ─── */
#trackoriginFooter .to-footer__col a {
  position: relative;
  padding-left: 0;
  transition: padding-left 0.18s ease, color 0.18s ease;
}

#trackoriginFooter .to-footer__col a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  width: 8px;
  height: 1px;
  background: #3a6cd9;
  transition: transform 0.18s cubic-bezier(.3,.7,.2,1);
}

#trackoriginFooter .to-footer__col a:hover {
  color: #f5efe0;
  padding-left: 14px;
}

#trackoriginFooter .to-footer__col a:hover::before {
  transform: translateY(-50%) scaleX(1);
}

/* ── Standard chip subtle upgrade — blue accent ─────────────── */
#trackoriginFooter .to-footer__standard {
  transition: border-color 0.18s ease, background 0.18s ease;
}

#trackoriginFooter .to-footer__standard:hover {
  border-color: rgba(58, 108, 217, 0.55);
  background: rgba(58, 108, 217, 0.05);
}

#trackoriginFooter .to-footer__standard-mark {
  background: rgba(58, 108, 217, 0.10);
}

/* ── Bottom left entity stack ──────────────────────────────────── */
#trackoriginFooter .to-footer__bottom-l {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

#trackoriginFooter .to-footer__entity {
  color: rgba(245, 239, 224, 0.32);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#trackoriginFooter .to-footer__entity-sep {
  opacity: 0.45;
}

/* Legal links — subtle blue underline grow on hover */
#trackoriginFooter .to-footer__legal a {
  position: relative;
  padding-bottom: 2px;
  transition: color 0.18s ease;
}

#trackoriginFooter .to-footer__legal a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #3a6cd9;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s cubic-bezier(.3,.7,.2,1);
}

#trackoriginFooter .to-footer__legal a:hover {
  color: #f5efe0;
}

#trackoriginFooter .to-footer__legal a:hover::after {
  transform: scaleX(1);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  #trackoriginFooter .to-footer__status {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 12px;
  }
}

@media (max-width: 560px) {
  #trackoriginFooter .to-footer__status {
    grid-template-columns: 1fr;
    padding: 16px 0;
  }
  #trackoriginFooter .to-footer__monogram {
    font-size: 160px;
    top: -30px;
    left: -8px;
  }
}
