/* =====================================================================
   SOLUTIONS: industry pages (industry-*.html) and case studies (case-*.html).
   Generated by build-scripts/build_solutions.py - do not hand-edit the pages.
   Type sizes follow the site rules: H1 Bold clamp(32px,3.4vw,48px),
   section H2 SemiBold clamp(25px,2.6vw,36px), no new sizes.
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sx-ic { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sx-dark { position: relative; overflow: hidden; color: #fff; background-color: var(--tf-navy);
  background-image: linear-gradient(rgba(124,139,230,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(124,139,230,.045) 1px, transparent 1px),
    radial-gradient(ellipse 60% 80% at 72% 40%, rgba(41,58,146,.6), rgba(41,58,146,0) 72%);
  background-size: 54px 54px, 54px 54px, 100% 100%; }
.sx-crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #8F97BE; margin-bottom: 24px; }
.sx-crumb a { color: #BFC5E2; text-decoration: none; }
.sx-sec { padding: clamp(64px, 7vw, 104px) 0; }
.sx-light { background: #fff; color: var(--tf-text-light-bg); }
.sx-mist { background: var(--tf-mist); color: var(--tf-text-light-bg); }
.sx-head .tf-eyebrow { color: var(--tf-indigo); }
.sx-dark .sx-head .tf-eyebrow { color: var(--tf-indigo-glow); }
.sx-head h2 { margin-top: 12px; font-size: clamp(25px, 2.6vw, 36px); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.sx-light .sx-head h2, .sx-mist .sx-head h2 { color: var(--tf-text-light-bg); }
.sx-p { font-size: 16.5px; line-height: 1.75; color: var(--tf-muted-light-bg); }
.sx-dark .sx-p { color: #C3C9E6; }
.sx-note { padding: 22px 0 34px; background: #fff; font-size: 13px; line-height: 1.6; color: var(--tf-muted-light-bg); }

/* ---------- hero with a photo (industry pages) ---------- */
.sx-hero { position: relative; overflow: hidden; color: #fff; background: var(--tf-navy); }
.sx-hero__img { position: absolute; inset: 0 0 0 auto; width: 64%; height: 100%; }
.sx-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.9) brightness(.86); }
.sx-hero__img::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--tf-navy) 0%, rgba(8,13,46,.82) 22%, rgba(8,13,46,.35) 55%, rgba(8,13,46,.08) 100%),
              linear-gradient(0deg, rgba(8,13,46,.55) 0%, rgba(8,13,46,0) 35%); }
.sx-hero__in { position: relative; z-index: 1; padding-top: calc(var(--tf-header-h) + var(--tf-util-h) + 44px); padding-bottom: clamp(64px, 7vw, 104px); }
.sx-hero__txt { max-width: 600px; }
.sx-hero h1 { margin-top: 14px; font-size: clamp(32px, 3.4vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
.sx-hero h1 em { font-style: normal; color: var(--tf-indigo-glow); }
.sx-hero__lede { margin-top: 18px; font-size: clamp(15.5px, 1.3vw, 17.5px); line-height: 1.7; color: #D3D8EE; }
.sx-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sx-hero__tag { position: absolute; right: var(--tf-gutter); bottom: 22px; z-index: 1; font-size: 12px; color: rgba(255,255,255,.7); }

/* ---------- 1. why now: two cards ---------- */
.sx-why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.sx-why__cards { display: grid; gap: 16px; }
.sx-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding: 26px; border-radius: 16px; background: var(--tf-mist); }
.sx-card__tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #fff; color: var(--tf-indigo); }
.sx-card--red .sx-card__tile { background: var(--tf-red); color: #fff; }
.sx-card p { font-size: 15.5px; line-height: 1.7; color: var(--tf-text-light-bg); }

/* ---------- flow diagram (same language as Technology) ---------- */
.fl { position: relative; display: flex; align-items: center; }
.fl__n { flex: 1 1 0; min-width: 0; padding: 16px 10px; border-radius: 12px; text-align: center; border: 1px solid rgba(124,139,230,.35); background: rgba(14,22,69,.85); }
.fl__n b { display: block; font-family: var(--tf-font-head); font-size: 14px; font-weight: 600; line-height: 1.3; color: #fff; }
.fl__n span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: #AEB5DA; }
.fl__n--in { border-color: rgba(124,139,230,.7); box-shadow: inset 0 2px 0 var(--tf-indigo-glow); }
.fl__box { flex: 2.2 1 0; min-width: 0; padding: 14px 12px 12px; border-radius: 14px; border: 1.5px solid rgba(124,139,230,.7); background: rgba(41,58,146,.35); box-shadow: 0 0 50px rgba(74,92,196,.3); text-align: center; }
.fl__box > b { display: block; font-family: var(--tf-font-head); font-size: 15px; font-weight: 600; color: #fff; }
.fl__box > span { display: block; margin-top: 10px; font-size: 13px; color: #C9CFF2; }
.fl__inner { display: flex; align-items: center; margin-top: 12px; }
.fl__inner > div:not(.fl__a) { flex: 1 1 0; padding: 12px 6px; border-radius: 9px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-family: var(--tf-font-head); font-size: 14px; font-weight: 600; color: #fff; }
.fl__inner .fl__core { background: var(--tf-indigo) !important; border-color: var(--tf-indigo-glow) !important; }
.fl__a { position: relative; flex: 0 0 30px; height: 2px; background: rgba(174,181,218,.6); }
.fl__a::after { content: ""; position: absolute; right: -1px; top: 50%; width: 8px; height: 8px; border-top: 2px solid rgba(174,181,218,.8); border-right: 2px solid rgba(174,181,218,.8); transform: translateY(-50%) rotate(45deg); }
.fl__a--sm { flex-basis: 18px; }
.fl__a i { position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--tf-red); box-shadow: 0 0 10px var(--tf-red); opacity: 0; animation: flDot 2.4s linear infinite; }
@keyframes flDot { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }
.fl-ret { position: relative; margin: 26px 6% 0; height: 2px; border-top: 2px dashed var(--tf-red); }
.fl-ret::before { content: ""; position: absolute; left: -2px; top: -7px; width: 10px; height: 10px; border-left: 2px solid var(--tf-red); border-bottom: 2px solid var(--tf-red); transform: rotate(45deg); }
.fl-ret b { position: absolute; left: 50%; top: -15px; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; background: var(--tf-red); box-shadow: 0 0 0 6px rgba(242,26,50,.2), 0 0 24px rgba(242,26,50,.5); }
.fl-ret b::before, .fl-ret b::after { content: ""; position: absolute; left: 7px; top: 13px; width: 14px; height: 2px; background: #fff; transform: rotate(45deg); }
.fl-ret b::after { transform: rotate(-45deg); }
.fl__cap { margin-top: 22px; text-align: center; font-size: 13.5px; color: #C3C9E6; }

/* ---------- 2. how it works (dark) ---------- */
.sx-how { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.sx-how .sx-p { margin-top: 16px; }
.sx-dg { padding: clamp(22px, 3vw, 34px); border-radius: 20px; border: 1px solid rgba(124,139,230,.28);
  background: linear-gradient(180deg, rgba(14,22,69,.72), rgba(8,13,46,.6)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 60px rgba(4,6,26,.45); }

/* ---------- 3. where Terafence fits: pipeline stops ---------- */
.sx-fit { margin-top: clamp(36px, 4vw, 52px); }
.sx-stops { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.sx-stops::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--tf-indigo), var(--tf-indigo-hi)); opacity: .25; }
.sx-stop button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; padding: 0 4px; border: 0; background: none; cursor: pointer; text-align: center; font: inherit; color: var(--tf-muted-light-bg); }
.sx-stop__dot { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #fff; border: 2px solid rgba(41,58,146,.3); color: var(--tf-indigo); transition: background .3s, border-color .3s, color .3s, transform .3s var(--tf-ease); }
.sx-stop__dot .sx-ic { width: 26px; height: 26px; }
.sx-stop b { font-family: var(--tf-font-head); font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--tf-text-light-bg); }
.sx-stop small { font-family: var(--tf-font-head); font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--tf-indigo); }
.sx-stop button:hover .sx-stop__dot { border-color: var(--tf-indigo); transform: translateY(-2px); }
.sx-stop button[aria-selected="true"] .sx-stop__dot { background: var(--tf-indigo); border-color: var(--tf-indigo); color: #fff; box-shadow: 0 0 0 6px rgba(41,58,146,.14); }
.sx-stop button:focus-visible { outline: 2px solid var(--tf-indigo); outline-offset: 4px; border-radius: 12px; }
.sx-panels { margin-top: 28px; }
.sx-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; padding: clamp(24px, 3vw, 34px); border-radius: 18px; background: #fff; border: 1px solid var(--tf-line-light); box-shadow: 0 18px 40px rgba(10,15,44,.06); }
.sx-panel[hidden] { display: none; }
.sx-panel h3 { font-family: var(--tf-font-head); font-size: clamp(20px, 1.8vw, 22px); font-weight: 700; letter-spacing: -0.015em; color: var(--tf-text-light-bg); }
.sx-panel p { margin-top: 10px; font-size: 16px; line-height: 1.7; color: var(--tf-muted-light-bg); }
.sx-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 30px; background: var(--tf-mist); color: var(--tf-indigo); text-decoration: none; font-family: var(--tf-font-head); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s; }
.sx-chip:hover { background: var(--tf-indigo); color: #fff; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* ---------- 4. why choose: three cards ---------- */
.sx-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.sx-3 > div { padding: 28px; border-radius: 16px; background: #fff; border: 1px solid var(--tf-line-light); }
.sx-3 .sx-card__tile { background: var(--tf-mist); }
.sx-3 h3 { margin-top: 18px; font-family: var(--tf-font-head); font-size: 17.5px; font-weight: 600; color: var(--tf-text-light-bg); }
.sx-3 p { margin-top: 10px; font-size: 15.5px; line-height: 1.7; color: var(--tf-muted-light-bg); }

/* ---------- proof panel ---------- */
.sx-proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 22px; padding: clamp(28px, 4vw, 48px); border-radius: 18px; }
.sx-proof__k { display: inline-flex; align-items: center; gap: 8px; font-family: var(--tf-font-head); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tf-indigo-glow); }
.sx-proof__k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tf-red); }
.sx-proof h3 { margin-top: 10px; font-family: var(--tf-font-head); font-size: clamp(20px, 1.8vw, 22px); font-weight: 700; letter-spacing: -0.015em; }
.sx-proof p { margin-top: 12px; font-size: 16px; line-height: 1.75; color: #C3C9E6; }

/* ---------- case study ---------- */
.cs-hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-top: calc(var(--tf-header-h) + var(--tf-util-h) + 44px); padding-bottom: clamp(56px, 6vw, 88px); }
.cs-hero h1 { margin-top: 14px; font-size: clamp(32px, 3.4vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
.cs-hero__lede { margin-top: 18px; font-size: clamp(15.5px, 1.3vw, 17.5px); line-height: 1.7; color: #C3C9E6; }
.cs-glance { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-top: 1px solid rgba(124,139,230,.25); margin-top: 32px; }
.cs-glance > div { padding: 18px 18px 0 0; }
.cs-glance > div + div { padding-left: 18px; border-left: 1px solid rgba(124,139,230,.25); }
.cs-glance small { display: block; font-family: var(--tf-font-head); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--tf-indigo-glow); }
.cs-glance b { display: block; margin-top: 8px; font-family: var(--tf-font-head); font-size: 15px; font-weight: 600; line-height: 1.4; color: #fff; }
.cs-glance a { color: #fff; }
.cs-stats { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 460px; justify-self: end; width: 100%; }
.cs-stats > div { display: flex; align-items: baseline; gap: 16px; padding: 20px 24px; border-radius: 16px; background: rgba(14,22,69,.7); border: 1px solid rgba(124,139,230,.3); box-shadow: inset 3px 0 0 var(--tf-indigo-glow); }
.cs-stats b { flex: 0 0 auto; display: block; font-family: var(--tf-font-head); font-size: clamp(25px, 2.6vw, 36px); font-weight: 600; line-height: 1.1; color: #fff; }
.cs-stats span { display: block; font-size: 15px; line-height: 1.5; color: #AEB5DA; }
.cs-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
.cs-story h2, .sx-head h2.cs-h { display: flex; align-items: center; gap: 12px; font-size: clamp(25px, 2.6vw, 36px); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--tf-text-light-bg); }
.cs-story h2 i, .cs-h i { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--tf-mist); color: var(--tf-indigo); font-style: normal; font-family: var(--tf-font-head); font-size: 14px; font-weight: 700; }
.sx-dark .sx-head h2.cs-h { color: #fff; }
.sx-dark .cs-h i { background: rgba(124,139,230,.2); color: #fff; }
.cs-story h2 i.is-red { background: var(--tf-red); color: #fff; }
.cs-story p { margin-top: 16px; font-size: 16.5px; line-height: 1.75; color: var(--tf-muted-light-bg); }
.cs-sol { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.cs-sol .sx-p { margin-top: 16px; }
.cs-feats { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.cs-feats li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.6; color: #DDE2F7; }
.cs-feats li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(124,139,230,.2); }
.cs-feats li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 3.5px; border-left: 1.6px solid var(--tf-indigo-glow); border-bottom: 1.6px solid var(--tf-indigo-glow); transform: rotate(-45deg); }
.cs-impact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 3.4vw, 40px); }
.cs-impact > div { padding: 26px; border-radius: 16px; background: var(--tf-mist); border-top: 3px solid var(--tf-indigo); }
.cs-impact h3 { font-family: var(--tf-font-head); font-size: 17.5px; font-weight: 600; color: var(--tf-text-light-bg); }
.cs-impact p { margin-top: 8px; font-size: 15.5px; line-height: 1.7; color: var(--tf-muted-light-bg); }
.cs-close { margin-top: clamp(36px, 4vw, 52px); padding-left: clamp(20px, 3vw, 36px); border-left: 3px solid var(--tf-red); font-size: 19px; line-height: 1.6; color: var(--tf-text-light-bg); }
.cs-more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .sx-why, .sx-how, .sx-proof, .cs-hero__in, .cs-story, .cs-sol { grid-template-columns: 1fr; }
  .sx-hero__img { width: 100%; }
  .sx-hero__img::after { background: linear-gradient(90deg, rgba(8,13,46,.92) 0%, rgba(8,13,46,.75) 60%, rgba(8,13,46,.55) 100%); }
  .sx-stops { grid-template-columns: 1fr; gap: 8px; }
  .sx-stops::before { left: 29px; right: auto; top: 30px; bottom: 30px; width: 6px; height: auto; }
  .sx-stop button { flex-direction: row; text-align: left; gap: 16px; }
  .sx-panel { grid-template-columns: 1fr; }
  .sx-chips { justify-content: flex-start; }
  .sx-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .fl { flex-direction: column; align-items: stretch; }
  .fl__n, .fl__box { flex: 0 0 auto; }
  .fl > .fl__a { flex: 0 0 26px; width: 2px; height: 26px; align-self: center; }
  .fl > .fl__a::after { right: auto; left: 50%; top: auto; bottom: -1px; transform: translateX(-50%) rotate(135deg); }
  .fl > .fl__a i { animation-name: flDotV; left: 50% !important; margin: 0 0 0 -3px; top: 0; }
  @keyframes flDotV { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 6px); opacity: 0; } }
  .fl-ret { margin: 26px 12% 0; }
  .cs-glance { grid-template-columns: 1fr; }
  .cs-glance > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(124,139,230,.25); margin-top: 14px; }
  .cs-impact { grid-template-columns: 1fr; }
  .cs-stats { justify-self: stretch; max-width: none; }
  .cs-stats > div { flex-wrap: wrap; gap: 4px 14px; }
  .sx-card { grid-template-columns: 1fr; }
  .sx-hero__tag { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fl__a i { display: none; } }

/* ---------- case study: impact (split, icon list) ---------- */
.cs-imp { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.cs-imp__lede { margin-top: 18px; font-size: 19px; line-height: 1.6; color: var(--tf-text-light-bg); }
.cs-imp .cs-close { margin-top: 28px; font-size: 16.5px; line-height: 1.75; color: var(--tf-muted-light-bg); }
.cs-imp__list { list-style: none; margin: 0; padding: 0; border-radius: 18px; background: #fff; border: 1px solid var(--tf-line-light); box-shadow: 0 18px 40px rgba(10,15,44,.06); overflow: hidden; }
.cs-imp__list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: 26px clamp(20px, 2.6vw, 32px); transition: background .25s; }
.cs-imp__list li + li { border-top: 1px solid var(--tf-line-light); }
.cs-imp__list li:hover { background: #FAFBFE; }
.cs-imp__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--tf-indigo); color: #fff; }
.cs-imp__list h3 { font-family: var(--tf-font-head); font-size: 17.5px; font-weight: 600; color: var(--tf-text-light-bg); }
.cs-imp__list p { margin-top: 6px; font-size: 15.5px; line-height: 1.7; color: var(--tf-muted-light-bg); }

/* ---------- case studies index ---------- */
.cx-hero { grid-template-columns: 1fr !important; padding-bottom: clamp(48px, 5vw, 72px) !important; }
.cx-hero h1 em { font-style: normal; color: var(--tf-indigo-glow); }
.cx-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cx-chip { padding: 9px 16px; border-radius: 30px; border: 1px solid var(--tf-line-light); background: #fff; cursor: pointer; font-family: var(--tf-font-head); font-size: 14px; font-weight: 600; color: var(--tf-muted-light-bg); transition: background .2s, color .2s, border-color .2s; }
.cx-chip:hover { border-color: var(--tf-indigo); color: var(--tf-indigo); }
.cx-chip.is-on { background: var(--tf-indigo); border-color: var(--tf-indigo); color: #fff; }
.cx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cx-card { display: flex; flex-direction: column; padding: 28px; border-radius: 16px; background: #fff; border: 1px solid var(--tf-line-light); color: var(--tf-text-light-bg); text-decoration: none; transition: border-color .25s, transform .3s var(--tf-ease), box-shadow .3s; }
.cx-card[hidden] { display: none; }
a.cx-card:hover { border-color: var(--tf-indigo); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(10,15,44,.08); }
.cx-card__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--tf-mist); color: var(--tf-indigo); }
.cx-card small { margin-top: 18px; font-family: var(--tf-font-head); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tf-indigo); }
.cx-card h2 { margin-top: 8px; font-family: var(--tf-font-head); font-size: 17.5px; font-weight: 600; line-height: 1.35; color: var(--tf-text-light-bg); }
.cx-card p { flex: 1; margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--tf-muted-light-bg); }
.cx-card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-family: var(--tf-font-head); font-size: 14px; font-weight: 600; color: var(--tf-indigo); }
.cx-card__go svg { width: 16px; height: 16px; transition: transform .2s; }
a.cx-card:hover .cx-card__go svg { transform: translateX(3px); }
.cx-card__soon { margin-top: 20px; font-size: 13px; color: var(--tf-grey); }
.cx-card.is-soon { background: #FAFBFE; }
/* the published story is featured: wider, dark */
a.cx-card:first-child { grid-column: span 2; color: #fff; border-color: transparent; background-color: var(--tf-navy);
  background-image: linear-gradient(rgba(124,139,230,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(124,139,230,.045) 1px, transparent 1px), radial-gradient(ellipse 80% 120% at 10% 0%, rgba(41,58,146,.75), rgba(41,58,146,0) 70%);
  background-size: 28px 28px, 28px 28px, 100% 100%; }
a.cx-card:first-child .cx-card__ic { background: rgba(124,139,230,.18); color: #fff; }
a.cx-card:first-child small, a.cx-card:first-child .cx-card__go { color: var(--tf-indigo-glow); }
a.cx-card:first-child h2 { color: #fff; }
a.cx-card:first-child p { color: #C3C9E6; }
@media (max-width: 1080px) {
  .cs-imp { grid-template-columns: 1fr; }
  .cx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .cx-grid { grid-template-columns: 1fr; }
  a.cx-card:first-child { grid-column: auto; }
  .cs-imp__list li { grid-template-columns: 1fr; gap: 14px; }
}
.sx-mist .cs-h i { background: #fff; box-shadow: 0 0 0 1px var(--tf-line-light); }

/* ---------- case studies: photo cards (title on the photo, details slide up on hover) ---------- */
.cx-card--img { position: relative; overflow: hidden; justify-content: flex-end; min-height: 300px; padding: 0; border: 0; background: var(--tf-navy); color: #fff; isolation: isolate; }
a.cx-card.cx-card--img:first-child { grid-column: auto; background: var(--tf-navy); background-image: none; }
.cx-card--img .cx-card__img { position: absolute; inset: 0; z-index: -2; }
.cx-card--img .cx-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--tf-ease); }
.cx-card--img::after { content: ""; position: absolute; inset: 0; z-index: -1; transition: opacity .5s;
  background: linear-gradient(180deg, rgba(8,13,46,.15) 0%, rgba(8,13,46,.35) 40%, rgba(8,13,46,.92) 100%); }
.cx-card--img .cx-card__ic { position: absolute; top: 18px; left: 18px; width: 40px; height: 40px; border-radius: 10px; background: rgba(8,13,46,.55); color: #fff; backdrop-filter: blur(6px); }
.cx-card--img .cx-card__ic .sx-ic { width: 20px; height: 20px; }
.cx-card__body { padding: 22px 24px 22px; }
.cx-card--img small { margin-top: 0; display: block; color: #C9CFF2; }
.cx-card--img h2, a.cx-card.cx-card--img:first-child h2 { margin-top: 6px; color: #fff; }
.cx-card__more { display: grid; grid-template-rows: 0fr; opacity: 0; transform: translateY(14px);
  transition: grid-template-rows .55s var(--tf-ease), opacity .45s ease, transform .55s var(--tf-ease); }
.cx-card__more > div { overflow: hidden; }
.cx-card--img .cx-card__more p, a.cx-card.cx-card--img:first-child p { margin-top: 10px; color: #DDE2F7; }
.cx-card--img .cx-card__go, a.cx-card.cx-card--img:first-child .cx-card__go { margin-top: 14px; color: #fff; }
.cx-card--img .cx-card__soon { display: block; margin-top: 14px; color: #C9CFF2; }
.cx-card--img:hover .cx-card__more, .cx-card--img:focus-visible .cx-card__more, .cx-card--img:focus-within .cx-card__more { grid-template-rows: 1fr; opacity: 1; transform: none; }
.cx-card--img:hover .cx-card__img img, .cx-card--img:focus-visible .cx-card__img img { transform: scale(1.06); }
.cx-card--img:hover::after { opacity: .95; }
a.cx-card.cx-card--img:hover { transform: none; box-shadow: 0 22px 44px rgba(10,15,44,.22); }
.cx-card--img:focus-visible { outline: 3px solid var(--tf-indigo-glow); outline-offset: 3px; }
@media (hover: none) { .cx-card__more { grid-template-rows: 1fr; opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cx-card__more, .cx-card--img .cx-card__img img { transition: none; } }
/* readability when the details are open */
.cx-card--img { min-height: 340px; }
.cx-card--img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8,13,46,.58); opacity: 0; transition: opacity .5s ease; }
.cx-card--img:hover::before, .cx-card--img:focus-visible::before, .cx-card--img:focus-within::before { opacity: 1; }
.cx-card--img small { color: #E3E7FA; text-shadow: 0 1px 8px rgba(4,6,26,.6); }
.cx-card--img h2 { text-shadow: 0 1px 12px rgba(4,6,26,.45); }
@media (hover: none) { .cx-card--img::before { opacity: 1; } .cx-card--img { min-height: 400px; } }

/* ---------- v2 (Robin): compact, uniform cards; title at rest, details rise slowly on hover ---------- */
.cx-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cx-card--img, a.cx-card.cx-card--img:first-child { grid-column: auto; min-height: 0; height: 236px; border-radius: 14px; }
.cx-card--plain { background-color: var(--tf-navy);
  background-image: linear-gradient(rgba(124,139,230,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(124,139,230,.06) 1px, transparent 1px), radial-gradient(ellipse 90% 90% at 85% 10%, rgba(41,58,146,.85), rgba(41,58,146,0) 70%);
  background-size: 24px 24px, 24px 24px, 100% 100%; }
.cx-card--plain::after { background: linear-gradient(180deg, rgba(8,13,46,0) 30%, rgba(8,13,46,.6) 100%); }
.cx-card--img .cx-card__ic { top: 14px; left: 14px; width: 34px; height: 34px; border-radius: 9px; }
.cx-card--img .cx-card__ic .sx-ic { width: 18px; height: 18px; }
.cx-card--img .cx-card__body { padding: 16px 18px 18px; }
.cx-card--img h2, a.cx-card.cx-card--img:first-child h2 { margin-top: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.cx-card--img .cx-card__more small, a.cx-card.cx-card--img:first-child small { display: block; margin-top: 10px; font-size: 11px; color: #E3E7FA; }
.cx-card--img .cx-card__more p, a.cx-card.cx-card--img:first-child p { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: #DDE2F7; }
.cx-card--img .cx-card__go, a.cx-card.cx-card--img:first-child .cx-card__go { margin-top: 10px; font-size: 13px; }
.cx-card--img .cx-card__soon { margin-top: 10px; font-size: 13px; }
.cx-card__more { transform: translateY(18px); transition: grid-template-rows .8s var(--tf-ease), opacity .7s ease .08s, transform .8s var(--tf-ease); }
.cx-card--img::before { background: rgba(8,13,46,.7); transition: opacity .7s ease; }
/* touch screens: no hover - title + 'Read case study' only, tap opens it */
@media (hover: none) {
  .cx-card--img, a.cx-card.cx-card--img:first-child { height: 200px; }
  .cx-card--img::before { opacity: .35; }
  .cx-card__more { grid-template-rows: 1fr; opacity: 1; transform: none; }
  .cx-card__more small, .cx-card__more p { display: none !important; }
}
@media (max-width: 700px) { .cx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .cx-card--img h2 { font-size: 14px; } }
@media (max-width: 420px) { .cx-grid { grid-template-columns: 1fr; } }
/* v2 fixes: navy for cards without a photo, details always fit inside the card */
.cx-card.cx-card--plain { background-color: var(--tf-navy); }
.cx-card--img, a.cx-card.cx-card--img:first-child { height: 252px; }
.cx-card--img .cx-card__more small { display: none !important; }
.cx-card--img .cx-card__more p, a.cx-card.cx-card--img:first-child p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; }
.cx-card--img .cx-card__ic { transition: opacity .5s ease; }
.cx-card--img:hover .cx-card__ic, .cx-card--img:focus-visible .cx-card__ic, .cx-card--img:focus-within .cx-card__ic { opacity: 0; }
@media (hover: none) { .cx-card--img, a.cx-card.cx-card--img:first-child { height: 200px; } .cx-card--img .cx-card__more p { display: none !important; } }
.cx-card.cx-card--plain { background-image: linear-gradient(rgba(124,139,230,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(124,139,230,.06) 1px, transparent 1px), radial-gradient(ellipse 90% 90% at 85% 10%, rgba(41,58,146,.85), rgba(41,58,146,0) 70%); background-size: 24px 24px, 24px 24px, 100% 100%; }

/* ---------- case study banner with the card photo (Robin, 12 Nov) ---------- */
.cs-top.has-photo { background: var(--tf-navy); }
.cs-photo { position: absolute; inset: 0 0 0 auto; width: 66%; height: 100%; z-index: 0; }
.cs-photo picture, .cs-photo img { display: block; width: 100%; height: 100%; }
.cs-photo img { object-fit: cover; object-position: center; filter: saturate(.85) brightness(.9); }
.cs-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--tf-navy) 0%, rgba(8,13,46,.88) 24%, rgba(8,13,46,.45) 58%, rgba(8,13,46,.2) 100%),
              linear-gradient(0deg, rgba(8,13,46,.7) 0%, rgba(8,13,46,0) 40%); }
.cs-top .cs-hero__in { z-index: 1; }
/* key figures: frosted glass over the photo */
.cs-top.has-photo .cs-stats > div { background: rgba(8,13,46,.5); border-color: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 3px 0 0 var(--tf-indigo-glow), 0 12px 30px rgba(4,6,26,.35); }
.cs-top.has-photo .cs-stats span { color: #DDE2F7; }
/* at-a-glance: soft tags, no vertical lines */
.cs-glance { display: flex; flex-wrap: wrap; gap: 10px; border-top: 0; margin-top: 30px; }
.cs-glance > div, .cs-glance > div + div { padding: 10px 14px; border: 1px solid rgba(124,139,230,.3); border-left: 1px solid rgba(124,139,230,.3); border-radius: 12px; background: rgba(255,255,255,.05); margin-top: 0; }
.cs-glance b { margin-top: 4px; }
@media (max-width: 1080px) {
  .cs-photo { width: 100%; }
  .cs-photo::after { background: linear-gradient(180deg, rgba(8,13,46,.82) 0%, rgba(8,13,46,.9) 55%, var(--tf-navy) 100%); }
  .cs-top.has-photo .cs-stats { justify-self: stretch; max-width: none; }
}
@media (max-width: 760px) { .cs-glance { flex-direction: column; } .cs-glance > div + div { border-top: 1px solid rgba(124,139,230,.3); } }

/* Impact refinements (Robin, 12 Nov): no vertical line on the closing statement; richer icon tiles */
.cs-imp .cs-close { position: relative; margin-top: 30px; padding: 22px 24px 22px 64px; border-left: 0; border-radius: 16px; background: #fff;
  box-shadow: 0 12px 30px rgba(10,15,44,.06); color: var(--tf-text-light-bg); }
.cs-imp .cs-close::before { content: "\201C"; position: absolute; left: 20px; top: 10px; font-family: var(--tf-font-head); font-size: 48px; font-weight: 700; line-height: 1; color: var(--tf-indigo-glow); }
.cs-imp__ic { position: relative; width: 52px; height: 52px; border-radius: 16px; color: #fff;
  background: linear-gradient(140deg, #5466CF 0%, #293A92 60%, #1D2A73 100%);
  box-shadow: 0 10px 22px rgba(41,58,146,.28), inset 0 1px 0 rgba(255,255,255,.22); transition: transform .35s var(--tf-ease), box-shadow .35s; }
.cs-imp__ic::after { content: ""; position: absolute; inset: -5px; border-radius: 20px; border: 1px solid rgba(41,58,146,.14); }
.cs-imp__ic .sx-ic { width: 24px; height: 24px; stroke-width: 1.7; }
.cs-imp__list li:hover .cs-imp__ic { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 28px rgba(41,58,146,.34), inset 0 1px 0 rgba(255,255,255,.22); }
.cs-imp__list li { align-items: center; }

/* fact panels (case studies without headline figures) */
.cs-stats > div.cs-fact { flex-direction: column; align-items: flex-start; gap: 6px; }
.cs-fact span { font-family: var(--tf-font-head); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--tf-indigo-glow) !important; }
.cs-fact b { font-size: 22px !important; font-weight: 600; line-height: 1.3; }

/* customer quote in Impact (left column) + sentence after the solution features */
.cs-quote { margin: 24px 0 0; padding: 22px 24px; border-radius: 16px; color: #fff; background-color: var(--tf-navy);
  background-image: radial-gradient(ellipse 90% 120% at 10% 0%, rgba(41,58,146,.85), rgba(41,58,146,0) 70%); box-shadow: 0 14px 32px rgba(10,15,44,.16); }
.cs-quote blockquote { margin: 0; font-size: 16.5px; line-height: 1.7; }
.cs-quote figcaption { margin-top: 12px; font-size: 13.5px; color: #C3C9E6; }
.cs-after { margin-top: 18px; }

/* challenge bullet list (light section) */
.cs-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.cs-list li { position: relative; padding: 14px 16px 14px 44px; border-radius: 12px; background: var(--tf-mist); font-size: 15.5px; line-height: 1.65; color: var(--tf-muted-light-bg); }
.cs-list li::before { content: ""; position: absolute; left: 16px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--tf-red); box-shadow: 0 0 0 4px rgba(242,26,50,.12); }
.cs-list strong { color: var(--tf-text-light-bg); font-weight: 600; }
.cs-story .cs-list + p { margin-top: 16px; }

/* why-choose cards: soft light gradient (Robin, 12 Nov) - stays light so it does not clash with the dark proof panel below */
.sx-3 > div { position: relative; overflow: hidden; border: 1px solid rgba(41,58,146,.12);
  background: linear-gradient(150deg, #FFFFFF 0%, #F3F5FC 45%, #DFE4F6 100%); box-shadow: 0 10px 26px rgba(10,15,44,.05);
  transition: transform .35s var(--tf-ease), box-shadow .35s; }
.sx-3 > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--tf-indigo), var(--tf-indigo-glow)); }
.sx-3 > div::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124,139,230,.22), rgba(124,139,230,0)); pointer-events: none; }
.sx-3 .sx-card__tile { background: #fff; box-shadow: 0 6px 16px rgba(41,58,146,.12); }
.sx-3 > div:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(10,15,44,.09); }

/* non-gateway product names (no product page) */
.sx-chip--plain { background: #fff; border: 1px solid var(--tf-line-light); color: var(--tf-muted-light-bg); }
.sx-chip--plain:hover { background: #fff; color: var(--tf-muted-light-bg); }
/* proof panel without a diagram */
.sx-proof--solo { grid-template-columns: 1fr; }
.sx-proof--solo p { max-width: 860px; }
/* solutions overview: sector cards */
.sx-ov__head { max-width: 860px; }
.sx-ov__head .sx-p { margin-top: 14px; }
.sx-sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.sx-sector { display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid var(--tf-line-light); color: var(--tf-text-light-bg); text-decoration: none;
  transition: transform .35s var(--tf-ease), box-shadow .35s, border-color .3s; }
.sx-sector:hover { transform: translateY(-3px); border-color: rgba(41,58,146,.35); box-shadow: 0 18px 40px rgba(10,15,44,.09); }
.sx-sector__img { display: block; height: 170px; overflow: hidden; }
.sx-sector__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--tf-ease); }
.sx-sector:hover .sx-sector__img img { transform: scale(1.05); }
.sx-sector__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.sx-sector h3 { font-family: var(--tf-font-head); font-size: 17.5px; font-weight: 600; color: var(--tf-text-light-bg); }
.sx-sector p { flex: 1; margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--tf-muted-light-bg); }
.sx-sector__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--tf-font-head); font-size: 14px; font-weight: 600; color: var(--tf-indigo); }
.sx-sector__go svg { width: 16px; height: 16px; transition: transform .2s; }
.sx-sector:hover .sx-sector__go svg { transform: translateX(3px); }
@media (max-width: 1080px) { .sx-sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sx-sectors { grid-template-columns: 1fr; } }

/* Source PowerPoint visuals in case-study solution sections. */
.cs-source-visual { margin: clamp(32px, 4vw, 48px) 0 0; }
.cs-source-visual a { display: block; border-radius: 16px; overflow: hidden; }
.cs-source-visual img { display: block; width: 100%; height: auto; }
.cs-source-visual a:focus-visible { outline: 3px solid var(--tf-indigo-glow); outline-offset: 5px; }
/* Industry pages: related case studies and the way back to Solutions */
.sx-related .cx-grid { margin-top: clamp(24px, 3vw, 40px); }
.sx-related__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; margin-top: clamp(22px, 2.6vw, 32px); }
.sx-related__foot .tf-link svg { width: 16px; height: 16px; }
