/* Isolated desktop/mobile styles for services and portfolio showcase sections. */

.showcase-entry {
  position: relative;
  z-index: 1;
}

.showcase-entry--services {
  isolation: isolate;
  overflow-x: clip;
  overflow-y: visible;
  background: linear-gradient(
    180deg,
    var(--home-story-band-background, #f3f3f3) 0%,
    var(--home-story-band-background, #f3f3f3) calc(100% - clamp(120px, 12vw, 220px)),
    var(--home-faq-surface-start, #f6fbfd) 100%
  );
}

.showcase-entry--services::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    135deg,
    rgba(20, 50, 80, 0.045) 0 1px,
    transparent 1px 16px
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    #000000 12%,
    #000000 88%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    #000000 12%,
    #000000 88%,
    rgba(0, 0, 0, 0) 100%
  );
}

.showcase-desktop-section {
  --showcase-desktop-height: var(--screen-frame-height);
  --showcase-desktop-top-safe: max(
    clamp(116px, 14vh, 148px),
    calc(var(--floating-header-clearance, 108px) + 18px)
  );
  --showcase-desktop-bottom-safe: clamp(28px, 3.2vh, 40px);
  --showcase-desktop-card-offset: 103;
  --showcase-desktop-viewport-height: calc(
    var(--showcase-desktop-height)
    - var(--showcase-desktop-top-safe)
    - var(--showcase-desktop-bottom-safe)
  );
  --showcase-desktop-frame-radius: clamp(30px, 3vw, 42px);
  position: relative;
  display: block;
  height: var(--showcase-desktop-height);
  min-height: var(--showcase-desktop-height);
  background: transparent;
  overflow: clip;
  z-index: 1;
}

.showcase-mobile-section {
  display: none;
}

.showcase-desktop-shell {
  position: relative;
  z-index: 1;
  min-height: var(--showcase-desktop-height);
  padding-top: var(--showcase-desktop-top-safe);
  padding-bottom: var(--showcase-desktop-bottom-safe);
  box-sizing: border-box;
}

.showcase-desktop-shell.home-scene-shell {
  width: var(--home-desktop-scene-shell-width);
  max-width: var(--home-desktop-scene-shell-width);
  margin-inline: auto;
  padding-inline: 0;
}

.showcase-desktop-layout {
  display: grid;
  grid-template-columns: minmax(260px, clamp(290px, 30vw, 420px)) minmax(0, 1fr);
  gap: clamp(24px, 2.4vw, 44px);
  width: 100%;
  height: var(--showcase-desktop-viewport-height);
  min-height: 0;
  box-sizing: border-box;
}

.showcase-desktop-copy-pane,
.showcase-desktop-cards-pane {
  min-width: 0;
  min-height: 0;
}

.showcase-desktop-copy-pane {
  display: flex;
}

.showcase-desktop-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(24px, 4vh, 44px);
  min-height: 0;
}

.showcase-desktop-copy-head {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vh, 28px);
  max-width: 17rem;
}

.showcase-desktop-title {
  margin: 0;
  font-size: clamp(3.2rem, 4.4vw, 5.6rem);
  line-height: 0.84;
  letter-spacing: -0.08em;
  color: var(--text-main);
}

.showcase-desktop-note {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(1.04rem, 1.08vw, 1.24rem);
  line-height: 1.34;
  color: var(--text-main);
}

.showcase-desktop-copy-foot {
  display: flex;
  align-items: flex-end;
}

.showcase-desktop-link {
  min-width: clamp(214px, 16vw, 254px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.showcase-desktop-link > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: translateY(0.05em);
}

.showcase-desktop-cards-pane {
  display: flex;
  position: relative;
}

.showcase-desktop-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.showcase-desktop-card-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.showcase-desktop-card {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  min-height: var(--showcase-desktop-viewport-height);
  height: var(--showcase-desktop-viewport-height);
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 3vw, 46px);
  box-sizing: border-box;
  background: var(--showcase-desktop-card-surface, linear-gradient(135deg, #f8fbff 0%, #eef5fb 100%));
  overflow: hidden;
  border-radius: var(--showcase-desktop-frame-radius);
  border: 1px solid rgba(88, 176, 255, 0.24);
  pointer-events: none;
  transform: translate3d(0, calc(var(--showcase-desktop-card-offset) * 1%), 0);
  backface-visibility: hidden;
  transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-desktop-card:first-child,
.showcase-desktop-card.is-active {
  transform: translate3d(0, 0, 0);
}

.showcase-desktop-card.is-active {
  z-index: 3;
  pointer-events: auto;
}

.showcase-desktop-card-inner {
  width: min(100%, 520px);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vh, 24px);
}

.showcase-desktop-card-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-desktop-card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 120px;
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(88, 176, 255, 0.34);
  background: rgba(88, 176, 255, 0.11);
  color: var(--accent-color);
  font-family: var(--font-ui-accent);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  line-height: 1;
}

.showcase-desktop-card-title {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  color: var(--text-main);
}

.showcase-desktop-card-text {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(0.98rem, 1vw, 1.08rem);
  line-height: 1.42;
  color: var(--text-muted);
}

.services-showcase-desktop-section .showcase-desktop-card:nth-child(1) {
  --showcase-desktop-card-surface: linear-gradient(135deg, #f8fbff 0%, #e9f2ff 100%);
}

.services-showcase-desktop-section .showcase-desktop-card:nth-child(2) {
  --showcase-desktop-card-surface: linear-gradient(135deg, #fffaf4 0%, #f3eadc 100%);
}

.services-showcase-desktop-section .showcase-desktop-card:nth-child(3) {
  --showcase-desktop-card-surface: linear-gradient(135deg, #f8fafc 0%, #e9eef5 100%);
}

.services-showcase-desktop-section .showcase-desktop-card:nth-child(4) {
  --showcase-desktop-card-surface: linear-gradient(135deg, #f7fffd 0%, #e6f3ee 100%);
}

.services-showcase-desktop-section .showcase-desktop-card:nth-child(5) {
  --showcase-desktop-card-surface: linear-gradient(135deg, #fcf9ff 0%, #eee7f7 100%);
}

.services-showcase-desktop-section .showcase-desktop-card.showcase-card--branding,
.services-showcase-mobile-section .showcase-mobile-card.showcase-card--branding,
.services-showcase-desktop-section .showcase-desktop-card.showcase-card--website,
.services-showcase-mobile-section .showcase-mobile-card.showcase-card--website,
.services-showcase-desktop-section .showcase-desktop-card.showcase-card--dashboards,
.services-showcase-mobile-section .showcase-mobile-card.showcase-card--dashboards,
.services-showcase-desktop-section .showcase-desktop-card.showcase-card--support,
.services-showcase-mobile-section .showcase-mobile-card.showcase-card--support,
.services-showcase-desktop-section .showcase-desktop-card.showcase-card--integrations,
.services-showcase-mobile-section .showcase-mobile-card.showcase-card--integrations {
  border-color: rgba(255, 255, 255, 0.18);
}

.services-showcase-desktop-section .showcase-desktop-card.showcase-card--branding,
.services-showcase-mobile-section .showcase-mobile-card.showcase-card--branding {
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.14) 0%, rgba(5, 8, 12, 0.48) 56%, rgba(5, 8, 12, 0.74) 100%),
    url("../../branding-g.jpg") center / cover no-repeat;
}

.services-showcase-desktop-section .showcase-desktop-card.showcase-card--website,
.services-showcase-mobile-section .showcase-mobile-card.showcase-card--website {
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.08) 0%, rgba(5, 8, 12, 0.44) 54%, rgba(5, 8, 12, 0.78) 100%),
    radial-gradient(circle at 20% 82%, rgba(5, 8, 12, 0.56) 0%, rgba(5, 8, 12, 0) 42%),
    url("../../sites-g.jpg") center / cover no-repeat;
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.08) 0%, rgba(5, 8, 12, 0.44) 54%, rgba(5, 8, 12, 0.78) 100%),
    radial-gradient(circle at 20% 82%, rgba(5, 8, 12, 0.56) 0%, rgba(5, 8, 12, 0) 42%),
    image-set(
        url("../../sites-g.webp") type("image/webp"),
        url("../../sites-g.jpg") type("image/jpeg")
      )
      center / cover no-repeat;
}

.services-showcase-desktop-section .showcase-desktop-card.showcase-card--dashboards,
.services-showcase-mobile-section .showcase-mobile-card.showcase-card--dashboards {
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.1) 0%, rgba(5, 8, 12, 0.42) 52%, rgba(5, 8, 12, 0.78) 100%),
    radial-gradient(circle at 18% 84%, rgba(5, 8, 12, 0.5) 0%, rgba(5, 8, 12, 0) 44%),
    url("../../interfeys-g.jpg") center / cover no-repeat;
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.1) 0%, rgba(5, 8, 12, 0.42) 52%, rgba(5, 8, 12, 0.78) 100%),
    radial-gradient(circle at 18% 84%, rgba(5, 8, 12, 0.5) 0%, rgba(5, 8, 12, 0) 44%),
    image-set(
        url("../../interfeys-g.webp") type("image/webp"),
        url("../../interfeys-g.jpg") type("image/jpeg")
      )
      center / cover no-repeat;
}

.services-showcase-desktop-section .showcase-desktop-card.showcase-card--support,
.services-showcase-mobile-section .showcase-mobile-card.showcase-card--support {
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.1) 0%, rgba(5, 8, 12, 0.44) 54%, rgba(5, 8, 12, 0.78) 100%),
    radial-gradient(circle at 20% 84%, rgba(5, 8, 12, 0.52) 0%, rgba(5, 8, 12, 0) 44%),
    url("../../support-g.jpg") center / cover no-repeat;
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.1) 0%, rgba(5, 8, 12, 0.44) 54%, rgba(5, 8, 12, 0.78) 100%),
    radial-gradient(circle at 20% 84%, rgba(5, 8, 12, 0.52) 0%, rgba(5, 8, 12, 0) 44%),
    image-set(
        url("../../support-g.webp") type("image/webp"),
        url("../../support-g.jpg") type("image/jpeg")
      )
      center / cover no-repeat;
}

.services-showcase-desktop-section .showcase-desktop-card.showcase-card--integrations,
.services-showcase-mobile-section .showcase-mobile-card.showcase-card--integrations {
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.1) 0%, rgba(5, 8, 12, 0.44) 54%, rgba(5, 8, 12, 0.8) 100%),
    radial-gradient(circle at 22% 84%, rgba(5, 8, 12, 0.54) 0%, rgba(5, 8, 12, 0) 44%),
    url("../../dashboards.jpg") center / cover no-repeat;
}

.services-showcase-desktop-section .showcase-desktop-card.showcase-card--branding .showcase-desktop-card-title,
.services-showcase-mobile-section .showcase-mobile-card.showcase-card--branding .showcase-mobile-card-title,
.services-showcase-desktop-section .showcase-desktop-card.showcase-card--website .showcase-desktop-card-title,
.services-showcase-mobile-section .showcase-mobile-card.showcase-card--website .showcase-mobile-card-title,
.services-showcase-desktop-section .showcase-desktop-card.showcase-card--dashboards .showcase-desktop-card-title,
.services-showcase-mobile-section .showcase-mobile-card.showcase-card--dashboards .showcase-mobile-card-title,
.services-showcase-desktop-section .showcase-desktop-card.showcase-card--support .showcase-desktop-card-title,
.services-showcase-mobile-section .showcase-mobile-card.showcase-card--support .showcase-mobile-card-title,
.services-showcase-desktop-section .showcase-desktop-card.showcase-card--integrations .showcase-desktop-card-title,
.services-showcase-mobile-section .showcase-mobile-card.showcase-card--integrations .showcase-mobile-card-title {
  color: #ffffff;
}

.services-showcase-desktop-section .showcase-desktop-card.showcase-card--branding .showcase-desktop-card-text,
.services-showcase-mobile-section .showcase-mobile-card.showcase-card--branding .showcase-mobile-card-text,
.services-showcase-desktop-section .showcase-desktop-card.showcase-card--website .showcase-desktop-card-text,
.services-showcase-mobile-section .showcase-mobile-card.showcase-card--website .showcase-mobile-card-text,
.services-showcase-desktop-section .showcase-desktop-card.showcase-card--dashboards .showcase-desktop-card-text,
.services-showcase-mobile-section .showcase-mobile-card.showcase-card--dashboards .showcase-mobile-card-text,
.services-showcase-desktop-section .showcase-desktop-card.showcase-card--support .showcase-desktop-card-text,
.services-showcase-mobile-section .showcase-mobile-card.showcase-card--support .showcase-mobile-card-text,
.services-showcase-desktop-section .showcase-desktop-card.showcase-card--integrations .showcase-desktop-card-text,
.services-showcase-mobile-section .showcase-mobile-card.showcase-card--integrations .showcase-mobile-card-text {
  color: rgba(255, 255, 255, 0.82);
}

.services-showcase-desktop-section .showcase-desktop-card.showcase-card--branding .showcase-desktop-card-index,
.services-showcase-desktop-section .showcase-desktop-card.showcase-card--website .showcase-desktop-card-index,
.services-showcase-desktop-section .showcase-desktop-card.showcase-card--dashboards .showcase-desktop-card-index,
.services-showcase-desktop-section .showcase-desktop-card.showcase-card--support .showcase-desktop-card-index,
.services-showcase-desktop-section .showcase-desktop-card.showcase-card--integrations .showcase-desktop-card-index {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.services-showcase-desktop-section .showcase-desktop-copy-foot {
  justify-content: center;
  align-items: center;
}

.portfolio-showcase-desktop-section .showcase-desktop-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, clamp(360px, 32vw, 480px));
}

.portfolio-showcase-desktop-section .showcase-desktop-copy-pane {
  order: 2;
}

.portfolio-showcase-desktop-section .showcase-desktop-cards-pane {
  order: 1;
}

.portfolio-showcase-desktop-section .showcase-desktop-copy {
  padding-block: clamp(8px, 1vh, 16px);
}

.portfolio-showcase-desktop-section .showcase-desktop-copy-head {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  align-items: flex-end;
  text-align: right;
}

.portfolio-showcase-desktop-section .showcase-desktop-title {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: clamp(2.4rem, 3vw, 4.1rem);
  line-height: 0.86;
  letter-spacing: -0.068em;
  text-align: right;
}

.portfolio-showcase-desktop-section .showcase-desktop-note {
  max-width: 18ch;
  margin-left: auto;
  text-align: right;
}

.portfolio-showcase-desktop-section .showcase-desktop-copy-foot {
  justify-content: center;
  align-items: center;
}

.portfolio-showcase-desktop-section .showcase-desktop-link {
  min-width: clamp(224px, 17vw, 268px);
}

.portfolio-showcase-desktop-section .showcase-desktop-card {
  border-color: rgba(217, 119, 6, 0.16);
}

.portfolio-showcase-desktop-section .showcase-desktop-card-index {
  border-color: rgba(217, 119, 6, 0.26);
  background: rgba(217, 119, 6, 0.08);
  color: #b45309;
}

.portfolio-showcase-desktop-section .showcase-desktop-card:nth-child(1) {
  --showcase-desktop-card-surface: linear-gradient(135deg, #fff6eb 0%, #f4e4d0 100%);
}

.portfolio-showcase-desktop-section .showcase-desktop-card:nth-child(2) {
  --showcase-desktop-card-surface: linear-gradient(135deg, #f7f7f6 0%, #e7e4df 100%);
}

.portfolio-showcase-desktop-section .showcase-desktop-card:nth-child(3) {
  --showcase-desktop-card-surface: linear-gradient(135deg, #eef5fb 0%, #dce8f3 100%);
}

.portfolio-showcase-desktop-section .showcase-desktop-card:nth-child(4) {
  --showcase-desktop-card-surface: linear-gradient(135deg, #fff8f2 0%, #f2ddd0 100%);
}

.portfolio-showcase-desktop-section .showcase-desktop-card:nth-child(5) {
  --showcase-desktop-card-surface: linear-gradient(135deg, #f7fbf9 0%, #dfece6 100%);
}

.portfolio-showcase-desktop-section .showcase-desktop-card:nth-child(6) {
  --showcase-desktop-card-surface: linear-gradient(135deg, #f7f4ff 0%, #e5def5 100%);
}

@media (min-width: 951px) {
  .showcase-desktop-section.is-scene-active .showcase-desktop-card {
    will-change: transform;
  }
}

@media (max-width: 950px) {
  .showcase-desktop-section {
    display: none;
  }

  .showcase-mobile-section {
    --showcase-mobile-height: var(--screen-frame-height);
    --showcase-mobile-scroll-distance: 0px;
    --showcase-mobile-grid-gutter: 16px;
    --showcase-mobile-inline-gutter: var(--showcase-mobile-grid-gutter);
    --showcase-mobile-block-gap: 14px;
    --showcase-mobile-head-gap: 8px;
    --showcase-mobile-card-padding: clamp(18px, 4.8vw, 22px);
    --showcase-mobile-card-gap: 12px;
    --showcase-mobile-card-shadow-bleed: 0px;
    --showcase-mobile-card-size: calc(100vw - (var(--showcase-mobile-grid-gutter) * 2));
    --showcase-mobile-top-safe: max(
      82px,
      calc(var(--floating-header-clearance, 108px) + 2px)
    );
    --showcase-mobile-bottom-safe: 16px;
    --showcase-mobile-viewport-height: calc(
      var(--showcase-mobile-height)
      - var(--showcase-mobile-top-safe)
      - var(--showcase-mobile-bottom-safe)
    );
    position: relative;
    display: block;
    min-height: calc(
      var(--showcase-mobile-height)
      + var(--showcase-mobile-scroll-distance)
    );
    overflow: visible;
    overflow-anchor: none;
  }

  .showcase-entry--services {
    overflow: visible;
  }

  .showcase-mobile-shell.home-scene-shell {
    position: sticky;
    top: 0;
    min-height: var(--showcase-mobile-height);
    height: var(--showcase-mobile-height);
    padding-top: var(--showcase-mobile-top-safe);
    padding-bottom: var(--showcase-mobile-bottom-safe);
    padding-inline: var(--showcase-mobile-inline-gutter);
    box-sizing: border-box;
    overflow-anchor: none;
  }

  .showcase-mobile-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "copy-head"
      "cards"
      "copy-foot";
    gap: var(--showcase-mobile-block-gap);
    height: var(--showcase-mobile-viewport-height);
    min-height: 0;
  }

  .showcase-mobile-copy-head {
    grid-area: copy-head;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--showcase-mobile-head-gap);
    padding-top: 8px;
    text-align: right;
    box-sizing: border-box;
  }

  .showcase-mobile-title {
    margin: 0;
    max-width: 10ch;
    text-align: right;
    font-size: clamp(2.34rem, 8.2vw, 3.48rem);
    line-height: 0.9;
    letter-spacing: -0.07em;
    color: var(--text-main);
  }

  .showcase-mobile-note {
    margin: 0 0 0 auto;
    max-width: min(24ch, 88vw);
    text-align: right;
    font-size: clamp(0.94rem, 4.15vw, 1.1rem);
    line-height: 1.18;
    color: var(--text-main);
    text-wrap: balance;
  }

  .showcase-mobile-cards-pane {
    grid-area: cards;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-inline: 0;
    overflow: visible;
  }

  .showcase-mobile-frame {
    position: relative;
    width: 100%;
    min-width: 100%;
    max-width: none;
    height: calc(var(--showcase-mobile-card-size) + (var(--showcase-mobile-card-shadow-bleed) * 2));
    min-height: calc(var(--showcase-mobile-card-size) + (var(--showcase-mobile-card-shadow-bleed) * 2));
    padding-block: var(--showcase-mobile-card-shadow-bleed);
    box-sizing: border-box;
    overflow: hidden;
    touch-action: pan-y;
  }

  .showcase-mobile-frame::before,
  .showcase-mobile-frame::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: max(0px, calc(((100vw - var(--showcase-mobile-card-size)) / 2) - var(--showcase-mobile-card-gap)));
    background: var(--home-story-band-background, #f3f3f3);
    pointer-events: none;
  }

  .showcase-mobile-frame::before {
    left: 0;
  }

  .showcase-mobile-frame::after {
    right: 0;
  }

  .showcase-mobile-card-stack {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: max-content;
    min-width: 100%;
    height: 100%;
    gap: var(--showcase-mobile-card-gap);
    padding-inline: calc((100vw - var(--showcase-mobile-card-size)) / 2);
    box-sizing: border-box;
    transition: transform 0.46s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    overflow-anchor: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .showcase-mobile-card {
    position: relative;
    flex: 0 0 var(--showcase-mobile-card-size);
    width: var(--showcase-mobile-card-size);
    min-width: var(--showcase-mobile-card-size);
    min-height: var(--showcase-mobile-card-size);
    height: var(--showcase-mobile-card-size);
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    padding: var(--showcase-mobile-card-padding);
    border: 1px solid rgba(0, 124, 235, 0.18);
    border-radius: clamp(32px, 8vw, 40px);
    background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
    box-shadow: none;
    overflow: hidden;
  }

  .showcase-mobile-card-inner {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
  }

  .showcase-mobile-card-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: min(100%, 19rem);
  }

  .showcase-mobile-card-title {
    margin: 0;
    max-width: 9ch;
    font-size: clamp(1.86rem, 7vw, 2.5rem);
    line-height: 0.92;
    letter-spacing: -0.055em;
    color: var(--text-main);
  }

  .showcase-mobile-card-text {
    margin: 0;
    max-width: 22ch;
    font-size: 0.95rem;
    line-height: 1.42;
    color: var(--text-muted);
  }

  .showcase-mobile-copy-foot {
    grid-area: copy-foot;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-inline: 0;
  }

  .showcase-mobile-copy-foot .premium-btn-small.showcase-mobile-link {
    box-sizing: border-box;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    padding: 8px 14px;
    font-family: var(--font-ui-accent);
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    min-width: min(100%, 172px);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    line-height: 1;
  }

  .showcase-mobile-copy-foot .premium-btn-small.showcase-mobile-link span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: translateY(0.05em);
  }

  .portfolio-showcase-mobile-section .showcase-mobile-note {
    max-width: min(24ch, 88vw);
  }

  .services-showcase-mobile-section {
    --showcase-mobile-scroll-distance: calc(
      (var(--showcase-mobile-card-size) + var(--showcase-mobile-card-gap)) * 4
    );
  }
}

@media (max-width: 768px) {
  .showcase-mobile-section {
    --showcase-mobile-grid-gutter: 14px;
    --showcase-mobile-inline-gutter: var(--showcase-mobile-grid-gutter);
    --showcase-mobile-block-gap: 8px;
    --showcase-mobile-head-gap: 6px;
    --showcase-mobile-card-padding: clamp(16px, 5vw, 20px);
    --showcase-mobile-card-gap: 10px;
    --showcase-mobile-card-shadow-bleed: 0px;
    --showcase-mobile-top-safe: max(
      64px,
      calc(var(--floating-header-clearance, 108px) + 6px)
    );
    --showcase-mobile-bottom-safe: 10px;
  }

  .showcase-mobile-layout {
    gap: var(--showcase-mobile-block-gap);
  }

  .showcase-mobile-card {
    padding: var(--showcase-mobile-card-padding);
    box-shadow: none;
  }

  .showcase-mobile-card-title {
    font-size: clamp(1.72rem, 7.1vw, 2.16rem);
  }

  .showcase-mobile-card-text {
    max-width: 24ch;
    font-size: 0.94rem;
  }
}

@media (max-width: 430px) {
  .showcase-mobile-title {
    font-size: clamp(2.1rem, 8.1vw, 2.72rem);
  }

  .showcase-mobile-note {
    max-width: min(25ch, 88vw);
    font-size: clamp(0.86rem, 3.75vw, 0.98rem);
    line-height: 1.12;
  }

  .showcase-mobile-copy-foot .premium-btn-small.showcase-mobile-link {
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (max-width: 768px) and (orientation: landscape) and (max-height: 720px) {
  .showcase-mobile-section {
    --showcase-mobile-grid-gutter: 14px;
    --showcase-mobile-inline-gutter: var(--showcase-mobile-grid-gutter);
    --showcase-mobile-block-gap: 10px;
    --showcase-mobile-card-padding: 16px;
    --showcase-mobile-card-gap: 10px;
    --showcase-mobile-card-shadow-bleed: 0px;
    --showcase-mobile-top-safe: max(
      70px,
      calc(var(--floating-header-clearance, 108px) + 0px)
    );
    --showcase-mobile-bottom-safe: 12px;
  }

  .showcase-mobile-card {
    padding: var(--showcase-mobile-card-padding);
  }
}
