/* CASE 02 only. Separate office and full-ratio certificate frames. */
.case02-card .case02-image { aspect-ratio: var(--case02-office-ratio); isolation: isolate; }
.case02-cover { display: block; width: 100%; height: 100%; overflow: hidden; }
.case02-card .case02-photo { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 50%; transition: transform .65s var(--ease); }
.case02-card:hover .case02-photo { transform: none; }
.case02-cover:focus-visible, .case02-proof:focus-visible { outline-offset: -4px; }
.case02-image > .case02-number, .case02-image > .case02-industry { z-index: 1; left: 12px; padding: 5px 8px; background: rgba(247,249,252,.87); color: #34465f; border: 1px solid rgba(255,255,255,.7); border-radius: 3px; pointer-events: none; }
.case02-image > .case02-number { top: 12px; }
.case02-image > .case02-industry { top: auto; bottom: 12px; font-family: var(--font-sans); font-size: 10px; letter-spacing: .04em; }
.case02-proofs { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; margin-top: 18px; }
.case02-proof { min-width: 0; padding: 8px; background: rgba(247,249,252,.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.8); border-radius: 4px; box-shadow: 0 5px 18px rgba(21,32,51,.10), inset 0 1px 0 rgba(255,255,255,.85); transition: border-color .25s ease, box-shadow .25s ease; }
.case02-proof-image { display: flex; align-items: center; justify-content: center; width: 100%; height: 152px; background: rgba(255,255,255,.96); border-radius: 2px; overflow: hidden; }
.case02-card .case02-proof-image img { width: auto; height: auto; max-width: 100%; max-height: 100%; aspect-ratio: auto; object-fit: contain; transform: none; }
.case02-proof-title { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 32px; margin-top: 7px; font-size: 10px; line-height: 1.5; color: #34465f; }
.case02-proof-title > span:first-child { min-width: 0; }
.case02-proof-title > span:last-child { flex: none; }
.case02-dialog { width: min(960px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 28px; color: var(--text-primary); background: #f7f9fc; border: 1px solid rgba(255,255,255,.8); border-radius: 5px; overflow: auto; box-shadow: 0 32px 100px rgba(42,65,98,.18); }
.case02-dialog::backdrop { background: rgba(221,231,244,.84); backdrop-filter: blur(10px); }
.case02-close { position: absolute; top: 8px; right: 8px; background: #f7f9fc; }
.case02-dialog > .eyebrow { margin: 0 30px 18px 0; font-size: 10px; }
.case02-gallery-image { width: auto; height: auto; max-width: 100%; max-height: calc(100svh - 250px); margin-inline: auto; object-fit: contain; }
.case02-gallery-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 12px; color: var(--text-secondary); }
.case02-gallery-count { font-family: var(--font-en); font-size: 10px; white-space: nowrap; }
.case02-gallery-views { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.case02-gallery-views button { min-height: 44px; padding: 8px 14px; font-size: 12px; background: transparent; border: 1px solid var(--line); border-radius: 3px; }
.case02-gallery-views button[aria-pressed="true"] { color: #344f76; background: #e7eef6; border-color: #c9d2dc; }
.case02-gallery-error { font-size: 13px; color: var(--text-secondary); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .case02-card .case02-cover:hover .case02-photo { transform: scale(1.018); }
  .case02-proof:hover { border-color: #c6d2e0; box-shadow: 0 6px 20px rgba(21,32,51,.13), inset 0 1px 0 rgba(255,255,255,.85); }
}
@media (max-width: 600px) {
  .case02-proofs { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .case02-proof { padding: 12px; }
  .case02-proof--portrait .case02-proof-image { height: 320px; }
  .case02-proof--landscape .case02-proof-image { height: auto; aspect-ratio: 1716 / 1143; }
  .case02-proof--landscape .case02-proof-image img { width: 100%; height: auto; }
  .case02-proof-title { min-height: 30px; font-size: 12px; }
  .case02-dialog { padding: 24px 16px 16px; }
  .case02-gallery-image { max-height: calc(100svh - 320px); }
  .case02-gallery-views { gap: 6px; }
  .case02-gallery-views button { padding-inline: 10px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .case02-card .case02-photo, .case02-proof { transition: none; }
}
