/*
 * Norbert Barna portfolio — responsive product-design layer
 *
 * This file intentionally loads after Webflow's generated styles. It owns the
 * compact/medium layouts and a small set of cross-viewport stability fixes.
 * Generated Webflow CSS remains untouched so desktop composition can evolve
 * independently.
 */

:root {
  --site-gutter: clamp(24px, 4vw, 60px);
  --site-content: 1200px;
  --site-readable: 72ch;
  --site-radius-sm: 14px;
  --site-radius-md: 24px;
  --site-focus: #5b45ff;
  --site-muted: #62676a;
}

html {
  overflow-x: clip;
  scroll-padding-top: 88px;
}

body {
  min-width: 0;
  overflow-x: clip;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* The skip destination must receive focus without disappearing under chrome. */
main:focus {
  outline: none;
}

main {
  display: block;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.work-title-heading {
  margin: 0;
  font: inherit;
  line-height: inherit;
}

.dark-button {
  border: 1px solid #111;
  border-radius: 8px;
  background: #000;
  color: #fff;
}

.case-byline {
  margin: 14px 0 0;
  color: currentColor;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .01em;
  opacity: .72;
}

.case-byline a {
  border-radius: 3px;
  color: inherit;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.case-byline a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.work-content-wrap {
  flex-wrap: wrap;
}

.work-card-summary {
  flex: 0 0 100%;
  max-width: 52ch;
  margin: 8px 0 0;
  color: #565c5f;
  font-size: 15px;
  line-height: 1.55;
}

/* Hero palettes vary by case study. Keep the editorial attribution readable
 * without relying on inherited Webflow color combinations. */
.banner-section.bitpanda.benker .case-byline,
.banner-section.gambit:not(.kineticare-hero) .case-byline,
.banner-section.raiffesen .case-byline {
  color: #111;
  opacity: .82;
}

.banner-section.instructure .case-byline,
.banner-section.bitpanda:not(.benker) .case-byline,
.kineticare-hero .case-byline {
  color: #fff;
  opacity: .86;
}

.about-section-title,
.metric-context {
  color: var(--site-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.about-section-title {
  margin: 0 0 20px;
}

.metric-context {
  display: inline-block;
  margin-bottom: 10px;
}

.case-related-projects {
  display: block;
  padding: 0 0 clamp(80px, 9vw, 128px);
}

.case-related-projects .service-single-divider {
  margin-top: 0;
}

.case-breadcrumb {
  border-bottom: 1px solid rgb(17 17 17 / 10%);
  background: #f7f8f8;
}

.case-breadcrumb ol,
.case-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.case-breadcrumb ol {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 9px;
  color: #555b5e;
  font-size: 14px;
  line-height: 1.4;
}

.case-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.case-breadcrumb li + li::before {
  content: "/";
  color: #92979a;
}

.case-breadcrumb a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #292d2f;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.case-breadcrumb [aria-current="page"] {
  overflow: hidden;
  max-width: 38ch;
  color: #111;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-toc {
  border-bottom: 1px solid rgb(17 17 17 / 10%);
  background: rgb(255 255 255 / 96%);
  padding: 18px 0;
}

.case-facts-section {
  border-bottom: 1px solid rgb(17 17 17 / 10%);
  background: #fff;
  padding: clamp(24px, 3vw, 36px) 0;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px clamp(24px, 4vw, 56px);
  margin: 0;
}

.case-facts > div {
  min-width: 0;
}

.case-facts dt {
  margin: 0 0 7px;
  color: var(--site-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.case-facts dd {
  margin: 0;
  color: #17191a;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.case-toc__inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.case-toc__label {
  flex: 0 0 auto;
  margin: 0;
  color: var(--site-muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.case-toc ol {
  display: flex;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 9px;
  scrollbar-color: rgb(17 17 17 / 42%) rgb(17 17 17 / 8%);
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.case-toc ol::-webkit-scrollbar {
  height: 4px;
}

.case-toc ol::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgb(17 17 17 / 8%);
}

.case-toc ol::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgb(17 17 17 / 42%);
}

.case-toc li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.case-toc a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid rgb(17 17 17 / 14%);
  border-radius: 999px;
  color: #262a2c;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.case-toc a:hover,
.case-toc a:focus-visible {
  border-color: #111;
  background: #111;
  color: #fff;
}

.summary :is(h2, h3)[id] {
  scroll-margin-top: 28px;
}

.skip-to-content:focus-visible,
.nav-logo-wrap:focus-visible,
.menu-button:focus-visible,
.nav-link:focus-visible,
.work-image-wrap:focus-visible,
.work-title:focus-visible,
.related-work-image-wrap:focus-visible,
.related-work-title:focus-visible,
.dark-button:focus-visible,
.back-to-top-wrap:focus-visible,
.motion-video-toggle:focus-visible,
.summary a:focus-visible,
.hero-work-link:focus-visible,
.footer-contact-link:focus-visible {
  outline: 3px solid var(--site-focus) !important;
  outline-offset: 4px;
}

.home-banner-outcomes {
  display: grid;
  max-width: 76ch;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 1.25em;
}

.home-banner-outcomes li {
  padding-left: 4px;
  font-size: 18px;
  line-height: 1.58;
  text-wrap: pretty;
}

.hero-work-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 12px 19px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.hero-work-link:hover,
.hero-work-link:focus-visible {
  background: #b9ff66;
  color: #111;
}

/*
 * P0 image fix: Webflow sets rich-text images to width:100% while HTML width
 * and height attributes reserve intrinsic space. Without height:auto the
 * original pixel height survives and screenshots are stretched vertically.
 */
.summary figure,
.summary figure > div {
  min-width: 0;
}

.summary figure > div {
  display: block !important;
  width: 100%;
  max-width: 100%;
}

.summary .w-richtext-figure-type-image img,
.summary figure[data-rt-type="image"] img,
.case-motion-figure__media {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  object-fit: contain;
}

.summary figure.w-richtext-figure-type-image,
.summary figure[data-rt-type="image"] {
  width: 100%;
  max-width: 1200px !important;
  margin: clamp(36px, 6vw, 88px) auto;
}

.summary figure.w-richtext-align-center {
  width: min(100%, 820px);
}

.summary figcaption {
  max-width: 68ch;
  margin: 12px auto 0;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

/* Long-form case studies get an editorial measure; media can still break out. */
.summary > :is(h2, h3, p, ul, ol, blockquote) {
  width: min(100%, var(--site-readable));
  margin-right: auto;
  margin-left: auto;
}

.summary > h2 {
  margin-top: clamp(56px, 8vw, 104px);
  text-wrap: balance;
}

.summary > h3 {
  margin-top: clamp(44px, 6vw, 76px);
  text-wrap: balance;
}

.summary > :is(p, li) {
  text-wrap: pretty;
}

.summary > .case-evidence-note {
  margin-top: 0;
  margin-bottom: clamp(44px, 6vw, 72px);
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.7;
}

.summary > .case-evidence-note > strong:first-child {
  display: block;
  margin-bottom: 10px;
  color: #343a3d;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Portfolio covers are intentionally normalized; case-study screenshots are not. */
.work-image-wrap,
.related-work-image-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--site-radius-md);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}

.work-image-wrap .work-image,
.related-work-image-wrap .work-image {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
  transform-origin: 50% 50%;
  transition: none !important;
}

/* GSAP is the sole transform owner for portfolio media. */
.work-image:hover,
.work-image-wrap:hover .work-image,
.related-work-image-wrap:hover .work-image {
  transform: none;
}

.work-image-wrap:hover {
  border-radius: var(--site-radius-md);
}

/* One clear focus target per project card. The title link owns the complete
 * card hit area while the image remains presentational rather than duplicated. */
.work-card,
.related-work-card {
  position: relative;
}

.work-title::after,
.related-work-title::after {
  content: "";
  z-index: 5;
  position: absolute;
  inset: 0;
}

.work-card:focus-within,
.related-work-card:focus-within {
  border-radius: var(--site-radius-md);
  outline: 3px solid var(--site-focus);
  outline-offset: 5px;
}

.work-card:focus-within .work-title,
.related-work-card:focus-within .related-work-title {
  outline: none !important;
}

.home-work-title-wrap > .about-section-title {
  margin-bottom: clamp(20px, 3vw, 36px);
}

.home-work-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(28px, 4vw, 52px);
}

.split-reveal-word {
  display: inline-block;
  white-space: nowrap;
}

.motion-video-toggle {
  z-index: 8;
  display: inline-flex;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 999px;
  background: rgb(11 17 24 / 82%);
  color: #fff;
  padding: 10px 18px;
  font: 600 14px/1 Inter, sans-serif;
  cursor: pointer;
}

.home-about-video-wrap,
.home-about-video,
.kineticare-browser-frame,
.kineticare-hero {
  position: relative;
}

/* Reserve media geometry before metadata arrives and keep Webflow video
 * positioning from collapsing or distorting the 16:9 source. */
.home-about-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: none;
  overflow: hidden;
}

.home-about-video > video {
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
}

.kineticare-browser-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.summary .kineticare-video-caption {
  max-width: none;
  margin: 0;
  background: #0c1b2e;
  color: #d8e2ec;
  padding: 12px 16px 15px;
  font-size: 13px;
  line-height: 1.5;
}

.kineticare-video-description {
  border-top: 1px solid rgb(255 255 255 / 16%);
  background: #0c1b2e;
  color: #fff;
  padding: 0 16px 16px;
}

.kineticare-video-description summary {
  min-height: 44px;
  padding: 13px 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  cursor: pointer;
}

.kineticare-video-description p {
  margin: 0;
  color: rgb(255 255 255 / 78%);
  font-size: 14px;
  line-height: 1.65;
}

.home-about-video > .motion-video-toggle,
.kineticare-browser-frame > .motion-video-toggle,
.kineticare-hero > .motion-video-toggle {
  position: absolute;
  right: 18px;
  top: 18px;
}

.awards-card-text {
  color: #606568;
}

.awards-card {
  cursor: default;
}

.work-card .work-title-line,
.related-work-card .work-title-line {
  width: 100% !important;
  transform-origin: 0 50%;
}

/* The footer is a conversion step, not just a utility strip. It keeps one
 * strong action and a clearly separate back-to-top control at every width. */
.footer-section {
  background: #0b0d10;
  color: #fff;
  padding: clamp(76px, 9vw, 132px) 0 max(32px, env(safe-area-inset-bottom));
}

.footer-section .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(32px, 6vw, 88px);
}

.footer-cta {
  max-width: 780px;
}

.footer-cta-kicker {
  margin: 0 0 18px;
  color: rgb(255 255 255 / 64%);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-cta-title {
  max-width: 13ch;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.footer-contact-link {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(28px, 4vw, 44px);
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 999px;
  background: #fff;
  color: #111;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
  background: #b9ff66;
  color: #111;
  transform: translateY(-2px);
}

.footer-section .back-to-top-wrap {
  border: 1px solid rgb(255 255 255 / 24%);
  background: rgb(255 255 255 / 8%);
}

/* Desktop stability: never let decorative interaction enlarge page geometry. */
@media (min-width: 992px) {
  :root {
    --site-gutter: clamp(32px, 3vw, 60px);
  }

  body {
    font-size: clamp(17px, 1.5vw, 20px);
  }

  /* Start desktop on the same 32px edge as the 991px layout, then cap and
   * center the shell instead of leaving it anchored at 1366px. */
  .container {
    width: calc(100% - var(--site-gutter) - var(--site-gutter));
    max-width: var(--site-content);
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .container-large {
    width: calc(100% - var(--site-gutter) - var(--site-gutter));
    max-width: 1720px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
  }

  .container-large.inner-container-1200px,
  .inner-container-1200px {
    max-width: var(--site-content);
    margin-right: auto;
    margin-left: auto;
  }

  .home-banner-title {
    font-size: clamp(80px, 7vw, 112px);
  }

  .home-banner-subtitle {
    font-size: clamp(34px, 3vw, 48px);
  }

  .banner-text,
  .banner-text strong {
    font-size: clamp(21px, 1.7vw, 24px);
    line-height: 1.55;
  }

  /* Keep the portfolio grid continuous across the Webflow 991/992 switch. */
  .work-section .w-dyn-items.w-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px clamp(28px, 3vw, 48px);
    margin: 0;
  }

  .work-section .work-collection-item {
    width: auto;
    min-width: 0;
    padding: 0;
  }

  .work-section .work-card {
    margin-bottom: clamp(64px, 6vw, 96px);
  }

  .work-image-wrap,
  .related-work-image-wrap,
  .case-motion-figure__mask {
    contain: paint;
  }

  .related-work-image-wrap {
    width: 100%;
    max-width: none;
    max-height: none;
  }

  .related-work-card {
    display: block;
    margin: 0;
  }

  .summary {
    font-size: 19px;
    line-height: 1.68;
  }

  .summary p {
    margin-bottom: 28px;
  }
}

/* Panda case-study heroes use a nested 1200px shell. Give them the same
 * viewport gutter through the desktop entry instead of snapping to x=0. */
@media (min-width: 992px) and (max-width: 1199px) {
  .banner-content-area.product-header.instructure.panda.inner-container-1200px {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .container.product-details-header.black.panda {
    width: 100%;
    max-width: 100%;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: var(--site-gutter) !important;
    padding-left: var(--site-gutter) !important;
  }
}

@media (min-width: 1200px) {
  .banner-content-area.product-header.instructure.panda.inner-container-1200px {
    width: 100%;
    max-width: var(--site-content);
    margin-right: auto;
    margin-left: auto;
    padding: 0;
  }

  .container.product-details-header.black.panda {
    width: 100%;
    max-width: var(--site-content);
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: max(0px, calc(var(--site-gutter) - (50vw - 600px))) !important;
    padding-left: max(0px, calc(var(--site-gutter) - (50vw - 600px))) !important;
  }
}

/* Video-backed award cards need a contrast layer, but only on devices with
 * a real hover state. Text remains above both media and overlay. */
@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
  .awards-card {
    isolation: isolate;
  }

  .awards-card::after {
    content: "";
    z-index: 2;
    background: linear-gradient(90deg, rgb(7 10 13 / 84%), rgb(7 10 13 / 68%));
    opacity: 0;
    pointer-events: none;
    position: absolute;
    inset: 0;
    transition: opacity .4s ease;
  }

  .awards-card:hover::after {
    opacity: 1;
  }

  .awards-card:hover .awards-card-text {
    color: rgb(255 255 255 / 82%);
  }

  .awards-card:hover .awards-year {
    background: #111;
    color: #fff;
  }
}

/* Compact and medium are deliberately designed as their own product surface. */
@media (max-width: 991px) {
  :root {
    --site-gutter: clamp(24px, 4vw, 32px);
    --site-radius-md: 20px;
  }

  html {
    scroll-padding-top: 76px;
  }

  body {
    font-size: 17px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
  }

  p,
  .summary li {
    font-size: 17px;
    line-height: 1.65;
  }

  h1,
  h2,
  h3,
  .section-title,
  .home-banner-title,
  .banner-title {
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }

  .container,
  .container-large,
  .container-large.inner-container-1200px,
  .container.product-details-header,
  .container.product-details-header.black.panda,
  .container.product-details-header.black.raiffeisen-header-black,
  .container.product-details-header.text-white.depot {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: max(var(--site-gutter), env(safe-area-inset-right)) !important;
    padding-left: max(var(--site-gutter), env(safe-area-inset-left)) !important;
  }

  .inner-container-1200px {
    width: 100%;
    max-width: 100%;
  }

  .navbar {
    padding: max(14px, env(safe-area-inset-top)) 0 0;
  }

  .nav-wrap,
  .nav-wrap.dark {
    min-height: 56px;
    margin: 0;
    padding: 0;
  }

  .nav-logo-wrap,
  .nav-logo-wrap.logo {
    display: inline-flex;
    width: auto;
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    padding: 7px 0;
  }

  .nav-logo-wrap img {
    display: block;
    width: 62px;
    height: auto;
  }

  .menu-button,
  .menu-button.w-nav-button {
    display: grid;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 999px;
    background: #111;
    padding: 0;
    color: #fff;
  }

  .menu-button .w-icon-nav-menu {
    margin: 0;
    color: #fff;
    font-size: 23px;
  }

  .menu-button.w--open {
    border-color: #111;
    background: #fff;
  }

  .menu-button.w--open .w-icon-nav-menu {
    color: #111;
  }

  .nav-menu.w-nav-menu {
    width: calc(100% - (2 * var(--site-gutter)));
    max-width: none;
    margin: 10px var(--site-gutter) 0;
    border: 1px solid rgb(17 17 17 / 10%);
    border-radius: 20px;
    background: rgb(248 249 249 / 98%);
    padding: 14px;
    box-shadow: 0 18px 55px rgb(17 17 17 / 16%);
  }

  .nav-menu-area {
    width: 100%;
    gap: 4px;
  }

  .nav-link,
  .nav-link.white {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    margin: 0;
    border-radius: 12px;
    padding: 11px 14px;
    color: #111;
    font-size: 17px;
  }

  .home-banner-section,
  .home-banner-section.raiffeisen-header-black {
    padding: clamp(48px, 8vw, 76px) 0 clamp(64px, 10vw, 96px);
  }

  .home-banner-area {
    gap: 28px;
  }

  .banner-left-wrap,
  .banner-left-wrap.black {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .banner-left-wrap > p:first-child {
    margin-bottom: 16px;
    font-size: 17px;
  }

  .home-banner-title {
    max-width: 11ch;
    font-size: clamp(54px, 10vw, 80px);
    line-height: .98;
    letter-spacing: -.045em;
  }

  .home-banner-subtitle {
    max-width: 31ch;
    margin-top: 22px;
    font-size: clamp(25px, 4.2vw, 34px);
    line-height: 1.18;
    letter-spacing: -.02em;
  }

  .home-banner-details-wrap {
    margin-top: 30px;
  }

  .home-banner-text {
    max-width: 72ch;
    margin-top: 24px;
    border-top: 1px solid rgb(17 17 17 / 16%);
    padding-top: 22px;
    font-size: 16px;
    line-height: 1.75;
  }

  .home-banner-outcomes {
    max-width: 72ch;
    margin-top: 18px;
    border-top: 1px solid rgb(17 17 17 / 16%);
    padding-top: 20px;
    font-size: 16px;
  }

  .home-banner-outcomes li {
    font-size: 16px;
    line-height: 1.68;
  }

  .home-about-section,
  .home-service-section,
  .bottom-space-section {
    padding-top: clamp(72px, 10vw, 104px);
    padding-bottom: clamp(72px, 10vw, 104px);
  }

  .home-about-area {
    gap: 38px;
  }

  .large-text,
  .large-text.black {
    max-width: 34ch;
    font-size: clamp(24px, 3.3vw, 31px);
    line-height: 1.42;
  }

  .home-about-video-wrap {
    width: 100%;
    min-width: 0;
    max-width: none;
    border-radius: 28px;
    padding: clamp(24px, 5vw, 42px);
  }

  .home-about-video-text {
    max-width: 18ch;
    font-size: clamp(24px, 4vw, 31px);
    line-height: 1.2;
  }

  .home-about-video {
    display: block;
    width: min(100%, 420px);
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: none;
    margin: -18px auto 0;
  }

  .home-about-marquee-area {
    gap: 12px;
    margin-top: 34px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-about-marquee-area::-webkit-scrollbar {
    display: none;
  }

  .home-about-marquee-holder,
  .home-about-marquee-wrap {
    width: max-content;
    min-width: max-content;
    transform: none !important;
    animation: none !important;
  }

  .home-about-left-linear,
  .home-about-right-linear {
    display: none;
  }

  .home-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
  }

  .home-service-title-area {
    grid-column: 1 / -1;
    max-width: 16ch;
    margin-bottom: 30px;
  }

  .service-item {
    min-width: 0;
    border-top: 1px solid rgb(17 17 17 / 16%);
    padding: 28px 0 34px;
  }

  .home-service-icon-area {
    width: 72px;
    min-width: 72px;
    height: 72px;
    min-height: 72px;
  }

  .home-service-card-title {
    margin: 0;
    font-size: clamp(23px, 3vw, 28px);
    line-height: 1.15;
  }

  .section-title {
    font-size: clamp(38px, 6vw, 54px);
    line-height: 1.02;
    letter-spacing: -.035em;
  }

  .home-work-image-text {
    font-size: clamp(112px, 24vw, 210px);
    line-height: .86;
    letter-spacing: -.06em;
  }

  .home-work-title-image-wrap {
    max-width: 100%;
  }

  .home-work-wrap {
    margin-top: 56px;
  }

  .home-work-area {
    flex-flow: row nowrap;
    align-items: flex-start;
    gap: 28px;
  }

  .home-work-card-wrap,
  .home-work-card-wrap.top-space {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-top: 0;
  }

  .work-card {
    max-width: none;
    margin-bottom: 64px;
  }

  .work-content-wrap {
    align-items: flex-start;
    gap: 6px 20px;
    margin-top: 16px;
  }

  .work-title {
    font-size: clamp(27px, 3.5vw, 34px);
  }

  .work-category-text {
    color: var(--site-muted);
    font-size: 15px;
    line-height: 1.45;
  }

  .awards-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .awards-title-area {
    position: static;
  }

  .awards-card-wrap {
    gap: 14px;
  }

  .awards-card {
    min-height: 150px;
    border-radius: 20px;
    padding: 30px;
  }

  .awards-bg-video-wrap {
    display: none;
  }

  .awards-card-title {
    font-size: 24px;
  }

  .footer-section {
    gap: 34px;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .back-to-top-wrap {
    min-width: 52px;
    max-width: 52px;
    min-height: 64px;
    max-height: 64px;
    padding-top: 22px;
  }

  /* Works listing */
  .work-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .work-section .w-dyn-items.w-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
    margin: 0;
  }

  .work-section .work-collection-item {
    width: auto;
    min-width: 0;
    padding: 0;
  }

  /* Case-study hero */
  .banner-section,
  .banner-section.raiffesen,
  .banner-section.instructure,
  .banner-section.bitpanda,
  .banner-section.gambit,
  .kineticare-hero {
    min-height: auto;
    margin: 0;
    padding: clamp(72px, 11vw, 112px) 0;
  }

  .banner-content-area,
  .banner-content-area.product-header,
  .banner-content-area.product-header.instructure,
  .banner-content-area.product-header.instructure.panda,
  .banner-content-area.product-header.instructure.panda.inner-container-1200px {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .banner-wrap,
  .banner-content-wrap,
  .banner-content-wrap.instructure.text-white {
    width: 100%;
    max-width: 780px;
    margin: 0;
  }

  .case-toc__inner {
    display: block;
  }

  .case-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-toc__label {
    margin-bottom: 10px;
  }

  .case-toc a {
    max-width: min(82vw, 28rem);
    white-space: normal;
  }

  .case-breadcrumb [aria-current="page"] {
    max-width: min(45vw, 28ch);
  }

  .work-category {
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .banner-title {
    margin: 0;
    font-size: clamp(54px, 9vw, 76px);
    line-height: .98;
    letter-spacing: -.045em;
  }

  .banner-text {
    max-width: 64ch;
    margin-top: 24px;
  }

  .banner-text,
  .banner-text strong {
    font-size: clamp(18px, 2.5vw, 21px);
    line-height: 1.55;
  }

  .work-single-section,
  .work-single-section.instructure-bg-video {
    padding-top: clamp(64px, 9vw, 96px);
    padding-bottom: clamp(72px, 10vw, 112px);
  }

  .summary {
    font-size: 17px;
    line-height: 1.65;
  }

  .summary h2 {
    font-size: clamp(34px, 5.5vw, 44px);
    line-height: 1.08;
    letter-spacing: -.025em;
  }

  .summary h3 {
    font-size: clamp(27px, 4vw, 34px) !important;
    line-height: 1.16;
  }

  .summary :is(ul, ol) {
    padding-left: 1.3em;
  }

  .summary li {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .service-single-divider {
    margin-top: 72px;
    margin-bottom: 64px;
  }

  .related-service-title-area {
    gap: 20px;
    align-items: flex-end;
    padding-top: 0;
  }

  .dark-button.projects {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
  }

  .related-projects-area {
    margin-top: 36px;
  }

  .related-projects-area .w-dyn-items.w-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
  }

  .related-work-collection-item {
    width: auto;
    min-width: 0;
    padding: 0;
  }

  .related-work-card {
    display: block;
    margin: 0;
  }

  .related-work-image-wrap {
    max-width: none;
    max-height: none;
  }

  .related-work-title {
    min-height: 44px;
    margin-top: 12px;
    padding: 0;
    font-size: clamp(25px, 3.5vw, 31px);
  }

  .inst-bg-video.mobile,
  .kineticare-browser-frame {
    overflow: hidden;
    border-radius: 18px;
  }

  .kineticare-browser-frame video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
  }

  .case-motion-heading::before,
  .case-motion-rail {
    display: none;
  }
}

@media (max-width: 599px) {
  :root {
    --site-gutter: 16px;
    --site-radius-md: 16px;
  }

  html {
    scroll-padding-top: 68px;
  }

  body,
  p,
  .summary li {
    font-size: 16px;
  }

  .navbar {
    padding-top: max(10px, env(safe-area-inset-top));
  }

  .home-banner-section,
  .home-banner-section.raiffeisen-header-black {
    padding-top: 42px;
    padding-bottom: 64px;
  }

  .home-banner-title {
    max-width: 9ch;
    font-size: clamp(48px, 14vw, 64px);
  }

  .home-banner-subtitle {
    margin-top: 18px;
    font-size: clamp(23px, 7vw, 29px);
  }

  .home-banner-text {
    font-size: 15px;
    line-height: 1.72;
  }

  .home-banner-outcomes li {
    font-size: 15px;
    line-height: 1.68;
  }

  .hero-work-link {
    width: 100%;
  }

  .home-about-section,
  .home-service-section,
  .bottom-space-section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .home-about-video-wrap {
    border-radius: 20px;
    padding: 24px 20px 18px;
  }

  .home-service-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .home-service-title-area {
    grid-column: auto;
    margin-bottom: 20px;
  }

  .service-item {
    padding: 24px 0 28px;
  }

  .home-service-icon-wrap {
    align-items: center;
    gap: 16px;
  }

  .home-service-icon-area {
    width: 60px;
    min-width: 60px;
    height: 60px;
    min-height: 60px;
  }

  .home-work-image-text {
    font-size: clamp(88px, 27vw, 132px);
  }

  .home-work-area {
    flex-direction: column;
    gap: 0;
  }

  .work-card {
    width: 100%;
    max-width: none;
    margin: 0 0 52px;
  }

  .work-content-wrap {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 14px;
  }

  .work-title {
    font-size: 28px;
  }

  .awards-card {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    border-radius: 16px;
    padding: 26px 22px;
  }

  .awards-card-title {
    font-size: 22px;
  }

  .work-section {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .work-section .w-dyn-items.w-row,
  .related-projects-area .w-dyn-items.w-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .work-section .work-card {
    margin-bottom: 48px;
  }

  .banner-section,
  .banner-section.raiffesen,
  .banner-section.instructure,
  .banner-section.bitpanda,
  .banner-section.gambit,
  .kineticare-hero {
    padding-top: 64px;
    padding-bottom: 68px;
  }

  .banner-title {
    font-size: clamp(44px, 13vw, 58px);
  }

  .banner-text,
  .banner-text strong {
    font-size: 17px;
    line-height: 1.58;
  }

  .work-single-section,
  .work-single-section.instructure-bg-video {
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .summary h2 {
    margin-top: 54px;
    font-size: clamp(30px, 9vw, 38px);
  }

  .summary h3 {
    margin-top: 42px;
    font-size: clamp(25px, 7vw, 31px) !important;
  }

  .summary figure.w-richtext-figure-type-image,
  .summary figure[data-rt-type="image"],
  .summary figure.w-richtext-align-center {
    display: block;
    width: 100%;
    max-width: 100% !important;
    margin-top: 38px;
    margin-bottom: 42px;
  }

  .summary figcaption {
    font-size: 13px;
  }

  .service-single-divider {
    margin-top: 60px;
    margin-bottom: 52px;
  }

  .related-service-title-area {
    flex-direction: column;
    align-items: flex-start;
  }

  .dark-button.projects {
    width: 100%;
  }

  .related-projects-area {
    margin-top: 30px;
  }

  .related-work-card {
    margin-bottom: 40px;
  }

  .related-work-image-wrap {
    width: 100%;
    max-width: none;
  }

  .related-work-title {
    margin-top: 12px;
    font-size: 27px;
  }

  .motion-video-toggle {
    right: 12px !important;
    top: 12px !important;
    bottom: auto !important;
    min-height: 44px;
    padding: 9px 14px;
    font-size: 13px;
  }

  .footer-section .container {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .footer-cta-title {
    font-size: clamp(38px, 11vw, 54px);
  }

  .footer-contact-link {
    width: 100%;
  }

  .footer-section .back-to-top-wrap {
    justify-self: end;
  }

  .home-work-footer .dark-button {
    width: 100%;
  }

  .case-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (hover: none), (pointer: coarse) {
  .work-image-wrap:hover,
  .related-work-image-wrap:hover,
  .home-service-icon-area:hover,
  .back-to-top-wrap:hover {
    transform: none !important;
  }

  .awards-card,
  .awards-card:hover {
    color: var(--bg-color--black, #111) !important;
  }

  .awards-card .awards-card-text,
  .awards-card:hover .awards-card-text {
    color: #606568 !important;
  }

  .awards-card .awards-year,
  .awards-card:hover .awards-year {
    background-color: var(--bg-color--white, #fff) !important;
    color: var(--bg-color--black, #111) !important;
  }

  .awards-card .awards-bg-video-wrap,
  .awards-card:hover .awards-bg-video-wrap {
    opacity: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .home-about-marquee-wrap,
  .home-about-marquee-holder,
  .case-motion-figure__mask,
  .case-motion-figure__media,
  .work-card,
  .related-work-card,
  .service-item,
  .awards-card,
  .section-title,
  .summary h2,
  .summary h3 {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

/* One quiet page-level motion preference; never a play button on the media. */
.site-motion-toggle {
  display: inline-flex;
  min-width: 106px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 10px 8px;
  color: #17191a;
  font: 600 12px/1.4 Inter, sans-serif;
  letter-spacing: .035em;
  cursor: pointer;
}

/* Reserve the exact geometry before JS initializes. No dead no-JS control. */
.site-motion-toggle[hidden] {
  display: inline-flex;
  visibility: hidden;
}

.site-motion-toggle [data-motion-state] {
  min-width: 3ch;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-motion-toggle:focus-visible {
  outline: 3px solid var(--site-focus);
  outline-offset: 4px;
}

@media (max-width: 991px) {
  .nav-button-wrap { margin-top: 4px; padding-left: 0; }
  .site-motion-toggle {
    justify-content: flex-start;
    margin-top: 4px;
    padding-inline: 14px;
  }
}

/* The Instructure demo is content, not a cropped 500px Webflow background.
 * Keep the same 16:9 composition visible on phones as on desktop. */
.inst-bg-video.mobile {
  display: block;
  width: calc(100% - (2 * var(--site-gutter)));
  max-width: 1200px;
  margin: 0 auto clamp(40px, 6vw, 80px);
}
.inst-bg-video.mobile .container-2 {
  width: 100%;
  max-width: none;
  padding: 0;
}
.inst-bg-video.mobile .background-video {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--site-radius-md);
  background: #0c1b2e;
}
.inst-bg-video.mobile .background-video > video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}
.site-motion-toggle:disabled { cursor: default; }
/* A manual pause receives the same static, readable hover fallback as the OS
 * setting; the legacy html.no-motion * rule must not reveal award backgrounds. */
html.no-motion .awards-bg-video-wrap,
html.no-motion .awards-card::after { opacity: 0 !important; }
html.no-motion .awards-card,
html.no-motion .awards-card:hover { color: #111 !important; }
html.no-motion .awards-card .awards-card-text { color: #606568 !important; }
html.no-motion .awards-card .awards-year { background: #fff !important; color: #111 !important; }
