/* ════════════════════════════════════════════════════════════
   AI LEGACY MODERNIZATION
   Concept: "Don't start over." A scroll-driven scan reveals the
   client's existing system node by node, a four-decision framework
   (preserve / modernize / extend / replace) shows the judgment,
   and the outcomes show the same graph fully lit. Amber #F5A623
   is a page-local accent meaning "risk / blocked" — the one thing
   cyan can't say.
   ════════════════════════════════════════════════════════════ */

.lmc-wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: clamp(24px, 6vw, 96px);
}

/* S01 · HERO — shared services formula: markup rendered by
   /js/svc-heroes.js, styles in /css/services/svc-hero.css */

/* ── S02 · MODERNIZATION ASSESSMENT (auto-playing section) ─
   Normal-flow section — the scroll no longer pins here. The
   assessment animation plays automatically once on scroll-into-
   view (see inline JS), rather than being scrubbed by scroll. */
.lmc-scan-region {
  position: relative;
  background: #202124;
}
.lmc-scan {
  position: relative;
  padding: clamp(84px, 12vh, 150px) 0;
  display: flex;
  align-items: center;
}
.lmc-scan__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(40px, 5vw, 88px);
  align-items: center;
}

/* status strip + stage (left) */
.lmc-asmt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-width: 0;
}
.lmc-asmt__status {
  width: min(100%, 520px);
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,189,255,0.12);
}
.lmc-asmt__idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #00BDFF;
}
.lmc-asmt__name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #F4F4F4;
}
.lmc-asmt__stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
}
.lmc-asmt__gridbg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(0,189,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,189,255,0.05) 1px, transparent 1px);
  background-size: 7.14% 7.14%;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 74%, transparent 98%);
  mask-image: radial-gradient(ellipse at center, #000 74%, transparent 98%);
}
.lmc-asmt__edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

/* domain regions */
.lmc-dom {
  position: absolute;
  transform: translate(-50%, -50%);
  color: rgba(0,189,255,0.22);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.35s, color 0.35s, background 0.35s;
}
.lmc-dom__label {
  position: absolute;
  top: -6px;
  left: 14px;
  padding: 0 6px;
  background: #202124;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(0,189,255,0.4);
  transition: color 0.35s;
}
.lmc-dom__c {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 0 solid currentColor;
}
.lmc-dom__c--tl { top: 0; left: 0;  border-top-width: 1px;    border-left-width: 1px;  border-top-left-radius: 5px; }
.lmc-dom__c--tr { top: 0; right: 0; border-top-width: 1px;    border-right-width: 1px; border-top-right-radius: 5px; }
.lmc-dom__c--bl { bottom: 0; left: 0;  border-bottom-width: 1px; border-left-width: 1px;  border-bottom-left-radius: 5px; }
.lmc-dom__c--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; border-bottom-right-radius: 5px; }

/* service nodes */
.lmc-node {
  position: absolute;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  z-index: 2;
  will-change: opacity;
}
.lmc-node__core {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(0,189,255,0.2);
  border-radius: 3px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.lmc-node__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 3px;
  border: 1px solid #FC9D03;
  opacity: 0;
  pointer-events: none;
}
.lmc-node__find {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  padding: 2px 5px;
  border-radius: 3px;
  border: 1px solid transparent;
  background: rgba(32,33,36,0.92);
  transition: opacity 0.35s;
}
.lmc-node__label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: rgba(230,236,244,0.6);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
@keyframes lmc-riskpulse {
  0%   { transform: translate(-50%,-50%) scale(1);   opacity: 0.5; }
  100% { transform: translate(-50%,-50%) scale(2.5); opacity: 0; }
}

/* copy column */
.lmc-scan__copy h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1;
  text-transform: uppercase;
  color: #F4F4F4;
  margin: 0 0 22px;
}
.lmc-scan__copy h2 em { font-style: normal; color: #00BDFF; }
.lmc-scan__intro {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 300;
  font-size: clamp(17.5px, 1.5vw, 20px);
  line-height: 1.5;
  color: rgba(244,244,244,0.55);
  margin: 0 0 30px;
  max-width: 46ch;
}
.lmc-checklist {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.lmc-chk {
  display: flex;
  align-items: center;
  gap: 15px;
  opacity: 0.32;
  transition: opacity 0.45s;
}
.lmc-chk__box {
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(244,244,244,0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.4s, background 0.4s;
}
.lmc-chk__box svg { width: 16px; height: 16px; }
.lmc-chk__path {
  fill: none;
  stroke: #00BDFF;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.lmc-chk__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244,244,244,0.6);
  transition: color 0.4s;
}

/* Scroll pips */
.lmc-pips {
  position: absolute;
  right: clamp(16px, 3vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lmc-pip {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(244,244,244,0.18);
  transition: background 0.3s, transform 0.3s;
}
.lmc-pip.active { background: #00BDFF; transform: scale(1.5); }
.lmc-scan__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: #00BDFF;
}

/* ── S03 · FRAMEWORK ────────────────────────────────────── */
.lmc-fw {
  background: #161719;
  padding: clamp(84px, 11vh, 150px) 0;
}
.lmc-fw__head { margin-bottom: clamp(44px, 6vh, 72px); max-width: 760px; }
.lmc-fw__head h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1;
  text-transform: uppercase;
  color: #F4F4F4;
  margin: 0;
}
.lmc-fw__head h2 em { font-style: normal; color: #00BDFF; }

.lmc-fw__sub { margin: 20px 0 0; max-width: 62ch; }

/* The live mix — four fixed, evenly-weighted columns (permanent
   peers; the labels never move). Only the fills and numerals
   reallocate: a weighted-random mix summing to 100 resamples,
   tweens, holds, repeats (JS). Decision colors: white = untouched,
   cyan = brought forward, amber = the caution case. */
.lmc-mix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 56px);
  /* start, not end: name/%/bar heights are constant so tops-aligned keeps
     the bars level, and the variable-height descriptions rag at the bottom
     — bottom-aligning let a shorter description drop its whole column. */
  align-items: start;
}
.lmc-mix-col { display: flex; flex-direction: column; }
.lmc-mix-col[data-dec="preserve"]  { --dec: #F4F4F4; }
.lmc-mix-col[data-dec="modernize"] { --dec: #00BDFF; }
.lmc-mix-col[data-dec="extend"]    { --dec: #59CFFF; }
.lmc-mix-col[data-dec="replace"]   { --dec: #F5A623; }

.lmc-mix-col__name {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(20px, 1.9vw, 30px);
  line-height: 1;
  text-transform: uppercase;
  color: #F4F4F4;
  margin: 0 0 14px;
}
.lmc-mix-col__pct {
  display: flex; align-items: baseline; gap: 2px;
  margin-bottom: 14px;
}
.lmc-mix-col__pct b {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 4.4vw, 68px);
  line-height: 0.9;
  color: var(--dec);
  font-variant-numeric: tabular-nums;
}
.lmc-mix-col__pct i {
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: rgba(244,244,244,0.4);
}
.lmc-mix-col__track {
  height: clamp(120px, 18vh, 180px);
  display: flex; align-items: flex-end;
  border-bottom: 1px solid rgba(244,244,244,0.16);
  background:
    repeating-linear-gradient(180deg,
      rgba(244,244,244,0.045) 0, rgba(244,244,244,0.045) 1px,
      transparent 1px, transparent 25%);   /* quiet quartile rules */
  margin-bottom: 18px;
}
.lmc-mix-col__fill {
  display: block;
  width: 100%;
  /* height driven by JS each frame — no CSS transition on top */
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--dec) 30%, transparent),
              color-mix(in srgb, var(--dec) 7%, transparent));
  border-top: 2px solid var(--dec);
}
.lmc-mix-col__desc { margin: 0; }
.lmc-mix__foot {
  margin: clamp(28px, 4vh, 44px) 0 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em;
  color: rgba(244,244,244,0.35);
}
@media (max-width: 900px) {
  .lmc-mix { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px clamp(20px, 5vw, 40px); }
}
@media (max-width: 520px) {
  .lmc-mix-col__track { height: 90px; }
}

/* ── S04 · OUTCOMES ─────────────────────────────────────── */
.lmc-out {
  background: #202124;
  padding: clamp(84px, 11vh, 150px) 0;
}
.lmc-out__head { margin-bottom: clamp(44px, 6vh, 80px); max-width: 640px; }
.lmc-out__head h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1;
  text-transform: uppercase;
  color: #F4F4F4;
  margin: 0;
}
.lmc-out__head h2 em { font-style: normal; color: #00BDFF; }

/* Static three-column take (promoted from sandbox2 "Columns"):
   cyan top rule, mono index, Anton head, prose. No motion —
   the copy carries it. */
.lmc-out__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 4vw, 72px);
}
.lmc-out-col {
  border-top: 1px solid rgba(0, 189, 255, 0.35);
  padding-top: 22px;
}
.lmc-out-col__idx {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #00BDFF;
  margin-bottom: 16px;
}
.lmc-out-col__h {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.05;
  text-transform: uppercase;
  color: #F4F4F4;
  margin: 0 0 14px;
}
.lmc-out-col p { margin: 0; }

/* ── S05 · CASE STUDIES — shared template: css/case-studies-section.css
      + js/case-studies-section.js (config lives in the page HTML) ── */
/* ── S06 · CTA ──────────────────────────────────────────── */
.lmc-cta {
  background: #161719;  /* flipped — case studies removed, keeps dark/gray rhythm (S143) */
  padding: clamp(90px, 12vh, 160px) 0;
  text-align: center;
}
.lmc-cta__h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 84px);
  line-height: 0.98;
  text-transform: uppercase;
  color: #F4F4F4;
  margin: 0 0 34px;
}
.lmc-cta__h2 em { font-style: normal; color: #00BDFF; }
.lmc-cta__b { max-width: 52ch; margin: 0 auto 34px; }

/* ── Scroll reveals ─────────────────────────────────────── */
.lmc-mix-col {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 0.84, 0.44, 1);
}
.lmc-mix-col.in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .lmc-scan__grid { grid-template-columns: 1fr; gap: 40px; }
  .lmc-asmt { order: 1; }
  .lmc-asmt__stage { max-width: 400px; }
  .lmc-node__label { font-size: 9px; }
  .lmc-node__find { font-size: 8px; }
  .lmc-pips, .lmc-scan__bar { display: none; }

  .lmc-out__cols { grid-template-columns: 1fr; gap: 36px; }

}

/* ── Reduced motion — settle on the understood system ───── */
@media (prefers-reduced-motion: reduce) {
  .lmc-dom, .lmc-node, .lmc-node__core, .lmc-node__find, .lmc-node__label,
  .lmc-dom__label, .lmc-chk, .lmc-chk__box, .lmc-chk__label, .lmc-chk__path {
    transition: none !important;
  }
  .lmc-node__ring { animation: none !important; }
  .lmc-mix-col { opacity: 1; transform: none; transition: none; }
}
