/* App work presented in the established Crafted Digital palette. */
.app-phone {
  width: 100%;
  max-width: 190px;
  margin-inline: auto;
  overflow: hidden;
  border: 5px solid #0d151b;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}
.app-phone img { display: block; width: 100%; height: auto; }
#work .rhema-app-cover {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  background: radial-gradient(ellipse at 20% 10%, rgba(168,95,69,.24), transparent 70%), #1d303d;
}
.app-card-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 518px;
  width: 100%;
  padding: 76px 26px 34px;
}
.app-screen-pair { display: flex; justify-content: center; align-items: start; gap: 22px; width: min(100%, 430px); }
.app-screen-pair > .app-phone { width: min(38%, 154px); margin: 0; flex-shrink: 0; }
.app-screen-pair > .app-phone:first-child { transform: translateY(-10px); }
.app-screen-pair > .app-phone:last-child { transform: translateY(10px); }
.app-card-caption { font-size: 10px; line-height: 1.6; letter-spacing: .13em; text-transform: uppercase; color: #c8ced0; text-align: center; }
.rhema-app-section {
  padding: clamp(54px, 6vw, 88px) clamp(20px, 5vw, 78px);
  background: var(--navy, #152531);
  color: var(--paper, #f2efe8);
}
.app-case-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: end; margin-bottom: 52px; }
.app-case-intro > div { min-width: 0; }
.app-eyebrow { margin: 0; color: #d69b80; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.app-case-intro h2 { margin: 22px 0 0; font-family: var(--font-head, var(--head, "Manrope", sans-serif)); font-size: clamp(36px, 4.8vw, 68px); font-weight: 500; line-height: 1.04; letter-spacing: -.055em; }
.app-case-intro h2 em { font-style: normal; color: #d69b80; }
.app-case-intro > div > p:not(.app-eyebrow) { max-width: 530px; margin: 0 0 20px; color: #c8ced0; font-size: 17px; line-height: 1.75; }
.app-case-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; padding-bottom: 5px; border-bottom: 1px solid #d69b80; font-size: 13px; }
.app-case-link:hover { color: #d69b80; }
.app-case-link:focus-visible, .app-gallery:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.app-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 42px); max-width: 930px; margin-inline: auto; min-width: 0; }
.app-gallery figure { min-width: 0; margin: 0; }
.app-gallery figcaption { max-width: 225px; margin: 22px auto 0; }
.app-gallery figcaption b { display: block; font-family: var(--font-head, var(--head, "Manrope", sans-serif)); font-size: 16px; font-weight: 500; line-height: 1.45; letter-spacing: -.025em; }
.app-gallery figcaption span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.7; color: #566168; }
.rhema-app-section .app-gallery figcaption span { color: #c8ced0; }
.app-case-footer { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 38px; }
.app-gallery-hint { display: none; }
.app-service-example .service-example-box { border-bottom: 0; }
.app-service-example .app-gallery { max-width: none; padding: 40px 24px; border: 1px solid var(--line); border-top: 0; background: var(--paper-2); }
@media (max-width: 900px) {
  .app-case-intro { grid-template-columns: 1fr; gap: 28px; }
  #work .rhema-app-cover, .app-card-preview { min-height: 0; }
}
@media (max-width: 650px) {
  #work .rhema-app-cover { min-height: 0; }
  .app-card-preview { min-height: 0; padding: 34px 18px 26px; }
  .app-screen-pair { gap: 16px; }
  .app-phone { border-width: 4px; border-radius: 20px; }
  .app-card-caption { font-size: 9px; letter-spacing: .1em; }
  .app-case-intro { margin-bottom: 28px; }
  .app-gallery {
    display: flex;
    gap: 22px;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 14px;
    padding: 10px 14px 28px;
  }
  .app-gallery figure { flex: 0 0 74%; max-width: 220px; scroll-snap-align: center; }
  .app-gallery-hint { display: block; margin: 18px 0 0; font-size: 12px; color: #c8ced0; }
  .app-service-example .app-gallery { padding: 28px 14px; }
  .app-service-example .app-gallery-hint { color: #566168; }
  .app-case-footer { justify-content: start; gap: 18px; margin-top: 24px; }
}

/* App Store screenshot leads the App Development example. */
.app-store-proof {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(30px, 5vw, 74px);
  padding: clamp(30px, 4vw, 58px);
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--paper-2);
}
.app-store-copy { min-width: 0; max-width: 530px; }
.app-store-copy .app-eyebrow { color: #6b5449; }
.app-store-copy h2 { font-size: clamp(34px, 4.4vw, 62px); margin: 24px 0; }
.app-store-copy > p:not(.app-eyebrow) { color: #566168; margin: 0 0 28px; line-height: 1.8; }
.app-store-preview { margin: 0; }
.app-store-preview .app-phone { display: block; max-width: 220px; }
.app-store-preview figcaption { margin-top: 20px; text-align: center; color: #566168; font-size: 12px; }
@media (max-width: 650px) {
  .app-store-proof { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; gap: 32px; }
  .app-store-preview .app-phone { max-width: 210px; }
}
