/* Figma 52:902: mobile homepage. Desktop and About retain their existing styles. */
.ecosystem__mobile-rings {
  display: none;
}

@media (max-width: 640px) {
  .page-home {
    --header-height: 76px;
  }

  .page-home .jj-container {
    width: calc(100% - 40px);
    max-width: none;
  }

  .page-home .jj-section {
    padding-block: 36px;
  }

  .page-home .jj-section__head {
    gap: 18px;
    margin-bottom: 32px;
  }

  .page-home .jj-section__title,
  .page-home .expertise__title {
    font: 700 28px/1.3 var(--font-heading);
    letter-spacing: -.03em;
  }

  .page-home .jj-section__accent {
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: -.04em;
    color: #345585;
  }

  .page-home .jj-section__intro {
    font-size: var(--text-base, 16px);
    line-height: 1.5;
  }

  .page-home .jj-section__rule {
    width: 80px;
    height: 5px;
    margin-top: 18px;
  }

  .page-home .hero {
    --hero-height: 668px;
  }

  .page-home .hero__inner {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .page-home .hero__eyebrow {
    font: 500 12px/1.2 var(--font-body);
    padding: 4px 10px;
    margin-bottom: 10px;
    background-color: #d1d6dc;
    border-radius: 4px;
    color: #0f1e35;
    display: inline-flex;
    align-items: center;
  }

  .page-home .hero__kicker {
    font: 400 23px/1.12 var(--font-heading);
    letter-spacing: -.02em;
    margin-bottom: 8px;
  }

  .page-home .hero__title {
    font: 800 clamp(43px, 14.36vw, 56px)/.94 var(--font-heading);
    letter-spacing: -.04em;
    margin-bottom: 26px;
    left: -.025em;
  }

  .page-home .hero__copy {
    font-size: var(--text-base, 16px);
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .page-home .hero__body .jj-btn {
    height: 42px;
    padding: 0 18px;
    font-size: 12px;
  }

  .page-home .event-pill {
    flex-wrap: nowrap;
    overflow: hidden;
    justify-content: flex-start;
    gap: 0;
    min-height: 48px;
    height: 48px;
    border-radius: 90px;
    padding: 0 14px;
  }

  .page-home .event-pill > span,
  .page-home .event-pill__group > span,
  .page-home .event-pill__item {
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .page-home .hero__ticker {
    min-width: 0;
  }

  .page-home .carousel__controls {
    display: none;
  }

  .page-home .carousel__track {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    gap: 12px;
    overflow: visible;
  }

  .page-home .feature-card,
  .page-home .feature-card.is-featured {
    width: 100%;
    height: 188px;
    border-radius: 16px;
  }

  .page-home .feature-card__body {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
  }

  .page-home .feature-card::after {
    background: linear-gradient(180deg, transparent 30%, rgba(18, 54, 111, .8));
  }

  .page-home .feature-card__title {
    font-size: 15px;
    font-weight: 600;
  }

  .page-home .feature-card__text {
    display: block;
    font-size: 10px;
    line-height: 1.35;
    margin-top: 6px;
  }

  .page-home .feature-card__link {
    display: inline-flex;
    font-size: 10px;
    margin-top: 6px;
  }

  .page-home .expertise__body {
    margin-top: 32px;
    display: block;
  }

  .page-home .expertise__trigger {
    font-size: 19px;
  }

  .page-home .expertise__text {
    font-size: var(--text-base, 16px);
    line-height: 1.5;
  }

  .page-home .expertise__media {
    width: 100%;
    height: 332px;
    min-height: 0;
    margin-top: 20px;
    border-radius: 20px;
  }

  .page-home .process__grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 0;
  }

  .page-home .process__grid::before,
  .page-home .process__grid::after {
    display: none;
  }

  .page-home .process-card {
    transform: none;
  }

  .page-home .process-card__img {
    height: 260px;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 20px;
  }

  .page-home .process-card__title {
    font-size: 18px;
    line-height: 1.18;
    margin-top: 13px;
  }

  .page-home .process-card__text {
    font-size: 12px;
    line-height: 1.45;
  }

  .page-home .philosophy__tiles {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .page-home .philosophy__media {
    order: -1;
    height: 200px;
    aspect-ratio: auto;
  }

  .page-home .philosophy__media img {
    object-fit: cover;
  }

  .page-home .philosophy__stats {
    display: contents;
  }

  .page-home .stat-card {
    min-height: 122px;
    height: 122px;
    padding: 20px;
    border-radius: 16px;
  }

  .page-home .stat-card__value {
    font-size: 22px;
  }

  .page-home .stat-card__label {
    font-size: 12px;
  }

  .page-home .ecosystem__diagram {
    height: 495px;
    max-width: 350px;
    margin: 36px auto 0;
  }

  .page-home .ecosystem__rings {
    display: none;
  }

  .page-home .ecosystem__mobile-rings {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 409px;
  }

  .page-home .ecosystem__brand--parent {
    left: 50%;
    top: 54px;
    width: 172px;
    height: 68px;
    padding: 16px;
  }

  .page-home .ecosystem__brand--parent img {
    width: 126px;
    max-height: 35px;
  }

  .page-home .ecosystem__center {
    left: 50%;
    top: 174px;
    width: 184px;
    height: 112px;
    border-radius: 20px;
    gap: 8px;
    padding: 12px;
  }

  .page-home .ecosystem__center-title {
    font-size: 12px;
    padding: 12px 8px;
    border-radius: 12px;
  }

  .page-home .ecosystem__center-text {
    font-size: 14px;
    line-height: 1.2;
  }

  .page-home .ecosystem__brand--jenkins,
  .page-home .ecosystem__brand--leesona {
    top: 338px;
    width: calc(50% - 5px);
    height: 92px;
    border: 5px solid white;
    padding: 14px;
  }

  .page-home .ecosystem__brand--jenkins {
    left: 25%;
  }

  .page-home .ecosystem__brand--leesona {
    left: 75%;
  }

  .page-home .ecosystem__brand img {
    max-height: 36px;
  }

  .page-home .ecosystem .ecosystem__cta {
    top: 465px;
    height: 50px;
    font-size: 13px;
    width: 172px;
  }

  .page-home .exhibition__inner {
    padding-block: 26px 36px;
    row-gap: 36px;
  }

  .page-home .exhibition__lead {
    font: 400 23px/1.12 var(--font-heading);
    letter-spacing: -.02em;
  }

  .page-home .exhibition__emphasis {
    font: 800 clamp(43px, 14.36vw, 56px)/.94 var(--font-heading);
    letter-spacing: -.04em;
    margin-top: 8px;
  }

  .page-home .exhibition__copy {
    font-size: var(--text-base, 16px);
    line-height: 1.5;
  }

  .page-home .exhibition__card {
    padding: 24px;
    margin-top: 12px;
  }

  .page-home .exhibition__venue {
    font-size: 22px;
  }

  .page-home .exhibition__actions {
    flex-wrap: wrap;
  }

  .page-home .exhibition__actions .jj-btn {
    font-size: 12px;
    padding: 12px 16px;
  }

  .page-home .contact-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .page-home .contact-form .jj-field,
  .page-home .contact-field input,
  .page-home .contact-field input.jj-field {
    min-height: 0 !important;
    height: 22px !important;
    line-height: 22px !important;
  }

  .page-home .form-character-counter {
    display: none !important;
  }
}

@media (max-width: 359px) {
  .page-home .ecosystem__center {
    width: 168px;
  }

  .page-home .ecosystem__brand--jenkins,
  .page-home .ecosystem__brand--leesona {
    padding: 8px;
  }
}

@media (max-width: 640px) {
  .page-home .stat-card--1 {
    order: 1;
  }

  .page-home .stat-card--3 {
    order: 2;
  }

  .page-home .stat-card--2 {
    order: 3;
  }

  .page-home .stat-card--4 {
    order: 4;
  }

  .page-home .jj-section__rule {
    width: 80px;
    height: calc(80px * 6 / 86);
    background: url('../images/decor/orange-line-mobile.svg') center / contain no-repeat;
  }

  .page-home .expertise__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
  }

  .page-home .expertise__trigger::after {
    content: '+';
    flex-shrink: 0;
    font: 400 24px/1 var(--font-body);
  }

  .page-home .expertise__trigger[aria-expanded='true']::after {
    content: '−';
  }
}

/* Supplied partner ecosystem layout — mobile only. */
@media (max-width: 640px) {
  .page-home .ecosystem__diagram {
    height: 430px;
  }

  .page-home .ecosystem__mobile-rings {
    height: auto;
    aspect-ratio: 350/360;
  }

  .page-home .ecosystem__brand--parent {
    top: 20px;
    border-radius: 34px;
    background: #fff9df;
  }

  .page-home .ecosystem__center {
    top: 118px;
    width: 171px;
    height: 106px;
    padding: 12px;
    background: #fff9df;
  }

  .page-home .ecosystem__center-title {
    width: 100%;
    background: white;
    padding: 12px 8px;
  }

  .page-home .ecosystem__brand--jenkins,
  .page-home .ecosystem__brand--leesona {
    top: 248px;
    border: 0;
    border-radius: 60px;
    background: #f2f7ff;
  }

  .page-home .ecosystem .ecosystem__cta {
    top: 380px;
  }
}

@media (max-width: 640px) {
  .page-home .ecosystem__diagram {
    container-type: inline-size;
  }

  .page-home .ecosystem__brand--parent {
    top: calc(100cqw * 20 / 350);
    width: calc(100cqw * 172 / 350);
    height: calc(100cqw * 68 / 350);
  }

  .page-home .ecosystem__center {
    top: calc(100cqw * 118 / 350);
    width: calc(100cqw * 171 / 350);
  }

  .page-home .ecosystem__brand--jenkins,
  .page-home .ecosystem__brand--leesona {
    top: calc(100cqw * 248 / 350);
    height: calc(100cqw * 92 / 350);
  }
}

@media (max-width: 640px) {

  .page-home .ecosystem__brand,
  .page-home .ecosystem__center {
    transform: translateX(-50%);
  }
}