/**
 * TODO: move the following to a work-section css file due to the creation of work page.
 * TODO: unbind `work-label-items` from GSAP when a transition is triggered
 * in order to avoid inline element and needing the !important overwrites.
 * `#cs-container video[data-video-label='...']` are duplicate rules of
 * `case-study-image-container-1`, see how to reuse instead of rewriting these.
 */

html {
  /* Prevents items from shifting horizontally when scroll bar is removed
  while transitioning between pages. */
  overflow-y: scroll !important;
}

.work {
  color: var(--color-light);
  min-height: 100vh;
  /* padding-bottom: calc(50 * 100vw / var(--page-width)); */
  padding-top: calc(50 * 100vw / var(--page-width));
  position: relative;
}

@media only screen and (min-width: 768px) {
  .work {
    padding-top: 0;
  }
}

/**
 * Work label
 */

.work-label-spacer {
  height: 100vh;
  margin-top: -100vh;
}

@media only screen and (min-width: 768px) {
  .work-label-spacer {
    height: 100vh;
  }
}

.work-label {
  align-items: flex-start;
  display: flex;
  height: 100vh;
  justify-content: center;
  left: 0;
  opacity: 0.8;
  pointer-events: none;
  position: sticky;
  top: 0;
  z-index: 2;
}

@media only screen and (min-width: 768px) {
  .work-label {
    align-items: center;
    height: 100vh;
    transition: opacity 1s;
  }
}

/* this is work_label */
.work-label-item {
  display: flex;
  font-size: calc(64 * 100vw / var(--page-width));
  gap: calc(47 * 100vw / var(--page-width));
  line-height: 0.72;
  margin: 0 auto;
  opacity: var(--o-work-label);
  padding-top: calc(34 * 100vw / var(--page-width));
  pointer-events: none;
  width: calc(315 * 100vw / var(--page-width));
}

@media only screen and (min-width: 768px) {
  .work-label-item {
    filter: blur(5px);
    font-size: calc(140 * 100vw / var(--page-width));
    gap: calc(160 * 100vw / var(--page-width));
    padding-top: 0;
    width: calc(860 * 100vw / var(--page-width));
  }
}

.work-label span:nth-child(even) {
  margin-top: calc(34 * 100vw / var(--page-width));
}

@media only screen and (min-width: 768px) {
  .work-label span:nth-child(even) {
    margin-top: 0;
  }
}

@media only screen and (min-width: 768px) {
  :root {
    --label-translate: 392;
  }

  .work-label span {
    margin-top: 0;
  }

  .work-label span span {
    display: block;
    transition: transform 1s;
  }

  .work-label-in .work_label_1 span {
    transform: translate(
      calc(-142 * 100vw / var(--page-width)),
      calc(-1 * var(--label-translate) * 100vw / var(--page-width))
    );
  }

  .work-label-in .work_label_2 span {
    transform: translate(
      calc(-110 * 100vw / var(--page-width)),
      calc(var(--label-translate) * 100vw / var(--page-width))
    );
  }

  .work-label-in .work_label_3 span {
    transform: translate(
      calc(135 * 100vw / var(--page-width)),
      calc(-1 * var(--label-translate) * 100vw / var(--page-width))
    );
  }

  .work-label-in .work_label_4 span {
    transform: translate(
      calc(196 * 100vw / var(--page-width)),
      calc(var(--label-translate) * 100vw / var(--page-width))
    );
  }
}

/* Counters */

.case-study-counters {
  height: 100vh;
  left: 0;
  margin-top: -100vh;
  opacity: 0;
  pointer-events: none;
  position: sticky;
  top: 0;
  transition: opacity 0.5s;
  width: 100%;
  z-index: 2;
}

.case-study-counters.in-step {
  opacity: 1;
  transition-duration: 1s;
}

.case-study-count {
  color: var(--color-light);
  left: calc(16 * 100vw / var(--page-width));
  position: absolute;
  top: calc(136 * 100vw / var(--page-width));
  z-index: 1;
}

@media only screen and (min-width: 768px) {
  .case-study-count {
    left: calc(190 * 100vw / var(--page-width));
    top: 50vh;
    transform: translate(0, calc(-290 * 100vw / var(--page-width)));
  }
}

.case-study-count + .case-study-count {
  bottom: calc(81 * 100vw / var(--page-width));
  left: auto;
  right: calc(16 * 100vw / var(--page-width));
  top: auto;
}

@media only screen and (min-width: 768px) {
  .case-study-count + .case-study-count {
    bottom: auto;
    left: auto;
    right: calc(190 * 100vw / var(--page-width));
    top: 50vh;
    transform: translate(0, calc(240 * 100vw / var(--page-width)));
  }
}

/**
 * Case Study Block
 *
 * Styles for case studies within the work section.
 */

.case-studies {
  --cs-count: 5;
  /* Scroll distance per card, in screens. Must match CARD_SCROLL in
     useWorkScene.ts. */
  --cs-step: 0.75;
  /* Pulled up under the sticky WORK label so the first card arrives after
     0.75 of a screen instead of a full one. */
  margin-top: -25vh;
  /* One screen for the sticky group itself, one step per card change, plus
     0.6 of a screen so the last card (CRM) stays on screen a bit longer before
     the playground takes over. */
  min-height: calc(((var(--cs-count) - 1) * var(--cs-step) + 1.6) * 100vh);
}

/* Mobile: the first card arrives sooner still, about half a screen after
   the WORK label (was 0.75 of a screen). Only this entry is shortened; the
   scroll between cards stays at --cs-step. */
@media only screen and (max-width: 767px) {
  .case-studies {
    margin-top: -55vh;
  }
}

[data-cs-marker] {
  height: calc(var(--cs-step) * 100vh);
}

[data-cs-marker='1'] {
  /* Fill inner-wrapper space (sticky element) */
  margin-top: -100vh;
}

/**
 * Case Studies Group
 */

.case-studies-group {
  height: 100vh;
  left: 0;
  top: 0;
  position: sticky;
}

/* End: Case Studies Group */

/**
 * Case Study
 */

[data-cs] {
  align-items: center;
  bottom: 0;
  display: flex;
  height: 100vh;
  justify-content: center;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
}

.work-case-study-headline {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(295 * 100vw / var(--page-width));
  z-index: 2;
}

@media only screen and (min-width: 768px) {
  .work-case-study-headline {
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(670 * 100vw / var(--page-width));
  }
}

.work-case-study-headline .label,
.work-case-study-headline .title,
.work-case-study-headline .subheadline,
.work-case-study-headline .work-tech-icons {
  opacity: 0;
  transition-duration: 0.5s;
  transition-property: opacity;
  transition-timing-function: ease-in;
}

/* NOTE: Required for opacity to work on Safari */
.work-case-study-headline .title {
  display: block;
}

[data-cs='5'] .work-case-study-headline .title {
  margin-bottom: 0;
}

.work-case-study-headline .title span {
  display: block;
  /* Using event delegation to detect click. Adding point-events to this
  element avoids the need to add extra logic on detecting click on anchor. */
  pointer-events: none;
}

@media only screen and (min-width: 768px) {
  .work-case-study-headline .title span {
    display: inline-block;
  }

  /* Extra helper to align headline with label */
  [data-cs].h-align .title span::first-letter {
    margin-left: calc(-7 * 100vw / var(--page-width));
  }
}

.work-case-study-headline a {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) {
  .work-case-study-headline a:hover {
    color: var(--color-accent-sun);
  }
}

/* Headlines are stack so z-index positions elements on top when "active" */
.work-case-study-headline .label {
  margin-bottom: calc(20 * 100vw / var(--page-width));
}

@media only screen and (min-width: 768px) {
  .work-case-study-headline .label {
    margin-bottom: calc(25 * 100vw / var(--page-width));
  }
}

.work-case-study-headline .headline {
  transition: color 0.25s ease-in-out;
}

/* Headlines are left-aligned and stacked directly under one another - no
   per-card horizontal offsets, so every project reads as one clean,
   centered column instead of a staggered cascade. */
[data-cs] .headline-2 {
  text-align: left;
}

.subheadline {
  display: block;
  font-size: calc(18 * 100vw / var(--page-width));
  margin: calc(26 * 100vw / var(--page-width)) 0 0;
  text-align: left;
  line-height: 1.3;
}

@media only screen and (min-width: 768px) {
  .subheadline {
    font-size: calc(20 * 100vw / var(--page-width));
    margin: calc(48 * 100vw / var(--page-width)) 0 0;
  }
}

/**
 * Case study assets.
 * `case-study-background`: static asset, no interactions.
 * `.work *-asset`: scopes transition to work section, prevents transitions on
 * clone section.
 */

.case-study-background,
.case-study-asset {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

@media only screen and (min-width: 768px) {
  .case-study-background,
  .case-study-asset {
    height: auto;
    object-fit: initial;
    width: 100%;
  }
}

.work .case-study-asset {
  transition: transform 0.35s linear;
}

/* End: Case study assets */

.case-study-image-container {
  height: calc(220 * 100vw / var(--page-width));
  position: absolute;
  top: 50vh;
  width: calc(270 * 100vw / var(--page-width));
}

@media only screen and (min-width: 768px) {
  .case-study-image-container {
    background-color: transparent;
    height: 100%;
    width: 100%;
  }
}

.case-study-image-container-1 {
  /* Above secondary assets */
  z-index: 2;
}

.case-study-image-container-1 video {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

@media only screen and (min-width: 768px) {
  .case-study-image-container-1 video:first-child {
    display: none;
    visibility: hidden;
  }

  .case-study-image-container-1 video:last-child {
    display: block;
    visibility: visible;
  }
}

/* Animations and transitions (case studies) */
/* Use the states `previous`, `next` and `current` */

[data-status] {
  pointer-events: none;
}

[data-status='current'] {
  pointer-events: visible;
}

[data-status='current'] .label {
  opacity: 1;
  transition-delay: 0.5s;
}

[data-status='current'] .title {
  opacity: 1;
  transition-delay: 0.7s;
}

[data-status='current'] .subheadline {
  opacity: 1;
  transition-delay: 0.9s;
}

[data-status='current'] .work-tech-icons {
  opacity: 1;
  transition-delay: 1.1s;
}

.work-tech-icons {
  margin-top: calc(14 * 100vw / var(--page-width));
}

[data-enter] [data-status='next'] .case-study-image-container {
  transition: none !important;
}

/* Using `.work` to differentiate between elements in work section and cloned
elements used on page transitions. */
/* TODO: update to `work-*` */
.work .case-study-image-container {
  opacity: 0;
  visibility: hidden;
  transition:
    transform 1.5s,
    opacity 1.5s,
    visibility 0s 1.5s;
}

[data-status='current'] .case-study-image-container {
  opacity: 1;
  transition:
    transform 1.5s,
    opacity 1.5s;
  visibility: visible;
}

:root {
  --sm-first-img-0: translate(0, calc(330 * 100vw / var(--page-width)));
  --sm-second-img-0: translate(0, calc(340 * 100vw / var(--page-width)));
  --sm-first-img-50: translate(0, calc(-204 * 100vw / var(--page-width)));
  --sm-second-img-50: translate(0, calc(38 * 100vw / var(--page-width)));
  --sm-first-img-100: translate(0, calc(-410 * 100vw / var(--page-width)));
  --sm-second-img-100: translate(0, calc(-300 * 100vw / var(--page-width)));
}

/* Active 1 */

/* Only 2 real product shots now (landing + dashboard, both in the bg/2 slots
   below), the other two generic crops are retired rather than mixing quality
   tiers. */
[data-cs='1'] .case-study-image-container-1 {
  display: none !important;
}

/* bg/container-2 are now whole composed graphics (landing hero, dashboard
   screenshot), not UI crops, contain, don't cover, so nothing gets cut off. */
[data-cs='1'] .case-study-image-container-bg img,
[data-cs='1'] .case-study-image-container-2 img {
  object-fit: contain;
}

/* Mobile: zoomed in and allowed to bleed past the screen edge (the [data-cs]
   box clips overflow, so this never causes horizontal scroll) rather than
   shrinking to fit a margin - stays clear of the title vertically. */
[data-cs='1'] .case-study-image-container-bg {
  bottom: 6%;
  height: 20vh;
  left: -10%;
  top: auto;
  transform: none;
  width: 60%;
}

@media only screen and (min-width: 768px) {
  /* Repositioned (2026-10-27): left column, clear of the title horizontally so
     it can sit anywhere vertically - left is a fixed offset (not a transform)
     so the [data-status] transition rules below, which only ever replace the
     Y half of `translate(0, Y)`, keep working. */
  [data-cs='1'] .case-study-image-container-bg {
    height: calc(266 * 100vw / var(--page-width));
    left: calc(50 * 100vw / var(--page-width));
    top: 50%;
    transform: translate(0, calc(-169 * 100vw / var(--page-width)));
    width: calc(403 * 100vw / var(--page-width));
  }
}

[data-cs='1'] .case-study-image-container-1 {
  left: 0;
  /* Custom position for first element, all others use the same var. */
  transform: translate(0, calc(100 * 100vw / var(--page-width)));
}

@media only screen and (min-width: 768px) {
  /* Dashboard screenshot, top-left corner, clear of the title column. */
  [data-cs='1'] .case-study-image-container-1 {
    height: calc(282 * 100vw / var(--page-width));
    left: calc(40 * 100vw / var(--page-width));
    transform: translate(0, calc(-83 * 100vw / var(--page-width)));
    width: calc(440 * 100vw / var(--page-width));
  }
}

[data-cs='1'] .case-study-image-container-2 {
  height: 20vh;
  left: 50%;
  top: 6%;
  transform: none;
  width: 60%;
}

@media only screen and (min-width: 768px) {
  /* Repositioned (2026-10-28): dashboard "hero" shot moved into the open
     space below the title instead of competing for the top band - enlarged
     a little since there's room to breathe there. */
  [data-cs='1'] .case-study-image-container-2 {
    height: calc(324 * 100vw / var(--page-width));
    left: calc(821 * 100vw / var(--page-width));
    top: 50%;
    transform: translate(0, calc(31 * 100vw / var(--page-width)));
    width: calc(531 * 100vw / var(--page-width));
  }
}

[data-cs='1'] .case-study-image-container-3 {
  bottom: 6%;
  height: 20vh;
  left: 50%;
  top: auto;
  transform: none;
  width: 60%;
}

@media only screen and (min-width: 768px) {
  /* Campaigns screenshot, right column - moved up and further right
     (2026-10-28), clear of the header above it. */
  [data-cs='1'] .case-study-image-container-3 {
    display: block;
    height: calc(273 * 100vw / var(--page-width));
    left: calc(1110 * 100vw / var(--page-width));
    top: 50%;
    transform: translate(0, calc(-295 * 100vw / var(--page-width)));
    width: calc(436 * 100vw / var(--page-width));
  }
}

[data-cs='1'][data-status='current'] .case-study-image-container-1 {
  transform: var(--sm-first-img-50);
}

@media only screen and (min-width: 768px) {
  [data-cs='1'][data-status='current'] .case-study-image-container-1 {
    transform: translate(0, calc(-169 * 100vw / var(--page-width)));
  }

  [data-cs='1'][data-status='current'] .case-study-image-container-2 {
    transform: translate(0, calc(31 * 100vw / var(--page-width)));
  }
}

[data-cs='1'][data-status='current'] .case-study-image-container-3 {
  transform: none;
}

@media only screen and (min-width: 768px) {
  [data-cs='1'][data-status='current'] .case-study-image-container-3 {
    transform: translate(0, calc(-295 * 100vw / var(--page-width)));
  }
}

[data-status='previous'][data-cs='1'] .case-study-image-container-1 {
  transform: var(--sm-first-img-100);
}

@media only screen and (min-width: 768px) {
  [data-status='previous'][data-cs='1'] .case-study-image-container-1 {
    transform: translate(0, calc(-1093 * 100vw / var(--page-width)));
  }
}

@media only screen and (min-width: 768px) {
  [data-status='previous'][data-cs='1'] .case-study-image-container-2 {
    transform: translate(0, calc(-851 * 100vw / var(--page-width)));
  }
}

[data-status='previous'][data-cs='1'] .case-study-image-container-3 {
  transform: var(--sm-second-img-100);
}

@media only screen and (min-width: 768px) {
  [data-status='previous'][data-cs='1'] .case-study-image-container-3 {
    transform: translate(0, calc(-986 * 100vw / var(--page-width)));
  }
}

/* Active 2 */

/* Mobile: zoomed in and allowed to bleed past the screen edge (the [data-cs]
   box clips overflow, so this never causes horizontal scroll). */
[data-cs='2'] .case-study-image-container-1 {
  height: 20vh;
  left: -10%;
  top: 6%;
  transform: none;
  width: 60%;
}

@media only screen and (min-width: 768px) {
  /* Repositioned (2026-10-27): left column. Enlarged a touch (2026-10-28) to
     give this card a size-differentiated "hero" shot. */
  [data-cs='2'] .case-study-image-container-1 {
    height: calc(260 * 100vw / var(--page-width));
    left: calc(46 * 100vw / var(--page-width));
    top: 50%;
    transform: translate(0, calc(-160 * 100vw / var(--page-width)));
    width: calc(414 * 100vw / var(--page-width));
    z-index: 2;
  }
}

[data-cs='2'] .case-study-image-container-2,
[data-cs='2'] .case-study-image-container-5 {
  display: none;
}

@media only screen and (min-width: 768px) {
  /* areas.jpg, floating above the title, shifted right of center - sized to
     clear the fixed header (2026-10-28) instead of crowding it. */
  [data-cs='2'] .case-study-image-container-5 {
    display: block;
    height: calc(192 * 100vw / var(--page-width));
    left: calc(836 * 100vw / var(--page-width));
    top: 50%;
    transform: translate(0, calc(-332 * 100vw / var(--page-width)));
    width: calc(303 * 100vw / var(--page-width));
  }
}

[data-cs='2'] .case-study-image-container-3 {
  height: 20vh;
  left: 50%;
  right: auto;
  top: 6%;
  transform: none;
  width: 60%;
}

@media only screen and (min-width: 768px) {
  /* Floating below the title, shifted left of center. */
  [data-cs='2'] .case-study-image-container-3 {
    height: calc(229 * 100vw / var(--page-width));
    left: calc(386 * 100vw / var(--page-width));
    right: auto;
    top: 50%;
    transform: translate(0, calc(143 * 100vw / var(--page-width)));
    width: calc(372 * 100vw / var(--page-width));
  }
}

[data-cs='2'] .case-study-image-container-4 {
  bottom: 4%;
  height: 30vh;
  left: 42%;
  top: auto;
  transform: none;
  width: 55%;
}

@media only screen and (min-width: 768px) {
  /* Phone screenshot, kept at its native portrait ratio. Too tall to fit in
     the top/bottom bands without crowding the text, so it floats in its own
     column to the right of the title instead, vertically centered. */
  [data-cs='2'] .case-study-image-container-4 {
    bottom: auto;
    height: calc(465 * 100vw / var(--page-width));
    left: calc(1156 * 100vw / var(--page-width));
    top: 50%;
    transform: translate(0, calc(-103 * 100vw / var(--page-width)));
    width: calc(215 * 100vw / var(--page-width));
  }
}

[data-cs='2'][data-status='current'] .case-study-image-container-1 {
  transform: none;
}

@media only screen and (min-width: 768px) {
  [data-cs='2'][data-status='current'] .case-study-image-container-1 {
    transform: translate(0, calc(-160 * 100vw / var(--page-width)));
  }

  [data-cs='2'][data-status='current'] .case-study-image-container-2 {
    transform: translate(0, calc(-430 * 100vw / var(--page-width)));
  }
}

[data-cs='2'][data-status='current'] .case-study-image-container-3 {
  transform: translate(0, calc(42 * 100vw / var(--page-width)));
}

[data-cs='2'][data-status='current'] .case-study-image-container-4 {
  transform: none;
}

@media only screen and (min-width: 768px) {
  [data-cs='2'][data-status='current'] .case-study-image-container-3 {
    transform: translate(0, calc(143 * 100vw / var(--page-width)));
  }

  [data-cs='2'][data-status='current'] .case-study-image-container-4 {
    transform: translate(0, calc(-103 * 100vw / var(--page-width)));
  }
}

@media only screen and (min-width: 768px) {
  [data-cs='2'][data-status='current'] .case-study-image-container-5 {
    transform: translate(0, calc(-332 * 100vw / var(--page-width)));
  }
}

[data-cs='2'][data-status='previous'] .case-study-image-container-1 {
  transform: var(--sm-first-img-100);
}

@media only screen and (min-width: 768px) {
  [data-cs='2'][data-status='previous'] .case-study-image-container-1 {
    transform: translate(0, calc(-1090 * 100vw / var(--page-width)));
  }

  [data-cs='2'][data-status='previous'] .case-study-image-container-2 {
    transform: translate(0, calc(-1000 * 100vw / var(--page-width)));
  }

  [data-cs='2'][data-status='previous'] .case-study-image-container-3 {
    transform: translate(0, calc(-853 * 100vw / var(--page-width)));
  }
}

[data-cs='2'][data-status='previous'] .case-study-image-container-4 {
  transform: var(--sm-second-img-100);
}

@media only screen and (min-width: 768px) {
  [data-cs='2'][data-status='previous'] .case-study-image-container-4 {
    transform: translate(0, calc(-853 * 100vw / var(--page-width)));
  }

  [data-cs='2'][data-status='previous'] .case-study-image-container-5 {
    transform: translate(0, calc(-1090 * 100vw / var(--page-width)));
  }
}

/* Active 3 */

/* Mobile: zoomed in and allowed to bleed past the screen edge (the [data-cs]
   box clips overflow, so this never causes horizontal scroll). */
[data-cs='3'] .case-study-image-container-1 {
  height: 20vh;
  left: -10%;
  top: 6%;
  transform: none;
  width: 60%;
}

@media only screen and (min-width: 768px) {
  /* Repositioned (2026-10-27): left column. Enlarged a touch (2026-10-28) to
     give this card a size-differentiated "hero" shot. */
  [data-cs='3'] .case-study-image-container-1 {
    height: calc(277 * 100vw / var(--page-width));
    left: calc(40 * 100vw / var(--page-width));
    top: 50%;
    transform: translate(0, calc(-198 * 100vw / var(--page-width)));
    width: calc(427 * 100vw / var(--page-width));
  }
}

[data-cs='3'] .case-study-image-container-2 {
  height: 20vh;
  left: 50%;
  right: auto;
  top: 6%;
  transform: none;
  width: 60%;
}

@media only screen and (min-width: 768px) {
  /* Floating above the title, shifted right of center - sized to clear the
     fixed header (2026-10-28) instead of crowding it. */
  [data-cs='3'] .case-study-image-container-2 {
    height: calc(189 * 100vw / var(--page-width));
    left: calc(896 * 100vw / var(--page-width));
    right: auto;
    top: 50%;
    transform: translate(0, calc(-351 * 100vw / var(--page-width)));
    width: calc(287 * 100vw / var(--page-width));
  }
}

[data-cs='3'] .case-study-image-container-3 {
  bottom: 6%;
  height: 20vh;
  left: -10%;
  top: auto;
  transform: none;
  width: 60%;
}

@media only screen and (min-width: 768px) {
  /* Floating below the title, shifted left of center. */
  [data-cs='3'] .case-study-image-container-3 {
    bottom: auto;
    height: calc(250 * 100vw / var(--page-width));
    left: calc(769 * 100vw / var(--page-width));
    top: 50%;
    transform: translate(0, calc(103 * 100vw / var(--page-width)));
    width: calc(385 * 100vw / var(--page-width));
  }
}

[data-cs='3'] .case-study-image-container-4 {
  aspect-ratio: 16 / 9;
  bottom: 4%;
  height: auto;
  left: 42%;
  overflow: hidden;
  right: auto;
  top: auto;
  transform: none;
  width: 55%;
}

@media only screen and (min-width: 768px) {
  /* Scrolling payments list - 16:9 frame, zoomed in enough to read the R$
     values, right column, vertically centered. */
  [data-cs='3'] .case-study-image-container-4 {
    aspect-ratio: 16 / 9;
    bottom: auto;
    height: auto;
    left: calc(1198 * 100vw / var(--page-width));
    top: 50%;
    transform: translate(0, calc(-241 * 100vw / var(--page-width)));
    width: calc(440 * 100vw / var(--page-width));
  }
}

/* Pans from the top of the list to its exact bottom edge (no further - that
   would reveal blank space past the image) and back, continuously: no
   `0%/100%` hold and a linear timing function, so it never visibly pauses at
   either end. */
@keyframes scroll-shot {
  from { transform: translateY(0); }
  to { transform: translateY(-74%); }
}

.scroll-shot {
  animation: scroll-shot 14s linear infinite alternate;
}

[data-cs='3'][data-status='current'] .case-study-image-container-1 {
  transform: none;
}

@media only screen and (min-width: 768px) {
  [data-cs='3'][data-status='current'] .case-study-image-container-1 {
    transform: translate(0, calc(-198 * 100vw / var(--page-width)));
  }

  [data-cs='3'][data-status='current'] .case-study-image-container-2 {
    transform: translate(0, calc(-351 * 100vw / var(--page-width)));
  }

  [data-cs='3'][data-status='current'] .case-study-image-container-3 {
    transform: translate(0, calc(103 * 100vw / var(--page-width)));
  }
}

[data-cs='3'][data-status='current'] .case-study-image-container-4 {
  transform: none;
}

@media only screen and (min-width: 768px) {
  [data-cs='3'][data-status='current'] .case-study-image-container-4 {
    transform: translate(0, calc(-241 * 100vw / var(--page-width)));
  }
}

/* Redundant with container-1 (same flow screenshot, different crop) and the
   only slot that collided with the bottom corners once the title grew to two
   lines - dropped rather than fought. */
[data-cs='3'] .case-study-image-container-bg {
  display: none !important;
}

[data-cs='3'][data-status='previous'] .case-study-image-container-1 {
  transform: var(--sm-first-img-100);
}

@media only screen and (min-width: 768px) {
  [data-cs='3'][data-status='previous'] .case-study-image-container-1 {
    transform: translate(0, calc(-1090 * 100vw / var(--page-width)));
  }

  [data-cs='3'][data-status='previous'] .case-study-image-container-2 {
    transform: translate(0, calc(-1000 * 100vw / var(--page-width)));
  }

  [data-cs='3'][data-status='previous'] .case-study-image-container-3 {
    transform: translate(0, calc(-853 * 100vw / var(--page-width)));
  }
}

[data-cs='3'][data-status='previous'] .case-study-image-container-4 {
  transform: var(--sm-second-img-100);
}

@media only screen and (min-width: 768px) {
  [data-cs='3'][data-status='previous'] .case-study-image-container-4 {
    transform: translate(0, calc(-853 * 100vw / var(--page-width)));
  }
}

/* Active 4 */

/* Mobile: zoomed in and allowed to bleed past the screen edge (the [data-cs]
   box clips overflow, so this never causes horizontal scroll). */
[data-cs='4'] .case-study-image-container-1 {
  height: 20vh;
  left: -10%;
  top: 6%;
  transform: none;
  width: 60%;
}

@media only screen and (min-width: 768px) {
  /* Repositioned (2026-10-27): left column. Enlarged a touch (2026-10-28) to
     give this card a size-differentiated "hero" shot. */
  [data-cs='4'] .case-study-image-container-1 {
    height: calc(232 * 100vw / var(--page-width));
    left: calc(486 * 100vw / var(--page-width));
    top: 50%;
    transform: translate(0, calc(136 * 100vw / var(--page-width)));
    width: calc(378 * 100vw / var(--page-width));
  }
}

[data-cs='4'] .case-study-image-container-2 {
  height: 20vh;
  left: 50%;
  right: auto;
  top: 6%;
  transform: none;
  width: 60%;
}

@media only screen and (min-width: 768px) {
  /* Floating above the title, shifted right of center - sized to clear the
     fixed header (2026-10-28) instead of crowding it. */
  [data-cs='4'] .case-study-image-container-2 {
    height: calc(262 * 100vw / var(--page-width));
    left: calc(61 * 100vw / var(--page-width));
    right: auto;
    top: 50%;
    transform: translate(0, calc(-169 * 100vw / var(--page-width)));
    width: calc(387 * 100vw / var(--page-width));
  }
}

[data-cs='4'] .case-study-image-container-3 {
  bottom: 6%;
  height: 20vh;
  left: -10%;
  top: auto;
  transform: none;
  width: 60%;
}

[data-cs='4'] .case-study-image-container-4 {
  bottom: 6%;
  height: 20vh;
  left: 50%;
  top: auto;
  transform: none;
  width: 60%;
}

@media only screen and (min-width: 768px) {
  /* Floating below the title, shifted left of center. */
  [data-cs='4'] .case-study-image-container-3 {
    display: block;
    bottom: auto;
    height: calc(225 * 100vw / var(--page-width));
    left: calc(820 * 100vw / var(--page-width));
    top: 50%;
    transform: translate(0, calc(-356 * 100vw / var(--page-width)));
    width: calc(364 * 100vw / var(--page-width));
  }

  /* arquivos indexados - right column. */
  [data-cs='4'] .case-study-image-container-4 {
    display: block;
    bottom: auto;
    height: calc(304 * 100vw / var(--page-width));
    left: calc(1043 * 100vw / var(--page-width));
    top: 50%;
    transform: translate(0, calc(-88 * 100vw / var(--page-width)));
    width: calc(484 * 100vw / var(--page-width));
  }
}

[data-cs='4'][data-status='current'] .case-study-image-container-1 {
  transform: none;
}

@media only screen and (min-width: 768px) {
  [data-cs='4'][data-status='current'] .case-study-image-container-1 {
    transform: translate(0, calc(136 * 100vw / var(--page-width)));
  }

  [data-cs='4'][data-status='current'] .case-study-image-container-2 {
    transform: translate(0, calc(-169 * 100vw / var(--page-width)));
  }
}

[data-cs='4'][data-status='current'] .case-study-image-container-3 {
  transform: none;
}

@media only screen and (min-width: 768px) {
  [data-cs='4'][data-status='current'] .case-study-image-container-3 {
    transform: translate(0, calc(-356 * 100vw / var(--page-width)));
  }
}

[data-cs='4'][data-status='previous'] .case-study-image-container-1 {
  transform: var(--sm-first-img-100);
}

@media only screen and (min-width: 768px) {
  [data-cs='4'][data-status='previous'] .case-study-image-container-1 {
    transform: translate(0, calc(-1090 * 100vw / var(--page-width)));
  }

  [data-cs='4'][data-status='previous'] .case-study-image-container-2 {
    transform: translate(0, calc(-853 * 100vw / var(--page-width)));
  }
}

[data-cs='4'][data-status='previous'] .case-study-image-container-3 {
  transform: var(--sm-second-img-100);
}

@media only screen and (min-width: 768px) {
  [data-cs='4'][data-status='previous'] .case-study-image-container-3 {
    transform: translate(0, calc(-910 * 100vw / var(--page-width)));
  }
}

[data-cs='4'][data-status='current'] .case-study-image-container-4 {
  transform: none;
}

@media only screen and (min-width: 768px) {
  [data-cs='4'][data-status='current'] .case-study-image-container-4 {
    transform: translate(0, calc(-88 * 100vw / var(--page-width)));
  }
}

[data-cs='4'][data-status='previous'] .case-study-image-container-4 {
  transform: var(--sm-second-img-100);
}

@media only screen and (min-width: 768px) {
  [data-cs='4'][data-status='previous'] .case-study-image-container-4 {
    transform: translate(0, calc(-910 * 100vw / var(--page-width)));
  }
}

/* Active 5 */

/* Mobile: zoomed in and allowed to bleed past the screen edge (the [data-cs]
   box clips overflow, so this never causes horizontal scroll). */
[data-cs='5'] .case-study-image-container-1 {
  bottom: 6%;
  height: 20vh;
  left: -10%;
  top: auto;
  transform: none;
  width: 60%;
}

@media only screen and (min-width: 768px) {
  /* Repositioned (2026-10-27): floating below the title, shifted left. */
  [data-cs='5'] .case-study-image-container-1 {
    bottom: auto;
    height: calc(163 * 100vw / var(--page-width));
    left: calc(362 * 100vw / var(--page-width));
    top: 50%;
    transform: translate(0, calc(193 * 100vw / var(--page-width)));
    width: calc(268 * 100vw / var(--page-width));
  }
}

[data-cs='5'] .case-study-image-container-2 {
  height: 20vh;
  left: -10%;
  top: 6%;
  transform: none;
  width: 60%;
}

@media only screen and (min-width: 768px) {
  /* Left column. Enlarged a touch (2026-10-28) to give this card a
     size-differentiated "hero" shot. */
  [data-cs='5'] .case-study-image-container-2 {
    height: calc(263 * 100vw / var(--page-width));
    left: calc(40 * 100vw / var(--page-width));
    top: 50%;
    transform: translate(0, calc(-139 * 100vw / var(--page-width)));
    width: calc(417 * 100vw / var(--page-width));
  }
}

[data-cs='5'] .case-study-image-container-3 {
  height: 20vh;
  left: 50%;
  right: auto;
  top: 6%;
  transform: none;
  width: 60%;
}

@media only screen and (min-width: 768px) {
  /* Second right-side image, below the main right column. */
  [data-cs='5'] .case-study-image-container-3 {
    height: calc(239 * 100vw / var(--page-width));
    left: calc(888 * 100vw / var(--page-width));
    right: auto;
    top: 50%;
    transform: translate(0, calc(103 * 100vw / var(--page-width)));
    width: calc(472 * 100vw / var(--page-width));
  }
}

[data-cs='5'] .case-study-image-container-4 {
  bottom: 6%;
  height: 20vh;
  left: 50%;
  right: auto;
  top: auto;
  transform: none;
  width: 60%;
}

@media only screen and (min-width: 768px) {
  /* Floating above the title, shifted right of center - sized to clear the
     fixed header (2026-10-28) instead of crowding it. */
  [data-cs='5'] .case-study-image-container-4 {
    bottom: auto;
    height: calc(213 * 100vw / var(--page-width));
    left: calc(990 * 100vw / var(--page-width));
    right: auto;
    top: 50%;
    transform: translate(0, calc(-332 * 100vw / var(--page-width)));
    width: calc(270 * 100vw / var(--page-width));
  }
}

[data-cs='5'] .case-study-image-container-5 {
  display: none;
}

@media only screen and (min-width: 768px) {
  /* Overview screenshot - right column, vertically centered. */
  [data-cs='5'] .case-study-image-container-5 {
    display: block;
    height: calc(152 * 100vw / var(--page-width));
    left: calc(1282 * 100vw / var(--page-width));
    top: 50%;
    transform: translate(0, calc(-103 * 100vw / var(--page-width)));
    width: calc(235 * 100vw / var(--page-width));
  }
}

[data-cs='5'][data-status='current'] .case-study-image-container-1 {
  transform: none;
}

@media only screen and (min-width: 768px) {
  [data-cs='5'][data-status='current'] .case-study-image-container-1 {
    transform: translate(0, calc(193 * 100vw / var(--page-width)));
  }
}

[data-cs='5'][data-status='current'] .case-study-image-container-2 {
  transform: none;
}

@media only screen and (min-width: 768px) {
  [data-cs='5'][data-status='current'] .case-study-image-container-2 {
    transform: translate(0, calc(-139 * 100vw / var(--page-width)));
  }

  [data-cs='5'][data-status='current'] .case-study-image-container-3 {
    transform: translate(0, calc(103 * 100vw / var(--page-width)));
  }

  [data-cs='5'][data-status='current'] .case-study-image-container-4 {
    transform: translate(0, calc(-332 * 100vw / var(--page-width)));
  }

  [data-cs='5'][data-status='current'] .case-study-image-container-5 {
    transform: translate(0, calc(-103 * 100vw / var(--page-width)));
  }
}

/* For transition to case study we are copying these videos instead of cloning
to avoid loading cause due to cloning. By copying the video does not re-load
preventing a visual flicker while it is displayed. */
[data-case-study-video] {
  display: none;
}

/* Arrow after a linked card title, so it reads as clickable. */
.title-arrow {
  display: inline-block;
  height: 0.42em;
  margin-left: 0.2em;
  transition: transform 0.3s;
  vertical-align: 0.12em;
  width: 0.42em;
}

.work-case-study-headline .title span:last-child {
  white-space: nowrap;
}

.title:hover .title-arrow,
.title:focus .title-arrow {
  transform: translateX(0.2em);
}

/* Stack chips sit over the card images in places (UtmZap's Meta CAPI chip
   overlaps the dashboard shot); a dark frosted fill keeps them readable
   instead of letting the screenshot show through. */
.work-tech-icons [class*='chip'] {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(11, 14, 15, 0.72);
}
