/* ============================================================================
   Microsoft Partnership page. Craig-directed redesign (2026-07-15): one
   narrative, "how we partner with Microsoft," readable two ways (buyer
   confidence / seller signal). Loaded only on this page via its Styles section.
   ============================================================================ */

/* ---- Hero ---------------------------------------------------------------- */
.an-mp-hero {
  position: relative;
  background: var(--an-dark);
  color: #fff;
  padding: 144px 24px 80px;
  overflow: hidden;
}
.an-mp-hero__glow {
  position: absolute;
  top: -25%; right: 0;
  width: 700px; height: 700px;
  border-radius: 999px;
  background: rgba(167,37,44,0.13);
  filter: blur(150px);
  pointer-events: none;
}
.an-mp-hero__grid {
  position: relative;
  max-width: 1300px;
  margin-inline: auto;
  display: grid;
  gap: 48px;
  align-items: center;
}
.an-mp-hero__h1 {
  font-weight: 800;
  font-size: 44px;
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;
}
/* Scoped .an-mp-hero parent so the authored margins beat the global
   .an-body p reset (audit PART-03; see an-tokens.css:68). */
.an-mp-hero .an-mp-hero__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 32px;
}
.an-mp-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 40px; }
.an-mp-hero__alt { font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.8); transition: color .2s var(--an-ease); }
.an-mp-hero__alt:hover { color: #fff; }
/* Proof bar: spans the hero bottom; one line at desktop, wraps below. */
.an-mp-hero__proofbar {
  position: relative;
  max-width: 1300px;
  margin: 48px auto 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
}
.an-mp-hero__proofbar > div { white-space: nowrap; }
.an-mp-hero__proof-num { font-weight: 800; font-size: 22px; color: #fff; }
.an-mp-hero__proof-label { font-weight: 700; font-size: 13.5px; color: rgba(255,255,255,0.5); margin-left: 8px; }

/* Hero video panel, same treatment as the homepage hero trailer:
   red-edged frame, layered red shadow, 16:9. */
.an-mp-hero__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(167,37,44,0.35);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 28px 70px -24px rgba(167,37,44,0.45);
  background: #000;
}
.an-mp-hero__video video { width: 100%; height: 100%; object-fit: cover; }

/* ---- Designations -------------------------------------------------------- */
.an-mp-des { background: var(--an-paper); padding: 96px 24px; }
.an-mp-des__inner { max-width: 1300px; margin-inline: auto; }
.an-mp-des__h2 {
  font-weight: 800;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--an-ink);
}
.an-mp-des__grid { display: grid; gap: 20px; margin-top: 56px; }
.an-mp-des__card {
  background: #fff;
  border: 1px solid var(--an-border);
  border-radius: 16px;
  padding: 28px;
}
.an-mp-des__kind { font-weight: 700; font-size: 13.5px; color: var(--an-red); margin-bottom: 12px; }
.an-mp-des__name { font-weight: 700; font-size: 20px; color: var(--an-ink); margin-bottom: 8px; }
.an-mp-des__desc { font-size: 14px; color: var(--an-gray-3); line-height: 1.6; }
.an-mp-des__tiles {
  display: grid;
  gap: 20px;
  border-top: 1px solid var(--an-border);
  padding-top: 40px;
  margin-top: 40px;
}
.an-mp-des__tile-h { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; color: var(--an-ink); margin-bottom: 8px; }
.an-mp-des__tile-h::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--an-red); flex-shrink: 0; }
.an-mp-des__tile-p { font-size: 14px; color: var(--an-gray-3); line-height: 1.65; }

/* ---- Specialization spotlight -------------------------------------------- */
.an-mp-spec {
  position: relative;
  background: var(--an-dark-2);
  color: #fff;
  padding: 96px 24px;
  overflow: hidden;
}
.an-mp-spec__glow {
  position: absolute;
  bottom: -200px; left: -100px;
  width: 600px; height: 600px;
  border-radius: 999px;
  background: rgba(167,37,44,0.12);
  filter: blur(140px);
  pointer-events: none;
}
.an-mp-spec__grid {
  position: relative;
  max-width: 1300px;
  margin-inline: auto;
  display: grid;
  gap: 48px;
  align-items: center;
}
.an-mp-spec__badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 24px;
  padding: 44px 36px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6);
}
.an-mp-spec__badge-wrap img { width: 100%; max-width: 380px; height: auto; object-fit: contain; }
.an-mp-spec__h2 { font-weight: 800; font-size: 34px; line-height: 1.06; letter-spacing: -0.03em; color: #fff; margin-bottom: 20px; }
.an-mp-spec__p { font-size: 15.5px; color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 520px; }
.an-mp-spec__points { margin-top: 32px; display: flex; flex-direction: column; }
.an-mp-spec__point {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.an-mp-spec__point:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }
.an-mp-spec__point-num { font-family: var(--an-font-mono); font-size: 12px; color: var(--an-red-light); letter-spacing: 0.1em; padding-top: 3px; flex-shrink: 0; }
.an-mp-spec__point-h { font-weight: 700; font-size: 16px; color: #fff; margin-bottom: 4px; }
.an-mp-spec__point-p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ---- How the partnership works (sticky-scroll timeline, homepage pattern) -- */
.an-mp-how { background: #fff; padding: 96px 24px; }
.an-mp-how__grid { max-width: 1300px; margin-inline: auto; display: grid; gap: 48px; }
.an-mp-how__h2 { font-weight: 800; font-size: 36px; line-height: 1.05; letter-spacing: -0.03em; color: var(--an-ink); }
.an-mp-how .an-mp-how__lead { margin-top: 20px; font-size: 15px; color: var(--an-gray-3); line-height: 1.6; }
.an-mp-how__intro-cta { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--an-border); }

/* rail geometry mirrors the homepage timeline exactly (spine insets 40/48)
   so the shared scroll-fill JS in an-home.js computes the same way */
.an-mp-how__rail { position: relative; }
.an-mp-how__spine {
  position: absolute;
  left: 34px; top: 40px; bottom: 48px;
  width: 2px;
  background: rgba(26,26,26,0.1);
  border-radius: 999px;
}
.an-mp-how__fill {
  position: absolute;
  left: 34px; top: 40px;
  width: 2px; height: 0;
  background: linear-gradient(to bottom, var(--an-red), var(--an-red-light));
  border-radius: 999px;
}
.an-mp-how__dot {
  position: absolute;
  left: 34px; top: 40px;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--an-red);
  box-shadow: 0 0 12px 3px rgba(167,37,44,0.5);
  opacity: 0;
}
.an-mp-how__phase {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 20px;
  padding: 28px 0;
  align-items: start;
}
.an-mp-how__num-wrap { position: relative; display: flex; justify-content: center; }
.an-mp-how__num {
  position: relative;
  z-index: 1;
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--an-red);
  background: #fff;
  padding: 8px 0;
}
.an-mp-how__row-h { font-weight: 800; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; color: var(--an-ink); margin-bottom: 8px; }
.an-mp-how__row-p { font-size: 15px; color: var(--an-gray-3); line-height: 1.65; max-width: 560px; }

/* ---- From idea to implementation ----------------------------------------- */
.an-mp-steps { background: var(--an-paper); border-top: 1px solid var(--an-border); padding: 96px 24px; }
.an-mp-steps__inner { max-width: 1300px; margin-inline: auto; }
.an-mp-steps__h2 { font-weight: 800; font-size: 36px; line-height: 1.05; letter-spacing: -0.03em; color: var(--an-ink); }
.an-mp-steps__grid { display: grid; gap: 24px; margin-top: 48px; }
.an-mp-steps__card {
  background: #fff;
  border: 1px solid var(--an-border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.an-mp-steps__kicker { font-weight: 800; font-size: 13.5px; color: var(--an-red); margin-bottom: 12px; }
.an-mp-steps__name { font-weight: 800; font-size: 20px; color: var(--an-ink); margin-bottom: 10px; }
.an-mp-steps__desc { font-size: 14.5px; color: var(--an-gray-3); line-height: 1.65; flex: 1; }
.an-mp-steps__link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--an-red);
}

/* ---- Funding: two channels ------------------------------------------------ */
.an-mp-fund {
  position: relative;
  background: var(--an-dark);
  color: #fff;
  padding: 96px 24px;
  overflow: hidden;
}
.an-mp-fund__glow {
  position: absolute;
  top: 50%; left: 0;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  border-radius: 999px;
  background: rgba(167,37,44,0.1);
  filter: blur(140px);
  pointer-events: none;
}
.an-mp-fund__inner { position: relative; max-width: 1300px; margin-inline: auto; }
.an-mp-fund__h2 { font-weight: 800; font-size: 36px; line-height: 1.05; letter-spacing: -0.03em; color: #fff; }
.an-mp-fund .an-mp-fund__lead { margin-top: 20px; font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 560px; }
.an-mp-fund__channels { display: grid; gap: 24px; margin-top: 48px; }
.an-mp-fund__channel {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  border-radius: 20px;
  padding: 32px;
}
.an-mp-fund__ch-kicker { font-weight: 700; font-size: 13.5px; color: var(--an-red-light); margin-bottom: 12px; }
.an-mp-fund__ch-h { font-weight: 800; font-size: 22px; color: #fff; margin-bottom: 12px; }
.an-mp-fund__ch-p { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.7; }
.an-mp-fund .an-mp-fund__foot { margin-top: 28px; font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.6; }

/* ---- We do both ------------------------------------------------------------ */
.an-mp-both { background: var(--an-paper); padding: 96px 24px; }
.an-mp-both__inner { max-width: 900px; margin-inline: auto; text-align: center; }
.an-mp-both__inner .an-section-label { justify-content: center; }
.an-mp-both__h2 { font-weight: 800; font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; color: var(--an-ink); margin-bottom: 24px; }
.an-mp-both .an-mp-both__p { font-size: 17px; color: var(--an-gray-3); line-height: 1.7; max-width: 680px; margin-inline: auto; }
/* PART-05: keep the payoff clause on one line. */
.an-mp-both__h2 em { white-space: nowrap; }

/* ---- CTA ------------------------------------------------------------------- */
.an-mp-cta {
  position: relative;
  background: var(--an-dark);
  color: #fff;
  padding: 96px 24px;
  text-align: center;
  overflow: hidden;
}
.an-mp-cta__glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(167,37,44,0.12), transparent);
}
.an-mp-cta__inner { position: relative; z-index: 10; max-width: 640px; margin-inline: auto; }
.an-mp-cta__h2 { font-weight: 800; font-size: 36px; line-height: 1.08; letter-spacing: -0.02em; color: #fff; margin-bottom: 20px; }
.an-mp-cta .an-mp-cta__p { font-size: 18px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 40px; }
.an-mp-cta .an-mp-cta__seller {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14.5px;
  color: rgba(255,255,255,0.5);
}
.an-mp-cta__seller a { color: var(--an-red-light); font-weight: 600; }
.an-mp-cta__seller a:hover { color: #fff; }

/* ---- Breakpoints ------------------------------------------------------------ */
@media (min-width: 640px) {
  .an-mp-des__tiles { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .an-mp-des__grid { grid-template-columns: 1fr 1fr; }
  .an-mp-steps__grid { grid-template-columns: repeat(3, 1fr); }
  .an-mp-fund__channels { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .an-mp-hero { padding: 176px 48px 80px; }
  .an-mp-hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
  .an-mp-hero__h1 { font-size: 58px; }
  .an-mp-hero__sub { font-size: 18px; }
  .an-mp-hero__proofbar { margin-top: 64px; }
  .an-mp-des, .an-mp-spec, .an-mp-how, .an-mp-steps, .an-mp-fund, .an-mp-both, .an-mp-cta { padding-inline: 48px; }
  .an-mp-des { padding-block: 128px; }
  .an-mp-des__h2 { font-size: 52px; }
  .an-mp-des__grid { grid-template-columns: repeat(4, 1fr); }
  .an-mp-des__tiles { grid-template-columns: repeat(3, 1fr); }
  .an-mp-spec__grid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; }
  .an-mp-spec__h2 { font-size: 44px; }
  .an-mp-steps__h2, .an-mp-fund__h2 { font-size: 48px; }
  .an-mp-how__grid { grid-template-columns: 340px 1fr; gap: 80px; }
  .an-mp-how__intro { position: sticky; top: 128px; align-self: start; }
  .an-mp-how__h2 { font-size: 40px; }
  .an-mp-how__spine, .an-mp-how__fill, .an-mp-how__dot { left: 50px; }
  .an-mp-how__phase { grid-template-columns: 100px 1fr; gap: 36px; padding: 36px 0; }
  .an-mp-how__num { font-size: 58px; }
  .an-mp-how__row-h { font-size: 26px; }
  .an-mp-both__h2 { font-size: 44px; }
  .an-mp-cta__h2 { font-size: 48px; }
}
@media (min-width: 1280px) {
  /* One-line proof bar. Below 1280 the five slots wrap (nowrap at 1024
     clipped the last slot on 1024-1180 viewports). */
  .an-mp-hero__proofbar { flex-wrap: nowrap; justify-content: space-between; gap: 24px; }
}

/* Mobile tap targets (audit SW-05): quiet text links measure ~22px tall at
   375; padding grows the hit area without changing the visual weight. */
@media (max-width: 767px) {
  .an-mp-steps__link { padding-block: 10px; }
}

/* Mobile tap target (audit SW-05): quiet hero link. */
@media (max-width: 767px) {
  .an-mp-hero__alt { display: inline-block; padding-block: 10px; }
}

/* ===========================================================================
   MOBILE UX PASS (2026-07-18). Mobile-breakpoint-gated; desktop untouched.
=========================================================================== */

/* PART-M01: when the spec grid stacks (<1024), lead with the text/points, not
   the context-free badge plate. */
@media (max-width: 1023px) {
  .an-mp-spec__badge-wrap { order: 2; }
}

@media (max-width: 767px) {
  /* PART-M02: the page's densest reading copy sat below the 15px floor. */
  .an-mp-des__desc,
  .an-mp-des__tile-p,
  .an-mp-spec__point-p,
  .an-mp-steps__desc { font-size: 15px; }

  /* PART-M03: align the wrapped proof-bar slots into a figure column + shared
     label edge instead of a ragged single-column list. */
  .an-mp-hero__proofbar > div {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: baseline;
    white-space: normal;
  }
  .an-mp-hero__proof-label { margin-left: 0; }

  /* PART-M04: recover ~32px so the primary CTA clears the fold. */
  .an-mp-hero { padding-top: 120px; }
  .an-mp-hero .an-mp-hero__sub { margin-bottom: 24px; }

  /* PART-M05: left-align the long we-do-both paragraph (label + H2 stay
     centered). */
  .an-mp-both .an-mp-both__p { text-align: left; }

  /* PART-M06: the CTA seller link was 40px tall. */
  .an-mp-cta__seller a { display: inline-block; padding-block: 6px; }
}

/* ============================================================================
   Craig design edits 2026-07-23 (markup rounds 1-3). Grouped here for review;
   Kevin, fold into the rules above when merging. Three changes:
   1. Tighter vertical rhythm between sections.
   2. Designations shown as a rolling badge marquee (was four cards).
   3. Specialization spotlight uses an ArchitectNow-designed card (was the
      stock Microsoft badge image; the real badge art moved to the marquee).
   ============================================================================ */

/* 1. Spacing pass. Base sections 96->80, the designations band and the short
   "we do both" statement band tighter still; desktop bumps proportionally. */
.an-mp-des  { padding-block: 64px; }
.an-mp-spec, .an-mp-how, .an-mp-steps, .an-mp-fund, .an-mp-cta { padding-block: 80px; }
.an-mp-both { padding-block: 64px; }
@media (min-width: 1024px) {
  .an-mp-des  { padding-block: 72px; }
  .an-mp-spec, .an-mp-how, .an-mp-steps, .an-mp-fund, .an-mp-cta { padding-block: 88px; }
  .an-mp-both { padding-block: 72px; }
}
.an-mp-des__tiles { margin-top: 28px; padding-top: 28px; }

/* 2. Designation badge marquee (homepage an-logos machinery). */
.an-mp-des__marquee { position: relative; overflow: hidden; margin-top: 32px; }
.an-mp-des__mq-track {
  display: flex; gap: 24px; align-items: stretch; width: max-content;
  animation: an-mp-mq 38s linear infinite;
}
.an-mp-des__marquee:hover .an-mp-des__mq-track { animation-play-state: paused; }
.an-mp-des__plate {
  background: #fff; border: 1px solid var(--an-border); border-radius: 16px;
  padding: 18px 28px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.an-mp-des__plate img { height: 92px; width: auto; object-fit: contain; display: block; }
.an-mp-des__mq-fade { position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none; }
.an-mp-des__mq-fade--l { left: 0; background: linear-gradient(to right, var(--an-paper), transparent); }
.an-mp-des__mq-fade--r { right: 0; background: linear-gradient(to left, var(--an-paper), transparent); }
@keyframes an-mp-mq { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
@media (max-width: 767px) {
  .an-mp-des__plate { padding: 14px 22px; border-radius: 12px; }
  .an-mp-des__plate img { height: 64px; }
  .an-mp-des__mq-fade { width: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .an-mp-des__mq-track { animation: none; flex-wrap: wrap; }
}

/* 3. Specialization card (homepage badge-stamp red gradient family). Sits in
   the spotlight's left grid cell where the white badge card used to be. */
.an-mp-spec__ancard {
  position: relative; width: 100%; max-width: 440px; overflow: hidden;
  background: linear-gradient(145deg, var(--an-red), var(--an-red-card-end));
  border-radius: 24px; padding: 40px 40px 34px; color: #fff;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); justify-self: center;
}
.an-mp-spec__ancard-mark {
  position: absolute; right: -34px; bottom: -44px; width: 190px; height: 190px;
  opacity: .14; pointer-events: none;
}
.an-mp-spec__ancard-eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.8); margin-bottom: 16px;
}
.an-mp-spec__ancard-name { font-weight: 800; font-size: 46px; line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 24px; }
.an-mp-spec__ancard-rule { height: 1px; background: rgba(255,255,255,.28); margin-bottom: 22px; }
.an-mp-spec__ancard-list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.an-mp-spec__ancard-list li { position: relative; padding-left: 22px; font-size: 15px; font-weight: 500; }
.an-mp-spec__ancard-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px;
  background: #fff; transform: rotate(45deg);
}
.an-mp-spec__ancard-foot {
  font-family: var(--an-font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.72);
}
@media (max-width: 767px) {
  .an-mp-spec__ancard { padding: 30px 26px 26px; }
  .an-mp-spec__ancard-name { font-size: 36px; }
}
