/* Shared secondary-page navigation — quiet editorial bar (Work / About / Contact / cases) */
.ax-subnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 37, 32, 0.08);
}

.ax-subnav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.35rem 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.ax-subnav__start,
.tf-work-bar__lead {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}

/* Text back — no pill, no gold chrome */
a.ax-subnav__back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: auto;
  padding: 0.2rem 0;
  margin: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(42, 37, 32, 0.52) !important;
  text-decoration: none !important;
  font-family: Inter, "DM Sans", system-ui, sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a.ax-subnav__back svg {
  width: 13px;
  height: 13px;
  display: block;
  flex: 0 0 auto;
  opacity: 0.75;
}

a.ax-subnav__back:hover {
  color: #2a2520 !important;
  background: transparent !important;
  border: 0 !important;
  transform: none;
}

a.ax-subnav__back:hover svg {
  opacity: 1;
}

.ax-subnav__brand {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: #2a2520;
  min-width: 0;
}

/* Drop circular AX badge — wordmark is the brand */
.ax-subnav__mark {
  display: none !important;
}

.ax-subnav__lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  line-height: 1;
}

.ax-subnav__word {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-size: 1.38rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.ax-subnav__x {
  color: #2a2520;
  opacity: 0.7;
}

.ax-subnav__tag {
  font-family: Inter, "DM Sans", system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(42, 37, 32, 0.42);
  white-space: nowrap;
}

/* Quiet text links — no filled pills */
.ax-subnav__nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  flex-wrap: wrap;
}

.ax-subnav__nav a {
  position: relative;
  font-family: Inter, "DM Sans", system-ui, sans-serif;
  text-decoration: none;
  color: rgba(42, 37, 32, 0.62);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 0.35rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: color 0.2s ease;
}

.ax-subnav__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.55;
}

.ax-subnav__nav a:hover {
  color: #2a2520;
  background: transparent;
}

.ax-subnav__nav a:hover::after {
  transform: scaleX(1);
}

.ax-subnav__nav a[aria-current="page"] {
  color: #2a2520;
  background: transparent;
  border: 0;
  font-weight: 600;
}

.ax-subnav__nav a[aria-current="page"]::after {
  transform: scaleX(1);
  opacity: 0.85;
}

.ax-subnav__note {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.35rem 0.85rem;
  font-family: Inter, "DM Sans", system-ui, sans-serif;
  font-size: 0.74rem;
  line-height: 1.4;
  color: rgba(107, 103, 98, 0.88);
  border-bottom: 0;
}

@media (max-width: 860px) {
  .ax-subnav__inner {
    flex-wrap: wrap;
    row-gap: 0.55rem;
    padding: 0.75rem 1.1rem 0.65rem;
    gap: 0.5rem 1rem;
  }

  .ax-subnav__start {
    flex: 1 1 auto;
    width: auto;
    justify-content: flex-start;
    gap: 0.85rem;
    min-width: 0;
  }

  .ax-subnav__nav {
    width: 100%;
    justify-content: flex-start;
    gap: 1.1rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(42, 37, 32, 0.06);
  }

  .ax-subnav__nav a {
    flex: 0 0 auto;
    text-align: left;
    padding: 0.35rem 0;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
  }

  .ax-subnav__note {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
    font-size: 0.74rem;
  }
}

@media (max-width: 520px) {
  .ax-subnav__word {
    font-size: 1.22rem;
  }

  .ax-subnav__tag {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  a.ax-subnav__back {
    font-size: 0.68rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ax-subnav__nav a,
  .ax-subnav__nav a::after,
  a.ax-subnav__back {
    transition: none;
  }
}

/* Case studies keep the outer AesthetiX bar only. */
header.archive-header,
header.archive-header.archive-header--pdp-lux,
a.p03-nav-back,
.p03-mobile-section-jump {
  display: none !important;
}

footer.vl-footer,
footer.archive-footer,
.product2-footer-legal,
.site-launch-disclaimer {
  display: none !important;
}

footer.tf-work-foot {
  display: block !important;
}
