/* ABLENTRA V18 — Industry "How a project runs" 5-step section (2026-11-09, Agent 15).
 * Linked ONLY on the 18 industry pages (17 x /industries/<niche>/ with
 * section#process + /industries/ with section#process-preview), AFTER the
 * other v18-*.css links in <head>. Every rule is scoped under
 * main#main #process / #process-preview. Colours unchanged (V17 palette as
 * rendered: white cards, #f4f4f2 description boxes, rust step numbers,
 * near-black titles, muted descriptions).
 *
 * DIAGNOSIS (owner screenshot image-78 + local Playwright repro on the V17
 * tree, before/after captures in qa-screenshots-v18/industry-how-runs/):
 * (a) Heading clipped under the sticky bars: the h2 starts at opacity:0
 *     (site-core-b.css [data-reveal]/h2.h-section hidden state) and its
 *     words sit grey until the timed word-reveal completes (up to 6s), so
 *     any fast screenshot shows a half-visible heading; the anchor landing
 *     also shifted ~83px after the click while lazy content settled.
 * (b) Titles overlapped / cut by images: .mini-step-img is rotated
 *     +/-1.4deg (v15-base.css) and steps 2/4 are pushed down 2.2rem by the
 *     per-page inline <style> stagger, so titles sit at different heights
 *     and the tilted image corners crowd them.
 * (c) Numbers inconsistent: the same stagger + the staggered reveal
 *     (ms-rise, .75s, 0/.08/.16s delays) leaves odd/even cards at different
 *     reveal stages in any fast capture — 02/04 readable while 01/03/05
 *     are still mid-animation.
 * (d) Uneven / cut at the bottom: staggered cards are 35px shorter than
 *     their row-mates (grid stretch minus the 2.2rem margin), description
 *     boxes end at different heights (text length differs), and at
 *     <=1100px the 5-column grid survives via an !important rule in
 *     ablentra-fixes-bundle.css, so at 768px the section renders as five
 *     ~129px columns with words breaking mid-word and ~1084px-tall cards.
 *
 * FIX (CSS only — no copy, tab-label, step-text or Cal.com change):
 *  1. This section never animates: force the final visible state
 *     (opacity 1, no rise animation, no blur, word spans at their
 *     inherited final colour). Hover lift is preserved — the transform
 *     override is scoped to the pre-reveal state only.
 *  2. No stagger, no tilt: all five cards share one baseline; images
 *     sit flat with a clear gap above each title.
 *  3. Real responsive grid: 5 cols >=1101px, 3 cols 701-1100px,
 *     2 cols 521-700px, 1 col <=520px (same content/order everywhere —
 *     mobile_desktop_parity: only the column layout changes).
 *  4. Equal cards: grid stretch + flex-column cards + flex:1 description
 *     boxes, so every card and every grey box in a row ends at the same
 *     height. Description boxes keep their V17 grey (#f4f4f2).
 *  5. Anchor landing clears both sticky bars: scroll-margin-top 190px.
 * Tabs (Problems / Services / Features / Search / Process / Pricing /
 * FAQ) are untouched — no JS, no nav markup, no anchor hrefs changed.
 */

/* --- 5. Anchor landing: clear the fixed site nav + sticky anchor-nav --- */
main#main #process,
main#main #process-preview {
  scroll-margin-top: 190px !important;
}

/* --- 1. Final visible state, always (no reveal can hide this section) --- */
/* Hidden-state rules this beats (all without an ID in the selector):
   site-core-b.css  html.js:not(.ms-failsafe) [data-reveal]/h2.h-section
   {opacity:0} + .ms-in ms-rise animation; ablentra-mobile-pro.css
   html .abl-rv:not(.abl-in) {opacity:0!important; translate + blur};
   premium-2026-11-07.css [data-word-reveal].pq-words--armed .pq-word
   {color:#b3b3b8}; v16-text-scrub.css [data-abl-scrub] .abl-scrub-word
   {color:#d9d9d9}. */
main#main #process [data-reveal],
main#main #process h2.h-section,
main#main #process .mini-step,
main#main #process-preview [data-reveal],
main#main #process-preview h2.h-section,
main#main #process-preview .mini-step {
  opacity: 1 !important;
  animation: none !important;
  filter: none !important;
  visibility: visible !important;
}
/* Pre-reveal transform only (scoped so card hover lift still works once
   revealed: .ms-in present / .abl-rv removed => this no longer matches). */
main#main #process [data-reveal]:not(.ms-in),
main#main #process .mini-step.abl-rv:not(.abl-in),
main#main #process-preview [data-reveal]:not(.ms-in),
main#main #process-preview .mini-step.abl-rv:not(.abl-in) {
  transform: none !important;
}
/* Word spans render at their final (inherited) colour at once — no grey
   titles, no grey heading, at any scroll speed. */
main#main #process [data-word-reveal] .pq-word,
main#main #process [data-word-reveal] .abl-w,
main#main #process [data-abl-scrub] .abl-scrub-word,
main#main #process-preview [data-word-reveal] .pq-word,
main#main #process-preview [data-word-reveal] .abl-w,
main#main #process-preview [data-abl-scrub] .abl-scrub-word {
  color: inherit !important;
  transition: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* --- 3. Responsive grid (beats ablentra-fixes-bundle.css 5-col !important) --- */
main#main #process .mini-steps,
main#main #process-preview .mini-steps {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: clamp(1rem, 1.6vw, 1.4rem) !important;
  align-items: stretch !important;
  margin-top: 1.8rem !important;
}
@media (max-width: 1100px) {
  main#main #process .mini-steps,
  main#main #process-preview .mini-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 700px) {
  main#main #process .mini-steps,
  main#main #process-preview .mini-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 520px) {
  main#main #process .mini-steps,
  main#main #process-preview .mini-steps {
    grid-template-columns: 1fr !important;
  }
}

/* --- 2+4. Flat, even cards: no stagger, no tilt, equal heights --- */
/* Beats the per-page inline <style> stagger
   (.v13-ind .v13-process .mini-step:nth-child(2),(4){margin-top:2.2rem})
   and v15-base.css image tilt, on specificity + !important. */
main#main #process .mini-step,
main#main #process-preview .mini-step {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  margin-top: 0 !important;
}
main#main #process .mini-step .step-num,
main#main #process-preview .mini-step .step-num {
  margin: 0 0 0.5rem !important;
  opacity: 1 !important;
  visibility: visible !important;
}
main#main #process .mini-step-img,
main#main #process-preview .mini-step-img {
  transform: none !important;
  transition: none !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  margin: 0.85rem 0 0.6rem !important;
}
main#main #process .mini-step h3,
main#main #process-preview .mini-step h3 {
  margin: 0 0 0.55rem !important;
}
/* Description box keeps its V17 grey; flex:1 makes every box in a row the
   same height (beats the inline h3+p !important on specificity). */
main#main #process .mini-step h3 + p,
main#main #process-preview .mini-step h3 + p {
  flex: 1 1 auto !important;
  background: #f4f4f2 !important;
  border-radius: 14px !important;
  padding: 0.85rem 1rem !important;
}
