/* ==========================================================================
   TechAxis Intelligence — Solutions page
   Palette sampled directly from the supplied logo (navy / bright blue / gold).
   All text pairs verified at WCAG AA or better.
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #0A1526;
  --navy-800: #12203A;
  --navy-700: #1B2F4E;
  --navy-600: #24405F;

  --gold:      #C9973B;
  --gold-200:  #E3B75C;
  --gold-deep: #8C6A22;

  --blue:      #1E6FE0;
  --blue-300:  #5E9DF7;
  --blue-700:  #1257C0;

  --ink:    #0F1D33;
  --slate:  #4A5A70;
  --muted:  #5A6B80;
  --mist:   #F4F6F9;
  --line:   #E3EAF3;
  --white:  #FFFFFF;

  /* On dark */
  --on-dark:        #FFFFFF;
  --on-dark-soft:   #C3CEDC;
  --on-dark-line:   rgba(255,255,255,.14);

  /* Type */
  --font-display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --shell: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 8vw, 7rem);
  --radius: 4px;
  --header-h: 80px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.14; letter-spacing: -0.012em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--navy :where(a, button):focus-visible,
.hero :where(a, button):focus-visible,
.close-card :where(a, button):focus-visible,
.site-footer :where(a, button):focus-visible {
  outline-color: var(--gold-200);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100%;
  z-index: 200;
  background: var(--navy-900); color: var(--white);
  padding: .75rem 1.1rem; font-size: .9rem; font-weight: 600;
  text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.eyebrow--onDark { color: var(--gold-200); }

.section { padding-block: var(--section-y); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy-900); }
.section--close { background: var(--mist); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section__title { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
.section__title--light { color: var(--on-dark); }
.section__lede { margin-top: 1.15rem; color: var(--slate); font-size: 1.09rem; }
.section__lede--light { color: var(--on-dark-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: .96rem; font-weight: 600; line-height: 1;
  letter-spacing: .005em;
  padding: 1rem 1.65rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn--sm { padding: .72rem 1.15rem; font-size: .88rem; }

.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-200); border-color: var(--gold-200); }

.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.45); color: var(--on-dark); }
.btn--outline-light:hover { border-color: var(--gold-200); color: var(--gold-200); }

.btn:active { transform: translateY(1px); }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Quiet inline links */
.quiet-link-row { margin-top: 2.25rem; }
.quiet-link {
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-700); text-decoration: none;
  border-bottom: 1px solid rgba(18,87,192,.35);
  padding-bottom: 2px;
}
.quiet-link::after { content: " \2192"; }
.quiet-link:hover { color: var(--navy-900); border-bottom-color: var(--gold); }

/* ---------- Decorative arcs (echo of the logo mark) ---------- */
.arc { stroke-width: 2; fill: none; stroke-linecap: round; }
.arc--blue   { stroke: var(--blue); }
.arc--blue-2 { stroke: var(--blue-300); }
.arc--gold   { stroke: var(--gold); }
.node { fill: none; stroke-width: 2.5; }
.node--blue { stroke: var(--blue-300); }
.node--gold { stroke: var(--gold-200); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: auto; height: 42px; }

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.nav__list { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.nav__list a {
  font-size: .95rem; font-weight: 500; color: var(--ink);
  text-decoration: none; padding-block: .35rem;
  border-bottom: 2px solid transparent;
}
.nav__list a:hover { color: var(--blue-700); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 46px; height: 42px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle__bars { display: block; width: 20px; }
.nav-toggle__bars span {
  display: block; height: 2px; background: var(--navy-900);
  border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 78% 8%, #16294A 0%, rgba(22,41,74,0) 62%),
    var(--navy-900);
  color: var(--on-dark);
  padding-block: clamp(4.5rem, 9vw, 8rem);
  overflow: hidden;
  border-bottom: 1px solid var(--navy-700);
}
.hero__art {
  position: absolute; right: -4%; bottom: -8%;
  width: min(52%, 620px);
  opacity: .3;
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 44rem; }
.hero__title {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  letter-spacing: -0.022em;
}
.hero__lede {
  margin-top: 1.5rem;
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  color: var(--on-dark-soft);
  max-width: 38rem;
}
.hero .btn-row { margin-top: 2.5rem; }
.hero__note {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201,151,59,.4);
  max-width: 36rem;
  font-size: .95rem;
  color: var(--on-dark-soft);
}

/* ---------- Problems ---------- */
.problems {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
}
.problem {
  position: relative;
  padding-left: 1.6rem;
  border-left: 1px solid var(--line);
}
.problem::before {
  content: ""; position: absolute; left: -4.5px; top: .55rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
}
.problem:nth-child(even)::before { background: var(--blue); }
.problem__title { font-size: 1.22rem; margin-bottom: .6rem; }
.problem p { color: var(--slate); font-size: 1rem; }

/* ---------- Solution cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}
.card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy-800);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem 1.5rem;
  transition: border-top-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover {
  border-top-color: var(--gold);
  box-shadow: 0 14px 34px -22px rgba(10,21,38,.55);
  transform: translateY(-2px);
}
.card__title { font-size: 1.28rem; margin-bottom: .6rem; }
.card__desc { color: var(--slate); font-size: .98rem; }
.card__points { margin-top: 1.1rem; display: grid; gap: .45rem; }
.card__points li {
  position: relative; padding-left: 1.1rem;
  font-size: .93rem; color: var(--ink);
}
.card__points li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--blue);
}
.card__link {
  margin-top: auto; padding-top: 1.35rem;
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-700); text-decoration: none;
}
.card__link::after { content: " \2192"; }
.card__link:hover { color: var(--navy-900); text-decoration: underline; }

/* ---------- Reusable CTA band ---------- */
.cta-band {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}
.cta-band__text {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--ink);
}
.cta-band--dark {
  background: rgba(255,255,255,.04);
  border-color: var(--on-dark-line);
  border-left-color: var(--gold);
}
.cta-band--dark .cta-band__text { color: var(--on-dark); }

/* ---------- Process / signature axis ---------- */
.process { position: relative; }

.axis {
  position: relative;
  height: 140px;
  overflow: hidden;
}
.axis__curve { position: absolute; inset: 0; width: 100%; height: 100%; }
.axis__curve path {
  fill: none;
  stroke: url(#axisGradient);
  stroke-width: 1.75;
  stroke-linecap: round;
}
.axis__node {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 12px; height: 12px;
  margin-left: -6px; margin-top: -6px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 2px solid var(--blue-300);
  box-shadow: 0 0 0 5px rgba(30,111,224,.12);
}
.axis__node--gold {
  border-color: var(--gold-200);
  box-shadow: 0 0 0 5px rgba(227,183,92,.16);
}
.axis__node::after {
  content: "";
  position: absolute; left: 50%; top: calc(100% + 6px);
  width: 1px; height: 140px;
  transform: translateX(-50%);
  background: linear-gradient(rgba(255,255,255,.26), rgba(255,255,255,.04));
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.step {
  padding-top: 1.4rem;
  border-top: 1px solid var(--on-dark-line);
}
.step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .16em;
  color: var(--gold-200);
  margin-bottom: .85rem;
}
.step__title { font-size: 1.16rem; color: var(--on-dark); margin-bottom: .55rem; }
.step p { color: var(--on-dark-soft); font-size: .95rem; }

/* Scroll reveal (disabled under reduced motion — see media query) */
.js .axis__node,
.js .step { opacity: 0; transform: translateY(10px); }
.js .axis__node { transform: translateY(6px); }
.js .is-visible .axis__node,
.js .is-visible .step {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .55s ease;
}
.js .is-visible .axis__node:nth-of-type(2) { transition-delay: .1s; }
.js .is-visible .axis__node:nth-of-type(3) { transition-delay: .2s; }
.js .is-visible .axis__node:nth-of-type(4) { transition-delay: .3s; }
.js .is-visible .step:nth-child(2) { transition-delay: .1s; }
.js .is-visible .step:nth-child(3) { transition-delay: .2s; }
.js .is-visible .step:nth-child(4) { transition-delay: .3s; }

/* ---------- Why TechAxis ---------- */
.why {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.why__body { margin-top: 1.25rem; color: var(--slate); font-size: 1.09rem; }
.why__points { display: grid; gap: 1.6rem; padding-top: .5rem; }
.why__points li { padding-left: 1.4rem; border-left: 2px solid var(--gold); }
.why__points h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.why__points p { color: var(--slate); font-size: .98rem; }

/* ---------- Closing CTA card ---------- */
.close-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(110% 120% at 88% 0%, #172C4E 0%, rgba(23,44,78,0) 60%),
    var(--navy-900);
  color: var(--on-dark);
  border-radius: 6px;
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.close-card__art {
  position: absolute; right: -2%; bottom: -12%;
  width: min(40%, 340px); opacity: .28; pointer-events: none;
}
.close-card__title {
  position: relative;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  max-width: 34rem; margin-inline: auto;
}
.close-card__body {
  position: relative;
  margin: 1.25rem auto 0;
  max-width: 36rem;
  color: var(--on-dark-soft);
}
.close-card .btn-row { position: relative; justify-content: center; margin-top: 2.25rem; }
.close-card__note {
  position: relative;
  margin-top: 2rem;
  font-size: .92rem;
  color: var(--on-dark-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--on-dark-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-top: 3px solid var(--gold);
}
.site-footer__brand { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.site-footer__brand img { width: auto; height: 54px; }
.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.15rem; color: var(--on-dark);
}
.site-footer__links {
  display: flex; flex-wrap: wrap; gap: 1.75rem;
  margin-top: 2rem; padding-top: 1.75rem;
  border-top: 1px solid var(--on-dark-line);
}
.site-footer__links a {
  color: var(--on-dark); font-size: .95rem; text-decoration: none;
  border-bottom: 1px solid rgba(227,183,92,.5); padding-bottom: 2px;
}
.site-footer__links a:hover { color: var(--gold-200); }
.site-footer__note { margin-top: 1.75rem; max-width: 42rem; font-size: .92rem; }
.site-footer__legal { margin-top: 1.25rem; font-size: .85rem; color: #9FB0C4; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1023px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .why { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .axis { display: none; }
  .step { border-top-color: var(--on-dark-line); }
}

@media (max-width: 820px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 1.75rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 40px -28px rgba(10,21,38,.6);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a {
    display: block;
    padding: .95rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.02rem;
  }
  .nav__list a:hover { border-bottom-color: var(--line); }
  .nav__cta { margin-top: 1.25rem; justify-content: center; padding-block: 1rem; }

  .problems { grid-template-columns: 1fr; }
  .brand img { height: 36px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band .btn { width: 100%; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero__art { width: 78%; opacity: .2; right: -14%; }
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .close-card { text-align: left; }
  .close-card .btn-row { justify-content: stretch; }
  .close-card__title, .close-card__body { margin-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .axis__node,
  .js .step { opacity: 1; transform: none; }
}

/* Scroll offset so anchors clear the sticky header */
:target { scroll-margin-top: calc(var(--header-h) + 16px); }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Print ---------- */
@media print {
  .site-header, .hero__art, .close-card__art { display: none !important; }
  body { color: #000; }
  .hero, .section--navy, .close-card, .site-footer { background: #fff !important; color: #000 !important; }
  .hero__title, .section__title--light, .step__title, .close-card__title { color: #000 !important; }
}
