.case-index .lp-intro h1 { max-width: 12ch; }
.case-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(18px,2vw,36px); }
.case-card { display: block; min-width: 0; }
.case-card-photo { overflow: hidden; border-radius: 8px; background: #e9eeeb; }
.case-card-photo img { width: 100%; aspect-ratio: 1.55; object-fit: cover; transition: transform .28s ease; }
.case-entrance-cover img { object-position: 18% center; }
.case-card:hover .case-card-photo img { transform: scale(1.025); }
.case-card-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 17px; }
.case-card-title h2 { font-size: clamp(29px,2.8vw,47px); }
.case-card-title .lp-arrow { color: #446053; }
.case-card p { margin-top: 8px; max-width: 42ch; font-size: 17px; color: #4d5853; }
.home-projects { border-top: 1px solid var(--line); }
.home-projects .section-heading { align-items: baseline; }
.home-projects .section-heading h2, .home-projects .section-heading .text-link { margin-top: 0; }
.home-project-grid { margin-top: clamp(22px, 3vw, 46px); }
.home-project-card .case-card-photo { aspect-ratio: 1.6; }
.home-project-card .case-card-photo img { height: 100%; }
.home-project-card .case-card-title h3 { margin: 0; font-size: clamp(26px, 2.4vw, 40px); line-height: 1.12; font-weight: 650; letter-spacing: -.045em; }
.home-project-card .case-card-title svg { flex: none; }
.home-project-card p { margin: 8px 0 0; line-height: 1.5; }
@media (max-width: 480px) {
  .home-projects .section-heading { flex-wrap: wrap; gap: 8px 16px; }
}
.case-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 6%; padding-block: clamp(34px,4.3vw,74px) clamp(23px,2.9vw,48px); }
.case-heading h1 { font-size: clamp(55px,7.5vw,124px); line-height: .94; }
.case-heading > p { max-width: 25ch; justify-self: end; color: #253e34; font-size: clamp(22px,2.35vw,40px); line-height: 1.12; letter-spacing: -.04em; text-wrap: balance; }
.case-shot { margin: 0; min-width: 0; }
.case-shot > button { display: block; width: 100%; padding: 0; position: relative; border: 0; overflow: hidden; border-radius: 9px; background: #ecf0ed; cursor: zoom-in; }
.case-shot img { width: 100%; height: auto; display: block; }
.case-hero .case-shot img { max-height: 720px; object-fit: contain; }
.case-surface {
  position: absolute;
  left: 17%;
  top: 48%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 4px;
  background: #143429;
  color: white;
  font-size: clamp(11px, 1vw, 15px);
  font-weight: 600;
  line-height: 1.3;
  pointer-events: none;
}
.case-surface::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a9f05c;
}
.case-gallery .case-surface { left: 42%; top: 33%; }
.case-expand { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: #fff; color: #223a30; font: 24px/1 Arial,sans-serif; box-shadow: 0 1px 5px #18291b26; }
.case-shot figcaption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 16px; margin-top: 9px; color: #52625b; font-size: 14px; line-height: 1.45; }
.case-shot figcaption a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.case-hero { margin-bottom: clamp(35px,4.4vw,78px); }
.case-section { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(26px,7vw,118px); border-top: 1px solid var(--line); padding-block: clamp(30px,4.1vw,70px); }
.case-section h2, .case-gallery h2, .case-result h2 { font-size: clamp(30px,3.35vw,56px); }
.case-section h3 { font-size: clamp(20px,1.7vw,30px); line-height: 1.14; }
.case-section .case-standfirst, .case-result p { margin-top: 18px; font-size: clamp(17px,1.35vw,23px); line-height: 1.5; color: #31483c; }
.case-points p, .case-installation p { margin-top: 8px; color: #4b5751; line-height: 1.62; }
.case-points section + section, .case-installation + .case-installation { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.case-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.case-links a { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; border: 1px solid #b2c0b6; color: #213e31; border-radius: 5px; padding: 8px 13px; min-height: 42px; font-size: 15px; font-weight: 600; }
.case-links strong { color: #4f6257; font-size: 14px; }
.case-links a:hover { background: #eaf0ec; border-color: #375242; }
.case-installation .lp-inline { margin-top: 12px; font-size: 15px; }
.case-gallery { border-top: 1px solid var(--line); padding-block: clamp(29px,4vw,65px); }
.case-gallery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px clamp(16px,2vw,36px); margin-top: 25px; }
.case-gallery-grid .case-shot:only-child { grid-column: 1 / -1; width: min(100%,900px); }
.case-gallery-grid .case-shot img { aspect-ratio: 1.62; object-fit: cover; }
.case-gallery-grid .case-shot:only-child img { aspect-ratio: auto; max-height: 600px; object-fit: contain; }
.case-gallery-grid .case-portrait img { aspect-ratio: auto; max-height: 520px; object-fit: contain; }
.case-result { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); align-items: center; gap: clamp(22px,4vw,65px); padding: clamp(24px,3.5vw,58px); border-radius: 10px; background: #eaf0eb; }
.case-result p { margin: 0; }
.case-source, .case-next { display: grid; grid-template-columns: minmax(140px,.8fr) minmax(0,1.2fr); align-items: start; gap: 16px 7%; }
.case-source { margin-block: 30px; }
.case-next { border-top: 1px solid var(--line); padding-top: 26px; }
.case-source h2, .case-next h2 { font-size: clamp(19px,1.6vw,26px); }
.case-source div, .case-next div { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.case-source .lp-inline { font-size: 14px; }
.case-dialog { width: min(1140px,95vw); max-height: 94vh; padding: 48px 15px 15px; border: 0; border-radius: 10px; background: #f7f9f6; color: #21332a; overflow-y: auto; }
.case-dialog::backdrop { background: rgb(11 18 15 / .83); }
.case-dialog form { position: absolute; top: 3px; right: 5px; }
.case-dialog button { min-width: 44px; min-height: 40px; background: none; border: none; color: inherit; font: 26px/1 Arial,sans-serif; }
.case-light-photo img { width: 100%; height: min(68vh,780px); object-fit: contain; background: #e8ece8; }
.case-light-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 12px; margin-top: 9px; }
.case-light-caption { flex: 1 1 300px; font-size: 14px; }
.case-light-foot > div { display: flex; align-items: center; }
.case-light-foot output { min-width: 45px; text-align: center; font-size: 14px; }
@media (max-width: 760px) {
  .case-cards { grid-template-columns: 1fr; gap: 32px; }
  .case-heading, .case-section, .case-result, .case-source, .case-next { grid-template-columns: 1fr; gap: 17px; }
  .case-heading > p { justify-self: start; }
  .case-section .case-standfirst { margin-top: 11px; }
  .case-gallery-grid .case-shot { grid-column: 1 / -1; }
  .case-shot figcaption { font-size: 13px; }
  .case-expand { width: 33px; height: 33px; right: 7px; bottom: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .case-card-photo img { transition: none; }
}

.case-index .case-card-photo img { display: block; height: auto; }
.case-index .case-card-photo:not(.case-entrance-cover) img {
  aspect-ratio: auto;
  object-fit: contain;
}
.case-index .case-card:hover .case-card-photo img { transform: none; }
.case-index .case-card:is(:hover, :focus-visible) .case-card-title h2 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
