/* ============================================================================
   AI Integration & Automation page. Body sections ported from the React
   AISolutions.tsx; HERO v2 is Craig's Schematic system (2026-07-15): the
   agentic pipeline drawn as a technical drawing on clean dark, driven through
   agent states by an-ai.js. Loaded only on this page via its Styles
   section.
   ============================================================================ */

/* ---- Hero ---------------------------------------------------------------- */
.an-ai-hero {
  position: relative;
  background: var(--an-dark-3);
  color: #fff;
  padding: 144px 24px 0;
  overflow: hidden;
}
.an-ai-hero__inner {
  position: relative;
  max-width: 1300px;
  margin-inline: auto;
  z-index: 2;
}
.an-ai-hero__h1 {
  font-weight: 800;
  font-size: 44px;
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;
}
/* Keep "from concept to production." together so the break lands on the
   comma (Craig's two-line hero), while still wrapping internally on mobile. */
.an-ai-hero__h1 em { display: inline-block; }
.an-ai-hero__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 32px;
}
.an-ai-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.an-ai-hero__alt { font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.8); transition: color .2s var(--an-ease); }
.an-ai-hero__alt:hover { color: #fff; }

/* Mono DWG slate (desktop only). */
.an-ai-hero__slate {
  display: none;
  position: absolute;
  top: -44px; right: 0;
  font-family: var(--an-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  z-index: 4;
}
.an-ai-hero__slate-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--an-red-light);
  display: inline-block;
  margin-right: 8px;
  animation: an-ai-pulse 2s ease-in-out infinite;
}

/* The technical drawing. In-flow (full width) from 768; anchored to the
   container's right edge behind the copy from 1024. Hidden on phones. */
.an-ai-hero__dwg { display: none; }
.an-ai-hero__mat, .an-ai-hero__mat-tag { display: none; }

/* Copy sits above the drawing; the backdrop keeps type legible where the
   drawing's left margin tucks behind it at desktop. */
.an-ai-hero__copy { position: relative; z-index: 2; }

/* Proof bar: spans the hero bottom; one line at >=1280, wraps below.
   Same pattern as .an-mp-hero__proofbar on the MicrosoftPartnership page. */
.an-ai-hero__proofbar {
  position: relative;
  z-index: 2;
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 28px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
}
.an-ai-hero__proofbar > div { white-space: nowrap; }
.an-ai-hero__proof-num { font-weight: 800; font-size: 22px; color: #fff; }
.an-ai-hero__proof-label { font-weight: 700; font-size: 13.5px; color: rgba(255,255,255,0.5); margin-left: 8px; }

/* ---- Drawing states (driven by an-ai.js) ----------------------------- */
.an-ai-hero__dwg text { font-family: var(--an-font-mono); }
.an-dwg-node .an-dwg-ring {
  fill: var(--an-dark);
  stroke: rgba(255,255,255,0.18);
  transition: stroke .35s var(--an-ease);
}
.an-dwg-node .an-dwg-core { opacity: 0.22; transition: opacity .35s var(--an-ease); }
.an-dwg-node .an-dwg-lbl { fill: rgba(255,255,255,0.25); transition: fill .35s var(--an-ease); }
.an-dwg-node.is-done .an-dwg-ring { stroke: rgba(255,255,255,0.42); }
.an-dwg-node.is-done .an-dwg-core { opacity: 1; }
.an-dwg-node.is-done .an-dwg-lbl { fill: rgba(255,255,255,0.5); }
.an-dwg-node.is-live .an-dwg-ring { stroke: var(--an-red-light); }
.an-dwg-node.is-live .an-dwg-core { opacity: 1; }
.an-dwg-node.is-live .an-dwg-lbl { fill: var(--an-red-light); }
.an-dwg-node .an-dwg-halo { opacity: 0; transition: opacity .35s var(--an-ease); }
.an-dwg-node.is-live .an-dwg-halo { opacity: 1; animation: an-ai-pulse 2s ease-in-out infinite; }
.an-dwg-conn__hot { opacity: 0; transition: opacity .35s var(--an-ease); }
.an-dwg-conn.is-hot .an-dwg-conn__hot { opacity: 1; }

@keyframes an-ai-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ---- Stall (where projects stall): copy + the orbit system map ------------- */
.an-ai-stall { background: #fff; padding: 96px 24px; }
.an-ai-stall__inner { max-width: 1240px; margin-inline: auto; }
.an-ai-stall__cols { display: grid; gap: 40px; align-items: center; }
.an-ai-stall__head { max-width: 640px; }
.an-ai-stall__h2 {
  font-weight: 800;
  font-size: 34px;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: var(--an-ink);
  margin-bottom: 24px;
}
.an-ai-stall__p { font-size: 17px; color: var(--an-gray-3); line-height: 1.7; max-width: 640px; }
.an-ai-stall__orbit { display: none; }
.an-ai-stall__orbit text { font-family: var(--an-font-mono); }
/* Phones keep the red-rule list; the orbit takes over from 768. */
.an-ai-stall__grid { margin-top: 40px; display: grid; gap: 20px; }
.an-ai-stall__item { border-top: 2px solid rgba(167,37,44,0.3); padding-top: 16px; }
.an-ai-stall__num { font-family: var(--an-font-mono); font-size: 12px; color: var(--an-red); }
.an-ai-stall__item > p { margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--an-ink); line-height: 1.375; }

/* ---- How to start: sticky-scroll timeline (homepage pattern, dark) --------- */
.an-ai-how { background: #fff; color: var(--an-ink); padding: 96px 24px; }
.an-ai-how__grid { max-width: 1300px; margin-inline: auto; display: grid; gap: 48px; }
.an-ai-how__h2 {
  font-weight: 800;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--an-ink);
}
.an-ai-how__h2 em { display: inline-block; }
.an-ai-how__lead { margin-top: 20px; font-size: 15px; color: var(--an-gray-3); line-height: 1.6; }
.an-ai-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-ai-how__rail { position: relative; }
.an-ai-how__spine {
  position: absolute;
  left: 34px; top: 40px; bottom: 48px;
  width: 2px;
  background: rgba(26,26,26,0.1);
  border-radius: 999px;
}
.an-ai-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-ai-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-ai-how__phase {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 20px;
  padding: 28px 0;
  align-items: start;
}
.an-ai-how__num-wrap { position: relative; display: flex; justify-content: center; }
.an-ai-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-ai-how__meta {
  display: inline-block;
  font-weight: 700;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(26,26,26,0.08);
  color: rgba(26,26,26,0.7);
  margin-bottom: 12px;
}
.an-ai-how__meta.is-free { background: var(--an-red); color: #fff; }
.an-ai-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-ai-how__row-p { font-size: 15px; color: var(--an-gray-3); line-height: 1.65; max-width: 560px; }

/* ---- Delivery pillars: the homepage ProblemSolution interactive -------------
   Class names stay an-ps so the shared cycler + typewriter in an-home.js
   drives this section; styles carried here because an-home.css only loads
   on the homepage. Selector detail holds just the progress bar (no problem
   text on this page). */
.an-ps {
  position: relative;
  background: var(--an-dark);
  color: #fff;
  padding: 96px 24px;
  overflow: hidden;
}
.an-ps__glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 820px; height: 400px;
  background: rgba(167,37,44,0.08);
  filter: blur(130px);
  border-radius: 999px;
  pointer-events: none;
}
.an-ps__inner { max-width: 1300px; margin-inline: auto; position: relative; }
.an-ps__head { max-width: 760px; margin-bottom: 56px; }
.an-ps__h2 {
  font-weight: 800;
  font-size: 40px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.an-ps__grid { display: grid; gap: 32px; align-items: stretch; }

.an-ps__selector { display: flex; flex-direction: column; justify-content: center; height: 420px; overflow: hidden; }
.an-ps__item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.an-ps__selector .an-ps__item:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.an-ps__item-row { display: flex; align-items: baseline; gap: 16px; }
.an-ps__item-num {
  font-family: var(--an-font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
  transition: color .3s var(--an-ease);
}
.an-ps__item-title {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.4);
  transition: color .3s var(--an-ease);
}
.an-ps__item:hover .an-ps__item-num { color: rgba(255,255,255,0.5); }
.an-ps__item:hover .an-ps__item-title { color: rgba(255,255,255,0.7); }
.an-ps__item.is-active .an-ps__item-num { color: var(--an-red-light); }
.an-ps__item.is-active .an-ps__item-title { color: #fff; }
.an-ps__item-detail {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .4s var(--an-ease), opacity .4s var(--an-ease);
}
.an-ps__item.is-active .an-ps__item-detail { max-height: 60px; opacity: 1; }
.an-ps__detail-pad { padding: 16px 0 0 32px; max-width: 460px; }
.an-ps__bar { height: 2px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; }
.an-ps__bar-fill { height: 100%; width: 0; background: var(--an-red); }
.an-ps__item.is-active .an-ps__bar-fill { animation: an-ps-progress 7.2s linear forwards; }
@keyframes an-ps-progress { from { width: 0; } to { width: 100%; } }

.an-ps__panel {
  position: relative;
  /* min-height (not height): at 375 the pillar-01 lead overflowed a fixed
     420px panel and overlapped the steps list (audit AI-01). */
  min-height: 420px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--an-terminal);
  overflow: hidden;
}
.an-ps__panel-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 15%, rgba(167,37,44,0.16), transparent 60%);
}
.an-ps__ghost {
  position: absolute; right: 28px; bottom: 4px;
  font-weight: 900; font-size: 150px; line-height: 1;
  color: rgba(255,255,255,0.035);
  user-select: none; pointer-events: none;
}
.an-ps__panel-body { position: relative; height: 100%; padding: 32px; display: flex; flex-direction: column; }
.an-ps__panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.an-ps__dot { width: 6px; height: 6px; border-radius: 999px; background: var(--an-red-light); }
.an-ps__panel-head-text { font-weight: 800; font-size: 15px; color: rgba(255,255,255,0.7); }
.an-ps__lead {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 470px;
  min-height: 100px;
}
.an-ps__caret {
  display: inline-block;
  width: 3px; height: 0.82em;
  background: var(--an-red-light);
  margin-left: 4px;
  vertical-align: middle;
  border-radius: 999px;
  animation: an-ps-blink 0.9s linear infinite;
}
@keyframes an-ps-blink { 0%,45% { opacity: 1; } 55%,100% { opacity: 0; } }
.an-ps__steps { margin-top: auto; display: flex; flex-direction: column; }
.an-ps__step {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  opacity: 0;
}
.an-ps__step.is-in { animation: an-ps-step-in .45s var(--an-ease) forwards; }
@keyframes an-ps-step-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.an-ps__step-num { font-family: var(--an-font-mono); font-size: 12px; color: var(--an-red-light); letter-spacing: 0.1em; padding-top: 2px; flex-shrink: 0; }
.an-ps__step-text { font-size: 15px; color: rgba(255,255,255,0.85); line-height: 1.5; }

/* ---- RexQL callout --------------------------------------------------------- */
.an-ai-rex { background: #fff; color: #fff; padding: 80px 24px; overflow: hidden; }
.an-ai-rex__band {
  position: relative;
  max-width: 1300px;
  margin-inline: auto;
  border: 1px solid rgba(167,37,44,0.3);
  background: var(--an-dark);
  border-radius: 24px;
  box-shadow: 0 30px 70px -34px rgba(0,0,0,0.4);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow: hidden;
}
.an-ai-rex__glow {
  position: absolute;
  right: -80px; top: -80px;
  width: 288px; height: 288px;
  border-radius: 999px;
  background: rgba(167,37,44,0.15);
  filter: blur(90px);
  pointer-events: none;
}
.an-ai-rex__copy { position: relative; max-width: 640px; }
.an-ai-rex__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(167,37,44,0.3);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 30px 70px -30px rgba(0,0,0,0.7);
}
.an-ai-rex__media img { width: 100%; height: 100%; object-fit: cover; }
.an-ai-rex__h2 {
  font-weight: 800;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 12px;
}
.an-ai-rex__p { font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.6; }
.an-ai-rex__btn { position: relative; display: inline-flex; margin-top: 24px; }

/* ---- CTA: red band (homepage an-cta treatment) ----------------------------- */
.an-ai-cta { position: relative; background: var(--an-red); padding: 72px 24px; text-align: center; overflow: hidden; }
.an-ai-cta__light { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 50% 25%, rgba(255,255,255,0.12), transparent 70%); }
.an-ai-cta__dark { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, transparent, transparent, var(--an-red-deep)); }
.an-ai-cta__inner { position: relative; z-index: 2; max-width: 640px; margin-inline: auto; }
.an-ai-cta__h2 {
  font-weight: 800;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 20px;
}
.an-ai-cta__h2 em { font-style: normal; color: rgba(255,255,255,0.95); }
.an-ai-cta__p { font-size: 18px; color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 36px; }
.an-ai-cta__btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--an-red);
  padding: 16px 32px; border-radius: 12px; font-size: 16px; font-weight: 600;
  transition: transform .3s var(--an-ease), box-shadow .3s var(--an-ease);
}
.an-ai-cta__btn:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(0,0,0,0.3); }

/* ---- Responsive ------------------------------------------------------------ */
@media (min-width: 640px) {
  .an-ai-stall__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  /* Drawing joins in-flow between copy and proof bar (up to 1399px). */
  .an-ai-stall__h2 { font-size: 42px; }
  /* The orbit takes over from the red-rule list. */
  .an-ai-stall__orbit { display: block; width: 100%; max-width: 720px; height: auto; margin-inline: auto; }
  .an-ai-stall__grid { display: none; }
  .an-ai-how__h2 { font-size: 44px; }
  .an-ps__h2 { font-size: 48px; }
}
@media (min-width: 1024px) {
  .an-ai-hero { padding: 176px 48px 0; }
  /* THE AGENT RUN (Material Series): the lane's material typeset, anchored
     right, faded at its bottom edge. */
  .an-ai-hero__mat {
    display: block;
    position: absolute;
    top: 24px; right: 0; bottom: 128px;
    width: 46%;
    overflow: hidden;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
    pointer-events: none;
  }
  .an-ai-hero__mat pre {
    font-family: var(--an-font-mono);
    font-size: 12px;
    line-height: 2.0;
    letter-spacing: 0.01em;
    color: rgba(255,255,255,0.42);
    white-space: pre;
    overflow: hidden;
  }
  .an-ai-hero__mat i { font-style: normal; color: var(--an-red-light); opacity: 0.85; }
  .an-ai-hero__mat em { font-style: normal; color: rgba(255,255,255,0.7); }
  .an-ai-hero__mat-tag {
    display: block;
    position: absolute;
    right: 0; bottom: 104px;
    font-family: var(--an-font-mono);
    font-size: 10.5px;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
    z-index: 2;
  }

  .an-ai-hero__slate { display: block; }
  .an-ai-hero__copy { max-width: 560px; }
  .an-ai-hero__sub { font-size: 18px; }
  .an-ai-stall { padding: 112px 48px; }
  .an-ai-stall__cols { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; }
  .an-ai-stall__h2 { font-size: 46px; }
  .an-ai-stall__p { font-size: 18px; }
  .an-ai-how { padding: 128px 48px; }
  .an-ai-how__grid { grid-template-columns: 340px 1fr; gap: 80px; }
  .an-ai-how__intro { position: sticky; top: 128px; align-self: start; }
  /* 32px: the largest size where "each one independent." holds one line in
     the 340px intro column, keeping the comma break. */
  .an-ai-how__h2 { font-size: 32px; }
  .an-ai-how__spine, .an-ai-how__fill, .an-ai-how__dot { left: 50px; }
  .an-ai-how__phase { grid-template-columns: 100px 1fr; gap: 36px; padding: 36px 0; }
  .an-ai-how__num { font-size: 58px; }
  .an-ai-how__row-h { font-size: 26px; }
  .an-ps { padding: 128px 48px; }
  .an-ps__h2 { font-size: 52px; }
  .an-ps__grid { grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 56px; }
  .an-ps__selector { height: 460px; }
  .an-ps__item-title { font-size: 22px; }
  .an-ps__panel { min-height: 460px; }
  .an-ps__panel-body { padding: 44px; }
  .an-ps__ghost { font-size: 190px; }
  .an-ps__lead { font-size: 26px; min-height: 132px; }
  .an-ps__step-text { font-size: 16px; }
  .an-ai-rex { padding: 96px 48px; }
  .an-ai-rex__band { padding: 48px; display: grid; grid-template-columns: 1fr 400px; align-items: center; gap: 48px; }
  .an-ai-rex__h2 { font-size: 34px; }
  .an-ai-cta { padding: 88px 48px; }
  .an-ai-cta__h2 { font-size: 44px; }
}
/* ---------------------------------------------------------------------------
   SITE AUDIT (2026-07-27) — Material Series continuity below 1200.
   The agent-run material is the hero's whole design concept, but it was
   display:none below 1024, so phones and tablets got bare type on black. And
   from 1024-1199 the absolute 46% column overlaps the 560px copy (the same
   geometry the Cloud page logged as audit CLOUD-01).
   Fix: below 1200 the material renders IN FLOW as a framed block under the
   CTAs — hairline rule + its mono tag, so it reads as the lane's material
   rather than a stray code dump. At 1200+ the designed right-column
   composition is untouched.
--------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .an-ai-hero__mat {
    display: block;
    position: static;
    width: auto;
    inset: auto;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
  }
  .an-ai-hero__mat pre {
    margin: 0;
    font-family: var(--an-font-mono);
    /* Sized so the longest line clears 360's content width; the container
       clips as a hard h-scroll backstop. */
    font-size: min(11px, 2.5vw);
    line-height: 1.95;
    letter-spacing: 0.01em;
    color: rgba(255,255,255,0.42);
    white-space: pre;
    overflow: hidden;
  }
  .an-ai-hero__mat i { font-style: normal; color: var(--an-red-light); opacity: 0.85; }
  .an-ai-hero__mat em { font-style: normal; color: rgba(255,255,255,0.7); }
  .an-ai-hero__mat-tag {
    display: block;
    position: static;
    inset: auto;
    margin-top: 14px;
    font-family: var(--an-font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.34);
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .an-ai-hero__mat pre { font-size: 12px; }
}

@media (min-width: 1280px) {
  /* 52px (not the 60px scale step): the largest size where "from concept to
     production." holds one line, keeping Craig's two-line hero lockup. */
  .an-ai-hero__h1 { font-size: 52px; }
  .an-ai-hero__copy { max-width: 700px; }
  /* One-line proof bar. Below 1280 the five slots wrap (nowrap at 1024
     clipped the last slot on 1024-1180 viewports). */
  .an-ai-hero__proofbar { flex-wrap: nowrap; justify-content: space-between; gap: 24px; }
}
@media (min-width: 1400px) {
  /* The styleframe composition: the drawing anchors to the container's right
     edge behind the copy. Only at widths where node 01 clears the copy zone;
     below 1400 the in-flow presentation avoids hiding nodes behind text. */
  .an-ai-hero__dwg {
    position: absolute;
    top: 12px; right: 0;
    width: auto;
    height: 420px;
    margin: 0;
    z-index: 1;
    pointer-events: none;
  }
  .an-ai-hero__proofbar { margin-top: 72px; }
}


/* ---- Frontier Firm: roadmap on black (DWG AN-003) -------------------------- */
.an-ff { position: relative; background: var(--an-dark-3); color: #fff; padding: 96px 24px; overflow: hidden; }
.an-ff__glow {
  position: absolute; top: -96px; right: -96px;
  width: 520px; height: 520px; border-radius: 999px;
  background: rgba(167,37,44,0.16); filter: blur(130px); pointer-events: none;
}
.an-ff__inner { position: relative; max-width: 1300px; margin-inline: auto; }
.an-ff__head { display: grid; gap: 24px; margin-bottom: 48px; }
.an-ff__h2 {
  font-weight: 800;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
}
.an-ff__intro p { font-size: 16px; color: rgba(255,255,255,0.55); line-height: 1.7; max-width: 460px; }
.an-ff__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 14.5px; font-weight: 700; color: #fff; transition: color .2s var(--an-ease); }
.an-ff__cta:hover { color: var(--an-red-light); }

/* The roadmap. Base = vertical spine (phones/tablet); >=1024 = horizontal
   road with cards alternating above and below. */
.an-ff__map { position: relative; }
.an-ff__road, .an-ff__start, .an-ff__dest, .an-ff__conn { display: none; }
.an-ff__stops { position: relative; display: grid; gap: 18px; }
.an-ff__stops::before {
  content: "";
  position: absolute;
  left: 13px; top: 16px; bottom: 16px;
  width: 1px;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.25) 0 4px, transparent 4px 9px);
}
.an-ff__stop { position: relative; display: grid; grid-template-columns: 27px 1fr; gap: 14px; align-items: start; grid-template-areas: "node card"; }
.an-ff__node {
  grid-area: node;
  width: 27px; height: 27px;
  border-radius: 999px;
  background: var(--an-dark-3);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--an-font-mono); font-size: 11px; color: var(--an-red-light);
  position: relative; z-index: 2;
}
.an-ff__card {
  grid-area: card;
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 18px;
}
.an-ff__icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(167,37,44,0.14); border: 1px solid rgba(167,37,44,0.25);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .2s var(--an-ease);
}
.an-ff__icon svg { width: 18px; height: 18px; color: var(--an-red-light); transition: color .2s var(--an-ease); }
.an-ff__card:hover .an-ff__icon { background: var(--an-red); }
.an-ff__card:hover .an-ff__icon svg { color: #fff; }
.an-ff__title { margin-top: 12px; font-weight: 800; font-size: 15.5px; color: #fff; line-height: 1.25; letter-spacing: -0.01em; }
.an-ff__desc { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.6; }
.an-ff__tag { margin-top: 16px; text-align: right; font-family: var(--an-font-mono); font-size: 11px; letter-spacing: 0.15em; color: rgba(255,255,255,0.35); }
@media (min-width: 1024px) {
  .an-ff { padding: 112px 48px; }
  .an-ff__head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: end; }
  .an-ff__h2 { font-size: 46px; }
  .an-ff__map { padding: 0 150px 0 96px; }
  .an-ff__road { display: block; position: absolute; left: 0; right: 0; top: 202px; height: 0; border-top: 1.5px dashed rgba(255,255,255,0.22); }
  .an-ff__start { display: block; position: absolute; left: 10px; top: 198px; text-align: center; }
  .an-ff__start-dot { display: block; width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,0.6); margin-inline: auto; }
  .an-ff__start-lbl { display: block; margin-top: 10px; font-family: var(--an-font-mono); font-size: 10px; letter-spacing: 0.14em; color: rgba(255,255,255,0.4); white-space: nowrap; transform: translateX(-42%); }
  .an-ff__dest { display: block; position: absolute; right: 6px; top: 194px; text-align: center; }
  .an-ff__dest-diamond {
    display: block;
    width: 16px; height: 16px;
    margin-inline: auto;
    transform: rotate(45deg);
    background: var(--an-red);
    box-shadow: 0 0 0 4px var(--an-dark-3), 0 0 0 5px rgba(196,73,80,0.5), 0 0 22px rgba(196,73,80,0.5);
  }
  .an-ff__dest-lbl { display: block; margin-top: 12px; font-family: var(--an-font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--an-red-light); white-space: nowrap; transform: translateX(6%); }
  .an-ff__stops { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .an-ff__stops::before { display: none; }
  .an-ff__stop { display: flex; flex-direction: column; align-items: center; gap: 0; }
  .an-ff__stop--down { padding-top: 190px; }
  .an-ff__conn { display: block; width: 1px; height: 22px; background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.28) 0 3px, transparent 3px 7px); }
  .an-ff__card { height: 168px; padding: 20px; }
  .an-ff__node { width: 26px; height: 26px; }
}

/* ---- Orbit satellite -------------------------------------------------------- */
.an-orbit-sat { transform-box: view-box; transform-origin: 50% 50%; animation: an-orbit-spin 48s linear infinite; }
@keyframes an-orbit-spin { to { transform: rotate(360deg); } }

/* ---- Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .an-ai-hero__slate-dot,
  .an-dwg-node.is-live .an-dwg-halo,
  .an-orbit-sat { animation: none; }
  .an-ps__item.is-active .an-ps__bar-fill { animation: none; width: 100%; }
  .an-ps__caret { display: none; }
  .an-ps__step { opacity: 1; animation: none; }
}


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

@media (max-width: 767px) {
  .an-ff__cta { display: inline-flex; padding-block: 10px; }
}

/* ===========================================================================
   MOBILE UX PASS (2026-07-18). Mobile-breakpoint-gated; the >=1024 / >=768
   overrides above are untouched.
=========================================================================== */

/* AI-M02: the What-we-deliver selector's fixed 420px height centers 4 short
   items inside ~137px of dead dark band when stacked. The 2-col grid only
   exists at >=1024, so <=1023 is the stacked range. */
@media (max-width: 1023px) {
  .an-ps__selector { height: auto; }
  /* AI-M03: Frontier Firm outcome descriptions were 13px on the phone spine. */
  .an-ff__desc { font-size: 15px; }
}

@media (max-width: 767px) {
  /* AI-M01: pin the panel's lead + steps min-heights so the panel (and the
     page below it) stop pumping when the pillar content changes. */
  .an-ps__lead { min-height: 220px; }
  .an-ps__steps { min-height: 188px; }

  /* AI-M04: How-to-start step copy is real reading text; lift to 16px. */
  .an-ai-how__row-p,
  .an-ai-how__lead { font-size: 16px; }

  /* AI-M06: on phones the Stall red-rule list IS the section payload (the orbit
     is desktop-only); give it body weight instead of footnote weight. */
  .an-ai-stall__item > p { font-size: 16px; font-weight: 600; }
}
