/* ===========================================================================
   Axiom Talent
   Built to Axiom-Brand-Guidelines.md + Axiom-Website-Copy.md.
   Design language: rectilinear and restrained, two brand colors, two
   typefaces, depth used sparingly. Restraint over decoration.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   THEMING
   Light is the default and is the brand's canonical presentation. Dark mode
   is an accommodation, not a second brand: it keeps the same Royal Blue
   relationships with the surfaces inverted.
   "paper" = the contrasting band, so the section rhythm survives both themes.
   --------------------------------------------------------------------------- */

/* LIGHT: the default. */
:root {
  --ink:        #FFFFFF;          /* surface */
  --ink-2:      #F3F8FF;          /* Alice Blue: grey/tinted sections */
  --ink-3:      #D6D6D6;          /* Dust Grey */
  --paper:      #0A0A0A;          /* Onyx: contrast band */
  --paper-2:    #141414;

  /* Brand */
  --blue:       #2563EB;          /* Royal Blue: primary brand */
  --blue-hi:    #1D4FD7;          /* hover / pressed */
  --blue-ink:   #1D4ED8;          /* AA-safe blue for TEXT on light */

  /* Accent aliases so existing component rules keep working. */
  --amber:      var(--blue-ink);  /* AA-safe blue for text/icons */
  --amber-hi:   #1E40AF;
  --amber-dim:  rgba(37, 99, 235, .08);

  /* Text on the base surface */
  --t1:  #0A0A0A;                 /* Onyx: headings */
  --t2:  #3D3D3D;                 /* ink-2: body */
  --t3:  #69727D;                 /* slate: meta */
  /* Text on the charcoal band */
  --p1:  #FFFFFF;
  --p2:  rgba(255, 255, 255, .82);
  --p3:  rgba(255, 255, 255, .70);

  --line:       #E6E9EF;                    /* hairline on light */
  --line-solid: rgba(255, 255, 255, .20);   /* hairline-d */
  --grid-line:  #D6D6D6;

  --accent-on-band: #6D9BFF;   /* blue that reads on the Onyx band */
  --solid-fg:       #FFFFFF;   /* text on an Onyx/blue fill */
  --header-bg:      rgba(255, 255, 255, .90);
  --hover-wash:     #F3F8FF;
  --img-filter:     none;

  --btn-solid-bg:   #0A0A0A;   /* solid = Onyx fill, Royal Blue on hover */
  --btn-solid-hover:#2563EB;
}

/* DARK: accommodation. Same brand relationships, surfaces inverted. */
:root[data-theme="dark"] {
  --ink:        #0A0A0A;
  --ink-2:      #141414;
  --ink-3:      #1E1E1E;
  --paper:      #F3F8FF;
  --paper-2:    #E4ECF9;

  --blue:       #2563EB;
  --blue-hi:    #4F82F5;
  --blue-ink:   #8AB0FF;         /* lightened so it passes AA on Onyx */

  --amber:      #8AB0FF;
  --amber-hi:   #B3CCFF;
  --amber-dim:  rgba(37, 99, 235, .18);

  --t1:  #FFFFFF;
  --t2:  rgba(255, 255, 255, .78);
  --t3:  rgba(255, 255, 255, .55);
  --p1:  #000000;
  --p2:  #3D3D3D;
  --p3:  #69727D;

  --line:       rgba(255, 255, 255, .16);
  --line-solid: rgba(0, 0, 0, .18);
  --grid-line:  rgba(255, 255, 255, .14);

  --accent-on-band: #1D4ED8;
  --solid-fg:       #000000;
  --header-bg:      rgba(10, 10, 10, .88);
  --hover-wash:     rgba(255, 255, 255, .05);
  --img-filter:     brightness(.88) contrast(1.04);

  --btn-solid-bg:   #2563EB;
  --btn-solid-hover:#4F82F5;
}

/* Theme-independent: type, layout, motion. */
:root {
  /* Open Sans = display. Inter = UI/body. */
  --display: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui:      "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif:   "Open Sans", system-ui, sans-serif;

  --max:    1200px;
  --gutter: clamp(20px, 4vw, 28px);
  --ease:   cubic-bezier(.16, 1, .3, 1);

  --control-h: 48px;

  /* Depth: 6px on controls, 12px on elevated surfaces. Nothing else. */
  --r-control: 6px;
  --r-surface: 12px;
  --shadow-sm: 0 1px 2px rgba(16,24,32,.06), 0 1px 3px rgba(16,24,32,.07);
  --shadow-md: 0 4px 12px rgba(16,24,32,.08), 0 2px 4px rgba(16,24,32,.05);
  --shadow-lg: 0 14px 30px rgba(16,24,32,.13), 0 5px 12px rgba(16,24,32,.07);
}

/* Repaint smoothly when the theme flips, but never animate layout. */
body, .ax-header, .ax-section, .ax-cta-band, .ax-contact,
.ax-page-head, .ax-footer, .ax-stat, .ax-sector {
  transition: background-color .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  body, .ax-header, .ax-section, .ax-cta-band, .ax-contact,
  .ax-page-head, .ax-footer, .ax-stat, .ax-sector { transition: none; }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--t1);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; }

.ax-container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Screen-reader-only, but focusable for the skip link */
.ax-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ax-skip:focus {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  width: auto; height: auto; margin: 0; clip: auto;
  padding: 12px 20px; background: var(--amber); color: var(--solid-fg);
  font-weight: 700; border-radius: var(--r-control);
}

/* ---------- Display type ---------------------------------------------- */
/* Open Sans 600. Tracking -1 on display sizes, per the type scale. */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

/* Section eyebrow: 34x3 Royal Blue tick above an Inter 600/24 label.
   Opens every section. Tick goes white on the dark band. */
.ax-eyebrow {
  font-family: var(--ui);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
  color: var(--blue-ink);
  margin: 0 0 22px;
}
.ax-eyebrow::before {
  content: ""; display: block;
  width: 34px; height: 3px;
  background: var(--blue);
  margin-bottom: 14px;
}
:root[data-theme="dark"] .ax-eyebrow { color: var(--blue-ink); }

.ax-h2 { font-size: clamp(30px, 4vw, 46px); }

.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--t2);
  margin: 24px 0 0;
  /* min() so the ch-based measure can never exceed the viewport */
  max-width: min(62ch, 100%);
}

/* Serif as counterpoint, used sparingly, for emphasis inside display type */
.ax-serif {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.01em;
  color: var(--amber);
}

/* ---------- Buttons ---------------------------------------------------- */
.ax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--control-h);
  padding: 0 28px;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
/* Solid: Onyx fill, white text, shadow-sm. Hover Royal Blue + shadow-md + lift. */
.ax-btn--solid {
  background: var(--btn-solid-bg); color: var(--solid-fg);
  box-shadow: var(--shadow-sm);
}
.ax-btn--solid:hover {
  background: var(--btn-solid-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.ax-btn--ghost { border-color: var(--t3); color: var(--t2); }
.ax-btn--ghost:hover { border-color: var(--blue); color: var(--blue-ink); transform: translateY(-2px); }
.ax-btn--onpaper { border-color: var(--line-solid); color: var(--p1); }
.ax-btn--onpaper:hover { border-color: var(--p1); background: var(--p1); color: var(--paper); }
.ax-btn--light  { background: var(--paper); color: var(--p1); border: 0; }
.ax-btn--light:hover { background: var(--paper-2); transform: translateY(-2px); }

/* ---------- Header ----------------------------------------------------- */
.ax-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.ax-header__row {
  display: flex; align-items: center;
  gap: clamp(12px, 2vw, 24px); height: 84px;
}
/* Nav takes the slack so the CTA and theme toggle stay paired on the right
   instead of being spread apart by space-between. */
.ax-header__row .ax-nav { margin-left: auto; }
.ax-header__actions {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto; flex: none;
}
.ax-logo {
  font-family: var(--display);
  font-size: 25px; font-weight: 700;
  letter-spacing: -.04em; text-decoration: none;
}
.ax-logo span { color: var(--blue); }

.ax-nav { display: flex; gap: clamp(14px, 1.6vw, 26px); flex: none; white-space: nowrap; }
.ax-nav a {
  font-size: 14px; font-weight: 500;
  color: var(--t2); text-decoration: none;
  position: relative; padding: 4px 0;
  transition: color .25s var(--ease);
}
.ax-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--amber);
  transition: width .3s var(--ease);
}
.ax-nav a:hover, .ax-nav a.is-active { color: var(--t1); }
.ax-nav a:hover::after, .ax-nav a.is-active::after { width: 100%; }

@media (max-width: 1180px) {
  .ax-nav, .ax-header__cta { display: none; }
}

/* ---------- Hero ------------------------------------------------------- */
.ax-hero {
  position: relative;
  padding: clamp(56px, 7vw, 92px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}
/* Single warm bloom, the only "effect" on the page. */
.ax-hero::before {
  content: "";
  position: absolute; top: -30%; right: -10%;
  width: 780px; height: 780px;
  background: radial-gradient(circle, var(--amber-dim) 0%, transparent 68%);
  pointer-events: none;
}
.ax-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
/* H1 per the type scale: 64 desktop / 40 mobile, line-height 1.05. */
.ax-hero__head {
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
  max-width: min(900px, 100%);
}
.ax-hero__sub { max-width: min(54ch, 100%); }
.ax-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.ax-hero__figure { position: relative; margin: 0; }
.ax-hero__figure img {
  width: 100%;
  /* Cap the height so the image never dictates the row and strand the
     text column in dead space. Portrait-ish, but bounded. */
  aspect-ratio: 4 / 5;
  max-height: 560px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--r-surface);
  filter: var(--img-filter);
}
/* Accent frame: offset rule, echoes the editorial reference set */
.ax-hero__figure::after {
  content: "";
  position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--amber);
  border-radius: var(--r-surface);
  z-index: -1;
}

/* Marquee-free stat strip */
.ax-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ax-stat { background: var(--ink); padding: 30px 26px; }
.ax-stat__n {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700; letter-spacing: -.04em;
  color: var(--amber); line-height: 1;
}
.ax-stat__l {
  font-size: 13px; color: var(--t3);
  margin-top: 10px; letter-spacing: .02em;
}

/* ---------- Sections --------------------------------------------------- */
.ax-section { padding: clamp(72px, 10vw, 136px) 0; }
.ax-section--paper { background: var(--paper); color: var(--p1); }
.ax-section--paper .lede { color: var(--p2); }
.ax-section--paper .ax-eyebrow { color: var(--accent-on-band); }
.ax-section--paper .ax-eyebrow::before { background: var(--accent-on-band); }
.ax-section--paper .ax-serif { color: var(--accent-on-band); }

/* ---------- Service list (replaces the 4-card grid) -------------------- */
/* Big editorial rows. Reads as a statement, not a brochure. */
.ax-services { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.ax-service {
  display: grid;
  grid-template-columns: 84px 1fr 1.15fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  padding: clamp(28px, 4vw, 46px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .35s var(--ease), padding .35s var(--ease);
}
.ax-service:hover { background: var(--hover-wash); }
.ax-service__n {
  font-family: var(--display);
  font-size: 14px; font-weight: 600;
  color: var(--amber); letter-spacing: .06em;
  padding-top: 8px;
}
.ax-service__name { font-size: clamp(22px, 2.2vw, 30px); }
.ax-service__kind {
  font-family: var(--ui); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--t3); margin: 0 0 12px;
}
.ax-service__body { color: var(--t2); margin: 0; padding-top: 6px; }

/* ---------- Sector chips ----------------------------------------------- */
.ax-sectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 1px;
  margin-top: clamp(40px, 6vw, 64px);
  background: var(--line-solid);
  border: 1px solid var(--line-solid);
}
.ax-sector { background: var(--paper); padding: 34px 30px; }
.ax-sector h3 { font-size: 23px; margin-bottom: 12px; }
.ax-sector p  { color: var(--p2); font-size: 15px; margin: 0; }
.ax-sector__tag {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-on-band);
  display: block; margin-bottom: 14px;
}

/* ---------- Why / numbered moves --------------------------------------- */
.ax-moves { margin-top: clamp(44px, 6vw, 76px); display: grid; gap: 0; }
.ax-move {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(30px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.ax-move.is-in { opacity: 1; transform: none; }
.ax-move:last-child { border-bottom: 1px solid var(--line); }
.ax-move__n {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700; letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--amber);
  line-height: 1;
}
.ax-move__eyebrow {
  font-family: var(--ui); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--t3); margin: 0 0 10px;
}
.ax-move__head { font-size: clamp(21px, 2vw, 27px); margin-bottom: 12px; }
.ax-move p { color: var(--t2); margin: 0; max-width: min(68ch, 100%); }

.ax-closer {
  margin-top: clamp(40px, 5vw, 64px);
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 31px);
  font-style: italic;
  line-height: 1.32;
  color: var(--t1);
  max-width: min(30ch, 100%);
}

/* ---------- Process steps ---------------------------------------------- */
.ax-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(40px, 6vw, 64px);
}
.ax-step { border-top: 2px solid var(--amber); padding-top: 22px; }
.ax-step__n {
  font-family: var(--display); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; color: var(--amber); margin-bottom: 12px;
}
.ax-step h3 { font-size: 24px; margin-bottom: 12px; }
.ax-step p  { color: var(--p2); margin: 0; font-size: 16px; }

/* Split block (image + text) */
.ax-split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.ax-split img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--r-surface);
  filter: var(--img-filter);
}

/* Two-column prose */
.ax-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(36px, 5vw, 56px);
}
.ax-cols h3 { font-size: 25px; margin-bottom: 16px; }
.ax-cols p  { color: var(--t2); }
.ax-section--paper .ax-cols p { color: var(--p2); }

/* ---------- Jobs ------------------------------------------------------- */
.ax-jobs { margin-top: 44px; border-top: 1px solid var(--line); }
.ax-job {
  display: grid;
  grid-template-columns: 2fr 1.1fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .3s var(--ease);
}
.ax-job:hover { background: var(--hover-wash); }
.ax-job__title { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; }
.ax-job__meta  { font-size: 14px; color: var(--t3); margin: 0; }
.ax-job__tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 11px; margin-right: 7px;
  border: 1px solid var(--line); border-radius: var(--r-control); color: var(--t2);
}
.ax-job__pay { font-size: 15px; color: var(--t1); font-weight: 500; margin: 0; }
.ax-job__go {
  font-size: 13px; font-weight: 600; color: var(--amber);
  white-space: nowrap;
}

.ax-jobs-head {
  display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap; gap: 20px;
}

/* ---------- Contact ---------------------------------------------------- */
.ax-contact { background: var(--ink-2); }
.ax-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
}
.ax-field { margin-bottom: 20px; }
.ax-field label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--t3); margin-bottom: 8px;
}
.ax-field input, .ax-field textarea {
  width: 100%; padding: 14px 16px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  color: var(--t1);
  font-family: var(--ui); font-size: 16px;
  transition: border-color .25s var(--ease);
}
.ax-field input:focus, .ax-field textarea:focus {
  outline: none; border-color: var(--amber);
}
.ax-field textarea { min-height: 128px; resize: vertical; }
.req { color: var(--amber); }

/* ---------- Footer ----------------------------------------------------- */
.ax-footer { background: var(--ink); border-top: 1px solid var(--line); padding: clamp(52px, 7vw, 84px) 0 34px; }
.ax-footer__row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
}
.ax-footer__brand h3 { font-size: 27px; margin-bottom: 14px; }
.ax-footer__brand h3 span { color: var(--blue); }
.ax-footer__brand p { color: var(--t3); font-size: 15px; max-width: min(42ch, 100%); margin: 0; }
.ax-footer__col h4 {
  font-family: var(--ui); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--t3); margin-bottom: 16px;
}
.ax-footer__col a, .ax-footer__col p {
  display: block; color: var(--t2); text-decoration: none;
  font-size: 15px; margin: 0 0 10px;
  transition: color .25s var(--ease);
}
.ax-footer__col a:hover { color: var(--amber); }
.ax-footer__sub {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--t3);
}

/* ---------- Reveal ----------------------------------------------------- */
.ax-reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.ax-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 1000px) {
  .ax-hero__grid,
  .ax-split,
  .ax-contact__grid { grid-template-columns: 1fr; }
  /* min-width:0 lets grid children actually shrink; without it long words
     force the track wider than the viewport and the copy gets clipped. */
  .ax-hero__grid > *,
  .ax-split > *,
  .ax-contact__grid > * { min-width: 0; }
  .ax-hero__figure { order: -1; max-width: 460px; }
  .ax-hero__figure img { aspect-ratio: 16 / 10; max-height: 340px; }
  .ax-stats { grid-template-columns: repeat(2, 1fr); }
  .ax-service { grid-template-columns: 46px 1fr; }
  .ax-service__body { grid-column: 2; }
  .ax-job { grid-template-columns: 1fr; gap: 12px; }
  .ax-footer__row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ax-move { grid-template-columns: 1fr; gap: 12px; }
  .ax-stats { grid-template-columns: 1fr; }
  .ax-footer__row { grid-template-columns: 1fr; }
  /* The offset frame's negative inset pushed the layout past 100vw and
     clipped the hero copy. Pull it inside the image on small screens. */
  .ax-hero__figure::after { inset: 10px 10px -10px -10px; }
  .ax-hero__head { font-size: clamp(38px, 11vw, 54px); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .ax-reveal, .ax-move { opacity: 1 !important; transform: none !important; }
}

/* ===========================================================================
   Multi-page additions
   =========================================================================== */

/* ---------- Mobile menu ------------------------------------------------- */
.ax-burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 12px;
  flex-direction: column; justify-content: center; gap: 6px;
}
.ax-burger span {
  display: block; height: 1.5px; width: 100%;
  background: var(--t1);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.ax-burger.is-open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.ax-burger.is-open span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

.ax-mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--gutter) 28px;
  border-top: 1px solid var(--line);
}
.ax-mobile-nav a {
  padding: 14px 0;
  font-size: 17px; font-weight: 500;
  color: var(--t2); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.ax-mobile-nav a.is-active { color: var(--amber); }
.ax-mobile-nav .ax-btn {
  margin-top: 16px; border-bottom: 0;
  justify-content: center; color: var(--solid-fg);
}

@media (max-width: 1180px) {
  .ax-burger { display: flex; }
  .ax-mobile-nav.is-open { display: flex; }
}

/* ---------- Page header (interior pages) -------------------------------- */
.ax-page-head {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ax-page-head::before {
  content: "";
  position: absolute; top: -50%; right: -8%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, var(--amber-dim) 0%, transparent 68%);
  pointer-events: none;
}
.ax-page-head__inner { position: relative; }
.ax-page-head h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -.02em;
  max-width: min(900px, 100%);
}
.ax-page-head .lede { margin-top: 22px; }

/* Breadcrumb */
.ax-crumb {
  font-size: 13px; color: var(--t3);
  margin: 0 0 22px;
}
.ax-crumb a { color: var(--t3); text-decoration: none; }
.ax-crumb a:hover { color: var(--amber); }
.ax-crumb span { margin: 0 8px; opacity: .5; }

/* ---------- CTA band ---------------------------------------------------- */
.ax-cta-band {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 96px) 0;
  text-align: center;
}
.ax-cta-band h2 { font-size: clamp(27px, 3.4vw, 46px); margin-bottom: 18px; }
.ax-cta-band p  { color: var(--t2); max-width: min(56ch, 100%); margin: 0 auto 32px; }
.ax-cta-band .ax-btn + .ax-btn { margin-left: 12px; }

/* ---------- Detail lists (interior pages) ------------------------------- */
.ax-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 52px);
  margin-top: clamp(36px, 5vw, 56px);
}
.ax-detail__item { border-top: 1px solid var(--line); padding-top: 22px; }
.ax-section--paper .ax-detail__item { border-color: var(--line-solid); }
.ax-detail__item h3 { font-size: 22px; margin-bottom: 12px; }
.ax-detail__item p  { color: var(--t2); margin: 0; font-size: 16px; }
.ax-section--paper .ax-detail__item p { color: var(--p2); }

/* FAQ / accordion-free Q&A */
.ax-qa { margin-top: clamp(36px, 5vw, 56px); }
.ax-qa__item { border-top: 1px solid var(--line); padding: 26px 0; }
.ax-qa__item:last-child { border-bottom: 1px solid var(--line); }
.ax-section--paper .ax-qa__item { border-color: var(--line-solid); }
.ax-qa__item h3 { font-size: 21px; margin-bottom: 10px; }
.ax-qa__item p  { color: var(--t2); margin: 0; max-width: min(72ch, 100%); }
.ax-section--paper .ax-qa__item p { color: var(--p2); }

/* Contact page layout */
.ax-contact-page { padding: clamp(56px, 8vw, 96px) 0; }

/* ---------- Theme toggle ------------------------------------------------ */
.ax-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-h); height: var(--control-h);
  flex: none;
  padding: 0;
  background: none;
  border: 1px solid var(--t3);
  border-radius: var(--r-control);
  color: var(--t2);
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease),
              background .25s var(--ease);
}
.ax-theme:hover { color: var(--blue-ink); border-color: var(--blue); }
.ax-theme:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.ax-theme svg { width: 17px; height: 17px; display: block; }

/* Show the icon for the theme you'd switch TO. */
.ax-theme .ax-theme__moon { display: block; }
.ax-theme .ax-theme__sun  { display: none; }
:root[data-theme="dark"] .ax-theme .ax-theme__moon { display: none; }
:root[data-theme="dark"] .ax-theme .ax-theme__sun  { display: block; }

/* Paired with the CTA inside .ax-header__actions, no extra offset needed. */
@media (max-width: 1180px) {
  .ax-header__actions { gap: 6px; }
}

/* ---------- Team ------------------------------------------------------- */
.ax-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(28px, 3.5vw, 48px);
  margin-top: clamp(40px, 6vw, 64px);
}
.ax-member__photo {
  position: relative;
  margin: 0 0 20px;
  background: var(--ink-2);
  border-radius: var(--r-surface);
  overflow: hidden;
  /* The figure owns the box. Square, and capped so a low-res source is not
     upscaled. Without this the img stretches and crops faces. */
  aspect-ratio: 1 / 1;
  max-width: 320px;
}
.ax-member__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: var(--img-filter);
  transition: filter .4s var(--ease), transform .5s var(--ease);
}
.ax-member:hover .ax-member__photo img {
  filter: none;
  transform: scale(1.02);
}
/* Placeholder when there's no photo yet: the person's initials. */
.ax-member__photo--empty {
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.ax-member__initials {
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--amber);
  opacity: .55;
}
.ax-member__name { font-size: 22px; margin-bottom: 6px; }
.ax-member__role {
  font-family: var(--ui);
  font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 12px;
}
.ax-member__bio { color: var(--t2); font-size: 15px; margin: 0; }
.ax-section--paper .ax-member__bio { color: var(--p2); }
.ax-section--paper .ax-member__role { color: var(--accent-on-band); }
.ax-member__link {
  display: inline-block; margin-top: 12px;
  font-size: 13px; font-weight: 600;
  color: var(--amber); text-decoration: none;
}
.ax-member__link:hover { text-decoration: underline; }

/* ---------- Trust bar (replaces invented stat strip) -------------------- */
.ax-trustbar {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 14px; font-weight: 500;
  color: var(--t3);
}
.ax-trustbar span { display: inline-flex; align-items: center; gap: 18px; }
.ax-trustbar span:not(:last-child)::after {
  content: "·"; color: var(--t3); opacity: .55;
}

/* Hero tier-two headline, blue-ink under the H1 */
.ax-hero__head2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--blue-ink);
  margin: 14px 0 0;
}
.ax-kicker {
  font-family: var(--ui);
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 500;
  color: var(--t2);
  margin: 20px 0 0;
}

/* Pull quote */
.ax-pull {
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: clamp(24px, 3vw, 36px) 0 0;
  border-top: 3px solid var(--blue);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--t1);
  max-width: min(46ch, 100%);
}

/* Engagement-model card: deliberately flatter than the lever tile. */
.ax-models {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(36px, 5vw, 56px);
}
.ax-model { border-top: 2px solid var(--blue); padding-top: 20px; }
.ax-model:hover { border-top-color: var(--blue); }
.ax-model h3 {
  font-family: var(--ui); font-weight: 600; font-size: 20px;
  letter-spacing: -.01em; margin-bottom: 10px;
}
.ax-model p { font-size: 15px; color: var(--t2); margin: 0; }
.ax-section--paper .ax-model p { color: var(--p2); }
.ax-section--paper .ax-model { border-top-color: rgba(255,255,255,.55); }

/* Note / footnote line */
.ax-note {
  margin-top: clamp(28px, 3vw, 40px);
  font-size: 14px; color: var(--t3);
  max-width: min(80ch, 100%);
}
.ax-section--paper .ax-note { color: var(--p3); }

/* Job row description + credential strip */
.ax-job__desc {
  font-size: 15px; color: var(--t2);
  margin: 10px 0 0; max-width: min(68ch, 100%);
}
.ax-member__cred {
  font-size: 13px; color: var(--t3);
  margin: 0 0 14px; line-height: 1.45;
}
.ax-member__ask {
  margin-top: 14px; font-size: 14px;
  color: var(--t2); font-style: italic;
}
/* Team cards run wider than a 4-up grid: two per row reads better with bios. */
.ax-team { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ---------- On-band overrides -------------------------------------------
   The charcoal/contrast band flips the surface, so anything that defaults to
   base-surface text colors has to be restated here or it renders dark-on-dark.
   ------------------------------------------------------------------------ */
.ax-section--paper .lede,
.ax-section--paper .ax-service__body,
.ax-section--paper .ax-kicker { color: var(--p2); }

.ax-section--paper h1,
.ax-section--paper h2,
.ax-section--paper h3,
.ax-section--paper h4,
.ax-section--paper .ax-service__name,
.ax-section--paper .ax-pull,
.ax-section--paper .ax-closer { color: var(--p1); }

.ax-section--paper .ax-service__kind,
.ax-section--paper .ax-move__eyebrow,
.ax-section--paper .ax-job__meta { color: var(--p3); }

.ax-section--paper .ax-services,
.ax-section--paper .ax-service,
.ax-section--paper .ax-moves,
.ax-section--paper .ax-move { border-color: var(--line-solid); }

.ax-section--paper .ax-service:hover { background: rgba(255, 255, 255, .04); }
.ax-section--paper .ax-service__n { color: var(--accent-on-band); }
.ax-section--paper .ax-pull { border-top-color: var(--accent-on-band); }
.ax-section--paper .ax-trustbar { color: var(--p3); border-top-color: var(--line-solid); }

/* Sector cards sit on the band: 1px white-ish top border, white text. */
.ax-section--paper .ax-sectors { background: var(--line-solid); border-color: var(--line-solid); }
.ax-section--paper .ax-sector { background: var(--paper); }
.ax-section--paper .ax-sector h3 { color: var(--p1); }
.ax-section--paper .ax-sector p  { color: var(--p2); }
.ax-section--paper .ax-sector__tag { color: var(--accent-on-band); }


/* ---------- Wordmark ----------------------------------------------------
   The supplied identity is a drawn wordmark, not type: lowercase "a", the
   two-figure X in Royal Blue, script "iom" with a swash, TALENT beneath.
   currentColor carries the non-blue strokes so it themes on both surfaces.
   ------------------------------------------------------------------------ */
.ax-logo {
  display: inline-flex;
  align-items: center;
  color: var(--t1);
  text-decoration: none;
}
.ax-logo img, .ax-logo svg { height: 52px; width: auto; display: block; }
.ax-footer__brand .ax-logo img,
.ax-footer__brand .ax-logo svg { height: 46px; }

/* The wordmark is an <img>, so currentColor inside the SVG can't inherit the
   page theme. On dark surfaces invert it: the black strokes become white and
   the Royal Blue X survives the flip close enough to stay on-brand. */
:root[data-theme="dark"] .ax-logo img { filter: invert(1) hue-rotate(180deg); }

/* ---------- Video hero ---------------------------------------------------
   Full-bleed looping clip behind the copy. Falls back to the poster still
   until hero-loop.mp4 exists, so the page is never broken by a missing file.
   ------------------------------------------------------------------------ */
.ax-hero--media {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--paper);
}
.ax-hero__media { position: absolute; inset: 0; z-index: 0; }
.ax-hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Scrim keeps the headline legible over any frame of the clip. */
.ax-hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,10,.88) 0%, rgba(10,10,10,.72) 46%, rgba(10,10,10,.35) 100%),
    linear-gradient(0deg,  rgba(10,10,10,.55) 0%, rgba(10,10,10,0) 55%);
}
.ax-hero--media .ax-hero__inner { position: relative; z-index: 1; }

/* Hero copy sits on the dark clip in BOTH themes, so it uses on-band colors. */
.ax-hero--media .ax-hero__head,
.ax-hero--media .ax-hero__head2 { color: #FFFFFF; }
.ax-hero--media .ax-hero__head2 { color: #8AB0FF; }
.ax-hero--media .ax-eyebrow { color: #8AB0FF; }
.ax-hero--media .ax-eyebrow::before { background: var(--blue); }
.ax-hero--media .ax-kicker { color: rgba(255,255,255,.86); }
.ax-hero--media .ax-trustbar {
  color: rgba(255,255,255,.70);
  border-top-color: rgba(255,255,255,.22);
}
.ax-hero--media .ax-btn--ghost { border-color: rgba(255,255,255,.45); color: #FFFFFF; }
.ax-hero--media .ax-btn--ghost:hover { border-color: #FFFFFF; background: rgba(255,255,255,.10); }
.ax-hero--media .ax-hero__head { max-width: 18ch; }
.ax-hero--media .ax-kicker { max-width: min(52ch, 100%); }

@media (prefers-reduced-motion: reduce) {
  .ax-hero__video { display: none; }
  .ax-hero__media { background-image: url("/assets/images/team-meeting.jpg");
                    background-size: cover; background-position: center 20%; }
}

/* ---------- Problem beats ----------------------------------------------- */
.ax-beats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 3vw, 44px);
  margin-top: clamp(36px, 5vw, 56px);
}
.ax-beat { border-top: 2px solid var(--accent-on-band); padding-top: 20px; }
.ax-beat__n {
  font-family: var(--display); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; color: var(--accent-on-band);
  display: block; margin-bottom: 12px;
}
.ax-beat h3 { font-size: 22px; margin-bottom: 10px; }
.ax-beat p  { margin: 0; font-size: 16px; }

/* ---------- Claim rows (why partner, headline-only) --------------------- */
.ax-claims { margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.ax-claim {
  display: grid; grid-template-columns: 64px 1fr;
  gap: clamp(12px, 2vw, 28px);
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.ax-claim span {
  font-family: var(--display); font-size: 15px; font-weight: 700;
  letter-spacing: .06em; color: var(--blue-ink);
}
.ax-claim p {
  margin: 0;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(17px, 1.8vw, 22px);
  letter-spacing: -.01em; line-height: 1.3;
  color: var(--t1);
}

/* On the dark hero clip the Onyx solid button vanishes. Use Royal Blue there. */
.ax-hero--media .ax-btn--solid { background: var(--blue); color: #FFFFFF; }
.ax-hero--media .ax-btn--solid:hover { background: #4F82F5; }

/* Animated wordmark in the closing CTA band. The GIF has a white card
   background, so it gets a rounded white plate rather than floating. */
.ax-cta-mark {
  width: min(300px, 70%);
  height: auto;
  margin: 0 auto clamp(20px, 3vw, 32px);
  border-radius: var(--r-surface);
  display: block;
}
@media (prefers-reduced-motion: reduce) { .ax-cta-mark { display: none; } }
