/* =============================================================
   DIGITAL ECOSYSTEM PAGE - 8 system cards laid out in the
   manufacturing-excellence (mev2) design language. The shared
   mev2 hero, intro band, accent colour and typography come from
   css/manufacturing-excellence-v2.css; this file adds:

     1. .de-systems        - the 8-card section
     2. .de-system         - individual system card
     3. .de-close          - closing CTA strip
   ============================================================= */


/* ═══════════════════════════════════════════════════════════
   1. EDITORIAL ROW LAYOUT - 8 stacked rows, each with text on
   the LEFT and a full-bleed image on the RIGHT. AKFA-style
   editorial pattern.
   ═══════════════════════════════════════════════════════════ */
.de-rows {
  background: var(--paper-elev, var(--paper, #FAFAF8));
  color: var(--ink, #231F20);
  padding: clamp(64px, 8vw, 120px) 0;
  border-top: 1px solid rgba(35,31,32,0.06);
}
.de-rows__inner {
  max-width: var(--container, 1320px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
}
.de-systems__sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.de-rows__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   2. ROW - text column LEFT, image column RIGHT, hairline
   between rows. Image stretches to row height via grid
   align-items: stretch (default).
   ═══════════════════════════════════════════════════════════ */
.de-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(28px, 4vw, 72px);
  padding: clamp(48px, 6vw, 96px) 0;
  border-top: 1px solid rgba(35,31,32,0.10);
  align-items: stretch;
}
.de-row:first-child {
  border-top: 0;
  padding-top: clamp(8px, 1vw, 16px);
}
.de-row:last-child {
  padding-bottom: clamp(8px, 1vw, 16px);
}

.de-row__text {
  display: flex;
  flex-direction: column;
  align-self: center;
}

/* Number badge: small circle with the row number */
.de-row__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(34px, 3vw, 42px);
  height: clamp(34px, 3vw, 42px);
  border-radius: 50%;
  background: rgba(245,130,32,0.10);
  color: var(--accent, #F58220);
  font-family: "Inter", sans-serif;
  font-feature-settings: "tnum" 1;
  font-size: var(--fs-s);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}

.de-row__eyebrow {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #F58220);
  margin: 0 0 10px;
}

.de-row__title {
  font-family: "Raleway", sans-serif;
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.18;
  color: var(--ink, #231F20);
  margin: 0 0 clamp(18px, 2vw, 26px);
}

.de-row__body {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  line-height: 1.65;
  color: rgba(35, 31, 32, 0.8);
  margin: 0 0 12px;
}
.de-row__body:last-of-type { margin-bottom: 0; }

.de-row__sublabel {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  font-weight: 700;
  color: var(--ink, #231F20);
  margin: clamp(14px, 1.6vw, 20px) 0 8px;
}
.de-row__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.de-row__bullets li {
  position: relative;
  padding-left: 18px;
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  line-height: 1.55;
  color: rgba(35, 31, 32, 0.8);
}
.de-row__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, #F58220);
}
.de-row__bullets strong {
  font-weight: 700;
  color: var(--ink, #231F20);
}

/* Image column: stretches to row height, image covers */
.de-row__media {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a1416 0%, #0A0809 60%, #231F20 100%);
  min-height: clamp(280px, 32vw, 480px);
}
.de-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.de-row:hover .de-row__media img {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .de-row {
    grid-template-columns: 1fr;
    gap: clamp(24px, 3vw, 36px);
    padding: clamp(36px, 5vw, 64px) 0;
  }
  .de-row__media { min-height: 0; aspect-ratio: 16 / 10; }
}


/* ═══════════════════════════════════════════════════════════
   3. CLOSING CTA STRIP
   ═══════════════════════════════════════════════════════════ */
.de-close {
  background: #0A0809;
  color: #FFFFFF;
  padding: clamp(56px, 6vw, 96px) 0;
  text-align: center;
  border-top: 1px solid rgba(245,130,32,0.25);
}
.de-close__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
}
.de-close__statement {
  font-family: "Raleway", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255,255,255,0.95);
  margin: 0 0 clamp(20px, 2.4vw, 30px);
}
.de-close__statement em {
  color: var(--accent, #F58220);
  font-style: normal;
  font-weight: 700;
}
.de-close__ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════
   LIGHT-MODE / DARK-MODE flips
   The .de-systems section uses warm-paper tokens which already
   theme-flip via :root. These rules cover the dark-mode card
   contrast (cards become subtle dark surfaces).
   ═══════════════════════════════════════════════════════════ */
:root:not([data-theme="light"]) .de-rows {
  background: #0A0809;
  color: #FFFFFF;
  border-top-color: rgba(255,255,255,0.06);
}
:root:not([data-theme="light"]) .de-row {
  border-top-color: rgba(255,255,255,0.10);
}
:root:not([data-theme="light"]) .de-row__title,
:root:not([data-theme="light"]) .de-row__sublabel,
:root:not([data-theme="light"]) .de-row__bullets strong {
  color: #FFFFFF;
}
:root:not([data-theme="light"]) .de-row__body,
:root:not([data-theme="light"]) .de-row__bullets li {
  color: rgba(255,255,255,0.78);
}
