/* Real repair cases — 2026-08-20 v5 */
.case-catalog-section{padding:88px 0;background:#fff}
.case-catalog-section--soft{background:var(--paper)}
.case-catalog-head{display:flex;align-items:end;justify-content:space-between;gap:34px;margin-bottom:30px}
.case-catalog-head>div{max-width:760px}
.case-catalog-head h2,.case-showcase__head h2{margin:5px 0 10px;color:var(--ink)}
.case-catalog-head p,.case-showcase__head p{margin:0;color:var(--muted);line-height:1.65}
.case-label{display:block;margin:0 0 7px!important;color:var(--accent-dark)!important;font-size:11px!important;font-weight:800!important;letter-spacing:.1em;text-transform:uppercase}
.case-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.case-grid--single{grid-template-columns:minmax(0,760px)}
.case-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 12px 30px rgba(7,45,80,.06);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.case-card:hover{transform:translateY(-3px);box-shadow:0 18px 38px rgba(7,45,80,.10);border-color:#cfd9de}
.case-card__media{position:relative;overflow:hidden;aspect-ratio:16/10;background:var(--paper-2);border-radius:16px 16px 0 0}
.case-card__media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.case-card:hover .case-card__media img{transform:scale(1.015)}
.case-card__badge{position:absolute;left:14px;top:14px;padding:7px 9px;background:rgba(24,37,45,.9);color:#fff;font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.case-card__body{display:flex;flex:1;flex-direction:column;padding:20px}
.case-card__meta{display:flex;flex-wrap:wrap;gap:7px 12px;margin-bottom:10px;color:var(--accent-dark);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.case-card__body h3{margin:0 0 9px;color:var(--ink);font-size:21px;line-height:1.22;letter-spacing:-.025em}
.case-card__body p{margin:0;color:var(--muted);font-size:14.5px;line-height:1.6}
.case-card__link{display:inline-flex;align-items:center;gap:7px;margin-top:18px;color:var(--ink);font-size:13px;font-weight:800;border-bottom:1px solid rgba(24,37,45,.28);align-self:flex-start}
.case-card--compact{width:100%;max-width:none}
.case-card--compact .case-card__media{aspect-ratio:16/8.8}
.case-showcase{width:100%;max-width:760px;margin-inline:auto}
.case-showcase__head{max-width:760px;margin-bottom:22px}
.case-empty{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.case-empty__copy{max-width:760px}
.case-empty strong{display:block;margin-bottom:6px;color:var(--ink);font-size:18px}
.case-empty p{margin:0;color:var(--muted);line-height:1.6}
.case-text-link{flex:0 0 auto;color:var(--ink);font-size:13px;font-weight:800;text-decoration:none;border-bottom:1px solid rgba(24,37,45,.32);padding-bottom:2px}
.case-text-link:hover{color:var(--accent-dark);border-color:var(--accent-dark)}
.case-link-strip{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:28px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.case-link-strip__copy{max-width:760px}
.case-link-strip__copy h2{margin:5px 0 10px;color:var(--ink)}
.case-link-strip__copy p:last-child{margin:0;color:var(--muted);line-height:1.65}

/* Single repair case page */
body.page-case .case-hero{padding-bottom:48px}
body.page-case .case-kicker{margin:0 0 9px;color:var(--accent-dark);font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
body.page-case .case-hero .lead{max-width:880px}
body.page-case .case-hero__meta{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:20px;padding-top:17px;border-top:1px solid var(--line);color:var(--ink-2);font-size:13px;font-weight:700}
body.page-case .case-hero__media{display:grid;place-items:center;margin:30px 0 0;padding:14px;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#edf2f4}
body.page-case .case-summary-section{padding:0 0 70px;background:#fff}
body.page-case .case-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
body.page-case .case-summary__item{padding:25px 26px 27px 0}
body.page-case .case-summary__item+.case-summary__item{padding-left:26px;border-left:1px solid var(--line)}
body.page-case .case-summary__item span{display:block;margin-bottom:7px;color:var(--accent-dark);font-size:10.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
body.page-case .case-summary__item strong{display:block;color:var(--ink);font-size:18px;line-height:1.35}
body.page-case .case-story{padding:74px 0;background:var(--paper)}
body.page-case .case-story__head{max-width:760px;margin-bottom:30px}
body.page-case .case-story__head h2{margin:5px 0 10px}
body.page-case .case-story__head p{margin:0;color:var(--muted);line-height:1.65}
body.page-case .case-story__head .case-photo-hint{margin-top:12px;color:var(--ink-2);font-size:13px;font-weight:700}
body.page-case .case-stage-list{display:grid;gap:38px}
body.page-case .case-stage{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);gap:30px;align-items:start}
body.page-case .case-stage:nth-child(even) .case-stage__media{order:2}
body.page-case .case-stage__media{display:grid;place-items:center;margin:0;padding:12px;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#e9eff2}
body.page-case .case-stage__body{padding:6px 0}
body.page-case .case-stage__num{display:block;margin-bottom:9px;color:var(--accent-dark);font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
body.page-case .case-stage h3{margin:0 0 10px;color:var(--ink);font-size:29px;line-height:1.2;letter-spacing:-.025em}
body.page-case .case-stage p{margin:0;color:var(--muted);font-size:16px;line-height:1.68}
body.page-case .case-related{padding:70px 0;background:#fff}
body.page-case .case-related__inner{display:flex;align-items:center;justify-content:space-between;gap:34px;padding-top:24px;border-top:1px solid var(--line)}
body.page-case .case-related__inner h2{margin:0 0 7px;font-size:28px}
body.page-case .case-related__inner p{margin:0;color:var(--muted)}
body.page-case .site-footer__links a[href="works.html"]{font-weight:760}

/* Full-image treatment: no cropping on case pages */
.case-photo-button{display:flex;align-items:center;justify-content:center;width:100%;margin:0;padding:0;border:0;background:transparent;cursor:zoom-in}
body.page-case .case-hero__media .case-photo-button img{display:block;width:auto;max-width:100%;height:auto;max-height:720px;object-fit:contain}
body.page-case .case-stage__media .case-photo-button img{display:block;width:auto;max-width:100%;height:auto;max-height:620px;object-fit:contain}
.case-photo-button:focus-visible{outline:3px solid rgba(17,100,153,.35);outline-offset:4px;border-radius:10px}

/* Lightbox */
.case-lightbox{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:24px;background:rgba(13,22,29,.94)}
.case-lightbox[hidden]{display:none}
.case-lightbox__dialog{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:min(1280px,96vw);height:min(920px,92vh)}
.case-lightbox__image{display:block;max-width:100%;max-height:calc(92vh - 58px);width:auto;height:auto;object-fit:contain;touch-action:pinch-zoom}
.case-lightbox__close{position:absolute;top:-6px;right:0;z-index:2;display:grid;place-items:center;width:42px;height:42px;border:1px solid rgba(255,255,255,.4);border-radius:50%;background:rgba(13,22,29,.72);color:#fff;font:400 28px/1 Arial,sans-serif;cursor:pointer}
.case-lightbox__actions{display:flex;justify-content:center;margin-top:12px}
.case-lightbox__original{color:#fff;font-size:13px;font-weight:750;text-underline-offset:3px}
body.case-lightbox-open{overflow:hidden}

@media(max-width:900px){
  .case-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .case-grid--single{grid-template-columns:minmax(0,760px)}
  .case-link-strip{flex-direction:column;align-items:flex-start}
  body.page-case .case-stage{grid-template-columns:1fr;gap:18px}
  body.page-case .case-stage:nth-child(even) .case-stage__media{order:0}
  body.page-case .case-stage__media .case-photo-button img{max-height:760px}
}

@media(max-width:650px){
  .case-catalog-section{padding:56px 0}
  .case-catalog-head{align-items:flex-start;flex-direction:column;gap:10px;margin-bottom:22px}
  .case-grid,.case-grid--single{grid-template-columns:1fr;gap:14px}
  .case-card{border-radius:14px}
  .case-card__body{padding:16px}
  .case-card__body h3{font-size:20px}
  .case-card--compact .case-card__media,.case-card__media{aspect-ratio:4/3}
  .case-empty{align-items:flex-start;flex-direction:column;gap:15px;padding:20px 0}
  .case-link-strip{padding:20px 0;gap:16px}
  .case-link-strip__copy h2{font-size:24px}
  .case-link-strip .btn{width:100%}

  body.page-case .case-hero{padding-bottom:34px}
  body.page-case .case-hero__media{margin-top:24px;padding:6px;border-radius:12px}
  body.page-case .case-hero__media .case-photo-button img{width:100%;max-height:none;height:auto}
  body.page-case .case-summary-section{padding-bottom:48px}
  body.page-case .case-summary{grid-template-columns:1fr}
  body.page-case .case-summary__item{padding:18px 0}
  body.page-case .case-summary__item+.case-summary__item{border-left:0;border-top:1px solid var(--line);padding-left:0}
  body.page-case .case-story{padding:52px 0}
  body.page-case .case-story__head{margin-bottom:26px}
  body.page-case .case-stage-list{gap:34px}
  body.page-case .case-stage{gap:14px}
  body.page-case .case-stage__media{padding:5px;border-radius:12px}
  body.page-case .case-stage__media .case-photo-button img{width:100%;max-height:none;height:auto}
  body.page-case .case-stage h3{font-size:24px}
  body.page-case .case-stage p{font-size:15px}
  body.page-case .case-related{padding:52px 0}
  body.page-case .case-related__inner{align-items:flex-start;flex-direction:column;gap:18px}

  .case-lightbox{padding:8px}
  .case-lightbox__dialog{width:100%;height:96vh}
  .case-lightbox__image{max-width:100%;max-height:calc(96vh - 60px)}
  .case-lightbox__close{top:2px;right:2px;width:40px;height:40px}
}
