/* Surface depth and interaction styling; shared by both languages and themes. */
@media screen {
  :root {
    --premium-ease: cubic-bezier(.2,.75,.25,1);
    --premium-shadow: 0 2px 5px #13295005, 0 14px 34px #1329500b, 0 30px 70px #13295005;
    --premium-hover-shadow: 0 4px 10px #13295008, 0 24px 48px #13295016, 0 42px 84px #252ddd0b;
    --premium-rim: color-mix(in srgb,var(--action) 23%,var(--line));
  }
  :root[data-theme=dark] {
    --premium-shadow: 0 2px 6px #0002, 0 18px 40px #0003;
    --premium-hover-shadow: 0 5px 14px #0003, 0 26px 56px #0005, 0 0 36px #646cff12;
    --premium-rim: color-mix(in srgb,var(--blue) 48%,var(--line));
  }
  .site-header {
    background: color-mix(in srgb,var(--bg) 87%,transparent);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 1px 0 color-mix(in srgb,var(--bg) 70%,transparent),0 10px 34px #10244a06;
  }
  .hero {
    background: radial-gradient(ellipse at 88% 16%,color-mix(in srgb,var(--action) 10%,transparent),transparent 52%),
      radial-gradient(ellipse at 5% 90%,color-mix(in srgb,var(--blue) 5%,transparent),transparent 48%),var(--bg);
  }
  html[data-design] .hero-media {
    padding: 12px;
    border: 1px solid color-mix(in srgb,var(--action) 15%,var(--line));
    background: linear-gradient(145deg,color-mix(in srgb,var(--bg) 96%,white),var(--surface));
    box-shadow: 0 3px 8px #14264c09,0 24px 64px #14264c16,0 0 70px color-mix(in srgb,var(--action) 6%,transparent);
  }
  .hero-track {border-radius: max(8px,calc(var(--studio-radius,20px) - 8px))}
  .hero-carousel-footer {padding:12px 4px 0}
  .proof-ribbon {border-top-color:color-mix(in srgb,var(--action) 14%,var(--line))}
  .metric strong {text-shadow:0 8px 26px color-mix(in srgb,var(--blue) 12%,transparent)}
  html[data-design] :is(.client-project,.analytics-case,.learning-case,.team-leader,.arm,.solution-card,.credential,.training-proof,.product-visual) {
    border-color: color-mix(in srgb,var(--line) 88%,var(--bg));
    box-shadow: var(--premium-shadow);
    transition: opacity .65s var(--premium-ease),transform .65s var(--premium-ease),translate .35s var(--premium-ease),box-shadow .35s var(--premium-ease),border-color .35s ease;
  }
  html[data-design] .case-featured {
    background: linear-gradient(125deg,color-mix(in srgb,var(--action) 4%,var(--bg)),var(--bg) 60%);
    border-color:var(--premium-rim);
  }
  :is(.client-project,.learning-case,.team-leader,.arm,.solution-card,.credential):focus-within {
    border-color:var(--premium-rim);
    box-shadow:var(--premium-hover-shadow);
  }
  .client-project-image,.team-portrait,.gallery-photo {overflow:hidden;isolation:isolate}
  :is(.client-project-image,.team-portrait,.gallery-photo) img {
    transition:scale .65s var(--premium-ease),filter .4s ease;
  }
  :is(.showcase-media,.platform-screen,.document-preview,.logo-cell,.icon-button,.header-admin) {
    transition:box-shadow .3s var(--premium-ease),border-color .3s ease,background-color .3s ease,translate .3s var(--premium-ease);
  }
  .showcase-media {box-shadow:0 3px 12px #14264c08}
  .showcase-media>span,.client-project-image>span {
    -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
    border:1px solid #ffffff24;box-shadow:0 4px 16px #0002;
  }
  :is(.button-primary,.header-cta) {
    position:relative;isolation:isolate;overflow:hidden;
    box-shadow:inset 0 1px 0 #ffffff30,0 6px 16px color-mix(in srgb,var(--action) 20%,transparent);
    transition:translate .25s var(--premium-ease),box-shadow .3s var(--premium-ease),filter .3s ease;
  }
  :is(.button-primary,.header-cta)::after {
    content:'';position:absolute;inset:0;pointer-events:none;
    background:linear-gradient(110deg,transparent 20%,#ffffff24 48%,transparent 76%);
    transform:translateX(-120%);transition:transform .65s var(--premium-ease);
  }
  .text-link {position:relative;text-decoration:none}
  .text-link::after {
    content:'';position:absolute;inset-inline-start:0;bottom:4px;
    width:calc(100% - 28px);height:1px;background:currentColor;opacity:.5;
    transform:scaleX(0);transform-origin:left;transition:transform .3s var(--premium-ease);
  }
  html[dir=rtl] .text-link::after {transform-origin:right}
  :is(.text-link,.button) svg {transition:translate .3s var(--premium-ease)}
  #primary-nav>a {transition:color .25s ease,background-color .25s ease}
  :is(.showcase-more,.field-events,.team-more)>summary {
    transition:background-color .25s ease,color .25s ease;
  }
  :is(.showcase-more,.field-events,.team-more)>summary>span {transition:transform .3s var(--premium-ease)}
  .product-tabs button {transition:background-color .3s ease,border-color .3s ease,color .3s ease}
  .final-cta {
    background:radial-gradient(ellipse at 95% 0%,#474ffe4d,transparent 58%),linear-gradient(130deg,#0c142d,#172343);
    box-shadow:inset 0 1px 0 #ffffff16;
  }
  :is(a,button,summary):focus-visible {outline:3px solid var(--blue);outline-offset:5px}
  .final-cta :is(a,button):focus-visible,.site-footer :is(a,button):focus-visible {outline-color:#aab4ff}
}
@media screen and (hover:hover) and (pointer:fine) {
  html[data-design] :is(.client-project,.learning-case,.team-leader,.arm,.solution-card,.credential,.training-proof):hover {
    translate:0 -6px;border-color:var(--premium-rim);box-shadow:var(--premium-hover-shadow);
  }
  html[data-design] :is(.analytics-case,.product-visual):hover {border-color:var(--premium-rim);box-shadow:var(--premium-hover-shadow)}
  .client-project:not(:first-child):hover .client-project-image img,.gallery-photo:hover img {scale:1.035}
  .team-leader:hover .team-portrait img {scale:1.025}
  :is(.showcase-media,.platform-screen,.document-preview):hover {border-color:var(--premium-rim);box-shadow:0 8px 24px #14264c18}
  .logo-cell:hover {box-shadow:inset 0 0 0 1px var(--premium-rim);background:color-mix(in srgb,var(--action) 4%,var(--bg))}
  :is(.button-primary,.header-cta):hover {translate:0 -2px;box-shadow:inset 0 1px 0 #ffffff30,0 10px 26px color-mix(in srgb,var(--action) 30%,transparent)}
  :is(.button-primary,.header-cta):hover::after {transform:translateX(120%)}
  :is(.button-primary,.header-cta):active {translate:0 0}
  .text-link:hover::after,.text-link:focus-visible::after {transform:scaleX(1)}
  :is(.text-link,.button):hover svg {translate:3px 0}
  html[dir=rtl] :is(.text-link,.button):hover svg {translate:-3px 0}
  :is(.icon-button,.header-admin):hover {box-shadow:0 5px 16px #14264c12;border-color:var(--premium-rim)}
  :is(.showcase-more,.field-events,.team-more)>summary:hover {background:color-mix(in srgb,var(--action) 4%,transparent)}
  .product-tabs button:hover {background:color-mix(in srgb,var(--action) 4%,transparent)}
}
@media screen and (prefers-reduced-motion:no-preference) {
  html.motion-ready:not([data-motion=off]) .reveal:not(.visible) {transform:translateY(16px)}
  html.motion-ready:not([data-motion=off]) .reveal {transition:opacity .65s var(--premium-ease),transform .65s var(--premium-ease),translate .35s var(--premium-ease),box-shadow .35s var(--premium-ease),border-color .35s ease}
}
@media screen and (max-width:700px) {
  html[data-design] .hero-media {padding:8px;box-shadow:0 12px 36px #14264c14}
  .hero-carousel-footer {padding-inline:2px}
}
/* Motion preferences also disable displacement, while preserving visible feedback. */
@media screen and (prefers-reduced-motion:reduce) {
  html {scroll-behavior:auto!important}
  *,*::before,*::after {animation:none!important;transition:none!important}
  html[data-design] :is(.client-project,.learning-case,.team-leader,.arm,.solution-card,.credential,.training-proof),:is(.button-primary,.header-cta),:is(.text-link,.button) svg {translate:none!important}
  :is(.client-project-image,.team-portrait,.gallery-photo) img {scale:none!important}
  :is(.button-primary,.header-cta)::after {display:none}
}
@media screen {
  html[data-motion=off] :is(.client-project,.learning-case,.team-leader,.arm,.solution-card,.credential,.training-proof,.button-primary,.header-cta),html[data-motion=off] :is(.text-link,.button) svg {translate:none!important}
  html[data-motion=off] :is(.client-project-image,.team-portrait,.gallery-photo) img {scale:none!important}
  html[data-motion=off] :is(.button-primary,.header-cta)::after {display:none}
}

/* Compact, borderless portraits; crop pale source-edge gutters within the frame. */
@media screen {
  .team-leader,.team-leader:is(:hover,:focus-within),
  html[data-design] .team-leader,
  html[data-design] .team-leader:is(:hover,:focus-within) {
    border:0;background:transparent;box-shadow:none;translate:none;
  }
  button.team-portrait {
    display:block;width:min(200px,calc(100% - 48px));height:auto;aspect-ratio:227/240;
    max-height:none;margin:16px auto 0;padding:0;border:0;border-radius:12px;
    background:transparent;box-shadow:0 8px 20px #00000012;cursor:zoom-in;
  }
  .team-portrait img {
    position:absolute;inset:0;width:100%;max-width:none;height:100%;margin:0;
    object-fit:cover;object-position:50% 50%;border:0;border-radius:0;
    transform:scale(var(--portrait-zoom,1.1));transform-origin:var(--portrait-x,50%) var(--portrait-y,18%);
  }
  .team-person {padding-top:20px}
  .team-leader:hover .team-portrait img {scale:1}
  .team-expert-portrait {
    position:relative;display:block;width:60px;height:64px;flex:none;padding:0;overflow:hidden;
    border:0;border-radius:9px;background:transparent;cursor:zoom-in;
  }
  .team-expert-portrait img {
    position:absolute;inset:0;display:block;width:100%;max-width:none;height:100%;margin:0;
    object-fit:cover;object-position:50% 50%;background:transparent;
    transform:scale(var(--portrait-zoom,1.1));transform-origin:var(--portrait-x,50%) var(--portrait-y,18%);
    border:0;border-radius:0;box-shadow:none;
  }
  :is(.team-portrait,.team-expert-portrait):focus-visible {outline:2px solid var(--ink);outline-offset:5px}

  /* Paired utility controls with a visible selected theme. */
  .header-tools {gap:10px}
  .site-header .theme-toggle {
    position:relative;isolation:isolate;display:grid;grid-template-columns:1fr 1fr;
    direction:ltr;width:78px;height:44px;padding:4px;gap:0;border:1px solid var(--line);
    border-radius:24px;background:var(--surface);color:var(--muted);box-shadow:inset 0 1px 3px #00000006;
  }
  .theme-toggle::before {
    content:'';position:absolute;z-index:-1;left:4px;top:4px;bottom:4px;
    width:calc((100% - 8px)/2);border-radius:50%;background:var(--bg);
    box-shadow:0 2px 6px #00000015;transition:transform .25s var(--premium-ease);
  }
  .site-header .theme-toggle :is(.sun-icon,.moon-icon) {
    display:block;grid-row:1;width:18px;height:18px;justify-self:center;
    opacity:.5;transition:opacity .25s ease,color .25s ease;
  }
  .site-header .theme-toggle .sun-icon {grid-column:1;color:var(--ink);opacity:1}
  .site-header .theme-toggle .moon-icon {grid-column:2}
  html[data-theme=dark] .theme-toggle::before {transform:translateX(100%)}
  html[data-theme=dark] .site-header .theme-toggle .sun-icon {color:var(--muted);opacity:.5}
  html[data-theme=dark] .site-header .theme-toggle .moon-icon {color:var(--ink);opacity:1}
  .site-header .language-switch {
    display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;
    padding:8px 13px;border:1px solid var(--line);border-radius:24px;
    background:var(--surface);font-size:.875rem;font-weight:600;line-height:1.4;
    transition:background-color .2s ease,box-shadow .2s ease,border-color .2s ease;
  }
  .language-switch .language-icon {width:18px;height:18px;opacity:.75}
  .site-header :is(.theme-toggle,.language-switch):hover {
    background:var(--soft);border-color:var(--muted);box-shadow:0 3px 10px #0000000d;
  }
  .site-header :is(.theme-toggle,.language-switch):focus-visible {outline:2px solid var(--ink);outline-offset:4px}
}
@media screen and (max-width:600px) {
  .header-tools {gap:6px}
  .site-header .brand img {width:120px}
  .site-header .theme-toggle {width:70px}
  .site-header .language-switch {gap:6px;padding-inline:10px}
  .team-expert-portrait {width:56px;height:60px}
}
@media screen and (max-width:380px) {
  .site-header .brand img {width:96px}
  .site-header .header-tools {gap:4px}
  .site-header .theme-toggle {width:64px}
  .site-header .language-switch {padding-inline:8px;gap:5px}
  .site-header .language-icon {width:16px;height:16px}
  .site-header .menu-toggle {width:36px}
}
@media (prefers-reduced-motion:reduce) {.theme-toggle::before{transition:none}}
html[data-motion=off] .theme-toggle::before{transition:none}

/* A shorter company story: proof first, detailed catalogues on demand. */
@media screen {
  .clients-next {
    display:flex;justify-content:space-between;align-items:center;gap:32px;
    margin-top:28px;padding-top:24px;border-top:1px solid var(--line);
  }
  .clients-next p {max-width:68ch;font-size:1rem;line-height:1.75}
  .clients-next .text-link {flex:none}
  .solution-details {
    margin-top:32px;border-block:1px solid var(--line);
  }
  .solution-details+.solution-details {margin-top:0;border-top:0}
  .solution-details>summary {
    min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px;
    padding:18px 0;list-style:none;cursor:pointer;color:var(--blue);font-weight:600;
  }
  .solution-details>summary::-webkit-details-marker {display:none}
  .solution-details>summary>span:last-child {font-size:1.75rem;font-weight:400;transition:transform .25s var(--premium-ease)}
  .solution-details[open]>summary>span:last-child {transform:rotate(45deg)}
  .solution-details>.solution-services,.solution-details>.ready-solutions {margin-bottom:32px}
  .platform-explorer>.platform-section-heading {margin-top:16px;padding-top:24px}
  .platform-explorer>.product-panel:last-child {padding-bottom:40px}
  .product-screenshot-strip {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
  .product-screenshot-thumb {position:relative;display:block;width:100%;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:9px;background:var(--soft);cursor:zoom-in;transition:border-color .2s ease,box-shadow .2s ease,translate .2s ease}
  .product-screenshot-thumb img {display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:center}
  .product-screenshot-thumb span {position:absolute;inset:auto 7px 7px 7px;padding:6px 8px;border-radius:5px;background:#101828de;color:#fff;font-size:.68rem;font-weight:600;line-height:1.35;text-align:start}
  .product-screenshot-thumb:hover {border-color:var(--premium-rim);box-shadow:0 6px 18px #14264c16;translate:0 -2px}
  .product-screenshot-thumb:focus-visible {outline:2px solid var(--blue);outline-offset:3px}
  .showcase-representative>span {background:#16213ee8}
  .product-section .solution-portfolio {margin-top:8px}
  .why {border-top:1px solid var(--line)}
}
@media screen and (max-width:700px) {
  .clients-next {align-items:flex-start;flex-direction:column;gap:16px}
  .solution-details>summary {font-size:.9375rem;line-height:1.5}
  .product-screenshot-strip {grid-template-columns:1fr}
}
