/* TABOOO Corporate Experience Studio v0.3.1
   Immersive Ecosystem Showcase: only ecosystem cards are changed.
   Official logo PNGs are displayed untouched on dark backgrounds.
   Corporate header/brand, text and URLs remain under parent theme control.
*/
.ecosystem-grid{
  --tb-card-height: clamp(360px, 31vw, 434px);
  gap: clamp(14px, 1.55vw, 24px);
  align-items:stretch;
  margin-top: clamp(34px, 4.4vw, 58px);
  perspective: 1300px;
}
.ecosystem-grid .ecosystem-card{
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-rows:auto minmax(110px,1fr) auto;
  align-items:stretch;
  min-height:var(--tb-card-height);
  padding: clamp(22px, 2.15vw, 32px);
  overflow:hidden;
  border:1px solid rgba(150,185,222,.23);
  border-radius:17px;
  background:radial-gradient(circle at 47% 42%,rgba(50,109,166,.17),transparent 60%),linear-gradient(150deg,#1b263d,#0a1120 83%);
  box-shadow:0 21px 48px rgba(0,0,0,.21);
  transform:perspective(1100px) translateY(0) rotateX(0deg) rotateY(0deg);
  transform-style:preserve-3d;
  transition:transform .28s ease-out,border-color .28s,box-shadow .28s,background .28s;
  will-change:auto;
}
.ecosystem-grid .ecosystem-card-pictures{
  background:radial-gradient(circle at 50% 40%,rgba(129,80,178,.19),transparent 59%),linear-gradient(150deg,#231d35,#0b1120 83%);
}
.ecosystem-grid .ecosystem-card-dx{
  background:radial-gradient(circle at 49% 38%,rgba(65,103,208,.19),transparent 60%),linear-gradient(150deg,#182143,#0a1221 83%);
}
.ecosystem-grid .ecosystem-card::before{
  content:"";
  position:absolute;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(380px circle at 50% 42%,rgba(67,192,229,.19),transparent 68%);
  opacity:0;
  transition:opacity .28s;
}
.ecosystem-grid .ecosystem-card-pictures::before{
  background:radial-gradient(380px circle at 50% 42%,rgba(164,108,219,.18),transparent 68%);
}
.ecosystem-grid .ecosystem-card-dx::before{
  background:radial-gradient(380px circle at 50% 42%,rgba(96,121,249,.22),transparent 68%);
}
.ecosystem-grid .ecosystem-card::after{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  border-radius:inherit;background:linear-gradient(125deg,transparent 27%,rgba(255,255,255,.046) 49%,transparent 61%);
}
.ecosystem-grid .ecosystem-card:hover,
.ecosystem-grid .ecosystem-card:focus-visible{
  border-color:var(--tb-accent,#20c6e6);
  box-shadow:0 28px 65px rgba(0,0,0,.34),0 0 28px rgba(31,163,210,.085);
  transform:perspective(1100px) translateY(-5px) rotateX(0deg) rotateY(0deg);
}
.ecosystem-grid .ecosystem-card:hover::before,
.ecosystem-grid .ecosystem-card:focus-visible::before{opacity:1}
.ecosystem-grid .ecosystem-card:focus-visible{outline:2px solid #93e6f9;outline-offset:3px}
.ecosystem-grid .ecosystem-card .ecosystem-num{
  position:relative;z-index:1;align-self:start;
  font-size:10px;letter-spacing:.14em;
  color:#b9cce6;
}
/* Original logo art: background image is never cropped, skewed, tinted or filtered. */
.ecosystem-grid .ecosystem-card .ecosystem-symbol{
  position:relative;z-index:1;
  display:block;
  align-self:center;
  justify-self:center;
  flex:unset;
  width:90%;
  max-width:none;
  height:clamp(78px,8.5vw,116px);
  min-height:0;
  max-height:none;
  margin:0;
  padding:0;
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center center;
  font-size:0!important;
  line-height:0;
  color:transparent;
  letter-spacing:0;
  text-shadow:none;
  transform:scale(var(--tb-logo-scale,1));
  transform-origin:50% 50%;
  transition:transform .4s ease;
}
.ecosystem-grid .ecosystem-card:hover .ecosystem-symbol,
.ecosystem-grid .ecosystem-card:focus-visible .ecosystem-symbol{
  transform:scale(calc(var(--tb-logo-scale,1) * 1.035));
}
.ecosystem-grid .ecosystem-card:nth-child(1) .ecosystem-symbol{
  width:90%;
  background-image:url('../img/tabooo-id-darkbg.png');
}
.ecosystem-grid .ecosystem-card:nth-child(2) .ecosystem-symbol{
  width:92%;
  background-image:url('../img/tabooo-pictures-darkbg.png');
}
.ecosystem-grid .ecosystem-card:nth-child(3) .ecosystem-symbol{
  width:98%;
  background-image:url('../img/tabooo-dx-darkbg.png');
}
.ecosystem-grid .ecosystem-card .ecosystem-bottom{
  z-index:1;
  position:relative;
  align-self:end;
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
  max-width:100%;
  padding-right:20px;
}
.ecosystem-grid .ecosystem-card .ecosystem-bottom strong{
  font-size:clamp(17px,1.37vw,20px);
  line-height:1.23;
  letter-spacing:-.035em;
  overflow-wrap:normal;
  text-wrap:balance;
}
.ecosystem-grid .ecosystem-card .ecosystem-bottom small{
  font-size:clamp(10px,.79vw,12px);
  letter-spacing:.055em;
  line-height:1.5;
}
.ecosystem-grid .ecosystem-card .card-arrow{
  z-index:2;
  position:absolute;
  right:clamp(19px,2.15vw,30px);bottom:clamp(18px,2.15vw,30px);
}
body.tb-card-glow-off .ecosystem-grid .ecosystem-card::before,
body.tb-card-glow-off .ecosystem-grid .ecosystem-card::after{display:none}
body.tb-motion-reduced .hero-orbit,
body.tb-motion-reduced .ecosystem-card,
body.tb-motion-reduced .has-js .reveal{
  animation:none!important;
  transition:none!important;
  transform:none!important;
}
body.tb-motion-reduced .has-js .reveal{opacity:1!important}
body.tb-3d-off .hero-orbit{display:none!important}
body.tb-3d-subtle .hero-orbit{opacity:.47}
/* Tablets: keep the three-column identity without overflowing long titles. */
@media(min-width:761px) and (max-width:1100px){
  .ecosystem-grid{gap:12px;--tb-card-height:370px}
  .ecosystem-grid .ecosystem-card{padding:21px}
  .ecosystem-grid .ecosystem-card .ecosystem-symbol{height:96px}
  .ecosystem-grid .ecosystem-card .ecosystem-bottom strong{font-size:clamp(15px,1.65vw,18px)}
}
/* Mobile: stable card heights and no hover-dependent content. */
@media(max-width:760px){
  .ecosystem-grid{--tb-card-height:310px;grid-template-columns:1fr;gap:14px;margin-top:34px}
  .ecosystem-grid .ecosystem-card{min-height:310px;padding:24px;grid-template-rows:auto 1fr auto}
  .ecosystem-grid .ecosystem-card .ecosystem-symbol{height:112px;max-width:390px;width:85%}
  .ecosystem-grid .ecosystem-card:nth-child(3) .ecosystem-symbol{width:96%}
  .ecosystem-grid .ecosystem-card .ecosystem-bottom strong{font-size:clamp(19px,4.1vw,24px)}
  .ecosystem-grid .ecosystem-card .ecosystem-bottom small{font-size:11px}
  .ecosystem-grid .ecosystem-card:hover{transform:none}
}
@media(max-width:430px){
  .ecosystem-grid .ecosystem-card{min-height:285px;padding:20px}
  .ecosystem-grid .ecosystem-card .ecosystem-symbol{height:94px}
  .ecosystem-grid .ecosystem-card .ecosystem-bottom strong{font-size:19px}
  .ecosystem-grid .ecosystem-card .card-arrow{bottom:20px;right:20px}
}
@media(prefers-reduced-motion:reduce){
  .ecosystem-grid .ecosystem-card,
  .ecosystem-grid .ecosystem-card:hover,
  .ecosystem-grid .ecosystem-card .ecosystem-symbol{
    transform:none!important;transition:none!important;animation:none!important;
  }
}

/* v0.3.2: actual official logo images and unified dimensions. */
.ecosystem-grid .ecosystem-card .ecosystem-symbol {
  display:flex;
  align-items:center;
  justify-content:center;
  justify-self:stretch;
  width:100%;
  max-width:100%;
  height:clamp(122px,12vw,158px);
  padding:0 4px;
  transform:none;
  line-height:normal;
  background-size:96% auto;
}
.ecosystem-grid .ecosystem-card .ecosystem-symbol.tb-has-real-logo {
  background-image:none!important;
}
.ecosystem-grid .ecosystem-card .tb-ecosystem-logo {
  display:block;
  width:100%;
  height:auto;
  max-width:350px;
  max-height:142px;
  object-fit:contain;
  object-position:center center;
  border:0;
  margin:auto;
  padding:0;
  opacity:1;
  filter:none;
  transform:none;
  transition: transform .36s ease;
}
.ecosystem-grid .ecosystem-card .tb-logo-media {max-width:335px}
.ecosystem-grid .ecosystem-card .tb-logo-pictures {max-width:325px}
.ecosystem-grid .ecosystem-card .tb-logo-digital {max-width:345px}
.ecosystem-grid .ecosystem-card:hover .ecosystem-symbol,
.ecosystem-grid .ecosystem-card:focus-visible .ecosystem-symbol {transform:none}
.ecosystem-grid .ecosystem-card:hover .tb-ecosystem-logo,
.ecosystem-grid .ecosystem-card:focus-visible .tb-ecosystem-logo {transform:scale(1.035)}
/* The custom bilingual page has the same cards and never inherits Newsroom post styling. */
.tb-ecosystems-page .tb-ecosystems-hero {padding-top:clamp(116px,10vw,150px);padding-bottom:clamp(38px,4vw,65px)}
.tb-ecosystems-page .tb-ecosystems-hero h1 {font-size:clamp(42px,6.1vw,90px);line-height:1.05;max-width:1000px}
.tb-ecosystems-page .tb-ecosystems-content {padding-top:clamp(30px,4vw,52px)}
.tb-ecosystems-page .tb-ecosystems-content .ecosystem-grid {margin-top:clamp(22px,3vw,42px)}
.tb-ecosystems-page .ecosystem-card {min-height:clamp(345px,28vw,415px)}
@media(max-width:760px) {
  .ecosystem-grid .ecosystem-card .ecosystem-symbol {height:128px;width:100%;}
  .ecosystem-grid .ecosystem-card .tb-ecosystem-logo {max-width:350px;max-height:130px}
  .tb-ecosystems-page .tb-ecosystems-hero {padding-top:118px;padding-bottom:35px}
  .tb-ecosystems-page .tb-ecosystems-hero h1 {font-size:clamp(42px,10vw,68px)}
  .tb-ecosystems-page .ecosystem-card {min-height:300px}
}
@media(max-width:430px) {
 .ecosystem-grid .ecosystem-card .ecosystem-symbol {height:105px}
 .tb-ecosystems-page .ecosystem-card {min-height:285px}
}
@media(prefers-reduced-motion:reduce) {
 .ecosystem-grid .ecosystem-card .tb-ecosystem-logo {transition:none!important;transform:none!important}
}
