/* Case studies retain the original site's typography, numbered columns and
   full-width screenshots, with one shared responsive layout for every project. */
.ag-case-study { color: #1b1b1a; background: #f5f4f2; }
.ag-case-study .ag-case-hero {
  height: auto; min-height: 0; display: block;
  padding: clamp(136px, 12vw, 184px) 0 54px;
  background: #f5f4f2; color: #1b1b1a;
}
.ag-case-back { display: inline-block; padding: 10px 0; min-height: 44px; font-family: "Incise Light", sans-serif; font-size: 18px; text-decoration: none; color: #645d55; }
.ag-case-study .ag-case-hero > .container { box-sizing: border-box; width: 100% !important; }
.ag-case-study .ag-case-hero-content { width: auto; min-width: 0; max-width: 1180px; padding: 0; }
.ag-case-services { display: flex; flex-wrap: wrap; gap: 12px 22px; list-style: none; padding: 0; margin: 38px 0 0; }
.ag-case-services .badge { margin: 0; background: transparent; color: #c73d12; white-space: normal; font-size: 17px; line-height: 1.35; }
.ag-case-services .badge + .badge::before { content: "/"; color: #aaa39a; margin-right: 20px; }
.ag-case-study .ag-case-hero-content h1 { margin: 26px 0 0; font-family: "Incise Medium", sans-serif; font-size: clamp(56px, 8.6vw, 132px); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; overflow-wrap: break-word; }
.ag-case-study .ag-case-hero--long-name h1 { font-size: clamp(46px, 6.5vw, 96px); letter-spacing: -.035em; max-width: 20ch; }
.ag-case-study .ag-case-headline { max-width: 920px; margin: 32px 0 12px; padding: 0; font-family: "Incise Light", sans-serif; font-size: clamp(24px, 3vw, 40px); line-height: 1.24; text-wrap: pretty; }
.ag-case-hero-content h1, .ag-case-headline { overflow-wrap: anywhere; }
.ag-case-link { display: inline-block; min-height: 44px; padding: 10px 0; color: #bf330b; font-family: "Incise Medium", sans-serif; font-size: 19px; line-height: 1.3; text-decoration: none; text-underline-offset: 6px; }
.ag-case-link:hover, .ag-case-back:hover { text-decoration: underline; }
.ag-case-study a:focus-visible { outline: 3px solid #c73d12; outline-offset: 6px; }
.ag-case-explore { margin-top: 16px; }
.ag-case-hero-image { padding-bottom: clamp(56px, 7vw, 112px); }
.ag-case-hero-image-frame { display: flex; justify-content: center; align-items: center; padding: clamp(16px, 3vw, 44px); background: #e7e3dd; }
.ag-case-hero-image img { display: block; width: 100%; height: auto; max-height: 860px; object-fit: contain; }
.ag-case-study .ag-case-section { padding: clamp(58px, 7.5vw, 112px) 0; background: #f5f4f2; color: #1b1b1a; scroll-margin-top: 105px; }
.ag-case-study .ag-case-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(40px, 6vw, 100px); }
.ag-case-study .ag-case-columns::after { display: none; }
.ag-case-study .ag-case-sidebar { height: auto; justify-content: flex-start; gap: 36px; }
.ag-case-study .ag-case-sidebar .case_study_two_column_text__section-number { padding: 0; font-size: 48px; }
.ag-case-facts { display: flex; flex-direction: column; gap: 26px; margin: 0; max-width: 30ch; }
.ag-case-fact dt { font-family: "Incise Medium", sans-serif; font-size: 16px; line-height: 1.4; color: #766d64; margin: 0 0 6px; }
.ag-case-fact dd { font-family: "Incise Light", sans-serif; font-size: 20px; line-height: 1.35; margin: 0; }
.ag-case-study .case_study_two_column_text__section-title { margin: 0 0 26px; padding: 0; font-family: "Incise Medium", sans-serif; font-size: clamp(36px, 4.5vw, 64px); font-weight: 500; line-height: 1.08; color: #1b1b1a; }
.ag-case-description p, .ag-case-features p { margin: 0; font-family: "Incise Light", sans-serif; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.48; }
.ag-case-study .ag-case-description { gap: 24px; }
.ag-case-description + .ag-case-link { margin-top: 24px; }
.ag-case-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.ag-case-gallery--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.ag-case-screenshot { margin: 0; min-width: 0; }
.ag-case-screenshot-frame { display: flex; align-items: center; justify-content: center; padding: clamp(16px, 3vw, 44px); background: #e7e3dd; }
.ag-case-screenshot img { display: block; width: 100%; height: auto; object-fit: contain; }
.ag-case-screenshot--mobile img { width: auto; max-width: 100%; max-height: 760px; }
.ag-case-screenshot figcaption { padding-top: 18px; color: #766d64; font-family: "Incise Light", sans-serif; font-size: 16px; line-height: 1.45; }
.ag-case-media-note { margin: 18px 0 0; color: #766d64; font-family: "Incise Light", sans-serif; font-size: 16px; line-height: 1.45; }
.ag-case-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 32px; list-style: none; padding: 0; margin: 40px 0 0; }
.ag-case-features li { border-top: 1px solid #c9c2b9; padding-top: 22px; }
.ag-case-features h3 { margin: 0 0 12px; font-family: "Incise Medium", sans-serif; font-size: 24px; line-height: 1.2; font-weight: 500; }
.ag-case-features p { font-size: 18px; }
.ag-case-study .ag-case-related { padding: 0 0 clamp(48px, 6vw, 80px); scroll-margin-top: 105px; }
.ag-case-study .ag-case-related-heading { max-width: 1000px; margin: 0 0 26px; font-family: "Incise Medium", sans-serif; font-size: clamp(28px, 3.4vw, 44px); font-weight: 500; line-height: 1.15; text-wrap: pretty; }
.ag-case-study .ag-case-related-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; margin: 0; padding: 0; list-style: none; }
.ag-case-study .ag-case-related-list li { min-width: 0; }
.ag-case-study .ag-case-related-link { display: flex; flex-direction: column; gap: 10px; min-height: 44px; padding: 22px 0; border-top: 1px solid #c9c2b9; color: #bf330b; text-decoration: none; text-underline-offset: 5px; }
.ag-case-study .ag-case-related-surface { color: #766d64; font-family: "Incise Light", "Noto Sans Georgian", "Noto Sans Armenian", "Noto Sans", sans-serif; font-size: 16px; line-height: 1.4; }
.ag-case-study .ag-case-related-name { font-family: "Incise Medium", "Noto Sans Georgian", "Noto Sans Armenian", "Noto Sans", sans-serif; font-size: clamp(23px, 2.6vw, 34px); line-height: 1.2; overflow-wrap: break-word; }
.ag-case-study .ag-case-related-link:hover .ag-case-related-name { text-decoration: underline; }
.ag-case-study .ag-case-cta { padding: clamp(64px, 8vw, 120px) 0; background: #e9e5de; text-align: left; }
.ag-case-cta h2 { max-width: 1000px; margin: 0; font-family: "Incise Medium", sans-serif; font-weight: 500; font-size: clamp(40px, 5.8vw, 78px); line-height: 1.08; }
.ag-case-cta p { max-width: 680px; margin: 28px 0 18px; font-family: "Incise Light", sans-serif; font-size: 23px; line-height: 1.4; }
.ag-case-pagination { padding: clamp(52px, 6vw, 88px) 0; }
.ag-case-pagination-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 60px; }
.ag-case-next { min-width: 0; text-decoration: none; color: inherit; padding: 24px 0; border-top: 1px solid #c9c2b9; }
.ag-case-next-label { display: block; margin-bottom: 16px; color: #766d64; font-family: "Incise Light", sans-serif; font-size: 17px; }
.ag-case-next-title { display: block; font-family: "Incise Medium", sans-serif; font-size: clamp(27px, 3vw, 42px); line-height: 1.15; color: #c73d12; }
.ag-case-next:hover .ag-case-next-title { text-decoration: underline; text-underline-offset: 5px; }
.ag-case-next--older { grid-column: 2; }
.ag-case-all { margin-top: 24px; }
@media (max-width: 767px) {
  .ag-case-study .ag-case-hero { padding-top: 124px; padding-bottom: 32px; }
  .ag-case-services { margin-top: 24px; gap: 8px 14px; }
  .ag-case-services .badge { font-size: 14px; }
  .ag-case-services .badge + .badge::before { margin-right: 12px; }
  .ag-case-study .ag-case-hero-content h1 { margin-top: 22px; }
  .ag-case-study .ag-case-headline { margin-top: 24px; }
  .ag-case-explore { margin-top: 8px; }
  .ag-case-hero-image { padding-bottom: 12px; }
  .ag-case-study .ag-case-columns { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .ag-case-study .ag-case-sidebar { gap: 24px; }
  .ag-case-study .ag-case-sidebar .case_study_two_column_text__section-number { font-size: 36px; }
  .ag-case-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; gap: 20px; }
  .ag-case-fact:last-child { grid-column: 1 / -1; }
  .ag-case-fact dd { font-size: 18px; }
  .ag-case-gallery--pair, .ag-case-features { grid-template-columns: minmax(0, 1fr); }
  .ag-case-features { gap: 24px; margin-top: 30px; }
  .ag-case-study .ag-case-related-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ag-case-study .ag-case-related-link { padding: 20px 0; }
  .ag-case-cta p { font-size: 20px; }
  .ag-case-pagination-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ag-case-next--older { grid-column: auto; }
}
