/* ==========================================================================
   AlphaNovix: Part C design layer
   Loaded after styles.css. Same fonts and layout style, more contrast.
   Sections are converted one at a time; see PLAN.md (C0–C5).
   ========================================================================== */

:root {
  --anx-navy: #0B1B3F;        /* headings (sampled from logo: #081840) */
  --anx-blue: #0056FD;        /* one emphasised phrase per heading */
  --anx-ink: #2A3550;         /* body text on light grounds (≈ 10:1 on #EDECEC) */
  --anx-ink-soft: #424D68;    /* secondary text (≈ 7.1:1 on #EDECEC, 7.7:1 on #F4F4F5) */
  --anx-line: rgba(11, 27, 63, .1);
  --anx-ease-out: cubic-bezier(.16, 1, .3, 1);

  /* C1 spacing */
  --space-section: clamp(72px, 9vw, 128px);
  --space-block: clamp(32px, 4vw, 56px);

  /* C2 one card recipe */
  --anx-r-card: 28px;
  --anx-r-band: 40px;
  --anx-pad-card: clamp(24px, 3vw, 40px);
  --anx-card-bg: #F4F4F5;
  --anx-card-shadow: 0 7.77px 16px 0 rgba(11, 27, 63, .06), 0 3px 3px 0 rgba(11, 27, 63, .08), 0 -8px 0 0 rgba(11, 27, 63, .05) inset, 0 4px 0 0 rgba(255, 255, 255, .6) inset;
  --anx-card-shadow-hover: 0 18px 32px -8px rgba(11, 27, 63, .16), 0 3px 3px 0 rgba(11, 27, 63, .08), 0 -8px 0 0 rgba(11, 27, 63, .05) inset, 0 4px 0 0 rgba(255, 255, 255, .6) inset;
  --anx-navy-band: radial-gradient(70% 60% at 20% -10%, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 100%), linear-gradient(180deg, #102350 0%, var(--anx-navy) 60%);
  --anx-on-navy: #fff;
  --anx-on-navy-soft: #C9D3EA;  /* ≈ 11:1 on #0B1B3F */
  --anx-blue-on-navy: #8FB2FF;  /* ≈ 7.6:1 on #0B1B3F */

  /* Template grey (#71717A, 4.1–4.4:1) → AA body text everywhere .text-secondary is used */
  --secondary: var(--anx-ink-soft);
}

/* --------------------------------------------------------------------------
   Foundation (C0–C4): applies to every section heading on every page
   -------------------------------------------------------------------------- */

/* Section headings: solid navy, never gradient. Blue comes only from .anx-em */
.heading-section .heading-title,
.heading-title.text-gradient-3,
.heading-title.text-gradient-2 {
  margin: 0;
  padding-bottom: 0;
  color: var(--anx-navy);
  background: none;
  -webkit-text-fill-color: currentColor;
  text-wrap: balance;
}
.heading-section .heading-sub {
  color: var(--anx-navy);
}
.heading-section .heading-sub::before {
  background-color: var(--anx-blue);
}
.anx-lede {
  max-width: 40em;
  margin: 24px auto 0;
  color: var(--anx-ink);
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  line-height: 1.6;
  text-wrap: pretty;
}

/* C1: one section rhythm */
.flat-spacing {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

/* C3: one visible focus ring on everything interactive */
:where(a, button, [role="button"], [role="tab"], input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--anx-blue);
  outline-offset: 3px;
}
.box-black :where(a, button, [role="button"]):focus-visible,
.anx-navy :where(a, button, [role="button"]):focus-visible,
.site-footer :where(a, button):focus-visible {
  outline-color: var(--anx-blue-on-navy);
}

/* C4: reveals hide content only when JS is running; never under reduced motion */
html:not(.js) .effectFade {
  opacity: 1 !important;
  visibility: visible !important;
}
@media (prefers-reduced-motion: reduce) {
  .effectFade {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}

/* Blue emphasis inside a heading */
.anx-em {
  color: var(--anx-blue);
  -webkit-text-fill-color: currentColor;
}

/* Browser surfaces */
::selection {
  background: rgba(0, 86, 253, .18);
  color: var(--anx-navy);
}

/* Chips (categories, tech stack) */
.anx-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border: 1px solid var(--anx-line);
  border-radius: 999px;
  background: #fff;
  color: var(--anx-navy);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.anx-chip--blue {
  border-color: rgba(0, 86, 253, .2);
  background: rgba(0, 86, 253, .07);
  color: #0040C0;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

/* The active-item underline was positioned against the whole header and
   drew an 807px blue rule under the nav. Removed; active item uses colour. */
.nav-menu-main .current-menu-item > a::after {
  content: none;
}
.nav-menu-main .current-menu-item > a {
  color: var(--anx-blue);
}

/* 44px minimum tap target for the mobile menu button */
.tf-header .mobile-menu {
  width: 44px;
  height: 44px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.anx-hero {
  --brand: var(--anx-blue); /* the pill icon used an undefined --brand */
  min-height: 0;
  padding-bottom: 0;
}

/* Soften the blue swoosh behind the text so the blue phrase stays legible */
.anx-hero .hero-image {
  background-attachment: scroll;
}
.anx-hero .hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg,
      rgba(244, 245, 249, .95) 0%,
      rgba(244, 245, 249, .9) 40%,
      rgba(244, 245, 249, .55) 70%,
      rgba(244, 245, 249, .2) 100%);
}

.anx-hero .content-wrap {
  position: relative;
  padding: 168px 0 0;
}
.anx-hero .content-wrap .sub {
  color: var(--anx-navy);
}

.anx-hero-title {
  margin: 0 auto 24px;
  max-width: 14em;
  color: var(--anx-navy);
  font-size: clamp(2.75rem, 1.1rem + 5.6vw, 6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.anx-hero-sub {
  max-width: 36em;
  margin: 0 auto 32px;
  color: var(--anx-ink);
  font-size: clamp(1.0625rem, .95rem + .4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.55;
  text-wrap: balance;
}
.anx-hero .content-wrap .text {
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Project reel (hero)
   Base = flat, swipeable row (no JS / reduced motion).
   .is-3d = curved, auto-scrolling reel driven by project-reel.js.
   -------------------------------------------------------------------------- */

.anx-reel {
  --card-w: clamp(240px, 22vw, 330px);
  position: relative;
  margin-top: 56px;
  padding-bottom: 72px;
}

.anx-reel-track {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 8px max(16px, calc((100% - 1296px) / 2)) 16px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.anx-reel-track::-webkit-scrollbar {
  display: none;
}

.anx-reel-item {
  flex: 0 0 var(--card-w);
  scroll-snap-align: center;
}

/* Card = screenshot on top + fixed-height caption bar (no text over images).
   Every card has the same height and bar, so names line up on the curve. */
.anx-card {
  --bar-h: 64px;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: var(--anx-navy);
  box-shadow: 0 24px 48px -24px rgba(11, 27, 63, .45), 0 2px 6px rgba(11, 27, 63, .08);
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.anx-card-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #DDE1EA;
}

.anx-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top; /* logo + start of headline stay visible */
  transition: transform .7s var(--anx-ease-out);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.anx-card-bar {
  display: flex;
  flex: 0 0 var(--bar-h);
  align-items: center;
  gap: 12px;
  height: var(--bar-h);
  padding: 0 18px;
  background: var(--anx-navy);
  color: #fff;
}
.anx-card-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.anx-chip--bar {
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

@media (hover: hover) {
  .anx-card:hover .anx-card-img {
    transform: scale(1.04);
  }
}
.anx-card:focus-visible {
  outline: 3px solid var(--anx-blue);
  outline-offset: 4px;
}

/* Curved, auto-scrolling version (JS) */
.anx-reel.is-3d {
  perspective: 1500px;
  perspective-origin: 50% 45%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.anx-reel.is-3d.is-dragging {
  cursor: grabbing;
}
.anx-reel.is-3d .anx-reel-track {
  position: relative;
  display: block;
  height: calc(var(--card-w) * 1.25 * 1.22);
  padding: 0;
  overflow: visible;
  transform-style: preserve-3d;
}
.anx-reel.is-3d .anx-reel-item {
  position: absolute;
  top: calc(var(--card-w) * 1.25 * .11);
  left: 50%;
  width: var(--card-w);
  margin-left: calc(var(--card-w) / -2);
  backface-visibility: hidden;
  will-change: transform;
}
.anx-reel.is-3d.is-dragging .anx-card {
  cursor: grabbing;
}
.anx-reel.is-3d .anx-reel-item.is-far {
  opacity: 0;
  pointer-events: none;
}
/* Soft fade where the curve meets the card edge */
.anx-reel.is-3d {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.anx-reel-toggle {
  position: absolute;
  z-index: 5;
  left: max(24px, calc((100% - 1296px) / 2)); /* right side is taken by the fixed back-to-top button */
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--anx-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--anx-navy);
  cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(11, 27, 63, .45);
}
.anx-reel-toggle svg {
  width: 18px;
  height: 18px;
}
.anx-reel-toggle .anx-i-play,
.anx-reel-toggle.is-paused .anx-i-pause {
  display: none;
}
.anx-reel-toggle.is-paused .anx-i-play {
  display: block;
}
.anx-reel-toggle:focus-visible {
  outline: 3px solid var(--anx-blue);
  outline-offset: 3px;
}

/* Short desktop screens: smaller cards so more of each shows above the fold */
@media (min-width: 768px) and (max-height: 960px) {
  .anx-reel {
    --card-w: clamp(220px, 18vw, 280px);
    margin-top: 40px;
  }
}

/* Flat row (no JS / reduced motion): give mouse users a visible scrollbar */
@media (hover: hover) {
  .anx-reel:not(.is-3d) .anx-reel-track {
    scrollbar-width: thin;
    scrollbar-color: rgba(11, 27, 63, .35) transparent;
  }
  .anx-reel:not(.is-3d) .anx-reel-track::-webkit-scrollbar {
    display: block;
    height: 6px;
  }
  .anx-reel:not(.is-3d) .anx-reel-track::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: rgba(11, 27, 63, .35);
  }
}

@media (max-width: 767px) {
  .anx-reel {
    --card-w: 70vw;
    margin-top: 40px;
    padding-bottom: 48px;
  }
  .anx-reel.is-3d {
    perspective: 1100px;
  }
  .anx-card {
    --bar-h: 56px;
    border-radius: 20px;
  }
  .anx-card-bar {
    padding: 0 14px;
  }
  .anx-card-name {
    font-size: 16px;
  }
  .anx-hero .content-wrap {
    padding-top: 128px;
  }
  .anx-hero .content-wrap .sub {
    font-size: 14px;
    padding: 6px 12px;
  }
  .anx-hero-title {
    margin-bottom: 20px;
  }
  .anx-hero .bot-btns .tf-btn,
  .anx-hero .bot-btns .tf-btn-2 {
    width: 100%;
    max-width: 320px;
  }
}

/* --------------------------------------------------------------------------
   Case-study popup
   -------------------------------------------------------------------------- */

html.anx-dialog-open {
  overflow: hidden;
}

.anx-case {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: #F7F8FB;
  color: var(--anx-ink);
  box-shadow: 0 40px 100px -30px rgba(11, 27, 63, .6);
}
.anx-case::backdrop {
  background: rgba(11, 27, 63, .55);
  backdrop-filter: blur(4px);
}
.anx-case[open] {
  animation: anx-case-in .45s var(--anx-ease-out);
}
.anx-case[open]::backdrop {
  animation: anx-fade-in .3s ease-out;
}
@keyframes anx-case-in {
  from { opacity: 0; transform: translateY(24px) scale(.98); }
}
@keyframes anx-fade-in {
  from { opacity: 0; }
}

.anx-case-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  max-height: calc(100dvh - 32px);
}

.anx-case-media {
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
  background: #E9ECF3;
}
.anx-case-shot {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px -22px rgba(11, 27, 63, .5);
}
.anx-case-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.anx-case-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.anx-case-thumbs button {
  width: 96px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.anx-case-thumbs button[aria-current="true"] {
  border-color: var(--anx-blue);
}
.anx-case-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.anx-case-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  padding: 40px 36px 28px;
  overflow-y: auto;
}
.anx-case-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.anx-case-title {
  margin: 0;
  color: var(--anx-navy);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  outline: none;
}
.anx-case-lead {
  margin: 0;
  color: var(--anx-ink);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}
.anx-case-block h3 {
  margin: 0 0 8px;
  color: var(--anx-navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.anx-case-block,
.anx-case-block p,
.anx-case-block li {
  color: var(--anx-ink);
  font-size: 15px;
  line-height: 1.6;
}
.anx-case-block p:last-child {
  margin-bottom: 0;
}
.anx-case-block ul {
  margin: 0;
  padding-left: 18px;
}
.anx-case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.anx-case-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--anx-line);
}
.anx-case-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 45%;
  padding: 8px 14px;
  border: 1px solid var(--anx-line);
  border-radius: 999px;
  background: #fff;
  color: var(--anx-navy);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.anx-case-step span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.anx-case-step svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
.anx-case-step:hover {
  border-color: var(--anx-blue);
}
.anx-case-count {
  color: var(--anx-ink-soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.anx-case-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--anx-line);
  border-radius: 50%;
  background: #fff;
  color: var(--anx-navy);
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(11, 27, 63, .4);
}
.anx-case-close svg {
  width: 20px;
  height: 20px;
}
.anx-case :focus-visible,
.anx-case .tf-btn:focus-visible,
.anx-case .tf-btn-2:focus-visible {
  outline: 3px solid var(--anx-blue) !important;
  outline-offset: 3px;
}
/* The title is focused programmatically so screen readers announce it */
.anx-case .anx-case-title:focus,
.anx-case .anx-case-title:focus-visible {
  outline: none;
}
.anx-case-count {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .anx-case {
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
  .anx-case-panel {
    display: block;
    max-height: 100dvh;
    height: 100%;
    overflow-y: auto;
  }
  .anx-case-media {
    padding: 64px 16px 16px;
    overflow: visible;
  }
  .anx-case-body {
    padding: 24px 20px 24px;
    overflow: visible;
  }
  .anx-case-step {
    max-width: 40%;
    padding: 8px 12px;
  }
}
@media (max-width: 420px) {
  .anx-case-step span {
    display: none;
  }
  [data-anx-case-prev]::after {
    content: "Prev";
  }
  [data-anx-case-next]::before {
    content: "Next";
  }
}

/* --------------------------------------------------------------------------
   About (#about)
   -------------------------------------------------------------------------- */

.section-about-us {
  --brand: var(--anx-blue); /* undefined on this page; the dot and emphasis read it */
  min-height: 0;
}
.section-about-us .heading-section .heading-sub {
  color: var(--anx-navy);
}
/* Solid navy heading (was a gradient fading to the background, ≈1.5:1) */
.section-about-us .heading-section .heading-title {
  margin: 0;
  padding-bottom: 0;
  color: var(--anx-navy);
  background: none;
  -webkit-text-fill-color: currentColor;
  line-height: 1.04;
  text-wrap: balance;
}

/* Status card: deep navy instead of near-black, so it belongs to the brand */
.section-about-us .col-left {
  background:
    radial-gradient(62.56% 62.56% at 28.14% -10.42%, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, #12275A 0%, var(--anx-navy) 70%);
  box-shadow: 0 7.77px 2.21px 0 rgba(0, 0, 0, .06), 0 3px 3px 0 rgba(0, 0, 0, .1), 0 -8px 0 0 #07122C inset, 0 4px 0 0 rgba(255, 255, 255, .22) inset;
}
.section-about-us .col-left .sub {
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}
.section-about-us .col-left .sub .dot {
  background-color: #6E9BFF;
}
.section-about-us .col-left .sub .dot::before {
  background-color: rgba(110, 155, 255, .35);
}
.section-about-us .col-left .title {
  margin-top: 0;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.01em;
}
/* Brand blue is only ≈3:1 on navy; a lighter tint of it keeps the phrase readable */
.section-about-us .col-left .title {
  --brand: #8FB2FF; /* .text-brand reads var(--brand) with !important */
}
.section-about-us .col-left .tf-btn {
  background: var(--anx-blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 86, 253, .35), 0 -3px 0 0 rgba(0, 0, 0, .18) inset, 0 1px 0 0 rgba(255, 255, 255, .25) inset;
}
@media (hover: hover) {
  .section-about-us .col-left .tf-btn:hover {
    background: #fff;
    color: var(--anx-navy);
  }
}

/* Copy card: darker text, real paragraph rhythm */
.section-about-us .review-box .desc {
  margin-bottom: 20px;
  color: var(--anx-navy);
  text-wrap: pretty;
}
.section-about-us .review-box p {
  margin: 0;
  color: var(--anx-ink);
  line-height: 1.6;
  text-wrap: pretty;
}
.section-about-us .review-box p + p {
  margin-top: 14px;
}
.section-about-us .box-quotes .desc {
  color: var(--anx-navy);
}
.section-about-us .box-quotes .cite .name {
  color: var(--anx-ink);
}

@media (max-width: 767px) {
  .section-about-us .col-left .title {
    font-size: 22px;
    line-height: 28px;
  }
}

/* --------------------------------------------------------------------------
   Featured Work (#works): portfolio projects, open the case-study popup
   -------------------------------------------------------------------------- */

.anx-work {
  padding-top: 0;
}
.anx-work-head {
  margin-bottom: var(--space-block);
}
.anx-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.anx-work-item {
  display: flex;
}
.anx-work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 12px;
  border-radius: var(--anx-r-card);
  background: var(--anx-card-bg);
  box-shadow: var(--anx-card-shadow);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s cubic-bezier(.2, .7, .2, 1);
}
.anx-work-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--anx-r-card) - 10px);
  background: #E4E6EC;
}
.anx-work-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.anx-work-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(16px, 2vw, 24px) clamp(12px, 1.5vw, 20px) clamp(12px, 1.5vw, 16px);
}
.anx-work-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.anx-work-title {
  margin: 0;
  color: var(--anx-navy);
  font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.anx-work-link {
  color: inherit;
  text-decoration: none;
}
/* The whole card is the hit area */
.anx-work-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--anx-r-card);
}
.anx-work-link:focus-visible {
  outline: none;
}
.anx-work-link:focus-visible::after {
  outline: 2px solid var(--anx-blue);
  outline-offset: 3px;
}
.anx-work-excerpt {
  margin: 0;
  color: var(--anx-ink);
  line-height: 1.6;
  text-wrap: pretty;
}
.anx-work-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
  color: var(--anx-blue);
  font-weight: 600;
}
.anx-work-more svg {
  width: 18px;
  height: 18px;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.anx-work-foot {
  margin-top: var(--space-block);
  text-align: center;
}
.anx-work-foot .tf-btn-2 {
  color: var(--anx-navy);
}
@media (hover: hover) {
  .anx-work-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--anx-card-shadow-hover);
  }
  .anx-work-card:hover .anx-work-img {
    transform: scale(1.03);
  }
  .anx-work-card:hover .anx-work-more svg {
    transform: translate(2px, -2px);
  }
}
@media (max-width: 767px) {
  .anx-work-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Industries ticker (replaces the partner strip)
   -------------------------------------------------------------------------- */

.anx-industries {
  padding-bottom: var(--space-block);
}
.anx-industries-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px clamp(24px, 4vw, 56px);
  padding: 32px 0;
  border-top: 1px solid var(--anx-line);
  border-bottom: 1px solid var(--anx-line);
}
.anx-industries-title {
  flex-shrink: 0;
  margin: 0;
  color: var(--anx-ink-soft);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.anx-ticker {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.anx-ticker-track {
  display: flex;
  width: max-content;
  animation: anx-ticker 38s linear infinite;
}
.anx-ticker-list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.anx-ticker-list li {
  display: inline-flex;
  align-items: center;
  color: var(--anx-navy);
  font-size: clamp(1.25rem, 1.05rem + .6vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.anx-ticker-list li::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 clamp(20px, 2.5vw, 36px);
  border-radius: 50%;
  background: var(--anx-blue);
}
.anx-industries:hover .anx-ticker-track,
.anx-industries:focus-within .anx-ticker-track,
.anx-industries.is-paused .anx-ticker-track,
.anx-industries.is-offscreen .anx-ticker-track {
  animation-play-state: paused;
}
.anx-ticker-toggle {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--anx-line);
  border-radius: 50%;
  background: #fff;
  color: var(--anx-navy);
}
.anx-ticker-toggle svg {
  width: 18px;
  height: 18px;
}
.anx-ticker-toggle .anx-i-play,
.anx-ticker-toggle[aria-pressed="true"] .anx-i-pause {
  display: none;
}
.anx-ticker-toggle[aria-pressed="true"] .anx-i-play {
  display: block;
}
.anx-ticker:focus-visible {
  outline: 2px solid var(--anx-blue);
  outline-offset: 4px;
  border-radius: 8px;
}
@keyframes anx-ticker {
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 767px) {
  .anx-industries-inner {
    flex-wrap: wrap;
    padding: 24px 0;
  }
  .anx-industries-title {
    flex: 1 0 auto;
  }
  .anx-ticker {
    flex-basis: 100%;
    order: 3;
  }
}

/* --------------------------------------------------------------------------
   Services (#services)
   -------------------------------------------------------------------------- */

/* Left column reads as one unit: intro + illustration, pinned while the list scrolls */
.section-services .col-left {
  margin-bottom: 0;
}
@media (min-width: 992px) {
  .section-services .col-left {
    position: sticky;
    top: 120px;
  }
}
.section-services .col-left > p {
  color: var(--anx-ink);
  line-height: 1.6;
}
.section-services .services-image {
  position: static;
  max-width: 416px;
  height: auto;
  aspect-ratio: 16 / 10;
  margin-top: var(--space-block);
}
.section-services .services-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: opacity .2s ease;
}
@media (max-width: 991px) {
  .section-services .services-image {
    display: none;
  }
  .section-services .col-left {
    margin-bottom: 32px;
  }
}

/* Accordion: real buttons inside h3s */
.section-services .anx-acc-heading {
  margin: 0;
  font: inherit;
}
.section-services .accordion-action {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.section-services .accordion-action::before {
  background: var(--anx-navy-band);
  box-shadow: 0 -8px 0 0 #07122C inset, 0 4px 0 0 rgba(255, 255, 255, .18) inset, 0 7.77px 2.21px 0 rgba(0, 0, 0, .06), 0 3px 3px 0 rgba(0, 0, 0, .1);
}
.section-services .accordion-faq_item {
  border-radius: var(--anx-r-card);
  box-shadow: var(--anx-card-shadow);
}
.section-services .accordion-faq_item .accordion-title {
  gap: 16px;
  color: var(--anx-navy);
}
.section-services .accordion-faq_item .accordion-title .num {
  flex-shrink: 0;
  color: var(--anx-ink-soft);
}
.section-services .accordion-action:not(.collapsed) .accordion-title,
.section-services .accordion-action:not(.collapsed) .accordion-title .num {
  color: var(--anx-on-navy);
}
.section-services .accordion-action:focus-visible {
  outline: none;
}
.section-services .accordion-faq_item:has(.accordion-action:focus-visible) {
  outline: 2px solid var(--anx-blue);
  outline-offset: 3px;
}
@media (hover: hover) {
  .section-services .accordion-action.collapsed:hover .accordion-title {
    color: var(--anx-blue);
  }
}
.section-services .accordion-content .text {
  color: var(--anx-on-navy-soft);
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: 32px;
}
.section-services .list-tags {
  gap: 8px;
}
.section-services .tags-item,
.section-services .accordion-faq_item .accordion-action:not(.collapsed) + .collapsing .tags-item {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Process (#process): deep navy band, white text, all four steps visible
   -------------------------------------------------------------------------- */

.anx-navy {
  position: relative;
  margin: 16px 16px 0;
  border-radius: var(--anx-r-band);
  background: var(--anx-navy-band);
  color: var(--anx-on-navy);
  overflow: hidden;
}
@media (max-width: 991px) {
  .anx-navy {
    margin-left: 12px;
    margin-right: 12px;
  }
}
@media (max-width: 767px) {
  .anx-navy {
    border-radius: 24px;
  }
}
.anx-navy .heading-section .heading-title {
  color: var(--anx-on-navy);
}
.anx-navy .heading-section .heading-title .anx-em {
  color: var(--anx-blue-on-navy);
}
.anx-navy .heading-section .heading-sub {
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16) inset;
  color: var(--anx-on-navy);
}
.anx-navy .heading-section .heading-sub::before {
  background-color: var(--anx-blue-on-navy);
}
.anx-process-head {
  margin-bottom: var(--space-block);
}
.anx-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.anx-process-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--anx-pad-card) clamp(20px, 2vw, 28px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--anx-r-card);
  background: rgba(255, 255, 255, .05);
  box-shadow: 0 4px 0 0 rgba(255, 255, 255, .06) inset;
}
.anx-process-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.anx-process-top .icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--anx-blue);
  color: #fff;
  font-size: 20px;
}
.anx-process-top .icon::before {
  font-size: 22px;
}
.anx-process-num {
  color: var(--anx-on-navy);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.anx-process-num span {
  color: var(--anx-on-navy-soft);
  opacity: .8;
}
.anx-process-title {
  margin: 0;
  color: var(--anx-on-navy);
  font-size: clamp(1.375rem, 1.2rem + .5vw, 1.625rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.anx-process-text,
.anx-process-deliv {
  margin: 0;
  color: var(--anx-on-navy-soft);
  font-size: 16px;
  line-height: 1.6;
}
.anx-process-deliv {
  font-size: 15px;
}
.anx-process-deliv strong {
  color: var(--anx-on-navy);
  font-weight: 600;
}
.anx-process-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: var(--anx-on-navy);
  font-size: 15px;
  font-weight: 600;
}
.anx-process-time .icon {
  color: var(--anx-blue-on-navy);
}
@media (max-width: 1199px) {
  .anx-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575px) {
  .anx-process-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Tools / technology stack
   -------------------------------------------------------------------------- */

.section-tools .heading-section {
  margin-bottom: 0;
}
.anx-tools-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 46em;
  margin: 32px auto 0;
  padding: 0;
  list-style: none;
}
.anx-tools-list .anx-chip {
  min-height: 34px;
  padding: 6px 14px;
  font-size: 14px;
}
/* Floating icons sit in the side gutters so they never cover the copy */
@media (min-width: 1200px) {
  .section-tools > .img-1 { left: 7%; }
  .section-tools > .img-2 { left: 2.5%; }
  .section-tools > .img-3 { left: 8%; }
  .section-tools > .img-4 { left: auto; right: 7%; }
  .section-tools > .img-5 { left: auto; right: 2.5%; }
  .section-tools > .img-6 { left: auto; right: 8%; }
}
@media (max-width: 1199px) {
  .section-tools > .tech-float {
    display: none;
  }
}
.anx-tools-cta {
  margin-top: 40px;
}

/* --------------------------------------------------------------------------
   Comparison: navy instead of near-black, one light-blue phrase, AA greys
   -------------------------------------------------------------------------- */

.anx-navy-shell {
  background: var(--anx-navy-band);
}
.anx-navy-shell .light-box {
  display: none;
}
.section-comparison {
  padding: var(--space-section) 0;
}
.comparison-heading {
  margin-bottom: var(--space-block);
}
.comparison-title {
  font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.25rem);
  text-wrap: balance;
}
.comparison-card-head {
  min-height: 0;
}
.comparison-card-before .comparison-list .icon {
  color: #FF9BB0;
}
.comparison-card-after .comparison-list .icon {
  color: #5CF0D0;
}
.comparison-title .anx-em {
  background: none;
  color: var(--anx-blue-on-navy);
  -webkit-text-fill-color: currentColor;
}
.comparison-badge {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
  color: var(--anx-on-navy);
}
.comparison-heading > p,
.comparison-card-head p,
.comparison-list span,
.comparison-kicker {
  color: var(--anx-on-navy-soft);
}
.comparison-card {
  border-color: rgba(255, 255, 255, .12);
  border-radius: var(--anx-r-card);
  background: rgba(255, 255, 255, .05);
  box-shadow: 0 26px 70px rgba(4, 10, 30, .35), 0 4px 0 0 rgba(255, 255, 255, .06) inset;
  backdrop-filter: none;
}
.comparison-card-head {
  border-bottom-color: rgba(255, 255, 255, .12);
}
.comparison-list li + li {
  border-top-color: rgba(255, 255, 255, .08);
}
.comparison-list span {
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Pricing (home-pricing.php)
   -------------------------------------------------------------------------- */

.section-pricing {
  --brand: var(--anx-blue);
}
.section-pricing .pricing-heading {
  margin-bottom: var(--space-block);
}
.section-pricing .pricing-heading .anx-lede {
  margin-top: 20px;
}
.section-pricing .pricing-switcher-btn.is-active {
  background: var(--anx-blue);
  box-shadow: 0 8px 18px rgba(0, 86, 253, .24), 0 -2px 0 rgba(11, 27, 63, .18) inset;
}
.section-pricing .pricing-panel .pricing-item {
  border-radius: var(--anx-r-card);
}
.section-pricing .pricing-panel .pricing-item.style-black {
  border-color: var(--anx-blue);
}
.section-pricing .pricing-card-tag {
  color: #0040C0;
  font-size: 12px;
}
.section-pricing .pricing-panel .pricing-item .heading .price-per,
.section-pricing .pricing-panel .pricing-item.style-black .heading .price-per {
  color: var(--anx-ink-soft);
  font-size: 13px;
  letter-spacing: .04em;
}
.section-pricing .pricing-panel .pricing-item.style-black .heading .tf-btn {
  background: var(--anx-blue);
}
.section-pricing .pricing-panel .pricing-item .content h3.title,
.section-pricing .pricing-panel .pricing-item.style-black .content h3.title,
.section-pricing .pricing-item .content h3.title {
  margin-top: 0;
  color: var(--anx-navy);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
}
.section-pricing .pricing-item .content .text,
.section-pricing .pricing-note {
  color: var(--anx-ink-soft) !important;
}
.section-pricing .pricing-note {
  max-width: 52em;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.section-faqs .heading-section {
  margin-bottom: var(--space-block);
}
.accordion-asked {
  display: grid;
  gap: 12px;
}
.accordion-asked .accordion-asked-item {
  border-radius: var(--anx-r-card);
  box-shadow: var(--anx-card-shadow);
}
.accordion-asked .accordion-asked-title {
  margin: 0;
  font: inherit;
  letter-spacing: 0;
}
.accordion-asked .accordion-button {
  width: 100%;
  padding: 4px 0;
  background: none;
  box-shadow: none;
  color: var(--anx-navy);
  text-align: left;
}
.accordion-asked .accordion-button:hover {
  color: var(--anx-blue);
}
.accordion-asked .accordion-button span {
  background: var(--anx-navy);
  box-shadow: 0 -3px 0 0 #07122C inset, 0 1px 0 0 rgba(255, 255, 255, .25) inset;
}
.accordion-asked .accordion-body {
  max-width: 68ch;
  color: var(--anx-ink);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Contact (#contact)
   -------------------------------------------------------------------------- */

.anx-contact-lede {
  margin-left: 0;
  margin-right: 0;
}
.section-contact .form-contact {
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--anx-r-card);
  box-shadow: var(--anx-card-shadow);
}
.section-contact .form-contact .heading {
  margin: 0 0 24px;
  color: var(--anx-navy);
  font-size: clamp(1.5rem, 1.3rem + .6vw, 2rem);
  line-height: 1.2;
}
.section-contact .form-contact label {
  margin-bottom: 8px !important;
  color: var(--anx-navy);
}
/* Dropdowns match the underlined inputs */
.section-contact .form-contact select {
  width: 100%;
  height: 36px;
  padding: 0 28px 11px 0;
  border: 0;
  border-bottom: 1px solid #D4D4D8;
  border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5' fill='none' stroke='%230B1B3F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 2px top 2px / 18px;
  color: var(--anx-navy);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.section-contact .form-contact select:focus {
  border-bottom-color: var(--anx-blue);
}
.form-contact select option,
.inner-contact-form select option {
  background: #fff;
  color: var(--anx-navy);
}
/* Contact page: two selects side by side must not overflow their columns */
.inner-contact-form .form-field-grid > label {
  min-width: 0;
}
.inner-contact-form select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 52px;
  padding: 0 40px 0 15px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5' fill='none' stroke='%230B1B3F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
  color: var(--anx-navy);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.section-contact .form-contact ::placeholder {
  color: #5C6680; /* ≈ 5.4:1 on the field */
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.final-cta {
  padding: var(--space-section) 0;
}
.final-cta .heading-section {
  margin-bottom: 0;
}
.final-cta .anx-lede {
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
}
.final-cta .bot-btns {
  flex-wrap: wrap;
  margin-top: 32px;
}
.final-cta .tf-btn-2 {
  color: var(--anx-navy);
}

/* --------------------------------------------------------------------------
   Footer: navy panel, AA text on navy
   -------------------------------------------------------------------------- */

/* White logo on navy (footer, mobile menu). ~200px desktop, ~170px mobile keeps the tagline readable */
.anx-logo-white {
  display: block;
  height: auto;
}
.site-footer .footer-wordmark .anx-logo-footer {
  width: 200px;
  max-width: 100%;
}
.anx-logo-menu {
  width: 170px;
}
@media (max-width: 767px) {
  .site-footer .footer-wordmark .anx-logo-footer {
    width: 170px;
  }
}
.site-footer .footer-panel {
  background: var(--anx-navy-band);
  border-color: rgba(255, 255, 255, .1);
}
.site-footer .footer-brand-block > p,
.site-footer .footer-connect > p:not(.footer-eyebrow),
.site-footer .footer-socials li,
.site-footer .footer-bottom > *,
.site-footer .footer-bottom > p:nth-child(2) {
  color: var(--anx-on-navy-soft);
}
.site-footer .footer-eyebrow {
  color: var(--anx-on-navy-soft);
}
.site-footer .footer-socials a {
  color: var(--anx-on-navy-soft);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .25);
  text-underline-offset: 4px;
}
.site-footer .footer-socials a:hover {
  color: var(--anx-blue-on-navy);
  text-decoration-color: currentColor;
}
.site-footer .footer-nav-group a {
  color: rgba(255, 255, 255, .88);
}
.site-footer .footer-project-link:hover,
.site-footer .footer-nav-group a:hover {
  color: var(--anx-blue-on-navy);
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .section-tools .tech-float {
    animation: none !important;
  }
  .anx-ticker {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .anx-ticker-track {
    width: auto;
    animation: none;
  }
  .anx-ticker-list {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .anx-ticker-list[aria-hidden="true"],
  .anx-ticker-toggle {
    display: none;
  }
  .anx-ticker-list li {
    white-space: normal;
  }
  .anx-work-card,
  .anx-work-img,
  .anx-work-more svg {
    transition: none;
  }
  .anx-card-img {
    transition: none;
  }
  .section-about-us .col-left .sub .dot::before {
    animation: none;
  }
  .anx-case[open],
  .anx-case[open]::backdrop {
    animation: none;
  }
}
