/* A single architecture: three products, an AI foundation and a shared data lake. */
.portfolio-section {
  --matrix-accent: #4269d7;
  --portfolio-ink: #1c304c;
  --portfolio-body: #65758a;
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 64px 0 68px;
  background: linear-gradient(180deg,#f9fbfe,#f0f5fc 78%,#f7f9fc);
  color: var(--portfolio-ink);
}
.portfolio-section::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -1;
  pointer-events: none;
  background: url('/static/images/company/technology-field.webp') right center / cover no-repeat;
  opacity: .22;
  mask-image: linear-gradient(90deg,transparent 18%,#000 95%);
  animation: portfolio-atmosphere-drift 20s ease-in-out infinite alternate;
}
.portfolio-heading { text-align: center; margin-bottom: 36px; }
.portfolio-heading .eyebrow { margin-bottom: 12px; color: #5574a6; font-size: 13px; }
.portfolio-section .portfolio-heading h2 { font-size: 42px; font-weight: 580; letter-spacing: -.045em; line-height: 1.35; }
.portfolio-heading h2 span { color: #3c5f98; }
.portfolio-intro { margin: 17px auto 0; color: var(--portfolio-body); font-size: 14px; line-height: 1.85; }
.portfolio-mobile-break { display: none; }
.portfolio-architecture { position: relative; }
.portfolio-products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.portfolio-product {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 23px 27px 21px;
  border: 1px solid #dfe6f0;
  border-radius: 14px;
  background: #ffffffed;
  box-shadow: 0 10px 30px -24px #264c8959;
  transition: border-color .25s,box-shadow .25s,background .25s;
}
.portfolio-id { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.portfolio-logo-slot { display: flex; align-items: center; height: 40px; min-width: 0; }
.portfolio-logo { width: 145px; height: auto; object-fit: contain; object-position: left center; }
.portfolio-logo.is-agent { width: 112px; }
.portfolio-role { flex: none; font-size: 11px; color: #788699; line-height: 1.6; }
.portfolio-product h3 { font-size: 23px; font-weight: 600; letter-spacing: -.04em; line-height: 1.45; }
.portfolio-positioning { margin-top: 6px; color: #5c708b; font-size: 13px; line-height: 1.8; }
.portfolio-capabilities { display: flex; flex-wrap: wrap; gap: 4px 15px; list-style: none; padding: 0; margin: 16px 0 22px; color: #7a8799; font-size: 11px; line-height: 1.8; }
.portfolio-capabilities li { position: relative; }
.portfolio-capabilities li+li::before { content: ""; position: absolute; left: -8px; top: .65em; width: 1px; height: .7em; background: #d8e0eb; }
.portfolio-link { display: inline-flex; align-items: center; align-self: flex-start; gap: 15px; margin-top: auto; min-height: 32px; font-size: 12px; font-weight: 500; color: #32527e; }
.portfolio-link-arrow { display: flex; align-items: center; justify-content: center; width: 27px; height: 27px; border: 1px solid #e0e7f1; border-radius: 50%; transition: color .25s,background .25s,border-color .25s; }
.portfolio-link svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; }
.portfolio-product.is-active { border-color: color-mix(in srgb,var(--channel-color) 48%,#dfe6f0); box-shadow: 0 12px 30px -20px color-mix(in srgb,var(--channel-color) 40%,transparent); }
.portfolio-product.is-active .portfolio-link { color: var(--channel-color); }
.portfolio-product.is-active .portfolio-link-arrow { background: var(--channel-color); border-color: var(--channel-color); color: #fff; }
.portfolio-mobile-stream { display: none; }
.portfolio-connection { height: 48px; }
.portfolio-connection svg { width: 100%; height: 100%; overflow: visible; }
.portfolio-connection path { fill: none; vector-effect: non-scaling-stroke; }
.portfolio-flow-mobile { display: none; }
.portfolio-channel { transition: opacity .3s; }
.portfolio-route { stroke: #b5c7df; stroke-width: 1; }
.portfolio-flow-glow,.portfolio-flow-core { stroke: var(--channel-color,var(--matrix-accent)); stroke-linecap: round; stroke-dasharray: 12 88; animation: portfolio-transfer 5.8s linear infinite; animation-delay: var(--channel-delay,0s); }
.portfolio-flow-glow { stroke-width: 5; stroke-opacity: .15; filter: blur(2px); }
.portfolio-flow-core { stroke-width: 1.8; stroke-opacity: .85; }
.matrix-has-active .portfolio-channel:not(.is-active) { opacity: .28; }
.portfolio-channel.is-active .portfolio-flow-core { stroke-width: 2.3; stroke-opacity: 1; }
.portfolio-foundations {
  position: relative;
  width: calc(100% - 64px);
  margin: 0 auto;
  border: 1px solid #d8e3f1;
  border-radius: 16px;
  background: #ffffffa6;
  box-shadow: 0 15px 48px -37px #365c9b5c;
}
.portfolio-foundation { position: relative; display: grid; grid-template-columns: minmax(310px,1fr) minmax(0,1.25fr); align-items: center; gap: 28px; padding: 22px 30px; }
.portfolio-foundation-identity { display: flex; align-items: center; gap: 18px; min-width: 0; }
.portfolio-foundation-symbol { width: 48px; height: 48px; flex: none; color: #6c8ab9; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.portfolio-core { fill: #7599ec1a; stroke: #4269d7; animation: portfolio-core-light 5.8s ease-in-out infinite; }
.portfolio-data-layer { stroke: #4269d7; animation: portfolio-core-light 5.8s ease-in-out -2.9s infinite; }
.portfolio-layer-label { color: #7a8ba1; font-size: 10px; line-height: 1.6; letter-spacing: .02em; }
.portfolio-foundation-name h3 { margin-top: 3px; color: #28466d; font-size: 25px; font-weight: 550; line-height: 1.3; letter-spacing: -.035em; }
.portfolio-foundation-description { margin-top: 7px; font-size: 11px; line-height: 1.8; color: #76869c; }
.portfolio-services { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; color: #526d92; font-size: 12px; line-height: 1.7; }
.portfolio-services li { text-align: center; padding: 10px 4px; }
.portfolio-services li+li { border-left: 1px solid #dce5f1; }
.portfolio-harness { border-radius: 15px 15px 0 0; background: linear-gradient(110deg,#fff9,#f0f5ff9c); }
.portfolio-harness::after { content: ""; position: absolute; left: 25%; right: 25%; top: -1px; height: 1px; background: linear-gradient(90deg,transparent,var(--matrix-accent),transparent); opacity: .6; }
.portfolio-lake { border-radius: 0 0 15px 15px; background: linear-gradient(110deg,#eaf1fb80,#f0f5fc55); }
.portfolio-layer-link { position: relative; height: 1px; margin: 0 30px; background: #dce5f1; }
.portfolio-layer-link span { position: absolute; inset: 0 30%; background: linear-gradient(90deg,transparent,#87a8db,transparent); background-size: 200% 100%; animation: portfolio-edge-stream 8s linear infinite; }
.portfolio-layer-link svg { position: absolute; left: 50%; top: 50%; z-index: 1; width: 25px; height: 25px; padding: 5px; border: 1px solid #dce5f1; border-radius: 50%; background: #f6f9fe; stroke: #6c8ab9; stroke-width: 1.4; transform: translate(-50%,-50%) rotate(-90deg); }
@keyframes portfolio-transfer { to { stroke-dashoffset: -100; } }
@keyframes portfolio-atmosphere-drift { from { transform: translate3d(-8px,5px,0) scale(1.01); } to { transform: translate3d(8px,-5px,0) scale(1.025); } }
@keyframes portfolio-core-light { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes portfolio-edge-stream { to { background-position: -200% 0; } }
@keyframes portfolio-mobile-stream { to { background-position: 0 -160px; } }
@media (min-width:1700px) {
  .portfolio-section { padding-block: 66px 70px; }
  .portfolio-product { padding: 25px 30px 23px; }
  .portfolio-heading { margin-bottom: 38px; }
  .portfolio-section .portfolio-heading h2 { font-size: 44px; }
}
@media (max-width:1150px) {
  .portfolio-products { gap: 18px; }
  .portfolio-product { padding: 22px 21px 20px; }
  .portfolio-logo { width: 126px; }
  .portfolio-logo.is-agent { width: 100px; }
  .portfolio-product h3 { font-size: 21px; }
  .portfolio-role { font-size: 10px; }
  .portfolio-capabilities { font-size: 10px; gap: 4px 11px; }
  .portfolio-capabilities li+li::before { left: -6px; }
  .portfolio-foundations { width: calc(100% - 40px); }
  .portfolio-foundation { grid-template-columns: minmax(280px,1fr) minmax(0,1.15fr); padding: 21px 24px; gap: 15px; }
  .portfolio-foundation-identity { gap: 14px; }
  .portfolio-foundation-symbol { width: 42px; height: 42px; }
  .portfolio-foundation-name h3 { font-size: 23px; }
  .portfolio-services { font-size: 11px; }
}
@media (max-width:900px) {
  .portfolio-section { padding-block: 56px; }
  .portfolio-section .portfolio-heading h2 { font-size: 36px; }
  .portfolio-products { gap: 14px; }
  .portfolio-product { padding: 19px 16px 18px; }
  .portfolio-id { gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
  .portfolio-role { width: 100%; }
  .portfolio-product h3 { font-size: 18px; }
  .portfolio-positioning { font-size: 11px; }
  .portfolio-capabilities { flex-direction: column; gap: 4px; margin: 14px 0 18px; }
  .portfolio-capabilities li+li::before { content: none; }
  .portfolio-foundations { width: calc(100% - 24px); }
  .portfolio-foundation { grid-template-columns: minmax(260px,1fr) minmax(0,1fr); gap: 16px; padding: 22px; }
  .portfolio-services { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 0; }
  .portfolio-services li { padding: 6px; }
  .portfolio-services li:nth-child(3) { border: 0; }
}
@media (max-width:700px) {
  .portfolio-section { padding: 48px 0 52px; }
  .portfolio-section::before { opacity: .16; background-position: 68% bottom; background-size: auto 100%; }
  .portfolio-heading { margin-bottom: 28px; }
  .portfolio-heading .eyebrow { margin-bottom: 13px; font-size: 12px; }
  .portfolio-section .portfolio-heading h2 { font-size: 31px; line-height: 1.45; }
  .portfolio-heading h2 span { display: block; }
  .portfolio-intro { margin-top: 14px; font-size: 12px; line-height: 1.9; }
  .portfolio-mobile-break { display: block; }
  .portfolio-products { display: flex; flex-direction: column; gap: 16px; padding-left: 16px; border-left: 1px solid #c7d6e9; }
  .portfolio-product { padding: 20px 22px 18px; }
  .portfolio-product::before { content: ""; position: absolute; left: -18px; top: 50%; height: 1px; width: 17px; background: #bdcfe5; }
  .portfolio-mobile-stream { display: block; position: absolute; left: -18px; top: -17px; bottom: -1px; width: 2px; pointer-events: none; background: linear-gradient(0deg,transparent 10%,var(--channel-color) 40%,#cfddff 48%,transparent 58%); background-size: 100% 160px; animation: portfolio-mobile-stream 5.8s linear infinite; }
  .portfolio-product:first-child .portfolio-mobile-stream { top: 0; }
  .portfolio-id { flex-wrap: nowrap; gap: 12px; margin-bottom: 13px; }
  .portfolio-logo-slot { height: 35px; }
  .portfolio-logo { width: 134px; }
  .portfolio-logo.is-agent { width: 100px; }
  .portfolio-role { width: auto; font-size: 10px; }
  .portfolio-product h3 { font-size: 22px; }
  .portfolio-positioning { font-size: 12px; }
  .portfolio-capabilities { flex-direction: row; gap: 4px 13px; margin: 14px 0 15px; font-size: 10px; }
  .portfolio-capabilities li+li::before { content: ""; left: -7px; }
  .portfolio-link { font-size: 11px; min-height: 34px; }
  .portfolio-connection { height: 40px; }
  .portfolio-flow-desktop { display: none; }
  .portfolio-flow-mobile { display: block; }
  .portfolio-foundations { width: 100%; }
  .portfolio-foundation { display: block; padding: 23px 22px; }
  .portfolio-foundation-identity { gap: 15px; }
  .portfolio-foundation-symbol { width: 38px; height: 38px; }
  .portfolio-foundation-name h3 { font-size: 25px; }
  .portfolio-foundation-description { font-size: 10px; }
  .portfolio-services { grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 18px; font-size: 10px; }
  .portfolio-services li { padding: 0 4px; }
  .portfolio-services li:nth-child(3) { border-left: 1px solid #dce5f1; }
  .portfolio-layer-link { margin-inline: 22px; }
}
@media (max-width:370px) {
  .portfolio-section .portfolio-heading h2 { font-size: 29px; }
  .portfolio-product { padding-inline: 17px; }
  .portfolio-product h3 { font-size: 20px; }
  .portfolio-logo { width: 120px; }
  .portfolio-logo.is-agent { width: 94px; }
  .portfolio-foundation { padding-inline: 17px; }
  .portfolio-foundation-identity { gap: 11px; }
  .portfolio-foundation-name h3 { font-size: 23px; }
  .portfolio-foundation-symbol { width: 32px; height: 32px; }
  .portfolio-services { font-size: 9px; }
}
