/* SOURCE: /shared/homepage/ecosystem.css */
.thl-ecosystem-overview {
  --thl-ecosystem-red: #b10e23;
  --thl-ecosystem-copy: #52474c;
  --thl-ecosystem-line: #ede4e7;
  --thl-ecosystem-sticky-top: 82px;
  background: #fff;
  color: #231f20;
  scroll-margin-top: 12px;
}
:where(.thl-ecosystem-overview) :where(h2, h3, p, ol) { margin-block: 0; }
.thl-ecosystem-card h3 { font-weight: 800; }
#solutions :is(#ecosystem-title, .thl-ecosystem-bridge, .thl-ecosystem-value) {
  font-family: var(--thl-type-family, "Be Vietnam Pro", Arial, sans-serif) !important;
  font-weight: 600 !important;
}
.thl-ecosystem-summary, .thl-ecosystem-progress { display: none; }
.thl-ecosystem-enhanced .thl-ecosystem-summary { display: block; }
.thl-ecosystem-enhanced .thl-ecosystem-progress { display: flex; }
.thl-ecosystem-card:focus-visible { outline: 2px solid var(--thl-ecosystem-red); outline-offset: 3px; }
.thl-ecosystem-stage {
  width: min(100% - 100px, 1260px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(36px, 8vw, 120px);
  align-items: start;
}
.thl-ecosystem-intro { position: relative; isolation: isolate; padding-block: 40px; font-size: clamp(2.15rem, 4.2vw, 4.4rem); }
.thl-ecosystem-enhanced .thl-ecosystem-intro {
  position: sticky;
  z-index: 1;
  top: var(--thl-ecosystem-sticky-top);
  min-height: calc(100svh - var(--thl-ecosystem-sticky-top));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.thl-ecosystem-intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% 0;
  background: radial-gradient(circle, #b10e232d 1px, transparent 1.35px) 0 0 / 15px 15px;
  mask-image: radial-gradient(ellipse at 90% 64%, black, transparent 70%);
  pointer-events: none;
}
.thl-ecosystem-intro::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 18% 2% 12% 10%;
  pointer-events: none;
  background: radial-gradient(ellipse at 78% 54%, #dfeafb 0%, transparent 57%),
              radial-gradient(ellipse at 58% 70%, #f6e4ec 0%, transparent 60%);
  filter: blur(18px);
  opacity: .7;
}
.thl-ecosystem-eyebrow { color: var(--thl-ecosystem-red); font-size: .75rem; font-weight: 750; letter-spacing: .16em; margin-bottom: 20px; }
#solutions #ecosystem-title { margin: 0 !important; text-align: left; font-size: 56px; line-height: 1.1; letter-spacing: -.05em; }
.thl-ecosystem-bridge { display: block; color: #55484f; font-size: .62em; letter-spacing: -.045em; margin-top: .35em; }
.thl-ecosystem-value { display: block; color: var(--thl-ecosystem-red); min-height: 2.1em; font-size: 60px; line-height: 1.05; margin-top: .11em; overflow-wrap: anywhere; letter-spacing: -.05em;}
.thl-ecosystem-progress { margin-top: 15px; }
.thl-ecosystem-progress { align-items: center; gap: 10px; font-variant-numeric: tabular-nums; color: var(--thl-ecosystem-copy); font-size: .75rem; }
.thl-ecosystem-position { color: var(--thl-ecosystem-red); font-weight: 800; }
.thl-ecosystem-track { display: block; width: clamp(55px, 10vw, 135px); height: 3px; border-radius: 3px; background: var(--thl-ecosystem-line); overflow: hidden; }
.thl-ecosystem-track i { display: block; width: 100%; height: 100%; background: var(--thl-ecosystem-red); transform-origin: left; transform: scaleX(var(--progress, .1429)); }
.thl-ecosystem-products { list-style: none; padding: 20px 3px; margin: 0; display: grid; gap: 12px; }
.thl-ecosystem-enhanced .thl-ecosystem-products { padding-block: max(24px, calc((100svh + var(--thl-ecosystem-sticky-top)) / 2 - 132px)); }
.thl-ecosystem-product { min-width: 0; }
.thl-ecosystem-enhanced .thl-ecosystem-product { min-height: 264px; display: grid; align-items: center; }
.thl-ecosystem-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(17px, 2.1vw, 30px) clamp(22px, 3vw, 42px);
  color: inherit;
  text-decoration: none;
  transform: none;
  background: #fff;
  border: 2px solid var(--thl-ecosystem-line);
  border-radius: 22px;
}
.thl-ecosystem-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(46%, 220px);
  height: 85%;
  right: 0;
  top: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--thl-ecosystem-red) 16%, transparent) 1px, transparent 1px) 0 0 / 20px 20px,
              linear-gradient(color-mix(in srgb, var(--thl-ecosystem-red) 16%, transparent) 1px, transparent 1px) 0 0 / 20px 20px;
  mask-image: radial-gradient(ellipse at top right, black, transparent 72%);
  opacity: .42;
  pointer-events: none;
}
.thl-ecosystem-index { display: flex; align-items: center; gap: 9px; font-size: .78rem; font-weight: 700; color: #65595e; margin-bottom: 10px; }
.thl-ecosystem-index::before { content: ""; width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); }
.thl-ecosystem-card h3 { font-size: clamp(1.15rem, 2.35vw, 2rem); letter-spacing: -.045em; line-height: 1.19; margin-bottom: 9px; }
.thl-ecosystem-card p { margin: 0; font-size: .95rem; color: var(--thl-ecosystem-copy); }
.thl-ecosystem-card .thl-ecosystem-static-value { margin-top: 8px; font-size: .8rem; color: var(--thl-ecosystem-red); }
.thl-ecosystem-enhanced .thl-ecosystem-static-value { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.thl-ecosystem-enhanced .thl-ecosystem-card { opacity: .83; }
.thl-ecosystem-enhanced .thl-ecosystem-product[aria-current="true"] .thl-ecosystem-card {
  min-height: 264px;
  opacity: 1;
  border-color: var(--thl-ecosystem-red);
  box-shadow: 0 0 20px #b10e2326, 0 10px 30px #b10e2320;
}
.thl-ecosystem-product[aria-current="true"] .thl-ecosystem-card::after { opacity: 1; }
.thl-ecosystem-product[aria-current="true"] .thl-ecosystem-index { color: var(--thl-ecosystem-red); }
.thl-ecosystem-product[aria-current="true"] .thl-ecosystem-index::before {
  background: currentColor;
  box-shadow: 0 0 9px color-mix(in srgb, currentColor 45%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .thl-ecosystem-enhanced .thl-ecosystem-card { transition: opacity 220ms ease; }
  .thl-ecosystem-enhanced .thl-ecosystem-track i { transition: transform 220ms ease; }
  .thl-ecosystem-enhanced .thl-ecosystem-card::after { transition: opacity 240ms ease; }
}
@media (max-width: 760px) {
  .thl-ecosystem-stage { width: min(100% - 32px, 520px); display: block; }
  .thl-ecosystem-intro { padding-block: 23px 13px; }
  .thl-ecosystem-enhanced .thl-ecosystem-intro { min-height: 0; background: #fff; border-bottom: 1px solid var(--thl-ecosystem-line); }
  .thl-ecosystem-eyebrow { font-size: .64rem; margin-bottom: 8px; }
  .thl-ecosystem-intro { font-size: clamp(1.7rem, 7vw, 2.45rem); }
  .thl-ecosystem-progress { margin-top: 3px; }
  .thl-ecosystem-enhanced .thl-ecosystem-products { padding-block: 12px max(170px, calc(100svh - 300px)); gap: 8px; }
  .thl-ecosystem-enhanced .thl-ecosystem-product, .thl-ecosystem-enhanced .thl-ecosystem-product[aria-current="true"] .thl-ecosystem-card { min-height: 192px; }
  .thl-ecosystem-card { min-height: 150px; border-radius: 16px; }
  .thl-ecosystem-index { margin-bottom: 5px; }
  .thl-ecosystem-card p { font-size: .88rem; }
}
@media (max-height: 400px) {
  .thl-ecosystem-enhanced .thl-ecosystem-intro { position: relative; min-height: 0; }
  .thl-ecosystem-enhanced .thl-ecosystem-products { padding-block: 16px 45svh; }
}

/* SOURCE: /shared/homepage/editorial-sections.css */
#what-we-enable {
  & { --red: #b10e23; --line: #e3dde0; padding-block: 88px; }
  .intro { max-inline-size: 530px; }
  .intro > * { margin-block: 0; }
  .intro [data-type-role="eyebrow"] { text-transform: uppercase; margin-bottom: 12px; }
  .intro [data-type-role="large"] { margin-top: 12px; max-inline-size: 710px; }
  .capability-layout {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: start;
  }
  .capability-list { border-top: 1px solid var(--line); }
  .capability-list details { border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
  .capability-list details[open] { border-left-color: var(--red); background: #fbf4f6; }
  .capability-list summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 18px;
    gap: 16px;
    cursor: pointer;
  }
  .capability-list summary::-webkit-details-marker { display: none; }
  .capability-list summary:hover { background: #f8f4f6; }
  .capability-list summary:focus-visible { outline: 2px solid var(--red); outline-offset: -3px; }
  .capability-list summary h3[data-type-role] { margin: 0 !important; text-align: left; }
  .capability-list details[open] h3[data-type-role] { color: var(--red) !important; }
  .capability-list details p { margin: -1px 18px 17px; }
  .indicator { flex: 0 0 8px; height: 8px; border: solid #6d5f65; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
  details[open] .indicator { border-color: var(--red); transform: translateY(2px) rotate(225deg); }
  @media (max-width: 760px) {
    & { padding-block: 56px; }
    .capability-layout { grid-template-columns: 1fr; }
    .capability-list summary { min-height: 59px; padding-inline: 13px; }
    .capability-list details p { margin-inline: 13px; }
  }
}

#customer-stories {
  & { --accent: #b10e23; --line: #e9e0e2; padding-block: 88px; }
  .section-intro { padding-bottom: 45px; }
  .section-intro :is(h2, p), .story-copy :is(h3, p), .story-media { margin: 0; }
  .section-intro .eyebrow { margin-bottom: 12px; }
  .section-intro h2 { margin-inline: 0 !important; text-align: left; }
  .section-intro h2 span { color: var(--accent); }
  .section-intro .lead { margin-top: 12px; max-inline-size: 680px; }

  .story-picker[hidden], .story[hidden] { display: none; }
  .story-picker { display: grid; align-content: start; border-top: 1px solid #dce0e4; }
  .workspace:has(.story-picker:not([hidden])) { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(0, 4fr); gap: 24px; }
  .story-picker button {
    text-align: left;
    min-height: 74px;
    padding: 12px 17px;
    border: 0;
    border-bottom: 1px solid #dce0e4;
    border-inline-start: 3px solid transparent;
    background: #fff;
    color: #231f20;
    font: inherit;
    cursor: pointer;
  }
  .story-picker button:hover { background: #f7f8f9; }
  .story-picker button[aria-selected="true"] {
    border-inline-start-color: var(--accent);
    background: #f9f3f5;
  }
  .story-picker button:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
  .tab-name, .tab-sector { display: block; }
  .tab-name { font-size: 17px; font-weight: 600; }
  .tab-sector { color: #625d60; font-size: 13px; }
  .story-picker button[aria-selected="true"] .tab-name { color: var(--accent); }
  .story-panels { min-width: 0; display: grid; gap: 16px; }
  .story {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    border: 1px solid #dee1e5;
    border-radius: 18px;
    overflow: hidden;

    box-shadow: 0 14px 32px #202a351a, 0 3px 8px #202a350d;
  }
  .story-media {

    display: grid;
    place-items: center;
    min-height: 365px;
    padding: 18px;
    position: relative;
  }
  .story-media img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; padding: 16px; box-sizing: border-box; }
  .story-copy { align-content: center; display: grid; gap: 18px; padding: clamp(22px, 3vw, 40px); }
  .story-copy h3 { margin-block: 0 !important; }
  .story-client { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .story-client img { width: 72px; height: 38px; object-fit: contain; }
  .story-copy .story-sector { color: #51565e; font-size: 13px; font-weight: 600; }
  .story-link {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    min-height: 44px;
    padding-inline: 25px;
    border-radius: 25px;
    background: #991530;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
  }
  .story-link:hover { background: #790e23; }
  .story-link:focus-visible { outline: 2px solid #991530; outline-offset: 4px; }
  .workspace:has(.story-picker:not([hidden])) .story { grid-area: 1 / 1; }
  .workspace:has(.story-picker:not([hidden])) .story[hidden] {
    display: grid;
    visibility: hidden;
    box-shadow: none;
  }
  @media (prefers-reduced-motion: no-preference) {
    .story-link span { transition: transform 170ms ease; }
    .story-link:hover span, .story-link:focus-visible span { transform: translate(2px, -2px); }
  }
  @media (max-width: 900px) {
    .workspace:has(.story-picker:not([hidden])) { display: block; }
    .story-picker { display: flex; overflow: auto; margin-bottom: 14px; padding-bottom: 6px; }
    .story-picker button { flex: none; min-height: 64px; padding-inline: 13px; border-inline-start: 0; border-bottom: 3px solid #dce0e4; }
    .story-picker button[aria-selected="true"] { border-bottom-color: var(--accent); }
  }
  @media (max-width: 600px) {
    & { padding-block: 56px; }
    .section-intro { padding-bottom: 22px; }
    .workspace { padding-top: 12px; }
    .story { grid-template-columns: 1fr; border-radius: 14px; }
    .story-media { min-height: 0; aspect-ratio: 4 / 3; }
    .story-copy { gap: 12px; }
  }
}

#digital-roadmap {
  & { --red: #b10e23; --line: #dfd6da; padding-block: 88px; }
  .intro { max-width: 780px; margin-bottom: 36px; }
  .intro > * { margin: 0; }
  .intro p:first-child { margin-bottom: 12px; }
  .intro p:last-child { margin-top: 12px; max-width: 640px; }
  .stepper[hidden] { display: none; }
  .stepper {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 26px;
  }
  .stepper::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 31px;
    inset-inline: 12% 12%;
    height: 1px;
    background: #d4c3ca;
  }
  .stepper button {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 10px;
    padding: 9px 8px 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #473840;
    background: transparent;
    font: 600 16px/1.4 var(--thl-type-family, sans-serif);
    cursor: pointer;
  }
  .stepper button:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; border-radius: 6px; }
  .stepper button:hover, .stepper button[aria-selected="true"] { color: var(--red); }
  .stepper button[aria-selected="true"] { border-bottom-color: var(--red); }
  .point {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #d4c3ca;
    border-radius: 50%;
    background: white;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
  }
  [aria-selected="true"] .point { background: var(--red); color: white; border-color: var(--red); box-shadow: 0 0 0 5px #f6e5e9; }
  .stages { display: grid; gap: 20px; }
  .stage {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(22px, 5vw, 74px);
    padding: clamp(24px, 4vw, 55px);
    border: 0;
    border-radius: 20px;
    background: #f7f7f8;
    box-shadow: 0 14px 30px #34213110;
  }
  .stepper:not([hidden]) + .stages .stage { grid-area: 1 / 1; }
  .stage[hidden] { visibility: hidden; }
  .stage-label { min-width: 0; }
  .stage-label h3 { margin: 0 !important; text-align: left; }
  .stage-number { margin: 0 0 12px; color: var(--red); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
  .stage ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
  .stage li { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 13px; border: 1px solid #e6e0e5; border-radius: 9px; background: #fff; font-size: 16px; line-height: 1.5; }
  .stage li::before { content: ""; align-self: start; width: 6px; height: 6px; margin-top: 9px; background: var(--red); border-radius: 50%; }
  @media (max-width: 767px) {
    & { padding-block: 56px; }
    .intro { margin-bottom: 24px; }
    .stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
    .stepper::before { display: none; }
    .stepper button { grid-template-columns: auto 1fr; justify-items: start; align-items: center; min-height: 58px; padding: 8px; text-align: left; font-size: 13px; background: #f8f7f8; border-radius: 7px 7px 0 0; }
    .stepper button[aria-selected="true"] { background: #fcf0f3; }
    .point { width: 30px; height: 30px; font-size: 11px; }
    [aria-selected="true"] .point { box-shadow: none; }
    .stage { grid-template-columns: 1fr; gap: 16px; padding: 17px; border-radius: 14px; }
    .stage-number { margin-bottom: 6px; }
  }
  & .intro { margin-inline: auto; text-align: center; max-width: 880px; }
  & .intro p:last-child { margin-inline: auto; }
  .stepper { gap: 16px; margin-bottom: 28px; }
  .stepper::before { top: 54px; background: #dac6d0; }
  .stepper button {
    --step-color: #a41138;
    --step-glow: #f0508052;
    --step-wash: #fff0f5;
    position: relative;
    gap: 15px;
    min-height: 144px;
    padding: 16px 11px 15px;
    border: 0;
    border-radius: 16px;
    background: #ffffffee;
    font-size: 17px;
  }
  .stepper button:hover { color: var(--step-color); background: #fff7fa; }
  .stepper button[aria-selected="true"] {
    color: var(--step-color);
    background: var(--step-wash);
    box-shadow: 0 0 22px var(--step-glow), 0 9px 20px #37203214;
  }
  .stepper .point { width: 70px; height: 70px; color: var(--step-color); font-size: 22px; }
  .stepper [aria-selected="true"] .point {
    color: #fff;
    background: var(--step-color);
    border-color: var(--step-color);
    box-shadow: 0 0 0 5px var(--step-wash), 0 0 22px var(--step-glow);
  }
  .stage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #f7f7f8;
  }
  .stage li { grid-template-columns: 29px 1fr; align-items: center; background: #ffffffeb; }
  .stage li::before { content: none; }
  .stage-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: #f9ebf0; color: #a41138; }
  .stage-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  @media (prefers-reduced-motion: no-preference) {
    .stepper .point { transition: transform 190ms ease; }
    .stepper button[aria-selected="true"] .point { transform: translateY(-2px) scale(1.06); }
  }
  @media (max-width: 767px) {
    .stepper { gap: 9px; margin-bottom: 19px; }
    .stepper button { grid-template-columns: auto 1fr; gap: 7px; min-height: 82px; padding: 9px 7px; border-radius: 11px; font-size: 13px; }
    .stepper .point { width: 33px; height: 33px; font-size: 13px; }
    .stepper [aria-selected="true"] .point { box-shadow: 0 0 12px var(--step-glow); }
  }
  .stepper { --step-gap: 16px; gap: var(--step-gap); }
  .stepper::before { content: none; }
  .stepper button,
  .stepper button:hover,
  .stepper button[aria-selected="true"] {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .stepper button { min-height: 128px; }
  .stepper button::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 52px;
    left: 50%;
    width: calc(100% + var(--step-gap));
    height: 2px;
    background: #e3cbd3;
  }
  .stepper button[aria-selected="true"]::after,
  .stepper button:has(~ button[aria-selected="true"])::after { background: #bd3257; }
  .stepper button:last-child::after { content: none; }
  .stepper button:focus-visible { outline: 0; }
  .stepper button:focus-visible .point { outline: 2px solid var(--red); outline-offset: 6px; }
  @media (max-width: 767px) {
    .stepper {
      --step-gap: 0px;
      grid-template-columns: 1fr;
    }
    .stepper button { min-height: 60px; grid-template-columns: 44px 1fr; gap: 12px; padding: 6px 4px; }
    .stepper .point { width: 42px; height: 42px; font-size: 15px; }
    .stepper button::after { left: 25px; top: 50%; width: 2px; height: calc(100% + var(--step-gap)); }
  }
}
