/* Home page, mobile Figma frame 2:14. Desktop styles remain in styles.css. */
@media (max-width: 760px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  .home { width: 358px; max-width: calc(100% - 32px); min-height: 100vh; padding: 40px 0 64px; }

  .identity { gap: 8px; }
  .portrait { width: 114px; height: 114px; }
  .identity-copy { width: 204px; }
  .identity-copy h1 { font: 600 24px/normal "Gros Ventre", sans-serif; letter-spacing: 0; }
  .identity-copy p { margin: 4px 0 0; font: 400 14px/normal Onest, sans-serif; letter-spacing: 0; }

  .bio-list { margin-top: 12px; }
  .bio-item summary { min-height: 48px; padding: 12px 0; font: 400 18px/normal "Gros Ventre", sans-serif; letter-spacing: 0; }
  .bio-item summary::after { width: 24px; height: 24px; margin-right: 0; background: center/24px 24px no-repeat url("./assets/pirogi/imgChevronDown.svg"); }
  .bio-item[open] { padding-bottom: 16px; }
  .bio-item[open] summary { padding-bottom: 8px; }
  .bio-item > p, .experience-copy, .about-copy { width: 100%; max-width: none; margin: 0; padding: 0; font: 400 16px/1.3 Onest, sans-serif; letter-spacing: 0; }
  .education-copy { color: rgba(0,0,0,.8); }
  .experience-copy { display: grid; gap: 4px; color: rgba(0,0,0,.65); }
  .experience-copy p { display: flex; align-items: end; margin: 0; line-height: 20px; white-space: nowrap; }
  .experience-copy p:first-child { gap: 16px; }
  .experience-copy p:last-child { gap: 24px; }
  .experience-copy strong { color: #000; font-weight: 600; }
  .about-copy { color: rgba(0,0,0,.65); }
  .about-copy p { margin: 0; }

  .socials { gap: 16px; margin-top: 24px; }
  .socials a { width: 56px; height: 56px; }
  .socials img { width: 24px; height: 24px; }
  .hh-logo { width: 24px; height: 24px; }

  .cases { margin-top: 24px; }
  .cases h2 { font: 600 24px/normal "Gros Ventre", sans-serif; letter-spacing: 0; }
  .case-grid { display: grid; grid-template-columns: 1fr; gap: 8px; width: 100%; margin: 8px 0 0; }
  .case-card { display: flex; flex-direction: column; width: 100%; height: 146px; min-height: 146px; aspect-ratio: auto; gap: 8px; padding: 16px; overflow: hidden; border-radius: 24px; box-shadow: 2px 2px 16px -4px rgba(0,0,0,.12); }
  .case-pies { background: linear-gradient(180deg, #ffe5d1 0%, #fbf6f2 100%); }
  .case-wb { background: linear-gradient(180deg, #f3d1ff 0%, #fbf2fb 100%); }
  .case-topline { position: static; display: flex; width: 100%; align-items: center; justify-content: flex-start; gap: 17px; }
  .case-wb .case-topline { gap: 16px; }
  .case-card h3 { flex: 0 0 auto; font: 400 18px/normal "Gros Ventre", sans-serif; letter-spacing: 0; }
  .tag-list { flex: 1 1 auto; flex-wrap: nowrap; justify-content: flex-start; gap: 4px; }
  .tag-list span { min-height: 0; padding: 4px 8px; font: 500 12px/normal Onest, sans-serif; }
  .case-bottomline { position: static; display: flex; width: 100%; height: 74px; align-items: center; }
  .pie-illustration { position: relative; flex: 0 0 114px; width: 114px; height: 74px; overflow: hidden; }
  .pie-illustration img { position: absolute; top: 7.168px; left: -1.014px; display: block; width: 96.448px; height: 61.503px; object-fit: cover; transform: rotate(12.76deg); transform-origin: center; }
  .case-bottomline p { position: static; width: 204px; margin: 0; color: rgba(0,0,0,.65); font: 400 14px/normal Onest, sans-serif; letter-spacing: 0; }
  .box-pair { position: relative; top: auto; left: auto; flex: 0 0 114px; width: 114px; height: 74px; }
  .box-pair .box-back { top: 0; left: 2.48px; width: 62.38px; }
  .box-pair .box-front { top: 20px; left: 46px; width: 51.3px; transform: rotate(14.1deg); transform-origin: center; }

  /* Final mobile corrections: keep the pie inside its own visual slot. */
  .case-card.case-pies .pie-illustration {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: grid;
    place-items: center;
    margin: 0 !important;
  }
  .case-card.case-pies .pie-illustration img { position: static !important; width: 96px !important; height: 62px !important; object-fit: contain !important; transform: translateX(-6.5px) rotate(12.76deg) !important; }

  /* The content of every opened accordion uses the same text style. */
  .bio-item p,
  .bio-item > p,
  .experience-copy,
  .experience-copy p,
  .about-copy,
  .about-copy p { font: 400 16px/1.3 Onest, sans-serif !important; }
}
